/* v2: the app shell (compact bar, phone bottom bar, slim footer) and modern components (upload areas, steps,
   choice cards, tiles, progress, styled form controls). Loaded after base.css and app.css. */

:root{--foot-h:34px;--bnav-h:0px}
@media (max-width:760px){:root{--foot-h:26px;--bnav-h:62px}}
body{padding-bottom:calc(var(--foot-h) + var(--bnav-h) + env(safe-area-inset-bottom,0px))}
.ic{width:18px;height:18px;flex:none}
.hide-m{}
@media (max-width:760px){.hide-m{display:none!important}}

/* ---------- app bar ---------- */
.bar .wrap{padding-block:8px 0}
.bar-top{min-height:48px}
.bar h1{font-size:17px}
.bar h1 .t-short{display:none}
.bar .sub{font-size:10.5px}
.iconbtn{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:inherit;background:rgba(255,255,255,.12);box-shadow:0 0 0 1px rgba(255,255,255,.12) inset}
.iconbtn:hover{background:rgba(255,255,255,.2)}
.iconbtn .ic{width:19px;height:19px}
.seg button{min-width:36px}
@media (max-width:760px){
  .bar .wrap{padding-block:6px 6px}
  .bar-top{min-height:44px;gap:10px}
  .seal{width:34px;height:34px;border-radius:11px;font-size:11px}
  .bar h1{font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;-webkit-line-clamp:unset}
  .bar h1 .t-full{display:none}
  .bar h1 .t-short{display:inline}
  .bar .sub{display:block;font-size:10px;opacity:.65}
  .userbtn{height:38px;width:38px;padding:0;justify-content:center;border-radius:12px}
  .userbtn .av{width:28px;height:28px}
  .tabs{display:none!important}
}

/* ---------- footer (slim, fixed) ---------- */
.foot{position:fixed;left:0;right:0;bottom:0;z-index:24;height:calc(var(--foot-h) + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);
  background:color-mix(in srgb,var(--bg) 94%,transparent);box-shadow:0 -1px 0 var(--line);color:var(--muted);font-size:12px}
.foot-in{height:var(--foot-h);display:flex;align-items:center;justify-content:space-between;gap:10px 16px;min-width:0}
.foot-copy,.foot-links{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.foot-links{overflow-x:auto;scrollbar-width:none}
.foot-links::-webkit-scrollbar{display:none}
.foot a{color:var(--muted);text-decoration:none}
.foot a:hover{color:var(--ink);text-decoration:underline}
.foot b,.foot .by a{color:var(--ink);font-weight:700}
.foot .sep{opacity:.45}
.foot-copy .cp{min-width:0;overflow:hidden;text-overflow:ellipsis}
.foot-copy .sep,.foot-copy .by{flex:none}
.foot .by,.foot .by b,.foot .by a{font-size:inherit;font-family:inherit;line-height:inherit}
@media (max-width:760px){
  .foot{font-size:10.5px;height:var(--foot-h);padding-bottom:0;bottom:calc(var(--bnav-h) + env(safe-area-inset-bottom,0px));box-shadow:0 -1px 0 var(--line)}
  .foot-in{justify-content:center}
  .foot-links{display:none}
  .foot-copy{justify-content:center}
}

/* ---------- bottom bar on phones ---------- */
.bnav{display:none}
@media (max-width:760px){
  .bnav{position:fixed;left:0;right:0;bottom:0;z-index:25;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;height:calc(var(--bnav-h) + env(safe-area-inset-bottom,0px));
    padding:6px max(6px,env(safe-area-inset-left,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(6px,env(safe-area-inset-right,0px));
    background:var(--glass);-webkit-backdrop-filter:saturate(1.6) blur(18px);backdrop-filter:saturate(1.6) blur(18px);box-shadow:0 -1px 0 var(--line),0 -10px 30px -18px rgba(0,0,0,.4)}
  .bn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;color:var(--muted);text-decoration:none;font-size:10.5px;font-weight:700;border-radius:14px;min-width:0;padding:0 2px;cursor:pointer}
  .bn span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .bn .ic{width:22px;height:22px}
  .bn[aria-current="page"]{color:var(--tea-2)}
  :root[data-theme="light"] .bn[aria-current="page"]{color:var(--tea)}
  .bn[aria-current="page"] .ic{background:color-mix(in srgb,var(--turmeric) 22%,transparent);border-radius:10px;padding:3px;width:34px;height:28px;color:var(--turmeric-ink)}
  .toast{bottom:calc(var(--bnav-h) + var(--foot-h) + 12px + env(safe-area-inset-bottom,0px))}
  .savebar{bottom:calc(var(--bnav-h) + env(safe-area-inset-bottom,0px))}
}
.toast{bottom:calc(var(--foot-h) + 14px + env(safe-area-inset-bottom,0px))}
.savebar{bottom:var(--foot-h)}

/* ---------- sheets (More, user menu) ---------- */
.sheet-list{display:grid;gap:2px;margin:0 -6px}
.sheet-list + .sheet-list,.sheet-sec + .sheet-list{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.sheet-i{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:8px 10px;border-radius:12px;border:0;background:none;text-align:left;font-weight:700;font-size:14.5px;color:var(--ink);text-decoration:none;cursor:pointer}
.sheet-i:hover,.sheet-i.on{background:var(--surface-2)}
.sheet-i .ic{color:var(--muted)}
.sheet-i span{flex:1;min-width:0}
.sheet-i .go{width:16px;height:16px;opacity:.5}
.sheet-i.danger,.sheet-i.danger .ic{color:var(--fail)}
.sheet-sec{display:grid;gap:8px;margin-top:12px}
.seg.wide{display:flex;width:100%;background:var(--surface-2);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink);padding:4px}
.seg.wide button{flex:1;height:38px;opacity:1;color:var(--muted);gap:6px;display:inline-flex;align-items:center;justify-content:center}
.seg.wide button .ic{width:16px;height:16px}
.seg.wide button[aria-pressed="true"]{color:var(--on-turmeric)}
@media (max-width:760px){
  .mdl{max-height:86dvh}
  .mdl-body{padding:12px 16px 16px}
}

/* ---------- text sizes on phones ---------- */
@media (max-width:760px){
  .page{padding-block:14px 24px;gap:14px}
  .phead h2{font-size:clamp(20px,6vw,24px)}
  .hero-in{padding-block:18px 16px;gap:16px}
  .hero h2{font-size:clamp(24px,7.6vw,32px);line-height:1.1}
  html[lang="si"] .hero h2,html[lang="ta"] .hero h2{font-size:clamp(21px,6.4vw,28px);line-height:1.35}
  .hero p{font-size:14px}
  .stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .stat{padding:10px 8px;border-radius:14px;text-align:center}
  .stat b{font-size:20px}
  .stat span{font-size:10.5px;line-height:1.25;display:block}
  .card{padding:13px 14px 12px}
  .card h3{font-size:16px}
  .search input{height:46px;font-size:15px;border-radius:14px}
  .search.big input{height:50px;font-size:15.5px}
  .chip{min-height:34px;padding:0 12px;font-size:12.5px}
  .kpi b{font-size:22px}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .a-card{padding:14px}
  .gz{padding:16px;border-radius:18px}
  .gz-no{font-size:28px}
  .btn{min-height:40px;padding:0 14px}
  .phead p{font-size:13.5px}
}
html[lang="ta"] body{line-height:1.65}

/* ---------- home ---------- */
.notice{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:var(--turmeric-soft);color:var(--turmeric-ink);font-weight:700;font-size:13.5px}
.notice .ic{color:var(--turmeric-ink)}
.home-search{position:relative}
.home-search .sres{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:15}
.sec{display:grid;gap:12px;min-width:0}
.sec-top{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.sec-top h3{margin:0;font-family:var(--display);font-size:19px;line-height:1.25;display:flex;align-items:center;gap:8px}
.sec-top h3 .ic{color:var(--turmeric-ink)}
.sec-top a{font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
.tiles{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr))}
.tile{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:center;padding:14px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset,var(--shadow);
  color:var(--ink);text-decoration:none;transition:transform .2s var(--ease),box-shadow .2s;min-width:0}
.tile:hover{transform:translateY(-2px);box-shadow:0 0 0 1px color-mix(in srgb,var(--c,var(--turmeric)) 45%,var(--line)) inset,var(--shadow)}
.tile .ti{grid-row:span 2;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:var(--c,var(--tea));background:color-mix(in srgb,var(--c,var(--tea)) 14%,transparent)}
.tile .ti .ic{width:22px;height:22px}
.tile b{font-family:var(--display);font-size:15.5px;line-height:1.25;min-width:0}
.tile small{color:var(--muted);font-size:12.5px;line-height:1.35;min-width:0}
.tile .soon{position:absolute;top:10px;right:10px;font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:99px;background:var(--surface-2);color:var(--muted)}
.tile.off{opacity:.62}
@media (max-width:760px){.tiles.two-m{grid-template-columns:repeat(2,minmax(0,1fr))}.tiles.two-m .tile{grid-template-columns:1fr;text-align:left;gap:8px;padding:12px}.tiles.two-m .tile .ti{grid-row:auto;width:38px;height:38px}}
.steps{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));counter-reset:st}
.step{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:18px;background:var(--glass-2);box-shadow:0 0 0 1px var(--line) inset}
.step .n{flex:none;width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:var(--tea);color:var(--on-tea);font-weight:800;font-size:13px}
.step b{display:block;font-size:14.5px}
.step span{color:var(--muted);font-size:13px}
.latest{display:grid;gap:8px}
.latest a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink);text-decoration:none;min-width:0}
.latest a:hover{box-shadow:0 0 0 1px var(--turmeric) inset}
.latest .no{flex:none;font-family:var(--mono);font-weight:700;font-size:12px;padding:5px 9px;border-radius:9px;background:var(--turmeric-soft);color:var(--turmeric-ink)}
.latest .tt{flex:1;min-width:0}
.latest .tt b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.latest .tt small{color:var(--muted);font-size:12px}
.latest .ic.go{color:var(--muted);width:16px;height:16px}

/* ---------- compact page header (library views, sector, pages) ---------- */
.ptop{display:grid;gap:8px;padding-top:6px}
.ptop .row{display:flex;align-items:center;gap:12px;min-width:0}
.ptop .ti{flex:none;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;color:var(--c,var(--tea));background:color-mix(in srgb,var(--c,var(--tea)) 14%,transparent)}
.ptop .ti .ic{width:24px;height:24px}
.ptop h2{margin:0;font-family:var(--display);font-weight:800;font-size:clamp(21px,3.4vw,30px);line-height:1.15;letter-spacing:-.015em}
html[lang="si"] .ptop h2,html[lang="ta"] .ptop h2{line-height:1.35;letter-spacing:0}
.ptop p{margin:0;color:var(--muted);font-size:14px;max-width:70ch}
.guide{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.guide::-webkit-scrollbar{display:none}
.guide span{flex:none;display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);padding:5px 10px;border-radius:99px;background:var(--glass-2);box-shadow:0 0 0 1px var(--line) inset}
.guide .ic{width:14px;height:14px;color:var(--turmeric-ink)}
.choices + .guide{margin-top:14px;flex-wrap:wrap;overflow:visible}

/* ---------- pages (About, Privacy…) ---------- */
.prose{max-width:780px;margin-inline:auto;width:100%;display:grid;gap:4px}
.prose h3{margin:18px 0 4px;font-family:var(--display);font-size:17px;display:flex;align-items:center;gap:8px}
.prose h3::before{content:"";width:6px;height:18px;border-radius:3px;background:var(--turmeric)}
.prose p{margin:4px 0}
.prose ul{margin:2px 0 6px;padding-left:20px;display:grid;gap:4px}
.prose li::marker{color:var(--turmeric-ink)}
.prose em{color:var(--muted)}
.prose a{font-weight:700}
.page-links{display:flex;flex-wrap:wrap;gap:8px}
.page-links a{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:99px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink);text-decoration:none;font-size:13px;font-weight:700}
.page-links a[aria-current="page"]{background:var(--ink);color:var(--bg)}
.page-links .ic{width:15px;height:15px}

/* ---------- contact ---------- */
.cards-info{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}
.info-c{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink);text-decoration:none;min-width:0}
.info-c .ti{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--turmeric-soft);color:var(--turmeric-ink)}
.info-c b{display:block;font-size:12px;color:var(--muted);font-weight:700}
.info-c span{display:block;font-weight:700;overflow-wrap:anywhere;white-space:pre-line}

/* ---------- form controls (styled, not the browser's defaults) ---------- */
.sel{appearance:none;-webkit-appearance:none;padding-right:38px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353655B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
input[type="date"].inp{min-width:0}
input[type="date"]::-webkit-calendar-picker-indicator{opacity:.6;cursor:pointer}
.chk input,.radio input{appearance:none;-webkit-appearance:none;width:20px;height:20px;border-radius:6px;box-shadow:0 0 0 1.5px var(--line-2) inset;background:var(--bg);display:grid;place-items:center;flex:none;cursor:pointer;margin:0}
.radio input{border-radius:50%}
.chk input:checked,.radio input:checked{background:var(--tea);box-shadow:none}
.chk input:checked::after{content:"";width:6px;height:11px;border:solid var(--on-tea);border-width:0 2.4px 2.4px 0;transform:translateY(-1px) rotate(45deg)}
.radio input:checked::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--on-tea)}
.chk,.radio{display:inline-flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:14px;line-height:1.45}
input[type="file"].inp{padding:10px}

/* ---------- upload area ---------- */
.drop{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border-radius:16px;
  border:1.5px dashed var(--line-2);background:var(--glass-2);cursor:pointer;transition:border-color .2s,background .2s;min-width:0}
.drop:hover,.drop.over{border-color:var(--turmeric);background:var(--turmeric-soft)}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.drop .dz-ic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;color:var(--muted);overflow:hidden}
.drop .dz-ic img{width:100%;height:100%;object-fit:contain;background:#fff}
.drop .dz-t{min-width:0}
.drop .dz-t b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drop .dz-t small{display:block;color:var(--muted);font-size:12px}
.drop .dz-x{position:relative;z-index:1}
.drop.has{border-style:solid;border-color:color-mix(in srgb,var(--pass) 45%,var(--line))}
.drop.has .dz-ic{color:var(--pass)}
.drop.bad{border-color:var(--fail);background:var(--fail-soft)}
.progress{height:8px;border-radius:99px;background:var(--surface-3);overflow:hidden}
.progress i{display:block;height:100%;width:var(--p,0%);border-radius:inherit;background:linear-gradient(90deg,var(--tea-2),var(--turmeric));transition:width .3s var(--ease)}
.progress.warn i{background:var(--warn)}
.progress.bad i{background:var(--fail)}

/* ---------- steps (application form, Drive setup) ---------- */
.stepper{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.stepper::-webkit-scrollbar{display:none}
.stepper .s{flex:1 0 auto;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;font-size:12.5px;font-weight:700;color:var(--muted);white-space:nowrap}
.stepper .s i{font-style:normal;width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:var(--surface-2);font-size:11.5px}
.stepper .s.on{color:var(--ink);box-shadow:0 0 0 1.5px var(--turmeric) inset}
.stepper .s.on i{background:var(--turmeric);color:var(--on-turmeric)}
.stepper .s.done i{background:var(--pass);color:#fff}
.choices{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.choice{position:relative;display:grid;gap:6px;padding:16px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1.5px var(--line) inset;cursor:pointer;text-align:left;border:0;color:var(--ink);font:inherit}
.choice .ti{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--surface-2);color:var(--tea)}
.choice b{font-family:var(--display);font-size:16px}
.choice small{color:var(--muted);font-size:13px}
.choice[aria-pressed="true"]{box-shadow:0 0 0 2px var(--turmeric) inset,var(--shadow);background:var(--turmeric-soft)}
.choice[aria-pressed="true"]::after{content:"✓";position:absolute;top:12px;right:14px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--turmeric);color:var(--on-turmeric);font-weight:800;font-size:13px}
.wiz-acts{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.review{display:grid;gap:0}
.review div{display:grid;grid-template-columns:minmax(120px,200px) 1fr;gap:10px;padding:9px 0;border-top:1px solid var(--line);font-size:14px}
.review div:first-child{border-top:0}
.review span{color:var(--muted)}
@media (max-width:560px){.review div{grid-template-columns:1fr;gap:2px}}
.ok-box{display:grid;justify-items:center;text-align:center;gap:10px;padding:28px 18px}
.ok-box .big{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:var(--pass-soft);color:var(--pass)}
.ok-box .big .ic{width:32px;height:32px}
.ok-box .ref{font-family:var(--mono);font-weight:800;font-size:22px;letter-spacing:.04em;padding:8px 14px;border-radius:12px;background:var(--surface-2)}

/* ---------- plans ---------- */
.plans{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.plan{display:grid;gap:10px;align-content:start;padding:18px;border-radius:20px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset,var(--shadow)}
.plan.cur{box-shadow:0 0 0 2px var(--turmeric) inset,var(--shadow)}
.plan h4{margin:0;font-family:var(--display);font-size:18px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.plan .price{font-family:var(--display);font-weight:800;font-size:20px;color:var(--tea-2)}
:root[data-theme="light"] .plan .price{color:var(--tea)}
.plan ul{margin:0;padding:0;list-style:none;display:grid;gap:6px;font-size:13.5px}
.plan li{display:flex;gap:8px;align-items:flex-start}
.plan li .ic{width:16px;height:16px;color:var(--pass);margin-top:2px}
.usage{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.usage > div{display:grid;gap:6px}
.usage .top{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.usage .top b{font-family:var(--mono)}

/* ---------- settings: categories on the left (desktop), a list on phones ---------- */
.set-layout{display:grid;gap:16px;grid-template-columns:240px minmax(0,1fr);align-items:start}
.set-nav{position:sticky;top:calc(var(--bar-h,110px) + 8px);display:grid;gap:2px;padding:6px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset}
.set-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;color:var(--ink);text-decoration:none;font-weight:700;font-size:13.5px}
.set-nav a .ic{color:var(--muted)}
.set-nav a[aria-current="page"]{background:var(--ink);color:var(--bg)}
.set-nav a[aria-current="page"] .ic{color:var(--bg)}
.set-nav a small{margin-left:auto;font-family:var(--mono);font-size:11px;opacity:.6}
.set-body{display:grid;gap:14px;min-width:0}
.set-group > h4{margin:0;padding:12px 18px;font-family:var(--display);font-size:14px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid var(--line)}
html[lang="si"] .set-group > h4,html[lang="ta"] .set-group > h4{text-transform:none;letter-spacing:0;font-size:14.5px}
@media (max-width:860px){
  .set-layout{grid-template-columns:minmax(0,1fr)}
  .set-nav{position:static;display:flex;overflow-x:auto;scrollbar-width:none;padding:4px;border-radius:14px}
  .set-nav::-webkit-scrollbar{display:none}
  .set-nav a{flex:none;padding:8px 12px}
  .set-nav a small{display:none}
}
.img-set{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.img-set .prev{width:64px;height:64px;border-radius:14px;background:var(--surface-2) center/contain no-repeat;box-shadow:0 0 0 1px var(--line) inset;flex:none}
.img-set .prev.wide{width:120px}

/* ---------- small things ---------- */
.verified{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--pass)}
.verified .ic{width:15px;height:15px}
.code-box{position:relative;max-height:220px;overflow:auto;border-radius:12px;background:#0d1712;color:#d8eadf;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;line-height:1.5;padding:12px;white-space:pre}
.howto{display:grid;gap:10px;counter-reset:h}
.howto > li{list-style:none;display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start}
.howto > li::before{counter-increment:h;content:counter(h);width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--tea);color:var(--on-tea);font-weight:800;font-size:13px}
.howto{padding:0;margin:0}
.howto b{display:block}
.howto small{color:var(--muted);display:block;margin-top:2px}
.acct{display:grid;gap:10px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;padding:14px 16px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset}
.acct .ti{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--surface-2);color:var(--tea)}
.acct b{display:block}
.acct small{display:block;color:var(--muted);font-size:12.5px}
@media (max-width:560px){.acct{grid-template-columns:auto minmax(0,1fr)}.acct .a-row{grid-column:1/-1}}
.dev-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.dev-row:first-child{border-top:0}
.dev-row .ti{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);color:var(--muted)}
.dev-row.cur .ti{background:var(--pass-soft);color:var(--pass)}
.dev-row b{display:block;font-size:14px}
.dev-row small{display:block;color:var(--muted);font-size:12px}

/* ---------- phone-only parts, tabs inside pages, editors ---------- */
.show-m{display:none!important}
@media (max-width:760px){.show-m{display:flex!important}}
.wrap-in{margin-top:12px}
.ltabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:14px 0 4px;padding:2px}
.ltabs::-webkit-scrollbar{display:none}
.ltabs > a,.ltabs > button{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:12px;border:0;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink);font:inherit;font-weight:700;font-size:13px;text-decoration:none;cursor:pointer}
.ltabs > a .ic,.ltabs > button .ic{width:16px;height:16px;color:var(--muted)}
.ltabs > a i{font-style:normal;font-family:var(--mono);font-size:11px;padding:1px 6px;border-radius:99px;background:var(--surface-2);color:var(--muted)}
.ltabs > [aria-selected="true"],.ltabs > [aria-pressed="true"]{background:var(--ink);color:var(--bg);box-shadow:none}
.ltabs > [aria-selected="true"] .ic,.ltabs > [aria-pressed="true"] .ic{color:var(--bg)}
.ltabs .pv-btn{margin-left:auto}
.lpane{display:grid;gap:10px;margin-top:10px}
.lpane .pv{padding:16px;border-radius:16px;background:var(--surface-2);max-height:60vh;overflow:auto}
.icon-pick{display:flex;gap:8px;align-items:center}
.icon-pick .sel{flex:1;min-width:0}
.ip-prev{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);color:var(--tea)}
.f-help.ok{display:flex;align-items:center;gap:6px;color:var(--pass);font-weight:700}
.f-help.ok .ic{width:15px;height:15px}
.sres-i.more{justify-content:center;gap:8px;color:var(--tea-2);font-weight:700;border-top:1px solid var(--line);border-radius:0 0 12px 12px;margin-top:4px}
:root[data-theme="light"] .sres-i.more{color:var(--tea)}
.sres-i.more .t{flex:none}
.who-c{display:flex;align-items:center;gap:10px;min-width:0}
.who-c > .ic,.who-c > .ti{flex:none;width:34px;height:34px;padding:8px;border-radius:11px;background:var(--surface-2);color:var(--tea)}
.who-c > .ti{display:grid;place-items:center;padding:0}
.who-c > div{min-width:0}
.docs-list,.acct-list{display:grid;gap:8px}
a.acct{text-decoration:none;color:var(--ink)}
a.acct:hover{box-shadow:0 0 0 1.5px var(--turmeric) inset}
.search.grow{flex:1;min-width:min(100%,260px);margin:0}
button.plan{border:0;font:inherit;color:var(--ink);text-align:left;cursor:pointer}
button.plan:hover{box-shadow:0 0 0 1.5px var(--turmeric) inset,var(--shadow)}
.plan.off{opacity:.55}
.plan.cur{box-shadow:0 0 0 2px var(--pass) inset,var(--shadow)}
.chip.xs{min-height:22px;padding:0 7px;font-size:11px}

/* ---------- motion: smooth, cheap (only opacity and transform), and off when the device or Settings ask ---------- */
/* A page's parts come in one after another, once; the parts inside them don't animate again on their own. */
.page{animation:none}
/* Arriving at a page: its parts rise in one after another, quickly. Replacing the loading outline: a plain fade.
   Redrawing the same page: no motion at all (core.js view() sets .enter / .swap). */
#view.enter .page > *{animation:pageIn .34s var(--ease) both}
#view.enter .page > :nth-child(2){animation-delay:.03s}
#view.enter .page > :nth-child(3){animation-delay:.06s}
#view.enter .page > :nth-child(4){animation-delay:.09s}
#view.enter .page > :nth-child(n+5){animation-delay:.12s}
#view.swap .page > *{animation:fadeIn .24s ease both}
#view > .page.is-loading > *{animation:fadeIn .2s ease .1s both}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
/* The ambient background is painted on its own layer, so it never makes the page above it stutter. */
.fx{contain:strict;transform:translateZ(0)}
.bar,.bnav{transform:translateZ(0)}
/* Press feedback on everything tappable. */
.btn,.tile,.choice,.kpi,.chip,.acct,button.plan,.set-nav a,.ltabs > a,.ltabs > button{transition:transform .18s var(--ease),box-shadow .2s,background-color .2s,color .2s,opacity .2s}
.btn:active,.tile:active,.choice:active,.kpi:active,.chip:active,a.acct:active,button.plan:active{transform:scale(.97)}
@media (hover:hover){.tile:hover,.kpi:hover,button.plan:hover,a.acct:hover{transform:translateY(-2px)}}
/* Phone bottom bar: the highlight grows in under the icon. */
@media (max-width:760px){
  .bn .ic{transition:background-color .25s var(--ease),transform .3s var(--spring),width .3s var(--spring),padding .3s var(--spring)}
  .bn{transition:color .25s}
  .bn:active .ic{transform:scale(.88)}
  .bn[aria-current="page"] .ic{transform:translateY(-1px)}
}
.set-nav a{transition:background-color .25s var(--ease),color .25s}
html.no-anim #view .page > *{animation:none!important}

/* ---------- sideways rows: fade where there is more, grab cursor for mice ---------- */
.hs-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent)}
.hs-l{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px);mask-image:linear-gradient(90deg,transparent,#000 36px)}
.hs-l.hs-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent);mask-image:linear-gradient(90deg,transparent,#000 36px,#000 calc(100% - 36px),transparent)}
@media (hover:hover) and (pointer:fine){.hs-l,.hs-r{cursor:grab}}
.hs-drag,.hs-drag *{cursor:grabbing!important;user-select:none}

/* ---------- filter bar over lists ---------- */
.fbar{display:grid;gap:8px;min-width:0}
.fbar .search.sm input{height:44px;border-radius:14px;font-size:15px;padding:0 40px}
.fbar .search.sm svg{left:14px;width:17px;height:17px}
.fbar .chips{padding-bottom:4px}
.fbar .chip{min-height:34px;padding:0 12px;font-size:13px}
.fmeta:empty{display:none}
.fmeta .linkbtn{margin-left:auto}
.a-sec .fbar,.sec > .fbar{padding:12px 16px 4px}
.a-card:not(.a-sec) > .fbar,.a-card:not(.a-sec) > * > .fbar{padding:0 0 4px}

/* ---------- while a page loads: the loader (see below) and a thin moving line at the top ---------- */
#progress{position:fixed;left:0;top:0;z-index:120;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);opacity:0;pointer-events:none;
  background:linear-gradient(90deg,var(--turmeric),color-mix(in srgb,var(--turmeric) 60%,#fff));box-shadow:0 0 12px var(--glow)}
#progress.on{opacity:1;animation:prog 8s cubic-bezier(.1,.7,.2,1) forwards}
#progress.done{opacity:0;transform:scaleX(1);transition:transform .2s ease,opacity .35s ease .15s;animation:none}
@keyframes prog{0%{transform:scaleX(0)}20%{transform:scaleX(.45)}60%{transform:scaleX(.78)}100%{transform:scaleX(.93)}}
html.no-anim #progress{display:none}

/* ---------- a new version was published while this page was open ---------- */
.newver{position:fixed;left:50%;bottom:calc(var(--foot-h) + var(--bnav-h) + 16px + env(safe-area-inset-bottom,0px));z-index:130;display:flex;align-items:center;gap:12px;
  max-width:min(520px,calc(100vw - 24px));padding:10px 10px 10px 16px;border-radius:16px;background:var(--ink);color:var(--bg);box-shadow:0 18px 40px -16px rgba(0,0,0,.55);
  transform:translate(-50%,20px);opacity:0;transition:transform .35s var(--spring),opacity .25s}
.newver.on{transform:translate(-50%,0);opacity:1}
.newver span{flex:1;font-size:14px;font-weight:600}
.newver .ic{flex:none}

/* ---------- the site's own dropdowns and calendar (js/ui.js) ---------- */
.cs-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
.csel{width:100%;min-height:44px;display:flex;align-items:center;gap:8px;border:0;border-radius:12px;box-shadow:0 0 0 1px var(--line-2) inset;background:var(--bg);color:var(--ink);
  padding:9px 12px;font:inherit;font-size:15px;text-align:left;cursor:pointer;transition:box-shadow .2s,background-color .2s}
.csel:hover{box-shadow:0 0 0 1px color-mix(in srgb,var(--turmeric) 60%,var(--line-2)) inset}
.csel:focus-visible,.csel[aria-expanded="true"]{outline:none;box-shadow:0 0 0 1.5px var(--turmeric) inset,0 0 0 4px color-mix(in srgb,var(--turmeric) 15%,transparent)}
.csel[disabled]{opacity:.6;cursor:default}
.csel.sm{min-height:36px;padding:6px 10px;font-size:14px;border-radius:10px}
.csel .cs-v{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.csel.empty .cs-v{color:var(--muted)}
.csel .cs-c{flex:none;width:16px;height:16px;color:var(--muted);transition:transform .25s var(--ease)}
.csel[aria-expanded="true"] .cs-c{transform:rotate(180deg)}
.cd-i{flex:none;width:17px;height:17px;color:var(--muted)}
.cdate{display:block;min-width:0}
.cdate.sm{display:inline-block;min-width:150px}
.cpop-scrim{position:fixed;inset:0;z-index:89}
.cpop-scrim.dim{background:var(--scrim);animation:fadeIn .22s ease both}
.cpop{position:fixed;z-index:90;display:grid;gap:4px;max-height:min(360px,60vh);padding:6px;border-radius:16px;background:var(--surface);color:var(--ink);
  box-shadow:0 0 0 1px var(--line) inset,0 24px 60px -20px rgba(0,0,0,.45);opacity:0;transform:translateY(-6px) scale(.98);transform-origin:top center;
  transition:opacity .16s ease,transform .2s var(--ease);grid-template-rows:auto minmax(0,1fr)}
.cpop.on{opacity:1;transform:none}
.cpop.sheet-m{left:0!important;right:0;bottom:0;top:auto!important;width:auto!important;max-height:72vh;border-radius:22px 22px 0 0;padding:8px 10px calc(14px + env(safe-area-inset-bottom,0px));transform:translateY(24px)}
.cpop.sheet-m.on{transform:none}
.cp-grab{width:40px;height:4px;border-radius:99px;background:var(--line-2);justify-self:center;margin:2px 0 6px}
.cp-search{position:relative}
.cp-search .ic{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--muted)}
.cp-search input{width:100%;height:40px;border:0;border-radius:10px;background:var(--surface-2);padding:0 12px 0 36px;font:inherit;color:var(--ink)}
.cp-search input:focus{outline:none;box-shadow:0 0 0 1.5px var(--turmeric) inset}
.cp-list{overflow:auto;display:flex;flex-direction:column;gap:2px;overscroll-behavior:contain}
.cp-o{flex:none;height:auto;display:flex;align-items:center;gap:10px;min-height:40px;padding:8px 12px;border:0;border-radius:10px;background:none;color:var(--ink);font:inherit;font-size:14.5px;text-align:left;cursor:pointer}
.cp-o span{flex:1;min-width:0;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.cp-o:hover,.cp-o.kb,.cp-o:focus-visible{background:var(--surface-2);outline:none}
.cp-o[aria-selected="true"]{font-weight:700;color:var(--tea-2)}
:root[data-theme="light"] .cp-o[aria-selected="true"]{color:var(--tea)}
.cp-tick{width:16px;height:16px;opacity:0}
.cp-o[aria-selected="true"] .cp-tick{opacity:1}
.cp-o[disabled]{opacity:.45;cursor:default}
.cp-none{padding:12px;color:var(--muted);font-size:14px;text-align:center}
.cpop.cdp{max-height:none;padding:12px;grid-template-rows:none}
.cd-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 2px 6px}
.cd-top b{font-family:var(--display);font-size:15px}
.cd-nav{width:34px;height:34px;border:0;border-radius:10px;background:var(--surface-2);color:var(--ink);display:grid;place-items:center;cursor:pointer}
.cd-nav .ic{width:16px;height:16px}
.cd-wd,.cd-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.cd-wd span{font-size:11.5px;font-weight:700;color:var(--muted);padding:4px 0}
.cd-d{height:36px;border:0;border-radius:10px;background:none;color:var(--ink);font:inherit;font-size:14px;cursor:pointer;font-variant-numeric:tabular-nums}
.cd-d:hover,.cd-d:focus-visible{background:var(--surface-2);outline:none}
.cd-d.now{box-shadow:0 0 0 1.5px var(--turmeric) inset}
.cd-d.on{background:var(--tea);color:var(--on-tea);font-weight:700}
.cd-foot{display:flex;justify-content:space-between;padding:8px 4px 0}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
input[type=number]{-moz-appearance:textfield;appearance:textfield}

/* ---------- spreadsheet import (js/importer.js) ---------- */
.mdl.wide.iw{max-width:min(980px,calc(100vw - 24px))}
.iw .mdl-body{padding-top:4px}
.iw-pad{display:grid;gap:14px;margin-top:14px;min-width:0}
.iw-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.iw-foot > span{flex:1}
.iw-or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12.5px;text-transform:uppercase;letter-spacing:.08em}
.iw-or::before,.iw-or::after{content:"";flex:1;height:1px;background:var(--line)}
.iw-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.iw-sum{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:var(--surface-2);font-size:14px}
.iw-sum .ic{color:var(--tea-2);flex:none}
.iw-map{display:grid;gap:8px}
.iw-col{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;transition:box-shadow .2s}
.iw-col.on{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--pass) 55%,var(--line)) inset}
.iw-h{min-width:0}
.iw-h b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iw-h small{display:block;color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.iw-arrow{width:18px;height:18px;color:var(--muted);flex:none}
.iw-col.on .iw-arrow{color:var(--pass)}
.iw-vals,.iw-match{display:grid;gap:8px;padding:12px;border-radius:16px;background:var(--surface-2)}
.iw-v{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;font-size:14px}
.iw-v > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.choice.sm{padding:10px 14px;border-radius:14px}
.choice.sm b{font-size:14px}
.choice[disabled]{opacity:.45;cursor:default}
.iw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.iw-stats > div{padding:12px 14px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset}
.iw-stats b{display:block;font-family:var(--display);font-size:24px;line-height:1.1}
.iw-stats span{font-size:12.5px;color:var(--muted)}
.iw-stats .warn b{color:var(--warn)}
.iw-prev td{white-space:nowrap;max-width:240px;overflow:hidden;text-overflow:ellipsis}
.iw-prog{display:grid;gap:8px;padding:12px 14px;border-radius:14px;background:var(--surface-2);font-size:14px}
.iw-errs{display:grid;gap:6px;width:100%;max-width:560px;text-align:left}
.iw-errs > div{display:flex;gap:10px;padding:8px 12px;border-radius:10px;background:var(--surface-2);font-size:13.5px}
.iw-errs b{flex:none}
@media (max-width:640px){
  .iw-col,.iw-v{grid-template-columns:minmax(0,1fr)}
  .iw-arrow{display:none}
  .iw-stats{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}

/* ---------- Explore (js/explore.js) ---------- */
.ex{padding-top:14px}
.ex-top{display:grid;gap:12px;min-width:0}
.ex-q input{padding-right:46px}
.ex-q .clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:10px;background:var(--surface-2);color:var(--muted);display:grid;place-items:center;cursor:pointer}
.ex-q .clear .ic{width:15px;height:15px}
.ex-types{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:4px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;width:max-content;max-width:100%}
.ex-types::-webkit-scrollbar{display:none}
.ex-types button{flex:none;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border:0;border-radius:12px;background:none;color:var(--ink);font:inherit;font-weight:700;font-size:14px;cursor:pointer;transition:background-color .25s var(--ease),color .2s}
.ex-types button .ic{width:17px;height:17px;color:var(--muted)}
.ex-types button i{font-style:normal;font-family:var(--mono);font-size:11.5px;padding:1px 8px;border-radius:99px;background:var(--surface-2);color:var(--muted)}
.ex-types button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.ex-types button[aria-pressed="true"] .ic,.ex-types button[aria-pressed="true"] i{color:var(--bg)}
.ex-types button[aria-pressed="true"] i{background:color-mix(in srgb,var(--bg) 18%,transparent)}
.ex-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px;align-items:start;margin-top:14px}
.ex-side{position:sticky;top:calc(var(--bar-h,110px) + 10px);display:grid;gap:8px;max-height:calc(100vh - var(--bar-h,110px) - 40px);overflow:auto;padding:10px;border-radius:20px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;scrollbar-gutter:stable}
.ex-side-h{padding:4px 6px 2px;font-family:var(--display);font-size:15px}
.ex-main{display:grid;gap:10px;min-width:0}
.ex-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ex-meta{flex:1;color:var(--muted);font-size:13.5px;font-weight:600}
.ex-sort{width:auto;min-width:170px}
.ex-bar .csel.sm{width:auto;min-width:170px}
.ex-pills{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.ex-pills:empty{display:none}
.pill-x{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px 0 12px;border:0;border-radius:99px;background:var(--tea);color:var(--on-tea);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.pill-x .ic{width:14px;height:14px;opacity:.8}
.ex-note{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:color-mix(in srgb,var(--turmeric) 14%,var(--surface));font-size:14px}
.ex-note .ic{color:var(--turmeric-ink,var(--turmeric));flex:none}
.ex-list{display:grid;gap:8px;transition:opacity .2s}
.ex-list.busy{opacity:.5}
.ex-end{min-height:40px;display:grid;place-items:center}
.ex-f{border-radius:14px;background:var(--surface-2);overflow:hidden}
.ex-f summary{list-style:none;display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-size:14px}
.ex-f summary::-webkit-details-marker{display:none}
.ex-f summary .ic{width:16px;height:16px;color:var(--muted)}
.ex-f summary b{flex:1}
.ex-f summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s;margin-right:4px}
.ex-f[open] summary::after{transform:rotate(-135deg)}
.ex-fn{font-family:var(--mono);font-size:11px;padding:1px 7px;border-radius:99px;background:var(--tea);color:var(--on-tea)}
.ex-fq{position:relative;margin:0 10px 6px}
.ex-fq .ic{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:14px;height:14px;color:var(--muted)}
.ex-fq input{width:100%;height:34px;border:0;border-radius:10px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;padding:0 10px 0 30px;font:inherit;font-size:13.5px;color:var(--ink)}
.ex-opts{display:grid;gap:1px;padding:0 6px 6px;max-height:280px;overflow:auto}
.ex-o{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;cursor:pointer;font-size:13.5px}
.ex-o:hover{background:var(--surface)}
.ex-o input{appearance:none;-webkit-appearance:none;width:18px;height:18px;flex:none;margin:0;border-radius:6px;box-shadow:0 0 0 1.5px var(--line-2) inset;background:var(--surface);cursor:pointer;display:grid;place-items:center;transition:background-color .15s}
.ex-o input:checked{background:var(--tea);box-shadow:none}
.ex-o input:checked::after{content:"";width:9px;height:5px;border-left:2px solid var(--on-tea);border-bottom:2px solid var(--on-tea);transform:translateY(-1px) rotate(-45deg)}
.ex-o span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.ex-o i{font-style:normal;font-family:var(--mono);font-size:11.5px;color:var(--muted)}
.ex-f .linkbtn{margin:0 12px 10px;font-size:13px}
.ex-yr{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 10px 10px}
.ex-yr label{display:grid;gap:4px;font-size:12px;color:var(--muted);font-weight:700}
.ex-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink);text-decoration:none;
  animation:fadeUp .35s var(--ease) both;transition:transform .2s var(--ease),box-shadow .2s}
.ex-card:hover{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--turmeric) 55%,var(--line)) inset,var(--shadow);transform:translateY(-1px)}
.ex-card:active{transform:scale(.99)}
.ex-ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--c,var(--tea)) 14%,var(--surface-2));color:var(--c,var(--tea-2))}
.ex-card.doc .ex-ic{color:var(--fail)}
.ex-card.rule .ex-ic{color:var(--turmeric-ink,var(--turmeric))}
.ex-b{display:grid;gap:3px;min-width:0}
.ex-k{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
html[lang="si"] .ex-k,html[lang="ta"] .ex-k{text-transform:none;letter-spacing:0}
.ex-t{font-family:var(--display);font-weight:700;font-size:16px;line-height:1.3}
.ex-b small{color:var(--muted);font-size:12.5px}
.ex-d{color:var(--muted);font-size:13.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ex-d:empty{display:none}
.ex-m{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-size:12.5px;color:var(--muted);margin-top:2px}
.ex-m > span{display:inline-flex;align-items:center;gap:4px}
.ex-m .ic{width:14px;height:14px}
.tagc{padding:2px 8px;border-radius:8px;background:var(--surface-2);color:var(--ink);font-size:11.5px;font-weight:700}
.ex-go{width:18px;height:18px;color:var(--muted)}
.ex-empty{display:grid;justify-items:center;gap:6px;padding:40px 16px}
.ex-empty .ic{width:30px;height:30px;color:var(--muted)}
.ex-sheet-wrap{position:fixed;inset:0;z-index:95}
.ex-scrim{position:absolute;inset:0;background:var(--scrim);opacity:0;transition:opacity .25s}
.ex-sheet{position:absolute;left:0;right:0;bottom:0;max-height:86vh;display:grid;grid-template-rows:auto auto minmax(0,1fr);border-radius:24px 24px 0 0;background:var(--surface);padding:8px 12px calc(12px + env(safe-area-inset-bottom,0px));transform:translateY(100%);transition:transform .32s var(--ease)}
.ex-sheet-wrap.on .ex-scrim{opacity:1}
.ex-sheet-wrap.on .ex-sheet{transform:none}
.ex-sheet-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 4px 10px;font-family:var(--display);font-size:16px}
.ex-sheet-b{overflow:auto;display:grid;gap:8px;align-content:start;padding-bottom:6px}
@media (max-width:760px){
  .ex-layout{grid-template-columns:minmax(0,1fr)}
  .ex-card{grid-template-columns:auto minmax(0,1fr);padding:12px}
  .ex-go{display:none}
  .ex-ic{width:38px;height:38px;border-radius:12px}
  .ex-types{width:100%}
  .ex-types button{flex:1 0 auto;justify-content:center;padding:0 10px;white-space:nowrap;font-size:13px;gap:6px}
  .ex-types button .ic{display:none}
}

/* ---------- search anything (js/palette.js) ---------- */
.pal-wrap{position:fixed;inset:0;z-index:120;display:grid;justify-items:center;align-items:start;padding:10vh 12px 12px}
.pal-scrim{position:absolute;inset:0;background:var(--scrim);opacity:0;transition:opacity .2s;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.pal{position:relative;width:min(640px,100%);max-height:72vh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;border-radius:22px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset,0 40px 90px -30px rgba(0,0,0,.6);
  opacity:0;transform:translateY(-10px) scale(.98);transition:opacity .2s,transform .25s var(--ease);overflow:hidden}
.pal-wrap.on .pal-scrim{opacity:1}
.pal-wrap.on .pal{opacity:1;transform:none}
.pal-q{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.pal-q .ic{width:20px;height:20px;color:var(--muted);flex:none}
.pal-q input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:17px;color:var(--ink);outline:none}
.pal-q input::-webkit-search-cancel-button{display:none}
kbd{font-family:var(--mono);font-size:11px;padding:2px 6px;border-radius:6px;background:var(--surface-2);color:var(--muted);box-shadow:0 1px 0 var(--line-2)}
.pal-body{overflow:auto;padding:8px;display:grid;gap:6px;align-content:start}
.pal-g{display:grid;gap:2px}
.pal-h{padding:6px 10px 2px;font-size:11.5px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
html[lang="si"] .pal-h,html[lang="ta"] .pal-h{text-transform:none;letter-spacing:0}
.pal-r{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 10px;border-radius:12px;color:var(--ink);text-decoration:none}
.pal-r.on,.pal-r:hover{background:var(--surface-2)}
.pal-r.on .pal-go{opacity:1;transform:none}
.pal-i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--surface-2);color:var(--tea-2)}
.pal-r.on .pal-i{background:var(--surface)}
.pal-i .ic{width:17px;height:17px}
.pal-t{display:grid;min-width:0}
.pal-t b{font-weight:700;font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pal-t small{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pal-go{width:16px;height:16px;color:var(--muted);opacity:0;transform:translateX(-4px);transition:opacity .15s,transform .2s}
.pal-r.all{margin-top:4px;box-shadow:0 0 0 1px var(--line) inset}
.pal-load{display:grid;place-items:center;padding:14px}
.pal-tip{margin:6px 10px;color:var(--muted);font-size:12.5px}
.pal-foot{display:flex;gap:16px;justify-content:flex-end;padding:8px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
@media (max-width:640px){
  .pal-wrap{padding:0;align-items:stretch}
  .pal{width:100%;max-height:none;height:100%;border-radius:0}
  .pal-foot{display:none}
}

/* ---------- import with AI ---------- */
.ai-prompt .code-box{max-height:340px;white-space:pre-wrap;word-break:break-word;font-size:12px}
.ai-sum{display:grid;gap:12px;margin-top:12px}
.notice.bad{background:color-mix(in srgb,var(--fail) 12%,var(--surface));}
.notice.bad .ic{color:var(--fail)}

/* ---------- paying for a plan ---------- */
.pay{display:grid;gap:14px}
.pay-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}
.pay-top > div{display:grid;gap:4px;padding:14px 16px;border-radius:16px;background:var(--surface-2)}
.pay-amt{font-family:var(--display);font-size:28px;line-height:1.1}
.pay-ref{font-size:20px;letter-spacing:.04em}
.pay-top small{color:var(--muted);font-size:12.5px}
.banks{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.bank{display:grid;gap:6px;padding:14px 16px;border:0;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;text-align:left;font:inherit;color:var(--ink)}
button.bank{cursor:pointer}
button.bank:hover{box-shadow:0 0 0 1.5px var(--turmeric) inset}
.bank.off{opacity:.55}
.bk-r{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:14px}
.bk-r span{color:var(--muted);font-size:12.5px}
.iconbtn.sm{width:30px;height:30px;border-radius:9px}
.iconbtn.sm .ic{width:15px;height:15px}
.plan-len{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
.plan-len .choice{justify-items:start}
.pay-proof{margin-top:4px}

/* ---------- supplier history ---------- */
.hist{display:grid;gap:0;padding:4px 16px 12px}
.hist-r{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.hist-r:first-child{border-top:0}
.hist-i{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--surface-2);color:var(--tea-2)}
.hist-i.created{background:var(--pass-soft);color:var(--pass)}
.hist-i.deleted{background:color-mix(in srgb,var(--fail) 12%,var(--surface));color:var(--fail)}
.hist-i .ic{width:17px;height:17px}
.hist-b{display:grid;gap:2px;min-width:0}
.hist-b small{color:var(--muted);font-size:12.5px}
.hist-d{display:grid;gap:4px;margin-top:6px}
.hist-d span{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13.5px}
.hist-d i{font-style:normal;color:var(--muted);min-width:120px}
.hist-d s{color:var(--muted)}
.hist-d em{font-style:normal;font-weight:700}
.hist-d .ic{width:14px;height:14px;color:var(--muted)}
.hist > .btn{justify-self:center;margin-top:8px}

/* ---------------------------------------------------------------- access matrix (roles, one person, my access) */
.pm{display:grid;gap:8px}
.pm-row{display:grid;grid-template-columns:minmax(170px,230px) minmax(0,1fr);gap:10px 14px;align-items:center;padding:10px 12px;border-radius:var(--r-sm);background:var(--surface-2);box-shadow:0 0 0 1px var(--line) inset}
.pm-mod{display:flex;align-items:center;gap:10px;min-width:0}
.pm-mod b{display:block;font-size:14px}.pm-mod small{color:var(--muted);font-size:12px}
.pm-i{flex:none;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--surface);color:var(--tea-2);box-shadow:0 0 0 1px var(--line) inset}
.pm-i svg{width:17px;height:17px}
.pm-all{margin-left:auto;border:0;background:none;color:var(--link);font:inherit;font-size:12px;font-weight:700;cursor:pointer;padding:4px 6px;border-radius:8px}
.pm-all:hover{background:var(--surface)}
.pm-acts{display:flex;flex-wrap:wrap;gap:6px}
.pm-a{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 12px;border-radius:99px;border:0;font:inherit;font-size:13px;font-weight:600;cursor:pointer;
  background:var(--surface);color:var(--muted);box-shadow:0 0 0 1px var(--line-2) inset;transition:background .18s var(--ease),color .18s var(--ease),box-shadow .18s var(--ease),transform .12s var(--ease)}
.pm-a:active{transform:scale(.96)}
.pm-a svg{width:14px;height:14px}
.pm-a.on{background:var(--pass-soft);color:var(--pass);box-shadow:0 0 0 1px color-mix(in srgb,var(--pass) 35%,transparent) inset}
.pm-a.grant{background:var(--turmeric-soft);color:var(--turmeric-ink);box-shadow:0 0 0 1.5px var(--turmeric) inset}
.pm-a.deny{background:var(--fail-soft);color:var(--fail);box-shadow:0 0 0 1px color-mix(in srgb,var(--fail) 40%,transparent) inset}
.pm-a.deny span{text-decoration:line-through}
.pm-a em{font-style:normal;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;opacity:.8}
.pm.locked .pm-a{cursor:default}
.pm-key{margin:2px 0 0;font-size:12.5px;color:var(--muted)}
.pm-sec{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
@media (max-width:640px){.pm-row{grid-template-columns:minmax(0,1fr)}}
.role-bar{justify-content:space-between;flex-wrap:wrap}
.role-bar .seg,.tabs-seg,.acc-tabs{background:var(--surface-2);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink)}
.role-bar .seg button,.tabs-seg button,.acc-tabs button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;opacity:1;color:var(--muted)}
.role-bar .seg button[aria-selected="true"],.tabs-seg button[aria-selected="true"],.acc-tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08),0 0 0 1px var(--line) inset}
.role-bar .seg small{opacity:.7}
.tabs-seg,.acc-tabs{display:flex;max-width:100%;overflow-x:auto;scrollbar-width:none}
.tabs-seg::-webkit-scrollbar,.acc-tabs::-webkit-scrollbar{display:none}
.tabs-seg button,.acc-tabs button{flex:none}
.role-card{display:grid;gap:12px;transition:box-shadow .2s var(--ease)}
.role-card.dirty{box-shadow:0 0 0 2px var(--turmeric) inset,var(--shadow)}
.role-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.role-h h4{margin:0 0 2px}.role-h small{color:var(--muted)}.role-h p{margin:6px 0 0}
.role-foot{display:flex;justify-content:flex-end;align-items:center;gap:10px}
.role.cust{background:var(--turmeric-soft);color:var(--turmeric-ink);display:inline-flex;align-items:center;gap:4px}
.role.cust svg{width:12px;height:12px}

/* ---------------------------------------------------------------- avatars and my profile */
.av{--av-h:150;background:hsl(var(--av-h) 45% 88%);color:hsl(var(--av-h) 55% 26%)}
:root[data-theme="dark"] .av:not(.pic){background:hsl(var(--av-h) 30% 24%);color:hsl(var(--av-h) 60% 82%)}
.av.pic{background-size:cover;background-position:center;background-color:var(--surface-2);color:transparent}
.av.xl{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:32px;flex:none}
.acc .acc-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.acc-who{flex:1;min-width:200px;display:grid;gap:2px}
.acc-who b{font-family:var(--display);font-size:20px}.acc-who small{color:var(--muted)}.acc-who p{margin:4px 0}
.av-btn{position:relative;border:0;background:none;padding:0;border-radius:50%;cursor:pointer}
.av-btn .av{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--line-2)}
.av-cam{position:absolute;right:-2px;bottom:-2px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--turmeric);color:var(--on-turmeric);box-shadow:0 0 0 3px var(--surface);transition:transform .2s var(--ease)}
.av-cam svg{width:15px;height:15px}
.av-btn:hover .av-cam{transform:scale(1.1)}
.av-edit{display:grid;gap:14px;justify-items:center}.av-edit .drop{width:100%}
.av-big .av.xl{width:132px;height:132px;font-size:48px}
.acc-body{display:grid;gap:16px;animation:fadeIn .2s ease both}
.prefs{display:grid;gap:4px}
.pref-row{display:flex;justify-content:space-between;align-items:center;gap:12px 20px;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--line)}
.pref-row b{display:block}.pref-row small{color:var(--muted);font-size:12.5px;display:block;max-width:420px}
.seg.pref{background:var(--surface-2);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink);flex-wrap:wrap;border-radius:14px}
.seg.pref button{display:inline-flex;gap:6px;align-items:center;opacity:1;color:var(--muted);border-radius:11px}
.seg.wrap{flex-wrap:wrap;border-radius:14px;background:var(--surface-2);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink)}
.seg.wrap button{display:inline-flex;gap:6px;align-items:center;height:36px;opacity:1;color:var(--muted);border-radius:11px}
.acc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.acc-m{display:flex;gap:10px;padding:12px;border-radius:var(--r-sm);background:var(--surface-2)}
.acc-acts{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:4px;font-size:12.5px}
.acc-acts span{display:inline-flex;align-items:center;gap:3px}.acc-acts svg{width:12px;height:12px}
.acc-acts .on{color:var(--pass)}.acc-acts .off{color:var(--faint);text-decoration:line-through}

/* Personal settings: compact lists, calmer motion, bigger text */
html.compact .a-card{padding:12px 14px}
html.compact .dt td,html.compact .dt th{padding-block:6px}
html.compact .page{gap:10px}
html.calm *,html.calm *::before,html.calm *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
html[data-text="large"] #view{zoom:1.1}
html[data-text="larger"] #view{zoom:1.22}

/* ---------------------------------------------------------------- storage: capacity, folders, workspaces, moves */
.st-body{display:grid;gap:16px;min-width:0;grid-template-columns:minmax(0,1fr)}
.cap-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.cap{display:grid;gap:6px}.cap.off{opacity:.6}.cap.best{box-shadow:0 0 0 2px var(--turmeric) inset,var(--shadow)}
.cap-h{display:flex;justify-content:space-between;gap:8px;align-items:center}.cap small{color:var(--muted)}
.cap .top{display:flex;justify-content:space-between;font-size:12.5px;margin-top:6px}
.progress.soft i{background:linear-gradient(90deg,color-mix(in srgb,var(--tea-2) 55%,transparent),color-mix(in srgb,var(--turmeric) 55%,transparent))}
.fs{display:grid;gap:14px}
.fs-crumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:14px}
.fs-crumbs svg{width:14px;height:14px;color:var(--faint)}
.fs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px}
.fs-f{display:flex;gap:12px;align-items:center;text-align:left;border:0;font:inherit;color:inherit;cursor:pointer;padding:12px;border-radius:var(--r-sm);background:var(--surface-2);
  box-shadow:0 0 0 1px var(--line) inset;transition:transform .15s var(--ease),box-shadow .15s var(--ease),background .15s var(--ease)}
.fs-f:hover{transform:translateY(-2px);background:var(--surface);box-shadow:0 0 0 1px var(--line-2) inset,var(--shadow)}
.fs-f .ti,.fs-row .ti,.ts-row .ti{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--turmeric-soft);color:var(--turmeric-ink)}
.fs-n{min-width:0;display:grid;gap:2px}.fs-n b{overflow-wrap:anywhere}.fs-n small{color:var(--muted);font-size:12px}
.fs-n em{font-style:normal;font-size:11px;font-weight:700;color:var(--tea-2)}
.fs-path{font-size:11px!important;opacity:.8;overflow-wrap:anywhere}
.fs-files{display:grid;gap:6px}
.fs-row{display:flex;gap:12px;align-items:center;padding:10px 12px;border-radius:var(--r-sm);text-decoration:none;color:inherit;background:var(--surface-2);transition:background .15s var(--ease)}
.fs-row:hover{background:var(--surface-3)}.fs-row.old{opacity:.72}
.fs-row .fs-n{flex:1}
.fs-imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,170px),1fr));gap:12px}
.fs-img{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:5px;min-width:0;padding:8px 8px 10px;border-radius:var(--r-sm);background:var(--surface-2);text-decoration:none;color:inherit;font-size:12.5px;
  transition:transform .15s var(--ease),box-shadow .15s var(--ease)}
.fs-img:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.fs-img > .fs-thumb{display:block;width:100%;aspect-ratio:4 / 3;border-radius:10px;background:var(--surface) center/contain no-repeat;background-origin:content-box;padding:10px;box-sizing:border-box;box-shadow:0 0 0 1px var(--line) inset}
.fs-img b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fs-img small{min-width:0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fs-img > .place{justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.place{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:99px;background:var(--surface);color:var(--muted);box-shadow:0 0 0 1px var(--line) inset;white-space:nowrap;flex:none}
.place svg{width:12px;height:12px}.place.drive{color:var(--tea-2)}.place.pool{color:var(--faint)}
.ts-list{display:grid;gap:8px}
.ts-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(180px,300px) auto;gap:10px 12px;align-items:center;padding:10px 12px;border-radius:var(--r-sm);background:var(--surface-2)}
@media (max-width:720px){.ts-row{grid-template-columns:auto minmax(0,1fr)}.ts-row .csel,.ts-row select,.ts-row .btn{grid-column:1 / -1}}
.mv-form{display:grid;gap:12px}
.mv-run{display:grid;gap:10px}.mv-run ul{margin:0;padding-left:18px;max-height:180px;overflow:auto}

/* ---------------------------------------------------------------- ad places (Settings > Ads; off by default) */
.ad{position:relative;display:grid;gap:4px;padding:10px 12px 12px;border-radius:var(--r);background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;min-height:110px;overflow:hidden;contain:layout}
.ad-l{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
.ad:has(ins[data-ad-status="unfilled"]){display:none}
.ex-list > .ad{grid-column:1 / -1}

/* ---------------------------------------------------------------- Explore, v2 look (overrides the first one above) */
.ex-head{display:grid;gap:0;border-radius:22px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset,var(--shadow);overflow:hidden}
.ex-head .search.big{margin:0}
.ex-head .search.big input{border-radius:0;box-shadow:none;background:transparent;height:60px;font-size:16.5px}
.ex-types{display:flex;gap:2px;width:100%;max-width:100%;padding:0 10px;border-radius:0;background:none;box-shadow:none;border-top:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.ex-types button{position:relative;flex:none;height:48px;padding:0 14px;border-radius:0;background:none;color:var(--muted);font-weight:700;transition:color .2s}
.ex-types button::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--turmeric);transform:scaleX(0);transition:transform .25s var(--ease)}
.ex-types button:hover{color:var(--ink)}
.ex-types button[aria-selected="true"]{color:var(--ink);background:none}
.ex-types button[aria-selected="true"]::after{transform:scaleX(1)}
.ex-types button[aria-selected="true"] .ic{color:var(--turmeric-ink)}
.ex-types button i{background:var(--surface-2);color:var(--muted)}
.ex-types button[aria-selected="true"] i{background:var(--turmeric-soft);color:var(--turmeric-ink)}

.ex-layout{grid-template-columns:280px minmax(0,1fr);gap:22px;margin-top:18px}
.ex-side{gap:0;padding:6px 0 10px;border-radius:20px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset}
.ex-side-h{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px 10px;border-bottom:1px solid var(--line)}
.ex-side-h b{display:inline-flex;align-items:center;gap:8px;font-family:var(--display);font-size:15px}
.ex-side-h b .ic{width:16px;height:16px;color:var(--muted)}
.ex-side-h .linkbtn{font-size:13px}
.ex-f{border-radius:0;background:none;border-bottom:1px solid var(--line)}
.ex-f:last-child{border-bottom:0}
.ex-f summary{padding:13px 16px;font-size:13.5px}
.ex-f summary b{font-weight:700}
.ex-opts{padding:0 8px 10px;gap:0}
.ex-o{padding:7px 8px;border-radius:10px;transition:background .15s}
.ex-o:hover{background:var(--surface-2)}
.ex-o i{padding:1px 7px;border-radius:99px;background:var(--surface-2)}
.ex-o:has(input:checked){font-weight:700}
.ex-o:has(input:checked) i{background:var(--tea);color:var(--on-tea)}
.ex-fq{margin:0 14px 8px}
.ex-f .linkbtn{margin:0 16px 12px}
.ex-dates{display:grid;gap:10px;padding:0 14px 14px}
.ex-presets,.ex-years{display:flex;flex-wrap:wrap;gap:6px}
.ex-pre,.ex-yb{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border:0;border-radius:99px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;
  background:var(--surface-2);color:var(--ink);box-shadow:0 0 0 1px var(--line) inset;transition:background .18s,color .18s,transform .12s}
.ex-pre:active,.ex-yb:active{transform:scale(.96)}
.ex-pre[aria-pressed="true"],.ex-yb[aria-pressed="true"]{background:var(--tea);color:var(--on-tea);box-shadow:none}
.ex-yb i{font-style:normal;font-family:var(--mono);font-size:10.5px;opacity:.7}
.ex-range{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ex-range label{display:grid;gap:4px;font-size:11.5px;font-weight:700;color:var(--muted)}
.ex-range .inp,.ex-range .cdate{width:100%;min-width:0}

.ex-bar{gap:10px 14px;padding:2px 2px 0}
.ex-meta{color:var(--ink);font-family:var(--display);font-size:15px;font-weight:700}
.pill-x{height:30px;background:var(--turmeric-soft);color:var(--turmeric-ink);box-shadow:0 0 0 1px color-mix(in srgb,var(--turmeric) 40%,transparent) inset;transition:background .18s}
.pill-x:hover{background:color-mix(in srgb,var(--turmeric) 26%,var(--surface))}

.ex-card{padding:16px 18px;gap:16px;border-radius:18px;transition:box-shadow .2s var(--ease),transform .2s var(--ease)}
.ex-card .ex-ic{position:relative;width:48px;height:56px;border-radius:12px}
.ex-card.doc .ex-ic{background:color-mix(in srgb,var(--fail) 9%,var(--surface-2));color:var(--fail)}
.ex-ic em{position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);font-style:normal;font-family:var(--mono);font-size:10px;font-weight:700;padding:1px 6px;border-radius:6px;background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--line) inset;white-space:nowrap}
.ex-k{display:flex;flex-wrap:wrap;align-items:center;gap:6px;text-transform:none;letter-spacing:0;font-size:12px}
.ex-k .kb{padding:2px 8px;border-radius:7px;background:var(--surface-2);color:var(--muted);font-weight:700}
.ex-k .kb.ed-extraordinary{background:var(--turmeric-soft);color:var(--turmeric-ink)}
.ex-k .mono{color:var(--ink);font-weight:700}
.ex-t{font-size:16.5px}
.ex-date{color:var(--ink);font-weight:600}
.ex-list{gap:10px}
.ex-list.busy{opacity:.55;transition:opacity .15s}

/* The filter panel stays on the left on wide screens; below 1000 px it is the "Filters" button and a bottom sheet. */
.ex-fbtn{display:none}
@media (max-width:1000px){
  .ex-layout{grid-template-columns:minmax(0,1fr)}
  .ex-side{display:none}
  .ex-fbtn{display:inline-flex}
}
@media (max-width:640px){
  .ex-head{border-radius:18px}
  .ex-head .search.big input{height:54px;font-size:15.5px}
  .ex-types{padding:0 2px;gap:0}
  .ex-types button{flex:1 1 0;min-width:0;justify-content:center;padding:0 4px;font-size:12.5px;gap:4px}
  .ex-types button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ex-types button .ic{display:none}
  .ex-types button i{font-size:10.5px;padding:0 6px}
  .ex-bar{flex-wrap:nowrap}
  .ex-bar .ex-meta{flex:1;min-width:0;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ex-bar .csel.sm,.ex-sort{min-width:0;width:auto;max-width:46%}
  /* Phones: the text takes the whole width; the document number moves to the top line. */
  .ex-card{grid-template-columns:minmax(0,1fr);padding:14px 14px 12px;gap:0}
  .ex-card .ex-ic{display:none}
  .ex-m{gap:4px 10px}
}
.ex-sheet-b .ex-f{border-bottom:1px solid var(--line)}
.ex-sheet-b .ex-dates{padding:0 6px 12px}

/* ================================================================ phones: content first, nothing stacked
   (desktop is untouched; everything here is inside max-width queries) */
@media (max-width:760px){
  /* The footer ends the page instead of being a second fixed bar over the bottom bar. */
  .foot{position:static;height:auto;padding:18px 0 calc(var(--bnav-h) + 18px + env(safe-area-inset-bottom,0px));background:none;box-shadow:none;font-size:11.5px}
  .foot-in{height:auto;flex-direction:column;align-items:center;gap:8px}
  .foot-copy{white-space:normal;flex-wrap:wrap;justify-content:center;text-align:center;row-gap:2px}
  .foot-links{display:flex;flex-wrap:wrap;justify-content:center;white-space:normal;overflow:visible;gap:4px 12px}
  #view{min-height:calc(100dvh - var(--bar-h,64px) - 60px)}
  .page{padding-bottom:8px}
  .savebar{bottom:calc(var(--bnav-h) + env(safe-area-inset-bottom,0px))}
}
@media (max-width:640px){
  html[lang="si"] body{line-height:1.6}
  .page{gap:12px;padding-top:12px}
  /* Page head: title, a short line, then the actions side by side (two per row), never one per row. */
  .phead{gap:4px}
  .phead h2{font-size:20px}
  .phead p{font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .phead-row{gap:10px}
  .phead-row > .a-row{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .phead-row > .a-row > *{min-width:0;width:100%;margin:0}
  .phead-row > .a-row > .btn{justify-content:center;min-height:40px;height:auto;padding:6px 10px;font-size:13px;line-height:1.25;white-space:normal;text-align:center}
  .phead-row > .a-row > .btn .ic{flex:none}
  .phead-row > .a-row > .btn.accent:first-child:nth-last-child(odd),.phead-row > .a-row > :only-child{grid-column:1 / -1}
  .crumbs{font-size:12px;white-space:nowrap;overflow-x:auto;scrollbar-width:none}
  .crumbs::-webkit-scrollbar{display:none}
  /* Notes and notices: one quiet line, not a block. */
  .a-note{font-size:12px;line-height:1.45;padding:7px 11px;border-radius:10px}
  .notice{font-size:12.5px;font-weight:600;padding:9px 12px;gap:8px;line-height:1.45}
  .notice .ic{flex:none;width:16px;height:16px}
  /* Number tiles: compact, two per row. */
  .kpis{gap:8px}
  .kpi{padding:10px 12px 11px;gap:1px;border-radius:14px}
  .kpi b{font-size:20px}
  .kpi span{font-size:11.5px;line-height:1.35}
  .kpi::after{display:none}
  /* Start tiles: one row each (icon, title, line), so four fit on one screen. */
  .tiles.two-m{grid-template-columns:minmax(0,1fr);gap:8px}
  .tiles.two-m .tile{grid-template-columns:auto minmax(0,1fr);gap:2px 12px;padding:11px 12px}
  .tiles.two-m .tile .ti{grid-row:span 2;width:38px;height:38px;border-radius:12px}
  .tiles.two-m .tile b{font-size:14.5px}
  .tiles.two-m .tile small{font-size:12px}
  /* Cards and sections. */
  .a-card{padding:13px 14px;border-radius:16px}
  .a-sec{padding:0}
  .a-sec > h3{padding:11px 14px;font-size:15px;gap:8px}
  .a-sec > h3 .a-row{flex-wrap:wrap;justify-content:flex-end}
  .sec-top h3,.sec > h3{font-size:15.5px}
  .btn{font-size:13.5px}
  .btn.sm{min-height:36px;padding:0 12px;font-size:13px}
  .btn.xs{min-height:30px;padding:0 9px;font-size:12px}
  .chip{min-height:32px;padding:0 11px;font-size:12.5px}
  .empty{padding:22px 14px;font-size:13.5px}
  /* Library document page: the summary is short, the rows of controls tighter. */
  #libHead p{font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  #libHead .guide{display:none}   /* the search tips row: on phones the search box itself is enough */
  .ltabs{margin:8px 0 2px}
  .ltabs > a,.ltabs > button{min-height:34px;padding:0 10px;font-size:13px}
  /* Forms in dialogs: full-width fields, comfortable but not huge. */
  .uform{grid-template-columns:minmax(0,1fr)!important;gap:10px}
  .inp,.sel,.ta,.csel{font-size:15px}
  .mdl-h h3,.mdl-head h3{font-size:17px}
  /* Lists of people, devices, accounts. */
  .urow{gap:10px;padding:10px 12px}
  .urow .rt{flex-wrap:wrap;justify-content:flex-end;gap:6px}
  .dev-row{gap:10px}
}
@media (max-width:380px){
  .phead-row > .a-row > .btn{font-size:12.5px;padding:6px 8px}
  .kpi b{font-size:18px}
  .bn span{font-size:10px}
}

/* Tables on phones: one compact card per row - the first column is the title, the rest sit two per line. */
@media (max-width:720px){
  .dt:not(.matrix) tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px;padding:12px 14px}
  .dt:not(.matrix) td{padding:0;font-size:13.5px;line-height:1.45;overflow-wrap:anywhere;min-width:0}
  .dt:not(.matrix) td:first-child{grid-column:1 / -1;font-size:15px}
  .dt:not(.matrix) td:first-child::before{display:none!important}
  .dt:not(.matrix) td.acts{grid-column:1 / -1;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;text-align:right!important}
  .dt:not(.matrix) td.acts::before{display:none!important}
  .dt:not(.matrix) td[data-label]:not([data-label=""])::before{margin-bottom:1px;font-size:10.5px}
  .dt:not(.matrix) td small.blk{display:block}
  .dt tr.link{cursor:pointer}
  .dt tr.link:active{background:var(--surface-2)}
}

/* My profile and the staff banner on phones */
@media (max-width:640px){
  .acc .acc-head{flex-wrap:nowrap;gap:12px;align-items:center}
  .acc .acc-head .av.xl{width:56px;height:56px;font-size:21px}
  .acc .av-cam{width:22px;height:22px;right:-3px;bottom:-3px}
  .acc .av-cam svg{width:12px;height:12px}
  .acc-who{min-width:0;gap:1px}
  .acc-who b{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .acc-who small{font-size:11.5px}
  .acc-who p{font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .acc-head > #acOut{flex:none;width:40px;min-height:40px;padding:0;justify-content:center;font-size:0;gap:0}
  .acc-head > #acOut .ic{width:18px;height:18px}
  .pref-row{padding:10px 0;gap:8px}
  .page > .a-note:first-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}

/* Storage capacity panel */
.pool{display:grid;gap:14px}
.pool-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px 20px;flex-wrap:wrap}
.pool-h h3{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-family:var(--display);font-size:16px}
.pool-h h3 .ic{width:18px;height:18px;color:var(--muted)}
.pool-h p{margin:0;max-width:60ch}
.pool-kpis{display:flex;gap:8px}
.pool-kpis span{display:grid;gap:1px;padding:8px 12px;border-radius:12px;background:var(--surface-2);font-size:11.5px;color:var(--muted);min-width:96px}
.pool-kpis b{font-family:var(--display);font-size:17px;color:var(--ink)}
.pool-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:end;padding-top:12px;border-top:1px solid var(--line)}
.pool-l b,.pool-v b{display:block;font-size:14px}
.pool-l small,.pool-v small{display:block;color:var(--muted);font-size:12px}
.pool-v{text-align:right}
.pool-v b{font-family:var(--display);font-size:16px}
.pool-bar{grid-column:1 / -1;height:10px;border-radius:99px;background:var(--surface-3);overflow:hidden;margin-top:4px}
.pool-bar i{display:block;height:100%;width:var(--p,0%);border-radius:inherit;background:linear-gradient(90deg,var(--tea-2),var(--turmeric));transition:width .4s var(--ease)}
.pool-bar.full i{background:var(--warn)}
.pool-bar.over i{background:var(--fail)}
.notice.bad{background:var(--fail-soft);color:var(--fail)}
@media (max-width:640px){.pool-kpis{width:100%}.pool-kpis span{flex:1}}

/* Folder browser: Super Admin ticks and deleting for good */
.fs-cell{position:relative;min-width:0;display:grid}
.fs-cell > .fs-f,.fs-cell > .fs-img,.fs-cell > .fs-row{min-width:0}
.fs-tick{position:absolute;top:8px;right:8px;width:26px;height:26px;border-radius:8px;border:0;display:grid;place-items:center;cursor:pointer;
  background:color-mix(in srgb,var(--surface) 92%,transparent);box-shadow:0 0 0 1.5px var(--line-2) inset,var(--shadow);color:transparent;opacity:0;transition:opacity .15s,background .15s,color .15s,transform .12s}
.fs-tick .ic{width:15px;height:15px}
.fs-cell:hover .fs-tick,.fs-cell:focus-within .fs-tick,.picking .fs-tick,.fs-cell.on .fs-tick{opacity:1}
@media (hover:none){.fs-tick{opacity:1}}
.fs-tick:active{transform:scale(.92)}
.fs-cell.on .fs-tick{background:var(--fail);color:#fff;box-shadow:none}
.fs-cell.on > .fs-f,.fs-cell.on > .fs-img,.fs-cell.on > .fs-row{box-shadow:0 0 0 2px var(--fail) inset;background:var(--fail-soft)}
.fs-cell > .fs-row{padding-right:44px}
.fs-cell > .fs-row + .fs-tick{top:50%;transform:translateY(-50%)}
.fs-cell > .fs-row + .fs-tick:active{transform:translateY(-50%) scale(.92)}
.fs-crumbs .fs-delall{margin-left:auto}
.fs-selbar{position:sticky;bottom:calc(var(--foot-h, 0px) + 12px);z-index:5;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-radius:16px;
  background:var(--ink);color:var(--bg);box-shadow:var(--shadow-lg);animation:pageIn .2s var(--ease) both}
.fs-selbar[hidden]{display:none}
.fs-selbar #fsSelN{flex:1;font-weight:700}
.fs-selbar .linkbtn{color:inherit;opacity:.8}
@media (max-width:760px){.fs-selbar{bottom:calc(var(--bnav-h) + 10px)}}
.fsd{display:grid;gap:12px;justify-items:start}
.fsd-ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--fail-soft);color:var(--fail)}
.fsd p{margin:0}
.fsd .fld{width:100%}
.fsd .inp{font-family:var(--mono);letter-spacing:.08em}

/* ---------- spreadsheet list (grid.js): sticky header and first column, column filters, ticks, cells edited in place ---------- */
.gd{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.gd-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.gd-q{flex:1 1 280px;min-width:0}
.gd-q input{height:44px;border-radius:14px;font-size:15px}
.gd-tools{display:flex;flex-wrap:wrap;gap:6px}
.gd-chips{display:flex;flex-wrap:wrap;gap:6px}
.gd-chips[hidden]{display:none}
.gd-chip{display:inline-flex;align-items:stretch;border-radius:99px;background:var(--turmeric-soft);box-shadow:0 0 0 1px color-mix(in srgb,var(--turmeric) 40%,transparent) inset;max-width:100%;overflow:hidden}
.gd-chip button{border:0;background:none;color:var(--turmeric-ink);font:inherit;font-size:12.5px;cursor:pointer;padding:5px 4px 5px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.gd-chip button b{font-weight:800}
.gd-chip .x{padding:0 9px 0 4px;display:grid;place-items:center;flex:none}
.gd-chip .x .ic{width:13px;height:13px}
.gd-chip .x:hover{color:var(--fail)}
.gd-sel{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 8px 8px 14px;border-radius:14px;background:var(--ink);color:var(--bg);box-shadow:var(--shadow);animation:pageIn .18s var(--ease) both}
.gd-sel[hidden]{display:none}
.gd-sel .linkbtn{color:inherit;opacity:.85;padding:2px 0}
.gd-sel .linkbtn[hidden]{display:none}
.gd-sel .gd-sp{flex:1}
.gd-sel .btn{background:color-mix(in srgb,var(--bg) 14%,transparent);color:inherit;box-shadow:none}
.gd-sel .btn.danger{background:var(--fail);color:#fff}
.gd-sel .iconbtn{background:color-mix(in srgb,var(--bg) 14%,transparent);color:inherit;box-shadow:none}
.gd-scroll{position:relative;overflow:auto;max-height:calc(100vh - 290px);min-height:220px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset,var(--shadow);overscroll-behavior:contain;outline:none}
.gd.busy .gd-scroll::after{content:"";position:sticky;left:0;bottom:0;display:block;height:3px;margin-top:-3px;background:linear-gradient(90deg,transparent,var(--turmeric),var(--tea-2),transparent);background-size:50% 100%;background-repeat:no-repeat;animation:gdBusy 1s linear infinite}
@keyframes gdBusy{from{background-position:-50% 0}to{background-position:150% 0}}
.gd.busy tbody{opacity:.6;transition:opacity .2s .15s}
.gd-t{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13.5px}
.gd-t th,.gd-t td{padding:0 10px;height:40px;border-bottom:1px solid var(--line);border-right:1px solid color-mix(in srgb,var(--line) 70%,transparent);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;background:var(--surface)}
.gd-t thead th{position:sticky;top:0;z-index:3;height:42px;padding:0;background:var(--surface-2);font-size:12px;font-weight:800;color:var(--muted);letter-spacing:.01em;border-bottom:1px solid var(--line-2)}
.gd-t thead th.on{color:var(--turmeric-ink);background:color-mix(in srgb,var(--turmeric) 10%,var(--surface-2))}
.gd-t .gd-ckc{position:sticky;left:0;z-index:2;width:44px;padding:0;text-align:center}
.gd-t thead .gd-ckc{z-index:5}
.gd-t .gd-stick{position:sticky;left:44px;z-index:2;box-shadow:6px 0 10px -8px rgba(0,0,0,.25)}
.gd-t thead .gd-stick{z-index:4}
.gd-t td.num,.gd-t th.num .gd-sort{text-align:right;justify-content:flex-end;font-variant-numeric:tabular-nums}
.gd-h{display:flex;align-items:center;height:100%;min-width:0}
.gd-sort{flex:1;min-width:0;height:100%;display:flex;align-items:center;gap:4px;padding:0 4px 0 10px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:left}
.gd-sort span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gd-sort:hover{color:var(--ink)}
.gd-dir{display:grid;flex:none}
.gd-dir .ic{width:14px;height:14px;transform:rotate(-90deg);transition:transform .2s var(--ease)}
.gd-dir.desc .ic{transform:rotate(90deg)}
.gd-fb{flex:none;width:30px;height:30px;margin-right:4px;border:0;border-radius:9px;display:grid;place-items:center;background:none;color:var(--faint);cursor:pointer;opacity:.55;transition:opacity .15s,background .15s,color .15s}
.gd-fb .ic{width:15px;height:15px}
th:hover .gd-fb,.gd-fb:focus-visible{opacity:1}
.gd-fb:hover{background:var(--surface-3);color:var(--ink)}
.gd-fb.on{opacity:1;color:var(--on-turmeric);background:var(--turmeric)}
.gd-rs{position:absolute;top:0;right:-4px;width:9px;height:100%;cursor:col-resize;z-index:6;touch-action:none}
.gd-rs::after{content:"";position:absolute;top:22%;bottom:22%;left:4px;width:2px;border-radius:2px;background:var(--turmeric);opacity:0;transition:opacity .15s}
th:hover .gd-rs::after,.gd.resizing .gd-rs::after{opacity:.7}
.gd.resizing{cursor:col-resize;user-select:none}
.gd-t tbody tr:hover td{background:color-mix(in srgb,var(--surface-2) 70%,var(--surface))}
.gd-t tbody tr.sel td{background:color-mix(in srgb,var(--turmeric) 11%,var(--surface))}
.gd-t td.cur{box-shadow:0 0 0 2px var(--turmeric) inset;border-radius:3px}
.gd-t td.ed{cursor:cell}
.gd-t td.saving{opacity:.5}
.gd-t td .st{font-size:11.5px}
.gd-link{color:var(--ink);font-weight:700;text-decoration:none}
.gd-link:hover{color:var(--link);text-decoration:underline}
.gd-in{width:100%;height:32px;border:0;border-radius:8px;padding:4px 8px;font:inherit;background:var(--bg);box-shadow:0 0 0 2px var(--turmeric) inset;color:var(--ink)}
textarea.gd-in{height:auto;min-height:64px;position:relative;z-index:3}
.gd-t td:has(textarea.gd-in){overflow:visible;white-space:normal}
.gd-empty td{height:auto;padding:0;white-space:normal}
.gd-empty .empty{display:grid;justify-items:center;gap:10px;position:sticky;left:0;max-width:calc(100vw - 48px)}
.gd-cb{width:20px;height:20px;border-radius:6px;border:0;padding:0;display:inline-grid;place-items:center;vertical-align:middle;cursor:pointer;background:var(--bg);box-shadow:0 0 0 1.5px var(--line-2) inset;transition:background .15s,box-shadow .15s,transform .1s;flex:none}
.gd-cb:active{transform:scale(.9)}
.gd-cb[aria-checked="true"],.gd-cb[aria-checked="mixed"]{background:var(--turmeric);box-shadow:none}
.gd-cb[aria-checked="true"]::after{content:"";width:10px;height:5px;margin-top:-2px;border-left:2.2px solid var(--on-turmeric);border-bottom:2.2px solid var(--on-turmeric);transform:rotate(-45deg)}
.gd-cb[aria-checked="mixed"]::after{content:"";width:10px;height:2.2px;border-radius:2px;background:var(--on-turmeric)}
.gd-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;color:var(--muted);font-size:13px}
.gd-pg{display:flex;align-items:center;gap:8px}
.gd-pp{display:flex;align-items:center;gap:8px;white-space:nowrap}
.gd-pp .csel{min-height:32px;padding:4px 10px;width:auto}
.gd-pn{font-variant-numeric:tabular-nums;white-space:nowrap}
/* the column filter */
.cpop.gd-pop{max-height:min(560px,80vh);overflow:auto;padding:12px;width:320px}
.gdf{display:grid;gap:10px}
.gdf-sort{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.gdf-sort .btn{justify-content:flex-start}
.gdf-sort .ic.up{transform:rotate(-90deg)}
.gdf-sort .ic.dn{transform:rotate(90deg)}
.gdf-sec{border-top:1px solid var(--line);padding-top:8px}
.gdf-sec summary{cursor:pointer;font-weight:800;font-size:13px;list-style:none;display:flex;align-items:center;gap:6px;padding:2px 0}
.gdf-sec summary::-webkit-details-marker{display:none}
.gdf-sec summary::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);transition:transform .2s;margin:0 4px 0 2px}
.gdf-sec[open] summary::before{transform:rotate(45deg)}
.gdf-cond{display:grid;gap:6px;margin-top:8px}
.gdf-and{font-size:12px;color:var(--muted);text-align:center}
.gdf-and[hidden],.gdf-cond [hidden]{display:none!important}
.gdf-sec .search{margin-top:8px}
.search.sm svg{left:11px;width:15px;height:15px}
.search.sm input{height:36px;border-radius:10px;font-size:13.5px;padding:0 12px 0 34px;box-shadow:0 0 0 1px var(--line-2) inset}
.gdf-vh{display:flex;align-items:center;gap:12px;font-size:12.5px;margin:6px 0 2px}
.gdf-vh .linkbtn{font-size:12.5px}
.gdf-vc{margin-left:auto;color:var(--muted)}
.gdf-vals{display:grid;max-height:230px;overflow:auto;margin:0 -4px;padding:2px}
.gdf-v{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:4px 8px;border:0;border-radius:9px;background:none;color:var(--ink);font:inherit;font-size:13.5px;text-align:left;cursor:pointer}
.gdf-v:hover{background:var(--surface-2)}
.gdf-v[disabled]{opacity:.55;cursor:default}
.gdf-v span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gdf-v small{color:var(--faint);font-variant-numeric:tabular-nums}
.gdf-v .gd-cb{pointer-events:none}
.gdf-load{display:grid;place-items:center;padding:18px}
.gdf-more{padding:6px 8px;margin:0}
.gdf-acts{display:flex;align-items:center;gap:6px;border-top:1px solid var(--line);padding-top:10px}
.gdf-acts > span{flex:1}
.gdc{display:grid;gap:2px;max-height:min(460px,70vh);overflow:auto}
.gdc-t{padding:4px 8px 6px;font-size:13px}
/* the export dialog */
.ex{display:grid;gap:14px}
.ex-c{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.ex-c .choice{grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:10px}
.ex-c .choice .ic{grid-row:span 2;width:22px;height:22px;color:var(--tea-2)}
.ex-c .choice:not(:has(.ic)){grid-template-columns:minmax(0,1fr)}
.ex-prog{display:grid;gap:6px}
.ex-prog small{color:var(--muted)}
@media (max-width:760px){
  .gd-scroll{max-height:calc(100dvh - 250px - var(--bnav-h));border-radius:14px}
  .gd-t{font-size:13px}
  .gd-t th,.gd-t td{height:38px;padding:0 8px}
  .gd-t .gd-stick{left:38px}
  .gd-t .gd-ckc{width:38px}
  .gd-tools{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .gd-tools .btn{justify-content:center;padding-inline:8px;min-width:0}
  .gd-tools .btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .gd-tools .gd-clear{grid-column:1 / -1}
  .gd-foot{justify-content:center}
  .gd-sel{position:sticky;bottom:calc(var(--bnav-h) + var(--foot-h) + 8px);z-index:6}
  .gd-sel .btn{flex:1 1 40%;justify-content:center}
  .gd-sel .gd-sp{display:none}
  .gd-fb{opacity:1}
  .cpop.gd-pop{width:auto}
}

/* Long choices never push a form column wider than its share (a select cut off under its neighbour) */
.uform > .fld{min-width:0}
.csel{min-width:0;max-width:100%}
.csel .cs-v{width:0}
/* a select sized by its text (rows per page, the bulk bar) keeps its text */
.gd-pp .csel .cs-v,.cm-bar .csel .cs-v{width:auto}
.doc-covers{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:var(--surface-2);font-size:13px;color:var(--muted)}
.doc-covers .ic{flex:none;color:var(--tea-2);margin-top:1px}

/* ---------- plan & storage: current plan, order with tracker, countdown, bank details, plan cards ---------- */
.pl-now{display:grid;gap:14px}
.pl-now-h{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pl-now-h h3{margin:2px 0 2px;font-family:var(--display);font-size:22px}
.pl-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.pl-card{position:relative;display:flex;flex-direction:column;gap:10px}
.pl-card.hi{box-shadow:0 0 0 2px var(--turmeric) inset,0 18px 40px -22px color-mix(in srgb,var(--turmeric) 70%,transparent)}
.pl-card > .btn{margin-top:auto}
.pl-flag{position:absolute;top:-11px;left:16px;padding:3px 10px;border-radius:99px;background:linear-gradient(90deg,var(--turmeric),color-mix(in srgb,var(--turmeric) 60%,var(--tea-2)));color:var(--on-turmeric);font-size:11px;font-weight:800;letter-spacing:.03em;box-shadow:var(--shadow)}
.pl-price{display:grid;gap:2px}
.pl-price b{font-family:var(--display);font-size:24px;letter-spacing:-.01em}
.pl-price small{color:var(--muted);font-size:12.5px}
.pl-big{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:var(--surface-2)}
.pl-big .ic{color:var(--tea-2)}
.pl-big b{font-family:var(--display);font-size:18px}
.pl-big span{color:var(--muted);font-size:12.5px}
.pl-hist{display:grid;gap:4px}
.pl-h{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:14px;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .15s}
.pl-h:hover{background:var(--surface-2)}
.pl-h.on{background:var(--turmeric-soft);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--turmeric) 45%,transparent) inset}
.pl-hm,.pl-hr{display:grid;gap:1px;min-width:0}
.pl-hm{flex:1}
.pl-hm b,.pl-hm small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-hm small,.pl-hr small{color:var(--muted);font-size:12px}
.pl-hr{text-align:right}
.pl-dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--faint)}
.pl-dot.meets{background:var(--pass)}
.pl-dot.incomplete{background:var(--turmeric);box-shadow:0 0 0 4px color-mix(in srgb,var(--turmeric) 22%,transparent);animation:plPulse 1.8s ease-in-out infinite}
.pl-dot.fails{background:var(--fail)}
@keyframes plPulse{50%{box-shadow:0 0 0 7px color-mix(in srgb,var(--turmeric) 0%,transparent)}}
.ord{display:grid;gap:16px}
.ord-h{display:flex;align-items:center;gap:12px}
.ord-h > div{flex:1;min-width:0}
.ord-h h3{margin:0;font-family:var(--display);font-size:19px}
.ord-h small{color:var(--muted);font-size:12px}
.ord-ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex:none;background:linear-gradient(135deg,var(--tea),color-mix(in srgb,var(--tea) 60%,var(--turmeric)));color:var(--on-tea)}
.ord-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px;border-radius:16px;background:var(--surface-2)}
.ord-track.off{opacity:.65}
.ot{display:grid;gap:3px;min-width:0}
.ot i{height:4px;border-radius:4px;background:var(--surface-3);position:relative;overflow:hidden}
.ot.done i{background:var(--pass)}
.ot.on i{background:var(--surface-3)}
.ot.on i::after{content:"";position:absolute;inset:0;width:45%;border-radius:inherit;background:linear-gradient(90deg,var(--pass),var(--turmeric));animation:otRun 1.6s var(--ease) infinite}
@keyframes otRun{from{transform:translateX(-100%)}to{transform:translateX(230%)}}
.ot b{font-size:13px;margin-top:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ot small{font-family:var(--mono);font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ord-hold{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;align-items:center;padding:16px;border-radius:16px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--turmeric) 12%,var(--surface)),var(--surface));box-shadow:0 0 0 1.5px color-mix(in srgb,var(--turmeric) 35%,transparent) inset}
.ord-hold .small{display:flex;align-items:center;gap:6px;color:var(--turmeric-ink);font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:11px}
.ord-hold .small .ic{width:14px;height:14px}
.ord-hold p{margin:4px 0 0;font-size:14px}
.ord-hold .progress{grid-column:1 / -1;height:5px}
.ord-cd{display:flex;align-items:flex-start;gap:6px;font-variant-numeric:tabular-nums}
.ord-cd span{display:grid;justify-items:center}
.ord-cd b{font-family:var(--display);font-size:30px;line-height:1;color:var(--turmeric-ink)}
.ord-cd small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.ord-cd i{font-style:normal;font-size:24px;line-height:1.1;color:var(--faint)}
.ord-how{display:grid;gap:10px}
.ord-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ord-steps > div{display:grid;gap:3px;padding:12px;border-radius:14px;background:var(--surface-2)}
.ord-steps i{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;font-style:normal;font-weight:800;font-size:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line-2) inset}
.ord-steps b{font-size:14px;margin-top:4px}
.ord-steps small{color:var(--muted);font-size:12.5px;line-height:1.45}
.ord-bt{margin-bottom:-4px}
.ord-bank{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px}
.ob{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 8px;padding:10px 12px;border-radius:12px;background:var(--surface-2)}
.ob span{grid-column:1;font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700}
.ob b{grid-column:1;font-size:14px;overflow-wrap:anywhere}
.ob b.hi{color:var(--link)}
.ob .iconbtn{grid-column:2;grid-row:1 / span 2;background:var(--surface);box-shadow:0 0 0 1px var(--line) inset;color:var(--ink)}
.ob-note{grid-column:1 / -1;margin:0}
.ord-acts .btn.wa{flex:1;justify-content:center;background:#25D366;color:#06301A;box-shadow:0 12px 26px -14px #25D366}
.ord-acts .btn.wa:hover{filter:brightness(1.05)}
.ord-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:14px;border-top:1px dashed var(--line-2)}
.ord-foot > div:first-child{display:grid;gap:1px}
.ord-foot b.mono{font-size:20px}
.ord-foot small{color:var(--pass);font-size:12px;font-weight:700}
.ord-msg{padding:6px 0}
.ord-msg.approved .big{color:var(--pass)}
.ord-msg.rejected .big{color:var(--fail)}
.ord-note{margin:6px auto 0;max-width:520px;padding:10px 14px;border-radius:12px;background:var(--surface-2);font-size:14px}
.ordf{display:grid;gap:12px}
.ordf-len{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--surface-2);font-size:14px}
.ordf-len .ic{color:var(--tea-2)}
.cp-row{display:flex;gap:8px}
.cp-row .inp{text-transform:uppercase;letter-spacing:.06em}
.ordf-sum{display:grid;gap:6px;padding:12px 14px;border-radius:14px;background:var(--surface-2);font-size:14px}
.ordf-sum > div{display:flex;justify-content:space-between;gap:10px}
.ordf-sum .disc b{color:var(--pass)}
.ordf-sum .tot{padding-top:8px;border-top:1px dashed var(--line-2);font-size:16px}
.ordf-sum .tot b{font-family:var(--display);font-size:19px}
.ordf-sum small{color:var(--muted);font-size:12.5px}
.plan.hi:not(.pl-card){box-shadow:0 0 0 2px var(--turmeric) inset}
@media (max-width:760px){
  .ord-track{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px}
  .ord-steps{grid-template-columns:minmax(0,1fr)}
  .ord-hold{grid-template-columns:minmax(0,1fr)}
  .ord-cd{justify-content:center}
  .ord-cd b{font-size:26px}
  .ord-foot{flex-direction:column;align-items:stretch}
  .ord-foot .a-row{display:grid;grid-template-columns:1fr 1fr}
}

/* ---------- the site's loader: two arcs (accent and main colour) drawing around the logo; the line at the top ---------- */
.ldr{--s:40px;position:relative;display:inline-grid;place-items:center;width:var(--s);height:var(--s);flex:none;vertical-align:middle}
.ldr svg{position:absolute;inset:0;width:100%;height:100%;animation:ldRot 1.5s linear infinite}
.ldr circle{fill:none;stroke-width:3;stroke-linecap:round}
.ldr .t{stroke:color-mix(in srgb,var(--tea) 12%,transparent)}
.ldr .a1{stroke:var(--turmeric);stroke-dasharray:1 126;animation:ldDash 1.5s ease-in-out infinite}
.ldr .a2{stroke:var(--tea-2);stroke-dasharray:1 126;animation:ldDash 1.5s ease-in-out -.75s infinite}
.ldr img{position:relative;width:52%;height:52%;object-fit:contain;border-radius:28%;animation:ldPulse 1.5s ease-in-out infinite}
.ldr i{position:relative;width:22%;height:22%;border-radius:50%;background:linear-gradient(140deg,var(--tea),var(--turmeric));animation:ldPulse 1.5s ease-in-out infinite}
.ldr.lg{--s:76px}
.ldr.lg circle{stroke-width:2.4}
.ldr.sm{--s:20px}
.ldr.sm circle{stroke-width:4.5}
@keyframes ldRot{to{transform:rotate(360deg)}}
@keyframes ldDash{0%{stroke-dasharray:1 126;stroke-dashoffset:0}50%{stroke-dasharray:80 126;stroke-dashoffset:-22}100%{stroke-dasharray:1 126;stroke-dashoffset:-125}}
@keyframes ldPulse{50%{transform:scale(.92);opacity:.8}}
.ld-wrap{display:grid;place-items:center;min-height:min(56vh,460px);animation:fadeIn .25s ease .1s both}
/* the line at the top while the site talks to the server */
#progress{background:linear-gradient(90deg,var(--turmeric),var(--tea-2));box-shadow:0 0 10px var(--glow)}
/* the small spinner (buttons, lists): one arc that draws, like the loader */
.spin{border:0!important;border-radius:50%;background:conic-gradient(from 0deg,transparent 0 30%,var(--turmeric) 100%);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));animation:spin .8s linear infinite}
@media (prefers-reduced-motion: reduce){.ldr svg,.ldr circle,.ldr img,.ldr i{animation-duration:3s!important}}

/* Role cards are .a-sec (no padding, for tables); they hold a heading and the matrix, so they need their own inner space */
.a-card.a-sec.role-card{padding:16px 18px;overflow:visible;min-width:0}
.role-card .pm{min-width:0}
@media (max-width:640px){.a-card.a-sec.role-card{padding:14px 12px}}

/* calendar: tap the title for years, then months */
.cd-title{display:inline-flex;align-items:center;gap:4px;border:0;background:none;color:var(--ink);font-family:var(--display);font-weight:700;font-size:15px;padding:6px 10px;border-radius:10px;cursor:pointer}
.cd-title:hover{background:var(--surface-2)}
.cd-title .ic{width:15px;height:15px;color:var(--muted)}
.cd-ym{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px 0 2px}
.cd-y{height:44px;border:0;border-radius:12px;background:var(--surface-2);color:var(--ink);font:inherit;font-size:14px;font-weight:600;cursor:pointer;font-variant-numeric:tabular-nums}
.cd-y:hover{background:var(--surface-3)}
.cd-y.now{box-shadow:0 0 0 1.5px var(--turmeric) inset}
.cd-y.on{background:var(--tea);color:var(--on-tea)}

/* Explore filters: the sheet and the date block never grow wider than they are (content was scrolled off the left edge) */
.ex-sheet-b{grid-template-columns:minmax(0,1fr);overflow-x:hidden}
.ex-dates{grid-template-columns:minmax(0,1fr)}
.ex-dates > *,.ex-dates .fld,.ex-dates .cdate{min-width:0}
.ex-range > label{min-width:0}
.ex-range{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}

/* ---------- forms: fields keep their own height (a long help text beside them no longer stretches them) ---------- */
.uform{align-items:start}
.uform > .fld{align-content:start}
/* a list's search and chips inside a card: room around them */
.a-sec > .pad{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 18px 14px}
.a-sec > .pad > .chips{margin:0}
.a-sec > .pad > .search input{height:46px}

/* ---------- requirement: every product, or chosen products ---------- */
.seg2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.seg2 button{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:0;border-radius:14px;background:var(--surface-2);color:var(--ink);font:inherit;text-align:left;cursor:pointer;
  box-shadow:0 0 0 1.5px var(--line) inset;transition:box-shadow .2s,background .2s}
.seg2 button .ic{flex:none;margin-top:2px;color:var(--muted)}
.seg2 button span{display:grid;gap:2px;min-width:0}
.seg2 button b{font-size:14px}
.seg2 button small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.seg2 button[aria-checked="true"]{background:var(--turmeric-soft);box-shadow:0 0 0 2px var(--turmeric) inset}
.seg2 button[aria-checked="true"] .ic{color:var(--turmeric-ink)}
#rqPicker{margin-top:10px}
@media (max-width:520px){.seg2{grid-template-columns:minmax(0,1fr)}}

/* ---------- product browser ---------- */
.ib{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.ib-q input{height:46px;font-size:15px;border-radius:14px}
.ib-filters{display:grid;gap:6px;min-width:0}
.ib-row{display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px;align-items:center;min-width:0}
.ib-l{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ib-row .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.ib-row .chips::-webkit-scrollbar{display:none}
.ib-row .chip{flex:none;height:32px;font-size:13px}
.ib-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted);min-height:32px}
.ib-bar .linkbtn{font-size:13px}
.ib-sp{flex:1}
.ib-sel{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:99px;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;background:var(--surface-2);color:var(--ink);box-shadow:0 0 0 1px var(--line-2) inset}
.ib-sel .ic{width:14px;height:14px}
.ib-sel.on{background:var(--tea);color:var(--on-tea);box-shadow:none}
.ib-sel[disabled]{opacity:.5;cursor:default}
.ib-list{display:grid;gap:4px;max-height:min(46vh,420px);overflow:auto;padding:2px;margin:0 -2px;overscroll-behavior:contain;align-content:start}
.ib-load{display:grid;place-items:center;padding:30px}
.ib-i{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:8px 12px;border:0;border-radius:14px;background:var(--surface-2);color:var(--ink);font:inherit;text-align:left;cursor:pointer;
  transition:background .15s,box-shadow .15s,transform .1s}
.ib-i:hover{background:var(--surface-3)}
.ib-i:active{transform:scale(.995)}
.ib-i.on{background:var(--turmeric-soft);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--turmeric) 55%,transparent) inset}
.ib-i.done{opacity:.6;cursor:default}
.ib-i .gd-cb{pointer-events:none}
.ib-i .ref{flex:none;min-width:58px;padding:3px 8px;border-radius:8px;background:var(--surface);font-family:var(--mono);font-size:11.5px;font-weight:700;text-align:center;color:var(--tea-2);box-shadow:0 0 0 1px var(--line) inset}
.ib-t{display:grid;gap:1px;min-width:0;flex:1}
.ib-t b{font-size:14px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ib-t small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ib-go{flex:none;width:16px;height:16px;color:var(--faint)}
.ib-more{justify-self:center;margin-top:6px}
.ib-more-f{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.ib-more-f summary{cursor:pointer;font-weight:800;font-size:13.5px;padding:4px 0 8px}
.mdl.tall{width:min(760px,calc(100vw - 32px))}
@media (max-width:640px){.ib-row{grid-template-columns:minmax(0,1fr);gap:4px}.ib-list{max-height:52vh}.ib-i .ref{min-width:48px}}

/* ---------- results sheet: ticks, the bar for many rows, the "set by hand" column ---------- */
.rs-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px;padding:14px 16px}
.rs-bar-t{display:grid;gap:2px;flex:1 1 220px;min-width:0}
.rs-bar-t b{font-size:14px}
.rs-bar-t small{color:var(--muted);font-size:12.5px}
.rs-bar-f{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.rs-bar-f label{display:grid;gap:4px;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.rs-bar-f .inp,.rs-bar-f .csel{min-width:150px;width:auto}
.dt.results .rs-ck{width:44px;text-align:center;padding-inline:8px}
.dt.results .csel.sm{min-width:158px}
.dt.results tr.picked td{background:color-mix(in srgb,var(--turmeric) 9%,transparent)}
.rs-i .ic{width:13px;height:13px;vertical-align:-2px;opacity:.7}
@media (max-width:720px){
  .rs-bar{align-items:stretch}
  .rs-bar-f{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .rs-bar-f .inp,.rs-bar-f .csel{min-width:0;width:100%}
  .rs-bar-f .btn{grid-column:1 / -1;justify-content:center}
  .dt.results td.rs-ck{position:absolute;top:10px;right:10px;width:auto;padding:0;border:0}
  .dt.results tr.vrow{position:relative}
  .dt.results .csel.sm{min-width:0}
}
.dt.results .rs-ck{width:1%}
.ld-in{display:grid;place-items:center;padding:28px 16px}

/* ---------- item categories: the item list with a category per row, chips to choose several, lists people edit ---------- */
.cat-tabs{margin:2px 0 14px;width:max-content;max-width:100%;overflow-x:auto;display:flex;gap:4px;padding:4px}
.seg.cat-tabs button{display:inline-flex;flex-direction:row;align-items:center;gap:7px;height:38px;padding:0 14px;white-space:nowrap}
.cat-tabs button .ic{width:16px;height:16px}
.cat-tabs button small{font-family:var(--mono);font-size:11px;opacity:.7}
.cm-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px;margin-bottom:10px}
.cm-tools .search{flex:1 1 240px;min-width:0}
.cm-tools .csel,.cm-tools > .sel{flex:0 1 220px;min-width:0;width:auto;min-height:40px}
.cm-cat .csel{min-height:36px}
.cm-bar .csel{width:auto;max-width:240px;min-height:34px}
.cm-bar{display:none;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 12px;margin-bottom:10px;border-radius:14px;background:var(--surface-2);box-shadow:0 0 0 1px var(--line) inset}
.cm-bar.on{display:flex}
.cm-bar .cm-n{font-weight:800;margin-right:auto}
.cm-bar .sel{max-width:220px}
.cm-count{margin:2px 2px 8px}
.cm-list{padding:0;overflow:hidden}
.cm-row{display:grid;grid-template-columns:auto minmax(0,1.6fr) minmax(150px,1fr) minmax(130px,auto);gap:12px;align-items:center;padding:10px 14px;border-top:1px solid var(--line)}
.cm-row:first-child{border-top:0}
.cm-it{min-width:0}
.cm-it b{display:block;overflow:hidden;text-overflow:ellipsis}
.cm-it small{display:block;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-cat .sel{width:100%}
.cm-how{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}
.cm-how .tg{display:inline-flex;gap:5px;align-items:center}
.cm-how .tg .ic{width:13px;height:13px}
.cm-tick{width:22px;height:22px;border:0;padding:0;background:none;cursor:pointer;display:grid;place-items:center}
.tagpick{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tagpick .chip{min-height:32px;padding:0 12px;font-size:13px}
.tagpick .tp-new{flex:1 1 180px;min-width:0;max-width:280px}
.iw-rem{margin-top:10px}
.choice small{display:block;font-weight:600;color:var(--muted);font-size:11.5px}
.lst{display:grid;gap:6px}
.lst-r{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto auto;gap:8px;align-items:center;padding:8px;border-radius:12px;background:var(--surface-2);box-shadow:0 0 0 1px var(--line) inset}
.lst-r.off{opacity:.6}
.lst-o{display:flex;flex-direction:column;gap:2px}
.lst-o .iconbtn{width:24px;height:18px;border-radius:6px}
.lst-o [data-mv="-1"] .ic{transform:rotate(-90deg)}
.lst-o .ic{width:12px;height:12px}
.lst-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;min-width:0}
.lst-b{display:grid;gap:2px;min-width:160px}
.lst-b .csel{min-height:34px}
.lst-b small{font-size:11px;color:var(--muted)}
.lst-k{white-space:nowrap}
.lst-x{width:28px}
.lst-add{justify-self:start}
html[data-width="wide"] .wrap{max-width:1480px}
html[data-width="full"] .wrap{max-width:none}
@media (max-width:720px){
  .cm-tools .csel,.cm-tools > .sel{flex:1 1 100%}
  .cat-tabs{width:100%}
  .cm-row{grid-template-columns:auto minmax(0,1fr);gap:6px 10px}
  .cm-cat,.cm-how{grid-column:2}
  .cm-how{justify-content:flex-start}
  .lst-r{grid-template-columns:auto minmax(0,1fr) auto;}
  .lst-b,.lst-k{grid-column:2}
}
