/*
 * dashboard.css — the owner dashboard's own layer, loaded last.
 *
 * It holds what the dashboard decides as a whole (navigation weight, where "Ask AI" lives, how much of a phone
 * screen a page header may take). The older sheets are folded into this one screen by screen.
 * Tokens only: colours, type, space and radii come from tokens.css.
 */

/* ── Navigation: five places first, everything else folded under "More" ─────────────────────────────── */
.nav-more > summary { list-style: none; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
@media (min-width: 768px) {
  .nav-more { display: block; margin-top: var(--lpk-space-2); padding-top: var(--lpk-space-2); border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); }
  .nav-more > summary { display: flex; align-items: center; gap: var(--lpk-space-3); min-height: var(--tap); padding: 0 var(--lpk-space-3); border-radius: var(--lpk-radius-sm);
    font: var(--lpk-type-small); font-weight: 700; color: var(--lpk-color-text-secondary); }
  .nav-more > summary:hover { background: var(--lpk-color-bg-sunken); color: var(--lpk-color-text-primary); }
  .nav-more > summary svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nav-more > summary circle { fill: currentColor; stroke: none; }
  .nav-more > summary .nav-more-chev { margin-left: auto; width: 20px; height: 20px; transition: transform var(--lpk-duration-fast) ease-out; }
  .nav-more[open] > summary .nav-more-chev { transform: rotate(180deg); }
  .nav-more .nav-group:first-of-type { margin-top: var(--lpk-space-2); }
}
/* Between phone and desktop the rail is icons only: the folded group shows its three dots, no label. */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-more > summary { justify-content: center; padding: 0; }
  .nav-more > summary span, .nav-more > summary .nav-more-chev { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-more > summary .nav-more-chev { transition: none; } }

/* ── "Ask AI": in the top bar on a desktop, one thumb-reach button on a phone ─────────────────── */
@media (min-width: 768px) {
  /* The bar is var(--bar-h) tall; the button sits inside it, left of the account, and no longer covers page content. */
  .hz-ai-fab { top: calc((var(--bar-h) - 40px) / 2); bottom: auto; right: var(--lpk-space-6); min-height: 40px; padding: 0 var(--lpk-space-4); box-shadow: none; z-index: 7; }
}
@media (min-width: 768px) and (max-width: 1023px) { .hz-ai-fab { right: calc(var(--lpk-space-6) + var(--tap) + var(--lpk-space-3)); } }
@media (max-width: 767px) {
  /* On a phone it stays within thumb reach above the tab bar (there is no keyboard shortcut there), a little smaller. */
  .hz-ai-fab { min-height: var(--tap); padding: 0 var(--lpk-space-4); }
  /* While a reply is being written on the Reviews page the button would sit on the draft's own buttons. */
  body[data-tab="reviews"]:has([data-hz="live-draft"]) .hz-ai-fab { display: none; }
}

/* ── Page header on a phone: the first decision must fit on the first screen ───────────────────────── */
@media (max-width: 767px) {
  .wrap-rich > h1 { font: var(--lpk-type-heading); letter-spacing: var(--lpk-tracking-heading); }
}

/* ── Home: what needs the owner today, before anything else ─────────────────────────────────────────── */
.dash-need { display: grid; gap: var(--lpk-space-3); }
.dash-need-t { font: var(--lpk-type-title); }
.dash-need-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-2); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.dash-need-item { position: relative; display: flex; align-items: center; gap: var(--lpk-space-2); min-height: var(--tap); padding: var(--lpk-space-2) var(--lpk-space-8) var(--lpk-space-2) var(--lpk-space-3);
  border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-card); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface);
  color: var(--lpk-color-text-primary); text-decoration: none; font: var(--lpk-type-small); }
.dash-need-item:hover { border-color: var(--lpk-color-border-strong); }
.dash-need-item:active { background: var(--lpk-color-bg-sunken); }
.dash-need-n { font: var(--lpk-type-title); font-variant-numeric: tabular-nums; min-width: 1.5ch; text-align: right; }

/* ── AI draft controls under a reply box ────────────────────────────────────────────────────────────── */
.ai-draft { display: grid; gap: var(--lpk-space-2); }
.ai-draft-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--lpk-space-2); }
.ai-draft-btn { min-height: var(--tap); }
.ai-draft-btn:disabled { cursor: progress; }
.ai-draft-status:empty { display: none; }
.ai-draft-restore, .rv-more { justify-self: start; min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--lpk-color-text-primary);
  font: var(--lpk-type-small); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ai-draft-restore[hidden] { display: none; }

/* ── Reviews: the ones waiting for a reply come first; counts and notes follow the list ─────────────── */
.rv-views { display: flex; flex-wrap: wrap; gap: var(--lpk-space-2); }
.rv-view { min-height: var(--tap); border-radius: var(--lpk-radius-full); }
.rv-kpis { margin-top: var(--lpk-space-4); }
.rv-text { display: grid; gap: var(--lpk-space-1); justify-items: start; }
.rv-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
/* On the Reviews page the page lead and the header chip give way to the list: the first reply box belongs on the first screen. */
@media (max-width: 767px) {
  body[data-tab="reviews"] .wrap > .muted, body[data-tab="reviews"] .wrap > .lead { display: none; }
}

/* ── Inbox: the conversations are the page; how they arrive is folded under them ───────────────────── */
.inbox-setup { border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-card); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); }
.inbox-setup > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; min-height: var(--tap); padding: var(--lpk-space-3) var(--lpk-space-8) var(--lpk-space-3) var(--lpk-space-4); position: relative; }
.inbox-setup > summary::-webkit-details-marker { display: none; }
.inbox-setup > summary::after { content: ""; position: absolute; right: var(--lpk-space-4); top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.inbox-setup[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.inbox-setup-t { font: var(--lpk-type-small); font-weight: 700; color: var(--lpk-color-text-primary); }
.inbox-setup > summary .help { margin: 0; }
.inbox-setup-body { display: grid; gap: var(--lpk-space-4); padding: 0 var(--lpk-space-4) var(--lpk-space-4); }
@media (max-width: 767px) { body[data-tab="inbox"] .wrap > .muted { display: none; } }

/* ── Motion: feedback only. transform and opacity, under 300ms, off when the owner asks for less motion ─ */
/* Press: the item answers the finger. Not on the tab bar or the rail (used all day). */
.dash-need-item, .rv-view, .ai-draft-btn { transition: scale var(--lpk-duration-fast) var(--lpk-ease-out); }
.dash-need-item:active, .rv-view:active, .ai-draft-btn:active:not(:disabled) { scale: .97; }
/* The folded Inbox section: the chevron turns with the same timing as the rail's. */
.inbox-setup > summary::after { transition: transform var(--lpk-duration-fast) var(--lpk-ease-out); }
/* An AI draft has just replaced the text: the box and its status line settle in once, so the change is seen. */
@keyframes ai-draft-in { from { opacity: .35; } to { opacity: 1; } }
@keyframes ai-draft-note-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ai-draft-landed { animation: ai-draft-in var(--lpk-duration-slow) var(--lpk-ease-out); }
.ai-draft-status.is-new { animation: ai-draft-note-in var(--lpk-duration-slow) var(--lpk-ease-out); }
/* Waiting on the AI (often over 400ms): the pressed button pulses quietly so the wait reads as work, not as a stall. */
@keyframes ai-draft-wait { 50% { opacity: .55; } }
.ai-draft[aria-busy="true"] .ai-draft-btn.is-asked { animation: ai-draft-wait 1.1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .dash-need-item, .rv-view, .ai-draft-btn, .inbox-setup > summary::after { transition: none; }
  .dash-need-item:active, .rv-view:active, .ai-draft-btn:active:not(:disabled) { scale: 1; }
  .ai-draft-landed, .ai-draft-status.is-new, .ai-draft[aria-busy="true"] .ai-draft-btn.is-asked { animation: none; }
}

/* ── Reading and writing in the owner's own language: every block says which language it is ────────── */
.tr-label { margin: 0; font: var(--lpk-type-label); letter-spacing: var(--lpk-tracking-label); color: var(--lpk-color-text-secondary); }
.tr-read, .tr-tools { display: grid; gap: var(--lpk-space-2); justify-items: start; }
.tr-read-slot, .tr-meaning, .tr-write { justify-self: stretch; }
.tr-btn { min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--lpk-color-text-primary); font: var(--lpk-type-small); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tr-btn:disabled { cursor: progress; color: var(--lpk-color-text-secondary); }
/* A translation is help for the owner, never the thing itself: a sunken block, set apart from the original and from the reply box. */
.tr-block { display: grid; gap: var(--lpk-space-1); padding: var(--lpk-space-3); border-radius: var(--lpk-radius-sm); background: var(--lpk-color-bg-sunken); }
.tr-block p { margin: 0; }
.tr-write { border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-default); border-radius: var(--lpk-radius-sm); }
.tr-write > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; padding: 0 var(--lpk-space-3); font: var(--lpk-type-small); font-weight: 700; }
.tr-write-body { display: grid; gap: var(--lpk-space-2); padding: 0 var(--lpk-space-3) var(--lpk-space-3); }
.tr-in { animation: ai-draft-note-in var(--lpk-duration-slow) var(--lpk-ease-out); }
@media (prefers-reduced-motion: reduce) { .tr-in { animation: none; } }

/* ── Team ────────────────────────────────────────────────────────────────────────────────────────────── */
.tm-list { list-style: none; margin: 0; padding: 0; display: grid; border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-card); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); }
.tm-row { display: grid; gap: var(--lpk-space-2); padding: var(--lpk-space-4); }
.tm-row + .tm-row { border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); }
.tm-who p { margin: 0; }
.tm-tags { display: flex; flex-wrap: wrap; gap: var(--lpk-space-1); margin: var(--lpk-space-1) 0 !important; }
@media (min-width: 768px) { .tm-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.tm-invite { display: grid; gap: var(--lpk-space-3); }
.tm-stores { border: 0; padding: 0; margin: 0; display: grid; gap: var(--lpk-space-1); }
.tm-stores legend { font: var(--lpk-type-small); font-weight: 700; margin-bottom: var(--lpk-space-1); }
.tm-stores .check { min-height: var(--tap); display: flex; align-items: center; gap: var(--lpk-space-2); }
.tm-guide > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font: var(--lpk-type-small); font-weight: 700; }
.tm-guide dt { font-weight: 700; margin-top: var(--lpk-space-2); }
.tm-guide dd { margin: 0; color: var(--lpk-color-text-secondary); }
.tm-shared { display: grid; gap: var(--lpk-space-2); justify-items: start; }
.tm-shared .field { justify-self: stretch; }

/* ── Automatic replies (Reviews) ─────────────────────────────────────────────────────────────────────── */
.ar { border: var(--lpk-stroke-hairline) solid var(--lpk-color-border-card); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); }
.ar > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--lpk-space-2); min-height: var(--tap); padding: var(--lpk-space-3) var(--lpk-space-4); }
.ar > summary::-webkit-details-marker { display: none; }
.ar-t { font: var(--lpk-type-small); font-weight: 700; }
.ar-body { display: grid; gap: var(--lpk-space-3); padding: 0 var(--lpk-space-4) var(--lpk-space-4); }
.ar-body p, .ar-body h3 { margin: 0; }
.ar-body h3 { font: var(--lpk-type-small); font-weight: 700; }
.ar-list, .ar-stores { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--lpk-space-3); }
.ar-list > li { display: grid; gap: var(--lpk-space-1); padding-top: var(--lpk-space-3); border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); }
.ar-store { display: grid; gap: var(--lpk-space-2); }
.ar-store .check { min-height: var(--tap); display: flex; align-items: center; gap: var(--lpk-space-2); }
.ar-opts { display: flex; flex-wrap: wrap; gap: var(--lpk-space-2); }
.ar-opts select { min-height: var(--tap); }
.ar-done > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font: var(--lpk-type-small); font-weight: 700; }

/* ── 連携 by job (connect-slots.js) ── */
.sl-grid { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sl-grid { grid-template-columns: 1fr 1fr; } .sl-slot[data-slot="booking"] { grid-column: 1 / -1; } }
.sl-slot { border: 1px solid var(--line); border-radius: var(--lpk-radius-md); padding: 14px 16px; background: var(--surface); min-width: 0; }
.sl-head h3 { margin: 0; font-size: 1rem; }
.sl-head .help { margin: 2px 0 0; }
.sl-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.sl-line { padding: 12px 0; border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); display: grid; gap: 6px; min-width: 0; align-content: start; }
.sl-line .hz-actions { justify-self: start; }
.sl-line:first-child { border-top: 0; padding-top: 4px; }
.sl-line-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sl-line-top .hz-k { margin: 0; font-weight: 700; }
.sl-line p { margin: 0; overflow-wrap: anywhere; }
.sl-sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sl-sub li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sl-next { font: var(--lpk-type-small); font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--lpk-radius-sm); background: var(--band); }
.sl-svc { font: var(--lpk-type-small); font-weight: 400; }
.sl-form { border: 1px solid var(--line); border-radius: var(--lpk-radius-md); padding: 12px; margin-top: 4px; }
.sl-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.sl-fs legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.sl-group { font: var(--lpk-type-small); font-weight: inherit; color: var(--muted); margin: 10px 0 4px !important; }
.sl-form input[type="url"] { font-size: 1rem; width: 100%; }
@media (min-width: 900px) { .sl-slot[data-slot="booking"] .sl-lines { grid-template-columns: 1fr 1fr; column-gap: 24px; } .sl-slot[data-slot="booking"] .sl-line:nth-child(2) { border-top: 0; padding-top: 4px; } }
@media (prefers-reduced-motion: no-preference) { .sl-form { animation: sl-in .18s cubic-bezier(.23, 1, .32, 1); } @keyframes sl-in { from { opacity: 0; transform: translateY(-4px); } } }
.sl { margin: 0 0 24px; }
.sl > .hz-sec-top h2 { margin: 0; }
.sl-foot { padding: 10px 0 0; border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); grid-column: 1 / -1; }

/* ── Front Desk today (frontdesk-ui.js) ── */
.fd-card { border: 1px solid var(--line); border-radius: var(--lpk-radius-md); padding: 14px 16px; background: var(--surface); margin: 0 0 16px; }
.fd-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fd-top h2 { margin: 0; font: var(--lpk-type-body); font-weight: 700; }
.fd-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.fd-stat { border: 1px solid var(--line); border-radius: var(--lpk-radius-sm); padding: 8px 10px; min-width: 0; }
.fd-stat dt { font: var(--lpk-type-label); font-weight: inherit; color: var(--muted); }
.fd-stat dd { margin: 2px 0 0; font: var(--lpk-type-title); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .fd-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fd-need { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.fd-need li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.fd-go { background: none; border: 0; padding: 0; cursor: pointer; }

/* ── #/start (onboarding-ui.js) ── */
.ob-hi { font: var(--lpk-type-body); font-weight: inherit; margin: 0 0 12px; }
.ob-steps { margin-bottom: 16px; }
.ob-card { border: 1px solid var(--line); border-radius: var(--lpk-radius-md); padding: 16px; background: var(--surface); max-width: 640px; }
.ob-card h2 { margin: 0 0 4px; font: var(--lpk-type-body-lg); font-weight: 700; }
.ob-card input:not([type="radio"]):not([type="checkbox"]), .ob-card textarea { font-size: 1rem; width: 100%; }
.ob-matches { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 8px; }
.ob-match { width: 100%; text-align: left; display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--lpk-radius-md); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.ob-match:hover { border-color: var(--line-strong); }
.ob-match:active { transform: scale(.99); }
.ob-this { font-weight: 700; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.ob-from { font: var(--lpk-type-small); font-weight: inherit; color: var(--muted); margin: 0; }
.ob-fs { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.ob-fs legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.ob-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--lpk-radius-md); cursor: pointer; min-height: 44px; }
.ob-opt > span { display: grid; gap: 2px; }
.ob-opt input { margin-top: 3px; }
.ob-opt-row { align-items: center; }
.ob-opt-row input { margin-top: 0; }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
@media (prefers-reduced-motion: no-preference) { .ob-card { animation: sl-in .2s cubic-bezier(.23, 1, .32, 1); } .ob-match { transition: transform .12s ease-out, border-color .15s; } }
.ob-opt input[type="radio"], .ob-opt input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; flex: 0 0 20px; margin: 2px 0 0; padding: 0; }
.ob-opt-row input[type="checkbox"] { margin-top: 0; }
.ob-card > .hz-actions, .ob-card form > .hz-actions { margin-top: 12px; }

/* ── Next steps for a new shop (onboarding-ui.js nextStepsCard) ── */
.ns-card { border: 1px solid var(--line); border-radius: var(--lpk-radius-md); padding: 14px 16px; background: var(--surface); margin: 0 0 16px; }
.ns-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ns-top h2 { margin: 0; font: var(--lpk-type-body); font-weight: 700; }
.ns-bar { height: 6px; border-radius: var(--lpk-radius-xs); background: var(--band); margin: 10px 0 6px; overflow: hidden; }
.ns-bar > span { display: block; height: 100%; background: var(--ink); border-radius: var(--lpk-radius-xs); }
.ns-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ns-list li { border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); }
.ns-list li:first-child { border-top: 0; }
.ns-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; min-height: 44px; color: inherit; text-decoration: none; }
a.ns-row > span:last-child { display: grid; gap: 2px; }
.ns-mark { width: 20px; height: 20px; flex: 0 0 20px; border: 1.5px solid var(--line-strong); border-radius: var(--lpk-radius-full); display: inline-grid; place-items: center; font: var(--lpk-type-label); font-weight: inherit; margin-top: 1px; }
.is-done .ns-mark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.is-done .ns-row { color: var(--muted); }
.is-next .ns-mark { border-color: var(--ink); border-width: 2px; }
a.ns-row:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .ns-bar > span { transition: width .4s cubic-bezier(.23, 1, .32, 1); } }

/* Morning summary (morning-ui.js): the top of a real shop's Home. */
.mn-card { border: 1px solid var(--line); border-radius: var(--lpk-radius-md); padding: 14px 16px; background: var(--surface); margin: 0 0 16px; }
.mn-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mn-top h2 { margin: 0; font: var(--lpk-type-body); font-weight: 700; }
.mn-lead { margin: 8px 0 4px; }
.mn-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mn-list li { border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); }
.mn-list li:first-child { border-top: 0; }
.mn-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; min-height: 44px; color: inherit; text-decoration: none; }
.mn-n { min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.mn-list li.is-first .mn-row { font-weight: 700; }
.mn-chip { margin-left: auto; }
.mn-google { margin: 8px 0 0; }
.mn-email { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); margin-top: 10px; padding-top: 10px; }
.mn-email label { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; flex: 0 1 auto; }
.mn-email input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; flex: 0 0 20px; margin: 0; padding: 0; }
.mn-email .help { flex: 1 1 100%; }

/* #/voice — the shop's own voice (voice-ui.js) */
.vc-tone { border: 0; padding: 0; margin: 0 0 var(--lpk-space-3); display: grid; gap: var(--lpk-space-1); }
.vc-tone legend { font-weight: 700; margin-bottom: var(--lpk-space-2); }
.vc-choice { align-items: flex-start; }
.vc-choice input { margin-top: 0.2em; flex: none; }
.vc-choice .help { display: block; }
.vc textarea, .vc input[type="text"] { width: 100%; }
.vc-examples { list-style: none; margin: var(--lpk-space-2) 0 0; padding: 0; display: grid; gap: var(--lpk-space-3); }
.vc-examples li { display: grid; gap: var(--lpk-space-1); justify-items: start; }

/* Self-serve: #/status rows and #/plan choices (self-serve-ui.js). Plain rows with a hairline between them; the state is the text tag. */
.ss-list { list-style: none; margin: 0; padding: 0; }
.ss-row { padding: var(--lpk-space-2) 0; border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); }
.ss-row:first-child { border-top: 0; }
.ss-row .row-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ss-row p { margin: 4px 0 0; }
.ss-feature { padding: 8px 0; border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); }
.ss-feature:first-of-type { border-top: 0; }
.ss-shops { border: 0; margin: 6px 0 0; padding: 0 0 0 24px; display: grid; gap: 4px; }
.ss-shops legend { padding: 0; font-size: 0.875rem; color: var(--lpk-color-text-secondary, inherit); }
.ss-total { font-weight: 600; margin: var(--lpk-space-3) 0 var(--lpk-space-2); }
.ss-brand { padding: 8px 0; border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); }
.ss-brand:first-of-type { border-top: 0; }
.ss-brand p { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.ss-brand .ss-list { padding-left: 12px; }
.ss-add { margin-top: var(--lpk-space-3); padding-top: var(--lpk-space-2); border-top: var(--lpk-stroke-hairline) solid var(--lpk-color-border-divider); }
.ss-add h3 { font-size: 1rem; margin: 0 0 var(--lpk-space-2); }

/* #/phone-ai: what the AI phone knows (phone-knowledge-ui.js) */
.pa textarea, .pa input[type="text"], .pa select { width: 100%; }
.pa-list { list-style: none; margin: var(--lpk-space-2) 0 0; padding: 0; display: grid; gap: var(--lpk-space-4); }
.pa-list > li { display: grid; gap: var(--lpk-space-1); justify-items: start; }
.pa-list > li > * { margin: 0; }
.pa-tags { display: flex; flex-wrap: wrap; gap: var(--lpk-space-2); align-items: center; }
.pa-panel { width: 100%; display: grid; gap: var(--lpk-space-2); }
.pa-facts > li { display: block; }
.pa-try-out { display: grid; gap: var(--lpk-space-1); margin-top: var(--lpk-space-2); }
