/* meeting.radar — Stingray look: Sora headings, Manrope text, JetBrains Mono for data; navy→cyan gradient. */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;  /* the app is designed light-only; don't let the OS dark mode darken controls, scrollbars or backgrounds */
  --navy: #163084; --blue: #2070B0; --blue2: #2575BC; --cyan: #20A0D0;
  --grad: #163084;
  --ink: #0f1c45; --ink2: #3a4a72; --muted: #5d6b8f; --faint: #646f8c;  /* faint text still reads (4.5:1) */
  --line: #dbe3f0; --line2: #cdd7e8; --rail: #eef3fa; --canvas: #f4f7fc; --panel: #ffffff; --hover: #eef3fa; --sel: #e6eefa;
  --ok: #119a62; --okbg: #e3f5ec; --warn: #c98208; --warnbg: #fdf3e1; --bad: #d93247; --badbg: #fbe9ec; --rec: #e5484d;
  /* text versions of the brand/status colours: same hue, dark enough for small text (WCAG AA 4.5:1) */
  --cyan-t: #08729c; --ok-t: #0b6e45; --warn-t: #8a5a00; --bad-t: #b01e2e; --rec-t: #b8322f; --blue-t: #1b5f99; --muted-t: #4f5c7f;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --font: "Manrope", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", "SF Arabic", "Geeza Pro", sans-serif;
  --display: "Sora", "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --shadow-pop: 0 24px 60px -24px rgba(22, 48, 132, .28), 0 2px 6px rgba(15, 28, 69, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--canvas); color: var(--ink); font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .mt, .ttl, .day, .grp-h h2, .sp-head h2, .modal h2 { font-family: var(--display); }
[dir=rtl], :lang(ar) { font-family: "IBM Plex Sans Arabic", var(--font); }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
/* D-119: the first Tab stop jumps over the top bar and the menus straight to the page */
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .15s; }
.skip-link:focus { transform: none; outline: 2px solid var(--cyan); outline-offset: 2px; }
#view:focus, body:focus { outline: none; }
::selection { background: #CBE6F4; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------ type & controls */
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 0; font-weight: 650; }
h2 { font-size: 17px; letter-spacing: -.01em; margin: 0; font-weight: 600; }
h3 { font-size: 14px; margin: 0; font-weight: 600; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head > div:first-child { flex: 1; min-width: 240px; }
.head .sub { color: var(--muted); margin-top: 4px; }

.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); background: #fff; border-radius: 9px;
  padding: 7px 13px; cursor: pointer; white-space: nowrap; font-weight: 500; color: var(--ink2); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); border-color: #C9D3E4; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: #1B3A9E; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--bad-t); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { padding: 6px 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.recdot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); display: inline-block; flex: none; }

input[type=text], input[type=search], input[type=email], input[type=date], input[type=time], input[type=datetime-local], input[type=number],
input[type=password], input:not([type]), select, textarea {
  border: 1px solid var(--line2); border-radius: 9px; padding: 7px 11px; background: #fff; width: 100%; outline: none; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32, 160, 208, .16); }
textarea { resize: vertical; min-height: 70px; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364708F' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-inline-end: 30px; }
[dir=rtl] select { background-position: left 11px center; }
.field { display: grid; gap: 5px; }
.field > label, .lbl { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--navy); }
.seg { display: inline-flex; background: var(--rail); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13px; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(14,26,60,.08), 0 0 0 1px var(--line); }

/* chips & chip input */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--rail); border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 10px; font-size: 12.5px; color: var(--ink2); line-height: 20px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.chip.client { background: var(--sel); border-color: #CFE2F4; color: var(--navy); font-weight: 600; }
.chip.series { background: #fff; border-color: #BFE3F2; color: #11789E; }
.chip.folder { background: #fff; }
.chip.tag::before { content: "#"; color: var(--faint); }
.chip button { border: 0; background: none; padding: 0; margin-inline-start: 2px; cursor: pointer; color: var(--faint); font-size: 14px; line-height: 1; }
.chip button:hover { color: var(--bad-t); }
.chipin { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line2); border-radius: 9px; padding: 5px 7px; background: #fff;
  min-height: 38px; cursor: text; position: relative; }
.chipin:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32, 160, 208, .16); }
.chipin input { border: 0 !important; box-shadow: none !important; padding: 2px 4px !important; flex: 1; min-width: 120px; width: auto !important; background: transparent; }
.chipin.bare { border-color: transparent; padding: 0; min-height: 0; }
.chipin.bare:focus-within { box-shadow: none; border-color: transparent; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-pop); z-index: 50; max-height: 230px; overflow: auto; padding: 4px; }
.suggest div { padding: 6px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.suggest div.on, .suggest div:hover { background: var(--hover); }
.suggest div small { color: var(--muted); }

.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #fff;
  border: 2px solid #fff; flex: none; }
.avatars { display: inline-flex; } .avatars .avatar + .avatar { margin-inline-start: -7px; }
.avatars .more { background: var(--line); color: var(--muted); }

.badge { font-size: 11.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--rail); color: var(--muted); white-space: nowrap; line-height: 20px; }
.badge.recording { background: var(--badbg); color: var(--rec-t); }
.badge.processing { background: #E3F4FA; color: #10769B; }
.badge.review { background: var(--warnbg); color: var(--warn-t); }
.badge.approved { background: var(--okbg); color: var(--ok-t); }
.badge.failed { background: var(--badbg); color: var(--bad-t); }
.badge.draft { background: var(--rail); color: var(--muted); }

/* minutes as a document */
.doc { max-width: 720px; }
.doc .sec { margin-bottom: 26px; }
.doc .sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.doc .sec-h h3 { font-size: 15px; color: var(--navy); }
.doc .sec-h .hint { margin-inline-start: auto; }
.doc textarea, .doc input.line { border: 1px solid transparent; background: transparent; padding: 4px 8px; margin-inline-start: -9px; width: calc(100% + 18px);
  resize: none; overflow: hidden; min-height: 0; line-height: 1.7; font-size: 14.5px; border-radius: 8px; }
.doc textarea:hover, .doc input.line:hover { background: var(--rail); }
.doc textarea:focus, .doc input.line:focus { background: #fff; border-color: var(--line2); box-shadow: 0 0 0 3px rgba(32,160,208,.12); }
.doc .topic { position: relative; padding-inline-start: 16px; margin-bottom: 16px; }
.doc .topic::before { content: ""; position: absolute; inset-inline-start: 0; top: 8px; bottom: 6px; width: 2px; background: var(--line2); border-radius: 2px; }
.doc .topic input.line { font-weight: 600; font-size: 15px; }
.doc .topic .dec { font-size: 13.5px; color: var(--ink2); }
.doc .topic .rm { position: absolute; inset-inline-end: -30px; top: 2px; opacity: 0; }
.doc .topic:hover .rm { opacity: 1; }
.doc.ro textarea, .doc.ro input { pointer-events: none; }
.hint { font-size: 12px; color: var(--faint); }
.listbox { list-style: none; margin: 0; padding: 0; }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 500; padding: 8px 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 4px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td input[type=text], table.t td input:not([type]), table.t td input[type=date] { border-color: transparent; padding: 6px 6px; background: transparent; }
table.t td input:hover { border-color: var(--line2); background: #fff; }
table.t tr.done td input.txt { text-decoration: line-through; color: var(--faint); }
table.t tr:hover td { background: #FAFBFE; }
td.overdue input[type=date] { color: var(--bad-t); font-weight: 600; }
.chk { width: 17px; height: 17px; accent-color: var(--ok); cursor: pointer; }

.transcript { max-height: 68vh; overflow: auto; }
.seg-line { display: grid; grid-template-columns: 58px 46px minmax(0, 1fr); gap: 10px; padding: 7px 4px; border-bottom: 1px solid #F1F4F9; line-height: 1.7; }
.seg-line .ts { color: var(--blue); font-variant-numeric: tabular-nums; font-size: 12px; cursor: pointer; padding-top: 3px; }
.seg-line .sp { font-weight: 600; font-size: 12px; color: var(--navy); padding-top: 3px; }
mark { background: #FFEDB0; border-radius: 3px; }
audio { width: 100%; margin-bottom: 12px; height: 36px; }

.runs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.run { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.run.active .eng::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-inline-end: 8px; vertical-align: middle; }
.run .eng { font-weight: 600; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.compare iframe, .preview iframe { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }

/* menus, modals, toasts */
.menu { position: absolute; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 5px; min-width: 210px; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; padding: 7px 10px; border-radius: 8px; cursor: pointer; text-align: start; font-size: 13.5px; }
.menu button:hover { background: var(--hover); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.menu .danger { color: var(--bad-t); }
/* account menu */
.acct-menu { min-width: 240px; }
.acct-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-head .avatar { flex: none; }
.acct-id { display: grid; gap: 1px; min-width: 0; }
.acct-id b { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-id .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu a.menu-item, .menu button.menu-item { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: start; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.menu a.menu-item:hover, .menu button.menu-item:hover { background: var(--hover); }
.menu .menu-item svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.menu .menu-item.danger { color: var(--bad-t); }
.icon-btn.has-av { padding: 0; }
.icon-btn.has-av .avatar { width: 30px; height: 30px; font-size: 12px; }
.modal-bg { position: fixed; inset: 0; background: rgba(14, 26, 60, .36); display: grid; place-items: center; z-index: 70; padding: 20px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; width: min(600px, 100%); max-height: 90vh; overflow: auto; padding: 24px 26px; box-shadow: var(--shadow-pop); }
.modal.wide { width: min(900px, 100%); }
.modal h2 { font-size: 19px; margin-bottom: 4px; }
.modal .lead { color: var(--muted); margin: 0 0 16px; font-size: 13.5px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; align-items: center; }
.pick-list { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.pick-list div { padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; gap: 10px; align-items: center; }
.pick-list div:hover { background: var(--hover); } .pick-list div.on { background: var(--sel); }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 90; justify-items: center; width: max-content; max-width: calc(100vw - 32px); }
#toasts.top { bottom: auto; top: 68px; }  /* D-207: an Undo toast that would cover a button there (e.g. «Next» on a phone) */
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow-pop); max-width: min(460px, calc(100vw - 32px)); animation: fade .15s; }
.toast.err { background: var(--bad); }
#note-toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 95; max-width: min(92vw, 380px); }
@media (max-width: 600px) { #note-toasts { right: 12px; left: 12px; bottom: 12px; max-width: none; } }
.toast.note-toast { display: flex; align-items: flex-start; gap: 11px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 12px; cursor: pointer; padding: 12px 15px; max-width: none; box-shadow: var(--shadow-pop); animation: slideup .18s ease-out; }
.toast.note-toast:hover { background: #FAFCFE; }
.toast.note-toast .nt-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--sel); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.toast.note-toast .nt-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.toast.note-toast .nt-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast.note-toast .nt-tx b { font-size: 13.5px; color: var(--navy); }
.toast.note-toast .nt-tx span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@keyframes slideup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ask */
.askbox { position: relative; }
.askbox textarea { min-height: 54px; padding: 14px 120px 14px 16px; font-size: 15px; border-radius: 14px; resize: none; }
.askbox .btn { position: absolute; right: 10px; bottom: 10px; }
[dir=rtl] .askbox .btn { right: auto; left: 10px; }
.qa { border-bottom: 1px solid var(--line); padding: 18px 0; }
.qa .q { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.qa .a { white-space: pre-wrap; line-height: 1.75; font-size: 14.5px; }
.qa .src { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.suggestions button { border: 1px solid var(--line); background: var(--rail); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; color: var(--ink2); }
.suggestions button:hover { border-color: var(--line2); background: #fff; }

/* settings / templates */
.settings { display: grid; gap: 0; }
.set { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.set > div:first-child h2 { font-size: 15px; } .set > div:first-child p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.avail { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; margin-inline-start: 6px; font-weight: 600; }
.avail.y { background: var(--okbg); color: var(--ok-t); } .avail.n { background: var(--warnbg); color: var(--warn-t); }
.calrow { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.logo-prev { height: 40px; max-width: 170px; object-fit: contain; background: var(--navy); padding: 6px 10px; border-radius: 8px; }
.split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; }
.tlist { display: grid; gap: 2px; }
.tlist button { text-align: start; border: 0; background: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 6px; }
.tlist button:hover { background: var(--hover); } .tlist button.on { background: var(--sel); color: var(--navy); font-weight: 600; }
.secrow { display: grid; grid-template-columns: 22px 22px minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.secrow .mv { display: grid; } .secrow .mv button { border: 0; background: none; cursor: pointer; color: var(--faint); padding: 0; line-height: 1; font-size: 10px; }


/* ============================================================ layout: quiet canvas, hidden menu */
body { background: var(--canvas); }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .15s; }
.topbar.scrolled { border-bottom-color: var(--line); }
/* right-hand controls: icons evenly spaced, Record set a little apart as the one labelled button */
.tb-right { display: flex; align-items: center; gap: 4px; }
.tb-right .rec-pill { margin-inline-start: 6px; }
.tb-right #account-btn { margin-inline-start: 4px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink2); }
.icon-btn:hover { background: var(--hover); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.tb-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--navy); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 6.5px; border-radius: 50%; border: 2.2px solid var(--cyan); }
.tb-search { position: relative; width: min(340px, 34vw); margin-inline-start: 18px; }
.tb-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--faint); fill: none; stroke-width: 2; }
.tb-search input { background: var(--rail); border-color: transparent; padding-inline-start: 34px; height: 36px; border-radius: 10px; }
.tb-search input:focus { background: #fff; }

/* the record button: the one loud thing on screen */
.rec-pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 6px 18px rgba(22,48,132,.25); transition: transform .12s, background .15s; }
.rec-pill:hover { transform: translateY(-1px); background: #1B3A9E; }
.rp-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: none; }
.rp-time, .rp-stop { display: none; }
.rec-pill.live { box-shadow: 0 10px 24px -10px rgba(22,48,132,.55); padding-inline-end: 6px; }
.rec-pill.live .rp-dot { width: 12px; height: 12px; background: var(--rec); box-shadow: 0 0 0 3px rgba(229,72,77,.35); animation: blink 1.2s infinite; }
.rec-pill.live .rp-time { display: inline; font-variant-numeric: tabular-nums; }
.rec-pill.live .rp-stop { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 11px; margin-inline-start: 4px; }
.rec-pill.live .rp-stop:hover { background: rgba(255,255,255,.38); }
@keyframes blink { 50% { opacity: .3; } }

/* drawer menu */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(14,26,60,.22); opacity: 0; transition: opacity .18s; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: 280px; background: var(--rail); border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform .2s ease; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.drawer.open { pointer-events: auto; } .drawer.open .drawer-bg { opacity: 1; } .drawer.open .drawer-panel { transform: none; }
.drawer .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 650; }
.rail-btn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink2); cursor: pointer; border: 0; background: none; width: 100%; text-align: start; font-size: 14px; }
.rail-btn:hover { background: var(--hover); }
.rail-btn.active { background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.rail-btn svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.rail-btn .n { margin-inline-start: auto; font-size: 11.5px; color: var(--muted); }
.rail-btn .n.hot { background: var(--navy); color: #fff; border-radius: 9px; padding: 0 7px; }
.rail-sec { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; padding: 16px 10px 4px; }
.rail-sec button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 4px; border-radius: 4px; }
.rail-sec button:hover { color: var(--navy); background: var(--hover); }
.dot { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.rail-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 2px; }
.engine { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 4px 10px; }
.engine i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.engine i.on { background: var(--ok); } .engine i.off { background: var(--warn); }

.page { max-width: 1000px; margin: 0 auto; padding: 22px 32px 120px; }
.page.narrow { max-width: 760px; }

/* ============================================================ home */
.home-tabs { display: flex; align-items: center; gap: 2px; margin: 14px 0 26px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.home-tabs a { padding: 10px 12px; color: var(--muted); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.home-tabs a:hover { color: var(--ink); }
.home-tabs a.on { color: var(--ink); border-bottom-color: var(--navy); }
.home-tabs .spacer { flex: 1; }
.home-tabs .pin { font-size: 12.5px; color: var(--faint); border: 0; background: none; cursor: pointer; padding: 6px 8px; border-radius: 7px; white-space: nowrap; }
.home-tabs .pin:hover { color: var(--navy); background: var(--hover); }
.home-tabs .pin.on { color: var(--navy); }

.nowcard { display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--r-lg); background: #F2F8FD; border: 1px solid #CDE4F4; margin-bottom: 30px; flex-wrap: wrap; }
.nowcard .when { color: #10769B; font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.nowcard .when::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: blink 1.6s infinite; }
.nowcard .ttl { font-size: 19px; font-weight: 650; letter-spacing: -.01em; margin-top: 3px; }
.btn.rec { background: #b8322f; border-color: #b8322f; color: #fff; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.btn.rec:hover { background: #a42b28; }
.btn.rec .recdot { background: #fff; }

.day { font-size: 13px; color: var(--muted); font-weight: 600; padding: 22px 0 6px; }
.day:first-child { padding-top: 0; }
.row-m { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; }
.row-m:hover { background: var(--hover); }
.row-m .tm { font-variant-numeric: tabular-nums; color: var(--ink2); font-size: 13.5px; font-weight: 500; }
.row-m .tm small { display: block; color: var(--faint); font-size: 12px; font-weight: 400; }
.row-m .ttl { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-m .sub { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow: hidden; }
.row-m .sub .sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.row-m .end { display: flex; align-items: center; gap: 10px; }
.row-m .go { opacity: 0; transition: opacity .12s; }
.row-m:hover .go { opacity: 1; }
.sdot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.sdot.review { background: var(--warn); } .sdot.approved { background: var(--ok); } .sdot.recorded { background: var(--cyan); }
.sdot.processing, .sdot.recording { background: var(--rec); } .sdot.failed { background: var(--bad); }
.grp { margin-bottom: 30px; }
.grp-h { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.grp-h h2 { font-size: 15px; } .grp-h .muted { font-size: 12.5px; }
.home-foot { margin-top: 28px; display: flex; gap: 8px; }
.empty-note { color: var(--muted); padding: 30px 0; font-size: 14px; }
.empty-note b { color: var(--ink); display: block; margin-bottom: 4px; font-size: 15px; }

/* ============================================================ meeting: a page you write on */
.mhead { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.m-pop { margin-inline-start: auto; height: 34px; padding: 0 12px 0 10px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; color: #2070B0; background: #E6F4FA; border: 1px solid #CDE8F6; cursor: pointer; flex: none; font: inherit; font-size: 13px; font-weight: 600; }
.m-pop:hover { background: var(--cyan-t); color: #fff; border-color: var(--cyan-t); }
.lv-x { flex: none; margin-inline-start: auto; }
.lv-head .lv-title { flex: 1; }
.lv-head .lv-x { margin-inline-start: 4px; }
@media (max-width: 760px) { .m-pop span { display: none; } .m-pop { padding: 0; width: 34px; justify-content: center; } }
/* docked side panels, same floating-card style as the Ask panel: notes left, assistant right */
.mr-dock { position: fixed; top: 74px; bottom: 12px; width: min(470px, calc(100vw - 24px)); z-index: 45; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(22,48,132,.4); overflow-y: auto; overflow-x: hidden; padding: 16px 18px 20px; box-sizing: border-box; }
.mr-dock.mr-left { left: 12px; width: min(400px, calc(100vw - 24px)); }
.mr-dock.mr-right { right: 12px; }
.mr-dock h2 { margin-top: 0; }
.mr-dock.notes-dock { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.mr-dock.notes-dock .sp-body { flex: 1; overflow-y: auto; }
body.dock-left #view { margin-inline-start: min(424px, 100vw); }
body.dock-right #view { margin-inline-end: min(494px, 100vw); }
body.dock-left #view .page, body.dock-right #view .page { margin-inline: auto; }
/* the Send-assistant form + live-assistant layout, adapted to the narrow docked column */
.mr-dock.as-dock .as-does, .mr-dock.as-dock .as-voices { grid-template-columns: 1fr; }
.mr-dock.lv-dock .lv-grid { grid-template-columns: 1fr; }
.mr-dock.lv-dock .lv-feed { height: 280px; min-height: 0; }
.mr-dock.lv-dock .lv-head { align-items: flex-start; flex-wrap: wrap; }
@media (max-width: 1240px) { .mr-dock { width: min(410px, calc(100vw - 24px)); } body.dock-left #view { margin-inline-start: 434px; } body.dock-right #view { margin-inline-end: 434px; } }
@media (max-width: 980px) {
  .mr-dock { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 86vh; border-radius: 18px 18px 0 0; }
  body.dock-left #view, body.dock-right #view { margin-inline: 0; filter: blur(2px); pointer-events: none; }
}
/* sticky-notes panel */
.nt-sub { margin: 0 0 14px; }
.mtabs .tab-sticky { display: inline-flex; align-items: center; gap: 6px; }
/* whiteboards list (Boards page) */
.wb-sec { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 18px 2px 10px; }
.wb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wb-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
.wb-tile:hover { border-color: #9DC3E6; box-shadow: 0 6px 18px -12px rgba(22,48,132,.4); }
.wb-tile-ico { width: 40px; height: 40px; border-radius: 10px; background: #EAF2FB; display: grid; place-items: center; flex: none; }
.wb-tile-ico svg { width: 20px; height: 20px; stroke: #2070B0; fill: none; stroke-width: 1.7; }
.wb-tile-b { display: grid; gap: 2px; min-width: 0; }
.wb-tile-b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-list { display: flex; flex-direction: column; gap: 14px; }
/* a sticky note: always yellow, black text, a folded corner so it clearly reads as a sticky */
.nt-card { position: relative; background: #fdf5b8; border-radius: 3px; box-shadow: 1px 2px 7px rgba(0,0,0,.2); display: flex; flex-direction: column; }
.nt-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; border-width: 0 0 16px 16px; border-style: solid; border-color: transparent transparent rgba(0,0,0,.14) transparent; border-bottom-right-radius: 3px; }
.nt-bar { display: flex; align-items: center; justify-content: flex-end; padding: 3px 5px 0; }
.nt-del { border: 0; background: none; font-size: 18px; line-height: 1; color: rgba(0,0,0,.45); cursor: pointer; padding: 0 2px; }
.nt-del:hover { color: #000; }
.nt-card textarea { border: 0; background: none; resize: vertical; min-height: 78px; padding: 0 12px 14px; font: inherit; font-size: 14px; line-height: 1.4; outline: none; color: #222; }
.nt-card textarea::placeholder { color: rgba(0,0,0,.4); }
/* sticky-notes Kanban (one column per meeting) */
.sk-kanban { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 20px; align-items: flex-start; }
.sk-col { flex: 0 0 300px; max-width: 300px; background: #F4F7FB; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.sk-col-h { display: flex; align-items: center; gap: 8px; }
.sk-col-h a { font-weight: 600; color: #163084; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-col-n { margin-inline-start: auto; font-size: 12px; font-weight: 600; color: #2070B0; background: #E6F4FA; border-radius: 20px; padding: 1px 9px; }
.sk-col-sub { margin: 2px 0 10px; }
.sk-cards { display: flex; flex-direction: column; gap: 12px; }
/* a sticky card: yellow, black text, folded corner */
.sk-card { position: relative; background: #fdf5b8; border-radius: 3px; padding: 11px 13px; font-size: 13.5px; line-height: 1.45; box-shadow: 1px 2px 6px rgba(0,0,0,.18); white-space: pre-wrap; word-break: break-word; color: #222; }
.sk-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; border-width: 0 0 14px 14px; border-style: solid; border-color: transparent transparent rgba(0,0,0,.14) transparent; }
.sk-card .muted { color: rgba(0,0,0,.4); }
/* editable "My board" */
.sk-col.mine .sk-col-h { gap: 6px; }
.sk-col-t { flex: 1; border: 1px solid transparent; background: none; font: inherit; font-weight: 600; color: #163084; padding: 3px 6px; border-radius: 7px; min-width: 0; }
.sk-col-t:hover { border-color: var(--line); } .sk-col-t:focus { outline: none; border-color: #20A0D0; background: #fff; }
.sk-col-del { border: 0; background: none; font-size: 18px; line-height: 1; color: #94a3b8; cursor: pointer; padding: 0 4px; }
.sk-col-del:hover { color: #e4572e; }
.sk-col.mine .sk-cards { margin: 8px 0; }
.sk-card.edit { display: flex; flex-direction: column; padding: 0; }
.sk-card.edit .sk-card-del { align-self: flex-end; border: 0; background: none; font-size: 16px; line-height: 1; color: rgba(0,0,0,.4); cursor: pointer; padding: 2px 5px 0; }
.sk-card.edit .sk-card-del:hover { color: #000; }
.sk-card.edit textarea { border: 0; background: none; resize: vertical; min-height: 54px; padding: 0 12px 12px; font: inherit; font-size: 13.5px; line-height: 1.45; outline: none; color: #222; }
.sk-add-card { width: 100%; border: 1px dashed #b9c6da; background: none; color: #2070B0; border-radius: 9px; padding: 7px; cursor: pointer; font-size: 13px; }
.sk-add-card:hover { background: #eef4fb; }
.sk-add-col { flex: 0 0 220px; align-self: flex-start; border: 1px dashed #b9c6da; background: #fbfdff; color: #2070B0; border-radius: 14px; padding: 14px; cursor: pointer; font-size: 14px; font-weight: 600; }
.sk-add-col:hover { background: #eef4fb; border-color: #2070B0; }
/* freeform per-meeting sticky board (whiteboard-style) */
.ff-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.ff-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 240px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 7px 6px 13px; cursor: pointer; font-size: 13px; transition: border-color .12s, box-shadow .12s; }
.ff-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-chip b { font-size: 11.5px; font-weight: 700; color: #2070B0; background: #E6F4FA; border-radius: 999px; padding: 1px 8px; flex: none; }
.ff-chip:hover { border-color: #9DC3E6; }
.ff-chip.on { border-color: #2070B0; box-shadow: 0 0 0 1px #2070B0 inset; }
.ff-chip.on b { background: #2070B0; color: #fff; }
.ff-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ff-open { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #163084; text-decoration: none; max-width: 60%; }
.ff-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-open svg { width: 15px; height: 15px; stroke: #2070B0; fill: none; stroke-width: 1.8; flex: none; }
.ff-open:hover { color: var(--cyan-t); }
.ff-board { position: relative; width: 100%; height: 62vh; min-height: 360px; border: 1px solid var(--line); border-radius: 16px; background: #fff radial-gradient(#e8eef6 1.3px, transparent 1.3px) 0 0 / 22px 22px; overflow: hidden; }
.ff-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.ff-note { position: absolute; width: 172px; min-height: 86px; background: #fdf5b8; border-radius: 3px; box-shadow: 1px 3px 9px rgba(0,0,0,.22); padding: 16px 10px 10px; display: flex; flex-direction: column; }
.ff-note.drag { box-shadow: 0 12px 26px -6px rgba(0,0,0,.4); z-index: 20; }
.ff-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 0; border-width: 0 0 15px 15px; border-style: solid; border-color: transparent transparent rgba(0,0,0,.14) transparent; }
.ff-grip { position: absolute; top: 0; left: 0; right: 0; height: 15px; cursor: grab; border-radius: 3px 3px 0 0; }
.ff-grip:active { cursor: grabbing; }
.ff-grip::before { content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 26px; height: 3px; border-radius: 3px; background: rgba(0,0,0,.18); }
.ff-del { position: absolute; top: 1px; right: 3px; border: 0; background: none; font-size: 15px; line-height: 1; color: rgba(0,0,0,.4); cursor: pointer; padding: 2px 4px; z-index: 2; }
.ff-del:hover { color: #000; }
.ff-note textarea { flex: 1; border: 0; background: none; resize: none; font: inherit; font-size: 13px; line-height: 1.4; outline: none; color: #222; }
@media (max-width: 760px) { .ff-board { height: 70vh; } .ff-note { width: 150px; } }
/* smaller freeform board — General board + the in-meeting notes panel */
.ff-board.small { height: 52vh; min-height: 300px; }
.ff-board.small .ff-note { width: 146px; min-height: 68px; padding: 15px 9px 9px; }
.ff-board.small .ff-note textarea { font-size: 12px; }
.notes-dock .sp-body.nt-body { display: flex; flex-direction: column; min-height: 0; }
.notes-dock .ff-board.small { flex: 1; height: auto; min-height: 260px; margin-top: 4px; }
.nt-sub { margin: 0 0 8px; }
/* floating Ask button — portal-style, always visible bottom-right */
.fab { position: fixed; z-index: 70; bottom: 20px; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px 0 13px; border: 0; border-radius: 10px; background: var(--grad); color: #fff; font: inherit; font-family: var(--display); font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(22,48,132,.55), 0 1px 4px rgba(0,0,0,.12); transition: transform .12s, box-shadow .12s, filter .12s, opacity .15s; }
.fab svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fab:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 26px -8px rgba(22,48,132,.62); }
.fab-ask { right: 20px; }
.fab-sticky { left: 20px; }
.fab-ask::after { content: ""; position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 2px var(--navy); }
body.panel-open .fab-ask, body.dock-right .fab-ask { opacity: 0; pointer-events: none; }
body.dock-left .fab-sticky { opacity: 0; pointer-events: none; }
body.fab-away .fab { opacity: 0; pointer-events: none; transform: translateY(12px); }  /* D-135: aside while scrolling down */
body.fab-clash .fab-ask { opacity: 0; pointer-events: none; }  /* D-135: aside while it would sit on a control of the page */
html { scroll-padding-bottom: 72px; }  /* D-135: a control reached with the keyboard is scrolled clear of the Ask button */
body.in-setup .fab { display: none; }  /* D-120: the welcome steps have their own buttons; Ask sat on «Start» at 360 */
@media (max-width: 760px) { .fab { bottom: 16px; height: 40px; padding: 0; width: 40px; justify-content: center; } .fab span { display: none; } .fab-ask { right: 16px; } .fab-sticky { left: 16px; } }
/* D-055: on a meeting page the bottom bar spans the phone, so Ask / Sticky sit above it instead of over its buttons */
@media (max-width: 760px) { body:has(#dock:not(:empty)) .fab { bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); } }
/* D-114: on tablets and small laptops too the meeting bar would reach the Ask button: Ask sits above the bar */
@media (min-width: 761px) and (max-width: 1279px) { body:has(#dock:not(:empty)) .fab { bottom: 86px; } }
/* floating "add to sticky note" button on a text selection */
.sticky-sel { position: absolute; z-index: 80; display: inline-flex; align-items: center; gap: 5px; background: #163084; color: #fff; border: 0; border-radius: 8px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(22,48,132,.6); white-space: nowrap; }
.sticky-sel:hover { background: var(--cyan-t); }
/* companion: the whole meeting in a slim view beside the live call (legacy ?companion=1) */
body.companion .topbar, body.companion .drawer, body.companion #panel { display: none !important; }
body.companion #view { padding: 0; }
body.companion .page { max-width: 100% !important; padding: 12px 14px !important; }
body.companion .mhead .back, body.companion .m-pop { display: none; }
body.companion .mhead { margin-top: 2px; }
body.companion .eyebrow { margin-inline-start: 0 !important; }
.back { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); flex: none; }
.back:hover { background: var(--hover); color: var(--ink); }
.back svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.mt { flex: 1; min-width: 0; font-size: 24px; font-weight: 650; letter-spacing: -.02em; border: 0 !important; padding: 4px 6px !important; margin-inline-start: -6px;
  background: transparent !important; box-shadow: none !important; border-radius: 8px !important; }
.mt:hover { background: var(--rail) !important; }
textarea.mt { resize: none; overflow: hidden; line-height: 1.25; min-height: 0; font-family: var(--display); color: inherit; }
body.locked .fab { display: none; }  /* no Sticky / Ask before signing in */
.metaline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0 36px; }
[dir=rtl] .metaline { margin: 6px 36px 0 0; }
.mchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: none;
  color: var(--ink2); font-size: 13px; cursor: pointer; white-space: nowrap; max-width: 300px; overflow: hidden; }
.mchip:hover { background: var(--hover); border-color: var(--line); }
.mchip svg { width: 14px; height: 14px; stroke: var(--faint); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mchip.empty { color: var(--faint); }
.mchip.client { color: var(--navy); font-weight: 600; }
.mchip .avatars .avatar { width: 20px; height: 20px; font-size: 9px; }
.pop { position: absolute; z-index: 65; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 12px; width: 340px; }
.pop .lbl { display: block; margin-bottom: 6px; }

.mtabs { display: flex; gap: 4px; margin: 22px 0 18px 36px; }
[dir=rtl] .mtabs { margin: 22px 36px 18px 0; }
.mtabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; cursor: pointer; font-size: 13.5px; }
.mtabs button:hover { color: var(--ink); background: var(--hover); }
.mtabs button.on { background: var(--rail); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.mtabs .n { color: var(--faint); margin-inline-start: 4px; font-size: 12px; }
.paper { margin-inline-start: 36px; max-width: 720px; }
.status-line { display: flex; align-items: center; gap: 10px; margin: 0 0 18px 36px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; }
[dir=rtl] .status-line { margin: 0 36px 18px 0; }
.status-line.info { background: #EAF6FB; color: #0F5F7E; } .status-line.err { background: var(--badbg); color: #8A2A22; } .status-line.ok { background: var(--okbg); color: #17603F; }
.status-line.rec { background: #FDF0F0; color: #A3272C; }

.ghost-area { width: 100%; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 2px 0 !important; resize: none; overflow: hidden;
  font-size: 15px; line-height: 1.75; min-height: 0; border-radius: 0 !important; }
.ghost-area::placeholder { color: var(--faint); }
.notes-area { min-height: 20vh; }
.blk { margin-bottom: 26px; }
.blk-h { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.blk-h .spacer + * { margin-inline-start: auto; }
.lasttime { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 26px; background: var(--rail); font-size: 13.5px; }
.lasttime summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; color: var(--ink2); }
.lasttime summary::-webkit-details-marker { display: none; }
.lasttime summary b { font-weight: 600; }
.lasttime summary .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.lasttime ul { margin: 10px 0 0; padding-inline-start: 18px; } .lasttime li { margin-bottom: 4px; }

.acts { display: grid; gap: 0; }
.act { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto 26px; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid #F0F3F8; }
.act input.txt { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 5px 0 !important; font-size: 14.5px; }
.act.done input.txt { text-decoration: line-through; color: var(--faint); }
.act .who, .act .due { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 4px 6px !important; font-size: 12.5px; color: var(--muted); width: 120px !important; }
.act .due { width: 132px !important; }
.act .who:hover, .act .due:hover, .act .who:focus, .act .due:focus { background: var(--rail) !important; color: var(--ink); }
.act .due.late { color: var(--bad-t); font-weight: 600; }
.act .x { opacity: 0; border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 13px; }
.act:hover .x { opacity: 1; } .act .x:hover { color: var(--bad-t); }
.act-add { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 0; color: var(--faint); }
.act-add input { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 5px 0 !important; font-size: 14.5px; }

/* floating dock: every next step one click away */
.dock { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 4px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 14px 40px rgba(14,26,60,.16), 0 2px 6px rgba(14,26,60,.06); }
.dock .btn { border-radius: 999px; border-color: transparent; background: transparent; height: 38px; padding: 0 14px; font-weight: 600; }
.dock .btn:hover { background: var(--hover); }
.dock .btn.primary { background: var(--navy); color: #fff; } .dock .btn.primary:hover { background: #1B3A9E; }
.dock .btn.rec { background: var(--rec-t); color: #fff; }
.dock .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.dock .live { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; color: var(--rec-t); font-weight: 600; font-variant-numeric: tabular-nums; }
.dock .wave { display: flex; align-items: center; gap: 2px; height: 20px; }
.dock .wave i { width: 3px; border-radius: 2px; background: var(--rec); height: 4px; transition: height .08s; }
.dock .busy { display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #0F5F7E; font-weight: 500; height: 38px; }

/* keep the header minimal — Ask / Sticky notes / Whiteboards / Reminders live in the ☰ menu, so the bar never overflows */
#ask-btn, #sticky-btn, #board-btn { display: none; }
@media (max-width: 760px) {
  .topbar { padding: 0 10px; gap: 6px; } .tb-search { display: none; } .tb-brand span:last-child { display: none; }
  .mtabs { flex-wrap: wrap; row-gap: 6px; }  /* every tab visible on a phone: wrap to a second line, never cut off */
  .mt { font-size: 20px; }
  .mhead { flex-wrap: wrap; row-gap: 4px; }
  .mhead .mt { flex: 1 1 calc(100% - 42px); }
  .mhead > :not(.back):not(.mt) { margin-inline-start: 36px; }
  .mhead > :not(.back):not(.mt) ~ :not(.back):not(.mt) { margin-inline-start: auto; }
  .mtabs button { flex: none; }
  .page { padding: 16px 16px 120px; }
  .metaline, .mtabs, .paper, .status-line { margin-inline-start: 0 !important; margin-inline-end: 0 !important; }
  .row-m { grid-template-columns: 52px minmax(0, 1fr); } .row-m .end { display: none; }
  .grid2, .grid3, .compare, .split, .set { grid-template-columns: minmax(0, 1fr); }  /* minmax: a long email can't widen the page (D-059) */
  .act { grid-template-columns: 22px minmax(0, 1fr) 26px; } .act .who, .act .due { display: none; }
  .dock { max-width: calc(100vw - 24px); overflow-x: auto; }
  /* wide data tables (owner usage, credits) scroll sideways instead of overflowing the page */
  .adm-tbl, .cr-tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .adm-grid { grid-template-columns: 1fr; }
}
.slog { font-size: 13px; color: var(--ink2); display: grid; gap: 4px; }
.slog div::before { content: "✓"; color: var(--cyan-t); margin-inline-end: 6px; font-weight: 700; }
.doc { max-width: 720px; }

.mchip.iconly { padding: 0 8px; }

/* ============================================================ plan button, right panel, chat */
.plan-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2);
  background: #fff; color: var(--navy); font-weight: 600; cursor: pointer; }
.plan-btn:hover { background: var(--hover); }
.plan-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.sidepanel { position: fixed; top: 60px; right: 0; bottom: 0; width: min(480px, 100vw); background: #fff; border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(14,26,60,.08); z-index: 50; transform: translateX(100%); transition: transform .2s ease; display: flex; flex-direction: column; }
.sidepanel.open { transform: none; }
body.panel-open main { margin-right: min(480px, 100vw); transition: margin .2s; }
body.panel-open .dock { left: calc(50% - 240px); }
.sp-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.sp-head h2 { font-size: 17px; flex: 1; }
.sp-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.sp-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; background: #fff; }
.ai-box { border: 1px solid #CDE4F4; background: #F4F9FD; border-radius: 12px; padding: 12px; }
.ai-box textarea { background: #fff; min-height: 64px; }
.ai-box .row { margin-top: 8px; }
.ai-tag { font-size: 11.5px; font-weight: 600; color: #10769B; display: inline-flex; align-items: center; gap: 5px; }
.ai-tag::before { content: "✦"; }
.filled { animation: filled 1.2s ease; }
@keyframes filled { from { background: #E3F4FA; } }
.invite { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 4px; }
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; line-height: 1.6; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--rail); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.ai .done { margin-top: 6px; font-size: 12.5px; color: var(--ok-t); display: grid; gap: 2px; }
.msg.ai .done div::before { content: "✓ "; font-weight: 700; }
.msg.ai .src { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.msg.wait { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.chat-hints { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 20px 8px; }
.chat-hints button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; cursor: pointer; color: var(--ink2); }
.chat-hints button:hover { border-color: var(--line2); background: var(--hover); }
.chat-in { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-in textarea { min-height: 42px; max-height: 160px; resize: none; border-radius: 12px; }
.chat-empty { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
@media (max-width: 760px) { body.panel-open main { margin-right: 0; } .plan-btn span, .plan-btn { padding: 0 10px; } }
.sp-body .stack, .sp-body .grid2, .sp-body .grid3 { grid-template-columns: minmax(0, 1fr); }
.sp-body .grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sp-body .grid2 > *, .sp-body .grid3 > *, .sp-body .stack > * { min-width: 0; }
.sp-body .grid2, .sp-body .grid3 { gap: 12px; }
.sp-body .chipin input { min-width: 60px; }

/* ============================================================ Stingray / Sailor look and feel */
body { background: var(--canvas); }
.topbar { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); height: 62px; }
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(22,48,132,.35); }
.tb-brand img { height: 22px; display: block; }
.tb-brand .brand-mark, .tb-brand > span:last-child { display: none; }
.tb-search input { background: var(--canvas); border: 1px solid var(--line); }
.sidepanel { top: 62px; }
.btn { border-radius: 10px; font-weight: 600; }
.btn.primary, .dock .btn.primary { background: var(--grad); border-color: transparent; color: #fff; }
.btn.primary:hover, .dock .btn.primary:hover { filter: brightness(1.06); background: var(--grad); }
/* Plan a meeting + Record — white (ghost) like the old Plan button; Record shows a red dot */
/* Plan a meeting — now just a calendar icon, like the assistant and reminder icons; Record is the only labelled button */
.plan-btn { width: 36px; height: 36px; padding: 0; gap: 0; border: 0; background: transparent; color: var(--ink2); border-radius: 10px; box-shadow: none; font-weight: 600; display: grid; place-items: center; }
.plan-btn:hover { background: var(--hover); border: 0; filter: none; }
.plan-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.plan-btn .pb-label { display: none; }
/* Record — the only solid navy button; dot turns red while recording */
.rec-pill { background: var(--navy); border: 0; color: #fff; font-family: var(--display); font-size: 13.5px; box-shadow: 0 10px 24px -10px rgba(22,48,132,.55); }
.rec-pill:hover { background: #1B3A9E; border-color: transparent; filter: none; transform: translateY(-1px); }
.rec-pill.live { background: var(--navy); }
.rp-dot { width: 11px; height: 11px; background: var(--rec); box-shadow: 0 0 0 3px rgba(229,72,77,.3); }
.rec-pill.live .rp-dot { width: 12px; height: 12px; background: var(--rec); box-shadow: 0 0 0 3px rgba(229,72,77,.45); animation: blink 1.2s infinite; }
.rec-pill.live .rp-stop { background: rgba(255,255,255,.22); color: #fff; }
.rec-pill.live .rp-stop:hover { background: rgba(255,255,255,.38); }
/* Ask + Sticky floating buttons — white, like Plan a meeting */
.fab { background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(22,48,132,.25), 0 1px 4px rgba(0,0,0,.08); }
.fab svg { stroke: var(--navy); }
.fab:hover { background: #fff; border-color: var(--cyan); filter: none; }
.fab-ask::after { background: var(--cyan); box-shadow: 0 0 0 2px #fff; }
.fab-sticky, .fab-sticky:hover { background: #FFD43B; border-color: #E8B900; color: #163084; }
.fab-sticky svg { stroke: #163084; }
input[type=text], input[type=search], input[type=email], input[type=date], input[type=time], input[type=datetime-local], input[type=number],
input[type=password], input:not([type]), select, textarea, .chipin { border-color: var(--line); border-radius: 10px; }
input:focus, select:focus, textarea:focus, .chipin:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(32,160,208,.14); }
.field > label, .lbl { font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.chip { border-color: var(--line); background: #fff; }
.chip.client { background: var(--sel); color: var(--navy); }
.drawer-panel { background: #fff; }
.drawer .brand img { height: 22px; }
.rail-sec, .sec-label { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.rail-btn.active { background: var(--rail); box-shadow: none; color: var(--ink); }
.modal, .pop, .menu { border-color: var(--line); }
.modal { border-radius: 18px; }
.toast { background: var(--ink); border-radius: 12px; }
.mono { font-family: var(--mono); }

/* home tabs as Sailor chips */
.home-tabs { border-bottom: 0; gap: 6px; margin: 22px 0 22px; }
.home-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: #fff; color: var(--ink2); font-size: 13px; font-weight: 600; margin: 0; }
.home-tabs a:hover { border-color: var(--cyan); color: var(--ink); }
.home-tabs a.on { background: var(--grad); color: #fff; border-color: transparent; }
.home-tabs .pin { font-family: var(--mono); font-size: 11.5px; }
.hello { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 26px 0 4px; }
.hello .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hello-sub { color: var(--muted); margin: 0; }

/* the meeting grid: one card per meeting */
.day { font-family: var(--body, var(--font)); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 22px 2px 8px; }
.cards { display: grid; gap: 10px; }
.mcard { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .18s, transform .18s, box-shadow .18s; position: relative; }
.mcard:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(22,48,132,.45); }
.mcard .date { text-align: center; border-radius: 10px; background: var(--canvas); padding: 7px 0 6px; }
.mcard .date b { display: block; font-family: var(--display); font-size: 19px; line-height: 1.05; color: var(--ink); }
.mcard .date small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.mcard.now .date { background: var(--grad); } .mcard.now .date b, .mcard.now .date small { color: #fff; }
.mcard .ttl { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .sum { color: var(--muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.mcard .tags .chip { font-size: 11.5px; line-height: 19px; padding: 0 9px; }
.mcard .chip.series::before, .mcard .chip.src::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--cyan); }
.mcard .right { display: grid; justify-items: end; gap: 7px; }
.mcard .meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.mcard .go { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .15s; }
.mcard:hover .go { opacity: 1; } .mcard:hover .right { visibility: hidden; }
/* D-113: the title is the card's link / button (keyboard + screen readers); it looks like the old title */
.mcard a.ttl, .mcard button.ttl { display: block; max-width: 100%; color: inherit; text-decoration: none; border: 0; background: none; padding: 0; margin: 0; text-align: start; cursor: pointer; font-family: var(--display); }
.mcard .ttl:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.mcard:focus-within { border-color: var(--cyan); }
.mcard:focus-within .go { opacity: 1; } .mcard:focus-within:has(.go) .right { visibility: hidden; }
.mcard button.ttl { line-height: inherit; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.draft { background: rgba(93,107,143,.12); color: var(--muted); }
.pill.recorded { background: rgba(32,160,208,.13); color: #10769B; }
.pill.recording, .pill.processing { background: rgba(229,72,77,.12); color: var(--rec-t); }
.pill.review { background: rgba(201,130,8,.13); color: var(--warn-t); }
.pill.approved { background: rgba(17,154,98,.12); color: var(--ok-t); }
.pill.failed { background: rgba(217,50,71,.12); color: var(--bad-t); }
.pill.event { background: var(--sel); color: var(--navy); }
.grp { background: transparent; margin-bottom: 26px; }
.grp-h { padding: 4px 2px 10px; }
.grp-h h2 { font-size: 15px; }
.grp-h .count { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.nowcard { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px -34px rgba(22,48,132,.45); position: relative; overflow: hidden; }
.nowcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.nowcard .ttl { font-family: var(--display); }

/* progress while the minutes are written */
.prog { margin: 0 0 18px 36px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; border-radius: 14px; }
[dir=rtl] .prog { margin: 0 36px 18px 0; }
.prog-top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.prog-top b { font-family: var(--display); font-weight: 600; }
.prog-top .left { margin-inline-start: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.bar { height: 8px; background: var(--rail); border-radius: 999px; overflow: hidden; margin: 10px 0 8px; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 999px; transition: width .9s linear; position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.6s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.steps-row { display: flex; gap: 16px; font-size: 12px; color: var(--faint); flex-wrap: wrap; }
.steps-row span::before { content: "○ "; }
.steps-row span.on { color: var(--navy); font-weight: 600; } .steps-row span.on::before { content: "● "; color: var(--cyan-t); }
.steps-row span.done { color: var(--ok-t); } .steps-row span.done::before { content: "✓ "; }
.dock .busy .mini { width: 120px; height: 6px; background: var(--rail); border-radius: 999px; overflow: hidden; }
.dock .busy .mini i { display: block; height: 100%; background: var(--grad); transition: width .9s linear; }

/* meeting page */
.mt { font-family: var(--display) !important; font-weight: 600; }
.mtabs button.on { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; }
.blk-h { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.doc .sec-h h3 { font-family: var(--display); color: var(--navy); }
.dock { border-color: var(--line); box-shadow: 0 24px 60px -24px rgba(22,48,132,.35); }
.lasttime { background: var(--canvas); }
.msg.me { background: var(--rail); color: var(--ink); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; }
.msg.ai { background: #fff; border-radius: 16px 16px 16px 4px; }
#chat-go { background: var(--grad); border: 0; color: #fff; }
.ai-box { background: linear-gradient(180deg, #f2f8fd, #fff); border-color: #cfe5f3; }
.ai-tag { color: var(--blue); }
.set { border-bottom-color: var(--line); }
.mcard { margin-bottom: 10px; }
.sp-body .grid2, .sp-body .grid3 { column-gap: 14px !important; row-gap: 12px !important; }
.sp-body .field { min-width: 0; }
.sp-body .chipin { min-width: 0; overflow: hidden; }
.sp-body .grid3 > .field:first-child { grid-column: 1 / -1; }
.sp-body input { min-width: 0; }

/* ============================================================ sailor.ai details: white pages, gradient edges, mono labels */
body, .page { background: #fff; }
html { background: #fff; }
.topbar { background: rgba(255,255,255,.95); }
.eyebrow { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--cyan-t); font-weight: 700; margin: 26px 0 0; }
.hello { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; margin: 8px 0 6px; color: var(--ink); }
.hello-sub { color: var(--ink2); font-size: 15.5px; margin: 0 0 22px; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.kpi { display: block; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; position: relative; overflow: hidden; color: inherit;
  transition: border-color .2s, transform .2s; }
.kpi:hover { border-color: var(--cyan); transform: translateY(-2px); }
.kpi::before, .mcard::before, .nowcard::before, .paper::before, .prog::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.kpi span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 7px; }
.kpi b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1; }
.kpi b em { font-style: normal; font-size: 13px; color: var(--cyan-t); font-weight: 600; }
.kpi small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 7px; line-height: 1.45; }

.home-tabs { margin: 26px 0 8px; }
.home-tabs a { border-radius: 10px; }
.day { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--faint); font-weight: 600; padding: 22px 2px 8px; }
.mcard { border-radius: 13px; overflow: hidden; }
.mcard:hover { transform: translateY(-2px); box-shadow: none; }
.mcard .date { background: transparent; border-inline-end: 1px solid var(--line); border-radius: 0; padding: 2px 10px 2px 2px; }
.mcard .date b { font-size: 24px; font-weight: 700; }
.mcard .date small { font-size: 9.5px; letter-spacing: .12em; color: var(--faint); font-weight: 600; }
.mcard.now .date { background: transparent; } .mcard.now .date b { color: var(--cyan-t); } .mcard.now .date small { color: var(--cyan-t); }
.mcard .ttl { font-weight: 700; }
.mcard .meta { font-size: 10.5px; letter-spacing: .06em; }
.mcard .tags .chip { border-radius: 7px; }
.pill { border-radius: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 3px 8px; }
.pill::before { display: none; }
.grp-h h2 { font-weight: 700; }
.grp-h .count { font-size: 10px; letter-spacing: .1em; }
.nowcard { border-radius: 13px; box-shadow: none; padding-inline-start: 22px; }
.nowcard .when { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-t); }
.nowcard .when::before { display: none; }
.nowcard .ttl { font-weight: 700; }

/* buttons like the deck: outlined white, gradient primary */
.btn { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; }
.btn:hover { border-color: var(--cyan); background: #fff; }
.btn.ghost { border-color: transparent; }
.btn.primary, #p-ai, #chat-go { background: var(--grad); color: #fff; border-color: transparent; }
.plan-btn { border-radius: 10px; }
.rec-pill { border-radius: 10px; }

/* meeting page */
.mhead { margin-top: 6px; }
.mt { font-weight: 700 !important; }
.mchip { border-radius: 8px; }
.mtabs button { border-radius: 10px; }
.mtabs button.on { background: var(--grad); color: #fff; box-shadow: none; }
.paper { position: relative; border-radius: 13px; overflow: hidden; padding: 24px 28px 24px 30px; }
.blk-h, .doc .sec-h h3 { font-family: var(--body, var(--font)); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--cyan-t); font-weight: 700; }
.doc .sec-h h3 { font-family: var(--font); }
.prog { position: relative; overflow: hidden; border-radius: 13px; padding-inline-start: 20px; }
.prog-top b { font-weight: 700; }
#pg-pct, #pg-left, #dk-left, #dk-pct { font-family: var(--mono); letter-spacing: .04em; }
.status-line { border-radius: 12px; }
.lasttime { border-radius: 13px; background: #fff; position: relative; }

/* side panel: rounded and floating, the list stays visible */
.sidepanel { top: 74px; right: 12px; bottom: 12px; width: min(470px, calc(100vw - 24px)); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -24px rgba(22,48,132,.35); overflow: hidden; transform: translateX(calc(100% + 24px)); }
.sidepanel.open { transform: none; }
body.panel-open main { margin-right: min(494px, 100vw); }
.sp-head { padding: 18px 20px 14px; }
.sp-head h2 { font-weight: 700; }
.sp-foot { border-top: 1px solid var(--line); }
.chat-in textarea { border-radius: 12px; }
.msg { border-radius: 14px; }
.drawer-panel { border-radius: 0 18px 18px 0; top: 12px; bottom: 12px; left: 12px; border: 1px solid var(--line); transform: translateX(calc(-100% - 24px)); }
.modal { border-radius: 18px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sidepanel { right: 0; left: 0; bottom: 0; width: auto; border-radius: 18px 18px 0 0; } body.panel-open main { margin-right: 0; } }
/* D-181: wherever the page would be narrower than 480 px beside the panel (tablets, small laptops up to ~1290 px with
   the side menu: worked out from the room that is left, panelFit() in app.js), the panel floats over the page instead
   of squeezing it */
body.panel-open.panel-float main { margin-right: 0; }
.sidepanel { visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
.sidepanel.open { visibility: visible; transition: transform .2s ease; }
.drawer-panel { box-shadow: none; } .drawer.open .drawer-panel { box-shadow: 0 24px 60px -24px rgba(22,48,132,.35); }
.doc[dir=rtl] .sec-h h3, [dir=rtl] .blk-h { letter-spacing: 0; text-transform: none; font-size: 14px; font-family: "IBM Plex Sans Arabic", var(--font); }

/* home: summary cards in a column on the left, meetings visible straight away */
.page.home { max-width: 1240px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.home-side { position: sticky; top: 84px; padding-top: 4px; }
.home-side .eyebrow { margin-top: 22px; }
.home-side .hello { font-size: 24px; margin: 6px 0 4px; }
.home-side .hello-sub { font-size: 14px; margin-bottom: 18px; }
.home-side .kpis { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.home-side .kpi { padding: 12px 14px; }
.home-side .kpi b { font-size: 24px; }
.home-main .home-tabs { margin-top: 22px; }
body.panel-open .page.home { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
@media (max-width: 1100px) {
  body.panel-open .page.home { grid-template-columns: minmax(0, 1fr); }
  body.panel-open .home-side { position: static; }
  body.panel-open .home-side .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .page.home { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .home-side { position: static; }
  .home-side .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.home-tabs { flex-wrap: wrap; overflow: visible; }

/* home grid: greeting across the top, tabs over the meetings, summary cards level with the first meeting */
.page.home { grid-template-columns: 250px minmax(0, 1fr); grid-template-areas: "hello hello" ". tabs" "side main"; column-gap: 40px; row-gap: 0; }
.home-hello { grid-area: hello; padding: 22px 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 16px; }
.home-hello .eyebrow { flex-basis: 100%; margin: 0 0 6px; }
.home-hello .hello { font-size: 28px; margin: 0; }
.home-hello .hello-sub { margin: 0; font-size: 15px; color: var(--muted); }
.page.home > .home-tabs { grid-area: tabs; margin: 4px 0 14px; }
.home-side { grid-area: side; position: sticky; top: 84px; padding-top: 0; }
.home-main { grid-area: main; }
.home-main > div > .day:first-child, .home-main #hv > .day:first-child { padding-top: 0; }
.home-side .kpis { transition: margin-top .15s; }
body.panel-open .page.home { grid-template-columns: 220px minmax(0, 1fr); column-gap: 28px; }
@media (max-width: 1100px) {
  body.panel-open .page.home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hello" "side" "tabs" "main"; }
  body.panel-open .home-side .kpis { margin-top: 0; }
}
@media (max-width: 860px) {
  .page.home { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hello" "side" "tabs" "main"; }
  .home-side .kpis { margin-top: 0; }
}

/* calmer home: tabs and meetings only, tighter cards */
.home-tabs { margin: 26px 0 10px; }
.day { padding: 16px 2px 6px; }
.mcard { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; padding: 10px 14px; margin-bottom: 8px; }
.mcard .date { padding: 0 8px 0 0; }
.mcard .date b { font-size: 19px; }
.mcard .date small { font-size: 9px; margin-top: 1px; }
.mcard .ttl { font-size: 14.5px; }
.mcard .sum { font-size: 12.5px; margin-top: 1px; }
.mcard .tags { margin-top: 5px; }
.mcard .tags:empty { display: none; }
.mcard .right { grid-template-columns: auto auto; align-items: center; column-gap: 10px; row-gap: 4px; }
.mcard .right .meta { grid-column: 1 / -1; }
.mcard .avatar { width: 22px; height: 22px; font-size: 9.5px; }

/* compact greeting */
.greet { display: flex; align-items: baseline; gap: 12px; margin: 24px 0 0; flex-wrap: wrap; }
.greet b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.greet span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.greet + .home-tabs { margin-top: 14px; }

/* dashboard */
.dash-head { margin: 26px 0 18px; } .dash-head h1 { font-size: 24px; font-weight: 700; margin-top: 6px; }
.dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px 14px; position: relative; overflow: hidden; }
.chart::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.chart h3 { font-family: var(--display); font-size: 15px; font-weight: 700; margin: 0; }
.chart p { margin: 2px 0 12px; font-size: 12.5px; color: var(--muted); }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .ax { font-family: var(--mono); font-size: 10px; fill: var(--faint); }
.chart-svg .mk, .hb-svg .mk { fill: var(--blue); }
.chart-svg g:hover .mk, .hb-row:hover .mk { fill: var(--navy); }
.hb { display: grid; gap: 8px; }
.hb-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 13px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); }
.hb-svg { width: 100%; height: 14px; }
.hb-v { font-family: var(--mono); font-size: 12px; color: var(--ink2); text-align: end; }
.sb { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; margin: 18px 0 12px; }
.sb span { min-width: 6px; }
.sb-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }
.sb-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.sb-legend b { font-family: var(--mono); font-weight: 500; margin-inline-start: 4px; }
.ctip { position: fixed; z-index: 95; pointer-events: none; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 8px; display: none; line-height: 1.45; }
@media (max-width: 900px) { .charts, .dash-kpis { grid-template-columns: minmax(0, 1fr); } }
.prog-top .btn.sm { margin-inline-start: 10px; padding: 3px 10px; }

/* first-run setup */
.su-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.su-opt { text-align: start; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 16px 18px; cursor: pointer; display: grid; gap: 6px; font: inherit; color: var(--ink); position: relative; overflow: hidden; }
.su-opt b { font-family: var(--display); font-size: 15px; }
.su-opt span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.su-opt.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,112,176,.12); }
.su-opt.on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.su-list { margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.su-row { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.su-row:last-child { border-bottom: 0; }
.su-row .bar { margin: 8px 0 0; }
@media (max-width: 640px) { .su-choice { grid-template-columns: 1fr; } }

/* sign in */
body.locked .topbar > *:not(.tb-brand) { visibility: hidden; }
.login { max-width: 380px; margin: 9vh auto 0; padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.login img { display: none; }
.login .field { margin-bottom: 14px; }
.login h1 { font-size: 22px; margin: 0 0 4px; }
.login p { margin: 0 0 18px; font-size: 13px; }

.sso { display: grid; gap: 10px; margin-top: 14px; }
.sso-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; }
.sso .sso-btn { width: 100%; padding: 10px 14px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 18px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
details.keys summary { cursor: pointer; color: var(--muted); font-size: 13px; }

/* calendar + timeline views */
.page.wide { max-width: 1180px; }
.cal-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
.cal-bar h2 { font-size: 17px; margin: 0 0 0 6px; font-family: var(--display); }
.cal-bar .icon-btn { font-size: 20px; line-height: 1; width: 32px; height: 32px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: #fff; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--grad); color: #fff; }
.c-approved { --c: var(--ok); --ct: var(--ok-t); } .c-review { --c: var(--warn); --ct: var(--warn-t); } .c-recorded { --c: #10769B; --ct: #0b6283; } .c-plan { --c: var(--muted); --ct: var(--muted-t); } .c-cal { --c: var(--blue); --ct: var(--blue-t); } .c-live { --c: var(--rec); --ct: var(--rec-t); }
/* --c is the chip's accent (bar, tint); --ct the same hue dark enough for its small text (AA 4.5:1, D-127) */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.mh { padding: 8px 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--rail); }
.mday { min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mday:nth-child(7n+7) { border-right: 0; }
.mday.out { background: #fafbfd; } .mday.out .dn { color: var(--faint); }
.mday .dn { font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 2px; }
.mday.today .dn { background: var(--grad); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.mi { font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 12%, #fff); border-inline-start: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; color: var(--ink); }
.mi b { font-weight: 600; font-family: var(--mono); font-size: 10.5px; color: var(--ct, var(--c)); }
.mday .more { font-size: 11px; color: var(--blue); cursor: pointer; padding-inline-start: 6px; }
.wgrid { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: #fff; max-height: 640px; overflow-y: auto; position: relative; }
.wh { position: sticky; top: 0; z-index: 3; background: var(--rail); padding: 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; }
.wh b { color: var(--ink); font-size: 14px; margin-inline-start: 2px; }
.wh.today b { color: #fff; background: var(--grad); border-radius: 50%; padding: 2px 6px; }
.wtimes div { font-family: var(--mono); font-size: 10px; color: var(--faint); text-align: end; padding: 0 6px; border-top: 1px solid transparent; box-sizing: border-box; transform: translateY(-6px); }
.wcol { position: relative; border-inline-start: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 48px); }
.wcol.today { background-color: #f5f9fe; }
.wi { position: absolute; border-radius: 8px; padding: 3px 6px; font-size: 11.5px; overflow: hidden; cursor: pointer; background: color-mix(in srgb, var(--c) 14%, #fff); border-inline-start: 3px solid var(--c); display: flex; flex-direction: column; color: var(--ink); line-height: 1.25; }
.wi b { font-family: var(--mono); font-size: 10px; color: var(--ct, var(--c)); font-weight: 600; }
.wi span { overflow: hidden; text-overflow: ellipsis; }
.wi:hover, .mi:hover { filter: brightness(.96); }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--rec); z-index: 2; }
.nowline::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 2px; font-size: 12px; color: var(--muted); }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; background: var(--c); }
.gantt { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow-x: auto; }
.g-head, .g-row { display: grid; grid-template-columns: 190px minmax(640px, 1fr); }
.g-head { position: sticky; top: 0; background: var(--rail); border-bottom: 1px solid var(--line); }
.g-head .g-track { height: 30px; }
.g-head .g-track span { position: absolute; top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--muted); transform: translateX(4px); white-space: nowrap; }
.g-row { border-bottom: 1px solid var(--line); } .g-row:last-child { border-bottom: 0; }
.g-lbl { padding: 10px 12px; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g-lbl b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .g-lbl small { color: var(--faint); font-size: 11px; }
.g-track { position: relative; }
.g-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); opacity: .7; }
.g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rec); opacity: .8; z-index: 2; }
.g-span { position: absolute; top: 12px; height: 4px; background: color-mix(in srgb, var(--blue) 25%, #fff); border-radius: 4px; }
.g-m { position: absolute; top: 7px; width: 13px; height: 13px; transform: translateX(-50%) rotate(45deg); border-radius: 3px; background: var(--navy); z-index: 3; box-shadow: 0 0 0 2px #fff; }
.g-m.plan { background: #fff; border: 2px solid var(--blue); box-sizing: border-box; }
.g-a { position: absolute; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--blue) 16%, #fff); border-inline-start: 3px solid var(--blue); font-size: 11px; color: var(--ink); overflow: hidden; white-space: nowrap; padding: 1px 6px; box-sizing: border-box; min-width: 8px; }
.g-a.late { background: var(--badbg); border-color: var(--bad); }
.g-a.done { background: var(--okbg); border-color: var(--ok); color: var(--muted); text-decoration: line-through; }
.g-a span { overflow: hidden; text-overflow: ellipsis; display: block; }
.g-l-m { --c: var(--navy); } .g-l-a { --c: var(--blue); } .g-l-late { --c: var(--bad); } .g-l-done { --c: var(--ok); }
.ctip { position: fixed; z-index: 99; display: none; pointer-events: none; }
@media (max-width: 760px) { .mday { min-height: 70px; } .mi b { display: none; } .wgrid { grid-template-columns: 40px repeat(7, minmax(70px, 1fr)); overflow-x: auto; } }
.macico svg { width: 18px; height: 18px; stroke: var(--blue); vertical-align: -3px; }

/* where an event comes from */
.src-mark { display: inline-flex; align-items: center; gap: 3px; margin-inline-end: 6px; vertical-align: -2px; cursor: help; }
.src-mark svg { width: 13px; height: 13px; }
.src-mark i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.mi .src-mark svg, .wi .src-mark svg { width: 10px; height: 10px; }
.mi .src-mark, .wi .src-mark { margin-inline-end: 3px; gap: 2px; }
.mi .src-mark i, .wi .src-mark i { width: 5px; height: 5px; }
.acct-row { display: flex; justify-content: flex-end; margin: -4px 0 10px; }
.acct-filter { width: auto !important; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 5px 30px 5px 12px; font: inherit; font-size: 12.5px; color: var(--ink2); background-color: #fff; width: auto; max-width: 280px; }

/* home toolbar: one row (views · group by | account filter · home) */
.home-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; margin: 18px 0 20px; overflow: visible; }
.ht-main { display: flex; align-items: center; gap: 4px; padding: 3px; background: var(--rail); border-radius: 999px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ht-main::-webkit-scrollbar { display: none; }
.home-tabs .ht-main a { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.home-tabs .ht-main a:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.home-tabs .ht-main a.on { background: var(--grad); color: #fff; box-shadow: 0 4px 12px -6px rgba(22,48,132,.6); }
.ht-group { position: relative; display: inline-flex; align-items: center; }
.ht-group select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 26px 6px 14px; border-radius: 999px; cursor: pointer; width: auto !important; margin: 0; }
.ht-group::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-70%) rotate(45deg); color: var(--muted); pointer-events: none; }
.ht-group select:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.ht-group.on select { background: var(--grad); color: #fff; }
.ht-group.on::after { color: #fff; }
.ht-side { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
#acct-slot:empty { display: none; }
.home-tabs .acct-filter { padding: 6px 28px 6px 12px; font-size: 12.5px; max-width: 220px; margin: 0; }
.home-tabs .pin { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--faint); border: 1px solid transparent; background: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.home-tabs .pin:hover { color: var(--navy); background: var(--rail); }
.home-tabs .pin.on { color: var(--navy); }
@media (max-width: 760px) {
  .home-tabs { flex-wrap: wrap; }
  .ht-main { flex: 1 1 100%; }
  .ht-side { width: 100%; justify-content: space-between; }
  .home-tabs .pin span { display: none; }
}
.ht-main { flex: 0 0 auto; max-width: 100%; }  /* D-181: never wider than the page (761 px with the side menu: it scrolls itself) */
.home-tabs { flex-wrap: wrap; row-gap: 10px; }
.ht-side { margin-inline-start: auto; }
.home-tabs .acct-filter { max-width: 175px; text-overflow: ellipsis; }
.greet { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.greet .spacer { flex: 1; }
.ht-side { margin-inline-start: 0; }
.ht-side .acct-filter { width: auto !important; max-width: 190px; padding: 5px 28px 5px 12px; font-size: 12.5px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background-color: #fff; color: var(--ink2); }
.ht-side .pin { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.ht-side .pin:hover { color: var(--navy); background: var(--rail); }
.ht-side .pin.on { color: var(--navy); }
.home-tabs { margin: 14px 0 22px; }
@media (max-width: 760px) { .ht-side .pin span { display: none; } }
.greet #acct-slot { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--ink2); }
.greet #acct-slot .acct-filter { font-family: var(--font); }

/* greeting: date above, filter + home on the right */
.greet { align-items: flex-end; }
.gr-text { display: flex; flex-direction: column; gap: 3px; }
.greet .gr-date { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-t); }
/* calendar / timeline header: Today | ‹ period › | options */
.cal-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 6px 0 16px; }
.cb-l { justify-self: start; } .cb-r { justify-self: end; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cb-c { display: flex; align-items: center; gap: 6px; }
.cb-c h2 { margin: 0 4px; font-size: 17px; white-space: nowrap; min-width: 0; text-align: center; }
@media (max-width: 760px) { .cal-bar { grid-template-columns: auto 1fr; } .cb-c { grid-column: 1 / -1; grid-row: 1; justify-self: center; } .cb-c h2 { font-size: 15px; } }

/* the header sits in the same centred column on every view, even the wide ones */
.home-head { max-width: 696px; margin: 0 auto; }
.page.wide .home-head + #hv { margin-top: 4px; }

/* short meetings: time and title on one line so the title is never hidden */
.wi.short { flex-direction: row; align-items: center; gap: 5px; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
.wi.short b { flex: 0 0 auto; }
.wi.short span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* setup wizard */
.wz { max-width: 620px; margin: 0 auto; padding: 34px 20px 100px; }
.wz-steps { display: flex; gap: 6px; margin-bottom: 16px; }
.wz-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.wz-steps i.done { background: var(--blue); } .wz-steps i.on { background: var(--grad); }
.wz-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; position: relative; overflow: hidden; }
.wz-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); }
.wz-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-t); margin-bottom: 10px; }
.wz-card h1 { font-size: 22px; margin: 0 0 6px; }
.wz-card > p, .wz-card .muted { margin-top: 0; }
.wz-card .su-choice.col { grid-template-columns: 1fr; margin-top: 16px; }
.su-badge { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--rail); padding: 2px 7px; border-radius: 999px; margin-inline-start: 6px; vertical-align: 2px; }
.wz-later { color: var(--faint); font-size: 12px; margin: 18px 0 0; }
.wz-priv { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.wz-priv li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.wz-priv li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--cyan-t); stroke: currentColor; fill: none; stroke-width: 1.8; }
.wz-nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.wz-hero { text-align: center; padding: 6px 0; }
.wz-hero img { height: 34px; margin-bottom: 16px; }
.wz-hero h1 { font-size: 26px; }
.wz-hero p { max-width: 460px; margin: 8px auto; }
.wz-addr { font-size: 15px; background: var(--rail); border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; color: var(--navy); }
.wz-done-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.wz-done-row svg { width: 18px; height: 18px; stroke: var(--ok); }
.wz-cals { border: 1px solid var(--line); border-radius: 14px; margin-top: 14px; }
.wz-cal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.wz-cal:last-child { border-bottom: 0; }
.wz-cal > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.wz-cal span:not(.avail):not(.macico) { flex: 1; display: flex; flex-direction: column; } .wz-cal small { color: var(--muted); font-size: 12px; }
.wz-sums { border: 1px solid var(--line); border-radius: 14px; margin: 16px 0 6px; }
.wz-sum { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.wz-sum:last-child { border-bottom: 0; } .wz-sum span { color: var(--muted); } .wz-sum b { text-align: end; font-weight: 600; }

.set-nav { position: sticky; top: 60px; z-index: 5; display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 0; margin: 0 0 4px; background: #fff; border-bottom: 1px solid var(--line); }
.set-nav button { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--muted); padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.set-nav button:hover { background: var(--rail); color: var(--ink); }
.settings > .set { scroll-margin-top: 120px; }
body.in-setup .tb-search, body.in-setup #ask-btn, body.in-setup #plan-btn, body.in-setup #rec-pill { visibility: hidden; }

/* delete on hover */
.mdel { position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s; color: var(--faint); z-index: 2; }
.mdel svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.mcard:hover .mdel { opacity: 1; }
.mdel:hover { color: var(--bad-t); background: var(--badbg); }
.btn.danger-fill { background: var(--bad); color: #fff; border-color: var(--bad); }

/* screen recording */
.scr-tog { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 6px 10px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); }
.scr-tog input { display: none; }
.scr-tog svg, .scr-live svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.scr-tog.on { color: var(--navy); border-color: var(--blue); background: var(--rail); }
.scr-live { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 10px; font-size: 12px; color: var(--rec-t); }
.paper.scr video { width: 100%; border-radius: 12px; background: #0f1c45; }
.slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 8px; }
.slides figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; }
.slides figure:hover { border-color: var(--cyan); }
.slides img { width: 100%; display: block; aspect-ratio: 16 / 10; object-fit: cover; background: var(--rail); }
.slides figcaption { display: flex; gap: 6px; padding: 6px 8px; font-size: 11.5px; align-items: baseline; }
.slides figcaption span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-pdf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 14px; }
.slides figure { position: relative; }
.pdf-pick { position: absolute; top: 6px; inset-inline-start: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(22, 48, 132, .78); cursor: pointer; backdrop-filter: blur(2px); }
.pdf-pick input { width: 14px; height: 14px; margin: 0; accent-color: var(--cyan); cursor: pointer; }
.slides figure:has(.pdf-pick input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.slides.pdf-off .pdf-pick { opacity: .45; }

/* connecting a Mac through the browser */
.device-card{max-width:440px;margin:60px auto;text-align:center;background:var(--card,#fff);border:1px solid var(--line,#e3e8f2);border-radius:18px;padding:34px 30px}
.device-card h1{font-size:24px;margin:10px 0 8px}
.device-ico{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;margin:0 auto;background:linear-gradient(135deg,#2070B0,#20A0D0);color:#fff}
.device-ico.ok{background:#1f9d6b}
.device-code{font-size:28px;letter-spacing:4px;font-weight:700;color:#163084;background:#f2f6fc;border-radius:12px;padding:12px 16px;margin:8px 0 14px;text-align:center}
.spin{width:14px;height:14px;border-radius:50%;border:2px solid #cfd8ea;border-top-color:#20A0D0;animation:mrspin .8s linear infinite;display:inline-block}
@keyframes mrspin{to{transform:rotate(360deg)}}
.spinner{width:14px;height:14px;border-radius:50%;border:2px solid #cfd8ea;border-top-color:#20A0D0;animation:mrspin .8s linear infinite;display:inline-block;vertical-align:-2px;flex:none}
.btn.primary .spinner,.rec .spinner{border-color:rgba(255,255,255,.35);border-top-color:#fff}

/* meeting clock */
.mchip.clock { cursor: default; font-variant-numeric: tabular-nums; }
.mchip.clock.live { color: #0c7aa3; border-color: #bfe6f4; background: #f0f9fd; }
.mchip.clock.live.over { color: #b4232c; border-color: #f3c4c7; background: #fdf2f3; }
.mchip.clock .cdot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: cblink 1.6s infinite; }
@keyframes cblink { 50% { opacity: .3; } }
/* phone: top bar and home tabs fit the screen */
@media (max-width: 560px) {
  .plan-btn .pb-label, .rec-pill:not(.live) .rp-label { display: none; }
  .plan-btn { padding: 0 11px; }
  .rec-pill { padding: 0 14px; }
  .home-tabs, .ht-main { max-width: 100%; min-width: 0; }
  .greet .ht-side .pin { display: none; }
}
.su-choice.col { grid-template-columns: 1fr; }
.toolbar .search, .a-toolbar .search { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: #fff; min-width: 180px; }
.toolbar .search svg, .a-toolbar .search svg { width: 16px; height: 16px; flex: 0 0 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; color: var(--faint); }
.toolbar .search input, .a-toolbar .search input { border: 0 !important; outline: 0; padding: 8px 0; background: transparent; box-shadow: none !important; font: inherit; font-size: 13.5px; width: 100%; }

.chat-tools { display: flex; gap: 4px; }
.chat-tools .btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 5px 9px; }
.chat-tools svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.menu { max-height: 60vh; overflow-y: auto; }
@media (max-width: 560px) { .chat-tools .btn span { display: none; } }
/* until we know who is signed in, show only the logo (no Record button flashing before the sign-in page) */
body.booting .topbar > *:not(.tb-brand), body.booting #view, body.booting #rail, body.booting .rail { visibility: hidden; }
.dk-wait { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; white-space: nowrap; }
.dk-wait svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
[hidden] { display: none !important; }
/* voice instructions */
.voice-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; }
.voice-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.voice-btn.on { background: var(--rec-t); border-color: var(--rec-t); color: #fff; }
.voice-btn .vdot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.voice-btn .vt { font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 600; }
.voice-btn.busy .spinner { width: 16px; height: 16px; }
.row .voice-btn { height: 32px; min-width: 34px; border-radius: 999px; }
.brand-row { border-top: 1px solid var(--line); padding-top: 12px; }
.brand-row .check.off { opacity: .6; }
.brand-row .hint { margin-top: 4px; }
.confirm-bg { z-index: 120; }
.modal.confirm { max-width: 420px; }
.modal.confirm .lead { margin-bottom: 4px; }

/* meeting bar on phones: everything fits on one line, icons with short words, Chat always visible */
.dock .ds { display: none; }
.dock .dk-wait svg, .dock .btn svg { flex: 0 0 auto; }
@media (max-width: 640px) {
  .dock, body.panel-open .dock { left: 8px; right: 8px; transform: none; max-width: none; justify-content: space-between;
    overflow: visible; padding: 5px; gap: 2px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .dock .dl { display: none; }
  .dock .ds { display: inline; }
  .dock .sep { display: none; }
  /* the assistant chip shows only its dot/spinner on phones, so it doesn't crowd out the buttons */
  .dock .bot-chip { padding: 0 9px; margin-inline-end: 0; flex: none; }
  .dock .bot-chip > span:not(.recdot):not(.spinner) { display: none; }
  .dock .btn { padding: 0 10px; height: 46px; min-width: 44px; justify-content: center; }
  .dock .btn:has(.cap) { flex-direction: column; gap: 2px; padding: 0 6px; }
  .dock .btn .cap { font-size: 10px; font-weight: 600; line-height: 1; color: var(--muted); }
  .dock .btn svg { width: 18px; height: 18px; }
  .dock .dk-wait { padding: 0 6px; font-size: 12px; }
  .dock .busy { padding: 0 8px; gap: 6px; }
  .dock .busy .mini { width: 64px; }
  .dock .live { padding: 0 6px; gap: 6px; }
  .dock .scr-tog { padding: 0 6px; font-size: 0; }
  main { padding-bottom: 96px; }
}
/* D-114: tablets and small laptops (641-1100 px): the meeting bar uses the short labels and never runs past the
   space beside the menu, so Chat and More stay on screen and tappable */
@media (min-width: 641px) and (max-width: 1100px) {
  .dock { max-width: calc(100vw - 24px); gap: 2px; padding: 5px; }
  .dock .dl { display: none; }
  .dock .ds { display: inline; }
  .dock .sep { display: none; }
  .dock .bot-chip > span:not(.recdot):not(.spinner) { display: none; }
  .dock .btn { padding: 0 12px; height: 46px; min-width: 44px; justify-content: center; }
  .dock .btn:has(.cap) { flex-direction: column; gap: 2px; padding: 0 8px; }
  .dock .btn .cap { font-size: 10px; font-weight: 600; line-height: 1; color: var(--muted); }
  .dock .btn svg { width: 18px; height: 18px; }
  .dock .scr-tog { padding: 0 8px; font-size: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  body.has-nav .dock { max-width: calc(100vw - var(--nav-w) - 24px); }
  body.has-nav.panel-open .dock { left: calc((100vw - min(480px, 100vw) + var(--nav-w)) / 2); max-width: calc(100vw - min(480px, 100vw) - var(--nav-w) - 16px); overflow-x: auto; }
}
/* join link of online meetings */
a.mchip.join { color: var(--navy); font-weight: 600; text-decoration: none; background: var(--sel); }
a.mchip.join svg { stroke: var(--navy); }
.mchip.empty[data-k="kind"] { color: var(--blue); }
.btn.join-now { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin-inline-end: 6px; }
.btn.join-now svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.meta.edited { color: var(--faint); font-size: 11px; }
/* credits */
.cr-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cr-big { font-family: var(--display); font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1; }
.cr-plan { text-align: right; }
.cr-bar { height: 8px; border-radius: 999px; background: var(--rail); overflow: hidden; }
.cr-bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.cr-bar.hot i { background: var(--warn); }
.cr-ref { border: 1px dashed var(--line2, var(--line)); border-radius: 12px; padding: 12px 14px; background: var(--canvas, #fff); }
.cr-ref input { flex: 1; min-width: 0; }
.cr-hist summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--navy); }
.cr-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.cr-tbl td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cr-tbl .num, .adm-tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* the little "i" help marker next to widgets and columns */
.ii { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%;
  background: #D6E2F0; color: #163084; font: italic 700 10px/1 Georgia, 'Times New Roman', serif; cursor: help;
  vertical-align: middle; margin-left: 3px; user-select: none; flex: none; }
.ii:hover, .ii:focus { background: #2070B0; color: #fff; outline: none; }
.adm-h .ii, .kpi span .ii, .adm-tbl th .ii, .field label .ii { opacity: .9; }
.cr-tbl .ok { color: var(--ok-t); }
/* "your recording is safe" row shown when the minutes fail */
.err-rec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.err-rec > span { flex: 1 1 100%; font-size: 13px; color: var(--muted); }
.err-rec .btn.sm { margin: 0; }
/* "a new version is available" bar for the desktop app */
.update-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9000; display: flex;
  align-items: center; gap: 12px; max-width: 92vw; padding: 10px 12px 10px 16px; border-radius: 12px;
  background: #163084; color: #fff; box-shadow: 0 10px 30px rgba(22, 48, 132, .35); font-size: 13.5px; }
.update-bar b { font-weight: 700; }
.update-bar .btn.sm { margin: 0; }
.update-bar .ub-x { background: transparent; border: 0; color: #cdd8f0; font-size: 15px; cursor: pointer; padding: 2px 4px; line-height: 1; }
.update-bar .ub-x:hover { color: #fff; }
.rail-btn.cr-rail .n.hot { background: var(--warn-t); color: #fff; }
/* owner's usage page */
.adm-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 16px 0 6px; }
.adm-kpis .kpi { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.adm-kpis .kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.adm-kpis .kpi b { font-family: var(--display); font-size: 22px; color: var(--navy); }
.adm-kpis .kpi small { color: var(--muted); }
.adm-h { font-size: 16px; margin: 26px 0 10px; }
.adm-tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.adm-tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--rail); padding: 8px 10px; }
.adm-tbl td { padding: 8px 10px; border-top: 1px solid var(--line); }
.adm-tbl td.bad { color: var(--bad-t); font-weight: 700; }
.adm-tbl select, .adm-tbl input { height: 30px; padding: 0 8px; font-size: 13px; }
.adm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-grid { grid-template-columns: 1fr; } .adm-tbl { display: block; overflow-x: auto; } }
.adm-range { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.adm-range label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.adm-range input { width: auto !important; height: 34px; }

/* work going on in the background: a small spinner in the top bar; hover (or tap) lists what it is */
.busy-ind { position: relative; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; cursor: default; color: var(--navy); }
.busy-ind[hidden] { display: none; }
.busy-ind:hover, .busy-ind:focus-within { background: var(--hover); }
.busy-ind .spinner { width: 16px; height: 16px; border-width: 2px; }
.busy-ind b { font-size: 12px; font-weight: 600; min-width: 8px; }
.busy-pop { display: none; position: absolute; top: 42px; inset-inline-end: 0; min-width: 260px; max-width: 340px; background: var(--card, #fff); border: 1px solid var(--line, #e3e8f2);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(22,48,132,.16); padding: 8px; z-index: 60; }
.busy-ind:hover .busy-pop, .busy-ind:focus-within .busy-pop, .busy-ind.open .busy-pop { display: block; }
.busy-pop .bp-h { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 6px; }
.busy-pop .bp-i { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; font-size: 13px; color: var(--ink); text-decoration: none; }
.busy-pop a.bp-i:hover { background: var(--hover); }
.busy-pop .bp-i i { width: 7px; height: 7px; border-radius: 50%; background: #20A0D0; margin-top: 6px; flex: none; animation: bpPulse 1.2s ease-in-out infinite; }
.busy-pop .bp-i small { display: block; color: var(--muted); font-size: 11.5px; }
@keyframes bpPulse { 50% { opacity: .35; } }

/* the secretary panel (the Record button) */
.sec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip-btn:hover { background: var(--hover); }
.chip-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-btn.rec { border-color: #f1c7c9; color: #b4232a; }
.chip-btn .recdot { width: 9px; height: 9px; }
.sec-box { border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px; background: #fff; }
.sec-box textarea { border: 0; padding: 4px 2px; resize: none; min-height: 64px; box-shadow: none; }
.sec-box textarea:focus { outline: none; box-shadow: none; }
.sec-card { border: 1px solid var(--line); background: var(--canvas); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.sec-k { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sec-ans { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* notes */
.note-new { margin: 6px 0 18px; }
.day-h { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 18px 0 8px; }
.note-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.note-card .nc-time { color: var(--muted); font-size: 12.5px; padding-top: 2px; min-width: 44px; }
.note-card .nc-body { flex: 1; min-width: 0; }
.note-card .nc-text { font-size: 14.5px; line-height: 1.55; white-space: normal; word-wrap: break-word; }
.note-card .nc-text textarea { width: 100%; }
.note-card .nc-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* setup: what this computer can run */
.su-machine { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; display: grid; gap: 6px; background: var(--soft, #f5f8fc); }
.su-machine > div:first-child { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.banner-up { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 16px; border-radius: 12px; border: 1px solid #20A0D0; background: rgba(32, 160, 208, .08); }
.banner-up > span { flex: 1; }
.banner-up svg { width: 20px; height: 20px; color: #2070B0; flex: none; }
.scope-seg { margin-inline-end: 8px; }
.scope-seg button { font-size: 12px; }
/* the meeting assistant */
.bot-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--soft, #f3f7fc); border-radius: 999px; padding: 6px 12px; margin-inline-end: 8px; font-size: 13px; cursor: pointer; color: inherit; }
.bot-chip.live { border-color: #20A0D0; color: #163084; }
.bot-chip .spinner { width: 12px; height: 12px; }
.bot-now { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(32, 160, 208, .08); margin: 0 0 12px; }
.bot-now.failed { background: rgba(200, 60, 60, .08); }
.off-tag { color: #b3412c; }
.secrow.own input[data-ten] { border-style: dashed; }
.secrow .btn.on { color: #2070B0; }
.secins { margin: 6px 0 10px 60px; display: grid; gap: 6px; }
.secins select { width: auto; }
.notes-tools { display: flex; gap: 8px; justify-content: flex-end; margin: 0 0 10px; flex-wrap: wrap; }
.tbrand { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.tbrand #tb-box { display: grid; gap: 10px; }
.tbrand #tb-box[hidden] { display: none; }
.live-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bot-st { font-size: 13px; color: #2070B0; }
.live-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; height: 280px; overflow-y: auto; display: grid; align-content: start; gap: 6px; margin: 0 0 10px; background: var(--soft, #f6f9fc); }
.lv { display: grid; grid-template-columns: 44px 80px 1fr; gap: 8px; font-size: 14px; }
.lv.assistant b { color: var(--cyan-t); }
.lv .mono { color: var(--faint, #8a93a8); font-size: 12px; }

/* storage */
.store-bar { display: flex; height: 14px; border-radius: 7px; background: #EEF2F8; overflow: hidden; margin: 10px 0 8px; }
.store-bar i { display: block; height: 100%; }
.store-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.store-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.store-disk.critical { border-color: #E5484D; }
.store-t td .btn { margin-inline-start: 4px; }
@media (max-width: 700px) { .store-t th:nth-child(2), .store-t td:nth-child(2), .store-t th:nth-child(3), .store-t td:nth-child(3), .store-t th:nth-child(4), .store-t td:nth-child(4) { display: none; } }
.status-line.warn { background: #FFF6E5; color: #7A4B00; }
.lv.note b, .lv.note span { color: #B42318; }

/* how the assistant speaks, and recording your voice */
.seg-v { display: grid; gap: 6px; }
.vopt { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.vopt:has(input:checked) { border-color: #2575BC; background: #F2F7FD; }
.vopt.off { opacity: .6; cursor: default; }
.vopt span { flex: 1; }
.vs-text { background: #F6F8FC; border-radius: 10px; padding: 12px 14px; line-height: 1.7; max-height: 260px; overflow: auto; font-size: 15px; }
.bot-log { margin-top: 18px; border-top: 1px solid #E3E8F0; padding-top: 10px; }
.bot-log summary { cursor: pointer; }
.bot-log .seg-line { grid-template-columns: 58px 150px minmax(0, 1fr); }
.bot-log .bl-said .sp { color: #2070B0; } .bot-log .bl-you .sp { color: var(--cyan-t); }
.bot-log .bl-decided, .bot-log .bl-status, .bot-log .bl-note { color: #5B6475; font-size: 13px; }
/* menu: folding sections, series with client and next meeting */
.rail-sec.fold { padding-inline-start: 4px; }
.rail-sec .rs-tog { display: flex; align-items: center; gap: 6px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; padding: 2px 6px; }
.rail-sec .rs-tog svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .15s; }
.rail-sec .rs-tog[aria-expanded="false"] svg { transform: rotate(-90deg); }
.rail-sec .rs-n { color: var(--faint); font-weight: 500; letter-spacing: 0; }
.rail-group.closed { display: none; }
.rail-btn .rb-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rail-btn.rs-row { align-items: flex-start; padding-top: 7px; padding-bottom: 7px; }
.rail-btn.rs-row svg { margin-top: 2px; color: #2070B0; }
.rs-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.rs-sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-today { color: var(--cyan-t); font-weight: 600; }
.rail-find { margin: 2px 4px 6px; width: calc(100% - 8px); font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.rail-more { border: 0; background: none; color: #2070B0; font-size: 12.5px; cursor: pointer; padding: 4px 10px 2px 37px; }
.rail-more:hover { text-decoration: underline; }
/* ---- the assistant while it is in the meeting: a feed, a composer, its settings beside them */
.modal.lv-modal { width: min(1080px, 100%); padding: 20px 22px 18px; }
.lv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lv-title { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; flex-wrap: wrap; }
.lv-title h2 { margin: 0; }
.lv-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #2070B0; background: #EEF5FC; border-radius: 999px; padding: 4px 11px; }
.lv-pill.on { color: #163084; background: #E6F4FA; }
.lv-pill i { width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 rgba(229,72,77,.5); animation: lvpulse 1.6s infinite; }
@keyframes lvpulse { 70% { box-shadow: 0 0 0 7px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.btn.lv-hush { border-color: #163084; color: #163084; font-weight: 600; }
.lv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.lv-main { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #F7FAFD; overflow: hidden; }
.lv-feed { height: 380px; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 10px; }
.lv-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; max-width: 320px; line-height: 1.5; }
.lv-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.lv-msg.me { align-self: flex-end; align-items: flex-end; }
.lv-bub { background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.lv-msg.me .lv-bub { background: linear-gradient(135deg, #2070B0, #163084); color: #fff; border: 0; border-radius: 14px 14px 4px 14px; }
.lv-meta { font-size: 11px; color: var(--faint, #8a93a8); margin: 3px 4px 0; }
.lv-note { align-self: center; font-size: 12px; color: #9A5B00; background: #FFF6E5; border-radius: 999px; padding: 3px 12px; max-width: 90%; text-align: center; }
.lv-next { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #163084; background: #E6F4FA; padding: 6px 14px; border-top: 1px solid var(--line); }
.lv-next .spinner { width: 12px; height: 12px; }
.lv-hand { border-top: 1px solid var(--line); background: linear-gradient(90deg, #E6F4FA, #F3FAFE); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.lv-hand-h { font-size: 12.5px; font-weight: 700; color: #163084; }
.lv-hand-t { font-size: 13px; color: #2070B0; line-height: 1.4; }
.lv-hand-a { display: flex; gap: 8px; }
.lv-hand-a .btn.primary { background: var(--cyan-t); border-color: var(--cyan-t); }
.lv-ae, .as-ae { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.lv-ae > label, .as-ae > label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #163084; margin: 0; }
.lv-ae > label svg, .as-ae > label svg { width: 15px; height: 15px; stroke: #2070B0; fill: none; stroke-width: 1.8; }
.lv-ae input, .as-ae input { width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.lv-ae input:focus, .as-ae input:focus { outline: none; border-color: #20A0D0; box-shadow: 0 0 0 3px rgba(32,160,208,.15); }
.lv-compose { border-top: 1px solid var(--line); background: #fff; padding: 10px 12px; display: grid; gap: 8px; }
.lv-inrow { display: flex; align-items: center; gap: 8px; }
.lv-inrow input { flex: 1; border-radius: 10px; }
.lv-mic { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #163084; display: grid; place-items: center; cursor: pointer; font-size: 14px; }
.lv-mic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lv-mic:hover { border-color: #2070B0; }
.lv-mic.rec { background: var(--rec-t); border-color: var(--rec-t); color: #fff; animation: lvpulse 1.6s infinite; }
.lv-actrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lv-tr { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lv-tr svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.lv-tr select { width: auto; padding: 5px 28px 5px 8px; font-size: 13px; border-radius: 8px; }
.lv-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lv-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; background: #fff; }
.lv-ct { font-weight: 600; font-size: 13.5px; }
.lv-card textarea { font-size: 13.5px; resize: vertical; }
.lv-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.lv-kv b { color: var(--ink); font-weight: 600; }
.lv-kv select { width: auto; max-width: 160px; padding: 5px 28px 5px 8px; font-size: 13px; border-radius: 8px; }
.lv-sw { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.lv-sw input { position: absolute; opacity: 0; pointer-events: none; }
.lv-sw .sw { flex: none; width: 36px; height: 20px; border-radius: 999px; background: #CBD5E1; position: relative; transition: background .15s; margin-top: 1px; }
.lv-sw .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.lv-sw input:checked + .sw { background: #2070B0; }
.lv-sw input:checked + .sw::after { transform: translateX(16px); }
.lv-sw input:focus-visible + .sw { outline: 2px solid #20A0D0; outline-offset: 2px; }
.lv-sw > span:last-child { display: grid; gap: 2px; font-size: 13.5px; }
.lv-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #2070B0; padding: 0 4px; }
.lv-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.bot-chip { white-space: nowrap; }
@media (max-width: 860px) {
  .lv-grid { grid-template-columns: 1fr; }
  .lv-feed { height: 300px; }
  .lv-msg { max-width: 92%; }
}
.lv-main { min-height: 0; }
.lv-feed { height: auto; flex: 1 1 0; min-height: 340px; }
@media (max-width: 860px) {
  .lv-feed { flex: none; height: 300px; min-height: 0; }
  .lv-actrow .spacer { display: none; }
  .lv-actrow .btn { flex: 1; }
  .lv-head { align-items: flex-start; }
}
/* ---- sending the assistant */
.modal.as-modal { width: min(680px, 100%); }
.as-does { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.as-card { position: relative; display: grid; gap: 4px; padding: 14px 14px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.as-card input, .as-v input { position: absolute; opacity: 0; pointer-events: none; }
.as-card b { font-size: 14.5px; color: var(--ink); }
.as-card > span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.as-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #EEF5FC; color: #2070B0; margin-bottom: 4px; }
.as-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.as-card:hover { border-color: #9DC3E6; }
.as-card:has(input:checked) { border-color: #2070B0; background: #F4F9FE; box-shadow: 0 0 0 3px rgba(32,112,176,.12); }
.as-card:has(input:checked) .as-ic { background: linear-gradient(135deg, #2070B0, #163084); color: #fff; }
.as-card:has(input:focus-visible) { outline: 2px solid #20A0D0; outline-offset: 2px; }
.as-more { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #F7FAFD; border: 1px solid var(--line); margin-bottom: 14px; }
.as-more[hidden] { display: none; }
.as-lbl { font-size: 12.5px; font-weight: 600; color: var(--ink2, #3b4560); display: flex; align-items: center; gap: 8px; }
.as-acc { margin-inline-start: auto; font-weight: 500; font-size: 12px; }
.as-voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.as-v { position: relative; display: grid; gap: 2px; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.as-v b { font-size: 13.5px; }
.as-v span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.as-v:has(input:checked) { border-color: #2070B0; box-shadow: 0 0 0 3px rgba(32,112,176,.12); }
.as-v.off { opacity: .55; cursor: default; }
.as-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 4px; }
.as-row .as-lbl { flex: none; }
.as-row select { flex: 1; }
.as-more textarea { background: #fff; font-size: 13.5px; }
.as-write { margin: 2px 0 4px; }
@media (max-width: 560px) {
  .as-does { grid-template-columns: 1fr; }
  .as-voices { grid-template-columns: 1fr; }
  .as-row { flex-direction: column; align-items: stretch; }
}
#lv-quiet svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; }
/* Settings: one menu entry with its pages under it, and tabs on top of each */
.rail-btn.rs-set .n svg { width: 12px; height: 12px; stroke-width: 2.2; transition: transform .15s; }
.rail-btn.rs-set[aria-expanded="false"] .n svg { transform: rotate(-90deg); }
.rail-btn.rs-set.in { color: var(--navy, #163084); font-weight: 600; }
.rail-sub { display: grid; gap: 1px; padding-inline-start: 14px; margin: 1px 0 4px; border-inline-start: 1px solid var(--line); margin-inline-start: 18px; }
.rail-sub.closed { display: none; }
.rail-sub .rail-btn { padding: 6px 10px; font-size: 13.5px; }
.rail-sub .rail-btn svg { width: 15px; height: 15px; }
.set-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 14px; padding: 4px; background: #EEF3F9; border-radius: 12px; width: fit-content; max-width: 100%; }
.set-nav a { padding: 6px 14px; border-radius: 9px; font-size: 13.5px; color: var(--ink2, #3b4560); text-decoration: none; white-space: nowrap; }
.set-nav a:hover { background: #fff; }
.set-nav a.on { background: #fff; color: #163084; font-weight: 600; box-shadow: 0 1px 2px rgba(22,48,132,.12); }
@media (max-width: 560px) { .set-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; } }
.ret-card { display: grid; gap: 10px; }
.ret-h { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.ret-badge { flex: none; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: #EEF1F5; color: var(--muted); }
.ret-badge.on { background: #E6F4FA; color: #163084; }
.ret-badge.on.danger { background: var(--badbg); color: var(--bad-t); }
.ret-one { display: flex; align-items: center; gap: 12px; }
.ret-one label { font-weight: 600; font-size: 13.5px; flex: none; }
.ret-one select { max-width: 280px; }
.ret-card .btn.ghost { justify-self: start; padding-inline: 0; color: #2070B0; }
.rail-btn.rs-set .rs-warn { margin-inline-start: auto; } .rail-btn.rs-set .rs-warn + .n { margin-inline-start: 6px; }
/* ---- who sees what: four columns, people grouped into cards */
.pop { z-index: 75; }
.modal.ab-modal { width: min(1040px, 100%); }
.ab-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.ab-col { background: #F4F7FB; border: 1.5px dashed transparent; border-radius: 14px; padding: 10px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; transition: border-color .12s, background .12s; }
.ab-col.over { border-color: #2070B0; background: #EAF3FB; }
.ab-h { display: grid; gap: 1px; padding: 2px 4px 4px; }
.ab-h b { font-size: 13.5px; color: #163084; }
.ab-h span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.ab-cards { display: flex; flex-direction: column; gap: 8px; }
.ab-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(22,48,132,.06); }
.ab-card:active { cursor: grabbing; }
.ab-ct { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; text-align: start; padding: 2px; cursor: pointer; font: inherit; color: inherit; }
.ab-ct svg { width: 16px; height: 16px; flex: none; stroke: #2070B0; fill: none; stroke-width: 1.8; }
.ab-ct span { display: grid; min-width: 0; }
.ab-ct b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-ct small { font-size: 11.5px; color: var(--muted); }
.ab-more { border: 0; background: none; color: #2070B0; font-size: 12px; padding: 4px 2px 0 26px; cursor: pointer; }
.ab-ppl { display: grid; gap: 6px; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.ab-p { display: grid; gap: 4px; font-size: 12.5px; }
.ab-p span { display: grid; min-width: 0; overflow: hidden; }
.ab-p small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.ab-p select { font-size: 12px; padding: 3px 24px 3px 6px; border-radius: 7px; }
.pop .pop-item { display: grid; gap: 1px; width: 100%; text-align: start; border: 0; background: none; padding: 7px 8px; border-radius: 8px; cursor: pointer; font: inherit; }
.pop .pop-item:hover { background: #F2F6FB; }
@media (max-width: 760px) { .ab-board { grid-template-columns: 1fr 1fr; } .ab-col { min-height: 120px; } }
/* ---- a meeting shared with you */
.shared-page { max-width: 820px; }
.shared-page h1 { margin: 4px 0 6px; }
.back-link { display: inline-block; margin-bottom: 10px; font-size: 13.5px; color: #2070B0; }
.sh-level { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 6px; font-size: 13px; color: #163084; background: #EEF5FC; border-radius: 999px; padding: 4px 12px; }
.sh-level svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sh-card { margin-top: 12px; }
.sh-card h3 { font-size: 14px; margin: 14px 0 4px; }
.row-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 8px; }
.sh-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.sh-acts .sh-act { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; min-width: 0; }
.sh-acts .sh-act:first-of-type { border-top: 0; }
.sh-acts .sh-act input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.sh-acts .sh-act > span { min-width: 0; overflow-wrap: anywhere; }
.sh-acts .sh-act input:checked + span .sh-act-t { text-decoration: line-through; color: var(--muted); }
.sh-p { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 999px; background: #EEF3F9; font-size: 13px; }
/* who sees what: tabs, no-access strip, log */
.ab-tabs { display: flex; gap: 4px; margin: 2px 0 12px; padding: 4px; background: #EEF3F9; border-radius: 11px; width: fit-content; }
.ab-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink2, #3b4560); }
.ab-tabs button.on { background: #fff; color: #163084; font-weight: 600; box-shadow: 0 1px 2px rgba(22,48,132,.12); }
.ab-note { background: #FFF6E5; color: #8A5300; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
.ab-none { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; font-size: 13px; }
.ab-nx { background: #F2F4F7; border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.ab-nx .lnk { border: 0; background: none; color: #2070B0; cursor: pointer; font-size: 12px; padding: 0 0 0 4px; }
.ab-pr { display: flex; gap: 4px; align-items: center; }
.ab-pr select { flex: 1; min-width: 0; }
.ab-x { border: 1px solid var(--line); background: #fff; border-radius: 7px; width: 26px; height: 26px; cursor: pointer; color: #B42318; font-size: 12px; flex: none; }
.ab-x:hover { background: #FEF3F2; }
.ab-pmain { display: grid; gap: 4px; }
.ab-grants { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 1px 0 1px 2px; }
.ab-gr { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.ab-gr input { width: 14px; height: 14px; accent-color: var(--navy); margin: 0; }
.ab-adm { display: inline-block; font-size: 10px; font-weight: 700; color: #2070B0; background: #E6F4FA; border-radius: 4px; padding: 0 5px; width: max-content; }
.ab-log { width: 100%; border-collapse: collapse; font-size: 13px; }
.ab-log td, .ab-log th { text-align: start; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ab-log th { font-size: 12px; color: var(--muted); font-weight: 600; }
.ab-log small { display: block; color: var(--muted); font-size: 11.5px; }
[data-p][hidden] { display: none !important; }
/* the activity log */
.act-f { gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.act-f select, .act-f input[type=search] { width: auto; min-width: 140px; }
.act-f input[type=search] { min-width: 240px; }
.act-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.act-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.act-t th { position: sticky; top: 0; background: #F7F9FC; text-align: start; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.act-t td { padding: 7px 10px; border-bottom: 1px solid #EEF1F5; vertical-align: top; }
.act-t td small { display: block; color: var(--muted); font-size: 11.5px; }
.act-t .nw { white-space: nowrap; }
.act-t .dt { color: var(--ink2, #3b4560); max-width: 380px; word-break: break-word; }
.act-t tr.bad td { background: #FFF6F5; }
.act-t tr.ai td:nth-child(3) { color: #2070B0; }

/* sign-in: codes and the authenticator app */
.lg-hint { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.lg-code { font: 600 22px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 6px; text-align: center; }
.lg-alt { text-align: center; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.tfa-steps { margin: 0 0 14px; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
.tfa-qr { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.tfa-qr .qr { width: 168px; height: 168px; border: 1px solid #E3E8F0; border-radius: 10px; flex: none; }
.tfa-key { display: inline-block; margin-top: 6px; font-size: 14px; letter-spacing: 1px; color: #163084; word-break: break-all; }
.tfa .row input { max-width: 170px; }
.tfa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; padding: 14px 16px; background: #F2F5FA; border-radius: 10px; font-size: 15px; margin: 6px 0 4px; }
@media (max-width: 480px) { .tfa-qr .qr { width: 150px; height: 150px; } }
.lnk { border: 0; background: none; color: #2070B0; cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.lnk:hover { color: #163084; }

/* reminders: bell, badge, cards */
#bell-btn { position: relative; }
.bell-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
  background: var(--rec-t); color: #fff; font: 700 10px/16px system-ui, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--bg, #fff); }
.rem-wrap { padding: 8px 4px 20px; }
.rem-list { display: flex; flex-direction: column; gap: 8px; }
.rem-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px; border: 1px solid #E3E8F0; border-radius: 12px;
  background: #fff; transition: border-color .15s, box-shadow .15s; }
.rem-card:hover { border-color: #20A0D0; box-shadow: 0 2px 10px rgba(22, 48, 132, .07); }
.rem-main { flex: 1; cursor: pointer; min-width: 0; }
.rem-title { font: 600 14px/1.35 inherit; color: #163084; }
.rem-body { font-size: 12.5px; color: #6B7489; margin-top: 3px; line-height: 1.45; }
.rem-acts { display: flex; gap: 2px; flex: none; }
.rem-acts button { border: 0; background: none; color: #93A0B5; cursor: pointer; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 14px; }
.rem-acts button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.rem-acts button:hover { background: #F2F5FA; color: #2070B0; }
.rem-empty { text-align: center; color: #93A0B5; padding: 40px 20px; }
.rem-empty svg { width: 34px; height: 34px; stroke: #20A0D0; fill: none; stroke-width: 2; margin-bottom: 8px; }
.rem-empty p { font-size: 13.5px; margin: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rem-card { background: #141922; border-color: #26303d; }
  :root:not([data-theme="light"]) .rem-title { color: #7FB3E8; } }

/* meeting: attachments */
.att-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.att { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.att svg { width: 16px; height: 16px; stroke: #2070B0; fill: none; stroke-width: 2; flex: none; }
.att a { color: #2070B0; text-decoration: none; word-break: break-all; }
.att a:hover { text-decoration: underline; }
.att .att-del { margin-left: auto; color: #93A0B5; font-size: 13px; padding: 2px 6px; }
.att-add { cursor: pointer; }

/* reminders: filter chips */
.rem-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 12px; }
.rem-chip { border: 1px solid #E3E8F0; background: #fff; color: #3B4560; border-radius: 999px; padding: 5px 11px; font: 500 12.5px inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rem-chip:hover { border-color: #20A0D0; }
.rem-chip.on { background: #163084; border-color: #163084; color: #fff; }
.rem-n { font-size: 11px; opacity: .7; }
.rem-chip.on .rem-n { opacity: .85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rem-chip { background: #141922; border-color: #26303d; color: #c3cad6; } }

/* ---- Actions page: toolbar + clean row list ---- */
.a-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 16px; }
.a-search { min-width: 220px; flex: 1 1 220px; max-width: 360px; }
.a-sel { width: auto; min-width: 140px; }
@media (max-width: 640px) { .a-toolbar .spacer { display: none; } .a-search { flex-basis: 100%; max-width: none; } .a-sel { flex: 1 1 45%; } }

.arows { display: flex; flex-direction: column; gap: 8px; }
.arow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.arow:hover { border-color: #CFE2F4; box-shadow: 0 2px 10px -6px rgba(22,48,132,.25); }
.arow > .chk { margin-top: 2px; width: 18px; height: 18px; flex: none; cursor: pointer; accent-color: var(--navy); }
.arow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.arow-txt { width: 100%; font: 500 15px/1.45 var(--font); color: var(--ink); outline: 0; word-break: break-word; white-space: pre-wrap; }
.arow-txt:empty::before { content: attr(data-ph); color: var(--faint); font-weight: 400; }
.arow.done .arow-txt { text-decoration: line-through; color: var(--faint); }
.arow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.arow-who { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; color: var(--ink2); background: var(--rail); width: auto; max-width: 160px; min-width: 90px; }
.arow-who:focus { outline: 0; border-color: var(--cyan); background: #fff; }
.arow-due { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; color: var(--ink2); background: var(--rail); position: relative; cursor: pointer; }
.arow-due svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.arow-due input[type=date] { border: 0; padding: 0; background: transparent; font-size: 12.5px; color: var(--ink2); width: 108px; }
.arow-due input[type=date]:focus { outline: 0; }
.arow-due .arow-due-ph { display: none; color: var(--muted); }
.arow-due.empty input[type=date] { width: 0; opacity: 0; position: absolute; }
.arow-due.empty .arow-due-ph { display: inline; }
.arow-due.overdue { background: var(--badbg); border-color: #F3C6CE; }
.arow-due.overdue input[type=date], .arow-due.overdue svg { color: var(--bad-t); }
.arow-from { display: inline-flex; flex-direction: column; gap: 1px; text-decoration: none; padding: 2px 10px; border-radius: 8px; background: var(--sel); max-width: 280px; }
.arow-from:hover { background: #DCE7F7; }
.arow-from-t { font-size: 12.5px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.arow-from-s { font-size: 11px; color: var(--muted); }
.arow-del { flex: none; border: 0; background: transparent; color: var(--faint); font-size: 15px; cursor: pointer; padding: 2px 4px; border-radius: 6px; line-height: 1; }
.arow-del:hover { color: var(--bad-t); background: var(--badbg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .arow { background: #161d27; border-color: #26303d; } :root:not([data-theme="light"]) .arow-txt { color: #d7dde6; } }

/* "Engines used" trace line at the bottom of a meeting (owner/admin): which AI models did the work */
.engines { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 2px 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.eng-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; background: var(--rail); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 9px; }
.eng-job { color: var(--muted); }
.eng-name { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--ink2); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eng-name { background: #0f141b; } }

/* a small count badge beside a section title, and the description line under it */
.blk-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px;
  border-radius: 999px; background: var(--cyan-t); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0; line-height: 1; }
.blk-count[hidden] { display: none; }
.blk-sub { font-size: 12.5px; color: var(--muted); margin: -1px 0 8px; line-height: 1.4; }
[dir=rtl] .blk-sub { font-size: 13px; }

/* carried-over open actions from the series, listed as clean two-line rows */
.act-carried { margin: 10px 0 2px; border-top: 1px dashed #E3E8F0; padding-top: 12px; }
.act-carried-h { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #93A0B5; margin: 0 0 8px; }
.carried-list { display: flex; flex-direction: column; gap: 2px; }
.act.carried.carried-item { display: flex; align-items: flex-start; gap: 11px; padding: 9px 10px; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .12s, background .12s; }
.act.carried.carried-item:hover { border-color: #CFE2F4; background: #FAFCFE; }
.act.carried.carried-item .chk { margin-top: 2px; width: 17px; height: 17px; flex: none; cursor: pointer; }
.carried-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.carried-txt { color: #1B2440; font-size: 14px; line-height: 1.4; }
.carried-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; font-size: 12px; color: var(--muted); }
.carried-src { background: var(--sel); color: var(--navy); border-radius: 6px; padding: 1px 7px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carried-due { font-variant-numeric: tabular-nums; }
.act.carried.done .carried-txt { text-decoration: line-through; color: #93A0B5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .carried-txt { color: #d7dde6; } :root:not([data-theme="light"]) .act-carried { border-color: #26303d; } :root:not([data-theme="light"]) .act.carried.carried-item { background: #161d27; border-color: #26303d; } }

.gn-list { display: flex; flex-direction: column; gap: 10px; }
.gn { border: 1px solid #E3E8F0; border-left: 3px solid #20A0D0; border-radius: 10px; padding: 10px 12px; background: #F7FAFD; }
.gn-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.gn-from { font-weight: 600; font-size: 13.5px; color: #163084; word-break: break-all; }
.gn-text { font-size: 14px; color: #1B2440; white-space: pre-wrap; word-break: break-word; margin-bottom: 9px; }
.gn-act { display: flex; gap: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gn { background: #161d27; border-color: #26303d; } :root:not([data-theme="light"]) .gn-text { color: #d7dde6; } :root:not([data-theme="light"]) .gn-from { color: #6FB6E8; } }

/* shared view: status + time chip in the header */
.sh-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sh-top h1 { margin: 0; flex: 1; min-width: 0; }
.sh-stat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: nowrap; margin-top: 4px; }
.sh-pill { border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; background: #EEF3F9; color: #163084; }
.sh-pill.t-live { background: #b8322f; color: #fff; }
.sh-pill.t-done { background: var(--ok-t); color: #fff; }
.sh-pill.t-work { background: #E89A2C; color: #3d2400; }
.sh-pill.t-bad { background: var(--muted); color: #fff; }
.sh-when { font-size: 13px; color: #6B7489; }
.sh-when.run { color: var(--rec-t); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sh-pill { background: #1b2635; color: #7FB3E8; } }

/* meeting options: a clear group of toggles, kept apart from action items */
.m-opts { margin-top: 18px; padding-top: 14px; border-top: 1px solid #E3E8F0; display: flex; flex-direction: column; gap: 2px; }
.m-opts-h { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); margin-bottom: 6px; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; cursor: pointer; }
.sw-lbl { font-size: 14px; color: #3B4560; }
.sw { position: relative; flex: none; width: 40px; height: 23px; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw-tr { position: absolute; inset: 0; background: #CBD5E1; border-radius: 999px; transition: background .18s; pointer-events: none; }
.sw-tr::after { content: ''; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; background: #fff; border-radius: 50%; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw input:checked + .sw-tr { background: #2070B0; }
.sw input:checked + .sw-tr::after { transform: translateX(17px); }
.sw input:focus-visible + .sw-tr { box-shadow: 0 0 0 3px rgba(32,160,208,.35); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .m-opts { border-color: #26303d; } :root:not([data-theme="light"]) .sw-lbl { color: #c3cad6; } :root:not([data-theme="light"]) .sw-tr { background: #3a4656; } }
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.pick-head label { margin: 0; }
.pick-head .pick-count { font-size: 11.5px; font-weight: 600; color: #2070B0; background: #E6F4FA; border-radius: 20px; padding: 2px 9px; }
.pick-all { border: 0; background: none; color: #2070B0; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 3px 6px; border-radius: 6px; }
.pick-all:hover { background: #E6F4FA; color: #163084; }
.pick-checks { max-height: 230px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 3px; background: #FBFDFE; }
.pick-checks::-webkit-scrollbar { width: 9px; }
.pick-checks::-webkit-scrollbar-thumb { background: #CDE8F6; border-radius: 9px; border: 2px solid #FBFDFE; }
.pick-checks .check { align-items: flex-start; gap: 11px; padding: 9px 11px; border-radius: 9px; border: 1px solid transparent; line-height: 1.5; transition: background .12s, border-color .12s; }
.pick-checks .check:hover { background: #F1F8FC; }
.pick-checks .check:has(:checked) { background: #EAF5FB; border-color: #CDE8F6; }
.pick-checks .check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #20A0D0; flex: none; cursor: pointer; }
.pick-checks .check:not(:has(:checked)) span { color: var(--muted); }
.pick-field + .pick-field { margin-top: 2px; }

/* whiteboard */
.wb-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wb-pens, .wb-sizes { display: inline-flex; gap: 4px; align-items: center; }
.wb-c { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.wb-c.on { outline: 2px solid var(--blue); outline-offset: 1px; }
.wb-s { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--card, #fff); cursor: pointer; }
.wb-s.on { border-color: var(--blue); }
.wb-s i { display: block; border-radius: 50%; background: #111; }
.wb-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; touch-action: none; }
/* in-app full screen: fills the viewport below the app header (header stays visible) */
.wb-stage.wb-maxed { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 38; margin: 0; padding: 14px; background: #fff; display: flex; flex-direction: column; box-sizing: border-box; }
.wb-stage.wb-maxed .wb-tools { margin-bottom: 12px; }
.wb-stage.wb-maxed .wb-wrap { flex: 1; aspect-ratio: auto; width: 100%; border-radius: 10px; }
.wb-stage.wb-maxed .wb-pages { margin-top: 10px; }
.wb-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.wb-notes { position: absolute; inset: 0; pointer-events: none; }
.wb-note { position: absolute; width: 150px; min-height: 90px; pointer-events: auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.wb-note-bar { display: flex; align-items: center; justify-content: space-between; padding: 3px 5px; cursor: move; }
.wb-note-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); cursor: pointer; background: rgba(255,255,255,.5); }
.wb-note-del { border: none; background: none; font-size: 17px; line-height: 1; cursor: pointer; color: #555; padding: 0 2px; }
.wb-note textarea { flex: 1; border: none; background: none; resize: none; padding: 2px 8px 8px; font: inherit; font-size: 13px; outline: none; color: #222; }
@media (max-width: 640px) { .wb-note { width: 120px; } }
/* whiteboard: tool modes (shapes + text) */
.wb-modes { display: inline-flex; gap: 3px; background: #EEF4FA; border-radius: 9px; padding: 3px; }
.wb-m { width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 7px; cursor: pointer; color: #163084; }
.wb-m svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wb-m:hover { background: #DCEBF6; }
.wb-m.on { background: var(--cyan-t); color: #fff; }
/* whiteboard: text boxes */
.wb-texts { position: absolute; inset: 0; pointer-events: none; }
.wb-text { position: absolute; pointer-events: auto; min-width: 40px; max-width: 70%; line-height: 1.35; }
/* D-133: board text keeps its place among the drawings at any width: its size follows the board's width (as on a
   640 px wide board on a laptop), never bigger than before */
.wb-wrap { container-type: inline-size; }
.wb-text { font-size: min(calc(var(--wb-fs, 21) * 1px), calc(var(--wb-fs, 21) * 100cqw / 640)); }
@media (max-width: 760px) { .wb-text { min-width: 0; } .wb-text-in { min-width: 12px; } }
/* D-134: an Arabic board title stays beside the back arrow (left), with the bin right after it */
#wb-title { text-align: left; field-sizing: content; width: auto; flex: 0 1 auto; min-width: 8ch; max-width: 100%; }
.wb-text-h, .wb-text-del { position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; line-height: 18px; text-align: center; cursor: pointer; opacity: 0; transition: opacity .12s; border: 0; }
.wb-text-h { left: -9px; background: #2070B0; color: #fff; cursor: move; }
.wb-text-del { right: -9px; background: #e4572e; color: #fff; }
.wb-text:hover .wb-text-h, .wb-text:hover .wb-text-del { opacity: 1; }
/* D-129: the × shows while the keyboard is on it (or on its text), with a ring */
.wb-text:focus-within .wb-text-del, .wb-text-del:focus-visible { opacity: 1; }
.wb-text-del:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.wb-text-in { outline: none; min-width: 30px; white-space: pre-wrap; word-break: break-word; }
.wb-text-in:empty::before { content: 'Text…'; opacity: .5; }
/* whiteboard: pages */
.wb-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.wb-pg { display: inline-flex; align-items: center; gap: 5px; min-width: 30px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; color: var(--ink2); }
.wb-pg.on { background: #163084; border-color: #163084; color: #fff; font-weight: 600; }
.wb-pg-x { font-size: 13px; line-height: 1; opacity: .85; }
.wb-pg-x:hover { opacity: 1; }
.wb-pg-add { width: 30px; height: 30px; border: 1px dashed #9db8d8; border-radius: 8px; background: #F3FAFE; color: #2070B0; cursor: pointer; font-size: 16px; }
.wb-pg-add:hover { background: #E6F4FA; border-color: #2070B0; }
/* links inside text are underlined, not told apart by colour only */
p a, .muted a, .small a, .sub a, .lead a, .nt-sub a, li a, .hint a, .field a, label a { text-decoration: underline; text-underline-offset: 2px; }
/* plans (bundles): cards in the welcome steps and Account, Change plan */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }
.plan-opt { align-content: start; min-width: 0; }
.plan-opt b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.plan-price { color: var(--ink) !important; font-weight: 700; font-size: 15px !important; }
.plan-cr { color: var(--blue) !important; font-weight: 600; }
.plan-note { margin-top: 12px; }
.pill.sm { font-size: 10px; padding: 1px 7px; background: rgba(32,112,176,.12); color: #164e85; }
.pill.sm.warn { background: rgba(201,130,8,.14); color: var(--warn-t); }
.plan-req { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }

/* push notifications row at the top of the Reminders panel */
.push-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line, #d8e0ef); border-radius: 10px; font-size: 13px; }
.push-row > span:first-child { flex: 1 1 200px; min-width: 0; }
.push-row svg { width: 14px; height: 14px; vertical-align: -2px; color: #20A0D0; }
.push-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* mine vs whole workspace (credits, storage) */
.cr-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; }
.cr-mine .spacer { flex: 1; }
.tbl-scroll { overflow-x: auto; max-width: 100%; margin-top: 10px; }
.cr-members, .store-members { width: 100%; }
.cr-members td, .store-members td { overflow-wrap: anywhere; }

/* admin panel (#/hub) */
.hub-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hub-top h1 { margin: 2px 0 0; }
.hub-nav { flex-wrap: wrap; row-gap: 6px; }
.hub-gate { max-width: 460px; margin: 40px auto; }
.hub-gate .row { gap: 8px; margin-top: 12px; }
.hub-kpis { margin-top: 16px; }
.hub-kpi { text-decoration: none; }
a.hub-kpi[href]:hover { border-color: #2575BC; }
.hub-search { gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hub-search input { flex: 1 1 220px; min-width: 0; }
.hub-tbl td { vertical-align: top; overflow-wrap: anywhere; }
.hub-acts { white-space: normal; }
.hub-acts .btn { margin: 0 4px 4px 0; }
.hub-err { max-width: 360px; color: var(--muted, #5a6478); }
.hub-cards { display: grid; gap: 12px; margin-top: 16px; }
.hub-req { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.hub-req-plan { font-weight: 700; color: #163084; font-size: 18px; }
.linkish { background: none; border: 0; padding: 0; color: #2070B0; cursor: pointer; font: inherit; text-align: start; }
@media (max-width: 760px) { .hub-top h1 { font-size: 22px; } }

/* D-059: long names and emails wrap instead of pushing settings wider than a phone */
.set > *, .set .stack > *, .cr-mine > *, .set .row > input { min-width: 0; }
.set, .stack, .cr-tbl td, .adm-tbl td { overflow-wrap: anywhere; }

/* admin panel phase 2 */
.hub-banner { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 13.5px;
  background: #EAF4FB; color: #163084; border-bottom: 1px solid #BFDDF0; overflow-wrap: anywhere; }
.hub-banner.warn { background: #FFF6E0; color: #6b4a00; border-bottom-color: #F1D795; }
.hub-banner > span { flex: 1; min-width: 0; }
.hb-x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
.hub-checks { display: grid; gap: 8px; }
.hub-check { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.hub-check .hc-dot { width: 9px; height: 9px; border-radius: 50%; background: #9aa5b8; flex: none; }
.hub-check.ok .hc-dot { background: #1f9d55; } .hub-check.bad .hc-dot { background: #d64545; }
.hub-links { flex-wrap: wrap; gap: 8px; }
#an-form textarea { width: 100%; }

/* plan and billing */
.bill-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; }
.bill-btns { flex-wrap: wrap; gap: 6px; }
.plan-trial { background: #EAF4FB; color: #163084; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 10px 0 0; }

/* costs check */
.cc-bad { color: #c0392b; font-weight: 600; } .cc-ok { color: #1f7a45; }

.sy-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 8px; align-items: center; }
.sy-row input { min-width: 0; width: 100%; }
@media (max-width: 760px) { .sy-row { grid-template-columns: minmax(0, 1fr); } }

/* D-081: a long file name stays on one line, cut with … (full name on hover) */
.hub-tbl td.cc-file { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }

/* staging copy */
#staging-bar { position: sticky; top: 0; z-index: 95; background: #b45309; color: #fff; font-size: 12.5px; font-weight: 600; text-align: center; padding: 5px 12px; overflow-wrap: anywhere; }

/* Help: in the top bar on a laptop; on a phone it is in the ☰ menu (the bar has no room) */
@media (max-width: 760px) { #help-btn { display: none; } }
.tvis { display: grid; grid-template-columns: auto minmax(0, 260px); gap: 6px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--rail); }
.tvis .small { grid-column: 1 / -1; }
@media (max-width: 760px) { .tvis { grid-template-columns: minmax(0, 1fr); } }
.att-tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--sel); color: var(--ink2); white-space: nowrap; }
.att-tag.bad { background: var(--warnbg); color: var(--warn-t); }
@media (max-width: 760px) { .att { flex-wrap: wrap; } }
.bt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.bt-knows { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--rail); display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow: auto; }
.bt-sec ul { margin: 4px 0 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; }
.bt-sec .small { overflow-wrap: anywhere; }
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.lg-opt { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); cursor: pointer; }
.lg-opt.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--sel); }
.lg-opt img { height: 56px; width: 100%; object-fit: contain; background: repeating-conic-gradient(#f2f4f8 0 25%, #fff 0 50%) 0 0 / 12px 12px; border-radius: 6px; }
.lg-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lg-pos { width: 100%; min-width: 0; }
.lg-head { color: var(--ink2); }
.lg-none { justify-content: space-between; }
.lg-noimg { height: 56px; display: grid; place-items: center; border: 1px dashed var(--line2); border-radius: 6px; color: var(--muted); font-size: 13px; }


/* ================================================================ Sprint 1: one navigation (thin menu + section menu) */
:root { --an-rail: 76px; --an-sub: 240px; --an-top: 62px; }
body.has-nav { --nav-w: calc(var(--an-rail) + var(--an-sub)); }
body.has-nav.sub-hidden { --nav-w: var(--an-rail); }
.an-rail, .an-sub { display: none; }
body.has-nav .an-rail { display: flex; } body.has-nav .an-sub { display: flex; }
.an-rail { width: var(--an-rail); flex: none; background: #fff; border-inline-end: 1px solid var(--line); flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; overflow-y: auto; }
.an-i { position: relative; width: 64px; display: grid; justify-items: center; gap: 4px; padding: 9px 2px 8px; border-radius: 12px; color: var(--ink2); font: 600 10.5px/1.2 var(--font); text-decoration: none; border: 0; background: none; cursor: pointer; text-align: center; }
.an-i svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.an-i svg.an-mark { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.an-i:hover { background: var(--hover); color: var(--navy); }
.an-i.active, .an-i[aria-pressed="true"] { background: var(--sel); color: var(--navy); }
.an-i:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.an-dot { position: absolute; top: 4px; right: 10px; background: var(--bad); color: #fff; border-radius: 999px; font-size: 10px; padding: 0 5px; }
.an-sp { flex: 1; }
.an-sub { width: var(--an-sub); flex: none; background: #fff; border-inline-end: 1px solid var(--line); flex-direction: column; overflow: hidden; }
.an-sub-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 8px 16px; flex: none; }
.an-sub-h b { font: 600 15px var(--display); color: var(--ink); }
.an-hide { border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; width: 30px; height: 30px; display: grid; place-items: center; }
.an-hide svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.an-hide:hover { background: var(--hover); color: var(--navy); }
.an-body { flex: 1; overflow-y: auto; padding: 0 10px 12px; display: flex; flex-direction: column; }
.an-body .rail-btn.active { background: var(--sel); box-shadow: none; }
.an-body .rail-foot { margin-top: auto; }
.an-body .rb-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.an-note { padding: 8px 10px; }
.an-phone { display: none; }
@media (min-width: 761px) {
  body.has-nav .topbar #menu-btn { display: none; }
  body.has-nav .drawer { position: fixed; inset: var(--an-top) auto 0 0; width: var(--nav-w); pointer-events: auto; z-index: 30; }
  body.has-nav .drawer-bg { display: none; }
  body.has-nav .drawer-panel { position: static; transform: none !important; width: 100%; height: 100%; display: flex; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; overflow: hidden; }
  body.has-nav.sub-hidden .an-sub { display: none; }
  body.has-nav #view { margin-inline-start: var(--nav-w); }
  body.has-nav .dock { left: calc(50% + var(--nav-w) / 2); }
  body.has-nav .mr-dock.mr-left { left: calc(var(--nav-w) + 12px); }
  body.has-nav.dock-left #view { margin-inline-start: calc(var(--nav-w) + min(424px, 100vw)); }
}
@media (max-width: 760px) {
  body.has-nav .drawer-panel { display: flex; padding: 0; width: auto; max-width: calc(100vw - 24px); }
  body.has-nav .an-sub { width: min(250px, calc(100vw - var(--an-rail) - 40px)); }
  .an-hide { display: none; }
  .an-phone { display: flex; }
  body.sub-hidden .an-sub { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .drawer-panel { transition: none !important; } }
.wbd-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wbd-list { display: grid; gap: 8px; margin-bottom: 14px; }
.wbd-list .wb-tile { width: 100%; text-align: start; cursor: pointer; font: inherit; }
body.has-nav .drawer-panel.appnav { flex-direction: row; align-items: stretch; gap: 0; }
@media (max-width: 760px) { body.has-nav .drawer-panel.appnav { top: 0; bottom: 0; left: 0; margin: 0; border-radius: 0 16px 16px 0; overflow: hidden; } body.has-nav .an-rail { padding-top: 16px; } }
@media (max-width: 760px) { body.has-nav .drawer:not(.open) .drawer-panel { visibility: hidden; } }
/* with the side menu the page is narrower: wide admin tables scroll inside themselves, never the page */
body.has-nav .adm-tbl, body.has-nav .cr-tbl { display: block; max-width: 100%; overflow-x: auto; }
body.has-nav .tbl-scroll { max-width: 100%; overflow-x: auto; }
/* D-128: inside its box the table stays a table (the box scrolls and takes the keyboard focus, not the table) */
body .tbl-scroll > table.adm-tbl, body .tbl-scroll > table.cr-tbl { display: table; max-width: none; }
.tbl-scroll.tbl-wrap { margin-top: 0; }
body.has-nav #view { min-width: 0; }

/* ================================================================ Sprint 2: Studio library, chooser, recorder */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.st-tile { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; cursor: pointer; transition: border-color .12s, box-shadow .12s; text-align: start; padding: 0; font: inherit; color: var(--ink); min-width: 0; }
.st-tile:hover { border-color: #9DC3E6; box-shadow: 0 6px 18px -12px rgba(22,48,132,.4); }
.st-tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.st-thumb { aspect-ratio: 16/9; background: #EAF2FB; position: relative; display: grid; place-items: center; overflow: hidden; }
.st-thumb .st-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-thumb .mini { position: absolute; inset: 12% 10%; background: #fff; border-radius: 6px; box-shadow: 0 6px 16px -8px rgba(22,48,132,.35); }
.st-thumb .mini:before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22%; background: var(--rail); border-radius: 6px 0 0 6px; }
.st-thumb .mini:after { content: ""; position: absolute; left: 28%; right: 8%; top: 18%; height: 8px; border-radius: 4px; background: var(--line); box-shadow: 0 16px 0 var(--line), 0 32px 0 var(--line); }
.st-thumb .play { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(22,48,132,.6); }
.st-thumb .play svg { width: 15px; height: 15px; fill: #fff; stroke: none; margin-inline-start: 2px; }
.st-thumb .len { position: absolute; right: 8px; bottom: 8px; background: rgba(15,28,69,.75); color: #fff; border-radius: 6px; padding: 0 6px; font-size: 11.5px; font-family: var(--mono); }
.st-thumb .st-draft { position: relative; background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.st-tile-b { padding: 10px 12px 12px; display: grid; gap: 3px; min-width: 0; }
.st-tile-b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-empty { padding: 40px 0; max-width: 560px; }
.st-choice { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: start; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px 16px; cursor: pointer; margin-bottom: 10px; font: inherit; color: var(--ink2); }
.st-choice:hover:not(:disabled) { border-color: #9DC3E6; background: #FAFCFF; }
.st-choice:disabled { cursor: not-allowed; opacity: .8; background: var(--rail); }
.st-choice .ico { width: 40px; height: 40px; border-radius: 10px; background: #EAF2FB; display: grid; place-items: center; flex: none; }
.st-choice .ico svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-choice b { display: block; color: var(--ink); } .st-choice span.muted { font-size: 13px; }
.st-upl { margin: 4px 0 10px; } .st-upl .row { margin-bottom: 6px; }
.st-bar { height: 8px; border-radius: 999px; background: var(--rail); overflow: hidden; } .st-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.st-modal .st-title-in { width: 100%; font: 600 20px var(--display); color: var(--ink); border: 1px solid transparent; border-radius: 10px; padding: 4px 8px; margin: 0 0 10px; background: transparent; }
.st-modal .st-title-in:hover, .st-modal .st-title-in:focus { border-color: var(--line); background: #fff; }
.st-player-box { background: #0B1433; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.st-player-box video { width: 100%; height: 100%; display: block; background: #0B1433; }
.st-share { margin-top: 12px; gap: 10px; flex-wrap: wrap; }
.st-rec-page { max-width: 720px; }
.st-opt-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.st-rec-go { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

.st-count { font: 700 96px var(--display); color: var(--navy); text-align: center; padding: 18vh 0; }
.st-dock { z-index: 80; }
.st-dock.paused .recdot { background: var(--muted); }
.st-dock .st-net { color: #9A5B00; font-weight: 500; }
.st-dock .btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 640px) { .st-count { font-size: 72px; } .st-dock .live { padding: 0 6px; } }

/* ================================================================ Sprint 3: Studio editor (script and voice-over) */
.page.st-ed-page { max-width: 1240px; }
body.in-studio-ed .fab { display: none !important; }  /* the floating Sticky / Ask buttons would cover the editor */
.st-eyebrow { margin: 8px 0 0 46px; }
.st-ed-t { font: 600 22px/1.3 var(--display); color: var(--ink); margin: 0; min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.st-ed { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; margin-top: 18px; }
.st-main { min-width: 0; }
.st-stage { aspect-ratio: 16/9; border-radius: 14px; position: relative; overflow: hidden; background: linear-gradient(135deg, #163084, #2575BC 62%, #20A0D0); }
.st-screen { position: absolute; inset: 6%; border-radius: 10px; overflow: hidden; background: #0B1433; box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); }
.st-screen video { width: 100%; height: 100%; object-fit: contain; display: block; background: #0B1433; }
.st-cap { position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%); background: rgba(15,28,69,.84); color: #fff; border-radius: 8px; padding: 4px 12px; max-width: 86%; text-align: center; font-size: clamp(11px, 1.4vw, 14px); pointer-events: none; }
.st-ctl { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.st-ctl .btn svg { width: 13px; height: 13px; }
.st-ctl #st-play svg { fill: currentColor; stroke: none; }
.st-time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.st-src { min-width: 0; }
.st-trk { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 10px; margin: 5px 0; }
.st-trk b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.k-scr { background: var(--navy); } .k-hold { background: repeating-linear-gradient(135deg, #20A0D0 0 4px, #8ACFEA 4px 8px); }
.k-voice { background: var(--blue2); box-shadow: inset -1px 0 0 #fff; }
.st-side { border: 1px solid var(--line); border-radius: 16px; background: #fff; position: sticky; top: 76px; overflow: hidden; min-width: 0; }
.st-side .mtabs { margin: 0 !important; padding: 10px 10px 0; flex-wrap: wrap; gap: 4px; }
.st-side .mtabs button { white-space: nowrap; flex: none; }
.st-pane { padding: 14px 16px 18px; max-height: calc(100vh - 190px); overflow: auto; }
.st-pane .blk { margin-bottom: 18px; }
.st-pane .status-line { margin: 8px 0 !important; }
.st-sub { margin-bottom: 8px; }
.st-ib { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer; }
.st-ib svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.st-ib:hover:not(:disabled) { background: var(--hover); color: var(--navy); }
.st-ib:disabled { opacity: .4; cursor: default; }
.st-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.st-voices .chip-btn.off { opacity: .55; cursor: not-allowed; }
.st-vnote, .st-mine-note { margin: 8px 0 0; }
.st-job { margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); display: grid; gap: 6px; }
.st-soon { padding: 18px 4px; } .st-soon b { color: var(--navy); font-family: var(--display); }
@media (max-width: 1020px) { .st-ed { grid-template-columns: minmax(0, 1fr); } .st-side { position: static; } .st-pane { max-height: none; } }
@media (max-width: 760px) { .st-eyebrow { margin-inline-start: 0; } .st-trk { grid-template-columns: 50px minmax(0, 1fr); } .st-ed-t { font-size: 19px; } }

/* Studio (Sprint 4): music, welcome and end cards, the finished video */
.st-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.k-music { background: repeating-linear-gradient(90deg, #20A0D0 0 6px, #7CC8E6 6px 10px); }
.st-moods { display: grid; gap: 4px; }
.st-mood-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.st-trow { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: nowrap; }
.st-trow > .muted, .st-trow > .btn, .st-trow > .st-ib { flex: none; }
.st-trow .chip-btn { flex: 0 1 auto; display: block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.st-volrow input[type=range] { flex: 1 1 140px; min-width: 0; accent-color: var(--blue); }
.st-volv { font-family: var(--mono); min-width: 40px; }
.st-pane input[type=text], .st-pane input[type=url], .st-pane input[type=tel], .st-pane textarea { width: 100%; min-width: 0; border: 1px solid var(--line2); border-radius: 10px; padding: 7px 10px; background: #fff; font: inherit; color: var(--ink); }
.st-rights { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink2); margin-top: 6px; cursor: pointer; }
.st-rights b { color: var(--navy); }
.st-up-h { margin-top: 14px; }
.st-duck-note { color: #9A5B00; }
.st-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 6px; }
.st-way { border: 1px solid var(--line2); background: #fff; border-radius: 10px; padding: 8px 6px; font: inherit; font-size: 12.5px; color: var(--navy); cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.st-way.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.st-way:focus-visible, .st-opt:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.st-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.st-opt { padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: var(--rail); cursor: pointer; aspect-ratio: 16/9; min-width: 0; }
.st-opt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-opt.on { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(32,160,208,.25); }
.st-cardprev { width: 100%; height: auto; aspect-ratio: 16/9; display: block; border-radius: 10px; margin: 10px 0 4px; background: var(--rail); border: 1px solid var(--line); }
.st-fl { display: grid; gap: 3px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.st-cta { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); }
.st-len { flex-wrap: wrap; }
.st-final:empty { display: none; }
.st-final { margin-top: 10px; }
.st-findone { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.st-ed-page .mhead #st-final-btn { flex: none; }
@media (max-width: 420px) { .st-ways { grid-template-columns: minmax(0, 1fr); } }

/* Studio (Sprint 5): look, zooms, text, captions, sharing. Sizes on the stage are in 1080p pixels scaled to the
   stage (100cqw = the stage's width = 1920 px of the finished video), so the preview matches the export. */
.st-stage { container-type: inline-size; }
.st-stage .st-screen video { will-change: transform; }
.st-stage.final .st-screen { inset: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.st-ovt { position: absolute; inset: 0; pointer-events: none; }
.st-tg { position: absolute; display: flex; flex-direction: column; align-items: center; gap: calc(14 * 100cqw / 1920); }
.st-tg.p-top { top: 5.926%; left: 0; right: 0; }
.st-tg.p-center { top: 50%; left: 0; right: 0; transform: translateY(-50%); }
.st-tg.p-bottom { bottom: 14.26%; left: 0; right: 0; flex-direction: column-reverse; }
.st-tg.p-top-left { top: 5.926%; left: 3.333%; align-items: flex-start; }
.st-tg.p-top-right { top: 5.926%; right: 3.333%; align-items: flex-end; }
.st-tg.p-bottom-left { bottom: 14.26%; left: 3.333%; flex-direction: column-reverse; align-items: flex-start; }
.st-tg.p-bottom-right { bottom: 14.26%; right: 3.333%; flex-direction: column-reverse; align-items: flex-end; }
.st-tx { background: rgba(15,28,69,.86); color: #fff; font-weight: 700; line-height: 1.3; padding: .3em .55em; border-radius: .32em; max-width: calc(1400 * 100cqw / 1920); text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-tg[class*="-left"] .st-tx, .st-tg[class*="-right"] .st-tx { max-width: calc(860 * 100cqw / 1920); }
.st-tx.s-s { font-size: calc(40 * 100cqw / 1920); } .st-tx.s-m { font-size: calc(56 * 100cqw / 1920); } .st-tx.s-l { font-size: calc(80 * 100cqw / 1920); }
.st-stage .st-cap { font-size: calc(44 * 100cqw / 1920); font-weight: 700; line-height: 1.3; padding: .3em .55em; border-radius: .32em; max-width: calc(1500 * 100cqw / 1920); background: rgba(15,28,69,.86); bottom: 3.5%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.st-stage .st-cap[hidden] { display: none; }
.k-txt { background: #8ACFEA; } .k-zoom { background: #F2C14E; }
.st-zlist { display: grid; gap: 8px; margin-top: 8px; }
.st-zl { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 6px; min-width: 0; }
.st-zl-top { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; }
.st-zl-top > * { flex: none; } .st-zl-top > .spacer { flex: 1 1 0; min-width: 0; } .st-zl-top > .st-ai { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-zl .ts { font-family: var(--mono); font-size: 12px; color: var(--blue); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 6px; background: #fff; width: 70px; min-width: 0; }
.st-zl-b { display: flex; gap: 8px 12px; align-items: flex-end; flex-wrap: wrap; min-width: 0; }
.st-mini { display: grid; gap: 2px; font-size: 12px; color: var(--muted); min-width: 0; }
.st-mini select { border: 1px solid var(--line2); border-radius: 8px; padding: 5px 6px; background: #fff; font: inherit; font-size: 13px; color: var(--ink); }
.st-mini input[type=range] { width: 100%; accent-color: var(--blue); }
.st-grow { flex: 1 1 110px; }
.st-ai { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: #0A7AA8; background: #E6F5FB; border-radius: 6px; padding: 2px 6px; }
.st-addrow input[type=text] { flex: 1 1 160px; width: auto; }
.st-bgs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-colrow input[type=color] { width: 64px; height: 36px; border: 1px solid var(--line2); border-radius: 8px; padding: 2px; background: #fff; }
.st-volrow input[type=range]:disabled { opacity: .45; }
.st-shlv { flex-wrap: wrap; margin-top: 4px; }
.st-shh { margin-top: 16px; }
.st-share-modal .foot { flex-wrap: wrap; gap: 8px; }
.st-findone .btn svg { width: 14px; height: 14px; }
.st-zl .st-ib:focus-visible, .st-mini select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 520px) { .st-bgs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-zl .ts { width: 68px; } }

/* D-129: fields drawn without a border (titles, actions, minutes, board text) still show where the keyboard is */
.mt:focus-visible, .act input.txt:focus-visible, .act-add input:focus-visible, .doc input:focus-visible, .doc textarea:focus-visible,
.wb-text-in:focus-visible, .arow-due input[type=date]:focus-visible, .arow-txt:focus-visible, .ff-note textarea:focus-visible,
.nt-card textarea:focus-visible, .sk-card.edit textarea:focus-visible, .wb-note textarea:focus-visible, .toolbar .search input:focus-visible,
.a-toolbar .search input:focus-visible, .act .due:focus-visible, .act .who:focus-visible,
input[type=date]:focus-within, input[type=time]:focus-within, input[type=datetime-local]:focus-within { outline: 2px solid var(--cyan) !important; outline-offset: 2px; border-radius: 6px; }
.sec-box:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(32,160,208,.28); }

/* D-121 / D-122: a plain-words line while the connection is down or a recording waits to upload */
.net-banner { position: fixed; z-index: 90; top: calc(var(--an-top, 62px) + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px);
  background: var(--navy); color: #fff; border-radius: 10px; padding: 9px 14px 9px 34px; font-size: 13.5px; font-weight: 600; line-height: 1.4; box-shadow: 0 10px 28px -10px rgba(22,48,132,.6); }
.net-banner::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #FFD43B; }
.net-banner.rec::before { background: #ff8a8d; }
.offline-page { text-align: center; padding: 32px 22px; margin-top: 24px; }
.offline-page h1 { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.offline-page p { color: var(--ink2); margin: 0 auto 18px; max-width: 420px; }

/* D-124 / D-125: the end of a long list: how many are shown, and a button for the next ones */
.list-more { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 18px 0 8px; }

/* Studio, owner feedback 2026-11-26: the editor as steps, Original | Final video, quality, full screen, Final badge */
.st-steps { margin-top: 16px; }
.st-stepl { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; position: relative; }
.st-step { display: flex; align-items: center; gap: 8px; min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 7px 9px; cursor: pointer; font: inherit; color: var(--ink); text-align: start; }
.st-step:hover { border-color: #9DC3E6; }
.st-step:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.st-step.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.st-stno { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--display); background: var(--rail); color: var(--navy); border: 1px solid var(--line2); }
.st-step.on .st-stno { background: var(--navy); color: #fff; border-color: var(--navy); }
.st-step[data-state=done] .st-stno { background: #E6F5FB; color: #0A6A92; border-color: #9ED6EC; }
.st-step.on[data-state=done] .st-stno { background: var(--navy); color: #fff; }
.st-stx { display: grid; min-width: 0; line-height: 1.25; }
.st-stn { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.st-sts { font-size: 11.5px; color: var(--muted); }
.st-step[data-state=done] .st-sts { color: #0A6A92; font-weight: 600; }
.st-step[data-state=done] .st-sts::before { content: "✓ "; }
.st-step[data-state=skipped] .st-sts { font-style: italic; }
.st-viewbar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 10px; min-width: 0; }
.st-view button { font-size: 13.5px; padding: 6px 14px; }
.st-ftag { color: var(--ink2); min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-stale-tag { color: #8a5a00; background: #FFF4DB; border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.st-ctlx { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.st-ctlx .btn svg { width: 14px; height: 14px; }
.st-src { margin-top: 6px; }
.st-fnote { margin: 8px 0 0 !important; }
.st-fsbox { position: relative; }
.st-fsbar { display: none; }
.st-fsbox:fullscreen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #000; padding: 0; }
.st-fsbox:-webkit-full-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #000; padding: 0; }
.st-fsbox:fullscreen .st-stage { width: min(100vw, calc((100vh - 56px) * 16 / 9)); border-radius: 0; }
.st-fsbox:-webkit-full-screen .st-stage { width: min(100vw, calc((100vh - 56px) * 16 / 9)); border-radius: 0; }
.st-fsbox:fullscreen .st-fsbar { display: flex; gap: 8px; }
.st-fsbox:-webkit-full-screen .st-fsbar { display: flex; gap: 8px; }
.st-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.st-nav:empty { display: none; }
.st-miss { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.st-miss li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-left: 3px solid #E0A21B; border-radius: 10px; padding: 8px 10px; flex-wrap: wrap; }
.st-miss-t { display: grid; gap: 2px; flex: 1 1 180px; min-width: 0; }
.st-allok { color: #0A6A92; font-weight: 600; }
.st-qs { display: grid; gap: 6px; margin-top: 6px; }
.st-q { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; text-align: start; border: 1px solid var(--line2); background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.st-q b { grid-column: 1; }
.st-q > span:nth-of-type(1) { grid-column: 1; }
.st-q .st-qsz { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--navy); font-weight: 600; }
.st-q.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: #F5F8FE; }
.st-q:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.st-credits { background: #E6F5FB; color: #0B4F6C; border-radius: 10px; padding: 8px 10px; }
.st-check-modal .st-miss { margin-bottom: 12px; }
.st-check-modal .foot { flex-wrap: wrap; gap: 8px; }
.sw-row.off { opacity: .55; cursor: not-allowed; }
.st-shdl { margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--line); }
.st-tile { cursor: default; display: flex; flex-direction: column; }
.st-tile-open { display: block; width: 100%; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.st-tile-open:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.st-tile-x { display: flex; align-items: center; gap: 6px; padding: 0 10px 10px; margin-top: -4px; }
.st-tile-x .btn svg { width: 14px; height: 14px; }
.st-fbadge { position: absolute; left: 8px; top: 8px; background: var(--navy); color: #fff; border-radius: 6px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.st-modal .st-viewbar { margin-bottom: 8px; }
@media (max-width: 1100px) { .st-stepl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .st-stepl { gap: 4px; }
  .st-step { flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 7px; }
  .st-stn { font-size: 12px; }
  .st-sts { font-size: 11px; }
  .st-ctl .btn { padding-inline: 10px; }
  .st-nav { padding: 10px 12px 12px; }
}

/* Studio, owner feedback (studio-ui3): script lines that grow to fit, a time chip, one row of controls; a timeline
   whose blocks open what they are, a playhead that can be dragged (mouse and touch) */
.st-lines { display: grid; gap: 8px; margin-top: 12px; }
.st-line { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 6px 8px 6px 10px; transition: border-color .12s, box-shadow .12s, background .12s; min-width: 0; }
.st-line:hover { border-color: var(--line2); }
.st-line:focus-within { border-color: #9DC3E6; box-shadow: 0 0 0 3px rgba(32,160,208,.16); }
.st-line.now { background: #F3F9FD; border-color: #9ED6EC; }
.st-line.now::before { content: ""; position: absolute; inset-inline-start: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--cyan); }
.st-line.sel { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.st-line.sel:focus-within { box-shadow: 0 0 0 1px var(--navy), 0 0 0 4px rgba(32,160,208,.18); }
.st-lh { display: flex; align-items: center; gap: 8px; min-height: 28px; min-width: 0; }
.st-lh > .spacer { flex: 1 1 0; min-width: 0; }
.st-tchip { flex: none; font: 500 11.5px/1 var(--mono); color: var(--blue-t); background: #EAF2FB; border: 1px solid transparent; border-radius: 999px; padding: 5px 9px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.st-tchip:hover { background: #DCEBF8; border-color: #9DC3E6; }
.st-tchip:focus-visible, .st-tin:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.st-line.now .st-tchip, .st-line.sel .st-tchip { background: var(--navy); color: #fff; }
.st-tin { flex: none; width: 88px; font: 500 12px/1 var(--mono); color: var(--blue-t); border: 1px solid var(--cyan); border-radius: 999px; padding: 5px 9px; background: #fff; }
.st-lno { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.st-lb { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.st-lb .st-ib { width: 28px; height: 28px; }
.st-lb .st-ibx { margin-inline-start: 12px; position: relative; }  /* D-207: Delete stands apart from ▶ and «…» */
.st-lb .st-ibx::before { content: ""; position: absolute; inset-inline-start: -7px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.toast.toast-act { display: flex; align-items: center; gap: 14px; }
.toast-btn { border: 0; background: none; color: #9FD8F0; font: inherit; font-weight: 700; cursor: pointer; padding: 4px 6px; border-radius: 6px; text-decoration: underline; }
.toast-btn:hover { color: #fff; } .toast-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.st-lb .st-ib[aria-pressed=true] { color: #fff; background: var(--navy); }
.st-ib:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.st-ibx:hover:not(:disabled) { color: var(--bad-t); background: var(--badbg); }
.st-pane .st-line textarea { display: block; width: 100%; min-width: 0; border: 0; border-radius: 6px; background: transparent; padding: 3px 2px 2px; margin-top: 2px;
  resize: none; overflow: hidden; font: inherit; font-size: 14.5px; line-height: 1.5; color: var(--ink); min-height: 0; }
.st-pane .st-line textarea:focus, .st-pane .st-line textarea:focus-visible { outline: none !important; box-shadow: none; }
.st-line textarea:disabled, .st-line .st-tchip:disabled { opacity: .6; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .st-line .st-lb { opacity: 0; transition: opacity .12s; }
  .st-line:hover .st-lb, .st-line:focus-within .st-lb, .st-line.now .st-lb, .st-line.sel .st-lb, .st-lb:has([aria-pressed=true]) { opacity: 1; }
}
.st-rwh { margin-top: 16px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.st-rwh + .st-row { margin-top: 6px; }
.st-hint { margin-top: 12px; }
.st-pane textarea { resize: none; }
.st-zl { transition: border-color .12s, box-shadow .12s; }
.st-zl:focus { outline: none; } .st-zl:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.st-zl.sel { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: #F8FBFF; }

.st-tl { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px 10px; background: #fff; position: relative; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.st-tl.drag, .st-tl.drag * { cursor: ew-resize !important; }
.st-trk { margin: 6px 0; }
.st-lane { position: relative; height: 22px; background: var(--canvas); border-radius: 6px; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px #E6ECF6; isolation: isolate; }  /* D-211: the blocks' order stays inside the lane, under the playhead */
.st-blk { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; min-width: 3px; }
.st-blk.k-voice { min-width: 0; }  /* D-211: its width is set to reach the next line at most; nothing adds to it */
.st-hit { cursor: pointer; display: flex; align-items: center; overflow: hidden; transition: filter .12s, box-shadow .12s; }
.st-hit > span { display: block; min-width: 0; padding: 0 6px; font: 600 10.5px/18px var(--font); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.st-hit:hover { filter: brightness(1.1) saturate(1.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); z-index: 1; }
.st-hit:focus { outline: none; }
.st-hit:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan), inset 0 0 0 3px #fff; z-index: 2; }
.st-hit.sel { top: 0; bottom: 0; box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3px #fff; z-index: 2; }
.st-hit.sel:focus-visible { box-shadow: inset 0 0 0 2px var(--cyan), inset 0 0 0 4px #fff; }
.k-voice.now { background: var(--navy); }  /* D-208: the lit line, white text 11.7:1 (cyan was 3:1) */
.k-txt > span { color: #0B3F57; } .k-zoom > span { color: #4A3200; }
.k-music > span { text-shadow: 0 1px 1px rgba(15,28,69,.45); }
.k-card { background: #16759E; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }  /* D-208: a darker cyan, white text 5.2:1 */
.k-card > span { text-shadow: 0 1px 1px rgba(15,28,69,.35); }
/* D-216: the playhead is a 2 px line that clicks go through; only its handle at the top, above the lanes, is grabbed */
.st-ph { position: absolute; top: 2px; height: 16px; left: 84px; width: 16px; margin-left: -8px; z-index: 3; cursor: ew-resize; touch-action: none; background: none; border-radius: 4px; }
.st-ph::after { content: ""; position: absolute; top: 12px; height: 2000px; left: 7px; width: 2px; border-radius: 2px; background: var(--rec); box-shadow: 0 0 0 1px rgba(255,255,255,.7); pointer-events: none; }
.st-ph::before { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(15,28,69,.35); transition: transform .12s; }
.st-ph:hover::before, .st-tl.drag .st-ph::before { transform: scale(1.2); }
.st-ph:focus { outline: none; } .st-ph:focus-visible::before { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cyan); }
.st-tip { position: fixed; z-index: 75; max-width: min(320px, calc(100vw - 16px)); background: #0f1c45; color: #fff; font-size: 12px; line-height: 1.4; padding: 6px 9px; border-radius: 8px; pointer-events: none; box-shadow: 0 8px 22px -10px rgba(15,28,69,.6); overflow-wrap: anywhere; }
.st-tip[hidden] { display: none; }
@media (max-width: 760px) { .st-lane { height: 26px; } .st-hit > span { line-height: 22px; } .st-ph { width: 24px; margin-left: -12px; } .st-ph::after { left: 11px; } .st-ph::before { left: 7px; } }

/* the editor's frame: a clearer chosen step, one look for the panel's sections and the player bar */
.st-step { transition: border-color .12s, background .12s, box-shadow .12s; }
.st-step.on { background: #F5F8FE; }
.st-step.on .st-stn { color: var(--navy); }
.st-pane .blk + .blk { padding-top: 16px; border-top: 1px solid var(--line); }
.st-pane .blk-h { margin-bottom: 6px; }
.st-time { padding: 3px 8px; border-radius: 999px; background: var(--canvas); color: var(--ink2); }
