/* Curbside Client App
   Layout: glass sidebar + content column over a fixed ember gradient. Orange is the 5% accent.
   Tokens follow the Curbside design system (charcoal, stone, steel, one flash of orange). */
:root {
  color-scheme: dark;
  --bg: #100e0d; --bg-2: #171413;
  --surface: rgba(255, 255, 255, .042); --surface-2: rgba(255, 255, 255, .075); --solid: #1b1816;
  --ink: #ffffff; --muted: #a8a4a0; --faint: #77726d;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .18);
  --orange: #ff5b05; --accent-text: #ff7a33; --orange-soft: rgba(255, 91, 5, .13);
  --stone: #e5dedc; --on-stone: #151515;
  --ok: #86d6a6; --warn: #f2b85c; --bad: #ff8573;
  --ok-bg: rgba(134, 214, 166, .12); --warn-bg: rgba(242, 184, 92, .12); --bad-bg: rgba(255, 133, 115, .12);
  --glow-a: rgba(240, 133, 55, .34); --glow-b: rgba(83, 36, 24, .55); --glow-c: rgba(14, 19, 22, .9);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
  --ember: radial-gradient(120% 130% at 100% 100%, #f08537 0%, #7a2f17 38%, #2a1712 66%, #0e1316 100%);
  --display: "Articulat CF", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
  --tech: "Tomorrow", "Manrope", ui-monospace, monospace;
  --r-card: 18px; --r-tile: 12px; --ease: cubic-bezier(.2, .7, .2, 1);
  --side: 268px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e9e4e1; --bg-2: #f3efed;
  --surface: rgba(255, 255, 255, .62); --surface-2: rgba(255, 255, 255, .9); --solid: #ffffff;
  --ink: #151515; --muted: #5b5753; --faint: #8b8782;
  --line: rgba(21, 21, 21, .09); --line-2: rgba(21, 21, 21, .22);
  --accent-text: #c44400; --orange-soft: rgba(255, 91, 5, .1);
  --ok: #1d7445; --warn: #8f5a06; --bad: #b3372a;
  --ok-bg: rgba(29, 116, 69, .1); --warn-bg: rgba(143, 90, 6, .1); --bad-bg: rgba(179, 55, 42, .1);
  --glow-a: rgba(255, 122, 51, .3); --glow-b: rgba(229, 222, 220, .2); --glow-c: rgba(233, 228, 225, 0);
  --shadow: 0 24px 50px -32px rgba(60, 40, 30, .45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.5px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 100% 100%, var(--glow-a), transparent 70%), radial-gradient(45% 40% at 78% 112%, var(--glow-b), transparent 75%), radial-gradient(50% 45% at 0% 0%, var(--glow-c), transparent 70%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Type */
.display { font-family: var(--display); font-weight: 300; letter-spacing: -.025em; line-height: 1.02; }
.h1 { font-size: clamp(30px, 4vw, 46px); }
.h2 { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -.01em; }
.cap { font: 500 10.5px/1.2 var(--tech); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); display: inline-flex; align-items: center; gap: 7px; }
.cap::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.cap.plain { color: var(--faint); } .cap.plain::before { display: none; }
.tech { font-family: var(--tech); letter-spacing: .04em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }

/* Shell */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100%; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px 18px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); z-index: 20; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 10px; }
.brand img.mark { height: 22px; } .brand img.word { height: 11px; }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none !important; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 12px 10px 6px; }
.nav a, .nav button.navbtn { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 500; width: 100%; text-align: left; transition: background .2s, color .2s; position: relative; }
.nav a:hover, .nav button.navbtn:hover { color: var(--ink); background: var(--surface); }
.nav a.on { color: var(--ink); background: var(--surface-2); }
.nav a.on::after { content: ""; position: absolute; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.nav .sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.nav .sub.open { grid-template-rows: 1fr; }
.nav .sub > div { overflow: hidden; display: flex; flex-direction: column; gap: 1px; padding-left: 14px; margin-left: 18px; border-left: 1px solid var(--line); }
.nav .sub a { padding: 7px 10px; font-size: 13px; font-weight: 400; }
.nav .chev { margin-left: auto; transition: transform .3s var(--ease); width: 14px; height: 14px; }
.nav .open-chev .chev { transform: rotate(180deg); }
.badge { margin-left: auto; font: 500 10px var(--tech); padding: 2px 7px; border-radius: 99px; background: var(--orange-soft); color: var(--accent-text); }
.nav a.on .badge { margin-right: 16px; }
td.num { white-space: nowrap; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 500 11px var(--tech); background: var(--stone); color: var(--on-stone); flex: none; }
.avatar.o { background: var(--orange); color: #fff; }
.who b { font-weight: 600; font-size: 13px; line-height: 1.2; } .who > div span { font-size: 11.5px; color: var(--faint); }
.who > div { min-width: 0; flex: 1; } .who > div b, .who > div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: var(--surface); transition: .2s; flex: none; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 3vw, 36px); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; font: 400 11px var(--tech); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.top .sp { flex: 1; }
.menu-btn { display: none; }
.page { padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 36px) 64px; display: flex; flex-direction: column; gap: 26px; max-width: 1480px; width: 100%; animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-head > div:first-child { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.page-head p { color: var(--muted); max-width: 62ch; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Buttons + pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; font-weight: 600; font-size: 13px; border: 1px solid var(--line-2); transition: transform .2s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--ink); }
.btn:active { transform: none; }
.btn.primary { background: linear-gradient(135deg, #ff7a2b, #ff5b05 55%, #e24600); border-color: transparent; color: #fff; box-shadow: 0 10px 26px -12px rgba(255, 91, 5, .9); }
.btn.primary:hover { box-shadow: 0 14px 32px -10px rgba(255, 91, 5, 1); }
.btn.stone { background: var(--stone); color: var(--on-stone); border-color: transparent; }
.btn.sm { height: 31px; padding: 0 12px; font-size: 12px; }
.btn.ghost { border-color: transparent; color: var(--muted); } .btn.ghost:hover { color: var(--ink); background: var(--surface); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 23px; padding: 0 9px; border-radius: 99px; font: 500 10px var(--tech); letter-spacing: .07em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.o { color: var(--accent-text); border-color: color-mix(in srgb, var(--orange) 40%, transparent); background: var(--orange-soft); }
.st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font: 500 10px var(--tech); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.paid { color: var(--ok); background: var(--ok-bg); } .st.pending { color: var(--warn); background: var(--warn-bg); }
.st.overdue { color: var(--bad); background: var(--bad-bg); } .st.upcoming { color: var(--muted); background: var(--surface-2); }
.st.done { color: var(--ok); background: var(--ok-bg); } .st.now { color: var(--accent-text); background: var(--orange-soft); }
select.st-select { appearance: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; height: 28px; padding: 0 26px 0 12px; font: 500 10px var(--tech); letter-spacing: .07em; text-transform: uppercase; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 12px, calc(100% - 10px) 12px; background-size: 4px 4px; background-repeat: no-repeat; }
select.st-select.paid { color: var(--ok); } select.st-select.pending { color: var(--warn); } select.st-select.overdue { color: var(--bad); } select.st-select.upcoming { color: var(--muted); }
select.st-select option { color: #151515; background: #fff; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }

.kpi { position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 148px; isolation: isolate; transition: transform .35s var(--ease), border-color .35s; }
.kpi::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ember); opacity: 0; transition: opacity .45s var(--ease); }
.kpi::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .45s; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 7px); mix-blend-mode: overlay; }
.kpi:hover, .kpi.hero { transform: translateY(-3px); border-color: transparent; color: #fff; }
.kpi:hover::before, .kpi.hero::before { opacity: 1; } .kpi:hover::after, .kpi.hero::after { opacity: 1; }
.kpi:hover .muted, .kpi.hero .muted, .kpi:hover .cap, .kpi.hero .cap { color: rgba(255, 255, 255, .78); }
.kpi:hover .cap::before, .kpi.hero .cap::before { background: #fff; }
.kpi .val { font-family: var(--display); font-weight: 300; font-size: clamp(27px, 2.6vw, 38px); letter-spacing: -.03em; line-height: 1; margin-top: auto; }
.kpi .val small { font-size: .5em; opacity: .7; letter-spacing: 0; }
.kpi .foot { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.kpi:hover .ico, .kpi.hero .ico { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .2); }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.meter { height: 5px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 9px; background: linear-gradient(90deg, #ff9a4d, #ff5b05); transition: width 1.4s var(--ease) .2s; }
.kpi:hover .meter, .kpi.hero .meter { background: rgba(255, 255, 255, .22); } .kpi:hover .meter i, .kpi.hero .meter i { background: #fff; }

/* Tables */
.tbl-wrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th { text-align: left; font: 500 10px var(--tech); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .2s; cursor: pointer; } tbody tr:hover { background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; } td .sub { display: block; font-size: 12px; color: var(--faint); }
.no { font: 500 12px var(--tech); letter-spacing: .05em; }

/* Tabs / chips */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs a, .tabs button { padding: 7px 15px; border-radius: 99px; font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap; transition: .2s; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs .on { background: var(--stone); color: var(--on-stone); }

/* Folder cards */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px 18px; }
.folder { position: relative; display: block; padding-top: 36px; transition: transform .4s var(--ease); isolation: isolate; }
.folder:hover { transform: translateY(-5px); }
.folder .tab { position: absolute; top: 0; left: 0; height: 50px; width: max-content; min-width: 112px; padding: 7px 16px 0 12px; border-radius: 16px 16px 0 0; background: var(--solid); border: 1px solid var(--line); border-bottom: 0; display: flex; gap: 8px; align-items: flex-start; }
.folder .tab::after { content: ""; position: absolute; right: -21px; bottom: 13px; width: 22px; height: 17px; background: radial-gradient(circle at 100% 0, transparent 16px, var(--solid) 16.5px); }
.folder .body { position: relative; z-index: 1; border-radius: 0 20px 20px 20px; background: var(--solid); border: 1px solid var(--line); border-top-color: transparent; padding: 20px; display: flex; flex-direction: column; gap: 16px; min-height: 236px; overflow: hidden; box-shadow: var(--shadow); }
.folder .body::before { content: ""; position: absolute; inset: 0; background: var(--ember); opacity: 0; transition: opacity .5s var(--ease); z-index: -1; }
.folder .body::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 8px); mix-blend-mode: overlay; }
.folder:hover .body { color: #fff; border-color: transparent; } .folder:hover .body::before, .folder:hover .body::after { opacity: 1; }
.folder:hover .muted, .folder:hover .faint { color: rgba(255, 255, 255, .78); }
.folder:hover .svc { border-color: rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .1); }
.folder .go { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); transition: .35s var(--ease); flex: none; }
.folder:hover .go { background: #fff; color: #151515; transform: rotate(-45deg); }
.folder h3 { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -.015em; line-height: 1.15; }
.folder .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12.5px; }
.folder .meta b { display: block; font-weight: 600; font-size: 14px; }
.svcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.folder:hover .svcs { border-top-color: rgba(255, 255, 255, .22); }
.svc { font: 400 10px var(--tech); letter-spacing: .07em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); transition: .3s; }
.folder.add .body { align-items: center; justify-content: center; text-align: center; border-style: dashed; border-color: var(--line-2); background: transparent; box-shadow: none; }
.folder.add .tab { background: transparent; border-style: dashed; border-color: var(--line-2); } .folder.add .tab::after { display: none; }

/* Hero / glass panels */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(22px, 3vw, 34px); color: #fff; background: var(--ember); isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 9px); mix-blend-mode: overlay; }
.hero .cap { color: rgba(255, 255, 255, .85); } .hero .cap::before { background: #fff; }
.hero .muted { color: rgba(255, 255, 255, .78); }
.glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 16px; }
.hero .btn { border-color: rgba(255, 255, 255, .4); color: #fff; } .hero .btn:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.hero .btn.stone { color: var(--on-stone); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.fact span { display: block; font: 400 10px var(--tech); letter-spacing: .09em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.fact b { font-weight: 600; word-break: break-word; }

/* Lists */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); min-width: 0; transition: background .2s, padding .25s var(--ease); border-radius: 8px; }
.li:last-child { border-bottom: 0; }
a.li:hover, button.li:hover { background: var(--surface); padding-left: 12px; }
.li .grow { flex: 1; min-width: 0; } .li .grow b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .grow span { display: block; font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 500 9px var(--tech); letter-spacing: .05em; text-transform: uppercase; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); flex: none; }
.ft.dir { font-size: 8px; letter-spacing: .02em; }
.ft.pdf { color: var(--bad); } .ft.dir { color: var(--accent-text); } .ft.doc, .ft.gsheet { color: var(--ok); }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.q { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: .3s var(--ease); min-width: 0; }
.q:hover { border-color: var(--orange); background: var(--orange-soft); transform: translateY(-2px); }
.q b { display: block; font-weight: 600; } .q span { font-size: 12px; color: var(--faint); }
.q .arr { margin-left: auto; transition: transform .3s var(--ease); } .q:hover .arr { transform: translate(3px, -3px); }

/* Charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 400 10px var(--tech); fill: var(--faint); letter-spacing: .04em; }
.chart .gridl { stroke: var(--line); stroke-width: 1; }
.chart .target { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 6; fill: none; }
.chart .actual { stroke: var(--orange); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .bar { fill: var(--surface-2); transition: fill .25s; } .chart .bar:hover, .chart .bar.cur { fill: url(#barG); }
.chart .bar-g { transform-origin: bottom; transform-box: fill-box; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid var(--orange); vertical-align: middle; margin-right: 6px; }
.legend i.t { border-top: 1.5px dashed var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.step { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.step.cur { border-color: color-mix(in srgb, var(--orange) 55%, transparent); background: var(--orange-soft); }
.step b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -.02em; }

/* Payment schedule */
.sched { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pay { position: relative; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.pay.paid { border-color: color-mix(in srgb, var(--ok) 35%, transparent); } .pay.due { border-color: color-mix(in srgb, var(--orange) 60%, transparent); background: var(--orange-soft); }
.pay b { font-family: var(--display); font-weight: 300; font-size: 28px; letter-spacing: -.03em; }

/* Brand */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sw { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: transform .3s var(--ease); }
.sw:hover { transform: translateY(-3px); } .sw i { display: block; height: 84px; } .sw div { padding: 12px; }
.sw b { display: block; font-weight: 600; } .sw span { font: 400 11px var(--tech); color: var(--faint); letter-spacing: .05em; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rules ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rules li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.rules li svg { margin-top: 2px; } .rules .do svg { color: var(--ok); } .rules .dont svg { color: var(--bad); }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.asset { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; transition: .3s var(--ease); }
.asset:hover { border-color: var(--line-2); transform: translateY(-3px); }
.asset .thumb { height: 108px; display: grid; place-items: center; position: relative; background: linear-gradient(135deg, var(--surface-2), transparent); border-bottom: 1px solid var(--line); font: 300 30px var(--tech); color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.asset .thumb .lock { position: absolute; top: 10px; right: 10px; }
.asset .info { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.asset .info b { font-weight: 600; line-height: 1.3; } .asset .info .row { margin-top: auto; }
.banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--orange) 50%, transparent); background: var(--orange-soft); flex-wrap: wrap; }
.banner.ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-bg); }
.banner > div { flex: 1; min-width: 220px; } .banner b { display: block; font-weight: 600; }
.note { font-size: 12.5px; color: var(--faint); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .lbl { font: 500 10px var(--tech); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.input, .field input, .field select, .field textarea { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.field select option { color: #151515; background: #fff; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { position: relative; } .chk input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chk span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); font-weight: 600; font-size: 12.5px; color: var(--muted); transition: .2s; }
.chk input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.chk input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.opt { position: relative; display: block; } .opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt > div { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: .25s var(--ease); height: 100%; display: flex; flex-direction: column; gap: 6px; }
.opt:hover > div { border-color: var(--line-2); } .opt input:checked + div { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 1px var(--orange) inset; }
.opt b { font-weight: 600; } .opt .price { font-family: var(--display); font-size: 22px; font-weight: 300; letter-spacing: -.02em; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 99px; height: 36px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; font-size: 16px; } .stepper button:hover { background: var(--surface-2); }
.stepper output { min-width: 34px; text-align: center; font-weight: 600; }
input[type="range"] { accent-color: var(--orange); width: 100%; }
.calc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.quote { position: sticky; top: 86px; }
.q-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; }
.q-sec { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); } .q-sec:first-child { padding-top: 0; } .q-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.q-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* Modal + toast */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(8, 6, 5, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 18px; animation: fade .25s both; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(640px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border-radius: 22px; background: var(--solid); border: 1px solid var(--line-2); padding: 26px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); animation: pop .35s var(--ease) both; display: flex; flex-direction: column; gap: 18px; }
.modal.wide { width: min(860px, 100%); } .modal.narrow { width: min(460px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
#toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--stone); color: var(--on-stone); font-weight: 600; font-size: 13px; box-shadow: var(--shadow); animation: pop .3s var(--ease) both; max-width: 340px; }

/* Invoice sheet */
.sheet-frame { margin: 0 auto; overflow: hidden; border-radius: 6px; flex: none; }
.sheet { background: #f4f1ef; color: #151515; border-radius: 0; width: 210mm; min-height: 297mm; box-sizing: border-box; padding: 16mm 15mm; display: flex; flex-direction: column; gap: 20px; font-size: 13px; transform-origin: top left; }
.sheet .inv-title { font: 600 68px/.9 var(--tech); letter-spacing: .02em; color: #151515; }
.sheet .inv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet hr { border: 0; border-top: 1px solid #c9c4c1; margin: 0; }
.sheet .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sheet .k { font: 500 9.5px var(--tech); letter-spacing: .1em; text-transform: uppercase; color: #77726d; margin-bottom: 6px; }
.sheet .kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.sheet table { min-width: 0; } .sheet th { color: #77726d; border-color: #c9c4c1; padding-left: 0; } .sheet td { border-color: #dcd7d4; padding-left: 0; }
.sheet tbody tr { cursor: default; } .sheet tbody tr:hover { background: none; }
.sheet .tot { margin-left: auto; width: min(280px, 100%); } .sheet .tot .kv.g { border-top: 1px solid #151515; margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 15px; }
.sheet .fine { font-size: 10.5px; color: #77726d; }

/* Business card */
.bc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.bc-stage { border-radius: 20px; padding: clamp(18px, 4vw, 44px); background: var(--ember); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; align-items: center; isolation: isolate; }
.bc-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 9px); mix-blend-mode: overlay; }
.bc-stage { perspective: 1100px; }
/* the wrapper turns in and sways; the svg inside tilts towards the pointer, so the two compose without jumping */
.bc-card { width: min(440px, 100%); transform-style: preserve-3d; animation: bc-in 1.2s var(--ease) both, bc-sway 8s ease-in-out 1.2s infinite; }
.bc-stage svg { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .7); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transition: transform .35s var(--ease); }
@keyframes bc-in { from { opacity: 0; transform: rotateY(-75deg) rotateX(14deg) translateY(24px) scale(.9); } to { opacity: 1; transform: rotateY(-12deg) rotateX(5deg); } }
@keyframes bc-sway { 0%, 100% { transform: rotateY(-12deg) rotateX(5deg); } 50% { transform: rotateY(12deg) rotateX(-4deg) translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .bc-card { animation: none; } }

/* Login + gate */
/* sign in: the artwork fills the whole screen, the form floats over it in dark glass */
.login { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; background: var(--ember); color: #fff; }
.login::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 10px); mix-blend-mode: overlay; pointer-events: none; }
.login-art { align-self: stretch; padding: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; color: #fff; }
.login-art h1 { font-size: clamp(34px, 5vw, 64px); max-width: 12ch; }
.login .ghost-word { position: absolute; right: -2%; bottom: -5%; font: 200 clamp(120px, 22vw, 300px)/.8 var(--display); letter-spacing: -.05em; color: rgba(255, 255, 255, .07); pointer-events: none; z-index: -1; }
.login-form {
  /* always dark inside the glass, whichever theme the rest of the app is in */
  --ink: #ffffff; --muted: rgba(255, 255, 255, .74); --faint: rgba(255, 255, 255, .56);
  --surface: rgba(255, 255, 255, .07); --surface-2: rgba(255, 255, 255, .11); --line: rgba(255, 255, 255, .13); --line-2: rgba(255, 255, 255, .24);
  --accent-text: #ff8a4c; --orange-soft: rgba(255, 91, 5, .18);
  color-scheme: dark; color: var(--ink);
  justify-self: center; width: min(480px, calc(100% - 2 * clamp(16px, 4vw, 48px))); margin: clamp(16px, 4vw, 48px) 0;
  padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 22px;
  background: rgba(8, 8, 8, .58); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px;
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.login-form .field input { color: var(--ink); background: rgba(0, 0, 0, .28); border-color: var(--line-2); }
.login-form .field input::placeholder { color: rgba(255, 255, 255, .4); }
.login-form .btn:not(.primary) { color: var(--ink); border-color: var(--line-2); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .login-form { background: rgba(8, 8, 8, .82); } }
.profiles { display: flex; flex-direction: column; gap: 8px; }
.profile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: .25s var(--ease); width: 100%; }
.profile:hover { border-color: var(--orange); background: var(--orange-soft); transform: translateX(4px); }
.profile b { display: block; font-weight: 600; } .profile span { font-size: 12px; color: var(--faint); }
.profile .i { margin-left: auto; color: var(--faint); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font: 400 10px var(--tech); letter-spacing: .1em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.terms-box { max-height: 220px; overflow-y: auto; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 13px; }
.agree { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; } .agree input { margin-top: 3px; accent-color: var(--orange); width: 16px; height: 16px; }
.ticket { border: 1px solid var(--line-2); display: grid; grid-template-columns: auto 1fr; font-family: var(--tech); }
.ticket > * { padding: 12px 14px; border-bottom: 1px solid var(--line-2); } .ticket > *:nth-last-child(-n+2) { border-bottom: 0; }
.ticket .v { background: var(--orange); color: #fff; font-size: 26px; font-weight: 300; display: grid; place-items: center; grid-row: span 2; border-right: 1px solid var(--line-2); }
.ticket small { display: block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
details.faq { border-bottom: 1px solid var(--line); } details.faq summary { list-style: none; cursor: pointer; padding: 18px 4px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: var(--display); font-size: 18px; transition: color .2s; }
details.faq summary::-webkit-details-marker { display: none; } details.faq summary:hover { color: var(--accent-text); }
details.faq summary svg { transition: transform .3s var(--ease); flex: none; } details.faq[open] summary svg { transform: rotate(45deg); color: var(--orange); }
details.faq p { padding: 0 4px 20px; color: var(--muted); max-width: 68ch; }

/* Round 2: stat cards, client header, items editor, row actions, chart hover */
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; gap: 10px; padding: 11px 16px; min-width: 128px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, background .25s, transform .3s var(--ease); }
.stat:hover { border-color: var(--orange); background: var(--orange-soft); transform: translateY(-2px); }
.stat b { font-family: var(--display); font-weight: 300; font-size: 24px; letter-spacing: -.02em; line-height: 1; }
.stat span { font: 500 10px var(--tech); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.stat.hot { border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
.tabs.c-tabs { align-self: center; width: fit-content; border: 1px solid var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.fact.w2 { grid-column: span 2; }
.ems { display: flex; flex-direction: column; gap: 4px; }
.em { white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.em a { font-weight: 600; }
.it { display: block; max-width: 52ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn.sm { width: 30px; height: 30px; border-radius: 9px; } .icon-btn.sm svg { width: 15px; height: 15px; }
.icon-btn.sm:hover { color: var(--accent-text); border-color: var(--orange); }
.icon-btn.sm.danger:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-bg); }
.btn.danger { border-color: color-mix(in srgb, var(--bad) 60%, transparent); color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.items-head, .item-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 34px; gap: 10px; align-items: center; }
.items-head { padding: 0 2px 6px; }
.items { display: flex; flex-direction: column; gap: 10px; }
.item-row input { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.item-row input:focus, .email-row input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.item-row input[name="amt"] { text-align: right; font-variant-numeric: tabular-nums; }
.item-row .rm { width: 34px; height: 34px; }
.items .item-row:only-child .rm, .emails .email-row:only-child .rm { visibility: hidden; }
.add-item { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin-top: 10px; border-radius: 12px; border: 1.5px dashed var(--line-2); color: var(--muted); font-weight: 600; font-size: 13px; transition: .25s var(--ease); }
.add-item:hover { border-color: var(--orange); color: var(--accent-text); background: var(--orange-soft); }
.items-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 0; margin-top: 10px; border-top: 1px solid var(--line); }
.items-total b { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: -.02em; }
.email-head, .email-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 72px 72px 34px; gap: 10px; align-items: center; }
.email-head { padding: 0 2px 6px; } .emails { display: flex; flex-direction: column; gap: 10px; }
.email-row input[name="em"], .email-row input[name="elabel"] { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); width: 100%; min-width: 0; }
.main-pick { position: relative; } .main-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.main-pick span { display: grid; place-items: center; height: 34px; border-radius: 99px; border: 1px solid var(--line-2); font: 500 10px var(--tech); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: .2s; }
.main-pick input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.main-pick input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.sheet .kv.pay { margin-top: 8px; padding: 9px 12px; border-radius: 8px; background: #151515; color: #fff; font-weight: 700; }
.traj { position: relative; cursor: crosshair; touch-action: pan-y; }
.traj .hl { position: absolute; top: 5.93%; height: 82.96%; width: 1px; background: var(--orange); opacity: 0; pointer-events: none; }
.traj .hd { position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; border: 2px solid var(--bg); }
.traj .hd.t { background: var(--ink); } .traj .hd.b { background: var(--orange); }
.traj .tip { position: absolute; z-index: 5; width: 250px; padding: 13px 15px; border-radius: 14px; background: var(--solid); border: 1px solid var(--line-2); box-shadow: var(--shadow); pointer-events: none; opacity: 0; font-size: 12.5px; display: flex; flex-direction: column; gap: 7px; transition: opacity .12s; }
.traj.on .hl, .traj.on .hd, .traj.on .tip { opacity: 1; }
.tip .r2 { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.tip .gap.ahead { color: var(--ok); } .tip .gap.behind { color: var(--bad); }
.chart-hint { font-size: 12px; color: var(--faint); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .fact.w2 { grid-column: auto; } .em { white-space: normal; flex-wrap: wrap; } }
@media (max-width: 520px) { .items-head, .item-row { grid-template-columns: minmax(0, 1fr) 104px 34px; } .email-head { display: none; } .email-row { grid-template-columns: minmax(0, 1fr) 64px 64px 34px; } .email-row input[name="elabel"] { grid-column: 1 / -1; grid-row: 2; } }

/* Responsive */
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .calc, .bc-wrap { grid-template-columns: minmax(0, 1fr); } .quote { position: relative; top: auto; } }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .35s var(--ease); background: var(--bg); }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  .menu-btn { display: grid; } .login { grid-template-columns: minmax(0, 1fr); align-content: start; } .login-art { gap: 18px; padding-bottom: 0; } .login-art > .tech { display: none; } .login-art h1 { font-size: clamp(30px, 8vw, 44px); } .login-form { margin-top: 24px; }
  .g2, .rules, .sched, .form { grid-template-columns: minmax(0, 1fr); } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-sm { display: none !important; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: minmax(0, 1fr); } .folders { grid-template-columns: minmax(0, 1fr); } .btn .lbl-long { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .chart .actual { stroke-dashoffset: 0; } }

/* Print: invoice only */
@media print {
  body { background: #fff; } body::before, #app, #toast-root, .no-print { display: none !important; }
  .scrim { position: static; background: none; backdrop-filter: none; padding: 0; display: block; }
  .modal { border: 0; box-shadow: none; padding: 0; max-height: none; width: 100%; background: #fff; }
  @page { size: A4 portrait; margin: 0; }
  html, body { margin: 0; padding: 0; width: 210mm; }
  .modal-head, .modal-foot { display: none !important; }
  .scrim { padding: 0 !important; margin: 0; }
  .modal { width: 210mm !important; }
  .sheet-frame { width: 210mm !important; height: auto !important; overflow: visible; border-radius: 0; margin: 0; }
  .sheet { width: 210mm; min-height: 297mm; padding: 16mm 15mm; background: #fff; border-radius: 0; transform: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.hero .btn.danger:hover { background: rgba(255, 70, 50, .35); border-color: #fff; }
.crumbs a { color: inherit; transition: color .2s; }
.crumbs a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
/* Invoice: pin the payment details and fine print to the foot of the A4 page */
.sheet .tot + hr { margin-top: auto; }
/* Asset previews: show the actual logo or image, with a light or dark backdrop */
.asset .thumb { height: 150px; overflow: hidden; }
.asset .thumb.light { background: repeating-conic-gradient(#e6e2df 0% 25%, #f4f1ef 0% 50%) 0 0 / 16px 16px; color: #8b8782; }
.asset .thumb.dark { background: #151515; color: #77726d; }
.asset .thumb > span:not(.lock) { position: absolute; inset: 0; display: grid; place-items: center; }
.asset .thumb img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; padding: 16px; box-sizing: border-box; }
.asset .thumb .lock { z-index: 2; }

/* sign in screens (js/auth.js) */
.auth-msg { min-height: 20px; font-size: 13px; color: var(--muted); } .auth-msg.bad { color: #e5484d; } .auth-msg.ok { color: var(--accent-text); }
.auth-link { color: var(--accent-text); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.auth-check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; } .auth-check input { width: 18px; height: 18px; accent-color: var(--orange); }
.login-form .field input[readonly] { opacity: .75; }

/* Round 4: centred KPI icons, Notion tile, collapsible side nav */
.kpi-top { align-items: center; }
.ft.notion { background: #fff; color: #111; border: 2px solid #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); font: 700 21px/1 Georgia, "Times New Roman", serif; letter-spacing: 0; text-transform: none; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-toggle { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.side-toggle svg { transition: transform .3s var(--ease); }
@media (max-width: 860px) { .side-toggle { display: none; } }
@media (min-width: 861px) {
  .app { transition: grid-template-columns .35s var(--ease); }
  .app.slim { grid-template-columns: 76px minmax(0, 1fr); }
  .side { overflow-x: hidden; }
  .side .nav a, .side .nav button.navbtn, .side .nav-label, .side .who b, .side .who span { white-space: nowrap; }
  .side .nav-label, .side .nav a > span:not(.badge):not(.bi), .side .nav button.navbtn > span, .side .nav .chev, .side .nav .sub, .side .brand img.word, .side .who > div, .side .who .icon-btn, .side-foot > .btn { transition: opacity .18s var(--ease); }
  .app.fading .side .nav-label, .app.fading .side .nav a > span:not(.badge):not(.bi), .app.fading .side .nav button.navbtn > span, .app.fading .side .nav .chev, .app.fading .side .nav .sub, .app.fading .side .brand img.word, .app.fading .side .who > div, .app.fading .side .who .icon-btn, .app.fading .side-foot > .btn { opacity: 0; }
  .app.collapsed .side { padding: 22px 12px 18px; }
  .app.collapsed .side-toggle svg { transform: rotate(180deg); }
  .app.collapsed .brand-row { flex-direction: column; gap: 22px; }
  .app.collapsed .brand { padding: 4px 0 0; } .app.collapsed .brand img.word { display: none !important; }
  .app.collapsed .nav-label, .app.collapsed .nav .chev, .app.collapsed .nav .sub, .app.collapsed .nav a > span:not(.badge):not(.bi), .app.collapsed .nav button.navbtn > span { display: none; }
  .app.collapsed .nav a, .app.collapsed .nav button.navbtn { justify-content: center; padding: 11px 0; }
  .app.collapsed .nav a.on::after { right: 7px; top: 7px; width: 5px; height: 5px; }
  .app.collapsed .nav .badge { position: absolute; top: 3px; right: 5px; margin: 0; padding: 1px 5px; font-size: 9px; }
  .app.collapsed .side .who { justify-content: center; padding: 8px 4px; } .app.collapsed .side .who > div, .app.collapsed .side .who .icon-btn { display: none; }
  .app.collapsed .side-foot > .btn { font-size: 0; gap: 0; padding: 0; width: 100%; }
}

/* inline logo (no network dependency) */
.brand { color: #fff; }
[data-theme="light"] .brand { color: #151515; }
.brand svg.mark { height: 24px; width: auto; flex: none; display: block; }
.brand svg.word { height: 11px; width: auto; flex: none; display: block; }
@media (min-width:861px){ .app.collapsed .brand svg.word { display: none; } .app.collapsed .brand svg.mark { display: block; height: 22px; } }

/* FAQ: answers span the full width, and open/close slowly */
details.faq p { max-width: none; }
details.faq summary svg { transition: transform .75s var(--ease), color .4s ease; }
@media (prefers-reduced-motion: reduce) { details.faq summary svg { transition: none; } }

/* paragraphs run the full width of the page */
.page-head p { max-width: none; }
.page-head > div:first-child { flex: 1 1 320px; }
.page-head > div:first-child p { width: 100%; }

/* document pop-up (terms and conditions etc.) */
.modal.doc { width: min(980px, 100%); display: flex; flex-direction: column; gap: 16px; }
.doc-frame { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; height: min(72vh, 820px); }
.doc-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* tags keep their own layout wherever they sit, so the label is always centred */
.pill, .st { display: inline-flex !important; align-items: center !important; justify-content: center; line-height: 1 !important; margin-bottom: 0 !important; opacity: 1 !important; overflow: visible !important; text-overflow: clip !important; flex: none; vertical-align: middle; }
.pill { padding-top: 0; padding-bottom: 0; }

/* questionnaires */
.qn-sec { display: flex; flex-direction: column; gap: 4px; }
.qn-qs { display: flex; flex-direction: column; gap: 22px; margin-top: 18px; }
.qq { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 90px; }
.qq-label { font-weight: 600; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.qq-hint { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.qreq { font: 500 9.5px var(--tech); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-left: 6px; vertical-align: 2px; }
.qq textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.qq textarea.input::placeholder { font-style: italic; color: var(--faint); opacity: .8; }
.qq .input { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
.qq .input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.qq .checks .chk span { height: auto; min-height: 34px; padding: 7px 14px; white-space: normal; line-height: 1.35; }
.qq.qmiss { padding: 12px 14px; margin: -12px -14px; border-radius: 14px; background: var(--orange-soft); box-shadow: 0 0 0 1.5px var(--orange) inset; }
.qq.qmiss .qreq { display: none; }
.qq.qmiss .qq-label::after { content: "  Needs an answer"; font: 500 10px var(--tech); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.qscale { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px; column-gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.qscale em { grid-column: 2; grid-row: 2; text-align: center; font-style: normal; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.qscale span:last-child { text-align: right; }
.qscale input.unset { opacity: .35; }
.qa { color: var(--ink); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.qa a { text-decoration: underline; color: var(--accent-text); }
.qdots { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.qdots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); } .qdots i.on { background: var(--orange); }
.qdots span:first-child { margin-right: 4px; } .qdots span:last-child { margin-left: 4px; }
.qchanged { border-left: 3px solid var(--orange); padding-left: 12px; }
.qwas { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qn-card { display: flex; flex-direction: column; gap: 10px; min-height: 220px; text-decoration: none; transition: border-color .2s; } .qn-card:hover { border-color: var(--orange); }
.qn-foot { display: flex; flex-direction: column; gap: 14px; border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
form[data-form="qn"] { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 520px) { .qscale { grid-template-columns: 1fr 1fr; } .qscale input { grid-column: 1 / -1; grid-row: 2; } }

/* questionnaire pages */
form[data-form="qn"] [hidden] { display: none !important; }
.qn-progress { display: flex; flex-direction: column; gap: 12px; }
.qn-meter { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.qn-meter i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #ff9a4d, #ff5b05); transition: width .5s var(--ease); }
.qn-card .qn-meter { margin-top: 4px; }
.qn-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.qn-step { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); font: 500 11px var(--tech); color: var(--muted); display: grid; place-items: center; transition: .2s; }
.qn-step:hover { border-color: var(--orange); color: var(--ink); }
.qn-step.done { background: var(--orange-soft); border-color: color-mix(in srgb, var(--orange) 45%, transparent); color: var(--accent-text); }
.qn-step.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.qn-nav { display: flex; flex-direction: column; gap: 12px; }
.qn-nav .btn[disabled] { opacity: .4; pointer-events: none; }
.qcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qcols .qq-label { font-size: 17px; }
.qcols .qq-hint { min-height: 2.8em; }
.qfollow { padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--orange) 45%, transparent); }
.qwords { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qswatches { display: grid; grid-template-columns: repeat(4, minmax(0, 132px)); gap: 10px; }
.qsw { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; transition: .2s; }
.qsw input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.qsw b { font-weight: 600; font-size: 12.5px; }
.qsw-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; aspect-ratio: 1; }
.qsw-chips i { border-radius: 6px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .25) inset; }
.qsw:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 1px var(--orange) inset; }
.qsw:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.qsw-pill i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 1px; vertical-align: -1px; }
.qsw-pill i:last-of-type { margin-right: 6px; }
.qrange { display: flex; flex-direction: column; gap: 6px; }
.qrange-track { position: relative; height: 28px; }
.qrange-track::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line-2); }
.qrange-fill { position: absolute; top: 12px; height: 4px; border-radius: 4px; background: var(--orange); }
.qrange-track input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.qrange-track input::-webkit-slider-runnable-track { background: none; }
.qrange-track input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); cursor: grab; }
.qrange-track input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid var(--surface); cursor: grab; }
.qrange-track input::-moz-range-track { background: none; }
.qrange.unset .qrange-fill, .qrange.unset .qrange-track input { opacity: .4; }
.qrange-ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.qrange-ticks span { flex: 1; text-align: center; } .qrange-ticks span:first-child { text-align: left; } .qrange-ticks span:last-child { text-align: right; }
.qrange-val { font-size: 13px; color: var(--accent-text); font-weight: 600; }
.qrange.unset .qrange-val { color: var(--faint); font-weight: 400; }
.qtrack { display: inline-grid; grid-template-columns: auto minmax(120px, 220px) auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.qtrack-bar { position: relative; height: 4px; border-radius: 4px; background: var(--line-2); }
.qtrack-bar i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); transform: translate(-50%, -50%); }
@media (max-width: 760px) { .qcols { grid-template-columns: 1fr; } .qcols .qq-hint { min-height: 0; } .qswatches { grid-template-columns: repeat(2, minmax(0, 132px)); } }
@media (max-width: 520px) { .qwords { grid-template-columns: 1fr; } .qtrack { grid-template-columns: 1fr; } .qrange-ticks { font-size: 10px; } }
.steps-list { margin: 0 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.steps-list b { color: var(--ink); font-weight: 600; }

.hero .svc { color: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .35); }

/* Google Drive logo tile */
.ft.gdrive { background: #fff; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.ft.gdrive svg { width: 22px; height: auto; display: block; }
.ft.notion { border: 1px solid rgba(0,0,0,.08); }
.ft.notion svg { width: 24px; height: 24px; display: block; }

/* client folders: every card the same height; services are small icons with a hover label */
.folders { align-items: stretch; }
.folder { display: flex; flex-direction: column; }
.folder .body { flex: 1; min-height: 0; }
.folder h3 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.folder .sub1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder .row > div { flex: 1; min-width: 0; }
.svcs { flex-wrap: nowrap; align-items: center; min-height: 52px; }
.svc.ico { position: relative; width: 30px; height: 30px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; flex: none; cursor: default; outline: none; }
.svc.ico .i { width: 15px; height: 15px; }
.svc.ico:hover, .svc.ico:focus-visible { color: var(--ink); border-color: var(--orange); background: var(--orange-soft); }
.svc.ico::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); transform: translateY(4px); background: var(--ink); color: var(--solid); font: 500 10px/1 var(--tech); letter-spacing: .07em; text-transform: uppercase; padding: 6px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s var(--ease); z-index: 5; }
.svc.ico:hover::after, .svc.ico:focus-visible::after { opacity: 1; transform: none; }
.folder:hover .svc.ico:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.folder .sub1 { display: flex; gap: 0; white-space: nowrap; }
.folder .sub1 .ind { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.folder .sub1 .yr { flex: none; }
.folder .sub1 .yr::before { content: "\00a0·\00a0"; }

/* small brand logos in buttons and the sidebar */
.i.gd, .i.gd path { stroke: none !important; }
.bi { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #fff; flex: none; }
.bi svg { width: 14px; height: 14px; display: block; }
.btn .bi { width: 18px; height: 18px; } .btn .bi svg { width: 13px; height: 13px; }

/* services and pricing columns */
.plans-wrap { overflow-x: auto; margin-top: 12px; border-radius: 18px; }
.plans { display: grid; grid-template-columns: 112px repeat(var(--n), minmax(190px, 1fr)); min-width: 860px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); gap: 1px; }
.plans > div { padding: 18px 16px; min-width: 0; background: var(--solid); }
.pl { font: 400 11px var(--tech); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; }
.pc.head { display: flex; flex-direction: column; gap: 4px; position: relative; padding-top: 26px; }
.pc.head b { font-weight: 700; font-size: 17px; letter-spacing: -.01em; } .pc.head span:not(.pop) { color: var(--muted); font-size: 13px; }
.plans > .pc.hot { background: color-mix(in srgb, var(--solid) 92%, var(--ink) 8%); }
.pop { position: absolute; top: 0; left: 14px; background: var(--orange); color: #fff; font: 600 9.5px/1 var(--tech); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px 5px; border-radius: 0 0 9px 9px; }
.pc p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0; }
.pc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pc li { position: relative; padding-left: 16px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.pc li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.pc.inv { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pc .amt { display: flex; align-items: baseline; gap: 6px; } .pc .amt b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; } .pc .amt small { color: var(--muted); font-size: 13px; }
.pc .fine { color: var(--muted); font-size: 12.5px; }
.pc.act { display: flex; align-items: center; } .pc.act .btn { width: 100%; justify-content: center; }

/* documents: slim cards, three across */
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } }
.card.doc { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.doc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.doc-top > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-top b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-badge { flex: none; width: 40px; height: 40px; border-radius: 9px; background: var(--orange); color: #fff; display: grid; place-items: center; font: 500 10.5px var(--tech); letter-spacing: .06em; }
.card.doc > p { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.doc-file { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-actions { display: flex; gap: 6px; flex-wrap: wrap; }


/* three-up grids stay three across until a phone, then stack */
@media (max-width: 640px) { .g3 { grid-template-columns: minmax(0, 1fr); } }
/* portal logins: the privacy note and the master login sit side by side */
.top-pair { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.top-pair > .banner { margin: 0; }
.top-pair > .card { padding: 18px 20px; }
.top-pair > .card .card-head { margin-bottom: 8px; }
@media (max-width: 860px) { .top-pair { grid-template-columns: minmax(0, 1fr); } }

/* Tyson's photo avatar */
.avatar.photo { background: #2a2623 center / cover no-repeat; color: transparent; font-size: 0; }

/* orange buttons: a slow light sweep, the gradient shifts and the button lifts on hover */
.btn.primary { position: relative; overflow: hidden; background-size: 200% 100%; background-position: 0% 0; transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-position .9s var(--ease), border-color .25s; }
.btn.primary::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .42) 50%, transparent 68%); transform: translateX(-130%); transition: transform .9s var(--ease); }
.btn.primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 18px 36px -12px rgba(255, 91, 5, 1), 0 0 0 4px rgba(255, 91, 5, .16); }
.btn.primary:hover::after { transform: translateX(130%); }
.btn.primary:active { transform: translateY(0) scale(.985); box-shadow: 0 8px 20px -10px rgba(255, 91, 5, .9); }
@media (prefers-reduced-motion: reduce) { .btn.primary, .btn.primary::after { transition: none; } .btn.primary:hover::after { transform: translateX(-130%); } }

/* 3 and 6 month retainer prices */
.pc .six { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.pc .six + .six { margin-top: 4px; }
.pc .six .term { font: 500 9.5px var(--tech); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 7px; }
.pc .six.hot { color: var(--ink); } .pc .six.hot .term { color: var(--accent-text); border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: var(--orange-soft); }
.pc .six b { font-weight: 700; font-size: 15px; }
.pc .six em { font-style: normal; color: var(--ok); font-size: 11.5px; }

/* client header: client details on the left, project details on the right */
.glass.cd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 22px; padding: 0; overflow: hidden; }
.cd > section { padding: 16px 22px 8px; min-width: 0; }
.cd > section + section { border-left: 0; }
.cd-h { font: 500 10.5px var(--tech); letter-spacing: .12em; text-transform: uppercase; opacity: .72; margin-bottom: 4px; }
.cd-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.cd-row:first-of-type { border-top: 0; }
.cd-row > span:first-child { font: 400 10px var(--tech); letter-spacing: .09em; text-transform: uppercase; opacity: .72; padding-top: 3px; }
.cd-row b { font-weight: 600; font-size: 15px; display: block; }
.cd-row a { color: inherit; } .cd-row a:hover { text-decoration: underline; }
.cd-row .ems { display: grid; gap: 6px; } .cd-row .em { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cd .web { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.cd .wi { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); flex: none; }
.cd .wi .i { width: 15px; height: 15px; }
.cd-svcs { display: flex; flex-wrap: wrap; gap: 6px; }
.cd-svc { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); font-size: 12px; white-space: nowrap; }
.cd-svc .i { width: 14px; height: 14px; }
.cd-link { margin-left: 8px; text-decoration: underline; font-size: 13px; }
@media (max-width: 860px) { .glass.cd { grid-template-columns: minmax(0, 1fr); } .cd > section + section { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); } }
@media (max-width: 520px) { .cd-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.hero-id { position: absolute; top: clamp(18px, 2.4vw, 26px); right: clamp(22px, 3vw, 34px); font: 500 12px var(--tech); letter-spacing: .12em; opacity: .75; z-index: 2; }

/* phone: slide-out menu can be closed, theme lives in it, and the top buttons are icons */
.side-close, .side-theme, .side-scrim { display: none; }
.ic-m { display: none; }
@media (max-width: 860px) {
  .side { z-index: 41; }
  .side.open { box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
  .side-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .side.open + .side-scrim { opacity: 1; pointer-events: auto; }
  .side-close { display: grid; width: 34px; height: 34px; border-radius: 9px; flex: none; }
  .side-theme { display: inline-flex; width: 100%; justify-content: center; }
  .top-theme { display: none; }
}
@media (max-width: 520px) {
  .top .btn:has(.ic-m) { width: 38px; padding: 0; }
  .top .btn .ic-d { display: none; } .top .btn .ic-m { display: inline-grid; place-items: center; }
}

/* plans on a phone: each plan is its own card, stacked, nothing scrolls sideways */
.plan-cards { display: none; }
@media (max-width: 760px) {
  .plans-wrap { display: none; }
  .plan-cards { display: grid; gap: 14px; margin-top: 12px; }
  .plan-card { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--solid); padding: 20px 18px 18px; display: grid; gap: 14px; min-width: 0; }
  .plan-card.hot { border-color: color-mix(in srgb, var(--orange) 55%, transparent); background: color-mix(in srgb, var(--solid) 92%, var(--ink) 8%); }
  .plan-card .pop { top: 0; left: 18px; }
  .pk-head { display: flex; flex-direction: column; gap: 3px; padding-top: 6px; }
  .pk-head b { font-weight: 700; font-size: 19px; letter-spacing: -.01em; } .pk-head span { color: var(--muted); font-size: 13.5px; }
  .pk { display: grid; gap: 7px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
  .pk > .pl { font: 400 10.5px var(--tech); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
  .pk p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
  .pk ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .pk li { position: relative; padding-left: 16px; font-size: 14px; color: var(--muted); }
  .pk li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
  .pk .amt { display: flex; align-items: baseline; gap: 6px; } .pk .amt b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; } .pk .amt small, .pk .fine { color: var(--muted); font-size: 13px; }
  .pk .six { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-top: 6px; color: var(--ink); }
  .pk .six .term { font: 500 9.5px var(--tech); letter-spacing: .08em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent); background: var(--orange-soft); color: var(--accent-text); border-radius: 99px; padding: 3px 7px; }
  .pk .six b { font-weight: 700; font-size: 15px; } .pk .six em { font-style: normal; color: var(--ok); font-size: 12px; }
  .pk.act { border-top: 0; padding-top: 2px; } .pk.act .btn { width: 100%; justify-content: center; }
}
details.faq[data-closing] summary svg { transform: none; color: inherit; }

/* invoices on a phone: each invoice is a small stacked card
   invoice number (left) and status (right), issued date, then the amount */
@media (max-width: 640px) {
  .tbl-wrap:has(.c-no) { overflow: visible; margin: 0; }
  .tbl-wrap:has(.c-no) table { min-width: 0; display: block; }
  .tbl-wrap:has(.c-no) thead { display: none; }
  .tbl-wrap:has(.c-no) tbody { display: grid; gap: 10px; }
  .tbl-wrap:has(.c-no) tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .tbl-wrap:has(.c-no) td { display: block; padding: 0; border: 0; text-align: left; }
  .tbl-wrap:has(.c-no) tbody tr:last-child td { border: 0; }
  .tbl-wrap:has(.c-no) td.c-no { grid-column: 1; grid-row: 1; }
  .tbl-wrap:has(.c-no) td.c-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .tbl-wrap:has(.c-no) td.c-client { grid-column: 1 / -1; grid-row: 2; font-size: 13px; color: var(--muted); }
  .tbl-wrap:has(.c-no) td.c-issued { grid-column: 1 / -1; grid-row: 3; font-size: 13px; color: var(--muted); }
  .tbl-wrap:has(.c-no) td.c-issued::before { content: "Issued "; }
  .tbl-wrap:has(.c-no) td.c-amount { grid-column: 1 / -1; grid-row: 4; font-size: 20px; text-align: left; margin-top: 4px; }
  .tbl-wrap:has(.c-no) td.c-act { grid-column: 1 / -1; grid-row: 5; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .tbl-wrap:has(.c-no) td.c-act .acts { justify-content: flex-start; }
  .tbl-wrap:has(.c-no) td[colspan] { grid-column: 1 / -1; }
}

/* plan cards on a phone are accordions */
@media (max-width: 760px) {
  .plan-card.acc { display: block; padding: 0; overflow: hidden; }
  .plan-card.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; }
  .plan-card.acc > summary::-webkit-details-marker { display: none; }
  .plan-card.acc > summary > .i { flex: none; width: 20px; height: 20px; transition: transform .75s var(--ease), color .4s ease; }
  .plan-card.acc[open] > summary > .i { transform: rotate(45deg); color: var(--orange); }
  .plan-card.acc[data-closing] > summary > .i { transform: none; color: inherit; }
  .plan-card.acc .pk-head { padding-top: 0; gap: 5px; }
  .pk-tag { font: 500 10.5px var(--tech); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); display: block; }
  .pk-head .pop-inline { align-self: flex-start; margin-top: 4px; background: var(--orange); color: #fff; font: 600 9.5px/1 var(--tech); letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; }
  .pk-body { display: grid; gap: 14px; padding: 0 18px 18px; }
  .pk-body > .pk:first-child { margin-top: 0; }
}
@media (max-width: 760px) { .pk-head .pk-tag { color: var(--accent-text); font-size: 10.5px; } }
@media (max-width: 760px) { .ch-wide { flex: 1 1 100%; min-width: 0; } .ch-wide h2 { text-wrap: wrap; font-size: clamp(26px, 8.2vw, 34px) !important; } }

/* smaller service pickers in the client forms */
.checks.sm { gap: 6px; }
.checks.sm .chk span { height: 26px; padding: 0 11px; font-size: 11.5px; font-weight: 500; letter-spacing: .01em; }
/* client icon upload */
.av-row { display: flex; align-items: center; gap: 16px; }
.av-row .avatar { width: 64px; height: 64px; border-radius: 16px; font-size: 18px; }
.av-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.av-actions .small { flex-basis: 100%; }

/* tap-to-rank questions */
.qrank { display: flex; flex-wrap: wrap; gap: 8px; }
.qrank-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px solid var(--line-2); font-weight: 600; font-size: 12.5px; color: var(--muted); text-align: left; transition: .2s; }
.qrank-opt:hover { border-color: var(--orange); color: var(--ink); }
.qrank-n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--tech); border: 1px dashed var(--line-2); flex: none; }
.qrank-opt.on { border-color: var(--orange); background: var(--orange-soft); color: var(--ink); }
.qrank-opt.on .qrank-n { background: var(--orange); border: 0; color: #fff; }
.qrank-opt:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.qrank-list { margin: 0; padding-left: 20px; } .qrank-list li { padding: 2px 0; }

/* note shown inside a questionnaire */
.qn-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--orange-soft); border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent); font-size: 13px; line-height: 1.5; color: var(--ink); }
.qn-note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--accent-text); }

/* Clients menu: when it closes, each client slides up into the Clients button and fades, the lowest travelling furthest,
   so the list looks like it stacks under the word. Opening plays it in reverse, top to bottom. */
.nav .sub > div > a { transition: transform .45s var(--ease), opacity .3s var(--ease), background .2s, color .2s; transition-delay: calc(var(--i, 0) * 18ms); }
.nav .sub:not(.open) > div > a { transform: translateY(calc((var(--i, 0) + 1) * -100%)); opacity: 0; transition-delay: 0ms; }
.nav .chev { transition: transform .35s var(--ease); }
@media (prefers-reduced-motion: reduce) { .nav .sub > div > a { transition: none; } }

/* studio contact cards on the client home page: the same surfaces as every other card, so they follow light and dark mode */
.ccard { --cc-ink: var(--ink); --cc-muted: var(--muted); --cc-line: var(--line);
  display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 26px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.ccard-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.ccard-tag { color: var(--cc-muted); text-align: right; }
.ccard-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ccard-who .avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.ccard-logo { display: grid; place-items: center; background: var(--ember); }
.ccard-logo img { width: 24px; height: auto; }
.ccard-who > div { min-width: 0; }
.ccard-who b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.ccard-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--cc-muted); margin-top: 3px; overflow-wrap: break-word; min-width: 0; }
.ccard-sub svg { width: 13px; height: 13px; flex: none; }
.ccard-stats { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.ccard-stats > div { display: flex; flex-direction: column; gap: 4px; padding-right: 16px; }
.ccard-stats > div + div { padding-left: 16px; padding-right: 0; border-left: 1px solid var(--cc-line); }
.ccard-stats span { font-size: 12px; color: var(--cc-muted); }
.ccard-stats b { font-size: 14px; font-weight: 500; line-height: 1.35; }
.ccard-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.ccard-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--ink); font-weight: 500; font-size: 14px; border: 1px solid var(--line); transition: border-color .2s, transform .2s, filter .2s; }
.ccard-btn.email { background: var(--stone); color: var(--on-stone); border-color: transparent; }
.ccard-btn:hover { border-color: var(--orange); transform: translateY(-1px); } .ccard-btn.email:hover { filter: brightness(.95); }
.ccard-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ccard-btn svg { width: 17px; height: 17px; }

/* Curbside Creator placeholder */
.cdrop-empty { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; border: 1px dashed var(--line-2); }
.nav button.navbtn.on-group { color: var(--ink); }

/* Curbside Creator: social media content */
.soc-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 18px; align-items: start; }
.soc-side { display: flex; flex-direction: column; gap: 14px; }
.soc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.soc-tile { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: border-color .2s, transform .2s; }
.soc-tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.soc-tile.on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange) inset; background: var(--orange-soft); }
.soc-tile b { font-size: 12.5px; font-weight: 600; } .soc-tile > span:last-child { font-size: 11px; color: var(--muted); }
.soc-thumb { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.soc-thumb canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.soc-stage { position: sticky; top: 86px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(14px, 2vw, 24px); border-radius: var(--r-card); background: var(--ember); }
.soc-stage .cap { color: #fff; }
/* the preview always fits the screen height, so it stays in view while the details are filled in on the left */
.soc-stage canvas { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 250px); border-radius: 10px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .75); background: #222; }
.soc-stage.story canvas { max-height: calc(100vh - 230px); }
.soc-drop { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s; }
.soc-drop:hover { border-color: var(--orange); background: var(--orange-soft); }
.soc-toggle { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; } .soc-toggle input { width: 18px; height: 18px; accent-color: var(--orange); }
@media (max-width: 760px) { .soc-wrap { grid-template-columns: minmax(0, 1fr); } .soc-stage { position: static; } .soc-stage canvas, .soc-stage.story canvas { max-height: none; width: 100%; max-width: 420px; } }

/* post maker: click the preview to see it full size */
#soc-canvas { cursor: zoom-in; } #soc-canvas:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.modal.zoom { width: auto; max-width: min(94vw, 1000px); padding: 14px; }
.zoom-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-left: 6px; }
.zoom-img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; border-radius: 10px; }

/* Curbside Creator: studio activation form */
.cr-activate { grid-template-columns: repeat(2, minmax(0, 220px)); align-items: end; }
@media (max-width: 520px) { .cr-activate { grid-template-columns: 1fr; } }
