/* Vital Assistant — the dashboard. A light, purple-accented workspace in the
   style of the meeting-notes tools people already know: white sidebar, soft
   grey canvas, white cards, the summary beside the transcript. */
:root {
  --bg: #f6f6fa; --side: #ffffff; --card: #ffffff; --ink: #1b1d29; --ink2: #3c3f52;
  --muted: #6e7287; --line: #ebebf2; --line2: #dedfe8; --hover: #f2f1fb;
  --accent: #6c4cf5; --accent2: #5a3be6; --accent-bg: #efebff; --accent-ink: #4b2fd0;
  --ok: #0f7a4a; --ok-bg: #e6f6ee; --warn: #9a5b00; --warn-bg: #fff4e0;
  --bad: #b42335; --bad-bg: #fdecef; --info: #1f5fbf; --info-bg: #e8f0fd;
  --shadow: 0 1px 2px rgba(23, 20, 60, .04), 0 2px 10px rgba(23, 20, 60, .04);
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12121a; --side: #181822; --card: #1c1c27; --ink: #ececf3; --ink2: #c9cad8;
    --muted: #9a9cb2; --line: #2a2a38; --line2: #34344a; --hover: #24243a;
    --accent: #9d86ff; --accent2: #b3a2ff; --accent-bg: #2a2550; --accent-ink: #c8bcff;
    --ok: #6fe0a6; --ok-bg: #12301f; --warn: #ffc76b; --warn-bg: #33270f;
    --bad: #ff8a99; --bad-bg: #3a1a20; --info: #8db7ff; --info-bg: #17243d;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #12121a; --side: #181822; --card: #1c1c27; --ink: #ececf3; --ink2: #c9cad8;
  --muted: #9a9cb2; --line: #2a2a38; --line2: #34344a; --hover: #24243a;
  --accent: #9d86ff; --accent2: #b3a2ff; --accent-bg: #2a2550; --accent-ink: #c8bcff;
  --ok: #6fe0a6; --ok-bg: #12301f; --warn: #ffc76b; --warn-bg: #33270f;
  --bad: #ff8a99; --bad-bg: #3a1a20; --info: #8db7ff; --info-bg: #17243d; --shadow: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink);
       font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.015em; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hide { display: none !important; }
.hint { color: var(--muted); font-weight: 400; font-size: 12px; }

/* icons */
i[data-icon] { display: inline-flex; width: 18px; height: 18px; flex: none; }
i[data-icon] svg { width: 100%; height: 100%; }

/* layout */
.app { display: flex; min-height: 100vh; }
.side { width: 236px; flex: none; background: var(--side); border-right: 1px solid var(--line);
        display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; color: var(--ink);
         font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); font-weight: 700; margin-left: 2px; }
.logo { width: 28px; height: 28px; border-radius: 9px;
        background: conic-gradient(from 210deg, #6c4cf5, #b14cf5, #f54c9b, #6c4cf5);
        box-shadow: inset 0 0 0 7px rgba(255,255,255,.28); }
.navlist { display: flex; flex-direction: column; gap: 2px; }
.navlist.bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.navlist a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px;
             color: var(--ink2); font-weight: 500; }
.navlist a:hover { background: var(--hover); text-decoration: none; }
.navlist a.on { background: var(--accent-bg); color: var(--accent-ink); font-weight: 600; }
.navhead { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
           padding: 16px 11px 6px; font-weight: 600; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
       padding: 12px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent);
       backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--card);
          border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.search input[type=search] { border: none; background: none; outline: none; box-shadow: none; padding: 9px 0;
                             width: 100%; color: var(--ink); font: inherit; border-radius: 0; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.search.small { max-width: 240px; margin: 0; font-weight: 400; }
.search.small input[type=search] { padding: 6px 0; font-size: 13px; }
.me { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-ink);
      display: grid; place-items: center; font-weight: 700; font-size: 13px; cursor: pointer; margin-left: auto; }
.menu { display: none; }
.view { padding: 26px 28px 60px; max-width: 1280px; width: 100%; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pagehead p { margin: 4px 0 0; }

/* controls */
button, .btnlike { font: inherit; font-weight: 600; font-size: 13.5px; border-radius: 9px; padding: 8px 14px;
         cursor: pointer; display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; }
button.primary { background: var(--accent); color: #fff; }
button.primary:hover { background: var(--accent2); }
button.ghost, .btnlike.ghost { background: var(--card); color: var(--ink2); border-color: var(--line2); }
button.ghost:hover, .btnlike.ghost:hover { background: var(--hover); text-decoration: none; }
button.danger { background: var(--card); color: var(--bad); border-color: var(--line2); }
button:disabled { opacity: .55; cursor: default; }
button i[data-icon] { width: 16px; height: 16px; }
.iconbtn { background: none; border: none; padding: 6px; color: var(--muted); border-radius: 8px; }
.iconbtn:hover { background: var(--hover); }
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; color: var(--ink2); }
input[type=text], input[type=url], input[type=password], input[type=email], input[type=search],
input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 9px; background: var(--card);
  color: var(--ink); font: inherit; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
input[type=file] { font: inherit; color: var(--muted); padding: 6px 0; }
textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 16px; }
.row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
        margin-bottom: 20px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tag { font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--line);
       padding: 3px 9px; border-radius: 999px; }
.grid2 { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }

/* home */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
        box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
             background: var(--accent-bg); color: var(--accent-ink); }
.stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12.5px; }
.joincard { background: linear-gradient(135deg, var(--card) 55%, var(--accent-bg)); }
.quickjoin input[name=join_url] { padding: 12px 14px; font-size: 14.5px; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mode { text-align: left; background: var(--card); border: 1.5px solid var(--line2); border-radius: 11px;
        padding: 11px 12px; color: var(--ink); font-weight: 500; display: block; }
.mode:hover { border-color: var(--accent); background: var(--card); }
.mode.on { border-color: var(--accent); background: var(--accent-bg); }
.mode .mt { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; }
.mode .md { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; font-weight: 400; }
.mode i[data-icon] { color: var(--accent); width: 17px; height: 17px; }
.quickjoin textarea { margin-top: 12px; }

.list .item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.list .item:first-child { border-top: none; padding-top: 0; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; font-size: 13.5px; }
.empty.big { padding: 46px 0; }
.feed .fitem { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
               padding: 14px 8px; border-top: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.feed .fitem:first-child { border-top: none; }
.feed .fitem:hover { background: var(--hover); }
.datebox { width: 46px; height: 50px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
           display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.datebox small { font-size: 10.5px; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: .04em; }
.datebox b { font-size: 18px; }
.ftitle { font-weight: 600; }
.fsub { color: var(--muted); font-size: 12.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.fsnip { color: var(--ink2); font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2;
         -webkit-box-orient: vertical; overflow: hidden; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
        font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.accent { background: var(--accent-bg); color: var(--accent-ink); }
.pill.plain { background: var(--bg); color: var(--ink2); border: 1px solid var(--line); }
.pill .live { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.plat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); }
.plat .pdot { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center;
              color: #fff; font-size: 10px; font-weight: 700; }
.pdot.zoom { background: #2d8cff; } .pdot.meet { background: #00a96e; }
.pdot.teams { background: #5b5fc7; } .pdot.rooms { background: var(--accent); }
.pdot.upload { background: #64748b; }

/* meetings table */
.filters { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filters select { width: auto; min-width: 170px; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line2); border-radius: 10px; padding: 3px; }
.seg button { background: none; color: var(--muted); padding: 6px 12px; border-radius: 7px; font-weight: 600; }
.seg button.on { background: var(--accent-bg); color: var(--accent-ink); }
.mtable .mrow { display: grid; grid-template-columns: 2.3fr 1fr 1fr .8fr 1fr auto; gap: 14px; align-items: center;
                padding: 14px 20px; border-top: 1px solid var(--line); }
.mtable .mrow.head { border-top: none; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
                     color: var(--muted); font-weight: 600; padding-top: 12px; padding-bottom: 10px; background: var(--bg); }
.mtable .mrow.click { cursor: pointer; }
.mtable .mrow.click:hover { background: var(--hover); }
.mtable .mrow .actions { display: flex; gap: 6px; justify-content: flex-end; }
.mtable .errline { grid-column: 1 / -1; background: var(--bad-bg); color: var(--bad); font-size: 12.5px;
                   padding: 7px 10px; border-radius: 8px; }
.mtable.agents .mrow { grid-template-columns: 1.8fr 1fr .6fr 1fr 1fr auto; }
.mtable.rooms .mrow { grid-template-columns: 2fr 1.2fr 1fr auto; }

/* meeting detail */
.detailhead { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin-bottom: 18px; align-items: end; }
.back { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; font-size: 13px; }
.back i[data-icon] { width: 15px; height: 15px; }
.meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); margin-top: 6px; font-size: 13px; }
.dh-actions { display: flex; gap: 8px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.detail .card { margin-bottom: 0; }
.detail .transcript { position: sticky; top: 84px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px -4px 16px; padding: 0 4px; }
.tabs button { background: none; border: none; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted);
               padding: 8px 10px 10px; font-weight: 600; }
.tabs button.on { color: var(--accent-ink); border-bottom-color: var(--accent); }
.sec { margin-bottom: 20px; }
.sec h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.overview { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--accent-bg); color: var(--accent-ink); padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.points { margin: 0; padding-left: 18px; }
.points li { margin-bottom: 7px; }
.check { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: none; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; cursor: pointer; }
.check.done .ctext { text-decoration: line-through; color: var(--muted); }
.check .cmeta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.check .cmeta b { color: var(--ink2); font-weight: 600; }
.turns { overflow: auto; padding-right: 4px; flex: 1; }
.turn { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 9px 0; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff;
      font-size: 12px; font-weight: 700; }
.turn .who { font-weight: 600; font-size: 13px; }
.turn .who small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.turn .txt { color: var(--ink2); font-size: 13.5px; }
.turn.agent .who { color: var(--accent-ink); }
mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.note { border-left: 3px solid var(--line2); padding: 6px 0 6px 12px; margin-bottom: 12px; }
.note .who { font-size: 12px; color: var(--muted); }
.note.objection { border-left-color: var(--bad); } .note.suggestion { border-left-color: var(--accent); }
.note.question { border-left-color: var(--warn); }
.pending { display: flex; gap: 10px; align-items: center; color: var(--muted); padding: 24px 0; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--accent);
           animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* action items page */
.igroup { margin-bottom: 18px; }
.igroup .ghead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }

/* integrations */
.intgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.intcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
           box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.intcard .ih { display: flex; align-items: center; gap: 12px; }
.intcard .ilogo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.intcard p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }

/* settings */
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.subnav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.subnav button { background: none; border: none; justify-content: flex-start; color: var(--ink2); font-weight: 500; padding: 9px 12px; }
.subnav button:hover { background: var(--hover); }
.subnav button.on { background: var(--accent-bg); color: var(--accent-ink); font-weight: 600; }
.sgroup h3 { margin-bottom: 4px; }
.sgroup > p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.srow { display: grid; grid-template-columns: 1fr minmax(220px, 340px); gap: 16px; align-items: center;
        padding: 14px 0; border-top: 1px solid var(--line); }
.srow:first-of-type { border-top: none; }
.srow.wide { grid-template-columns: 1fr; }
.srow .sl { font-weight: 600; font-size: 13.5px; }
.srow .sd { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.srow label { margin: 0; }
.switch { position: relative; width: 40px; height: 22px; display: inline-block; justify-self: end; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line2); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%;
                      background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .5; cursor: default; }
.soon { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line);
        padding: 2px 8px; border-radius: 999px; }

/* messages */
.msg { padding: 10px 13px; border-radius: 9px; margin-top: 14px; font-size: 13px; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.bad { background: var(--bad-bg); color: var(--bad); }
.msg.info { background: var(--info-bg); color: var(--info); }
.warn { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; margin-top: 6px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--card);
         padding: 10px 16px; border-radius: 10px; font-weight: 500; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 12.5px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(20, 18, 40, .42); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal-card { background: var(--card); border-radius: 16px; padding: 22px 24px; width: min(640px, 100%);
              max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 70px rgba(20, 18, 60, .28); }
.modes.big .mode { padding: 13px 14px; }
.whenrow { display: grid; grid-template-columns: auto auto 1fr 90px auto; gap: 10px; align-items: center; margin-top: 14px; }
.radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0; cursor: pointer; }
.radio input { accent-color: var(--accent); }

/* avatar presets */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-top: 10px; }
.presets button { padding: 0; border: 2px solid transparent; background: none; border-radius: 10px; line-height: 0; }
.presets button.on { border-color: var(--accent); }
.presets img { width: 100%; border-radius: 8px; display: block; background: var(--bg); }

/* phone width */
@media (max-width: 1080px) {
  .grid2, .detail { grid-template-columns: 1fr; }
  .detail .transcript { position: static; max-height: 70vh; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .side { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s;
          box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .side.open { transform: none; }
  .menu { display: inline-flex; }
  .top { padding: 10px 16px; }
  .top .primary span { display: none; }
  .view { padding: 18px 16px 50px; }
  .row, .row3, .settings, .modes { grid-template-columns: 1fr; }
  .subnav { position: static; flex-direction: row; overflow-x: auto; }
  .mtable .mrow, .mtable.agents .mrow, .mtable.rooms .mrow { grid-template-columns: 1fr auto; }
  .mtable .mrow > :nth-child(n+2):not(.actions):not(.errline) { display: none; }
  .mtable .mrow.head { display: none; }
  .srow { grid-template-columns: 1fr; }
  .switch { justify-self: start; }
  .whenrow { grid-template-columns: 1fr 1fr; }
  .pagehead { flex-direction: column; align-items: flex-start; }
}

/* ── Fireflies-style chrome: account menu, search, bell, capture ─────────── */
.acct-wrap { position: relative; margin-bottom: 14px; }
.acct { width: 100%; background: none; border: 1px solid transparent; padding: 8px 8px; border-radius: 11px;
        display: flex; align-items: center; gap: 10px; color: var(--ink); text-align: left; }
.acct:hover { background: var(--hover); }
.acct-name { flex: 1; min-width: 0; line-height: 1.2; }
.acct-name b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-name small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.acct i[data-icon] { width: 15px; height: 15px; color: var(--muted); }
.menu-pop { position: absolute; z-index: 35; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
            box-shadow: 0 14px 40px rgba(20, 18, 60, .16); padding: 6px; min-width: 240px; }
#acctMenu { top: calc(100% + 4px); left: 0; right: 0; }
.menu-pop > a, .menu-pop > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px;
              background: none; border: none; color: var(--ink2); font-weight: 500; font-size: 13.5px; text-align: left; }
.menu-pop > a:hover, .menu-pop > button:hover { background: var(--hover); text-decoration: none; }
.menu-pop > a i[data-icon], .menu-pop > button i[data-icon] { width: 16px; height: 16px; color: var(--muted); }
.menu-pop .soon { margin-left: auto; }
.mp-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.mp-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.mp-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 4px 10px; }
.seg.theme { display: flex; margin: 2px 6px 4px; } .seg.theme button { flex: 1; }
.me.big { width: 38px; height: 38px; margin: 0; flex: none; }
.navlist a kbd { margin-left: auto; font: 600 10.5px Inter, sans-serif; color: var(--muted); background: var(--bg);
                 border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.search-wrap { position: relative; flex: 1; max-width: 560px; }
.menu-pop.sdrop { top: calc(100% + 6px); left: 0; right: 0; }
.sdrop .dhead { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 6px 10px 4px; }
.sdrop button small { color: var(--muted); margin-left: auto; font-size: 12px; }
.top-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.pop-wrap { position: relative; }
.bell { position: relative; color: var(--ink2); }
.badge { position: absolute; top: 1px; right: 1px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700;
         border-radius: 999px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }
.menu-pop.notif { right: 0; top: calc(100% + 8px); width: 380px; padding: 10px; }
.np-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.link { background: none; border: none; color: var(--accent); padding: 0; font-weight: 600; font-size: 12.5px; }
.seg.small button { padding: 4px 9px; font-size: 12px; }
.radio.small { font-size: 12.5px; margin: 8px 4px; color: var(--muted); }
.np-list { max-height: 380px; overflow: auto; }
.nitem { display: flex; gap: 10px; padding: 10px 6px; border-radius: 9px; cursor: pointer; border-top: 1px solid var(--line); }
.nitem:hover { background: var(--hover); }
.nitem .ndot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.nitem.read .ndot { background: transparent; }
.nitem .nt { font-size: 13px; font-weight: 500; }
.nitem.read .nt { color: var(--muted); font-weight: 400; }
.nitem small { color: var(--muted); font-size: 11.5px; display: block; }
.menu-pop.capture { right: 0; top: calc(100% + 8px); width: 300px; }
.menu-pop.dl { right: 0; top: calc(100% + 6px); width: 230px; }
.row-gap { display: flex; gap: 8px; align-items: center; }
.audit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.audit-grid > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.audit-grid b { display: block; font-size: 18px; }
.audit-grid small { color: var(--muted); font-size: 12px; }
.audit-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 16px 0 6px; }
.audit-ev { display: grid; grid-template-columns: 120px 90px 1fr; gap: 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.audit-ev.warn .ad { color: var(--warn); } .audit-ev.error .ad { color: var(--bad); }
.audit-ev small { color: var(--muted); }
@media (max-width: 600px) { .audit-ev { grid-template-columns: 1fr; gap: 2px; } }
.menu-pop.capture > button { align-items: flex-start; padding: 10px; }
.menu-pop.capture > button i[data-icon] { color: var(--accent); margin-top: 2px; }
.menu-pop.capture b { display: block; color: var(--ink); font-size: 13.5px; }
.menu-pop.capture small { color: var(--muted); font-size: 12px; font-weight: 400; }
#captureBtn i[data-icon="chevron"] { width: 14px; height: 14px; }
.accent-i { color: var(--accent); vertical-align: -3px; }
.sechead { margin: 26px 0 12px; font-size: 15px; }

/* ── Home ────────────────────────────────────────────────────────────────── */
.welcome { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
           background: linear-gradient(120deg, var(--card) 40%, var(--accent-bg)); }
.welcome h1 { font-size: 26px; margin-bottom: 6px; }
.walk { display: flex; flex-direction: column; gap: 10px; }
.walk-step { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
             border-radius: 11px; padding: 10px 14px; font-weight: 500; }
.walk-step span { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid;
                  place-items: center; font-weight: 700; font-size: 13px; }
.quick3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: left;
         display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--ink); box-shadow: var(--shadow); }
.qcard:hover { border-color: var(--accent); }
.qcard b { font-size: 14.5px; } .qcard small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.qi { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-ink);
      display: grid; place-items: center; margin-bottom: 4px; }
.grid-home { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.side-col .card { margin-bottom: 20px; }
.pa .cardhead { flex-wrap: wrap; }
.pa-text { line-height: 1.65; color: var(--ink); }
.pa-text ul { margin: 6px 0; padding-left: 20px; } .pa-text li { margin-bottom: 5px; }
.pa-text p { margin: 6px 0; }
.prep-item { border-top: 1px solid var(--line); padding: 14px 0; }
.prep-item:first-child { border-top: none; padding-top: 0; }
.trow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.trow:first-of-type { border-top: none; }
.trow div { flex: 1; } .trow b { display: block; font-size: 13.5px; } .trow small { color: var(--muted); font-size: 12px; }
.trow i[data-icon] { color: var(--accent); }
.ms-row { padding: 10px 0; border-top: 1px solid var(--line); }
.ms-row:first-child { border-top: none; padding-top: 0; }
.ms-row label { margin: 0 0 6px; }
.ms-row .inline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.feed .fitem.ai { grid-template-columns: 38px 1fr auto; }
.aiic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-bg); color: var(--accent-ink); display: grid; place-items: center; }

/* ── Ask (page and dock) ─────────────────────────────────────────────────── */
.chat { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 420px; padding: 0; }
.chat-log { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-in { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-in input { flex: 1; }
.chat-in button { padding: 8px 12px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; line-height: 1.6; font-size: 13.5px; }
.bubble.you { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.ai ul { margin: 4px 0; padding-left: 18px; } .bubble.ai p { margin: 4px 0; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sources a { font-size: 12px; background: var(--card); border: 1px solid var(--line2); padding: 2px 9px; border-radius: 999px; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.suggest button { background: var(--card); border: 1px solid var(--line2); color: var(--ink2); font-weight: 500; font-size: 13px; }
.suggest button:hover { border-color: var(--accent); color: var(--accent-ink); }
.chat-empty { margin: auto; text-align: center; color: var(--muted); max-width: 520px; }
.chat-empty .aiic { margin: 0 auto 10px; width: 46px; height: 46px; }
.dock { position: fixed; z-index: 25; background: var(--card); border: 1px solid var(--line); box-shadow: 0 -10px 40px rgba(20,18,60,.14);
        display: flex; flex-direction: column; }
.dock.bottom { left: 260px; right: 24px; bottom: 0; height: 46vh; border-radius: 14px 14px 0 0; }
.dock.right { top: 0; right: 0; bottom: 0; width: 420px; border-radius: 0; box-shadow: -10px 0 40px rgba(20,18,60,.14); }
.dock-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dock-tools { margin-left: auto; display: flex; }

/* ── Meeting page extras ─────────────────────────────────────────────────── */
.player { width: 100%; margin: 0 0 16px; height: 40px; }
.player.video { height: auto; max-height: 480px; background: #000; border-radius: 10px; }
.skillrun { display: flex; gap: 8px; margin-bottom: 14px; }
.skillrun select { flex: 1; }
.outcard { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.outcard .oh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.md { white-space: pre-wrap; font: inherit; margin: 0; color: var(--ink2); font-size: 13.5px; line-height: 1.6; }

/* ── AI skills ───────────────────────────────────────────────────────────── */
.skillgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.skill { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
         display: flex; flex-direction: column; gap: 8px; }
.skill .sh { display: flex; align-items: center; gap: 10px; }
.skill .sh b { flex: 1; }
.skill p { margin: 0; color: var(--muted); font-size: 13px; flex: 1; }
.skill .sf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.skill .sf span { font-size: 12.5px; color: var(--ink2); }

/* ── Analytics ───────────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.charts .card { margin-bottom: 0; }
.charts .wide { grid-column: 1 / -1; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: Inter, sans-serif; }
.chart .bar { fill: var(--accent); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar { fill: var(--accent2); }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 60px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .hl { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .ht { background: var(--bg); border-radius: 4px; height: 12px; overflow: hidden; }
.hbar .hf { background: var(--accent); height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .hv { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--card); font-size: 12px;
       padding: 6px 9px; border-radius: 7px; box-shadow: 0 6px 20px rgba(0,0,0,.2); white-space: nowrap; }

/* ── Upload, record, invite ──────────────────────────────────────────────── */
.drop { display: flex !important; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; margin: 4px 0 0;
        border: 2px dashed var(--line2); border-radius: 12px; cursor: pointer; text-align: center; font-weight: 500; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-bg); }
.drop input { display: none; }
.drop i[data-icon] { width: 28px; height: 28px; color: var(--accent); }
.drop small { color: var(--muted); font-weight: 400; }
.progress { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.modal-card.narrow { width: min(440px, 100%); }
.recorder { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rec-dot { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-bg); }
.rec-dot.on { background: var(--bad); animation: pulse 1.2s infinite; }
.rec-time { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
#recLevel { width: 100%; height: 40px; }
.row-actions.center { justify-content: center; }
.copyrow { display: flex; gap: 8px; }

@media (max-width: 1080px) {
  .grid-home, .charts, .welcome { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dock.bottom { left: 0; right: 0; }
}
@media (max-width: 820px) {
  .quick3 { grid-template-columns: 1fr; }
  #inviteBtn span, #captureBtn span { display: none; }
  .menu-pop.notif { position: fixed; left: 8px; right: 8px; top: 60px; width: auto; }
  .dock.right { width: 100%; }
  .hbar { grid-template-columns: 90px 1fr 48px; }
}

/* ══ Fireflies layout, matched to the guide's screenshots ════════════════════ */

/* Sidebar */
.side { padding: 12px 10px; }
.acct-wrap { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.acct { flex: 1; padding: 6px 8px; }
.acct-av { width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: #fff; display: grid; place-items: center;
           font-size: 11px; font-weight: 700; flex: none; }
.acct-name b { font-size: 14px; font-weight: 600; }
.collapse { flex: none; }
.navlist a, .navlist button.email-try { padding: 8px 12px; gap: 12px; font-size: 14.5px; }
.navlist a i[data-icon] { color: var(--ink2); }
.navlist a.on i[data-icon] { color: var(--accent-ink); }
.navsep { height: 1px; background: var(--line); margin: 8px 10px; }
.navlist em.new { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: #0f8a5f; background: #e3f7ee;
                  padding: 1px 6px; border-radius: 5px; }
.email-try { display: flex; align-items: center; background: var(--accent-bg); color: var(--ink); border: none; border-radius: 9px;
             font-weight: 500; margin-bottom: 10px; text-align: left; }
.email-try i[data-icon] { color: #ea4335; }
.app.collapsed .side { width: 64px; }
.app.collapsed .side .acct-name, .app.collapsed .side .acct > i, .app.collapsed .navlist span,
.app.collapsed .navlist em, .app.collapsed .navlist kbd { display: none; }
.app.collapsed .acct-wrap { flex-direction: column; }
.app.collapsed .navlist a, .app.collapsed .navlist button.email-try { justify-content: center; padding: 9px 0; }
.app.collapsed .dock.bottom { left: 88px; }

/* Account menu: two columns, as in the guide */
.menu-pop.acctmenu { top: calc(100% + 6px); left: 0; display: grid; grid-template-columns: 300px 320px; padding: 0; overflow: hidden; }
.am-left { padding: 6px 0; border-right: 1px solid var(--line); }
.am-left > button, .am-left > a { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 20px;
                                  color: var(--ink); font-weight: 400; font-size: 14px; border-radius: 0; }
.am-left > button:hover, .am-left > a:hover { background: var(--hover); text-decoration: none; }
.am-hi, .am-block { padding: 12px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.am-hi b { font-size: 16px; }
.credit { height: 4px; background: var(--line); border-radius: 999px; margin: 8px 0 4px; overflow: hidden; }
.credit span { display: block; height: 100%; background: #f59e6b; border-radius: 999px; }
.am-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.am-row i[data-icon] { width: 13px; height: 13px; vertical-align: -2px; }
.am-sep { height: 1px; background: var(--line); margin: 4px 0; }
.am-theme { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; font-size: 14px; }
.am-theme select { width: auto; padding: 3px 8px; font-size: 13px; border: none; background: none; color: var(--muted); }
.beta { font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-bg); padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.am-right { padding: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.am-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column;
           gap: 6px; align-items: flex-start; }
.am-card b { font-weight: 500; font-size: 15px; margin-top: 8px; }
.am-card small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.am-card i[data-icon] { width: 24px; height: 24px; }
.pink { color: #e2507a; } .violet { color: var(--accent); } .chrome { color: #1a73e8; }
.stores { display: flex; gap: 8px; margin-top: 6px; }
.stores button { background: var(--card); border: 1px solid var(--line2); color: var(--ink2); font-size: 12px; padding: 5px 9px; font-weight: 500; }
.stores i[data-icon] { width: 14px; height: 14px; }
button.small { padding: 5px 11px; font-size: 12.5px; }

/* Top bar */
.top { gap: 14px; padding: 10px 22px; background: var(--card); backdrop-filter: none; }
.crumb { font-size: 15px; font-weight: 500; min-width: 120px; }
.search-wrap { max-width: 380px; margin: 0 auto; }
.search kbd { font: 500 12px Inter, sans-serif; color: var(--muted); white-space: nowrap; }
.top-actions { margin-left: 0; gap: 8px; }
.credits { background: var(--card); color: var(--ink); border: 1.5px solid #b9e4dc; font-weight: 500; }
.credits i[data-icon] { color: var(--ink); }
.bell { position: relative; }
.bdot { position: absolute; top: 4px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.invite { background: var(--accent-bg); color: var(--accent-ink); font-weight: 500; }
.split { display: flex; }
.split .capture-main { border-radius: 9px 0 0 9px; }
.split .capture-more { border-radius: 0 9px 9px 0; padding: 8px 8px; border-left: 1px solid rgba(255,255,255,.35); }
.menu-pop.capture { width: 250px; padding: 6px; }
.menu-pop.capture > button { align-items: center; padding: 9px 12px; font-size: 14px; color: var(--ink); font-weight: 400; }
.menu-pop.capture > button i[data-icon] { color: var(--ink2); margin: 0; }

/* Home: one centred column on the soft gradient */
.view.home { max-width: none; padding: 0; min-height: calc(100vh - 57px); position: relative;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(120, 170, 235, .42), transparent 70%),
    radial-gradient(900px 420px at 100% 0%, rgba(250, 190, 170, .45), transparent 70%),
    var(--card); }
.home-col { max-width: 940px; margin: 0 auto; padding: 44px 24px 120px; }
.greet { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.greet h1 { font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
.link-muted { background: none; border: none; color: var(--ink2); font-weight: 500; font-size: 14px; display: inline-flex; gap: 6px;
              align-items: center; padding: 0; }
.link-muted:hover { color: var(--accent-ink); text-decoration: none; }
.link-muted i[data-icon] { width: 16px; height: 16px; }
.pa-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--ink2); font-size: 15px; }
.pa-head > span { display: inline-flex; gap: 8px; align-items: center; }
.pa-head i[data-icon] { width: 17px; height: 17px; }
.pa-head .info { color: var(--muted); width: 15px; height: 15px; }
.pa-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.pa-tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: left;
           display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: var(--ink); box-shadow: 0 1px 3px rgba(20,20,60,.05);
           font-weight: 400; }
.pa-tile:hover, .pa-tile.on { border-color: var(--accent); }
.pa-tile b { font-weight: 500; font-size: 15px; margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.pa-tile small { color: var(--muted); font-size: 14px; }
.pa-ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.pa-ic.blue { background: linear-gradient(135deg, #8b9cff, #6c7cf5); }
.pa-ic.orange { background: linear-gradient(135deg, #ff9a8b, #f76b8a); }
.pa-ic.green { background: linear-gradient(135deg, #a3e635, #4ade80); }
.pa-ic i[data-icon] { width: 18px; height: 18px; }
.pa-badge { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; color: #e11d48; background: #ffe4e6;
            padding: 2px 7px; border-radius: 5px; }
.listen { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--ink); cursor: pointer; }
.listen i[data-icon] { width: 13px; height: 13px; }
.listen.on { color: var(--accent-ink); }
.pa-panel { margin-bottom: 18px; }
.act-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 8px; }
.seg.soft { background: var(--bg); border: none; padding: 3px; }
.seg.soft button { color: var(--ink2); font-weight: 500; padding: 6px 14px; }
.seg.soft button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mlist .mitem { display: grid; grid-template-columns: 36px 1fr auto; gap: 16px; align-items: center; padding: 12px 6px; border-radius: 10px;
                cursor: pointer; }
.mlist .mitem:hover { background: var(--hover); }
.msq { width: 36px; height: 36px; border-radius: 5px; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 500;
       background: #5b5fc7; }
.msq.zoom { background: #2d8cff; } .msq.meet { background: #00a96e; } .msq.teams { background: #5b5fc7; }
.msq.rooms { background: var(--accent); } .msq.upload { background: #64748b; }
.msq.ai { background: var(--accent-bg); color: var(--accent-ink); }
.msq.ai svg { width: 18px; height: 18px; }
.mtitle { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.mtitle .mini { width: 15px; height: 15px; color: var(--muted); }
.msub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.mright { display: flex; gap: 6px; align-items: center; }

/* Getting started */
.welcome { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 30px 40px; border-radius: 14px;
           background: linear-gradient(120deg, #fff7f0, #ffe8dc); border: 1px solid #ffd9c4; margin-bottom: 34px; box-shadow: none; }
.welcome h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; color: #1b1d29; }
.welcome p { margin: 0; color: #4a4d63; max-width: 340px; }
.walkthrough { padding: 4px; background: #ffb48a; border: none; border-radius: 12px; }
.wt-screen { width: 150px; height: 96px; border-radius: 9px; display: grid; place-items: center;
             background: linear-gradient(160deg, #1d1559, #4b2fd0); }
.wt-play { width: 34px; height: 24px; border-radius: 8px; background: #7c5cff; color: #fff; display: grid; place-items: center; }
.wt-play i[data-icon] { width: 13px; height: 13px; }
.sechead { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.sub { margin: 0 0 14px; font-size: 13.5px; }
.quick3 { gap: 14px; margin-bottom: 30px; }
.qtile { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 9px; border: none; font-weight: 400; color: var(--ink);
         text-align: left; }
.qtile span { flex: 1; }
.qtile i[data-icon] { width: 17px; height: 17px; }
.qtile.pink { background: #fdeef3; } .qtile.pink i[data-icon]:first-child { color: #e2507a; }
.qtile.green { background: #e9f8f1; } .qtile.green i[data-icon]:first-child { color: #12a37a; }
.qtile.violet { background: #f0edff; } .qtile.violet i[data-icon]:first-child { color: var(--accent); }
.qtile:hover { filter: brightness(.97); }
.try2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.trycard { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column;
           align-items: flex-start; gap: 6px; }
.trycard i[data-icon] { width: 22px; height: 22px; }
.trycard b { font-weight: 500; margin-top: 10px; }
.trycard small { color: var(--muted); font-size: 13px; }
.trycard .primary { margin-top: 8px; }

/* The floating ask bar on Home */
.askbar { position: sticky; bottom: 18px; margin: 0 auto; max-width: 690px; display: flex; align-items: center; gap: 4px;
          background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 16px;
          box-shadow: 0 8px 30px rgba(20, 18, 60, .12); z-index: 4; }
.askbar input { border: none; background: none; box-shadow: none !important; padding: 8px 0; flex: 1; }
.askbar .iconbtn { color: var(--ink2); }
.askbar .iconbtn.on { color: #ef4444; }
.askgo { width: 28px; height: 28px; padding: 0; justify-content: center; background: #c4b8ff; color: #fff; border-radius: 7px; }
.askgo:hover { background: var(--accent); }

/* Help */
.helpfab { position: fixed; right: 22px; bottom: 22px; z-index: 20; width: 52px; height: 52px; border-radius: 50%; padding: 0;
           justify-content: center; background: #3b2a9e; color: #fff; box-shadow: 0 6px 20px rgba(40, 20, 120, .35); }
.helpfab i[data-icon] { width: 26px; height: 26px; }
.menu-pop.helppop { position: fixed; right: 22px; bottom: 84px; width: 280px; padding: 14px; }
.helppop .kb { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.helppop kbd { font: 500 12px Inter, sans-serif; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.helppop > a { display: block; padding: 6px 0; }
.walk-step div { display: flex; flex-direction: column; }
.walk-step small { color: var(--muted); font-weight: 400; }

@media (max-width: 1080px) {
  .search-wrap { max-width: 260px; }
  .credits span, .crumb { display: none; }
}
@media (max-width: 820px) {
  .pa-tiles, .try2, .quick3 { grid-template-columns: 1fr; }
  .menu-pop.acctmenu { grid-template-columns: 1fr; width: calc(100vw - 24px); max-height: 80vh; overflow: auto; }
  .am-right { display: none; }
  .welcome { flex-direction: column; align-items: flex-start; padding: 22px; }
  .home-col { padding: 26px 16px 110px; }
  .invite span, .search kbd, .credits { display: none; }
  .helpfab { width: 44px; height: 44px; right: 14px; bottom: 86px; }
  .askbar { margin: 0 12px; }
}

/* The sidebar is sticky, which makes it a stacking context: without a z-index
   above the top bar, the account menu opened from it is painted underneath. */
.side { z-index: 30; }
#acctMenu { right: auto; width: 620px; }
@media (max-width: 820px) { #acctMenu { width: calc(100vw - 24px); } }

/* AI model: RT / BT */
.llm-mode { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.llm-mode p { margin: 4px 0 0; max-width: 60ch; }
.llm-head { margin-bottom: 12px; }
.llm-head p { margin: 4px 0 0; }
.llm-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 4px; }
.llm-use { list-style: none; margin: 8px 0 0; padding: 0; }
.llm-use li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.llm-use li:first-child { border-top: none; }
.llm-use li div { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 1080px) { .llm-body { grid-template-columns: 1fr; } }

/* Admin: tables, filters, sign-in error */
input[type=date] { padding: 8px 10px; border: 1px solid var(--line2); border-radius: 9px; background: var(--card);
  color: var(--ink); font: inherit; outline: none; }
.filters .grow { flex: 1 1 220px; width: auto; min-width: 180px; }
.filters label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:first-child td { border-top: none; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl select { width: auto; padding: 5px 8px; font-size: 12.5px; }
.tbl .acts { white-space: nowrap; text-align: right; }
.tbl .acts button { margin-left: 4px; }
.tbl .detail { max-width: 340px; }
button.small { padding: 5px 10px; font-size: 12.5px; }
button.danger-text { color: var(--bad); }
.cardhead.pad { padding: 16px 20px 6px; }
#adminUsers .empty, #adminActivity .empty { padding: 28px; text-align: center; color: var(--muted); }
.signin-error { max-width: 420px; margin: 18vh auto; padding: 24px; text-align: center; font-family: system-ui, sans-serif; }

/* Admin: AI usage */
.badge-inline { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.tabs.sub { margin: 4px 0 16px; }
.tabs.sub button { font-size: 13px; }
.lim { display: grid; grid-template-columns: 96px 90px 42px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.limbar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
.limbar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.lim.warning .limbar i { background: var(--warn); }
.lim.exceeded .limbar i { background: var(--bad); }
.lim.exceeded { color: var(--bad); font-weight: 600; }
#aiLimitBanner { margin: 0 0 16px; }
#aiBody .empty { padding: 24px; text-align: center; color: var(--muted); }

/* AI credits and hard/soft cost */
a.credits { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; text-decoration: none; }
a.credits:hover { background: var(--hover); text-decoration: none; }
.credit-card { display: grid; gap: 12px; }
.credit-card > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.credit-big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.credit-card.out .credit-big { color: var(--bad); }
.credit-meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.credit-meter span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.credit-card.out .credit-meter span { background: var(--bad); }
.credit-card .msg { margin: 0; }
.bad-text { color: var(--bad); }
.stat span.muted.small { display: block; margin-top: 2px; }
#view-myusage .kpis .stat b { font-size: 18px; }
