/* GuyWay for Business: the frame and the Uber-style pages (fleet/bizui.py,
   16 Oct 2026). Loaded after business.css and bizops.css, built only from
   the tokens in business.css's :root. Measurements are Uber for Business's
   2026 dashboard (Base Web): white page, 64 px top bar with a search pill,
   260 px sidebar of 48 px rows, 12 px cards with a 2 px soft edge, grey
   filled inputs, black pill buttons (our ink), 4 px tab underlines. Lime is
   only a small accent: the avatar's initials and the count badges. */

/* --- top bar (signed in and out) ------------------------------------------------- */
.top{background:var(--card);color:var(--fg);border-bottom:1px solid var(--hair);min-height:64px;height:64px;padding:0 20px 0 20px;gap:16px;z-index:30}
.top .brand{color:var(--fgt);font-weight:500;font-size:14px;gap:10px;min-height:44px}
.top .brand img{height:20px}
.gsearch{position:relative;flex:1;max-width:646px;margin:0 auto}
.gsearch>.ic{position:absolute;left:14px;top:50%;width:16px;height:16px;margin-top:-8px;color:var(--fg);pointer-events:none}
.gsearch input{margin:0;height:36px;min-height:0;border-radius:999px;background:var(--fill);border:1px solid var(--edge);padding:0 16px 0 40px;font-size:14px}
.gsearch input:focus{background:var(--card);outline:0;border:2px solid var(--ink);padding-left:39px}
.gres{position:absolute;left:0;right:0;top:calc(100% + 6px);background:var(--card);border:1px solid var(--hair);border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.12);padding:6px;z-index:40;max-height:70vh;overflow-y:auto}
.gres a{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:8px;text-decoration:none;color:var(--fg)}
.gres a .ic{width:18px;height:18px;color:var(--fgs);flex:none}
.gres a span{display:flex;flex-direction:column;min-width:0}.gres a b{font-weight:500;font-size:14px}
.gres a small{color:var(--fgt);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gres a.on,.gres a:hover{background:var(--fill)}
.gres p{margin:0;padding:10px;color:var(--fgs);font-size:14px}
.gres h4{margin:6px 10px 4px;font-size:12px;font-weight:500;color:var(--fgt)}
.gres [role=group]+[role=group]{border-top:1px solid var(--hair);margin-top:4px;padding-top:2px}
.gres a b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gres a.gall{margin-top:4px;box-shadow:0 -1px 0 var(--hair)}
.gres a.gall .ic{color:var(--fg)}
.gres mark,ul.sres mark{background:none;color:inherit;font-weight:700}
.tright{display:flex;align-items:center;gap:8px;margin-left:auto}
.tbtn{position:relative;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border-radius:999px;color:var(--fg);
  text-decoration:none;font-size:14px;font-weight:500;line-height:16px}
.tbtn:hover{background:var(--fill)}
.tbtn.help{background:var(--fill)}.tbtn.help:hover{background:var(--active)}
.tbtn .ic{width:18px;height:18px}
.tbtn.bell,.tbtn.sbtn{width:36px;padding:0;justify-content:center}
.tbtn.sbtn{display:none}
.tbtn .dot{position:absolute;top:-2px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--ink);color:var(--lime);
  font-size:11px;font-weight:700;display:grid;place-items:center;border:2px solid var(--card)}
details.acct{position:relative}
details.acct summary{list-style:none;cursor:pointer;border-radius:50%}details.acct summary::-webkit-details-marker{display:none}
details.acct summary:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.av{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ink);color:var(--lime);font-weight:500;font-size:14px}
.av.big{width:44px;height:44px;font-size:16px;flex:none}
.amenu{position:absolute;right:0;top:calc(100% + 8px);width:300px;background:var(--card);border:1px solid var(--hair);border-radius:12px;
  box-shadow:0 4px 16px rgba(0,0,0,.12);padding:8px;z-index:40}
.awho{display:flex;gap:12px;align-items:center;padding:10px 10px 4px}
.awho div{display:flex;flex-direction:column;min-width:0}.awho b{font-weight:500;font-size:16px}
.awho span{color:var(--fgs);font-size:14px;overflow:hidden;text-overflow:ellipsis}
.arole{margin:0 10px 8px 66px;font-size:14px;color:var(--fgt)}
.amenu a,.top .amenu .link{display:block;width:100%;text-align:left;padding:12px 10px;border-radius:8px;color:var(--fg);text-decoration:none;
  font-size:16px;margin:0;min-height:0;font-weight:400}
.amenu a:hover,.top .amenu .link:hover{background:var(--fill);color:var(--fg)}
.amenu .out{border-top:1px solid var(--track);margin-top:6px;padding-top:6px}

/* --- sidebar ------------------------------------------------------------------------ */
.side{position:fixed;top:64px;bottom:0;left:0;width:var(--side);background:var(--card);border-right:1px solid var(--hair);overflow-y:auto;
  padding:20px 0 20px;z-index:20;display:flex;flex-direction:column}
.snav{display:flex;flex-direction:column;flex:1}
.si{position:relative;display:flex;align-items:center;gap:20px;padding:14px 16px 14px 20px;height:48px;color:var(--fgs);
  text-decoration:none;font-size:16px;line-height:20px;font-weight:500;cursor:pointer;list-style:none;border-left:0}
.si::-webkit-details-marker{display:none}
.si .ic{width:16px;height:16px;flex:none;color:currentColor;stroke-width:2}
.si span{flex:1;white-space:nowrap}
.si:hover{background:var(--fill);color:var(--fg)}
.si.on{background:var(--active);color:var(--fg);border-left:4px solid var(--ink);padding-left:16px}
.si.sub{padding-left:56px;font-weight:500}
.si.sub.on{padding-left:52px}
.si .chev{width:16px;height:16px;color:var(--fg);flex:none;transition:transform .15s}
details.sg[open]>summary .chev{transform:rotate(180deg)}
.si.book{background:var(--ink);color:var(--card);margin:0 16px 12px;border-radius:999px;padding:14px 20px;gap:10px;justify-content:center}
.si.book span{flex:none}
.si.book .ic{color:var(--lime)}
.si.book:hover{background:var(--ink);color:var(--card);filter:brightness(1.3)}
.si.book.on{border-left:0;padding-left:20px}
.sgap{display:block;height:24px;flex:none}
.sfoot{margin:16px 20px 0;font-size:12px;color:var(--fgt)}
.scrim{display:none}

/* --- the page: white, beside the sidebar, content up to 1200 px ----------------------- */
/* The column starts 40 px from the sidebar at every width; a wide screen's
   extra room goes to the right. It used to be centred in the space beside the
   sidebar, which on a wide window left a large empty band between the menu and
   the page (Michel, 17 Oct 2026). */
body.app{background:var(--card)}
body.app main{max-width:1280px;margin:0 0 0 var(--side);padding:32px 40px 72px}
body.app .gwb-foot{max-width:1280px;margin:0 0 0 var(--side);padding:0 40px 40px;color:var(--fgs)}
body.app .gwb-foot .helpline{border:2px solid var(--edge);border-radius:12px}
body.app h1{font-size:36px;line-height:44px;font-weight:700;letter-spacing:-.01em}
body.app .eyebrow{font-size:16px;line-height:20px;font-weight:500;color:var(--fgt);margin-bottom:8px}
body.app .eyebrow+h1{font-size:32px;line-height:40px}
body.app .lead{font-size:16px;line-height:24px;color:var(--fgs)}
body.app .phead{margin:0 0 24px}
body.app h2{font-size:20px;line-height:28px}
body.app h2.sect,body.app .sugg h2{font-size:24px;line-height:32px;margin:32px 0 16px}
body.app .card,body.app .tablewrap,body.app .cards>a,body.app .cards>div{border:2px solid var(--edge);border-radius:12px;box-shadow:none}
body.app .card{padding:24px}
body.app .cards>a:hover{border-color:var(--ink)}
body.app .cards span{color:var(--fgs);font-size:14px}
body.app .muted{color:var(--fgt)}
body.app :where(label){font-size:14px;line-height:16px;font-weight:500;color:var(--fg)}
body.app label .hint{color:var(--fgt)}
body.app :where(input:not([type=checkbox],[type=radio],[type=file]),select,textarea){background:var(--fill);border:2px solid var(--edge);
  border-radius:8px;font-size:16px;margin-top:8px}
body.app :where(input:not([type=checkbox],[type=radio],[type=file]),select){height:48px;padding:0 14px}
body.app :where(textarea){padding:12px 14px}
body.app :where(input):focus,body.app :where(select):focus,body.app :where(textarea):focus{background:var(--card);border-color:var(--ink);outline:0}
body.app input[readonly]{color:var(--fgs)}
body.app .gsearch input{height:36px;border:1px solid var(--edge);margin:0;padding:0 16px 0 40px;font-size:14px}
body.app .gsearch input:focus{border:2px solid var(--ink);padding-left:39px}
body.app :where(button,.btn){background:var(--fill);border:0;color:var(--fg);border-radius:999px;min-height:36px;padding:10px 16px;font-size:14px;line-height:16px;font-weight:500}
body.app :where(button,.btn):hover{background:var(--active)}
body.app button.primary,body.app .btn.primary{background:var(--ink);color:var(--card);min-height:48px;padding:14px 20px;font-size:16px;line-height:20px}
body.app button.primary:hover,body.app .btn.primary:hover{background:var(--ink);filter:brightness(1.3)}
body.app td button.primary,body.app td .btn.primary,body.app form.inline button.primary,body.app .rowact .primary,body.app ul.list .primary{min-height:36px;padding:10px 16px;font-size:14px;line-height:16px}
body.app button.ghost,body.app .btn.ghostbtn{background:transparent}
body.app button.ghost:hover,body.app .btn.ghostbtn:hover{background:var(--fill)}
body.app .btn.danger,body.app summary.btn.danger{color:var(--bad);background:var(--redfill)}
body.app button.danger{background:var(--bad);color:var(--card)}
body.app nav.tabs{border-bottom:4px solid var(--track);gap:0;margin:0 0 24px}
body.app nav.tabs a{padding:16px;font-size:14px;line-height:16px;font-weight:500;color:var(--fg);border-bottom:4px solid transparent;margin-bottom:-4px}
body.app nav.tabs a.on{border-bottom-color:var(--ink)}
body.app .pill{border-radius:6px;padding:4px 6px;font-size:14px;line-height:16px;font-weight:500;border:1px solid var(--track);background:var(--fill);color:var(--fg)}
body.app .pill.active,body.app .pill.completed,body.app .pill.paid{background:var(--okfill);border-color:var(--okline);color:var(--oktext)}
body.app .pill.pending,body.app .pill.open,body.app .pill.warn{background:var(--amberfill);border-color:var(--amberline);color:var(--warn)}
body.app .pill.invited,body.app .pill.bad,body.app .pill.paused{background:var(--redfill);border-color:var(--redline);color:var(--bad)}
body.app th{background:var(--card);font-size:14px;color:var(--fg);font-weight:500;border-bottom:1px solid var(--hair)}
body.app td{border-bottom:1px solid var(--hair)}
body.app .notice{border-radius:12px;padding:16px 20px}
body.app .notice.ok{background:var(--okfill);color:var(--oktext)}
body.app .card.attn{border-color:var(--amberline);background:var(--amberfill)}
body.app .code{background:var(--fill)}

/* --- phone and narrow tablet: the sidebar is a drawer from the menu button ----------- */
@media (max-width:900px){
  .top{flex-wrap:nowrap;height:56px;min-height:56px;padding:0 8px 0 4px;gap:4px}
  .burger{display:flex;width:44px;height:44px;margin:0;border-radius:12px;flex:none}
  .burger span,.burger span::before,.burger span::after{background:var(--fg)}
  .navt:focus-visible~.top .burger{outline:2px solid var(--ink);outline-offset:-2px}
  .navt:checked~.top .burger span{background:transparent}
  .navt:checked~.top .burger span::before{transform:translateY(6px) rotate(45deg)}
  .navt:checked~.top .burger span::after{transform:translateY(-6px) rotate(-45deg)}
  .top .brand{gap:6px;font-size:13px}.top .brand img{height:18px}
  .gsearch{display:none}
  .tright{gap:2px}
  .tbtn.sbtn{display:inline-flex;width:40px;height:40px}
  .tbtn.help span{display:none}.tbtn.help{width:40px;height:40px;padding:0;justify-content:center;background:transparent}
  .tbtn.bell{width:40px;height:40px}
  .side{top:56px;width:min(300px,86vw);transform:translateX(-100%);transition:transform .2s ease;z-index:35;padding-top:12px}
  .navt:checked~.side{transform:none;box-shadow:12px 0 32px rgba(1,30,19,.16)}
  .navt:checked~.scrim{display:block;position:fixed;inset:56px 0 0 0;background:rgba(1,30,19,.32);z-index:34}
  body.app main{margin:0;padding:20px 16px 56px}
  body.app .gwb-foot{margin:0;padding:0 16px 32px}
  body.app h1{font-size:28px;line-height:36px}
  body.app .eyebrow+h1{font-size:26px;line-height:32px}
  body.app h2.sect,body.app .sugg h2{font-size:20px;line-height:28px;margin:24px 0 12px}
  body.app .card{padding:18px}
  .amenu{position:fixed;right:8px;left:auto;top:60px;width:min(300px,calc(100vw - 16px))}
}
@media (max-width:380px){.top .brand span{display:none}}

/* --- search results page ------------------------------------------------------------ */
ul.sres{list-style:none;margin:0;padding:0}
ul.sres a{display:flex;align-items:center;gap:14px;padding:12px 4px;border-top:1px solid var(--hair);text-decoration:none;color:var(--fg)}
ul.sres li:first-child a{border-top:0}
ul.sres .ic{width:20px;height:20px;color:var(--fgs);flex:none}
ul.sres span{display:flex;flex-direction:column}ul.sres b{font-weight:500}ul.sres small{color:var(--fgt)}

/* --- People: headline, filters, the table, selection, the edit panel -------------------- */
body.app .phead2{border:0;padding:0;margin:0 0 28px}
.ph-top{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:12px}
.ph-top span{font-size:14px;color:var(--fgs)}
.ph-top b.big{display:block;font-size:32px;line-height:40px;font-weight:700;font-variant-numeric:tabular-nums;margin-top:4px}
.ph-top b.big small{font-size:32px;color:var(--fgt);font-weight:700}
svg.segbar{display:block;width:100%;height:12px;border-radius:99px;overflow:hidden;background:var(--track)}
svg.segbar .s1{fill:var(--ink)}svg.segbar .s2{fill:var(--fgt)}svg.segbar .s3{fill:var(--amber)}svg.segbar .s4{fill:var(--red)}
svg.segbar .none{fill:var(--track)}
svg.segbar.funnel .s3{fill:var(--amber)}svg.segbar.funnel .s4{fill:var(--track)}
.legend{display:flex;flex-wrap:wrap;gap:6px 20px;margin-top:12px}
.legend .lg{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--fgs);text-decoration:none}
.legend .lg b{color:var(--fg);font-weight:500}
.legend i,.flist i{display:inline-block;width:12px;height:12px;border-radius:2px;flex:none}
i.s1{background:var(--ink)}i.s2{background:var(--fgt)}i.s3{background:var(--amber)}i.s4{background:var(--red)}
.funnelcard i.s4{background:var(--track)}
.pfilters{gap:8px;margin:0 0 8px}
.pfilters label{flex:0 1 180px;font-size:0;line-height:0;margin:0}
.pfilters label.grow{flex:1 1 280px;max-width:360px}
body.app .pfilters input[type=search],body.app .pfilters select{height:36px;margin:0;border-radius:28px;border:2px solid var(--edge);font-size:14px;padding:0 14px}
body.app .pfilters input[type=search]{padding-left:16px}
body.app .pfilters select[disabled]{color:var(--fgt)}
.pfilters button,.pfilters .btn{margin:0}
body.app .tablewrap.bare{border:0;border-radius:0;overflow-x:auto;margin:0 0 4px}
table.people th{font-size:16px;line-height:20px;padding:16px;border-bottom:1px solid var(--hair)}
table.people td{padding:16px;height:76px;font-size:14px;line-height:20px}
table.people td a.who b{font-size:14px;line-height:24px;font-weight:500}
table.people td .sub{display:block;color:var(--fgs);font-size:14px;line-height:20px}
table.people th.selc,table.people td.selc{width:52px;padding-right:0}
table.people input.selbox,table.people input.selall{width:20px;height:20px;margin:0;accent-color:var(--ink);cursor:pointer}
table.people tr.sel td{background:var(--fill)}
table.people tr:has(.selbox:checked) td{background:var(--fill)}
table.people td.acts{text-align:right;white-space:nowrap}
table.people td.acts .btn{margin:0 0 0 6px}
.tcount{margin:8px 0 24px}
.bulkbar{display:none;position:sticky;bottom:0;z-index:15;align-items:center;gap:12px;flex-wrap:wrap;background:var(--card);
  border-top:1px solid var(--hair);padding:14px 4px;margin:0 0 16px;box-shadow:0 -8px 16px -12px rgba(0,0,0,.18)}
main:has(.selbox:checked) .bulkbar{display:flex}
.bulkbar.show{display:flex}
.bulkbar .selcount{font-weight:500;white-space:nowrap;font-size:16px}
.bulkacts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:24px}
.bulkacts button,.bulkacts .btn{margin:0}
.bulkacts .gmove{display:inline-flex;gap:8px;align-items:center}
body.app .bulkacts select{width:auto;height:36px;margin:0;border-radius:999px;font-size:14px}
details.confirm.up .confirmbox{top:auto;bottom:calc(100% + 10px);color:var(--fg)}
.drawer{position:fixed;inset:0;z-index:50;display:flex;justify-content:flex-end}
.dscrim{position:absolute;inset:0;background:rgba(0,0,0,.4)}
.dpanel{position:relative;width:min(400px,100vw);height:100%;background:var(--card);display:flex;flex-direction:column;
  box-shadow:-4px 0 16px rgba(0,0,0,.12);animation:gwb-slide .2s ease-out}
@keyframes gwb-slide{from{transform:translateX(40px);opacity:.4}to{transform:none;opacity:1}}
.dhead{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 4px 28px}
body.app .dhead h2{margin:0;font-size:20px;line-height:28px;font-weight:500}
.dclose{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--fg)}.dclose:hover{background:var(--fill)}
.dclose .ic{width:20px;height:20px}
.dbody{flex:1;overflow-y:auto;padding:12px 28px}
.dbody label{margin-bottom:16px}
.dfoot{display:flex;flex-direction:column;gap:4px;padding:16px 28px 20px;border-top:1px solid var(--track)}
body.app .dfoot button.primary{width:100%;border-radius:8px;margin:0}
.dcancel{display:block;text-align:center;padding:12px;font-weight:500;color:var(--fg);text-decoration:none;border-radius:8px}
.dcancel:hover{background:var(--fill)}

/* --- People import: the drop zone and the three modes ------------------------------------ */
label.drop{position:relative;display:block;margin:0 0 12px}
label.drop .dz{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;padding:20px;text-align:center;
  border:2px dashed var(--edge);border-radius:12px;background:var(--card);color:var(--fg);font-size:14px}
label.drop:hover .dz,label.drop:focus-within .dz{border-color:var(--ink)}
label.drop .dz b{font-weight:500}
body.app label.drop input[type=file]{margin-top:10px;font-size:14px}
fieldset.modes{border:0;margin:6px 0 10px;padding:0}
fieldset.modes legend{margin:0 0 6px}
label.mode{display:flex;align-items:center;gap:16px;padding:12px 0;margin:0;border-top:1px solid var(--hair);cursor:pointer}
label.mode:first-of-type{border-top:0}
label.mode span{flex:1;display:flex;flex-direction:column;gap:2px}
label.mode b{font-size:16px;line-height:20px;font-weight:500}
label.mode small{font-size:14px;line-height:20px;color:var(--fgs);font-weight:400}
label.mode input{width:20px;height:20px;margin:0;accent-color:var(--ink);flex:none}
label.check.replaceok{display:none}
fieldset.modes:has(input[value=replace]:checked)+label.check.replaceok{display:flex}

/* --- Home: next steps, the People funnel, suggestions ------------------------------------ */
body.app .nsteps{padding:24px}
.ns{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);border:2px solid var(--edge);border-radius:12px;overflow:hidden;margin-top:12px}
.nsr{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.nslist{display:flex;flex-direction:column;border-right:1px solid var(--hair);padding:12px 0}
.nsi{display:flex;align-items:center;gap:12px;padding:12px 16px 12px 20px;margin:0;font-size:14px;line-height:16px;font-weight:500;color:var(--fg);cursor:pointer;
  border-left:4px solid transparent}
.nsi:hover{background:var(--fill)}
.nsi i{flex:none;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--fg);position:relative;background:var(--card)}
.nsi.done i{background:var(--ink);border-color:var(--ink)}
.nsi.done i::after{content:"";position:absolute;left:4px;top:1px;width:4px;height:8px;border:solid var(--lime);border-width:0 2px 2px 0;transform:rotate(45deg)}
.nsi.done span{color:var(--fgt)}
.nsi small{font-size:12px;color:var(--fgt);font-weight:400}
.nspanes{padding:28px 32px}
.nsp{display:none}
body.app .nsp h3{margin:0 0 12px;font-size:24px;line-height:32px;font-weight:700}
.nsp p{margin:0 0 24px;color:var(--fgs);font-size:16px;line-height:24px;max-width:560px}
.nsp .pdone{color:var(--oktext);font-weight:500}
.ns .nsr:nth-of-type(1):checked~.nspanes>.nsp:nth-child(1),.ns .nsr:nth-of-type(2):checked~.nspanes>.nsp:nth-child(2),
.ns .nsr:nth-of-type(3):checked~.nspanes>.nsp:nth-child(3),.ns .nsr:nth-of-type(4):checked~.nspanes>.nsp:nth-child(4),
.ns .nsr:nth-of-type(5):checked~.nspanes>.nsp:nth-child(5),.ns .nsr:nth-of-type(6):checked~.nspanes>.nsp:nth-child(6),
.ns .nsr:nth-of-type(7):checked~.nspanes>.nsp:nth-child(7),.ns .nsr:nth-of-type(8):checked~.nspanes>.nsp:nth-child(8){display:block}
.ns .nsr:nth-of-type(1):checked~.nslist>.nsi:nth-child(1),.ns .nsr:nth-of-type(2):checked~.nslist>.nsi:nth-child(2),
.ns .nsr:nth-of-type(3):checked~.nslist>.nsi:nth-child(3),.ns .nsr:nth-of-type(4):checked~.nslist>.nsi:nth-child(4),
.ns .nsr:nth-of-type(5):checked~.nslist>.nsi:nth-child(5),.ns .nsr:nth-of-type(6):checked~.nslist>.nsi:nth-child(6),
.ns .nsr:nth-of-type(7):checked~.nslist>.nsi:nth-child(7),.ns .nsr:nth-of-type(8):checked~.nslist>.nsi:nth-child(8){
  background:var(--active);border-left-color:var(--ink)}
.ns .nsr:focus-visible~.nslist{outline:2px solid var(--ink);outline-offset:-2px}
body.app .nsteps .setup-head h2{font-size:24px;line-height:32px}
body.app .nsteps .setup-head p{font-size:16px;line-height:24px;color:var(--fgs)}
body.app .nsteps progress::-webkit-progress-value{background:var(--ink)}
.funnelcard .fbig{margin:0 0 12px}.funnelcard .fbig b{font-size:32px;line-height:40px;font-weight:700;font-variant-numeric:tabular-nums;margin-right:6px}
ul.flist{list-style:none;margin:16px 0 0;padding:0}
ul.flist li{display:grid;grid-template-columns:auto 1fr auto;gap:2px 10px;align-items:center;padding:10px 0;border-top:1px solid var(--hair)}
ul.flist li:first-child{border-top:0}
ul.flist span{font-weight:500}ul.flist b{font-variant-numeric:tabular-nums;font-weight:500}
ul.flist small{grid-column:2/4;color:var(--fgs);font-size:14px;margin-top:-2px}
.sugg{margin:0 0 16px}
.sgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.scard{display:flex;flex-direction:column;gap:8px;padding:20px;background:var(--card);border:2px solid var(--edge);border-radius:12px;
  text-decoration:none;color:var(--fg)}
.scard:hover{border-color:var(--ink)}
.scard b{font-size:18px;line-height:24px;font-weight:500}.scard span{font-size:14px;line-height:20px;color:var(--fgs);flex:1}
.scard em{align-self:flex-start;font-style:normal;font-size:14px;font-weight:500;color:var(--fg);background:var(--fill);border-radius:999px;padding:10px 14px}
.scard:hover em{background:var(--active)}
.grid2{align-items:start}

/* --- Trip report builder ------------------------------------------------------------------ */
.rfilters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 16px}
.colpick{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px;align-items:start}
.colgroups{columns:2;column-gap:24px}
fieldset.colgroup{break-inside:avoid;border:0;margin:0 0 16px;padding:0}
fieldset.colgroup legend{font-size:14px;font-weight:700;color:var(--fg);padding:0;margin:0 0 8px}
body.app fieldset.colgroup label.check{margin:0 0 8px;font-size:14px;font-weight:400}
.colorder{border:2px solid var(--edge);border-radius:12px;padding:16px;position:sticky;top:84px}
ol.chosen{list-style:none;margin:0 0 12px;padding:0;counter-reset:col}
ol.chosen li{display:flex;align-items:center;gap:8px;padding:6px 8px;margin:0 0 4px;background:var(--fill);border:1px solid var(--fill);border-radius:8px;
  font-size:14px;cursor:grab;counter-increment:col}
ol.chosen li::before{content:counter(col);font-size:12px;color:var(--fgt);width:16px;text-align:right;font-variant-numeric:tabular-nums}
ol.chosen li.drag{opacity:.4}ol.chosen li.over{border-color:var(--ink)}
ol.chosen .grip .ic{width:16px;height:16px;color:var(--fgt)}
ol.chosen .cl{flex:1}
ol.chosen .mv{display:flex;gap:2px}
body.app ol.chosen .mv button{padding:4px 8px;font-size:12px;min-height:0;background:transparent}
body.app ol.chosen .mv button:hover{background:var(--card)}
.setdef{width:100%}
.rbar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:16px 0;background:var(--card);border-top:1px solid var(--hair)}
.rbar span{margin-right:auto}.rbar button{margin:0}
.radios,.recips{margin:0 0 16px}.radios label.check,.recips label.check{margin:0 0 10px;font-weight:400;font-size:16px}
.recips label.check .muted{margin-left:4px;font-size:14px}
label.check.radio input{accent-color:var(--ink)}

/* --- Support hub -------------------------------------------------------------------------- */
body.app .cards.stiles>a{padding:20px}
body.app .cards.stiles>a.on{border-color:var(--ink)}
body.app .cards.stiles b{font-size:32px;line-height:40px}
.cards.stiles small{font-size:14px;color:var(--fgs)}
details.newticket summary{display:flex;flex-direction:column;gap:4px;cursor:pointer;list-style:none}
details.newticket summary::-webkit-details-marker{display:none}
details.newticket summary b{font-size:20px;line-height:28px}
details.newticket[open] summary{margin-bottom:16px}
details.newticket .stackform{max-width:640px}
table.tickets td:first-child a{text-decoration:none}
table.tickets td .muted.small{display:block}
.tgrid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
ol.thread{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:10px}
ol.thread li{max-width:86%;padding:12px 14px;border-radius:14px;background:var(--fill)}
ol.thread li.mine{align-self:flex-end;background:var(--ink);color:var(--card)}
ol.thread li.mine .who{color:var(--track)}
ol.thread .who{display:block;font-size:12px;color:var(--fgt);margin-bottom:4px}
ol.thread p{margin:0;white-space:pre-wrap}
.replyform{border-top:1px solid var(--hair);padding-top:16px}
.emptybox b{display:block;font-weight:500;font-size:18px;margin-bottom:4px}.emptybox p{margin:0;color:var(--fgs)}

/* --- Settings: the security center ----------------------------------------------------------- */
.tsetup{border-top:1px solid var(--hair);margin-top:12px;padding-top:16px}.tsetup h3{margin:0 0 8px;font-size:16px}
body.app .seccenter{padding:20px 24px;margin-bottom:12px}
body.app .seccenter h2{margin:0 0 16px}
.secbar{display:flex;gap:6px}.secbar i{flex:1;height:6px;border-radius:99px;background:var(--track)}.secbar i.on{background:var(--ok)}
ul.secitems{list-style:none;margin:0 0 24px;padding:0;display:flex;flex-direction:column;gap:8px}
ul.secitems li.ok{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:12px;background:var(--fill);font-size:14px}
ul.secitems li.ok b{font-weight:500}
.tick{width:20px;height:20px;border-radius:50%;background:var(--ok);position:relative;flex:none}
.tick::after{content:"";position:absolute;left:7px;top:3px;width:5px;height:10px;border:solid var(--card);border-width:0 2px 2px 0;transform:rotate(45deg)}
ul.secitems li.todo details{border:2px solid var(--edge);border-radius:12px;padding:12px 16px}
ul.secitems li.todo details[open]{border-color:var(--ink)}
ul.secitems summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;font-size:14px}
ul.secitems summary::-webkit-details-marker{display:none}
ul.secitems summary b{flex:1;font-weight:500}
ul.secitems summary .chev{width:16px;height:16px}
ul.secitems details[open] summary .chev{transform:rotate(180deg)}
.info{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--fg);font-size:12px;font-weight:700;flex:none}
ul.secitems details p{margin:12px 0 16px 32px;color:var(--fgs)}
ul.secitems details .btn{margin-left:32px}

@media (max-width:900px){
  .pfilters label,.pfilters label.grow{flex:1 1 calc(50% - 8px);max-width:none}
  .pfilters label.grow{flex-basis:100%}
  .pfilters button{flex:1}
  table.people td{height:auto;padding:3px 0}
  table.people td.selc{display:block;float:right;width:auto;padding:0}
  table.people th.selc{display:none}
  .bulkbar{padding:12px 0}
  .bulkacts{margin-left:0;width:100%}
  .bulkacts button,.bulkacts .btn,.bulkacts details.confirm,.bulkacts details.confirm summary{flex:1 1 auto;width:auto}
  .bulkacts .gmove{flex:1 1 100%}.bulkacts .gmove select{flex:1}
  details.confirm.up .confirmbox{position:absolute;left:0;right:0;width:auto}
  .dpanel{width:100vw}
  .ns{grid-template-columns:1fr}
  .nslist{border-right:0;border-bottom:1px solid var(--hair)}
  .nspanes{padding:20px}
  .rfilters{grid-template-columns:1fr 1fr}
  .colpick{grid-template-columns:1fr}
  .colgroups{columns:1}
  .colorder{position:static}
  .rbar{flex-wrap:wrap}.rbar span{flex-basis:100%}.rbar button{flex:1}
  .tgrid{grid-template-columns:1fr}
  ol.thread li{max-width:94%}
  .sgrid{grid-template-columns:1fr}
}
/* the tab underline sits on the track, not under a clipped border */
body.app nav.tabs{border-bottom:0;box-shadow:inset 0 -4px 0 var(--track)}
body.app nav.tabs a{margin-bottom:0}
table.people th{white-space:nowrap}
/* the file input covers the drop zone, so a file dropped anywhere on it is taken */
body.app label.drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
label.drop.has .dz{border-color:var(--ink);border-style:solid}
@media (max-width:900px){
  .pfilters label:has(select[disabled]){display:none}
  body.app .bulkacts button,body.app .bulkacts .btn,body.app .bulkacts select{min-height:40px;height:40px;padding-top:0;padding-bottom:0}
  .bulkbar .selcount{flex-basis:100%}
}
.rfilters input,.rfilters select{min-width:0;width:100%}
@media (max-width:600px){.rfilters{grid-template-columns:1fr}}
@media (max-width:900px){
  body.app table.stack td{border:0}
  body.app table.stack tr{border-bottom:1px solid var(--hair)}
  body.app table.stack td[data-l]{display:flex;align-items:flex-start;gap:12px}
  body.app table.stack td[data-l]::before{width:96px;flex:none;color:var(--fgt);font-size:13px;line-height:20px}
  body.app table.stack td[data-l]>*:not(.pill){min-width:0}
}
/* Action cells in the People and Scheduled tables: a table cell, not a flex
   box (.acts in business.css), so the row's border runs under the actions
   and they sit on the row's middle line. Phone widths keep the stacked look. */
td.acts{display:table-cell;vertical-align:middle;white-space:nowrap}
table.people td.acts .btn{display:inline-flex;vertical-align:middle}
td.acts details.ask{display:inline-block;vertical-align:middle}
@media (max-width:900px){
  table.stack td.acts{display:flex;flex-wrap:wrap;gap:8px;white-space:normal}
}
