/* Reply Panel. Laid out and coloured like Gmail on purpose, so a client who uses Gmail (or any webmail) finds everything where
   they expect it. One client colour (--brand, from /brand/theme.css) is the accent; every tint is derived from it. Light and dark. */
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; ascent-override: 96.9%; descent-override: 20.3%; src: url(/web/fonts/roboto-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Roboto"; font-weight: 400; font-display: swap; ascent-override: 96.9%; descent-override: 20.3%; src: url(/web/fonts/roboto-latin-400-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: "Roboto"; font-weight: 500; font-display: swap; ascent-override: 96.9%; descent-override: 20.3%; src: url(/web/fonts/roboto-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Roboto"; font-weight: 500; font-display: swap; ascent-override: 96.9%; descent-override: 20.3%; src: url(/web/fonts/roboto-latin-500-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: "Roboto"; font-weight: 700; font-display: swap; ascent-override: 96.9%; descent-override: 20.3%; src: url(/web/fonts/roboto-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Roboto"; font-weight: 700; font-display: swap; ascent-override: 96.9%; descent-override: 20.3%; src: url(/web/fonts/roboto-latin-700-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 {
  --brand: #384783; --on-brand: #fff;
  --font: "Roboto", "Segoe UI", Arial, sans-serif;
  --out: cubic-bezier(0.2, 0.8, 0.2, 1);      /* things arriving */
  --inout: cubic-bezier(0.4, 0, 0.2, 1);      /* things moving on screen */
  --in: cubic-bezier(0.4, 0, 1, 1);           /* things leaving */
  --bg: #f6f8fc; --surface: #ffffff; --raise: #ffffff; --read: #f6f8fc; --hover: rgba(31, 31, 31, 0.06); --press: rgba(31, 31, 31, 0.1);
  --text: #1f1f1f; --text-2: #444746; --text-3: #5f6368; --line: #e1e3e6; --line-2: #c4c7c5;
  --search: #e9eef6; --search-on: #ffffff;
  --brand-ink: color-mix(in srgb, var(--brand) 92%, #000);
  --brand-tint: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-tint-2: color-mix(in srgb, var(--brand) 18%, #fff);
  --nav-on: color-mix(in srgb, var(--brand) 15%, #fff);
  --compose: color-mix(in srgb, var(--brand) 16%, #fff);
  --teal: #00695c; --teal-bg: #dff3f0; --purple: #7b2fa5; --purple-bg: #f3e8fb; --rose: #ad1457; --rose-bg: #fce4ec; --won: #0b6b2e;
  --green: #137333; --green-bg: #e6f4ea; --amber: #8d4f00; --amber-bg: #fef3d7; --red: #b3261e; --red-bg: #fce8e6; --gray: #444746; --gray-bg: #eceff3; --blue: #0b57d0; --blue-bg: #e8f0fe;
  --row-lift: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --pop: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px rgba(60, 64, 67, 0.3);
  --toast: #303030; --toast-text: #f2f2f2; --toast-act: color-mix(in srgb, var(--brand) 35%, #c9d6ff);
  --g0: #1a73e8; --g1: #188038; --g2: #e37400; --g3: #a142f4; --g4: #d93025; --g5: #12b5cb; --g6: #9aa0a6; --g7: #b5835a;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111214; --surface: #1d1e21; --raise: #2a2b2f; --read: #191a1d; --hover: rgba(255, 255, 255, 0.07); --press: rgba(255, 255, 255, 0.12);
  --text: #e3e3e3; --text-2: #c4c7c5; --text-3: #9aa0a6; --line: #34363b; --line-2: #4a4d52;
  --search: #2a2b2f; --search-on: #34353a;
  --brand-ink: color-mix(in srgb, var(--brand) 40%, #fff);
  --brand-tint: color-mix(in srgb, var(--brand) 26%, #1d1e21);
  --brand-tint-2: color-mix(in srgb, var(--brand) 40%, #1d1e21);
  --nav-on: color-mix(in srgb, var(--brand) 42%, #111214);
  --compose: color-mix(in srgb, var(--brand) 45%, #1d1e21);
  --teal: #80cbc4; --teal-bg: #163b37; --purple: #d7aefb; --purple-bg: #392650; --rose: #f48fb1; --rose-bg: #46202f; --won: #137333;
  --green: #81c995; --green-bg: #1e3a28; --amber: #fdd663; --amber-bg: #3d3118; --red: #f2b8b5; --red-bg: #4a2220; --gray: #c4c7c5; --gray-bg: #303134; --blue: #a8c7fa; --blue-bg: #1f3355;
  --row-lift: inset 1px 0 0 #3c4043, inset -1px 0 0 #3c4043, 0 1px 3px 1px rgba(0, 0, 0, 0.5);
  --pop: 0 4px 8px 3px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.5);
  --toast: #e3e3e3; --toast-text: #1f1f1f; --toast-act: color-mix(in srgb, var(--brand) 85%, #000);
  color-scheme: dark;
}

/* ---- base ---- */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.43 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--brand-ink); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 4px; }
::selection { background: var(--brand-tint-2); }
kbd { font: 500 11px/1 var(--font); padding: 3px 5px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--text-2); background: var(--surface); }
.grow { flex: 1 1 auto; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soft { color: var(--text-3); }
.hide { display: none !important; }
.tnum, .date, .count, .tcount, .range, .mdate, .val, .num, td { font-variant-numeric: tabular-nums; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 18px; height: 18px; } .ic.xs { width: 14px; height: 14px; stroke-width: 2.2; } .ic.lg { width: 28px; height: 28px; stroke-width: 1.5; } .ic.xl { width: 44px; height: 44px; stroke-width: 1.3; }
/* list and conversation fade in softly; this never blocks a click */
.list, .reader, .page { animation: screen-in 160ms var(--out); }
@keyframes screen-in { from { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* ---- buttons ---- */
.ibtn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text-2); flex: none; position: relative; transition: background 120ms, transform 80ms; }
.ibtn:hover { background: var(--hover); } .ibtn:active { background: var(--press); transform: scale(0.94); }
.ibtn[disabled] { opacity: 0.38; pointer-events: none; }
.ibtn[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand-ink); }
.ibtn.sm { width: 32px; height: 32px; } .ibtn.sm .ic { width: 18px; height: 18px; }
.btn { height: 36px; padding: 0 16px; border-radius: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--brand-ink); border: 1px solid var(--line-2); background: var(--surface); transition: background 120ms, box-shadow 120ms, transform 80ms; white-space: nowrap; }
.btn:hover { background: var(--brand-tint); } .btn:active { transform: scale(0.97); }
.btn.primary { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15); }
.btn.ghost { border-color: transparent; background: none; } .btn.ghost:hover { background: var(--brand-tint); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.linkbtn { color: var(--brand-ink); font-weight: 500; padding: 4px 6px; border-radius: 4px; } .linkbtn:hover { background: var(--brand-tint); }
.textbtn { white-space: nowrap; height: 32px; padding: 0 8px 0 12px; border-radius: 16px; display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; } .textbtn:hover { background: var(--hover); }
.send-btn { height: 36px; padding: 0 24px; border-radius: 18px; background: var(--brand); color: var(--on-brand); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: box-shadow 120ms, transform 80ms, opacity 120ms; }
.send-btn:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15); } .send-btn:active { transform: scale(0.97); }
.send-btn[disabled] { opacity: 0.45; cursor: default; box-shadow: none; transform: none; }
.outline-btn { height: 40px; padding: 0 22px 0 16px; border-radius: 20px; border: 1px solid var(--line-2); color: var(--text-2); display: inline-flex; align-items: center; gap: 10px; font-weight: 500; transition: background 120ms, transform 80ms; }
.outline-btn:hover { background: var(--hover); } .outline-btn:active { transform: scale(0.97); }
.field { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); outline: none; }
textarea.field { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; flex: none; display: inline-block; }
.spin.light { color: var(--on-brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, transparent) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* labels (Gmail-style) and dots */
.label { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; vertical-align: 1px; background: var(--gray-bg); color: var(--gray); }
.label.brand { background: var(--brand-tint); color: var(--brand-ink); } .label.green { background: var(--green-bg); color: var(--green); }
.label.teal { background: var(--teal-bg); color: var(--teal); } .label.purple { background: var(--purple-bg); color: var(--purple); } .label.blue { background: var(--blue-bg); color: var(--blue); }
.label.won { background: var(--won); color: #fff; } .label.rose { background: var(--rose-bg); color: var(--rose); } .label.amber { background: var(--amber-bg); color: var(--amber); } .label.red { background: var(--red-bg); color: var(--red); }
.label button { display: inline-grid; place-items: center; margin-right: -2px; border-radius: 3px; } .label button:hover { background: var(--hover); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; background: var(--text-3); }
.dot.brand { background: var(--brand); } .dot.green, .dot.ok { background: #1e8e3e; } .dot.teal { background: #00897b; } .dot.purple { background: #8e44ad; } .dot.blue { background: #1a73e8; } .dot.won { background: #0b6b2e; box-shadow: 0 0 0 2px color-mix(in srgb, #0b6b2e 25%, transparent); } .dot.rose { background: #c2185b; } .dot.amber, .dot.warn { background: #f29900; } .dot.gray { background: var(--line-2); } .dot.red, .dot.bad { background: #d93025; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: var(--gray-bg); color: var(--text); font-size: 14px; margin: 12px 0; }
.banner .ic { margin-top: 1px; } .banner.red { background: var(--red-bg); } .banner.red .ic { color: var(--red); } .banner.blue { background: var(--blue-bg); } .banner.blue .ic { color: var(--blue); } .banner.amber { background: var(--amber-bg); } .banner.amber .ic { color: var(--amber); }
.banner.slim { margin: 6px 0; padding: 8px 12px; font-size: 13px; }

/* checkboxes */
.cbx { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none; border-radius: 50%; cursor: pointer; }
.cbx:hover { background: var(--hover); }
.cbx input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }

/* avatars */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--av, #5b6abf); color: #fff; font-size: 17px; font-weight: 500; user-select: none; }
.avatar.us { background: var(--brand); }
.avatar.sm { width: 32px; height: 32px; font-size: 14px; } .avatar.xs { width: 22px; height: 22px; font-size: 11px; }

/* ---- tooltip, menus, toasts, dialogs ---- */
.tooltip { position: fixed; z-index: 90; pointer-events: none; padding: 5px 8px; border-radius: 4px; background: #3c4043; color: #fff; font-size: 12px; font-weight: 500; display: flex; gap: 6px; align-items: center; opacity: 0; transform: scale(0.96); transition: opacity 120ms var(--in), transform 120ms var(--in); max-width: 320px; }
.tooltip.on { opacity: 1; transform: none; transition: opacity 150ms var(--out), transform 150ms var(--out); }
.tooltip kbd { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.menu-wrap { position: relative; display: inline-flex; }
.menu { position: fixed; z-index: 60; background: var(--raise); border-radius: 8px; box-shadow: var(--pop); padding: 8px 0; overflow: auto; opacity: 0; transform: scale(0.95); }
.menu.in { opacity: 1; transform: none; transition: opacity 180ms var(--out), transform 180ms var(--out); }
.menu.out { opacity: 0; transform: scale(0.95); transition: opacity 140ms var(--in), transform 140ms var(--in); }
.menu > button, .menu > a { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 36px; padding: 6px 20px 6px 16px; text-align: left; color: var(--text); font-size: 14px; white-space: nowrap; }
.menu > button:hover, .menu > button:focus-visible { background: var(--hover); outline: none; }
.menu > button.on { background: var(--brand-tint); color: var(--brand-ink); font-weight: 500; }
.menu > button.danger { color: var(--red); }
.menu .ic { color: var(--text-2); } .menu > button.on .ic { color: var(--brand-ink); }
.menu .sep { height: 1px; background: var(--line); margin: 8px 0; }
.menu .mcap { padding: 6px 16px 4px; font-size: 12px; color: var(--text-3); font-weight: 500; }
.menu .who-card { display: flex; gap: 12px; align-items: center; padding: 8px 16px 10px; }
.toasts { position: fixed; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; min-width: 288px; max-width: min(568px, calc(100vw - 48px)); min-height: 48px; padding: 6px 8px 6px 20px; border-radius: 4px; background: var(--toast); color: var(--toast-text); box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px rgba(0, 0, 0, 0.14); display: flex; align-items: center; gap: 8px; animation: toast-in 220ms var(--out); }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: opacity 160ms var(--in), transform 160ms var(--in); }
.toast.bad .ic { color: #f28b82; }
.toast .tact { color: var(--toast-act); font-weight: 500; padding: 8px 12px; border-radius: 4px; text-transform: none; white-space: nowrap; }
.toast .tact:hover { background: rgba(255, 255, 255, 0.1); }
.toast .tx { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; opacity: 0.8; } .toast .tx:hover { background: rgba(255, 255, 255, 0.1); }
.toast .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--toast-act); transform-origin: left; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.dialog-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, 0.36); display: grid; place-items: center; padding: 16px; animation: fade 160ms var(--out); }
.dialog-scrim.top { place-items: start center; padding-top: 12vh; }
@keyframes fade { from { opacity: 0; } }
.dialog { width: min(520px, 100%); background: var(--raise); border-radius: 16px; box-shadow: var(--pop); padding: 8px 24px 20px; animation: pop-in 200ms var(--out); }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96); } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 8px; } .dialog-head h2 { font-size: 20px; }
table.keys { width: 100%; border-collapse: collapse; } .keys td { padding: 9px 0; border-bottom: 1px solid var(--line); } .keys td:first-child { width: 42%; } .keys kbd { margin-right: 6px; }
.cmd { width: min(600px, 100%); background: var(--raise); border-radius: 12px; box-shadow: var(--pop); overflow: hidden; animation: pop-in 180ms var(--out); }
.cmd-in { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.cmd-in input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; color: var(--text); }
.cmd-list { max-height: 50vh; overflow: auto; padding: 6px 0; }
.cmd-list button { display: flex; align-items: center; gap: 14px; width: 100%; height: 40px; padding: 0 18px; text-align: left; color: var(--text); }
.cmd-list button.on { background: var(--brand-tint); } .cmd-list .ic { color: var(--text-2); }

/* ---- the frame ---- */
.boot { height: 100%; display: grid; place-items: center; } .boot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: breathe 1s var(--inout) infinite alternate; }
@keyframes breathe { to { opacity: 0.25; transform: scale(0.7); } }
.shell { height: 100%; display: grid; grid-template-columns: 256px 1fr; grid-template-rows: 64px 1fr; transition: grid-template-columns 200ms var(--inout); }
.shell.mini { grid-template-columns: 72px 1fr; }
.topbar { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); min-width: 0; }
.topbar .logo { display: flex; align-items: center; width: 202px; height: 48px; padding-left: 8px; flex: none; }
.topbar .logo img { max-height: 36px; max-width: 150px; object-fit: contain; display: block; }
.topbar .logo span { font-size: 20px; color: var(--text-2); }
.search { flex: 1 1 auto; max-width: 720px; height: 48px; border-radius: 24px; background: var(--search); display: flex; align-items: center; gap: 12px; padding: 0 6px 0 16px; color: var(--text-2); transition: background 150ms, box-shadow 150ms; }
.search:focus-within { background: var(--search-on); box-shadow: var(--pop); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 16px; color: var(--text); height: 100%; }
.search input::placeholder { color: var(--text-2); }
.search input::-webkit-search-cancel-button { display: none; }
.search .hint-key { margin-right: 10px; opacity: 0.7; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 4px; padding-left: 12px; }
.live { width: 40px; height: 40px; display: grid; place-items: center; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #1e8e3e; box-shadow: 0 0 0 3px color-mix(in srgb, #1e8e3e 20%, transparent); }
.live.warn i { background: #f29900; box-shadow: 0 0 0 3px color-mix(in srgb, #f29900 22%, transparent); animation: breathe 0.9s infinite alternate; }
.me { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; } .me:hover { background: var(--hover); }
.side-nav { grid-row: 2; display: flex; flex-direction: column; padding: 8px 0 12px; overflow-y: auto; overflow-x: hidden; min-height: 0; }
.compose-btn { display: inline-flex; align-items: center; gap: 12px; height: 56px; min-width: 56px; padding: 0 20px 0 16px; margin: 0 0 16px 8px; align-self: flex-start; border-radius: 16px; background: var(--compose); color: var(--text); font-weight: 500; transition: box-shadow 150ms, transform 80ms; }
.compose-btn:hover { box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15); } .compose-btn:active { transform: scale(0.97); }
.nav { display: flex; align-items: center; gap: 16px; height: 32px; margin-right: 12px; padding: 0 12px 0 26px; border-radius: 0 16px 16px 0; color: var(--text); text-decoration: none !important; white-space: nowrap; text-align: left; width: calc(100% - 12px); }
.nav:hover { background: var(--hover); } .nav.on { background: var(--nav-on); font-weight: 700; }
.nav .ic { width: 20px; height: 20px; color: var(--text-2); } .nav.on .ic { color: var(--text); }
.nav .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav .count { font-size: 12px; color: var(--text-2); } .nav .count.strong { font-weight: 700; color: var(--text); }
.nav-cap { padding: 18px 26px 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.label-nav { font-size: 14px; } .label-nav .t { font-size: 13.5px; }
.tagdot { width: 12px; height: 12px; margin: 0 4px; border-radius: 3px; flex: none; background: var(--tag); transform: rotate(45deg) scale(0.8); }
.nav-foot { padding: 12px 26px 0; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.shell.mini .side-nav .compose-btn { padding: 0 16px; } .shell.mini .compose-btn span, .shell.mini .nav .t, .shell.mini .nav .count, .shell.mini .nav-cap, .shell.mini .nav-foot { display: none; }
.shell.mini .nav { width: 56px; margin-left: 8px; padding: 0 18px; border-radius: 16px; }
.surface { grid-row: 2; grid-column: 2; min-width: 0; min-height: 0; margin: 0 16px 16px 0; background: var(--surface); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.fab { display: none; }
.scrim, .side-scrim { display: none; }

/* ---- list ---- */
.list { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.toolbar { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 4px 16px 4px 8px; flex: none; }
.toolbar .tsep { width: 8px; }
.selcount { font-size: 13px; color: var(--text-2); padding: 0 8px; white-space: nowrap; }
.chips { display: flex; gap: 8px; align-items: center; padding-left: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chipbtn { height: 32px; padding: 0 10px 0 12px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background 120ms, transform 80ms; }
.chipbtn:hover { background: var(--hover); } .chipbtn:active { transform: scale(0.97); }
.chipbtn.on { background: var(--brand-tint-2); border-color: transparent; color: var(--brand-ink); }
.range { font-size: 12px; color: var(--text-2); padding: 0 4px 0 12px; white-space: nowrap; }
.tabs { display: flex; flex: none; border-bottom: 1px solid var(--line); padding: 0 8px; }
.tab { position: relative; flex: 0 1 236px; min-width: 0; height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px; color: var(--text-2); font-weight: 500; text-align: left; transition: background 120ms; }
.tab:hover { background: var(--hover); }
.tab.on { color: var(--brand-ink); }
.tab.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); animation: grow-x 200ms var(--out); }
@keyframes grow-x { from { transform: scaleX(0.4); opacity: 0; } }
.tab span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcount { margin-left: auto; font-size: 12px; font-weight: 500; height: 20px; min-width: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; line-height: 1; background: var(--gray-bg); color: var(--text-2); font-variant-numeric: tabular-nums; }
.tcount.hot { background: var(--brand); color: var(--on-brand); }
.filterline { display: flex; align-items: center; gap: 10px; padding: 8px 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); flex: none; }
.rows { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 72px; }
.mrow { display: grid; grid-template-columns: 40px 32px 196px minmax(0, 1fr) 24px 76px; align-items: center; height: 40px; padding: 0 16px 0 8px; border-bottom: 1px solid var(--line); background: var(--read); cursor: pointer; position: relative; outline: none; }
.mrow .row-av { display: none; }
.mrow.unread { background: var(--surface); }
.mrow:hover { box-shadow: var(--row-lift); z-index: 1; }
.mrow.picked { background: var(--brand-tint); }
.mrow.cur::before, .mrow:focus-visible::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
/* real rows replace the placeholders all at once, with one short fade (no row-by-row stagger) */
.rows.arrive .mrow { animation: rows-in 180ms var(--out) both; }
@keyframes rows-in { from { opacity: 0; } }
.mrow .from { padding: 0 12px 0 4px; color: var(--text); }
.mrow .from .n { color: var(--text-3); font-size: 12px; margin-left: 4px; font-weight: 400; }
.mrow .line { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); display: flex; align-items: center; gap: 6px; min-width: 0; }
.mrow .line .label { flex: none; }
.mrow .subj { color: var(--text); flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.mrow .snip::before { content: "– "; }
.mrow .snip { overflow: hidden; text-overflow: ellipsis; color: var(--text-3); min-width: 0; }
.mrow .clip { color: var(--text-3); display: grid; place-items: center; }
.mrow .date { text-align: right; font-size: 12px; color: var(--text-2); padding-left: 8px; }
.mrow.unread .from, .mrow.unread .subj, .mrow.unread .date { font-weight: 700; color: var(--text); }
.mrow .hover-acts { position: absolute; right: 8px; top: 0; bottom: 0; display: none; align-items: center; padding-left: 12px; background: inherit; }
.mrow:hover .hover-acts { display: flex; }
.mrow:hover .date { visibility: hidden; }
.mrow.skel-row { cursor: default; background: var(--surface); } .mrow.skel-row:hover { box-shadow: none; }
.skel-row i.skel { display: block; height: 10px; } .skel-row .line { display: flex; gap: 10px; } .skel-row .line i { flex: none; }
.skel-row .cbx:hover { background: none; } .skel-row i.sq { width: 14px; height: 14px; border-radius: 3px; } .skel-row i.dotk { width: 16px; height: 16px; border-radius: 50%; }
.avatar.skel { background: linear-gradient(90deg, var(--line) 0%, color-mix(in srgb, var(--line) 40%, transparent) 50%, var(--line) 100%); background-size: 200% 100%; }
.more-rows { display: block; margin: 16px auto; height: 36px; padding: 0 18px; border-radius: 18px; border: 1px solid var(--line-2); color: var(--brand-ink); font-weight: 500; } .more-rows:hover { background: var(--brand-tint); }
.empty { padding: 72px 24px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { color: var(--text-3); margin-bottom: 6px; } .empty h3 { font-size: 18px; color: var(--text); } .empty p { max-width: 380px; }

/* ---- conversation ---- */
.reader { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.reader .toolbar { border-bottom: 1px solid transparent; } .reader .toolbar .star { width: 40px; height: 40px; }
.reader-body { flex: 1; display: flex; min-height: 0; }
.thread-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; min-width: 0; }
.thread-col { padding: 4px 32px 120px 16px; }
.subject { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 12px 0 6px 56px; }
.subject h1 { font-size: 22px; line-height: 28px; color: var(--text); margin-right: 4px; }
.dealbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0 14px 56px; }
.pill { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); background: var(--surface); transition: background 120ms, transform 80ms, box-shadow 200ms; }
.pill:hover { background: var(--hover); } .pill:active { transform: scale(0.97); }
.pill .cap { color: var(--text-3); font-weight: 400; font-size: 13px; }
.stage-pill.brand { background: var(--brand-tint); border-color: transparent; } .stage-pill.green { background: var(--green-bg); border-color: transparent; } .stage-pill.amber { background: var(--amber-bg); border-color: transparent; }
.stage-pill.teal { background: var(--teal-bg); border-color: transparent; } .stage-pill.purple { background: var(--purple-bg); border-color: transparent; } .stage-pill.blue { background: var(--blue-bg); border-color: transparent; } .stage-pill.won { background: var(--green-bg); border-color: var(--won); } .stage-pill.rose { background: var(--rose-bg); border-color: transparent; }
.stage-pill.pulse { animation: pulse 700ms var(--out); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.crm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); padding: 0 8px; }
.crm.on .ic { color: var(--green); }
.msg { display: flex; gap: 16px; padding: 16px 0 18px; border-top: 1px solid var(--line); }
.subject + .msg, .dealbar + .msg, .dealbar + .folded, .subject + .folded { border-top: 0; }
.msg .mcol { min-width: 0; }
.mhead { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.mwho { flex: 1; min-width: 0; line-height: 20px; }
.mwho b { font-weight: 700; color: var(--text); }
.mwho .addr { color: var(--text-3); font-size: 12px; }
.mto { color: var(--text-3); font-size: 12px; }
.mdate { color: var(--text-3); font-size: 12px; white-space: nowrap; padding-top: 2px; }
.mhead .ibtn { margin: -10px -6px 0 0; }
.mbody { padding-top: 14px; }
.txt { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; color: var(--text); max-width: 760px; }
.msg.quiet .txt { color: var(--text-2); }
.quote-toggle { margin-top: 10px; height: 16px; padding: 0 8px; border-radius: 8px; background: var(--gray-bg); color: var(--text-2); font-size: 11px; letter-spacing: 1px; line-height: 16px; } .quote-toggle:hover { background: var(--line); }
.quoted { white-space: pre-wrap; color: var(--text-3); border-left: 2px solid var(--line-2); padding-left: 12px; margin-top: 10px; font-size: 13px; overflow-wrap: anywhere; }
.mbody iframe { width: 100%; max-width: 820px; border: 0; display: block; background: #fff; border-radius: 4px; }
.imgbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; background: var(--gray-bg); color: var(--text-2); font-size: 13px; margin-bottom: 10px; }
.folded-msg { padding: 12px 0; cursor: pointer; align-items: center; }
.folded-msg .avatar { width: 40px; height: 40px; }
.folded-msg:hover { background: linear-gradient(90deg, transparent, var(--hover) 10%, var(--hover) 90%, transparent); }
.fm-line { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.fm-name { flex: none; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-peek { color: var(--text-3); }
.folded-msg .mdate { padding: 0; }
.folded { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13px; }
.folded:hover { color: var(--text); }
.fcount { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 500; background: var(--surface); }
.event { display: flex; align-items: center; gap: 10px; padding: 8px 0 8px 56px; color: var(--text-3); font-size: 12.5px; border-top: 1px solid var(--line); }
.event b { color: var(--text-2); font-weight: 500; }
.files { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); max-width: 760px; }
.files-cap { font-size: 13px; color: var(--text-2); font-weight: 500; margin-bottom: 10px; }
.files-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.file { width: 180px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; transition: box-shadow 150ms; background: var(--surface); }
.file:hover { box-shadow: var(--pop); }
.thumb { height: 92px; display: grid; place-items: center; background: var(--gray-bg); color: var(--text-3); overflow: hidden; }
.thumb.pdf { background: color-mix(in srgb, #d93025 10%, var(--surface)); color: #d93025; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 260ms var(--out); } .thumb img.ok { opacity: 1; }
.fmeta { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 10px; border-top: 1px solid var(--line); }
.ftype { width: 20px; height: 20px; border-radius: 3px; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; background: var(--blue); color: #fff; flex: none; }
.ftype.pdf { background: #d93025; }
.fname { display: block; font-size: 12.5px; font-weight: 500; } .fsize { display: block; font-size: 11.5px; color: var(--text-3); }
.get { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); flex: none; } .get:hover { background: var(--hover); }
.pending .pstate { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; min-height: 32px; }
.pending.bad .pstate { color: var(--red); }
.pending .txt { color: var(--text-2); }
.pfiles { font-size: 12.5px; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.av-skel { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.reply-start { padding: 20px 0 0 56px; display: flex; gap: 12px; }
.replybox { margin: 16px 0 0 56px; max-width: none; border-radius: 8px; background: var(--surface); box-shadow: var(--pop); display: flex; flex-direction: column; animation: pop-up 220ms var(--out); max-width: 900px; }
@keyframes pop-up { from { opacity: 0; transform: translateY(10px); } }
.rb-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; color: var(--text-2); font-size: 13px; }
.rb-head b { color: var(--text); font-weight: 500; } .rb-from { margin-left: auto; color: var(--text-3); padding-left: 12px; flex: none; max-width: 45%; }
.replybox textarea { border: 0; outline: none; resize: none; background: none; padding: 8px 16px; min-height: 140px; line-height: 1.55; color: var(--text); }
.sig { padding: 0 16px 8px; color: var(--text-3); font-size: 13px; line-height: 1.5; }
.rb-foot, .c-foot { display: flex; align-items: center; gap: 4px; padding: 8px 12px 12px 16px; }
.attach-list { display: flex; flex-direction: column; gap: 6px; padding: 4px 16px 6px; }
.attach { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 10px; border-radius: 4px; background: var(--gray-bg); font-size: 13px; max-width: 460px; }
.attach .aname { color: var(--blue); font-weight: 500; } .attach.up { opacity: 0.75; } .attach.up .aname { color: var(--text-2); } .attach.err { background: var(--red-bg); }
.attach button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-left: auto; } .attach button:hover { background: var(--hover); }
.side { width: 320px; flex: none; border-left: 1px solid var(--line); overflow-y: auto; background: var(--surface); animation: side-in 220ms var(--out); }
@keyframes side-in { from { opacity: 0; transform: translateX(12px); } }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 0 20px; height: 48px; font-size: 15px; }
.sblock { padding: 12px 20px 16px; border-bottom: 1px solid var(--line); }
.sblock:last-child { border-bottom: 0; }
.sblock h3 { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--text); }
.sblock h3 .ic { color: var(--text-2); } .sblock h3 .soft { font-weight: 400; font-size: 12.5px; }
.who-line { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; } .who-line b { display: block; font-size: 15px; font-weight: 500; }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px; padding: 5px 0; font-size: 13.5px; } .kv .k { color: var(--text-3); } .kv .v { overflow-wrap: anywhere; }
.note { background: var(--amber-bg); color: var(--text); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; white-space: pre-wrap; font-size: 13.5px; }
.note .by { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.note-in { font-size: 13.5px; } .note-act { display: flex; justify-content: flex-end; margin-top: 8px; }
.earlier { display: flex; gap: 10px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); font-size: 13.5px; text-decoration: none !important; } .earlier:hover { background: var(--hover); }
.dropzone { position: absolute; inset: 8px; z-index: 30; border: 2px dashed var(--brand); border-radius: 12px; background: color-mix(in srgb, var(--brand-tint) 92%, transparent); display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--brand-ink); font-weight: 500; font-size: 16px; pointer-events: none; animation: fade 150ms; }

/* ---- new email window ---- */
.compose { position: fixed; z-index: 50; right: 24px; bottom: 0; width: 560px; height: min(620px, calc(100vh - 80px)); background: var(--surface); border-radius: 12px 12px 0 0; box-shadow: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; overflow: hidden; animation: compose-in 240ms var(--out); transition: height 200ms var(--inout), width 200ms var(--inout); }
@keyframes compose-in { from { transform: translateY(24px); opacity: 0; } }
.compose.min { height: 48px; width: 300px; }
.compose.max { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: min(1100px, calc(100vw - 96px)); height: calc(100vh - 96px); border-radius: 12px; animation: none; }
.c-head { height: 48px; flex: none; display: flex; align-items: center; gap: 2px; padding: 0 8px 0 16px; background: var(--search); font-weight: 500; cursor: default; touch-action: none; }
.compose.min .c-head { cursor: pointer; }
.c-head .grip { display: none; }
.c-body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0 16px; position: relative; overflow-y: auto; }
.c-line { display: flex; align-items: center; gap: 8px; min-height: 40px; border-bottom: 1px solid var(--line); position: relative; }
.c-line label { color: var(--text-3); flex: none; min-width: 48px; }
.c-line input, .c-line select { flex: 1; min-width: 0; height: 38px; border: 0; outline: none; background: none; color: var(--text); }
.c-line select { cursor: pointer; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--raise); border-radius: 8px; box-shadow: var(--pop); padding: 6px 0; animation: pop-in 160ms var(--out); transform-origin: top left; }
.suggest button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 16px; text-align: left; } .suggest button:hover { background: var(--hover); }
.c-text { flex: 1; min-height: 160px; border: 0; outline: none; resize: none; background: none; padding: 12px 0; line-height: 1.55; color: var(--text); }
.dropzone.in-compose { inset: 4px; }

/* ---- statistics and admin pages ---- */
.page-surface { overflow-y: auto; }
.page { height: 100%; overflow-y: auto; }
.page-inner { max-width: 1240px; margin: 0 auto; padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding-bottom: 4px; }
.page-head h1 { font-size: 22px; line-height: 28px; } .page-head .sub { color: var(--text-2); margin-top: 4px; max-width: 70ch; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; height: 36px; }
.seg button { padding: 0 14px; font-weight: 500; color: var(--text-2); font-size: 13px; border-left: 1px solid var(--line-2); transition: background 120ms; }
.seg button:first-child { border-left: 0; } .seg button:hover { background: var(--hover); }
.seg button.on { background: var(--brand-tint-2); color: var(--brand-ink); }
.kpis { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi .lab { color: var(--text-2); font-size: 13px; font-weight: 500; }
.kpi .val { font-size: 32px; line-height: 40px; color: var(--text); }
.kpi .val small { font-size: 13px; color: var(--text-3); margin-left: 8px; }
.kpi .foot { color: var(--text-3); font-size: 12.5px; margin-top: auto; }
.kpi.hero { background: var(--brand-tint); border-color: transparent; }
.kpi.hero .val { color: var(--brand-ink); font-size: 44px; line-height: 50px; font-weight: 500; }
.meter { position: relative; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--brand) 18%, transparent); margin: 4px 0 2px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--brand); transition: width 600ms var(--out); }
.meter .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--text); }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; min-width: 0; }
.card h3 { font-size: 16px; font-weight: 500; margin-bottom: 12px; color: var(--text); }
.insights { display: flex; flex-direction: column; gap: 4px; }
.insight { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.insight .ib { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gray-bg); color: var(--text-2); }
.insight.good .ib { background: var(--green-bg); color: var(--green); } .insight.warn .ib { background: var(--amber-bg); color: var(--amber); }
.insight .ib .ic { width: 15px; height: 15px; }
.gt { width: 100%; border-collapse: collapse; }
.gt th { text-align: right; font-size: 12px; font-weight: 500; color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gt th:first-child, .gt td:first-child { text-align: left; padding-left: 0; }
.gt td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gt td:last-child, .gt th:last-child { padding-right: 0; }
.gt .gl { font-weight: 500; } .gt .gs { color: var(--text-3); font-size: 12.5px; }
.gt tr.total td { border-bottom: 0; font-weight: 500; }
.bar-cell { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.bar-track { position: relative; width: 140px; height: 8px; }
.bar-track .base { position: absolute; inset: 0; border-radius: 4px; background: var(--gray-bg); }
.bar-track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--brand); }
.bar-track .fill.dim { background: var(--line-2); }
.bar-track .target { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); border-radius: 1px; }
.bar-cell .num { min-width: 28px; font-weight: 500; }
.legend-note { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-3); font-size: 12.5px; }
.legend-note i.t { display: inline-block; width: 2px; height: 12px; background: var(--text); margin-right: 8px; vertical-align: -2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.frow { display: grid; grid-template-columns: 170px 1fr 88px; align-items: center; gap: 12px; }
.ft { height: 20px; border-radius: 4px; background: var(--gray-bg); overflow: hidden; } .ft i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width 600ms var(--out); }
.fv { display: flex; gap: 8px; align-items: baseline; justify-content: flex-end; } .fv span { color: var(--text-3); font-size: 12px; }
.spark .l { fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; } .spark .d { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: #3c4043; color: #fff; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; line-height: 1.5; box-shadow: var(--pop); }
.arow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .arow:last-child { border-bottom: 0; }
.am { flex: 1; min-width: 0; } .as { color: var(--text-3); font-size: 12.5px; overflow-wrap: anywhere; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.lbl { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; font-weight: 500; }
details summary { list-style: none; cursor: pointer; } details summary::-webkit-details-marker { display: none; }
.log { display: flex; flex-direction: column; gap: 6px; font-size: 13px; max-height: 360px; overflow: auto; } .log > div { display: flex; gap: 12px; }

/* ---- sign-in: one calm card, centred ---- */
.signin { min-height: 100%; height: 100%; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.signin-card { width: min(420px, 100%); background: var(--surface); border-radius: 24px; padding: 40px 36px 32px; display: flex; flex-direction: column; align-items: stretch; text-align: center; animation: pop-in 260ms var(--out); box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12); }
.signin-logo { height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; } .signin-logo img { max-height: 44px; max-width: 200px; }
.signin-card h1 { font-size: 24px; line-height: 32px; }
.signin-card .lead { color: var(--text-2); font-size: 15px; margin: 6px 0 26px; }
.signin-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.signin-card .hint { color: var(--text-3); font-size: 13px; margin: 2px 0 8px; text-align: left; display: flex; gap: 8px; align-items: center; }
.btn.wide { width: 100%; justify-content: center; height: 44px; border-radius: 22px; font-size: 15px; margin-top: 6px; }
.nowrap { white-space: nowrap; font-weight: 500; color: var(--text); }
.ofield { position: relative; }
.ofield input { width: 100%; height: 56px; padding: 18px 16px 6px; border: 1px solid var(--line-2); border-radius: 8px; background: none; outline: none; font-size: 16px; color: var(--text); transition: border-color 120ms; }
.ofield input:focus { border: 2px solid var(--brand); padding: 17px 15px 5px; }
.ofield label { position: absolute; left: 13px; top: 18px; padding: 0 4px; color: var(--text-2); font-size: 16px; background: var(--surface); pointer-events: none; transform-origin: left top; transition: transform 150ms var(--out), color 150ms; }
.ofield input:focus + label, .ofield input:not(:placeholder-shown) + label { transform: translateY(-26px) scale(0.75); color: var(--brand-ink); }
.ofield input:not(:focus):not(:placeholder-shown) + label { color: var(--text-2); }
.otp { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.otp input { width: 48px; height: 56px; border: 1px solid var(--line-2); border-radius: 10px; text-align: center; font-size: 24px; font-weight: 500; background: var(--surface); color: var(--text); outline: none; font-variant-numeric: tabular-nums; transition: border-color 120ms, box-shadow 120ms; }
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.signin-acts { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.signin-acts .linkbtn[disabled] { color: var(--text-3); cursor: default; background: none; }
.err { display: flex; gap: 8px; align-items: center; color: var(--red); font-size: 13px; text-align: left; }
.signin-foot { width: min(420px, 100%); display: flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--text-3); font-size: 12px; padding: 0 8px; }
.langbtn { padding: 4px 8px; border-radius: 4px; color: var(--text-3); font-size: 12px; } .langbtn:hover { background: var(--hover); } .langbtn.on { color: var(--text); font-weight: 500; }

/* ---- stars, labels, campaigns, drafts (19.11) ---- */
.ic.filled { fill: currentColor; }
.star { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text-3); flex: none; transition: transform 120ms var(--out), color 120ms; }
.star:hover { background: var(--hover); color: var(--text-2); } .star:active { transform: scale(0.88); }
.star.on { color: #f4b400; } .star.on .ic { animation: star-pop 260ms var(--out); }
@keyframes star-pop { 40% { transform: scale(1.25); } }
.subject .star { align-self: center; }
.label.user-label { background: color-mix(in srgb, var(--lc) 16%, var(--surface)); color: color-mix(in srgb, var(--lc) 78%, var(--text)); }
:root[data-theme="dark"] .label.user-label { background: color-mix(in srgb, var(--lc) 30%, var(--surface)); color: color-mix(in srgb, var(--lc) 30%, #fff); }
.mini-code { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--text-2); line-height: 14px; vertical-align: 1px; }
.menu .mini-code { margin-left: 4px; }
.cap-limit { max-width: 190px; }
.pagehead { display: flex; align-items: center; gap: 12px; padding: 12px 20px 10px; border-bottom: 1px solid var(--line); flex: none; color: var(--text-2); }
.pagehead h2 { font-size: 18px; color: var(--text); } .pagehead .soft { font-size: 13px; margin-left: 8px; }
.tagdot.big { width: 14px; height: 14px; }
.draft-tag { color: #c5221f; font-weight: 500; } :root[data-theme="dark"] .draft-tag { color: #f28b82; }
.labelpick { padding: 4px 0; min-width: 260px; }
.lp-head { padding: 6px 16px 4px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.lp-search { display: block; width: calc(100% - 24px); margin: 4px 12px 6px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); outline: none; color: var(--text); }
.lp-search:focus { border-color: var(--brand); }
.lp-list { max-height: 260px; overflow: auto; }
.lp-item { display: flex; align-items: center; gap: 10px; padding: 7px 16px; cursor: pointer; font-size: 14px; } .lp-item:hover { background: var(--hover); }
.lp-item input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.lp-empty { padding: 8px 16px; color: var(--text-3); font-size: 13px; }
.lp-new { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 16px; color: var(--brand-ink); font-weight: 500; border-top: 1px solid var(--line); text-align: left; } .lp-new:hover { background: var(--hover); }
.lp-foot { display: flex; justify-content: flex-end; padding: 4px 8px 0; border-top: 1px solid var(--line); }
.nav-cap { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 4px 26px; }
.nav-cap .ibtn { color: var(--text-2); }
.label-nav { position: relative; padding-right: 12px; }
.label-link { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; height: 100%; color: inherit; text-decoration: none !important; }
.label-nav .count { margin-left: auto; min-width: 28px; text-align: right; transition: opacity 120ms var(--in), transform 120ms var(--in); }
.label-nav .label-menu { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.label-nav .lm-btn { width: 28px; height: 28px; opacity: 0; transform: scale(0.8); transition: opacity 150ms var(--out), transform 150ms var(--out), background 120ms; }
.label-nav:hover .lm-btn, .label-nav .lm-btn:focus-visible, .label-nav:focus-within .lm-btn { opacity: 1; transform: none; }
.label-nav:hover .count, .label-nav:focus-within .count { opacity: 0; transform: scale(0.8); }
.new-label { display: flex; gap: 6px; padding: 4px 12px 8px 26px; }
.new-label input, .rename input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--brand); border-radius: 6px; background: var(--surface); color: var(--text); outline: none; }
.nav-hint { padding: 2px 20px 8px 26px; font-size: 12.5px; color: var(--text-3); white-space: normal; }
.shell.mini .nav-hint, .shell.mini .nav-cap span, .shell.mini .label-nav .count, .shell.mini .lm-btn, .shell.mini .new-label { display: none; }
.rename { display: flex; gap: 6px; padding: 6px 12px; }
.swatches { display: grid; grid-template-columns: repeat(8, 22px); gap: 6px; padding: 4px 16px 8px; }
.sw { width: 22px; height: 22px; border-radius: 50%; background: var(--tag); box-shadow: inset 0 0 0 2px transparent; transition: transform 80ms; } .sw:hover { transform: scale(1.12); }
.sw.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--tag); }
.side-labels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.addlabel { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 12.5px; } .addlabel:hover { background: var(--hover); }
.ghl-block { padding-top: 14px; padding-bottom: 14px; } .ghl-btn { width: 100%; justify-content: center; text-decoration: none !important; } .ghl-wait { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.saved-note { font-size: 12px; color: var(--text-3); margin-right: 8px; animation: fade 300ms; }
/* the writing box and Gmail's formatting bar */
.editor { outline: none; padding: 8px 16px; min-height: 140px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; cursor: text; }
.editor:empty::before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; }
.editor a, .txt.rich a { color: var(--blue); text-decoration: underline; }
.editor ul, .editor ol, .txt.rich ul, .txt.rich ol { margin: 4px 0; padding-left: 26px; }
.editor p, .editor div { margin: 0; }
.txt.rich { white-space: normal; }
.c-editor { flex: 1; padding: 12px 0; min-height: 180px; }
.fmtbar { position: relative; display: flex; align-items: center; gap: 1px; padding: 0 6px; margin: 0 4px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.fmt { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; color: var(--text-2); } .fmt:hover { background: var(--hover); } .fmt.on { background: var(--brand-tint-2); color: var(--brand-ink); }
.fsep { width: 1px; height: 20px; background: var(--line); margin: 0 3px; }
.linkbox { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; width: 300px; background: var(--raise); border-radius: 8px; box-shadow: var(--pop); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; animation: pop-in 160ms var(--out); transform-origin: bottom left; }
.linkbox label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.linkbox input { height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--text); outline: none; font-size: 14px; } .linkbox input:focus { border-color: var(--brand); }
.row-end { display: flex; justify-content: flex-end; gap: 8px; }
.frombtn { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 6px; text-align: left; color: var(--text); }
.c-line .menu-wrap { flex: 1; min-width: 0; }
.compose-sig { padding: 0 0 8px; }
select, option { background-color: var(--surface); color: var(--text); }
.range-pick { display: flex; gap: 10px; padding: 8px 16px 4px; }
.range-pick label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.range-pick input { height: 36px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--text); }
.range-acts { display: flex; justify-content: flex-end; padding: 8px 16px 6px; }
.seg .menu-wrap > button { height: 100%; padding: 0 14px; font-weight: 500; color: var(--text-2); font-size: 13px; border-left: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 6px; }
.seg .menu-wrap > button.on { background: var(--brand-tint-2); color: var(--brand-ink); }
.country-sel { width: 120px; height: 34px; flex: none; }

/* statistics table scrolls inside its card when the window is narrow */
.gt-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.gt td.g { min-width: 190px; }
.show-sm, .only-phone { display: none !important; }
.textbtn .ic.sm { display: none; }
.btn.primary[disabled], .send-btn[disabled] { opacity: 1; background: color-mix(in srgb, var(--brand) 38%, var(--surface)); color: color-mix(in srgb, var(--on-brand) 85%, transparent); }
:root[data-theme="dark"] .btn.primary[disabled], :root[data-theme="dark"] .send-btn[disabled] { background: color-mix(in srgb, var(--brand) 45%, #44464d); color: rgba(255, 255, 255, 0.75); }
.signin-acts { flex-wrap: wrap; justify-content: center; gap: 2px 18px; } .signin-acts .grow { display: none; } .signin-acts .linkbtn { white-space: nowrap; }
.boot-frame { position: fixed; inset: 0; display: grid; grid-template-columns: 256px 1fr; grid-template-rows: 64px 1fr; gap: 0 0; }
.boot-frame i { display: block; border-radius: 16px; background: var(--line); opacity: 0.5; animation: breathe 1.1s var(--inout) infinite alternate; }
.boot-frame .b-top { grid-column: 1 / -1; margin: 8px 20% 8px 270px; border-radius: 24px; }
.boot-frame .b-nav { margin: 8px 16px 60% 8px; } .boot-frame .b-main { margin: 0 16px 16px 0; background: var(--surface); opacity: 1; animation: none; }

/* ---- smaller screens ---- */
@media (max-width: 1240px) {
  .side { position: absolute; right: 0; top: 0; bottom: 0; z-index: 20; box-shadow: var(--pop); width: min(340px, 92%); }
  .reader-body.with-side .side-scrim { display: block; position: absolute; inset: 0; z-index: 19; background: rgba(0, 0, 0, 0.18); animation: fade 160ms; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) { .hide-md { display: none; } .show-md { display: inline-flex !important; margin-top: 4px; } }
@media (max-width: 900px) {
  .fab { position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 56px; padding: 0 20px 0 16px; border-radius: 16px; background: var(--compose); color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15); transition: transform 80ms; }
  .side-nav .compose-btn { display: none; }
  .boot-frame { grid-template-columns: 1fr; } .boot-frame .b-nav { display: none; } .boot-frame .b-top { margin: 8px 12px; }
  .shell, .shell.mini { grid-template-columns: 1fr; }
  .side-nav { position: fixed; z-index: 45; left: 0; top: 0; bottom: 0; width: 280px; background: var(--surface); box-shadow: var(--pop); border-radius: 0 16px 16px 0; padding-top: max(16px, env(safe-area-inset-top)); transform: translateX(-104%); transition: transform 190ms var(--in); visibility: hidden; }
  .side-nav.open { transform: none; transition: transform 240ms var(--out); visibility: visible; }
  .shell.mini .compose-btn span, .shell.mini .nav .t, .shell.mini .nav .count, .shell.mini .nav-cap, .shell.mini .nav-foot { display: revert; }
  .shell.mini .nav { width: calc(100% - 12px); margin-left: 0; padding: 0 12px 0 26px; border-radius: 0 16px 16px 0; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, 0.32); animation: fade 200ms; }
  .surface { grid-column: 1; margin: 0 8px 8px; }
  .topbar .logo { width: auto; padding-right: 12px; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .shell { grid-template-rows: 64px 1fr; }
  .topbar { padding: 8px 12px; gap: 0; }
  .topbar .logo, .topbar .live { display: none; }
  .search { order: 0; height: 48px; padding-left: 4px; margin-right: 4px; gap: 4px; }
  .topbar .hamb { order: -1; position: absolute; left: 16px; z-index: 2; }
  .search { padding-left: 48px; } .search > .ic, .search .hint-key { display: none; }
  .top-right { padding-left: 0; }
  .surface { margin: 0; border-radius: 16px 16px 0 0; }
  .toolbar { padding: 4px 8px; }
  .list .toolbar .cbx.master, .list .toolbar > .ibtn:first-of-type { display: none; }
  .range { display: none; }
  .tabs { overflow-x: auto; scrollbar-width: none; padding: 0; }
  .tab { flex: 0 0 auto; height: 48px; gap: 8px; padding: 0 14px; }
  .tab .ic { display: none; }
  .mrow { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 14px; height: auto; padding: 10px 16px; border-bottom: 0; background: var(--surface); }
  .mrow:hover { box-shadow: none; } .mrow:active { background: var(--hover); }
  .mrow .cbx, .mrow .hover-acts, .mrow .clip { display: none !important; }
  .mrow .row-av { display: grid; grid-row: 1 / 4; grid-column: 1; align-self: start; margin-top: 2px; }
  .mrow .from { grid-column: 2; grid-row: 1; padding: 0; font-size: 15px; }
  .mrow .date { grid-column: 3; grid-row: 1; visibility: visible !important; }
  .mrow .line { grid-column: 2 / 3; grid-row: 2 / 4; display: block; white-space: normal; min-width: 0; }
  .mrow > .star { grid-column: 3; grid-row: 2 / 4; justify-self: end; align-self: end; margin: 0 -6px -4px 0; }
  .sent-row > .star, .draft-row > .star { display: none; }
  .fmtbar { display: none; }
  .signin-card { padding: 28px 22px; border-radius: 20px; } .otp input { width: 42px; height: 52px; }
  .mrow .line .label { margin-right: 6px; }
  .mrow .subj { display: block; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mrow .snip { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; white-space: normal; }
  .mrow .line .label + .subj { display: inline; }
  .skel-row .line { flex-direction: column; gap: 8px; } .skel-row .line i:first-child { width: 70% !important; } .skel-row .line i:last-child { width: 90% !important; }
  .fab { position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 56px; padding: 0 20px 0 16px; border-radius: 16px; background: var(--compose); color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15); transition: transform 80ms; }
  .fab:active { transform: scale(0.97); }
  .toasts { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); } .toast { min-width: 0; width: 100%; }
  .reader .toolbar { padding: 4px; position: sticky; top: 0; background: var(--surface); z-index: 3; }
  .reader .toolbar .range { display: none; }
  .thread-col { padding: 0 16px 120px; }
  .subject, .dealbar, .reply-start, .event { padding-left: 0; }
  .subject h1 { font-size: 20px; }
  .replybox { margin-left: 0; }
  .msg { gap: 12px; } .msg .avatar { width: 36px; height: 36px; font-size: 15px; }
  .mhead { flex-wrap: wrap; } .mdate .soft { display: none; }
  .fm-name { max-width: 130px; }
  .file { width: calc(50% - 6px); }
  .compose, .compose.min, .compose.max { left: 0; right: 0; bottom: 0; top: 0; width: 100%; height: 100%; border-radius: 0; transform: none; padding-bottom: env(safe-area-inset-bottom); animation: sheet-in 260ms var(--out); }
  .compose.min { top: auto; height: 56px; border-radius: 16px 16px 0 0; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  .c-head { height: 56px; position: relative; } .c-head .grip { display: block; position: absolute; left: 50%; top: 6px; width: 32px; height: 4px; margin-left: -16px; border-radius: 2px; background: var(--line-2); }
  .only-wide { display: none !important; }
  .only-phone { display: inline-flex !important; } .not-phone { display: none !important; } .show-sm { display: inline-flex !important; margin-top: 4px; }
  .textbtn .sort-text, .textbtn .ic.xs { display: none; } .textbtn .ic.sm { display: block; } .textbtn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; }
  .list .toolbar:not(:has(.chips, .selcount)) { display: none; }
  .pagehead { flex-wrap: wrap; row-gap: 2px; } .pagehead .soft { flex-basis: 100%; margin-left: 36px; }
  .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; } .seg button, .seg .menu-wrap > button { white-space: nowrap; flex: none; }
  .kpi:last-child:nth-child(4) { grid-column: 1 / -1; }
  .seg .cd-text { display: none; }
  .gt td.g { min-width: 150px; }
  .kv .v a { display: inline-block; padding: 7px 0; margin: -7px 0; } .addlabel { height: 32px; padding: 0 12px; }
  .mrow .snip::before { content: none; }
  .side-nav .compose-btn { display: none; }
  .page-inner { padding: 16px 16px 96px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .kpi.hero { grid-column: 1 / -1; }
  .kpi .val { font-size: 26px; line-height: 32px; } .kpi.hero .val { font-size: 38px; }
  .hide-sm { display: none; }
  .bar-track { width: 64px; }
  .frow { grid-template-columns: 110px 1fr 72px; font-size: 13px; }
  .formgrid { grid-template-columns: 1fr; }
  .signin-card { padding: 28px 24px; border-radius: 20px; }
}
