/* Softriver Hub, on the ACA design system (/ui.css, the same as the ACA CRM): a very light grey page, white cards and
   bars in front of it (light grey controls inside them), black pill buttons and selections, and frosted gradient cards
   for the numbers that open a page and for the project itself. Inter set light (400 text, 450 navigation, 500 buttons,
   names and headings); Geist Mono for numbers and data (stat tiles, deadlines, #numbers, counts, uppercase labels,
   table headers). Phones: no sidebar, a floating tab bar, one column, dialogs as sheets from the bottom. */
:root{
  --s-blue:#3b82f6; --s-lilac:#8b5cf6; --s-teal:#14b8a6; --s-gray:#a1a1aa; --s-amber:#f59e0b; --s-red:#ef4444; --s-orange:#f97316; --s-green:#22c55e; --s-ink:#52525b;
  /* job statuses: the same dots everywhere (board columns, pills, the list) */
  --st-todo:var(--s-gray); --st-doing:var(--s-blue); --st-pres:var(--s-lilac); --st-review:var(--s-amber); --st-sent:var(--s-teal); --st-done:var(--s-green); --st-canceled:#d4d4d8; --st-new:var(--s-red);
  --scrim:rgba(11,11,15,.34); --rl:rgba(11,11,15,.07); /* hairlines inside a card */
  --r:24px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--bg)}
body{color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.5;letter-spacing:-.006em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}
button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}
a{color:inherit}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
svg{display:block}
.boot{display:grid;place-items:center;height:100vh;color:var(--ink-3)}
.boot svg{width:150px;height:auto;fill:currentColor;opacity:.5}
h1{font-family:var(--head);font-size:30px;font-weight:500;letter-spacing:-.034em;line-height:1.1;margin:0}
h2{font-family:var(--head);font-size:16px;font-weight:500;letter-spacing:-.016em;margin:0}
h3,h4,.lbl{font:400 11px/1.4 var(--mono);margin:0;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em}
p{margin:0}
.sub{color:var(--ink-3);font-size:14px;margin-top:6px}
.sub b,.mono{font-family:var(--mono);font-weight:400;letter-spacing:-.02em}
.sub b{color:var(--ink-2)}
.note{font-size:13px;color:var(--ink-2);margin:0;line-height:1.5}
.muted{color:var(--ink-3)} .faint{color:var(--ink-3)} .small{font-size:12.5px} .nowrap{white-space:nowrap}
.err{font-size:13.5px;color:var(--danger);margin:0}
.err:empty{display:none}
.ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.spacer,.grow{flex:1}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lbl{display:flex;align-items:center;gap:8px;margin:20px 0 9px}
.lbl .muted{font-size:11px}

/* ---------- controls: pills; black is the main action and the current choice; neutral ones follow --ctl ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 16px;border-radius:999px;border:0;background:var(--ctl);
  color:var(--ink);font-weight:500;font-size:13.5px;letter-spacing:-.008em;cursor:pointer;white-space:nowrap;text-decoration:none;transition:background .15s,color .15s,transform .14s var(--ease),opacity .15s}
.btn:hover{background:var(--ctl-2)}
.btn:active{transform:scale(.97)}
.btn.dark{background:var(--ink);color:var(--on-ink)}
.btn.dark:hover{background:#24242b}
.btn.ghost{background:transparent;color:var(--ink-2)}
.btn.ghost:hover{background:var(--ctl);color:var(--ink)}
.btn.danger,.btn.red{background:#fdf0ef;color:var(--danger)}
.btn.danger:hover,.btn.red:hover{background:#fbe3e1}
.btn.sm{height:32px;padding:0 13px;font-size:13px}
.btn.xs{height:28px;padding:0 11px;font-size:12.5px;gap:5px}
.btn.block{width:100%;height:46px;font-size:14.5px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn .ico{width:15px;height:15px}
.btn.xs .ico{width:13px;height:13px}
.ico{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.iconbtn{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:var(--ink);text-decoration:none;border:0;background:var(--ctl);cursor:pointer;transition:background .15s;flex:none}
.iconbtn:hover{background:var(--ctl-2)}
.iconbtn .ico{width:18px;height:18px}
input[type=text],input[type=email],input[type=number],input[type=date],input[type=datetime-local],input[type=search],input[type=url],input[type=tel],input[type=password],select,textarea{
  border:1.5px solid transparent;background-color:var(--ctl);border-radius:var(--r-sm);height:40px;padding:0 13px;font-size:14px;width:100%;min-width:0;color:var(--ink);
  appearance:none;-webkit-appearance:none;transition:border-color .15s,background-color .15s}
textarea{height:auto;padding:11px 13px;resize:vertical;min-height:88px;line-height:1.5}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5' fill='none' stroke='%235c5c66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:34px;cursor:pointer}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--ink);background-color:#fff}
input::placeholder,textarea::placeholder{color:var(--ink-3)}
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
select.mini{width:auto;height:38px;border-radius:999px;padding:0 34px 0 15px;font-size:13.5px;font-weight:450}
input.find{width:280px;height:38px;border-radius:999px;padding-left:38px;font-size:13.5px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8a94' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:14px center}
label.f,div.f{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:400;color:var(--ink-2);min-width:0}
label.check{display:flex;align-items:center;gap:10px;font-size:13.5px;cursor:pointer}
label.check input{width:18px;height:18px;accent-color:var(--ink);margin:0;flex:none}
.checkgrid{display:flex;flex-wrap:wrap;gap:6px}
.checkgrid label.check{height:34px;padding:0 13px 0 10px;border-radius:999px;background:var(--ctl);font-size:13px;gap:8px}
.checkgrid label.check input{width:16px;height:16px}
.checkgrid label.check:has(input:checked){background:var(--ink);color:#fff}
.checkgrid label.check:has(input:checked) input{accent-color:#fff}
/* on/off switches, in rows with their explanation */
.switch{position:relative;display:inline-block;width:38px;height:22px;cursor:pointer;flex:none}
.switch input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.switch i{position:absolute;inset:0;border-radius:999px;background:var(--fill-2);transition:background .2s}
.switch i::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s var(--spring)}
.switch input:checked+i{background:var(--ink)}
.switch input:checked+i::after{transform:translateX(16px)}
.switch input:focus-visible+i{outline:2px solid var(--ink);outline-offset:2px}
.toggles{display:flex;flex-direction:column}
.toggle{display:flex;align-items:center;gap:16px;padding:13px 0;border-top:1px solid var(--rl);cursor:pointer}
.toggle:first-child{border-top:0;padding-top:2px}
.toggle>span:first-child{flex:1;min-width:0}
.toggle b{display:block;font-weight:500;font-size:14px}
.toggle small{display:block;font-size:12.5px;color:var(--ink-3);line-height:1.45;margin-top:2px}
.unit{position:relative;display:block}
.unit input{padding-right:40px;font-family:var(--mono);letter-spacing:-.02em}
.unit i{position:absolute;right:13px;top:50%;transform:translateY(-50%);font:400 11.5px/1 var(--mono);color:var(--ink-3);font-style:normal;pointer-events:none}

/* segmented controls: a black pill glides to the chosen option */
.seg{display:inline-flex;background:var(--ctl);border-radius:999px;padding:3px;flex:none;max-width:100%;overflow-x:auto;scrollbar-width:none;position:relative}
.seg::-webkit-scrollbar{display:none}
.seg button{border:0;background:none;height:32px;padding:0 14px;font-size:13px;font-weight:450;color:var(--ink-2);cursor:pointer;border-radius:999px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;position:relative;z-index:1;transition:color .2s}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed="true"]{background:var(--ink);color:#fff}
.seg .glider{position:absolute;top:3px;bottom:3px;left:0;border-radius:999px;background:var(--ink);pointer-events:none;z-index:0}
.seg .glider.move{transition:transform .34s var(--spring),width .34s var(--spring)}
.seg.glide button[aria-pressed="true"]{background:transparent}

/* chips, statuses, people */
.chip{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 10px;border-radius:999px;background:var(--ctl);color:var(--ink-2);font-size:12px;font-weight:450;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;flex:none}
.chip.mono{font-family:var(--mono);font-weight:400;font-size:11.5px;letter-spacing:-.01em}
.chip.ok,.chip.fiverr{background:#e8f8ee;color:#067647} .chip.info,.chip.website{background:#eef1ff;color:#3538cd}
.chip.warn,.chip.express{background:#fff3e6;color:#b54708} .chip.risk{background:#fde8e7;color:#b42318}
.chip.dup{background:#fdecf5;color:#b3195a} .chip.hold{background:#fff6dc;color:#8a5a00}
.ai{display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 10px;border-radius:999px;background:#f0ebff;color:#6436e0;font-size:12px;font-weight:450;white-space:nowrap}
.ai .ico{width:13px;height:13px}
.btn.ai-btn{background:#f0ebff;color:#6436e0}
.btn.ai-btn:hover{background:#e6ddff}
.pill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 11px 0 9px;border-radius:999px;background:var(--ctl);font-size:12.5px;font-weight:450;white-space:nowrap;color:var(--ink);flex:none}
.pill i{width:7px;height:7px;border-radius:50%;background:var(--sc,var(--s-gray));flex:none}
.badge{min-width:22px;height:20px;padding:0 7px;border-radius:999px;background:var(--fill-2);font:400 11px/1 var(--mono);display:inline-grid;place-items:center;color:var(--ink-2)}
.badge.alert{background:#fde8e7;color:#c81e1e}
.av{width:26px;height:26px;border-radius:50%;display:inline-grid;place-items:center;font-size:10.5px;font-weight:500;background:var(--fill-2);color:var(--ink-2);flex:none;letter-spacing:.01em}
.av.lg{width:34px;height:34px;font-size:12px}
.av.xl{width:56px;height:56px;font-size:19px;font-weight:400;font-family:var(--head)}
.av.none{background:transparent;box-shadow:inset 0 0 0 1.5px var(--line-2);color:var(--ink-3)}
/* initials on a soft tint picked from the name, so a person keeps the same colour everywhere */
.av.t0{background:#e9f0ff;color:#2459d0} .av.t1{background:#f1edff;color:#6436e0} .av.t2{background:#e6f8ee;color:#147a3d}
.av.t3{background:#fff2df;color:#a6530b} .av.t4{background:#fdecf5;color:#b3195a} .av.t5{background:#e4f8fb;color:#0b6b80}
.av.client{background:#e4f8fb;color:#0b6b80} .av.sys{background:var(--fill);color:var(--ink-3)}
.due{font:400 12px/1.4 var(--mono);letter-spacing:-.02em;color:var(--ink-2);white-space:nowrap}
.due.soon{color:#b54708}
.due.late{color:var(--danger)}
.chip .ico{width:12px;height:12px}
.lbl .ico{width:13px;height:13px}
.kicker{display:flex;align-items:center;gap:7px;font:400 11px/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
kbd{font-family:var(--mono);font-size:11px;font-weight:400;min-width:20px;height:20px;display:inline-grid;place-items:center;border-radius:6px;color:var(--ink-3);padding:0 5px;background:var(--fill)}
code.k{font-family:var(--mono);background:var(--fill);padding:2px 7px;border-radius:7px;font-size:12px;word-break:break-all}

/* ---------- toasts ---------- */
#toasts{position:fixed;bottom:calc(24px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:90;align-items:center;width:max-content;max-width:calc(100% - 32px)}
.toast{background:var(--ink);color:#fff;padding:12px 18px;border-radius:999px;font-weight:450;font-size:13.5px;box-shadow:var(--shadow-2);animation:toastin .35s var(--spring) both;text-align:center}
.toast.bad{background:var(--danger)}
.toast.out{animation:toastout .22s ease both}
@keyframes toastin{from{opacity:0;transform:translateY(12px) scale(.97)}}
@keyframes toastout{to{opacity:0;transform:translateY(8px)}}

/* ---------- sign-in ---------- */
.auth{min-height:100vh;display:grid;place-items:center;padding:30px 18px;background:var(--bg)}
.auth-box{width:min(420px,100%);background:var(--card);border-radius:var(--r-xl);padding:32px 28px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow-2);--ctl:var(--fill);--ctl-2:var(--fill-2)}
.auth-box .brand{margin-bottom:10px}
.auth-box h1{font-size:28px}
.auth-box form{display:flex;flex-direction:column;gap:12px;margin-top:6px}
.auth-box input{height:48px}
.auth-box .btn.dark{height:48px;font-size:14.5px;margin-top:4px}

/* ---------- shell: a white sidebar, a translucent top bar and the page ---------- */
.brand{display:flex;align-items:center;text-decoration:none;color:var(--ink);line-height:0}
.brand svg{display:block;fill:currentColor;flex:none}
.brand .word{height:22px;width:auto}
.brand .mark{display:none;height:24px;width:auto}
.brand .tag{margin-left:9px;font:400 10px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);background:var(--fill);padding:5px 7px 4px;border-radius:999px}
.app{display:flex;min-height:100vh}
.side{width:244px;flex:none;display:flex;flex-direction:column;padding:0 14px 16px;position:sticky;top:0;height:100vh;background:var(--card);box-shadow:1px 0 0 rgba(11,11,15,.04);--ctl:var(--fill);--ctl-2:var(--fill-2);z-index:20}
.side>.brand{height:68px;padding:0 12px}
.navsec{font:400 10.5px/1.4 var(--mono);letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3);padding:18px 12px 8px}
.nav{display:flex;flex-direction:column;gap:3px}
.nav a{display:flex;align-items:center;gap:11px;height:40px;padding:0 12px;border-radius:999px;text-decoration:none;color:var(--ink-2);font-weight:450;font-size:14px;position:relative;transition:background .15s,color .15s}
.nav a:hover{background:var(--fill);color:var(--ink)}
.nav a[aria-current="page"]{background:var(--ink);color:#fff}
.nav a[aria-current="page"] .badge{background:rgba(255,255,255,.18);color:#fff}
.nav .ico{width:18px;height:18px}
.nav .badge{margin-left:auto}
.side-foot{margin-top:auto;padding-top:12px}
.side-foot .nav a{height:48px;padding:0 8px}
.side-foot .who-text{min-width:0}
.side-foot b{display:block;font-size:13.5px;font-weight:500;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-foot small{display:block;font-size:12px;color:var(--ink-3);line-height:1.2}
.side-foot a[aria-current="page"] small{color:rgba(255,255,255,.7)}
.shell{flex:1;min-width:0;display:flex;flex-direction:column}
.top{height:68px;flex:none;display:flex;align-items:center;gap:14px;padding:0 30px;position:sticky;top:0;background:rgba(245,245,247,.86);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);z-index:30}
.top .brand{display:none}
.gsearch{display:flex;align-items:center;gap:8px;width:min(420px,100%);height:42px;border-radius:999px;padding:0 8px 0 15px;color:var(--ink-3);background:var(--ctl);border:1.5px solid transparent;transition:border-color .15s,background-color .15s;cursor:text}
.gsearch:focus-within{border-color:var(--ink);background:#fff}
.gsearch input{border:0!important;background:transparent!important;height:38px;padding:0;flex:1;font-size:14px}
.gsearch .keys{display:flex;gap:3px}
.top-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.who{display:flex;align-items:center;gap:10px;padding:4px 14px 4px 4px;height:42px;border-radius:999px;background:var(--ctl);text-decoration:none}
.who .av{width:34px;height:34px;font-size:12px}
.who b{display:block;font-size:13.5px;font-weight:500;line-height:1.2}
.who small{display:block;font-size:12px;color:var(--ink-3);line-height:1.2}
.main{flex:1;width:100%;min-width:0;padding:22px 30px 64px}
.page{width:100%;min-width:0}
.page.narrow{max-width:780px}
.head{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:24px}
.head>.title{margin-right:auto;min-width:0}
.bottom{display:none}

/* ---------- blocks: white cards on the grey page, light grey things inside ---------- */
.card{background:var(--card);border-radius:var(--r);padding:20px 22px;box-shadow:var(--lift);--ctl:var(--fill);--ctl-2:var(--fill-2);min-width:0}
.card+.card{margin-top:14px}
.card>h2{display:flex;align-items:center;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.card>h2 .spacer{flex:1}
.card h4{margin:18px 0 8px}
.card h4:first-child{margin-top:0}
.card p{margin:0 0 8px}
.card p:last-child{margin-bottom:0}
.empty{padding:28px 6px;color:var(--ink-3);text-align:center;font-size:13.5px}
.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:34px 16px 36px;color:var(--ink-2)}
.empty-state .es-ico{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--fill);color:var(--ink-3);margin-bottom:8px}
.empty-state .es-ico .ico{width:19px;height:19px}
.empty-state b{font-family:var(--head);font-weight:500;font-size:15px;color:var(--ink)}
.empty-state p{font-size:13px;color:var(--ink-3);max-width:360px;line-height:1.5}
.page>.empty-state{background:var(--card);border-radius:var(--r);box-shadow:var(--lift)}
.kv{display:grid;grid-template-columns:minmax(110px,max-content) 1fr;gap:9px 16px;font-size:13.5px;margin:0}
.kv dt{color:var(--ink-3)} .kv dd{margin:0;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
ul.clean{margin:0;padding-left:17px;font-size:13.5px;color:var(--ink-2)}
ul.clean li+li{margin-top:3px}
details.raw{margin-top:14px;font-size:13.5px}
details summary{cursor:pointer;color:var(--ink-2);font-weight:450;list-style:none;display:inline-flex;align-items:center;gap:8px;user-select:none}
details summary::-webkit-details-marker{display:none}
details summary::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .2s var(--ease);margin-top:-2px}
details[open]>summary::after{transform:rotate(45deg)}
details summary:hover{color:var(--ink)}
details.raw .kv{margin-top:12px}
.copyrow{display:flex;gap:8px;align-items:center}
.copyrow input{font-family:var(--mono);font-size:12.5px}

/* banners: a project needs something (payment, duplicate, a question) */
.banner{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 14px 12px 18px;border-radius:var(--r-lg);margin-bottom:12px;font-size:13.5px;line-height:1.5;background:#f2f5ff;color:#24366b;box-shadow:inset 0 0 0 1px rgba(36,54,107,.12)}
.banner>.ico{width:18px;height:18px;flex:none}
.banner>span{flex:1;min-width:220px}
.banner b{font-weight:560}
.banner .btn{background:rgba(255,255,255,.75)}
.banner .btn:hover{background:#fff}
.banner .btn.ghost{background:transparent}
.banner.bad{background:#fff1ef;color:#9a2a1c;box-shadow:inset 0 0 0 1px rgba(217,45,32,.16)}
.banner.warn{background:#fff8ec;color:#7a3e06;box-shadow:inset 0 0 0 1px rgba(181,71,8,.16)}
.banner.good{background:#ecfaf1;color:#0f5c33;box-shadow:inset 0 0 0 1px rgba(21,128,61,.14)}
.banner.dup{background:#fdf0f6;color:#8f1d4c;box-shadow:inset 0 0 0 1px rgba(179,25,90,.14)}

/* ---------- stat tiles: the numbers that open a page (frosted gradients), more below on white ---------- */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(164px,1fr));gap:12px;margin-bottom:22px}
.stats.hero:has(+ .stats){margin-bottom:12px}
.stat{border:0;font:inherit;color:inherit;text-align:left;border-radius:var(--r);padding:18px 20px;background:var(--card);min-height:136px;display:flex;flex-direction:column;box-shadow:var(--lift);container-type:inline-size;--ctl:var(--fill);--ctl-2:var(--fill-2);
  cursor:pointer;position:relative;transition:transform .2s var(--ease),box-shadow .2s}
.stat:hover{transform:translateY(-2px)}
.stat[aria-pressed="true"]{box-shadow:0 0 0 2px var(--ink),var(--lift)}
.stat .k{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13.5px;color:var(--ink-2);font-weight:400;line-height:1.3}
/* the number in Geist Mono, as large as the tile allows: --n is its length in characters */
.stat .v{font-family:var(--mono);font-size:min(38px,calc(100cqi / (var(--n,4) * .6)));font-weight:400;letter-spacing:-.045em;margin-top:auto;padding-top:14px;line-height:1.02;white-space:nowrap}
.stat .d{font-size:12.5px;color:var(--ink-3);margin-top:5px}
.si{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--fill);color:var(--ink-2);flex:none}
.si .ico{width:16px;height:16px}
.si.amber{color:#c27803} .si.red{color:#d92d20} .si.violet{color:#6e3ff3} .si.blue{color:#2463eb} .si.green{color:#15803d} .si.pink{color:#c4127a}
.stats.hero .stat{color:#fff;overflow:hidden;isolation:isolate;background:var(--g-violet);background-blend-mode:overlay,normal;--glow:rgba(60,60,180,.5);box-shadow:var(--rim),0 20px 40px -28px var(--glow)}
.stats.hero .stat:has(.si.blue){background:var(--g-ocean);background-blend-mode:overlay,normal;--glow:rgba(40,80,200,.48)} .stats.hero .stat:has(.si.amber){background:var(--g-sun);background-blend-mode:overlay,normal;--glow:rgba(220,90,20,.45)}
.stats.hero .stat:has(.si.green){background:var(--g-lime);background-blend-mode:overlay,normal;--glow:rgba(25,110,55,.45)} .stats.hero .stat:has(.si.red){background:var(--g-coral);background-blend-mode:overlay,normal;--glow:rgba(200,40,30,.45)}
.stats.hero .stat:has(.si.violet){background:var(--g-grape);background-blend-mode:overlay,normal;--glow:rgba(50,25,110,.5)} .stats.hero .stat:has(.si.pink){background:var(--g-rose);background-blend-mode:overlay,normal;--glow:rgba(210,30,120,.45)}
.stats.hero .stat[aria-pressed="true"]{box-shadow:var(--rim),0 0 0 3px var(--bg),0 0 0 4.5px var(--ink),0 20px 40px -28px var(--glow)}
.stats.hero .stat .k{color:rgba(255,255,255,.9)}
.stats.hero .stat .d{color:rgba(255,255,255,.78)}
.stats.hero .si{background:var(--frost);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:#fff}

/* ---------- filters ---------- */
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.toolbar .grow{flex:1}

/* ---------- the work board: grey columns, white cards ---------- */
.kanban{display:grid;grid-template-columns:repeat(5,minmax(184px,1fr));gap:10px;overflow-x:auto;padding:2px 2px 14px;align-items:start;scroll-snap-type:x proximity}
.kcol{background:#ececf0;border-radius:var(--r-lg);padding:8px;display:flex;flex-direction:column;max-height:calc(100vh - 92px);min-width:0;scroll-snap-align:start}
.kcol header{display:flex;align-items:center;gap:8px;padding:6px 8px 10px;font-size:13px}
.kcol header i{width:8px;height:8px;border-radius:999px;background:var(--sc);flex:none}
.kcol header b{font-weight:500;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kcol header .n{font:400 11.5px/1 var(--mono);color:var(--ink-3)}
.kcards{display:flex;flex-direction:column;gap:7px;overflow-y:auto;min-height:40px;padding:1px;margin:-1px;scrollbar-width:thin}
.kcard{background:var(--card);border-radius:var(--r-md);padding:11px 12px 10px;box-shadow:var(--lift);cursor:pointer;display:flex;flex-direction:column;gap:7px;text-decoration:none;color:inherit;position:relative;--ctl:var(--fill);
  transition:transform .15s var(--ease),box-shadow .15s}
.kcard:hover{transform:translateY(-1px);box-shadow:0 0 0 1.5px var(--ink)}
.kcard.prio{box-shadow:0 0 0 1.5px #f5b2ad,var(--lift)}
.kcard.prio:hover{box-shadow:0 0 0 1.5px var(--danger)}
.kc-chips{display:flex;gap:4px;flex-wrap:wrap;padding-right:18px}
.kc-chips .chip{height:21px;font-size:11px;padding:0 8px}
.kc-t{font-weight:500;font-size:14px;letter-spacing:-.012em;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.kc-s{font-size:12px;color:var(--ink-3);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:-4px}
.kc-s .mono{color:var(--ink-2);font-size:11.5px}
.kc-ask{font-size:12.5px;color:var(--ink-2);line-height:1.45;background:var(--fill);border-radius:10px;padding:6px 9px}
.kc-ask span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.kc-foot{display:flex;align-items:center;gap:7px;padding-top:2px}
.kc-who{font-size:12.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}
.kcard .sel{position:absolute;top:10px;right:10px;width:17px;height:17px;accent-color:var(--ink);margin:0}
.kempty{font-size:12.5px;color:var(--ink-3);text-align:center;padding:14px 6px}
.colmore{font:400 11px/1.4 var(--mono);color:var(--ink-3);text-align:center;padding:8px 6px 4px;letter-spacing:.02em}
.bulk{position:sticky;bottom:18px;margin:16px auto 0;width:max-content;max-width:100%;background:var(--ink);color:#fff;border-radius:999px;padding:7px 8px 7px 20px;display:flex;gap:8px;align-items:center;box-shadow:var(--shadow-2);z-index:25;animation:toastin .35s var(--spring) both}
.bulk b{font-weight:500;font-size:13.5px;margin-right:4px;white-space:nowrap}
.bulk select{background-color:rgba(255,255,255,.14);color:#fff;border:0;height:34px;border-radius:999px;width:auto;font-size:13px;padding:0 32px 0 14px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.bulk select option{color:var(--ink)}
.bulk .btn{background:#fff;color:var(--ink);height:34px}

/* ---------- tables: in a white card, mono numbers, rows highlight as a whole ---------- */
.tbl-card{border-radius:var(--r);overflow:hidden;background:var(--card);padding:4px 8px;box-shadow:var(--lift);--ctl:var(--fill);--ctl-2:var(--fill-2)}
.tbl-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.tbl th{text-align:left;font:400 10.5px/1.4 var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3);padding:13px 12px 10px;white-space:nowrap}
.tbl td{padding:11px 12px;border-top:1px solid var(--rl);vertical-align:middle}
.tbl tr.link,.tbl tr[data-act]{cursor:pointer}
.tbl tr[data-act] td{transition:background .15s}
.tbl tr[data-act]:hover td{background:var(--fill)}
.tbl tr[data-act]:hover td:first-child{border-radius:14px 0 0 14px}
.tbl tr[data-act]:hover td:last-child{border-radius:0 14px 14px 0}
.tbl tr[data-act]:hover td,.tbl tr[data-act]:hover+tr td{border-top-color:transparent}
.tbl .num{font-family:var(--mono);font-size:12.5px;letter-spacing:-.02em;color:var(--ink-2);white-space:nowrap}
.tbl .num.r{text-align:right}
.tbl .name{font-weight:500}
.tbl .clip{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tbl .who-cell{display:flex;align-items:center;gap:8px;white-space:nowrap}
.tbl .two-line small{display:block;color:var(--ink-3);font-size:12px;margin-top:1px}
.tbl .late{color:var(--danger)}
.card .tbl th{padding:0 9px 9px}
.card .tbl td{padding-left:9px;padding-right:9px}
.card .tbl td:first-child,.card .tbl th:first-child{padding-left:0}
.card .tbl td:last-child,.card .tbl th:last-child{padding-right:0}
.more{display:flex;justify-content:center;margin-top:16px}

/* ---------- the project: a gradient card on top (its colour follows the stage), the work on the left, the brief on the right ---------- */
.backbtn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px 0 9px;margin:-4px 0 14px;border-radius:999px;border:0;background:var(--ctl);color:var(--ink-2);font-size:13px;font-weight:450;cursor:pointer;transition:background .15s,color .15s}
.backbtn:hover{background:var(--ctl-2);color:var(--ink)}
.backbtn .ico{width:15px;height:15px}
.phero{border-radius:var(--r-xl);padding:22px 24px 24px;margin-bottom:14px;display:grid;gap:18px}
.phero.off{filter:grayscale(.85);opacity:.9}
.ph-top{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.ph-top .kicker{color:rgba(255,255,255,.86);margin-top:8px;margin-right:auto}
.ph-acts{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.gcard .btn{background:var(--frost);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:#fff}
.gcard .btn:hover{background:var(--frost-2)}
.gcard .btn.dark{background:#fff;box-shadow:none;color:var(--ink)}
.gcard .btn.dark:hover{background:#f1f1f4}
.gcard select.mini{background-color:var(--frost);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:#fff;height:32px;font-size:13px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.gcard select.mini:focus{border-color:#fff;background-color:var(--frost-2)}
.gcard select option{color:var(--ink)}
.phero h1{font-size:clamp(28px,1.6vw + 18px,40px);font-weight:500;letter-spacing:-.035em;line-height:1.05;overflow-wrap:anywhere}
.ph-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.gcard .chip,.gcard .pill{background:var(--frost);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);color:#fff}
.gcard .pill i{background:#fff}
.ph-foot{display:flex;align-items:flex-end;gap:28px;flex-wrap:wrap}
.ph-due{margin-right:auto}
.ph-due small,.ph-person small{display:block;font:400 10.5px/1.4 var(--mono);letter-spacing:.07em;text-transform:uppercase;color:rgba(255,255,255,.78)}
.ph-due b{display:block;font-family:var(--mono);font-weight:400;font-size:clamp(34px,2vw + 22px,46px);letter-spacing:-.06em;line-height:1;margin-top:8px}
.ph-due span{display:block;font-size:12.5px;color:rgba(255,255,255,.82);margin-top:6px}
.ph-people{display:flex;gap:22px;flex-wrap:wrap}
.ph-person{display:flex;align-items:center;gap:10px}
.ph-person .av{width:38px;height:38px;font-size:13px;background:var(--frost);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);color:#fff}
.ph-person b{display:block;font-weight:500;font-size:14.5px;letter-spacing:-.015em;margin-top:2px}
.ph-person .none{color:rgba(255,255,255,.7);font-weight:400}
.pcols{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:14px;align-items:start}
.pcols>div{display:flex;flex-direction:column;gap:14px;min-width:0}
.pcols .card+.card{margin-top:0}

/* a job (one round of work): a white card, its header opens it */
.job{padding:0;overflow:hidden}
.jh{display:flex;align-items:center;gap:10px;padding:16px 20px;cursor:pointer;flex-wrap:wrap;transition:background .15s}
.jh:hover{background:#fbfbfc}
.jh h3{font:500 16px/1.3 var(--head);letter-spacing:-.016em;color:var(--ink);text-transform:none;margin:0}
.jh .chev{width:16px;height:16px;color:var(--ink-3);transition:transform .25s var(--ease)}
.job.collapsed .jh .chev{transform:rotate(-90deg)}
.jb{padding:2px 20px 20px;border-top:1px solid var(--rl)}
.job.collapsed .jb{display:none}
.people{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:16px 0 4px}
.person{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 7px;border-radius:999px;background:var(--fill);min-width:0}
.person>span{min-width:0;padding-right:8px}
.person small{display:block;font:400 10px/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.person .nm{display:block;font-size:13.5px;font-weight:450}
.person select{width:auto;max-width:220px;height:26px;padding:0 26px 0 0;border:0;background-color:transparent;background-position:right 4px center;font-size:13.5px;font-weight:450;border-radius:0}
.person select:focus{background-color:transparent;border:0;outline:none}
.person:focus-within{box-shadow:0 0 0 1.5px var(--ink)}
.ask{background:var(--fill);border-radius:var(--r-md);padding:14px 16px;margin:14px 0 0;--ctl:#fff;--ctl-2:#f7f7f9}
.ask h5{margin:0 0 10px;display:flex;gap:6px;align-items:center;flex-wrap:wrap;font:400 11px/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.ask h5 .chip{text-transform:none;letter-spacing:0;font-family:var(--font)}
.ask h5 .spacer{flex:1}
.ask>p{font-size:14px;line-height:1.55;margin:0 0 8px}
.ask .kv{margin-top:2px}
.ask .note{margin-top:8px}
.ask .note.bad{color:var(--danger)}
.ask .files{margin-bottom:0}
.trans{white-space:pre-wrap;background:#fff;border-radius:12px;padding:10px 12px;margin-top:10px;font-size:13.5px;line-height:1.55;color:var(--ink)}
.checks{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.checks li{display:flex;gap:10px;align-items:flex-start;padding:6px 8px;border-radius:10px;font-size:14px;line-height:1.45;transition:background .15s}
.checks li:hover{background:rgba(255,255,255,.7)}
.checks input{margin-top:2px;width:17px;height:17px;accent-color:var(--ink);flex:none}
.checks li.done span{color:var(--ink-3);text-decoration:line-through}
.copyrows{display:flex;flex-direction:column}
.copyrow2{display:flex;gap:12px;align-items:flex-start;padding:8px 0;border-top:1px solid var(--rl)}
.copyrow2:first-child{border-top:0;padding-top:0}
.copyrow2 b{min-width:96px;font:400 11px/1.6 var(--mono);letter-spacing:.04em;text-transform:uppercase;color:var(--ink-3)}
.copyrow2 span{flex:1;white-space:pre-wrap;font-size:13.5px;line-height:1.55}
.waiting{display:flex;gap:10px;align-items:flex-start;margin:14px 0 0;padding:12px 14px;border-radius:var(--r-md);background:#fff8ec;color:#7a3e06;font-size:13.5px;line-height:1.5}
.waiting .ico{margin-top:2px;flex:none}
/* files: picture tiles; designer uploads in a drop zone */
.files{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px;margin:0 0 10px}
.file{border-radius:var(--r-md);overflow:hidden;background:var(--ctl);position:relative;font-size:12.5px;text-decoration:none;display:block;transition:transform .15s var(--ease),box-shadow .15s}
.file:hover{transform:translateY(-1px);box-shadow:0 0 0 1.5px var(--ink)}
.file .thumb{height:100px;background:var(--fill-2) center/cover no-repeat;display:grid;place-items:center;color:var(--ink-3);font:400 12px/1 var(--mono);letter-spacing:.06em}
.file .fn{padding:7px 10px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-2)}
.file .fx{position:absolute;top:6px;right:6px;display:flex;gap:4px;opacity:0;transition:opacity .15s}
.file:hover .fx,.file:focus-within .fx{opacity:1}
.file .fx button{border:0;background:rgba(255,255,255,.94);border-radius:999px;width:26px;height:26px;display:grid;place-items:center;cursor:pointer;color:var(--ink);box-shadow:0 2px 8px rgba(0,0,0,.12)}
.file .fx .ico{width:13px;height:13px}
.file .tag{position:absolute;top:7px;left:7px;background:rgba(11,11,15,.72);color:#fff;border-radius:999px;font:400 10px/1 var(--mono);letter-spacing:.04em;text-transform:uppercase;padding:5px 8px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.drop{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;border:1.5px dashed var(--line-2);border-radius:var(--r-md);padding:14px;text-align:center;color:var(--ink-2);font-size:13.5px;cursor:pointer;transition:background .15s,border-color .15s}
.drop:hover,.drop.over{background:var(--fill);border-color:var(--ink-3)}
.drop.over{border-color:var(--ink)}
.drop>span{display:inline-flex;align-items:center;gap:8px}
.drop .bar{flex-basis:100%;height:5px;border-radius:99px;background:var(--fill-2);overflow:hidden}
.drop .bar i{display:block;height:100%;background:var(--ink);width:0;border-radius:99px;transition:width .2s}
.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:18px;padding-top:16px;border-top:1px solid var(--rl)}
.actions .note{color:var(--ink-3)}
.acts-r{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.actions select.mini{height:38px}
/* the brief */
.one{font-family:var(--head);font-size:17px;font-weight:400;line-height:1.45;letter-spacing:-.018em;margin:0 0 4px}
.swatches{display:flex;gap:6px;flex-wrap:wrap}
.swatch{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;height:28px;padding:0 11px 0 5px;background:var(--fill);border-radius:999px}
.swatch i{width:18px;height:18px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.dirs{display:grid;gap:8px}
.dir{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;background:var(--fill);border-radius:var(--r-md);padding:12px 14px;font-size:13.5px;line-height:1.5;color:var(--ink-2)}
.dir i{grid-row:span 2;font:400 12px/1.6 var(--mono);color:var(--ink-3);font-style:normal}
.dir b{display:block;font-weight:500;color:var(--ink)}
/* activity */
.composer{display:flex;gap:8px;align-items:flex-end}
.composer textarea{min-height:44px;height:44px;border-radius:22px;padding:11px 16px;resize:none;transition:height .15s,border-color .15s}
.composer textarea:focus{height:88px;border-radius:var(--r-md)}
.feed{display:flex;flex-direction:column;margin-top:12px}
.ev{display:flex;gap:10px;padding:9px 0;font-size:13.5px;border-top:1px solid var(--rl)}
.ev:first-child{border-top:0}
.ev .tx{flex:1;min-width:0}
.ev .tx b{font-weight:500}
.ev time{color:var(--ink-3);font:400 11px/1.4 var(--mono);margin-left:6px;white-space:nowrap}
.ev .tx p{margin:3px 0 0;white-space:pre-wrap;word-break:break-word;color:var(--ink-2);line-height:1.5}
.ev.comment .tx p{background:var(--fill);border-radius:4px 14px 14px 14px;padding:8px 12px;color:var(--ink);display:inline-block;max-width:100%}
.ev.sys .tx p{font-size:13px}

/* ---------- a person ---------- */
.persona{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 22px}
.persona .grow{min-width:220px}
.persona .chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.tl{list-style:none;margin:0;padding:0}
.tl li{display:flex;gap:12px;padding:9px 0;font-size:13.5px;border-top:1px solid var(--rl)}
.tl li:first-child{border-top:0;padding-top:0}
.tl li .t{width:128px;flex:none;color:var(--ink-3);font:400 11.5px/1.7 var(--mono);letter-spacing:-.01em}
.tl li .x{min-width:0;overflow-wrap:anywhere}
.plist{display:flex;flex-direction:column}
.plist a{display:flex;align-items:center;gap:10px;padding:10px 8px;border-top:1px solid var(--rl);text-decoration:none;border-radius:12px;transition:background .15s}
.plist a:first-child{border-top:0}
.plist a:hover{background:var(--fill);border-top-color:transparent}
.plist a:hover+a{border-top-color:transparent}
.plist .mono{color:var(--ink-3);font-size:12px}
.plist .nm{flex:1;min-width:0;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- settings ---------- */
.settings{display:flex;flex-direction:column;gap:14px;max-width:980px}
.settings .card+.card{margin-top:0}
.conn{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.conn>div{border-radius:var(--r-md);background:var(--fill);padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.conn b{display:flex;align-items:center;gap:8px;font-weight:500;font-size:14px}
.conn b i{width:8px;height:8px;border-radius:50%;background:var(--line-2);flex:none}
.conn b i.on{background:var(--s-green);box-shadow:0 0 0 3px rgba(34,197,94,.18)}
.conn .note{color:var(--ink-3);font-size:12.5px}
.conn code.k{display:block;margin-top:6px;width:max-content;max-width:100%}
.rules{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px}

/* ---------- review queue: one job at a time, the files big on the left, the job and the message on the right ---------- */
.rq-bar{height:4px;border-radius:9px;background:var(--fill-2);overflow:hidden;margin:-12px 0 18px}
.rq-bar i{display:block;height:100%;background:var(--ink);border-radius:9px;transition:width .6s var(--spring)}
.rq-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,1fr);grid-template-rows:auto auto 1fr;grid-template-areas:"view head" "view notes" "view send";gap:14px;align-items:start}
.rq-grid.in>*{animation:enter .45s var(--spring) both}
.rq-grid.in>*:nth-child(2){animation-delay:.04s}.rq-grid.in>*:nth-child(3){animation-delay:.08s}.rq-grid.in>*:nth-child(4){animation-delay:.12s}
.rq-head{grid-area:head;margin:0;gap:14px;padding:20px 22px 22px}
.rq-head h2{color:#fff;font-size:clamp(24px,1vw + 17px,30px);font-weight:500;letter-spacing:-.032em;line-height:1.08;overflow-wrap:anywhere}
.rq-head .ph-top .kicker{flex:1;min-width:0}
.rq-head .ph-due b{font-size:clamp(30px,1.4vw + 20px,38px)}
.rq-head .ph-chips{margin-top:10px}
.rq-view{grid-area:view;position:sticky;top:82px;padding:10px}
.rq-notes{grid-area:notes}
.rq-notes p{font-size:14px;line-height:1.55}
.rq-send{grid-area:send;display:flex;flex-direction:column;gap:12px}
.rq-send>h2{font-size:18px;letter-spacing:-.02em}
.rq-pdf{width:100%;height:calc(100vh - 200px);min-height:460px;border:0;border-radius:var(--r-md);background:var(--fill);display:block}
.rq-imgs{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:8px;align-items:start}
.rq-pdf+.rq-imgs{margin-top:8px}
.rq-imgs a{display:block;border-radius:var(--r-md);overflow:hidden;background:var(--fill)}
.rq-imgs img{width:100%;height:auto;max-height:calc(100vh - 220px);object-fit:contain;display:block} /* the whole design, never cropped */
.rq-view .empty-state{padding:70px 20px}
.rq-files{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.rq-files a{display:flex;align-items:center;gap:10px;min-height:46px;padding:7px 12px 7px 7px;border-radius:12px;background:var(--fill);text-decoration:none;font-size:13.5px;transition:background .15s}
.rq-files a:hover{background:var(--fill-2)}
.rq-files .fi{width:32px;height:32px;border-radius:9px;background:#fff;display:grid;place-items:center;flex:none;font:400 9.5px/1 var(--mono);letter-spacing:.04em;color:var(--ink-2)}
.rq-files .fn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rq-files .sz{font:400 11.5px/1 var(--mono);color:var(--ink-3);white-space:nowrap}
.rq-checks{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.rq-checks li{display:flex;gap:9px;align-items:flex-start;font-size:13.5px;line-height:1.45;color:var(--ink-2)}
.rq-checks .ico{width:16px;height:16px;margin-top:1px;color:var(--ink-3)}
.rq-checks li.on{color:var(--ink)}
.rq-checks li.on .ico{color:var(--ok);stroke-width:2.2}
.rq-pick{display:flex;flex-direction:column;gap:7px}
.rq-pick label.check{font-size:13px;min-width:0}
.rq-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:2px}
.btn kbd{background:rgba(11,11,15,.07);margin-left:2px}
.btn.dark kbd{background:rgba(255,255,255,.16);color:rgba(255,255,255,.82)}
.pre{white-space:pre-wrap;overflow-wrap:anywhere}
.notice{background:#fff8ec;color:#7a3e06;border-radius:var(--r-sm);padding:10px 13px;font-size:13px;line-height:1.45;margin:0}
.notice.bad{background:#fff1ef;color:#9a2a1c}
.rq-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:60px 20px 64px}
.rq-empty b{font-family:var(--head);font-weight:500;font-size:22px;letter-spacing:-.025em;margin-top:6px}
.rq-empty p{color:var(--ink-3);margin-bottom:14px}
.okmark{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:var(--g-lime);background-blend-mode:overlay,normal;box-shadow:var(--rim-sm),0 18px 36px -18px rgba(25,110,55,.6);animation:popin .5s var(--spring) both}
.okmark .ico{width:32px;height:32px;color:#fff;stroke-width:2.2}
@keyframes popin{from{opacity:0;transform:scale(.6)}}
@media (max-width:1100px){
  .rq-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "view" "notes" "send";grid-template-rows:auto}
  .rq-view{position:static}
  .rq-pdf{height:70vh;min-height:360px}
}
@media (pointer:coarse){.btn kbd,.gsearch .keys{display:none}}

/* ---------- dialogs: a card in the middle, a sheet from the bottom on phones ---------- */
#layer:empty{display:none}
.scrim{position:fixed;inset:0;background:var(--scrim);display:grid;place-items:center;padding:18px;z-index:60;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);animation:fade .22s ease both}
.scrim.out{animation:fadeout .18s ease both}
.modal{position:relative;background:var(--card);border-radius:var(--r-xl);width:min(560px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:24px 26px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow-2);--ctl:var(--fill);--ctl-2:var(--fill-2);animation:pop .32s var(--spring) both}
.scrim.out .modal{animation:popout .18s ease both}
.modal.wide{width:min(780px,100%)}
.modal>h2{font-size:21px;font-weight:500;letter-spacing:-.026em;padding-right:44px;line-height:1.2}
.modal>h2+.note{margin-top:-6px}
.modal .mclose{position:absolute;top:18px;right:18px;width:36px;height:36px;border-radius:50%;border:0;background:var(--ctl);color:var(--ink-2);display:grid;place-items:center;cursor:pointer;transition:background .15s,color .15s}
.modal .mclose:hover{background:var(--ctl-2);color:var(--ink)}
.modal .mclose .ico{width:17px;height:17px}
.modal .stack{display:flex;flex-direction:column;gap:12px}
.modal .foot{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;align-items:center;margin-top:4px}
.modal .grab{display:none}
.modal .notice{background:#fff8ec;color:#7a3e06;border-radius:var(--r-sm);padding:10px 13px;font-size:13px}
.modal .notice.bad{background:#fff1ef;color:#9a2a1c}
.modal .tbl-card{box-shadow:none;padding:0;border-radius:0}
.scrim.ask .modal{width:min(440px,100%)}
.scrim+.scrim.ask{background:rgba(11,11,15,.14)}
.pick{display:flex;flex-direction:column;gap:2px;max-height:380px;overflow:auto;margin:0 -8px}
.pick button{display:flex;align-items:center;gap:12px;border:0;background:transparent;border-radius:14px;padding:10px 12px;cursor:pointer;text-align:left;transition:background .15s}
.pick button:hover{background:var(--fill)}
.pick button>span:not(.av):not(.sug){flex:1;min-width:0}
.pick .nm{font-weight:500;font-size:14px}
.pick .ld{font-size:12.5px;color:var(--ink-3)}
.pick .sug{margin-left:auto;flex:none;height:24px;padding:0 10px;border-radius:999px;background:#e8f8ee;color:#067647;font-size:12px;font-weight:450;display:inline-flex;align-items:center}
.chan-note{font-size:13px;color:var(--ink-3)}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes fadeout{to{opacity:0}}
@keyframes pop{from{opacity:0;transform:translateY(12px) scale(.97)}}
@keyframes popout{to{opacity:0;transform:translateY(6px) scale(.98)}}

/* phones: the "More" sheet with the other pages */
.sheet-scrim{position:fixed;inset:0;background:var(--scrim);z-index:70;animation:fade .22s ease both}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:71;background:var(--card);--ctl:var(--fill);--ctl-2:var(--fill-2);border-radius:28px 28px 0 0;padding:8px 12px calc(16px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 40px rgba(11,11,15,.14);animation:sheetin .38s var(--spring) both}
.sheet.out{animation:sheetout .22s ease both}
.sheet-scrim.out{animation:fadeout .22s ease both}
.sheet .grab{width:40px;height:5px;border-radius:9px;background:var(--line-2);margin:4px auto 10px}
.sheet a{display:flex;align-items:center;gap:12px;height:52px;padding:0 14px;border-radius:999px;color:var(--ink);text-decoration:none;font-weight:450;font-size:15px}
.sheet a:active{background:var(--fill)}
.sheet a[aria-current]{background:var(--ink);color:#fff}.sheet a[aria-current] .ico{color:#fff}
.sheet a .ico{width:20px;height:20px;color:var(--ink-2)}
@keyframes sheetin{from{transform:translateY(100%)}}
@keyframes sheetout{to{transform:translateY(100%)}}

/* ---------- motion: quick, soft and never in the way; all of it off with reduced motion ---------- */
.main{transition:opacity .22s var(--ease)}
.main.busy{opacity:.5}
.main.anim .page>*{animation:enter .55s var(--spring) both}
.main.anim .page>*:nth-child(2){animation-delay:.04s}.main.anim .page>*:nth-child(3){animation-delay:.08s}.main.anim .page>*:nth-child(4){animation-delay:.12s}
.main.anim .page>*:nth-child(5){animation-delay:.16s}.main.anim .page>*:nth-child(n+6){animation-delay:.2s}
.main.anim .stats>.stat{animation:enter .55s var(--spring) both}
.main.anim .stats>.stat:nth-child(2){animation-delay:.05s}.main.anim .stats>.stat:nth-child(3){animation-delay:.1s}.main.anim .stats>.stat:nth-child(4){animation-delay:.15s}.main.anim .stats>.stat:nth-child(n+5){animation-delay:.2s}
.main.anim .kcol{animation:enter .6s var(--spring) both}
.main.anim .kcol:nth-child(2){animation-delay:.04s}.main.anim .kcol:nth-child(3){animation-delay:.08s}.main.anim .kcol:nth-child(4){animation-delay:.12s}.main.anim .kcol:nth-child(5){animation-delay:.16s}
@keyframes enter{from{opacity:0;transform:translateY(10px)}}

/* ---------- laptops and tablets: the sidebar becomes an icon rail ---------- */
@media (max-width:1100px){
  .pcols{grid-template-columns:minmax(0,1fr)}
  .rules{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1100px) and (min-width:761px){
  .side{width:76px;padding:0 12px 14px;align-items:center}
  .side>.brand{padding:0;justify-content:center;width:100%}
  .side .brand .word{display:none}
  .side .brand .mark{display:block}
  .side .brand .tag{display:none}
  .navsec{font-size:0;padding:0;margin:10px 8px;height:1px;background:var(--line);width:32px}
  .nav{align-items:center}
  .nav a{width:46px;height:42px;padding:0;justify-content:center}
  .nav a span:not(.badge),.side-foot .who-text{display:none}
  .side-foot .nav a{width:46px;height:46px;padding:0}
  .nav .badge{position:absolute;top:0;right:-4px;min-width:18px;height:17px;padding:0 4px;font-size:10px;margin:0}
  .side-foot{width:100%;display:flex;justify-content:center}
  .top{padding:0 22px}
  .main{padding:20px 24px 56px}
}

/* ---------- phones ---------- */
@media (max-width:760px){
  .side{display:none}
  .top{padding:0 14px;gap:8px;height:62px}
  .top .brand{display:flex}
  .top .brand .word{display:none}
  .top .brand .mark{display:block;height:24px}
  .top .brand .tag{display:none}
  .gsearch{flex:1;width:auto;height:40px}
  .gsearch .keys,.who .who-text{display:none}
  .who{padding:0;background:transparent;height:auto}
  .who .av{width:38px;height:38px}
  .main{padding:12px 14px calc(110px + env(safe-area-inset-bottom,0px))}
  h1{font-size:27px}
  .head{margin-bottom:18px;align-items:flex-start}
  .head>.title{flex-basis:100%}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}
  .stats.hero:has(+ .stats){margin-bottom:8px}
  .stat{padding:14px 15px;min-height:116px}
  .stat .v{font-size:min(32px,calc(100cqi / (var(--n,4) * .6)))}
  .stat .d{display:none}
  .card{padding:16px}
  .toolbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -14px 14px;padding:2px 14px}
  .toolbar::-webkit-scrollbar{display:none}
  .toolbar>*{flex:none}
  .toolbar .grow{display:none}
  input.find{width:220px}
  .kanban{display:flex;gap:10px;margin:0 -14px;padding:2px 14px 14px;scroll-snap-type:x mandatory;scroll-padding:0 14px}
  .kcol{flex:0 0 84vw;max-height:none}
  .kanban{scrollbar-width:none}
  .kanban::-webkit-scrollbar{display:none}
  .stats:not(.hero) .stat{min-height:96px;padding:12px 14px}
  .stats:not(.hero) .stat .v{font-size:min(26px,calc(100cqi / (var(--n,4) * .6)))}
  .stats:not(.hero) .si{width:28px;height:28px}
  .jh .av{display:none}
  .grid2,.rules{grid-template-columns:1fr}
  .kv{grid-template-columns:1fr;gap:2px}
  .kv dd{margin-bottom:8px}
  .phero{padding:18px;border-radius:24px;gap:16px}
  .ph-top .kicker{flex-basis:100%;margin-top:0}
  .ph-foot{gap:16px}
  .jh{padding:14px 16px}
  .jb{padding:2px 16px 16px}
  .actions .btn{flex:1 1 auto}
  .actions .spacer{flex-basis:100%}
  .files{grid-template-columns:repeat(2,minmax(0,1fr))}
  .file .fx{opacity:1}
  .tl li{flex-direction:column;gap:0}
  .tl li .t{width:auto}
  .tbl td,.tbl th{padding-left:10px;padding-right:10px}
  .tbl .clip{max-width:46vw}
  .tbl-card{padding:2px 4px}
  /* a floating white tab bar; the current page is a black pill */
  .bottom{display:flex;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:40;background:rgba(255,255,255,.92);border-radius:999px;padding:6px;
    box-shadow:0 18px 40px -18px rgba(11,11,15,.28),0 0 0 1px rgba(11,11,15,.05);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px)}
  .bottom a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:52px;border-radius:999px;font-size:10.5px;font-weight:450;color:var(--ink-3);text-decoration:none;position:relative;transition:background .2s,color .2s}
  .bottom a[aria-current="page"]{background:var(--ink);color:#fff}
  .bottom .ico{width:21px;height:21px}
  .bottom .badge{position:absolute;top:3px;right:calc(50% - 22px);min-width:17px;height:16px;font-size:10px;padding:0 4px;background:var(--danger);color:#fff}
  #toasts{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  .bulk{bottom:calc(84px + env(safe-area-inset-bottom,0px));padding-left:14px}
  .bulk select{max-width:30vw}
  /* dialogs come up from the bottom */
  .scrim{place-items:end center;padding:0}
  .modal,.scrim.ask .modal{width:100%;max-height:calc(100dvh - 24px);border-radius:28px 28px 0 0;padding:26px 18px calc(18px + env(safe-area-inset-bottom,0px));animation:sheetin .38s var(--spring) both}
  .scrim.out .modal{animation:sheetout .2s ease both}
  .modal .grab{display:block;position:absolute;top:8px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:9px;background:var(--line-2)}
  .modal .mclose{top:16px;right:14px}
  .modal .foot .btn{flex:1}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
