/* ColaPeak client app. Brand: paper, night ink, peak red; Bricolage Grotesque + Instrument Sans. */
:root {
  --paper: #F3EEE4;
  --paper-2: #E8E0D0;
  --card: #FFFDF8;
  --ink: #17140F;
  --soft: #6A6254;
  --rule: #D9D0BF;
  --peak: #D1350F;
  --peak-deep: #A52A0C;
  --pine: #2B6A49;
  --pine-wash: #DDEBDD;
  --amber: #8A5A0B;
  --amber-wash: #F4E3BC;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --r-lg: 20px;
  --r-md: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100dvh; overscroll-behavior-y: none;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(30px, 7vw, 40px); font-weight: 750; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.top {
  display: flex; align-items: center; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 20px 10px;
  position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font: 750 18px/1 var(--display); letter-spacing: -0.02em; }
.top-biz { margin-left: auto; font-size: 14px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-help {
  flex: none; border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 7px 14px;
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.top-help[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 14px 20px calc(var(--nav-h) + 40px + env(safe-area-inset-bottom)); }
.view > * + * { margin-top: 18px; }
.view-head p { margin-top: 8px; color: var(--soft); max-width: 46ch; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--card); border-top: 1px solid var(--rule); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tabs a {
  display: grid; justify-items: center; gap: 2px; padding: 7px 2px 5px; text-decoration: none; border-radius: 12px;
  font-size: 11.5px; font-weight: 600; color: var(--soft); position: relative;
}
.tabs svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -6px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--peak); }
.tabs .tab-help { display: none; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 232px 1fr; grid-template-rows: auto 1fr; }
  .top { grid-column: 1 / -1; padding: 16px 28px; border-bottom: 1px solid var(--rule); }
  .top-help { display: none; }
  .tabs {
    position: sticky; top: 64px; align-self: start; grid-auto-flow: row; grid-template-columns: 1fr; gap: 2px; border: 0; background: none; padding: 22px 14px;
  }
  .tabs a { grid-template-columns: 24px 1fr; justify-items: start; align-items: center; gap: 12px; padding: 10px 12px; font-size: 15px; }
  .tabs a[aria-current="page"] { background: var(--paper-2); }
  .tabs a[aria-current="page"]::before { top: 12px; left: -14px; width: 3px; height: 20px; border-radius: 0 3px 3px 0; }
  .tabs .tab-help { display: grid; }
  main { margin: 0; padding: 30px 40px 60px; max-width: 760px; }
}

/* ---------- pieces ---------- */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px; }
.card.flush { padding: 0; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: var(--r-md); border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 650; text-decoration: none; transition: transform .12s var(--ease), background .15s;
}
.btn:active { transform: scale(.98); }
.btn.peak { background: var(--peak); border-color: var(--peak); color: #fff; }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=date], textarea, select {
  width: 100%; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 13px 14px; font-size: 16px;
}
textarea { resize: vertical; min-height: 112px; line-height: 1.45; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.error { color: var(--peak-deep); font-weight: 600; font-size: 14px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--paper-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.requested { color: var(--soft); }
.pill.working, .pill.building { background: var(--amber-wash); color: var(--amber); }
.pill.done, .pill.live, .pill.paid { background: var(--pine-wash); color: var(--pine); }
.pill.demo { color: var(--ink); }
.pill.failed, .pill.due { background: #F6D9CF; color: var(--peak-deep); }

.banner { border-radius: var(--r-md); padding: 10px 14px; font-size: 14px; background: var(--amber-wash); color: #5E3D05; }

#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 30;
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); max-width: calc(100vw - 32px);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- sign-in ---------- */
.signin { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; }
.signin-main { width: 100%; max-width: 440px; margin: 0 auto; padding: calc(40px + env(safe-area-inset-top)) 24px 24px; align-self: center; }
.signin-peak { width: 68px; height: 68px; margin-bottom: 26px; }
.signin h1 { font-size: clamp(34px, 9vw, 46px); }
.signin-main > p { margin: 12px 0 26px; color: var(--soft); font-size: 17px; max-width: 32ch; }
.signin form { display: grid; gap: 14px; }
.signin .back { background: none; border: 0; padding: 0; margin-bottom: 26px; }
.signin .field small { font-size: 13.5px; }
.choice { display: grid; gap: 10px; }
.swap { margin-top: 16px; font-size: 14.5px; color: var(--soft); }
.swap .link { color: var(--ink); font-weight: 600; }
.notice { margin: -10px 0 18px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 68px; }
.peek { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--soft); }
.step-welcome { text-align: left; }
.code-input { font: 700 28px/1 var(--display) !important; letter-spacing: .3em; text-align: center; padding: 16px 10px !important; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--soft); font-size: 14.5px; }
.signin-foot { padding: 18px 24px calc(22px + env(safe-area-inset-bottom)); text-align: center; font-size: 14px; color: var(--soft); }
.preview-box { margin-top: 26px; border: 1.5px dashed var(--rule); border-radius: var(--r-lg); padding: 16px; }
.preview-box h3 { font-size: 15px; }
.preview-box p { font-size: 14px; color: var(--soft); margin: 4px 0 12px; }

.steps { list-style: none; counter-reset: step; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 13px 14px; font-size: 16.5px; line-height: 1.35; }
.steps li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 16px/1 var(--display); }
.steps .glyph { width: 24px; height: 24px; vertical-align: -6px; margin: 0 2px; padding: 2px; border-radius: 6px; background: var(--paper-2); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps li:nth-child(1) .glyph circle { fill: var(--ink); stroke: none; }
.install .signin-main > p { margin-bottom: 22px; }

/* ---------- home ---------- */
.site { display: block; text-decoration: none; }
.frame { background: var(--paper-2); border-bottom: 1px solid var(--rule); padding: 10px 10px 0; }
.frame-bar { display: flex; align-items: center; gap: 5px; padding: 0 4px 9px; }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.frame-bar span { margin-left: 8px; flex: 1; background: var(--card); border-radius: 6px; padding: 3px 10px; font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px 8px 0 0; background: #fff; }
.frame-view iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; transform: scale(.25); transform-origin: 0 0; border: 0; pointer-events: none; }
.frame-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site-meta { padding: 16px 18px 18px; }
.site-meta .row { align-items: flex-start; }
.site-url { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); word-break: break-all; }

/* Demo, Building, Live: a real sequence, so it reads as one. */
.stages { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.stages li { padding-top: 9px; border-top: 3px solid var(--rule); font-size: 13.5px; font-weight: 600; color: var(--soft); }
.stages li.past { border-color: var(--ink); color: var(--ink); }
.stages li.now { border-color: var(--peak); color: var(--ink); }
.stages li.now.live { border-color: var(--pine); }
.stages small { display: block; font-weight: 400; font-size: 12.5px; color: var(--soft); margin-top: 1px; }

.glance { display: grid; gap: 12px; }
@media (min-width: 560px) { .glance { grid-template-columns: 1fr 1fr; } }
.glance a { text-decoration: none; display: block; }
.glance .label { font-size: 14px; color: var(--soft); }
.glance .big { font: 700 22px/1.15 var(--display); letter-spacing: -0.02em; margin-top: 4px; }

/* ---------- the trail: Requested, Working on it, Done ---------- */
.trail svg { width: 100%; height: auto; display: block; overflow: visible; }
.trail-mass { fill: var(--paper-2); }
.trail-path { fill: none; stroke: var(--rule); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 7; }
.trail-done { fill: none; stroke: var(--peak); stroke-width: 3.5; stroke-linecap: round; }
.trail-stop { fill: var(--card); stroke: var(--rule); stroke-width: 2.5; }
.trail-stop.reached { fill: var(--peak); stroke: var(--card); }
.trail-flag path { fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; }
.trail-flag .cloth { fill: var(--rule); stroke: none; transform-origin: 0 -18px; }
.trail[data-step="2"] .trail-flag path { stroke: var(--ink); }
.trail[data-step="2"] .trail-flag .cloth { fill: var(--pine); }
.trail.landed[data-step="2"] .trail-flag .cloth { animation: flag .7s var(--ease); }
@keyframes flag { 0% { transform: scaleX(0); } 60% { transform: scaleX(1.15); } 100% { transform: scaleX(1); } }
.trail-you { fill: var(--peak); stroke: var(--card); stroke-width: 3; }
.trail-pulse { fill: none; stroke: var(--peak); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.trail[data-step="1"] .trail-pulse { animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.trail-labels { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 13.5px; color: var(--soft); }
.trail-labels li:nth-child(2) { text-align: center; }
.trail-labels li:nth-child(3) { text-align: right; }
.trail-labels b { display: block; font: 650 15px/1.2 var(--display); letter-spacing: -0.01em; color: var(--soft); }
.trail-labels .reached b { color: var(--ink); }
.trail-labels .now b { color: var(--peak-deep); }
.trail[data-step="2"] .trail-labels .now b { color: var(--pine); }
.trail-say { margin-top: 16px; font: 650 19px/1.25 var(--display); letter-spacing: -0.015em; }

/* compact track for lists */
.track { display: flex; align-items: center; gap: 0; width: 84px; flex: none; }
.track i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--rule); background: var(--card); flex: none; }
.track s { flex: 1; height: 2.5px; background: var(--rule); }
.track .on { background: var(--peak); border-color: var(--peak); }
.track.s2 .on { background: var(--pine); border-color: var(--pine); }

.req-list { display: grid; gap: 10px; }
.req { display: block; text-decoration: none; transition: border-color .15s; }
.req:hover { border-color: var(--soft); }
.req-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 550; }
.req .row { margin-top: 12px; font-size: 14px; color: var(--soft); }
.req .state { font-weight: 650; color: var(--ink); }

.quote { white-space: pre-wrap; overflow-wrap: anywhere; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.photos a, .photos .thumb { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); position: relative; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(23, 20, 15, .78); color: #fff; font-size: 15px; line-height: 1; }
.attach { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px dashed var(--rule); border-radius: var(--r-md); font-weight: 600; font-size: 15px; cursor: pointer; }
.attach svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.attach:focus-within { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--soft); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* conversation bubbles: requests, help */
.thread { display: grid; gap: 8px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; background: var(--paper-2); justify-self: start; border-bottom-left-radius: 5px; }
.msg.mine { justify-self: end; background: var(--ink); color: var(--paper); border-radius: 16px; border-bottom-right-radius: 5px; }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg small { display: block; margin-top: 3px; font-size: 12px; opacity: .65; }
.send { display: flex; gap: 8px; align-items: flex-end; }
.send textarea { min-height: 48px; height: 48px; flex: 1; }
.send .btn { flex: none; }

.empty { text-align: center; padding: 34px 20px; }
.empty svg { width: 76px; height: auto; margin: 0 auto 14px; }
.empty h2 { margin-bottom: 6px; }
.empty p { color: var(--soft); max-width: 34ch; margin: 0 auto; }
.empty .btn { margin-top: 18px; }

/* ---------- billing ---------- */
.plan .amount { font: 750 46px/1 var(--display); letter-spacing: -0.035em; }
.plan .amount small { font: 500 16px/1 var(--sans); letter-spacing: 0; color: var(--soft); }
.plan-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.plan-facts dt { font-size: 13.5px; color: var(--soft); }
.plan-facts dd { margin: 2px 0 0; font-weight: 650; }
.invoices { list-style: none; margin: 0; padding: 0; }
.invoices li { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--rule); }
.invoices li:first-child { border-top: 0; }
.invoices .grow b { display: block; font-weight: 600; }
.invoices .grow span { font-size: 13.5px; color: var(--soft); }

dialog.sheet { border: 0; padding: 0; background: var(--card); color: var(--ink); width: min(440px, 100vw); max-width: 100vw; border-radius: 22px; }
dialog.sheet::backdrop { background: rgba(23, 20, 15, .5); }
@media (max-width: 520px) { dialog.sheet { margin: auto 0 0; border-radius: 22px 22px 0 0; } dialog.sheet[open] { animation: rise .28s var(--ease); } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet-in { padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); }
.sheet-in > * + * { margin-top: 14px; }
.sheet-line { display: flex; justify-content: space-between; padding: 12px 0; border-block: 1px solid var(--rule); font-weight: 600; }
.paid-mark { width: 60px; height: 60px; border-radius: 50%; background: var(--pine); display: grid; place-items: center; margin: 6px auto 0; animation: pop .4s var(--ease); }
.paid-mark svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .35s .2s ease-out forwards; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- traffic ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px; }
.stat b { display: block; font: 750 30px/1 var(--display); letter-spacing: -0.03em; }
.stat span { font-size: 13.5px; color: var(--soft); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart rect { fill: var(--ink); }
.chart rect.today { fill: var(--peak); }
.chart rect:hover { fill: var(--peak); }
.chart line { stroke: var(--rule); }
.chart text { font: 500 10px var(--sans); fill: var(--soft); }
.chart-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--soft); margin-top: 6px; }
.sources { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.sources .row { justify-content: space-between; font-size: 15px; }
.sources .bar { height: 6px; border-radius: 3px; background: var(--paper-2); margin-top: 5px; overflow: hidden; }
.sources .bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }

/* ---------- help ---------- */
.contact { display: grid; gap: 10px; }
@media (min-width: 560px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact a { text-decoration: none; }
.contact b { display: block; font: 700 19px/1.2 var(--display); letter-spacing: -0.015em; margin-top: 2px; overflow-wrap: anywhere; }

/* ---------- studio (the owner's side) ---------- */
.is-admin .top { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); backdrop-filter: none; }
.is-admin .brand svg rect { fill: #2A251C; }
.is-admin .top-biz { color: var(--ink); background: var(--paper); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; }
.tabs a .badge {
  position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--peak); color: #fff; font: 700 11.5px/18px var(--sans); text-align: center;
}
@media (min-width: 900px) { .tabs a .badge { position: static; grid-column: 3; } .tabs a:has(.badge) { grid-template-columns: 24px 1fr auto; } }

.studio h2 { margin-top: 30px; }
.studio .view-head h1 { max-width: 16ch; }
.studio .who { font-size: 13.5px; color: var(--soft); font-weight: 600; }
.studio a.who { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.studio .who-row { margin: 0 0 8px; }
.studio .req .row:last-child { flex-wrap: wrap; row-gap: 6px; }
.studio .client .row:first-child { margin-top: 0; color: var(--ink); font-size: 16px; }
.row.wrap { flex-wrap: wrap; }
.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pill.flag { background: var(--peak); color: #fff; }
.pill.flag::before { display: none; }

.inbox { display: grid; gap: 10px; }
.inbox-row { display: flex; align-items: center; gap: 12px; border-left: 4px solid var(--ink); }
.inbox-row.k-signup, .inbox-row.k-billing { border-left-color: var(--peak); }
.inbox-row a { display: grid; gap: 4px; text-decoration: none; }
.inbox-row a .row { justify-content: space-between; }
.inbox-row b { font: 700 17px/1.2 var(--display); letter-spacing: -0.01em; margin-top: 4px; }
.inbox-row .clip { color: var(--soft); font-size: 15px; }
.pill.kind { background: none; padding: 0; font-size: 13.5px; }
.pill.kind::before { display: none; }
.tally { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--soft); }
.tally b { color: var(--ink); }

.chips { display: flex; gap: 8px; }
.chips button, .seg button {
  border: 1px solid var(--rule); background: var(--card); border-radius: 999px; padding: 8px 15px; font-weight: 600; font-size: 14.5px; min-height: 40px;
}
.chips button span { color: var(--soft); font-weight: 500; margin-left: 2px; }
.chips button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.seg button { border-radius: var(--r-md); min-height: 48px; padding: 6px 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button:last-child[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); }
.seg .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.ask { font-size: 18px; line-height: 1.45; }

.form-grid { display: grid; gap: 12px; align-items: end; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.studio .connect { display: grid; gap: 12px; margin-top: 10px; }
.studio .connect .row { align-items: flex-end; }
.studio .field.stage { flex: 1 1 100%; }
@media (min-width: 560px) { .studio .field.stage { flex: 0 0 170px; } }
.seg button { font-size: 14px; line-height: 1.15; }
.studio .stack > * + * { margin-top: 14px; }
.studio textarea[name=studio_notes] { min-height: 130px; }
.invoices.flat { border-top: 1px solid var(--rule); }
.invoices.flat li { padding-inline: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
