/* iOPW AI Assistant admin — "Letter": quiet white pages, hairlines, one accent. */
/* Onest, served from this site (wwwroot/fonts) so it looks the same on every computer. One variable file covers all weights. */
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #1A1F2B;
  --slate: #5B6475;
  --faint: #6B7280;
  --line: #E4E7EC;
  --line2: #D3D8DF;
  --panel: #F7F8FA;
  --accent: #2563eb;
  --accent-ink: #1D4FC4;
  --ring: rgba(37, 99, 235, .25);
  --danger: #A3341F;
  --danger-bg: #FCF1EE;
  --ok: #1F7A4D;
  --ok-bg: #EEF7F1;
  /* one per booking calendar */
  --cal-1: #2563eb; --cal-2: #BE185D; --cal-3: #047857; --cal-4: #B45309; --cal-5: #7C3AED; --cal-6: #0E7490;
  --radius: 10px;
  --font: Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; padding: 4px 10px 14px; letter-spacing: -.01em; }
.side .biz { margin: 0 10px 10px; font-weight: 600; font-size: 14px; }
.side .switch { margin: 0 4px 12px; }
.side .switch select { width: 100%; }
.side a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--slate); text-decoration: none; font-size: 14px; }
.side a:hover { color: var(--ink); background: #EEF0F3; }
.side a.on { color: var(--ink); background: #E8EBF0; font-weight: 500; }
.side .group { margin-bottom: 6px; }
.side .group .sub { padding-left: 22px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .admin { position: relative; margin-top: 25px; }
.side .admin::before { content: ""; position: absolute; left: 10px; right: 10px; top: -13px; border-top: 1px solid var(--line); }
.side .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--slate); display: flex; flex-direction: column; gap: 4px; }
.side .me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { padding: 36px 48px 64px; max-width: 928px; width: 100%; }
.bare { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--panel); }

/* ---------- type ---------- */
h1 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; margin: 0; }
h2 { font-size: 16px; line-height: 1.35; font-weight: 600; margin: 0 0 4px; }
h3 { font-size: 14.5px; font-weight: 600; margin: 0; }
p { margin: 0 0 12px; }
.hint, .muted { color: var(--slate); font-size: 13.5px; }
.lead-in { color: var(--slate); margin: 6px 0 0; max-width: 62ch; }
code, .code { font-family: var(--mono); font-size: 12.5px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head .back { display: inline-block; font-size: 13px; color: var(--slate); text-decoration: none; margin-bottom: 6px; }
.page-head .back:hover { color: var(--ink); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }

/* sections: a heading on the left column on wide screens keeps long forms scannable */
.section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.section > header p { max-width: 62ch; }
.section > :not(header) { max-width: 680px; }
.section:first-of-type { border-top: 0; padding-top: 0; }
.section > header p { color: var(--slate); font-size: 13.5px; margin: 4px 0 0; }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
label, .field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.help, label .help, .field .help { font-weight: 400; color: var(--slate); font-size: 12.5px; line-height: 1.45; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=tel], input[type=date], select, textarea {
  font: inherit; font-weight: 400; font-size: 14.5px; color: var(--ink); background: #fff;
  border: 1px solid var(--line2); border-radius: 8px; padding: 8px 11px; min-height: 38px; width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
textarea { line-height: 1.5; resize: vertical; min-height: 96px; }
textarea.tall { min-height: 260px; }
textarea.code, input.code { font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6475' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; }
input[type=file] { font: inherit; font-size: 14px; padding: 6px 0; }
input[type=color] { width: 52px; height: 38px; padding: 3px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.check b { font-weight: 500; display: block; }
.row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.row > .end { flex: 0 0 auto; min-width: 0; align-self: flex-end; }
.row > .end.with-help { margin-bottom: 23px; }
.row > * { flex: 1; min-width: 160px; }
.row > .narrow { flex: 0 0 140px; min-width: 0; }
.count { font-weight: 400; color: var(--faint); font-size: 12px; }
.field-error, .error { color: var(--danger); background: var(--danger-bg); border-radius: 8px; padding: 8px 12px; font-size: 13.5px; font-weight: 400; margin: 0; }
.field-error ul { margin: 0; padding-left: 18px; }
.form-foot { display: flex; gap: 8px; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ---------- buttons ---------- */
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px; font: 500 14px/1 var(--font); color: var(--ink);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line2); white-space: nowrap; }
.btn:hover { background: var(--panel); }
.btn:focus-visible { box-shadow: inset 0 0 0 1px var(--line2), 0 0 0 3px var(--ring); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.primary:focus-visible { box-shadow: 0 0 0 3px var(--ring); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
/* Working: a small spinner before the label while the next page loads. */
.btn.busy, .btn.busy[disabled] { opacity: 1; cursor: progress; pointer-events: none; }
.btn.primary.busy { background: var(--accent-ink); }
.btn.busy::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; animation: btn-spin .7s linear infinite; }
.btn.google.busy svg { display: none; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.busy::before { animation-duration: 2s; } }
.link { all: unset; cursor: pointer; color: var(--accent-ink); font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.link.danger { color: var(--danger); }
.inline { display: inline; }

/* ---------- flash ---------- */
.flash { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 9px 14px; font-size: 14px; margin: 0 0 24px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--slate); font-size: 12.5px; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table a.rowlink { color: var(--ink); font-weight: 500; text-decoration: none; }
.table a.rowlink:hover { text-decoration: underline; }
.when { color: var(--slate); white-space: nowrap; font-variant-numeric: tabular-nums; }

.tag { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 999px; background: var(--panel); color: var(--slate); box-shadow: inset 0 0 0 1px var(--line); }
.tag.off { color: var(--danger); background: var(--danger-bg); box-shadow: none; }
.tag.on { color: var(--ok); background: var(--ok-bg); box-shadow: none; }
.tag.warn { color: #8A5A00; background: #FDF5E3; box-shadow: none; }

.empty { border: 1px dashed var(--line2); border-radius: var(--radius); padding: 32px 24px; text-align: center; color: var(--slate); }
.empty h2 { color: var(--ink); }
.empty .btn { margin-top: 8px; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 13.5px; color: var(--slate); }

/* ---------- embed snippets ---------- */
.snippet { position: relative; }
.snippet pre { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 84px 12px 12px; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.snippet .btn { position: absolute; top: 8px; right: 8px; }

/* ---------- transcript (conversation detail, Letter style) ---------- */
.transcript { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.transcript .msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.transcript .bot { align-self: flex-start; max-width: 92%; background: var(--panel); padding: 8px 12px; border-radius: 14px 14px 14px 4px; }
.transcript .me { align-self: flex-end; max-width: 80%; background: #EAF0FE; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.transcript .meta { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.transcript .event { align-self: center; font-size: 12.5px; color: var(--slate); background: var(--panel); border-radius: 999px; padding: 3px 10px; }
.transcript .lookups { align-self: flex-start; max-width: 100%; font-size: 12.5px; color: var(--slate); }
.transcript .lookups summary { cursor: pointer; }
.transcript .lookup { margin: 6px 0 0; }
.transcript .lookup pre { max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--panel); border-radius: 8px; padding: 8px 10px; margin: 4px 0 0; font-size: 12px; }
/* What a visitor sent with a form, under its "Form sent" line. */
.transcript .sent-form { align-self: center; width: min(100%, 460px); margin: -2px 0 6px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 13.5px; }
.transcript .sent-form dl { margin: 0 0 10px; }   /* each field: its label above its value */
.transcript .sent-form dt { color: var(--slate); font-size: 12.5px; overflow-wrap: anywhere; }
.transcript .sent-form dt + dd { margin-top: 2px; }
.transcript .sent-form dd + dt { margin-top: 10px; }
.transcript .sent-form dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.transcript .sent-form a { font-size: 12.5px; }

.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; font-size: 14px; margin: 0 0 28px; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- lead form preview ---------- */
.preview { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.preview h4 { margin: 4px 0 0; font-size: 13px; color: var(--slate); }

/* ---------- login ---------- */
.login { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; box-shadow: 0 24px 48px -32px rgba(26,31,43,.4); }
.login .brand { font-weight: 600; font-size: 14px; color: var(--slate); margin: 0 0 20px; }
.login h1 { margin-bottom: 4px; }
.login .hint { margin-bottom: 20px; }
.login .error { margin-bottom: 16px; }

.topbar, .side-back, .side-top .icon-btn { display: none; }
.side-top { display: contents; }
.icon-btn { all: unset; box-sizing: border-box; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: #E8EBF0; }
.icon-btn:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .shell { grid-template-rows: auto 1fr; }
  .topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 16px 0 6px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .topbar-biz { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
  .topbar-biz span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 1001; width: min(300px, 84vw); height: auto; padding: 6px 10px 20px; visibility: hidden; transform: translateX(-100%); transition: transform .22s ease-out, visibility 0s .22s; overscroll-behavior: contain; }
  .side-back { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(26, 31, 43, .4); opacity: 0; visibility: hidden; transition: opacity .22s, visibility 0s .22s; }
  .menu-open { overflow: hidden; }
  .menu-open .side { visibility: visible; transform: none; transition: transform .22s ease-out; }
  .menu-open .side-back { opacity: 1; visibility: visible; transition: opacity .22s; }
  .side-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 8px; }
  .side-top .icon-btn { display: grid; }
  .side .brand { padding: 0 10px; min-height: 44px; }
  .side a:not(.picker-all) { display: flex; align-items: center; min-height: 44px; font-size: 16px; }
  .side .group .sub { display: block; line-height: 44px; padding-top: 0; padding-bottom: 0; font-size: 15px; }
  .side .me { font-size: 14px; }
  .side .me .link { min-height: 44px; font-size: 15px; }
  .main { padding: 24px 16px 48px; }
  .section { grid-template-columns: 1fr; gap: 12px; }
  .page-head { flex-direction: column; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table.responsive td { display: block; border: 0; padding: 2px 0; }
}

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

/* ---------- Google sign-in ---------- */
.login .google { gap: 10px; height: 40px; margin-bottom: 4px; }
.login .or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12.5px; margin: 16px 0; }
.login .or::before, .login .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Small action links next to a tag in a table row (Allow, Turn off, Suspend, Remove) */
.table .link { font-size: 12.5px; margin-left: 6px; }
.table td.num .link { margin-left: 0; }
.link { text-decoration: none; }
.link:hover, .link:focus-visible { text-decoration: underline; }

/* ---------- business chooser ---------- */
.chooser { width: 100%; max-width: 520px; }
.chooser .brand { font-weight: 600; font-size: 14px; color: var(--slate); margin: 0 0 20px; }
.chooser h1 { margin-bottom: 4px; }
.chooser .hint { margin-bottom: 24px; }
.biz-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.biz-card { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.biz-card:hover { border-color: #C9D6F5; box-shadow: 0 10px 24px -18px rgba(26,31,43,.45); }
.biz-card:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.biz-initial { width: 38px; height: 38px; border-radius: 10px; background: #EAF0FE; color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: 16px; flex: none; }
.biz-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.biz-name { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-meta { font-size: 13px; color: var(--slate); }
.biz-meta .tag { margin-left: 6px; }
.biz-go { color: var(--faint); flex: none; }
.biz-card:hover .biz-go { color: var(--accent); }
.chooser-foot { margin-top: 24px; font-size: 13.5px; }

/* ---------- business mark (logo or initial) ---------- */
.biz-initial { width: 38px; height: 38px; border-radius: 10px; background: #EAF0FE; color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: 16px; flex: none; }
.biz-initial.has-logo { object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.biz-initial.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 11.5px; padding: 1px; }
.biz-initial.lg { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; }
.biz-initial.xl { width: 72px; height: 72px; border-radius: 16px; font-size: 28px; padding: 6px; }
.side .biz { display: flex; align-items: center; gap: 8px; }
.side .switch { display: flex; align-items: center; gap: 8px; }
.logo-row { display: flex; gap: 20px; align-items: flex-start; }
.logo-row > .stack { flex: 1; }

/* ---------- file pickers ---------- */
.logo-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.logo-actions .field-title { font-size: 13.5px; font-weight: 500; }
.logo-buttons { display: flex; align-items: center; gap: 14px; }
.logo-buttons .link { font-size: 13px; }
label.btn { cursor: pointer; flex-direction: row; font-weight: 500; }
label.btn:focus-within { box-shadow: inset 0 0 0 1px var(--line2), 0 0 0 3px var(--ring); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 28px 20px; border: 1.5px dashed var(--line2); border-radius: 12px; background: var(--panel); color: var(--slate); font-weight: 400; cursor: pointer; transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #F3F6FE; }
.drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.drop svg { color: var(--accent); }
.drop .drop-text { font-size: 14px; color: var(--ink); }
.drop .drop-text b { color: var(--accent-ink); font-weight: 500; }
.drop.has-file .drop-text b { color: var(--ink); }

/* ---------- back button (page head) ---------- */
.page-head .back { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 8px; margin-bottom: 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line2); background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; max-width: 100%; }
.page-head .back::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 18l-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.page-head .back:hover { background: var(--panel); color: var(--ink); }
.page-head .back:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--line2), 0 0 0 3px var(--ring); }
.file-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- document text editing ---------- */
.doc-save { display: flex; align-items: center; gap: 14px; }
.doc-save .link { font-size: 13px; }
.doc-save .dirty { font-size: 12.5px; color: #9A5B00; background: #FFF6E5; border-radius: 999px; padding: 3px 9px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--ok-bg); color: #1B5E3D; font-size: 13.5px; line-height: 1.5; }
.notice svg { flex: none; margin-top: 2px; color: var(--ok); }
.notice b { font-weight: 600; }
.doc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.doc-head label { flex: 1; }
.draft-note { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FFF6E5; color: #7A4A00; font-size: 13.5px; line-height: 1.5; }
.draft-note.error { background: var(--danger-bg); color: var(--danger); }
.docs-in-use { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.docs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-title { font-size: 13.5px; font-weight: 500; }
.docs-in-use ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.docs-in-use li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid #EEF0F3; font-size: 14px; }
.docs-in-use li:first-child { border-top: 0; }
.docs-in-use .doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.docs-in-use .muted { font-size: 12.5px; }
.docs-in-use.found li { flex-wrap: wrap; row-gap: 2px; }
.docs-in-use.found .doc-name { flex: 1 1 200px; }
.example-text { margin: 6px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
/* Delete sections sit well apart from the main form */
.section.danger-zone { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 32px; }

/* ---------- saved message (centered confirmation modal) ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; display: grid; place-items: center; padding: 16px;
  background: rgba(26, 31, 43, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: backdrop-in .16s ease-out; }
.modal-dialog { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 32px 28px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  box-shadow: 0 1px 0 rgba(26,31,43,.04), 0 30px 70px -24px rgba(26,31,43,.55); animation: dialog-in .2s cubic-bezier(.2,.8,.3,1); }
/* The one moment: the check draws itself in when the dialog opens. */
.modal-check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.modal-check path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: check-draw .38s .12s ease-out forwards; }
.modal-body { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--ink); max-width: 32ch; }
.modal-ok { all: unset; box-sizing: border-box; cursor: pointer; min-width: 128px; height: 44px; padding: 0 28px; border-radius: 10px;
  background: var(--ink); color: #fff; font: 600 15px/44px var(--font); text-align: center; }
.modal-ok:hover { background: #2B3242; }
.modal-ok:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(37, 99, 235, .45); }
.modal-ok { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.modal-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.modal-later { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--slate); }
.modal-later:hover { color: var(--ink); background: var(--panel); }
.modal-later:focus-visible { box-shadow: 0 0 0 3px rgba(37, 99, 235, .45); }
.modal-backdrop.leaving { opacity: 0; transition: opacity .15s; }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: scale(.96); } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-dialog { animation: none; } .modal-backdrop.leaving { transition: none; }
  .modal-check path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- chat files in the admin ---------- */
.transcript .files, .file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink); font-size: 12.5px; text-decoration: none; }
.file-chip:hover { background: var(--panel); }
.file-chip svg { color: var(--accent); }
.file-chip .muted { font-size: 11.5px; }
.sub-check { margin-left: 26px; }
.check input:disabled + input + span { opacity: .5; }
.check .help { display: block; margin-top: 2px; }
.sub-check-field { margin-left: 26px; }

/* ---------- all businesses: list tools, spend, details ---------- */
.list-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.list-search { position: relative; flex: 1 1 280px; display: block; }
.list-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.list-search input[type=search] { padding-left: 34px; width: 100%; }
.list-size { flex: 0 0 150px; display: block; }
.list-size select { width: 100%; }
.biz-table th:nth-child(1) { width: 26%; }
.biz-table th:nth-child(3) { width: 96px; }
.biz-table th:nth-child(4) { width: 92px; padding-left: 20px; }
.biz-table td:nth-child(4) { padding-left: 20px; vertical-align: middle; }
.biz-table th:nth-child(5) { width: 140px; padding-right: 28px; }
.biz-table th:nth-child(6) { width: 96px; }
.biz-table th:nth-child(7) { width: 76px; }
.biz-table td { vertical-align: middle; }
.biz-table th { white-space: nowrap; }
.row-sub { display: block; font-size: 12px; color: var(--faint); margin-top: 1px; font-weight: 400; }
.table td.spend { font-variant-numeric: tabular-nums; padding-right: 28px; }
.table td.spend.near { color: #9A5B00; }
.table td.spend.over { color: var(--danger); }
.pager-links { display: inline-flex; gap: 14px; align-items: center; }
.pager .dim { color: var(--line2); }

.narrow-form { max-width: 440px; }
.row-actions { display: flex; gap: 8px; }

.spend-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.spend-card.over { border-color: #EBC7BE; background: var(--danger-bg); }
.spend-figure { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.spend-figure strong { font-size: 22px; font-weight: 600; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.spend-figure span { color: var(--slate); font-size: 13.5px; }
.spend-card .hint { margin: 10px 0 0; }
.meter { height: 6px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; margin-top: 12px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.spend-card.over .meter span { background: var(--danger); }

.money-input { display: flex; align-items: center; gap: 8px; max-width: 220px; margin-top: 6px; }
.money-input > span { color: var(--slate); font-size: 14px; }
.money-input input[type=text] { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }

.setting-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setting-line .muted { margin-left: 6px; font-size: 13.5px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plain-list li:first-child { padding-top: 0; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list .muted { font-size: 13px; white-space: nowrap; }
@media (max-width: 720px) {
  .biz-table th { width: auto !important; }
  .table.responsive.biz-table td.num { text-align: left; }
  .setting-line { flex-wrap: wrap; }
}
.key-chip { display: inline-block; font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 999px; color: var(--slate); box-shadow: inset 0 0 0 1px var(--line); margin-right: 4px; vertical-align: 1px; }
.key-chip.platform { color: var(--accent-ink); background: #EEF3FE; box-shadow: none; }
.table th.sortable a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.table th.sortable a:hover { color: var(--ink); }
.table th.sortable svg { color: var(--line2); flex: none; }
.table th.sortable a:hover svg { color: var(--slate); }
.table th.sortable.on { color: var(--ink); }
.table th.sortable.on svg { color: var(--accent); }

/* ---------- sidebar business picker ---------- */
.side .picker { position: relative; margin: 0 4px 14px; }
.picker-btn { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; cursor: pointer;
  background: #fff; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line2); font-size: 14px; font-weight: 500; color: var(--ink); }
.picker-btn:hover { box-shadow: inset 0 0 0 1px #BCC3CD; }
.picker-btn:focus-visible, .picker-btn[aria-expanded=true] { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--ring); }
.picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-btn > svg { color: var(--faint); flex: none; }
.picker-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -8px rgba(26, 31, 43, .22); padding: 6px; }
.picker-search { position: relative; margin-bottom: 4px; }
.picker-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.picker-search input[type=search] { width: 100%; height: 36px; padding: 0 10px 0 32px; border: 0; border-radius: 8px; background: var(--panel); box-shadow: none; font-size: 14px; }
.picker-search input[type=search]:focus { outline: none; box-shadow: inset 0 0 0 1px var(--line2); }
.picker-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.picker-list a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; }
.picker-list a span.n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-list a.active, .picker-list a:hover { background: #EEF1F5; }
.picker-list a .tick { color: var(--accent); flex: none; }
.picker-note { margin: 6px 8px; font-size: 12.5px; color: var(--slate); }
.picker-all { display: block; margin-top: 4px; padding: 9px 8px 5px !important; border-top: 1px solid var(--line); border-radius: 0 !important; font-size: 13px !important; color: var(--accent-ink) !important; background: none !important; }
.picker-all:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .table.responsive.biz-table td { padding-left: 0; }
}

/* ---------- business dashboard ---------- */
.attention { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; }
.attention h2 { font-size: 13.5px; margin: 0 0 8px; }
.attention ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attention li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.attention li svg { flex: none; margin-top: 2px; }
.attention li.critical svg { color: var(--danger); }
.attention li.warning svg { color: #B26B00; }
.attention li .t { flex: 1; }
.attention li a { flex: none; font-size: 13.5px; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 32px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .label { font-size: 13px; color: var(--slate); }
.stat strong { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .sub { font-size: 12.5px; color: var(--faint); }
.stat .meter { margin-top: 8px; }
.meter.near span { background: #D98A00; }
.meter.full span { background: var(--danger); }

.dash-block { margin-bottom: 36px; min-width: 0; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash-head h2 { margin: 0; }
.dash-head a, .dash-head .muted { font-size: 13px; }
.dash-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.dash-empty { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.dash-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dash-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dash-list li a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-list li a:hover { text-decoration: underline; }
.dash-list li .muted { font-size: 12.5px; }

.day-chart { position: relative; }
.day-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.day-chart .grid { stroke: var(--line); stroke-dasharray: 2 3; }
.day-chart .base { stroke: var(--line2); }
.day-chart .tick { font-size: 11px; fill: var(--faint); font-family: var(--font); font-variant-numeric: tabular-nums; }
.day-chart .hit { fill: transparent; }
.day-chart .fill { fill: #9DB8F5; transition: fill .12s; }
.day-chart .today .fill { fill: var(--accent); }
.day-chart .bar.hover .fill { fill: var(--accent-ink); }
.day-chart .bar.hover .hit { fill: rgba(37, 99, 235, .05); }
.chart-tip { position: absolute; top: -8px; transform: translateY(-100%); background: var(--ink); color: #fff; font-size: 12.5px; padding: 5px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dash-cols { grid-template-columns: 1fr; }
}

/* ---------- assistant page: tabs ---------- */
.tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--line); margin-bottom: 28px; overflow-x: auto; overflow-y: hidden; }
.tabs-list { display: contents; }
.tabs [role=tab], .tabs a { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 12px 11px; font-size: 14px; font-weight: 500; color: var(--slate); border-bottom: 2px solid transparent; white-space: nowrap; border-radius: 6px 6px 0 0; }
.tabs [role=tab]:hover, .tabs a:hover { color: var(--ink); }
.tabs [role=tab][aria-selected=true], .tabs a[aria-current=page] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs [role=tab]:focus-visible, .tabs a:focus-visible { box-shadow: inset 0 0 0 2px var(--ring); }
.tab-form { max-width: 680px; }
.tab-panel { padding-bottom: 8px; }
.tab-panel label > .help:first-of-type:not(:last-child) { margin-top: -2px; }
textarea.mid { min-height: 150px; }
.starter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 10px; background: #F3F6FE; font-size: 14px; }
.starter b { font-weight: 500; display: block; }
.starter .btn { flex: none; background: #fff; }
.sub-settings { margin-left: 26px; padding-left: 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 24px; }
.steps > li { counter-increment: step; position: relative; padding-left: 38px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line2); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--slate); }
details.more > summary { cursor: pointer; font-size: 13.5px; color: var(--accent-ink); width: max-content; }
details.more[open] > summary { margin-bottom: 14px; }
/* What most people never need, at the end of a page. */
details.rest { padding-top: 16px; border-top: 1px solid var(--line); }
details.rest > summary { font-size: 14px; font-weight: 500; }
details.rest[open] > summary { margin-bottom: 4px; }
details.rest > .help { margin: 0 0 20px; }
form > details.rest { max-width: 680px; margin-bottom: 24px; }

/* Assistant › Overview: what it does now, one line each, and the way to change it. */
#panel-overview:not([hidden]) ~ #assistant-form { display: none; }
.sum { list-style: none; margin: 0; padding: 0; }
.sum > li { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sum > li:first-child { border-top: 0; }
.sum > li > div { min-width: 0; overflow-wrap: anywhere; }
.sum b { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-size: 15px; font-weight: 500; }
.sum > li > div > span { color: var(--slate); }
.sum > li > a, .sum > li > form { flex: none; }
.sum select { max-width: 180px; }
@media (max-width: 720px) {
  .sum > li { gap: 16px; }
  .sum > li > a:not(.btn), .sum > li .link { display: inline-flex; align-items: center; min-height: 44px; }
  .sum > li:has(select) { flex-direction: column; align-items: stretch; gap: 10px; }
  .sum select { max-width: none; }
}
.narrow-field { max-width: 220px; }
.delete-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }
.delete-row b { font-weight: 500; display: block; }
.save-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 0; margin-top: 20px; background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, 0)); border-top: 1px solid var(--line); z-index: 5; }
.save-bar .muted { font-size: 12.5px; }
@media (max-width: 720px) { .sub-settings { margin-left: 0; } .starter, .delete-row { flex-direction: column; align-items: flex-start; } }

/* ---------- conversation: fix this answer ---------- */
.transcript details.fix { align-self: flex-start; max-width: 92%; width: 100%; margin-top: -10px; }
.transcript details.fix > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.transcript details.fix > summary::-webkit-details-marker { display: none; }
.fix-link { color: var(--accent-ink); }
.transcript details.fix > summary:hover .fix-link { text-decoration: underline; }
.fix-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.fix-form textarea { min-height: 76px; background: #fff; }
.msg:target { box-shadow: -3px 0 0 var(--accent); padding-left: 10px; }

/* ---------- instruction examples ---------- */
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.example-pick select { height: 32px; padding-top: 0; padding-bottom: 0; font-size: 13px; width: auto; min-width: 210px; }

/* ---------- unanswered questions ---------- */
.unanswered { list-style: none; margin: 0; padding: 0; max-width: 680px; }
.unanswered > li { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.unanswered > li:first-child { border-top: 0; padding-top: 0; }
.unanswered .q { font-size: 15.5px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.unanswered .said { color: var(--slate); font-size: 13.5px; margin: 0; overflow-wrap: anywhere; }
.unanswered .where { font-size: 12.5px; color: var(--faint); }
.unanswered .where a { color: inherit; }
.unanswered textarea { min-height: 72px; }
.unanswered .acts { display: flex; align-items: center; gap: 8px; }

/* ---------- talking to a person: contact + opening hours ---------- */
fieldset.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
fieldset.group > legend { font-size: 13.5px; font-weight: 600; padding: 0 6px; margin-left: -6px; }
fieldset.group > .help { margin: 0; }
.hours { display: flex; flex-direction: column; gap: 6px; }
.hours-row { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.hours-row .check { width: 122px; flex: none; align-items: center; }
.hours-row .check input { margin: 0; }
.hours-row input[type=time] { font: inherit; font-size: 14px; height: 34px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours-row input[type=time]:disabled { display: none; }
.hours-row input[type=time]:disabled + .muted { display: none; }
.hours-row .muted { font-size: 13px; }

/* ---------- form builder ---------- */
.section:has(.builder-cols) > :not(header) { max-width: none; }
.builder-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 32px; align-items: start; }
.preview-wrap { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 8px; }
.fb-rows { display: flex; flex-direction: column; gap: 10px; }
.fb-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.fb-row.heading { background: var(--panel); }
.fb-row:focus-within { border-color: var(--line2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.fb-main { display: flex; gap: 8px; }
.fb-main input[type=text] { flex: 1; min-width: 0; font-weight: 500; }
.fb-main select { flex: 0 0 170px; width: 170px; }
.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.fb-foot .muted { font-size: 13px; }
.fb-req { align-items: center; font-size: 13.5px; }
.fb-req input { margin: 0; }
.fb-tools { display: inline-flex; gap: 2px; margin-left: auto; }
.fb-tool { all: unset; box-sizing: border-box; cursor: pointer; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--slate); }
.fb-tool:hover { background: var(--panel); color: var(--ink); }
.fb-tool:focus-visible { box-shadow: 0 0 0 3px var(--ring); }
.fb-tool:disabled { color: var(--line2); cursor: default; background: none; }
@media (max-width: 900px) {
  .builder-cols { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
  .fb-main { flex-direction: column; }
  .fb-main select { flex: none; width: 100%; }
}

/* Placeholders are examples, not values: clearly lighter than typed text. */
::placeholder { color: #B6BCC6; opacity: 1; font-weight: 400; }

/* ---------- settings: team list, own keys ---------- */
.tab-count { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; font-weight: 500; color: var(--slate); text-align: center; }
.people { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.people li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.people li:first-child { border-top: 0; }
.people .person { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.people .email { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .muted { font-size: 12.5px; }
.people .link { font-size: 13px; }
.people .link:disabled { color: var(--line2); cursor: default; text-decoration: none; }
.add-person { display: flex; flex-direction: column; gap: 8px; }
.own-keys { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.own-keys h2 { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }

/* ---------- dashboard: get started, clickable tiles ---------- */
.setup { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; }
.setup > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.setup > header h2 { margin: 0; }
.setup > header .muted { font-size: 13px; }
.setup .meter { margin: 10px 0 6px; }
.setup ol { list-style: none; margin: 0; padding: 0; }
.setup li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.setup li:first-child { border-top: 0; }
.setup .mark { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); display: grid; place-items: center; flex: none; color: #fff; }
.setup li.done .mark { background: var(--ok); box-shadow: none; }
.setup li.next .mark { box-shadow: inset 0 0 0 2px var(--accent); }
.setup .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.setup .t b { font-weight: 500; }
.setup li.done .t b { color: var(--slate); font-weight: 400; }
.setup li > a:not(.btn) { font-size: 13.5px; white-space: nowrap; }
a.stat { color: inherit; text-decoration: none; transition: background .12s; }
a.stat:hover { background: var(--panel); }
a.stat:first-child { border-radius: var(--radius) 0 0 var(--radius); }
a.stat:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
a.stat:focus-visible { outline-offset: -2px; }
.stat.warn strong { color: #9A5B00; }

/* ---------- assistants list ---------- */
.bots { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.bots > li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--line); }
.bots > li:first-child { border-top: 0; }
.bot-mark { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 16px; flex: none; }
.bot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bot-name { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-name:hover { text-decoration: underline; }
.bot-where { font-size: 13px; color: var(--slate); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bot-todo { font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.bot-todo a { color: #9A5B00; }
.bot-stats { display: flex; gap: 28px; margin: 0; flex: none; }
.bot-stats dt { font-size: 12px; color: var(--faint); }
.bot-stats dd { margin: 0; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.bot-acts { display: flex; gap: 6px; flex: none; }
.bot-new { margin-top: 24px; padding: 16px 18px; border: 1px dashed var(--line2); border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.bot-new label { font-weight: 500; }
.bot-new .row { margin-top: 4px; }
@media (max-width: 860px) {
  .bots > li { flex-wrap: wrap; }
  .bot-main { flex-basis: calc(100% - 56px); }
  .bot-stats, .bot-acts { margin-left: 56px; }
}

/* ---------- conversations list ---------- */
.chips-nav { display: flex; gap: 6px; margin: -6px 0 18px; flex-wrap: wrap; }
.list-tools .chips-nav { margin: 0; }
.chips-nav a { font-size: 13px; padding: 5px 11px; border-radius: 999px; color: var(--slate); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.chips-nav a:hover { color: var(--ink); background: var(--panel); }
.chips-nav a.on { color: var(--ink); background: #E8EBF0; box-shadow: none; font-weight: 500; }
.convos { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.convos > li { border-top: 1px solid var(--line); }
.convos > li:first-child { border-top: 0; }
.convo { display: flex; align-items: center; gap: 14px; padding: 13px 16px; color: inherit; text-decoration: none; }
.convo:hover { background: var(--panel); }
.convos > li:first-child .convo { border-radius: var(--radius) var(--radius) 0 0; }
.convos > li:last-child .convo { border-radius: 0 0 var(--radius) var(--radius); }
.convo:focus-visible { outline-offset: -2px; }
.convo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.convo-q { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-meta { font-size: 12.5px; color: var(--slate); display: flex; gap: 6px; flex-wrap: wrap; }
.convo-meta span + span::before { content: "\00b7"; margin-right: 6px; color: var(--line2); }
.convo-tags:not(:has(*)) { display: none; }
.convo-tags { display: flex; gap: 5px; flex: none; }
.convo-when { flex: 0 0 104px; text-align: right; font-size: 12.5px; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 720px) {
  .convo { flex-wrap: wrap; }
  .convo-main { flex-basis: 100%; }
  .convo-when { flex: 1; }
}

/* ---------- form submissions ---------- */
/* Needs a person / Not answered / Corrected: the exchange and what to do, right in the list. */
.chips-nav .count { font-weight: 600; font-size: 12px; color: var(--slate); }
.chips-nav .count.alert { color: var(--danger); }
.flagged { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.flagged-line { margin: 0; display: grid; grid-template-columns: 76px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.flagged-who { color: var(--faint); font-size: 12.5px; padding-top: 1px; }
.flagged-text { white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.flagged-actions { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; padding-left: 86px; margin-top: 2px; }
.flagged-actions .fix { flex: 1 1 320px; }
.flagged-actions .fix summary { font-size: 13.5px; padding: 6px 0; }
@media (max-width: 640px) {
  .flagged-line { grid-template-columns: 1fr; gap: 0; }
  .flagged-actions { padding-left: 0; }
}
.convo-more { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answers { max-width: 680px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }
.answer { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 13px 16px; border-top: 1px solid var(--line); }
.answer:first-child { border-top: 0; }
.answer .label { font-size: 13px; color: var(--slate); }
.answer .value { font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 720px) { .answer { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- signed-in visitors: one line per section, opened to change it ---------- */
.go-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.go-card:hover { background: var(--panel); }
.go-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.go-card b { font-weight: 500; display: block; }
.go-card .help { display: block; margin-top: 2px; }
.go-card-go { flex: none; font-size: 13.5px; font-weight: 500; color: var(--accent-ink); }
.fold-form { max-width: 720px; }
.master-switch { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 8px; }
details.fold { border-bottom: 1px solid var(--line); }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 16px; padding: 16px 28px 16px 2px; position: relative; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 7px; height: 7px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); transform: rotate(45deg); transition: transform .15s; }
details.fold[open] > summary::after { transform: rotate(-135deg); top: 25px; }
details.fold > summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 6px; }
.fold-title { flex: 0 0 190px; font-weight: 500; font-size: 15px; }
.fold-now { flex: 1; min-width: 0; color: var(--slate); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.fold[open] .fold-now { visibility: hidden; }
.fold-body { padding: 4px 2px 22px; }
.fold-body .field { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; font-weight: 500; }
.fold-body .field .help { font-weight: 400; }
.lookups-text { line-height: 1.9; white-space: pre; overflow-x: auto; }
.plain-list { font-size: 13.5px; font-weight: 400; color: var(--slate); line-height: 1.7; }
.plain-list p { display: block; margin: 0 0 4px; }
.plain-list code { color: var(--ink); }
.key-order ol { margin: 6px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.9; }
.key-order b { font-weight: 500; }
@media (max-width: 720px) {
  details.fold > summary { flex-direction: column; gap: 2px; }
  .fold-title { flex: none; }
  .fold-now { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { details.fold > summary::after { transition: none; } }

/* ---------- guides: a readable page that can be sent to a developer ---------- */
.guide-body { background: #fff; }
.guide { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; color: var(--ink); }
.guide-crumb { margin: 0 0 14px; font-size: 13px; color: var(--slate); }
.guide-head h1 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; margin: 0; max-width: 18ch; }
.guide-lede { font-size: 17px; line-height: 1.6; color: var(--slate); margin: 18px 0 0; max-width: 60ch; }
.guide-lede em { font-style: normal; color: var(--ink); font-weight: 500; }
.guide-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 40px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.guide-toc a { color: var(--slate); text-decoration: none; }
.guide-toc a:hover { color: var(--accent-ink); }
.guide-section { padding-top: 56px; scroll-margin-top: 16px; }
.guide-section h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.guide-section h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.guide-section p { line-height: 1.65; margin: 0 0 14px; max-width: 66ch; }
.guide-section .snippet { margin: 4px 0 16px; }
.guide .tag { font-size: 12px; font-weight: 500; color: var(--slate); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

/* the example: a chat beside what happens behind it */
.story { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 22px; }
.story-chat { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(26, 31, 43, .35); background: #fff; font-size: 13.5px; }
.sc-bar { padding: 12px 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.sc-msgs { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sc-me { align-self: flex-end; margin: 0; max-width: 85%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: color-mix(in srgb, var(--accent) 12%, #fff); }
.sc-bot p { margin: 0 0 10px; line-height: 1.55; }
.sc-bot b { font-weight: 600; }
.sc-chart { margin: 0; padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: 10px; }
.sc-chart figcaption { font-size: 12px; color: var(--slate); margin-bottom: 6px; }
.sc-chart svg { width: 100%; height: auto; display: block; }
.sc-chart .axis { stroke: var(--line); stroke-width: 1; }
.sc-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.sc-chart .dot { fill: var(--accent); }
.sc-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 2px; }
.story-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.story-steps li { counter-increment: s; position: relative; padding-left: 40px; line-height: 1.6; color: var(--slate); }
.story-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.story-steps b { display: block; color: var(--ink); font-weight: 600; }

/* who does what */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; margin: 18px 0 16px; }
.who-col { padding: 20px 22px; }
.who-col + .who-col { border-left: 1px solid var(--line); }
.who-col h3 { margin-bottom: 2px; }
.who-col .muted { margin: 0 0 12px; }
.who ul, .guide-notes { margin: 0; padding-left: 18px; line-height: 1.65; }
.who li, .guide-notes li { margin-bottom: 6px; }
.guide-notes { margin-bottom: 8px; }

/* developer steps: numbered, because they are done in this order */
#developer { counter-reset: d; }
.step { counter-increment: d; position: relative; padding: 24px 0 8px 44px; border-top: 1px solid var(--line); }
.step:first-of-type { border-top: 0; padding-top: 8px; }
.step::before { content: counter(d); position: absolute; left: 0; top: 24px; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.step:first-of-type::before { top: 8px; }

.key-steps { margin: 0 0 14px; padding-left: 20px; line-height: 1.9; }
.key-steps b { font-weight: 600; }

.safe { display: grid; grid-template-columns: 220px minmax(0, 1fr); margin: 18px 0 0; border-top: 1px solid var(--line); }
.safe dt, .safe dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; line-height: 1.6; }
.safe dt { font-weight: 600; padding-right: 20px; }
.safe dd { color: var(--slate); }

@media (max-width: 720px) {
  .guide { padding: 36px 16px 72px; }
  .story { grid-template-columns: 1fr; gap: 28px; }
  .story-chat { max-width: 340px; }
  .who { grid-template-columns: 1fr; }
  .who-col + .who-col { border-left: 0; border-top: 1px solid var(--line); }
  .step { padding-left: 0; padding-top: 56px; }
  .step:first-of-type { padding-top: 44px; }
  .safe { grid-template-columns: 1fr; }
  .safe dt { padding-bottom: 2px; border-bottom: 0; }
  .safe dd { padding-top: 0; }
}

/* ---------- connect your own AI ---------- */
.connect-ai { max-width: 880px; display: flex; flex-direction: column; gap: 16px; }
.ca-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.ca-card h2 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.ca-card > p { margin: 0 0 12px; font-size: 14px; max-width: 72ch; }
.ca-card > .help { display: block; margin: 12px 0 0; max-width: 72ch; }
.ca-ask { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 14px; }
.ca-ask dt { font-weight: 600; }
.ca-ask dd { margin: 0; color: var(--slate); }
.ca-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ca-copy { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px 12px; align-items: center; margin: 0 0 18px; font-size: 14px; }
.ca-copy dt { color: var(--slate); }
.ca-copy dd { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ca-copy code { padding: 7px 12px; border-radius: 6px; background: #F4F5F7; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ca-copy .help { font-size: 13px; }
.ca-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.ca-app { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.ca-app h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.ca-app ol { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ca-app a.small { font-size: 13px; }
.ca-done { margin: 0 0 6px; font-size: 14px; }
@media (max-width: 900px) { .ca-apps { grid-template-columns: 1fr; } }
.ca-steps { margin: 0 0 10px; padding-left: 22px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.ca-sub { font-size: 15px; font-weight: 600; margin: 22px 0 8px; }
.ca-addr { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; max-width: 640px; }
.ca-addr code { padding: 7px 12px; border-radius: 6px; background: var(--bg-soft, #F4F5F7); }
.ca-addr code { overflow-wrap: anywhere; font-size: 14px; }
.new-key .snippet + p { margin-top: 12px; }
.ca-switch { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.ca-switch h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.ca-switch .help { display: block; margin: 0 0 12px; max-width: 72ch; }
.ca-card .fold:first-of-type { margin-top: 4px; }
@media (max-width: 640px) { .ca-ask { grid-template-columns: 1fr; gap: 2px 0; } .ca-ask dd { margin-bottom: 10px; } }
.ca-block h2, .new-key h2 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.ca-block > .help { display: block; margin: 0 0 16px; max-width: 66ch; }
.ca-keys { margin-bottom: 16px; }
.ca-keys .row-sub { display: block; }
.ca-new { max-width: 520px; }
.new-key { padding: 18px 20px; border-radius: var(--radius); background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.new-key p { margin: 0 0 12px; color: #1B5E3D; font-size: 14px; }
.new-key .snippet pre { background: #fff; font-size: 14px; }
.ca-pairs { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.ca-pairs dt { color: var(--slate); }
.ca-pairs dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- opening hours: weekly, from Google, holidays ---------- */
.hours-form { max-width: 760px; gap: 32px; }
.hours-block { display: flex; flex-direction: column; gap: 14px; }
.hours-block h2 { font-size: 17px; font-weight: 600; margin: 0; }
.hours-block > .help { margin: -8px 0 0; max-width: 66ch; }
.google-hours, .manual-hours { display: flex; flex-direction: column; gap: 12px; }
.place-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.place-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.place-head b { font-weight: 600; display: block; }
.week-list { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 14px; }
.week-list dt { color: var(--slate); }
.week-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.place-results { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; }
.place-result { padding: 10px 12px; }
.place-result + .place-result { border-top: 1px solid var(--line); }
.special-days { display: flex; flex-direction: column; gap: 8px; }
.special-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 104px 30px; gap: 8px; align-items: center; }
.special-row > * { min-width: 0; }
.special-row > input[type=date] { grid-column: 1; grid-row: 1; width: 100%; }
.special-row > input[type=text] { grid-column: 2; grid-row: 1; min-width: 0; }
.special-row > select { grid-column: 3; grid-row: 1; width: 100%; }
.special-row > .icon-btn { grid-column: 4; grid-row: 1; }
.special-times { grid-column: 2 / 4; grid-row: 2; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.special-times[hidden] { display: none; }
.special-row input[type=time], .special-row input[type=date] { font: inherit; font-size: 14px; height: 34px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
.special-times input[type=time] { width: 130px; }
.special-row .icon-btn { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--slate); font-size: 20px; line-height: 1; cursor: pointer; }
.special-row .icon-btn:hover { background: var(--panel); color: var(--danger); }
.special-row .icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.special-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.special-holidays { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.special-holidays select { width: auto; }
.google-specials ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--slate); line-height: 1.7; }
.hours-choice { display: flex; flex-direction: column; gap: 10px; }
.hours-now { margin: 0 0 0 26px; }
@media (max-width: 720px) {
  .special-row { grid-template-columns: minmax(0, 1fr) 104px 30px; }
  .special-row > input[type=date] { grid-column: 1; grid-row: 1; }
  .special-row > select { grid-column: 2; grid-row: 1; }
  .special-row > .icon-btn { grid-column: 3; grid-row: 1; }
  .special-row > input[type=text] { grid-column: 1 / 4; grid-row: 2; }
  .special-times { grid-column: 1 / 4; grid-row: 3; }
  .week-list { grid-template-columns: 96px minmax(0, 1fr); }
}

/* ---------- terms ---------- */
.notice-line { margin: 0; padding: 10px 14px; border-left: 3px solid var(--line2); background: var(--panel); border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--slate); line-height: 1.55; }
.consent { max-width: 440px; }
.consent-who { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: -8px 0 18px; padding: 8px 12px; border-radius: 8px; background: #F4F5F7; font-size: 13px; color: var(--slate); }
.consent-who b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.consent-form { display: flex; flex-direction: column; gap: 16px; }
.consent-can { margin: 0; font-size: 14px; }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .btn { flex: 1; }
.consent .consent-later { margin: 0; font-size: 13px; }
.login-terms { margin: 20px 0 0; text-align: center; font-size: 12.5px; }
.login-terms a { color: var(--slate); }
.login-terms a + a { margin-left: 16px; }
.terms .guide-section h2 { scroll-margin-top: 16px; }
.terms ol, .terms ul { line-height: 1.65; padding-left: 20px; max-width: 66ch; }
.terms li { margin-bottom: 6px; }
.terms .updated { color: var(--slate); font-size: 13.5px; margin: 14px 0 0; }

/* ---------- sign-in log ---------- */
.signin-block { margin-top: 40px; max-width: 900px; }
.signin-block h2 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.signin-block > .help { display: block; margin: 0 0 14px; }
.signins td.when { white-space: nowrap; }
.signins tr.failed td { background: color-mix(in srgb, var(--danger-bg) 55%, #fff); }
.signins .row-sub { display: block; }
.tag.warn { color: var(--danger); background: var(--danger-bg); box-shadow: none; }
@media (max-width: 720px) { .signins { display: block; overflow-x: auto; } }

.login-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; font-size: 13.5px; }
.login-links a, .login-terms a { text-decoration: none; }
.login-links a:hover, .login-terms a:hover, .login-links a:focus-visible, .login-terms a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

/* Master admin › Error log: one line per error, the details and stack trace when opened. */
.errlog { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.errlog > li { border-top: 1px solid var(--line); }
.errlog > li:first-child { border-top: 0; }
.errlog summary { display: flex; align-items: center; gap: 14px; padding: 11px 16px; cursor: pointer; list-style: none; }
.errlog summary::-webkit-details-marker { display: none; }
.errlog summary:hover { background: var(--panel); }
.errlog-when { flex: 0 0 120px; font-size: 12.5px; color: var(--slate); font-variant-numeric: tabular-nums; white-space: nowrap; }
.errlog-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.errlog-msg { font-size: 14px; font-weight: 500; color: var(--danger); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.errlog-facts { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 4px 16px 10px; font-size: 13px; }
.errlog-facts dt { color: var(--faint); }
.errlog-facts dd { margin: 0; overflow-wrap: anywhere; }
.errlog-text { margin: 0 16px 14px; padding: 12px; max-height: 420px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .errlog summary { flex-wrap: wrap; gap: 4px 14px; }
  .errlog-when { flex-basis: 100%; }
  .errlog-facts { grid-template-columns: 1fr; }
}

/* What's new: changes by day, each with how to use it and what we recommend. */
.side .news-link { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.news-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.news-dot[hidden] { display: none; }
.news { display: flex; flex-direction: column; gap: 34px; max-width: 760px; }
.news-day { display: grid; grid-template-columns: 150px 1fr; gap: 24px; }
.news-date { margin: 2px 0 0; font-size: 13px; font-weight: 500; color: var(--slate); font-variant-numeric: tabular-nums; }
.news-items { display: flex; flex-direction: column; gap: 26px; }
.news-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-item p { margin: 0 0 10px; max-width: 64ch; line-height: 1.55; }
.news-how { margin: 0 0 12px; padding-left: 20px; color: var(--slate); line-height: 1.55; max-width: 62ch; }
.news-how li + li { margin-top: 4px; }
.news-tip { padding: 10px 14px; border-left: 3px solid var(--accent); background: #F3F6FD; border-radius: 0 8px 8px 0; color: var(--ink); }
.news-tip b { display: block; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); margin-bottom: 2px; }
@media (max-width: 640px) {
  .news-day { grid-template-columns: 1fr; gap: 10px; }
}
.tab-help { margin: -8px 0 16px; max-width: 70ch; }
.news-item p.news-how-one { color: var(--slate); }

/* Change history: summary line, before / after texts, put back. */
.changes .change-what { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.change-texts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.change-texts .errlog-text { margin-top: 0; max-height: 300px; }
.change-label { margin: 6px 16px 4px; font-size: 12.5px; color: var(--faint); }
.change-restore { margin: 0 16px 14px; }
@media (max-width: 760px) { .change-texts { grid-template-columns: 1fr; } }

/* Instructions review: suggestions after saving, each with what goes and what comes. */
.review-dialog { max-width: 620px; text-align: left; align-items: stretch; padding: 26px 26px 22px; max-height: calc(100vh - 32px); overflow: auto; }
.review-dialog h2 { margin: 0 0 6px; font-size: 18px; }
.review-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.review-list .check > span { display: flex; flex-direction: column; gap: 4px; }
.review-old { text-decoration: line-through; color: var(--danger); background: var(--danger-bg); padding: 4px 8px; border-radius: 6px; font-size: 13px; white-space: pre-wrap; }
.review-new { color: var(--ok); background: var(--ok-bg); padding: 4px 8px; border-radius: 6px; font-size: 13px; white-space: pre-wrap; }
.review-actions { display: flex; justify-content: flex-end; gap: 8px; }
.review-status { margin-top: 6px; }
/* Tips & features as cards. */
.news { gap: 14px; }
.news > .news-item { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

/* Assistant › Update from website: updates waiting, the watched pages. */
.notice-box { padding: 10px 14px; border-radius: 10px; background: #F3F6FE; font-size: 14px; line-height: 1.5; max-width: 620px; }
.watch-updates { max-width: 680px; margin: 0 0 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.watch-updates h2, .watch-pages h2 { margin: 0; font-size: 16px; }
.watch-updates .review-list { margin: 14px 0 18px; }
.watch-pages { max-width: 620px; margin-top: 36px; }
.watch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.watch-list { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.watch-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.watch-list .error-text { color: var(--danger); font-size: 13px; }
.starter-actions { display: flex; gap: 8px; flex-wrap: wrap; flex: none; }
.starter-waiting { color: var(--ok); font-weight: 500; }

/* AI and usage › own keys: one row per provider; a saved key shows masked with Change / Remove. */
.key-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.key-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.key-head { display: flex; align-items: center; gap: 8px; }
.key-saved, .key-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.key-saved[hidden], .key-edit[hidden] { display: none; }
.key-saved code { flex: 1 1 220px; padding: 8px 12px; border-radius: 8px; background: var(--panel); color: var(--slate); font-size: 13.5px; letter-spacing: .02em; }
.key-edit input { flex: 1 1 220px; min-width: 0; }
.key-actions { display: flex; gap: 8px; }
.btn.danger-text { color: var(--danger); }
.btn.danger-text:hover { background: var(--danger-bg); }

/* Assistant › Conversations by API: keys and how to use them. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.api-page { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.api-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.api-card h2 { margin: 0 0 10px; font-size: 16px; }
.api-card h3 { margin: 20px 0 8px; font-size: 14px; }
.api-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.api-keys { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line); }
.api-keys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.api-keys li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.api-new { display: flex; gap: 8px; flex-wrap: wrap; }
.api-new input { flex: 1 1 240px; min-width: 0; }
.api-params { display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); gap: 6px 14px; margin: 12px 0; font-size: 13.5px; }
.api-params dt { color: var(--slate); }
.api-params dd { margin: 0; }
.api-notes { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }

/* ---------- bookings: the day on the left like a page of a desk calendar, its times on the right ---------- */
.bk-form { max-width: 620px; }
.bk-times { display: flex; flex-direction: column; gap: inherit; transition: opacity .15s; }
.bk-times[aria-busy=true] { opacity: .5; }
.svc-intro { margin: 0 0 12px; max-width: 68ch; font-size: 13.5px; }
.fold-edit { color: var(--accent-ink); font-size: 13.5px; }
details.fold[open] .fold-edit { visibility: hidden; }
.svc-add { margin-top: 20px; }
.svc-add > summary::-webkit-details-marker { display: none; }
.svc-add .fold-body { padding-top: 20px; }
.bk-error { margin-bottom: 24px; max-width: 620px; }
.bk-views { display: inline-flex; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line2); }
.bk-views a { display: grid; place-items: center; min-height: 38px; padding: 0 14px; border-radius: 8px; font-size: 14px; color: var(--slate); text-decoration: none; }
.bk-views a:hover { color: var(--ink); }
.bk-views a.on { color: var(--ink); background: #E8EBF0; font-weight: 500; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.bk-cal-head h2 { margin: 0; font-size: 18px; }
.bk-cal-nav { display: flex; gap: 6px; }
.pick-number { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pick-number legend { padding: 0; margin: 0 0 10px; font-weight: 500; }
.pick-number .found { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; }
.pick-number .found:empty { display: none; }
.bk-cals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.bk-cals a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line2); font-size: 14px; color: var(--slate); text-decoration: none; }
.bk-cals a:hover { color: var(--ink); background: var(--panel); }
.bk-cals a.on { color: var(--ink); background: #E8EBF0; box-shadow: none; font-weight: 500; }
.bk-cals a.add { color: var(--ink); }
.bk-cals i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.bk-c1 { --c: var(--cal-1); } .bk-c2 { --c: var(--cal-2); } .bk-c3 { --c: var(--cal-3); } .bk-c4 { --c: var(--cal-4); } .bk-c5 { --c: var(--cal-5); } .bk-c6 { --c: var(--cal-6); }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bk-weekday { padding: 8px 10px; font-size: 12.5px; font-weight: 500; color: var(--slate); background: var(--panel); }
.bk-cell { min-height: 112px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); }
.bk-cell:not(:nth-child(7n)) { border-right: 1px solid var(--line); }
.bk-grid.week .bk-cell { min-height: 360px; }
.bk-cell.closed { background: var(--panel); }
.bk-cell.other .bk-num { color: var(--faint); font-weight: 400; }
.bk-num { align-self: flex-start; min-width: 26px; height: 26px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
.bk-num:hover { background: var(--line); }
.bk-num.today, .bk-cell.other .bk-num.today { background: var(--accent); color: #fff; font-weight: 600; }
.bk-ev { padding: 4px 7px; border-left: 3px solid var(--c); border-radius: 5px; background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--ink); font-size: 12.5px; line-height: 1.35; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.bk-grid.month .bk-ev { white-space: nowrap; }
.bk-grid.month .bk-ev small { display: none; }
.bk-ev:hover { background: color-mix(in srgb, var(--c) 18%, #fff); }
.bk-ev b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-ev small { display: block; font-size: 12px; color: var(--slate); }
.bk-ev.waiting { border-left-style: dashed; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.bk-ev.bk-busy, .bk-ev.bk-busy:hover { border-left-color: var(--line2); background: var(--line); color: var(--slate); }
.bk-ev.bk-busy b { font-weight: 500; }
.bk-busy-row, .bk-busy-row .convo-q { color: var(--slate); }
.bk-ev:focus-visible, .bk-num:focus-visible { outline-offset: -2px; }
.bk-rest { padding: 2px 7px; font-size: 12.5px; }
.bk-none { margin: 14px 0 0; }
.bk-grid-list { display: none; }
@media (max-width: 820px) {
  .bk-grid { display: none; }
  .bk-grid-list { display: block; }
  .bk-views a, .bk-cals a { min-height: 44px; }
}
.bk-more { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.bk-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.bk-alerts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 18px; font-size: 13.5px; }
.bk-alerts .check { display: flex; gap: 8px; cursor: pointer; }
.bk-alerts .help { flex-basis: 100%; }
.bk-news { margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: var(--ok-bg); color: var(--ok); font-size: 14px; font-weight: 500; }
.bk-day { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 22px; }
.bk-date { margin: 0; padding: 8px 0 7px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; font-size: 12px; line-height: 1.25; font-weight: 500; letter-spacing: 0; color: var(--slate); }
.bk-date b { font-size: 21px; line-height: 1.2; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bk-time { flex: 0 0 76px; font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.bk-time small { font-size: 12px; font-weight: 400; color: var(--slate); }
.bk-slots { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bk-slots legend { padding: 0 0 10px; font-size: 13.5px; font-weight: 500; }
.bk-slot { position: relative; display: inline-flex; flex: none; text-decoration: none; color: var(--ink); cursor: pointer; border-radius: 8px; }
.bk-slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.bk-slot span { min-width: 84px; min-height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2); font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background .12s, box-shadow .12s; }
.bk-slot:hover span { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent-ink); }
.bk-slot input:checked + span { background: var(--accent); color: #fff; box-shadow: none; }
.bk-slot input:focus-visible + span { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--ring); }
.bk-week { display: flex; flex-direction: column; gap: 8px; }
.bk-week label { flex-direction: row; align-items: center; gap: 12px; font-weight: 400; }
.bk-week label > span { flex: 0 0 92px; }

.book { align-self: start; width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 30px 26px; }
.book-head { margin-bottom: 24px; }
.book-head .brand { margin: 0 0 14px; font-weight: 600; font-size: 14px; color: var(--slate); }
.book-head .hint { margin: 6px 0 0; }
.book-pick { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0 0; font-size: 14.5px; }
.book-pick a { flex: none; align-self: flex-start; padding: 10px 0 10px 12px; margin: -10px 0; }
.book > .error { margin-bottom: 18px; }
.book-sent { margin: 0; }
.book-services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.book-services a { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.book-services a:hover b { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.book-services b { font-weight: 600; font-size: 15px; }
.book-services small { display: block; color: var(--slate); font-size: 13.5px; white-space: pre-line; }
.book-meta { flex: none; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.book-more { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.book .facts { margin-bottom: 22px; }
input.book-code[type=text] { font-size: 22px; letter-spacing: .2em; max-width: 200px; font-variant-numeric: tabular-nums; }
.book .btn { min-height: 44px; }
.book-cancel summary { cursor: pointer; font-size: 14px; color: var(--slate); padding: 11px 0; }
.book-cancel .hint { margin: 6px 0 14px; }
@media (max-width: 480px) {
  .book { padding: 22px 18px 20px; }
  .bk-day { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .bk-slot span { min-width: 76px; padding: 0 8px; }
  .bk-day .convo { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .bk-day .convo-main { flex: 1 1 0; }
  .bk-day .convo-tags { flex: 0 0 calc(100% - 78px); margin: -6px 0 0 78px; }
  .bk-time { flex-basis: 64px; }
}

/* Phones: things to tap are 44px high, and fields use 16px text (iPhones zoom the page into smaller ones). */
@media (max-width: 820px) {
  .btn { height: 44px; font-size: 15px; }
  .btn.small { height: 36px; font-size: 14px; }
  input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=tel], input[type=date], input[type=time], select, textarea,
  .hours-row input[type=time], .special-row input[type=time], .special-row input[type=date], .picker-search input[type=search], .example-pick select { font-size: 16px; }
  input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=tel], input[type=date], select,
  .hours-row input[type=time], .special-row input[type=time], .special-row input[type=date] { min-height: 44px; }
  textarea.code, input.code { font-size: 16px; }
  .hours-row { flex-wrap: wrap; }
  .hours-row .check { width: 100%; min-height: 32px; }
  .hours-row input[type=time] { flex: 0 1 140px; min-width: 0; }
  main .link { display: inline-block; padding: 10px 0; }
  main summary { padding-top: 11px; padding-bottom: 11px; }
  .chips-nav { gap: 6px; }
  .bk-alerts .check { min-height: 44px; align-items: center; font-size: 15px; }
  .bk-alerts .check input { width: 20px; height: 20px; margin: 0; }
  .chips-nav a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 11px; font-size: 14px; }
  .tabs [role=tab], .tabs a { min-height: 44px; font-size: 15px; }
  .pager-links a { padding: 12px 8px; margin: -12px 0; }
}
