/* Inbox: the swatch card. Every chat carries one chip; its colour is its state.
   Lacquer red means "needs you" and nothing else. */
:root {
  --ground: #FBFAF8;
  --surface: #FFFFFF;
  --hover: #F5F0EC;
  --selected: #EFE7E1;
  --ink: #1F1A1C;
  --ink-2: #554C50;
  --ink-3: #6E6569;
  --rule: #E6E0DB;
  --rule-soft: #EFEAE6;

  --needs: #C8102E;
  --needs-text: #A80D27;
  --needs-wash: #FBEEF0;
  --you: #6B2D5C;
  --you-wash: #F3EAF0;
  --assistant: #E4CDBE;
  --assistant-wash: #F4EAE3;
  --booked: #B9C9B2;
  --booked-text: #3F5A38;
  --closed: #BFC4CB;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* the phone's own edges (status bar / Dynamic Island, home bar, iOS 26 Safari's floating toolbar): the page runs
     underneath them (viewport-fit=cover), so content keeps clear; 0 everywhere else */
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #root { height: 100%; }
/* The page itself never scrolls, only its panes: on iOS a swipe past a pane's edge (a chat opens at its bottom)
   otherwise moves the page behind, which then keeps the next swipes and the chat seems stuck. */
html, body { overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--ground); color: var(--ink);
  font: 14.5px/1.45 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--you);
}
::selection { background: var(--assistant); color: var(--ink); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--closed) transparent; }
.num { font-variant-numeric: tabular-nums; }
.code { font: 500 11px/1 var(--mono); letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- swatch chips ---------- */
.chip { display: inline-block; width: 12px; height: 18px; border-radius: 3px; flex: none; background: var(--c); }
.s-needs { --c: var(--needs); }
.s-you { --c: var(--you); }
.s-assistant { --c: var(--assistant); }
.s-booked { --c: var(--booked); }
.s-closed { --c: var(--closed); }
.repaint { animation: repaint 520ms var(--ease) both; }
@keyframes repaint { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px;
  font-weight: 600; font-size: 14px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
  transition: background 160ms, border-color 160ms; white-space: nowrap;
}
.btn:hover { background: var(--hover); border-color: #D8D0CA; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #3A3236; }
.btn:disabled { opacity: .45; cursor: default; }
.icon-btn { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sign in ---------- */
.signin { height: 100%; overflow-y: auto; display: grid; place-items: center; padding: 24px 16px; }
.signin form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.signin .swatches { display: flex; gap: 6px; margin-bottom: 18px; }
.signin .swatches .chip { width: 18px; height: 30px; }
.signin h1 { font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.signin p { color: var(--ink-2); margin: -6px 0 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input {
  height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--rule); background: var(--surface);
  font-size: 15px; font-weight: 400; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--ink); }
.signin .btn { height: 44px; justify-content: center; margin-top: 6px; }
.error { color: var(--needs-text); font-size: 14px; }

/* ---------- shell ---------- */
.app { --rail: 216px; height: 100vh; height: 100dvh; display: grid; grid-template-columns: var(--rail) minmax(320px, 380px) minmax(0, 1fr); }
.app.info { grid-template-columns: var(--rail) minmax(320px, 380px) minmax(0, 1fr) 300px; }
.app.rail-min { --rail: 64px; }
.rail { border-right: 1px solid var(--rule); padding: 24px 14px 18px; display: flex; flex-direction: column; min-height: 0; }
.rail .who { padding: 0 6px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 36px; height: 36px; border-radius: 9px; flex: none; object-fit: cover; }
.rail .who-text { min-width: 0; }
.rail .salon { font-size: 16px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .mode { font-size: 12px; color: var(--ink-3); }
.legend { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.legend button {
  width: 100%; display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center;
  padding: 8px; border-radius: 8px; font-size: 14px; text-align: left; color: var(--ink);
}
.legend button:hover { background: var(--hover); }
.legend button[aria-pressed="true"] { background: var(--selected); font-weight: 600; }
.legend .all { width: 12px; height: 18px; border-radius: 3px; border: 1.5px solid var(--ink-3); }
.legend .count { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.legend .needs .count { color: var(--needs-text); font-weight: 700; }
.rail .foot { margin-top: auto; padding: 0 2px 0 8px; display: flex; align-items: center; gap: 2px; color: var(--ink-3); font-size: 13px; }
.rail .foot .me { margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn[aria-current="true"] { background: var(--selected); color: var(--ink); }
/* collapsed: swatches and counts only */
.rail-min .rail { padding: 20px 8px 14px; align-items: center; }
.rail-min .rail .who { padding: 0; }
.rail-min .who-text, .rail-min .legend .name, .rail-min .foot .me { display: none; }
.rail-min .legend { width: 100%; }
.rail-min .legend button { grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 8px 0; }
.rail-min .legend .count { font-size: 11px; }
.rail-min .rail .foot { flex-direction: column; padding: 0; gap: 4px; }

/* ---------- list ---------- */
.list { border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 0; background: var(--ground); }
.list-head { padding: 24px 20px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.list-head h2 { font-size: 21px; font-weight: 650; letter-spacing: -.015em; }
.list-head .side-tools { display: flex; align-items: center; gap: 4px; }
.list-head .compact { display: none; }
.list-head .heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.list-head .logo { width: 32px; height: 32px; border-radius: 8px; }
.chips-row { display: none; }
.salon-small { display: none; }
.rows { list-style: none; }
/* Pull to refresh: .pull scrolls; .pull-body moves with the finger, the spinner sits above it (app.js usePull) */
.pull { overflow-y: auto; flex: 1; min-height: 0; position: relative; overscroll-behavior-y: contain; }
.pull-body { min-height: 100%; background: var(--ground); position: relative; }
.pull-spin { position: absolute; top: 0; left: 50%; width: 28px; height: 28px; margin-left: -14px; opacity: 0;
  transform: translateY(-40px); pointer-events: none; }
.pull-spin svg { width: 100%; height: 100%; display: block; }
.pull-spin line { stroke: var(--ink-3); stroke-width: 2.2; stroke-linecap: round; }
.pull-spin.busy svg { animation: pull-spin 800ms steps(8) infinite; }
@keyframes pull-spin { to { transform: rotate(360deg); } }
@media (pointer: coarse) { .pull { overscroll-behavior-y: none; } }
a.row { color: inherit; text-decoration: none; }
.row {
  --row: var(--ground);
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left;
  padding: 13px 20px; background: var(--row); transition: background 120ms; position: relative;
}
.rows li + li .row::before { content: ""; position: absolute; top: 0; left: 72px; right: 0; border-top: 1px solid var(--rule-soft); }
.row:hover { --row: var(--hover); }
.row[aria-current="true"] { --row: var(--selected); }
.row .body { min-width: 0; }
.row .top { display: flex; align-items: center; gap: 8px; }
.row .top .chip { width: 8px; height: 12px; }
.row .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.needs .name { color: var(--ink); font-weight: 650; }

/* initials with the channel's mark on the corner */
.avatar {
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--assistant-wash); color: var(--ink-2); font-size: 14px; font-weight: 600; letter-spacing: .01em;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl .badge { width: 24px; height: 24px; }
.avatar.xl .badge svg.i { width: 15px; height: 15px; }
.avatar .badge {
  position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 2px var(--row, var(--surface));
}
.avatar .badge svg.i { width: 13px; height: 13px; stroke-width: 2.1; }
.via { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); flex: none; align-self: center; }
.via svg.i { width: 15px; height: 15px; stroke-width: 1.9; }
.ch-whatsapp svg { color: #1FA855; }
.ch-instagram svg { color: #D62976; }
.ch-telegram svg { color: #229ED9; }
.row .time { margin-left: auto; font-size: 12px; color: var(--ink-3); flex: none; }
.row.needs .time { color: var(--needs-text); font-weight: 600; }
.row .snippet { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.state-line { font-size: 12.5px; margin-top: 3px; color: var(--ink-3); font-weight: 500; }
.state-line.needs { color: var(--needs-text); font-weight: 600; }
.state-line.you { color: var(--you); }
.state-line.booked { color: var(--booked-text); }
.empty { padding: 48px 24px; color: var(--ink-2); text-align: left; }
.empty h3 { font-size: 17px; color: var(--ink); margin-bottom: 4px; font-weight: 600; }

/* ---------- thread ---------- */
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--ground); }
.thread-head { padding: 12px 20px 12px 24px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 12px; background: var(--surface); }
.thread-head .back { display: none; }
.settings .thread-head .title { flex: 1; }
.who-btn { flex: 0 1 auto; min-width: 0; margin-right: auto; display: flex; align-items: center; gap: 12px; text-align: left; padding: 4px 10px 4px 4px; margin-left: -4px; border-radius: 12px; transition: background 120ms; }
.who-btn:hover, .who-btn[aria-expanded="true"] { background: var(--hover); }
.thread-head .title { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.thread-head h1, .thread-head .t { font-size: 17px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-head .meta { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-head .actions { display: flex; gap: 6px; align-items: center; }
.btn svg.i { width: 18px; height: 18px; margin-left: -2px; }
.notice { margin: 16px 24px 0; padding: 10px 14px; border-radius: var(--radius); background: var(--needs-wash); color: var(--needs-text); font-size: 14px; }
.notice b { font-weight: 650; }
.notice.you { background: var(--you-wash); color: var(--you); }
.notice span { color: var(--ink-2); }
.list .notice.down { margin: 0 16px 12px; }
.list .notice.off { margin: 0 16px 12px; background: var(--hover); color: var(--ink); }
.switches { display: grid; gap: 4px; margin-top: 12px; }
.kv select.return-min { padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); font: inherit; color: inherit; min-width: 0; max-width: 100%; }
.kv select.return-min:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0;
  border-top: 1px solid var(--rule-soft); cursor: pointer; }
.switch span { display: grid; gap: 2px; font-weight: 550; }
.switch small { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--rule); position: relative;
  flex: none; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch input:disabled { opacity: .5; }
.list .notice.push { margin: 0 16px 12px; background: var(--hover); color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notice.push > div:first-child { flex: 1 1 200px; }
.notice-actions { display: flex; gap: 8px; }
.icon-btn[aria-pressed="true"] { color: var(--ink); }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior-y: contain; padding: 8px 0 24px; }
.timeline { display: grid; grid-template-columns: 6px minmax(0, 1fr); column-gap: 22px; }
.timeline .strip { background: var(--c); border-radius: 0; }
.timeline .strip.first { border-top-right-radius: 3px; }
.timeline .strip.last { border-bottom-right-radius: 3px; }
.item { padding: 6px 24px 6px 0; display: flex; flex-direction: column; align-items: flex-start; }
.day { padding: 18px 24px 4px 0; text-align: center; }
.day span { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--hover); font-size: 12px; font-weight: 500; color: var(--ink-3); }
.label { font-size: 12px; color: var(--ink-3); margin: 10px 2px 4px; }
.item.out { align-items: flex-end; }
.bubble { max-width: min(560px, 70%); padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.bubble.client { background: var(--surface); box-shadow: 0 1px 2px rgba(31, 26, 28, .06); border-top-left-radius: 4px; }
.bubble.bot { background: var(--assistant-wash); border-top-right-radius: 4px; }
.bubble.owner { background: var(--you); color: #fff; border-top-right-radius: 4px; }
.bubble.owner::selection { background: #fff; color: var(--you); }
.event { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin: 12px 0; padding: 6px 12px; border-radius: 10px; background: var(--surface); font-size: 12.5px; color: var(--ink-2); text-align: center; }
.event .chip { width: 8px; height: 14px; }
.event.needs { color: var(--needs-text); font-weight: 600; }
.event.booked { color: var(--booked-text); font-weight: 600; }
.event .detail { color: var(--ink-3); font-weight: 400; }

.composer { border-top: 1px solid var(--rule); padding: 12px 24px 14px; background: var(--surface); }
.composer form { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 180px; padding: 11px 14px; border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--ground); font-size: 15px; line-height: 1.4;
}
.composer textarea:focus { outline: none; border-color: var(--ink-3); background: var(--surface); }
.composer textarea::placeholder { color: var(--ink-3); }
.composer .send { height: 44px; width: 44px; justify-content: center; padding: 0; }
.composer .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.composer .error { margin-top: 8px; }
.placeholder { flex: 1; display: grid; place-items: center; padding: 32px; }
.placeholder .key { display: flex; flex-direction: column; gap: 10px; max-width: 300px; }
.placeholder h2 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.placeholder .k { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: 14px; }

/* ---------- client panel ---------- */
.side { border-left: 1px solid var(--rule); padding: 18px 22px 24px; overflow-y: auto; overscroll-behavior-y: contain; background: var(--surface); }
.side-head { display: flex; align-items: flex-start; justify-content: space-between; margin-right: -10px; }
.side-name { font-size: 17px; font-weight: 650; margin: 12px 0 6px; overflow-wrap: anywhere; }
.side h3 { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 26px 0 6px; }
.side h3:first-child { margin-top: 4px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px; }
.kv span:first-child { color: var(--ink-3); }
.kv span:last-child { text-align: right; overflow-wrap: anywhere; }
.booking { padding: 10px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14px; display: grid; grid-template-columns: 8px 1fr; gap: 12px; }
.booking .chip { width: 8px; height: 100%; }
.booking b { font-weight: 600; display: block; }
.booking span { color: var(--ink-2); }
.muted { color: var(--ink-3); font-size: 14px; }

/* ---------- the colours guide (a popover: light dismiss, no modal) ---------- */
.legend .guide-link { color: var(--ink-3); font-size: 13px; margin-top: 10px; grid-template-columns: 12px 1fr; }
.legend .guide-link svg.i { width: 16px; height: 16px; margin-left: -2px; }
.legend .guide-link:hover { color: var(--ink); }
.rail-min .legend .guide-link { grid-template-columns: 1fr; }
.chips-row .guide-chip { width: 34px; padding: 0; justify-content: center; color: var(--ink-3); }
.chips-row .guide-chip svg.i { width: 18px; height: 18px; }
.guide {
  margin: auto; width: min(440px, calc(100% - 32px)); padding: 18px 20px 20px; border: 1px solid var(--rule);
  border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 48px rgba(31, 26, 28, .16);
}
.guide::backdrop { background: rgba(31, 26, 28, .18); }
.guide-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -8px 8px 0; }
.guide h2 { font-size: 16px; font-weight: 650; }
.guide dl > div { padding: 10px 0; border-top: 1px solid var(--rule-soft); }
.guide dt { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.guide dt .chip { width: 10px; height: 15px; }
.guide dd { color: var(--ink-2); font-size: 14px; margin: 3px 0 0 20px; }

/* ---------- settings ---------- */
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.settings .scroll { background: var(--surface); }
.settings-app .settings .thread-head { display: none; }             /* desktop: the page carries its own title */

/* settings pages: a title, one line on what the page is for, then groups of rows split by hairlines */
.st-page { max-width: 680px; padding: 40px 48px 96px; }
.st-title { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.st-lede { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; max-width: 60ch; }
.st-group { margin-top: 36px; }
.st-group > h2 { font-size: 15px; font-weight: 650; }
.st-desc { margin-top: 3px; color: var(--ink-3); font-size: 13.5px; max-width: 62ch; }
.st-group > h2 + .st-list, .st-desc + .st-list { margin-top: 12px; }
.st-list { list-style: none; border-top: 1px solid var(--rule-soft); }
.st-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
  min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.st-row > .st-main:first-child { grid-column: 1 / 3; }
.st-row.st-indent { padding-left: 50px; }
.st-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ground);
  border: 1px solid var(--rule-soft); color: var(--ink-2); }
.st-ico svg.i { width: 19px; height: 19px; }
.st-face { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--assistant-wash);
  color: var(--ink-2); font-size: 13px; font-weight: 650; letter-spacing: .02em; }
.st-main { min-width: 0; }
.st-main b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.st-main small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13.5px; overflow-wrap: anywhere; }
.st-main small.st-ok { display: flex; align-items: center; gap: 5px; color: var(--ink-2); }
.st-main small svg.i { width: 15px; height: 15px; flex: none; stroke-width: 2.2; color: var(--booked-text); }
.st-main code, .st-form code { font-family: var(--mono); font-size: .9em; background: var(--hover); padding: 1px 5px; border-radius: 5px; color: var(--ink); }
.st-you { font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: var(--hover); padding: 1px 7px; border-radius: 999px; }
.st-end { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.st-value { color: var(--ink-3); font-size: 14px; }
.st-soon { font-size: 12.5px; font-weight: 600; color: var(--ink-3); background: var(--hover); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.st-remove { color: var(--ink-3); }
@media (hover: hover) { .st-row .st-remove, .note-head .st-remove { opacity: 0; transition: opacity 150ms; }
  .st-row:hover .st-remove, .st-row:focus-within .st-remove, .note:hover .st-remove, .note:focus-within .st-remove { opacity: 1; } }
.st-sub { grid-column: 2 / -1; padding: 14px 0 6px; }
.st-open { align-items: start; }
.st-open > .st-ico, .st-open > .st-face { margin-top: 2px; }
.st-form { display: grid; gap: 14px; }
.st-row > .st-form { grid-column: 1 / -1; padding: 6px 0 4px; }
.st-form p { color: var(--ink-2); font-size: 13.5px; max-width: 62ch; }
.st-form .row-actions { margin-top: 2px; }
.st-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.st-field { display: grid; gap: 6px; font-size: 13px; font-weight: 550; color: var(--ink-3); }
.st-field input, .st-select { height: 40px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface);
  font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); min-width: 0; width: 100%; transition: border-color 150ms, box-shadow 150ms; }
.st-field input.mono { font-family: var(--mono); font-size: 13.5px; }
.st-field input::placeholder { color: var(--ink-3); opacity: .7; }
.st-field input:focus, .st-select:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--hover); }
.st-select { width: auto; height: 36px; padding: 0 30px 0 12px; font-size: 14px; }
.st-inline { display: flex; gap: 8px; }
.st-inline input { flex: 1; }
.st-field .seg { justify-self: start; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.st-add { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-top: 4px; padding: 0 12px 0 0;
  color: var(--ink-2); font-size: 14.5px; font-weight: 600; border-radius: 8px; transition: color 150ms; }
.st-add svg.i { width: 18px; height: 18px; }
.st-add:hover { color: var(--ink); }
.st-note { margin-top: 20px; padding: 10px 14px; border-radius: var(--radius); background: var(--hover); color: var(--ink); font-size: 14px; }
.st-note.error { background: var(--needs-wash); color: var(--needs-text); }
.st-note code { font-family: var(--mono); }
.st-meta { margin-top: 12px; color: var(--ink-3); font-size: 12.5px; }
.st-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--ink-3); font-size: 12.5px; }
.error.small { font-size: 12.5px; margin-top: 8px; }
/* a choice of two or three, side by side */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--hover); }
.seg button { height: 28px; padding: 0 12px; border-radius: 7px; border: 1px solid transparent; font-size: 13.5px; font-weight: 600; color: var(--ink-3);
  transition: background 150ms, color 150ms; }
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.st-switch { appearance: none; flex: none; width: 42px; height: 26px; border-radius: 13px; background: var(--rule); position: relative; cursor: pointer; transition: background 180ms; }
.st-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(31, 26, 28, .2); transition: transform 180ms cubic-bezier(.2, .8, .2, 1); }
.st-switch:checked { background: var(--ink); }
.st-switch:checked::after { transform: translateX(16px); }
.st-switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.st-switch:disabled { opacity: .5; }
/* what EasyWeek says, read-only: label and value pairs inside a row */
.st-row.st-top { align-items: start; }
.st-top > .st-ico, .st-top > .st-face { margin-top: 1px; }
.st-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.st-ico:has(img) { background: none; border: 0; }
.st-text { margin-top: 6px; color: var(--ink-2); font-size: 14px; white-space: pre-wrap; max-width: 62ch; }
.kvs { display: grid; gap: 4px; margin-top: 8px; font-size: 14px; }
.kvs > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
.kvs dt { color: var(--ink-3); }
.kvs dd { color: var(--ink); overflow-wrap: anywhere; }
.kvs dd .line { display: block; font-variant-numeric: tabular-nums; }
.kvs dd .soft { color: var(--ink-3); }
.kvs a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; transition: text-decoration-color 150ms; }
.kvs a:hover { text-decoration-color: var(--ink-3); }
/* the business's notes: read by default, one opens in place to edit */
.notes .note { border-bottom: 1px solid var(--rule-soft); }
.note-read { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; width: 100%; padding: 14px 10px; margin: 0 -10px;
  width: calc(100% + 20px); text-align: left; border-radius: 10px; transition: background 150ms; }
.note-read:not(:disabled):hover { background: var(--ground); }
.note-read b { font-size: 15px; font-weight: 600; }
.note-read .note-body { grid-column: 1; margin-top: 3px; color: var(--ink-2); font-size: 14px; line-height: 1.5; white-space: pre-line;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.note-hint { grid-column: 2; grid-row: 1; align-self: center; font-size: 13px; font-weight: 600; color: var(--ink-3); opacity: 0; transition: opacity 150ms; }
.note-read:hover .note-hint, .note-read:focus-visible .note-hint { opacity: 1; }
@media (hover: none) { .note-hint { display: none; } }
.note.just .note-read { animation: just-saved 2.4s cubic-bezier(.2, .8, .2, 1); }
@keyframes just-saved { 0%, 30% { background: var(--booked-wash, #EEF3EC); } 100% { background: transparent; } }
.note.open { padding: 14px 0 16px; }
.note-edit { display: grid; gap: 8px; animation: note-open 220ms cubic-bezier(.2, .8, .2, 1); }
@keyframes note-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.note-title { height: 32px; border: 0; padding: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
.note-title:focus { outline: none; }
.note-title::placeholder { color: var(--ink-3); opacity: .7; }
.note-text { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface);
  font: inherit; font-size: 15px; line-height: 1.5; color: var(--ink); resize: vertical; field-sizing: content; min-height: 5.6em;
  transition: border-color 150ms, box-shadow 150ms; }
.note-text::placeholder { color: var(--ink-3); opacity: .75; }
.note-text:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--hover); }
.note-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.note-actions .st-remove { margin-left: auto; opacity: 1; }
.note-add { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.note-add .st-add { margin-right: 6px; }
.chip-btn { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--rule); color: var(--ink-2); font-size: 13.5px; font-weight: 550;
  transition: border-color 150ms, color 150ms, background 150ms; }
.chip-btn:hover { border-style: solid; border-color: var(--ink-3); color: var(--ink); background: var(--ground); }
.st-empty { margin-top: 12px; padding: 18px 16px; border-radius: var(--radius); background: var(--ground); color: var(--ink-2); font-size: 14px; }
/* settings is its own screen: the sidebar keeps the chats' business switcher in place, the sections where the filters
   were, and the way back where the gear was */
.app.settings-app { grid-template-columns: 216px minmax(0, 1fr); }
.settings-nav { overflow-y: auto; overscroll-behavior-y: contain; background: var(--ground); }
.settings-nav .list-head { display: none; }
.settings-nav .secs { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
.settings-nav .label { padding: 0 10px 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.settings-nav .sec { text-decoration: none; display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 10px; border-radius: 8px; font-size: 15px; color: var(--ink); }
.settings-nav .sec:hover { background: var(--hover); }
.settings-nav .sec[aria-current="page"] { background: var(--selected); font-weight: 600; }
.settings-nav .sec svg.i { display: none; width: 18px; height: 18px; color: var(--ink-3); }
.settings-nav .sep { height: 1px; background: var(--rule-soft); margin: 10px 10px; }
.to-chats { position: relative; }
.to-chats .badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--needs); color: #fff; font: 600 10.5px/17px var(--mono); font-style: normal; text-align: center; }
.settings-app .thread-head { min-height: 63px; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .app, .app.info { grid-template-columns: var(--rail) minmax(300px, 360px) minmax(0, 1fr); }
  .side { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 100%); z-index: 5; box-shadow: -8px 0 28px rgba(31, 26, 28, .12); }
}
@media (max-width: 1080px) {
  .app, .app.info, .app.rail-min { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
  .rail { display: none; }
  .list-head .compact { display: grid; }
  .list-head .count-all { display: none; }
  .list-head .salon-small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
  .list-head { padding: 18px 16px 6px; }
  .chips-row { display: flex; gap: 6px; padding: 4px 16px 12px; overflow-x: auto; scrollbar-width: none; }
  .chips-row button {
    flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px;
    border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font-size: 13.5px; font-weight: 500;
  }
  .chips-row button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
  .chips-row button[aria-pressed="true"] .code { color: #E9E3DF; }
  .chips-row .chip { width: 8px; height: 14px; }
  .row { padding: 12px 16px; }
  .rows li + li .row::before { left: 68px; }
}
@media (max-width: 760px) {
  .app, .app.info, .app.rail-min { grid-template-columns: minmax(0, 1fr); }
  .app.open .list { display: none; }
  .app:not(.open) .thread { display: none; }
  .list { border-right: 0; }
  .thread-head { padding: 10px 12px 10px 6px; }
  .thread-head .back { display: grid; }
  .settings .thread-head .close { display: none; }
  .thread-head .actions .btn { padding: 0; width: 40px; justify-content: center; }
  .thread-head .actions .btn svg.i { margin: 0; }
  .thread-head .actions .btn svg.chev { display: none; }
  .thread-head .actions .btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .who-btn { padding-right: 4px; }
  .notice { margin: 12px 16px 0; }
  .item, .day { padding-right: 16px; }
  .timeline { column-gap: 14px; }
  .composer { padding: 10px 16px calc(12px + var(--sab)); }
  .app { padding: var(--sat) var(--sar) 0 var(--sal); }
  .pull-body { padding-bottom: var(--sab); }
  .settings .scroll { padding-bottom: var(--sab); }
  .settings-app .settings .thread-head { display: flex; }
  .st-page { padding: 4px 16px 56px; }
  .st-title { display: none; }
  .st-lede { margin-top: 12px; }
  .st-group { margin-top: 28px; }
  .st-fields { grid-template-columns: minmax(0, 1fr); }
  .st-sub, .st-row > .st-form { grid-column: 1 / -1; }
  .st-row.st-wrap { grid-template-columns: auto minmax(0, 1fr); row-gap: 10px; }
  .st-row.st-wrap > .st-end { grid-column: 1 / -1; justify-content: flex-start; }
  .st-row.st-wrap > .st-ico + .st-main + .st-end { grid-column: 2 / -1; }
  .bubble { max-width: 92%; }
}
@media (max-width: 1080px) {          /* no sidebar on the chats screen: the switcher sits in the list head */
  .app.settings-app { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
  .settings-nav.rail { display: flex; padding: 0; border-right: 1px solid var(--rule); }
  .settings-nav .who, .settings-nav .foot, .settings-nav .label { display: none; }
  .settings-nav .list-head { display: flex; }
  .settings-nav .list-head .salon-switch { display: block; }
  .settings-nav .secs { margin-top: 8px; padding: 0 16px calc(24px + var(--sab)); }
}
@media (max-width: 760px) {           /* phone: the sections are a list; each one opens as its own screen */
  .app.settings-app { grid-template-columns: minmax(0, 1fr); }
  .settings-app.in .settings-nav, .settings-app:not(.in) .settings { display: none; }
  .settings-nav.rail { border-right: 0; }
  .settings-nav .sec { min-height: 52px; padding: 0 4px; border-radius: 0; font-size: 16px; border-bottom: 1px solid var(--rule-soft); }
  .settings-nav .sec[aria-current="page"] { background: none; font-weight: inherit; }
  .settings-nav .sec svg.i { display: block; }
  .settings-nav .sep { height: 22px; background: none; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .repaint { animation: none; }
  * { transition: none !important; }
}

.confirm-phone { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 0 4px; border-top: 1px solid var(--rule-soft); }
.confirm-phone label { color: var(--ink-3); font-size: 13px; }
.confirm-phone .cp-row { display: flex; gap: 8px; }
.confirm-phone input { flex: 1; min-width: 0; width: 100%; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.confirm-phone input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.confirm-phone p { font-size: 12.5px; }
.confirm-phone .error { color: var(--needs-text); }

.menu-wrap { position: relative; }
.btn svg.chev { width: 14px; height: 14px; margin-left: -4px; color: var(--ink-3); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 260px; padding: 6px; display: grid;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 14px 36px rgba(31, 26, 28, .14); }
.menu button { display: grid; gap: 1px; text-align: left; padding: 9px 10px; border-radius: 8px; }
.menu button:hover, .menu button:focus-visible { background: var(--hover); outline: none; }
.menu b { font-weight: 600; font-size: 14px; }
.menu span { font-size: 12.5px; color: var(--ink-3); }

.booking .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.booking .tags em { font-style: normal; font-size: 12px; color: var(--booked-text); background: var(--assistant-wash); border-radius: 6px; padding: 1px 6px; }
.muted.small { font-size: 12.5px; margin-top: 8px; }

/* salon switcher (people of several salons) */
.salon-switch { display: inline-block; max-width: 100%; }
.list-head .salon-switch { display: none; }                              /* desktop: the rail has the salon */
@media (max-width: 1080px) {                                             /* no rail: the list head has it */
  .list-head .salon-switch { display: block; }
  .list-head .salon-btn.salon-small { display: inline-flex; }
}
.salon-btn .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the business's name is cut only when it really doesn't fit: the list head gives it the row's width (not the title's),
   the narrow sidebar lets it take two lines */
.list-head .heading { flex: 1; }
.list-head .heading > div { flex: 1; min-width: 0; }
/* the sidebar's business block (logo, name, mode) is one button; the name takes the block's width, up to two lines */
.rail .who { padding: 0; }
.rail .who .salon-switch { display: block; width: 100%; }
.who-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; margin: -6px 0; border-radius: 12px; text-align: left; }
.who-switch.salon-btn { margin: -6px 0; padding: 6px; }
.who-switch .who-text { flex: 1; display: flex; flex-direction: column; }
.rail .who-switch .salon { display: flex; align-items: center; gap: 6px; white-space: normal; overflow: visible; }
.rail-min .who-switch .who-text { display: none; }                   /* collapsed sidebar: only the logo */
.rail-min .rail .who .salon-switch { width: auto; }
.rail-min .who-switch { width: auto; justify-content: center; }
.who-switch .nm { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; }
.salon-btn { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font: inherit; color: inherit;
  padding: 2px 6px; margin: -2px -6px; border-radius: 8px; transition: background 120ms; }
.salon-btn:hover, .salon-btn[aria-expanded="true"] { background: var(--hover); }
.salon-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.salon-btn svg.chev { width: 14px; height: 14px; flex: none; color: var(--ink-3); }
.salon-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--needs); flex: none; }
.menu.left { left: 0; right: auto; }
.menu button[aria-current="true"] b { font-weight: 650; }


.menu button.off b { color: var(--ink-3); font-weight: 500; }
.menu button.add { border-top: 1px solid var(--rule); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 11px; }
.menu button.add b { display: inline-flex; align-items: center; gap: 6px; }
.menu button.add b span { font-size: 14px; color: inherit; }
.menu button.add svg.i { width: 16px; height: 16px; }
.menu-form { display: grid; gap: 8px; padding: 8px 6px 4px; border-top: 1px solid var(--rule); margin-top: 4px; }
.menu-form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-3); }
.menu-form input { font: inherit; font-size: 14px; color: var(--ink); padding: 7px 9px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); }
.menu-form .row-actions { display: flex; gap: 8px; }
.menu .menu-form .btn { display: inline-flex; height: 34px; padding: 0 12px; border-radius: 8px; }
.menu .menu-form .btn.primary:hover { background: var(--ink); }
.menu .error { padding: 4px 6px; }

/* settings: reading the business's website. Everything that moves is something happening: a page read, an item found */
.web-run { margin-top: 14px; }
.web-head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.shimmer { background: linear-gradient(90deg, var(--ink-3) 0%, var(--ink-3) 40%, var(--ink) 50%, var(--ink-3) 60%, var(--ink-3) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.8s linear infinite; }
.shimmer::after { content: "…"; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.web-pages { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 4px; }
.web-pages li { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 7px; border-radius: 999px;
  background: var(--ground); border: 1px solid var(--rule-soft); font-size: 12.5px; color: var(--ink-2); text-transform: capitalize;
  animation: rise 320ms cubic-bezier(.2, .8, .2, 1) both; }
.web-pages svg.i { width: 13px; height: 13px; stroke-width: 2.4; color: var(--booked-text); }
.web-skeleton { display: grid; gap: 10px; padding-top: 18px; }
.web-skeleton i { height: 54px; border-radius: 12px; background: linear-gradient(90deg, var(--ground) 0%, var(--hover) 50%, var(--ground) 100%);
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.web-skeleton i:nth-child(2) { width: 86%; } .web-skeleton i:nth-child(3) { width: 72%; }
.web-topic { margin-top: 22px; }
.web-topic h3 { margin-bottom: 8px; font: 600 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.web-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 12px 14px; margin-bottom: 8px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); cursor: pointer;
  transition: opacity 200ms, background 200ms, border-color 200ms; animation: rise 420ms cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
.web-item:hover { border-color: #D8D0CA; }
.web-item.off { opacity: .55; background: var(--ground); border-color: var(--rule-soft); }
.web-text { display: grid; gap: 3px; min-width: 0; }
.web-text b { font-size: 14.5px; font-weight: 600; }
.web-text > span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.web-text small { margin-top: 2px; color: var(--ink-3); font-size: 12.5px; }
.web-text small a { color: inherit; text-transform: capitalize; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px; }
.web-item .st-switch { margin-top: 1px; }
.web-foot { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 8px; margin: 18px -16px 0; padding: 12px 16px calc(12px + var(--sab));
  background: var(--surface); border-top: 1px solid var(--rule); }
.web-known { margin-top: 14px; height: 32px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--rule); text-underline-offset: 3px; }
.web-known:hover { color: var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* kept cards move into the notes they become */
::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
@media (prefers-reduced-motion: reduce) {
  .web-pages li, .web-item, .note-edit { animation: none; }
  .shimmer, .web-skeleton i { animation: none; color: var(--ink-3); }
}

/* First run: set up the assistant (#/setup). A full-screen, centred, guided flow outside the inbox layout. */
.setup { height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: var(--ground);
  padding: calc(var(--sat) + 10px) var(--sar) var(--sab) var(--sal); }
.setup-top { display: flex; align-items: center; gap: 16px; padding: 6px 20px 14px; }
.setup-dots { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; list-style: none; flex-wrap: wrap; }
.setup-dots li { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.setup-dots li i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); transition: background .3s, transform .3s; }
.setup-dots li.done i { background: var(--assistant); }
.setup-dots li.on i { background: var(--ink); transform: scale(1.35); }
.setup-dots li.on { color: var(--ink); }
.setup-dots li span { display: none; }
.setup-dots li.on span { display: inline; }
a.btn { text-decoration: none; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-3); }
.btn.ghost:hover { background: var(--hover); color: var(--ink); }

.setup-stage { overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; justify-content: center; padding: 8px 20px 24px; }
.setup-card { width: 100%; max-width: 560px; animation: setup-in .5s var(--ease) both; }
@keyframes setup-in { from { opacity: 0; transform: translateY(10px); } }

.setup-hero { text-align: center; padding: 6vh 0 2vh; }
.setup-logo { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 22px;
  background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 8px 28px rgba(31,26,28,.07); overflow: hidden; color: var(--ink-2); }
.setup-logo img { width: 100%; height: 100%; object-fit: cover; }
.setup-logo svg { width: 34px; height: 34px; }
.setup-logo.done { background: var(--assistant-wash); border-color: var(--assistant); color: var(--booked-text); animation: pop .5s var(--ease) both; }
.setup-logo.done svg { width: 38px; height: 38px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.setup-hero h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px; }
.setup-h { font-size: 21px; letter-spacing: -.01em; margin-bottom: 6px; }
.setup-body { padding-top: 4px; }
.setup-lede { color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 42ch; }
.setup-hero .setup-lede { margin: 0 auto; }

/* Step 2: EasyWeek "reading…" then the found cards sliding in */
.know-scan { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; font-weight: 600; padding: 10px 0 2px; }
.know-scan svg { width: 18px; height: 18px; color: var(--assistant); }
.know.open .know-scan { display: none; }
.know-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.know-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 12px; opacity: 0; }
.know.open .know-card { animation: know-in .5s var(--ease) both; animation-delay: var(--d); }
@keyframes know-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.know-ico { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--hover); color: var(--ink-2); overflow: hidden; }
.know-ico img { width: 100%; height: 100%; object-fit: cover; }
.know-ico svg { width: 20px; height: 20px; }
.know-ico .st-face { width: 100%; height: 100%; display: grid; place-items: center; font-size: 14px; }
.know-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.know-text b { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.know-text small { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.know-check { flex: none; color: var(--booked-text); }
.know-check svg { width: 18px; height: 18px; }

/* Step 3: channels */
.setup-channels { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.setup-channels li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: 12px; }
.setup-channels .st-ico { width: 40px; height: 40px; flex: none; }
.setup-channels .st-main { flex: 1; min-width: 0; }
.setup-channels .st-soon { margin-left: auto; }

.setup-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 20px calc(14px + var(--sab)); border-top: 1px solid var(--rule-soft); background: var(--ground); }
.setup-nav .btn { min-width: 104px; justify-content: center; }

/* the website reader drops its own card framing inside the flow (the step already gives the heading) */
.setup-body .st-group.web { margin: 10px 0 0; }
.setup-body .st-group.web > h2, .setup-body .st-group.web > .st-desc { display: none; }

@media (max-width: 560px) {
  .setup-hero h1 { font-size: 23px; }
  .setup-dots li.on span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .setup-card, .know.open .know-card, .setup-logo.done { animation: none; opacity: 1; }
  .know .know-scan { display: none; }
}
.btn.danger { background: var(--needs); border-color: var(--needs); color: #fff; }
.btn.danger:hover:not(:disabled) { background: var(--needs-text); }
.btn.danger:disabled { opacity: .4; }
.st-ico.st-danger-ico { color: var(--needs-text); }
.setup-connect { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.setup-how { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.setup-how code { font-size: 12.5px; word-break: break-all; }
