/* (tlpick1) The TradeLabs date and colour pickers (js/field-pickers.js). The same family as the dropdown menu
   (css/select-menu.css): always a dark box, on dark pages and light ones (the owner's light look is dark boxes on a white
   page), it pours out of the box it came from, and on a phone it is a sheet from the bottom. No coloured glow, no blur. */
.tlfp{
  --tlfp-accent:#3b74ff;--tlfp-ink:#eef2f6;--tlfp-mid:#aab4bf;--tlfp-lo:#7c8794;--tlfp-hair:rgba(255,255,255,.08);
  --tlfp-ease:cubic-bezier(.22,1,.36,1);--tlfp-spring:cubic-bezier(.16,1.12,.3,1);--tlfp-pop:cubic-bezier(.34,1.56,.64,1);
  position:fixed;z-index:2147483000;box-sizing:border-box;padding:12px;border-radius:16px;color:var(--tlfp-ink);
  font:500 13px/1.3 var(--rd-sans,'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif);font-variant-numeric:tabular-nums;text-align:left;-webkit-font-smoothing:antialiased;
  background:linear-gradient(180deg,#171a20,#0e1014 54px);
  box-shadow:0 0 0 1px rgba(255,255,255,.085) inset,0 1px 0 rgba(255,255,255,.05) inset,0 26px 60px -18px rgba(0,0,0,.75),0 6px 16px -6px rgba(0,0,0,.45);
  opacity:0;transform:translateY(-6px) scale(.965);clip-path:inset(-40px -40px 100% -40px round 20px);
  transition:opacity .16s ease,transform .38s var(--tlfp-spring),clip-path .36s var(--tlfp-ease);will-change:transform,clip-path;
  -webkit-user-select:none;user-select:none}
.tlfp.up{transform:translateY(6px) scale(.965);clip-path:inset(100% -40px -40px -40px round 20px)}
.tlfp.in{opacity:1;transform:none;clip-path:inset(-40px -40px -40px -40px round 20px)}
.tlfp.out{opacity:0;transform:translateY(-3px) scale(.985);clip-path:inset(-40px -40px -40px -40px round 20px);transition:opacity .14s ease,transform .17s ease}
.tlfp.up.out{transform:translateY(3px) scale(.985)}
.tlfp *{box-sizing:border-box}
.tlfp button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}

/* ── the calendar ── */
.tlfp-date{width:300px}
.tlfp-cal-h{display:flex;align-items:center;gap:6px;height:34px;margin-bottom:6px}
.tlfp-nav{flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:transparent;cursor:pointer;transition:background .15s,transform .2s var(--tlfp-pop)}
.tlfp-nav:hover{background:rgba(255,255,255,.08)}
.tlfp-nav:active{transform:scale(.9)}
.tlfp-nav svg{width:15px;height:15px;fill:none;stroke:var(--tlfp-mid);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tlfp-nav.nx svg{transform:scaleX(-1)}
.tlfp-nav:hover svg{stroke:#fff}
.tlfp-title{position:relative;flex:1;height:22px;overflow:hidden;text-align:center;font-weight:650;font-size:14px;letter-spacing:-.01em;color:#fff}
.tlfp-title span{position:absolute;inset:0;white-space:nowrap}
.tlfp-title .in-r{animation:tlfpInR .3s var(--tlfp-ease) both}
.tlfp-title .in-l{animation:tlfpInL .3s var(--tlfp-ease) both}
.tlfp-title .out-l{animation:tlfpOutL .24s ease forwards}
.tlfp-title .out-r{animation:tlfpOutR .24s ease forwards}
.tlfp-wd{display:grid;grid-template-columns:repeat(7,1fr);margin:2px 0 4px}
.tlfp-wd span{height:22px;line-height:22px;text-align:center;font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--tlfp-lo)}
.tlfp-gridw{position:relative;overflow:hidden}
.tlfp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.tlfp-grid.out-l,.tlfp-grid.out-r{position:absolute;inset:0}
.tlfp-grid.out-l{animation:tlfpOutL .26s ease forwards}
.tlfp-grid.out-r{animation:tlfpOutR .26s ease forwards}
.tlfp-grid.in-r{animation:tlfpInR .32s var(--tlfp-ease) both}
.tlfp-grid.in-l{animation:tlfpInL .32s var(--tlfp-ease) both}
.tlfp-d{height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:rgba(238,242,246,.88);font-weight:500;font-size:13px;cursor:pointer;
  transition:background .15s,color .15s,box-shadow .2s,transform .22s var(--tlfp-pop)}
.tlfp-d:hover{background:rgba(255,255,255,.08);color:#fff}
.tlfp-d:active{transform:scale(.9)}
.tlfp-d.x{color:rgba(238,242,246,.3)}
.tlfp-d.td{box-shadow:0 0 0 1px rgba(255,255,255,.3) inset;color:#fff;font-weight:650}
.tlfp-d.fo{box-shadow:0 0 0 2px var(--tlfp-accent) inset}
.tlfp-d.on{background:var(--tlfp-accent);color:var(--tlfp-on,#fff);font-weight:700;box-shadow:0 6px 14px -8px rgba(0,0,0,.8)}
.tlfp-d.on.fo{box-shadow:0 0 0 2px rgba(11,13,16,.55) inset}
.tlfp-d.off{opacity:.22;cursor:default;background:transparent}
.tlfp-d.pop{animation:tlfpPop .34s var(--tlfp-pop)}
.tlfp.in .tlfp-grid:only-child .tlfp-d{animation:tlfpDay .34s var(--tlfp-ease) both;animation-delay:calc(var(--i,0) * 5ms + 30ms)}
.tlfp.in .tlfp-grid:only-child .tlfp-d.pop{animation:tlfpPop .34s var(--tlfp-pop)}

/* ── the time wheels ── */
.tlfp-time{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid var(--tlfp-hair)}
.tlfp-date:not(:has(.tlfp-grid)) .tlfp-time{margin-top:0;padding-top:0;border-top:0}
.tlfp-tk{font-size:12.5px;font-weight:600;color:var(--tlfp-mid)}
.tlfp-tk em{margin-left:4px;padding:2px 6px;border-radius:99px;background:rgba(255,255,255,.08);color:#fff;font-size:10px;font-style:normal;letter-spacing:.04em}
.tlfp-wheels{position:relative;display:flex;align-items:center;gap:2px;height:150px}
.tlfp-wheels>b{position:relative;z-index:1;font-size:16px;font-weight:700;color:#fff;margin-top:-2px}
.tlfp-band{position:absolute;left:-4px;right:-4px;top:60px;height:30px;border-radius:10px;background:rgba(255,255,255,.08);box-shadow:0 0 0 1px rgba(255,255,255,.05) inset;pointer-events:none}
.tlfp-wh{position:relative;z-index:1;width:54px;height:150px;margin:0;padding:60px 0;list-style:none;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(transparent,#000 34%,#000 66%,transparent);mask-image:linear-gradient(transparent,#000 34%,#000 66%,transparent)}
.tlfp-wh::-webkit-scrollbar{display:none}
.tlfp-wh li{height:30px;line-height:30px;text-align:center;scroll-snap-align:center;font-size:15px;font-weight:600;color:rgba(238,242,246,.42);cursor:pointer;transition:color .15s,transform .2s var(--tlfp-ease)}
.tlfp-wh li:hover{color:rgba(255,255,255,.8)}
.tlfp-wh li.on{color:#fff;transform:scale(1.1)}
.tlfp-date:not(:has(.tlfp-grid)){width:auto;min-width:220px}

/* ── the footer ── */
.tlfp-foot{display:flex;align-items:center;gap:6px;margin-top:12px}
.tlfp-ghost{height:32px;padding:0 12px;border:0;border-radius:10px;background:rgba(255,255,255,.06);box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;color:var(--tlfp-mid)!important;font-size:12px!important;font-weight:600!important;cursor:pointer;transition:background .15s,color .15s,transform .2s var(--tlfp-pop)}
.tlfp-ghost:hover{background:rgba(255,255,255,.11);color:#fff!important}
.tlfp-done{margin-left:auto;height:32px;padding:0 18px;border:0;border-radius:10px;background:var(--tlfp-accent);color:var(--tlfp-on,#fff)!important;font-size:12.5px!important;font-weight:700!important;cursor:pointer;transition:filter .15s,transform .2s var(--tlfp-pop)}
.tlfp-done:hover{filter:brightness(1.1)}
.tlfp-ghost:active,.tlfp-done:active{transform:scale(.94)}

/* ── the colour picker ── */
.tlfp-col{width:272px}
.tlfp-sv{position:relative;height:156px;border-radius:12px;cursor:crosshair;touch-action:none;
  background:linear-gradient(to top,#000,rgba(0,0,0,0)),linear-gradient(to right,#fff,hsl(var(--h,0) 100% 50%));box-shadow:0 0 0 1px rgba(255,255,255,.07) inset}
.tlfp-svk,.tlfp-huek{position:absolute;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;border:2.5px solid #fff;pointer-events:none;
  box-shadow:0 0 0 1px rgba(0,0,0,.35),0 3px 10px rgba(0,0,0,.45);transition:left .2s var(--tlfp-ease),top .2s var(--tlfp-ease),transform .22s var(--tlfp-pop)}
.tlfp-svk{left:var(--sx,0);top:var(--vy,0);background:var(--now,#000)}
.tlfp-hue{position:relative;height:12px;margin:14px 0 2px;border-radius:99px;cursor:pointer;touch-action:none;
  background:linear-gradient(to right,#f00,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00);box-shadow:0 0 0 1px rgba(255,255,255,.07) inset}
.tlfp-huek{left:var(--hx,0);top:50%;background:hsl(var(--h,0) 100% 50%)}
.tlfp.dragging .tlfp-svk,.tlfp.dragging .tlfp-huek{transition:transform .22s var(--tlfp-pop)}
.tlfp.dragging .tlfp-sv:active .tlfp-svk,.tlfp.dragging .tlfp-hue:active .tlfp-huek{transform:scale(1.22)}
.tlfp-crow{display:flex;align-items:center;gap:8px;margin:14px 0 12px}
.tlfp-prev{flex:none;display:flex;width:48px;height:32px;border-radius:10px;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.12) inset}
.tlfp-prev i{flex:1;background:var(--c);cursor:pointer}
.tlfp-prev i.n{background:var(--now,#000);cursor:default;transition:background .15s}
.tlfp-hex{flex:1;min-width:0;display:flex;align-items:center;gap:2px;height:32px;padding:0 10px;border-radius:10px;background:rgba(255,255,255,.05);box-shadow:0 0 0 1px rgba(255,255,255,.07) inset;
  font:500 13px var(--rd-mono,'IBM Plex Mono',ui-monospace,monospace);cursor:text;transition:box-shadow .2s,background .2s}
.tlfp-hex:focus-within{background:rgba(255,255,255,.07);box-shadow:0 0 0 1px var(--tlfp-accent) inset}
.tlfp-hex span{color:var(--tlfp-lo)}
.tlfp-hex input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:none;background:transparent;color:#fff;font:inherit;text-transform:lowercase;-webkit-user-select:text;user-select:text}
.tlfp .tlfp-hex input:focus,.tlfp .tlfp-hex input:focus-visible{outline:none!important;box-shadow:none!important;border:0!important}
.tlfp-eye{flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:10px;background:rgba(255,255,255,.06);box-shadow:0 0 0 1px rgba(255,255,255,.06) inset;cursor:pointer;transition:background .15s,transform .2s var(--tlfp-pop)}
.tlfp-eye:hover{background:rgba(255,255,255,.12)}
.tlfp-eye:active{transform:scale(.9)}
.tlfp-eye svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tlfp-sws{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
.tlfp-sw{aspect-ratio:1;width:100%;padding:0;border:0;border-radius:9px;background:var(--c);box-shadow:0 0 0 1px rgba(255,255,255,.14) inset;cursor:pointer;
  transition:transform .2s var(--tlfp-pop),box-shadow .15s}
.tlfp-sw:hover{transform:scale(1.12)}
.tlfp-sw.on{box-shadow:0 0 0 2px #0e1014,0 0 0 4px #fff}
.tlfp-sw.pop{animation:tlfpPop .34s var(--tlfp-pop)}
.tlfp.in .tlfp-sw{animation:tlfpSw .34s var(--tlfp-ease) both;animation-delay:calc(var(--i,0) * 16ms + 60ms)}
.tlfp.in .tlfp-sw.pop{animation:tlfpPop .34s var(--tlfp-pop)}
.tlfp-swk{margin:12px 0 7px;font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--tlfp-lo)}

/* ── a phone: a sheet from the bottom ── */
.tlfp.tlfp-sheet{left:8px;right:8px;bottom:8px;top:auto!important;width:auto;padding:4px 14px calc(14px + env(safe-area-inset-bottom,0px));border-radius:22px;overflow-y:auto;
  clip-path:none;opacity:1;transform:translateY(calc(100% + 16px));transition:transform .44s cubic-bezier(.2,1,.3,1)}
.tlfp.tlfp-sheet.in{transform:none}
.tlfp.tlfp-sheet.out{transform:translateY(calc(100% + 16px));transition:transform .24s cubic-bezier(.4,0,1,1)}
.tlfp-sheet .tlfp-d{height:44px;font-size:15px}
.tlfp-sheet .tlfp-sv{height:190px}
.tlfp-sheet .tlfp-hue{height:16px}
.tlfp-sheet .tlfp-wh li{font-size:17px}
.tlfp-sheet .tlfp-foot button{height:42px}
.tlfp-sheet .tlfp-hex input{font-size:16px}
.tlfp-grab{width:38px;height:4px;margin:6px auto 10px;border-radius:99px;background:rgba(255,255,255,.22)}
.tlfp-head{padding:0 2px 10px;color:var(--tlfp-mid);font-size:12.5px;font-weight:600}
.tlfp-back{position:fixed;inset:0;z-index:2147482999;background:rgba(5,7,10,.5);opacity:0;transition:opacity .28s ease;-webkit-tap-highlight-color:transparent}
.tlfp-back.in{opacity:1}

/* ── the boxes themselves: no browser calendar button (the click opens ours), a small calendar mark instead, and a ring
   while their picker is open ── */
input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=time]::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}
input[type=date]:not([data-native]),input[type=datetime-local]:not([data-native]),input[type=time]:not([data-native]){cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a94a0' stroke-width='1.4' stroke-linecap='round'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='2'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 8px center;background-size:14px 14px;padding-right:28px}
input[type=time]:not([data-native]){background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a94a0' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='5.6'/%3E%3Cpath d='M8 5v3.2l2 1.3'/%3E%3C/svg%3E")}
input.tlfp-open{outline:2px solid rgba(59,116,255,.55)!important;outline:2px solid color-mix(in srgb,var(--tlfp-ring,#3b74ff) 55%,transparent)!important;outline-offset:2px}
label.tlfp-open{outline:2px solid rgba(59,116,255,.55);outline:2px solid color-mix(in srgb,var(--tlfp-ring,#3b74ff) 55%,transparent);outline-offset:2px}

@keyframes tlfpInR{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:none}}
@keyframes tlfpInL{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:none}}
@keyframes tlfpOutL{to{opacity:0;transform:translateX(-22px)}}
@keyframes tlfpOutR{to{opacity:0;transform:translateX(22px)}}
@keyframes tlfpPop{0%{transform:scale(.82)}60%{transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes tlfpDay{from{opacity:0;transform:translateY(-4px) scale(.94)}to{opacity:1;transform:none}}
@keyframes tlfpSw{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion:reduce){
  .tlfp,.tlfp *,.tlfp-back{animation:none!important;transition:none!important}
  .tlfp{clip-path:none!important}
}
.tlfp.tlfp-calm,.tlfp.tlfp-calm *,.tlfp-back.tlfp-calm{animation:none!important;transition:none!important}
