/* Phonic design system tokens (from the "Phonic Design System" Claude Design project,
   colors_and_type.css) + the Phonic app chrome (stone-50 page, white panels, orange active nav). */

@font-face { font-family: "Pilat"; src: url("/static/fonts/Pilat-Book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pilat"; src: url("/static/fonts/Pilat-Demi.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Pilat"; src: url("/static/fonts/Pilat-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "iA Writer Quattro"; src: url("/static/fonts/iAWriterQuattroS-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #000000;
  --ink-2: #1F2937;
  --ink-3: #71717A;
  --page: #FAFAF9;           /* stone-50, the Phonic app background */
  --surface: #FFFFFF;
  --surface-2: #F4F4F5;
  --surface-3: #FAFAFA;
  --zinc-900: #18181B;
  --hairline: rgba(0, 0, 0, 0.10);
  --hairline-warm: #E7E5E4;  /* stone-200 */
  --accent-agent: #FF5500;
  --accent-agent-tint: rgba(255, 85, 0, 0.06);
  --accent-user: #9333EA;
  --accent-user-tint: rgba(147, 51, 234, 0.06);
  --success: #36A050;
  --success-tint: #DCFCE7;
  --danger: #DC2626;
  --danger-tint: #FEE2E2;
  --warning: #B45309;
  --warning-tint: #FEF3C7;
  --radius-1: 2px; --radius-2: 4.5px; --radius-3: 6px; --radius-4: 8px; --radius-5: 12px; --radius-6: 16px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.05);
  --font-sans: "Pilat", "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "iA Writer Quattro", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); font: 400 14px/20px var(--font-sans); letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-size: 13px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; line-height: 16px; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.i.lg { width: 20px; height: 20px; }

/* Buttons */
.btn { height: 36px; padding: 0 14px; border-radius: var(--radius-3); border: 1px solid transparent; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; text-decoration: none; font-weight: 500; }
.btn-primary { background: var(--zinc-900); color: #FAFAFA; }
.btn-primary:hover { background: #2F2F32; }
.btn-secondary { background: var(--surface-2); color: var(--zinc-900); }
.btn-secondary:hover { background: #E9E9EC; }
.btn-ghost { background: transparent; color: var(--zinc-900); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--danger-tint); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }

/* Inputs */
.input { height: 36px; padding: 0 10px; border: 1px solid var(--hairline); border-radius: var(--radius-3); background: var(--surface); box-shadow: var(--shadow-1); width: 100%; }
.input:focus { outline: 1px solid var(--zinc-900); outline-offset: 0; }
label.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
input[type=checkbox] { accent-color: var(--zinc-900); width: 16px; height: 16px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 9999px; font-size: 12px; line-height: 16px; background: var(--surface-3); border: 1px solid var(--hairline); white-space: nowrap; }
.badge.ok { background: var(--success-tint); color: var(--success); border-color: transparent; }
.badge.bad { background: var(--danger-tint); color: var(--danger); border-color: transparent; }
.badge.warn { background: var(--warning-tint); color: var(--warning); border-color: transparent; }
.badge.live { background: var(--success-tint); color: var(--success); border-color: transparent; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.badge.agent { background: var(--accent-agent-tint); color: var(--accent-agent); border-color: transparent; }
@keyframes pulse { 50% { opacity: .35; } }

/* Segmented control (Phonic tabs: pill track, white active chip) */
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--radius-3); padding: 2px; gap: 2px; }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 13px; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg button.on.agent { color: var(--accent-agent); }

/* Layout: Phonic app chrome */
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100dvh; }
.side { padding: 18px 12px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100dvh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px; text-decoration: none; }
.brand svg { height: 19px; width: auto; }
.brand .brand-div { width: 1px; height: 16px; background: #D6D3D1; flex-shrink: 0; }
.brand .product { color: var(--ink); font: 500 15px/19px var(--font-sans); letter-spacing: -0.1px; padding-top: 2px; white-space: nowrap; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: var(--radius-4); text-decoration: none; }
.nav a:hover { background: #F5F5F4; }
.nav a.on { background: #F5F5F4; color: var(--ink); font-weight: 500; }
.nav a.on svg { color: var(--accent-agent); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.side .foot { margin-top: auto; padding: 0 10px; display: flex; flex-direction: column; gap: 6px; }
.main { padding: 18px 24px 48px 12px; min-width: 0; }
.topbar { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; min-width: 0; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--ink-3); opacity: .6; }
.crumbs .cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Sections (2026-10-03 redesign): no boxes. A heading over a hairline, then hairline-separated rows, like Upcoming. */
.panel { background: transparent; }
.panel + .panel, .stack > * + * { margin-top: 32px; }
.panel-head { padding: 0 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--hairline-warm); }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-head > span { color: var(--ink-3); font-size: 13px; }
.panel-body { padding: 14px 0 0; }
.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); }
.empty .btn { margin-top: 12px; }
/* Toast: small dark pill, bottom centre, auto-hides */
.notice { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px)); padding: 6px 6px 6px 16px; min-height: 40px; border-radius: 12px;
  background: var(--zinc-900); color: #FAFAF9; font-size: 13px; line-height: 18px; box-shadow: 0 10px 28px rgba(28, 25, 23, .22); animation: toast-in .18s ease-out; }
.notice #noticeText { padding: 5px 0; }
.notice button { color: #A8A29E; height: 28px; width: 28px; padding: 0; display: grid; place-items: center; border-radius: 6px; flex-shrink: 0; }
.notice button:hover { color: #FAFAF9; background: rgba(255, 255, 255, .08); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.err { color: var(--danger); font-size: 12px; }

/* Lists / tables */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { padding: 14px 0; border-top: 1px solid #F0EFED; }
.rows > li:first-child { border-top: 0; }
.day { padding: 8px 16px; background: var(--surface-3); border-top: 1px solid var(--hairline-warm); color: var(--ink-3); font-size: 12px; }
.day:first-child { border-top: 0; }
.ev { display: grid; grid-template-columns: 112px 1fr auto; gap: 4px 16px; align-items: center; }
.ev .when { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.ev .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .sub { grid-column: 2 / 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink-3); font-size: 12px; }
.ev .ctl { grid-row: 1 / 3; grid-column: 3; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; justify-content: flex-end; }
.icon-btn { width: 30px; padding: 0; justify-content: center; }
.badge.tool { background: var(--surface); border-color: var(--hairline-warm); color: var(--ink-2); }
.badge.tool svg.i { width: 12px; height: 12px; }
.tools-panel { margin: 10px 0 2px auto; width: min(340px, 100%); padding: 12px; border: 1px solid var(--hairline-warm); border-radius: var(--radius-4); background: var(--surface); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.tools-panel .head { font-weight: 500; margin-bottom: 2px; }
.tools-panel .sub { color: var(--ink-3); font-size: 12px; margin-bottom: 6px; }
.tools-panel label.tool-opt { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: var(--radius-3); cursor: pointer; }
.tools-panel label.tool-opt:hover { background: var(--surface-3); }
.tools-panel label.tool-opt .nm { display: flex; align-items: center; gap: 6px; flex: 1; }
.tools-panel label.tool-opt.off { cursor: default; color: var(--ink-3); }
.tools-panel label.tool-opt.off:hover { background: transparent; }
.tools-panel .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.ev.dim .title { color: var(--ink-3); }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 400; font-size: 12px; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--hairline-warm); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--hairline-warm); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-3); }
td .t { font-weight: 500; }
td .s { color: var(--ink-3); font-size: 12px; }

/* Meeting detail */
.meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.meta dt { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.turns { list-style: none; margin: 0; padding: 4px 16px; }
.turn { padding: 12px 0; border-top: 1px solid var(--hairline-warm); }
.turn:first-child { border-top: 0; }
.turn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.av { width: 19px; height: 19px; border-radius: var(--radius-2); display: grid; place-items: center; }
.av svg.i { width: 12px; height: 12px; }
.av.user { background: var(--accent-user-tint); color: var(--accent-user); }
.av.agent { background: var(--accent-agent-tint); color: var(--accent-agent); }
.chip { font-family: var(--font-mono); font-size: 12px; height: 19px; padding: 0 6px; border-radius: var(--radius-2); display: inline-flex; align-items: center; }
.chip.user { background: var(--accent-user-tint); color: var(--accent-user); }
.chip.agent { background: var(--accent-agent-tint); color: var(--accent-agent); }
.turn p { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: var(--ink-2); }

/* Integrations */
.intg { display: grid; grid-template-columns: 32px 1fr auto; gap: 2px 16px; align-items: center; }
.logo-tile { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #F5F5F4; grid-row: 1 / 3; }
.logo-tile svg { width: 18px; height: 18px; }
.logo-tile img.mcp-logo { width: 20px; height: 20px; border-radius: 4px; }
img.i.mcp-logo { width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; object-fit: contain; }
.warn-text { color: #B45309; }
.intg.later .name, .intg.later .desc, .intg.later .logo-tile { opacity: .55; }
.intg .name { font-weight: 500; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.intg .desc { color: var(--ink-3); font-size: 13px; grid-column: 2; }
.intg .act { grid-row: 1 / 3; grid-column: 3; display: flex; gap: 8px; align-items: center; }
.settings { margin-top: 10px; grid-column: 2 / 4; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); }

.launch { display: grid; grid-template-columns: 1fr 200px auto auto; gap: 8px; align-items: center; }

/* Organization directory */
.org-form { display: grid; grid-template-columns: 140px 1fr 1fr 1.2fr auto; gap: 8px; align-items: center; }
form.org-form[data-orgedit] { grid-template-columns: 1fr 1fr 1.2fr; }
form.org-form[data-orgedit] .row { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
select.input { appearance: auto; }
.org-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.org-row .t { font-weight: 500; } .org-row .s { color: var(--ink-3); font-size: 12px; }
.org-row .row { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.org-row:hover .row, .org-row:focus-within .row { opacity: 1; }
/* Quiet destructive actions: grey until hovered */
.btn-danger.quiet { color: var(--ink-3); }
.btn-danger.quiet:hover { color: var(--danger); background: var(--danger-tint); }

/* Upcoming (redesign 2026-10-03): text day headings, one bot menu per row */
.crumbs.page-title { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.2px; }
.filter-wrap, .mode-wrap { position: relative; }
.filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--hairline-warm);
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
svg.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; flex-shrink: 0; }
.day2 { margin-top: 30px; }
.day2:first-child { margin-top: 8px; }
.day2 h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline-warm); font-size: 15px; font-weight: 600; }
.day2 h2 span { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.ev2 { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; column-gap: 24px; align-items: center; padding: 13px 0; border-bottom: 1px solid #F0EFED; position: relative; isolation: isolate; }
.ev2 .t { font-variant-numeric: tabular-nums; line-height: 18px; white-space: nowrap; }
.ev2 .t b { display: block; font-weight: 500; font-size: 14px; }
.ev2 .t small { color: var(--ink-3); font-size: 12.5px; }
.ev2 .tt { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev2 .tt .badge { margin-left: 6px; vertical-align: 1px; }
.ev2 .meta { display: flex; align-items: center; gap: 14px; margin-top: 5px; color: var(--ink-3); font-size: 12.5px; min-width: 0; flex-wrap: wrap; row-gap: 4px; }
.ev2 .meta > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ev2.dim .tt { color: var(--ink-3); }
svg.cam { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ppl { display: inline-flex; }
.ppl i { width: 20px; height: 20px; border-radius: 50%; margin-left: -6px; border: 2px solid var(--page); display: grid; place-items: center;
  font: 600 10px/1 var(--font-sans); font-style: normal; color: #57534E; background: #E7E5E4; }
.ppl i:first-child { margin-left: 0; }
.ppl i.ph, .pop i.ph { padding: 0; overflow: hidden; }
.ppl i.ph img, .pop i.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Full invite list: hover or keyboard focus on the attendee line */
.ppl-wrap { position: relative; cursor: default; border-radius: 6px; outline: none; }
.ppl-wrap:focus-visible { box-shadow: 0 0 0 2px var(--accent-agent); }
.pop { display: none; position: absolute; left: 0; top: calc(100% + 6px); z-index: 25; width: 300px; max-height: 340px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--hairline-warm); border-radius: 10px; box-shadow: 0 12px 32px rgba(28, 25, 23, .12); padding: 8px; white-space: normal; }
/* Hover, or keyboard focus only: a mouse click must not pin it open while you hover other rows */
.ppl-wrap:hover .pop, .ppl-wrap:focus-visible .pop { display: block; }
.ppl-wrap:hover, .ppl-wrap:focus-visible { z-index: 26; }
.pop-h { display: block; color: var(--ink-3); font-size: 12px; padding: 2px 6px 6px; }
.pop ul { list-style: none; margin: 0; padding: 0; }
.pop li { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 6px; }
.pop li > i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #E7E5E4; color: #57534E;
  font: 600 11px/1 var(--font-sans); font-style: normal; }
.pop li > i.grp svg { width: 14px; height: 14px; }
.pop .pn { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; color: var(--ink); font-size: 13px; }
.pop .pn b { font-weight: 500; }
.pop .pn em { font-style: normal; font-size: 11px; color: var(--accent-agent); }
.pop .pn small { flex-basis: 100%; color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-foot { color: var(--ink-3); font-size: 12px; padding: 6px 6px 2px; border-top: 1px solid #F0EFED; margin-top: 4px; }
.agent-row .ppl i { border-color: #FFF7F2; }
.tool-marks { display: inline-flex !important; align-items: center; gap: 8px; color: var(--ink-3); }
svg.im { width: 13px; height: 13px; display: block; flex-shrink: 0; }
.soon { color: var(--accent-agent) !important; font-weight: 500; }
.warn-text { color: var(--warning) !important; }
.ev2 .right { display: flex; align-items: center; gap: 10px; }
.join { height: 28px; padding: 0 12px; border-radius: 7px; background: var(--zinc-900); color: #FAFAFA; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.join.soon-join { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline-warm); }
.mode { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border-radius: 8px; border: 1px solid transparent; background: transparent;
  font: inherit; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; min-width: 150px; justify-content: flex-end; cursor: pointer; }
.mode small { color: #A8A29E; font-size: 12px; }
.mode.agent { color: var(--accent-agent); font-weight: 500; }
.mode.agent small { font-weight: 400; }
svg.pm { width: 15px; height: 15px; flex-shrink: 0; }
.mode:hover:not(:disabled), .mode.open { border-color: var(--hairline-warm); background: var(--surface); box-shadow: var(--shadow-1); }
.mode:disabled { cursor: default; opacity: .6; }
.ev2.agent-row::before { content: ""; position: absolute; inset: 0 -14px; border-radius: 8px; background: rgba(255, 85, 0, .05); z-index: -1; }
.ev2.agent-row { border-bottom-color: transparent; }
.ev2:hover, .ev2:has(.ppl-wrap:focus-visible) { z-index: 28; }
.ev2.menu-open, .filter-wrap.menu-open { z-index: 30; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); width: 330px; background: var(--surface); border: 1px solid var(--hairline-warm); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(28, 25, 23, .12), 0 2px 6px rgba(28, 25, 23, .06); padding: 6px; z-index: 20; text-align: left; }
.menu.small-menu { width: 220px; }
.menu .opt { display: grid; grid-template-columns: 22px 1fr 16px; gap: 10px; align-items: start; padding: 9px 10px; border-radius: 8px; width: 100%;
  border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.menu .opt:hover { background: #FAFAF9; }
.menu .opt.on { background: #F5F5F4; }
.menu .opt .ic { display: grid; place-items: center; height: 20px; }
.menu .opt b { display: block; font-weight: 500; font-size: 14px; }
.menu .opt p { margin: 1px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 17px; }
.menu .opt.agent b { color: var(--accent-agent); }
.menu .ck { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
svg.mi { width: 18px; height: 18px; fill: none; stroke: #78716C; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button.mode svg.mi { width: 15px; height: 15px; }
.menu .msep { height: 1px; background: var(--hairline-warm); margin: 6px 4px; }
.menu .tl { padding: 6px 10px 8px; }
.menu .tl .h { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.menu .tg { display: flex; align-items: center; gap: 10px; height: 30px; font-size: 13.5px; cursor: pointer; }
.menu .tg svg.im { width: 14px; height: 14px; }
input.sw { appearance: none; -webkit-appearance: none; margin: 0 0 0 auto; width: 28px; height: 16px; border-radius: 9px; background: #D6D3D1; position: relative; cursor: pointer; transition: background .15s; }
input.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #FFF; transition: left .15s; }
input.sw:checked { background: var(--zinc-900); }
input.sw:checked::after { left: 14px; }
input.sw:focus-visible { outline: 2px solid var(--accent-agent); outline-offset: 2px; }

/* Meetings list: Upcoming-style rows that link to the meeting page */
a.mrow { color: inherit; text-decoration: none; cursor: pointer; }
a.mrow::after { content: ""; position: absolute; inset: 0 -14px; border-radius: 8px; z-index: -1; }
a.mrow:hover::after { background: #F5F5F4; }
a.mrow:focus-visible { outline: 2px solid var(--accent-agent); outline-offset: 2px; border-radius: 8px; }
.mstate { font-size: 13px; color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mstate.ok { color: var(--success); }
.mstate.bad { color: var(--danger); }
.mstate.live { color: var(--success); font-weight: 500; }
.mstate.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
svg.chev.go { opacity: .35; }
.launch-box { margin-bottom: 30px; }
.launch-box .day2 { margin-top: 0; }
.launch-box .launch { margin-top: 14px; }

/* Meeting page (redesign 2026-10-03): inline recording player + clickable transcript */
.mt-head { margin: -4px 0 18px; }
.mt-head h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.3px; }
.mt-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 6px; color: var(--ink-3); font-size: 14.5px; }
.mt-sub .gap { width: 14px; }
.agent-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-agent); font-weight: 500; }
/* Meetings list: the Phonic logo, then the logos of the tools it used (+N), names on hover. */
.mrow .agent-tag .used { display: inline-flex; align-items: center; gap: 5px; margin-left: 2px; color: var(--ink-3); font-weight: 400; }
.mrow .agent-tag .used .im { width: 14px; height: 14px; color: var(--ink-2); }
.mrow .agent-tag .used b { font-weight: 500; font-size: 12px; }
.mrow .agent-tag .used-x { width: 14px; height: 14px; border-radius: 4px; background: #E7E5E4; color: var(--ink-2); font: 600 9px/14px var(--font-sans); text-align: center; font-style: normal; }
.mt-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 36px; align-items: start; }
.player { background: #18181B; border-radius: 12px; overflow: hidden; }
.stagebox { position: relative; aspect-ratio: 16 / 9; background: #0C0A09; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0C0A09; cursor: pointer; }
/* Phonic's shared screen (snapshots) as a picture-in-picture over the recording; Swap flips them. */
.pip-screen { position: absolute; right: 14px; bottom: 14px; width: 30%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; z-index: 2;
  background: #0C0A09; border: 2px solid var(--accent-agent); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.pip-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pip-screen .tag, .swap { position: absolute; background: rgba(0, 0, 0, .6); color: #FAFAF9; font-size: 11px; padding: 3px 7px; border-radius: 5px; }
.pip-screen .tag { left: 6px; bottom: 6px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap { right: 6px; bottom: 6px; border: 0; cursor: pointer; font-family: inherit; }
.stagebox.swapped .pip-screen { inset: 0; width: 100%; border-radius: 0; border-width: 0; box-shadow: none; z-index: 1; }
.stagebox.swapped .swap { bottom: auto; top: 10px; right: 10px; font-size: 12px; padding: 4px 9px; }
.stagebox.swapped video { inset: auto 14px 14px auto; width: 30%; height: auto; aspect-ratio: 16 / 9; z-index: 3; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.pbar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; color: #FAFAFA; font-size: 13px; font-variant-numeric: tabular-nums; }
.pbar button { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; font: inherit; }
svg.pi { width: 16px; height: 16px; display: block; }
.seek { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); cursor: pointer; }
.seek::before { content: ""; position: absolute; inset: -8px 0; }
.seek .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: #FAFAFA; }
.seek .tick { position: absolute; top: -4px; width: 3px; height: 12px; margin-left: -1px; border-radius: 1px; background: var(--accent-agent); font-style: normal; }
.seek .tick.bad { background: #A8A29E; }
.rate { min-width: 28px; text-align: right; opacity: .8; }
.kv { margin: 18px 0 0; display: grid; grid-template-columns: 120px 1fr; row-gap: 10px; font-size: 14.5px; }
.kv > div { display: contents; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.mt-details { margin-top: 18px; }
.mt-details summary { cursor: pointer; color: var(--ink-3); font-size: 13px; }
.mt-details .meta { margin-top: 12px; }
/* The recording stays in view while the summary and transcript scroll, so clicking a line shows the video. */
/* The title row stays put too (with the page color behind it, so the transcript scrolls under it). */
.mt-head { position: sticky; top: 0; z-index: 6; background: var(--page); margin: -18px 0 0; padding: 18px 0 18px; }
.mt-left { position: sticky; top: var(--mt-head-h, 16px); max-height: calc(100vh - var(--mt-head-h, 16px) - 16px); overflow-y: auto; scrollbar-width: none; }
.tr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tr-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
ol.tr { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 210px); overflow-y: auto; }
ol.tr li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0; border-radius: 8px; cursor: pointer; }
ol.tr li:hover { background: #FAFAF9; }
ol.tr li.on { background: #F5F5F4; }
ol.tr .ts { color: #A8A29E; font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; }
ol.tr li.on .ts { color: var(--ink); }
ol.tr b { display: block; font-weight: 500; font-size: 14px; }
ol.tr b.agent { color: var(--accent-agent); }
ol.tr p { margin: 4px 0 0; font-size: 15px; line-height: 22px; color: var(--ink); }

/* Narrow screens: nav becomes a top bar */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { min-width: 0; position: static; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--hairline-warm); }
  .side { scrollbar-width: none; }
  .nav { flex-direction: row; flex-shrink: 0; gap: 2px; }
  .nav a { padding: 0 8px; gap: 6px; }
  .brand { flex-shrink: 0; }
  .nav a { height: 34px; }
  .brand .product, .brand .brand-div, .side .foot { display: none; }
  .main { padding: 16px; }
  .launch { grid-template-columns: 1fr; }
  .org-form, form.org-form[data-orgedit] { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 1fr; }
  .ev .ctl { grid-row: auto; grid-column: auto; justify-content: flex-start; flex-wrap: wrap; }
  .ev .sub { grid-column: auto; }
  .ev2 { grid-template-columns: 72px minmax(0, 1fr); row-gap: 8px; }
  .ev2 .right { grid-column: 2; justify-content: flex-start; }
  .ev2 .tt { white-space: normal; }
  .mode { min-width: 0; padding-left: 8px; justify-content: flex-start; margin-left: -8px; }
  .menu { right: auto; left: 0; width: min(330px, calc(100vw - 32px)); }
  .crumbs.page-title { font-size: 20px; }
  .mt-grid { grid-template-columns: 1fr; gap: 24px; }
  /* One column: just the player sticks to the top (details scroll away with the page). */
  .mt-left { display: contents; }  /* so the player can stick past it, alongside the transcript */
  .mt-head { position: static; margin: -4px 0 18px; padding: 0; }  /* phones: only the video stays (room for the transcript) */
  .mt-left .player { position: sticky; top: 0; z-index: 5; border-radius: 0 0 12px 12px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
  ol.tr { max-height: none; }
  .intg { grid-template-columns: 40px 1fr; }
  .intg .act { grid-row: auto; grid-column: 1 / 3; }
  .settings { grid-column: 1 / 3; }
}
@media (max-width: 480px) {
  .brand { display: none; }
  .nav .count { display: none; }
}

/* Integrations: compact two-column tool grid by category */
.tsec { padding: 14px 0 6px; }
.tsec + .tsec { border-top: 1px solid var(--hairline); }
.tsec-h { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.tcard { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; }
.tlogo { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #fff; border: 1px solid var(--hairline); }
.tlogo svg { width: 18px; height: 18px; }
.tlogo img.mcp-logo { width: 20px; height: 20px; border-radius: 4px; }
.tname { font-weight: 500; display: flex; gap: 6px; align-items: center; min-width: 0; }
.tok { display: inline-flex; color: var(--ok, #15803D); }
.tok svg { width: 14px; height: 14px; }
.tdesc { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tact { display: flex; gap: 4px; align-items: center; }
.tcard.later .tlogo, .tcard.later .tname, .tcard.later .tdesc { opacity: .5; }
.btn.pill { border-radius: 9999px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn.danger { color: var(--danger, #B91C1C); }
.tnote { font-size: 13px; color: var(--ink-3); padding: 4px 0 8px; }
.tnote b { color: var(--ink); font-weight: 500; }
.tadd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0 4px; border-top: 1px solid var(--hairline); }
.tadd .tsec-h { margin: 0; }
.tadd .err { grid-column: 1 / -1; }
@media (max-width: 860px) { .tgrid { grid-template-columns: 1fr; } .tadd { grid-template-columns: 1fr auto; } .tadd .tsec-h { grid-column: 1 / -1; } }
.tdesc:has(.tools-hover) { overflow: visible; }
.tools-hover { text-decoration: underline dotted; text-underline-offset: 3px; cursor: default; }
.tools-hover .pop { width: 320px; }
.tools-hover .pop li { padding: 3px 6px; }
.tcard:has(.tools-hover:hover), .tcard:has(.tools-hover:focus-visible) { position: relative; z-index: 26; }
.tgrid.boxed { gap: 10px 16px; padding-top: 12px; }
.tgrid.boxed .tcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px; }
.tgrid.boxed + .tnote { padding-top: 12px; }
img.im.mcp-logo { display: block; width: 13px; height: 13px; border-radius: 3px; object-fit: contain; flex-shrink: 0; }
.menu .tg img.im.mcp-logo { width: 14px; height: 14px; }

/* Settings */
.set-body { padding: 14px 0 6px; display: flex; flex-direction: column; gap: 12px; }
.set-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.set-field b, .opt-card b, .set-check b { font-weight: 500; }
.set-field .muted { font-size: 13px; }
.set-sub { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-top: 6px; }
.opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 14px; }
.opt-card > span { display: flex; flex-direction: column; gap: 3px; }
.opt-card .muted { font-size: 13px; }
.opt-card input { margin-top: 3px; accent-color: var(--zinc-900); }
.opt-card:has(input:checked) { border-color: var(--zinc-900); box-shadow: 0 0 0 1px var(--zinc-900); }
.set-check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.set-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; max-width: 760px; }
.set-tools .tg { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 14px; }
.set-tools .tg svg.im, .set-tools .tg img.im { width: 14px; height: 14px; }
@media (max-width: 860px) { .opt-grid, .opt-grid.two, .set-tools { grid-template-columns: 1fr; } }

/* Settings rows: label left, control right */
.srow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; padding: 16px 0; }
.srow + .srow, [data-skiprow] > .srow { border-top: 1px solid var(--hairline); }
.srow .sl { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.srow .sl b { font-weight: 500; }
.srow .sl .muted { font-size: 13px; line-height: 1.45; }
.srow .sc { display: flex; justify-content: flex-end; }
.srow .sc .input { max-width: 320px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9999px; background: #EFEDEA; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 14px; border-radius: 9999px; font-size: 13px; color: var(--ink-3); white-space: nowrap; transition: background .12s, color .12s; }
.seg input:checked + span { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 1px 2px rgba(28, 25, 23, .12); }
.seg input:focus-visible + span { box-shadow: 0 0 0 2px var(--accent-agent); }
.skips { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 420px; }
.srow .set-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 420px; gap: 2px 24px; }
@media (max-width: 860px) { .srow { grid-template-columns: 1fr; gap: 10px; } .srow .sc { justify-content: flex-start; } .seg { flex-wrap: wrap; border-radius: 12px; } }
/* Bridge the 6px gap above a popover so moving the mouse into it doesn't close it */
.ppl-wrap:hover::after { content: ""; position: absolute; left: 0; top: 100%; width: 320px; height: 10px; }

/* Meetings: search + filters */
.mfilters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.mfilters select.input { width: auto; height: 36px; padding: 0 30px 0 10px; font-size: 13px; }
.mfilters .check { display: flex; gap: 6px; align-items: center; margin-left: 4px; }
.msearch { position: relative; flex: 1 1 260px; min-width: 200px; }
.msearch svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.msearch input { padding-left: 32px; height: 36px; width: 100%; }
.mcount { margin: -6px 0 10px; }
mark { background: #FDE68A; color: inherit; border-radius: 3px; padding: 0 1px; }
.hits { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.hit { display: block; font-size: 13px; color: var(--ink-2, #44403C); line-height: 1.45; padding: 4px 8px; border-radius: 6px; background: var(--surface-3); cursor: pointer; }
.hit:hover { background: #EFEDEA; }
.hit .ht { color: var(--ink-3); margin-right: 8px; font-variant-numeric: tabular-nums; }

/* Settings: per-tool table */
.tool-table { padding: 8px 0 16px; border-top: 1px solid var(--hairline); }
.tt-h, .tt-r { display: grid; grid-template-columns: minmax(0, 1fr) 160px 140px 100px; gap: 16px; align-items: center; }
.tt-h { font-size: 12px; color: var(--ink-3); padding: 8px 0 4px; }
.tt-h span:last-child, .tt-r .sw { justify-self: end; }
.tt-r { padding: 6px 0; font-size: 14px; }
.tt-n { display: flex; gap: 8px; align-items: center; }
.tt-n svg.im, .tt-n img.im { width: 14px; height: 14px; }
.tt-r select.input { height: 32px; font-size: 13px; padding: 0 28px 0 10px; }
.tool-table > .small { margin-top: 8px; }
@media (max-width: 860px) { .tt-h, .tt-r { grid-template-columns: minmax(0, 1fr) 96px 96px 40px; gap: 8px; } .tt-h span:last-child { font-size: 0; } .tt-h span:last-child::after { content: "On"; font-size: 12px; }
  .tt-r select.input { padding: 0 22px 0 8px; font-size: 12px; background-position: right 6px center; } .tt-n { min-width: 0; } .tt-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tt-r .small { font-size: 12px; } }
.bs-form { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--hairline); max-width: 640px; }
.tcard.later .tact .btn { opacity: 1; }
.scan-prog { padding: 10px 0 0; }
.prop-row .t .badge { margin-right: 4px; }
.prop-row { grid-template-columns: 1fr auto; }
.prop-row .row { opacity: 1; gap: 6px; }
.prop-row .s { font-size: 13px; }
.diff { display: flex; flex-direction: column; gap: 4px; margin: 4px 0; font-size: 13px; color: var(--ink-2, #44403C); }
.diff .dl { display: inline-block; width: 52px; color: var(--ink-3); font-size: 12px; }
.diff ins { background: #DCFCE7; text-decoration: none; border-radius: 3px; padding: 0 1px; }
.diff del { background: #FEE2E2; color: #991B1B; border-radius: 3px; padding: 0 1px; }

/* Organization docs */
.doc-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0 10px; border-bottom: 1px solid var(--hairline); }
.doc-tab { border: 0; background: transparent; padding: 6px 12px; border-radius: 9999px; font: inherit; font-size: 13.5px; color: var(--ink-3); cursor: pointer; }
.doc-tab span { font-size: 12px; opacity: .7; margin-left: 2px; }
.doc-tab.on { background: var(--zinc-900); color: #FAFAF9; }
.doc-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; flex-wrap: wrap; }
.doc-hist { list-style: none; margin: 0 0 10px; padding: 8px 12px; background: var(--surface-3); border-radius: 10px; font-size: 13px; max-height: 220px; overflow: auto; }
.doc-hist li { padding: 3px 0; }
textarea.mono, .doc-md { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; width: 100%; resize: vertical; }
.org-row .s.body { white-space: pre-wrap; }
.sec-form { display: grid; gap: 8px; grid-template-columns: 1fr; }
.sec-form .row { justify-content: flex-end; }
.prop-edit { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.prop-edit .row { display: flex; justify-content: flex-end; gap: 6px; }
.ldiff { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5; margin: 6px 0; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; }
.ldiff div { padding: 1px 10px; white-space: pre-wrap; }
.ldiff .add { background: #F0FDF4; color: #166534; }
.ldiff .del { background: #FEF2F2; color: #991B1B; }
.ldiff .same { color: var(--ink-3); }
#orgAdd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) auto; margin-bottom: 6px; }
textarea.input { height: auto; padding-top: 8px; padding-bottom: 8px; }
textarea.doc-md { min-height: 420px; }
.ev2.joinable { cursor: pointer; }
.ev2.joinable:hover::before { content: ""; position: absolute; inset: 0 -14px; border-radius: 8px; background: rgba(28, 25, 23, .04); z-index: -1; }
.ev2.joinable.agent-row:hover::before { background: rgba(255, 85, 0, .09); }
.org-views { display: flex; align-items: center; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--hairline); }
.org-view { border: 0; background: transparent; font: inherit; font-size: 14px; padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-3); cursor: pointer; }
.org-view.on { color: var(--ink); border-bottom-color: var(--zinc-900); font-weight: 500; }
.org-view .cnt { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9999px; background: var(--accent-agent); color: #fff; font-size: 11.5px; line-height: 18px; text-align: center; margin-left: 4px; }
.sug-chips { border-bottom: 0; padding-top: 8px; }
.sum { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); font-size: 14px; line-height: 1.55; }
.sum p { margin: 4px 0 8px; }
.sum h3 { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin: 10px 0 4px; text-transform: none; }
.sum ul { margin: 0; padding-left: 18px; }
.sum li { margin: 2px 0; }
.sum .ts-link { color: var(--ink-3); font-variant-numeric: tabular-nums; text-decoration: none; margin-right: 4px; }
.sum .ts-link:hover { color: var(--ink); text-decoration: underline; }

/* Upcoming: quiet no-bot button (shows its label on hover), tool count with a list on hover */
.ev2 .mode.quiet { min-width: 0; gap: 2px; }
.ev2:hover .mode.quiet, .ev2 .mode.quiet.open { gap: 8px; }
.ev2 .mode.quiet .ml, .ev2 .mode.quiet small { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; transition: opacity .12s, max-width .12s; }
.ev2:hover .mode.quiet .ml, .ev2:hover .mode.quiet small, .ev2 .mode.quiet.open .ml, .ev2 .mode.quiet.open small, .ev2 .mode.quiet:focus-visible .ml { max-width: 80px; }
.ev2 .mode.quiet svg.mi { opacity: .55; }
.ev2:hover .mode.quiet .ml, .ev2:hover .mode.quiet small, .ev2 .mode.quiet.open .ml, .ev2 .mode.quiet.open small, .ev2 .mode.quiet:focus-visible .ml { opacity: 1; }
.ev2:hover .mode.quiet svg.mi, .ev2 .mode.quiet.open svg.mi { opacity: 1; }
/* Upcoming: the bot button is just an icon (orange Phonic logo = joins, grey crossed circle = no bot). */
.ev2 .mode.icon { min-width: 0; gap: 2px; }
.ev2 .mode.icon svg.mi { opacity: .5; }
.ev2:hover .mode.icon svg.mi, .ev2 .mode.icon.open svg.mi { opacity: .9; }
/* The meeting happening now: a thin line on its left edge. */
.ev2.now::after { content: ""; position: absolute; left: -14px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--accent-agent); }
.tool-count { font-size: 13px; color: var(--ink-3); text-decoration: underline dotted; text-underline-offset: 3px; cursor: default; }
.tool-count .pop { width: 240px; }
.tool-count .pop li { padding: 4px 6px; gap: 8px; }
.tool-count .pop li svg.im, .tool-count .pop li img.im { width: 14px; height: 14px; }
/* Get started */
.guide .panel-head h2 .small { font-weight: 400; margin-left: 6px; }
.guide-steps { list-style: none; margin: 0; padding: 6px 0 2px; display: grid; gap: 2px; }
.guide-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; }
.guide-steps .gs-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--surface-3); color: var(--ink-3); }
.guide-steps li.ok .gs-n { background: #DCFCE7; color: #15803D; }
.guide-steps .gs-n svg { width: 14px; height: 14px; }
.guide-steps .gs-t { display: flex; flex-direction: column; font-size: 14px; }
.guide-steps .gs-t b { font-weight: 500; }
.guide-steps .gs-t .muted { font-size: 13px; }
.guide-steps li.ok .gs-t b { color: var(--ink-3); text-decoration: line-through; }
/* Seek-bar agent marks: bigger target and a readable label on hover */
.seek .tick { cursor: pointer; }
.seek .tick::before { content: ""; position: absolute; inset: -6px -5px; }
.seek .tick:hover::after { content: attr(data-label); position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--zinc-900); color: #FAFAF9; font-size: 12px; font-style: normal; padding: 4px 8px; border-radius: 6px; pointer-events: none; z-index: 5; }
/* Integrations: search box, Linear's write access line on its card */
.intg-search { flex: 0 1 260px; min-width: 160px; }
.textra { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
/* Phones: a bottom tab bar instead of a top menu that runs off the screen */
@media (max-width: 860px) {
  .side { overflow: visible; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    background: var(--surface); border-top: 1px solid var(--hairline-warm); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); }
  .nav li { min-width: 0; }
  .nav a { flex-direction: column; justify-content: center; height: 52px; gap: 3px; padding: 0 2px; font-size: 11px; border-radius: 10px; }
  .nav a .count { position: absolute; margin: -30px 0 0 26px; font-size: 10px; }
  .nav a { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .main { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .notice { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  /* Calendar card: name, then email, then its button */
  .intg .name { grid-row: 1; grid-column: 2; }
  .intg .desc { grid-row: 2; grid-column: 2; }
  .intg .act { grid-row: 3; grid-column: 2; justify-self: start; margin-top: 6px; }
  .intg .settings { grid-row: 4; }
  .guide-steps li { grid-template-columns: 28px minmax(0, 1fr); }
  .guide-steps .gs-a { grid-column: 2; }
}
@media (max-width: 480px) { .side { padding: 0; border-bottom: 0; gap: 0; } }  /* the brand is hidden on phones; the tab bar is fixed at the bottom */

/* Bot menu: "When it speaks" - a label with a dropdown, and what the chosen level means */
.menu .eng-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu .eng-row .h { margin: 0; }
.menu .eng-row select.input { height: 30px; font-size: 13px; padding: 0 28px 0 10px; width: auto; max-width: 200px; }
.menu .eng .eng-d { margin: 8px 2px 2px; font-size: 12.5px; line-height: 17px; color: var(--ink-3); }

/* Upcoming day view: date + Today on the left, a week strip on the right, a month picker under the calendar button */
.dayhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.dh-left { position: relative; display: flex; align-items: center; gap: 10px; }
.dh-cal { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); cursor: pointer; color: var(--ink-2); }
.dh-cal:hover, .dh-cal.on { border-color: var(--ink-3); }
.dh-cal svg { width: 18px; height: 18px; }
.dh-date { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.2px; }
.dh-week { display: flex; align-items: center; gap: 2px; }
.dh-nav { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 18px; line-height: 1; }
.dh-nav:hover { background: var(--surface-2); color: var(--ink); }
.dh-day { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 46px; padding: 6px 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; color: var(--ink-2); font-family: inherit; }
.dh-day small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.dh-day b { font-size: 16px; font-weight: 500; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; }
.dh-day:hover b { background: var(--surface-2); }
.dh-day.today b { color: var(--accent-agent); font-weight: 600; }
.dh-day.sel b { background: var(--ink); color: #fff; }
.dh-day.sel.today b { background: var(--accent-agent); color: #fff; }
.mpick { position: absolute; top: 44px; left: 0; z-index: 40; width: 280px; padding: 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: 0 12px 32px rgba(28, 25, 23, .14); }
.mp-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.mp-nav { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 18px; color: var(--ink-2); }
.mp-nav:hover { background: var(--surface-2); }
.mp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mp-dow { font-size: 11px; color: var(--ink-3); padding: 4px 0; }
.mp-day { height: 34px; width: 34px; justify-self: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font: 13px var(--font-sans); color: var(--ink); }
.mp-day:hover { background: var(--surface-2); }
.mp-day.out { color: var(--ink-3); opacity: .55; }
.mp-day.today { box-shadow: inset 0 0 0 1.5px var(--accent-agent); color: var(--accent-agent); font-weight: 600; }
.mp-day.sel { background: var(--ink); color: #fff; box-shadow: none; }
.dsec { margin: 18px 0 4px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ev2.past { opacity: .62; }
.ev2.past:hover { opacity: 1; }
.ev2 .tt.struck { text-decoration: line-through; }
@media (max-width: 720px) {
  .dayhead { flex-direction: column; align-items: stretch; }
  .dh-week { justify-content: space-between; }
  .dh-day { width: auto; flex: 1; }
}
