/* WorkGee: your work buddy. Brand tokens v1.0 (violet #6554E8, ink #202334, cloud #F7F8FC, lilac, mint, coral).
   Manrope for headings, Inter for everything else. 8px grid, 16px cards, 12px controls. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* WorkGee foundation */
  --ink: #202334;
  --cloud: #F7F8FC;
  --white: #FFFFFF;
  --lilac: #EEEBFF;
  --mint: #C5F3DF;
  --mint-ink: #12704A;
  --coral: #FF927E;
  --coral-ink: #B23A22;
  /* Business accent (from workspace branding; WorkGee violet by default) */
  --action: #6554E8;
  --action-hover: #5748C8;
  --action-soft: var(--brand-soft, #EEEBFF);
  --action-softer: var(--brand-softer, #F6F5FE);
  --action-on-dark: #9C93F2;
  --on-action: #FFFFFF;
  /* Surfaces & text */
  --bg: var(--white);
  --surface: var(--white);
  --canvas: var(--cloud);
  --side-bg: var(--cloud);
  --fg: var(--ink);
  --muted: #6B7085;
  --faint: #9A9EB2;
  --line: #E6E8F0;
  --line-strong: #D5D8E5;
  --hover: #F1F2F8;
  --bubble: #F1F2F8;
  --bubble-me: var(--action-soft);
  --mention-bg: var(--action-soft);
  --mention-me-bg: #FFE3DC;
  --success: #12704A;
  --warning: #8A5300;
  --danger: #C2331A;
  --link: var(--action);
  --focus: var(--action);
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(32, 35, 52, .06);
  --shadow: 0 12px 32px rgba(32, 35, 52, .14);
  --shadow-pop: 0 8px 24px rgba(32, 35, 52, .12), 0 1px 3px rgba(32, 35, 52, .08);
  --topbar-h: 64px;
  --sidebar-w: 248px;
  --pane-w: 360px;
  --tabbar-h: 0px;
  --font-head: Manrope, Inter, system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
  :root[data-theme="dark"] {
    --bg: #171925;
    --surface: #1F2231;
    --canvas: #13151F;
    --side-bg: #13151F;
    --fg: #ECEDF5;
    --muted: #A3A7BC;
    --faint: #7A7E94;
    --line: #2B2F42;
    --line-strong: #383C52;
    --hover: #252839;
    --bubble: #252839;
    --bubble-me: #2E2A55;
    --action-soft: color-mix(in srgb, var(--action) 26%, #171925);
    --action-softer: color-mix(in srgb, var(--action) 12%, #171925);
    --mention-bg: #2E2A55;
    --mention-me-bg: #5A2E26;
    --mint: #17402F;
    --mint-ink: #7FE3B6;
    --coral-ink: #FFB3A5;
    --link: var(--action-on-dark);
    --focus: var(--action-on-dark);
    --shadow: 0 12px 32px rgba(0, 0, 0, .5);
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font: inherit; color: var(--fg); background: var(--surface); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--fg); letter-spacing: -.01em; }
svg.i { flex: none; display: inline-block; vertical-align: middle; }
.gee-mark { flex: none; display: inline-block; vertical-align: middle; }

/* ---------- buttons & fields ---------- */
.btn { border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); border-radius: var(--r-sm); padding: 9px 16px; font-weight: 600; font-size: 14px; line-height: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--on-action); box-shadow: 0 1px 2px rgba(101, 84, 232, .25); }
.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn.soft { background: var(--action-soft); border-color: transparent; color: var(--action); }
:root[data-theme="dark"] .btn.soft { color: var(--action-on-dark); }
.btn.soft:hover { filter: brightness(.97); }
.btn.danger { color: var(--danger); border-color: currentColor; background: var(--surface); }
.btn.small { padding: 5px 12px; font-size: 13px; border-radius: 10px; }
.btn.pill { border-radius: 999px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { border-color: transparent; background: none; color: var(--muted); padding: 4px 10px; }
.btn.ghost:hover { background: var(--hover); color: var(--fg); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 13px; line-height: 18px; }
.field input, .field select, .field textarea, .input { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 14px; width: 100%; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--action); outline: none; box-shadow: 0 0 0 3px var(--action-soft); }
.field .hint, .hint { font-size: 13px; color: var(--muted); line-height: 18px; }
.error { color: var(--danger); font-size: 14px; min-height: 1em; }
.error:empty { min-height: 0; }
.error:not(:empty)::before { content: "⚠ "; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap; background: var(--hover); color: var(--fg); border: 0; }
.chip.mint { background: var(--mint); color: var(--mint-ink); }
.chip.lilac { background: var(--action-soft); color: var(--action); }
:root[data-theme="dark"] .chip.lilac { color: var(--action-on-dark); }
.chip.coral { background: #FFE3DC; color: var(--coral-ink); }
:root[data-theme="dark"] .chip.coral { background: #4A2620; }
.chip .avatar { margin-left: -6px; }
button.chip:hover { filter: brightness(.96); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 0; background: var(--hover); color: var(--fg); border-radius: 10px; padding: 7px 16px; font-weight: 500; font-size: 14px; }
.seg button.on { background: var(--action-soft); color: var(--action); font-weight: 600; }
:root[data-theme="dark"] .seg button.on { color: var(--action-on-dark); }

/* ---------- sign-in / setup ---------- */
.login { min-height: 100%; display: grid; place-items: center; background: radial-gradient(1200px 600px at 10% -10%, var(--action-soft), transparent 60%), radial-gradient(900px 500px at 110% 110%, var(--mint), transparent 55%), var(--canvas); padding: 24px 16px; }
.login form { background: var(--surface); padding: 32px; border-radius: var(--r-lg); width: 100%; max-width: 420px; box-shadow: var(--shadow); display: grid; gap: 16px; border: 1px solid var(--line); }
.login .lockup { height: 40px; width: auto; margin: 0 auto 4px; display: block; }
.login h1 { margin: 0; font-size: 26px; line-height: 34px; }
.login p { margin: 0; color: var(--muted); font-size: 14px; }
.login .client { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--canvas); border: 1px solid var(--line); }
.login .client img { height: 32px; width: auto; max-width: 120px; object-fit: contain; }
.login .foot { text-align: center; font-size: 12px; color: var(--muted); }
.login .tagline { text-align: center; color: var(--muted); font-size: 14px; margin-top: -8px; }
:root[data-theme="dark"] .lockup.light { display: none; }
:root[data-theme="light"] .lockup.dark { display: none; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) auto; grid-template-rows: var(--topbar-h) minmax(0, 1fr); height: 100vh; height: 100dvh; background: var(--bg); }
.topbar { grid-column: 1 / -1; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); z-index: 5; }
.tb-logo { display: flex; align-items: center; height: 100%; padding: 0 20px; border-right: 1px solid var(--line); background: var(--side-bg); }
.tb-logo img { height: 32px; width: auto; display: block; }
.tb-search { position: relative; max-width: 640px; width: 100%; margin: 0 auto; padding: 0 24px; }
.tb-search .i { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tb-search input { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 14px 10px 44px; background: var(--surface); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.tb-search input:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.tb-search input::placeholder { color: var(--muted); }
.tb-right { display: flex; align-items: center; gap: 4px; padding: 0 16px 0 8px; }
.tb-btn { position: relative; background: none; border: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--fg); }
.tb-btn:hover { background: var(--hover); }
.tb-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--action); border: 2px solid var(--surface); }
.tb-me { display: flex; align-items: center; gap: 10px; background: none; border: 0; border-left: 1px solid var(--line); margin-left: 8px; padding: 6px 4px 6px 16px; font-weight: 600; font-size: 15px; border-radius: 0; }
.tb-me:hover .nm { color: var(--action); }

.sidebar { background: var(--side-bg); color: var(--fg); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.side-scroll { flex: 1; overflow-y: auto; padding: 4px 0 16px; scrollbar-width: thin; }
.ws-switch { margin: 16px 16px 12px; width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-align: left; box-shadow: var(--shadow-sm); transition: border-color .15s; }
.ws-switch:hover { border-color: var(--line-strong); }
.ws-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; flex: none; overflow: hidden; letter-spacing: .02em; }
.ws-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.ws-mark.sm { width: 24px; height: 24px; font-size: 10px; border-radius: 7px; }
.ws-switch .nm { flex: 1; min-width: 0; font-family: var(--font-head); font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-switch .i { color: var(--muted); }
.side-section { padding: 4px 0 8px; }
.side-section + .side-section { border-top: 1px solid var(--line); margin: 4px 16px 0; padding: 12px 0 8px; }
.side-section + .side-section .side-item { margin-left: -8px; margin-right: -8px; width: calc(100% + 16px); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 6px 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.side-head button { background: none; border: 0; color: var(--muted); padding: 4px; border-radius: 8px; display: grid; place-items: center; }
.side-head button:hover { color: var(--fg); background: var(--hover); }
.side-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 2px 12px; border-radius: var(--r-sm); color: var(--fg); text-decoration: none; cursor: pointer; border: 0; background: none; width: calc(100% - 24px); text-align: left; font-size: 15px; line-height: 22px; transition: background .12s; }
.side-item:hover { background: var(--hover); text-decoration: none; }
.side-item.active { background: var(--action-soft); color: var(--action); font-weight: 600; }
:root[data-theme="dark"] .side-item.active { color: var(--fg); }
.side-item.unread { font-weight: 700; }
.side-item .ic { width: 22px; display: grid; place-items: center; flex: none; color: var(--muted); }
.side-item.active .ic { color: inherit; }
.side-item .ic .i { width: 20px; height: 20px; }
.side-item .hash { font-size: 18px; font-weight: 500; color: var(--muted); width: 22px; text-align: center; flex: none; }
.side-item.active .hash { color: inherit; }
.side-item .label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item.subtle { color: var(--muted); font-size: 14px; }
.side-more { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.badge { background: var(--action); color: var(--on-action); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 0 7px; min-width: 22px; text-align: center; line-height: 22px; }
.badge.soft { background: var(--action-soft); color: var(--action); }
.side-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ask-gee { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--action-soft); color: var(--action); border: 0; font-weight: 600; font-size: 15px; transition: transform .15s var(--ease), box-shadow .15s; }
.ask-gee:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(101, 84, 232, .18); }
:root[data-theme="dark"] .ask-gee { color: var(--fg); }
.ask-gee.small { padding: 5px 12px; font-size: 14px; }

/* tinted / dark sidebar options (workspace branding) */
.shell.side-tint { --side-bg: var(--action-softer); }
.shell.side-dark { --side-bg: var(--ink); }
.shell.side-dark .sidebar, .shell.side-dark .tb-logo { color: #ECEDF5; border-color: transparent; }
.shell.side-dark .side-item { color: #C9CBDA; }
.shell.side-dark .side-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.shell.side-dark .side-item.active { background: var(--action); color: var(--on-action); }
.shell.side-dark .side-item .ic, .shell.side-dark .side-item .hash, .shell.side-dark .side-head, .shell.side-dark .side-head button { color: #9A9EB2; }
.shell.side-dark .side-section + .side-section, .shell.side-dark .side-foot { border-color: rgba(255,255,255,.08); }
.shell.side-dark .ws-switch { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); color: #fff; box-shadow: none; }
.shell.side-dark .ask-gee { background: var(--action); color: var(--on-action); }
.shell.side-dark .pres { border-color: var(--ink); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); position: relative; }
.pane { width: var(--pane-w); display: flex; flex-direction: column; min-height: 0; background: var(--bg); border-left: 1px solid var(--line); animation: pane-in .22s var(--ease); }
@keyframes pane-in { from { transform: translateX(16px); opacity: 0; } }
.pane.closed { display: none; }
.head { display: flex; align-items: center; gap: 8px; padding: 0 24px; min-height: 64px; border-bottom: 1px solid var(--line); flex: none; background: var(--bg); }
.head h2 { margin: 0; font-size: 20px; line-height: 28px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.head .topic { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.head .spacer { flex: 1; }
.icon-btn.back-btn { display: none; }
.icon-btn { background: none; border: 1px solid transparent; border-radius: 10px; padding: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 14px; min-height: 36px; min-width: 36px; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--hover); color: var(--fg); }
.icon-btn.on { color: var(--action); }

/* channel header */
.ch-head { display: flex; align-items: center; gap: 16px; padding: 14px 24px 0; flex: none; }
.ch-title { min-width: 0; flex: 1; }
.ch-title h2 { margin: 0; font-size: 24px; line-height: 32px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-title h2 .h { color: var(--action); font-weight: 600; }
.ch-title h2 .i { color: var(--muted); }
.ch-sub { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.ch-sub[data-act] { cursor: pointer; }
.ch-sub[data-act]:hover { color: var(--fg); }
.ch-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.ch-tools .divider { width: 1px; height: 28px; background: var(--line); }
.member-stack { display: flex; align-items: center; background: none; border: 0; padding: 4px; border-radius: 999px; }
.member-stack .avatar { margin-left: -8px; border: 2px solid var(--bg); }
.member-stack .avatar:first-child { margin-left: 0; }
.member-stack .more { margin-left: -8px; width: 36px; height: 36px; border-radius: 50%; background: var(--hover); border: 2px solid var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--fg); }
.call-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 8px 16px; background: var(--surface); color: var(--fg); font-weight: 600; font-size: 14px; white-space: nowrap; }
.call-btn:hover { background: var(--hover); }
.call-btn .i { color: var(--action); }
.call-btn.live { background: var(--mint); color: var(--mint-ink); border-color: transparent; }
.call-btn.live .i { color: inherit; }
.call-btn.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.4s infinite; }
.ch-tabs { display: flex; gap: 8px; padding: 8px 24px 0; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; scrollbar-width: none; }
.ch-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--muted); white-space: nowrap; font-size: 15px; margin-bottom: -1px; }
.ch-tabs button:hover { color: var(--fg); }
.ch-tabs button.on { color: var(--action); border-bottom-color: var(--action); font-weight: 600; }
:root[data-theme="dark"] .ch-tabs button.on { color: var(--action-on-dark); border-bottom-color: var(--action-on-dark); }
.ch-tabs .count { background: var(--hover); border-radius: 999px; font-size: 12px; padding: 0 7px; color: var(--muted); }
.gee-strip { display: flex; align-items: center; gap: 12px; margin: 12px 24px 0; padding: 10px 12px 10px 16px; border-radius: var(--r-sm); background: var(--action-soft); flex: none; animation: rise .3s var(--ease); }
.gee-strip .i { color: var(--action); }
.gee-strip .t { flex: 1; min-width: 0; font-size: 15px; }
.gee-strip .t b { font-weight: 700; }
.gee-strip .btn { background: var(--surface); border-color: transparent; color: var(--action); }
:root[data-theme="dark"] .gee-strip .i, :root[data-theme="dark"] .gee-strip .btn { color: var(--action-on-dark); }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } }

/* ---------- messages ---------- */
.messages { flex: 1; overflow-y: auto; padding: 8px 0 16px; min-height: 0; overscroll-behavior: contain; scroll-behavior: auto; }
.load-more { display: flex; margin: 8px auto; }
.day { display: flex; align-items: center; gap: 12px; margin: 16px 24px 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.day::before, .day::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.day span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.new-line { display: flex; align-items: center; gap: 8px; margin: 8px 24px; color: var(--coral-ink); font-size: 12px; font-weight: 700; }
.new-line::before { content: ""; flex: 1; border-top: 1px solid var(--coral); }
.msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 8px 24px; position: relative; transition: background .12s; }
.msg:hover { background: var(--action-softer); }
.msg.compact { padding-top: 2px; padding-bottom: 2px; }
.msg.compact .avatar { visibility: hidden; height: 0; }
.msg.compact .meta { display: none; }
.msg.pinned { background: #FFF8EC; }
:root[data-theme="dark"] .msg.pinned { background: #2A2416; }
.msg.highlight { animation: flash 2.2s ease-out; }
.msg.fresh { animation: msg-in .28s var(--ease); }
@keyframes msg-in { from { transform: translateY(8px); opacity: 0; } }
@keyframes flash { from { background: var(--action-soft); } to { background: transparent; } }
.msg.system { color: var(--muted); font-size: 14px; padding-top: 4px; padding-bottom: 4px; grid-template-columns: 40px minmax(0, 1fr); }
.msg.system .avatar { width: 24px; height: 24px; font-size: 10px; margin-left: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; position: relative; letter-spacing: .02em; cursor: pointer; user-select: none; }
.avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.avatar.md { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 48px; height: 48px; font-size: 17px; }
.avatar.gee { background: none; }
.avatar.gee img { width: 100%; height: 100%; }
.avatar.app { border-radius: 12px; }
.pres { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--side-bg); background: transparent; }
.avatar.sm .pres { width: 9px; height: 9px; right: -2px; bottom: -2px; }
.pres.active { background: #22C27C; }
.pres.away { background: var(--surface); box-shadow: inset 0 0 0 2px var(--faint); }
.pres.offline { display: none; }
.main .pres, .pane .pres, .modal .pres, .topbar .pres { border-color: var(--bg); }
.meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.meta .name { font-weight: 700; font-size: 15px; cursor: pointer; }
.meta .name:hover { text-decoration: underline; }
.meta .time, .meta .edited { color: var(--muted); font-size: 12px; }
.meta .tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; background: var(--action-soft); color: var(--action); border-radius: 6px; padding: 1px 6px; }
.body { line-height: 1.55; overflow-wrap: anywhere; font-size: 15px; }
.body pre { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 10px 12px; overflow-x: auto; margin: 4px 0; white-space: pre-wrap; font-size: 13.5px; line-height: 20px; }
.body code { background: var(--canvas); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.body pre code { border: 0; padding: 0; background: none; }
.mention { background: var(--mention-bg); color: var(--action); border-radius: 6px; padding: 0 3px; font-weight: 600; }
.mention.me { background: var(--mention-me-bg); color: var(--coral-ink); }
:root[data-theme="dark"] .mention { color: var(--fg); }
.deleted { color: var(--muted); font-style: italic; }
.attach { margin-top: 8px; }
.attach img { max-width: min(380px, 100%); max-height: 300px; border-radius: var(--r-sm); border: 1px solid var(--line); display: block; cursor: zoom-in; }
.file-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; text-decoration: none; color: var(--fg); background: var(--surface); max-width: 560px; transition: border-color .15s, box-shadow .15s; }
.file-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); text-decoration: none; }
.file-card .fi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--action-soft); color: var(--action); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.file-card .fi.pdf { background: #FFE3DC; color: var(--coral-ink); }
.file-card .fi.doc { background: #E1ECFF; color: #2457C5; }
.file-card .fi.sheet { background: var(--mint); color: var(--mint-ink); }
.file-card .fi.media { background: #FFF1D6; color: #8A5300; }
.file-card .meta2 { flex: 1; min-width: 0; }
.file-card .fn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .fs { color: var(--muted); font-size: 13px; }
.file-card .dl { color: var(--muted); }
.clip { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; display: inline-block; max-width: 440px; width: 100%; background: var(--canvas); }
.clip video { width: 100%; border-radius: 10px; background: #000; display: block; max-height: 300px; }
.clip audio { width: 100%; }
.clip .clip-bar { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.clip select { padding: 2px 4px; border-radius: 6px; border: 1px solid var(--line); }
/* voice notes */
.voice { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--action-soft); max-width: 340px; width: 100%; }
.voice .vp { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--action); color: var(--on-action); display: grid; place-items: center; flex: none; }
.voice .vp .i { width: 16px; height: 16px; }
.voice .vbar { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.voice .vbar i { flex: 1; background: color-mix(in srgb, var(--action) 35%, transparent); border-radius: 2px; min-width: 2px; }
.voice .vbar i.on { background: var(--action); }
.voice .vt { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 34px; text-align: right; }
.voice .vs { border: 0; background: var(--surface); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 7px; color: var(--action); }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.react { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 10px; font-size: 14px; line-height: 28px; display: inline-flex; gap: 6px; align-items: center; min-height: 30px; transition: transform .12s var(--ease), border-color .12s; }
.react:hover { border-color: var(--line-strong); }
.react:active { transform: scale(.94); }
.react span { font-size: 13px; font-weight: 600; color: var(--muted); }
.react.mine { border-color: var(--action); background: var(--action-soft); }
.react.mine span { color: var(--action); }
.react.add { color: var(--muted); width: 36px; justify-content: center; padding: 0; }
.react.pop { animation: pop .3s var(--ease); }
@keyframes pop { 40% { transform: scale(1.18); } }
.thread-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--link); font-weight: 600; background: none; border: 0; border-radius: 8px; padding: 2px 6px; margin-left: -6px; }
.thread-link:hover { background: var(--action-soft); }
.thread-link .last { color: var(--muted); font-weight: 400; font-size: 13px; }
.huddle-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin-top: 2px; background: var(--surface); max-width: 480px; flex-wrap: wrap; }
.huddle-card .hi { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; }
.huddle-card .t { font-weight: 700; }
.huddle-card .s { color: var(--muted); font-size: 13px; }
.stack { display: flex; }
.stack .avatar { margin-left: -6px; border: 2px solid var(--bg); }
.stack .avatar:first-child { margin-left: 0; }
/* task cards inside messages */
.task-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin-top: 8px; background: var(--surface); max-width: 560px; transition: border-color .15s, background .15s; }
.task-card:hover { border-color: var(--line-strong); }
.task-card .tk-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; flex: none; }
.task-card .tk-t { font-weight: 700; }
.task-card .tk-s { color: var(--muted); font-size: 13px; }
.task-card.done { background: var(--canvas); }
.task-card.done .tk-t { text-decoration: line-through; color: var(--muted); }
.task-card .grow { flex: 1; min-width: 0; cursor: pointer; }
.tick { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; color: transparent; flex: none; padding: 0; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.tick:hover { border-color: var(--action); }
.tick.on { background: var(--action); border-color: var(--action); color: #fff; animation: pop .3s var(--ease); }
.tick .i { width: 16px; height: 16px; stroke-width: 2.6; }
/* hover toolbar */
.actions { position: absolute; right: 24px; top: -18px; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-pop); padding: 3px; z-index: 3; gap: 1px; }
.msg:hover .actions, .actions.open { display: flex; }
.actions button { background: none; border: 0; border-radius: 8px; padding: 0; font-size: 16px; min-width: 34px; min-height: 34px; display: grid; place-items: center; color: var(--muted); }
.actions button:hover { background: var(--hover); color: var(--fg); }
.actions .sep { width: 1px; background: var(--line); margin: 6px 2px; }
/* swipe to reply (phones) */
.msg .swipe-hint { position: absolute; left: 4px; top: 50%; transform: translateY(-50%) scale(.6); opacity: 0; color: var(--action); transition: opacity .1s; }

/* ---------- composer ---------- */
.composer-wrap { padding: 0 24px 20px; flex: none; position: relative; }
.composer { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); position: relative; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.composer textarea { width: 100%; border: 0; resize: none; padding: 14px 16px 6px; outline: none; max-height: 240px; min-height: 48px; background: transparent; line-height: 24px; font-size: 15px; display: block; }
.composer textarea::placeholder { color: var(--muted); }
.composer .bar { display: flex; align-items: center; gap: 2px; padding: 4px 10px 10px; }
.composer .bar .spacer { flex: 1; }
.composer .bar .vsep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.composer .gee-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: var(--action-soft); color: var(--action); padding: 6px 14px; font-weight: 600; font-size: 14px; margin-left: 2px; }
.composer .gee-btn:hover { filter: brightness(.97); }
:root[data-theme="dark"] .composer .gee-btn { color: var(--fg); }
.composer .send { background: var(--action); color: var(--on-action); border: 0; border-radius: 12px; width: 44px; height: 38px; display: grid; place-items: center; transition: transform .12s var(--ease), background .12s, opacity .12s; margin-left: 4px; }
.composer .send:hover { background: var(--action-hover); }
.composer .send:active { transform: scale(.92); }
.composer .send:disabled { opacity: .35; cursor: default; }
.composer .send .i { width: 19px; height: 19px; }
.composer .also { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; padding: 0 16px 4px; }
.pending-file { margin: 10px 12px 0; display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 10px; font-size: 13px; background: var(--canvas); }
.readonly-note { border: 1px solid var(--line); background: var(--canvas); border-radius: var(--r-md); padding: 16px; color: var(--muted); text-align: center; font-size: 14px; }
.typing { height: 18px; font-size: 12px; color: var(--muted); padding: 2px 6px 0; }
.archived-banner { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; text-align: center; display: grid; gap: 8px; justify-items: center; font-size: 14px; }
.quick-replies { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 10px; animation: rise .25s var(--ease); }
.quick-replies .chip { background: var(--surface); border: 1px solid var(--line-strong); padding: 6px 14px; font-size: 14px; white-space: normal; text-align: left; }
.quick-replies .chip:hover { border-color: var(--action); color: var(--action); }
.quick-replies .lead { display: inline-flex; align-items: center; gap: 6px; color: var(--action); font-size: 13px; font-weight: 600; }
/* recording a voice note */
.rec-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; }
.rec-bar .rec-t { font-variant-numeric: tabular-nums; font-weight: 600; }
.rec-bar .grow { flex: 1; color: var(--muted); font-size: 14px; }
.rec-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 28px; overflow: hidden; }
.rec-wave i { width: 3px; border-radius: 2px; background: var(--action); flex: none; }

.popup { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-pop); z-index: 50; }
.mention-pop { bottom: 100%; left: 8px; margin-bottom: 8px; min-width: 300px; max-width: calc(100vw - 32px); max-height: 280px; overflow-y: auto; padding: 6px; }
.mention-pop .opt { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.mention-pop .opt.sel, .mention-pop .opt:hover { background: var(--action-soft); }
.mention-pop .opt .sub { color: var(--muted); font-size: 13px; }
.emoji-pop { width: min(340px, calc(100vw - 16px)); padding: 10px; position: fixed; }
.emoji-pop input { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 240px; overflow-y: auto; }
.emoji-grid button { background: none; border: 0; font-size: 22px; padding: 4px; border-radius: 8px; min-height: 38px; transition: transform .1s; }
.emoji-grid button:hover { background: var(--hover); transform: scale(1.15); }

/* ---------- menus ---------- */
.ai-menu { position: fixed; padding: 6px; min-width: 260px; max-width: calc(100vw - 16px); overflow-y: auto; display: grid; z-index: 200; animation: menu-in .14s var(--ease); }
@keyframes menu-in { from { transform: translateY(4px) scale(.98); opacity: 0; } }
.ai-menu .opt { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; text-align: left; background: none; border: 0; color: var(--fg); padding: 8px 10px; border-radius: 10px; font-size: 14px; min-height: 38px; }
.ai-menu .opt .mi { color: var(--muted); display: grid; place-items: center; }
.ai-menu .opt:hover, .ai-menu .opt:focus-visible { background: var(--action-soft); outline: none; }
.ai-menu .opt:hover .mi { color: var(--action); }
.ai-menu .opt .sub { grid-column: 2; font-size: 12px; color: var(--muted); }
.ai-menu .opt.danger { color: var(--danger); }
.ai-menu .sep { height: 1px; background: var(--line); margin: 4px 6px; }
.ai-menu .mh { padding: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ---------- pages ---------- */
.list-view { flex: 1; overflow-y: auto; padding: 8px 0; }
.list-row { display: flex; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.list-row:hover { background: var(--action-softer); }
.list-row.unread { background: var(--action-softer); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .sub { color: var(--muted); font-size: 13px; }
.list-row .prev { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.empty { color: var(--muted); padding: 48px 24px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.empty .em-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--action-soft); color: var(--action); }
.empty h4 { margin: 4px 0 0; font-size: 17px; color: var(--fg); }
.thread-card { border: 1px solid var(--line); border-radius: var(--r-md); margin: 12px 24px; overflow: hidden; background: var(--bg); }
.thread-card .tc-head { padding: 8px 16px; background: var(--canvas); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-title { padding: 8px 24px; color: var(--muted); font-size: 13px; font-weight: 600; }
.page { flex: 1; overflow-y: auto; padding: 28px 32px; }
.page h3 { margin: 28px 0 10px; font-size: 19px; line-height: 26px; }
.page > h3:first-child { margin-top: 0; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding: 0 24px; flex: none; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.tabs button.on { color: var(--action); border-bottom-color: var(--action); font-weight: 600; }
.form-grid { display: grid; gap: 16px; max-width: 560px; }
.table-wrap { overflow-x: auto; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.code-box { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--canvas); border: 1px solid var(--line); border-radius: 10px; padding: 10px; overflow-x: auto; white-space: pre; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ok-note { background: var(--mint); color: var(--mint-ink); padding: 10px 14px; border-radius: 10px; margin: 12px 0; font-weight: 500; }

/* ---------- Today ---------- */
.today { flex: 1; overflow-y: auto; }
.today-in { max-width: 1120px; margin: 0 auto; padding: 32px 40px 96px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 40px; }
.today-hero { grid-column: 1 / -1; margin-bottom: 24px; animation: rise .35s var(--ease); }
.today-hero .date { color: var(--muted); font-size: 15px; font-weight: 500; }
.today-hero h1 { margin: 6px 0 2px; font-size: 44px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.today-hero .sub { color: var(--muted); font-size: 19px; }
.today-main { min-width: 0; display: grid; gap: 28px; align-content: start; }
.today-side { border-left: 1px solid var(--line); padding-left: 24px; display: grid; gap: 14px; align-content: start; }
.today h3 { margin: 0 0 12px; font-size: 22px; }
.today-side h3 { font-size: 20px; }
.gee-banner { display: flex; align-items: center; gap: 16px; padding: 18px 18px 18px 20px; border-radius: var(--r-md); background: var(--action-soft); animation: rise .4s var(--ease); }
.gee-banner .gb-mark { position: relative; flex: none; padding-right: 16px; border-right: 1px solid color-mix(in srgb, var(--action) 20%, transparent); }
.gee-banner .gb-mark .i { position: absolute; top: -6px; right: 2px; color: var(--action); width: 14px; height: 14px; }
.gee-banner .btn.ghost { background: none; box-shadow: none; color: var(--fg); }
.gee-banner .t { flex: 1; color: var(--fg); font-size: 18px; font-weight: 600; font-family: var(--font-head); min-width: 0; }
.gee-banner .btn { background: var(--surface); border-color: transparent; color: var(--action); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .gee-banner .btn, :root[data-theme="dark"] .gee-banner .gb-mark .i { color: var(--action-on-dark); }
.prio { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.prio-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .12s, opacity .3s; }
.prio-row:last-child { border-bottom: 0; }
.prio-row:hover { background: var(--action-softer); }
.prio-row .tt { flex: 1; min-width: 0; font-weight: 600; font-size: 16px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prio-row.done .tt { text-decoration: line-through; color: var(--muted); }
.prio-row .chips { flex-wrap: nowrap; }
.prio-add { display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.prio-add .i { color: var(--muted); }
.prio-add input { flex: 1; border: 0; background: none; padding: 6px 0; font-size: 15px; outline: none; }
.att-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.att-card:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.att-card .grow { flex: 1; min-width: 0; }
.att-card .top { display: flex; justify-content: space-between; gap: 8px; }
.att-card .top b { font-size: 15px; }
.att-card .top .time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.att-card .pv { color: var(--fg); opacity: .85; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.att-card .udot { width: 9px; height: 9px; border-radius: 50%; background: var(--action); align-self: center; flex: none; }
.rem-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--mint); color: var(--mint-ink); font-weight: 600; cursor: pointer; border: 0; text-align: left; width: 100%; }
.rem-card .ri { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.55); display: grid; place-items: center; flex: none; }
:root[data-theme="dark"] .rem-card .ri { background: rgba(0,0,0,.2); }
.rem-card .grow { flex: 1; min-width: 0; }
.rem-card .s { font-weight: 500; font-size: 13px; opacity: .85; }
.resume { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.resume-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; background: var(--surface); cursor: pointer; display: grid; gap: 12px; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; text-decoration: none; color: var(--fg); }
.resume-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-pop); text-decoration: none; }
.resume-card .rt { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.resume-card .rt .tile { width: 32px; height: 32px; }
.resume-card .rt .i:last-child { margin-left: auto; color: var(--muted); }
.resume-card .rb { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.resume-card .rb .pv { flex: 1; min-width: 0; color: var(--fg); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fab-gee { position: sticky; bottom: 24px; justify-self: start; margin-top: 8px; box-shadow: 0 8px 24px rgba(101, 84, 232, .22); }
.tile { width: 44px; height: 44px; border-radius: 12px; background: var(--action-soft); color: var(--action); display: grid; place-items: center; flex: none; font-size: 20px; font-weight: 600; }
:root[data-theme="dark"] .tile { color: var(--action-on-dark); }

/* ---------- Chats inbox ---------- */
.inbox { flex: 1; overflow-y: auto; }
.inbox-in { max-width: 820px; margin: 0 auto; padding: 24px 24px 96px; }
.inbox-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.inbox-head h1 { margin: 0; font-size: 32px; flex: 1; }
.inbox-search { position: relative; margin-bottom: 14px; }
.inbox-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.inbox-search input { width: 100%; border: 0; background: var(--hover); border-radius: var(--r-sm); padding: 12px 14px 12px 44px; font-size: 15px; }
.inbox-search input:focus { outline: none; box-shadow: 0 0 0 3px var(--action-soft); background: var(--surface); }
.convo { display: flex; align-items: center; gap: 14px; padding: 14px 8px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 0; text-decoration: none; color: var(--fg); transition: background .12s; }
.convo:hover { background: var(--action-softer); text-decoration: none; }
.convo .avatar { width: 44px; height: 44px; font-size: 15px; }
.convo .grow { flex: 1; min-width: 0; }
.convo .l1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.convo .nm { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo .tm { color: var(--muted); font-size: 13px; white-space: nowrap; }
.convo .l2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 2px; }
.convo .pv { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo.unread .pv { color: var(--fg); font-weight: 500; }
.convo.unread .tm { color: var(--action); font-weight: 600; }
.fab { position: fixed; right: 20px; bottom: calc(var(--tabbar-h) + 20px); width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--action); color: var(--on-action); display: none; place-items: center; box-shadow: 0 10px 24px rgba(101, 84, 232, .35); z-index: 60; }

/* ---------- Tasks ---------- */
.tasks-in { max-width: 860px; margin: 0 auto; padding: 24px 24px 96px; }
.task-group { margin-top: 24px; }
.task-group h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.task-group h4 .n { background: var(--hover); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.task-group.overdue h4 { color: var(--coral-ink); }
.task-add { display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); flex-wrap: wrap; transition: border-color .15s, box-shadow .15s; }
.task-add:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.task-add input[type=text] { flex: 1; min-width: 180px; border: 0; background: none; font-size: 16px; padding: 8px 0; outline: none; }
.task-add select, .task-add input[type=datetime-local] { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 13px; background: var(--canvas); max-width: 190px; }

/* ---------- Files ---------- */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.files-grid .file-card { max-width: none; }
.files-grid .file-card .where { color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Gee chat ---------- */
.gee-chat { display: flex; flex-direction: column; height: 100%; max-width: 820px; width: 100%; margin: 0 auto; padding: 16px 24px; }
.ai-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 8px 0 16px; min-height: 0; }
.ai-msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; line-height: 1.55; overflow-wrap: anywhere; animation: rise .25s var(--ease); }
.ai-msg.user { align-self: flex-end; background: var(--action); color: var(--on-action); border-bottom-right-radius: 6px; }
.ai-msg.user a { color: inherit; text-decoration: underline; }
.ai-msg.assistant { align-self: flex-start; background: var(--bubble); border-bottom-left-radius: 6px; }
.ai-msg.assistant .who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--action); margin-bottom: 4px; }
:root[data-theme="dark"] .ai-msg.assistant .who { color: var(--action-on-dark); }
.ai-msg.error { color: var(--danger); }
.ai-msg .btn.ghost { margin-top: 6px; margin-left: -10px; }
.ai-msg.pending { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--action); animation: bounce 1.2s infinite; opacity: .5; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); opacity: 1; } 60% { transform: none; } }
.ai-welcome { margin: auto 0; text-align: center; display: grid; gap: 12px; justify-items: center; padding: 24px 0; }
.ai-welcome h2 { margin: 6px 0 0; font-size: 30px; }
.ai-welcome p { margin: 0; color: var(--muted); max-width: 460px; }
.ai-welcome .starters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; width: 100%; max-width: 640px; margin-top: 12px; }
.ai-welcome .starter { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; display: grid; gap: 4px; transition: border-color .15s, transform .15s var(--ease); }
.ai-welcome .starter:hover { border-color: var(--action); transform: translateY(-2px); }
.ai-welcome .starter b { display: flex; gap: 8px; align-items: center; }
.ai-welcome .starter b .i { color: var(--action); }
.ai-welcome .starter span { color: var(--muted); font-size: 13px; }
.ai-ask { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 8px 8px 8px 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.ai-ask:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.ai-ask textarea { flex: 1; border: 0; resize: none; padding: 8px 0; min-height: 40px; max-height: 200px; font: inherit; background: none; color: var(--fg); outline: none; }
.ai-ask .send { width: 42px; height: 42px; border-radius: 12px; border: 0; background: var(--action); color: var(--on-action); display: grid; place-items: center; }
.ai-out { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; line-height: 1.6; max-height: 55vh; overflow-y: auto; overflow-wrap: anywhere; }
.ai-busy { display: flex; gap: 12px; align-items: center; padding: 16px 0; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--action); animation: wg-spin .8s linear infinite; flex: none; display: inline-block; vertical-align: middle; }
@keyframes wg-spin { to { transform: rotate(360deg); } }

/* Gee sheet ("Help me reply" and friends) */
.gee-sheet .modal-head { padding-bottom: 4px; }
.gee-sheet .modal-head h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.gee-sheet .src { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.gee-sheet .gs-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.gee-sheet .gs-title .i { color: var(--action); }
.gee-sheet textarea.draft { width: 100%; border: 1.5px solid var(--action); border-radius: var(--r-sm); padding: 14px 16px; font-size: 16px; line-height: 1.5; min-height: 96px; resize: vertical; background: var(--surface); }
.gee-sheet textarea.draft:focus { outline: none; box-shadow: 0 0 0 3px var(--action-soft); }
.gee-sheet .tones { display: flex; gap: 8px; flex-wrap: wrap; }
.gee-sheet .tones .chip { border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 14px; font-size: 14px; }
.gee-sheet .tones .chip:hover { border-color: var(--action); }
.gee-sheet .tones .chip .i { color: var(--action); }
.gee-sheet .gs-actions { display: grid; gap: 10px; }
.gee-sheet .gs-actions .btn { width: 100%; padding: 12px; font-size: 15px; }
.gee-sheet .gs-actions .btn.soft2 { background: var(--canvas); border-color: var(--line); }
.gee-sheet .note { text-align: center; color: var(--muted); font-size: 13px; }
.gee-sheet .ideas { display: grid; gap: 8px; }
.gee-sheet .idea { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.gee-sheet .idea .grow { flex: 1; min-width: 0; }
.gee-sheet .idea input { margin-top: 4px; }
.shimmer { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--hover), var(--action-soft), var(--hover)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- branding settings ---------- */
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; max-width: 980px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); padding: 0; transition: transform .12s; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: 0 0 0 2px var(--fg); }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] { width: 52px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; background: var(--surface); }
.color-row input[type=text] { width: 130px; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.contrast { font-size: 13px; line-height: 20px; display: grid; gap: 4px; }
.contrast .ok { color: var(--success); font-weight: 600; }
.contrast .warn { color: var(--warning); font-weight: 600; }
.side-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.side-styles button { border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); padding: 8px; display: grid; gap: 6px; font-size: 13px; font-weight: 600; text-align: center; }
.side-styles button.on { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-soft); }
.side-styles .sw { height: 46px; border-radius: 8px; display: grid; grid-template-columns: 34% 1fr; overflow: hidden; border: 1px solid var(--line); }
.side-styles .sw i:last-child { background: #fff; }
.preview { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: grid; grid-template-columns: 190px 1fr; min-height: 260px; background: #fff; color: #202334; box-shadow: var(--shadow-sm); }
.preview .pv-side { padding: 14px 10px; display: grid; align-content: start; gap: 4px; font-size: 13px; border-right: 1px solid #E6E8F0; }
.preview .pv-side img.lk { height: 20px; margin: 0 4px 10px; }
.preview .pv-ws { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid #E6E8F0; font-weight: 700; margin-bottom: 6px; }
.preview .pv-ws .ws-mark { width: 24px; height: 24px; font-size: 10px; }
.preview .pv-item { padding: 6px 8px; border-radius: 8px; display: flex; gap: 6px; align-items: center; }
.preview .pv-main { padding: 18px; display: grid; gap: 12px; align-content: start; background: #fff; }
.preview .pv-main .pv-h { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.preview .pv-main a { font-weight: 600; }
.preview .pv-strip { padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.logo-drop { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-drop .ws-mark { width: 60px; height: 60px; font-size: 22px; border-radius: 16px; }

/* ---------- modals & toasts ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(32, 35, 52, .42); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .16s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--bg); border-radius: var(--r-lg); width: 100%; max-width: 520px; max-height: 90vh; max-height: 90dvh; overflow-y: auto; box-shadow: var(--shadow); animation: modal-in .22s var(--ease); }
@keyframes modal-in { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 8px; gap: 8px; }
.modal-head h3 { margin: 0; font-size: 21px; line-height: 28px; }
.modal-body { padding: 8px 24px 16px; display: grid; gap: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 24px 24px; flex-wrap: wrap; }
.grabber { display: none; }
.user-pick { max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.user-pick label { display: flex; gap: 10px; align-items: center; padding: 8px 12px; cursor: pointer; }
.user-pick label:hover { background: var(--hover); }
.switch-row { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.guidelines { line-height: 1.65; }
#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 200; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow); max-width: 400px; font-size: 14px; display: flex; gap: 12px; align-items: center; animation: toast-in .25s var(--ease); }
:root[data-theme="dark"] .toast { background: #2F3348; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }
.toast button { background: var(--action); color: #fff; border: 0; border-radius: 8px; padding: 5px 12px; font-weight: 600; white-space: nowrap; }
.install-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--canvas); }
.install-card img { width: 40px; height: 40px; border-radius: 10px; }

/* ---------- call dock ---------- */
.huddle-dock { position: fixed; left: 16px; bottom: 16px; width: 260px; background: var(--ink); color: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); z-index: 60; overflow: hidden; }
.huddle-dock.big { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(980px, calc(100vw - 32px)); }
.hd-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 600; font-size: 14px; }
.hd-top .grow { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-top button { background: none; border: 0; color: #fff; padding: 4px 8px; border-radius: 8px; }
.hd-top button:hover { background: rgba(255,255,255,.1); }
.hd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; padding: 0 12px 8px; }
.huddle-dock.big .hd-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-height: 70vh; overflow-y: auto; }
.huddle-dock .tile { position: relative; background: #2F3348; border-radius: 12px; aspect-ratio: 16 / 10; width: auto; height: auto; display: grid; place-items: center; overflow: hidden; color: #fff; }
.huddle-dock .tile video { width: 100%; height: 100%; object-fit: cover; }
.huddle-dock .tile.screen video { object-fit: contain; background: #000; }
.huddle-dock .tile .nm { position: absolute; left: 6px; bottom: 4px; font-size: 11px; background: rgba(0, 0, 0, .55); padding: 1px 6px; border-radius: 6px; }
.huddle-dock .tile.speaking { outline: 2px solid var(--mint); }
.hd-controls { display: flex; justify-content: space-between; gap: 6px; padding: 8px 12px 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hd-controls button { flex: 1; background: rgba(255, 255, 255, .1); border: 0; color: #fff; border-radius: 12px; padding: 8px 0; font-size: 16px; min-height: 42px; }
.hd-controls button.off, .hd-controls button.leave { background: #E5484D; }
.hd-controls button.on { background: #1E9E68; }
.media-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- clip recorder ---------- */
.rec-preview { background: #000; border-radius: var(--r-sm); width: 100%; aspect-ratio: 16/9; display: grid; place-items: center; color: #aaa; overflow: hidden; }
.rec-preview video { width: 100%; height: 100%; object-fit: contain; }
.rec-kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.rec-kinds button { flex: 1; }
.rec-kinds button.on { background: var(--action); color: var(--on-action); border-color: var(--action); }
.rec-timer { font-variant-numeric: tabular-nums; font-weight: 600; }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; animation: blink 1s infinite; flex: none; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- phones: one screen at a time, bottom tabs, bubbles ---------- */
.tabbar { display: none; }
.m-only { display: none; }
@media (max-width: 760px) {
  :root { --tabbar-h: calc(64px + env(safe-area-inset-bottom)); font-size: 16px; }
  .shell { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr); padding-bottom: var(--tabbar-h); }
  .shell.in-convo { padding-bottom: 0; --tabbar-h: 0px; }
  .shell.in-convo .tabbar { display: none; }
  .topbar, .shell > .sidebar { display: none; }
  .shell > .main, .shell > .pane { grid-column: 1; grid-row: 1; width: auto; border: 0; }
  .shell.m-pane > .main { display: none; }
  .shell:not(.m-pane) > .pane { display: none; }
  .m-only { display: revert; }
  .tile.m-only { display: grid; }
  .ch-title h2 .h { display: none; }
  .d-only { display: none !important; }
  .head { padding: env(safe-area-inset-top) 12px 0 8px; min-height: calc(60px + env(safe-area-inset-top)); }
  .icon-btn.back-btn { display: inline-flex; }
  .icon-btn.back-btn .i { width: 26px; height: 26px; }
  .head .topic, .head .hide-m { display: none; }
  .ch-head { padding: calc(env(safe-area-inset-top) + 8px) 12px 10px 4px; gap: 6px; border-bottom: 1px solid var(--line); }
  .ch-head .tile { width: 40px; height: 40px; font-size: 18px; }
  .ch-title h2 { font-size: 18px; line-height: 24px; }
  .ch-title h2 .i { width: 16px; height: 16px; }
  .ch-sub { font-size: 13px; }
  .ch-tools { gap: 2px; }
  .ch-tools .member-stack, .ch-tools .divider, .ch-tools .call-btn .lbl { display: none; }
  .ch-tools .call-btn { border: 0; padding: 8px; background: none; }
  .ch-tools .call-btn.live { background: var(--mint); }
  .ch-tabs { display: none; }
  .gee-strip { margin: 10px 12px 0; }
  .day { margin: 12px; }
  .day::before, .day::after { display: none; }
  .day { justify-content: center; }
  .msg { padding: 4px 12px; gap: 0 10px; grid-template-columns: 36px minmax(0, 1fr); }
  .msg .avatar:not(.sm):not(.md) { width: 36px; height: 36px; }
  .msg:hover { background: transparent; }
  .msg .body { background: var(--bubble); border-radius: 4px 18px 18px 18px; padding: 8px 14px; display: inline-block; max-width: 100%; margin-top: 2px; }
  .msg.compact .body { border-radius: 18px; }
  .msg.mine .body { background: var(--bubble-me); }
  .msg .body:empty { display: none; }
  .msg .meta .name { font-size: 15px; }
  .msg .actions { display: none !important; }
  .msg.swiping { transition: none; }
  .msg.pressed { background: var(--action-softer); }
  .new-line { margin: 8px 12px; }
  .composer-wrap { padding: 6px 10px calc(10px + env(safe-area-inset-bottom)); }
  .composer { display: flex; align-items: flex-end; flex-wrap: wrap; border-radius: 26px; padding: 4px; box-shadow: none; }
  .composer:focus-within { box-shadow: none; }
  .composer .pending { flex-basis: 100%; }
  .composer .pending:empty { display: none; }
  .composer textarea { flex: 1; min-width: 0; order: 2; padding: 9px 4px; min-height: 42px; font-size: 16px; width: auto; }
  .composer .bar { display: contents; }
  .composer .bar > * { order: 3; }
  .composer .bar [data-c=attach] { order: 1; }
  .composer .bar [data-c=emoji], .composer .bar [data-c=mention], .composer .bar .vsep, .composer .bar .spacer, .composer .bar [data-c=clip] { display: none; }
  .composer .gee-btn { padding: 0; width: 40px; height: 40px; justify-content: center; margin: 1px 0; }
  .composer .gee-btn .lbl { display: none; }
  .composer .icon-btn { min-width: 42px; min-height: 42px; border-radius: 50%; }
  .composer .send { width: 42px; height: 42px; border-radius: 50%; margin: 0; }
  .composer.has-text [data-c=voice] { display: none; }
  .composer:not(.has-text) [data-c=send] { display: none; }
  .composer .also { flex-basis: 100%; order: 4; padding: 4px 12px; }
  .rec-bar { flex-basis: 100%; padding: 4px 4px 4px 14px; }
  .typing { padding: 0 12px; height: 16px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: var(--tabbar-h); padding: 6px 8px env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); z-index: 70; gap: 4px; }
  .tabbar button { flex: 1; background: none; border: 0; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 12px; font-weight: 500; color: var(--muted); position: relative; border-radius: 16px; transition: background .15s, color .15s; }
  .tabbar button .ti { width: 56px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .2s var(--ease); }
  .tabbar button .ti .i { width: 22px; height: 22px; }
  .tabbar button.on { color: var(--action); font-weight: 700; }
  .tabbar button.on .ti { background: var(--action-soft); }
  :root[data-theme="dark"] .tabbar button.on { color: var(--fg); }
  .tabbar .badge { position: absolute; top: 0; left: calc(50% + 8px); font-size: 10px; line-height: 17px; padding: 0 5px; min-width: 17px; border: 2px solid var(--surface); }
  .fab { display: grid; }
  .huddle-dock { left: 8px; right: 8px; width: auto; bottom: calc(var(--tabbar-h) + 8px); }
  .huddle-dock.big { top: auto; transform: none; left: 8px; bottom: calc(var(--tabbar-h) + 8px); width: auto; }
  .page { padding: 16px; }
  .brand-grid { grid-template-columns: 1fr; }
  .preview { grid-template-columns: 120px 1fr; }
  #toasts { bottom: calc(var(--tabbar-h) + 10px); right: 10px; left: 10px; }
  .modal-back { align-items: end; padding: 0; }
  .modal { max-width: none !important; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet-in .28s var(--ease); max-height: 92dvh; }
  @keyframes sheet-in { from { transform: translateY(40%); opacity: .6; } }
  .grabber { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 0; }
  .modal-head { padding-top: 12px; }
  .attach img { max-width: 100%; }
  /* Today on phones */
  .today-in { grid-template-columns: 1fr; padding: calc(env(safe-area-inset-top) + 12px) 16px 24px; gap: 0; }
  .today-hero h1 { font-size: 34px; }
  .today-hero .sub { font-size: 16px; }
  .today-side { border: 0; padding: 24px 0 0; }
  .gee-banner { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .gee-banner .t { font-size: 16px; flex-basis: calc(100% - 80px); }
  .gee-banner .btn { width: 100%; }
  .prio-row { flex-wrap: wrap; padding: 12px 14px; row-gap: 6px; }
  .prio-row .tt { flex-basis: calc(100% - 40px); white-space: normal; }
  .prio-row .chips { padding-left: 38px; flex-wrap: wrap; }
  .fab-gee { display: none; }
  .inbox-in, .tasks-in { padding: calc(env(safe-area-inset-top) + 8px) 16px 96px; }
  .inbox-head h1 { font-size: 30px; }
  .convo { padding: 12px 4px; }
  .gee-chat { padding: calc(env(safe-area-inset-top) + 8px) 12px 12px; }
  .mobile-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
  .mobile-top img.lk { height: 30px; }
  .mobile-top .grow { flex: 1; }
  .mobile-ws { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 0; font-weight: 700; font-size: 17px; margin-bottom: 12px; }
}
@media (hover: none) {
  .msg:hover { background: transparent; }
  .msg:hover .actions { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
