/* Salon Shastra TeamOS — UI foundation.
   Brand tokens taken from the live Salon Shastra website (salonshastra.com :root --ss-* variables,
   captured 22 Nov 2026): primary #c04000, secondary-dark #893815, secondary-light #ffe3d5,
   text #111, muted #5a5a5a, border #1111111f, radius 16px; headings Montserrat, body Open Sans.
   Confirm against the official brand kit when available (decision D-15). Components use tokens only. */
:root {
  --brand: #c04000;          /* --ss-primary */
  --brand-dark: #893815;     /* --ss-secondary-dark */
  --brand-ink: #ffffff;
  --brand-soft: #ffe3d5;     /* --ss-secondary-light */
  --brand-tint: #fff6f1;
  --accent: #893815;
  --bg: #faf8f6;
  --surface: #ffffff;
  --surface-2: #fdfaf8;
  --line: #1111111f;         /* --ss-border */
  --text: #111111;           /* --ss-text */
  --muted: #5a5a5a;          /* --ss-muted */
  --ok: #2f7a55;  --ok-soft: #e6f3ec;
  --warn: #9a6a12; --warn-soft: #fbf1dc;
  --bad: #b23b3b;  --bad-soft: #fbe9e9;
  --info: #2d5f8a; --info-soft: #e7f0f8;
  --radius: 16px;            /* --ss-radius */
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 6px 20px rgba(17,17,17,.04);
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-family: var(--font-head); font-weight: 600; font-size: 24px; margin: 0 0 4px; letter-spacing: -.02em; }
h2 { font-family: var(--font-head); font-weight: 600; font-size: 16px; margin: 0 0 12px; }
h3 { font-family: var(--font-head); font-size: 12px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--surface); color: var(--text); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.wordmark { padding: 4px 10px 2px; }
.wordmark img { display: block; width: 150px; height: auto; }
.wordmark .wm-text { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--brand-dark); }
.wordmark small { display: block; font-family: var(--font-head); font-weight: 600; font-size: 10.5px; color: var(--muted); margin-top: 6px; letter-spacing: .08em; text-transform: uppercase; }
.nav { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; }
.nav .group { font-family: var(--font-head); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 14px 10px 4px; }
.nav a { font-family: var(--font-head); font-size: 13.5px; color: var(--text); padding: 8px 12px; border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; }
.nav a:hover { background: var(--brand-tint); text-decoration: none; }
.nav a.on { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav a.planned { color: var(--muted); opacity: .75; }
.nav .tag { font-size: 10px; padding: 1px 7px; border-radius: 99px; background: #f1ede9; color: var(--muted); }
.main { min-width: 0; }
.top { display: flex; gap: 12px; align-items: center; padding: 12px 28px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top form.search { flex: 1; max-width: 520px; }
.top input[type=search] { width: 100%; }
.top .me { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.bell { position: relative; display: inline-flex; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--text); }
.bell b { background: var(--bad); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 6px; margin-left: 6px; }
.content { padding: 24px 28px 60px; max-width: 1360px; }
.env-banner { background: var(--warn-soft); color: var(--warn); font-size: 12px; padding: 5px 28px; border-bottom: 1px solid var(--line); }
.btn.menu-toggle { display: none; }

/* Page header */
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph .sub { color: var(--muted); }
.ph .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 16px; }
.card.flush { padding: 0; }
.card .card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font-family: var(--font-head); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 12px; }
.stat.bad .n { color: var(--bad); }
.stat.ok .n { color: var(--ok); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th { font-family: var(--font-head); text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.row-link:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

/* Badges */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.grey { background: #eeece8; color: var(--muted); }
.badge.syn { background: #fff; border: 1px dashed var(--muted); color: var(--muted); }

/* Forms */
label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=datetime-local], input[type=month], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid #d9d4cc; border-radius: 10px; padding: 8px 11px; }
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.field { margin-bottom: 12px; }
.field .help { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.field .err { font-size: 12px; color: var(--bad); margin-top: 3px; }
.field.has-err input, .field.has-err select { border-color: var(--bad); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 3px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline > * { flex: 0 0 auto; }
.inline input, .inline select { width: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-family: var(--font-head); font-weight: 500; font-size: 13px; padding: 8px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; border-color: #cfc9c0; }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 500; }

/* Flash */
.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--bad-soft); color: var(--bad); }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { font-family: var(--font-head); padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--text); }

/* Task list */
.tasks { list-style: none; margin: 0; padding: 0; }
.task { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .t { font-weight: 600; }
.task .meta { font-size: 12px; color: var(--muted); }
.task .why { font-size: 11.5px; color: var(--accent); font-weight: 600; }
.task.overdue .why { color: var(--bad); }
.empty { color: var(--muted); padding: 16px 0; text-align: center; }

/* Key facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 18px; }
.fact .k { font-size: 11.5px; color: var(--muted); }
.fact .v { font-weight: 600; }
.unknown { color: var(--warn); font-weight: 600; }
.missing { color: var(--muted); font-style: italic; font-weight: 400; }
.redacted { color: var(--muted); }

/* Meter */
.meter { height: 8px; background: #eeeae4; border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand); }
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}

/* Intake rows */
.intake-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(160px, 1.4fr) 150px 150px; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.intake-row:last-of-type { border-bottom: 0; }
.intake-row .lbl { font-weight: 600; font-size: 13px; }
.intake-row .lbl .help { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.ev { font-size: 11.5px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 9px 0 9px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 15px; width: 8px; height: 8px; border-radius: 99px; background: var(--line); }
.timeline li.call::before { background: var(--info); }
.timeline li.stage_change::before, .timeline li.approval::before { background: var(--accent); }
.timeline .who { font-size: 12px; color: var(--muted); }
details.disclose summary { cursor: pointer; font-weight: 600; color: var(--brand); }
details.disclose[open] summary { margin-bottom: 10px; }
.hide { display: none !important; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, var(--brand-soft), var(--bg) 60%); }
.login { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 12px 40px rgba(137,56,21,.10); }
.login .wordmark { color: var(--brand); padding: 0 0 18px; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 20; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .btn.menu-toggle { display: inline-flex; }
  .split, .g2, .g3, .g4, .form-grid { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .top { padding: 10px 16px; }
  .intake-row { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

/* Milestone 3 — buyers */
.queue-tabs { margin-bottom: 12px; }
.pref-grid { display: grid; grid-template-columns: minmax(140px, 1fr) repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 12px; align-items: center; }
.loc-list { list-style: none; margin: 0; padding: 0; }
.loc-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.loc-list li:last-child { border-bottom: 0; }
.loc-list .rank { display: inline-block; min-width: 22px; font-weight: 600; color: var(--brand); }
.score-row { display: grid; grid-template-columns: 1fr 70px; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.score-row .why { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

/* Milestone 4 — customer forms & data requests */
body.public { background: var(--bg, #faf7f4); }
.pub-head { padding: 16px; text-align: center; border-bottom: 1px solid var(--line); background: var(--surface, #fff); }
.pub-head img { height: 40px; }
.pub-main { max-width: 760px; margin: 0 auto; padding: 16px; }
.pub-foot { max-width: 760px; margin: 0 auto 32px; padding: 0 16px; }
.qf { padding: 10px 0; border-bottom: 1px solid var(--line); }
.qf:last-child { border-bottom: 0; }
.qrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qrow > input, .qrow > select:first-child, .qrow > textarea { flex: 1 1 260px; }
.qrow .qstate { flex: 0 0 auto; width: auto; }
.help.why { color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.link-box { font-family: var(--font-mono, monospace); font-size: 13px; word-break: break-all; background: #fff; border: 1px dashed var(--line); padding: 10px; border-radius: 8px; }
.diff-row td { vertical-align: top; }
.diff-row.same { color: var(--muted); }
.pad { padding: 12px 16px; }

/* Milestone 5 — Match Desk */
.flash.warn { background: var(--warn-soft); color: var(--warn); }
.inline-form { display: inline; margin-left: 8px; }
.ok-text { color: var(--ok); }
.desk { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.desk-title { margin: 0 0 10px; }
.queue-list { list-style: none; margin: 0; padding: 0; }
.queue-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
.queue-list li.on { background: var(--brand-soft, #ffe3d5); font-weight: 600; }
.queue-list a { color: inherit; text-decoration: none; }
.match-card { display: block; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius, 16px); padding: 14px 16px; margin-bottom: 10px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.match-card:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.match-card.is-blocked { opacity: .72; }
.match-card.is-stale { border-style: dashed; }
.mc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.mc-badges { margin: 8px 0 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.mc-why { font-weight: 600; font-size: 13.5px; }
.mc-next { font-size: 13px; color: var(--brand); margin-top: 2px; }
.scores { display: flex; gap: 14px; align-items: center; }
.scores > div { text-align: center; }
.score-n { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1; }
.score-l { font-size: 11px; color: var(--muted); }
.mini-meter { height: 6px; width: 80px; background: #eeeae4; border-radius: 99px; overflow: hidden; }
.mini-meter > span { display: block; height: 100%; background: var(--brand); }
.four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat .small-n { font-size: 17px; }
table.cmp tr.fam td { background: #faf6f2; }
table.cmp tr.res-miss td:first-child { box-shadow: inset 3px 0 var(--bad); }
table.cmp tr.res-partial td:first-child { box-shadow: inset 3px 0 var(--info); }
table.cmp tr.res-unknown td:first-child { box-shadow: inset 3px 0 #c9c3bb; }
.qlist { margin: 6px 0 10px 18px; padding: 0; }
.qlist li { margin: 4px 0; }
.stage-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.stage-buttons form { display: flex; gap: 6px; align-items: center; }
.task-group { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 8px 0; }
.tile { display: block; background: #faf6f2; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; color: inherit; }
.tile .n { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.tile .l { font-size: 12px; color: var(--muted); }
.tile.hot { border-color: var(--brand); background: var(--brand-soft, #ffe3d5); }
.card.unblock { border-color: var(--brand); }
@media (max-width: 900px) { .desk { grid-template-columns: 1fr; } .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Milestone 6 — deals & teasers */
.stagebar { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; }
.stagebar span { font-size: 11.5px; padding: 4px 9px; border-radius: 99px; background: #eeeae4; color: var(--muted); }
.stagebar span.done { background: var(--ok-soft); color: var(--ok); }
.stagebar span.on { background: var(--brand); color: #fff; font-weight: 600; }
.teaser-mini { background: #faf6f2; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }

/* QA fixes — phone widths (no page should ever scroll sideways) */
.split > *, .desk > *, .four > *, .grid > * { min-width: 0; }
.card-h { flex-wrap: wrap; gap: 4px 10px; }
.inline { flex-wrap: wrap; }
.inline select, .inline input, form select, form input { max-width: 100%; min-width: 0; }
.mc-pair { min-width: 0; overflow-wrap: anywhere; }
.badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.link-box, .mono { overflow-wrap: anywhere; }

/* Milestone 7 — inbox */
.thread { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: 14px; overflow-wrap: anywhere; }
.bubble.in { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.bubble.out { align-self: flex-end; background: var(--brand-soft, #ffe3d5); }
.bubble.sys { align-self: center; font-size: 12px; color: var(--muted); background: transparent; }
.bubble-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.conv-list li.unread .t a { font-weight: 700; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.report-grid table td:last-child { text-align: right; font-weight: 600; }
pre.digest { white-space: pre-wrap; font-family: inherit; background: #faf6f2; padding: 12px; border-radius: 12px; }

/* inbox: the whole row opens the conversation */
.conv-list .task { position: relative; }
.conv-list .task .t a::after { content: ""; position: absolute; inset: 0; }

/* one-click WhatsApp follow-ups */
.quick.after-call { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.quick-item { padding: 10px 0; border-top: 1px solid var(--line); }
.quick-item:first-of-type { border-top: 0; }
.quick-head { margin-bottom: 4px; }
.quick-preview { white-space: pre-wrap; background: var(--brand-tint); border-radius: 8px; padding: 8px 10px; font-size: .92em; margin-bottom: 6px; overflow-wrap: anywhere; }
#numbers form.inline input { max-width: 170px; }

/* easy customer forms: tap buttons, steps, photos */
.qlabel { font-weight: 600; font-size: 1.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; line-height: 1.2; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.small-chips .chip span { padding: 4px 10px; font-size: .85em; color: var(--muted); background: transparent; }
.small-chips .chip input:checked + span { background: var(--brand-soft); color: var(--text); border-color: var(--brand-soft); }
.imp { margin-top: 6px; }
.inr { display: flex; align-items: center; gap: 6px; }
.inr-sym { font-weight: 600; color: var(--muted); }
.inr input { flex: 1; min-width: 0; }
.pref-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.pref-name { min-width: 150px; font-weight: 500; }
.stepbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
.stepbar::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--brand-soft); }
.stepbar-fill { height: 6px; border-radius: 3px; background: var(--brand); margin-top: -6px; transition: width .2s; }
.stepbar-text { display: block; margin-top: 4px; color: var(--muted); }
.stepnav { position: sticky; bottom: 0; display: flex; gap: 8px; justify-content: space-between; padding: 10px 0; background: var(--bg); }
.stepnav .btn.primary { margin-left: auto; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-slot { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; min-width: 0; }
.photo-slot.picked { border-style: solid; border-color: var(--brand); }
.photo-slot input { max-width: 100%; font-size: .85em; }
.photo-name { font-weight: 600; }
.ok-text { color: #1f7a4d; }

.collect-list { columns: 2 220px; margin: 6px 0 8px; padding-left: 18px; }
.collect-list li { break-inside: avoid; margin-bottom: 2px; }

.connector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.connector { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }

[hidden] { display: none !important; }

.card.narrow { max-width: 460px; }
.me-link { color: inherit; }
.me-link:hover strong { text-decoration: underline; }

/* -- Milestone 8: simpler navigation, workload, summaries, Telugu forms ------------------------------------ */
.nav a .count { font-size: 11px; font-weight: 600; min-width: 20px; text-align: center; padding: 1px 7px; border-radius: 99px; background: #efe9e4; color: var(--muted); }
.nav a .count.hot { background: var(--brand); color: #fff; }
.nav .nav-foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.statbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.stat-chip { display: inline-flex; align-items: baseline; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; color: var(--text); font-size: 13px; }
.stat-chip b { font-family: var(--font-head); font-size: 17px; }
a.stat-chip:hover { text-decoration: none; border-color: var(--brand); }
.stat-chip.bad b { color: var(--bad); } .stat-chip.ok b { color: var(--ok); } .stat-chip.warn b { color: var(--warn); }
.wait-row { display: block; padding: 8px 10px; margin: 0 0 6px; border-radius: 10px; background: var(--brand-tint); color: var(--text); }
.wait-row b { color: var(--brand-dark); margin-right: 4px; }
.wait-row:hover { text-decoration: none; background: var(--brand-soft); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card.tool { display: block; color: var(--text); margin: 0; transition: border-color .15s; }
.card.tool:hover { text-decoration: none; border-color: var(--brand); }
.card.tool h2 { color: var(--brand-dark); margin-bottom: 4px; }
.card-h.pad { padding: 14px 18px 0; }
tr.row-away td { opacity: .6; }
details.pop { display: inline-block; position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop .pop-body { position: absolute; right: 0; z-index: 10; width: 300px; text-align: left; white-space: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 30px rgba(17,17,17,.12); padding: 12px; display: grid; gap: 12px; }
details.pop .pop-body form { display: grid; gap: 6px; }
.summary-card textarea { width: 100%; }
.summary-card .inline { margin-top: 6px; }
.stuck-banner { margin: 0 0 14px; }
.proposal { border-color: var(--warn); }
.pub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: 6px 14px; color: var(--text); font-size: 14px; }
.lang-switch a.on { background: var(--brand); color: #fff; }
.lang-switch a:hover { text-decoration: none; }
html[lang="te"] body.public { font-size: 15px; line-height: 1.65; }
@media (max-width: 960px) { details.pop .pop-body { position: fixed; left: 16px; right: 16px; width: auto; top: 20%; } }

/* Milestone 9: tap-to-call, calendar */
a.tel { color: var(--brand-dark); }
.card.pulse { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); transition: box-shadow .3s; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; min-height: 160px; }
.day.today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.day-h { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.day-h b { color: var(--text); }
.ev { display: block; border-left: 3px solid var(--info); background: var(--info-soft); border-radius: 8px; padding: 5px 7px; margin-bottom: 6px; color: var(--text); font-size: 12px; }
.ev:hover { text-decoration: none; filter: brightness(.97); }
.ev.hi { border-left-color: var(--brand); }
.ev-visit { background: var(--ok-soft); border-left-color: var(--ok); }
.ev-first_contact { background: var(--brand-tint); }
.ev-time { display: block; font-weight: 600; }
.ev-ref { display: block; color: var(--muted); font-size: 11px; }
.ev-empty { color: var(--muted); font-size: 12px; text-align: center; padding-top: 30px; }
code.copy { user-select: all; word-break: break-all; }
@media (max-width: 960px) { .week { grid-template-columns: 1fr; } .day { min-height: 0; } .ev-empty { display: none; } }

/* ---- M10: saved searches, automations, progress page, lead sources ---- */
.saved-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 14px; }
.saved-chip { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); padding: 2px 4px 2px 12px; font-size: 13px; }
.saved-chip.on { border-color: var(--brand); background: var(--brand-tint); }
.saved-chip a { color: var(--text); text-decoration: none; }
.saved-chip .count { margin-left: 4px; }
.saved-chip form { display: inline; margin: 0; }
.saved-chip .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1;
  padding: 2px 6px; border-radius: 999px; }
.saved-chip .x:hover { background: var(--bad-soft); color: var(--bad); }
.save-search { display: inline-block; }
.save-search summary { list-style: none; cursor: pointer; }
.save-search summary::-webkit-details-marker { display: none; }
.save-search[open] { flex-basis: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; }
.save-search[open] summary { margin-bottom: 8px; }
.save-search input[name=name] { min-width: 260px; }
.stat-chip.info { background: var(--info-soft); color: var(--info); }
.sm-input { width: 170px; padding: 4px 8px; font-size: 13px; }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin: 4px 0; }
.big-link { display: block; word-break: break-all; font-size: 15px; padding: 10px 12px; }
.btn.ghost { background: none; border-color: transparent; }
.journey { list-style: none; margin: 18px 0 4px; padding: 0; }
.journey li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; position: relative; }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 36px; bottom: -6px; width: 2px;
  background: var(--line); }
.journey .dot { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px;
  font-weight: 600; background: var(--surface-2); border: 2px solid var(--line); color: var(--muted); }
.journey .j-done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.journey .j-done::after { background: var(--ok) !important; }
.journey .j-now .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.journey .j-next strong { color: var(--muted); font-weight: 500; }
.need-list { margin: 8px 0; padding-left: 20px; }
.need-list li { margin: 4px 0; }
.done-note { color: var(--ok); font-weight: 600; }
.funnel td { white-space: nowrap; }
.funnel th { white-space: normal; min-width: 70px; vertical-align: bottom; }
.funnel tr.total td { border-top: 2px solid var(--line); background: var(--surface-2); }
.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }
@media (max-width: 640px) { .save-search input[name=name] { min-width: 0; width: 100%; } .sm-input { width: 120px; } }
.auto-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.auto-row:last-child { border-bottom: 0; }
.auto-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.auto-dot.on { background: var(--ok); } .auto-dot.off { background: var(--bad); }
.auto-main { flex: 1; min-width: 0; }
.auto-last { margin-top: 4px; color: var(--muted); }
.auto-act { flex: 0 0 auto; text-align: right; }
.pause-box summary { list-style: none; cursor: pointer; }
.pause-box summary::-webkit-details-marker { display: none; }
.pause-box[open] form { display: flex; gap: 6px; margin-top: 8px; }
.pause-box input[name=note] { width: 170px; padding: 4px 8px; font-size: 13px; }
@media (max-width: 640px) { .auto-row { flex-wrap: wrap; } .auto-act { flex-basis: 100%; text-align: left; padding-left: 22px; } }


/* ---- Pilot program (salon owners who want help) ---------------------------------------------------------- */
.req { color: var(--bad); }
.other-in { margin-top: 6px; max-width: 420px; }
.chips.scale { align-items: center; }
.scale-end { padding: 0 4px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--text); }
.kpi b { font-size: 22px; line-height: 1.1; }
.kpi span { font-size: 12px; color: var(--muted); }
a.kpi:hover, .kpi.on { border-color: var(--brand); }
.kpi.on { background: var(--brand-tint); }
.chip-link { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; }
.chip-link b { color: var(--muted); font-weight: 600; margin-left: 2px; }
.chip-link.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip-link.on b { color: var(--brand-ink); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 6px 0; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; }
.pilot-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.pilot-steps li a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; }
.pilot-steps li.now a { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.pilot-steps li.done a { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.mark-status { margin-top: 10px; flex-wrap: wrap; }
.report-actions { flex-wrap: wrap; margin-bottom: 8px; }
.report-actions form, .inline form { display: inline; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin: 10px 0 14px; }
.score { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.score b.good { color: var(--ok); } .score b.mid { color: var(--warn); } .score b.low { color: var(--bad); }
.swot-edit textarea { min-height: 120px; }
.swot-edit.swot-strengths label { color: var(--ok); } .swot-edit.swot-weaknesses label { color: var(--bad); }
.swot-edit.swot-opportunities label { color: var(--info); } .swot-edit.swot-threats label { color: var(--warn); }
.step-edit { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.step-edit .form-grid { flex: 1; min-width: 0; }
.step-no { flex: 0 0 26px; height: 26px; border-radius: 6px; background: var(--brand); color: var(--brand-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.booking { padding: 10px 0; border-top: 1px solid var(--line); }
.booking:first-of-type { border-top: 0; }
.booking.cancelled, .booking.no_show { opacity: .7; }
.fee-table { border-collapse: collapse; margin: 4px 0; }
.fee-table th, .fee-table td { padding: 4px 10px; border: 1px solid var(--line); text-align: left; }
.msg-preview { width: 100%; font-family: inherit; }
table.answers th { width: 45%; font-weight: 500; color: var(--muted); vertical-align: top; }
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.swot-q h2 { margin-top: 0; }
.swot-q ul { padding-left: 18px; margin: 0; }
.swot-q li { margin: 4px 0; }
.swot-strengths { background: #eaf6ef; } .swot-strengths h2 { color: #1f7a4d; }
.swot-weaknesses { background: #fdecea; } .swot-weaknesses h2 { color: #b3261e; }
.swot-opportunities { background: #e9f1fb; } .swot-opportunities h2 { color: #1d5fa8; }
.swot-threats { background: #fff4de; } .swot-threats h2 { color: #9a6200; }
.steps-list { padding-left: 20px; } .steps-list li { margin: 8px 0; }
.slot-day { font-size: 14px; margin: 12px 0 4px; }
@media (max-width: 640px) {
  .swot-grid { grid-template-columns: 1fr; }
  .step-edit { flex-direction: column; }
  .kpi b { font-size: 18px; }
}
/* long checkbox labels inside a button row (e.g. "a colleague messaged this person… send anyway") wrap instead of overflowing */
.inline > label.check { flex: 1 1 240px; min-width: 0; }

/* =====================================================================================================
   Premium theme (M12): dark warm sidebar with icons, glass top bar, page bar with Back + breadcrumbs +
   module tabs, softer cards, refined tables, status pills. Later rules override the foundation above.
   ===================================================================================================== */
:root {
  --side-bg: #1d1410; --side-bg-2: #2a1d17; --side-ink: #f3e9e2; --side-muted: #b9a79b; --side-on: #3a271e;
  --bg: #f6f3f0; --line: #ece5de; --line-strong: #ddd3ca;
  --shadow: 0 1px 2px rgba(29,20,16,.05), 0 8px 24px rgba(29,20,16,.05);
  --shadow-lift: 0 2px 4px rgba(29,20,16,.06), 0 14px 34px rgba(29,20,16,.09);
  --radius: 14px; --radius-sm: 10px;
}
body { background: radial-gradient(1200px 600px at 100% -10%, #fff1e8 0%, rgba(255,241,232,0) 60%), var(--bg); background-attachment: fixed; }
.ico { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Sidebar */
.shell { grid-template-columns: 236px 1fr; }
.side { background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%); color: var(--side-ink); border-right: 0; padding: 18px 12px 12px; display: flex; flex-direction: column; }
.wordmark { display: block; padding: 6px 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 138px; filter: brightness(0) invert(1); opacity: .95; }
.wordmark small { color: var(--side-muted); }
.nav { margin-top: 14px; gap: 3px; flex: 1; }
.nav a { color: var(--side-ink); justify-content: flex-start; gap: 11px; padding: 9px 12px; font-weight: 500; opacity: .86; }
.nav a span { flex: 1; }
.nav a:hover { background: rgba(255,255,255,.06); opacity: 1; text-decoration: none; }
.nav a.on { background: var(--side-on); color: #fff; opacity: 1; box-shadow: inset 3px 0 0 var(--brand); font-weight: 600; }
.nav a.on .ico { color: #ffb48a; }
.nav .count { background: var(--brand); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 1px 7px; }
.side-foot { color: var(--side-muted); padding: 10px 12px 0; opacity: .7; }

/* Top bar */
.top { background: #fffdfb; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(29,20,16,.02), 0 6px 18px rgba(29,20,16,.04); padding: 10px 28px; }
.top form.search { position: relative; }
.top form.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.top input[type=search] { padding-left: 36px; border-radius: 99px; background: #f7f3ef; border-color: transparent; }
.top input[type=search]:focus { background: #fff; border-color: var(--brand); }
.bell { border: 0; padding: 7px; border-radius: 99px; color: var(--text); }
.bell:hover { background: #f3ede8; text-decoration: none; }
.bell b { position: absolute; top: 0; right: -2px; margin: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand) 0%, #e0763c 100%); color: #fff; font-family: var(--font-head); font-weight: 600; cursor: pointer; text-transform: uppercase; }
.avatar.lg { width: 44px; height: 44px; flex: 0 0 44px; font-size: 17px; cursor: default; }
details.user-pop .pop-body a { display: block; padding: 4px 0; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: #f3ede8; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--text); }
.status-pill.sm { padding: 2px 9px; font-size: 11.5px; cursor: default; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); flex: 0 0 8px; }
.tone-ok .dot, .dot.tone-ok { background: #2fb36b; box-shadow: 0 0 0 3px rgba(47,179,107,.18); }
.tone-warn .dot, .dot.tone-warn { background: #e29a1c; box-shadow: 0 0 0 3px rgba(226,154,28,.18); }
.tone-grey .dot, .dot.tone-grey { background: #a69a90; }
.status-pill.tone-ok { background: #e8f6ee; color: #1f6e44; }
.status-pill.tone-warn { background: #fdf2dd; color: #8a5a0c; }
.status-form { display: grid; gap: 4px; }
.status-opt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font: inherit; font-size: 13px; padding: 7px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--text); }
.status-opt:hover { background: #f5efe9; }

/* Page bar: Back + breadcrumb + module tabs */
.pagebar { padding: 12px 28px 0; max-width: 1360px; }
.crumbs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px 5px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow); }
.back:hover { text-decoration: none; border-color: var(--line-strong); }
.back .ico { width: 16px; height: 16px; }
.trail { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.trail a { color: var(--muted); font-weight: 500; }
.trail a:hover { color: var(--brand); }
.trail .sep { opacity: .5; }
.trail .here { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.subnav { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 8px 14px 10px; color: var(--muted); font-family: var(--font-head); font-size: 13px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.on { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 600; }
.content { padding-top: 20px; }

/* Headings, cards, tables, buttons */
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.ph { margin-bottom: 20px; }
.card { border-color: var(--line); box-shadow: var(--shadow); transition: box-shadow .2s ease; }
.card:hover { box-shadow: var(--shadow-lift); }
th { background: #faf7f4; color: #8a7b70; font-size: 11px; letter-spacing: .07em; }
td { border-bottom-color: #f1ebe5; }
tr.row-link:hover td { background: #fcf8f5; }
.btn { border-radius: 10px; border-color: var(--line-strong); font-weight: 600; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { box-shadow: 0 2px 8px rgba(29,20,16,.07); }
.btn.primary { background: linear-gradient(180deg, #cf4a08 0%, var(--brand) 100%); box-shadow: 0 2px 6px rgba(192,64,0,.25); }
.btn.primary:hover { background: var(--brand-dark); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=datetime-local], input[type=month], input:not([type]), select, textarea { border-color: var(--line-strong); border-radius: 10px; }
input[type=time] { font: inherit; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; min-width: 0; width: 100%; }
.kpi { box-shadow: var(--shadow); }
.kpi.bad b { color: var(--bad); }

/* Connected strip on records */
.related { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 16px; }
.related-h { font-family: var(--font-head); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.rel-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow); }
.rel-chip:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.rel-chip b { background: var(--brand-soft); color: var(--brand-dark); border-radius: 99px; padding: 0 7px; font-size: 11px; }
.rel-chip.hot b { background: var(--brand); color: #fff; }
.rel-chip.warn { border-color: #f0d9a8; }

/* Team pages */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 16px; }
.person-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.person-main { flex: 1; min-width: 0; }
.person-main .status-pill { margin-top: 4px; }
.week-table td.wcell { font-size: 12px; white-space: nowrap; }
.week-table td.wcell.on { color: #1f6e44; }
.week-table td.wcell.part { background: #fdf6e6; color: #8a5a0c; }
.week-table td.wcell.off { background: #f4f1ee; color: var(--muted); }
.week-table th.today { color: var(--brand-dark); }
.hours-grid { display: grid; gap: 6px; margin-bottom: 12px; }
.hours-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.hours-row .check { margin: 0; }
.list-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.list-row:first-of-type { border-top: 0; }
.seg { gap: 4px; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { width: 260px; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .pagebar { padding: 10px 16px 0; }
  .trail .here { max-width: 22ch; }
  .top { padding: 8px 12px; gap: 8px; }
  .top form.search { min-width: 120px; flex: 1; }
  .top .me { gap: 6px; }
}
@media (max-width: 480px) {
  .hours-row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) auto; }
  .hours-row > .muted { display: none; }
  .back span { display: none; }
  .back { padding: 5px 8px; }
}

/* Investor journey */
.verdict-box { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--line); background: #faf7f4; }
.verdict-box ul { margin: 6px 0 0; padding-left: 18px; }
.verdict-box.tone-ok { background: #eaf6ef; border-color: #bfe3cd; }
.verdict-box.tone-warn { background: #fff4de; border-color: #f0d9a8; }
.verdict-box.tone-grey { background: #f4f1ee; }
.verdict-box.tone-bad { background: #fdecea; border-color: #f3c3bf; }
.card.verdict-box h1 { margin-bottom: 6px; }
.big-badge { font-size: 12.5px; padding: 4px 12px; }
.understood { margin-bottom: 4px; }
.try-chips { margin-top: 10px; }
.try-chips .chip-link { font-size: 12px; }
.live-verdict { margin: 4px 0 12px; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 13px; background: #f4f1ee; }
.live-verdict.tone-ok { background: #e8f6ee; color: #1f6e44; }
.live-verdict.tone-warn { background: #fdf2dd; color: #8a5a0c; }
.live-verdict.tone-grey { background: #f4f1ee; color: var(--muted); }
