/* The Little Things Studios — client workspace.
   One set of tokens and components shared by the client and studio views. */
:root{
  color-scheme:light;
  --paper:#fafafa;--surface:#fff;--sunken:#f3f5f6;--hover:#eef2f4;
  --ink:#14202e;--text:#3c4a55;--muted:#6f7d87;--faint:#98a4ac;
  --line:#e3e8eb;--line-strong:#ccd7de;
  --accent:#8a9faf;--accent-ink:#4f6b7e;--accent-soft:#e6edf1;
  --success:#2d6a4c;--success-soft:#e7f2ec;
  --attention:#8a5a12;--attention-soft:#fbf1df;
  --danger:#a03e3e;--danger-soft:#fbeeed;
  --info:#355f7c;--info-soft:#e5eef4;
  --attention-line:#f0dcb5;--danger-line:#efd0cd;--success-line:#bcd9c8;
  --on-ink:#fff;--ink-hover:#283a4b;--nav:#5d6b75;--nav-icon:#8797a2;--placeholder:#a3aeb5;--brand-ink:#14202e;--loader-label:#6b717a;--danger-hover:#7e2929;--danger-hover-line:#d9a9a9;--info-line:#cfdeea;--hero-soft:#9ba7b0;--feature:#14202e;--loader:rgba(250,250,250,.98);
  --radius:10px;--radius-lg:16px;
  --shadow:0 1px 2px rgba(20,32,46,.04),0 8px 24px rgba(20,32,46,.05);
  --shadow-lift:0 2px 4px rgba(20,32,46,.05),0 18px 40px rgba(20,32,46,.09);
  --ease:cubic-bezier(.22,1,.36,1);
  --sidebar:252px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
/* Dark mode: the device's setting, unless Settings says Light; or always with Dark. */
:root[data-theme="dark"]{
  color-scheme:dark;
  --paper:#0f151b;--surface:#161e26;--sunken:#1a232c;--hover:#202b35;
  --ink:#eef3f6;--text:#c3cdd4;--muted:#93a1ab;--faint:#6c7984;
  --line:#26323c;--line-strong:#34434f;
  --accent:#8fa7b6;--accent-ink:#a9c0cf;--accent-soft:#1e2b35;
  --success:#72c99d;--success-soft:#13271d;--success-line:#24503a;
  --attention:#e6b766;--attention-soft:#2b2312;--attention-line:#5a4720;
  --danger:#f08c86;--danger-soft:#2d1818;--danger-line:#5e2c2a;
  --info:#8dbadb;--info-soft:#162532;
  --on-ink:#0f161e;--ink-hover:#ffffff;--nav:#aab6be;--nav-icon:#93a1ab;--placeholder:#6c7984;--brand-ink:#eef3f6;--loader-label:#93a1ab;--danger-hover:#f4a8a3;--danger-hover-line:#7a3a37;--info-line:#25394a;--hero-soft:#6c7984;--feature:#1c2936;--loader:rgba(15,21,27,.98);
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25);
  --shadow-lift:0 2px 4px rgba(0,0,0,.3),0 18px 40px rgba(0,0,0,.4);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  color-scheme:dark;
  --paper:#0f151b;--surface:#161e26;--sunken:#1a232c;--hover:#202b35;
  --ink:#eef3f6;--text:#c3cdd4;--muted:#93a1ab;--faint:#6c7984;
  --line:#26323c;--line-strong:#34434f;
  --accent:#8fa7b6;--accent-ink:#a9c0cf;--accent-soft:#1e2b35;
  --success:#72c99d;--success-soft:#13271d;--success-line:#24503a;
  --attention:#e6b766;--attention-soft:#2b2312;--attention-line:#5a4720;
  --danger:#f08c86;--danger-soft:#2d1818;--danger-line:#5e2c2a;
  --info:#8dbadb;--info-soft:#162532;
  --on-ink:#0f161e;--ink-hover:#ffffff;--nav:#aab6be;--nav-icon:#93a1ab;--placeholder:#6c7984;--brand-ink:#eef3f6;--loader-label:#93a1ab;--danger-hover:#f4a8a3;--danger-hover-line:#7a3a37;--info-line:#25394a;--hero-soft:#6c7984;--feature:#1c2936;--loader:rgba(15,21,27,.98);
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25);
  --shadow-lift:0 2px 4px rgba(0,0,0,.3),0 18px 40px rgba(0,0,0,.4);
}}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px;background:var(--paper)}
body{margin:0;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.55}
a{color:inherit;text-decoration:none}
input,textarea,select{font:inherit;color:inherit}
h1,h2,h3,h4{margin:0;color:var(--ink);font-weight:730}
p{margin:0}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;background:var(--sunken);border:1px solid var(--line);border-radius:6px;padding:2px 6px;overflow-wrap:anywhere}
::selection{background:#d7e2ea;color:#121820}
[hidden]{display:none!important}
:focus-visible{outline:3px solid #648eb0;outline-offset:2px}
.visually-hidden{position:absolute!important;top:0;left:0;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-link{position:fixed;top:-90px;left:16px;z-index:1300;background:var(--ink);color:var(--on-ink);padding:10px 16px;border-radius:8px}
.skip-link:focus{top:12px}

/* Icons */
.icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-trailing{width:14px;height:14px;margin-left:4px;stroke-width:2}

/* Type helpers */
.eyebrow{font-size:10px;font-weight:760;letter-spacing:.16em;line-height:1.6;color:var(--muted);text-transform:uppercase}
.dot{color:var(--accent)}
.lead{color:var(--muted);font-size:15px;line-height:1.7;max-width:600px;margin-top:12px}
.fine-print{font-size:12px;color:var(--faint);line-height:1.6;margin-top:16px}
.text-link{display:inline-flex;align-items:center;font-size:13px;font-weight:700;color:var(--accent-ink);white-space:nowrap}
.text-link:hover{color:var(--ink)}
.count,.toolbar-count{font-size:12px;color:var(--muted);font-weight:650;white-space:nowrap}

/* Buttons: a plain <button> is the primary action; .secondary and .danger are
   its variants. Other classed buttons (tabs, cards, rows…) style themselves. */
/* Family only: the size and weight come from each button style below. */
button{font-family:inherit;line-height:inherit;color:inherit;cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
/* Shared shape without specificity, so each variant's colours below apply cleanly. */
:where(button:not([class]),button.secondary,button.danger:not(.link-button)){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 18px;
  border-radius:var(--radius);border:1px solid transparent;
  font-size:13px;font-weight:720;letter-spacing:-.005em;white-space:nowrap;
  transition:background .2s,border-color .2s,color .2s,box-shadow .2s}
button:not([class]){background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
button:not([class]):hover:not(:disabled){background:var(--ink-hover);border-color:var(--ink-hover)}
button.secondary{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}
button.secondary:hover:not(:disabled){background:var(--sunken);border-color:var(--accent)}
button.danger:not(.link-button){background:var(--danger);border-color:var(--danger);color:#fff}
button.secondary.danger{background:var(--surface);color:var(--danger);border-color:var(--danger-line)}
button.secondary.danger:hover:not(:disabled){background:var(--danger-soft);border-color:var(--danger-hover-line)}
.icon-button{display:inline-grid;place-items:center;width:38px;height:38px;padding:0;border-radius:var(--radius);border:1px solid transparent;background:transparent;color:var(--muted);transition:background .2s,color .2s}
.icon-button:hover{background:var(--hover);color:var(--ink)}
.link-button{border:0;background:none;padding:6px 0;font-size:13px;font-weight:680;color:var(--accent-ink);gap:6px;white-space:nowrap}
.link-button:hover{color:var(--ink)}
.link-button.danger{color:var(--danger)}
.link-button.danger:hover{color:var(--danger-hover)}
.chip{border:1px solid var(--line-strong);background:var(--accent-soft);color:var(--accent-ink);border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700}
.chip:hover{background:var(--hover);border-color:var(--accent)}
.chip::after{content:" ×"}

/* Badges */
.badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 10px;font-size:11px;font-weight:720;line-height:1.5;white-space:nowrap;background:var(--sunken);color:var(--text);border:1px solid var(--line)}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.75}
.badge-icon::before{display:none}
.badge .icon{width:12px;height:12px;stroke-width:2.4}
.badge[data-tone="info"]{background:var(--info-soft);color:var(--info);border-color:var(--info-line)}
.badge[data-tone="success"]{background:var(--success-soft);color:var(--success);border-color:#cce3d6}
.badge[data-tone="attention"]{background:var(--attention-soft);color:var(--attention);border-color:var(--attention-line)}
.badge[data-tone="danger"]{background:var(--danger-soft);color:var(--danger);border-color:var(--danger-line)}
.badge[data-tone="muted"]{color:var(--muted)}

/* Forms */
.stack{display:grid;gap:16px}
.stack-lg{display:grid;gap:22px}
.field{display:grid;gap:6px;min-width:0;align-content:start}
.field-label{font-size:12px;font-weight:700;color:var(--text)}
.field-label em{font-style:normal;font-weight:550;color:var(--faint);margin-left:4px}
.field-hint{font-size:12px;color:var(--muted);line-height:1.5}
.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea,select{
  width:100%;min-width:0;border:1px solid var(--line-strong);background:var(--surface);border-radius:var(--radius);
  padding:11px 13px;font-size:14px;color:var(--ink);outline:none;transition:border-color .2s,box-shadow .2s}
input:not([type="checkbox"]):not([type="radio"]):focus,textarea:focus,select:focus{border-color:#7f9bb0;box-shadow:0 0 0 3px rgba(127,155,176,.18)}
input::placeholder,textarea::placeholder{color:var(--placeholder)}
input:disabled,textarea:disabled,select:disabled{background:var(--sunken);color:var(--muted)}
textarea{resize:vertical;min-height:88px;line-height:1.55}
select{appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,#6f7d87 50%),linear-gradient(135deg,#6f7d87 50%,transparent 50%);background-position:calc(100% - 18px) 52%,calc(100% - 13px) 52%;background-size:5px 5px;background-repeat:no-repeat;cursor:pointer}
input[type="file"]{font-size:13px;color:var(--text);padding:10px;border:1px dashed var(--line-strong);border-radius:var(--radius);background:var(--surface);width:100%}
input[type="checkbox"],input[type="radio"]{width:18px;height:18px;margin:2px 0 0;flex:none;accent-color:var(--ink)}
.check{display:flex;gap:11px;align-items:flex-start;font-size:13px;line-height:1.55;color:var(--text);cursor:pointer;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--sunken)}
.form-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding-top:4px}
.owner-form{border:1px solid var(--line);border-radius:var(--radius);margin:0;padding:6px 16px 16px;display:grid;gap:14px;min-width:0}
.owner-form legend{font-size:12px;font-weight:700;color:var(--text);padding:0 6px}
.owner-form .fine-print{margin:0}
.owner-form .field-row{align-items:start}
.owner-form .field-row.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.owner-form .field-row.phone{grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr) minmax(0,1fr)}
.choice-list{border:0;margin:0;padding:0;display:grid;gap:8px}
.choice-list legend{font-size:12px;font-weight:700;color:var(--text);margin-bottom:8px}
.choice{display:flex;gap:12px;align-items:flex-start;padding:13px 15px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);cursor:pointer}
.choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.choice span{display:grid;gap:2px}
.choice strong{font-size:13px}
.choice small{font-size:12px;color:var(--muted)}

/* Notes */
.note{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.6;color:var(--muted)}
.note:empty{display:none}
.note .icon{width:16px;height:16px;margin-top:2px;color:var(--accent-ink)}
.note[data-tone]{padding:11px 14px;border-radius:var(--radius);border:1px solid var(--line)}
.note[data-tone="info"]{background:var(--info-soft);border-color:var(--info-line);color:var(--info)}
.note[data-tone="success"]{background:var(--success-soft);border-color:#cce3d6;color:var(--success)}
.note[data-tone="attention"]{background:var(--attention-soft);border-color:var(--attention-line);color:var(--attention)}
.note[data-tone="danger"]{background:var(--danger-soft);border-color:var(--danger-line);color:var(--danger)}
.empty{padding:28px 20px;text-align:center;color:var(--muted);font-size:13px;line-height:1.6;border:1px dashed var(--line-strong);border-radius:var(--radius);background:var(--sunken)}

/* Facts list */
.facts{display:grid;gap:0;margin:0;border-top:1px solid var(--line)}
.facts>div{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1fr);gap:14px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}
.facts dt{color:var(--muted);font-weight:600}
.facts dd{margin:0;color:var(--ink);font-weight:600;overflow-wrap:anywhere;min-width:0}

/* Shell */
.workspace-shell{min-height:100vh}
.workspace-shell[data-initializing]{visibility:hidden}
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand-symbol{display:block;flex:none;object-fit:contain}
.brand-copy{display:flex;flex-direction:column;line-height:1.15;white-space:nowrap}
.brand-copy strong{font-size:16px;letter-spacing:-.05em;font-weight:780;color:var(--ink)}
.brand-copy strong span{color:var(--accent)}
.brand-copy small{font-size:8px;letter-spacing:.17em;font-weight:760;color:var(--muted);margin-top:4px}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:40;width:var(--sidebar);display:flex;flex-direction:column;gap:28px;padding:26px 16px 18px;background:var(--sunken);border-right:1px solid var(--line);overflow-y:auto}
.sidebar>.brand{padding:0 8px}
.sidebar-nav{display:grid;gap:3px}
.sidebar-nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius);font-size:14px;font-weight:620;color:var(--nav);transition:background .28s,color .28s,box-shadow .28s}
.sidebar-nav a .icon{color:var(--nav-icon);transition:color .2s}
.sidebar-nav a:hover{background:var(--hover);color:var(--ink)}
.sidebar-nav a.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(20,32,46,.06),inset 0 0 0 1px var(--line)}
.sidebar-nav a.active .icon{color:var(--ink)}
.sidebar-foot{margin-top:auto;display:grid;gap:14px}
.help-card{padding:16px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--line)}
.help-card p:not(.eyebrow){font-size:13px;color:var(--text);margin:6px 0 10px;line-height:1.5}
.help-card a{font-size:12px;font-weight:720;color:var(--accent-ink);overflow-wrap:anywhere}
.help-card a:hover{color:var(--ink)}
.account{display:flex;align-items:center;gap:10px;padding:10px 8px 0;border-top:1px solid var(--line)}
.account-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:740}
.account-copy{display:grid;min-width:0;flex:1}
.account-copy strong{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-copy small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-bar,.sidebar-scrim{display:none}
main{margin-left:var(--sidebar);min-width:0}
.main-content{width:min(1120px,100%);margin:0 auto;padding:0 clamp(22px,4vw,56px)}
.site-footer{display:flex;justify-content:space-between;gap:16px;margin-top:72px;padding:24px 0 34px;border-top:1px solid var(--line);font-size:12px;color:var(--faint)}
.site-footer a{display:inline-flex;align-items:center;font-weight:650;color:var(--muted)}
.site-footer a:hover{color:var(--ink)}

/* Toasts */
.toast-region{position:fixed;inset:auto 20px 20px auto;margin:0;padding:0;border:0;background:transparent;color:inherit;overflow:visible;z-index:60;max-width:min(440px,calc(100vw - 40px));pointer-events:none}
.toast{pointer-events:auto;display:flex;align-items:flex-start;gap:10px;margin:0;padding:12px 10px 12px 16px;border-radius:var(--radius);background:var(--ink);color:var(--on-ink);font-size:13px;line-height:1.55;box-shadow:var(--shadow-lift);animation:toast-in .35s var(--ease);transition:opacity .3s ease,transform .3s ease}
.toast.error{background:var(--surface);color:var(--danger);border:1px solid var(--danger-line)}
.toast.leaving{opacity:0;transform:translateY(8px)}
.toast-text{flex:1;padding-top:1px}
.toast-close{display:grid;place-items:center;width:26px;height:26px;flex:none;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;opacity:.7}
.toast-copy{display:grid;place-items:center;width:26px;height:26px;flex:none;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;opacity:.7}.toast-copy[hidden]{display:none}.toast-copy:hover{opacity:1;background:var(--danger-soft)}.toast-copy .icon{width:15px;height:15px}
.toast-close:hover{opacity:1;background:color-mix(in srgb,var(--on-ink) 12%,transparent)}
.toast.error .toast-close:hover{background:var(--danger-soft)}
.toast-close .icon{width:15px;height:15px}
.note.leaving{opacity:0;transition:opacity .3s ease}
@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Page header */
.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:52px 0 30px}
.page-header h1{font-size:clamp(34px,4vw,48px);line-height:1.06;letter-spacing:-.065em;font-weight:740;margin-top:8px}
.page-header h1:focus{outline:none}
.page-header-hero h1{font-size:clamp(44px,6vw,80px);letter-spacing:-.08em;line-height:1.02}
.page-header-hero h1 span{color:var(--hero-soft)}
.page-actions{display:flex;flex-wrap:wrap;gap:10px;flex:none}

/* Panels and lists */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:24px;box-shadow:var(--shadow);min-width:0}
.panel+.panel,.panel+.stack-lg,.stack-lg+.panel,.client-next+.panel{margin-top:20px}
.panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.panel-head h2{font-size:21px;letter-spacing:-.05em;line-height:1.2;margin-top:3px}
.panel-head h3{font-size:17px;letter-spacing:-.04em;margin-top:3px}
.panel-actions{display:flex;flex-wrap:wrap;gap:8px}
.panel-intro{font-size:13px;color:var(--muted);line-height:1.6;margin:-6px 0 16px;max-width:640px}
.panel-body{display:grid;gap:16px}
.panel-body>.lead:first-child{margin-top:0}
.list{display:grid}
.list>.empty{margin-top:4px}
.list-boxed{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden}
.list-boxed>.empty{margin:16px;border-radius:var(--radius)}
.row{display:flex;align-items:center;gap:16px;padding:15px 0;border-top:1px solid var(--line);min-width:0}
.list>.row:first-child{border-top:0}
.list-boxed>.row{padding:16px 20px}
.row-main{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;min-width:0;flex:1}
.row-main a.text-link{display:block;white-space:normal;overflow-wrap:anywhere}
.row-main strong{font-size:14px;font-weight:700;overflow-wrap:anywhere}
.row-main small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.row-meta{font-size:13px;font-weight:700;white-space:nowrap}
.row-clickable{cursor:pointer;transition:background .15s}
.list-boxed>.row-clickable:hover{background:var(--hover)}
.row>button.secondary{min-height:34px;padding:7px 14px;font-size:12px}
.dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;border-top:1px solid var(--line)}
.dialog-foot .fine-print{margin:0;max-width:40ch}
.row-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.row-button{color:var(--ink);display:flex;align-items:center;gap:16px;width:100%;padding:15px 4px;border:0;border-top:1px solid var(--line);background:none;text-align:left;border-radius:0;transition:background .2s}
.list>.row-button:first-child{border-top:0}
.list-boxed>.row-button{padding:15px 20px}
.list-boxed>.row-button:hover{background:var(--hover)}
.row-button:hover{background:linear-gradient(90deg,transparent,var(--sunken) 8%,var(--sunken) 92%,transparent)}
.row-button .icon-trailing{color:var(--faint)}
.row-kicker{font-size:10px;font-weight:760;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-ink)}
.avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;background:var(--accent-soft);color:var(--accent-ink);font-size:15px;font-weight:760}

/* Toolbar */
.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.search{position:relative;display:flex;align-items:center;flex:1 1 280px;max-width:420px}
.search .icon{position:absolute;left:13px;color:var(--faint);pointer-events:none}
.search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]){padding-left:40px}
.select-label select{min-width:170px}
.search-row{display:flex;gap:10px;flex-wrap:wrap}
.search-row .search{max-width:none}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}
.stat{display:grid;gap:4px;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);transition:border-color .2s,transform .25s var(--ease),box-shadow .25s}
.stat:hover{border-color:var(--line-strong);transform:translateY(-2px);box-shadow:var(--shadow-lift)}
.stat strong{font-size:36px;line-height:1.05;letter-spacing:-.06em;font-weight:740;margin-top:6px}
.stat small{font-size:12px;color:var(--muted)}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}
.overview-grid>.panel+.panel{margin-top:0}

/* Project cards */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.card-grid>.empty{grid-column:1/-1}
.card{color:var(--ink);display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:190px;padding:22px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);transition:transform .25s var(--ease),box-shadow .25s,border-color .25s}
.card:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:var(--shadow-lift)}
.card h3{font-size:20px;letter-spacing:-.05em;line-height:1.2;margin-top:14px}
.card p{font-size:13px;color:var(--muted);line-height:1.55}
.card .card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;width:100%;padding-top:14px;border-top:1px solid var(--line);font-size:12px;font-weight:700;color:var(--accent-ink)}

/* Client home */
.client-next{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.next-card{display:grid;gap:10px;padding:28px;border-radius:var(--radius-lg);background:var(--feature);color:#fff;box-shadow:var(--shadow-lift);position:relative;overflow:hidden}
.next-card::after{content:"";position:absolute;right:-90px;top:-120px;width:300px;height:300px;border-radius:50%;border:1px solid rgba(255,255,255,.08);box-shadow:0 0 0 46px rgba(255,255,255,.025)}
.next-card .eyebrow{color:#a9bac6}
.next-card h2{color:#fff;font-size:clamp(24px,3vw,32px);letter-spacing:-.06em;line-height:1.12}
.next-card p:not(.eyebrow){color:#c9d5dd;max-width:560px;line-height:1.65;font-size:14px}
.next-card button:not([class]){justify-self:start;margin-top:8px;background:#fff;color:#14202e;border-color:#fff;position:relative;z-index:1}
.next-card button:not([class]):hover{background:#e9eff3;border-color:#e9eff3}
.journey{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.journey-step{display:grid;gap:8px;align-content:start;padding:16px;border-radius:var(--radius);border:1px solid var(--line);background:var(--sunken)}
.journey-step header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.journey-step strong{font-size:14px}
.journey-step p{font-size:12.5px;color:var(--muted);line-height:1.55}
.journey-step a:not(.button-link){font-size:12px;font-weight:720;color:var(--accent-ink);display:inline-flex;align-items:center}
.journey-step a:not(.button-link):hover{color:var(--ink)}
.journey-step>button{justify-self:start}

/* Project detail */
.detail-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:30px}
.back-link{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:6px 0;font-size:13px;font-weight:700;color:var(--muted)}
.back-link:hover{color:var(--ink)}
.detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:16px 0 26px}
.detail-header h1{font-size:clamp(32px,4vw,46px);letter-spacing:-.065em;line-height:1.06;margin-top:6px}
.detail-header h1:focus{outline:none}
.detail-header .lead{margin-top:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.tabs{display:grid;gap:22px}
.tab-list{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none}
.tab-list::-webkit-scrollbar{display:none}
.tab{position:relative;display:inline-flex;align-items:center;gap:8px;padding:12px 14px;border:0;background:none;font-size:14px;font-weight:650;color:var(--muted);white-space:nowrap}
.tab:hover{color:var(--ink)}
.tab[aria-selected="true"]{color:var(--ink)}
.tab-list{position:relative}
.tab-line{position:absolute;left:0;bottom:0;width:0;height:2px;border-radius:2px;background:var(--ink);pointer-events:none;transition:transform .35s var(--ease),width .35s var(--ease)}
.tab-line.is-still{transition:none}
@media(prefers-reduced-motion:reduce){.tab-line{transition:none}}
.tab-count{font-size:11px;font-weight:720;padding:1px 7px;border-radius:999px;background:var(--sunken);color:var(--muted)}
.tab-panel:focus{outline:none}
.upload-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding-top:16px;margin-top:4px;border-top:1px solid var(--line)}
.upload-row input[type="file"]{flex:1 1 240px;width:auto}

/* Website handoff steps (studio) */
.handoff{display:grid;gap:0;counter-reset:step}
.step{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:16px;padding-bottom:22px}
.step::before{content:"";position:absolute;left:17px;top:38px;bottom:0;width:2px;background:var(--line)}
.step:last-child::before{display:none}
.step-marker{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface);font-size:13px;font-weight:760;color:var(--muted);z-index:1}
.step[data-state="done"] .step-marker{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.step[data-state="current"] .step-marker{border:2px solid var(--ink);color:var(--ink)}
.step-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);min-width:0;overflow:hidden}
.step-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px}
.step-head h3{font-size:16px;letter-spacing:-.035em}
.step-head p{font-size:12.5px;color:var(--muted);margin-top:2px}
.step-body{display:grid;gap:14px;padding:0 20px 20px}
.step-body:empty{display:none}
.step-body>.release-form,.step-body>form{padding:16px;border-radius:var(--radius);background:var(--sunken);border:1px solid var(--line)}
.release-card{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.release-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.release-card-head small{font-size:12px;color:var(--muted)}
.release-card-head strong{font-size:12px;font-weight:760;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.release-form{display:grid;gap:14px}
.github-release-picker{display:grid;gap:12px}
.github-release-picker:empty{display:none}
.picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.picker-head h4{font-size:14px}
.publish-box{display:grid;gap:12px;padding:16px;border-radius:var(--radius);border:1px solid var(--info-line);background:var(--info-soft)}
.publish-box h4{font-size:15px}
.disclosure{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}
.disclosure>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;cursor:pointer}
.disclosure>summary::-webkit-details-marker{display:none}
.disclosure>summary>span{display:grid;gap:2px}
.disclosure>summary strong{font-size:14px}
.disclosure>summary small{font-size:12px;color:var(--muted)}
.disclosure-icon{color:var(--muted);transition:transform .25s var(--ease)}
.disclosure[open] .disclosure-icon{transform:rotate(45deg)}
.disclosure>:not(summary){margin:0 20px 20px}
.disclosure-quiet{box-shadow:none;background:transparent}
.danger-zone{border-color:var(--danger-line)}

/* Client website review */
.review-card{display:grid;gap:14px}
.review-card h3{font-size:22px;letter-spacing:-.05em}
.review-preview{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 18px;border-radius:var(--radius);background:var(--sunken);border:1px solid var(--line)}
.review-preview strong{font-size:14px}
.review-preview small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.release-notes{white-space:pre-wrap;font-size:14px;line-height:1.65;color:var(--text);padding-left:14px;border-left:2px solid var(--accent)}

/* Connections */
.connection{display:grid;gap:16px}
.connection-head{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:start;gap:14px}
.connection-symbol{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:12px;background:var(--sunken);border:1px solid var(--line);color:var(--ink);font-size:15px;font-weight:780}
.connection-copy{flex:1;min-width:0}
.connection-copy h2{font-size:18px;letter-spacing:-.045em}
.connection-copy p{font-size:13px;color:var(--muted);margin-top:3px;line-height:1.55}
.connection-body{display:grid;gap:14px;padding-top:16px;border-top:1px solid var(--line)}
.connection-body .account-chip{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700}
.connection-body .account-chip .icon{color:var(--success)}
.connection-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.toggle{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:650;color:var(--text);cursor:pointer;white-space:nowrap}

/* Domains */
.domain-workspace{display:grid;gap:20px}
.domain-workspace>.panel+.panel{margin-top:0}
.stepper{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.domain-journey-step{display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface)}
.domain-journey-step div{display:grid;gap:1px;min-width:0}
.domain-journey-step strong{font-size:13.5px}
.domain-journey-step small{font-size:12px;color:var(--muted);line-height:1.4}
.domain-journey-number{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--sunken);border:1px solid var(--line-strong);font-size:12px;font-weight:760;color:var(--muted)}
.domain-journey-step.is-complete .domain-journey-number{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.domain-journey-step.is-current{border-color:var(--accent);box-shadow:0 0 0 3px rgba(138,159,175,.15)}
.domain-journey-step.is-current .domain-journey-number{border:2px solid var(--ink);color:var(--ink)}
.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.segment{color:var(--ink);display:flex;align-items:center;gap:14px;padding:16px 18px;text-align:left;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);transition:border-color .2s,background .2s,box-shadow .2s}
.segment .icon{width:22px;height:22px;color:var(--muted)}
.segment span{display:grid;gap:2px}
.segment strong{font-size:14px}
.segment small{font-size:12px;color:var(--muted)}
.segment:hover{border-color:var(--line-strong)}
.segment.active{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.segment.active .icon{color:var(--ink)}
.result-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 0;border-top:1px solid var(--line)}
.list>.result-row:first-child{border-top:0}
.result-row>div{display:grid;gap:2px;min-width:0}
.result-row strong{font-size:15px;letter-spacing:-.02em;overflow-wrap:anywhere}
.result-row small{font-size:12px;color:var(--muted)}
.offer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.offer{display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--sunken)}
.offer h4{font-size:16px;letter-spacing:-.03em;overflow-wrap:anywhere}
.domain-admin-offer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dns-records{display:grid;border-top:1px solid var(--line)}
.dns-record{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1.4fr);gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12.5px}
.dns-record span{font-weight:760;color:var(--accent-ink)}
.dns-record small{color:var(--muted);overflow-wrap:anywhere}
.queue-card{display:grid;gap:14px;padding:20px}
.queue-card+.queue-card{border-top:1px solid var(--line)}
.queue-head{display:flex;align-items:center;justify-content:space-between;gap:14px}
.queue-head h3{font-size:16px;letter-spacing:-.035em}
.queue-head p{font-size:12px;color:var(--muted)}
.next-move{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--radius);background:var(--sunken);border:1px solid var(--line)}
.next-move .badge{flex:none}
.next-move p{font-size:13px;line-height:1.55;color:var(--text);margin:0}
#domain-client-progress .panel-intro{margin:0}
.nameservers{display:grid;gap:8px}
.nameserver{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--sunken)}
.nameserver code{font-size:14px;font-weight:650;color:var(--ink);overflow-wrap:anywhere}
.nameserver button{min-height:32px;padding:6px 12px;font-size:12px}
.missing-records{margin:0;padding-left:18px;display:grid;gap:4px;font-size:12.5px;color:var(--danger)}
.zone-review{padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--sunken)}
/* Waiting for a nameserver switch */
.switch-wait{display:grid;justify-items:center;text-align:center;gap:10px;padding:40px 24px 32px}
.switch-wait h2{font-size:clamp(22px,3vw,28px);letter-spacing:-.045em;max-width:22ch}
.switch-wait .panel-intro{max-width:46ch;margin:0}
.switch-wait .form-actions{justify-content:center;margin-top:8px}
.switch-clock{width:132px;height:132px;margin-bottom:14px;border-radius:50%;box-shadow:0 18px 40px rgba(20,32,46,.18),0 0 0 10px var(--accent-soft)}
.switch-clock svg{display:block;width:100%;height:100%}
.switch-clock-tick{stroke:rgba(255,255,255,.35);stroke-width:2.5;stroke-linecap:round}
.switch-clock-hour,.switch-clock-minute{stroke:#fff;stroke-linecap:round;transform-origin:60px 60px}
.switch-clock-hour{stroke-width:6;animation:switch-clock-spin 36s linear infinite}
.switch-clock-minute{stroke-width:4;animation:switch-clock-spin 3s linear infinite}
.switch-clock-dot{fill:#8fa7b6;stroke:#14202e;stroke-width:2}
@keyframes switch-clock-spin{to{transform:rotate(360deg)}}
/* Admin domains: a short to-do list, not a wall of cards */
.domain-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:14px}
.filter-tabs{display:flex;flex-wrap:wrap;gap:6px}
.filter-tab{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:13px;font-weight:650;color:var(--text);cursor:pointer;transition:background-color .25s,border-color .25s,color .25s}
.filter-tab:hover{border-color:var(--line-strong)}
/* On a phone the category pills are one swipeable row instead of wrapping into a block. */
@media(max-width:700px){
  .domain-toolbar:has(.filter-tabs-scroll){display:grid}
  .filter-tabs-scroll{flex-wrap:nowrap;overflow-x:auto;margin-inline:-16px;padding-inline:16px;scrollbar-width:none;overscroll-behavior-x:contain}
  .filter-tabs-scroll::-webkit-scrollbar{display:none}
  .filter-tabs-scroll .filter-tab{flex:none}
}
.filter-tab[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.filter-count{min-width:20px;padding:1px 6px;border-radius:999px;background:var(--sunken);color:var(--muted);font-size:11.5px;text-align:center}
.filter-tab[aria-pressed="true"] .filter-count{background:color-mix(in srgb,var(--on-ink) 16%,transparent);color:var(--on-ink)}
.domain-row+.domain-row{border-top:1px solid var(--line)}
.domain-row>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 150px 96px 16px;align-items:center;gap:16px;padding:14px 20px;cursor:pointer}
.domain-row>summary::-webkit-details-marker{display:none}
.domain-row>summary:hover{background:var(--hover)}
.domain-row[open]>summary{background:var(--sunken)}
.domain-row[open]>summary .disclosure-icon{transform:rotate(45deg)}
.domain-row-client{display:grid;min-width:0}
.domain-row-client strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.domain-row-client small,.domain-row-date{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.domain-row-address{font-size:13.5px;font-weight:650;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.domain-row-address.is-empty{color:var(--faint);font-weight:500}
.domain-row-date{text-align:right}
.domain-row-body{display:grid;gap:14px;padding:4px 20px 22px;background:var(--sunken)}
.domain-row-body .next-move{background:var(--surface)}
.domain-row-body .zone-review{background:var(--surface)}
@media(max-width:760px){
  .domain-row>summary{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 16px}
  .domain-row-address{grid-column:1}
  .domain-row-status{grid-column:2;grid-row:1}
  .domain-row-date,.domain-row>summary>.disclosure-icon{display:none}
  .domain-row-body{padding:4px 16px 18px}
}
#integration-admin{margin-top:12px}
.connection-symbol.has-logo{background:#fff}
.connection-symbol.has-logo img{width:28px;height:28px;object-fit:contain}
.integration-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:12px}
.integration-tile{aspect-ratio:1;overflow:hidden;min-width:0;display:grid;justify-items:center;align-content:center;gap:6px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);text-align:center;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}
.integration-tile:hover{border-color:var(--line-strong);box-shadow:var(--shadow);transform:translateY(-1px)}
.integration-tile img{width:44px;height:44px;object-fit:contain;margin-bottom:6px}
.integration-tile strong{font-size:14px;line-height:1.25;color:var(--ink)}
.integration-tile small{font-size:12px;color:var(--muted)}
.integration-tile .badge{margin-top:4px;min-width:112px;justify-content:center}
/* One- and two-line names take the same height, so every tile's pill sits on the same line. */
.integration-tile strong{display:flex;align-items:center;justify-content:center;min-height:2.5em}
.integrations-browser .domain-toolbar{margin:4px 0 16px}
.integration-detail-head{display:flex;align-items:center;justify-content:space-between}
.integration-detail-head img{width:44px;height:44px;object-fit:contain}
@media(max-width:600px){.integration-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.integration-tile{padding:12px}}
.service-logo{display:block;width:40px;height:40px;object-fit:contain;margin-bottom:12px}
.service-setup{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--sunken)}
.service-setup>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer}
.service-setup>summary::-webkit-details-marker{display:none}
.service-setup>summary .row-main{flex:1}
.service-setup[open] .disclosure-icon{transform:rotate(45deg)}
.service-setup-body{display:grid;gap:12px;padding:0 16px 16px}
.service-setup-body .fine-print{margin:0}
.developer-links{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px}
.developer-redirect{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:12px;color:var(--muted)}
.developer-redirect code{font-size:12px;padding:4px 8px;border-radius:6px;background:var(--surface);color:var(--ink);overflow-wrap:anywhere}
.service-clients{display:grid;gap:12px}
.service-clients-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.service-clients-head h3,.client-services h3{margin:0;font-size:16px;color:var(--ink)}
.service-clients .search{max-width:none}
.service-client-list{display:grid;border:1px solid var(--line);border-radius:var(--radius-lg);max-height:min(46vh,420px);overflow:auto}
.service-client-list>.fine-print,.service-client-list>.empty{margin:0;padding:14px 16px}
.service-client{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line)}
.service-client:first-child{border-top:0}
label.service-client{grid-template-columns:auto minmax(0,1fr);cursor:pointer}
label.service-client:hover{background:var(--hover)}
label.service-client input{width:16px;height:16px;margin:0;accent-color:var(--ink)}
.service-client-actions{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:flex-end;white-space:nowrap}
.service-client .integration-status>span{white-space:normal;overflow-wrap:anywhere}
.service-client-actions .danger{color:var(--muted)}
.service-client-actions .danger:hover{color:var(--danger)}
.client-services .service-client{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
.client-services{display:grid;gap:10px;padding-top:16px;border-top:1px solid var(--line)}
.client-service-name{display:flex;align-items:center;gap:10px;min-width:0}
.client-service-name img{width:22px;height:22px;object-fit:contain;flex:none}
.client-service-name strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.client-service-offer{display:flex;gap:10px}
.client-service-offer select{flex:1}
@media(max-width:600px){
  .service-client,.client-services .service-client{grid-template-columns:minmax(0,1fr) auto}
  .service-client .integration-status{grid-column:1;grid-row:2}
  .service-client-actions{grid-row:1/3;grid-column:2;flex-direction:column;align-items:flex-end;gap:6px}
}
.integration-status{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--muted);min-width:0}
.integration-status>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.integration-status i{width:8px;height:8px;border-radius:50%;flex:none;background:var(--line-strong)}
.integration-status.is-connected{color:var(--success)}
.integration-status.is-connected i{background:var(--success)}
.integration-status.is-attention{color:var(--attention)}
.integration-status.is-attention i{background:#d08a2e}
.integration-status.is-offered{color:var(--text)}
.integration-status.is-offered i{background:none;border:1.5px solid var(--muted)}
.integration-who{display:grid;min-width:0}
.integration-who strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.integration-who small{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fireworks{position:fixed;inset:0;width:100vw;height:100vh;z-index:1150;pointer-events:none}
.admin-summary{display:flex;flex-wrap:wrap;gap:8px}
.sandbox-timeline{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sandbox-step{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 14px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface)}
.sandbox-step p{grid-column:1/-1;font-size:12.5px;color:var(--muted)}

/* Dialogs */
.dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:20px;background:var(--surface);color:var(--ink);box-shadow:0 30px 90px rgba(10,17,27,.28)}
.dialog.wide{width:min(720px,calc(100vw - 32px))}
.dialog::backdrop{background:rgba(16,24,33,.48);backdrop-filter:blur(3px)}
.dialog[open]{animation:dialog-in .3s var(--ease)}
@keyframes dialog-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
/* Dialogs leave the way they came: a quick fade and drop, with the dimmed page fading back. */
.dialog::backdrop{animation:backdrop-in .3s ease}
.dialog.is-closing{animation:dialog-out .2s cubic-bezier(.4,0,1,1) forwards}
.dialog.is-closing::backdrop{animation:backdrop-out .22s ease forwards}
@keyframes dialog-out{to{opacity:0;transform:translateY(8px) scale(.985)}}
@keyframes backdrop-in{from{opacity:0}}
@keyframes backdrop-out{to{opacity:0}}
@media(prefers-reduced-motion:reduce){.dialog::backdrop,.dialog.is-closing,.dialog.is-closing::backdrop{animation:none}}
.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 24px 0}
.dialog-head h2{font-size:24px;letter-spacing:-.055em;margin-top:4px;overflow-wrap:anywhere}
.dialog-description{font-size:13px;color:var(--muted);line-height:1.6;margin-top:6px}
.dialog-body{display:grid;gap:16px;padding:20px 24px 24px}
.dialog-template{display:none}
.price{font-size:30px;letter-spacing:-.05em;font-weight:760}

/* Link styled as a button (payment pages, PDFs). */
.button-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 18px;border-radius:var(--radius);
  border:1px solid var(--ink);background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:720;white-space:nowrap;transition:background .2s,border-color .2s}
.button-link:hover{background:var(--ink-hover);border-color:var(--ink-hover)}
.button-link.secondary{background:var(--surface);color:var(--ink);border-color:var(--line-strong)}
.button-link.secondary:hover{background:var(--sunken);border-color:var(--accent)}
.row-actions .button-link{min-height:34px;padding:7px 14px;font-size:12px}

/* Invoice document: reads like the paper invoice, prints like one too. */
.dialog.document{width:min(860px,calc(100vw - 32px));background:var(--sunken)}
.dialog.document .dialog-body{padding-top:16px}
.doc-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.doc-holder{min-width:0}
.invoice-doc{position:relative;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:6px;box-shadow:0 1px 2px rgba(20,32,46,.05),0 14px 34px rgba(20,32,46,.08);
  padding:clamp(24px,5vw,56px);display:grid;gap:34px;overflow:hidden}
/* The invoice is a paper document: it keeps the light palette in dark mode. */
.invoice-doc{color-scheme:light;--paper:#fafafa;--surface:#fff;--sunken:#f3f5f6;--hover:#eef2f4;--ink:#14202e;--text:#3c4a55;--muted:#6f7d87;--faint:#98a4ac;--line:#e3e8eb;--line-strong:#ccd7de;--accent:#8a9faf;--success:#2d6a4c;--success-soft:#e7f2ec;--attention:#8a5a12;--attention-soft:#fbf1df;--danger:#a03e3e;--danger-soft:#fbeeed;--on-ink:#fff}
.invoice-doc::before{content:"";position:absolute;inset:0 0 auto 0;height:6px;background:var(--ink)}
.doc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.doc-brand{display:flex;align-items:center;gap:12px}
.doc-brand img{display:block;width:44px;height:44px}
.doc-brand strong{display:block;font-size:19px;letter-spacing:-.05em;font-weight:780}
.doc-brand small{display:block;font-size:8.5px;letter-spacing:.18em;font-weight:760;color:var(--muted);margin-top:3px}
.doc-title{text-align:right}
.doc-title h2{font-size:clamp(28px,4vw,40px);letter-spacing:-.06em;line-height:1;font-weight:760}
.doc-title p{font-size:13px;color:var(--muted);margin-top:8px;font-variant-numeric:tabular-nums}
.doc-stamp{position:absolute;top:clamp(92px,13vw,128px);right:clamp(24px,5vw,56px);padding:5px 12px;border:2px solid currentColor;border-radius:6px;
  font-size:12px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;transform:rotate(-4deg);color:var(--attention);opacity:.85}
.doc-stamp[data-tone="success"]{color:var(--success)}
.doc-stamp[data-tone="danger"]{color:var(--danger)}
.doc-stamp[data-tone="muted"],.doc-stamp[data-tone="neutral"]{color:var(--muted)}
.doc-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-top:6px}
.doc-block{display:grid;gap:3px;align-content:start;font-size:13px;color:var(--text);line-height:1.55;min-width:0}
.doc-block p{overflow-wrap:anywhere}
.doc-label{font-size:10px;font-weight:780;letter-spacing:.16em;color:var(--faint);margin-bottom:6px!important}
.doc-strong{font-weight:720;color:var(--ink)}
.doc-lines{width:100%;border-collapse:collapse;font-size:13.5px;font-variant-numeric:tabular-nums}
.doc-lines th{text-align:left;font-size:10px;font-weight:780;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);padding:0 0 10px;border-bottom:2px solid var(--ink)}
.doc-lines td{padding:16px 0;border-bottom:1px solid var(--line);vertical-align:top}
.doc-lines td strong{display:block;font-weight:680}
.doc-lines td small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.doc-lines .num{text-align:right;padding-left:18px;white-space:nowrap}
.doc-totals{justify-self:end;width:min(320px,100%);margin:-12px 0 0;display:grid;font-size:13.5px;font-variant-numeric:tabular-nums}
.doc-totals div{display:flex;justify-content:space-between;gap:20px;padding:8px 0}
.doc-totals dt{color:var(--muted)}
.doc-totals dd{margin:0;font-weight:650}
.doc-total{border-top:1px solid var(--line)}
.doc-total dt,.doc-total dd{color:var(--ink);font-weight:740}
.doc-due{margin-top:6px;padding:12px 14px!important;border-radius:8px;background:var(--sunken)}
.doc-due dt{color:var(--ink);font-weight:740}
.doc-due dd{font-size:16px;font-weight:780}
.doc-foot{display:grid;gap:4px;padding-top:22px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.6}
.invoice-row .row-main small{font-variant-numeric:tabular-nums}
@media(max-width:600px){
  .doc-head{flex-direction:column}
  .doc-title{text-align:left}
  .doc-stamp{position:static;justify-self:start;margin-top:-18px}
  .doc-meta{grid-template-columns:1fr;gap:18px}
  .doc-lines th:nth-child(2),.doc-lines td:nth-child(2),.doc-lines th:nth-child(3),.doc-lines td:nth-child(3){display:none}
  .doc-totals{width:100%}
}
#print-root{display:none}
@media print{
  @page{margin:14mm}
  body>*:not(#print-root){display:none!important}
  body{background:#fff}
  #print-root{display:block}
  #print-root .invoice-doc{border:0;box-shadow:none;padding:0;border-radius:0}
  #print-root .invoice-doc::before{display:none}
  #print-root .doc-stamp{top:96px;right:0}
  #print-root .doc-due{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* Loader — the logo's original dot makes one orbit, settles, then repeats. */
.portal-loader{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;background:var(--loader);overscroll-behavior:contain}
.portal-loader-content{text-align:center;padding:32px;animation:portal-loader-enter .18s ease-out both}
.portal-loader-logo{display:block;width:clamp(104px,15vw,144px);height:auto;overflow:visible;margin:0 auto 25px;filter:drop-shadow(0 12px 22px rgba(20,32,46,.10))}
.portal-loader-brand{margin:0;color:var(--brand-ink);font-size:23px;font-weight:600;letter-spacing:-.055em;line-height:1.2}
.portal-loader-brand>span{color:#8a9faf}
.portal-loader-label{margin:12px 0 0;color:var(--loader-label);font-size:13px;letter-spacing:.015em}
/* The same bounce as the period on tlt-studios.com's landing page (Adam-Portfolio styles.css, hero-period-dribble):
   a hop of about 1.24 dot-widths, then rebounds of about .31, .14, and .06, over 1050ms of a 2.2s loop.
   The dot is 146 SVG units wide, and distances are SVG units, so the bounce scales with the logo.
   Wait briefly before moving so quick loads leave the dot still. */
.portal-loader-dot{animation:portal-loader-dribble 2.2s linear .35s infinite}
body:has(.portal-loader:not([hidden])){overflow:hidden}
@keyframes portal-loader-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@keyframes portal-loader-dribble{
  0%,21.8%,33.8%,42.3%{transform:translateY(0);animation-timing-function:cubic-bezier(.33,.67,.67,1)}
  10.9%{transform:translateY(-181px);animation-timing-function:cubic-bezier(.33,0,.67,.33)}
  27.8%{transform:translateY(-45px);animation-timing-function:cubic-bezier(.33,0,.67,.33)}
  38%{transform:translateY(-21px);animation-timing-function:cubic-bezier(.33,0,.67,.33)}
  45%{transform:translateY(-8px);animation-timing-function:cubic-bezier(.33,0,.67,.33)}
  47.7%,100%{transform:translateY(0)}
}

/* Responsive */
@media(max-width:1100px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .overview-grid{grid-template-columns:1fr}
  .overview-grid>.panel+.panel{margin-top:0}
}
@media(max-width:900px){
  :root{--sidebar:280px}
  .mobile-bar{position:sticky;top:0;z-index:45;display:flex;align-items:center;justify-content:space-between;gap:12px;height:64px;padding:0 16px;background:color-mix(in srgb,var(--paper) 92%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
  .menu-toggle{color:var(--ink)}
  /* The menu button is on the right of the bar, so the drawer opens from the right. */
  /* It starts below the top bar, which stays in view with its logo and the open/close button, so the drawer
     needs no logo of its own. */
  .sidebar{inset:64px 0 0 auto;padding-top:20px;border-right:0;border-left:1px solid var(--line);transform:translateX(102%);transition:transform .35s var(--ease),visibility 0s linear .35s;visibility:hidden;box-shadow:var(--shadow-lift)}
  .sidebar.open{transform:none;visibility:visible;transition:transform .35s var(--ease)}
  .sidebar>.brand{display:none}
  .sidebar-scrim{display:block;position:fixed;inset:0;z-index:35;background:rgba(16,24,33,.4)}
  .sidebar-scrim[hidden]{display:none!important}
  main{margin-left:0}
  .main-content{padding:0 16px}
  .page-header{flex-direction:column;align-items:flex-start;padding:30px 0 22px}
  .page-header-hero h1{font-size:clamp(40px,12vw,58px)}
  .journey,.stepper{grid-template-columns:1fr}
  .detail-header{flex-direction:column;gap:12px}
  .toast-region{inset:auto 16px 16px 16px;width:auto;max-width:none}
}
@media(max-width:600px){
  .stats{gap:10px}
  .stat{padding:14px 16px}
  .stat strong{font-size:30px}
  .panel{padding:18px}
  .field-row,.owner-form .field-row.three,.owner-form .field-row.phone,.segmented,.domain-admin-offer{grid-template-columns:1fr}
  .connection-head{grid-template-columns:46px minmax(0,1fr)}
  .connection-head>.badge{grid-column:2;justify-self:start;margin-top:-4px}
  .row{flex-wrap:wrap}
  .row-actions{justify-content:flex-start;width:100%}
  .list-boxed>.row{padding:14px 16px}
  .facts>div{grid-template-columns:1fr;gap:2px}
  .step{grid-template-columns:28px minmax(0,1fr);gap:10px}
  .step::before{left:13px;top:30px}
  .step-marker{width:28px;height:28px;font-size:12px}
  .step-head,.step-body{padding-left:16px;padding-right:16px}
  .select-label,.select-label select{width:100%}
  .search{max-width:none}
  .page-actions{width:100%}
  .page-actions>button{flex:1}
  .dns-record{grid-template-columns:48px minmax(0,1fr)}
  .dns-record small{grid-column:2}
  .site-footer{flex-direction:column;margin-top:48px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
  .portal-loader-dot{animation:none}
}

/* Client setup, shown before the portal */
.onboarding{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:var(--paper);color:var(--ink);overflow-y:auto}
.onboarding::backdrop{background:var(--paper)}
.onboarding-inner{width:min(640px,calc(100vw - 32px));margin:0 auto;padding:48px 0 64px;display:grid;gap:14px}
.onboarding-brand{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.onboarding-brand strong{font-size:16px;letter-spacing:-.04em}
.onboarding h1{font-size:clamp(30px,5vw,44px);line-height:1.05;letter-spacing:-.05em}
.onboarding .lead{color:var(--muted);font-size:15px;line-height:1.6;max-width:52ch}
.onboarding-body{display:grid;gap:20px;margin-top:12px}
.onboarding-steps{display:grid;gap:12px}
.onboarding-step{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}
.onboarding-step>header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:start;padding:20px}
.onboarding-step h3{font-size:16px;letter-spacing:-.03em}
.onboarding-step header p{font-size:13.5px;color:var(--muted);line-height:1.55;margin-top:4px}
.onboarding-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:2px solid var(--ink);font-size:13px;font-weight:760}
.onboarding-step.is-done .onboarding-number{background:var(--ink);color:var(--on-ink)}
.onboarding-step.is-locked{background:transparent;box-shadow:none}
.onboarding-step.is-locked .onboarding-number{border-color:var(--line-strong);color:var(--muted)}
.onboarding-step-body{display:grid;gap:14px;padding:0 20px 20px 66px}
.onboarding-howto{margin:0;padding-left:18px;display:grid;gap:6px;font-size:13.5px;line-height:1.5;color:var(--text)}
.onboarding-step-body .fine-print{margin:0}
.onboarding-foot{display:grid;gap:12px;justify-items:start}
.onboarding-foot .fine-print{margin:0}
@media(max-width:600px){
  .onboarding-inner{padding-top:28px}
  .onboarding-step>header{grid-template-columns:auto minmax(0,1fr);padding:16px}
  .onboarding-step>header .badge{grid-column:2;justify-self:start}
  .onboarding-step-body{padding:0 16px 16px}
}

/* Guided tour */
.tour-hole{position:fixed;z-index:1100;border-radius:12px;box-shadow:0 0 0 9999px rgba(16,24,33,.55),0 0 0 3px var(--accent);pointer-events:none;transition:top .25s var(--ease),left .25s var(--ease),width .25s var(--ease),height .25s var(--ease)}
.tour-card{position:fixed;z-index:1101;width:min(340px,calc(100vw - 32px));padding:20px;border-radius:var(--radius-lg);background:var(--surface);box-shadow:0 30px 90px rgba(10,17,27,.28);display:grid;gap:8px}
.tour-card h2{font-size:18px;letter-spacing:-.04em}
.tour-text{font-size:13.5px;line-height:1.55;color:var(--text)}
.tour-actions{display:flex;align-items:center;gap:8px;margin-top:8px}
.tour-actions .link-button{margin-right:auto}
.help-card .link-button{margin-top:8px;padding:0}
body:has(.tour-card) .toast-region{display:none}
@media(max-width:900px){
  .tour-card{left:16px;right:16px;width:auto}
}
/* Demos (studio): one row per demo website */
.demo-list{display:grid;gap:10px}
.demo-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}
.demo-row.is-opened{border-color:var(--success-line)}
.demo-row-main{display:grid;gap:6px;min-width:0}
.demo-row-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.demo-row-title strong{font-size:15px;color:var(--ink)}
.demo-row code{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.demo-row-views{margin:0;font-size:13px;color:var(--muted)}
.demo-opened{font-weight:700;color:var(--success)}
.demo-launching{font-weight:700;color:var(--attention)}
.demo-row-launch{margin:0;font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.launch-steps{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px}
.launch-steps li{position:relative;padding-left:30px;line-height:1.4;color:var(--muted)}
.launch-steps li::before{content:"";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;border:2px solid var(--line);box-sizing:border-box}
.launch-steps li[data-state="done"]{color:var(--ink)}
.launch-steps li[data-state="done"]::before{border-color:var(--success);background:var(--success) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M6 12.5l4 4 8-9%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center/14px no-repeat}
.launch-steps li[data-state="now"]{color:var(--ink);font-weight:700}
.launch-steps li[data-state="now"]::before{border-color:var(--line);border-top-color:var(--ink);animation:launch-spin .8s linear infinite}
.launch-steps li[data-state="error"]{color:var(--attention);font-weight:700}
.launch-steps li[data-state="error"]::before{border-color:var(--attention);background:var(--attention-soft)}
@keyframes launch-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.launch-steps li[data-state="now"]::before{animation:none}}
.launch-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin:0}
.demo-row-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px 16px;flex:none}
@media(max-width:640px){.demo-row{flex-direction:column;align-items:stretch}.demo-row-actions{justify-content:flex-start}}

/* Support after launch (project Support tab) */
.field[hidden]{display:none}
.support-card .stack{margin-top:8px}
.support-form[hidden]{display:none}
.support-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin:4px 0 18px}
.support-option{display:grid;gap:8px;align-content:start;padding:18px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--sunken)}
.support-option.is-featured{background:var(--surface);border-color:var(--line-strong);box-shadow:var(--shadow)}
.support-option h3{margin:0;font-size:16px;color:var(--ink)}
.support-option p{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}
.support-option>button,.support-option>.badge{justify-self:start;margin-top:4px}
.support-request{align-items:flex-start}
.support-details{margin:4px 0;font-size:14px;line-height:1.55;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere}
.support-request-side{display:grid;justify-items:end;gap:8px;flex:none}
.support-request-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 14px}
@media(max-width:640px){.support-request{flex-direction:column}.support-request-side{justify-items:start}.support-request-actions{justify-content:flex-start}}
.support-price{margin:-4px 0 14px}
.support-renewal{margin-bottom:16px}
.support-renewal .stack{margin-top:4px}
.support-site{margin:0 0 14px;font-size:14px;color:var(--muted)}
.address-input{display:flex;align-items:stretch}
.address-input input{flex:1;min-width:0;border-top-right-radius:0;border-bottom-right-radius:0}
.address-suffix{display:flex;align-items:center;padding:0 12px;border:1px solid var(--line);border-left:0;border-radius:0 var(--radius) var(--radius) 0;background:var(--sunken);color:var(--muted);font-size:14px;white-space:nowrap}
.dns-record{display:grid;grid-template-columns:auto 1fr 2fr;gap:10px;margin:4px 0 8px}
.dns-record>div{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--sunken);min-width:0}
.dns-record small{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.dns-record code{font-size:14px;color:var(--ink);overflow-wrap:anywhere;user-select:all}
.own-address-form{display:flex;gap:10px;margin-top:4px}
.own-address-form input{flex:1;min-width:0}
@media(max-width:600px){.dns-record{grid-template-columns:1fr}}
/* Connecting a domain they own: the two ways, and the kept-DNS steps */
.connect-options{display:grid;gap:10px}
.connect-option{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);cursor:pointer}
.connect-option:has(input:checked){border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.connect-option input{margin-top:3px;accent-color:var(--ink)}
.connect-option-copy{display:grid;gap:6px}
.connect-option-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.connect-option-head strong{font-size:15px;color:var(--ink)}
.connect-option ul{margin:0;padding-left:18px;color:var(--muted);font-size:14px;line-height:1.6}
.pointer-steps{display:grid;gap:16px;margin:0;padding-left:20px}
.pointer-steps>li{padding-left:4px}
.pointer-steps strong{color:var(--ink)}
.pointer-steps .fine-print{margin:4px 0 8px}
/* Client overview: what's left of a skipped setup */
#client-actions-needed{margin-bottom:18px}
#client-actions-needed:empty{display:none}
.actions-needed{border-color:var(--attention-line)}
.actions-list{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:12px}
.actions-list li{display:flex;align-items:flex-start;gap:12px}
.actions-list li>div{display:grid;gap:2px}
.actions-list strong{font-size:15px;color:var(--ink)}
.actions-list small{font-size:13px;color:var(--muted)}
.actions-list .is-done strong{color:var(--muted);text-decoration:line-through}
.actions-mark{flex:none;display:grid;place-items:center;width:22px;height:22px;margin-top:1px;border:1.5px solid var(--line-strong);border-radius:50%;color:var(--success)}
.is-done .actions-mark{border-color:var(--success);background:var(--success-soft)}
.actions-mark .icon{width:14px;height:14px}
.onboarding-skip{transition:opacity .6s var(--ease)}
.onboarding-skip.is-waiting{opacity:0;pointer-events:none}
.onboarding-question{margin:0;font-weight:650;color:var(--ink)}
.onboarding-checklist{display:grid;gap:12px;margin:0;padding-left:20px}
.onboarding-checklist strong{color:var(--ink);font-size:15px}
.onboarding-checklist p{margin:2px 0 0;font-size:14px;line-height:1.55;color:var(--muted)}
.onboarding-checklist .text-link{font-size:13px}
@media (prefers-reduced-motion:reduce){.onboarding-skip{transition:none}}
/* Home: the red "disconnected" banner */
.home-alert{margin-bottom:14px;padding:14px 18px;border:1px solid var(--danger-line);border-radius:var(--radius-lg);background:var(--danger-soft);color:var(--danger);font-size:15px;line-height:1.55}
.home-alert strong{color:var(--danger)}
.home-alert a{color:var(--danger);font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* Settings */
.settings-section .stack{margin-top:4px}
.segmented{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:var(--sunken)}
.segmented-option{padding:8px 16px;border:0;border-radius:999px;background:none;color:var(--text);font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.segmented-option[aria-checked="true"]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.marketplace-unlisted{margin-top:6px}
/* Setup, page 2: the business and the services they use */
.onboarding-business{display:grid;gap:4px;padding:20px}
.onboarding-services{display:grid;gap:10px;padding:20px}
.onboarding-services h3{margin:0;font-size:16px;color:var(--ink)}
.onboarding-services .fine-print{margin:0}
.service-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.service-pick{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.service-pick:has(input:checked){border-color:var(--line-strong);background:var(--sunken)}
.service-pick label{display:flex;align-items:center;gap:10px;min-width:0;cursor:pointer;font-size:14px;font-weight:600;color:var(--ink)}
.service-pick label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.service-pick input{accent-color:var(--ink)}
.service-pick img{width:24px;height:24px;object-fit:contain;flex:none}
.service-pick-side{flex:none;font-size:12px;color:var(--muted)}
.service-pick-side .is-connected{color:var(--success);font-weight:700}
/* Dark mode: service logos (some are black) sit on a light tile */
:root[data-theme="dark"] :is(.integration-tile,.integration-detail-head,.service-pick,.client-service-name,.integration-stat,.own-address,.developer-setup) img{background:#fff;border-radius:8px;padding:3px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) :is(.integration-tile,.integration-detail-head,.service-pick,.client-service-name,.integration-stat,.own-address,.developer-setup) img{background:#fff;border-radius:8px;padding:3px}}

/* Payment buttons */
.payment-list{display:grid;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.payment-list>.fine-print{padding:14px 16px;margin:0}
.payment-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;border-top:1px solid var(--line)}
.payment-row:first-child{border-top:0}
.payment-row.is-off{opacity:.6}
.payment-actions{display:flex;gap:14px;flex-wrap:wrap}
.payment-form{margin-top:18px}

/* Sidebar: Integrations opens to the client's connected services and the Marketplace */
.nav-group-row{display:flex;align-items:stretch;border-radius:var(--radius);transition:background .2s,box-shadow .2s}
.nav-group-row:hover{background:var(--hover)}
.nav-group-row:has(>a.active){background:var(--surface);box-shadow:0 1px 2px rgba(20,32,46,.06),inset 0 0 0 1px var(--line)}
.sidebar-nav .nav-group-row>a{flex:1;min-width:0;background:transparent;box-shadow:none}
.nav-toggle{display:grid;place-items:center;width:38px;border-radius:var(--radius);color:var(--nav-icon);background:transparent;border:0;padding:0;transition:color .2s}
.nav-toggle:hover{color:var(--ink)}
.nav-group-row:has(>a.active) .nav-toggle{color:var(--ink)}
.nav-toggle .icon{transition:transform .28s cubic-bezier(.22,1,.36,1)}
.nav-toggle[aria-expanded="true"] .icon{transform:rotate(90deg)}
/* Opens and closes by animating the height of its contents. */
.nav-sub{display:grid;grid-template-rows:1fr;margin:3px 0 4px 18px;transition:grid-template-rows .28s cubic-bezier(.22,1,.36,1),margin .28s cubic-bezier(.22,1,.36,1),opacity .22s}
.nav-sub.closed{grid-template-rows:0fr;margin-top:0;margin-bottom:0;opacity:0}
.nav-sub-inner{display:grid;gap:2px;min-height:0;overflow:hidden;padding-left:10px;border-left:1px solid var(--line)}
.nav-sub.closed .nav-sub-inner{visibility:hidden;transition:visibility 0s .28s}
.nav-sub-list{display:grid;gap:2px}
.sidebar-nav .nav-sub a{padding:8px 10px;font-size:13.5px;gap:10px}
.sidebar-nav .nav-sub a img{width:20px;height:20px;border-radius:5px;object-fit:contain;flex:none}
.nav-caption{margin:4px 10px 2px;font-size:11px;font-weight:760;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}
.nav-dot{width:7px;height:7px;border-radius:50%;background:var(--attention);margin-left:auto;flex:none}
.nav-separator{border:0;border-top:1px solid var(--line);margin:10px 12px}
:root[data-theme="dark"] .nav-sub a img{background:#fff;padding:2px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .nav-sub a img{background:#fff;padding:2px}}
.service-card{display:grid;gap:14px;justify-items:start}
.service-card .integration-detail-head{width:100%}
.service-card .panel-intro{margin:0}

/* Quiet loading: a thin bar at the top for ordinary requests, a spinner on the button you pressed, and a
   skeleton where a page's content will appear. The full-screen loader is only for the first load. */
.portal-progress{position:fixed;inset:0 0 auto 0;height:3px;z-index:1100;pointer-events:none;overflow:hidden}
.portal-progress[hidden]{display:none}
.portal-progress span{display:block;height:100%;background:var(--accent-ink);transform:scaleX(0);transform-origin:left;opacity:1}
.portal-progress.is-running span{transform:scaleX(.82);transition:transform 9s cubic-bezier(.1,.6,.2,1)}
.portal-progress.is-done span{transform:scaleX(1);opacity:0;transition:transform .2s ease-out,opacity .3s ease-out .15s}
button[aria-busy="true"]{opacity:.8;cursor:progress}
/* Only on action buttons: cards, rows, tabs and tiles are busy too, but a ring in their corner is just noise. */
:is(button:not([class]),button.secondary,button.danger,button.link-button)[aria-busy="true"]::before{content:"";flex:none;width:13px;height:13px;margin-right:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:button-spin .7s linear infinite}
button.link-button[aria-busy="true"]::before{display:inline-block;vertical-align:-2px}
@keyframes button-spin{to{transform:rotate(360deg)}}
.inline-loading{display:grid;gap:12px;padding:6px 0}
.inline-loading i{display:block;height:88px;border-radius:var(--radius-lg);border:1px solid var(--line);background:linear-gradient(100deg,var(--sunken) 30%,var(--surface) 50%,var(--sunken) 70%) 0 0/200% 100%;animation:skeleton-shimmer 1.4s ease-in-out infinite}
.inline-loading i:nth-child(2){opacity:.75}
.inline-loading i:nth-child(3){opacity:.5}
@keyframes skeleton-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){
  .portal-progress.is-running span{transition:none;transform:scaleX(.5)}
  .inline-loading i{animation:none}
  button[aria-busy="true"]::before{animation-duration:1.6s}
}

/* Project page: where it stands, what's next, and only the active step open. */
.project-overview{display:grid;gap:14px;margin-bottom:22px}
.next-step{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-left:4px solid var(--line-strong)}
.next-step[data-tone="you"]{border-left-color:var(--attention);background:linear-gradient(90deg,var(--attention-soft),var(--surface) 55%)}
.next-step[data-tone="client"]{border-left-color:var(--info)}
.next-step[data-tone="done"]{border-left-color:var(--success)}
.next-step h2{font-size:20px;letter-spacing:-.04em;margin:2px 0 4px}
.next-step p:not(.eyebrow){font-size:13.5px;color:var(--muted);max-width:56ch}
.next-step button{flex:none}
.progress-track{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;margin:0;padding:0;counter-reset:none}
.progress-track li{position:relative;display:flex;justify-content:center}
.progress-track li+li::before{content:"";position:absolute;left:-50%;right:50%;top:17px;height:2px;background:var(--line)}
.progress-track li[data-state="done"]+li::before,.progress-track li[data-state="current"]::before{background:var(--ink)}
.progress-item{position:relative;z-index:1;display:grid;justify-items:center;gap:7px;padding:0;border:0;background:none;color:var(--muted);font-size:12.5px;font-weight:680;cursor:pointer}
.progress-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface);font-size:13px;font-weight:760;color:var(--muted);transition:background .25s,border-color .25s,color .25s}
.progress-mark .icon{width:16px;height:16px;stroke-width:2.4}
.progress-track li[data-state="done"] .progress-mark{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.progress-track li[data-state="current"] .progress-mark,.progress-track li[data-next="true"] .progress-mark{border:2px solid var(--ink);color:var(--ink)}
.progress-track li[data-state="done"] .progress-label,.progress-track li[data-next="true"] .progress-label{color:var(--ink)}
.progress-item:hover .progress-mark{border-color:var(--ink)}
.step-toggle{cursor:pointer;user-select:none}
.step-toggle:hover h3{text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:3px}
.step-chevron{flex:none;width:16px;height:16px;color:var(--muted);transform:rotate(90deg);transition:transform .25s var(--ease)}
.step.is-collapsed .step-chevron{transform:rotate(0deg)}
.step.is-collapsed .step-body{display:none}
.step.is-collapsed{padding-bottom:12px}
.step.is-collapsed .step-card{box-shadow:none;background:var(--sunken)}
.step.is-collapsed .step-head{padding-block:12px}
@media(max-width:700px){
  .next-step{flex-direction:column;align-items:flex-start;gap:14px}
  .next-step button{width:100%}
}
.step-head>div:first-child{flex:1;min-width:0}

/* Project cards: a small browser window in the project's own colour, then its name, client and next step. */
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}
.project-grid>.empty{grid-column:1/-1}
.project-card{position:relative;display:flex;flex-direction:column;padding:0;overflow:hidden;text-align:left;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);cursor:pointer;transition:transform .25s var(--ease),box-shadow .25s,border-color .25s}
.project-card:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:var(--shadow-lift)}
.project-card:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.project-tile{position:relative;overflow:hidden;display:flex;align-items:flex-end;height:176px;padding:18px 18px 0;background:linear-gradient(145deg,var(--tile-a),var(--tile-b))}
.project-tile[data-palette="0"]{--tile-a:#27435a;--tile-b:#0f1c28}
.project-tile[data-palette="1"]{--tile-a:#4a6a58;--tile-b:#25382f}
.project-tile[data-palette="2"]{--tile-a:#587389;--tile-b:#2b3b49}
.project-tile[data-palette="3"]{--tile-a:#7d5846;--tile-b:#43291f}
.project-tile[data-palette="4"]{--tile-a:#5d4d75;--tile-b:#2d2439}
.project-tile[data-palette="5"]{--tile-a:#7d6a43;--tile-b:#43381f}
/* A little browser window, cut off by the card's edge, so every site reads as "a website" whatever its colors. */
.project-window{position:relative;display:flex;flex-direction:column;width:100%;height:100%;border-radius:10px 10px 0 0;overflow:hidden;background:var(--surface);
  box-shadow:0 -1px 0 rgba(255,255,255,.18) inset,0 14px 36px rgba(0,0,0,.32);transform:translateY(4px);transition:transform .35s var(--ease)}
.project-card:hover .project-window{transform:translateY(0)}
.project-tile-bar{display:flex;align-items:center;gap:5px;flex:none;height:28px;padding:0 10px;background:var(--sunken);border-bottom:1px solid var(--line)}
.project-tile-bar i{width:7px;height:7px;border-radius:50%;background:#c3c9cf}
.project-tile-bar i:nth-child(1){background:#f0776a}.project-tile-bar i:nth-child(2){background:#f3c160}.project-tile-bar i:nth-child(3){background:#6cc58a}
.project-tile-url{flex:1;margin-left:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:2px 10px;border-radius:6px;background:var(--surface);color:var(--muted);font-size:10.5px;font-weight:600;letter-spacing:.01em;text-align:center}
.project-window-view{position:relative;flex:1;display:grid;place-items:center;overflow:hidden;background:linear-gradient(160deg,var(--tile-a),var(--tile-b))}
/* The real site's picture (src/site-previews.js) fades in once it's ready. */
.project-tile-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top center;opacity:0;transition:opacity .5s var(--ease),transform .6s var(--ease);pointer-events:none}
.project-tile.has-shot .project-tile-shot{opacity:1}
.project-tile.has-shot .project-tile-mark{opacity:0}
.project-card:hover .project-tile.has-shot .project-tile-shot{transform:scale(1.025)}
.project-tile-mark{font-size:34px;font-weight:800;letter-spacing:-.06em;color:rgba(255,255,255,.92);text-shadow:0 6px 24px rgba(0,0,0,.25);transition:opacity .3s}
.project-card-body{display:grid;gap:3px;padding:16px 18px 6px}
.project-card-body strong{font-size:16px;letter-spacing:-.035em;line-height:1.25}
.project-card-body small{font-size:12.5px;color:var(--muted)}
.project-next{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:10px 0 4px;border-top:1px solid var(--line);font-size:13px;font-weight:700;color:var(--muted)}
.project-next[data-tone="you"]{color:var(--attention)}
.project-next[data-tone="done"]{color:var(--success)}
.project-next .icon{width:15px;height:15px;color:var(--muted);transition:transform .25s var(--ease)}
.project-card:hover .project-next .icon{transform:translateX(3px)}
.project-card-body:last-child{padding-bottom:16px}
.view-toggle{display:inline-flex;margin-left:auto;padding:3px;gap:2px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.view-toggle button{display:grid;place-items:center;width:34px;height:32px;padding:0;border:0;border-radius:7px;background:none;color:var(--muted)}
.view-toggle button .icon{width:16px;height:16px}
.view-toggle button[aria-pressed="true"]{background:var(--ink);color:var(--on-ink)}
@media(max-width:600px){.project-grid{grid-template-columns:minmax(0,1fr);gap:12px}.view-toggle{display:none}
  /* Phones: a small coloured square beside the details, so a list of projects doesn't need endless scrolling. */
  .project-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:start;padding:14px}
  .project-tile{height:64px;padding:0;border-radius:12px}
  .project-window{border-radius:12px;transform:none;box-shadow:none}
  .project-tile-bar{display:none}
  .project-tile-mark{font-size:22px;letter-spacing:-.04em}
  .project-card-body,.project-card-body:last-child{padding:0}
  .project-card-title{flex-wrap:wrap;row-gap:4px}
  .project-next{margin-top:10px;padding:9px 0 0}
}
@media(prefers-reduced-motion:reduce){.project-card,.project-next .icon,.project-tile-shot,.project-window{transition:none}}
div.progress-item{cursor:default}
div.progress-item:hover .progress-mark{border-color:var(--line-strong)}
@media(max-width:480px){.progress-label{font-size:11.5px;text-align:center}}
.project-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.project-card-title .badge{flex:none;margin-top:1px}
/* Upload: a drop area in place of the browser's file button. */
.dropzone{display:flex;align-items:center;gap:14px;flex:1 1 260px;min-width:0;padding:14px 16px;border:1.5px dashed var(--line-strong);border-radius:var(--radius);background:var(--surface);cursor:pointer;transition:border-color .2s,background .2s}
.dropzone:hover,.dropzone:focus-within,.dropzone.is-over{border-color:var(--ink);background:var(--hover)}
.dropzone-text{display:grid;gap:2px;min-width:0}
.dropzone-text strong{font-size:14px;letter-spacing:-.02em;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dropzone-text small{font-size:12.5px;color:var(--muted)}
.dropzone.has-file{border-style:solid;border-color:var(--success-line,var(--line-strong))}
.upload-row button[type="submit"]{align-self:stretch}
@media(max-width:600px){.upload-row{flex-direction:column;align-items:stretch}.dropzone,.upload-toobig{flex:none}.upload-row button[type="submit"]{align-self:auto}}

/* Big files from the client's own storage. */
.cloud-mark{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:#fff;border:1px solid var(--line);color:var(--ink)}
.cloud-mark .icon{width:18px;height:18px}
.cloud-add{display:grid;gap:14px;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.cloud-add h3{font-size:16px;letter-spacing:-.035em}
.cloud-add .fine-print{margin-top:2px}
.cloud-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.cloud-choice{display:flex;align-items:center;gap:12px;padding:12px 14px;text-align:left;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s var(--ease)}
.cloud-choice:hover:not(:disabled){border-color:var(--ink);box-shadow:var(--shadow);transform:translateY(-1px)}
.cloud-choice:disabled{opacity:.55;cursor:not-allowed}
.cloud-choice-copy{display:grid;gap:1px;min-width:0}
.cloud-choice-copy strong{font-size:14px;letter-spacing:-.02em}
.cloud-choice-copy small{font-size:12px;color:var(--muted)}
.cloud-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:2px;margin-bottom:10px}
.cloud-crumbs .link-button{padding:4px 6px;font-size:13px}
.cloud-crumbs .link-button:disabled{color:var(--ink);font-weight:720;cursor:default;opacity:1}
.cloud-crumb-sep{width:13px;height:13px;color:var(--faint)}
.cloud-list{display:grid;max-height:min(52vh,420px);overflow:auto;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.cloud-list>*+*{border-top:1px solid var(--line)}
.cloud-entry{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;text-align:left;color:var(--ink);background:none;border:0;cursor:pointer;font-size:14px}
.cloud-entry:hover{background:var(--hover)}
.cloud-entry .icon{width:18px;height:18px;flex:none;color:var(--muted)}
.cloud-folder .icon:first-child{color:var(--accent-ink)}
.cloud-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.cloud-entry small{flex:none;color:var(--muted);font-size:12px}
.cloud-entry input[type="checkbox"]{flex:none;width:17px;height:17px;accent-color:var(--ink)}
.cloud-loading,.cloud-error{padding:18px 14px;font-size:13px;color:var(--muted)}
.cloud-error{color:var(--danger)}
.cloud-list+button{margin-top:10px}
.cloud-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.cloud-count{font-size:13px;color:var(--muted);font-weight:650}
@media(max-width:600px){.cloud-choices{grid-template-columns:minmax(0,1fr)}}
.upload-toobig{flex:none;width:100%;box-sizing:border-box;display:grid;gap:10px;padding:14px 16px;border-radius:var(--radius);background:var(--attention-soft);border:1px solid var(--attention-line);font-size:13.5px;line-height:1.5;color:var(--attention)}
.upload-toobig[hidden]{display:none}
.upload-toobig p{margin:0}
.upload-toobig button{justify-self:start}
.dropzone.is-toobig{border-color:var(--attention-line);border-style:solid}
.cloud-add.is-pointed{animation:cloud-pointed 1.6s ease-out}
@keyframes cloud-pointed{0%,35%{box-shadow:0 0 0 4px var(--attention-line);border-radius:var(--radius)}100%{box-shadow:0 0 0 0 transparent}}
@media(prefers-reduced-motion:reduce){.cloud-add.is-pointed{animation:none}}

/* File previews: a picture for images, the file type otherwise. */
.file-thumb{display:grid;place-items:center;flex:none;width:40px;height:40px;overflow:hidden;border-radius:12px;background:var(--accent-soft);border:1px solid var(--line);font-size:10.5px;font-weight:780;letter-spacing:.04em;color:var(--accent-ink)}
.file-thumb canvas{display:block;width:100%;height:100%}
.file-thumb.has-picture{background:var(--sunken)}
.file-thumb-large{width:56px;height:56px;border-radius:14px;font-size:12px}
.dropzone-preview{display:grid;flex:none}
.dropzone-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:14px;background:var(--sunken);color:var(--ink)}
.dropzone-icon .icon{width:22px;height:22px}
.dropzone-clear{display:grid;place-items:center;flex:none;width:32px;height:32px;margin-left:auto;padding:0;border:0;border-radius:50%;background:var(--sunken);color:var(--muted);cursor:pointer}
.dropzone-clear:hover{background:var(--hover);color:var(--ink)}
.dropzone-clear .icon{width:15px;height:15px}

/* Several files at once: a queue of what will be uploaded. */
.upload-queue{display:grid;flex:1 1 100%;width:100%;margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.upload-queue[hidden]{display:none}
.upload-item{display:flex;align-items:center;gap:12px;padding:10px 12px}
.upload-item+.upload-item{border-top:1px solid var(--line)}
.upload-item-info{display:grid;gap:1px;min-width:0;flex:1}
.upload-item-info strong{font-size:14px;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.upload-item-info small{font-size:12.5px;color:var(--muted)}
.upload-item[data-status="uploading"]{background:var(--hover)}
.upload-item[data-status="failed"] .upload-item-info small{color:var(--danger)}
.upload-item[data-status="done"] .upload-item-info small{color:var(--success)}
.upload-done{width:18px;height:18px;flex:none;color:var(--success)}
.upload-item .dropzone-clear{margin-left:0}
.dropzone.is-busy{opacity:.6;pointer-events:none}
@media(max-width:600px){.upload-queue{flex:none}}

/* File viewer. */
.dialog.viewer{width:min(960px,calc(100vw - 24px))}
.dialog.viewer .dialog-body{padding:14px 18px 18px;gap:12px}
.viewer-frame{position:relative;display:grid;min-height:min(60vh,520px);border-radius:var(--radius);background:var(--sunken);border:1px solid var(--line);overflow:hidden}
.viewer-stage{display:grid;place-items:center;min-width:0;padding:8px}
.viewer-image,.viewer-video{display:block;max-width:100%;max-height:min(68vh,640px);width:auto;height:auto;border-radius:8px;background:#000}
.viewer-video{width:100%}
.viewer-text{align-self:stretch;justify-self:stretch;margin:0;padding:14px 16px;max-height:min(66vh,620px);overflow:auto;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface);border-radius:8px;color:var(--ink)}
.viewer-loading{font-size:13px;color:var(--muted)}
.viewer-fallback{display:grid;justify-items:center;gap:8px;max-width:360px;padding:24px;text-align:center}
.viewer-fallback p{font-size:13px;color:var(--muted);line-height:1.5}
.viewer-fallback strong{overflow-wrap:anywhere}
.viewer-save{display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin-top:6px;padding:0 18px;border-radius:var(--radius);background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:720}
.viewer-nav{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:40px;height:40px;margin-top:-20px;padding:0;border:1px solid var(--line-strong);border-radius:50%;background:color-mix(in srgb,var(--surface) 92%,transparent);color:var(--ink);cursor:pointer;box-shadow:var(--shadow)}
.viewer-nav[hidden]{display:none}
.viewer-prev{left:10px}.viewer-next{right:10px}
.viewer-nav .icon{width:18px;height:18px}
.viewer-foot{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.viewer-meta{margin:0 auto 0 0;font-size:12.5px;color:var(--muted)}
.viewer-download{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:var(--ink)}
.viewer-download-icon{width:15px;height:15px}
.file-thumb.is-clickable{cursor:zoom-in;transition:transform .2s var(--ease),border-color .2s}
.file-thumb.is-clickable:hover,.file-thumb.is-clickable:focus-visible{transform:scale(1.05);border-color:var(--ink)}
@media(max-width:600px){.dialog.viewer{width:calc(100vw - 16px)}.viewer-frame{min-height:50vh}.viewer-prev{left:6px}.viewer-next{right:6px}}

/* Business email. */
.email-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px}
.email-domain{margin:0 auto 0 0;font-size:15px}
.email-domains{display:flex;flex-wrap:wrap;gap:8px}
.email-steps{display:grid;gap:14px}
.email-step .panel-head{align-items:center}
.email-step[data-state="done"]{background:var(--sunken);box-shadow:none}
.email-record{display:grid;gap:0;margin:2px 0 0;padding:4px 14px;border-radius:var(--radius);background:var(--sunken);border:1px solid var(--line)}
.email-record-row{display:flex;align-items:center;gap:12px;padding:9px 0}
.email-record-row+.email-record-row{border-top:1px solid var(--line)}
.email-record dt{flex:none;width:64px;font-size:12px;font-weight:700;color:var(--muted)}
.email-record dd{flex:1;min-width:0;margin:0;font:12.5px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere;color:var(--ink)}

/* Studio settings: seasonal themes for the website. */
.season-status{margin:0 0 14px;font-size:14px;font-weight:650;color:var(--ink)}
.season-admin .segmented{margin-bottom:16px}
.season-admin .field{max-width:320px;margin-bottom:16px}
.season-list{display:grid;gap:10px;margin-bottom:16px}
.season-list.season-dim .season-row:not(.is-picked){opacity:.5}
.season-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.season-row.is-picked{border-color:var(--accent-ink)}
.season-row.is-off .season-dates,.season-row.is-off .season-hint{opacity:.55}
.season-text{display:grid;gap:3px}
.season-text strong{color:var(--ink);font-size:15px}
.season-text small,.season-hint{color:var(--muted);font-size:12.5px;line-height:1.5}
.season-controls{display:grid;gap:8px;justify-items:start}
.season-dates{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.season-admin .season-dates input{width:152px;min-width:0;padding:8px 10px}
.season-dates span{color:var(--muted);font-size:13px}
.season-links{display:flex;gap:16px}
.link-button{padding:0;border:0;background:none;color:var(--accent-ink);font:inherit;font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
@media(max-width:700px){.season-row{grid-template-columns:1fr}}
.danger-text{color:var(--danger);font-weight:600}

/* Setup step 1: make a Cloudflare account, verify the email, connect it. One step open at a time. */
.cf-steps{display:grid;gap:0;margin:4px 0 0;padding:0;list-style:none}
.cf-steps li{display:grid;grid-template-columns:30px 1fr;gap:14px;padding:16px 0;border-top:1px solid var(--line)}
.cf-steps li:first-child{border-top:0;padding-top:4px}
.cf-mark{width:30px;height:30px;display:grid;place-items:center;border:1.5px solid var(--line-strong);border-radius:50%;font-size:13px;font-weight:700;color:var(--muted)}
.cf-mark svg{width:16px;height:16px}
.cf-text{display:grid;gap:10px;min-width:0}
.cf-text strong{font-size:16px;color:var(--ink);line-height:1.4;padding-top:3px}
.cf-text p{margin:0;font-size:14.5px;line-height:1.6;color:var(--text)}
.cf-text .form-actions{margin:2px 0 0}
.cf-steps .is-now .cf-mark{background:var(--ink);border-color:var(--ink);color:var(--surface,#fff)}
.cf-steps .is-done .cf-mark{border-color:var(--success);color:var(--success)}
.cf-steps .is-done .cf-text strong{color:var(--muted);font-weight:600}
.cf-steps .is-later{opacity:.5}
.cf-required{padding:12px 14px;border-left:3px solid var(--danger);border-radius:0 10px 10px 0;background:var(--hover)}
.cf-required strong{display:block;padding:0;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--danger)}
.cf-required p{margin:4px 0 0}
.onboarding-step-body>.link-button{justify-self:start;margin:6px 0 0 44px;text-align:left}

/* "What is Cloudflare?" */
.what-is{position:relative;justify-self:start;margin:2px 0 4px}
.what-is-btn{display:inline-flex;align-items:center;gap:7px;padding:6px 12px 6px 9px;border:1px solid var(--line-strong);border-radius:999px;background:transparent;color:var(--text);font:600 13px/1.2 inherit;cursor:pointer}
.what-is-btn .icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.what-is-btn:hover,.what-is.is-open .what-is-btn{border-color:var(--ink);color:var(--ink)}
.what-is-tip{position:absolute;z-index:5;left:0;top:calc(100% + 8px);width:min(360px,calc(100vw - 64px));padding:14px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface,#fff);box-shadow:0 14px 34px rgba(0,0,0,.14);font-size:14px;line-height:1.55;color:var(--text);visibility:hidden;opacity:0;transform:translateY(-4px);transition:opacity .15s,transform .15s,visibility 0s .15s}
.what-is-tip strong{display:block;margin-bottom:4px;color:var(--ink);font-size:14.5px}
.what-is-tip p{margin:0}
.what-is.is-open .what-is-tip,.what-is:has(:focus-visible) .what-is-tip{visibility:visible;opacity:1;transform:none;transition:opacity .15s,transform .15s}
@media(hover:hover){.what-is:hover .what-is-tip{visibility:visible;opacity:1;transform:none;transition:opacity .15s,transform .15s}}

.check-row{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text)}
.check-row input{width:auto;min-height:0;flex:none}
.demo-row-code{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0;font-size:13px;color:var(--muted)}
.demo-row-code code{font-size:14px;font-weight:700;letter-spacing:.14em;color:var(--ink)}
.demo-code-hint{font-size:12px;color:var(--muted)}
.demo-code-hint:empty{display:none}

/* YouTube: the channel, the website's video sections, and a preview (public/youtube.js) */
.youtube-manage{margin-top:20px}
.yt-channel{display:flex;gap:14px;align-items:center;margin:4px 0 12px}
.yt-channel img{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none;background:var(--sunken)}
.yt-channel>div{display:grid;gap:3px;min-width:0}
.yt-channel small{color:var(--muted);font-size:13px}
.yt-sections{display:grid;gap:14px;margin:6px 0 14px}
.yt-section{display:grid;gap:12px;margin:0;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0}
.yt-section legend{padding:0 6px;font-size:13px;font-weight:700}
.yt-section .form-actions{padding-top:0}
.yt-more summary{cursor:pointer;font-size:13px;font-weight:650;color:var(--muted)}
.yt-more[open] summary{margin-bottom:12px}
.yt-more{display:grid;gap:12px}
.yt-preview{display:grid;gap:8px}
.yt-preview h3{margin:0;font-size:15px;display:flex;align-items:center;gap:6px}
.yt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.yt-video{display:grid;gap:5px;color:inherit;text-decoration:none;font-size:13px;line-height:1.35;min-width:0}
.yt-video img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:calc(var(--radius) / 1.5);background:var(--sunken)}
.yt-video span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600}
.yt-video small{color:var(--muted)}
.yt-video:hover span{text-decoration:underline}
.yt-code{margin:0;padding:12px;border-radius:var(--radius);background:var(--sunken);font-size:12px;white-space:pre-wrap;word-break:break-all}
.yt-channels{display:grid;gap:12px;margin:4px 0 12px}
.yt-channels .yt-channel{margin:0}
.yt-channel-actions{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;font-size:13px}
.yt-add-channel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:8px}
@media (max-width:600px){.yt-add-channel{grid-template-columns:1fr}}
.yt-highlights{display:grid;gap:8px;margin:6px 0 14px}
.yt-highlight{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.yt-highlight>select{flex:0 1 190px}
.yt-highlight>input{flex:1 1 180px;min-width:0}
.yt-highlight-tools{display:flex;gap:10px;margin-left:auto}
/* YouTube, laid out as a channel header and tabs */
.youtube-manage{gap:18px}
.youtube-manage .tab-panel>.panel{border:0;padding:0;background:none;box-shadow:none;border-radius:0}
.youtube-manage .tab-panel>.panel>.panel-head{display:none}
.youtube-manage .tab-panel>.panel>.panel-intro:first-of-type{margin-top:0}
.dialog .youtube-manage>.panel{border:0;padding:0;background:none;box-shadow:none;border-radius:0}
.youtube-channel .panel-head h2{font-size:15px}
.youtube-channel .form-actions{gap:4px 16px;padding-top:0}
.yt-add-channel[hidden]{display:none}
.yt-section{display:block;padding:0}
.yt-section>summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:14px 16px;cursor:pointer;list-style:none}
.yt-section>summary::-webkit-details-marker{display:none}
.yt-section>summary::before{content:"\25B8";color:var(--muted);font-size:12px;transition:transform .15s}
.yt-section[open]>summary::before{transform:rotate(90deg)}
.yt-section>summary small{color:var(--muted);font-size:13px}
.yt-section[open]>summary{border-bottom:1px solid var(--line)}
.yt-section>:not(summary){margin:14px 16px}
.yt-section>.form-actions{margin-bottom:16px}
.yt-preview{padding-top:18px;border-top:1px solid var(--line)}
.yt-preview:first-child{padding-top:0;border-top:0}
.yt-preview>small{margin-top:-4px}
.yt-video img{border:1px solid var(--line)}
.yt-video:hover span{text-decoration:none;color:var(--ink)}
.yt-preview-area{margin-top:18px}
.yt-sections{gap:22px}
.yt-page{display:grid;gap:10px}
.yt-page-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px}
.yt-page-head h3{margin:0;font-size:16px;display:flex;align-items:center;gap:8px}
.yt-page>.link-button{justify-self:start}
.yt-page.is-loose{padding-top:16px;border-top:1px dashed var(--line)}
.yt-page>.fine-print{margin:0}

/* The website editor (public/website.js) */
.website-page{max-width:none}
.site-editor-who{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
.site-editor-picker{min-width:min(100%,360px)}
.site-editor-bar{position:sticky;top:0;z-index:5;display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}
.site-editor-bar-left,.site-editor-bar-right{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}
.site-editor-bar select{min-width:180px;width:auto}
.site-editor-device{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--sunken)}
.site-editor-device button{border:0;background:none;color:var(--muted);padding:6px 12px;border-radius:999px;font-size:13px;font-weight:650;min-height:0}
.site-editor-device button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.15)}
.site-editor-status{display:inline-flex;align-items:center;font-size:13px;color:var(--muted)}
.site-editor-stage{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start;margin-top:-6px}
.site-editor-frame{height:calc(100vh - 230px);min-height:520px;border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;background:var(--sunken);display:flex;justify-content:center}
.site-editor-frame iframe{width:100%;height:100%;border:0;background:#fff}
.site-editor-frame.is-phone iframe{width:390px;max-width:100%;border-inline:1px solid var(--line)}
.site-editor-panel{position:sticky;top:76px;max-height:calc(100vh - 230px);min-height:200px;overflow:auto;display:grid;gap:12px;align-content:start;padding:18px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow)}
.site-editor-panel h3{margin:0;font-size:17px}
.site-editor-panel h4{margin:8px 0 0;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.site-editor-panel .fine-print{margin:0}
.site-editor-fields{display:grid;gap:6px}
.site-editor-field{display:grid;gap:2px;text-align:left;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--sunken);color:var(--ink);min-height:0}
.site-editor-field:hover{border-color:var(--line-strong)}
.site-editor-field strong{font-size:14px}
.site-editor-field small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-editor-edit-head{display:flex;justify-content:space-between}
.site-editor-edit>.link-button{justify-self:start}
.site-editor-image{width:100%;max-height:220px;object-fit:contain;border-radius:var(--radius);background:var(--sunken);border:1px solid var(--line)}
.site-editor-image:not([src]){display:none}
.site-editor-items{display:grid;gap:10px}
.site-editor-item{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--sunken)}
.site-editor-item-tools{display:flex;gap:12px}
.site-editor-foot{margin:0}
@media (max-width:980px){
  .site-editor-stage{grid-template-columns:1fr}
  .site-editor-panel{position:static;max-height:none}
  .site-editor-frame{height:70vh;min-height:420px}
}
@media (max-width:980px){
  /* On a phone the portal's own header sits on top, so the bar scrolls with the page, and the size switch goes (it is a phone). */
  .site-editor-bar{position:static}
  .site-editor-device{display:none}
  .site-editor-bar-left,.site-editor-bar-right{width:100%}
  .site-editor-bar select{flex:1}
  .site-editor-bar-right button:last-child{margin-left:auto}
}

/* YouTube sections, the guided way (public/youtube-sections.js) */
.yts{display:grid;gap:18px}
.yts-list{display:grid;gap:26px}
.yts-page{display:grid;gap:10px}
.yts-page-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.yts-page-head h3{margin:0;font-size:16px}
.yts-empty{margin:0}
.yts-card{display:grid;grid-template-columns:minmax(0,180px) minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
.yts-card.is-hidden{opacity:.6}
.yts-strip{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;aspect-ratio:16/9;overflow:hidden;border-radius:calc(var(--radius) / 1.2);background:var(--sunken)}
.yts-strip.is-tall{grid-template-columns:repeat(5,1fr);aspect-ratio:auto;height:100px}
.yts-strip img{width:100%;height:100%;object-fit:cover;display:block}
.yts-strip-empty{grid-column:1/-1;display:grid;place-items:center;font-size:12px;color:var(--muted)}
.yts-card-text{display:grid;gap:4px;min-width:0}
.yts-card-text strong{font-size:15px}
.yts-card-text small{color:var(--muted);font-size:13px}
.yts-card-tools{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;justify-content:flex-end}
.yts-icon{width:34px;height:34px;min-height:0;padding:0;font-size:16px}
.yts-add{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px;border:1.5px dashed var(--line-strong);border-radius:var(--radius-lg);background:none;color:var(--ink);font-weight:650}
.yts-add:hover{background:var(--sunken)}
.yts-add-plus{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ink);color:var(--surface);font-size:16px;line-height:1}
.yts-step{display:grid;gap:18px}
.yts-head{display:grid;gap:6px;justify-items:start}
.yts-head h3{margin:0;font-size:18px}
.yts-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.yts-tile{display:grid;gap:6px;justify-items:start;text-align:left;padding:14px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink);min-height:0}
.yts-tile:hover,.yts-tile.is-on{border-color:var(--ink)}
.yts-tile strong{font-size:14px}
.yts-tile small{font-size:12px;color:var(--muted);line-height:1.4}
.yts-tile-art{width:34px;height:24px;border-radius:5px;background:#e33;position:relative;flex:none}
.yts-tile-art::after{content:"";position:absolute;left:13px;top:7px;border-left:9px solid #fff;border-top:5px solid transparent;border-bottom:5px solid transparent}
.yts-tile-art.is-shorts{width:20px;height:30px}
.yts-tile-art.is-shorts::after{left:7px;top:10px}
.yts-tile-art.is-playlist{background:linear-gradient(#e33 0 0) 0 0/100% 100% no-repeat;box-shadow:4px -4px 0 -1px #f88}
.yts-tile-art.is-live{background:#c22}
.yts-tile-art.is-live::after{content:"LIVE";border:0;left:4px;top:7px;font-size:8px;font-weight:800;color:#fff}
.yts-tile-art.is-videos::after{content:"\2713";border:0;left:12px;top:3px;font-size:14px;font-weight:800;color:#fff}
.yts-what{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius);background:var(--sunken);font-weight:650}
.yts-what .link-button{margin-left:auto}
.yts-styles{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.yts-style{display:grid;gap:4px;justify-items:center;padding:10px 8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);min-height:0}
.yts-style.is-on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.yts-style strong{font-size:13px}
.yts-style small{font-size:11px;color:var(--muted)}
.yts-style-art{display:grid;gap:3px;width:70px;height:44px}
.yts-style-art i{background:var(--line-strong);border-radius:2px}
.yts-style-art.is-grid{grid-template-columns:repeat(3,1fr)}
.yts-style-art.is-tall{grid-template-columns:repeat(4,1fr)}
.yts-style-art.is-wide{grid-template-columns:repeat(2,1fr)}
.yts-style-art.is-player{grid-template-columns:1fr}
.yts-style-art.is-list{grid-template-columns:1fr}
.yts-stepper{display:flex;gap:6px;align-items:center}
.yts-stepper button{width:40px;padding:0;min-height:40px}
.yts-stepper input{width:70px;text-align:center}
.yts-seg{display:inline-flex;flex-wrap:wrap;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--sunken)}
.yts-seg button{border:0;background:none;color:var(--muted);padding:7px 12px;border-radius:999px;font-size:13px;font-weight:650;min-height:0}
.yts-seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.15)}
.yts-more summary{cursor:pointer;font-weight:650;color:var(--muted)}
.yts-more[open]{display:grid;gap:12px}
.yts-pick-list{display:grid;gap:6px;max-height:300px;overflow:auto}
.yts-pick{display:grid;grid-template-columns:80px minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;align-items:center;text-align:left;padding:8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);min-height:0}
.yts-pick img{grid-row:1/3;width:80px;aspect-ratio:16/9;object-fit:cover;border-radius:4px;background:var(--sunken)}
.yts-pick small{color:var(--muted)}
.yts-pick.is-on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.yts-chosen{display:grid;gap:6px}
.yts-chosen-row{display:grid;grid-template-columns:64px minmax(0,1fr) auto auto;gap:10px;align-items:center;font-size:13px}
.yts-chosen-row img{width:64px;aspect-ratio:16/9;object-fit:cover;border-radius:4px}
.yts-chosen-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yts-video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;max-height:360px;overflow:auto;padding:2px}
.yts-video{position:relative;display:grid;gap:4px;text-align:left;padding:0;border:0;background:none;color:var(--ink);font-size:12px;min-height:0}
.yts-video img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:6px;background:var(--sunken);outline:2px solid transparent;outline-offset:2px}
.yts-video span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:600}
.yts-video small{color:var(--muted)}
.yts-video.is-on img{outline-color:var(--ink)}
.yts-video.is-on::after{content:"\2713";position:absolute;top:6px;right:6px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--ink);color:var(--surface);font-weight:800}
.yts-paste{display:flex;gap:8px}
.yts-paste input{flex:1}
@media (max-width:640px){
  .yts-card{grid-template-columns:1fr}
  .yts-card-tools{justify-content:flex-start}
}

/* The website editor, full screen (public/website.js) */
.site-summary{display:grid;gap:14px}
.site-summary-head{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px}
.site-summary-head h2{margin:0 0 6px;font-size:20px}
.site-summary .panel-intro{margin:0}
.site-summary .form-actions>button:first-child{padding-inline:22px}
html.site-editor-open,html.site-editor-open body{overflow:hidden}
.site-editor-full{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--paper);color:var(--ink);display:none;grid-template-rows:auto minmax(0,1fr)}
.site-editor-full[open]{display:grid}
.site-editor-full::backdrop{background:#000}
.site-editor-full .site-editor-bar{position:static;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;padding:8px 14px;gap:8px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.site-editor-full .site-editor-bar-right{justify-content:flex-end}
.site-editor-full .site-editor-bar select{min-width:150px;max-width:220px}
.site-editor-host{font-size:13px;font-weight:650;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.site-editor-done{min-height:36px;padding:0 14px}
.site-editor-full .site-editor-stage{position:relative;display:block;margin:0;min-height:0}
.site-editor-full .site-editor-frame{height:100%;min-height:0;border:0;border-radius:0;background:var(--sunken)}
.site-editor-full .site-editor-frame.is-phone{padding:16px 0}
.site-editor-full .site-editor-frame.is-phone iframe{border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow)}
.site-editor-full .site-editor-panel{position:absolute;top:12px;right:12px;bottom:12px;width:min(400px,calc(100% - 24px));max-height:none;padding:0;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr);box-shadow:0 20px 50px rgba(0,0,0,.35);animation:site-panel-in .18s ease-out}
.site-editor-full .site-editor-panel[hidden]{display:none}
.site-editor-panel-close{justify-self:end;margin:8px 8px 0 0}
.site-editor-panel-body{overflow:auto;display:grid;gap:12px;align-content:start;padding:0 18px 18px}
@keyframes site-panel-in{from{transform:translateX(16px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){.site-editor-full .site-editor-panel{animation:none}}
@media (max-width:980px){
  .site-editor-full .site-editor-bar{grid-template-columns:1fr;position:static}
  .site-editor-full .site-editor-bar-left,.site-editor-full .site-editor-bar-right{width:100%}
  .site-editor-host{display:none}
  /* On a phone the panel is a sheet from the bottom. */
  .site-editor-full .site-editor-panel{top:auto;left:0;right:0;bottom:0;width:100%;height:68dvh;border-radius:18px 18px 0 0;animation-name:site-sheet-in}
  @keyframes site-sheet-in{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
}
/* In a narrow place (the editor's panel), a section card stacks: pictures, then words, then buttons. */
.yts{container-type:inline-size}
@container (max-width:560px){
  .yts-card{grid-template-columns:1fr}
  .yts-card-tools{justify-content:flex-start}
  .yts-strip{grid-template-columns:repeat(4,1fr);aspect-ratio:auto;height:64px}
  .yts-strip.is-tall{height:110px}
}
@media (max-width:980px){
  /* One row on a phone: Done, the page, and Publish. Undo and Discard are on the Website page. */
  .site-editor-full .site-editor-bar{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;padding:8px 10px}
  .site-editor-full .site-editor-bar-left{flex:1;min-width:0;width:auto;flex-wrap:nowrap}
  .site-editor-full .site-editor-bar-left select{min-width:0;flex:1;max-width:none}
  .site-editor-full .site-editor-bar-right{width:auto;flex-wrap:nowrap;gap:8px}
  .site-editor-full .site-editor-bar-right .link-button,.site-editor-full .site-editor-status{display:none}
  .site-editor-full .site-editor-bar-right button:last-child{margin-left:0}
}
/* Pickers keep each item's full height inside their scrolling box (they were squeezed and overlapped). */
.yts-video-grid,.yts-pick-list{grid-auto-rows:max-content}
.yts-video,.yts-pick{min-height:auto}
.yts-seg{flex-wrap:nowrap;max-width:100%;overflow-x:auto}
.yts-seg button{white-space:nowrap}
@container (max-width:560px){
  .yts-step .field-row{grid-template-columns:1fr}
}
.yt-draft-note{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
/* A launched project: the live site first, then updates, versions, and address and hosting. */
.project-releases{display:grid;gap:18px;min-width:0}
.live-site{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:24px 26px;border-radius:var(--radius-lg);border:1px solid var(--success-line);background:linear-gradient(120deg,var(--success-soft),var(--surface) 62%);box-shadow:var(--shadow);min-width:0}
.live-site-copy{display:grid;gap:4px;min-width:0;flex:1 1 320px}
.live-site-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:780;letter-spacing:.14em;text-transform:uppercase;color:var(--success)}
.live-site-eyebrow i{width:8px;height:8px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px color-mix(in srgb,var(--success) 22%,transparent);animation:live-pulse 2.4s ease-in-out infinite}
@keyframes live-pulse{50%{box-shadow:0 0 0 7px color-mix(in srgb,var(--success) 6%,transparent)}}
.live-site h2{font-size:clamp(22px,3.2vw,30px);letter-spacing:-.05em;line-height:1.15;overflow-wrap:anywhere}
.live-site h2.is-long{font-size:17px;letter-spacing:-.02em;word-break:break-all}
.live-site-meta{font-size:13px;color:var(--muted)}
.live-site .fine-print,.live-site .note{margin-top:6px}
.live-site-actions{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap}
.live-site-actions .link-button{padding:6px 2px}
.live-panel{display:grid;gap:14px;padding:22px 24px;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);min-width:0}
.live-panel>h3,.live-panel-head h3{font-size:17px;letter-spacing:-.035em}
.live-panel-head{display:grid;gap:3px}
.live-panel-head>p:not(.eyebrow){font-size:13.5px;color:var(--muted);max-width:62ch}
.live-panel .fine-print{margin:0}
.update-progress{border-left:4px solid var(--info)}
.update-progress[data-tone="you"]{border-left-color:var(--attention);background:linear-gradient(90deg,var(--attention-soft),var(--surface) 50%)}
.mini-track{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0;font-size:12.5px;font-weight:700;color:var(--muted)}
.mini-track li{display:flex;align-items:center;gap:8px}
.mini-track li+li::before{content:"";width:clamp(18px,6vw,56px);height:2px;margin:0 10px;background:var(--line-strong)}
.mini-track li[data-state="done"],.mini-track li[data-state="current"]{color:var(--ink)}
.mini-track li[data-state="done"]+li::before{background:var(--ink)}
.mini-mark{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line-strong);background:var(--surface)}
.mini-mark .icon{width:12px;height:12px;stroke-width:2.6}
.mini-track li[data-state="done"] .mini-mark{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.mini-track li[data-state="current"] .mini-mark{border:2px solid var(--ink);box-shadow:inset 0 0 0 4px var(--surface);background:var(--ink)}
.update-summary{display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:wrap;padding:14px 16px;border-radius:var(--radius);background:var(--sunken);border:1px solid var(--line)}
.update-summary>div{display:grid;gap:2px;min-width:0}
.update-summary strong{font-size:14px;overflow-wrap:anywhere}
.update-summary small{font-size:12px;color:var(--muted)}
.update-compose{border-color:var(--line-strong);scroll-margin-top:16px}
.update-compose .release-form{margin:0}
.version-list{display:grid;border-top:1px solid var(--line)}
.version{border-bottom:1px solid var(--line)}
.version>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px 2px;cursor:pointer}
.version>summary::-webkit-details-marker{display:none}
.version-main{display:grid;gap:1px;min-width:0;flex:1}
.version-main strong{font-size:14px;font-weight:680;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.version-main small{font-size:12px;color:var(--muted)}
.version-chevron{flex:none;width:15px;height:15px;color:var(--faint);transition:transform .25s var(--ease)}
.version[open] .version-chevron,.setting[open] .version-chevron{transform:rotate(90deg)}
.version-body{display:grid;gap:12px;padding:0 2px 16px}
.version-more{justify-self:start;margin-top:8px}
.live-setup{gap:0}
.live-setup>h3{margin-bottom:10px}
.setting{border-top:1px solid var(--line)}
.setting>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px;cursor:pointer}
.setting>summary::-webkit-details-marker{display:none}
.setting>summary>span{display:grid;gap:1px;min-width:0}
.setting>summary strong{font-size:14px}
.setting>summary small{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.setting-body{display:grid;gap:12px;padding:0 2px 18px}
.setting-body:empty{display:none}
@media(max-width:600px){
  .live-site{padding:20px;gap:18px}
  .live-site-actions{width:100%}
  .live-site-actions>button:first-child,.live-site-actions>.button-link:first-child{flex:1 1 100%}
  .live-site-actions>.button-link.secondary{flex:1 1 auto}
  .live-panel{padding:18px}
  .version>summary{flex-wrap:wrap;row-gap:6px}
  .version>summary .badge{order:3;margin-left:0}
  .version-main{flex:1 1 calc(100% - 40px)}
}
@media(prefers-reduced-motion:reduce){.live-site-eyebrow i{animation:none}}

/* The studio's Projects page: filter chips, then groups (your turn, waiting on clients, live). */
.filter-chips{display:flex;gap:8px;flex-wrap:wrap;margin:-4px 0 22px}
.filter-chips[hidden]{display:none}
.filter-chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:7px 14px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);color:var(--text);font-size:13px;font-weight:680}
.filter-chip span{min-width:20px;padding:1px 7px;border-radius:999px;background:var(--sunken);color:var(--muted);font-size:11.5px;font-weight:760;text-align:center}
.filter-chip:hover{border-color:var(--accent)}
.filter-chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.filter-chip[aria-pressed="true"] span{background:color-mix(in srgb,var(--on-ink) 18%,transparent);color:var(--on-ink)}
.project-groups{display:grid;gap:34px;min-width:0}
.project-group{display:grid;gap:14px;min-width:0}
.project-group-head{display:flex;align-items:baseline;gap:6px 14px;flex-wrap:wrap}
.project-group-head h2{display:inline-flex;align-items:center;gap:10px;font-size:18px;letter-spacing:-.04em}
.project-group-count{display:inline-grid;place-items:center;min-width:24px;height:22px;padding:0 7px;border-radius:999px;background:var(--sunken);border:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:760;letter-spacing:0}
.project-group-head p{font-size:13px;color:var(--muted)}
@media(max-width:600px){
  .filter-chips{flex-wrap:nowrap;overflow-x:auto;margin:-4px -16px 18px;padding:0 16px 4px;scrollbar-width:none}
  .filter-chips::-webkit-scrollbar{display:none}
  .filter-chip{flex:none}
  .project-groups{gap:28px}
}
/* A client's own page (Clients → a client): who they are, then Projects, Services, and Account tabs. */
.client-header{align-items:center}
.client-identity{display:flex;align-items:center;gap:18px;min-width:0}
.client-identity>div{min-width:0}
.client-avatar{flex:none;width:64px;height:64px;font-size:26px;border-radius:18px}
.client-facts{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;margin-top:8px;font-size:13.5px;color:var(--muted)}
.client-fact{overflow-wrap:anywhere}
.client-fact+.client-fact::before,.client-facts .badge{margin-left:0}
.client-header-actions{display:flex;gap:10px;flex-wrap:wrap;flex:none}
.client-tab-head{display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:wrap;margin-bottom:14px}
.client-tab-head p{font-size:13.5px;color:var(--muted)}
.client-stack{display:grid;gap:16px;min-width:0}
.client-panel.client-services{border-top:1px solid var(--line);padding:22px 24px}
.client-panel h3{font-size:17px;letter-spacing:-.035em;margin:0 0 4px}
.client-panel .fine-print{margin-top:0}
.client-danger{display:grid;gap:10px;justify-items:start}
.client-row .avatar{flex:none}
@media(max-width:600px){
  .client-header{flex-direction:column;align-items:stretch;gap:18px}
  .client-avatar{width:52px;height:52px;font-size:21px;border-radius:15px}
  .client-identity{align-items:flex-start;gap:14px}
  .client-header-actions>button{flex:1 1 0;justify-content:center}
  .client-panel.client-services,.client-panel{padding:18px}
}

/* Client page, Services and Account: one set of columns for every service row, quieter links, narrower forms. */
.client-panel .service-client-list{max-height:none}
.service-client-actions .link-button{text-decoration-color:transparent}
.service-client-actions .link-button:hover{text-decoration-color:currentColor}
.client-panel>.fine-print,.client-panel>p{max-width:72ch}
.client-panel form.stack{max-width:560px;gap:8px}
.client-panel form.stack>label{margin-top:8px;font-size:13px;font-weight:650;color:var(--ink)}
.client-panel form.stack>.form-actions{margin-top:10px}
.client-panel .client-service-offer{max-width:560px}
@media(min-width:601px){
  .client-services .service-client{grid-template-columns:minmax(0,1fr) 150px minmax(0,1.1fr)}
}

/* A dollar sign inside the left edge of a money field. */
.money-input{position:relative;display:flex;align-items:center}
.money-input input:not([type="checkbox"]):not([type="radio"]):not([type="file"]){width:100%;padding-left:30px}
.money-sign{position:absolute;left:14px;font-weight:650;color:var(--muted);pointer-events:none}

/* Previewing a client's portal from the studio: a bar along the bottom that says whose it is, and Exit. */
body[data-preview="true"]{padding-bottom:84px}
.preview-bar{position:fixed;left:50%;bottom:18px;z-index:1200;display:flex;align-items:center;gap:16px;max-width:calc(100% - 32px);padding:10px 10px 10px 18px;border-radius:999px;background:var(--ink);color:var(--on-ink);box-shadow:0 18px 40px rgba(0,0,0,.28);transform:translateX(-50%);animation:preview-in .5s cubic-bezier(.22,1,.36,1)}
.preview-bar p{display:flex;align-items:center;gap:10px;margin:0;font-size:13.5px;line-height:1.35}
.preview-bar p .icon{flex:none;width:18px;height:18px}
.preview-bar strong{font-weight:760}
.preview-bar button{flex:none;min-height:36px;padding:8px 16px;border-radius:999px;border:0;background:var(--on-ink);color:var(--ink);font-size:13px;font-weight:720}
@keyframes preview-in{from{opacity:0;transform:translate(-50%,16px)}}
@media(max-width:600px){.preview-bar{left:16px;right:16px;bottom:12px;transform:none;border-radius:18px;animation:none}.preview-bar p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.preview-bar{animation:none}}

/* Studio hosting: choosing it for a client, the address field, and a site's addresses. */
.hosting-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 4px}
.hosting-choice{display:grid;gap:4px;text-align:left;padding:14px 16px;border-radius:var(--radius);border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);transition:border-color .2s,box-shadow .2s}
.hosting-choice strong{font-size:14px}
.hosting-choice small{font-size:12.5px;color:var(--muted);line-height:1.45;font-weight:500}
.hosting-choice:hover{border-color:var(--accent)}
.hosting-choice[aria-checked="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.address-input{display:flex;align-items:center;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.address-input:focus-within{border-color:#7f9bb0;box-shadow:0 0 0 3px rgba(127,155,176,.18)}
.address-input input:not([type="checkbox"]):not([type="radio"]):not([type="file"]){flex:1;min-width:0;border:0;box-shadow:none;background:transparent}
.address-input span{flex:none;padding:0 14px 0 2px;color:var(--muted);font-size:14px}
.host-list{display:grid;gap:0;border-top:1px solid var(--line)}
.host-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;border-bottom:1px solid var(--line)}
.host-row>div{display:grid;gap:1px;min-width:0}
.host-row strong{font-size:14px;overflow-wrap:anywhere}
.host-row small{font-size:12px;color:var(--muted)}
.host-help{display:grid;gap:10px;padding:12px 14px;margin:8px 0;border-radius:var(--radius);background:var(--sunken);border:1px solid var(--line)}
.host-help p{font-size:13px}
.host-help .fine-print{margin:0}
.host-add{display:flex;gap:10px;margin-top:12px;max-width:520px}
.host-add input{flex:1;min-width:0}
@media(max-width:600px){.hosting-choices{grid-template-columns:1fr}.host-add{flex-direction:column}}

/* Billing: the card, monthly plans, and invoices. */
.billing-page{display:grid;gap:18px;min-width:0}
.billing-panel{display:grid;gap:14px}
.billing-head h2{font-size:18px;letter-spacing:-.04em}
.billing-head p{margin-top:3px;font-size:13.5px;color:var(--muted);max-width:62ch}
.billing-muted{font-size:14px;color:var(--muted)}
.card-chip{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:var(--radius);border:1px solid var(--line);background:var(--sunken);max-width:420px}
.card-chip>.icon{width:28px;height:28px;flex:none;color:var(--ink)}
.card-chip>div{display:grid;gap:1px}
.card-chip strong{font-size:14.5px}
.card-chip small{font-size:12.5px;color:var(--muted)}
.card-form{display:grid;gap:12px;max-width:520px;padding:16px;border-radius:var(--radius);border:1px solid var(--line-strong);background:var(--surface)}
.card-form .fine-print{margin:0}
.card-element{min-height:120px}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0 2px;border-top:1px solid var(--line);cursor:pointer}
.switch-row>span{display:grid;gap:2px}
.switch-row strong{font-size:14px}
.switch-row small{font-size:12.5px;color:var(--muted)}
.switch-row input{appearance:none;flex:none;position:relative;width:44px;height:26px;margin:0;border-radius:999px;background:var(--line-strong);transition:background .2s;cursor:pointer}
.switch-row input::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .25s var(--ease)}
.switch-row input:checked{background:var(--success)}
.switch-row input:checked::after{transform:translateX(18px)}
.switch-row input:disabled{opacity:.5;cursor:not-allowed}
.switch-row input:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.billing-list{display:grid;border-top:1px solid var(--line)}
.billing-list>.empty{margin:12px 0 0}
.billing-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 16px;padding:13px 2px;border-bottom:1px solid var(--line)}
.billing-row>div:first-child{display:grid;gap:2px;min-width:0}
.billing-row strong{font-size:14px;overflow-wrap:anywhere}
.billing-row small{font-size:12.5px;color:var(--muted)}
.billing-actions{display:flex;align-items:center;gap:14px}
.billing-actions .button-link{min-height:34px;padding:7px 14px;font-size:12.5px}
.billing-actions button{min-height:34px;padding:7px 14px;font-size:12.5px}
.plan-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.plan-form select{flex:1 1 240px}
.plan-form input:not(.money-input input){flex:1 1 160px}
.plan-form .money-input{flex:0 1 160px}
@media(max-width:600px){
  .billing-row{grid-template-columns:minmax(0,1fr) auto}
  .billing-row>.billing-actions,.billing-row>.link-button{grid-column:1/-1;justify-self:start}
  .plan-form{flex-direction:column;align-items:stretch}
  .plan-form>*{flex:none!important}
}

/* The portal's own sign-in screen. */
body[data-signed-out="true"] .workspace-shell{display:none}
.sign-in{margin:0;min-height:100vh;min-height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:32px 16px;background:var(--paper)}
.sign-in-card{box-sizing:border-box;width:100%;max-width:420px;display:grid;gap:14px;padding:32px 28px;border-radius:var(--radius-lg);border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-lift)}
.sign-in-brand{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-weight:760;letter-spacing:-.04em;font-size:17px;color:var(--ink)}
.sign-in-brand img{border-radius:11px}
.sign-in h1{font-size:26px;letter-spacing:-.05em;line-height:1.15}
.sign-in-lead{color:var(--muted);font-size:14.5px}
.sign-in-form{display:grid;gap:10px;margin-top:6px}
.sign-in-form button[type="submit"]{min-height:46px}
.sign-in-code{font-size:24px;letter-spacing:.35em;text-align:center;font-variant-numeric:tabular-nums}
.sign-in-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sign-in-status{min-height:1.4em;font-size:13.5px;color:var(--muted)}
.sign-in-status.is-error{color:var(--danger)}
.sign-in-foot{text-align:center;font-size:12px;color:var(--faint)}

/* Face ID / passkey sign-in. */
.sign-in-or{display:flex;align-items:center;gap:12px;color:var(--faint);font-size:12px;margin:4px 0}
.sign-in-or::before,.sign-in-or::after{content:"";flex:1;height:1px;background:var(--line)}
.sign-in-face{min-height:46px;font-size:14px}
.sign-in-form button .icon{width:20px;height:20px}
.passkey-list{display:grid;gap:8px;margin-bottom:16px}
.passkey-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px}
.passkey-row>div{display:grid;flex:1;min-width:0}
.passkey-row small{color:var(--muted);font-size:12px}
.face-offer{position:fixed;z-index:60;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(460px,calc(100vw - 32px));display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lift);animation:face-offer-in .35s var(--ease)}
.face-offer>.icon{width:26px;height:26px;flex:none}
.face-offer>div:not(.face-offer-actions){display:grid;flex:1;min-width:0}
.face-offer strong{font-size:14px}
.face-offer small{font-size:12.5px;color:var(--muted)}
.face-offer-actions{display:flex;align-items:center;gap:10px;flex:none}
.face-offer.is-leaving{opacity:0;transform:translate(-50%,10px);transition:opacity .25s,transform .25s}
@keyframes face-offer-in{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translateX(-50%)}}
@media (max-width:420px){.face-offer{flex-wrap:wrap}.face-offer-actions{width:100%;justify-content:flex-end}}

/* Phones zoom into any field with text smaller than 16px; keep fields at 16px on touch screens. */
@media (pointer:coarse){
  input:not([type="checkbox"]):not([type="radio"]):not(.sign-in-code),textarea,select{font-size:16px!important}
}
.invoice-delete{color:var(--muted)}
.invoice-delete:hover{color:var(--danger)}

/* ==========================================================================
   The dashboard look (2026-11-03). Inspired by a dark "bento" dashboard Adam picked, in the studio's colors:
   charcoal panels on a deeper canvas, an airy sidebar card, a top bar (search, notifications, you), widgets with
   small icon titles, folder tabs fused to their panel, pill rows that end in big round highlight arrows, one
   bright highlight card, and a column of people. --hl is the brand's blue, brightened so it glows.
   ========================================================================== */
@font-face{font-family:"Poppins";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins-400.woff2) format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins-500.woff2) format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins-600.woff2) format("woff2")}
:root{
  --font:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --paper:#e8eaed;--surface:#fff;--sunken:#f1f2f4;--hover:#eaecef;--raised:#f6f7f8;
  --ink:#16181b;--text:#3a3f45;--muted:#686e75;--faint:#9097a0;
  --line:#e2e4e7;--line-strong:#cdd1d6;
  --hl:#8a9faf;--hl-ink:#14202e;--hl-soft:#e6edf1;--hl-strong:#4f6b7e;--hl-glow:rgba(138,159,175,.22);
  --radius:16px;--radius-lg:28px;
  --shadow:0 1px 2px rgba(16,18,20,.04),0 10px 30px rgba(16,18,20,.06);
  --shadow-lift:0 2px 6px rgba(16,18,20,.06),0 22px 48px rgba(16,18,20,.12);
  --sidebar:264px;
  font-family:var(--font);
}
:root[data-theme="dark"]{
  --paper:#111214;--surface:#1b1d20;--sunken:#24272b;--hover:#2b2e33;--raised:#212428;
  --ink:#f3f4f5;--text:#cdd1d6;--muted:#9da3aa;--faint:#6e747b;
  --line:#272a2e;--line-strong:#363a40;
  --hl:#8fa7b6;--hl-ink:#0f161e;--hl-soft:rgba(143,167,182,.13);--hl-strong:#a9c0cf;--hl-glow:rgba(143,167,182,.16);
  --on-ink:#111214;--ink-hover:#ffffff;--nav:#b9bec4;--nav-icon:#9da3aa;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 12px 30px rgba(0,0,0,.28);
  --shadow-lift:0 2px 6px rgba(0,0,0,.45),0 24px 50px rgba(0,0,0,.5);
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#111214;--surface:#1b1d20;--sunken:#24272b;--hover:#2b2e33;--raised:#212428;
  --ink:#f3f4f5;--text:#cdd1d6;--muted:#9da3aa;--faint:#6e747b;
  --line:#272a2e;--line-strong:#363a40;
  --hl:#8fa7b6;--hl-ink:#0f161e;--hl-soft:rgba(143,167,182,.13);--hl-strong:#a9c0cf;--hl-glow:rgba(143,167,182,.16);
  --on-ink:#111214;--ink-hover:#ffffff;--nav:#b9bec4;--nav-icon:#9da3aa;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 12px 30px rgba(0,0,0,.28);
  --shadow-lift:0 2px 6px rgba(0,0,0,.45),0 24px 50px rgba(0,0,0,.5);
}}
body{font-family:var(--font);font-size:14.5px;letter-spacing:0}
h1,h2,h3,h4{font-weight:500;letter-spacing:-.01em}
strong,b{font-weight:600}
/* Labels in sentence case, quiet, instead of tiny spaced capitals. */
.eyebrow{font-size:12.5px;font-weight:500;letter-spacing:0;text-transform:lowercase;color:var(--muted)}
.eyebrow::first-letter{text-transform:uppercase}
p.eyebrow,span.eyebrow{display:block}
.eyebrow.keep-case{text-transform:none}

/* ---------- Sidebar: a dark card, big airy items, the open page in the highlight with a dot and a notch ---------- */
@media(min-width:901px){
  .sidebar{inset:16px auto 16px 16px;width:var(--sidebar);border-radius:32px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);padding:30px 18px 22px;gap:34px}
  main{margin-left:calc(var(--sidebar) + 16px)}
}
.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 6px 0 10px}
.sidebar-top .brand-copy small{display:none}
.theme-toggle{display:grid;place-items:center;width:38px;height:38px;flex:none;border:0;border-radius:50%;background:transparent;color:var(--hl-strong);transition:background .2s,transform .35s var(--ease)}
.theme-toggle:hover{background:var(--sunken);transform:rotate(-18deg)}
.theme-toggle .icon{width:20px;height:20px}
.sidebar-nav{gap:6px}
.sidebar-nav a{position:relative;gap:16px;padding:13px 16px;border-radius:16px;font-size:15.5px;font-weight:400;color:var(--nav);background:none!important;box-shadow:none!important}
.sidebar-nav a .icon{width:21px;height:21px;stroke-width:1.6}
.sidebar-nav a:hover{color:var(--ink)}
.sidebar-nav a:hover .icon{color:var(--ink)}
.sidebar-nav a.active{color:var(--hl);font-weight:500}
.sidebar-nav a.active .icon{color:var(--hl)}
.sidebar-nav a.active::before{content:"";position:absolute;left:-19px;top:50%;width:9px;height:26px;margin-top:-13px;border-radius:0 14px 14px 0;background:var(--hl);box-shadow:0 0 18px var(--hl-glow)}
.sidebar-nav a.active::after{content:"";position:absolute;left:2px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:var(--hl)}
.nav-separator{margin:6px 16px;border:0;border-top:1px solid var(--line)}
.nav-sub a{font-size:14px;padding:10px 14px}
.sidebar-foot{gap:4px}
.sidebar-foot .help-card{display:none}
.sidebar-nav-foot{display:grid;gap:4px}
.sidebar .account{display:none}

/* ---------- Top bar: round search and bell, and you ---------- */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 0 6px}
.topbar-hello{display:grid;gap:1px;min-width:0}
.topbar-hello strong{font-size:17px;font-weight:500;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-hello small{font-size:12.5px;color:var(--muted)}
.topbar-actions{display:flex;align-items:center;gap:12px}
.round-button{position:relative;display:grid;place-items:center;width:52px;height:52px;flex:none;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--hl-strong);box-shadow:var(--shadow);transition:background .2s,transform .2s var(--ease),border-color .2s}
.round-button:hover{background:var(--raised);border-color:var(--line-strong)}
.round-button:active{transform:scale(.95)}
.round-button .icon{width:21px;height:21px;stroke-width:2}
.bell-count{position:absolute;top:10px;right:10px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#e5484d;color:#fff;font-size:10px;font-weight:600;line-height:1;box-shadow:0 0 0 2px var(--surface)}
.user-chip{display:flex;align-items:center;gap:12px;padding:6px 16px 6px 6px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);text-align:left;transition:background .2s,border-color .2s}
.user-chip:hover{background:var(--raised);border-color:var(--line-strong)}
.user-chip .account-avatar{width:40px;height:40px;font-size:15px;background:var(--hl);color:var(--hl-ink)}
.user-chip .account-copy strong{font-size:14px;font-weight:500}
.user-chip .account-copy small{font-size:12px}
.user-chip>.icon{color:var(--muted);transform:rotate(90deg);transition:transform .25s var(--ease)}
.user-chip[aria-expanded="true"]>.icon{transform:rotate(-90deg)}
.pop-wrap{position:relative}
.pop{position:absolute;right:0;top:calc(100% + 10px);z-index:50;width:min(360px,calc(100vw - 32px));padding:10px;border-radius:24px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow-lift);transform-origin:top right;animation:pop-in .22s var(--ease)}
.pop.is-closing{animation:pop-out .16s ease forwards}
@keyframes pop-in{from{opacity:0;transform:translateY(-6px) scale(.97)}}
@keyframes pop-out{to{opacity:0;transform:translateY(-4px) scale(.98)}}
.pop-title{padding:8px 12px 10px;font-size:13px;font-weight:500;color:var(--muted)}
.pop-item{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:16px;background:none;color:var(--ink);font:inherit;font-size:14px;text-align:left;text-decoration:none;cursor:pointer}
.pop-item:hover{background:var(--sunken)}
.pop-item .icon{color:var(--muted)}
.pop-item small{display:block;font-size:12px;color:var(--muted)}
.pop-item>span{flex:1;min-width:0}
.pop-empty{padding:14px 12px 16px;font-size:13.5px;color:var(--muted)}
.pop hr{margin:6px 8px;border:0;border-top:1px solid var(--line)}
.search-dialog .dialog-body{padding-top:6px}
.search-field{display:flex;align-items:center;gap:10px;padding:4px 6px 4px 16px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface)}
.search-field input{border:0!important;box-shadow:none!important;background:transparent!important;padding:12px 4px!important}
.search-field .icon{color:var(--muted)}
.search-results{display:grid;gap:2px;max-height:min(420px,60vh);overflow:auto;margin-top:10px}

/* ---------- Pages: headings sized like a dashboard, not a poster ---------- */
.page-header{padding:22px 0 22px;align-items:center}
.page-header h1{font-size:30px;font-weight:500;letter-spacing:-.02em;line-height:1.15;margin-top:2px}
.page-header-hero h1{font-size:34px;letter-spacing:-.02em}
.page-header h1 .dot{display:none}
.lead{font-size:14px;margin-top:6px}
.panel{border-radius:var(--radius-lg);padding:24px;border-color:var(--line)}
.panel-head h2{font-size:19px;font-weight:500;letter-spacing:-.01em}
.stat{border-radius:24px}
.stat strong{font-weight:500;letter-spacing:-.02em}
.list-boxed{border-radius:var(--radius-lg)}
.avatar,.account-avatar{border-radius:50%}
:where(button:not([class]),button.secondary,button.danger:not(.link-button)){border-radius:999px;padding:11px 22px;font-weight:500;font-size:13.5px}
button:not([class]){background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
.icon-button{border-radius:50%}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),textarea,select{border-radius:16px}
input:not([type="checkbox"]):not([type="radio"]):focus,textarea:focus,select:focus{border-color:var(--hl);box-shadow:0 0 0 3px var(--hl-glow)}
.badge{font-weight:500}
.text-link{color:var(--hl-strong);font-weight:500}
.tab{font-weight:500}
.tab[aria-selected="true"]{color:var(--ink)}
.tab-line{background:var(--hl);height:3px}

/* ---------- Widgets ---------- */
.widget{position:relative;min-width:0;display:flex;flex-direction:column;gap:16px;padding:22px 24px;border-radius:var(--radius-lg);background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden}
.widget.glow::before{content:"";position:absolute;inset:auto -10% -40% 30%;height:80%;background:radial-gradient(closest-side,var(--hl-glow),transparent);pointer-events:none}
.widget>*{position:relative}
.widget-head{display:flex;align-items:center;gap:12px;min-height:40px}
.widget-head>.widget-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;border:1.5px solid var(--line-strong);color:var(--ink)}
.widget-head>.widget-icon .icon{width:19px;height:19px}
.widget-head h2,.widget-head h3{flex:1;min-width:0;font-size:19px;font-weight:400;letter-spacing:-.005em;color:var(--ink)}
.view-all{display:inline-flex;align-items:center;gap:8px;padding:6px 4px;border:0;background:none;color:var(--text);font:inherit;font-size:14px;text-decoration:none;white-space:nowrap;cursor:pointer}
.view-all .icon{transition:transform .2s var(--ease)}
.view-all:hover{color:var(--ink)}
.view-all:hover .icon{transform:translateX(3px)}

/* Folder tabs: the chosen tab is the top of the panel below it. */
.folder{display:flex;flex-direction:column;min-width:0}
.folder-tabs{display:flex;align-items:flex-end;gap:2px;overflow-x:auto;scrollbar-width:none}
.folder-tabs::-webkit-scrollbar{display:none}
.folder-tab{position:relative;padding:16px 26px 14px;border:0;border-radius:24px 24px 0 0;background:transparent;color:var(--text);font:inherit;font-size:16px;font-weight:500;white-space:nowrap;cursor:pointer;transition:color .2s,background .2s}
.folder-tab:hover{color:var(--ink)}
.folder-tab[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 -1px 0 var(--line),1px 0 0 var(--line),-1px 0 0 var(--line)}
.folder-tab[aria-selected="true"]::after{content:"";position:absolute;right:-24px;bottom:0;width:24px;height:24px;background:radial-gradient(circle at 100% 0,transparent 23px,var(--surface) 24px)}
.folder-tab:first-child[aria-selected="true"]::before{content:none}
.folder-tab:not(:first-child)[aria-selected="true"]::before{content:"";position:absolute;left:-24px;bottom:0;width:24px;height:24px;background:radial-gradient(circle at 0 0,transparent 23px,var(--surface) 24px)}
.folder-tabs .view-all{margin-left:auto;padding:14px 8px 14px 16px}
.folder-body{border-radius:0 var(--radius-lg) var(--radius-lg) var(--radius-lg);background:var(--surface);border:1px solid var(--line);border-top:0;box-shadow:var(--shadow);padding:10px 12px 14px;min-width:0}
.folder-body.is-not-first{border-top-left-radius:var(--radius-lg)}
.folder-cols{display:grid;align-items:center;gap:12px;padding:12px 18px 10px;font-size:13.5px;font-weight:500;color:var(--muted)}

/* Pill rows: each ends in a big round arrow; the lit one is filled with the highlight. */
.pill-list{display:grid;gap:8px}
.pill-row{display:grid;align-items:center;gap:12px;min-height:68px;padding:8px 8px 8px 12px;border-radius:999px;background:var(--raised);border:1px solid transparent;color:var(--ink);text-align:left;font:inherit;width:100%;cursor:pointer;transition:background .2s,border-color .2s,transform .2s var(--ease)}
.pill-row:hover{background:var(--hover)}
.pill-row:active{transform:scale(.995)}
.pill-row .cell{min-width:0;font-size:14px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pill-row .cell-num{font-size:17px;color:var(--ink);font-variant-numeric:tabular-nums}
.pill-row .who{display:flex;align-items:center;gap:12px;min-width:0}
.pill-row .who-text{display:grid;min-width:0}
.pill-row .who-text strong{font-size:14.5px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pill-row .who-text small{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.face{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:50%;font-size:15px;font-weight:600;color:#fff;background:linear-gradient(145deg,#5b7486,#2f4352);box-shadow:inset 0 0 0 2px rgba(255,255,255,.08)}
.face[data-tone="1"]{background:linear-gradient(145deg,#5d7d68,#334a3b)}
.face[data-tone="2"]{background:linear-gradient(145deg,#80694c,#4d3e2a)}
.face[data-tone="3"]{background:linear-gradient(145deg,#6b5f8c,#41395c)}
.face[data-tone="4"]{background:linear-gradient(145deg,#3f7ea3,#24506b)}
.face[data-tone="5"]{background:linear-gradient(145deg,#8a5a5a,#583434)}
.go{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:50%;background:var(--hl);color:var(--hl-ink);box-shadow:0 0 0 0 var(--hl-glow);transition:transform .25s var(--ease),box-shadow .25s}
.go .icon{width:22px;height:22px;stroke-width:1.9}
.pill-row:hover .go,.go:hover{transform:translateX(2px);box-shadow:0 0 0 6px var(--hl-glow)}
.pill-row.is-lit{background:var(--hl);color:var(--hl-ink)}
.pill-row.is-lit .cell,.pill-row.is-lit .who-text small,.pill-row.is-lit .cell-num{color:var(--hl-ink)}
.pill-row.is-lit .go{background:var(--hl-ink);color:var(--hl)}
.pill-row.is-lit .badge{background:rgba(8,19,32,.12);border-color:transparent;color:var(--hl-ink)}
.status-text{display:inline-flex;align-items:center;gap:7px;font-size:14px}
.status-text i{width:8px;height:8px;border-radius:50%;background:var(--faint)}
.status-text[data-tone="you"] i{background:var(--hl)}
.status-text[data-tone="wait"] i{background:#e5a13c}
.status-text[data-tone="done"] i{background:#45b07c}
.pill-row.is-lit .status-text i{background:var(--hl-ink)}

/* The one bright card. */
.hl-card{position:relative;display:grid;gap:12px;padding:24px 26px;border-radius:26px;background:var(--hl);color:var(--hl-ink);overflow:hidden}
.hl-card::after{content:"";position:absolute;right:-60px;top:-60px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.18);pointer-events:none}
.hl-card>*{position:relative;z-index:1}
.hl-card small{font-size:13px;font-weight:500;opacity:.8}
.hl-card h3{font-size:21px;font-weight:600;letter-spacing:-.015em;color:var(--hl-ink)}
.hl-card p{font-size:14px;line-height:1.55}
.hl-card .hl-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:4px}
.hl-card .hl-button{display:inline-flex;align-items:center;gap:8px;padding:13px 22px;border:0;border-radius:999px;background:#0b0c0e;color:#f3f4f5;font:inherit;font-size:14px;font-weight:500;cursor:pointer;transition:transform .2s var(--ease)}
.hl-card .hl-button:hover{transform:translateY(-1px)}
/* A sentence strip, like "This patient is diagnosed with…" */
.strip{padding:18px 24px;border-radius:26px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);text-align:center;font-size:15px;line-height:1.6;color:var(--text)}
.strip strong{color:var(--hl-strong);font-weight:600}
.strip .warn{color:#e5484d;font-weight:600}
/* People: avatar pills down a little timeline. */
.people{position:relative;display:grid;gap:12px;padding-left:28px}
.people::before{content:"";position:absolute;left:8px;top:30px;bottom:30px;width:1px;background:var(--line-strong)}
.person{position:relative;display:flex;align-items:center;gap:14px;padding:10px 22px 10px 10px;border-radius:999px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);color:var(--ink);font:inherit;text-align:left;width:100%;cursor:pointer;transition:background .2s,transform .2s var(--ease)}
.person:hover{background:var(--raised);transform:translateX(2px)}
.people .person::before{content:"";position:absolute;left:-24px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:var(--line-strong)}
.people .person:first-child::before{background:var(--hl);box-shadow:0 0 0 4px var(--hl-glow)}
.person .face{width:56px;height:56px}
.person-text{display:grid;flex:1;min-width:0}
.person-text strong{font-size:15px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person-text small{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.person>.icon{color:var(--text);width:20px;height:20px}
/* A profile card (the doctor card). */
.profile{display:flex;align-items:center;gap:20px}
.profile-pic{width:112px;height:112px;flex:none;border-radius:50%;object-fit:cover;background:var(--sunken)}
.profile .face.profile-pic{font-size:30px}
.profile-text{display:grid;gap:3px;min-width:0}
.profile-text .tag{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--hl-strong)}
.profile-text .tag::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--hl)}
.profile-text strong{font-size:21px;font-weight:400;letter-spacing:-.01em}
.profile-text small{font-size:13.5px;color:var(--muted)}
/* Mini lists (reports): numbered, with a round arrow. */
.mini-list{display:grid;gap:8px}
.mini-row{display:flex;align-items:center;gap:12px;padding:7px 7px 7px 14px;border-radius:999px;background:var(--raised);color:var(--ink);font:inherit;font-size:14px;text-align:left;width:100%;border:0;cursor:pointer;transition:background .2s}
.mini-row:hover{background:var(--hover)}
.mini-row .n{color:var(--muted);width:18px}
.mini-row .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini-row .m{color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
.mini-row .go{width:38px;height:38px}
.mini-row .go .icon{width:18px;height:18px}
/* Calendar */
.cal{padding:14px;border-radius:22px;background:var(--sunken)}
.cal-head{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:10px;font-size:13.5px;font-weight:500}
.cal-head button{display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:50%;background:var(--surface);color:var(--muted);cursor:pointer}
.cal-head button .icon{width:14px;height:14px}
.cal-head button:first-child .icon{transform:rotate(180deg)}
.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.cal-grid .dow{font-size:10.5px;color:var(--muted);padding:4px 0}
.cal-grid .d{position:relative;display:grid;place-items:center;height:30px;border-radius:50%;font-size:12px;color:var(--text);font-variant-numeric:tabular-nums}
.cal-grid .d.out{color:var(--faint);opacity:.6}
.cal-grid .d.today{background:var(--hl);color:var(--hl-ink);font-weight:600}
.cal-grid .d.mark::after{content:"";position:absolute;bottom:2px;width:4px;height:4px;border-radius:50%;background:var(--hl)}
.cal-grid .d.today.mark::after{background:var(--hl-ink)}

/* ---------- Bento layouts ---------- */
.bento{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:22px;align-items:start;padding-bottom:24px}
.bento-main,.bento-side{display:grid;gap:22px;min-width:0;align-content:start}
.bento-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.home-dashboard .page-header{display:none}
@media(max-width:1200px){.bento{grid-template-columns:1fr}.bento-side{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}}
@media(max-width:900px){
  .sidebar{inset:76px 12px 12px auto;border-radius:28px;border:1px solid var(--line);background:var(--surface)}
  .topbar{padding:16px 0 4px}
  .topbar-hello{display:none}
  .topbar-actions{width:100%;justify-content:flex-end}
  .user-chip .account-copy{display:none}
  .user-chip{padding:6px}
  .user-chip>.icon{display:none}
  .round-button{width:46px;height:46px}
  .bento-pair{grid-template-columns:1fr}
  .bento-side{grid-template-columns:1fr}
  .folder-tab{padding:13px 18px 12px;font-size:14.5px}
  .pill-row{border-radius:26px}
  .profile-pic{width:84px;height:84px}
}
@media(prefers-reduced-motion:reduce){.pop,.pop.is-closing{animation:none}.go,.person,.pill-row,.theme-toggle{transition:none}}
/* Column layouts for the folder tables (the header row and each pill row share them). */
.cols-projects{grid-template-columns:minmax(0,2.3fr) minmax(0,1fr) minmax(0,1.7fr) 52px}
.cols-clients{grid-template-columns:minmax(0,2.6fr) minmax(0,.8fr) minmax(0,.8fr) 52px}
.cols-invoices{grid-template-columns:minmax(0,2.4fr) minmax(0,1fr) minmax(0,1fr) 52px}
.folder-cols.cols-projects,.folder-cols.cols-clients,.folder-cols.cols-invoices{padding-left:72px}
.side-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.side-actions button{min-height:52px}
.side-label{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 0 6px;font-size:15px;font-weight:500;color:var(--ink)}
#overview-priority-list{display:grid;gap:12px}
@media(max-width:700px){
  .cols-projects,.cols-clients,.cols-invoices{grid-template-columns:minmax(0,1fr) 52px}
  .pill-row .cell,.folder-cols{display:none}
}
/* Wide screens: the dashboard uses the room. */
.main-content{width:min(1480px,100%);padding:0 clamp(20px,2.6vw,40px)}
/* Phones: one column in order of what matters (the sentence, what needs you, then the lists). */
@media(max-width:900px){
  .home-dashboard .bento{display:flex;flex-direction:column;padding-top:18px}
  .home-dashboard .bento-main,.home-dashboard .bento-side{display:contents}
  .home-dashboard .strip{order:1}
  .home-dashboard .bento-side>.widget{order:2}
  .home-dashboard .folder{order:3}
  .home-dashboard .side-actions{order:4}
  .home-dashboard .bento-main>.widget{order:5}
  .home-dashboard .bento-pair{order:6}
  .home-dashboard .side-label{order:7}
  .home-dashboard .people{order:8}
}
/* Client home */
.cols-client{grid-template-columns:minmax(0,1fr) auto 52px}
.widget-text{font-size:14px;line-height:1.6;color:var(--text)}
a.person{text-decoration:none}
.folder-body .journey{display:grid;grid-template-columns:1fr;gap:8px;margin:0;padding:6px 0 0;list-style:none}
.folder-body .journey-step{display:grid;grid-template-columns:minmax(0,220px) minmax(0,1fr) auto;align-items:center;gap:6px 18px;padding:14px 10px 14px 22px;border-radius:30px;background:var(--raised);border:0;box-shadow:none}
.folder-body .journey-step header{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.folder-body .journey-step header strong{font-size:15.5px;font-weight:500}
.folder-body .journey-step p{font-size:13.5px;color:var(--text);margin:0}
.folder-body .journey-step>a{display:inline-flex;align-items:center;gap:6px;padding:12px 18px;border-radius:999px;background:var(--hl);color:var(--hl-ink);font-size:13.5px;font-weight:500;white-space:nowrap}
.folder-body .journey-step>a .icon{width:14px;height:14px}
.site-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;align-items:center}
.site-shot{position:relative;aspect-ratio:16/10;border-radius:20px;overflow:hidden;background:linear-gradient(145deg,#33485a,#1c2833);display:grid;place-items:center}
.site-shot img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;opacity:0;transition:opacity .4s}
.site-shot.has-shot img{opacity:1}
.site-shot-mark{font-size:44px;font-weight:600;color:rgba(255,255,255,.85)}
.site-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.secondary-link{display:inline-flex;align-items:center;gap:6px;padding:11px 20px;border-radius:999px;border:1px solid var(--line-strong);color:var(--ink);font-size:13.5px;font-weight:500}
.secondary-link:hover{background:var(--sunken)}
.home-dashboard #client-actions-needed:not(:empty){margin-bottom:22px}
@media(max-width:900px){
  .folder-body .journey-step{grid-template-columns:1fr;border-radius:24px}
  .site-card{grid-template-columns:1fr}
}
.site-card .profile-text strong{font-size:19px;overflow-wrap:anywhere}
/* Lists everywhere: rows float as rounded pills, and their arrow is a round highlight button. */
.list-boxed{display:grid;gap:8px;background:transparent;border:0;box-shadow:none;overflow:visible}
.list-boxed>.row-button,.list-boxed>.row{border-radius:28px;background:var(--surface);border:1px solid var(--line)!important;box-shadow:var(--shadow);padding:12px 12px 12px 22px}
.list-boxed>.row-button:hover{background:var(--raised)}
.list>.row-button{border-radius:24px;border-top:0;padding:12px 10px 12px 16px}
.list>.row-button+.row-button{margin-top:6px}
.row-button:hover{background:var(--raised)}
.row-button .icon-trailing{box-sizing:content-box;width:18px;height:18px;padding:12px;margin-left:6px;border-radius:50%;background:var(--hl);color:var(--hl-ink);stroke-width:2;transition:transform .25s var(--ease),box-shadow .25s}
.row-button:hover .icon-trailing{transform:translateX(2px);box-shadow:0 0 0 6px var(--hl-glow)}
.avatar{width:46px;height:46px}
.project-card{border-radius:var(--radius-lg)}
.toolbar .search input,label.search input{border-radius:999px}
.list-boxed .avatar{background:linear-gradient(145deg,#5b7486,#2f4352);color:#fff}
@media(max-width:900px){
  .home-dashboard .bento{align-items:stretch}
  .home-dashboard .bento-side>.widget~.widget{order:4}
}

/* ---------- Phones: one top bar. The bell and avatar sit in the phone bar beside the menu button. ---------- */
.phone-only{display:none}
@media(max-width:900px){
  .topbar{position:fixed;top:0;right:62px;z-index:46;height:64px;padding:0;gap:0}
  .topbar-actions{width:auto;gap:8px}
  #search-open{display:none}
  .phone-only{display:flex}
  .topbar .round-button{width:40px;height:40px;box-shadow:none;background:transparent}
  .topbar .round-button .icon{width:20px;height:20px}
  .bell-count{top:4px;right:3px}
  .topbar .user-chip{padding:3px;border-color:transparent;background:transparent;box-shadow:none}
  .topbar .user-chip .account-avatar{width:34px;height:34px;font-size:13px}
  .topbar .pop-wrap{position:static}
  .topbar .pop{position:fixed;top:68px;left:12px;right:12px;width:auto}
  .mobile-bar .brand-copy small{font-size:7px}
  .main-content>[data-section]:first-of-type,.main-content>.topbar+*{margin-top:0}
}
@media(max-width:380px){.mobile-bar .brand-copy{display:none}}
/* One-column phone grids must be allowed to shrink, or a long title pushes a card off the screen. */
@media(max-width:1200px){.bento-side{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}}
@media(max-width:900px){
  .bento-pair,.bento-side{grid-template-columns:minmax(0,1fr)}
  .widget,.folder,.folder-body{min-width:0;max-width:100%}
}
.mini-row{min-width:0}
.mini-row .t{flex:1 1 0}
.mini-row .m,.mini-row .go{flex:none}
.pill-row .who,.pill-row .who-text,.person-text{min-width:0}
@media(max-width:700px){
  .folder-tab{padding:12px 15px 11px;font-size:14px}
  .folder-tabs .view-all{font-size:0;gap:0;padding:12px 10px}
  .folder-tabs .view-all .icon{width:20px;height:20px}
}
/* Phones: a row with several parts wraps (text on top, the rest below) instead of squeezing the text to a sliver. */
@media(max-width:700px){
  .list-boxed>.row{flex-wrap:wrap;border-radius:24px}
  .list-boxed>.row>.row-main{flex:1 1 100%}
  .list-boxed>.row>.row-actions{justify-content:flex-start}
}
/* Notifications: dismiss one, or clear them all. */
.pop-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-right:6px}
.pop-clear{border:0;background:none;color:var(--hl-strong);font:inherit;font-size:13px;font-weight:500;cursor:pointer;padding:6px 8px;border-radius:999px}
.pop-clear:hover{background:var(--sunken)}
.pop-row{position:relative;display:flex;align-items:center;gap:2px;border-radius:16px}
.pop-row .pop-item{flex:1;min-width:0}
.pop-row.is-new .pop-item>span::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--hl);vertical-align:1px}
.pop-dismiss{display:grid;place-items:center;flex:none;width:32px;height:32px;margin-right:4px;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
.pop-dismiss:hover{background:var(--sunken);color:var(--ink)}
.pop-dismiss .icon{width:15px;height:15px}
/* Folder tabs: leave room so the chosen tab's edge and curves aren't clipped. */
.folder-tabs{padding:2px 2px 0;margin:-2px -2px 0}
.folder-tab:first-child{margin-left:0}
/* Calendar days stay round at any width. */
.cal-grid .d{width:32px;height:32px;margin:0 auto;aspect-ratio:1}
@media(max-width:380px){.cal-grid .d{width:28px;height:28px}}
/* Names get the room: a long one wraps to two lines instead of being cut off. */
@media(min-width:701px){
  .cols-projects{grid-template-columns:minmax(0,3fr) minmax(0,1fr) minmax(0,1.5fr) 52px}
  .cols-invoices{grid-template-columns:minmax(0,3fr) minmax(0,1fr) minmax(0,1fr) 52px}
}
.pill-row .who-text strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.3}
.pill-row .who-text small{white-space:normal;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.folder-tabs{padding:2px 0 0;margin:-2px 0 0}
/* Switching folder tabs: the rows slide in one after another, and the tab's fill eases over. */
.folder-tab{transition:color .25s,background .3s var(--ease)}

@media(max-width:900px){.topbar .round-button{border-color:transparent}.bell-count{top:3px;right:2px}}
/* The chosen folder tab is one sliding shape, drawn by folderThumb() in ui.js. It sets --curve (the shape's left curve)
   and --fold-corner (the panel's top-left corner) as it moves, so both shrink to nothing on the first tab. */
.folder-tabs.has-thumb{position:relative;isolation:isolate;overflow:visible}
.folder-tabs.has-thumb .folder-tab{z-index:1;background:transparent!important;box-shadow:none!important}
.folder-tabs.has-thumb .folder-tab::before,.folder-tabs.has-thumb .folder-tab::after{content:none!important}
.folder-tabs.has-thumb ~ .folder-body,.folder-tabs.has-thumb ~ .folder-body.is-not-first{border-top-left-radius:var(--fold-corner,0)}
.folder-thumb{position:absolute;left:0;bottom:0;top:2px;z-index:0;border-radius:24px 24px 0 0;background:var(--surface);box-shadow:0 -1px 0 var(--line),1px 0 0 var(--line),-1px 0 0 var(--line);will-change:transform,width;backface-visibility:hidden;pointer-events:none}
.folder-thumb::before,.folder-thumb::after{content:"";position:absolute;bottom:0}
.folder-thumb::before{--c:var(--curve,0px);left:calc(var(--c) * -1);width:var(--c);height:var(--c);background:radial-gradient(circle at 0 0,transparent calc(var(--c) - .5px),var(--surface) var(--c))}
.folder-thumb::after{right:-16px;width:16px;height:16px;background:radial-gradient(circle at 100% 0,transparent 15.5px,var(--surface) 16px)}
/* A sentence strip you can close. */
.strip.is-closable{position:relative;padding-right:54px}
.strip-close{position:absolute;top:50%;right:12px;display:grid;place-items:center;width:32px;height:32px;margin-top:-16px;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.strip-close:hover{background:var(--sunken);color:var(--ink)}
.strip-close .icon{width:15px;height:15px}
/* Projects' grid/list switch: a small pill, the chosen one lit. */
.view-toggle{border-radius:999px;padding:4px;gap:2px}
.view-toggle button,.view-toggle button:not([class]){display:grid;place-items:center;width:38px;height:34px;min-height:0;padding:0;border:0;border-radius:999px;background:none;color:var(--muted)}
.view-toggle button[aria-pressed="true"]{background:var(--hl);color:var(--hl-ink)}
.view-toggle button:not([aria-pressed="true"]):hover{background:var(--sunken);color:var(--ink)}
/* The Overview calendar: days are buttons, the picked day's events under the month. */
.cal-grid button.d{border:0;background:transparent;font:inherit;font-size:12px;cursor:pointer;padding:0;transition:background .15s}
.cal-grid button.d:hover{background:var(--surface)}
.cal-grid button.d.picked:not(.today){box-shadow:inset 0 0 0 1.5px var(--hl);color:var(--ink)}
.cal-grid button.d.today:hover{background:var(--hl)}
.cal-agenda{display:grid;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.cal-agenda-day{font-size:12.5px;font-weight:600;color:var(--ink);padding:0 4px}
.cal-agenda-note{font-size:12.5px;color:var(--muted);padding:0 4px;line-height:1.5}
.cal-agenda-note .link-button{font-size:12.5px}
.cal-event{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:12px;background:var(--surface);color:var(--text);text-decoration:none;min-width:0}
a.cal-event:hover{background:var(--hover)}
.cal-event i{flex:none;width:8px;height:8px;margin-top:5px;border-radius:50%;background:var(--faint)}
.cal-event.is-call i{background:var(--hl)}
.cal-event.is-free{opacity:.7}
.cal-event-text{display:grid;min-width:0}
.cal-event-text strong{font-size:12.5px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cal-event-text small{font-size:11.5px;color:var(--muted)}
/* Taxes to set aside (Overview's Invoices widget, and paid invoice rows). */
.tax-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;margin-bottom:8px;border-radius:14px;background:var(--hl-soft);font-size:12.5px;color:var(--text);line-height:1.45}
.tax-strip strong{color:var(--ink);font-weight:600}
.tax-rate{flex:none;min-height:0;padding:4px 10px;border-radius:999px;border:1px solid var(--hl);background:transparent;color:var(--hl-strong);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.tax-note{display:block;color:var(--hl-strong)}
/* Settings' choosers (Light or dark, a test round's day): the chosen one in the slate blue the portal uses for what's
   active, so it shows in light and dark alike (in dark the white-ish pill came out darker than its track, 2026-11-20). */
.settings-section .segmented .segmented-option{transition:background-color .2s,color .2s}
.settings-section .segmented .segmented-option[aria-checked="true"]{background:var(--hl);color:var(--hl-ink);box-shadow:none}
/* Settings → Games: Paper Chain's numbers and test rounds. */
.games-admin-link{color:var(--hl-strong);font-weight:600}
.games-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px}
.games-admin-stats>div{padding:12px 14px;border-radius:14px;background:var(--sunken)}
.games-admin-stats dt{font-size:12px;color:var(--muted)}
.games-admin-stats dd{margin:2px 0 0;font-size:22px;font-weight:600;color:var(--ink)}
.games-admin-stats small{display:block;font-size:12px;color:var(--muted)}
.games-admin-pick{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px}
.games-admin-date{width:auto;min-width:0}
.games-admin-after{margin-top:10px}
.games-admin-game{margin-bottom:10px}
.cats-tabs{margin:4px 0 12px}
.cats-row{grid-template-columns:minmax(0,1fr) auto;padding-left:22px}
.cats-idea{align-items:center;cursor:default}
.cats-idea-note{display:block;margin-top:6px;color:var(--ink);font-size:14px;line-height:1.45;white-space:pre-line;overflow-wrap:anywhere}
.cats-idea-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;flex:none}
.cats-form fieldset.cats-clue{margin:0;padding:14px 16px 16px;border:1px solid var(--line);border-radius:18px;display:grid;gap:10px}
.cats-form legend{padding:0 6px;font-weight:700;font-size:15px;color:var(--ink)}
.cats-form fieldset.cats-final{border-color:var(--hl);border-width:1.5px}
.cats-final>.fine-print{margin:0}
.cats-answer{grid-template-columns:160px minmax(0,1fr)}
@media (max-width:560px){.cats-answer{grid-template-columns:1fr}}
@media (max-width:560px){.games-admin-stats{grid-template-columns:1fr}.games-admin-pick{display:grid}.games-admin-days,.games-admin-game{width:100%}}
/* Settings → Database updates. */
.db-admin-body{display:grid;gap:12px;justify-items:start}
.db-admin-body>.note{justify-self:stretch}
.db-admin-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;width:100%}
.db-admin-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;border-radius:14px;background:var(--sunken);font-size:13px}
.db-admin-row strong{font-weight:600;color:var(--ink);text-transform:capitalize}
.db-admin-row span{color:var(--muted)}
.db-admin-row.is-failed span{color:var(--danger)}
/* Settings, tidied (2026-11-03): tabs for the studio, and seasonal themes as one short row per holiday. */
.settings-tabs>.tab-list{margin-bottom:18px}
.settings-tab{display:grid;gap:18px}
.season-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.season-head .panel-intro{margin-top:4px;max-width:520px}
.season-admin .season-mode{margin:0}
.season-status{margin:4px 0 12px;font-size:13.5px;font-weight:500;color:var(--text)}
.season-keep{max-width:320px;margin-bottom:12px}
.season-list{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:0;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.season-row{display:block;padding:0;border:0;border-radius:0;background:none}
.season-row+.season-row{border-top:1px solid var(--line)}
.season-line{display:flex;align-items:center;gap:14px;padding:12px 16px;min-height:58px}
.season-text{display:grid;gap:1px;flex:1;min-width:0}
.season-text strong{font-size:14.5px;font-weight:600;color:var(--ink)}
.season-text small{font-size:12.5px;color:var(--muted)}
.season-live{flex:none;padding:3px 10px;border-radius:999px;background:var(--hl);color:var(--hl-ink);font-size:11.5px;font-weight:600}
.season-live[hidden]{display:none}
.season-links{display:flex;gap:14px;flex:none}
.season-links .link-button{font-size:13px}
.season-row.is-off .season-text{opacity:.55}
.season-row.is-picked{background:var(--hl-soft)}
.season-edit{padding:0 16px 14px 70px;display:grid;gap:8px}
.season-dates{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.season-admin .season-dates input{width:158px;min-width:0;padding:8px 10px}
.season-dates span{color:var(--muted);font-size:13px}
.season-note{font-size:12.5px;color:var(--muted);line-height:1.5;margin:0}
.season-list.season-dim .season-row:not(.is-picked){opacity:.5}
/* An on/off switch. */
.season-switch{position:relative;flex:none;width:40px;height:24px;cursor:pointer}
.season-switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:inherit}
.season-switch span{position:absolute;inset:0;border-radius:999px;background:var(--line-strong);transition:background .2s}
.season-switch span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s var(--ease)}
.season-switch input:checked+span{background:var(--hl)}
.season-switch input:checked+span::after{transform:translateX(16px)}
.season-switch input:focus-visible+span{outline:2px solid var(--hl);outline-offset:2px}
.season-switch input:disabled+span{opacity:.5}
.season-actions{align-items:center}
@media(max-width:700px){
  .season-line{flex-wrap:wrap;gap:10px 12px;padding:12px 14px}
  .season-text{flex:1 1 calc(100% - 140px)}
  .season-links{width:100%;padding-left:52px}
  .season-edit{padding:0 14px 14px 14px}
  .season-admin .season-dates input{width:140px}
  .settings-tabs>.tab-list{overflow-x:auto;scrollbar-width:none}
  /* All five Settings tabs share the row on a phone (Games sat off the edge, out of sight, 2026-11-20). */
  .settings-tabs>.tab-list{justify-content:space-between;gap:0}
  .settings-tabs>.tab-list>.tab{padding:12px clamp(4px,1.4vw,10px);font-size:clamp(12.5px,3.6vw,14px)}
}
.season-edit .season-dates{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}
.season-edit .season-dates input[type="date"]{width:158px;max-width:100%;flex:none;display:inline-block}
@media(max-width:700px){
  .settings-section .segmented{display:flex;flex-wrap:nowrap;width:100%}
  .settings-section .segmented .segmented-option{flex:1 1 auto;min-width:0;padding-left:8px;padding-right:8px;font-size:13px;white-space:nowrap}
  .season-head .season-mode{width:100%}
}
/* Website editor (studio): every client's website as a row. */
.site-list{display:grid;gap:14px}
.site-list-search{max-width:420px}
.site-list-row{grid-template-columns:minmax(0,1fr) auto 52px;width:100%;text-align:left;font:inherit;color:inherit;border:0;cursor:pointer}
.site-list-state{font-size:13px;color:var(--muted);white-space:nowrap}
.site-list-state.is-draft{color:var(--attention)}
.pill-row.is-lit .site-list-state{color:inherit}
.site-editor-who{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.site-editor-back{display:inline-flex;align-items:center;gap:6px}
.site-editor-name{font-size:15px;font-weight:600;color:var(--ink)}
@media(max-width:700px){.site-list-row{grid-template-columns:minmax(0,1fr) 52px}.site-list-state{display:none}}
/* Messages (public/messages-ui.js): a list of conversations and one conversation, in the dashboard look. */
.msg-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:16px;align-items:stretch;min-height:560px}
.msg-side{padding:10px;align-content:start;max-height:70vh;overflow:auto}
.msg-list{display:grid;gap:4px}
.msg-item{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:16px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:background .15s}
.msg-item:hover{background:var(--sunken)}
.msg-item.is-on{background:var(--hl-soft)}
.msg-item .face{width:40px;height:40px;flex:none;font-size:13px}
.msg-item-text{display:grid;gap:1px;min-width:0;flex:1}
.msg-item-top{display:flex;justify-content:space-between;gap:8px}
.msg-item-top strong{font-size:14px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-item-top small{flex:none;font-size:11.5px;color:var(--muted)}
.msg-item-line{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-item.is-unread .msg-item-line{color:var(--ink);font-weight:500}
.msg-count{flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--hl);color:var(--hl-ink);font-size:11px;font-weight:600;display:grid;place-items:center}
.msg-convo{display:flex;flex-direction:column;min-width:0;min-height:560px;max-height:78vh;padding:0;overflow:hidden}
.msg-head{display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line)}
.msg-head-text{display:grid;min-width:0}
.msg-head-text strong{font-size:15.5px;font-weight:600;color:var(--ink)}
.msg-head-text small{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-back{display:grid;place-items:center;width:36px;height:36px;flex:none;border:0;border-radius:50%;background:var(--sunken);color:var(--ink);cursor:pointer}
.msg-scroll{flex:1;overflow-y:auto;padding:16px 20px;display:flex;flex-direction:column;gap:3px}
.msg-day{align-self:center;margin:12px 0 6px;padding:3px 12px;border-radius:999px;background:var(--sunken);font-size:11.5px;color:var(--muted)}
.msg-empty{margin:auto;color:var(--muted);font-size:13.5px;text-align:center;padding:24px}
.msg-row{display:flex;flex-direction:column;align-items:flex-start;max-width:78%;margin-top:8px}
.msg-row.is-same{margin-top:0}
.msg-row.is-mine{align-self:flex-end;align-items:flex-end}
.msg-name{font-size:11.5px;color:var(--muted);margin:0 12px 3px}
.msg-bubble{display:flex;flex-wrap:wrap;align-items:flex-end;gap:2px 10px;padding:9px 13px;border-radius:18px;background:var(--sunken);color:var(--ink);min-width:0}
.msg-row.is-mine .msg-bubble{background:var(--hl);color:var(--hl-ink)}
.msg-row.is-studio:not(.is-mine) .msg-bubble{background:var(--surface);border:1px solid var(--hl)}
.msg-text{margin:0;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.msg-text a{color:inherit;text-decoration:underline}
.msg-time{font-size:10.5px;opacity:.65;margin-left:auto}
.msg-seen{font-size:11px;color:var(--muted);margin:3px 6px 0}
.msg-compose{display:flex;align-items:flex-end;gap:10px;padding:12px 14px;border-top:1px solid var(--line)}
.msg-compose textarea{flex:1;min-height:44px;max-height:160px;resize:none;padding:11px 14px;border-radius:22px;line-height:1.4}
.msg-send,.msg-send:not([class]){display:grid;place-items:center;width:44px;height:44px;min-height:0;flex:none;padding:0;border:0;border-radius:50%;background:var(--hl);color:var(--hl-ink);cursor:pointer}
.msg-send:disabled{opacity:.6}
.msg-readonly{margin:0;padding:12px 20px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}
.msg-page .msg-convo{min-height:520px}
#messages-nav.has-unread::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--hl);margin-left:auto}
@media(max-width:800px){
  .msg-layout{grid-template-columns:minmax(0,1fr);min-height:0}
  .msg-layout.is-open>.msg-side{display:none}
  .msg-side{max-height:none}
  .msg-convo{min-height:calc(100vh - 220px);max-height:calc(100vh - 160px)}
  .msg-row{max-width:88%}
  .msg-scroll{padding:12px 14px}
}
.msg-convo.rep-card,.msg-convo.panel{padding:0;gap:0}
@media(max-width:800px){
  .rep-view-messages .msg-convo{min-height:380px;height:calc(100dvh - 330px);max-height:none}
  .msg-page .msg-convo{min-height:380px;height:calc(100dvh - 290px);max-height:none}
}
/* Messages, round two: fills the screen on a computer (the card's own grid no longer pushes the box up), shows a
   sent message at once, "typing…", and "Active now". */
.msg-convo.rep-card,.msg-convo.panel{display:flex;flex-direction:column;align-content:normal}
.msg-layout{height:clamp(460px,calc(100vh - 280px),860px);min-height:0}
.msg-layout>.msg-side,.msg-layout>.msg-convo{height:100%;max-height:none;min-height:0}
.msg-page .msg-convo{height:clamp(440px,calc(100vh - 300px),820px);min-height:0;max-height:none}
.msg-scroll{min-height:0}
.msg-row.is-pending .msg-bubble{opacity:.7}
.msg-row.is-failed .msg-bubble{background:var(--danger-soft);color:var(--danger)}
.msg-row.is-failed .msg-time{opacity:1}
.msg-dots{gap:4px;padding:12px 14px;align-items:center}
.msg-dots i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:msg-dot 1.2s infinite ease-in-out}
.msg-dots i:nth-child(2){animation-delay:.15s}
.msg-dots i:nth-child(3){animation-delay:.3s}
@keyframes msg-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
@media(prefers-reduced-motion:reduce){.msg-dots i{animation:none}}
.msg-head-text small.is-live{display:inline-flex;align-items:center;gap:6px;color:var(--success)}
.msg-live-dot{width:8px;height:8px;border-radius:50%;background:var(--success);display:inline-block}
@media(max-width:800px){
  .msg-layout{height:auto}
  .msg-layout>.msg-side{height:auto}
  .rep-view-messages .msg-convo{height:calc(100dvh - 330px);min-height:380px}
  .msg-page .msg-convo{height:calc(100dvh - 290px);min-height:380px}
}
.msg-scroll>.msg-seen{align-self:flex-end}
/* Messages on phones: 16px in the box so iPhones don't zoom in, and the open conversation pinned to the screen. */
.msg-compose textarea{font-size:16px}
@media(max-width:800px){
  .msg-convo.is-pinned{position:fixed;left:0;right:0;z-index:60;margin:0;border-radius:0;border-left:0;border-right:0;box-shadow:none;min-height:0;max-height:none}
  .msg-convo.is-pinned .msg-compose{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  html.msg-pinned,html.msg-pinned body{overflow:hidden;overscroll-behavior:none}
}
@media(max-width:800px){.msg-convo.is-pinned .msg-head{padding-top:calc(12px + env(safe-area-inset-top))}}
/* The conversation lists' search box. */
.msg-search-wrap{display:grid;gap:8px}
.msg-search{position:relative;display:flex;align-items:center;margin:2px 2px 4px}
.msg-search .icon{position:absolute;left:13px;width:16px;height:16px;color:var(--muted);pointer-events:none}
.msg-search input{width:100%;min-height:42px;padding:9px 14px 9px 38px;border-radius:999px;font-size:16px}
.msg-item-sub{font-size:11.5px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-search{min-width:0}
.msg-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]){box-sizing:border-box;width:100%;min-width:0;padding-left:40px;border-radius:999px;font-size:16px}
/* Times like iMessage: a centered line at the start and after a pause, none inside the bubbles. Runs of messages from
   the same person sit close together with tighter corners where they join; a tap shows a message's own time. */
.msg-stamp{align-self:center;margin:14px 0 6px;font-size:11.5px;font-weight:500;color:var(--muted)}
.msg-stamp:first-child{margin-top:4px}
.msg-row{margin-top:10px}
.msg-row.is-same{margin-top:2px}
.msg-bubble{display:block;padding:9px 14px;border-radius:20px;cursor:default}
.msg-row.is-mine.is-cont .msg-bubble{border-bottom-right-radius:6px}
.msg-row.is-mine.is-same .msg-bubble{border-top-right-radius:6px}
.msg-row:not(.is-mine).is-cont .msg-bubble{border-bottom-left-radius:6px}
.msg-row:not(.is-mine).is-same .msg-bubble{border-top-left-radius:6px}
.msg-when{display:none;font-size:11px;color:var(--muted);margin:3px 8px 0}
.msg-row.show-time .msg-when{display:block}
.msg-seen.is-failed{color:var(--danger)}
.msg-time{display:none}
/* The preview bar's × (Exit preview stays in the account menu once it's closed). */
.preview-bar button.preview-close{display:grid;place-items:center;width:36px;height:36px;min-height:0;padding:0;border-radius:50%;background:transparent;color:inherit;opacity:.75}
.preview-bar button.preview-close:hover{opacity:1;background:rgba(255,255,255,.12)}
.preview-bar .preview-close .icon{width:16px;height:16px}
.preview-bar.is-closing{opacity:0;transform:translate(-50%,8px);transition:opacity .18s,transform .18s}
@media(max-width:600px){.preview-bar.is-closing{transform:translateY(8px)}}
/* iPhones: no double-tap zoom (pinch zoom still works), no text resizing on rotate, and 16px in every text box so
   tapping one doesn't zoom the page in (Safari zooms anything smaller and leaves it zoomed). */
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (max-width:800px),(pointer:coarse){
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not(.visually-hidden),textarea:not(.visually-hidden),select{font-size:16px!important}
}
/* The sliding tab meets its panel cleanly: resting on the first tab, its left outline is drawn inside its edge (like
   the panel's border), so the two left edges are one line; elsewhere it's outside, where it joins the curves; it
   overlaps the panel by a pixel so there's no seam; and the panel's shadow doesn't show above its top edge. */
.folder-thumb{bottom:-1px;box-shadow:0 -1px 0 var(--line),1px 0 0 var(--line),-1px 0 0 var(--line)}
.folder-thumb.is-at-start{box-shadow:0 -1px 0 var(--line),1px 0 0 var(--line),inset 1px 0 0 var(--line)}
.folder-thumb::before,.folder-thumb::after{bottom:1px}
.folder-tabs.has-thumb ~ .folder-body{clip-path:inset(0 -60px -60px -60px)}
/* The typing box: one line tall to start (16px text, no scroll bar), growing as you type. The typing dots line up again,
   and the conversation's scroll bar is thin and quiet. */
.msg-compose textarea{box-sizing:border-box;min-height:46px;padding:12px 16px;line-height:1.35;overflow-y:hidden;scrollbar-width:thin}
.msg-bubble.msg-dots{display:inline-flex;align-items:center;gap:4px;padding:13px 15px}
.msg-scroll,.msg-side{scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}
.msg-scroll::-webkit-scrollbar,.msg-side::-webkit-scrollbar{width:8px}
.msg-scroll::-webkit-scrollbar-thumb,.msg-side::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:8px}
.msg-scroll::-webkit-scrollbar-track,.msg-side::-webkit-scrollbar-track{background:transparent}
/* Client conversations (2026-11-03): the studio's inbox, the sidebar's unread count, and photos and files in messages. */
.nav-count{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--hl);color:var(--hl-ink);font-size:11px;font-weight:600;display:grid;place-items:center;line-height:1}
#messages-nav.has-unread:has(.nav-count)::after{display:none}
.sidebar-nav a.active .nav-count{background:var(--hl-ink);color:var(--hl)}
.msg-side-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 6px 10px}
.msg-side-head strong{font-size:14.5px;font-weight:600;color:var(--ink)}
.msg-new,.msg-new:not([class]){display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 14px 0 10px;border:0;border-radius:999px;background:var(--hl);color:var(--hl-ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.msg-new .icon{width:16px;height:16px}
.msg-side-head .link-button{font-size:13px}
.msg-blank{display:grid;place-items:center}
.msg-head{gap:10px}
.msg-head-text{flex:1}
.msg-head-btn{display:grid;place-items:center;width:38px;height:38px;min-height:0;flex:none;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.msg-head-btn:hover{background:var(--sunken)}
.msg-head-btn .icon{width:17px;height:17px}
/* The box: a paperclip, the words, and Send, with a waiting file shown above. */
.msg-compose{display:grid;gap:8px}
.msg-compose-line{display:flex;align-items:flex-end;gap:8px;min-width:0}
.msg-compose-line textarea{flex:1;min-width:0}
.msg-attach,.msg-attach:not([class]){display:grid;place-items:center;width:44px;height:46px;min-height:0;flex:none;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.msg-attach:hover{color:var(--ink);background:var(--sunken)}
.msg-attach .icon{width:21px;height:21px}
.msg-chip{display:flex;align-items:center;gap:10px;justify-self:start;max-width:min(100%,380px);padding:6px 6px 6px 8px;border:1px solid var(--line);border-radius:16px;background:var(--sunken)}
.msg-chip[hidden]{display:none}
.msg-chip img{width:46px;height:46px;flex:none;border-radius:10px;object-fit:cover}
.msg-chip>.icon{width:22px;height:22px;flex:none;color:var(--muted);margin:0 2px}
.msg-chip-text{display:grid;min-width:0}
.msg-chip-text strong{font-size:13px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-chip-text small{font-size:11.5px;color:var(--muted)}
.msg-chip-x,.msg-chip-x:not([class]){display:grid;place-items:center;width:30px;height:30px;min-height:0;flex:none;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.msg-chip-x:hover{background:var(--surface);color:var(--ink)}
.msg-chip-x .icon{width:15px;height:15px}
.msg-convo.is-dropping{outline:2px dashed var(--hl);outline-offset:-6px}
/* In a bubble: a photo (tap to open it full size) or a file to download. */
.msg-photo{display:block;line-height:0}
.msg-photo img{display:block;max-width:min(280px,100%);max-height:340px;min-width:80px;min-height:60px;border-radius:16px;object-fit:cover;background:var(--sunken)}
.msg-row.has-photo .msg-bubble{padding:4px}
.msg-row.has-photo .msg-text{padding:6px 10px 5px}
.msg-row.is-file-only.has-photo .msg-bubble{padding:0;background:transparent;border:0}
.msg-row.is-file-only.has-photo .msg-photo img{border-radius:18px}
.msg-file{display:flex;align-items:center;gap:10px;min-width:0;max-width:280px;padding:3px 0;color:inherit;text-decoration:none}
.msg-file>.icon{width:24px;height:24px;flex:none;opacity:.85}
.msg-file>.icon:last-child{width:17px;height:17px;opacity:.6}
.msg-file-text{display:grid;min-width:0;flex:1}
.msg-file-text strong{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-file-text small{font-size:11.5px;opacity:.75}
.msg-file+.msg-text{margin-top:6px}
.msg-row.is-pending .msg-photo img{opacity:.75}
@media(max-width:800px){.msg-photo img{max-width:min(240px,100%)}}
.msg-layout>.panel+.panel{margin-top:0}
@media(min-width:801px){.msg-page .msg-layout>.msg-convo{height:100%}}
/* On a computer the Messages pages fit the window (public/messages-ui.js fitPage): no page scroll, only the lists
   and messages inside. Who's here sits beside who's in the conversation, never in place of it. */
html.msg-fit,html.msg-fit body{overflow:hidden}
.msg-head-text small.msg-sub{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;row-gap:1px;color:var(--muted);white-space:normal;overflow:visible}
.msg-head-text small.msg-sub.is-live{color:var(--muted)}
.msg-sub-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-sub-text:empty{display:none}
.msg-here{display:inline-flex;align-items:center;gap:6px;color:var(--success);white-space:nowrap}
.msg-here[hidden]{display:none}
.msg-scroll{overscroll-behavior:contain}
/* Messages, roomier (Adam, 2026-11-03): no page header (the list's own heading says Messages, and the conversation
   names who it's with), so the conversation starts right under the top bar and ends level with the sidebar. */
#messages-page>.page-header{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
#messages-page .msg-page{margin-top:6px}
.msg-side-head h2{margin:0;font-size:19px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.msg-side-head{padding:6px 6px 12px 8px}
/* A short window (a laptop with the browser's bars showing): a tighter sidebar, so Settings stays in view. */
@media(min-width:901px) and (max-height:820px){
  .sidebar{gap:18px;padding-top:22px;padding-bottom:16px}
  .sidebar-nav{gap:2px}
  .sidebar-nav a{padding:9px 16px}
  .nav-sub a{padding:8px 14px}
}
/* ---------- The typing box, like iMessage (Adam, 2026-11-03): a + beside one rounded box holding what's attached
   (a big preview with an × on its corner, then a thin line), the words, and Send. ---------- */
.msg-compose{display:flex;align-items:flex-end;gap:10px;padding:10px 14px 12px;position:relative}
.msg-compose>.msg-attach,.msg-compose>.msg-attach:not([class]){width:44px;height:44px;flex:none;border-radius:50%;background:var(--sunken);color:var(--ink)}
.msg-compose>.msg-attach:hover,.msg-compose>.msg-attach[aria-expanded="true"]{background:var(--line)}
.msg-compose>.msg-attach .icon{width:20px;height:20px}
.msg-field{flex:1;min-width:0;display:grid;border:1px solid var(--line-strong);border-radius:24px;background:var(--surface);transition:border-color .15s,box-shadow .15s}
.msg-field:focus-within{border-color:var(--hl);box-shadow:0 0 0 3px var(--hl-soft)}
.msg-field-row{display:flex;align-items:flex-end;gap:6px;padding:3px 4px 3px 2px;min-width:0}
.msg-field:has(.msg-chip:not([hidden])) .msg-field-row{border-top:1px solid var(--line);margin:0 10px;padding-left:0;padding-right:0}
.msg-compose .msg-field textarea{flex:1;min-width:0;min-height:40px;padding:10px 12px;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;outline:none!important;resize:none;line-height:1.35}
.msg-field .msg-send,.msg-field .msg-send:not([class]){width:36px;height:36px;margin:2px 0;flex:none}
.msg-field .msg-send .icon{width:18px;height:18px}
.msg-compose .msg-chip{position:relative;display:block;justify-self:start;max-width:calc(100% - 20px);margin:10px 10px 8px;padding:0;border:0;border-radius:16px;background:none}
.msg-compose .msg-chip[hidden]{display:none}
.msg-compose .msg-chip.is-photo img{display:block;width:auto;height:auto;max-width:min(240px,100%);max-height:240px;border-radius:16px;object-fit:cover}
.msg-compose .msg-chip.is-file{display:flex;align-items:center;gap:10px;max-width:min(320px,calc(100% - 20px));padding:12px 44px 12px 12px;background:var(--sunken)}
.msg-compose .msg-chip.is-file>.icon{width:24px;height:24px;flex:none;color:var(--muted);margin:0}
.msg-compose .msg-chip-x,.msg-compose .msg-chip-x:not([class]){position:absolute;top:7px;right:7px;width:28px;height:28px;border-radius:50%;background:rgba(18,22,26,.6);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.msg-compose .msg-chip-x:hover{background:rgba(18,22,26,.78);color:#fff}
.msg-compose .msg-chip-x .icon{width:14px;height:14px}
.msg-compose .msg-chip .msg-site{display:flex;margin-top:7px;color:var(--muted);opacity:1}
/* The + menu: a photo or file, or part of the website. */
.msg-menu{position:absolute;left:12px;bottom:calc(100% + 6px);z-index:6;min-width:240px;padding:6px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:var(--shadow-lift)}
.msg-menu[hidden]{display:none}
.msg-menu-item,.msg-menu-item:not([class]){display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:46px;padding:8px 12px;border:0;border-radius:12px;background:none;color:var(--ink);font:inherit;font-size:14.5px;font-weight:500;text-align:left;cursor:pointer}
.msg-menu-item:hover,.msg-menu-item:focus-visible{background:var(--sunken)}
.msg-menu-item .icon{width:19px;height:19px;color:var(--hl-strong)}
/* Faces: beside the last bubble of each run of someone else's messages, and at the top of the conversation. */
.msg-line{display:flex;align-items:flex-end;gap:8px;min-width:0;max-width:100%}
.msg-face-slot{width:28px;flex:none}
.face.msg-face{width:28px;height:28px;font-size:10.5px;box-shadow:none}
.msg-row:not(.is-mine) .msg-name{margin-left:48px}
.msg-row:not(.is-mine) .msg-when{margin-left:44px}
.msg-head-faces{display:flex;flex:none;align-items:center}
.msg-head-faces[hidden]{display:none}
.face.msg-head-face{width:38px;height:38px;font-size:13px;border:2px solid var(--surface);box-shadow:none}
.face.msg-head-face+.face.msg-head-face{margin-left:-12px}
.face.has-photo,.sales-avatar.has-photo,.account-avatar.has-photo{overflow:hidden;background:var(--sunken);padding:0}
.face img,.sales-avatar img,.account-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
/* A message that points at part of the website: the page and what was picked, linking to the page. */
.msg-site{display:inline-flex;align-items:center;gap:6px;max-width:100%;font-size:12.5px;color:inherit;opacity:.85;text-decoration:none}
.msg-site span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-site .icon{width:14px;height:14px;flex:none}
a.msg-site:hover{opacity:1;text-decoration:underline}
.msg-row.has-photo .msg-site{padding:6px 10px 2px}
.msg-row.is-file-only.has-photo .msg-site{padding:6px 4px 0;color:var(--muted)}
.msg-site+.msg-text{margin-top:4px}
/* Picking part of the website: the page's picture, the part under your finger outlined, the rest dimmed. */
.site-pick{position:fixed;inset:0;z-index:90;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;background:var(--paper);color:var(--ink)}
@media(min-width:801px){.site-pick{inset:24px;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 0 0 100vmax rgba(8,10,12,.5),var(--shadow-lift)}}
.site-pick-head{display:flex;align-items:center;gap:12px;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));border-bottom:1px solid var(--line);background:var(--surface)}
.site-pick-close,.site-pick-close:not([class]){display:grid;place-items:center;width:38px;height:38px;min-height:0;flex:none;padding:0;border:0;border-radius:50%;background:var(--sunken);color:var(--ink);cursor:pointer}
.site-pick-close .icon{width:16px;height:16px}
.site-pick-titles{flex:1;min-width:0;display:grid}
.site-pick-titles strong{font-size:15.5px;font-weight:600}
.site-pick-titles small{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-pick-sizes{display:flex;flex:none;padding:3px;border-radius:999px;background:var(--sunken)}
.site-pick-size,.site-pick-size:not([class]){min-height:0;padding:6px 12px;border:0;border-radius:999px;background:none;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.site-pick-size[aria-checked="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.site-pick-pages{display:flex;gap:8px;overflow-x:auto;padding:10px 16px;border-bottom:1px solid var(--line);background:var(--surface);scrollbar-width:none}
.site-pick-pages[hidden]{display:none}
.site-pick-pages::-webkit-scrollbar{display:none}
.site-pick-chip,.site-pick-chip:not([class]){flex:none;min-height:0;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.site-pick-chip.is-on{background:var(--hl);border-color:var(--hl);color:var(--hl-ink)}
.site-pick-stage{overflow:auto;padding:16px 12px 28px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.site-pick-page{position:relative;margin:0 auto;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.18);cursor:crosshair;touch-action:pan-y}
.site-pick-page:has(.site-pick-wait){background:none;box-shadow:none;cursor:default}
.site-pick-page img{display:block;width:100%;height:auto;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.site-pick-box{position:absolute;border:2.5px solid var(--hl);border-radius:6px;background:rgba(143,167,182,.16);box-shadow:0 0 0 9999px rgba(10,14,18,.38);pointer-events:none;transition:left .18s,top .18s,width .18s,height .18s}
.site-pick-hover{position:absolute;border:2px dashed var(--hl);border-radius:6px;pointer-events:none}
.site-pick-box[hidden],.site-pick-hover[hidden]{display:none}
.site-pick-wait{display:grid;justify-items:center;gap:14px;padding:70px 20px;text-align:center;color:var(--muted);font-size:14px}
.site-pick-wait p{margin:0;max-width:340px}
.site-pick-wait.is-error p{color:var(--ink)}
.site-pick-spinner{width:30px;height:30px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--hl);animation:site-spin .9s linear infinite}
@keyframes site-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.site-pick-spinner{animation-duration:3s}.site-pick-box{transition:none}}
.site-pick-foot{display:flex;align-items:center;gap:12px;padding:12px 16px;padding-bottom:calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
.site-pick-label{flex:1;min-width:0;margin:0;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-pick-buttons{display:flex;gap:8px;flex:none}
.site-pick-buttons .secondary{min-height:42px}
.site-pick-attach,.site-pick-attach:not([class]){display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 18px;border:0;border-radius:999px;background:var(--hl);color:var(--hl-ink);font:inherit;font-weight:600;cursor:pointer}
.site-pick-attach .icon{width:16px;height:16px}
.site-pick-buttons button:disabled{opacity:.45;cursor:default}
@media(max-width:600px){
  .site-pick-head{flex-wrap:wrap}
  .site-pick-sizes{order:3;width:100%;justify-content:stretch}.site-pick-size{flex:1}
  .site-pick-foot{flex-direction:column;align-items:stretch;gap:10px}
  .site-pick-label{white-space:normal}
  .site-pick-buttons>*{flex:1;justify-content:center}
}
/* Profile picture (Settings → You, and the rep's account menu). */
.photo-picker{display:flex;align-items:center;gap:16px;padding:2px 0 18px;margin-bottom:4px;border-bottom:1px solid var(--line)}
.face.photo-picker-face{width:64px;height:64px;font-size:22px}
.photo-picker-text{flex:1;min-width:0;display:grid;gap:2px}
.photo-picker-text strong{font-size:15px;font-weight:600}
.photo-picker-text small{font-size:13px;color:var(--muted)}
.photo-picker-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.photo-picker.is-busy{opacity:.6;pointer-events:none}
@media(max-width:600px){.photo-picker{flex-wrap:wrap}.photo-picker-actions{width:100%}}
.msg-compose .msg-chip.is-photo img{max-width:240px}
.msg-row.has-photo .msg-bubble{max-width:288px}
@media(max-width:800px){.msg-row.has-photo .msg-bubble{max-width:248px}}
.photo-picker.is-bare{border-bottom:0;padding-bottom:0;flex-wrap:nowrap}
.photo-picker.is-bare .photo-picker-actions{width:auto}
/* Circling: the drawing surface lies over the page's picture; one finger draws, two scroll (public/messages-ui.js). */
.site-pick-ink{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none}
.site-pick-page{cursor:crosshair}
@media(max-width:600px){.site-pick-foot{flex-direction:row;align-items:center}.site-pick-label{white-space:normal;font-size:13.5px}.site-pick-buttons{flex:none}.site-pick-buttons>*{flex:none}}
.site-pick-label strong{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.site-pick-label small{display:block;font-size:12.5px;color:var(--muted)}
/* The picker never grows wider than the screen: a long "Circled: …" caption wraps (two lines at most on a phone)
   instead of pushing the page picture and the buttons off to the right. */
.site-pick{grid-template-columns:minmax(0,1fr);max-width:100vw;overflow:hidden}
.site-pick>*{min-width:0}
.site-pick-foot>*{min-width:0}
@media(max-width:600px){
  .site-pick-label strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3}
  .site-pick-sizes{min-width:0}
}
/* Hidden things stay inside what holds them (a hidden file chooser at the end of a row once made Settings wider than
   a phone, so the phone zoomed the whole page out), and a photo in a round face fills exactly its circle, whatever the
   photo's own size. */
.photo-picker{position:relative}
.face.has-photo,.sales-avatar.has-photo,.account-avatar.has-photo{position:relative;overflow:hidden}
.face.has-photo>img,.sales-avatar.has-photo>img,.account-avatar.has-photo>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:inherit}
/* Move and zoom a new profile picture before it's saved (public/avatar.js cropPhoto). */
.photo-crop{position:fixed;inset:0;z-index:95;display:grid;place-items:center;padding:16px;background:rgba(8,10,12,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.photo-crop-panel{display:grid;gap:16px;width:min(360px,100%);padding:20px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lift)}
.photo-crop-head{display:grid;gap:2px;text-align:center}
.photo-crop-head strong{font-size:17px;font-weight:600}
.photo-crop-head small{font-size:13px;color:var(--muted)}
.photo-crop-frame{position:relative;width:100%;aspect-ratio:1;overflow:hidden;border-radius:18px;background:#111;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}
.photo-crop-frame:active{cursor:grabbing}
.photo-crop-frame>img{position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;pointer-events:none;-webkit-user-drag:none}
.photo-crop-mask{position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px rgba(8,10,12,.55);outline:2px solid rgba(255,255,255,.85);outline-offset:-2px;pointer-events:none}
.photo-crop-zoom{display:flex;align-items:center;gap:12px;padding:0 4px}
.photo-crop-zoom input{flex:1;accent-color:var(--hl)}
.photo-crop-minus,.photo-crop-plus{width:16px;text-align:center;font-size:18px;color:var(--muted)}
.photo-crop-foot{display:flex;gap:10px;justify-content:flex-end}
.photo-crop-foot button{flex:1}
.photo-crop-zoom input[type="range"]{min-height:0;height:28px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
/* Phones: the menu drawer holds just the links. The logo is already in the top bar and light/dark is in the account
   menu, so the drawer doesn't repeat them, and it's only as tall as its links (no scrolling, nothing cut off). */
@media(max-width:900px){
  .sidebar .sidebar-top{display:none}
  .sidebar{bottom:auto;max-height:calc(100dvh - 88px);padding-top:14px;padding-bottom:14px;gap:10px}
  .sidebar-foot{margin-top:0;padding-top:8px;border-top:1px solid var(--line)}
}
@media(max-width:900px){
  .sidebar .sidebar-nav{gap:0}
  .sidebar .sidebar-nav a{padding:9px 14px;font-size:15px}
  .sidebar .nav-sub a{padding:7px 14px}
}
/* ---------- Phones: a dock and a More sheet instead of a menu drawer (public/mobile-nav.js, 2026-11-03) ----------
   A floating dock holds the four pages used most plus More; the page you're on is lit in the highlight color. More
   slides up a sheet with every other page as a tile, your face, and light or dark. It steps aside while you type and
   while a conversation fills the screen. */
.dock,.dock-scrim,.dock-sheet{display:none}
@media(max-width:900px){
  html.has-dock .menu-toggle{display:none!important}
  html.has-dock .sidebar,html.has-dock .sidebar-scrim{display:none!important}
  html.has-dock .topbar{right:8px}
  html.has-dock main{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
  .dock{display:flex;position:fixed;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:50;gap:2px;padding:6px;border:1px solid var(--line);border-radius:30px;background:color-mix(in srgb,var(--surface) 95%,transparent);-webkit-backdrop-filter:blur(20px) saturate(1.4);backdrop-filter:blur(20px) saturate(1.4);box-shadow:0 12px 34px rgba(0,0,0,.28),0 2px 6px rgba(0,0,0,.12);transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s}
  .dock-item,.dock-item:not([class]){flex:1;min-width:0;min-height:0;display:grid;justify-items:center;gap:2px;padding:5px 0 4px;border:0;border-radius:22px;background:none;color:var(--muted);font:inherit;font-size:10.5px;font-weight:500;line-height:1.2;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:none}
  .dock-item[hidden]{display:none}
  .dock-glyph{position:relative;display:grid;place-items:center;width:54px;height:32px;border-radius:999px;transition:background .25s,color .25s,transform .2s}
  .dock-glyph .icon{width:21px;height:21px;stroke-width:1.7}
  .dock-item:active .dock-glyph{transform:scale(.92)}
  .dock-item.active,.dock-more.is-current,.dock-more[aria-expanded="true"]{color:var(--ink);font-weight:600}
  .dock-item.active .dock-glyph,.dock-more.is-current .dock-glyph,.dock-more[aria-expanded="true"] .dock-glyph{background:var(--hl);color:var(--hl-ink)}
  .dock-label{max-width:100%;padding:0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .dock-badge{position:absolute;top:-4px;right:7px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e5484d;color:#fff;font-size:10px;font-weight:700;line-height:1;display:grid;place-items:center;box-shadow:0 0 0 2px var(--surface)}
  .dock-badge.is-dot{min-width:0;width:10px;height:10px;padding:0;top:1px;right:12px}
  html.dock-typing .dock,html.msg-pinned .dock,html.dock-sheet-open .dock{transform:translateY(calc(100% + 24px));opacity:0;pointer-events:none}
  .dock-scrim{display:block;position:fixed;inset:0;z-index:51;background:rgba(8,10,12,.48);opacity:0;transition:opacity .25s}
  .dock-scrim.is-open{opacity:1}
  .dock-scrim[hidden],.dock-sheet[hidden]{display:none}
  .dock-sheet{display:grid;gap:16px;position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:52;max-height:calc(100dvh - 80px);overflow:auto;padding:10px 14px 16px;border:1px solid var(--line);border-radius:30px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-lift);transform:translateY(calc(100% + 24px));transition:transform .32s cubic-bezier(.2,.8,.2,1);overscroll-behavior:contain}
  .dock-sheet.is-open{transform:none}
  .dock-sheet.is-dragging{transition:none}
  .dock-grab{justify-self:center;width:42px;height:5px;margin-bottom:2px;border-radius:99px;background:var(--line-strong);touch-action:none}
  .dock-sheet-head{display:flex;align-items:center;gap:12px;padding:0 2px;touch-action:none}
  .dock-who{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
  .face.dock-face{width:46px;height:46px;font-size:15px;box-shadow:none}
  .dock-who-text{display:grid;min-width:0}
  .dock-who-text strong{font-size:15.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .dock-who-text small{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .dock-theme,.dock-theme:not([class]){display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;flex:none;border:1px solid var(--line);border-radius:999px;background:var(--sunken);color:var(--ink);font:inherit;font-size:13.5px;font-weight:500;box-shadow:none}
  .dock-theme .icon{width:17px;height:17px}
  .dock-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .dock-tile{display:grid;justify-items:center;align-content:center;gap:8px;min-height:88px;padding:12px 6px 10px;border:1px solid var(--line);border-radius:20px;background:var(--sunken);color:var(--ink);font-size:12.5px;font-weight:500;line-height:1.2;text-align:center;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:transform .15s,border-color .2s}
  .dock-tile:active{transform:scale(.96)}
  .dock-tile.is-on{border-color:var(--hl);background:var(--hl-soft)}
  .dock-tile-glyph{position:relative;display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:var(--surface);color:var(--hl-strong);box-shadow:0 1px 2px rgba(0,0,0,.08)}
  .dock-tile.is-on .dock-tile-glyph{background:var(--hl);color:var(--hl-ink)}
  .dock-tile-glyph .icon{width:21px;height:21px}
  .dock-tile-glyph img{width:22px;height:22px;border-radius:5px}
  .dock-tile-glyph .dock-badge.is-dot{top:-2px;right:-2px}
  .dock-tile-label{max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  html.has-dock .preview-bar{bottom:calc(92px + env(safe-area-inset-bottom))}
  html.has-dock .toast-region{bottom:calc(96px + env(safe-area-inset-bottom))}
}
@media(max-width:900px) and (prefers-reduced-motion:reduce){.dock,.dock-sheet,.dock-scrim{transition:none}}
/* The dock is a solid bar along the bottom edge (Adam, 2026-11-04: seeing the page underneath crowded things). No
   gaps around it and nothing shows through. Its color carries on below it too, under Safari's floating address bar,
   which on newer iPhones draws the page beneath it. */
@media(max-width:900px){
  .dock{left:0;right:0;bottom:0;gap:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);border-radius:0;background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 -8px 24px rgba(0,0,0,.18)}
  .dock::after{content:"";position:absolute;left:0;right:0;top:100%;height:240px;background:var(--surface);pointer-events:none}
  html.has-dock main{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  html.dock-typing .dock,html.msg-pinned .dock,html.dock-sheet-open .dock{transform:translateY(calc(100% + 260px))}
  html.has-dock .preview-bar{bottom:calc(84px + env(safe-area-inset-bottom))}
  html.has-dock .toast-region{bottom:calc(88px + env(safe-area-inset-bottom))}
}
.widget[hidden],.strip[hidden]{display:none!important}
/* ---------- The Calendar page (public/calendar-admin.js, 2026-11-04) ----------
   The week across the top (seven columns on a computer, a list of days on a phone), then when reps can book and the
   calls they booked. Your own events are plain, rep calls are in the highlight color, blocked-off time is striped. */
.cal-page{display:grid;gap:20px}
.cal-page .panel{display:grid;gap:14px;align-content:start}
.cal-page .panel>h2{margin:0;font-size:18px;font-weight:600}
.cal-page .panel>.lead{margin:-8px 0 0;font-size:13.5px;color:var(--muted)}
.cal-connect{max-width:640px}
.cal-week-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cal-week-head h2{margin:0;font-size:19px;font-weight:600}
.cal-week-nav{display:flex;align-items:center;gap:8px}
.cal-step,.cal-step:not([class]){width:38px;height:38px;min-height:0;padding:0;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink)}
.cal-step .icon{width:16px;height:16px}
.cal-today,.cal-today:not([class]){min-height:38px;padding:0 14px;font-size:13px}
.cal-days-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.cal-day{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:150px;padding:10px;border:1px solid var(--line);border-radius:18px;background:var(--sunken)}
.cal-day.is-today{border-color:var(--hl);box-shadow:inset 0 0 0 1px var(--hl)}
.cal-day.is-past{opacity:.6}
.cal-day-head{display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.cal-day-date{display:grid;line-height:1.15}
.cal-day-date small{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.cal-day-date strong{font-size:20px;font-weight:600}
.cal-day.is-today .cal-day-date strong{color:var(--hl-strong)}
.cal-day-add,.cal-day-add:not([class]){display:grid;place-items:center;width:28px;height:28px;min-height:0;padding:0;border:1px dashed var(--line-strong);border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.cal-day-add:hover{border-style:solid;border-color:var(--hl);color:var(--hl-strong)}
.cal-day-add .icon{width:14px;height:14px}
.cal-day-empty{margin:auto 0 0;font-size:12px;color:var(--faint,var(--muted))}
.cal-chip{position:relative;display:flex;align-items:flex-start;gap:6px;min-width:0;padding:7px 9px;border-radius:12px;background:var(--surface);border:1px solid var(--line);color:var(--ink);text-decoration:none}
a.cal-chip:hover{border-color:var(--line-strong)}
.cal-chip-text{display:grid;min-width:0;flex:1}
.cal-chip-text small{font-size:11px;color:var(--muted)}
.cal-chip-text strong{font-size:12.5px;font-weight:600;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cal-chip.is-call{background:var(--hl-soft);border-color:var(--hl)}
.cal-chip-by{color:var(--hl-strong)!important}
.cal-chip.is-free{opacity:.65;border-style:dashed}
.cal-chip.is-block{background:repeating-linear-gradient(135deg,var(--surface) 0 7px,var(--sunken) 7px 14px);border-style:dashed;border-color:var(--line-strong)}
.cal-chip-x,.cal-chip-x:not([class]){display:grid;place-items:center;width:22px;height:22px;min-height:0;flex:none;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted);cursor:pointer}
.cal-chip-x:hover{background:var(--sunken);color:var(--ink)}
.cal-chip-x .icon{width:12px;height:12px}
.cal-key{display:flex;gap:16px;flex-wrap:wrap;margin:0;font-size:12px;color:var(--muted)}
.cal-key-item{display:inline-flex;align-items:center;gap:6px}
.cal-key-item::before{content:"";width:14px;height:10px;border-radius:4px;border:1px solid var(--line-strong);background:var(--surface)}
.cal-key-item.is-call::before{background:var(--hl-soft);border-color:var(--hl)}
.cal-key-item.is-block::before{border-style:dashed;background:repeating-linear-gradient(135deg,var(--surface) 0 3px,var(--sunken) 3px 6px)}
.cal-lower{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}
.cal-account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:4px 6px}
.cal-block-form{display:grid;gap:16px}
.cal-block-form .cal-form-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.cal-block-form .cal-form-row[hidden]{display:none}
.cal-block-form input[type="date"],.cal-block-form input[type="time"],.cal-block-form input[type="text"]{width:100%}
.cal-block-kinds{display:flex;padding:3px;border-radius:999px;background:var(--sunken)}
.cal-block-kind,.cal-block-kind:not([class]){flex:1;min-height:38px;padding:0 12px;border:0;border-radius:999px;background:none;color:var(--muted);font:inherit;font-size:13.5px;cursor:pointer;box-shadow:none}
.cal-block-kind[aria-checked="true"]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.12)}
@media(max-width:1100px){
  .cal-days-grid{grid-template-columns:minmax(0,1fr);gap:6px}
  .cal-day{flex-direction:row;flex-wrap:wrap;align-items:center;min-height:0;padding:10px 12px}
  .cal-day-head{width:100%}
  .cal-day-date{display:flex;align-items:baseline;gap:8px}
  .cal-day-date strong{font-size:16px}
  .cal-days-grid.is-this-week .cal-day.is-past{display:none}
  .cal-chip{flex:1 1 100%}
  .cal-day-empty{margin:0;flex:1}
  .cal-lower{grid-template-columns:minmax(0,1fr)}
}
.cal-page>.panel+.panel,.cal-page .cal-lower>.panel,.cal-page .cal-lower{margin-top:0}
/* iPhones give date and time boxes a minimum width of their own and center their text, so in a narrow column (the
   Calendar's From and Until, the Block off time sheet) they spilled past their card. On iPhones and iPads they now
   fill exactly their space, with the text on the left like every other box. */
@supports (-webkit-touch-callout:none){
  input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"]{display:block;min-width:0;max-width:100%;box-sizing:border-box;-webkit-appearance:none;appearance:none;text-align:left}
  input[type="date"]::-webkit-date-and-time-value,input[type="time"]::-webkit-date-and-time-value,input[type="datetime-local"]::-webkit-date-and-time-value{min-width:0;text-align:left;margin:0}
}
/* The Overview's tax line is a link to the Taxes page. */
a.tax-strip{text-decoration:none;cursor:pointer;transition:background .2s}
a.tax-strip:hover{background:color-mix(in srgb,var(--hl) 28%,transparent)}
a.tax-strip p{margin:0}
/* ---------- The Taxes page (public/taxes-admin.js) ---------- */
.tax-page{display:grid;gap:20px}
.tax-years{justify-self:start}
.tax-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:20px;align-items:stretch}
.tax-hero{align-content:start}
.tax-hero-big{font-size:46px;font-weight:600;letter-spacing:-.03em;line-height:1.05;color:var(--hl-ink)}
.tax-hero p{margin:0}
.tax-hero-rate,.tax-hero-rate:not([class]){display:inline-flex;min-height:0;padding:1px 10px;border-radius:999px;border:1px solid rgba(8,19,32,.35);background:rgba(255,255,255,.22);color:var(--hl-ink);font:inherit;font-weight:600;cursor:pointer;vertical-align:baseline}
.tax-hero-rate:hover{background:rgba(255,255,255,.4)}
.tax-hero-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:6px;padding-top:12px;border-top:1px solid rgba(8,19,32,.18);font-size:13.5px;font-weight:500}
.tax-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tax-tiles .sales-stat{align-content:center}
.tax-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px;align-items:start}
.tax-col{display:grid;gap:20px;min-width:0}
.tax-page .panel+.panel{margin-top:0}
.tax-card{display:grid;gap:14px}
.tax-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tax-card-head h2{font-size:17px;font-weight:600;letter-spacing:-.01em}
.tax-card-head p{margin:3px 0 0;font-size:13px;color:var(--muted);line-height:1.5}
.tax-card-head .secondary{flex:none}
.tax-small{margin:0;font-size:12.5px;color:var(--muted);line-height:1.5}
.tax-empty{margin:0;padding:16px;border-radius:18px;background:var(--raised);font-size:13.5px;color:var(--muted);line-height:1.5}
.tax-quarters{display:grid;gap:8px}
.tax-q{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) auto;align-items:center;gap:12px;min-height:64px;padding:10px 12px 10px 18px;border-radius:22px;background:var(--raised);border:1px solid transparent}
.tax-q.is-next{border-color:var(--hl);background:var(--hl-soft)}
.tax-q.is-later{opacity:.7}
.tax-q-when,.tax-q-amount{display:grid;gap:1px;min-width:0}
.tax-q-when strong,.tax-q-amount strong{font-size:14.5px;font-weight:600;color:var(--ink)}
.tax-q-amount strong{font-variant-numeric:tabular-nums}
.tax-q-when small,.tax-q-amount small{font-size:12.5px;color:var(--muted)}
.tax-q-tail{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.tax-q-pay{min-height:36px;padding:6px 14px;border-radius:999px;font-size:13px}
.tax-q-paid{display:flex;align-items:center;gap:8px;margin:-2px 0 2px 18px;font-size:12.5px;color:var(--muted)}
.tax-q-paid>.icon{width:15px;height:15px;color:var(--success);flex:none}
.tax-q-paid span{flex:1;min-width:0}
.tax-q-paid .icon-button{width:30px;height:30px;min-height:0}
.tax-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.tax-row{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 8px 8px 16px;border-radius:18px;background:var(--raised)}
.tax-row-text{display:grid;gap:1px;flex:1;min-width:0}
.tax-row-text strong{font-size:14px;font-weight:500;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tax-row-text small{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tax-row-amount{flex:none;font-size:14.5px;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.tax-row .icon-button{flex:none;width:36px;height:36px;min-height:0}
.tax-row-pad{flex:none;width:36px}
.tax-receipt{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;color:var(--hl-strong);background:var(--surface)}
.tax-receipt .icon{width:16px;height:16px}
.tax-about p{margin:0;font-size:13.5px;line-height:1.6;color:var(--text)}
.tax-about h2{font-size:15px;font-weight:600}
.tax-form .tax-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tax-money{display:flex;align-items:center;gap:0;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);overflow:hidden}
.tax-money span{padding:0 4px 0 12px;color:var(--muted);font-weight:500}
.tax-money input{border:0;background:transparent;min-width:0;width:100%;padding-left:2px;box-shadow:none}
.tax-money:focus-within{border-color:var(--hl);box-shadow:0 0 0 3px var(--hl-glow)}
.tax-form input[type="date"]{width:100%;min-width:0}
@media(max-width:1180px){.tax-top{grid-template-columns:minmax(0,1fr)}.tax-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
  .tax-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .tax-tiles .sales-stat{padding:12px}
  .tax-tiles .sales-stat-value{font-size:18px}
  .tax-tiles .sales-stat-foot{display:none}
  .tax-hero-big{font-size:38px}
  .tax-q{grid-template-columns:minmax(0,1fr) auto;padding:12px 12px 12px 16px;border-radius:20px}
  .tax-q-tail{grid-column:1/-1;justify-content:space-between}
  .tax-q-amount{text-align:right}
  .tax-card-head{flex-wrap:wrap}
  .tax-form .tax-pair{grid-template-columns:minmax(0,1fr)}
}
.tax-money input,.tax-money input:focus{border:0!important;border-radius:0!important;box-shadow:none!important;outline:none;background:transparent!important}
@media(max-width:700px){.tax-row-text strong,.tax-row-text small{white-space:normal;overflow-wrap:anywhere}}
/* Monthly and yearly costs on the Taxes page. */
.tax-row-amount{display:grid;justify-items:end;gap:1px}
.tax-row-amount small{font-size:11.5px;font-weight:500;color:var(--muted)}
.tax-row-text strong .sales-pill{vertical-align:1px;margin-left:4px}
.tax-stop>button{justify-content:center;width:100%}
/* Changing a cost: tap it (or its pencil). */
.tax-row.is-editable .tax-row-text{cursor:pointer;border-radius:10px}
.tax-row.is-editable:hover{background:var(--hover)}
.tax-row-text:focus-visible{outline:2px solid var(--hl);outline-offset:4px}
.tax-row-pad.is-two{width:76px}
.tax-from .sales-segmented{justify-self:start}
.tax-remove{display:flex;align-items:center;gap:10px;font-size:14px}
@media(max-width:700px){.tax-row .tax-edit{display:none}.tax-row-pad.is-two{width:36px}}
/* No focus outlines anywhere (Adam, 2026-11-08): not around buttons, links, fields, or the × that a sheet focuses
   when it opens. Fields still show they're active by their border color. */
*:focus,*:focus-visible{outline:none!important}
button:focus,button:focus-visible,a:focus,a:focus-visible,[role="button"]:focus-visible,[tabindex]:focus-visible{box-shadow:none}
input:focus,textarea:focus,select:focus,.address-input:focus-within,.msg-field:focus-within,.tax-money:focus-within{box-shadow:none!important}
/* A long subtitle (an email address) stops short of the header's buttons instead of running under them. */
.msg-head-text{flex:1 1 auto;min-width:0}
.msg-head-text>strong,.msg-head-text .msg-sub-text{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-head>.msg-head-btn{flex:none}
.msg-head-text{grid-template-columns:minmax(0,1fr)}
.msg-head-text small.msg-sub{min-width:0;overflow:hidden}
.msg-head-text .msg-sub-text{flex:0 1 auto}

/* ---------- The portal as an app (public/app-mode.js, 2026-11-09) ---------- */
.app-sheet{display:grid;gap:14px}
.app-sheet-lead{margin:0;color:var(--text);line-height:1.6}
.app-sheet-fine{margin:0;color:var(--muted);font-size:13.5px;line-height:1.6}
.app-sheet .secondary{justify-self:start}
.app-switch-row{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--sunken);cursor:pointer}
.app-switch-copy{display:grid;gap:2px;flex:1;min-width:0}
.app-switch-copy strong{font-size:15px;color:var(--ink)}
.app-switch-copy small{font-size:13px;color:var(--muted);line-height:1.45}
input.app-switch{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:50px;height:30px;margin:0;border-radius:999px;border:0;background:var(--line-strong);transition:background .2s;cursor:pointer}
input.app-switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .25s var(--ease)}
input.app-switch:checked{background:var(--hl)}
input.app-switch:checked::after{transform:translateX(20px)}
input.app-switch:disabled{opacity:.6}
.app-steps{display:grid;gap:10px;margin:0;padding:0;list-style:none;counter-reset:step}
.app-steps li{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:14px;background:var(--sunken);color:var(--text);line-height:1.5;font-size:14.5px}
.app-steps .icon{flex:none;width:22px;height:22px;margin-top:1px;color:var(--ink)}
.app-offer>.icon{color:var(--hl)}
@media(max-width:800px){.app-offer{bottom:calc(92px + env(safe-area-inset-bottom))}}
/* Pull down to refresh. */
.app-pull{position:fixed;z-index:29;top:calc(env(safe-area-inset-top) + 64px);left:50%;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--surface);color:var(--muted);border:1px solid var(--line);box-shadow:0 4px 14px rgba(0,0,0,.12);opacity:0;transform:translate(-50%,0) scale(.4);pointer-events:none;transition:transform .25s var(--ease),opacity .2s}
.app-pull .icon{width:18px;height:18px}
.app-pull.is-pulling{transition:none}
.app-pull.is-ready{color:var(--hl-ink);background:var(--hl)}
.app-pull.is-refreshing{opacity:1}
.app-pull.is-refreshing .icon{animation:app-spin .8s linear infinite}
@keyframes app-spin{to{transform:rotate(360deg)}}
/* The page's name in the top bar, once its own heading has scrolled under. */
.app-title{display:none}
/* What's being swiped back sits on a shadow. */
/* (Not on the page holder itself: that would pin its top bar's buttons to it.) */
.is-swiping:not(main){box-shadow:-18px 0 40px rgba(0,0,0,.18)}
html.is-app{-webkit-tap-highlight-color:transparent}
/* No rubber band: the page doesn't stretch past its top or bottom (pull to refresh does that job). */
html.is-app,html.is-app body{overscroll-behavior-y:none}
/* Links and pictures don't pop up previews on a long press; the app's own controls aren't selectable text. */
html.is-app a,html.is-app img,html.is-app button{-webkit-touch-callout:none}
html.is-app button,html.is-app nav,html.is-app .dock,html.is-app .rep-tabbar,html.is-app .folder-tab,html.is-app .pop-item,html.is-app .rep-menu-item,html.is-app .topbar,html.is-app .mobile-bar,html.is-app .rep-top{-webkit-user-select:none;user-select:none}
@media(max-width:800px){
  html.is-app .mobile-bar .brand,html.is-app .rep-brand{visibility:hidden}
  /* Apps don't have website footers. */
  html.is-app .site-footer{display:none}
  html.is-app .app-title{display:block;position:absolute;left:50%;top:50%;max-width:52vw;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:650;letter-spacing:-.01em;color:var(--ink);opacity:0;transform:translate(-50%,-40%);transition:opacity .2s,transform .2s;pointer-events:none}
  html.is-app .app-title.is-shown{opacity:1;transform:translate(-50%,-50%)}
}

/* The loading screen covers everything: the bottom bar waits until it's gone. */
html:has(#portal-loader:not([hidden])) .dock{visibility:hidden}
/* A sheet or dialog is open: the page behind it stays still. */
html:has(dialog[open]){overflow:hidden}

/* Phones: the More page (public/mobile-nav.js), a hub to every page not in the bottom bar. */
@media(max-width:900px){
  .more-page .page-header{display:block;margin:0 0 16px;padding:2px 0 0;text-align:left}
  .more-page .page-header::before,.more-page .page-header::after{content:none}
  .more-page .page-header h1{font-size:32px;line-height:1.1;font-weight:700;letter-spacing:-.035em}
  .more-head{padding:14px 14px 14px 16px;margin-bottom:14px;border:1px solid var(--line);border-radius:22px;background:var(--surface);touch-action:auto}
  #more-content .dock-tile{background:var(--surface)}
  #more-content .dock-tile-glyph{background:var(--sunken)}
}

/* Phones: Messages lists like iMessage (2026-11-09): no box around them, a large title, a round compose button,
   a soft search field at the top, bigger faces, two lines of the last message, and hairlines between rows. */
@media(max-width:800px){
  .msg-layout:not(.is-open)>.msg-side,.msg-layout:not(.is-open)>.msg-side.panel{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
  .msg-side-head{padding:2px 0 12px}
  .msg-side-head h2{font-size:32px;line-height:1.1;font-weight:700;letter-spacing:-.035em;color:var(--ink)}
  .msg-side-head .msg-new{width:40px;height:40px;min-height:40px;padding:0;justify-content:center;border-radius:50%;background:var(--sunken);color:var(--ink)}
  .msg-side-head .msg-new span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .msg-side-head .msg-new .icon{width:20px;height:20px}
  .msg-side .msg-search{margin:0 0 6px}
  .msg-side .msg-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]){min-height:40px;padding-top:8px;padding-bottom:8px;border:0;border-radius:12px;background:var(--sunken)}
  .msg-side .msg-list{display:grid;gap:0}
  .msg-side .msg-item{position:relative;gap:13px;padding:11px 0;border-radius:0;align-items:flex-start}
  .msg-side .msg-item:hover,.msg-side .msg-item.is-on{background:transparent}
  .msg-side .msg-item:active{background:var(--sunken)}
  .msg-side .msg-item+.msg-item::before{content:"";position:absolute;top:0;left:65px;right:0;height:1px;background:var(--line)}
  .msg-side .msg-item .face{width:52px;height:52px;font-size:17px;margin-top:1px}
  .msg-side .msg-item-text{gap:2px}
  .msg-side .msg-item-top{align-items:baseline}
  .msg-side .msg-item-top strong{font-size:16.5px}
  .msg-side .msg-item-top small{font-size:14px}
  .msg-side .msg-item-top small::after{content:"›";margin-left:7px;font-size:17px;color:var(--faint)}
  .msg-side .msg-item-line{font-size:14.5px;line-height:1.35;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .msg-side .msg-item-sub{font-size:13px}
  .msg-side .msg-count{align-self:center}
  .msg-side .msg-empty{padding:28px 8px;text-align:center}
}

/* The bottom bar's highlight: one pill that glides to the open page (navPill in public/ui.js). */
.nav-pill{position:absolute;left:0;top:0;z-index:0;border-radius:999px;background:var(--hl);opacity:0;pointer-events:none;transition:transform .42s cubic-bezier(.3,1.25,.45,1),width .3s,height .3s,opacity .2s}
.nav-pill.is-on{opacity:1}
.has-pill>a,.has-pill>button{position:relative;z-index:1}
@media(max-width:900px){
  .dock.has-pill .dock-item.active .dock-glyph,.dock.has-pill .dock-more.is-current .dock-glyph{background:transparent}
}
.rep-tabbar.has-pill .rep-tab[aria-current="page"]{color:var(--ink)}
.rep-tabbar.has-pill .rep-tab[aria-current="page"] .icon{color:var(--hl-ink);transform:none}
@media(prefers-reduced-motion:reduce){.nav-pill{transition:opacity .2s}}

/* The app's page slides (slidePage in public/app-mode.js) use the browser's own page transitions: the page area slides
   while the top bar, the bottom bar, and everything else stay put; the bottom bar's highlight glides along. The names
   are only given during a slide. */
html.is-sliding .main-content,html.is-sliding .rep-main{view-transition-name:tlt-page}
html.is-sliding .topbar{view-transition-name:tlt-topbar}
html.is-sliding .mobile-bar,html.is-sliding .rep-top{view-transition-name:tlt-bar}
html.is-sliding .dock,html.is-sliding .rep-tabbar{view-transition-name:tlt-dock}
html.is-sliding .nav-pill{view-transition-name:tlt-pill}
::view-transition-old(root),::view-transition-new(root){animation:none}
/* The bars don't move: their new look shows at once, on top of the sliding page. */
::view-transition-group(tlt-page),::view-transition-group(tlt-topbar),::view-transition-group(tlt-bar),::view-transition-group(tlt-dock){animation:none}
::view-transition-old(tlt-topbar),::view-transition-old(tlt-bar),::view-transition-old(tlt-dock){display:none}
::view-transition-new(tlt-topbar),::view-transition-new(tlt-bar),::view-transition-new(tlt-dock){animation:none}
/* The two pages move side by side, like a carousel: the old one out one way while the new one comes in behind it. */
::view-transition-old(tlt-page),::view-transition-new(tlt-page){mix-blend-mode:normal;height:auto;animation-duration:.34s;animation-timing-function:cubic-bezier(.25,.8,.25,1);animation-fill-mode:both}
html[data-slide="next"]::view-transition-old(tlt-page){animation-name:tlt-to-left}
html[data-slide="next"]::view-transition-new(tlt-page){animation-name:tlt-from-right}
html[data-slide="prev"]::view-transition-old(tlt-page){animation-name:tlt-to-right}
html[data-slide="prev"]::view-transition-new(tlt-page){animation-name:tlt-from-left}
::view-transition-group(tlt-pill){animation-duration:.42s;animation-timing-function:cubic-bezier(.3,1.25,.45,1)}
@keyframes tlt-to-left{to{transform:translateX(-100vw)}}
@keyframes tlt-to-right{to{transform:translateX(100vw)}}
@keyframes tlt-from-right{from{transform:translateX(100vw)}}
@keyframes tlt-from-left{from{transform:translateX(-100vw)}}

/* With the keyboard up, the typing box sits right on it (the space kept for the phone's home bar is under the
   keyboard then). */
@media(max-width:800px){.msg-convo.is-pinned.has-keyboard .msg-compose{padding-bottom:10px}}
html.is-sliding .app-title{opacity:0;transition:none}
/* The workspace's top-bar buttons, lifted out beside the top bar in the app (liftTopbar), go with the workspace:
   not over the rep portal, the sign-in screen, or before the workspace has loaded. */
body[data-rep="true"]>.topbar,body[data-signed-out="true"]>.topbar{display:none}
body:has(.workspace-shell[data-initializing])>.topbar{visibility:hidden}
@media(max-width:800px){.msg-convo.is-pinned.is-easing{transition:height .3s cubic-bezier(.2,.8,.2,1)}}
.kb-probe{position:fixed;left:8px;right:8px;top:calc(env(safe-area-inset-top) + 8px);z-index:9999;margin:0;padding:8px 10px;border-radius:10px;background:rgba(0,0,0,.82);color:#9ff0b0;font:11px/1.45 ui-monospace,Menlo,monospace;white-space:pre-wrap;pointer-events:none}
/* The website editor's YouTube panel: View counts under the sections. */
.ws-subhead{margin:18px 0 4px;font-size:14px;font-weight:650;color:var(--ink)}
.yt-views .check{display:flex;gap:10px;align-items:flex-start}

/* Settings → Games → Newsletter (public/newsletter-admin.js, 2026-11-24). */
.games-news-switch{display:flex;align-items:center;gap:10px;margin:2px 0 4px;font-weight:600}
.games-news-switch input{width:20px;height:20px;accent-color:var(--hl)}
.games-news-h{margin:22px 0 10px;font-size:15px;font-weight:600}
.games-news select,.games-news input[type=text],.games-news textarea{width:100%;margin:0 0 10px}
.games-news textarea{resize:vertical;min-height:140px}
.games-news-draft{margin:0 0 4px}
.games-news-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.games-news-row{margin-bottom:8px}
.games-news-state{font-size:13px;color:var(--muted);white-space:nowrap}

/* Settings → Games as a list of games, each with its own page (public/games-admin.js, 2026-11-24). */
.games-hub{display:grid;gap:10px}
.games-hub-row{grid-template-columns:minmax(0,1fr) auto auto;min-height:74px}
.games-hub-row .who-text small{white-space:normal;line-height:1.4}
.games-hub-row .who-text small.is-warn{color:var(--attention)}
.games-page .back-link{margin:-6px 0 8px}
.games-page-head h2{font-size:24px;letter-spacing:-.05em;line-height:1.15;margin:0}
.games-page-what{margin:6px 0 18px}
.games-page-body{margin-top:4px}
.games-test{margin:6px 0 4px;padding:18px;border-radius:18px;background:var(--sunken)}
.games-test-h{margin:0 0 12px;font-size:15px;font-weight:600}
.games-test .games-admin-pick{margin-bottom:12px}
.cats-bar{display:flex;justify-content:flex-end;margin:18px 0 6px}
.games-news-tabs{margin:16px 0 14px}
.games-news-write{display:grid;gap:10px}
.games-news-write select,.games-news-write input[type=text],.games-news-write textarea{margin:0}
@media (max-width:520px){.games-hub-row{grid-template-columns:minmax(0,1fr) auto}.games-hub-row .badge{display:none}}
.cats-admin{min-width:0}
.cats-tabs{display:flex;max-width:100%;overflow-x:auto;scrollbar-width:none}
.cats-tabs::-webkit-scrollbar{display:none}
.cats-tabs .segmented-option{white-space:nowrap}
.cats-bar .panel-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.cats-bar{margin:0 0 4px}
.games-news-row{grid-template-columns:minmax(0,1fr) auto}
.cats-tabs .segmented-option{padding-left:12px;padding-right:12px}

/* Settings → Games → Accounts (2026-11-27): everyone with a games account, with a search box. */
.games-accounts-search{width:100%;margin:2px 0 12px}
.games-account{grid-template-columns:minmax(0,1fr) auto;cursor:default;min-height:74px}
.games-account .who-text small{white-space:normal;line-height:1.4;overflow-wrap:anywhere}
