Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

112 KB
Raw Blame
/* Sage palette. Light only.
   Sidebars on warm grey-beige, page on the lighter tone, everything with text on white. */
:root {
  color-scheme: light;
  --bg: #fafaf8; --surface: #ffffff; --surface-raised: #ffffff; --surface-hover: #f3f2ee;
  /* --line: dividers and card edges, kept soft. --line-control: borders of inputs, selects, checkboxes and
     outline buttons, the lightest warm grey with 3:1 on white (WCAG 1.4.11). */
  --line: #e7e4de; --line-control: #99948c; --line-soft: #d8d3cb; /* --line-soft: dashed tiles, spinner tracks, outline badges */
  --ink: #1c1917; --ink-muted: #645d57; --ink-disabled: #a8a29e;
  /* --install-action: the install's primary color (brand.ts); --action is a white-label partner's in its client workspaces. */
  --install-action: #1c1917; --install-on-action: #fafaf8;
  --action: var(--install-action); --on-action: var(--install-on-action);
  --signal: #1c1917; --signal-soft: #f0efeb; --on-signal: #fafaf8;
  --bubble-out: #f3f2ee; --bubble-in: #ffffff; --bubble-caller: var(--surface);
  --info: #4a5f7a; --info-soft: #edf0f4; --read-tick: #4a5f7a; --focus: #1c1917;
  --warning: #b45309; --warning-soft: #fbf1e4;
  --danger: #b42318; --danger-soft: #fdecea; --on-danger: #ffffff; --live: #b42318;
  --speaker-caller: #1c1917; --speaker-ai: #8a827b; --speaker-agent: #4a5f7a;
  /* --skeleton: the grey of loading placeholders (ui/LoadStates.tsx), a step darker than hover so it reads on white and on the page. */
  --skeleton: #edebe6;
  --sidebar: #f4f3ef; --sidebar-muted: #5f5852; --highlight: #f0efeb; --highlight-ink: #1c1917;
  --shadow-popover: 0 12px 32px -8px rgb(41 37 36 / 0.18), 0 2px 6px rgb(41 37 36 / 0.06);
  --shadow-dialog: 0 12px 32px -8px rgb(41 37 36 / 0.18), 0 2px 6px rgb(41 37 36 / 0.06);
  --shadow-card: 0 1px 2px rgb(41 37 36 / 0.05), 0 2px 8px -2px rgb(41 37 36 / 0.06);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  /* One height per control size, shared by text fields, date fields, selects and buttons, so controls in one row line up
     (LIN-202). Default 32; small 28 for compact rows (card headers, list rows, toolbars) where every control is small;
     large 36 for onboarding. Never mix sizes in one row. */
  --control-h-sm: 28px; --control-h: 32px; --control-h-lg: 36px;
  --radius-xs: 6px; --radius-sm: 8px; --radius-md: 10px; --radius-lg: 12px; --radius-bubble: 16px; --radius-full: 9999px;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
body { background: var(--bg); color: var(--ink); }

/* Kontor components */

body { margin: 0; font-family: var(--font-sans); background: var(--bg); color: var(--ink); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; }
/* A partner's own screens (its setup, the partner area): the install's color, never the partner's (brand.ts). */
.k-install-brand { --action: var(--install-action); --on-action: var(--install-on-action); }
.k-icon { display: block; flex: none; }

/* Kbd */
.k-kbds { display: inline-flex; gap: var(--space-1); }
.k-kbd { box-sizing: border-box; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1; color: var(--ink-muted); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xs); }

/* Button */
.k-btn { box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-h); padding: 0 var(--space-3); font: inherit; font-size: 13px; font-weight: 500; line-height: 1; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; }
.k-btn:focus-visible, .k-send:focus-visible, .k-chat:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.k-btn-primary { background: var(--action); color: var(--on-action); }
.k-btn.is-busy:disabled { cursor: progress; }
/* Busy is not unavailable: the primary button stays black while it works. */
.k-btn-primary.is-busy:disabled { background: var(--action); color: var(--on-action); }
/* Spinner in the text colour: on a black button it is white, in muted text it is grey. */
.k-spin { flex: none; width: 12px; height: 12px; box-sizing: border-box; border-radius: var(--radius-full); border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent); border-top-color: currentColor; }
@media (prefers-reduced-motion: no-preference) { .k-spin { animation: st-spin .7s linear infinite; } }
.ws-creating { margin: 0; font-size: 12px; color: var(--ink-muted); }
.k-btn-primary:hover { opacity: .88; }
.k-btn-primary .k-kbd, .k-btn-danger .k-kbd { background: transparent; border-color: currentColor; color: inherit; opacity: .72; }
.k-btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
.k-btn-secondary:hover { background: var(--surface-hover); }
.k-btn-ghost { background: transparent; color: var(--ink-muted); }
.k-btn-ghost:hover { background: var(--surface-hover); color: var(--ink); }
.k-btn-danger { background: var(--danger); color: var(--on-danger); }
.k-btn-danger-outline { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.k-btn-danger-outline:hover { background: var(--danger-soft); }
.k-btn-sm { height: var(--control-h-sm); padding: 0 10px; font-size: 12.5px; gap: 6px; }
.k-btn-lg { height: var(--control-h-lg); padding: 0 16px; font-size: 14px; }
.k-btn-sm .k-kbd { height: 18px; min-width: 18px; }
.k-btn-icon { width: var(--control-h); padding: 0; justify-content: center; }
.k-btn-sm.k-btn-icon { width: var(--control-h-sm); }
.k-btn:disabled { background: var(--surface-hover); color: var(--ink-disabled); border-color: transparent; cursor: not-allowed; opacity: 1; }

/* Input */
.k-input { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-2); height: var(--control-h); padding: 0 var(--space-2) 0 10px; background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-sm); color: var(--ink-muted); }
.k-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.k-input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 13.5px; color: var(--ink); padding: 0; }
.k-input-sm { height: var(--control-h-sm); }
.k-input-sm input { font-size: 12.5px; }
.k-input-lg { height: var(--control-h-lg); padding: 0 12px; }
.k-input.k-input-lg input { font-size: 14px; }
.k-input input::placeholder, .k-composer-input::placeholder, .k-cmd-search input::placeholder { color: var(--ink-muted); opacity: 1; }

/* Badge */
.k-badge { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 var(--space-2); border-radius: var(--radius-full); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.k-badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }
.k-badge-neutral { background: var(--surface-hover); color: var(--ink-muted); }
.k-badge-signal { background: var(--signal-soft); color: var(--signal); }
.k-badge-info { background: var(--info-soft); color: var(--info); }
.k-badge-warning { background: var(--warning-soft); color: var(--warning); }

/* Note: the one box for a message on a page (docs/design-principles.md, Messages). Tones: neutral (grey, a plain
   hint), info (blue-grey), success (a result, check icon), warning (amber: works, but something important is
   missing), danger (red: failed or blocked). Warning and danger carry an accent edge and their icon. */
.k-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--surface-hover); color: var(--ink); font-size: 13px; line-height: 18px; text-align: left; overflow-wrap: anywhere; }
.k-note-icon { flex: none; }
.k-note-body { flex: 1 1 240px; min-width: 0; display: grid; gap: 2px; }
.k-note-title { font-weight: 600; }
/* A link in a note is the shared in-app link (ui/AppLink.tsx, .k-link): underlined, in the note's own ink. */
.k-note-text a:not(.k-btn), .k-note-text .k-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* A note with actions: the icon, the text's first line and the buttons share one centre line; when the text needs the
   room, the buttons move below it, at the right. */
.k-note-action { flex: 0 1 auto; min-width: 0; max-width: 100%; margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--space-2); }
/* Narrow: the actions get a line of their own under the text (at the right), and wrap there instead of overflowing. */
@media (max-width: 560px) { .k-note-action { flex-basis: 100%; } }
.k-note-info { background: var(--info-soft); }
.k-note-info .k-note-icon { color: var(--info); }
.k-note-success .k-note-icon { color: var(--ink); }
.k-note-warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 30%, transparent); border-left: 3px solid var(--warning); }
.k-note-warning .k-note-icon { color: var(--warning); }
.k-note-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 25%, transparent); border-left: 3px solid var(--danger); }
.k-note-danger .k-note-icon { color: var(--danger); }
.k-badge-danger { background: var(--danger-soft); color: var(--danger); }
.k-badge-ok { background: var(--surface-hover); color: var(--ink); }
.k-badge-outline { background: transparent; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line-soft); }

/* Avatar */
.k-avatar { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: var(--radius-full); background: var(--surface-hover); color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.k-avatar-20 { width: 20px; height: 20px; font-size: 9px; }
.k-avatar-24 { width: 24px; height: 24px; font-size: 10px; }
.k-avatar-32 { width: 32px; height: 32px; font-size: 12px; }
.k-avatar-40 { width: 40px; height: 40px; font-size: 14px; }
.k-avatar-48 { width: 48px; height: 48px; font-size: 16px; }
.k-avatar-56 { width: 56px; height: 56px; font-size: 18px; }
/* A profile picture: any image, cropped to the circle (object-fit), never stretched. */
.k-avatar-pic { overflow: hidden; background: var(--surface); }
.k-avatar-pic > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.k-avatar-ai { background: var(--signal-soft); color: var(--signal); }
.k-presence { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: var(--radius-full); box-shadow: 0 0 0 2px var(--bg); }
.k-avatar-24 .k-presence { width: 8px; height: 8px; }
.k-presence-online { background: var(--signal); }
.k-presence-away { background: var(--warning); }

/* Day divider */
.k-day { display: flex; justify-content: center; padding: var(--space-2) 0; }
.k-day span { font-size: 12px; font-weight: 500; line-height: 16px; color: var(--ink-muted); background: var(--surface-raised); border: 1px solid var(--line); padding: 2px 10px; border-radius: var(--radius-full); }

/* Message bubble */
.k-msg { display: flex; padding: 1px 0; }
.k-msg-me { justify-content: flex-end; }
/* A live line whose speaker is not known yet: on neither side, muted. */
.k-msg-unknown { justify-content: center; }
.k-msg-unknown .k-bubble { color: var(--ink-muted); }
.k-msg-tail { margin-top: var(--space-2); }
.k-bubble { position: relative; box-sizing: border-box; max-width: min(72%, 520px); padding: 6px 10px 7px; border-radius: var(--radius-bubble); font-size: 14.5px; line-height: 20px; overflow-wrap: anywhere; }
.k-msg-them .k-bubble { background: var(--bubble-in); border: 1px solid var(--line); }
.k-msg-me .k-bubble { background: var(--bubble-out); color: var(--ink); }
.k-msg-them.k-msg-tail .k-bubble { border-top-left-radius: var(--radius-xs); }
.k-msg-me.k-msg-tail .k-bubble { border-top-right-radius: var(--radius-xs); }
.k-msg-author { font-size: 12.5px; font-weight: 600; line-height: 18px; color: var(--signal); }
.k-meta-space { display: inline-block; width: 40px; height: 1px; }
.k-msg-me .k-meta-space { width: 60px; }
.k-meta { position: absolute; right: 10px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 11px; line-height: 1; color: var(--ink-muted); }
.k-ticks { display: inline-flex; color: var(--ink-muted); }
.k-ticks-read { color: var(--read-tick); }

/* Composer */
.k-composer { box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-md); }
.k-composer:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.k-composer-input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 14.5px; line-height: 20px; color: var(--ink); padding: 6px 4px; }
.k-composer-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.k-send { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: var(--radius-sm); background: var(--signal); color: var(--on-signal); cursor: pointer; }
.k-send:disabled { background: var(--surface-hover); color: var(--ink-disabled); cursor: default; }

/* Chat list item */
.k-chat { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-2) var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.k-chat:hover, .k-chat.is-active { background: var(--surface-hover); }
.k-chat-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.k-chat-top, .k-chat-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.k-chat-name { font-size: 14px; font-weight: 500; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-chat-time { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.k-chat-preview { font-size: 13px; line-height: 18px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-chat.is-unread .k-chat-name { font-weight: 600; }
.k-chat.is-unread .k-chat-time { color: var(--signal); }
.k-chat.is-unread .k-chat-preview { color: var(--ink); }
.k-chat-typing { color: var(--signal); }
.k-count { box-sizing: border-box; flex: none; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-full); background: var(--signal); color: var(--on-signal); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Command menu */
.k-cmd { box-sizing: border-box; width: 100%; max-width: 560px; background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog); overflow: hidden; }
.k-cmd-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.k-cmd-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.k-cmd-list { padding: 6px; max-height: 300px; overflow: auto; }
.k-cmd-group { padding: 8px 10px 4px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--ink-muted); }
.k-cmd-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink); cursor: pointer; }
.k-cmd-item .k-icon { color: var(--ink-muted); }
.k-cmd-item[aria-selected="true"] { background: var(--surface-hover); }
.k-cmd-item[aria-selected="true"] .k-icon { color: var(--ink); }
.k-cmd-item .k-kbds { margin-left: auto; }
.k-cmd-empty { padding: var(--space-6) var(--space-3); text-align: center; font-size: 13px; color: var(--ink-muted); }
.k-cmd-foot { display: flex; flex-wrap: wrap; gap: var(--space-4); padding: var(--space-2) 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); }
.k-cmd-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* Message bubble: call variants */
.k-msg-me .k-msg-author { color: var(--ink-muted); }
.k-bubble.k-tone-signal { background: var(--bubble-caller); border: 1px solid var(--line); }
.k-bubble.k-tone-neutral { background: var(--bubble-in); border: 1px solid var(--line); }
.k-bubble.k-tone-signal .k-msg-author { color: var(--ink-muted); }
.k-bubble.k-tone-neutral .k-msg-author { color: var(--ink-muted); }
.k-caret { display: inline-block; width: 2px; height: 16px; margin-left: 3px; vertical-align: -3px; background: currentColor; border-radius: 1px; }

/* Live indicator */
.k-livei { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-full); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.k-livei time { font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.k-livei-dot { display: inline-block; width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }
.k-livei-live { background: var(--danger-soft); color: var(--live); }
.k-livei-ringing { background: var(--warning-soft); color: var(--warning); }
.k-livei-hold { background: var(--info-soft); color: var(--info); }
.k-livei-ended { background: var(--surface-hover); color: var(--ink-muted); }
.k-chat-top .k-livei { height: 20px; }

/* Call timeline */
.k-tl { box-sizing: border-box; display: grid; gap: 6px; padding: var(--space-3) var(--space-4) 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.k-tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.k-tl-key { display: inline-flex; align-items: center; gap: 6px; }
.k-tl-key::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--k); }
.k-tl-key.caller { --k: var(--speaker-caller); }
.k-tl-key.ai { --k: var(--speaker-ai); }
.k-tl-key.agent { --k: var(--speaker-agent); }
.k-tl-key b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.k-tl-time { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; }
.k-tl-time .k-livei-dot { color: var(--live); }
.k-tl-row { display: flex; align-items: center; gap: var(--space-3); }
.k-play { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: var(--radius-full); background: var(--action); color: var(--on-action); cursor: pointer; }
.k-play:focus-visible, .k-tl-track:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.k-tl-track { position: relative; flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; gap: 2px; cursor: pointer; border-radius: var(--radius-xs); }
.k-tl-track.is-live { cursor: default; }
.k-tl-bar { position: relative; z-index: 1; flex: 1; min-width: 1px; border-radius: 1px; }
.k-tl-bar.caller { background: var(--speaker-caller); }
.k-tl-bar.ai { background: var(--speaker-ai); }
.k-tl-bar.agent { background: var(--speaker-agent); }
.k-tl-bar.none { height: 2px; background: var(--line); }
.k-tl-played { position: absolute; z-index: 0; left: 0; top: -4px; bottom: -4px; background: var(--surface-hover); border-radius: var(--radius-xs); }
.k-tl-ph { position: absolute; z-index: 2; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.k-tl-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; line-height: 14px; color: var(--ink-muted); }
.k-tl-axis.has-play { padding-left: 44px; }

/* Call event */
.k-event { display: flex; align-items: center; gap: 10px; padding: var(--space-2) 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.k-event::before, .k-event::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.k-event-in { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.k-event-in time { font-family: var(--font-mono); font-size: 11px; }

/* Call list item (extends .k-chat) */
.k-call-sum { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.k-call-sum span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-call-dur { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.k-call.is-missed .k-call-sum .k-icon, .k-call.is-missed .k-chat-time { color: var(--danger); }

/* Call summary */
.k-summary { box-sizing: border-box; display: grid; align-content: start; gap: 14px; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.k-summary-h { display: flex; align-items: center; gap: var(--space-2); }
.k-summary-h .k-icon { color: var(--signal); }
.k-summary-h b { font-size: 14px; font-weight: 600; }
.k-summary-h small { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
.k-summary p { margin: 0; font-size: 13px; line-height: 19px; }
.k-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--space-3); margin: 0; font-size: 13px; line-height: 18px; }
.k-summary dt { color: var(--ink-muted); }
.k-summary dd { margin: 0; }
.k-summary-tasks { display: grid; gap: var(--space-2); }
.k-summary-label { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.k-task { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 13px; line-height: 18px; cursor: pointer; }
.k-task input { flex: none; width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--signal); }
.k-summary-a { display: flex; flex-wrap: wrap; gap: var(--space-2); }

@media (prefers-reduced-motion: no-preference) {
  .k-livei-live .k-livei-dot, .k-tl-time .k-livei-dot { animation: k-pulse 1.4s ease-out infinite; }
  .k-caret { animation: k-blink 1s steps(1) infinite; }
}
@keyframes k-pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 5px transparent; } }
@keyframes k-blink { 50% { opacity: 0; } }

/* Preview helpers */



/* Prototype */
/* Layout: permanent icon rail 56px | main. Calls work like Superhuman: full-width list, Enter opens the call full width, Esc goes back. Tokens from the Kontor design system above. */
html, body { height: 100%; }
body { overflow: hidden; }
#app { height: 100%; }
button { font: inherit; }
/* Everything clickable shows the pointer; :where keeps this at zero specificity, so a component's own
   cursor (not-allowed when disabled, grab while dragging, default when not clickable) still wins. */
:where(
  button,
  a[href],
  summary,
  select,
  label:has(> input[type="checkbox"], > input[type="radio"]),
  input[type="checkbox"],
  input[type="radio"],
  input[type="range"],
  input[type="color"],
  input[type="file"],
  input[type="submit"],
  input[type="button"],
  [role="button"],
  [role="link"],
  [role="tab"],
  [role="option"],
  [role="menuitem"],
  [role="menuitemcheckbox"],
  [role="menuitemradio"],
  [role="switch"],
  [role="checkbox"],
  [role="radio"]
) { cursor: pointer; }
:where(button, select, input):disabled, :where([aria-disabled="true"]) { cursor: not-allowed; }
.k-btn > span { display: inline-flex; align-items: center; gap: 6px; }

.app { display: grid; grid-template-columns: 56px minmax(0, 1fr); height: 100%; background: var(--bg); color: var(--ink); }

/* Rail */
.nav { position: relative; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; padding-left: max(8px, env(safe-area-inset-left, 0px)); background: var(--surface); border-right: 1px solid var(--line); min-height: 0; }
.ws-mark { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--signal); color: var(--on-signal); display: grid; place-items: center; margin-bottom: 10px; flex: none; }



.row:focus-visible, .r-act:focus-visible, .ib-tab:focus-visible, .sw:focus-visible, .opt:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }


.nav-foot { margin-top: auto; display: grid; gap: 2px; justify-items: center; padding-top: 8px; }


.nav-live { display: block; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--live); box-shadow: 0 0 0 2px var(--surface); }


/* The content area is a container: its layout follows the room beside the docked menu, not the window (app.css). */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; container: main / inline-size; }

/* Inbox */
.ib-head { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; min-height: 52px; padding: 8px 24px; border-bottom: 1px solid var(--line); flex: none; }

.ib-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.ib-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.ib-tab:hover { color: var(--ink); }
.ib-tab[aria-selected="true"] { color: var(--ink); background: var(--surface-hover); }
.ib-tab .n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.ib-right { margin-left: auto; display: flex; gap: 6px; }
.ib-list { flex: 1; overflow: auto; min-height: 0; padding: 6px 0 24px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 24px; cursor: pointer; }
.row:hover { background: var(--surface); }
.row.is-cursor { background: var(--surface-hover); }
.r-dir { flex: none; color: var(--ink-muted); display: grid; }
.r-dir.missed { color: var(--danger); }

.r-name { flex: 0 0 190px; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.r-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.unread .r-name { color: var(--ink); font-weight: 600; }




.r-dur, .r-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; text-align: right; }
.r-dur { min-width: 36px; }
.r-time { min-width: 52px; }
.row.unread .r-time { color: var(--ink); }
.r-acts { display: none; gap: 2px; }
.row:hover .r-acts, .row.is-cursor .r-acts { display: flex; }
.row:hover .r-dur, .row:hover .r-time, .row.is-cursor .r-dur, .row.is-cursor .r-time { display: none; }
.r-act { width: 28px; height: 28px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; }
.r-act:hover { background: var(--surface-raised); color: var(--ink); }
.ib-hint { flex: none; display: flex; justify-content: center; gap: 4px 12px; flex-wrap: wrap; padding: 6px 24px 8px; font-size: 10.5px; line-height: 14px; color: var(--ink-muted); }
.ib-hint span { display: inline-flex; align-items: center; gap: 4px; }
.ib-hint .k-kbds { gap: 2px; }
.ib-hint .k-kbd { height: 15px; min-width: 15px; padding: 0 3px; font-size: 9.5px; }

/* Call view */
.cv { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cv-bar { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
.cv-pos { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-muted); padding: 0 4px; white-space: nowrap; }
.cv-acts { margin-left: auto; display: flex; gap: 6px; }
.cv-scroll { flex: 1; overflow: auto; min-height: 0; padding: 20px 24px 32px; }
.cv-col { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cv-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 4px; }
.cv-who-t { display: grid; min-width: 0; }
.cv-who h1 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.cv-who .sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.compose { padding: 0 24px 16px; flex: none; }
.compose-inner { max-width: 820px; margin: 0 auto; display: grid; gap: 6px; }
.compose small { font-size: 12px; color: var(--ink-muted); }

.vn { display: flex; align-items: center; gap: 14px; padding: 12px 14px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-bubble); border-top-left-radius: var(--radius-xs); }
.vn-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: var(--radius-full); background: var(--action); color: var(--on-action); cursor: pointer; }
.vn-btn.live { background: var(--danger-soft); color: var(--live); }
.vn-btn.live[aria-pressed="true"] { background: var(--live); color: var(--on-danger); }
.vn-btn:focus-visible, .vn-wave:focus-visible, .vn-speed:focus-visible, .seek:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vn-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.vn-wave { position: relative; height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 1px; cursor: pointer; border-radius: var(--radius-xs); }
.vn-wave.is-live { cursor: default; }
.vn-wave i { flex: 0 1 3px; min-width: 1.5px; border-radius: 2px; }
.vn-wave i.caller { background: var(--speaker-caller); }
.vn-wave i.ai { background: var(--speaker-ai); }
.vn-wave i.agent { background: var(--speaker-agent); }
.vn-wave i.none { height: 3px; background: var(--line); }
.vn-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: var(--radius-full); background: var(--ink); box-shadow: 0 0 0 3px var(--surface); pointer-events: none; }





  

.vn-speed { flex: none; height: 26px; min-width: 44px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--surface-raised); color: var(--ink); font-family: var(--font-mono); font-size: 12px; cursor: pointer; }
.vn-speed:hover { background: var(--surface-hover); }

/* A booking the assistant made on the call: date tile, type and time, calendar, status. */
.bkc { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.bkc-date { flex: none; width: 44px; height: 46px; border-radius: var(--radius-sm); background: var(--surface-hover); display: grid; place-items: center; align-content: center; line-height: 1; }
.bkc-date span { font-size: 10px; font-weight: 600; color: var(--ink-muted); letter-spacing: .04em; }
.bkc-date b { font-size: 18px; margin-top: 3px; }
.bkc-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bkc-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkc-t span { font-size: 12px; color: var(--ink-muted); }
.sumcard { display: grid; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sum-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sum-h .k-icon { color: var(--signal); }
.sum-h > b { font-size: 13px; font-weight: 600; }
.sum-h small { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
.sum-text { margin: 0; font-size: 16px; line-height: 24px; text-wrap: pretty; }
.sum-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 24px; }
.sum-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.sum-label { font-size: 12px; font-weight: 500; color: var(--ink-muted); }


.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; line-height: 18px; }
.facts dt { color: var(--ink-muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.facts dd.mono { font-family: var(--font-mono); font-size: 12px; }
.tr-h { display: flex; align-items: center; gap: 8px; padding: 12px 0 0; }
.tr-h b { font-size: 13px; font-weight: 600; }
.tr-h span { font-size: 12px; color: var(--ink-muted); }
.tr-h .k-btn { margin-left: auto; }
.seek { cursor: pointer; border-radius: var(--radius-bubble); }
.k-msg.is-now .k-bubble { box-shadow: 0 0 0 2px var(--focus); }
.empty { margin: auto; max-width: 380px; text-align: center; display: grid; gap: 10px; justify-items: center; padding: 48px 16px; color: var(--ink-muted); font-size: 13.5px; }
.empty b { color: var(--ink); font-size: 15px; font-weight: 600; }

/* Pages */
.page { flex: 1; overflow: auto; min-height: 0; }
.page-in { max-width: 1080px; margin: 0 auto; padding: 24px 24px 48px; display: grid; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.page-head p { margin: 2px 0 0; color: var(--ink-muted); font-size: 13.5px; }


span.mono { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }




























.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; display: grid; gap: 14px; }
.sec h2 { font-size: 15px; font-weight: 600; margin: 0; }
.sec > p { margin: -8px 0 0; font-size: 13px; color: var(--ink-muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.help { font-size: 12.5px; color: var(--ink-muted); }
/* A value beside a title or over a step (a count, "Optional", a key's role): grey text, never a badge (badges are for status). */
.k-value { font-size: 12.5px; font-weight: 400; color: var(--ink-muted); white-space: nowrap; }
/* A plan's price a month and its yearly note right under it (ui/price.tsx): one group in the plan boxes. */
.price-line { display: grid; gap: 1px; }
/* A plain link inside helper text looks like every other link (.k-link), never the browser's blue. */
.help a:not([class]) { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ta { font: inherit; font-size: 13.5px; line-height: 20px; padding: 8px 10px; border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); resize: vertical; min-height: 72px; }
.ta:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); cursor: pointer; }
.opt.on { border-color: var(--ink); }
.opt input { margin: 3px 0 0; accent-color: var(--signal); }
.opt b { display: block; font-size: 13.5px; font-weight: 500; }
.opt span { font-size: 12px; color: var(--ink-muted); }
.sw { position: relative; flex: none; width: 34px; height: 20px; border: 0; border-radius: var(--radius-full); background: var(--line-control); cursor: pointer; padding: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: var(--radius-full); background: var(--surface-raised); }
.sw[aria-checked="true"] { background: var(--signal); }
.sw[aria-checked="true"]::after { left: 17px; background: var(--on-signal); }
.save-bar { display: flex; justify-content: flex-end; gap: 8px; }

/* Overlays */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(5, 6, 8, 0.55); }
















.help-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); flex: none; }
.help-foot span { display: inline-flex; align-items: center; gap: 6px; }
.help-sheet { width: min(900px, 100%); max-height: 78vh; display: flex; flex-direction: column; background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog); overflow: hidden; }
.help-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex: none; }
.help-head b { font-size: 15px; font-weight: 600; }
.help-head .k-input { margin-left: auto; width: min(260px, 50%); }
.help-body { overflow: auto; padding: 16px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px 32px; align-content: start; }
.help-group h3 { font-size: 12px; font-weight: 500; color: var(--ink-muted); margin: 0 0 4px; }
.help-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; font-size: 13px; border-bottom: 1px solid var(--line); }
.help-empty { padding: 24px 0; font-size: 13px; color: var(--ink-muted); }
/* Toast: the one way to report the result of what the user just did (docs/design-principles.md, Messages). */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(44px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 6px 12px; border-radius: var(--radius-sm); background: rgb(28 25 23 / 0.88); color: rgb(250 250 248 / 0.92); font-size: 12px; line-height: 16px; box-shadow: 0 4px 14px -4px rgb(28 25 23 / 0.25); backdrop-filter: blur(6px); }
.toast.has-undo { padding: 6px 6px 6px 12px; }
.toast-undo { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 3px 8px; border-radius: var(--radius-xs); background: rgb(255 255 255 / 0.12); color: #fff; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.toast-undo:hover { background: rgb(255 255 255 / 0.22); }
.toast-undo:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.toast-undo .k-kbd { height: 16px; min-width: 16px; font-size: 10px; background: transparent; border-color: rgb(255 255 255 / 0.35); color: inherit; }


@media (max-width: 719px) {
  .ib-head { padding: 8px 12px; }
  .ib-hint { display: none; }
  .ib-right .k-btn > span:not(.k-kbds), .ib-right .k-kbds { display: none; }
  .row:hover .r-acts, .row.is-cursor .r-acts { display: none; }
  .cv-bar { padding: 0 8px; gap: 4px; }
  .cv-acts .k-btn > span:not(.k-kbds), .cv-acts .k-kbds, .cv-bar > .k-btn .k-kbds { display: none; }
  .cv-acts .k-btn { padding: 0 8px; }
  .cv-scroll { padding: 16px 12px 24px; }
  .compose { padding: 0 12px 12px; }
  .sum-grid { grid-template-columns: minmax(0, 1fr); }
  .vn { gap: 10px; padding: 10px 10px 8px; }
  .sumcard { padding: 16px; }
  .sum-text { font-size: 15px; line-height: 22px; }
  .page-in { padding: 16px 12px 40px; }
  
}

/* ===== Density pass: Superhuman-sized ===== */
body { font-size: 13px; }
.app { grid-template-columns: 48px minmax(0, 1fr); }
.nav { padding: 10px 6px; }
.ws-mark { width: 24px; height: 24px; margin-bottom: 8px; }
.ws-mark .k-logo { width: 19px; height: 19px; }



.nav-live { width: 7px; height: 7px; }


.ib-head { min-height: 44px; padding: 6px 20px; gap: 6px 12px; }

.ib-tab { height: 24px; padding: 0 8px; font-size: 12.5px; }
.ib-list { padding: 0 0 16px; }
.ib-cols, .row { display: grid; grid-template-columns: 14px minmax(110px, 160px) minmax(0, 1fr) 104px 44px 64px; align-items: center; column-gap: 14px; padding: 0 20px; }
.ib-cols { position: sticky; top: 0; z-index: 2; height: 28px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.ib-cols .num, .r-dur, .r-time { text-align: right; }
.row { position: relative; min-height: 34px; gap: 0 14px; font-size: 13px; line-height: 18px; }
.row:hover { background: var(--surface); }
.row.is-cursor { background: var(--surface-hover); }
.r-dir { display: grid; }
.r-name, .r-topic, .r-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-name { display: flex; align-items: center; gap: 5px; flex: none; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.row.unread .r-name { color: var(--ink); font-weight: 600; }
.r-topic { color: var(--ink); font-weight: 500; }
.row.unread .r-topic { font-weight: 600; }
.r-sum { color: var(--ink-muted); }
.r-status { display: flex; align-items: center; min-width: 0; }
.r-status .k-badge, .r-status .k-livei { height: 18px; font-size: 11px; padding: 0 6px; gap: 5px; }
.r-status .k-livei time { font-size: 10.5px; }
.r-quiet { font-size: 11.5px; color: var(--ink-muted); white-space: nowrap; }
.r-dur, .r-time { min-width: 0; font-size: 11px; }
.r-acts { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: none; gap: 2px; padding-left: 8px; background: inherit; }
.row:hover .r-acts, .row.is-cursor .r-acts { display: flex; }
.row:hover .r-dur, .row:hover .r-time, .row.is-cursor .r-dur, .row.is-cursor .r-time { display: block; visibility: hidden; }
.r-act { width: 24px; height: 24px; }
.ib-hint { padding: 5px 20px 7px; }

.cv-bar { min-height: 44px; padding: 0 12px; gap: 6px; }
.cv-scroll { padding: 16px 20px 28px; }
.cv-col { max-width: 760px; gap: 10px; }
.cv-who { gap: 10px; padding-bottom: 2px; }
.cv-who h1 { font-size: 16px; line-height: 22px; }
.cv-who .sub { font-size: 11px; }
.vn { gap: 10px; padding: 8px 12px 7px 8px; }
.vn-btn { width: 34px; height: 34px; }
.vn-wave { height: 26px; }
.vn-knob { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }



.vn-speed { height: 22px; min-width: 36px; font-size: 11px; }
.sumcard { gap: 12px; padding: 14px 16px; }
.sum-h > b { font-size: 12.5px; }
.sum-h small { font-size: 11px; }
.sum-h .k-badge { height: 18px; font-size: 11px; }
.sum-text { font-size: 14px; line-height: 21px; }
.sum-grid { gap: 12px 20px; }
.sum-label { font-size: 11px; }
.facts { font-size: 12.5px; line-height: 17px; gap: 5px 12px; }

.tr-h { padding-top: 8px; }
.tr-h b { font-size: 12.5px; }
.tr-h span { font-size: 11px; }
.cv .k-bubble { font-size: 13px; line-height: 18px; padding: 5px 9px 6px; }
.cv .k-msg-author { font-size: 11.5px; line-height: 16px; }
.cv .k-meta { font-size: 10px; bottom: 5px; }
.cv .k-meta-space { width: 34px; }
.cv .k-msg-me .k-meta-space { width: 34px; }
.cv .k-event { font-size: 11px; padding: 6px 0; }
.cv .k-livei { height: 20px; font-size: 11px; }
.compose { padding: 0 20px 12px; }
.compose small { font-size: 11px; }
.cv .k-composer-input { font-size: 13px; padding: 4px; }
.cv .k-composer { padding: 4px; }
.cv .k-send { width: 28px; height: 28px; }

.page-in { padding: 20px 20px 40px; gap: 12px; }
.page-head h1 { font-size: 16px; line-height: 22px; }
.page-head p { font-size: 12.5px; }




.sec { padding: 14px 16px; gap: 12px; }
.sec h2 { font-size: 14px; }
.sec > p, .field label, .opt b { font-size: 12.5px; }
.help { font-size: 12px; }
.opt { padding: 10px; }
.k-badge { height: 18px; font-size: 11px; }
.k-cmd-item { height: 32px; font-size: 13px; }
.help-row { min-height: 26px; font-size: 12.5px; }




@media (max-width: 719px) {
  .ib-head { padding: 6px 12px; }
  .ib-cols { display: none; }
  .row { grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "dir name time" "dir sum sum" "dir status status"; row-gap: 2px; padding: 8px 12px; align-items: start; }
  .r-dir { grid-area: dir; padding-top: 2px; }
  .r-name { grid-area: name; }
  .r-sum { grid-area: sum; }
  .r-status { grid-area: status; justify-content: flex-start; }
  .r-time { grid-area: time; }
  .r-dur { display: none !important; }
  .row:hover .r-time, .row.is-cursor .r-time { visibility: visible; }
  .row:hover .r-acts, .row.is-cursor .r-acts { display: none; }
  .r-quiet { display: none; }
  .cv-scroll { padding: 12px 12px 20px; }
  .compose { padding: 0 12px 10px; }
  .page-in { padding: 14px 12px 32px; }
}

/* ===== Hidden left menu + right customer panel ===== */
.app { grid-template-columns: minmax(0, 1fr); }
.nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 45; width: 252px; align-items: stretch; gap: 1px; padding: 12px 10px; padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); padding-left: max(10px, env(safe-area-inset-left, 0px)); box-shadow: var(--shadow-dialog); transform: translateX(-105%); visibility: hidden; overflow-y: auto; }
.app.nav-open .nav { transform: none; visibility: visible; }
@media (prefers-reduced-motion: no-preference) { .nav { transition: transform .16s ease-out, visibility 0s linear .16s; } .app.nav-open .nav { transition: transform .16s ease-out; } }
.scrim { display: none; }
.app.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(5, 6, 8, 0.45); }
.ws { display: flex; align-items: center; gap: 8px; padding: 0 2px 10px 4px; }
.ws b { flex: 1; font-size: 14px; font-weight: 600; }
.ws .ws-mark { margin: 0; }
/* The top of the navigation: the workspace button (shell/WorkspaceMenu.tsx), full width, its menu opens in the top layer under it (ui/floating.ts); the close button beside it in the slide-in menu. */
.ws-top { display: flex; align-items: center; gap: 4px; padding-bottom: 8px; }
.ws-wrap { position: relative; flex: 1; min-width: 0; }
.ws-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; height: 36px; padding: 0 8px 0 4px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ws-btn:hover, .ws-btn[aria-expanded="true"] { background: var(--surface-hover); }
.ws-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* line-height 1: the letter's line is the font size, so it sits in the middle of the square at every size (an inherited 20px line pushed it down in the small one). */
.ws-initial { position: relative; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--radius-sm); background: var(--signal); color: var(--on-signal); font-size: 12px; font-weight: 600; line-height: 1; }
/* A workspace icon instead of the initial (shell/WorkspaceMark.tsx): square, scaled to fit; small in the switcher rows, large as the preview in General. */
.ws-initial.has-icon { background: none; }
.ws-initial img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; display: block; }
/* Small: in the menu rows, as wide as the 15px icons of the other items, so squares, icons and labels line up. */
.ws-initial.is-sm { width: 15px; height: 15px; border-radius: 4px; font-size: 9px; }
.ws-initial.is-lg { width: 48px; height: 48px; border-radius: var(--radius-md); font-size: 20px; }
.st-ws-icon { display: flex; align-items: center; gap: 10px; }
.ws-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.ws-menu { display: grid; align-content: start; gap: 1px; padding: 4px; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-popover); }
.ws-menu, .ws-menu .me-ws, .ws-menu .me-ws-list, .ws-account { grid-template-columns: minmax(0, 1fr); } /* long workspace names end in … instead of widening the menu */
.ws-menu hr { width: auto; margin: 3px 4px; border: 0; border-top: 1px solid var(--line); }
/* A line between the groups of the navigation; Server admin (instance admins) is quieter than the rest. */
.nav-sep { width: auto; margin: 6px 8px; border: 0; border-top: 1px solid var(--line); flex: none; }
.nav-item.is-admin { color: var(--ink-muted); font-weight: 400; }
.nav-item { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; height: 30px; padding: 0 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; flex: none; }
.nav-item:hover, .nav-item[aria-current="page"] { background: var(--surface-hover); color: var(--ink); }
.nav-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nav-item .lbl { flex: 1; }
.nav-item .k-kbd { height: 17px; min-width: 17px; padding: 0 4px; font-size: 10px; }
.nav-item .nav-live { width: 7px; height: 7px; box-shadow: none; }
.nav-item .k-count { min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.nav-foot { margin-top: auto; display: grid; gap: 1px; justify-items: stretch; padding-top: 8px; }
/* You in the workspace menu (name and email), above Account settings; read-only. The 24px picture is centred on the
   items' 15px icon column (4.5px past it on each side), so the name starts where the item labels do. */
.ws-me { display: flex; align-items: center; gap: calc(10px - (24px - 15px) / 2); padding: 6px 8px 4px calc(8px - (24px - 15px) / 2); min-width: 0; }
.ws-me div { display: grid; line-height: 15px; min-width: 0; }
.ws-me b, .ws-me small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-me b { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.ws-me small { font-size: 11px; color: var(--ink-muted); }
.ws-account { display: grid; gap: 1px; }
.menu-btn { margin-left: -6px; }
.pagebar { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); flex: none; }
.pagebar b { font-size: 14px; font-weight: 600; }
.pagebar-up { font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none; }
.pagebar-up:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pagebar-sep { color: var(--ink-disabled); margin: 0 -2px; }
.page-head h1 { display: none; }
.page-head p { margin: 0; }

.cv-main { flex: 1; display: flex; min-height: 0; }
.cv-center { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.cv-side { flex: none; width: 272px; overflow: auto; border-left: 1px solid var(--line); background: var(--surface); padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.cv-side > .k-badge, .cv-side > .k-btn { align-self: flex-start; }
.side-facts { font-size: 12px; line-height: 16px; grid-template-columns: 60px minmax(0, 1fr); gap: 5px 10px; }
.side-facts dd.mono { font-size: 11px; }
.side-sec { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-sec h2 { font-size: 11px; font-weight: 500; color: var(--ink-muted); margin: 0 0 4px; }


@container main (max-width: 1099px) { .cv-side { display: none; } }
/* Same breakpoint as above: while the side panel shows the caller, drop the duplicate sub line in the call header */
@container main (min-width: 1100px) { .cv-who .sub { display: none; } }
@media (max-width: 719px) { .pagebar { padding: 0 10px; } }


/* WhatsApp-style waveform: thin, tight bars; colour only hints at the speaker */
.vn-wave { justify-content: flex-start; gap: 1px; }
.vn-wave i { flex: 1 1 0; min-width: 0; max-width: 3px; border-radius: 1.5px; }
.vn-wave i.caller { background: var(--speaker-caller); opacity: .38; }
.vn-wave i.ai, .vn-wave i.agent { background: var(--ink-muted); opacity: .38; }
.vn-wave i.agent { background: var(--speaker-agent); }
.vn-wave i.p { opacity: .95; }
.vn-wave i.ai.p { background: var(--ink); opacity: .55; }
.vn-wave i.none { height: 2px; opacity: .6; }

/* ===== Sage surfaces ===== */
.nav, .cv-side { background: var(--sidebar); }
.nav { border-right-color: var(--line); }
.nav-item { color: var(--sidebar-muted); }
.nav-item:hover { background: #ebe9e3; color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--highlight); color: var(--highlight-ink); }
.ib-head, .cv-bar, .pagebar { background: var(--bg); }
.ib-list { margin: 12px 16px 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); flex: 1 1 auto; align-self: stretch; }
.ib-cols { background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.row:hover { background: #f7f6f3; }
.row.is-cursor { background: var(--highlight); }
.row.is-cursor .r-topic, .row.is-cursor .r-name { color: var(--highlight-ink); }
.r-acts { background: transparent; }
.row:hover .r-acts { background: #f7f6f3; }
.row.is-cursor .r-acts { background: var(--highlight); }
.r-act:hover { background: var(--surface); }
.ib-tab[aria-selected="true"] { background: var(--highlight); color: var(--highlight-ink); }
.vn, .sumcard, .sec { background: var(--surface); box-shadow: var(--shadow-card); }
.vn-btn.live { background: var(--danger-soft); }
.vn-wave i.ai.p { background: var(--ink-muted); opacity: .75; }
.vn-wave i.caller.p { opacity: .9; }
.vn-knob { box-shadow: 0 0 0 3px var(--surface); }
.k-msg-them .k-bubble.k-tone-signal, .k-bubble.k-tone-signal { background: var(--bubble-caller); color: var(--ink); }
.k-btn-primary { background: var(--action); color: var(--on-action); }
.k-btn-secondary { background: var(--surface); }
.k-btn-ghost:hover { background: #efede8; }
.k-cmd, .help-sheet { background: var(--surface); }
.k-cmd-item[aria-selected="true"] { background: var(--highlight); color: var(--highlight-ink); }
.overlay, .app.nav-open .scrim { background: rgba(28, 25, 23, 0.28); }
.opt.on { border-color: var(--action); background: var(--highlight); }

@media (max-width: 719px) { .ib-list { margin: 8px 8px 0; } }

/* QA fixes */
.cv .k-meta-space, .cv .k-msg-me .k-meta-space { width: 44px; }

.k-avatar { background: #e8e5de; }
.k-avatar-ai { background: var(--signal-soft); }
.ib-list { flex: 0 1 auto; }
.ib-hint { margin-top: auto; }

/* ===== Onboarding ===== */
/* Onboarding is a page, not an overlay: the test-call panel (40), dialogs (50), toasts and help tips (60) open over it. */
.ob { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); overflow: auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.ob-top { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); flex: none; }
.ob-top > b { font-size: 14px; font-weight: 600; }
.ob-top .ws-mark { margin: 0; }
.ob-top .ob-exit-short { display: none; }
.ob-count { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
/* The setup pages' account menu (shell/SetupAccountMenu.tsx): a round button with the person's initials, last in the top bar. On a phone the step count shortens to "1/7", the brand shows its mark only and "Set up with AI" its agents' marks (the words stay its name and tooltip). */
.ob-count-short { display: none; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ob-me { flex: none; width: auto; }
.ob-me-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-full); background: transparent; cursor: pointer; }
.ob-me-btn:hover, .ob-me-btn[aria-expanded="true"] { background: var(--surface-hover); }
.ob-me-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ob-me-notice { margin: 2px 8px 4px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ob-bar { height: 2px; background: var(--line); flex: none; }
.ob-bar span { display: block; height: 100%; background: var(--action); }
@media (prefers-reduced-motion: no-preference) { .ob-bar span { transition: width .3s ease-out; } }
.ob-main { flex: 1; width: 100%; max-width: 600px; margin: 0 auto; padding: 8vh max(20px, env(safe-area-inset-right, 0px)) 32px max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 28px; box-sizing: border-box; }
.ob-body { display: grid; gap: 18px; }
.ob h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.ob-lede { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-muted); max-width: 52ch; }
.ob-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.ob-choices.three { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ob .field label { font-size: 12.5px; font-weight: 500; }
.ob-prompt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--action); border-radius: var(--radius-md); font-size: 14px; font-weight: 500; }
.ob-prompt.ok { justify-content: flex-start; border-color: var(--line); background: var(--highlight); color: var(--highlight-ink); }
@media (prefers-reduced-motion: no-preference) { .ob-prompt.shake { animation: obshake .3s; } }
@keyframes obshake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ob-badge { width: 48px; height: 48px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--highlight); color: var(--action); }
/* The setup footer (onboarding/SetupFoot.tsx): one row that stays in view at the bottom of the content column while the
   step scrolls under it; the ⏎ hint only with a keyboard's fine pointer, never on a touch phone. */
.ob-foot { position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; margin: -12px 0; background: var(--bg); box-shadow: 0 -10px 10px -2px var(--bg); }
@media not ((hover: hover) and (pointer: fine)) { .ob-foot .k-kbds { display: none; } }
/* A step that ends with a Note (empty placeholders after it don't count): 10px more room above the footer, so the footer's fade never covers the Note's lower edge. */
.ob-main > :is(.k-note, .ob-body:has(> .k-note:last-child, > .k-note + :is([hidden], :empty):last-child, > :last-child > .k-note:last-child)) + .ob-foot { margin-top: -2px; }
/* Touch screens: no key labels inside buttons (esc, ⏎, E): there is usually no keyboard to press them on. The
   tooltips keep their keys where a pointer hovers; the "Next time, press …" tips stay off too (shell/useToast.ts). */
@media (hover: none) and (pointer: coarse) { button .k-kbds { display: none; } }
/* On a phone the long step count is out of sight only: screen readers still read it (the short one is aria-hidden). */
@media (max-width: 719px) { .ob h1 { font-size: 23px; line-height: 29px; } .ob-count { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .ob-top > b { display: none; } .ob-top .ws-mark { margin-right: auto; } .ob-count-short { display: inline; } .ob-top .ob-agent .ai-marks { display: none; } .ob-top .ob-agent .ai-spark { display: inline-block; } .ob-agent { min-width: 0; } .ob-agent .ai-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ob-top .ob-exit-full { display: none; } .ob-top .ob-exit-short { display: inline-flex; } .ob-count.ob-count-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: inline; margin-left: 0; } }

.sum-grid { grid-template-columns: minmax(0, 1fr); }

/* Unread badge in the menu: a circle for one digit, a pill that grows for more */
.nav-item .k-count { display: inline-flex; align-items: center; justify-content: center; height: 18px; min-width: 18px; padding: 0 5px; border-radius: var(--radius-full); font-size: 10.5px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; box-shadow: none; }

/* Shortcut tooltip */
.kt { position: fixed; z-index: 90; display: inline-flex; align-items: center; gap: 4px; max-width: 280px; padding: 4px 6px 4px 8px; border-radius: var(--radius-xs); background: var(--ink); color: var(--bg); font-size: 11.5px; line-height: 16px; font-weight: 500; pointer-events: none; box-shadow: var(--shadow-popover); white-space: nowrap; }
.kt span { margin-right: 4px; }
.kt kbd { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); color: inherit; font-family: var(--font-mono); font-size: 10px; box-sizing: border-box; }


/* Variant: plain white page */
:root { --bg: #ffffff; }
.ib-list { box-shadow: none; }
/* (White sidebar / side panel elevation now lives in the "Surface system" block at the end) */

/* Inline search in the Calls header (Superhuman-style: filters the list in place) */
.ib-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--ink-muted); }
.ib-search input { flex: 1; min-width: 0; box-sizing: border-box; height: var(--control-h-sm); padding: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.ib-search input::placeholder { color: var(--ink-muted); opacity: 1; }
.ib-search-n { font-size: 12px; white-space: nowrap; }

/* Calls table: full width, no card frame */
.ib-list { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.ib-cols { border-radius: 0; }

/* (Transcript bubbles, player and summary card surfaces now live in the "Surface system" block at the end) */
@media (max-width: 719px) { .ib-list { margin: 0; } }
/* Calls rows: same weight on every row (no unread styling), heavier caller, Topic merged into Summary */
.row .r-name, .row.unread .r-name, .row.is-cursor .r-name { font-weight: 600; color: var(--ink); }
.row .r-time, .row.unread .r-time { color: var(--ink-muted); }
.row .r-sum, .row.unread .r-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); font-weight: 400; }
.row .r-sum .r-topic, .row.unread .r-sum .r-topic, .row.is-cursor .r-sum .r-topic { display: inline; color: var(--ink); font-weight: 400; }
@media (max-width: 719px) { .row .r-sum { white-space: nowrap; display: block; } }

/* Done / Reminders list header */
.ib-mode { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.ib-mode .k-btn { color: var(--ink-muted); }
.ib-mode-sep { color: var(--ink-disabled); }
.ib-mode b { font-weight: 600; color: var(--ink); }
.ib-mode .n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.nav-sub { padding-left: 28px; }
.nav-sub .k-icon { width: 13px; height: 13px; }
.nav-n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }

/* Inbox zero */
.zero { flex: 1; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 48px 24px; text-align: center; color: var(--ink-muted); box-sizing: border-box; animation: zero-in 420ms ease-out both; }
.zero-art { margin-bottom: 14px; overflow: visible; }
.zero-sun { fill: var(--highlight); }
.zero-ground { fill: var(--surface, #fff); }
.zero-line { stroke: var(--line); stroke-width: 1.5; }
.zero-wave { stroke: var(--highlight); stroke-width: 3; stroke-linecap: round; }
.zero-mark { fill: none; stroke: var(--action); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.zero h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.zero-greet { margin: 0; font-size: 14px; color: var(--ink-muted); }
.zero-greet b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.zero-greet .k-kbds { vertical-align: 1px; margin: 0 2px; }
/* Every empty inbox view: the column headings stay on top, the empty state fills the rest (inbox/InboxEmpty.tsx). */
.ib-list.is-zero { flex: 1 1 auto; display: flex; flex-direction: column; }
.ib-list.is-zero > .zero { min-height: 0; }
@keyframes zero-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zero { animation: none; } }

/* =====================================================================
   Surface system (Superhuman-style). Single source of truth for elevation,
   radii, type scale, control sizes and interaction states. Overrides the
   scattered rules above; add new surfaces by picking a level, not a value.

   Elevation
     0  flat      page, list rows, header bars, docked panels: white + 1px --line hairline
     1  raised    white cards on the page (player, summary, settings sections, tables):
                  --shadow-1 = hairline ring + tight contact shadow + faint ambient. No border.
     2  floating  ⌘K, remind menu, search, help sheet, toast, tooltips: --shadow-2
     3  drawer    left nav sliding over a scrim: --shadow-3 (directional)
   Rules: a surface gets either a shadow token or a border, never both.
          Controls (inputs, textareas, kbd keycaps) keep a 1px border; secondary
          buttons and pressed segments use the small --shadow-xs instead.
   Radii   xs 6 (kbd, tooltip, inner segment) · sm 8 (buttons, inputs, menu/nav items)
           md = lg 12 (cards, popovers, dialogs, toast) · bubble 16 · full (badges, pills, avatars)
   Type    11 caption/label/mono · 12 secondary · 13 body/UI · 14 titles · 16 page title
           (onboarding hero sizes and the inbox-zero headline are deliberate exceptions)
   States  hover --surface-hover · selected --highlight (+ 2px --action bar on full-width rows)
           focus 2px --focus outline, 2px offset
   ===================================================================== */
:root {
  --surface-strong: #ebe9e3;          /* avatars, pressed */
  --bubble-in: var(--surface-hover);  /* assistant / agent bubbles: soft warm grey, no border */
  --ink-rgb: 41 37 36;
  --shadow-xs: 0 0 0 1px rgb(var(--ink-rgb) / 0.08), 0 1px 2px rgb(var(--ink-rgb) / 0.06);
  --shadow-1: 0 0 0 1px rgb(var(--ink-rgb) / 0.05), 0 1px 2px rgb(var(--ink-rgb) / 0.05), 0 4px 12px -4px rgb(var(--ink-rgb) / 0.08);
  --shadow-2: 0 0 0 1px rgb(var(--ink-rgb) / 0.06), 0 2px 6px rgb(var(--ink-rgb) / 0.05), 0 16px 36px -8px rgb(var(--ink-rgb) / 0.18);
  --shadow-3: 1px 0 0 rgb(var(--ink-rgb) / 0.06), 12px 0 40px -12px rgb(var(--ink-rgb) / 0.22);
  --shadow-dock-l: -1px 0 0 var(--line);
  --ring-action: 0 0 0 1px var(--action);
  --scrim: rgb(28 25 23 / 0.20);
  --radius-md: 12px;
  /* legacy aliases so older rules resolve to the system */
  --shadow-card: var(--shadow-1); --shadow-popover: var(--shadow-2); --shadow-dialog: var(--shadow-2);
  --sidebar: var(--surface);
}

/* ---- Level 0: header bars, docked side panel, list ---- */
.ib-head, .cv-bar, .pagebar { background: var(--bg); border-bottom: 1px solid var(--line); min-height: 44px; padding: 6px 14px; gap: 8px; box-sizing: border-box; }
.cv-side { position: relative; background: var(--surface); border-left: 0; box-shadow: var(--shadow-dock-l); padding: 16px; gap: 16px; }
.ib-cols { background: var(--bg); border-radius: 0; }

/* ---- Level 1: raised cards (shadow, no border) ---- */
.vn, .sumcard, .sec, .k-tl, .k-summary,
.opt { border: 0; box-shadow: var(--shadow-1); }
.vn { background: var(--surface); }
.vn-knob, .vn .vn-knob { box-shadow: 0 0 0 3px var(--surface); }
.vn-speed { background: var(--surface-hover); border: 0; box-shadow: none; }
.vn-speed:hover { background: var(--surface-strong); }
.sumcard, .sec, .opt { background: var(--surface); }
.sumcard, .sec { padding: 16px; gap: 12px; }
.opt.on { background: var(--highlight); box-shadow: var(--ring-action), var(--shadow-1); }
.ob-prompt { border: 0; box-shadow: var(--ring-action), var(--shadow-1); }
.ob-prompt.ok { box-shadow: none; }

/* ---- Level 2: floating (palette, remind, search, help, tooltips; the toast keeps its own rule) ---- */
.k-cmd, .help-sheet { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
.kt { border-radius: var(--radius-xs); box-shadow: var(--shadow-2); font-size: 11px; }
.overlay, .app.nav-open .scrim { background: var(--scrim); }

/* ---- Level 3: drawer nav ---- */
.nav { background: var(--surface); border-right: 0; box-shadow: var(--shadow-3); }

/* ---- Transcript ---- */
.k-msg-them .k-bubble, .k-bubble.k-tone-neutral, .k-msg-them .k-bubble.k-tone-neutral { background: var(--bubble-in); border: 0; }
.k-day span { border: 0; background: var(--surface-hover); }

/* ---- Colors: palette vars only ---- */
.k-avatar { background: var(--surface-strong); }
.k-avatar-ai { background: var(--signal-soft); }

/* ---- Interaction states: one hover, one selected, everywhere ---- */
.row:hover, .nav-item:hover,
.k-btn-ghost:hover, .k-btn-secondary:hover, .ib-tab:hover { background: var(--surface-hover); }
.row.is-cursor { background: var(--highlight); box-shadow: inset 2px 0 0 var(--action); }
.nav-item[aria-current="page"], .ib-tab[aria-selected="true"], .k-cmd-item[aria-selected="true"] { background: var(--highlight); color: var(--highlight-ink); }
.k-cmd-item[aria-selected="true"] .k-icon { color: var(--highlight-ink); }
.r-acts { background: transparent; }
.row:hover .r-acts { background: var(--surface-hover); }
.row.is-cursor .r-acts { background: var(--highlight); }
.r-act:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---- Controls: buttons, segments, inputs, badges, kbd ---- */
.k-btn-secondary { background: var(--surface); border-color: var(--line-control); box-shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.05); }
.k-btn-secondary:disabled, .k-btn:disabled { box-shadow: none; }
.k-btn-sm { font-size: 12px; }



.k-composer { border-radius: var(--radius-sm); }
.k-input input, .ta { font-size: 13px; }
.k-badge, .k-livei, .cv .k-livei, .r-status .k-badge, .r-status .k-livei, .sum-h .k-badge { height: 18px; font-size: 11px; padding: 0 6px; gap: 5px; }
.k-livei time, .r-status .k-livei time { font-size: 11px; }
.k-kbd, .k-btn-sm .k-kbd, .nav-item .k-kbd { height: 18px; min-width: 18px; padding: 0 4px; font-size: 11px; }
.ib-hint .k-kbd, .kt kbd { height: 16px; min-width: 16px; padding: 0 3px; font-size: 10px; }
.k-btn-primary .k-kbd, .k-btn-danger .k-kbd { background: transparent; border-color: currentColor; }
.nav-item, .k-cmd-item { height: 32px; font-size: 13px; }
/* Tabs as tall as the small controls beside them (menu button, search), so the header's controls share one height. */
.ib-tab { height: var(--control-h-sm); font-size: 13px; }

/* ---- Type scale ---- */
/* 11: captions, section labels, mono numbers */
.ib-cols, .sum-label, .side-sec h2, .help-group h3, .k-cmd-group, .k-summary-label { font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.r-dur, .r-time, .cv-pos, .side-facts dd.mono,
span.mono, .facts dd.mono, .ib-tab .n, .ib-mode .n, .nav-n, .cv-who .sub, .k-meta, .cv .k-meta, .k-event-in time { font-size: 11px; }
.sum-h small, .tr-h span, .compose small, .cv .k-event, .r-quiet, .ib-search-n { font-size: 11px; }
/* 12: secondary text */
.help, .page-head p, .sec > p, .opt span, .ws-me small,
.k-cmd-foot, .help-foot, .side-facts { font-size: 12px; }
/* 13: body / UI */
.row, .facts, .field label, .opt b, .help-row, .ib-mode,
.ob-foot .k-btn, .empty, .ws-me b, .cv .k-bubble { font-size: 13px; }
.sum-h > b, .tr-h b { font-size: 13px; font-weight: 600; }
/* 14: titles */
.pagebar b, .sec h2, .ws b, .help-head b, .empty b, .sum-text, .ob-top > b { font-size: 14px; }
/* 16: page / call title, overlay search inputs */
.cv-who h1, .k-cmd-search input { font-size: 16px; }

/* ---- Spacing rhythm: 20px gutters desktop, 12px mobile ---- */
.ib-cols, .row { padding-left: 20px; padding-right: 20px; }
.page-in { padding: 20px 20px 40px; gap: 12px; }
.cv-scroll { padding: 16px 20px 28px; }
.compose { padding: 0 20px 12px; }
.k-cmd-search { padding: 0 16px; }
.k-cmd-foot, .help-foot { padding: 8px 16px; }
.help-head { padding: 12px 16px; }

@media (max-width: 719px) {
  .ib-head, .cv-bar, .pagebar { padding: 6px 8px; gap: 4px; }
  .row { padding: 8px 12px; }
  .page-in { padding: 14px 12px 32px; }
  .cv-scroll { padding: 12px 12px 20px; }
  .compose { padding: 0 12px 10px; }
  .sumcard, .sec { padding: 14px; }
  .cv-acts .cv-done > span:not(.k-kbds) { display: inline-flex; } /* text-only button: keep its label on phones */
}
/* ===== Customers: same list model as Calls (Customer + Phone) ===== */
.ib-cols.cust-row, .row.cust-row { grid-template-columns: minmax(120px, 220px) minmax(110px, 150px) minmax(0, 1fr) 112px; grid-template-areas: none; }
.cust-row .c-sum { color: var(--ink-muted); }
.cust-row .c-sum-t { color: var(--ink); }
.cust-row .c-last, .ib-cols.cust-row .num { text-align: right; }
.cust-row:hover .c-last, .cust-row.is-cursor .c-last { visibility: hidden; }
.cust-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-row .c-mono { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.cust-main .ib-list { flex: 1 1 auto; }
@container main (max-width: 1099px) {
  .cust-main.has-rec .cv-center { display: none; }
  .cv-side.cust-side { display: flex; flex: 1; width: auto; box-shadow: none; }
}
@media (max-width: 719px) {
  .row.cust-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name last" "sum sum" "phone phone"; row-gap: 2px; padding: 8px 12px; align-items: center; }
  .cust-row .c-name { grid-area: name; } .cust-row .c-phone { grid-area: phone; } .cust-row .c-sum { grid-area: sum; } .cust-row .c-last { grid-area: last; text-align: right; }
  .cust-row:hover .c-last, .cust-row.is-cursor .c-last { visibility: visible; }
}

/* Assistant capabilities: enabled = raised white card, available = flat dashed tile */
.caps-sec { display: grid; gap: 10px; }
.caps-sec h2 { margin: 0; font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cap { display: grid; align-content: space-between; gap: 18px; min-height: 104px; padding: 14px; border: 1px dashed var(--line-soft); border-radius: var(--radius-lg); background: transparent; color: var(--ink-muted); text-align: left; cursor: pointer; font: inherit; }
.cap:hover { background: var(--surface-hover); }
.cap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cap.on { border-color: transparent; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.cap.on:hover { box-shadow: var(--shadow-1), 0 6px 16px -8px rgb(41 37 36 / 0.18); }
.cap-top { display: flex; align-items: center; justify-content: space-between; }
.cap-ic { display: grid; color: var(--ink-muted); }
.cap.on .cap-ic { color: var(--action); }
.cap-st { display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-full); border: 1px dashed var(--line-soft); color: var(--ink-muted); }
.cap.on .cap-st { border-color: transparent; background: var(--highlight); color: var(--action); }
.cap-t { display: grid; gap: 2px; min-width: 0; }
.cap-t b { font-size: 13px; font-weight: 600; }
.cap:not(.on) .cap-t b { font-weight: 500; }
.cap-t span { font-size: 12px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Customer (caller) bubbles: white with a hairline, set apart from the grey assistant bubbles without
   drawing the eye away from the call's actions. Name and time stay muted on both sides. */
.k-bubble.k-tone-signal, .k-msg-them .k-bubble.k-tone-signal { background: var(--bubble-caller); color: var(--ink); border: 1px solid var(--line); }
.k-bubble.k-tone-signal .k-msg-author, .k-bubble.k-tone-signal .k-meta { color: var(--ink-muted); }

/* Search match highlight (calls list, transcript) */
mark { background: rgb(250 204 21 / 0.38); color: inherit; border-radius: 2px; padding: 0 1px; }

/* Calls/Customers header: no divider line, the column header carries the separation */
.ib-head { border-bottom: 0; }
.ib-cols { border-bottom: 0; box-shadow: none; }
.vn { border-radius: var(--radius-lg); }

/* Icon-only buttons: hover darkens the icon, no background */
.r-act:hover, .r-act:focus-visible { background: transparent; box-shadow: none; color: var(--ink); }
.k-btn-ghost.k-btn-icon:hover { background: transparent; color: var(--ink); }
/* Nav: shortcut chips only on hover / keyboard focus */
.nav-item .k-kbds { display: none; }
.nav-item:hover .k-kbds, .nav-item:focus-visible .k-kbds { display: inline-flex; }
.nav-item:hover .nav-live, .nav-item:hover .k-count, .nav-item:focus-visible .nav-live, .nav-item:focus-visible .k-count { display: none; }
/* Player: draggable playhead */
.vn-wave:not(.is-live) { cursor: pointer; touch-action: none; }
.vn-wave.is-drag { cursor: grabbing; }
.vn-knob { transition: transform .12s ease-out; }
.vn-wave:not(.is-live):hover .vn-knob, .vn-wave.is-drag .vn-knob { transform: scale(1.35); }

/* Inbox: day groups, assignee, filter chip, value counter */
.ib-day { padding: 14px 20px 4px; font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.r-name { display: flex; align-items: center; gap: 6px; }
.r-assignee { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: var(--radius-full); background: var(--surface-hover); color: var(--ink-muted); font-size: 9px; font-weight: 600; }
.ib-right { align-items: center; gap: 10px; }
.ib-value { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.ib-filter-old { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 0; border-radius: var(--radius-full); background: var(--ink); color: var(--on-action); font: inherit; font-size: 12px; cursor: pointer; }
@container main (max-width: 1099px) { .ib-value { display: none; } }
@media (max-width: 719px) { .ib-day { padding: 12px 12px 4px; } }

/* ===== Bookings ===== */
/* ===== Bookings: week grid (desktop), day agenda (phone), docked side panel ===== */
.bk .bk-head { border-bottom: 0; }
.bk-week { font-size: 14px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-nav { display: flex; gap: 2px; }
.bk-next .k-icon { transform: rotate(180deg); }
.bk-legend { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.bk-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.bk-legend .n { font-family: var(--font-mono); font-size: 11px; color: var(--ink); }
.bk-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.bk-sw-maya { background: var(--surface); box-shadow: inset 2px 0 0 var(--action), var(--shadow-xs); }
.bk-sw-cal { background: var(--surface-strong); }

.bk-body { flex: 1; display: flex; min-height: 0; }
.bk-main { flex: 1; min-width: 0; overflow: auto; }

/* grid */
.bk-grid { display: grid; grid-template-columns: 52px repeat(7, minmax(96px, 1fr)); min-width: 740px; }
.bk-dh { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; box-sizing: border-box; background: var(--bg); border-bottom: 1px solid var(--line); }
.bk-dow { font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.bk-dnum { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-dhours { margin-left: auto; font-size: 11px; color: var(--ink-muted); }
.bk-dh.is-past .bk-dnum { color: var(--ink-muted); font-weight: 500; }
.bk-dh.is-today .bk-dnum { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; box-sizing: border-box; border-radius: var(--radius-full); background: var(--action); color: var(--on-action); }
.bk-dh.is-today .bk-dow { color: var(--ink); }
.bk-gutter { position: relative; }
.bk-gutter span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); }
.bk-off { position: absolute; left: 0; right: 0; background: var(--surface-hover); opacity: 0.55; pointer-events: none; }
.bk-now { position: absolute; left: -1px; right: 0; z-index: 2; height: 0; border-top: 2px solid var(--live); pointer-events: none; }
.bk-now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--live); }

/* events */
.bk-ev { position: absolute; left: 3px; right: 4px; z-index: 1; display: flex; flex-direction: column; gap: 1px; min-height: 0; overflow: hidden; margin: 0; padding: 4px 8px 4px 10px; box-sizing: border-box; border: 0; border-radius: var(--radius-xs); font: inherit; text-align: left; cursor: pointer; }
.bk-ev b { font-size: 12px; line-height: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-ev span { font-size: 11px; line-height: 14px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-ev.is-short { padding-top: 3px; padding-bottom: 3px; }
.bk-maya { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.bk-maya::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--action); }
.bk-maya:hover { box-shadow: var(--shadow-1), 0 6px 16px -8px rgb(var(--ink-rgb) / 0.18); }
.bk-cal { background: var(--surface-hover); color: var(--ink-muted); box-shadow: none; }
.bk-cal b { font-weight: 500; color: var(--ink-muted); }
.bk-cal:hover { background: var(--surface-strong); }
.bk-ev.is-cursor { box-shadow: var(--ring-action), var(--shadow-1); }
.bk-cal.is-cursor { box-shadow: var(--ring-action); }
.bk-ev.is-cancelled { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.bk-ev.is-cancelled::before { background: var(--ink-disabled); }
.bk-ev.is-cancelled b { color: var(--ink-muted); text-decoration: line-through; }
.bk-ev.is-cancelled.is-cursor { box-shadow: var(--ring-action); }
.bk-ev:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* side panel (same flat docked panel as the call view) */
.cv-side.bk-side { display: flex; flex-direction: column; flex: none; width: 288px; overflow: auto; box-sizing: border-box; }
.bk-side > .k-badge { align-self: flex-start; }
.bk-side-top { display: flex; align-items: center; gap: 6px; margin: -6px 0 -4px -6px; }
.bk-side-k { font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.bk-close .k-icon { transform: rotate(180deg); }
.bk-side-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--radius-full); background: var(--surface-strong); color: var(--ink-muted); }
.bk-note { font-size: 13px; line-height: 18px; }

/* phone: single-day agenda */
.bk-agenda { display: flex; flex-direction: column; min-height: 100%; }
.bk-days { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 4px 8px 8px; background: var(--bg); }
.bk-day { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); font: inherit; cursor: pointer; }
.bk-day span { font-size: 11px; }
.bk-day b { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-day.is-today b { font-weight: 700; }
.bk-day[aria-selected="true"] b { background: var(--action); color: var(--on-action); }
.bk-day:hover { background: var(--surface-hover); }
.bk-day:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.bk-ag-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px 6px; }
.bk-ag-head b { font-size: 14px; font-weight: 600; }
.bk-ag-head span { font-size: 12px; color: var(--ink-muted); }
.bk-ag-list { display: grid; gap: 8px; padding: 4px 12px 24px; }
.bk-ag-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 8px; }
.bk-ag-time { padding-top: 8px; font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; text-align: right; }
.bk-ag-row .bk-ev { position: relative; left: auto; right: auto; width: 100%; min-height: 48px; padding: 8px 10px 8px 12px; border-radius: var(--radius-sm); }
.bk-ag-row .bk-ev b { font-size: 13px; line-height: 18px; }
.bk-ag-row .bk-ev span { font-size: 12px; line-height: 16px; }
.bk-ag-row.is-past { opacity: 0.6; }

@container main (max-width: 1099px) { .cv-side.bk-side { width: 264px; } }
@media (max-width: 719px) {
  .bk-legend, .bk .ib-hint { display: none; }
  .bk-week { font-size: 13px; }
  .bk-close .k-icon { transform: none; }
  .cv-side.bk-side { position: fixed; inset: 0; z-index: 40; width: auto; box-shadow: none; padding: 12px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
}


/* ===== Settings ===== */
/* ===== Assistant Settings + Settings (st-) ===== */
.st-page { max-width: 720px; }
.st-sec { scroll-margin-top: 56px; }
/* Notes under a group of pickers (price of the current choice, what a greyed choice needs): one quiet block. */
.st-notes { display: grid; gap: 4px; }
.st-notes:empty { display: none; }
.st-notes > p { margin: 0; }
.st-sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.st-sec-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.st-sec-head p { margin: 2px 0 0; font-size: 12px; color: var(--ink-muted); }
.st-pt { padding-top: 12px; border-top: 1px solid var(--line); }

/* section index: sticky pill row */
.st-index { position: sticky; top: 0; z-index: 5; display: flex; gap: 2px; overflow-x: auto; margin: 0 -4px; padding: 6px 4px; background: var(--bg); scrollbar-width: none; }
.st-index::-webkit-scrollbar { display: none; }
.st-index-a { flex: none; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 500; color: var(--ink-muted); text-decoration: none; white-space: nowrap; }
.st-index-a:hover { background: var(--surface-hover); color: var(--ink); }
.st-index-a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.st-index-a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* lists inside a card: flat rows, hairline separators */
.st-list { display: grid; }
.st-li { display: grid; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); min-width: 0; }
.st-li:first-child { border-top: 0; padding-top: 0; }
.st-li.off > :not(.st-type-end):not(b):not(.sw) { opacity: .55; }
.st-rm { color: var(--ink-muted); }
.st-rm-space { width: 32px; }
.st-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-inline .k-input { flex: 1 1 220px; }
.st-ta-sm { min-height: 52px; }

.st-svc { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.st-faq { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.st-faq-in { display: grid; gap: 6px; }
.st-rule { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.6fr) auto; }
.st-arrow { color: var(--ink-muted); font-size: 13px; }

/* chips (never say) */
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: var(--radius-full); background: var(--surface-hover); font-size: 12px; }
.st-chip button { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink-muted); font: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.st-chip button:hover { background: var(--surface-strong); color: var(--ink); }

/* voice tiles */
.st-voice { position: relative; padding-right: 40px; }
.st-prov { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-muted); }
.st-play { position: absolute; top: 8px; right: 8px; }

/* booking types */
.st-type { grid-template-columns: minmax(140px, 1.5fr) repeat(4, minmax(64px, 1fr)) auto; }
.st-num { display: grid; gap: 2px; min-width: 0; }
.st-num > span:first-child { font-size: 11px; color: var(--ink-muted); }
.st-num-in { display: flex; align-items: center; gap: 4px; height: var(--control-h); padding: 0 8px; border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface); box-sizing: border-box; }
.st-num-in:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.st-num-in input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; padding: 0; }
.st-num-in small { flex: none; font-size: 11px; color: var(--ink-muted); white-space: nowrap; }
.st-type-end { display: flex; align-items: center; gap: 4px; align-self: end; height: var(--control-h); }
.st-type-name { align-self: end; }

/* hours */
.st-day { grid-template-columns: 110px auto 1fr; min-height: 32px; }
.st-day b { font-size: 13px; font-weight: 500; }
.st-times { display: flex; align-items: center; gap: 8px; }
.st-time, .st-select { box-sizing: border-box; height: var(--control-h); padding: 0 8px; border: 1px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; }
.st-select { padding-right: 4px; max-width: 100%; }
.st-time:focus, .st-select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }

/* phone & forwarding */
.st-number { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.st-number > div { display: grid; gap: 2px; }
.st-number > .k-badge { margin-left: auto; }
.st-code code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.st-codes { display: grid; gap: 4px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-hover); }
.st-seg { display: inline-flex; justify-self: start; gap: 2px; padding: 2px; margin-bottom: 6px; border-radius: var(--radius-sm); background: var(--surface-strong); }
.st-seg-b { height: 24px; padding: 0 10px; border: 0; border-radius: var(--radius-xs); background: transparent; color: var(--ink-muted); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.st-seg-b.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.st-code { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.st-code code { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.st-verify { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.st-progress { flex: 1 1 200px; display: grid; gap: 4px; }
.st-bar { height: 4px; border-radius: var(--radius-full); background: var(--surface-hover); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: inherit; background: var(--action); transition: width .6s ease; }
.st-bar-lg { height: 6px; }

/* calendars */
.st-conn { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.st-sec-head + .st-conn { padding-top: 0; border-top: 0; }
.st-conn-head { display: flex; align-items: center; gap: 10px; }
.st-conn-head > div { display: grid; gap: 1px; flex: 1; min-width: 0; }
.st-conn-head b { font-size: 13px; font-weight: 500; }
.st-prov-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--surface-hover); color: var(--ink); }
.st-cal { grid-template-columns: minmax(0, 1fr) 110px 80px; font-size: 13px; }
.st-cal > .sw { justify-self: center; }
.st-cal-h span { font-size: 11px; color: var(--ink-muted); text-align: center; }
.st-cal-h + .st-li { border-top: 0; }

/* connect modal */
.st-modal { box-sizing: border-box; width: 100%; max-width: 440px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.st-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.st-modal-head b { font-size: 14px; font-weight: 600; }
.st-modal-body { display: grid; gap: 12px; padding: 14px 16px 16px; }
.st-modal-body > p { margin: 0; }
.st-providers { display: grid; gap: 8px; }
.st-prov-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.st-prov-btn:hover:not(:disabled) { background: var(--surface-hover); }
.st-prov-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.st-prov-btn:disabled { cursor: default; }
.st-prov-btn:disabled:not(.busy) { opacity: .6; }
.st-prov-btn.busy { box-shadow: var(--ring-action), var(--shadow-1); }
.st-prov-t { flex: 1; display: grid; gap: 1px; min-width: 0; }
.st-prov-t b { font-size: 13px; font-weight: 500; }
.st-prov-t span { font-size: 12px; color: var(--ink-muted); }
.st-prov-btn > .k-icon { color: var(--ink-muted); }
.st-spin { width: 14px; height: 14px; border: 2px solid var(--line-soft); border-top-color: var(--ink); border-radius: var(--radius-full); animation: st-spin .8s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }

/* team: the member list is the kit's (ui/list.css); the admin's user picker still uses these */
.st-member-t { display: grid; gap: 1px; min-width: 0; }
.st-member-t b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.st-member-t .help { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-role { padding: 0 8px; }


/* providers */
.st-rec { margin-left: 6px; vertical-align: 1px; }
.st-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.st-grid3 .field label { display: flex; align-items: center; }

/* usage */
.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.st-stat { display: grid; gap: 2px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-hover); }
.st-stat b { font-size: 20px; line-height: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.st-stat small { font-size: 11px; color: var(--ink-muted); }

/* sticky save bar on Assistant Settings */
.st-save { position: sticky; bottom: 0; z-index: 4; align-items: center; justify-content: space-between; padding: 10px 0; background: var(--bg); border-top: 1px solid var(--line); }

@media (max-width: 719px) {
  .st-index { margin: 0 -12px; padding: 6px 12px; }
  .st-svc { grid-template-columns: minmax(0, 1fr) auto; }
  .st-svc > .k-input:nth-child(2) { grid-row: 2; }
  .st-rule { grid-template-columns: minmax(0, 1fr) auto; }
  .st-rule .st-arrow { display: none; }
  .st-rule > .k-input:nth-of-type(2) { grid-row: 2; }
  .st-type { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-type-name { grid-column: 1 / -1; }
  .st-type-end { grid-column: 1 / -1; justify-content: space-between; }
  .st-day { grid-template-columns: 90px auto 1fr; }
  .st-cal { grid-template-columns: minmax(0, 1fr) 72px 56px; }
  .st-member { grid-template-columns: auto minmax(0, 1fr) auto; }
  .st-member > .st-select, .st-member > .k-select, .st-member > .st-role { grid-column: 2; justify-self: start; }
  .st-member > .st-role { padding: 0; }
  .st-code { grid-template-columns: minmax(0, 1fr) auto; }
  .st-code > .help { grid-column: 1 / -1; }
  .st-number > .k-badge { margin-left: 0; }
}


/* ===== Onboarding ===== */
/* ===== Onboarding v2 (adds to the existing .ob-* rules) ===== */
.ob2-row { display: flex; gap: 8px; align-items: center; }
.ob2-note { margin: 0; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.ob2-hint { font-size: 12px; color: var(--ink-muted); }
.ob2-foot-r { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-left: auto; min-width: 0; }

@media (max-width: 719px) {
  .ob2-row { flex-wrap: wrap; }
  .ob2-hint { display: none; }
}


/* ===== Booking dialog ===== */
/* ---- Book dialog (bd-) ---- */
.bd { outline: none; }
.bd-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.bd-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bd-title b { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-title span { font-size: 12px; color: var(--ink-muted); }
.bd-types { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.bd-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: var(--radius-full); background: transparent; box-shadow: var(--shadow-xs); font: inherit; font-size: 12px; font-weight: 500; color: var(--ink-muted); cursor: pointer; }
.bd-chip:hover { background: var(--surface-hover); color: var(--ink); }
.bd-chip[aria-selected="true"] { background: var(--highlight); color: var(--highlight-ink); box-shadow: var(--ring-action); }
.bd-chip-dur { opacity: .6; }
.bd-types-hint { margin-left: auto; }
.bd-days { max-height: 340px; overflow: auto; padding: 12px 16px; }
.bd-day + .bd-day { margin-top: 14px; }
.bd-day-label { margin-bottom: 8px; font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.bd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bd-slot { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 36px; padding: 0 8px 0 12px; border: 0; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-xs); font: inherit; font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.bd-slot .k-kbd { height: 16px; min-width: 16px; padding: 0 3px; font-size: 10px; }
.bd-slot[aria-selected="true"] { background: var(--highlight); color: var(--highlight-ink); box-shadow: var(--ring-action); }
.bd-slot:focus-visible, .bd-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bd-foot-sms { margin-left: auto; }
@media (max-width: 480px) {
  .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-types-hint, .bd-foot-sms { margin-left: 0; }
}


/* ===== Merged UI details ===== */
.r-next { font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.r-ah { display: inline-grid; color: var(--ink-muted); flex: none; }
.r-new { flex: none; font-size: 10.5px; font-weight: 500; color: var(--ink-muted); }
.ib-maya { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; font: inherit; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.ib-maya.is-live { color: var(--ink); cursor: pointer; }
/* The free trial in the header: one quiet line, the tag, the days left, the first charge, a link to Billing. */
.ib-trial { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.ib-trial > span:nth-child(n + 2)::before { content: "·"; margin-right: 6px; }
.ib-trial-tag { color: var(--ink); font-weight: 500; }
/* Right-aligned before the presence and Search, with a hairline between; on a phone its own row under the tabs. */
.ib-trial { margin-left: auto; }
.ib-trial + .ib-right { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
@container main (max-width: 1099px) { .ib-trial-charge { display: none; } }
/* Phones: its own row under the views (app.css, after the one-line header rule). */
.ib-maya time { font-family: var(--font-mono); font-size: 11px; }
.ib-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.ib-maya.is-live .ib-dot { background: var(--live); animation: k-pulse 1.4s ease-out infinite; }
.kt { flex-wrap: wrap; max-width: 260px; }
.kt-desc { flex-basis: 100%; font-weight: 400; opacity: .72; white-space: normal; margin-top: 2px; }
.k-cmd-current { font-weight: 600; }
.cv-acts { flex-wrap: wrap; }
.bkc { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.bkc-date { flex: none; width: 44px; height: 46px; border-radius: var(--radius-sm); background: var(--surface-hover); display: grid; place-items: center; align-content: center; line-height: 1; }
.bkc-date span { font-size: 10px; font-weight: 600; color: var(--ink-muted); letter-spacing: .04em; }
.bkc-date b { font-size: 18px; margin-top: 3px; }
.bkc-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bkc-t b { font-size: 13px; font-weight: 600; }
.bkc-t span { font-size: 12px; color: var(--ink-muted); }
.lvc { display: grid; gap: 6px; padding: 10px 14px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.lvc-row { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.lvc-bars { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.lvc-bars i { width: 3px; height: 4px; border-radius: 2px; background: #16a34a; }
.lvc-bars.on i { animation: lvc-b .9s ease-in-out infinite; }
.lvc-bars.on i:nth-child(2) { animation-delay: .15s; } .lvc-bars.on i:nth-child(3) { animation-delay: .3s; } .lvc-bars.on i:nth-child(4) { animation-delay: .45s; } .lvc-bars.on i:nth-child(5) { animation-delay: .6s; }
@keyframes lvc-b { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.lvc-who { color: var(--ink); font-weight: 500; }
.lvc-pill { margin-left: auto; font-size: 11.5px; padding: 2px 8px; border-radius: var(--radius-full); background: var(--surface-hover); color: var(--ink-muted); }
.lvc-note { margin: 0; font-size: 12.5px; color: var(--ink-muted); }
.lvc-acts { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sum-todo { display: grid; gap: 6px; }
.k-typing { display: inline-flex; gap: 4px; align-items: center; padding: 10px 12px; }
.k-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; animation: k-typing 1.2s infinite; }
.k-typing i:nth-child(2) { animation-delay: .2s; } .k-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes k-typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: .8; transform: translateY(-2px); } }
.k-avatar.is-live { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #16a34a; }
dd.copy { cursor: copy; }
dd.copy:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 719px) { .ib-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; } .ib-tabs::-webkit-scrollbar { display: none; } .ib-tab { flex: none; } .ib-maya { display: none; } }
@container main (max-width: 1099px) { .ib-maya:not(.is-live) { display: none; } }
@media (prefers-reduced-motion: reduce) { .lvc-bars.on i, .k-typing i, .ib-maya.is-live .ib-dot { animation: none; } }

/* ===== Filter menu ===== */
/* ---- Filter menu (fm-): floating level 2, reuses .k-cmd shell + .k-cmd-search/.k-cmd-group ---- */
.fm { max-width: 400px; outline: none; }
.fm .k-cmd-search .fm-sel { flex: none; font-size: 12px; color: var(--ink-muted); }
.fm-list { padding: 6px; max-height: min(420px, 56vh); overflow: auto; }
.fm-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--ink); cursor: pointer; user-select: none; }
.fm-item.is-active { background: var(--highlight); color: var(--highlight-ink); }
.fm-box { box-sizing: border-box; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border: 1px solid var(--line-control); border-radius: 4px; background: var(--surface); color: var(--on-action); }
.fm-item.is-on .fm-box { background: var(--action); border-color: var(--action); }
.fm-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-count { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.fm-foot { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); }
.fm-hint { display: inline-flex; align-items: center; gap: 4px; margin: 0 auto; }
.fm-hint .k-kbd + .k-kbd { margin-left: 0; }
.fm-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink); background: transparent; border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.fm-btn:hover, .fm-btn.is-active { background: var(--surface-hover); }
.fm-btn:disabled { color: var(--ink-disabled); cursor: default; background: transparent; }
.fm-done { background: var(--action); color: var(--on-action); }
.fm-done:hover, .fm-done.is-active { background: var(--action); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); }
.fm-done .k-kbd { height: 18px; min-width: 18px; color: var(--on-action); background: transparent; border-color: rgb(255 255 255 / 0.3); }
.fm-btn:focus-visible, .fm-bar button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 480px) { .fm-hint { display: none; } .fm-foot { justify-content: space-between; } }

/* ---- Filter bar: slim level-0 strip under the list header ---- */
.fm-bar { display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.fm-bar .k-icon { color: var(--ink-muted); }
.fm-bar-muted { color: var(--ink-muted); white-space: nowrap; }
.fm-bar-edit { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 4px; margin-left: -4px; font: inherit; color: inherit; background: transparent; border: 0; border-radius: var(--radius-xs); cursor: pointer; text-align: left; }
.fm-bar-edit b { font-weight: 500; }
.fm-bar-edit:hover { background: var(--surface-hover); }


.ib-cols .ib-col-caller { grid-column: 1 / 3; }



/* Sidebar: weekly value */
.nav-week { display: grid; gap: 2px; margin: 28px 10px 0; }
.nav-week-l { font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.nav-week b { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.nav-week span:last-child { font-size: 12px; line-height: 18px; color: var(--ink-muted); }

/* Call view: icon-only actions, label on hover via tooltip */
.cv-acts { align-items: center; gap: 2px; }
.cv-act.k-btn-icon { width: 30px; color: var(--ink-muted); }
.cv-act.k-btn-icon:hover { color: var(--ink); }
.cv-act.is-set { color: var(--ink); }
.cv-done { margin-left: 8px; }

/* QA fixes */
.kt { white-space: normal; max-width: 300px; }
.kt > span { white-space: normal; }
.cust-row .c-last { font-size: 12px; color: var(--ink-muted); }

.k-btn-ghost:disabled { background: transparent; color: var(--ink-disabled); }
.sum-task input { accent-color: var(--action); }
@container main (max-width: 899px) { .cv-pos { display: none; } }
@media (max-width: 719px) { .cv-act { display: none; } .cv-acts { flex-wrap: nowrap; } }

/* Superhuman-style triage motion: row fades and collapses on done, eases back in on undo */
.row.is-leaving { animation: row-out .17s ease-in forwards; overflow: hidden; pointer-events: none; }
.row.is-entering { animation: row-in .24s ease-out; overflow: hidden; }
@keyframes row-out { from { opacity: 1; min-height: 34px; height: 34px; } to { opacity: 0; min-height: 0; height: 0; transform: translateX(-8px); } }
@keyframes row-in { from { opacity: 0; min-height: 0; height: 0; } to { opacity: 1; min-height: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .row.is-leaving, .row.is-entering { animation-duration: 1ms; } }

/* Live calls: green, shown only in the list and header */
:root { --live-ok: #15803d; --live-ok-soft: #e7f6ec; }
.k-livei-live { background: var(--live-ok-soft); color: var(--live-ok); }
.ib-maya.is-live .ib-dot, .ib-dot { background: #16a34a; }
.lvc-bars i { background: #16a34a; }
/* booking types: readable number fields */
.st input[type=number], [class*="st-"] input[type=number] { min-width: 4ch; }

/* Call header: title is the issue, caller below (from Linedesk) */
.cv-who { align-items: flex-start; }
.cv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; color: var(--ink-muted); }
.cv-meta > span + span::before, .cv-line > * + *::before { content: '·'; margin-right: 6px; color: var(--ink-disabled); }
.cv-who h1 { font-size: 22px; line-height: 28px; letter-spacing: -0.02em; margin: 6px 0 4px; }
.cv-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.cv-line b { color: var(--ink); font-weight: 600; }
.cv-line .sub { font-family: var(--font-mono); font-size: 12px; }
/* The assignee is a control, not a fact: no separator, at the end of the line (alone and right-aligned when the line wraps). */
.cv-line > .cv-assign { margin-left: auto; }
.cv-line > .cv-assign::before { content: none; }
.cv-urgent { color: var(--danger); font-weight: 500; }
@container main (min-width: 1100px) { .cv-line .sub, .cv-line .sub + * ::before { display: none; } }
@media (max-width: 719px) { .cv-who h1 { font-size: 18px; line-height: 24px; } }

/* Unread dot (replaces the direction icon) */
.r-dot { display: grid; place-items: center; width: 14px; height: 18px; cursor: pointer; }
.r-dot i { width: 5px; height: 5px; border-radius: 50%; background: transparent; transition: background .15s; }
.r-dot.is-unread i { background: #16a34a; }
.r-dot:not(.is-unread):hover i { background: var(--line-control); }

/* Unread dot sits in the left gutter; names and day labels share one left edge */
.row:not(.cust-row) { grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) 104px 44px 64px; }
.row .r-dot { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 10px; }
.ib-day { padding-left: 20px; }
@media (max-width: 719px) { .row:not(.cust-row) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name time" "sum sum" "status status"; } .row .r-dot { left: 1px; top: 15px; transform: none; } .ib-day { padding-left: 12px; } }

/* One left edge: tab text, day labels and caller names (desktop) */
@media (min-width: 720px) {
  .row:not(.cust-row) { padding-left: 62px; }
  .row .r-dot { left: 46px; }
  .ib-day { padding-left: 62px; }
}


/* A pick list opened from a button (the member picker on a row or in a call): a popover under it, the app not dimmed. */
.overlay.is-anchored { background: transparent; padding: 0; }
.k-cmd-anchored { z-index: 1; }
.k-cmd-anchored .k-cmd-search { height: 40px; }
.k-cmd-anchored .k-cmd-search input { font-size: 13.5px; }
.k-cmd-anchored .k-cmd-foot { display: none; }
.r-act .k-avatar, .cv-assign-btn .k-avatar { pointer-events: none; }
.ib-mode-switch { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; margin: 0 -6px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.ib-mode-switch:hover { background: var(--surface-hover); }
.ib-mode-switch .k-icon { color: var(--ink-muted); }
.cv-assign { margin-left: auto; display: inline-flex; }
.cv-assign + .cv-acts { margin-left: 0; }
.cv-assign-btn .k-avatar { margin-right: 2px; }

/* An install's own logo (Server admin › Branding) in place of the mark: the image itself, no dark square. */
.ws-mark.is-logo, .auth-mark.is-logo { background: none; overflow: hidden; }
.ws-mark.is-initial, .auth-mark.is-initial { background: var(--action); color: var(--on-action); font-weight: 600; line-height: 1; }
.auth-mark.is-initial { font-size: 20px; }
.ws-mark.is-initial { font-size: 13px; }
.is-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Forwarding check (onboarding phone step and Settings, Phone numbers) */
.fc { display: grid; gap: 8px; }
/* The number card's Change area (ForwardingCheck, rows): the field, the lookup's words and the carrier pickers. */
.fc-change { display: grid; gap: 8px; }
/* Check forwarding, then the one thing to do first, with its "?" (the phone checklist). */
.fc-check { flex-wrap: wrap; gap: 8px 12px; }
.fc-screening { display: inline-flex; align-items: center; gap: 4px; }

/* Buttons that open an AI client (ui/ClientLink.tsx): side by side, wrapping on a phone. */
.client-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Agent-usable UI (LIN-875). */
/* A row's name is a link to its call or contact, with the row's own look. */
.r-link { color: inherit; text-decoration: none; }
a.nav-item { text-decoration: none; }
/* With a mouse the row actions stay in the page, unseen until the row is hovered, under the cursor or holds the
   focus: a screen reader and a browser agent find them by name without hovering first. Any touch screen (a tablet,
   a laptop with one) and narrow windows keep them out (display: none above): a tap must never hit a button nobody
   sees. */
@media (hover: hover) and (pointer: fine) and (not (any-pointer: coarse)) and (min-width: 720px) {
  .r-acts { display: flex; opacity: 0; }
  .row:hover .r-acts, .row.is-cursor .r-acts, .row:focus-within .r-acts { opacity: 1; }
}