/* Comment detecteur, the ClinicService family (UX Craft manual): neutral paper, white cards with hairlines, flat,
   one accent with a job (teal: progress, focus, the active tab, the mark), ink for the one filled button,
   state colours only as text + wash, one red per screen. Brand DuoIcons on rows, sections and tabs; line icons on controls.
   Fonts are served from this site (SIL Open Font License, see /fonts): Google Fonts stalls on some networks. */
@font-face{font-family:Inter;src:url(/fonts/inter.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"Noto Sans Arabic";src:url(/fonts/noto-sans-arabic.woff2) format("woff2");font-weight:400 600;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}

.cd{
  --page:#F7F7F5;--panel:#FFFFFF;--fill:#EFEFEB;--hair:#E4E4DF;--line:#CFD1CB;--control:#8E918C;
  --ink:#111312;--body:#2C2F2D;--muted:#5D615E;
  --accent:#0F6B5C;--accent-wash:#E3F0EC;
  --primary:#111312;--on-primary:#FFFFFF;
  --green:#1B7548;--green-wash:#E6F4EC;--amber:#8C5F0E;--amber-wash:#FFF3DA;--red:#C8322B;--red-wash:#FBEDEC;
  --fb:#0866FF;--ig:#111312;--tg:#229ED9;
  --toast:#111312;--on-toast:#F7F7F5;--toast-act:#7FD1BE;
  --sans:Inter,"Noto Sans Arabic",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --ar:"Noto Sans Arabic","Geeza Pro","Segoe UI",sans-serif;
  --ease:cubic-bezier(.2,0,0,1);
  margin:0;min-height:100vh;background:var(--page);color:var(--body);font:400 15px/24px var(--sans);
  -webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums;
}
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]){color-scheme:dark}
  html:not([data-theme="light"]) .cd{--page:#0F1110;--panel:#171A19;--fill:#202423;--hair:#2B302E;--line:#3B413E;--control:#6E7471;
    --ink:#F1F3F2;--body:#D5D9D7;--muted:#A0A7A4;
    --accent:#5FC7B0;--accent-wash:#15302A;
    --primary:#F1F3F2;--on-primary:#0F1110;
    --green:#6CC496;--green-wash:#14291D;--amber:#E8C27A;--amber-wash:#2E2410;--red:#F2A39B;--red-wash:#36191A;
    --ig:#F1F3F2;--toast:#F1F3F2;--on-toast:#111312;--toast-act:#0F6B5C}
}
html[data-theme="dark"] .cd{--page:#0F1110;--panel:#171A19;--fill:#202423;--hair:#2B302E;--line:#3B413E;--control:#6E7471;
    --ink:#F1F3F2;--body:#D5D9D7;--muted:#A0A7A4;
    --accent:#5FC7B0;--accent-wash:#15302A;
    --primary:#F1F3F2;--on-primary:#0F1110;
    --green:#6CC496;--green-wash:#14291D;--amber:#E8C27A;--amber-wash:#2E2410;--red:#F2A39B;--red-wash:#36191A;
    --ig:#F1F3F2;--toast:#F1F3F2;--on-toast:#111312;--toast-act:#0F6B5C}
html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}
.cd *,.cd *::before,.cd *::after{box-sizing:border-box}
:where(.cd) :where(p,h1,h2,h3,ol,ul){margin:0;padding:0}
:where(.cd) :where(ol,ul){list-style:none}
:where(.cd) a{color:inherit}  /* zero weight, so button classes keep their own colours */
.cd svg{flex:none;display:block}
.cd :focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.cd [hidden]{display:none!important}  /* hidden always wins over a layout class */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Top bar (N2): mark, product, business; nav words with DuoIcons, soft fill on the active tab. */
.top{position:sticky;top:0;z-index:5;height:56px;display:flex;align-items:center;gap:24px;padding:0 32px;background:var(--panel);border-bottom:1px solid var(--hair)}
.brand{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;text-decoration:none}
.brand b{font:600 15px/22px var(--sans);letter-spacing:-.2px;color:var(--ink);white-space:nowrap}
.brand .ws{display:block;min-width:0;padding-left:11px;background:linear-gradient(var(--hair),var(--hair)) left center/1px 16px no-repeat;font:400 15px/22px var(--sans);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav{display:flex;gap:4px}
.tab{height:44px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border-radius:8px;font:500 15px/22px var(--sans);color:var(--muted);text-decoration:none;white-space:nowrap;transition:background-color .16s var(--ease),color .16s var(--ease)}
.tab:hover{color:var(--ink)}
.tab[aria-current="page"]{background:var(--accent-wash);color:var(--accent)}
.tab svg{width:19px;height:19px}
.top .end{margin-left:auto;display:flex;align-items:center;gap:16px;font:400 14px/20px var(--sans);color:var(--muted);white-space:nowrap}
.top .end a{color:var(--muted);text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
.top .end a:hover{color:var(--ink)}
.tabbar{display:none}

/* The app frame (the product tour, Dec 1). Wide screens: the side menu replaces the top bar. Tablets and phones: a top
   bar with the business, and the pages in a tab bar at the bottom. On every size a bar above the page shows its name
   and the last check. */
.side{display:none}
.apphead{display:flex;align-items:center;gap:4px 12px;min-height:52px;padding:0 20px;border-bottom:1px solid var(--hair);background:var(--panel)}
@media (min-width:640px){.apphead{padding:0 32px}}
.has-side .page{padding-top:28px}
@media (max-width:639px){.has-side .page{padding-top:20px}.has-side .figs{display:grid}.has-side .figfoot{border-top:1px solid var(--hair)}}
/* The tour's page tops: one bold line, then a muted one. */
.has-side .h1{max-width:none;font:600 21px/28px var(--sans);letter-spacing:-.3px;color:var(--ink)}
.has-side .h1>span{display:block;margin-top:2px;font:400 15px/22px var(--sans);letter-spacing:0;color:var(--muted)}
.h1 b.cnt{font:inherit;color:inherit}
@media (min-width:1024px){
  .has-side .top{display:none}
  .frame{display:grid;grid-template-columns:248px minmax(0,1fr);align-items:start}
  .side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:16px;padding:12px 12px 16px;border-right:1px solid var(--hair);background:var(--panel)}
  .apphead{position:sticky;top:0;z-index:4;min-height:56px}
}
/* A jump (Negative, Alerts...) lands below the pinned bar, not under it. */
.has-side [id]{scroll-margin-top:72px}
.has-side .sec h2[id]{scroll-margin-top:96px}
/* Keyboard users can skip the menu. */
.skip{position:absolute;left:12px;top:-64px;z-index:20;padding:12px 16px;border-radius:8px;background:var(--ink);color:var(--panel);font:500 14px/20px var(--sans);text-decoration:none}
.skip:focus{top:12px}
.framemain:focus{outline:none}
/* The menu fits a short laptop screen whole: there, "This month" steps aside (the list's own tiles show the same counts). */
@media (min-width:1024px) and (max-height:719px){.side .smonth{display:none}}
.sws{display:flex;align-items:center;gap:10px;min-height:52px;padding:6px 8px;border-radius:10px;color:var(--ink);text-decoration:none}
.sws:hover{background:var(--fill)}
.top .sws{min-width:0}
.stile{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:9px;background:var(--accent);color:var(--panel)}
.stile .pmark{width:18px;height:18px;color:var(--panel)}
.wsn{display:flex;flex-direction:column;min-width:0}
.wsn b{font:600 15px/22px var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wsn small{font:400 13px/18px var(--sans);color:var(--muted)}
.snavl,.smonth{display:flex;flex-direction:column;gap:2px}
.smonth .sh{padding:0 10px 4px;font:500 13px/18px var(--sans);color:var(--muted)}
.sitem{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 10px;border-radius:9px;font:500 14px/20px var(--sans);color:var(--body);text-decoration:none}
a.sitem:hover{background:var(--fill);color:var(--ink)}
/* A group emptied on the page: its menu item and tile stay as plain text until it fills again. */
a.sitem:not([href]){color:var(--muted);cursor:default;background:none}
a.fig:not([href]){cursor:default}
a.fig:not([href]):hover span{color:var(--muted)}
.sitem[aria-current="page"]{background:var(--accent-wash);color:var(--accent);font-weight:600}
.sitem.quiet{color:var(--muted)}
.sitem svg{width:20px;height:20px;color:var(--muted)}
.sitem[aria-current="page"] svg{color:var(--accent)}
.sitem .n,.sitem small{margin-left:auto;font:500 13px/18px var(--sans);color:var(--muted)}
.sitem[aria-current="page"] .n{color:var(--accent)}
.dot{width:8px;height:8px;margin:0 6px 0 2px;border-radius:50%;flex:none}
.dot.new{background:#2260FF}.dot.wait{background:#F2B63D}.dot.neg{background:var(--red)}.dot.mild{background:#97A3B6}.dot.done{border:1.5px solid var(--green)}
.tgcard{margin-top:auto;display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;border:1px solid var(--hair);border-radius:12px;color:var(--ink);font:500 14px/20px var(--sans);text-decoration:none}
.tgcard:hover{background:var(--fill)}
.tgcard svg{width:18px;height:18px;color:var(--tg)}
.tgcard b{margin-left:auto;font:600 13px/18px var(--sans);color:var(--accent)}
.tgcard b.off{color:var(--muted)}
.apphead .atitle{font:600 18px/26px var(--sans);color:var(--ink)}
.apphead .r{margin-left:auto;font:400 13px/18px var(--sans);color:var(--muted);white-space:nowrap}

/* Page */
.page{max-width:960px;margin:0 auto;padding:40px 32px 120px}
.page.narrow{max-width:680px}
.h1{font:500 34px/42px var(--sans);letter-spacing:-.8px;color:var(--ink);max-width:24em}
.h1 span{color:var(--muted)}
.cd :is(h1,h2,h3){overflow-wrap:anywhere}
.h1.big{font-size:44px;line-height:52px;letter-spacing:-1.1px;max-width:17em}
.lede{margin-top:12px;font:400 16px/24px var(--sans);color:var(--muted);max-width:36em}
.muted{color:var(--muted)}
.card{background:var(--panel);border:1px solid var(--hair);border-radius:12px}

/* Buttons: pills; ink is the one filled button; line icons only. */
.btn{appearance:none;height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:500 15px/22px var(--sans);display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;white-space:nowrap;transition:transform .12s var(--ease),background-color .16s var(--ease),border-color .16s var(--ease)}
.btn:hover{border-color:var(--control)}
.btn:active{transform:scale(.97)}
.btn svg{width:18px;height:18px}
.btn.primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.btn.quiet{border-color:transparent;background:none;color:var(--muted);padding:0 12px}
.btn.quiet:hover{color:var(--ink)}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.fbbtn{height:52px;padding:0 24px 0 20px;border-radius:999px;border:0;background:var(--fb);color:#FFFFFF;font:600 16px/22px var(--sans);display:inline-flex;align-items:center;gap:10px;text-decoration:none;cursor:pointer;transition:transform .12s var(--ease)}
.fbbtn:active{transform:scale(.97)}
.fbbtn svg{width:22px;height:22px}
.fbbtn.small{height:44px;font-size:15px;padding:0 18px 0 14px}
.fbbtn.small svg{width:20px;height:20px}
.acts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* Vendor logos (real one-colour glyphs) */
.logo{display:inline-flex;width:20px;height:20px}
.logo svg{width:20px;height:20px}
.logo.fb{color:var(--fb)}.logo.ig{color:var(--ig)}.logo.tg{color:var(--tg)}

/* Sign-in */

/* Notices: a line inside the page, state colour as text + wash. */
.notice{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:12px;background:var(--fill);font:400 15px/22px var(--sans);color:var(--body)}
.notice .duo{margin-top:-1px}
.notice b{display:block;font-weight:600;color:var(--ink)}
.notice .acts{margin-top:12px}
.notice.amber{background:var(--amber-wash)}.notice.amber b{color:var(--amber)}
.notice.red{background:var(--red-wash)}.notice.red b{color:var(--red)}
.notice.green{background:var(--green-wash)}.notice.green b{color:var(--green)}
.notice.plain{background:var(--panel);border:1px solid var(--hair)}
.stack{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:24px}
.stack.top-notes{margin:0 0 28px}
.fresh{margin:-16px 0 28px}
.grow{flex:1;min-width:0}
.notice .rail{margin-top:12px}
.sumcard{margin-top:28px}
.sumcard .figs{margin-top:0}
.handled .card>.fold{border-top:0}
.handled .row .acts{margin-top:0}

/* Rails */
.rail{height:6px;border-radius:3px;background:var(--fill);overflow:hidden}
.rail i{display:block;height:100%;min-width:6px;border-radius:3px;background:var(--accent);transition:width .18s var(--ease)}

/* Reading: three numbered steps */
.steps{margin-top:32px}
.step{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:16px;align-items:start;padding:20px 24px;border-top:1px solid var(--hair)}
.step:first-child{border-top:0}
.step .duo{width:28px;height:28px}
.step h2{font:600 16px/24px var(--sans);color:var(--ink)}
.step p{margin-top:2px;font:400 14px/20px var(--sans);color:var(--muted)}
.step .rail{margin-top:12px}
.step .st{font:500 14px/24px var(--sans);color:var(--muted);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.step .st.done{color:var(--green)}
.step .st.now{color:var(--accent)}
.step .st svg{width:16px;height:16px}
.step[data-state="later"] h2{color:var(--muted)}
.after{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.after p{font:400 15px/22px var(--sans);color:var(--muted);max-width:30em}

/* The list */
.figs{margin-top:28px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.fig{display:block;padding:18px 22px 16px;text-decoration:none;border-left:1px solid var(--hair);min-height:88px}
.fig:first-child{border-left:0}
.fig b{display:block;font:500 28px/34px var(--sans);letter-spacing:-.6px;color:var(--ink)}
.fig span{display:block;margin-top:4px;font:400 14px/20px var(--sans);color:var(--muted)}
.fig .dot{display:inline-block;vertical-align:1px;margin:0 7px 0 0}
.fig:hover span{color:var(--ink)}
.figfoot{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:center;padding:14px 22px;border-top:1px solid var(--hair);font:400 14px/20px var(--sans);color:var(--muted)}
.figfoot b{font-weight:500;color:var(--ink)}
.figfoot .rail{grid-column:1/-1}
.bar{margin-top:32px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.bar p{font:400 14px/20px var(--sans);color:var(--muted)}
.seg{display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:var(--fill)}
.seg button{appearance:none;border:0;background:none;height:44px;min-width:44px;padding:0 16px;border-radius:999px;font:500 14px/20px var(--sans);color:var(--muted);cursor:pointer;transition:background-color .16s var(--ease),color .16s var(--ease)}
.seg button[aria-checked="true"]{background:var(--panel);color:var(--ink);box-shadow:0 0 0 1px var(--line)}

.group{margin-top:40px;scroll-margin-top:72px}
.ghead{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.ghead h2{font:600 17px/24px var(--sans);color:var(--ink)}
.ghead .n{font:400 15px/22px var(--sans);color:var(--muted)}
.rows{overflow:hidden}
.row{display:grid;grid-template-columns:20px minmax(0,1fr);gap:14px;padding:20px 24px;border-top:1px solid var(--hair);transition:opacity .16s var(--ease),transform .16s var(--ease)}
.rows>.row:first-child,.rows>details:first-child>summary{border-top:0}
.row.leaving{opacity:0;transform:translateY(-4px)}
.row .logo{margin-top:1px}
.meta{display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;font:400 14px/22px var(--sans);color:var(--muted)}
.who{font:600 15px/22px var(--sans);color:var(--ink)}
.say{margin-top:6px;font:400 17px/28px var(--sans);color:var(--ink);unicode-bidi:plaintext;text-align:start;white-space:pre-wrap;overflow-wrap:anywhere}
.say.ar{font:400 18px/31px var(--ar)}
.gist{margin-top:6px;font:400 15px/22px var(--sans);color:var(--muted)}
.gist b{font-weight:600;color:var(--body)}
.on{margin-top:4px;font:400 14px/22px var(--sans);color:var(--muted)}
.on a{color:var(--muted);text-decoration-color:var(--control);text-underline-offset:3px;display:inline-block;min-width:44px;padding:11px 0;margin:-11px 0}  /* 44 px to tap, same line */
.on a:hover{color:var(--ink)}
.row .acts{margin-top:14px}
.err{margin-top:10px;display:flex;align-items:center;gap:8px;font:400 14px/20px var(--sans);color:var(--red)}
details>summary{list-style:none}
details>summary::-webkit-details-marker{display:none}
.fold{display:flex;align-items:center;gap:12px;min-height:56px;padding:0 24px;border-top:1px solid var(--hair);font:500 15px/22px var(--sans);color:var(--ink);cursor:pointer}
.fold .n{margin-left:auto;color:var(--muted);font-weight:400}
.fold .chev{width:18px;height:18px;color:var(--muted);transition:rotate .18s var(--ease)}
details[open]>.fold .chev{rotate:90deg}
details[open]>.fold{border-bottom:1px solid var(--hair)}
.done{display:inline-flex;align-items:center;gap:6px;color:var(--green);font:400 14px/22px var(--sans)}
.done svg{width:16px;height:16px}
.done.hid{color:var(--muted);white-space:nowrap}
.handled .row{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:12px 24px}
.empty{margin-top:28px;padding:56px 24px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.empty .duo{width:64px;height:64px;margin-bottom:12px}
.empty h2{font:600 20px/28px var(--sans);color:var(--ink)}
.empty p{max-width:380px;font:400 15px/22px var(--sans);color:var(--muted)}
.empty .acts{margin-top:16px}

/* Settings */
.secs{margin-top:32px;display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.sec{padding:24px}
.sechead{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px}
.sechead .si{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--accent-wash);color:var(--accent)}
.sechead .si svg{width:18px;height:18px}
.sechead h2{font:600 17px/24px var(--sans);color:var(--ink)}
.sechead p{margin-top:2px;font:400 15px/22px var(--sans);color:var(--muted);overflow-wrap:anywhere}
.secbody{margin:16px 0 0 38px}
.opts{display:flex;gap:8px;flex-wrap:wrap}
.opt{appearance:none;height:48px;padding:0 18px;border-radius:12px;border:1px solid var(--line);background:var(--panel);font:500 15px/22px var(--sans);color:var(--ink);cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.opt[aria-checked="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.opt svg{width:18px;height:18px;color:var(--accent)}
.opt:disabled{cursor:default;opacity:.75}
.rowsopt{flex-direction:column;flex-wrap:nowrap}
.rowsopt .opt{height:auto;min-height:60px;padding:10px 16px;gap:12px;justify-content:flex-start;text-align:left}
.rowsopt .radio{width:18px;height:18px;flex:none;display:grid;place-items:center;border-radius:50%;border:1.5px solid var(--control)}
.rowsopt .opt[aria-checked="true"]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.rowsopt .opt[aria-checked="true"] .radio{border-color:var(--accent)}
.rowsopt .opt[aria-checked="true"] .radio::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
.rowsopt .ot{display:flex;flex-direction:column}
.rowsopt .ot small{font:400 13px/18px var(--sans);color:var(--muted)}
.ok.saved{margin-top:12px}
.lines{border:1px solid var(--hair);border-radius:12px;overflow:hidden}
.line{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:56px;padding:8px 16px;border-top:1px solid var(--hair);font:400 15px/22px var(--sans);color:var(--ink)}
.line:first-child{border-top:0}
.line b{flex:0 1 auto;max-width:calc(100% - 32px);font-weight:500;min-width:0;overflow-wrap:anywhere}
.line .r{margin-left:auto;min-width:0;overflow-wrap:anywhere;color:var(--muted);font-size:14px}
.line .r.stop{color:var(--red)}
.secbody .acts{margin-top:12px}
.ok{display:inline-flex;align-items:center;gap:6px;font:500 15px/22px var(--sans);color:var(--green)}
.ok svg{width:18px;height:18px}

/* Pick accounts */
.picklist{margin-top:28px;overflow:hidden}
.pick{display:flex;align-items:center;gap:14px;min-height:64px;padding:0 20px;border-top:1px solid var(--hair);cursor:pointer}
.pick:first-child{border-top:0}
.pick input{width:22px;height:22px;accent-color:var(--accent);margin:0;flex:none}
.pick b{display:block;font:600 15px/22px var(--sans);color:var(--ink)}
.pick small{display:block;font:400 14px/20px var(--sans);color:var(--muted)}
.under{margin-top:12px;font:400 14px/20px var(--sans);color:var(--muted)}
.formacts{margin-top:28px}

/* Prose (privacy, terms) */
.prose{margin-top:32px;max-width:620px}
.prose h2{margin-top:32px;font:600 18px/26px var(--sans);color:var(--ink)}
.prose p{margin-top:8px;font:400 16px/26px var(--sans);color:var(--body)}

/* Toast (sits over the page: the one shadow) */
.toastbar{position:fixed;left:0;right:0;bottom:24px;display:flex;justify-content:center;pointer-events:none;padding:0 16px;z-index:10}
.toast{pointer-events:auto;display:inline-flex;align-items:center;gap:12px;min-height:52px;padding:0 6px 0 16px;border-radius:12px;background:var(--toast);color:var(--on-toast);font:500 15px/22px var(--sans);box-shadow:0 8px 28px rgba(16,16,19,.18);transform:translateY(12px);opacity:0;transition:transform .22s var(--ease),opacity .22s var(--ease)}
.toast.on{transform:none;opacity:1}
.toast>svg{width:18px;height:18px;color:var(--toast-act)}
.toast button{appearance:none;height:44px;padding:0 14px;border:0;border-radius:8px;background:none;color:var(--toast-act);font:600 15px/22px var(--sans);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.toast button svg{width:18px;height:18px}
.toast .msg{padding:8px 0}   /* two lines get room above and below; one line stays 52 px */
.toast{max-width:100%}
.toast .msg{min-width:0}
.toast .nw{display:inline-block;max-width:100%;overflow-wrap:anywhere}

/* Tablets and phones: the pages sit in a tab bar at the bottom, in thumb reach (the product tour's narrow frame); the
   top bar keeps the business and, on tablets, the last check. */
@media (max-width:1023px){
  .top .nav{display:none}
  .tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:5;background:var(--panel);border-top:1px solid var(--hair);padding:0 8px env(safe-area-inset-bottom)}
  .tabbar a{flex:1;min-width:0;height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:500 13px/16px var(--sans);color:var(--muted);text-decoration:none;white-space:nowrap}
  .tabbar a[aria-current="page"]{color:var(--accent)}
  .tabbar svg{width:24px;height:24px}
  .toastbar{bottom:76px}
}
/* Phone: nav moves to a bottom tab bar, in thumb reach. */
@media (max-width:639px){
  .top{padding:0 20px;gap:12px}
  .top .end{display:none}
  .page{padding:24px 20px 120px}
  .h1{font-size:26px;line-height:32px;letter-spacing:-.4px}
  .h1.big{font-size:32px;line-height:38px;letter-spacing:-.6px}
  .figs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fig:nth-child(3){border-left:0}
  .fig:nth-child(n+3){border-top:1px solid var(--hair)}
  .figs{display:none}
  .figfoot{grid-template-columns:minmax(0,1fr);padding:14px 16px;border-top:0}
  .bar p{display:none}
  .bar{margin-top:24px}
  .seg{display:flex;width:100%}.seg button{flex:1}
  .row{padding:18px 16px;gap:12px}
  .meta{gap:2px 12px}.meta .sep{display:none}  /* no dot left hanging at a line end */
  .fold{padding:0 16px}
  .row .acts .btn{flex:1 1 100%;height:48px}
  .step{padding:18px 16px;gap:12px}
  .sec{padding:20px 16px}
  .secbody{margin-left:0}
  .after .btn{width:100%}
  .fbbtn{width:100%;justify-content:center}
  .handled .row{padding:12px 16px}
}
@media (prefers-reduced-motion:reduce){.cd *{transition-duration:.15s!important;transform:none!important}}

/* Nov 28 board: the landing page with pricing, the four ways in, Facebook connected inside, the welcome, and the list's five changes. */

.h2{font:500 28px/36px var(--sans);letter-spacing:-.5px;color:var(--ink);max-width:24em}
.h2 span{color:var(--muted)}
.figs.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.note{margin-top:12px;font:400 14px/20px var(--sans);color:var(--muted)}

/* Welcome: what we found, the worst three, then three next steps */
.wel .lede{max-width:40em}
.worst{margin-top:40px}
.worst .row .acts{display:none}
.next{margin-top:40px}
.next ol{counter-reset:n}
.nx{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:16px;align-items:center;padding:20px 24px;border-top:1px solid var(--hair)}
.nx:first-child{border-top:0}
.nx .duo{width:28px;height:28px}
.nx h3{font:600 16px/24px var(--sans);color:var(--ink)}
.nx p{margin-top:2px;font:400 14px/20px var(--sans);color:var(--muted)}
.picksteps .nx{align-items:start}
.picksteps .picklist{margin-top:16px}
.picksteps .formacts{margin-top:16px}
.nx[data-state="later"] h3{color:var(--muted)}
.nx .st{font:500 14px/24px var(--sans);color:var(--muted)}
.wel .empty{margin-top:28px}

/* The list: Not bad on every row, 25 per group, older ones folded, Telegram nudge */
.row .acts .end{margin-left:auto}
.more{display:flex;justify-content:center;padding:8px;border-top:1px solid var(--hair)}
.older .card>.fold{border-top:0}
.olderbody{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.olderbody p{font:400 15px/22px var(--sans);color:var(--muted);max-width:34em}
.done.nb{color:var(--muted)}
.kbd{margin-top:16px;font:400 14px/20px var(--sans);color:var(--muted)}
.kbd kbd{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;margin:0 2px;border:1px solid var(--line);border-radius:6px;font:500 13px/20px var(--sans);color:var(--ink);background:var(--panel)}

/* Medium */
/* Phone */
@media (max-width:639px){
  .h2{font-size:22px;line-height:28px;letter-spacing:-.3px}
  .figs.three{grid-template-columns:minmax(0,1fr)}
  .figs.three .fig{border-left:0;border-top:1px solid var(--hair)}
  .figs.three .fig:first-child{border-top:0}
  .figs.three{display:grid}
  .nx{grid-template-columns:28px minmax(0,1fr);padding:18px 16px;gap:12px}
  .nx>.btn,.nx>.acts{grid-column:1/-1}
  .nx>.btn{width:100%;height:48px}
  .row .acts .btn.half{flex:1 1 calc(50% - 4px)}
  .row .acts .end{margin-left:0}
  .olderbody{padding:16px}
  .olderbody .btn{width:100%}
  .kbd{display:none}
  .nudge .t{display:none}
  .nudge .acts{margin-top:8px}
}

/* ---------- v2: public site (landing with pricing), accounts (sign up, log in, email code), connect Facebook inside ---------- */
.btn.small{height:44px;padding:0 16px;font-size:14px}
.top .end .btn.small{color:var(--ink);padding:0 16px;min-height:0}
.wrap{max-width:1120px;margin:0 auto;padding:0 40px}
.works{margin-top:40px;display:flex;align-items:center;justify-content:center;gap:28px;flex-wrap:wrap;font:400 14px/20px var(--sans);color:var(--muted)}
.works span{display:inline-flex;align-items:center;gap:8px;color:var(--body);font-weight:500}
.plan{padding:28px 24px;display:flex;flex-direction:column}
.plan .price{margin-top:20px;font:500 44px/48px var(--sans);letter-spacing:-1.2px;color:var(--ink)}
.plan .price span{font:400 15px/22px var(--sans);letter-spacing:0;color:var(--muted)}
.plan ul{margin-top:20px;display:grid;gap:10px;flex:1}
.plan li{display:flex;gap:10px;align-items:flex-start;font:400 15px/22px var(--sans);color:var(--body)}
.plan li svg{width:18px;height:18px;margin-top:2px;color:var(--accent)}
.plan .btn{margin-top:24px;width:100%}

/* Accounts: sign up, log in, email code */
.auth{min-height:calc(100vh - 57px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.authform{display:flex;flex-direction:column;justify-content:center;padding:64px 40px}
.authform>div{width:100%;max-width:420px;margin:0 auto}
.authform .h1{font-size:32px;line-height:40px;letter-spacing:-.6px}
.provs{margin-top:28px;display:grid;gap:10px}
.prov{height:48px;border-radius:12px;border:1px solid var(--line);background:var(--panel);display:flex;align-items:center;justify-content:center;gap:10px;font:500 15px/22px var(--sans);color:var(--ink);text-decoration:none}
.prov:hover{border-color:var(--control)}
.prov svg{width:20px;height:20px}
.prov .apple{color:var(--ink)}
.or{margin:20px 0;display:flex;align-items:center;gap:12px;font:400 14px/20px var(--sans);color:var(--muted)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--hair)}
.field label{display:block;font:500 14px/20px var(--sans);color:var(--ink)}
.field input{margin-top:6px;width:100%;height:48px;border-radius:12px;border:1px solid var(--line);background:var(--panel);padding:0 14px;font:400 16px/22px var(--sans);color:var(--ink)}
.field input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.field .help{margin-top:8px;font:400 14px/20px var(--sans);color:var(--muted)}
.field .bad{margin-top:8px;font:400 14px/20px var(--sans);color:var(--red)}
.field input.code{height:60px;font:500 28px/32px var(--sans);letter-spacing:10px;text-align:center}
.field input[aria-invalid="true"]{border-color:var(--red)}
.authform .btn.primary{margin-top:16px;width:100%;height:48px}
.switch{margin-top:24px;font:400 15px/22px var(--sans);color:var(--muted)}
.switch a{display:inline-block;min-width:44px;text-align:center;padding:13px 0;margin:-13px 0;color:var(--ink);font-weight:500;text-underline-offset:3px}
.legal2{margin-top:30px;font:400 13px/19px var(--sans);color:var(--muted)}
.legal2 a{color:var(--muted);padding:15px 3px;margin:0 -3px}
.authside{background:var(--panel);border-left:1px solid var(--hair);padding:64px 56px;display:flex;flex-direction:column;justify-content:center}
.authside>div{max-width:460px}
.authside h2{font:500 24px/32px var(--sans);letter-spacing:-.4px;color:var(--ink)}
.authside h2 span{color:var(--muted)}
.authside ol{margin-top:28px;display:grid;gap:20px}
.authside li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:14px}
.authside li .duo{width:28px;height:28px}
.authside li b{display:block;font:600 16px/24px var(--sans);color:var(--ink)}
.authside li span{display:block;font:400 15px/22px var(--sans);color:var(--muted)}
.authside .note{margin-top:32px}
.quiet-row{margin-top:12px;display:flex;gap:4px;flex-wrap:wrap}

/* Settings: account and connections */

@media (max-width:959px){
  .auth{grid-template-columns:minmax(0,1fr)}
  .authside{display:none}
}
@media (max-width:639px){
  .wrap{padding:0 20px}
  .works{gap:16px}
  .authform{padding:32px 20px 48px;justify-content:flex-start}
  .authform .h1{font-size:26px;line-height:32px}
}
.note a{display:inline-block;padding:12px 0;margin:-12px 0}
@media (max-width:639px){.nx>.st{grid-column:2}}
@media (max-width:639px){.nudge .btn.quiet{padding:0 8px}}

/* The pennant mark */
.pmark{width:24px;height:24px;color:var(--accent);flex:none}

/* Links inside a sentence: at least 44 px to tap, without moving the line. */
.prose a,.page h1 span a{padding-block:14px}

/* Dashboard */
.cd{--chart:#008974}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) .cd{--chart:#1EA28F}}
html[data-theme="dark"] .cd{--chart:#1EA28F}
.dashbar{margin-top:24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px}
.dashbar .acts{margin-top:0}
.dashbar .when{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.dashbar .range{font:400 14px/20px var(--sans);color:var(--muted)}
.periods{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--hair);border-radius:10px;background:var(--fill)}
.periods a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:8px;font:500 14px/20px var(--sans);color:var(--muted);text-decoration:none}
.periods a:hover{color:var(--ink)}
.periods a[aria-current="page"]{background:var(--panel);color:var(--ink);box-shadow:0 1px 2px rgb(0 0 0 / .08)}
.dash .sumcard{margin-top:20px}
.dfigs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.dfigs .fig{border-left:1px solid var(--hair)}
.dfigs .fig:first-child{border-left:0}
.dfigs .fig small{display:block;margin-top:2px;font:400 13px/18px var(--sans);color:var(--muted)}
.chart{padding:20px 22px 12px}
.bars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;align-items:end;height:170px;padding-top:36px;border-bottom:1px solid var(--line)}
.bcol{position:relative;display:flex;justify-content:center;align-items:flex-end;height:100%}
.bfill{display:block;width:min(24px,72%);min-height:3px;background:var(--chart);border-radius:4px 4px 0 0}
/* Centered with translate, not transform, so the reduced motion rule (transform:none) leaves them in place. */
.bval{position:absolute;left:50%;translate:-50% 0;font:600 13px/18px var(--sans);color:var(--ink)}
.bcol .tip{display:none;position:absolute;left:50%;translate:-50% 0;z-index:3;padding:4px 8px;border-radius:8px;background:var(--toast);color:var(--on-toast);font:400 13px/18px var(--sans);white-space:nowrap;pointer-events:none}
.bcol:hover .tip{display:block}
.bcol .tip.l{left:0;translate:none}
.bcol .tip.r{left:auto;right:0;translate:none}
@media (hover:none){.bcol:hover .tip{display:none}}
main.dash{overflow-x:clip}
.bcol:hover .bfill{filter:brightness(1.12)}
.bticks{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;margin-top:6px}
/* Every label centered under its bar; at the edges the card's 22 px padding takes the overhang. */
.bticks span{display:flex;justify-content:center;font:400 13px/18px var(--sans);color:var(--muted);white-space:nowrap}
.numbers{margin-top:8px}
.numbers summary{display:flex;align-items:center;gap:6px;min-height:44px;cursor:pointer;font:500 14px/20px var(--sans);color:var(--ink);list-style:none}
.numbers summary::-webkit-details-marker{display:none}
.numbers summary svg{width:18px;height:18px}
.numbers[open] summary svg{rotate:90deg}
.ntable{width:100%;border-collapse:collapse;font:400 14px/20px var(--sans)}
.ntable th,.ntable td{padding:8px 0;border-top:1px solid var(--hair);text-align:left}
.ntable td{text-align:right;color:var(--ink)}
.ntable thead th{color:var(--muted);font-weight:500}
.ntable thead th:last-child{text-align:right}
.dash2{display:grid;grid-template-columns:minmax(0,1fr);gap:0 24px}
/* Two balanced columns of cards (no row gaps); padding, not margin, so both columns start level. */
@media (min-width:860px){.dash2{display:block;columns:2;column-gap:24px}.dash2>.group{margin-top:0;padding-top:40px;break-inside:avoid}}
.hbars{padding:16px 22px;display:flex;flex-direction:column;gap:14px;font:400 14px/20px var(--sans);color:var(--ink)}
.hbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"nm v" "bar bar";gap:6px 12px}
.hbar .nm{grid-area:nm;display:flex;align-items:center;gap:8px;min-width:0}
.hbar .an{min-width:0;overflow-wrap:anywhere}
.hbar .track{grid-area:bar;height:12px}
.hbar .fillh{display:block;height:12px;min-width:3px;background:var(--chart);border-radius:0 4px 4px 0}
.hbar .v{grid-area:v;text-align:right}
.wcard{padding:16px 22px}
.wcard .meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font:400 14px/20px var(--sans);color:var(--muted)}
.wcard .meta b{color:var(--ink);font-weight:500;overflow-wrap:anywhere}
.wcard .who{display:inline-flex;align-items:center;gap:8px;min-width:0}
.wcard .acts{margin-top:14px}
.wcard .say{margin-top:8px;font:400 15px/24px var(--sans);color:var(--ink)}
.wcard .gist{margin-top:6px;font:400 14px/20px var(--sans);color:var(--muted)}
.empty.small{padding:20px 22px}
.dash2 .empty.small{margin-top:0}
@media (max-width:639px){
  .dfigs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dfigs .fig:nth-child(3){border-left:0}
  .dfigs .fig:nth-child(n+3){border-top:1px solid var(--hair)}
  .dashbar{flex-direction:column;align-items:stretch}
  .dashbar .when{flex-direction:column;align-items:stretch}
  .bticks .h3{visibility:hidden}
  .periods{display:flex}
  .periods a{flex:1;justify-content:center;padding:0 8px}
}

/* Sources (the product tour, Dec 1): one row per place we read, with what it reads and its state. */
.srcs{padding:0}
.src{display:grid;grid-template-columns:36px minmax(0,1fr);gap:4px 14px;padding:18px 22px;border-top:1px solid var(--hair)}
.src:first-child{border-top:0}
.src>:not(:first-child){grid-column:2}
.src>.sg{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--fill)}
.src>.sg .gl{width:20px;height:20px;color:var(--ink)}
.src .sn{align-self:center}
.ghead .si{width:28px;height:28px;flex:none;display:grid;place-items:center;border-radius:8px;background:var(--accent-wash);color:var(--accent)}
.ghead .si svg{width:16px;height:16px}
.src .sn{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px;min-width:0}
.src .sn b{font:600 15px/22px var(--sans);color:var(--ink);overflow-wrap:anywhere}
.src .sn span{font:400 14px/20px var(--sans);color:var(--muted)}
.src .sd{font:400 14px/20px var(--sans);color:var(--body);overflow-wrap:anywhere}
.src .st{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;color:var(--muted)}
.src .st>span{line-height:20px}
@media (max-width:639px){.src .st .sep{display:none}}
.src .need{font:400 14px/20px var(--sans);color:var(--muted)}
.src.none{display:block;color:var(--muted);font:400 15px/22px var(--sans)}
.state{display:inline-flex;align-items:center;gap:6px;font-weight:500;color:var(--muted)}
.state.on{color:var(--green)}
.state.on{margin-top:0}
.state.on svg{width:16px;height:16px;display:block}
.state.stop{color:var(--ink);font-weight:600}
.srcacts{margin-top:0;padding:14px 22px 18px;border-top:1px solid var(--hair)}
.src .st .sep{margin-right:8px}

/* Alerts: an example of the bot's message. */
.tgpreview{max-width:440px;display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:14px;background:var(--fill)}
.tgmsg{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:12px;background:var(--panel);font:400 14px/20px var(--sans);color:var(--body)}
.tgmsg b{font-weight:600;color:var(--ink)}
.tgbtn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border-radius:10px;background:var(--panel);font:500 14px/20px var(--sans);color:var(--ink)}
.tgbtn svg{width:16px;height:16px}

/* Settings: the legal pages, after the sections. */
.legal3{display:flex;flex-wrap:wrap;gap:0 20px;margin-top:20px}
.legal3 a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font:400 14px/20px var(--sans);color:var(--body);text-decoration:none}
.legal3 a:hover{color:var(--ink);text-decoration:underline}

/* Admin (the product tour, Dec 1): Staff, and Roles and permissions. Staff and Roles sit side by side in the periods
   switch; on wide screens the side menu holds Admin, so Settings' own way there is for tablets and phones. */
.adminnav{margin-top:24px}
@media (min-width:1024px){.has-side .sideless{display:none}}
.line .role{font-size:14px;color:var(--muted)}
.empty h1{font:600 20px/28px var(--sans);color:var(--ink)}
.btn.danger{color:var(--red);border-color:color-mix(in srgb,var(--red) 40%,transparent)}
.btn.quiet.danger{border-color:transparent}

/* Staff: one row per person or invite. Wide, the rows line up: who, the facts in two columns, the actions. */
.people{margin-top:24px;overflow:hidden}
.person{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px 14px;align-items:start;padding:16px 22px;border-top:1px solid var(--hair)}
.person:first-child{border-top:0}
.pav{grid-row:span 3;width:36px;height:36px;border-radius:50%;background:var(--fill);color:var(--muted);display:grid;place-items:center}
.pav svg{width:18px;height:18px}
.person .pn{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px;min-width:0}
.person .pn b{font:600 15px/22px var(--sans);color:var(--ink);overflow-wrap:break-word}
.person .pn span{font:400 14px/20px var(--sans);color:var(--muted);overflow-wrap:break-word}
.person .facts{display:flex;flex-wrap:wrap;gap:2px 16px;min-width:0;font:400 14px/20px var(--sans);color:var(--muted)}
.person .facts>*{overflow-wrap:anywhere}
.person .facts b{font-weight:500;color:var(--ink)}
.person .acts{margin-top:4px}
.person form{display:contents}
@media (min-width:860px){
  .person{grid-template-columns:36px minmax(0,1fr) minmax(0,1.6fr) 11.5rem;align-items:center}
  .pav{grid-row:auto}
  .person .facts{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:2px 14px}
  .person .acts{margin-top:0;justify-content:flex-end}
}
@media (max-width:639px){.person{padding:16px}}

/* The invite link after Add staff, ready to copy. */
.linkbox{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px}
.linkfield{flex:1 1 16rem;min-width:0;height:44px;padding:0 12px;border-radius:10px;border:1px solid var(--line);background:var(--panel);font:400 14px/20px var(--sans);color:var(--ink)}
.linkfield:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}

/* Add staff and Edit: the role and the sources they see, as pick lists. */
.staffform{margin-top:28px}
.pickset{margin:0;padding:0;border:0;min-width:0}
.staffform>*+*{margin-top:24px}
.pickset legend{padding:0;font:500 14px/20px var(--sans);color:var(--ink)}
.pickset .picklist{margin-top:8px}
.pickset .help,.pickset .bad{margin-top:8px;font:400 14px/20px var(--sans);color:var(--muted)}
.pickset .bad{color:var(--red)}
.staffform .pick{min-height:56px;padding:10px 20px}
.staffform .pick small{margin-top:2px}
.picksub{border-top:1px solid var(--hair)}
.picksub .pick{padding-left:56px}
.srcpick:has(input[name="all"][value="1"]:checked) .picksub{display:none}
.pick.none{cursor:default;font:400 14px/20px var(--sans);color:var(--muted)}

/* Roles and permissions: the grid. A filled box can; a dashed box is fixed. On phones each permission stacks over its
   four boxes, each named, so nothing scrolls sideways. */
.grid{margin-top:24px;overflow:hidden}
.matrix{width:100%;border-collapse:collapse;font:400 14px/20px var(--sans);color:var(--ink)}
.matrix th,.matrix td{padding:6px;border-top:1px solid var(--hair);text-align:center;vertical-align:middle}
.matrix thead th{border-top:0;padding:14px 6px 12px;font:600 14px/20px var(--sans);width:84px}
.matrix thead th:first-child{width:auto}
.matrix thead th:first-child,.matrix th[scope="row"]{text-align:left;padding-left:22px}
.matrix th small{display:block;font:400 13px/18px var(--sans);color:var(--muted)}
.matrix th[scope="row"]{padding-top:12px;padding-bottom:12px;font-weight:500}
.matrix tr>:last-child{padding-right:16px}
.cell{appearance:none;width:44px;height:44px;margin:0;padding:0;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--panel);display:inline-grid;place-items:center;cursor:pointer;transition:background-color .16s var(--ease),border-color .16s var(--ease)}
.cell:hover:not(:disabled){border-color:var(--control)}
.cell svg{width:18px;height:18px}
.cell[aria-checked="true"]{background:var(--accent);border-color:var(--accent)}
.cell:disabled{cursor:default}
.cell.lock{background:var(--fill);border-style:dashed}
.cell.lock[aria-checked="true"]{background:var(--accent-wash);border-color:var(--accent);color:var(--accent)}
@media (max-width:639px){
  .matrix,.matrix tbody{display:block}
  .matrix thead{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .matrix tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 4px;padding:14px 16px;border-top:1px solid var(--hair)}
  .matrix tbody tr:first-child{border-top:0}
  .matrix th[scope="row"],.matrix td,.matrix tr>:last-child{padding:0;border:0}
  .matrix th[scope="row"]{grid-column:1/-1}
  .matrix td{display:flex;flex-direction:column;align-items:center;gap:4px}
  .matrix td::before{content:attr(data-role);font:500 13px/18px var(--sans);color:var(--muted)}
}
/* A role's note (the list, Sources, the Dashboard), the tour's way: one quiet dashed line with an eye. */
.rolenote{display:flex;gap:10px;align-items:flex-start;margin:0;padding:12px 14px;border:1px dashed var(--line);border-radius:12px;font:400 14px/20px var(--sans);color:var(--muted)}
.rolenote svg{flex:none;width:18px;height:18px;margin-top:1px;color:var(--accent)}
/* Phones: how many people have each role, above the Roles cards (the grid's header says it on wide screens). */
.rcounts{display:none}
@media (max-width:639px){.rcounts{display:flex;flex-wrap:wrap;gap:4px 16px;margin:20px 0 0;font:400 14px/20px var(--sans);color:var(--muted)}.rcounts b{font-weight:500;color:var(--ink)}}
/* The Staff / Roles switch keeps one line on the narrowest phones. */
@media (max-width:399px){.adminnav .long{display:none}}
/* Wide Staff: an invite's Copy and Cancel sit side by side, in the same column as everyone's Edit. */
@media (min-width:860px){.person.inv .acts{flex-wrap:nowrap}}
/* Dark mode: slate's dark middle layer (the lock's shackle on refused pages) lifted so it stays visible on dark cards. */
@media (prefers-color-scheme:dark){html:not([data-theme="light"]) .cd .duo-slate .m{fill:#AEB8C8}}
html[data-theme="dark"] .cd .duo-slate .m{fill:#AEB8C8}
/* Staff: a maker's name stays whole on a line ("Made by Jordan Reed"), and breaks only when longer than the line. */
.keep{display:inline-block;max-width:100%;overflow-wrap:anywhere}
/* Roles: a toast on the top half of the screen when the box pressed is on the bottom half (not .top: that is the header). */
.toastbar.at-top{top:76px;bottom:auto}
/* Settings: the owner's Business name field, its Save beside it. */
.bizname{margin-top:4px}
.bnrow{display:flex;gap:8px;margin-top:6px}
.bnrow input{margin-top:0;flex:1;min-width:0}
.bnrow .btn{flex:none;height:48px}
.bizname+.acts{margin-top:20px}
/* Under 1024 px the tab bar is fixed at the bottom: a focused or scrolled-to element stays clear of it. */
@media (max-width:1023px){html{scroll-padding-bottom:84px}}
/* Staff on phones: an email always on its own line under the name. */
@media (max-width:639px){.person .pn span{flex-basis:100%}}
