/* YesMeet! website. Same palette and type as the apps (apps/extension/public/pages.css):
   paper and ink, one forest green for actions, red only for "recording", and a soft
   highlighter that only ever marks what the AI pulled out of a conversation.
   Headings are Noto Serif Thai; everything else IBM Plex Sans Thai. Light only. */
@import url("fonts/fonts.css");

:root {
  --paper: #f8f7f3;
  --surface: #ffffff;
  --sunken: #f1efe9;
  --line: #e6e3dc;
  --line-strong: #d3cfc5;
  --ink: #15171a;
  --ink-2: #464b52;
  --muted: #767b82;
  --brand: #0b5e48;
  --brand-strong: #084a39;
  --brand-ink: #ffffff;
  --brand-soft: #e7f0ec;
  --brand-text: #0b5e48;
  --live: #d6453d;
  --hl: #f2efa4;
  --hl-ink: #15171a;
  --warn-soft: #fbf1df;
  --warn-ink: #7a4a06;
  --danger: #b8322b;
  --shadow: 0 1px 0 rgba(21, 23, 26, 0.04), 0 30px 60px -30px rgba(21, 23, 26, 0.25);
  --font: "IBM Plex Sans Thai", "Leelawadee UI", "Noto Sans Thai", "Segoe UI", system-ui, sans-serif;
  --serif: "Noto Serif Thai", "Leelawadee UI", serif;
  --wrap: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.3; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.005em; }
p { margin: 0; }
a { color: var(--brand-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* The highlighter: a hand-drawn-ish marker stroke behind text. */
.hl, mark {
  color: var(--hl-ink);
  background: linear-gradient(transparent 12%, var(--hl) 12%, var(--hl) 88%, transparent 88%);
  border-radius: 2px;
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 500 15px/1.3 var(--font);
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 999px;
  white-space: nowrap; transition: background 0.15s, border-color 0.15s;
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--sunken); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.danger.ghost { border-color: transparent; }
.btn.danger.ghost:hover { background: #fbeceb; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn .i { width: 18px; height: 18px; flex: none; }
.btn.small { min-height: 36px; padding: 6px 16px; font-size: 14px; }

/* ---------- header / footer ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--sunken); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { margin-left: 8px; border-radius: 999px; padding: 6px 18px; }
@media (max-width: 720px) {
  .top .wrap { gap: 12px; }
  .nav a.opt { display: none; }
}

.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; }
.foot .logo { font-size: 17px; }
.foot .logo svg { width: 24px; height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot .fine { flex-basis: 100%; }

/* ---------- home: hero ---------- */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.22; }
.hero .lede { margin-top: 24px; font-size: 19px; line-height: 1.75; color: var(--ink-2); max-width: 30em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}

/* The meeting record: what was said on the left, what it became on the right. The one
   orchestrated moment: the highlighter marks what was decided, then the summary fills in. */
.record { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.record-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.record-head strong { color: var(--ink); font-weight: 600; font-size: 14px; }
.record-head .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--live); font-variant-numeric: tabular-nums; }
.record-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.record-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.talk { padding: 18px 20px 22px; border-right: 1px solid var(--line); font-size: 14px; line-height: 1.65; }
.talk p + p { margin-top: 12px; }
.talk .who { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--muted); }
.talk .who b { color: var(--ink); font-weight: 600; font-size: 13px; }
.talk time { font-variant-numeric: tabular-nums; }
.talk mark { background-size: 0% 100%; background-repeat: no-repeat; animation: mark 0.7s cubic-bezier(0.6, 0, 0.2, 1) 0.8s forwards; }
.talk p:last-child mark:nth-of-type(1) { animation-delay: 1.4s; }
.talk p:last-child mark:nth-of-type(2) { animation-delay: 1.8s; }
@keyframes mark { to { background-size: 100% 100%; } }
.sum { padding: 18px 20px 22px; background: #fcfbf8; font-size: 14px; line-height: 1.6; }
.sum h3 { font-family: var(--serif); font-size: 17px; }
.sum h4 { margin: 16px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sum ul { margin: 0; padding: 0; list-style: none; }
.sum li { display: flex; gap: 10px; padding: 5px 0; opacity: 0; animation: rise 0.5s ease 2.2s forwards; }
.sum ul + h4 + ul li:nth-of-type(1) { animation-delay: 2.4s; }
.sum ul + h4 + ul li:nth-of-type(2) { animation-delay: 2.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.sum .box { flex: none; width: 15px; height: 15px; margin-top: 3px; border: 1.5px solid var(--line-strong); border-radius: 4px; }
.sum b { font-weight: 600; }
.sum .due { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .talk mark { animation: none; background-size: 100% 100%; }
  .sum li { animation: none; opacity: 1; }
  .record-head .live::before { animation: none; }
}
@media (max-width: 560px) {
  .record-body { grid-template-columns: 1fr; }
  .talk { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- home: sections ---------- */
.section { padding: 120px 0 0; }
@media (max-width: 800px) { .section { padding-top: 88px; } }
.section > .wrap > h2, .sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 22em; }
.sec-head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 36em; }

.apps .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.apps strong { color: var(--ink-2); font-weight: 400; font-size: 15px; }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1; color: var(--brand); margin-bottom: 18px; }
.steps h3 { font-size: 21px; }
.steps p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.where { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.where h3 { font-family: var(--serif); font-size: 24px; }
.where .for { margin-top: 6px; color: var(--muted); font-size: 15px; }
.where ul { margin: 18px 0 0; padding: 0; list-style: none; }
.where li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.where li svg { width: 20px; height: 20px; margin-top: 4px; color: var(--brand); }
.where .btn { margin-top: 20px; }

.formats { margin-top: 120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.formats h2 { font-size: clamp(30px, 3.6vw, 44px); }
.formats-text > p { margin-top: 14px; color: var(--ink-2); font-size: 17px; max-width: 32em; }
.formats-text .formats-note { font-size: 15px; color: var(--muted); margin-top: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tabs button { font: 500 14.5px/1.3 var(--font); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.tabs button:hover { border-color: var(--ink-2); color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.doc { background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 32px 36px; font-size: 14px; line-height: 1.75; min-height: 360px; }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 8px; }
.doc ul { margin: 4px 0 0; padding-left: 20px; }
.doc .doc-title { text-align: center; font-weight: 700; font-size: 16px; }
.doc .doc-meta { text-align: center; color: #444; }
.doc .doc-h { margin-top: 18px; font-weight: 700; }
.doc .doc-sub { font-weight: 600; }
.doc .doc-sub { margin-top: 12px; }
@media (max-width: 800px) { .formats { grid-template-columns: 1fr; gap: 28px; } .doc { padding: 24px 20px; min-height: 0; } }

.private { margin-top: 120px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.private h2 { font-size: clamp(30px, 3.6vw, 44px); }
.private p { color: var(--ink-2); margin-top: 16px; font-size: 18px; }
.private dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; align-content: start; }
.private dt { font-weight: 600; font-size: 17px; }
.private dd { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 800px) { .private { grid-template-columns: 1fr; gap: 32px; } .private dl { grid-template-columns: 1fr; gap: 24px; } }

.faq { margin-top: 32px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }

.closing { margin-top: 140px; text-align: center; }
.closing h2 { font-size: clamp(32px, 4.4vw, 54px); }
.closing .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------- pricing ---------- */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-head p { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 34em; }

.period { display: inline-flex; margin-top: 28px; padding: 4px; background: var(--sunken); border-radius: 999px; gap: 4px; }
.period button { font: 600 14px/1.3 var(--font); border: 0; background: transparent; color: var(--ink-2); padding: 8px 18px; border-radius: 999px; cursor: pointer; min-height: 38px; }
.period button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.period small { color: var(--brand-text); font-weight: 600; }

.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 0; margin-top: 28px; align-items: stretch; }
.plan { padding: 32px 28px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); }
.plan:first-child { border-radius: 16px 0 0 16px; border-right: 0; }
.plan:last-child { border-radius: 0 16px 16px 0; border-left: 0; }
.plan.pro { border: 1.5px solid var(--brand); border-radius: 16px; margin: -14px 0; padding: 46px 32px; position: relative; z-index: 1; box-shadow: var(--shadow); }
.plan h2 { font-size: 24px; }
.plan .for { color: var(--muted); font-size: 15px; margin-top: 4px; min-height: 3.4em; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 15px; }
.price-note { font-size: 14px; color: var(--muted); min-height: 1.7em; margin-top: 2px; }
.plan.pro .price-note { color: var(--brand-text); }
.plan .btn { margin-top: 22px; width: 100%; }
.plan ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.plan li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--brand); }
.plan li.no { color: var(--muted); }
.plan li.no svg { color: var(--muted); }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan, .plan:first-child, .plan:last-child { border: 1px solid var(--line); border-radius: 16px; }
  .plan.pro { border: 1.5px solid var(--brand); }
  .plan.pro { margin: 0; padding: 32px 28px; }
}

.compare { margin-top: 72px; }
.compare h2 { font-size: 26px; }
.table-scroll { overflow-x: auto; margin-top: 20px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 15px; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 500; color: var(--ink-2); width: 34%; }
.compare td { font-variant-numeric: tabular-nums; }
.compare .grp th { padding-top: 28px; font-weight: 700; color: var(--ink); border-bottom-color: var(--line-strong); }
.compare .muted { color: var(--muted); }

.explain { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; max-width: 920px; }
.explain h3 { font-size: 18px; }
.explain p { margin-top: 6px; color: var(--ink-2); }
@media (max-width: 800px) { .explain { grid-template-columns: 1fr; } }

/* ---------- download ---------- */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
@media (max-width: 800px) { .dl { grid-template-columns: 1fr; } }
.dl .where .req { margin-top: 18px; font-size: 14px; color: var(--muted); }
.soon { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--warn-ink); background: var(--warn-soft); padding: 6px 10px; border-radius: 8px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.legal h2 { font-size: 22px; margin-top: 44px; }
.legal h3 { font-size: 17px; margin-top: 24px; }
.legal p, .legal ul, .legal table { margin-top: 12px; color: var(--ink-2); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.legal th { color: var(--ink); }
.legal .lang { margin-top: 20px; font-size: 15px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 64px 0 0; }

/* ---------- account ---------- */
.acct { max-width: 760px; }
.signin { max-width: 440px; margin: 48px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.signin h1 { font-size: 26px; }
.signin p { margin-top: 8px; color: var(--ink-2); }
.field { display: grid; gap: 6px; margin-top: 20px; }
.field label { font-weight: 600; font-size: 14px; }
.field input {
  font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 14px; min-height: 46px; width: 100%;
}
.field input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field input.code { font-size: 24px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.signin .btn { width: 100%; margin-top: 16px; }
.signin .btn.google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #c7c7c7; margin-top: 20px; }
.signin .btn.google:hover { background: #f7f8f8; }
.signin .or { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; font-size: 14px; color: var(--muted); }
.signin .or::before, .signin .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.signin .alt { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.linkbtn { font: inherit; color: var(--brand-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.msg { margin-top: 14px; font-size: 14px; padding: 10px 12px; border-radius: 8px; background: var(--warn-soft); color: var(--warn-ink); }
.msg.ok { background: var(--brand-soft); color: var(--brand-text); }

.acct-head { padding: 48px 0 0; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.acct-head h1 { font-size: 36px; }
.acct-head .who { color: var(--muted); margin-top: 4px; word-break: break-all; }
.acct-head .btn { margin-left: auto; }
.banner { margin-top: 24px; }

.block { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.block > h2 { font-size: 18px; }
.block > p.sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .block { padding: 22px 18px; } }

.planline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--sunken); color: var(--ink); }
.badge.pro { background: var(--brand-soft); color: var(--brand-text); }
.planline .renew { color: var(--muted); font-size: 15px; }
.planline .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.meters { display: grid; gap: 22px; margin-top: 24px; }
.meter .top-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.meter .top-row b { font-weight: 600; }
.meter .top-row span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meter .track { margin-top: 8px; height: 6px; background: var(--sunken); border-radius: 999px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--brand); border-radius: 999px; width: 0; transition: width 0.6s ease; }
.meter.full .fill { background: var(--live); }
.meter p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.bonus { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--brand-text); }
.unlimited { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }

.rows { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row:first-child { border-top: 0; }
.row div { flex: 1 1 260px; }
.row b { font-weight: 600; }
.row p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

.confirm { margin-top: 12px; padding: 16px; border-radius: 12px; background: var(--sunken); }
.confirm .field { margin-top: 8px; }
.confirm .btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.invite-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.invite-row input { flex: 1 1 240px; font: 400 15px/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.invite-stats { margin-top: 10px; font-size: 14px; color: var(--muted); }
.hero .invite { margin-top: 16px; max-width: 30em; }

.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* ---------- 404 ---------- */
.lost { padding: 96px 0 0; max-width: 560px; }
.lost h1 { font-size: 40px; }
.lost p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.lost .btn { margin-top: 24px; }

/* Shared summary (/s/<id>, template src/pages/share.html) */
.share { max-width: 820px; }
.share-doc, .share-missing { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px 40px; }
.share-kicker { color: var(--brand-text); font-weight: 600; font-size: 14px; }
.share-doc h1 { font-size: 34px; margin-top: 6px; line-height: 1.35; }
.share-meta { color: var(--muted); font-size: 15px; margin-top: 8px; }
.share-doc .md { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 8px; }
.md h2, .md h3, .md h4 { margin-top: 30px; font-family: var(--font); font-size: 16px; font-weight: 600; color: var(--ink); }
.md p { margin-top: 10px; }
.md ul { margin: 10px 0 0 22px; }
.md li { margin-top: 6px; }
.md li.task { list-style: none; margin-left: -22px; }
.md li.task input { pointer-events: none; margin-right: 6px; accent-color: var(--brand); }
.md code { background: var(--sunken); border-radius: 5px; padding: 1px 5px; font-size: 0.92em; }
.share-transcript { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 18px; }
.share-transcript summary { cursor: pointer; font-weight: 600; }
.share-transcript pre { margin-top: 14px; white-space: pre-wrap; font: inherit; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.share-missing { text-align: center; padding: 56px 32px; }
.share-missing p { margin: 10px auto 22px; color: var(--ink-2); max-width: 30em; }
.share-cta { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--brand-soft); border-radius: 16px; padding: 22px 26px; }
.share-cta div { flex: 1 1 280px; }
.share-cta p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
@media (max-width: 560px) { .share-doc, .share-missing { padding: 26px 20px; } .share-doc h1 { font-size: 24px; } }
@media print { .top, .foot, .share-cta, .skip { display: none; } .share-doc { border: 0; padding: 0; } }

/* Shared links on /account */
.share-list .row a.title { font-weight: 600; text-decoration: none; color: var(--ink); }
.share-list .row a.title:hover { text-decoration: underline; }
.share-list .btns { display: flex; gap: 8px; }
.share-empty { color: var(--muted); font-size: 15px; margin-top: 12px; }

/* Admin (/admin) */
.adm { max-width: 1080px; }
.adm-gate { max-width: 440px; margin: 64px auto 0; text-align: center; }
.adm-gate p { margin: 10px 0 20px; color: var(--ink-2); }
.adm-head { margin-top: 40px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.adm-head .who { color: var(--muted); }
.adm-stats { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.adm-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.adm-stat span { color: var(--muted); font-size: 14px; }
.adm-stat b { font-size: 24px; font-weight: 600; }
.adm-stat small { color: var(--muted); font-size: 13px; }
.adm-search { display: flex; gap: 8px; margin-top: 14px; }
.adm-search input { flex: 1; }
.adm-table-wrap { overflow-x: auto; margin-top: 10px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.adm-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.adm-table .linkbtn { text-align: left; }
.adm-empty { color: var(--muted); margin-top: 12px; }
.adm-user h3 { margin-top: 28px; font-size: 16px; }
.adm-user-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.adm-sub { color: var(--brand-text); font-weight: 600; margin-top: 2px; }
.adm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-top: 16px; font-size: 15px; }
.adm-facts dt { color: var(--muted); }
.adm-actions { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.adm-act { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.adm-act.wide { grid-column: 1 / -1; }
.adm-act p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.adm-act textarea { width: 100%; margin-top: 8px; }
.adm-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.adm-row input[type=number] { width: 96px; }
.adm-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.adm-promo-form { margin-top: 14px; }
.adm-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; margin: 12px 0; }
.adm-field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); border: 0; padding: 0; margin: 0; min-width: 0; }
.adm-field legend { padding: 0; margin-bottom: 6px; }
.adm-field input:not([type=checkbox]), .adm-field select { color: var(--ink); }
.adm-row.tight { margin-top: 0; }
.adm-promo-sum { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--sunken); color: var(--ink); font-size: 14.5px; }
.adm-off { color: var(--muted); }
/* Cost section (admin.js loadCosts) */
.adm-cost-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#costs h3 { margin-top: 22px; }
#costs .adm-stats { margin-top: 14px; }
.adm-stat.alert { border-color: var(--danger); }
.adm-stat.alert b { color: var(--danger); }
.adm-legend { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 4px; }
.adm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; }
.adm-legend i.free, .adm-bar .free { background: color-mix(in srgb, var(--brand) 45%, transparent); }
.adm-legend i.paid, .adm-bar .paid { background: var(--brand); }
.adm-bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-top: 10px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.adm-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column-reverse; }
.adm-bar span { display: block; width: 100%; }
.adm-bar .paid { border-radius: 0 0 2px 2px; }
.adm-bar:hover { outline: 1px solid var(--line); }
.adm-cost-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; }
#costForm { margin-top: 22px; }
.adm-flag { color: var(--danger); font-weight: 600; }

/* Workspace (/workspace): a quiet list grouped by day on the left, the meeting as a document on the right. */
.ws { max-width: 1680px; }
.ws-gate { max-width: 480px; margin: 72px auto 0; text-align: center; }
.ws-gate h1 { font-size: 40px; }
.ws-gate p { margin: 12px 0 22px; color: var(--ink-2); }
.ws-head { margin-top: 32px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ws-head h1 { font-size: 34px; }
.ws-head .who { color: var(--muted); margin-top: 2px; font-size: 14px; }
.ws-tabs { display: flex; gap: 4px; background: var(--sunken); border-radius: 999px; padding: 4px; }
.ws-tab { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--ink-2); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.ws-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.ws-sync { margin-top: 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.ws-sync div { flex: 1 1 320px; }
.ws-sync p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.ws-body { margin-top: 20px; display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: clip; }
.ws-list { border-right: 1px solid var(--line); position: sticky; top: 72px; max-height: calc(100vh - 72px); overflow: auto; align-self: stretch; }
.ws-tools { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.ws-filters { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ws-chips { display: flex; gap: 4px; }
.chip { font: 400 13px/1 var(--font); height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ws-filters select { font: 400 13px/1 var(--font); height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); }
.ws-check.small, .linkbtn.small { font-size: 13px; margin-top: 0; color: var(--ink-2); }
.ws-pickbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--sunken); font-size: 13px; }
.ws-pickbar span { margin-right: auto; }
.ws-list li.picking { display: grid; grid-template-columns: 36px 1fr; align-items: start; border-bottom: 1px solid var(--line); }
.ws-list li.picking .ws-item { border-bottom: 0; padding-left: 4px; }
.ws-list .pick { margin: 16px 0 0 16px; width: 16px; height: 16px; accent-color: var(--brand); }
.ws-short { font-size: 12px; color: var(--muted); padding: 12px 20px 0; }
.ws-search input { width: 100%; font: 400 14px/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; min-height: 40px; }
.ws-search input:focus { outline: 2px solid var(--brand); outline-offset: 0; }
.ws-list ul { list-style: none; margin: 0; padding: 0 0 8px; }
.ws-day { position: sticky; top: 0; z-index: 1; padding: 14px 20px 6px; font-size: 12px; color: var(--muted); background: var(--surface); }
.ws-item { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 12px 20px 13px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.ws-item:hover { background: #fbfaf7; }
.ws-item.on { background: #f6f5f0; }
.ws-item.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.ws-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ws-item b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-item .when { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ws-item .meta { grid-column: 1 / -1; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 0 10px; }
.ws-item .nosum { color: var(--warn-ink); }
.ws-item .snip { grid-column: 1 / -1; color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 500; padding: 0 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-text); vertical-align: 1px; }
.ws-limit { font-size: 13px; color: var(--ink-2); background: var(--sunken); padding: 10px 20px; }
.ws-empty { color: var(--muted); font-size: 14px; padding: 20px; }
.ws-detail { padding: 40px 56px 64px; min-height: 480px; background: var(--paper); align-self: stretch; }
.ws-detail > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.ws-detail h2 { font-size: 30px; line-height: 1.35; }
.ws-title { display: flex; align-items: flex-start; gap: 6px; }
.ws-title .icon-btn { flex: none; margin-top: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.ws-title .icon-btn:hover { background: var(--sunken); color: var(--ink); }
.ws-title .icon-btn svg { width: 18px; height: 18px; }
.ws-rename { width: 100%; font: 600 26px/1.35 var(--serif); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 4px 10px; }
.ws-sumbox { margin-top: 20px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ws-box-title { font-weight: 600; margin-bottom: 10px; }
.ws-formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; }
.ws-formats .fmt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.ws-formats .fmt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ws-formats .fmt.locked { opacity: 0.55; cursor: not-allowed; }
.ws-formats input { margin-top: 5px; accent-color: var(--brand); }
.ws-formats b { display: block; font-weight: 500; font-size: 14px; }
.ws-formats small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ws-cost { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ws-cost strong { color: var(--ink); }
.ws-box-btns { display: flex; gap: 8px; margin-top: 12px; }
.small { font-size: 13px; }
.ws-nosum { padding: 28px 24px; margin-top: 8px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 14px; }
.ws-nosum p:first-child { color: var(--ink); font-weight: 500; }
.ws-askbox { padding-top: 24px; border-top: 1px solid var(--line); }
.ws-askbox h3 { font-size: 16px; margin-bottom: 12px; }
.ws-qa .q { display: inline-block; max-width: 90%; margin: 4px 0 6px; padding: 8px 14px; border-radius: 12px 12px 12px 4px; background: var(--brand-soft); color: var(--brand-text); }
.ws-qa .a { margin-bottom: 16px; white-space: pre-wrap; color: var(--ink-2); }
.ws-ask .field { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 4px 4px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.ws-ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); min-height: 36px; }
.ws-detail .md h2, .ws-detail .md h3, .ws-detail .md h4 { margin-top: 30px; font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.ws-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.ws-detail .md { margin-top: 28px; padding-top: 4px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.ws-placeholder { color: var(--muted); }
.ws-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.ws-lines { list-style: none; padding: 0; margin: 12px 0 0; font-size: 15px; }
.ws-lines li { display: grid; grid-template-columns: 64px max-content 1fr; gap: 10px; padding: 7px 8px; border-bottom: 1px solid var(--line); border-radius: 6px; scroll-margin: 80px; }
.ws-lines .t { all: unset; color: var(--muted); font-variant-numeric: tabular-nums; cursor: pointer; align-self: start; }
.ws-lines .t:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.ws-lines .t:focus-visible { outline: 2px solid var(--brand); border-radius: 3px; }
.ws-lines li.mark { background: color-mix(in srgb, var(--hl) 70%, transparent); }
.ws-inline { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ws-inline input { flex: 1 1 240px; font: 400 15px/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.ws-team-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ws-team-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-check { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 15px; }
.ws-check input { accent-color: var(--brand); width: 16px; height: 16px; }
.ws-invite-link { margin-top: 12px; background: var(--sunken); border-radius: 12px; padding: 12px 14px; }
.ws-invite-link p { font-size: 14.5px; color: var(--ink-2); }
#paneManage h3 { margin-top: 22px; font-size: 16px; }
.muted { color: var(--muted); }
@media (max-width: 899px) {
  .ws-body { grid-template-columns: 1fr; }
  .ws-list { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .ws-search { position: static; }
  .ws-day { top: 0; }
  .ws-detail { padding: 28px 18px 40px; }
  .ws-lines li { grid-template-columns: 52px 1fr; }
  .ws-lines li .say { grid-column: 1 / -1; }
}
.ws-sync-on { margin-top: 16px; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; }
.ws-sync-on .ws-check { margin-top: 0; }
.ws-off-choice { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--sunken); border-radius: 12px; padding: 10px 12px; }

/* Workspace tabs: summary | transcript */
.ws-tabs2 { display: flex; gap: 24px; margin-top: 26px; border-bottom: 1px solid var(--line); }
.ws-tabs2 button { all: unset; cursor: pointer; padding: 0 0 11px; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ws-tabs2 button[aria-selected="true"] { color: var(--ink); font-weight: 500; border-color: var(--ink); }
.ws-tabs2 button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 3px; }
.ws-pane { padding-top: 4px; }
.ws-pane .md { border-top: 0; margin-top: 8px; }
.ws-pane .ws-lines { margin-top: 12px; }

/* Ask AI */
.ws-askpane { background: var(--paper); }
.ws-askpane .ws-askbox { max-width: 760px; margin: 0 auto; padding: 0 56px 48px; }
.ws-askbox h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 12px; }
.ws-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ws-suggest p { flex-basis: 100%; font-size: 13px; margin-bottom: 4px; }
.ws-ask .field { align-items: flex-end; border-radius: 22px; padding: 6px 6px 6px 16px; }
.ws-ask textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: none; font: inherit; color: var(--ink); line-height: 1.5; padding: 6px 0; max-height: 160px; }
.ws-ask .ws-cost { margin-top: 8px; }

/* Workspace phase 2: summary formats, speaker rename, in-meeting search */
.ws-fmts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.ws-fmts .chip.add { border-style: dashed; color: var(--muted); background: transparent; }
.ws-fmts .chip.add:hover { color: var(--brand-text); border-color: var(--brand); }
.muted-tag { background: var(--sunken) !important; color: var(--muted) !important; }
.ws-lines button.who { all: unset; font-weight: 600; cursor: pointer; border-radius: 4px; align-self: start; }
.ws-lines button.who:hover { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.ws-lines button.who:focus-visible { outline: 2px solid var(--brand); }
.ws-rename-who { font: 600 15px/1.4 var(--font); width: 12em; max-width: 100%; padding: 2px 8px; border: 1px solid var(--brand); border-radius: 6px; background: var(--surface); color: var(--ink); }
.ws-find { display: flex; align-items: center; gap: 10px; margin-top: 14px; position: sticky; top: 0; z-index: 1; padding: 8px 0; background: var(--paper); }
.ws-find input { flex: 1; min-width: 0; font: 400 14px/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.ws-find input:focus { outline: 2px solid var(--brand); outline-offset: 0; }
.ws-find-n { font-size: 13px; color: var(--muted); min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
.ws-lines mark.cur { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Workspace phase 3: folders, tags, star, highlights, to-dos, bulk */
.ws-orgbar { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-orgbar .chip { display: inline-flex; align-items: center; gap: 5px; }
.ws-orgbar .chip .n { font-size: 11.5px; color: var(--muted); }
.ws-orgbar .chip[aria-pressed="true"] .n { color: inherit; opacity: 0.7; }
.ws-orgbar .chip.tag { color: var(--brand-text); }
.ws-orgbar .chip.tag[aria-pressed="true"] { color: #fff; }
.ws-list li.has-star { position: relative; }
.ws-star { all: unset; position: absolute; right: 16px; bottom: 12px; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; color: var(--muted); font-size: 15px; cursor: pointer; opacity: 0; border-radius: 6px; }
.ws-list li.has-star:hover .ws-star, .ws-star[aria-pressed="true"], .ws-star:focus-visible { opacity: 1; }
.ws-star[aria-pressed="true"], .ws-org-star[aria-pressed="true"] { color: #c99400; }
.ws-star:focus-visible { outline: 2px solid var(--brand); }
.ws-item .t-tag { color: var(--brand-text); }
.ws-item .t-hl { color: #8a6d00; }
.ws-org { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.ws-org button { font: 500 13px/1 var(--font); height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.ws-org button:hover { border-color: var(--ink-2); }
.ws-org .ws-org-star { width: 30px; padding: 0; font-size: 15px; }
.ws-org-tag { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 13px; font-weight: 500; }
.ws-org .ws-org-tag button { height: 22px; width: 22px; padding: 0; border: 0; background: none; color: inherit; font-size: 15px; }
.ws-org-input { font: 400 13px/1.4 var(--font); height: 28px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); min-width: 0; }
.ws-org-input.tag { width: 110px; border-style: dashed; }
.ws-org-input.tag:focus { width: 180px; border-style: solid; }
.ws-org-input.note { height: auto; border-radius: 10px; padding: 7px 10px; width: 100%; font-size: 14px; }
textarea.ws-org-input.note { resize: vertical; }
.ws-tasks { margin-top: 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.md li.task input:not(:disabled) { pointer-events: auto; cursor: pointer; }
.ws-lines li { position: relative; }
.ws-lines li.hl-line { background: color-mix(in srgb, var(--hl) 45%, transparent); }
.ws-lines .line-tools { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; opacity: 0; }
.ws-lines li:hover .line-tools, .ws-lines .line-tools:focus-within { opacity: 1; }
.ws-lines .hl-btn { all: unset; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; }
.ws-lines .hl-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.ws-lines .hl-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
@media (hover: none) { .ws-lines .line-tools { opacity: 1; position: static; grid-column: 1 / -1; justify-self: end; } }
.hl-form { grid-column: 1 / -1; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.hl-form-row { display: flex; gap: 6px; margin-top: 8px; }
.hl-quote span { background: linear-gradient(transparent 12%, var(--hl) 12%, var(--hl) 88%, transparent 88%); }
.ws-hls { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.ws-hls h3 { font-family: var(--font); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ws-hls .hl-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ws-hls .t { all: unset; cursor: pointer; color: var(--brand-text); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.ws-hls .t:hover { text-decoration: underline; }
.ws-hls .hl-quote { font-size: 15px; color: var(--ink); }
.ws-hls .hl-note { margin-top: 4px; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; }
.ws-hls .hl-tools { display: flex; gap: 10px; white-space: nowrap; }
.ws-hls .hl-edit { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; }
.linkbtn.danger { color: var(--danger); }
.ws-pickbar { flex-direction: column; align-items: stretch; }
.ws-pickrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ws-pickrow #pickCount { margin-right: auto; }
.ws-pickrow select, .ws-pickrow input { font: 400 13px/1 var(--font); height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); min-width: 0; }
.ws-pickrow input { flex: 1; }

/* Workspace phase 4: AI actions, saved answers, ask about all meetings */
.ws-askall-btn { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); font-size: 14px; font-weight: 500; cursor: pointer; }
.ws-askall-btn:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.ws-askall-btn:focus-visible { outline: 2px solid var(--brand); }
.ws-actions-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ws-actions-row .chip { height: auto; min-height: 30px; padding: 4px 12px; line-height: 1.4; text-align: left; }
.ws-actions-row .chip:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-text); }
.ws-actions-row .chip.add { border-style: dashed; color: var(--muted); background: transparent; }
.ws-qa-item { margin-bottom: 16px; }
.ws-qa-item .act { margin: 0 0 6px; font-weight: 600; color: var(--brand-text); font-size: 14px; }
.ws-qa-item .q { display: inline-block; max-width: 90%; margin: 4px 0 6px; padding: 8px 14px; border-radius: 12px 12px 12px 4px; background: var(--brand-soft); color: var(--brand-text); }
.ws-qa-item .a { white-space: pre-wrap; color: var(--ink-2); line-height: 1.75; }
.ws-qa-item .model { margin-top: 4px; font-size: 12px; color: var(--muted); }
.ws-qa-empty { font-size: 13px; }
.ws-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.ws-dialog::backdrop { background: rgba(21, 23, 26, 0.35); }
.ws-dialog h2 { font-size: 24px; }
.ws-dialog > p.muted { margin-top: 6px; font-size: 14px; }
.ws-act-list { margin: 18px 0; max-height: 260px; overflow: auto; }
.ws-act-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.ws-act-row .tools { display: flex; gap: 12px; flex: none; }
.ws-act-form { display: flex; flex-direction: column; gap: 8px; }
.ws-act-form input, .ws-act-form textarea, .ws-askall textarea { font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; width: 100%; }
.ws-act-form textarea, .ws-askall textarea { resize: vertical; }
.lbl { font-weight: 600; font-size: 14px; }
.err { color: var(--danger); }
.ws-askall { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.ws-askall-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-askall-filters select { font: 400 14px/1 var(--font); height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.ws-askall-out { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ws-askall-out .a { white-space: pre-wrap; line-height: 1.8; color: var(--ink); }
.ws-askall-used { margin-top: 16px; }
.ws-askall-used ul { margin: 6px 0 0; padding-left: 18px; }
.ws-askall-used summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.ws-qa-item .a.md, .ws-askall-out .a.md { white-space: normal; }
.ws-qa-item .a.md > :first-child, .ws-askall-out .a.md > :first-child { margin-top: 0; }

/* ---------- Help center (/help) ---------- */
.help-hero { padding: 64px 0 40px; }
.help-hero h1 { font-size: clamp(40px, 5vw, 60px); }
.help-hero p { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 36em; }
.help-search { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 14px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted); }
.help-search.big { margin-top: 32px; height: 56px; padding: 0 20px; max-width: 640px; box-shadow: 0 10px 30px -20px rgba(21, 23, 26, 0.35); }
.help-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.help-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 15px/1.4 var(--font); color: var(--ink); }
.help-search.big input { font-size: 17px; }
.help-search .hi { flex: none; }
.help-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; }
.help-results a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.help-results li[aria-selected="true"] a, .help-results a:hover { background: var(--sunken); }
.help-results strong { display: block; font-weight: 500; }
.help-results small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.help-results .none { padding: 12px; font-size: 14px; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 8px; }
.help-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color 0.15s; }
.help-card:hover { border-color: var(--brand); }
.help-card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.help-card h2 { font-family: var(--font); font-size: 18px; font-weight: 600; }
.help-card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; flex: 1; }
.help-count { margin-top: 8px; font-size: 13px; color: var(--muted); }
.help-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding-top: 40px; align-items: start; }
.help-side { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; padding-bottom: 16px; }
.help-side .help-search { margin: 0 0 16px; }
.help-side ul { list-style: none; margin: 0; padding: 0; }
.help-side > ul > li > a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.help-side a:hover { background: var(--sunken); color: var(--ink); }
.help-side a[aria-current] { color: var(--ink); font-weight: 600; }
.help-side > ul > li > a .hi { color: var(--muted); }
.help-side > ul > li > a[aria-current] .hi { color: var(--brand); }
.help-side li ul { margin: 2px 0 8px 36px; border-left: 1px solid var(--line); }
.help-side li ul a { display: block; padding: 5px 12px; font-size: 14px; color: var(--ink-2); text-decoration: none; border-radius: 0 8px 8px 0; margin-left: -1px; border-left: 2px solid transparent; }
.help-side li ul a[aria-current="page"] { border-left-color: var(--brand); color: var(--ink); font-weight: 500; background: var(--sunken); }
.help-main { max-width: 760px; min-width: 0; }
.help-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.help-crumbs a { color: var(--muted); text-decoration: none; }
.help-crumbs a:hover { color: var(--brand-text); text-decoration: underline; }
.help-main h1 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 42px); }
.help-lede { margin-top: 10px; font-size: 18px; color: var(--ink-2); }
.help-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.help-list a { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.help-list a:hover strong { color: var(--brand-text); }
.help-list span { flex: 1; }
.help-list strong { display: block; font-weight: 500; font-size: 17px; }
.help-list small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.help-list .hi { color: var(--muted); flex: none; }
.help-body { margin-top: 28px; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.help-body > * + * { margin-top: 14px; }
.help-body h2 { margin-top: 36px; font-family: var(--font); font-size: 20px; font-weight: 600; color: var(--ink); }
.help-body ol, .help-body ul { padding-left: 24px; }
.help-body li + li { margin-top: 6px; }
.help-body ol li::marker { color: var(--brand); font-weight: 600; }
.help-body strong { color: var(--ink); font-weight: 600; }
.help-body code { font: 14px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--sunken); padding: 2px 6px; border-radius: 5px; }
.help-tip { padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); font-size: 16px; }
.help-updated { margin-top: 32px; font-size: 13px; color: var(--muted); }
.help-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.help-related h2 { font-family: var(--font); font-size: 16px; font-weight: 600; }
.help-related ul { list-style: none; margin: 10px 0 0; padding: 0; }
.help-related li { padding: 5px 0; }
.help-related a { text-decoration: none; }
.help-related a:hover { text-decoration: underline; }
.help-contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.help-contact div { flex: 1 1 280px; }
.help-contact h2 { font-family: var(--serif); font-size: 22px; }
.help-contact p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .help-grid { grid-template-columns: 1fr 1fr; }
  .help-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .help-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .help-side > ul { display: none; }
  .help-side .help-search { margin: 0; }
}
@media (max-width: 560px) {
  .help-hero { padding: 40px 0 28px; }
  .help-grid { grid-template-columns: 1fr; }
  .help-card { padding: 20px; }
  .help-body { font-size: 16px; }
}

/* Workspace: import a file */
.ws-top-actions { display: flex; gap: 6px; }
.ws-top-actions .ws-askall-btn { flex: 1; }
.ws-import-btn { all: unset; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; cursor: pointer; white-space: nowrap; }
.ws-import-btn:hover { border-color: var(--brand); color: var(--brand-text); }
.ws-import-btn:focus-visible { outline: 2px solid var(--brand); }
.ws-import { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.ws-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 16px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: center; }
.ws-drop:hover, .ws-drop.over, .ws-drop:focus-visible { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.ws-drop strong { color: var(--brand-text); }
.ws-import-details { display: flex; flex-direction: column; gap: 8px; }
.ws-import-title { font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px; }
.ws-import-progress .meter { height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.ws-import-progress .meter span { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.3s; }
.ws-import-progress p { margin-top: 6px; }

/* ---------- Phase 5: notifications, comments, team folders, roles ---------- */
.ws-head { position: relative; }
.ws-bell-wrap { position: relative; align-self: flex-end; }
.ws-bell { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.ws-bell:hover { color: var(--ink); border-color: var(--line-strong); }
.ws-bell:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ws-bell-count { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--live); color: #fff; font: 600 11px/19px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.ws-bell-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(380px, calc(100vw - 32px)); max-height: min(520px, 70vh); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(21, 23, 26, 0.35); overflow: hidden; }
.ws-bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ws-bell-menu ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.ws-note { all: unset; box-sizing: border-box; display: grid; gap: 3px; width: 100%; padding: 11px 16px 11px 26px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; font-size: 14px; color: var(--ink-2); }
.ws-note:hover { background: var(--sunken); }
.ws-note:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ws-note.unread { color: var(--ink); }
.ws-note.unread::before { content: ""; position: absolute; left: 11px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.ws-note .excerpt { color: var(--muted); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ws-note .when { color: var(--muted); font-size: 12px; }
.ws-bell-empty { padding: 22px 16px; margin: 0; }
.ws-bell-foot { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--line); background: var(--sunken); font-size: 13px; color: var(--ink-2); cursor: pointer; }

.ws-item .t-cm { color: var(--brand-text); }

.ws-comments { padding-top: 6px; }
.ws-clist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.ws-clist li { padding: 12px 14px; border-radius: 12px; scroll-margin: 90px; }
.ws-clist li:hover { background: var(--sunken); }
.ws-clist li.flash { animation: ws-flash 2.4s ease-out; }
@keyframes ws-flash { 0%, 40% { background: color-mix(in srgb, var(--hl) 80%, transparent); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ws-clist li.flash { animation: none; background: color-mix(in srgb, var(--hl) 50%, transparent); } }
.ws-clist .head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: 0; font-size: 14px; }
.ws-clist .head .tools { margin-left: auto; display: flex; gap: 10px; opacity: 0; }
.ws-clist li:hover .tools, .ws-clist .tools:focus-within { opacity: 1; }
@media (hover: none) { .ws-clist .head .tools { opacity: 1; } }
.ws-clist .body { margin-top: 4px; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.ws-clist .mention { color: var(--brand-text); font-weight: 500; background: var(--brand-soft); border-radius: 4px; padding: 0 3px; }
.ws-anchor-link { all: unset; cursor: pointer; font-size: 12.5px; color: var(--brand-text); font-variant-numeric: tabular-nums; border-bottom: 1px dotted currentColor; }
.ws-anchor-link:focus-visible { outline: 2px solid var(--brand); border-radius: 3px; }
.ws-cempty { margin: 18px 0 4px; }
.ws-cform { position: sticky; bottom: 0; margin-top: 14px; padding: 10px 0 4px; background: linear-gradient(transparent, var(--surface) 14px); }
.ws-cform .field { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); }
.ws-cform .field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ws-cform textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; font: 400 15px/1.55 var(--font); color: var(--ink); padding: 5px 0; min-height: 26px; }
.ws-anchor { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 12.5px; }
.ws-anchor button { all: unset; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; }
.ws-anchor button:hover { background: rgba(11, 94, 72, 0.12); }
.ws-mention-list { list-style: none; margin: 0; padding: 4px; position: absolute; left: 0; bottom: calc(100% - 4px); width: min(320px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px -16px rgba(21, 23, 26, 0.35); z-index: 5; }
.ws-mention-list button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-mention-list button[aria-selected="true"], .ws-mention-list button:hover { background: var(--sunken); }
.ws-cedit-box { margin-top: 6px; }
.ws-cedit { width: 100%; box-sizing: border-box; font: 400 15px/1.55 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.linkbtn.danger { color: var(--live); }

.ws-orgbar .chip .n { margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ws-orgbar .chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, 0.7); }
.ws-orgbar .chip.add { border-style: dashed; color: var(--muted); background: transparent; }
.ws-tf-pick { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ws-tf-list { display: grid; gap: 8px; margin-top: 20px; }
.ws-tf-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ws-tf-row input { font: 400 15px/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; min-width: 0; }
@media (max-width: 560px) { .ws-tf-row { grid-template-columns: 1fr 1fr; } .ws-tf-row input { grid-column: 1 / -1; } }

.ws-role { font: 400 14px/1.3 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; min-height: 34px; }
.ws-roles { margin: 18px 0 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 22px; padding: 14px 16px; border-radius: 12px; background: var(--sunken); }
.ws-roles dt { font-weight: 600; font-size: 14px; color: var(--ink); }
.ws-roles dd { margin: 2px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 760px) { .ws-bell-wrap { position: absolute; top: 0; right: 0; } .ws-head h1 { padding-right: 52px; } }

/* ---------- Header account chip (signed in) ---------- */
.me-wrap { position: relative; }
.me-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 500 14.5px/1 var(--font); cursor: pointer; }
.me-chip:hover { border-color: var(--line-strong); }
.me-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.me-chip[aria-expanded="true"] { border-color: var(--line-strong); background: var(--sunken); }
.me-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--hl); font: 600 14px/1 var(--font); }
.me-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.me-pl { flex: none; color: var(--muted); font-weight: 400; font-size: 13.5px; }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; max-width: min(300px, calc(100vw - 32px)); padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(21, 23, 26, 0.35); }
.me-em { margin: 0; padding: 8px 10px 10px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.nav .me-menu a, .me-menu button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.nav .me-menu a:hover, .me-menu button:hover { background: var(--sunken); }
.nav .me-menu a:focus-visible, .me-menu button:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.me-menu button { color: var(--live); border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 8px 8px; }
@media (max-width: 720px) {
  .me-chip { padding: 3px; }
  .me-nm, .me-pl { display: none; }
}
.acct-name-line { margin: 8px 0 0; font-size: 17px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.acct-name-line b { font-weight: 600; }
.acct-name-line b.muted { font-weight: 400; }
.acct-name-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.acct-name-form input { flex: 1 1 220px; font: 400 15px/1.4 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; min-height: 40px; }
.acct-head .acct-name-form .btn { margin-left: 0; }
.ws-member-email { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; word-break: break-all; }

/* Workspace: organizations and teams */
.ws-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-orgpick { font: 500 14px/1.3 var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 12px; min-height: 38px; max-width: 220px; }
.ws-tabs { flex-wrap: wrap; }
.ws-tab { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
select.ws-tab-more { appearance: auto; padding-right: 8px; }
.ws-shared { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 8px; }
.ws-shared .tag { margin-left: 0; }
.ws-sharebox { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken); display: grid; gap: 8px; }
.ws-share-list .ws-check { margin-top: 6px; }
.ws-share-org select { font: inherit; margin-left: 6px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.ws-team-cards { display: grid; gap: 10px; margin-top: 16px; }
.ws-team-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.ws-team-card .ws-check { margin-top: 10px; }
.ws-team-card .ws-team-actions { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ws-team-edit { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ws-people { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.ws-people .ws-check { margin-top: 4px; }
.ws-team-new { margin-top: 20px; }
.block h3 { font-size: 15px; margin-top: 20px; }

/* ------------------------------------------------------------------ Workspace app shell
   Like app.tactiq.io: a sidebar, the meeting list as a full page, a meeting as a full page with
   tabs and an info column. Full width under the site header; the page scrolls, the sidebar stays. */
.page-workspace .top .wrap { max-width: none; }
.page-workspace .foot { display: none; }
.page-workspace main { padding-bottom: 0; }
.ws { max-width: none; padding: 0; }
.ws > .loading { padding: 40px 24px; }
.ws-shell:not([hidden]) { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100dvh - 73px); border-top: 1px solid var(--line); }

/* Sidebar */
.ws-side { position: sticky; top: 73px; height: calc(100dvh - 73px); display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; }
.ws-side-org .ws-orgpick { width: 100%; max-width: none; border-radius: 10px; margin-bottom: 6px; }
.ws-side-nav { display: flex; flex-direction: column; gap: 2px; }
.ws-nav-item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14.5px; cursor: pointer; }
.ws-nav-item svg { flex: none; color: var(--muted); }
.ws-nav-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-nav-item .n { font-size: 12px; color: var(--muted); }
.ws-nav-item:hover { background: var(--sunken); color: var(--ink); }
.ws-nav-item.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.ws-nav-item.on svg { color: var(--brand); }
.ws-nav-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ws-nav-h { margin: 14px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-nav-more { all: unset; cursor: pointer; padding: 4px 10px 4px 38px; font-size: 13px; color: var(--muted); }
.ws-nav-more:hover { color: var(--brand-text); }
.ws-nav-empty { padding: 4px 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ws-side-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 10px; }
.ws-usage { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--sunken); }
.ws-usage-plan, .ws-usage-row > p { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); margin: 0; }
.ws-usage-plan b, .ws-usage-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ws-usage-extra { margin: 0; font-size: 12.5px; color: var(--muted); }
.ws-bar { margin-top: 6px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ws-bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.ws-bar.full span { background: var(--live); }
.ws-upgrade { width: 100%; justify-content: center; }
.ws-side-sync { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 0 4px; }
.ws-side-sync input { accent-color: var(--brand); }
.ws-side .ws-off-choice { display: grid; gap: 6px; font-size: 13px; }
.ws-side-who { margin: 0; padding: 0 4px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Main area */
.ws-content { min-width: 0; padding: 0 32px 48px; }
.ws-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; position: sticky; top: 73px; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--line); margin: 0 -32px; padding: 0 32px; }
.ws-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--muted); }
.ws-crumbs .linkbtn { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.ws-crumbs .linkbtn:hover { color: var(--brand-text); text-decoration: underline; }
.ws-crumbs .cur { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-topbar .ws-bell-wrap { align-self: center; }
.ws-topbar .ws-bell { width: 38px; height: 38px; }
.ws-content > .banner { margin-top: 14px; }
.ws-page { padding-top: 22px; }

/* The meeting list (full page) */
.ws-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ws-page-head h1 { font-size: 30px; line-height: 1.25; }
.ws-page-head .sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.ws-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#pageList .ws-sync { margin-top: 18px; }
.ws-search { position: relative; margin-top: 18px; }
.ws-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ws-search input { min-height: 48px; padding: 12px 18px 12px 44px; font-size: 15px; border-radius: 12px; background: var(--surface); border-color: var(--line-strong); }
.ws-toolbar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 12px; }
.ws-toolbar select { font: 400 13px/1 var(--font); height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); }
.ws-toolbar .ws-pick-btn { margin-left: auto; }
#pageList .ws-orgbar { margin-top: 12px; }
#pageList .ws-pickbar { margin-top: 12px; display: grid; gap: 8px; }
#pageList .ws-limit { margin-top: 12px; border-radius: 10px; }
.ws-rows { list-style: none; margin: 14px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: clip; }
.ws-rows:empty { display: none; }
.ws-rows .ws-day { position: sticky; top: 129px; z-index: 2; padding: 9px 18px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--sunken); border-bottom: 1px solid var(--line); }
.ws-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); }
.ws-row:last-child { border-bottom: 0; }
.ws-row .pick { justify-self: center; width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.ws-row .ws-star { all: unset; position: static; opacity: 1; justify-self: center; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--line-strong); font-size: 16px; cursor: pointer; }
.ws-row .ws-star:hover { color: var(--muted); background: var(--sunken); }
.ws-row .ws-star.on { color: #c99400; }
.ws-row .ws-star:focus-visible { outline: 2px solid var(--brand); }
.ws-row .ws-item { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 64px 36px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; width: 100%; padding: 12px 18px 12px 0; cursor: pointer; }
.ws-row .ws-item:hover { background: #fbfaf7; }
.ws-row .ws-item:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ws-when { display: grid; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ws-when b { font-size: 14px; font-weight: 600; color: var(--ink); }
.ws-when small { font-size: 12.5px; color: var(--muted); }
.ws-ava { --h: 160; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; font: 600 12.5px/1 var(--font); letter-spacing: 0.02em; color: hsl(var(--h) 45% 30%); background: hsl(var(--h) 55% 92%); flex: none; }
.ws-row-main { display: grid; gap: 2px; min-width: 0; }
.ws-row-main .ttl { font-weight: 600; font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-row-main .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-row-main .snip { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ws-row-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; max-width: 320px; font-size: 12.5px; }
.ws-row-tags .tag { margin-left: 0; }
.ws-row-tags .t-tag { color: var(--brand-text); }
.ws-row-tags .t-hl { color: #8a6d00; }
.ws-row-tags .t-cm { color: var(--ink-2); }
.ws-row-tags .nosum { color: var(--warn-ink); }
#pageList .ws-empty { margin-top: 14px; padding: 28px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 14px; }
#pageList .ws-short { padding: 10px 4px 0; }

/* A meeting (full page) */
.ws-shell .ws-detail { padding: 22px 0 0; min-height: 0; background: none; }
.ws-shell .ws-detail > * { max-width: none; margin-left: 0; margin-right: 0; }
.ws-shell .ws-detail > h1 { font-size: 30px; }
.ws-shell .ws-detail > h1 ~ * { max-width: 820px; }
.ws-mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ws-mhead-l { min-width: 0; flex: 1 1 420px; }
.ws-mhead h1 { font-size: 30px; line-height: 1.3; }
.ws-mhead .ws-meta { margin-top: 6px; }
.ws-mactions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ws-menu { position: relative; }
.ws-menu > summary { list-style: none; cursor: pointer; }
.ws-menu > summary::-webkit-details-marker { display: none; }
.ws-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 36px -16px rgba(21, 23, 26, 0.35); }
.ws-menu-pop button { all: unset; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.ws-menu-pop button:hover { background: var(--sunken); }
.ws-menu-pop button.danger { color: var(--live); }
.ws-shell .ws-sharebox { margin-top: 14px; max-width: 560px; }
.ws-mgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-top: 16px; }
.ws-mmain { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px 24px; }
.ws-mmain .ws-tabs2 { margin-top: 0; padding-top: 6px; }
.ws-mmain .ws-tabs2 button { padding: 12px 0 11px; }
.ws-mmain .ws-find { background: var(--surface); }

/* Summary & AI tab: outputs on the left, the chosen one (or "create") in the middle */
.ws-ai { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; margin-top: 18px; }
.ws-ai-list { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 14px; align-self: start; position: sticky; top: 140px; max-height: calc(100dvh - 160px); overflow-y: auto; }
.ws-ai-list .lbl { margin: 14px 8px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ws-ai-new { all: unset; box-sizing: border-box; padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); color: var(--brand-text); font-size: 14px; font-weight: 500; cursor: pointer; text-align: center; }
.ws-ai-new:hover, .ws-ai-new.on { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.ws-ai-item { all: unset; box-sizing: border-box; display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.ws-ai-item b { font-size: 14px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-ai-item small { font-size: 12px; color: var(--muted); }
.ws-ai-item:hover { background: var(--sunken); }
.ws-ai-item.on { background: var(--brand-soft); }
.ws-ai-item.on b { color: var(--brand-text); font-weight: 600; }
.ws-ai-item:focus-visible, .ws-ai-new:focus-visible { outline: 2px solid var(--brand); }
.ws-ai-view { min-width: 0; }
.ws-ai-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.ws-ai-head h2 { font-size: 22px; }
.ws-ai-head .linkbtn { margin-left: auto; }
.ws-shell .ws-ai-view .md { margin-top: 14px; border-top: 0; padding-top: 0; }
.ws-ai-title { font-size: 24px; text-align: center; margin: 18px 0 6px; }
.ws-ai-view > .lbl { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.ws-ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ws-ai-card { all: unset; box-sizing: border-box; display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.ws-ai-card b { font-size: 14px; font-weight: 600; color: var(--ink); }
.ws-ai-card b .tag { margin-left: 6px; }
.ws-ai-card small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ws-ai-card:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.ws-ai-card:focus-visible { outline: 2px solid var(--brand); }
.ws-ai-card.locked { opacity: 0.55; cursor: not-allowed; }
.ws-ai-card.add { border-style: dashed; background: transparent; }
.ws-ai-card.add b { color: var(--muted); }
.ws-ai-view .ws-ask { margin-top: 22px; }
.ws-q { display: inline-block; max-width: 90%; margin: 12px 0 8px; padding: 8px 14px; border-radius: 12px 12px 12px 4px; background: var(--brand-soft); color: var(--brand-text); }
.ws-ai-view > .a { margin-top: 10px; color: var(--ink-2); line-height: 1.75; }
.ws-thinking { margin-top: 10px; }

/* Info column */
.ws-minfo { display: grid; gap: 12px; position: sticky; top: 140px; }
.ws-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ws-card h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.ws-card-who { display: flex; align-items: center; gap: 10px; }
.ws-card-who small { display: block; font-size: 12px; color: var(--muted); }
.ws-card-who b { font-size: 14.5px; }
.ws-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 13.5px; }
.ws-facts dt { color: var(--muted); }
.ws-facts dd { margin: 0; color: var(--ink); text-align: right; }
.ws-card .ws-org { margin-top: 0; }
.ws-card .ws-shared { margin: 0 0 6px; }
.ws-card .btn { margin-top: 8px; }
.ws-card .ws-tf-pick { margin-top: 10px; }
.ws-speak { display: flex; align-items: center; gap: 14px; }
.ws-ring { flex: none; position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; }
.ws-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.ws-ring span { position: relative; font: 600 18px/1 var(--font); color: var(--ink); }
.ws-speakers { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; flex: 1; min-width: 0; font-size: 13px; }
.ws-speakers li { display: flex; align-items: center; gap: 7px; }
.ws-speakers i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.ws-speakers .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ws-speakers b { font-variant-numeric: tabular-nums; }
.ws-card > .muted.small { margin: 10px 0 0; }

/* Tool pages (ask all, import, team folders) and manage */
.ws-shell .ws-detail .ws-meta { max-width: 820px; }
.ws-shell #paneManage > .block:first-child { margin-top: 0; }
.ws-shell #paneManage { max-width: 980px; }

/* Narrower screens: the info column goes under the meeting, then the sidebar becomes a bar. */
@media (max-width: 1180px) {
  .ws-mgrid { grid-template-columns: minmax(0, 1fr); }
  .ws-minfo { position: static; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 900px) {
  .ws-shell:not([hidden]) { display: block; }
  .ws-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .ws-side-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .ws-nav-item { width: auto; flex: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .ws-nav-item svg { display: none; }
  .ws-nav-h, .ws-nav-empty, .ws-nav-more { display: none; }
  .ws-side-foot { display: none; }
  .ws-content { padding: 0 16px 32px; }
  .ws-topbar { position: static; margin: 0 -16px; padding: 0 16px; }
  .ws-rows .ws-day { top: 73px; }
  .ws-row .ws-item { grid-template-columns: 52px minmax(0, 1fr); padding-right: 12px; }
  .ws-row .ws-ava { display: none; }
  .ws-row-tags { grid-column: 2; justify-content: flex-start; max-width: none; }
  .ws-ai { grid-template-columns: minmax(0, 1fr); }
  .ws-ai-list { position: static; max-height: none; border-right: 0; padding-right: 0; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .ws-ai-list .lbl { display: none; }
  .ws-ai-item { border: 1px solid var(--line); padding: 6px 10px; }
  .ws-ai-item small { display: none; }
  .ws-mmain { padding: 0 14px 18px; }
  .ws-mhead h1, .ws-page-head h1 { font-size: 24px; }
}

/* Workspace list: sort, list/summary view, the row "⋯" menu */
.ws-toolbar-r { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.ws-toolbar .ws-toolbar-r .ws-pick-btn { margin-left: 0; }
.ws-viewtoggle { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--sunken); }
.ws-viewtoggle button { all: unset; cursor: pointer; padding: 4px 10px; border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.ws-viewtoggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.ws-viewtoggle button:focus-visible { outline: 2px solid var(--brand); }
.ws-row { grid-template-columns: 40px minmax(0, 1fr) 40px; }
.ws-row .ws-item { padding-right: 4px; }
.ws-rows .ws-row-main .snip { display: none; }
.ws-rows.sum .ws-row-main .snip { display: -webkit-box; -webkit-line-clamp: 3; line-height: 1.6; margin-top: 2px; }
.ws-row-menu > .ws-row-dots { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); font-size: 18px; line-height: 1; }
.ws-row-menu > .ws-row-dots:hover, .ws-row-menu[open] > .ws-row-dots { background: var(--sunken); color: var(--ink); }
.ws-row-menu > .ws-row-dots:focus-visible { outline: 2px solid var(--brand); }
.ws-row-menu .ws-menu-pop { right: 4px; min-width: 200px; }
@media (max-width: 900px) {
  .ws-toolbar-r { margin-left: 0; width: 100%; }
  .ws-row { grid-template-columns: 34px minmax(0, 1fr) 36px; }
}

/* Workspace list, round 2: source icons, short meetings, readable width on wide screens */
.ws-src { color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.ws-src svg { display: block; }
.ws-row.short .ws-item { opacity: 0.62; }
.ws-row.short .ws-item:hover { opacity: 1; }
#pageList .ws-short { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--sunken); font-size: 13.5px; color: var(--ink-2); }
#pageList .ws-short .linkbtn { margin-left: 6px; font-weight: 600; color: var(--brand-text); }
/* On wide screens the list, a meeting and the manage page keep a readable width. */
#pageList { max-width: 1240px; }
.ws-shell .ws-detail { max-width: 1400px; }

/* Home: the apps it works with, by name (their logos need each owner's permission) */
.apps .wrap { gap: 12px 18px; }
.app-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.app-chip { display: inline-flex; align-items: center; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0.005em; }
.apps-note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
