/* Hottub Thermae 0.320 (c) 2026 Hottub, all rights reserved. Frozen 2026-11-24. */
@font-face{font-family:"Hottub Thermae fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Arimo");font-weight:400;size-adjust:105.26%;ascent-override:90.25%;descent-override:23.75%;line-gap-override:0%}
@font-face{font-family:"Hottub Thermae fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Arimo");font-weight:500;size-adjust:107.98%;ascent-override:87.98%;descent-override:23.15%;line-gap-override:0%}
@font-face{font-family:"Hottub Thermae fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("Arimo Bold");font-weight:550 800;size-adjust:102.82%;ascent-override:92.39%;descent-override:24.31%;line-gap-override:0%}
@font-face{font-family:"Hottub Thermae fallback A";src:local("Roboto"),local("Roboto-Regular");font-weight:400;size-adjust:106.25%;ascent-override:89.41%;descent-override:23.53%;line-gap-override:0%}
@font-face{font-family:"Hottub Thermae fallback A";src:local("Roboto Medium"),local("Roboto-Medium");font-weight:500;size-adjust:107.97%;ascent-override:87.99%;descent-override:23.15%;line-gap-override:0%}
@font-face{font-family:"Hottub Thermae fallback A";src:local("Roboto Bold"),local("Roboto-Bold");font-weight:550 800;size-adjust:109.99%;ascent-override:86.37%;descent-override:22.73%;line-gap-override:0%}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-latin-282cc5fbf4.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:normal;font-display:swap;unicode-range:U+20-A3,U+A5,U+A7,U+A9,U+AB,U+AD-AE,U+B0-B1,U+B7,U+BB,U+BF-FF,U+131,U+152-153,U+300-308,U+30A-322,U+324-36F,U+2000-201F,U+2022-2026,U+2028-203A,U+20AC,U+2122,U+2190-2193,U+2212,U+2248,U+2264-2265,U+2713}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-greek-01991fb7a0.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:normal;font-display:swap;unicode-range:U+386,U+388-38A,U+38C,U+38E-38F,U+391-3A1,U+3A3-3AF,U+3B1-3CE}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-cyrillic-273e254767.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:normal;font-display:swap;unicode-range:U+401,U+404,U+406-408,U+40E,U+410-44F,U+451,U+454,U+456-458,U+45E,U+490-491}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-latin-ext-418a125608.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:normal;font-display:swap;unicode-range:U+A4,U+A6,U+A8,U+AA,U+AC,U+AF,U+B2-B6,U+B8-BA,U+BC-BE,U+100-130,U+132-151,U+154-18E,U+190-19F,U+1A2-1AE,U+1B1-1E7,U+1EA-1F3,U+1F6-1F7,U+1FA-21D,U+220-233,U+237,U+2C6-2DD,U+394,U+3A9,U+3BC,U+3C0,U+1E80-1E85,U+1E9E,U+1EBC-1EBD,U+1EF2-1EF3,U+1EF8-1EF9,U+2020-2021,U+2044,U+2074,U+20B9,U+2113,U+2126,U+212E,U+2202,U+2206,U+220F,U+2211,U+2215,U+2219,U+221A,U+221E,U+222B,U+2260,U+25CA,U+266A}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-more-38ac27cd28.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:normal;font-display:swap;unicode-range:U+18F,U+1A0-1A1,U+1AF-1B0,U+1E8-1E9,U+1F4-1F5,U+1F8-1F9,U+21E-21F,U+259,U+2BB-2BC,U+309,U+323,U+1E00-1E7F,U+1E86-1E9D,U+1E9F-1EBB,U+1EBE-1EF1,U+1EF4-1EF7}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-italic-latin-b49bafdc2d.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:italic;font-display:swap;unicode-range:U+20-A3,U+A5,U+A7,U+A9,U+AB,U+AD-AE,U+B0-B1,U+B7,U+BB,U+BF-FF,U+131,U+152-153,U+300-308,U+30A-322,U+324-36F,U+2000-201F,U+2022-2026,U+2028-203A,U+20AC,U+2122,U+2190-2193,U+2212,U+2248,U+2264-2265,U+2713}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-italic-greek-e935cbce8a.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:italic;font-display:swap;unicode-range:U+386,U+388-38A,U+38C,U+38E-38F,U+391-3A1,U+3A3-3AF,U+3B1-3CE}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-italic-cyrillic-821e9a5d5b.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:italic;font-display:swap;unicode-range:U+401,U+404,U+406-408,U+40E,U+410-44F,U+451,U+454,U+456-458,U+45E,U+490-491}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-italic-latin-ext-1056b1039c.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:italic;font-display:swap;unicode-range:U+A4,U+A6,U+A8,U+AA,U+AC,U+AF,U+B2-B6,U+B8-BA,U+BC-BE,U+100-130,U+132-151,U+154-18E,U+190-19F,U+1A2-1AE,U+1B1-1E7,U+1EA-1F3,U+1F6-1F7,U+1FA-21D,U+220-233,U+237,U+2C6-2DD,U+394,U+3A9,U+3BC,U+3C0,U+1E80-1E85,U+1E9E,U+1EBC-1EBD,U+1EF2-1EF3,U+1EF8-1EF9,U+2020-2021,U+2044,U+2074,U+20B9,U+2113,U+2126,U+212E,U+2202,U+2206,U+220F,U+2211,U+2215,U+2219,U+221A,U+221E,U+222B,U+2260,U+25CA,U+266A}
@font-face{font-family:"Hottub Thermae";src:url(/fonts/thermae-italic-more-4b46f18741.woff2) format("woff2");font-weight:300 800;font-stretch:85% 115%;font-style:italic;font-display:swap;unicode-range:U+18F,U+1A0-1A1,U+1AF-1B0,U+1E8-1E9,U+1F4-1F5,U+1F8-1F9,U+21E-21F,U+259,U+2BB-2BC,U+309,U+323,U+1E00-1E7F,U+1E86-1E9D,U+1E9F-1EBB,U+1EBE-1EF1,U+1EF4-1EF7}
@font-face{font-family:"Hottub Thermae Mono";src:url(/fonts/thermae-mono-b960464c23.woff2) format("woff2");font-weight:300 800;font-style:normal;font-display:swap}
@font-face{font-family:"Hottub Thermae Mono";src:url(/fonts/thermae-mono-italic-49d31f0b13.woff2) format("woff2");font-weight:300 800;font-style:italic;font-display:swap}

/* Email by Hottub (hottub.email) — Official Hottub Water & Sun design system.
   Hottub Thermae v0.320 + Tidepool Compact space-optimal logged-in shell.
   Water by day, deep water by night, and the sun marks warmth and priority.
   Aligned with crm.joinhottub.com, calendar.joinhottub.com, and Harmonic Browser.
   WCAG AA+ contrast in both light and dark modes; zero JavaScript required. */

:root {
  --font-ui: "Hottub Thermae", "Hottub Thermae fallback", "Hottub Thermae fallback A", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Hottub Thermae Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Official Hottub Daylight Water Palette */
  --brand-ink: #0c3b46;
  --rail-brand: #fdf8f3;
  --page: #eef6f7;
  --paper: #ffffff;
  --well: #f4f9fa;
  --ink: #14201f;
  --ink-2: #2f403e;
  --ink-3: #51676a;
  --line: #d4e3e6;
  --line-2: #e5eff1;

  /* Signature Deep Ocean-Teal Navigation Rail */
  --rail: #0c3b46;
  --rail-2: #124a57;
  --rail-3: #1a5a68;
  --rail-ink: #eaf6f8;
  --rail-dim: #a9cdd4;
  --rail-line: rgba(169, 205, 212, 0.18);
  --rail-glass: rgba(255, 255, 255, 0.08);

  /* Water Interactive Tokens */
  --water: #115e6e;
  --water-2: #0c4b58;
  --water-soft: #dcf0f3;
  --on-water: #ffffff;
  --link: #0f6577;
  --focus: #1b8a9e;

  /* Warmth & Daylight Spectrum */
  --hot: #f26d4a;
  --hot-deep: #c94726;
  --hot-soft: #fdeee8;
  --warm: #ffb84d;
  --warm-ink: #8a4b00;
  --warm-soft: #fff5e3;
  --tepid: #6fc4d2;
  --cold: #115e6e;
  --ok: #17795a;
  --ok-soft: #e0f5ed;
  --late: #b3361c;
  --late-soft: #fdeee8;

  --spectrum: linear-gradient(90deg, #0c4b58 0%, #115e6e 18%, #6fc4d2 46%, #ffb84d 74%, #f26d4a 100%);
  --spectrum-crm: linear-gradient(90deg, #f26d4a 0%, #ffb84d 62%, #6fc4d2 100%);
  --spectrum-cal: linear-gradient(90deg, #115e6e 0%, #6fc4d2 56%, #ffb84d 100%);

  --shadow-1: 0 1px 2px rgba(12, 59, 70, 0.06);
  --shadow-2: 0 12px 32px -12px rgba(12, 59, 70, 0.22);
  --shadow-3: 0 24px 56px -22px rgba(8, 40, 50, 0.32);

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-ink: #aee0e8;
    --rail-brand: #eef7f8;
    --page: #081c23;
    --paper: #0e2730;
    --well: #0b222a;
    --ink: #e8f3f4;
    --ink-2: #c6d9db;
    --ink-3: #94acb0;
    --line: #21424d;
    --line-2: #183540;

    --rail: #06161c;
    --rail-2: #0d2830;
    --rail-3: #14363f;
    --rail-ink: #e8f3f4;
    --rail-dim: #8fb0b6;
    --rail-line: rgba(143, 176, 182, 0.18);
    --rail-glass: rgba(255, 255, 255, 0.05);

    --water: #6fc4d2;
    --water-2: #8dd3de;
    --water-soft: #123845;
    --on-water: #06202a;
    --link: #83d1dd;
    --focus: #6fc4d2;

    --hot: #ff8a6a;
    --hot-deep: #ff9d80;
    --hot-soft: #3a1d15;
    --warm: #ffc777;
    --warm-ink: #ffc777;
    --warm-soft: rgba(255, 199, 119, 0.14);
    --tepid: #7fd0de;
    --cold: #3a8fa3;
    --ok: #67d3ad;
    --ok-soft: rgba(103, 211, 173, 0.14);
    --late: #ff9d80;
    --late-soft: #3a1d15;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.32);
    --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.65);
    --shadow-3: 0 28px 64px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
  html, body {
    font-variation-settings: "GRAD" -20;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
b, strong { font-weight: 600; }
button, input, select, textarea, optgroup, summary { font-family: var(--font-ui); }
code, kbd, pre { font-family: var(--font-mono); }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--water-soft);
  color: var(--brand-ink);
}

/* ── Brand Lockup ─────────────────────────────────────────────────────────── */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-ink);
  text-decoration: none;
}
.brand-lockup:hover { text-decoration: none; opacity: 0.94; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.brand-mark svg { display: block; width: 30px; height: 30px; }
.brand-name {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.1;
}
.brand-by {
  font-weight: 450;
  color: var(--ink-3);
  font-size: 12.5px;
  margin-left: 6px;
}

/* ── Public Landing & Sign-In Experience (Water-to-Sunrise Backdrop) ──────── */
.public-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 64% 58% at 12% 10%, rgba(111, 196, 210, 0.28), transparent 68%),
    radial-gradient(ellipse 58% 52% at 88% 12%, rgba(255, 184, 77, 0.22), transparent 66%),
    radial-gradient(ellipse 46% 42% at 78% 88%, rgba(242, 109, 74, 0.11), transparent 62%),
    var(--page);
}

@media (prefers-color-scheme: dark) {
  .public-page {
    background:
      radial-gradient(ellipse 64% 56% at 14% 10%, rgba(111, 196, 210, 0.16), transparent 68%),
      radial-gradient(ellipse 56% 48% at 88% 14%, rgba(255, 184, 77, 0.1), transparent 64%),
      radial-gradient(ellipse 46% 42% at 74% 88%, rgba(242, 109, 74, 0.08), transparent 60%),
      var(--page);
  }
}

.public-bar {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 14px 24px 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}

/* Embedded hottub.tech Search Bar (zero-JS GET form, rainbow "H" + Search in Water & Sun palette) */
.ht-search-bar {
  position: relative;
  flex: 1 1 320px;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 5px 4px 12px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.ht-search-bar:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--water-soft);
}
.ht-search-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--brand-ink);
  white-space: nowrap;
  padding-right: 9px;
  border-right: 1px solid var(--line-2);
  text-decoration: none;
}
.ht-search-mark:hover { text-decoration: none; opacity: 0.85; }
.ht-h-icon {
  width: 17px;
  height: 17px;
  flex: none;
  display: block;
}
.ht-search-bar input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 5px 6px;
  font-size: 13px;
  color: var(--ink);
  box-shadow: none;
}
.ht-search-bar input[type="search"]:focus {
  border: none;
  box-shadow: none;
}
.ht-search-go {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--brand-ink);
  color: var(--on-water);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.14s var(--ease), transform 0.08s var(--ease);
}
.ht-search-go:hover { background: var(--water); }
.ht-search-go:active { transform: translateY(1px); }

/* Compact hottub.tech Search inside Dark Ocean-Teal Left Rail */
.rail-search-form {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--rail-glass);
  border: 1px solid var(--rail-line);
  border-radius: 999px;
  padding: 2px 3px 2px 10px;
  margin-bottom: 4px;
  transition: border-color 0.12s var(--ease);
}
.rail-search-form:focus-within { border-color: var(--warm); }
.rail-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 4px 2px;
  font-size: 11.4px;
  color: var(--rail-ink);
  box-shadow: none;
}
.rail-search-form input[type="search"]::placeholder { color: var(--rail-dim); opacity: 0.85; }
.rail-search-form input[type="search"]:focus { border: none; box-shadow: none; }
.rail-search-go {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--rail-3);
  color: var(--rail-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.rail-search-go:hover { background: var(--hot); color: #ffffff; }

.public-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.public-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 6px 11px;
  border-radius: 999px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.public-nav a:hover {
  background: var(--water-soft);
  color: var(--brand-ink);
  text-decoration: none;
}

.public-container {
  width: min(1320px, 100%);
  margin: auto;
  padding: 10px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.public-main {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(356px, 412px);
  gap: 32px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--water-soft);
  color: var(--brand-ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  margin-bottom: 10px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--water);
}
.eyebrow-rainbow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: conic-gradient(#e23b3b, #f2702a, #eaa915, #2e9e62, #2b78d0, #7a4cc6, #e23b3b);
}

.public-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.05vw, 36px);
  font-weight: 600;
  font-stretch: 94%;
  letter-spacing: 0;
  line-height: 1.12;
  color: var(--brand-ink);
}
.public-title span {
  display: block;
  color: var(--ink);
  font-weight: 550;
}

.public-lede {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
}

.hero-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
@media (prefers-color-scheme: dark) {
  .trust-chip { background: rgba(14, 39, 48, 0.75); }
}
.trust-check { color: var(--ok); font-weight: 700; }

/* Pure-CSS Product Showcase Card */
.preview-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.spectrum-bar {
  height: 4px;
  width: 100%;
  background: var(--spectrum);
}
.rainbow-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #e23b3b 0%, #f2702a 20%, #eaa915 40%, #2e9e62 60%, #2b78d0 80%, #7a4cc6 100%);
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--well);
}
.preview-addr {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--brand-ink);
}
.preview-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.lane-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.heat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-ready { background: var(--hot); }
.dot-warm { background: var(--warm); }
.dot-updates { background: var(--tepid); }
.dot-cold { background: var(--cold); }

.preview-rows { display: flex; flex-direction: column; }
.preview-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-2);
}
.preview-row:last-child { border-bottom: none; }
.preview-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.preview-sender { font-weight: 600; font-size: 13px; color: var(--ink); }
.preview-time { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.preview-subj { font-size: 12.5px; font-weight: 550; color: var(--ink-2); margin: 1px 0 4px; }
.preview-axis {
  padding: 8px 14px 10px;
  background: var(--well);
  border-top: 1px solid var(--line-2);
}
.axis-line {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hot) 0%, var(--warm) 35%, var(--tepid) 68%, var(--cold) 100%);
  margin-bottom: 5px;
}
.axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 13px 16px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pillar-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pillar h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-ink);
}
.pillar p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink-3);
}

/* Auth / TOTP / Claim Cards */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 64% 58% at 14% 12%, rgba(111, 196, 210, 0.26), transparent 68%),
    radial-gradient(ellipse 58% 52% at 86% 16%, rgba(255, 184, 77, 0.2), transparent 64%),
    var(--page);
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.auth-card-inner { padding: 22px 24px 20px; }
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--well);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
.auth-card h1,
.auth-card h2 {
  margin: 10px 0 5px;
  font-size: 21px;
  font-weight: 600;
  font-stretch: 94%;
  letter-spacing: 0;
  color: var(--brand-ink);
}
.auth-sub {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.5;
}

.auth-foot {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-traits {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.auth-trait-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.auth-trait-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--well);
  border: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.auth-signup-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.auth-signup-note a { font-weight: 650; }

.suite-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.suite-pill {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--well);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-weight: 600;
}

.public-footer {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 6px 24px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ── Forms & Buttons ──────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--water-soft);
}
textarea { resize: vertical; min-height: 76px; }

.handle-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--paper);
  overflow: hidden;
}
.handle-input-wrap:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--water-soft);
}
.handle-input-wrap input { border: none; box-shadow: none; }
.handle-suffix {
  padding: 9px 12px;
  background: var(--well);
  color: var(--brand-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 650;
  border-left: 1px solid var(--line);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 8px 0 12px;
}
.checkbox-row input { width: auto; margin-top: 2px; accent-color: var(--water); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease), transform 0.08s var(--ease);
}
.btn:hover { background: var(--well); border-color: var(--focus); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  border-color: transparent;
  color: var(--on-water);
  background: var(--water);
  box-shadow: 0 6px 16px -6px rgba(12, 75, 88, 0.45);
}
.btn-primary:hover { background: var(--water-2); border-color: transparent; color: var(--on-water); }

.btn-crm {
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(135deg, #c94c2c, #df643b);
  box-shadow: 0 6px 16px -8px rgba(201, 76, 44, 0.55);
}
.btn-crm:hover { filter: brightness(1.06); border-color: transparent; color: #ffffff; }

.btn-cal {
  border-color: transparent;
  color: var(--on-water);
  background: var(--water);
  box-shadow: 0 6px 16px -8px rgba(17, 94, 110, 0.5);
}
.btn-cal:hover { background: var(--water-2); border-color: transparent; color: var(--on-water); }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-3); }
.btn-ghost:hover { background: var(--water-soft); border-color: transparent; color: var(--brand-ink); }

/* ── Banners & Alerts ─────────────────────────────────────────────────────── */
.banner {
  padding: 10px 14px;
  border-radius: var(--r-s);
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.banner-ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(23, 121, 90, 0.28); }
.banner-err { background: var(--late-soft); color: var(--late); border-color: rgba(179, 54, 28, 0.3); }
.banner-warn { background: var(--warm-soft); color: var(--warm-ink); border-color: rgba(255, 184, 77, 0.45); }

/* ── Main App Shell (Maximal Pixel-Space Compact Shell: 186px Rail + Fluid List + Full-Bleed Reader + 40px Strip) ─ */
.shell {
  display: grid;
  grid-template-columns: 196px clamp(260px, 21.5vw, 316px) minmax(0, 1fr) 40px;
  height: 100vh;
  overflow: hidden;
}
.shell.shell-dock-open {
  grid-template-columns: 196px clamp(236px, 19vw, 286px) minmax(0, 1fr) 316px 40px;
}

.rail {
  background: var(--rail);
  color: var(--rail-ink);
  border-right: 1px solid var(--rail-line);
  padding: 15px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  font-stretch: 93%;
}
.rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--spectrum);
}
.rail .brand-lockup { color: var(--rail-brand); gap: 8px; }
.rail .brand-mark { width: 26px; height: 26px; }
.rail .brand-mark svg { width: 25px; height: 25px; }
.rail .brand-name { font-size: 15.5px; font-weight: 650; }
.rail .brand-by { color: var(--rail-dim); font-size: 11.5px; margin-left: 5px; }
.rail a { color: var(--rail-ink); }
/* Explicitly override .rail a specificity so Compose text is always crisp high-contrast */
.rail .btn-rail-compose {
  color: #0c3b46;
  background: #f5fbfc;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
}
.rail .btn-rail-compose:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0c3b46;
}
@media (prefers-color-scheme: dark) {
  .rail .btn-rail-compose {
    background: var(--water);
    color: var(--on-water);
    border-color: transparent;
  }
  .rail .btn-rail-compose:hover {
    background: var(--water-2);
    color: var(--on-water);
  }
}

.rail-addr-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: var(--r-s);
  background: var(--rail-glass);
  border: 1px solid var(--rail-line);
  min-width: 0;
  text-decoration: none;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.rail-addr-pill:hover {
  background: var(--rail-2);
  border-color: rgba(169, 205, 212, 0.35);
  text-decoration: none;
}
.rail-warn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  flex-shrink: 0;
  margin-left: auto;
}
.live-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #67d3ad;
  flex-shrink: 0;
}
.rail-addr-text {
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 500;
  color: var(--rail-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rail-dim);
  padding: 4px 6px 0;
}
.rail-divider {
  height: 1px;
  background: var(--rail-line);
  margin: 2px 4px;
}

.lane-nav { display: flex; flex-direction: column; gap: 2px; }
.lane-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6.5px 9px;
  border-radius: 7px;
  color: var(--rail-ink);
  font-weight: 500;
  font-size: 13px;
  transition: background 0.06s ease-out, color 0.06s ease-out, transform 0.06s ease-out;
  will-change: background, transform;
}
.lane-link:active { transform: scale(0.982); }
.lane-link-sec {
  padding: 5px 9px;
  font-size: 12.5px;
  color: var(--rail-dim);
}
.lane-link-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rail .dot-cold { background: #4da8ba; }
.lane-link:hover { background: var(--rail-2); color: #ffffff; text-decoration: none; }
.lane-link.active {
  background: var(--rail-3);
  color: #ffffff;
  font-weight: 600;
}
.lane-count {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 1px 6.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--rail-ink);
}
.lane-count-muted {
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--rail-dim);
}
.lane-link.active .lane-count {
  background: var(--warm);
  color: #0c262e;
}

.rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 8px;
}
.rail-section-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--rail-dim);
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
}
.rail-section-title a { color: #8dd3de; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 11px; white-space: nowrap; }

.next-agenda-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 9px;
  border-radius: 9px;
  background: var(--rail-2);
  border-left: 3px solid var(--tepid);
}
.agenda-item-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.agenda-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--rail-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agenda-when-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.agenda-when { font-size: 11px; color: var(--rail-dim); font-variant-numeric: tabular-nums; }
.agenda-more { font-size: 10.5px; color: #8dd3de; font-weight: 600; }
.agenda-badge {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(111, 196, 210, 0.22);
  color: #bfeef5;
  flex-shrink: 0;
}
.agenda-badge.now { background: var(--warm); color: #0c262e; }
.next-agenda-empty {
  display: block;
  font-size: 11.5px;
  color: var(--rail-dim);
  background: var(--rail-glass);
  border: 1px solid var(--rail-line);
  border-radius: 8px;
  padding: 7px 9px;
  line-height: 1.4;
}
.next-agenda-empty:hover { background: var(--rail-2); color: #ffffff; text-decoration: none; }

.rail-storage {
  padding-top: 8px;
  border-top: 1px solid var(--rail-line);
}
.storage-bar {
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 0 5px;
  overflow: hidden;
}
.storage-bar > span {
  display: block;
  height: 100%;
  background: var(--spectrum);
}
.address-meta {
  font-size: 10.8px;
  font-variant-numeric: tabular-nums;
  color: var(--rail-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ses-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8ee6c6;
  font-weight: 600;
}
.ses-status::before {
  content: "";
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: #67d3ad;
}
.rail-suite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  font-size: 10.8px;
  color: var(--rail-dim);
  padding: 2px 1px 0;
  white-space: nowrap;
}
.rail-suite-row a { color: var(--rail-dim); font-weight: 500; }
.rail-suite-row a:hover { color: #ffffff; text-decoration: none; }
.rail-logout-form { margin: 0; }
.rail-logout-btn {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
  color: var(--rail-dim);
  padding: 5px 4px;
  font-size: 11.5px;
  font-weight: 500;
}
.rail-logout-btn:hover {
  background: var(--rail-2);
  border-color: transparent;
  color: #ffffff;
}

/* ── Zone 2: Compact Scannable 312px Thread Stream ────────────────────────── */
.thread-pane {
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  font-stretch: 93%;
}
.thread-pane-head {
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thread-pane-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.thread-pane-title h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pane-count {
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  flex-shrink: 0;
}
.search-form {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 3px 2px 8px;
}
.search-form:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--water-soft);
}
.search-form input[type="search"] {
  border: none;
  background: transparent;
  padding: 5px 4px;
  font-size: 12.5px;
  box-shadow: none;
}
.search-form input[type="search"]:focus { border: none; box-shadow: none; }
.search-go {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.search-go:hover { background: var(--water-soft); color: var(--brand-ink); }

.thread-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}
.bulk-triage-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.bulk-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: var(--water-soft);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}
.bulk-bar.has-selection,
.bulk-triage-form:has(.bulk-cb:checked) .bulk-bar {
  display: flex;
}
.bulk-count { font-weight: 600; color: var(--brand-ink); white-space: nowrap; }
.bulk-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.bulk-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
.bulk-btn:hover { background: var(--well); border-color: var(--water); }
.bulk-btn-danger:hover { color: #b91c1c; border-color: rgba(185, 28, 28, 0.45); }

.thread-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 9px 11px 9px 7px;
  border-bottom: 1px solid var(--line-2);
  border-left: 3px solid transparent;
  color: var(--ink);
  transition: background 0.12s var(--ease);
}
.thread-row-link {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  color: inherit;
  text-decoration: none;
}
.thread-row-link:hover { text-decoration: none; }
.bulk-cb-wrap {
  display: grid;
  place-items: center;
  width: 16px;
  height: 28px;
  margin-top: 2px;
  flex-shrink: 0;
  opacity: 0.22;
  cursor: pointer;
  transition: opacity 0.12s var(--ease);
}
.thread-row:hover .bulk-cb-wrap,
.thread-row.selected .bulk-cb-wrap,
.bulk-cb-wrap:has(input:checked) { opacity: 1; }
.bulk-cb { width: 13px; height: 13px; accent-color: var(--water); cursor: pointer; margin: 0; }
.thread-row:hover { background: var(--well); text-decoration: none; }
.thread-row.selected {
  background: var(--water-soft);
  border-left-color: var(--water);
}
.thread-body { min-width: 0; }

.avatar {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  flex-shrink: 0;
}
.av-0 { background: linear-gradient(160deg, #167a8e, #0c4b58); }
.av-1 { background: linear-gradient(160deg, #e86c4a, #c24222); }
.av-2 { background: linear-gradient(160deg, #218f6d, #13634a); }
.av-3 { background: linear-gradient(160deg, #3274b5, #1e4f82); }
.av-4 { background: linear-gradient(160deg, #d89423, #a66a0e); }
.av-5 { background: linear-gradient(160deg, #358c9b, #1d5d6b); }
.av-6 { background: linear-gradient(160deg, #b85c6b, #873947); }
.av-7 { background: linear-gradient(160deg, #54727a, #374f57); }

.thread-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.thread-sender {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-msg-count { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.thread-row.unread .thread-sender,
.thread-row.unread .thread-subject { font-weight: 600; }
.unread-dot {
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--hot);
  margin-right: 5px;
  vertical-align: 1px;
}
.thread-time {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  flex-shrink: 0;
}
.thread-subject {
  font-size: 12.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.thread-preview {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.thread-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  min-width: 0;
}
.thread-preview-inline {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.micro-chip {
  font-size: 9.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
.micro-crm { background: var(--warm-soft); color: var(--warm-ink); }
.micro-cal { background: var(--paper); border: 1px solid var(--line); color: var(--brand-ink); }

.thread-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.chip-reason { background: var(--hot-soft); color: var(--hot-deep); }
.chip-crm { background: var(--warm-soft); color: var(--warm-ink); }
.chip-cal { background: var(--water-soft); color: var(--brand-ink); }
.chip-detect { background: var(--warm-soft); color: var(--warm-ink); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-muted { background: var(--well); color: var(--ink-3); border: 1px solid var(--line); cursor: pointer; }
.chip-hottub {
  background: linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(90deg, #e23b3b, #f2702a, #eaa915, #2e9e62, #2b78d0, #7a4cc6) border-box;
  border: 1.5px solid transparent;
  color: var(--ok);
}

/* ── Zone 3: Full-Bleed Reading Sheet + Docked Bottom Reply Composer ─────── */
.reader-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--page);
}
.reader-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 44px;
  flex-shrink: 0;
  padding: 0 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.reader-bar-left,
.reader-bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  min-width: 0;
}
.reader-bar .btn,
.reader-bar .action-menu > summary,
.reader-bar .status-pill {
  white-space: nowrap;
  flex-shrink: 0;
}
.shell.shell-dock-open .reader-bar-extra {
  display: none;
}
.btn-danger-ghost:hover {
  background: var(--late-soft);
  color: var(--late);
}
.inline-form { display: inline-flex; margin: 0; }

/* Zero-JS <details> dropdown menus inside reader-bar */
.action-menu { position: relative; }
.action-menu > summary { list-style: none; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 30;
}
.auth-popover {
  left: auto;
  right: 0;
  width: 320px;
  padding: 12px 13px;
  gap: 6px;
}
.auth-pop-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-pop-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.auth-pop-raw {
  max-height: 110px;
  overflow: auto;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--well);
  border: 1px solid var(--line-2);
  font-size: 10.5px;
  word-break: break-all;
}
.auth-pop-raw code {
  background: transparent;
  padding: 0;
  font-size: 10.5px;
  color: var(--ink-2);
}
.action-popover form { margin: 0; }
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.menu-item:hover { background: var(--well); text-decoration: none; }
.menu-danger { color: var(--late); }
.menu-danger:hover { background: var(--late-soft); }
.menu-sep { height: 1px; background: var(--line-2); margin: 4px 6px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-hottub {
  background: linear-gradient(var(--ok-soft), var(--ok-soft)) padding-box,
    linear-gradient(90deg, #e23b3b, #f2702a, #eaa915, #2e9e62, #2b78d0, #7a4cc6) border-box;
  border: 1.5px solid transparent;
  color: var(--ok);
}
.status-spoof {
  background: var(--late-soft);
  color: var(--late);
  border-color: rgba(179, 54, 28, 0.45);
}
.status-warn { background: var(--warm-soft); color: var(--warm-ink); }
.status-crm { background: var(--warm-soft); color: var(--warm-ink); border-color: rgba(255, 184, 77, 0.55); }
.status-crm:hover { filter: brightness(0.97); text-decoration: none; }
.status-crm-add { background: var(--well); color: var(--brand-ink); border-color: var(--line); }
.status-crm-add:hover { background: var(--water-soft); text-decoration: none; }
.status-crm-act { background: var(--hot-soft); color: var(--hot-deep); border-color: rgba(242, 109, 74, 0.35); }

.reader-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
}
.reader-scroll-empty {
  margin: auto;
  max-width: 560px;
  flex: 0 1 auto;
}

.reason-details { position: relative; display: inline-flex; }
.reason-details > summary { list-style: none; }
.reason-details > summary::-webkit-details-marker { display: none; }
.reason-pop {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: min(360px, 70vw);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
  z-index: 25;
}

/* Slim Inline Calendar Ribbon */
.detect-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 13px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--water-soft), var(--paper));
  border: 1px solid var(--line);
  border-left: 4px solid var(--water);
  box-shadow: var(--shadow-1);
}
.detect-ribbon-copy {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.detect-ribbon-copy strong { color: var(--brand-ink); font-weight: 600; }
.detect-ribbon-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Main Conversation Sheet */
.reader-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 16px 20px 20px;
  box-shadow: var(--shadow-1);
  flex: 0 0 auto;
}
.reader-card-head {
  padding-bottom: 11px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.reader-subject {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 550;
  font-stretch: 94%;
  letter-spacing: 0;
  line-height: 1.22;
  color: var(--brand-ink);
}
.reader-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.mono-addr {
  font-family: var(--font-mono);
  font-size: 11.8px;
  color: var(--ink-3);
}

.reader-messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.msg-collapsed {
  background: var(--well);
  border: 1px solid var(--line-2);
  border-radius: 8px;
}
.msg-collapsed > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 7px 11px;
  font-size: 12.5px;
}
.msg-collapsed > summary::-webkit-details-marker { display: none; }
.msg-col-from { font-weight: 600; color: var(--ink-2); }
.msg-col-snippet { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-col-time { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.msg-expanded-body {
  padding: 11px 14px 13px;
  border-top: 1px solid var(--line-2);
  background: var(--paper);
  border-radius: 0 0 8px 8px;
}
.msg-sub-meta { font-size: 11.5px; color: var(--ink-3); margin-bottom: 8px; }

.msg-active-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
}
.msg-from-line strong { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.msg-to-inline { color: var(--ink-3); }
.msg-time-actions { display: flex; align-items: center; gap: 8px; }
.msg-when { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-3); }

.msg-body-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14.5px;
  line-height: 1.62;
  max-width: 82ch;
  color: var(--ink);
}
.msg-html-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #ffffff;
}
.att-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.att-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--well);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.att-pill svg { color: var(--water); flex-shrink: 0; }
.att-pill span { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.reply-dock {
  flex-shrink: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 10px 16px 12px;
  box-shadow: 0 -8px 24px -18px rgba(12, 59, 70, 0.25);
}
.reply-dock.reply-card {
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
}
.reply-dock-notice .notice {
  font-size: 12.5px;
  color: var(--ink-3);
}
.reply-head-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.reply-deliverability-tip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm-ink);
}
.reply-field { margin-bottom: 8px; }
.reply-field textarea { min-height: 64px; max-height: 220px; }
.compose-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 20px;
}
.compose-cc { margin-bottom: 12px; }
.compose-cc > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--link);
}
.reply-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.reply-card h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-ink);
}
.reply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Zone 4: Collapsible 44px Suite Strip + On-Demand 324px Inspector Drawer ─ */
.suite-strip {
  background: var(--well);
  border-left: 1px solid var(--line);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.strip-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--brand-ink);
  text-decoration: none;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease);
}
.strip-btn:hover { text-decoration: none; border-color: var(--water); }
.strip-btn-crm { background: var(--warm-soft); border-color: rgba(240, 200, 136, 0.85); color: var(--warm-ink); }
.strip-btn-cal { background: var(--water-soft); border-color: rgba(166, 212, 220, 0.9); color: var(--brand-ink); }
.strip-btn.active {
  background: var(--water);
  border-color: var(--water);
  color: var(--on-water);
}
.strip-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot);
  border: 1.5px solid var(--well);
}
.strip-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--water);
  color: var(--on-water);
  font-size: 9px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
}
.strip-label {
  margin-top: auto;
  margin-bottom: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  user-select: none;
}

.suite-drawer {
  background: var(--well);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  overflow: hidden;
  position: sticky;
  top: 0;
}
.drawer-head {
  height: 46px;
  padding: 0 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.drawer-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-ink);
}
.drawer-scroll {
  padding: 12px 13px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.dock-card {
  flex: 0 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: visible;
  box-shadow: var(--shadow-1);
}
.dock-card > .spectrum-bar,
.dock-card > .dock-accent-crm,
.dock-card > .dock-accent-cal {
  border-radius: var(--r-m) var(--r-m) 0 0;
}
.dock-accent-crm { height: 3px; background: var(--spectrum-crm); }
.dock-accent-cal { height: 3px; background: var(--spectrum-cal); }
.dock-card-body { padding: 14px; }

.dock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.dock-head > a,
.dock-head > .badge,
.dock-head > .muted-link {
  white-space: nowrap;
  flex-shrink: 0;
}
.dock-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-ink);
  min-width: 0;
}
.dock-title-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dock-sub { font-size: 12px; color: var(--ink-3); margin: 0 0 12px; line-height: 1.5; }

.linked-box {
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.linked-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.preset-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.preset-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed var(--water);
  background: var(--water-soft);
  color: var(--ink);
  font-size: 12px;
}
.preset-item:hover { text-decoration: none; filter: brightness(0.97); }
.preset-item strong { color: var(--brand-ink); font-weight: 600; }

.drawer-agenda-list { display: flex; flex-direction: column; gap: 8px; }
.drawer-agenda-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--well);
  border-left: 3px solid var(--tepid);
  font-size: 12px;
}
.drawer-agenda-row strong { color: var(--ink); font-weight: 600; }
.drawer-agenda-row span { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }

details.dock-details > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 4px 0;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-3);
}
.empty-state h3 { margin: 0 0 6px; color: var(--brand-ink); font-size: 16px; font-weight: 600; }
.empty-state-card {
  padding: 36px 28px;
  text-align: center;
  color: var(--ink-3);
}
.empty-state-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 550;
  color: var(--brand-ink);
}
.empty-state-card p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.55; }
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 1320px) {
  .shell { grid-template-columns: 192px 264px minmax(0, 1fr) 40px; }
  .shell.shell-dock-open { grid-template-columns: 192px 248px minmax(0, 1fr) 304px 40px; }
}
@media (max-width: 1120px) {
  .reader-bar-extra { display: none; }
}
@media (max-width: 1080px) {
  .shell,
  .shell.shell-dock-open {
    grid-template-columns: 176px 256px minmax(0, 1fr) 40px;
    height: auto;
    overflow: visible;
  }
  .reader-pane { height: auto; overflow: visible; }
  .suite-drawer {
    grid-column: 1 / -1;
    height: auto;
    position: static;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 960px) {
  .public-main { grid-template-columns: 1fr; gap: 20px; }
  .pillar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell,
  .shell.shell-dock-open {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .rail, .thread-pane, .suite-strip, .suite-drawer, .reader-pane {
    position: static;
    height: auto;
    overflow: visible;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--line);
  }
  .suite-strip {
    flex-direction: row;
    justify-content: flex-start;
    padding: 8px 14px;
  }
  .strip-label { display: none; }
  .reader-bar { padding: 0 14px; height: auto; min-height: 50px; flex-wrap: wrap; padding-block: 8px; }
  .reader-scroll { padding: 14px; }
}

/* ── A/B control compatibility ────────────────────────────────────────────
   The reader, compose form and inspector markup are shared with Thermal. These
   rules keep the few Thermal-only pieces in it out of the classic design. */
.back-link, .cal-tile { display: none; }
.ico { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico { display: none; }

/* ── Wave 2: Attachments, Drafts, Undo Send, Snooze, +tags, Deliverability Health & WASM Overlays ── */
.att-download {
  text-decoration: none;
  color: var(--brand-ink);
  transition: background 0.12s var(--ease), border-color 0.12s var(--ease);
}
.att-download:hover {
  background: var(--water-soft);
  border-color: var(--water);
  text-decoration: none;
}
.att-dl-arrow { opacity: 0.65; font-size: 11px; margin-left: 2px; }
.reply-head-right { display: flex; align-items: center; gap: 10px; }
.draft-status { font-size: 11.5px; color: var(--ink-3); font-style: italic; }
.reply-actions-left { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.att-upload-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--well);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.att-upload-btn:hover { border-color: var(--water); color: var(--brand-ink); }
.att-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.att-picker-status { font-size: 11.5px; color: var(--brand-ink); font-weight: 500; }

.banner-undo-send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, rgba(16, 134, 152, 0.12), rgba(46, 158, 98, 0.08));
  border-left: 4px solid var(--water);
}
.banner-undo-send.dispatched { opacity: 0.62; }

.chip-tag { background: rgba(43, 120, 208, 0.12); color: #1d5ca8; border: 1px solid rgba(43, 120, 208, 0.25); }
.chip-snooze { background: rgba(234, 169, 21, 0.14); color: #8c5f04; border: 1px solid rgba(234, 169, 21, 0.30); }
.chip-snooze-due { background: rgba(242, 112, 42, 0.14); color: #a94412; border: 1px solid rgba(242, 112, 42, 0.32); font-weight: 600; }
.micro-tag { background: rgba(43, 120, 208, 0.13); color: #1d5ca8; }
.micro-snooze { background: rgba(234, 169, 21, 0.18); color: #8c5f04; }

.rule-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.rule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--well);
  border: 1px solid var(--line-2);
  font-size: 12px;
}

.health-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.health-kpi {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--well);
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.health-kpi small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.health-kpi strong { font-size: 17px; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.health-domains { display: flex; flex-direction: column; gap: 6px; }
.health-domain-row {
  padding: 7px 9px;
  border-radius: 7px;
  background: var(--well);
  border: 1px solid var(--line-2);
  font-size: 12px;
}
.health-domain-metrics { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.health-rep-row {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 12px;
}
.health-rep-row:last-child { border-bottom: none; }
.health-rep-top { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.health-rep-sub { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.health-fail-ip { font-size: 11px; color: #b91c1c; margin-top: 3px; font-family: var(--font-mono); }

.live-toast {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(16, 134, 152, 0.38);
  background: #0c3b46;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(7, 30, 38, 0.28);
  cursor: pointer;
}
.live-toast.visible { display: inline-flex; }
.live-toast:hover { background: #105060; }
.banner-undo-send.dispatched form { display: none; }

.kbd-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(6, 22, 28, 0.48);
  backdrop-filter: blur(4px);
}
.kbd-modal.open { display: grid; }
.kbd-modal-card {
  width: min(440px, 92vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 18px 48px rgba(6, 22, 28, 0.32);
}
.kbd-modal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}
.kbd-hint { font-size: 11.5px; color: var(--ink-3); }
.kbd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  font-size: 12.5px;
}
.kbd-grid > div { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.kbd-grid kbd {
  display: inline-block;
  min-width: 22px;
  padding: 2px 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 5px;
  background: var(--well);
  border: 1px solid var(--line);
  color: var(--brand-ink);
}

/* ============================================================================
   SPLIT-GLASS BENTO ARCHITECTURE + 10 FESTIVE / SEASONAL / FUN SKINS + ADS
   ============================================================================ */

/* Default Split-Glass Mist skin tokens (explicitly overrides OS media dark mode
   so light/festive skins stay luminous and Aurora Night stays full dark mode). */
html[data-skin] {
  font-family: var(--font-ui);
  font-variation-settings: "GRAD" 0;
  color-scheme: light;
  --page: #eaf2f4;
  --paper: #ffffff;
  --well: #f2f7f9;
  --ink: #102a30;
  --ink-2: #2f515b;
  --ink-3: #5b7880;
  --brand-ink: #0c3b46;
  --line: #d4e3e8;
  --line-2: #e7f0f3;
  --water: #0c4b58;
  --water-2: #126172;
  --water-soft: #e3f2f5;
  --on-water: #ffffff;
  --focus: #1b8aa0;
  --link: #0c5e70;
  --bento-canvas: radial-gradient(ellipse 70% 60% at 10% 8%, #d4edf2 0%, transparent 58%),
    radial-gradient(ellipse 65% 55% at 92% 12%, #e0eff5 0%, transparent 55%),
    linear-gradient(160deg, #e7f1f4 0%, #dfecf0 100%);
  --bento-card-bg: rgba(255, 255, 255, 0.95);
  --bento-rail-bg: rgba(255, 255, 255, 0.94);
  --bento-drawer-bg: rgba(244, 249, 251, 0.95);
  --bento-card-border: rgba(12, 75, 88, 0.14);
  --bento-shadow: 0 10px 28px -18px rgba(10, 52, 62, 0.30);
  --bento-prism: linear-gradient(90deg, #e23b3b 0%, #f2702a 20%, #eaa915 40%, #2e9e62 60%, #2b78d0 80%, #7a4cc6 100%);
  --bento-rail-ink: #274852;
  --bento-rail-dim: #5e7c85;
  --bento-rail-hover: #ebf5f7;
  --bento-ad-bg: rgba(235, 246, 249, 0.78);
  --bento-ad-border: rgba(12, 75, 88, 0.16);
}

/* Skin 2: Rainbow Fiesta (Fun & Vibrant 6-band Hottub Aurora) */
html[data-skin="rainbow-prism"] {
  --water: #6d3cc2;
  --water-2: #582ba8;
  --water-soft: #f2ebff;
  --brand-ink: #2f1b5c;
  --focus: #7a4cc6;
  --link: #5b31a8;
  --line: #e4ddf4;
  --line-2: #f1ecfb;
  --well: #f8f5ff;
  --bento-canvas:
    radial-gradient(circle at 8% 12%, rgba(226, 59, 59, 0.24) 0%, transparent 36%),
    radial-gradient(circle at 36% 6%, rgba(234, 169, 21, 0.24) 0%, transparent 34%),
    radial-gradient(circle at 68% 12%, rgba(46, 158, 98, 0.22) 0%, transparent 36%),
    radial-gradient(circle at 92% 84%, rgba(122, 76, 198, 0.26) 0%, transparent 42%),
    radial-gradient(circle at 18% 88%, rgba(43, 120, 208, 0.22) 0%, transparent 40%),
    linear-gradient(135deg, #fff5f5 0%, #fdf8ee 34%, #eefaf5 68%, #f3efff 100%);
  --bento-card-bg: rgba(255, 255, 255, 0.94);
  --bento-rail-bg: rgba(255, 255, 255, 0.94);
  --bento-drawer-bg: rgba(250, 247, 255, 0.95);
  --bento-card-border: rgba(122, 76, 198, 0.20);
  --bento-rail-hover: #f3ecff;
  --bento-ad-bg: linear-gradient(135deg, rgba(255, 244, 240, 0.85), rgba(242, 235, 255, 0.85));
}

/* Skin 3: Holiday Hearth (Festive Evergreen Pine, Holly Crimson & Champagne Gold) */
html[data-skin="holiday-hearth"] {
  --water: #b91c1c;
  --water-2: #991b1b;
  --water-soft: #fef2f2;
  --brand-ink: #144231;
  --focus: #b91c1c;
  --link: #991b1b;
  --line: #e2dcd0;
  --line-2: #f1ece2;
  --well: #faf7f0;
  --paper: #fffefa;
  --bento-canvas:
    radial-gradient(circle at 12% 10%, rgba(234, 179, 8, 0.26) 0%, transparent 34%),
    radial-gradient(circle at 86% 14%, rgba(220, 38, 38, 0.24) 0%, transparent 38%),
    radial-gradient(circle at 50% 92%, rgba(234, 179, 8, 0.18) 0%, transparent 45%),
    repeating-radial-gradient(circle at 18px 18px, rgba(255, 236, 179, 0.12) 0 1.4px, transparent 1.4px 44px),
    linear-gradient(150deg, #0f3628 0%, #154634 48%, #0c2a1f 100%);
  --bento-card-bg: rgba(255, 253, 247, 0.96);
  --bento-rail-bg: rgba(255, 252, 245, 0.96);
  --bento-drawer-bg: rgba(250, 246, 236, 0.96);
  --bento-card-border: rgba(234, 179, 8, 0.34);
  --bento-shadow: 0 12px 32px -16px rgba(4, 22, 14, 0.55);
  --bento-prism: linear-gradient(90deg, #b91c1c 0%, #eab308 26%, #15803d 52%, #dc2626 78%, #f59e0b 100%);
  --bento-rail-ink: #183d2e;
  --bento-rail-dim: #547062;
  --bento-rail-hover: #f6efe0;
  --bento-ad-bg: rgba(254, 243, 199, 0.45);
  --bento-ad-border: rgba(217, 119, 6, 0.26);
}

/* Skin 4: Winter Solstice (Alpine Frost-Blue & Pure-CSS Snowflake Crystal Lattice) */
html[data-skin="winter-wonderland"] {
  --water: #1d4ed8;
  --water-2: #1e40af;
  --water-soft: #e0f2fe;
  --brand-ink: #0f3160;
  --focus: #2563eb;
  --link: #1d4ed8;
  --line: #cfe2f7;
  --line-2: #e7f1fc;
  --well: #f0f7ff;
  --bento-canvas:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.85) 0 2px, transparent 2.4px),
    radial-gradient(circle at 46px 42px, rgba(255, 255, 255, 0.65) 0 1.6px, transparent 2px),
    radial-gradient(ellipse 70% 55% at 12% 8%, rgba(56, 189, 248, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 88% 92%, rgba(99, 102, 241, 0.20) 0%, transparent 55%),
    linear-gradient(155deg, #d6ecff 0%, #e6f3ff 50%, #cde4fc 100%);
  --bento-card-bg: rgba(255, 255, 255, 0.92);
  --bento-rail-bg: rgba(248, 252, 255, 0.93);
  --bento-drawer-bg: rgba(240, 248, 255, 0.94);
  --bento-card-border: rgba(37, 99, 235, 0.18);
  --bento-prism: linear-gradient(90deg, #38bdf8 0%, #2563eb 35%, #818cf8 70%, #06b6d4 100%);
  --bento-rail-ink: #173a63;
  --bento-rail-hover: #e6f2ff;
  --bento-ad-bg: rgba(224, 242, 254, 0.68);
}

/* Skin 5: Sakura Blossom (Spring Cherry-Blossom Blush & Sage Leaf) */
html[data-skin="spring-blossom"] {
  --water: #be185d;
  --water-2: #9d174d;
  --water-soft: #fce7f3;
  --brand-ink: #6d1440;
  --focus: #db2777;
  --link: #be185d;
  --line: #f2d5e3;
  --line-2: #fae8f1;
  --well: #fef4f8;
  --bento-canvas:
    radial-gradient(circle at 12% 14%, rgba(244, 114, 182, 0.24) 0%, transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(52, 211, 153, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 52% 92%, rgba(251, 207, 232, 0.48) 0%, transparent 48%),
    linear-gradient(150deg, #fdecf4 0%, #fcf4f8 52%, #eef8f2 100%);
  --bento-card-bg: rgba(255, 255, 255, 0.94);
  --bento-rail-bg: rgba(255, 252, 254, 0.95);
  --bento-drawer-bg: rgba(254, 246, 250, 0.95);
  --bento-card-border: rgba(190, 24, 93, 0.16);
  --bento-prism: linear-gradient(90deg, #f472b6 0%, #db2777 32%, #fbbf24 66%, #2e9e62 100%);
  --bento-rail-ink: #5a1f3e;
  --bento-rail-hover: #fcebf3;
  --bento-ad-bg: rgba(252, 231, 243, 0.56);
}

/* Skin 6: Coastal Citrus (Summer Turquoise Lagoon & Mango Glow) */
html[data-skin="summer-tidepool"] {
  --water: #ea580c;
  --water-2: #c2410c;
  --water-soft: #ffedd5;
  --brand-ink: #0c4f61;
  --focus: #0891b2;
  --link: #0e7490;
  --line: #d4e8ec;
  --line-2: #e9f4f6;
  --well: #f2fbfc;
  --bento-canvas:
    radial-gradient(ellipse 68% 58% at 10% 8%, rgba(6, 182, 212, 0.28) 0%, transparent 56%),
    radial-gradient(ellipse 60% 55% at 90% 10%, rgba(251, 146, 60, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 96%, rgba(250, 204, 21, 0.22) 0%, transparent 50%),
    linear-gradient(155deg, #dff8fb 0%, #fff8eb 54%, #e2f7f9 100%);
  --bento-card-bg: rgba(255, 255, 255, 0.95);
  --bento-rail-bg: rgba(255, 255, 255, 0.95);
  --bento-drawer-bg: rgba(246, 252, 253, 0.95);
  --bento-card-border: rgba(8, 145, 178, 0.18);
  --bento-prism: linear-gradient(90deg, #06b6d4 0%, #22c55e 34%, #facc15 66%, #f97316 100%);
  --bento-rail-hover: #fff2e3;
  --bento-ad-bg: rgba(255, 237, 213, 0.52);
}

/* Skin 7: Autumn Maple (Spiced Cider, Amber & Burnt Sienna) */
html[data-skin="autumn-harvest"] {
  --water: #b45309;
  --water-2: #92400e;
  --water-soft: #fef3c7;
  --brand-ink: #5c280a;
  --focus: #c2410c;
  --link: #b45309;
  --line: #e9d7c3;
  --line-2: #f4e9dc;
  --well: #fcf6ee;
  --paper: #fffdf9;
  --bento-canvas:
    radial-gradient(circle at 12% 12%, rgba(234, 88, 12, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 88% 16%, rgba(217, 119, 6, 0.24) 0%, transparent 42%),
    radial-gradient(circle at 50% 92%, rgba(153, 27, 27, 0.16) 0%, transparent 48%),
    linear-gradient(155deg, #faecd9 0%, #f5e2cb 54%, #eed7be 100%);
  --bento-card-bg: rgba(255, 253, 248, 0.95);
  --bento-rail-bg: rgba(255, 251, 245, 0.95);
  --bento-drawer-bg: rgba(251, 244, 234, 0.95);
  --bento-card-border: rgba(180, 83, 9, 0.20);
  --bento-prism: linear-gradient(90deg, #991b1b 0%, #c2410c 34%, #d97706 68%, #eab308 100%);
  --bento-rail-ink: #522911;
  --bento-rail-dim: #7f573d;
  --bento-rail-hover: #faeeda;
  --bento-ad-bg: rgba(254, 243, 199, 0.56);
}

/* Skin 8: Celebration Confetti (Playful Geometric Confetti Dots + Berry/Teal) */
html[data-skin="confetti-party"] {
  --water: #db2777;
  --water-2: #be185d;
  --water-soft: #fce7f3;
  --brand-ink: #3b1952;
  --focus: #0891b2;
  --link: #db2777;
  --line: #ebd8ea;
  --line-2: #f7ebf6;
  --well: #fdf7fc;
  --bento-canvas:
    radial-gradient(circle at 22px 24px, rgba(226, 59, 59, 0.34) 0 3px, transparent 3.4px),
    radial-gradient(circle at 78px 18px, rgba(234, 179, 8, 0.42) 0 3px, transparent 3.4px),
    radial-gradient(circle at 52px 62px, rgba(16, 185, 129, 0.36) 0 2.8px, transparent 3.2px),
    radial-gradient(circle at 112px 54px, rgba(59, 130, 246, 0.34) 0 3px, transparent 3.4px),
    radial-gradient(circle at 36px 96px, rgba(168, 85, 247, 0.34) 0 2.6px, transparent 3px),
    linear-gradient(145deg, #fff7ed 0%, #fdf2f8 48%, #ecfeff 100%);
  --bento-canvas-size: 132px 116px, 132px 116px, 132px 116px, 132px 116px, 132px 116px, 100% 100%;
  --bento-card-bg: rgba(255, 255, 255, 0.94);
  --bento-rail-bg: rgba(255, 255, 255, 0.94);
  --bento-drawer-bg: rgba(254, 249, 253, 0.95);
  --bento-card-border: rgba(219, 39, 119, 0.19);
  --bento-rail-ink: #462052;
  --bento-rail-hover: #fcebf5;
  --bento-ad-bg: rgba(253, 242, 248, 0.72);
}

/* Skin 9: Northern Lights Midnight (Full Dark Mode + Aurora Borealis Glow) */
html[data-skin="aurora-night"] {
  font-variation-settings: "GRAD" -20;
  color-scheme: dark;
  --page: #07111a;
  --paper: #0e1c29;
  --well: #142738;
  --ink: #ecf6fa;
  --ink-2: #c5dbe6;
  --ink-3: #83a6b8;
  --brand-ink: #e8f8ff;
  --line: rgba(148, 210, 232, 0.16);
  --line-2: rgba(148, 210, 232, 0.10);
  --water: #10b981;
  --water-2: #059669;
  --water-soft: rgba(16, 185, 129, 0.18);
  --on-water: #031d15;
  --focus: #34d399;
  --link: #5eead4;
  --ok: #6ee7b7;
  --ok-soft: rgba(16, 185, 129, 0.18);
  --warm-soft: rgba(251, 191, 36, 0.16);
  --warm-ink: #fcd34d;
  --bento-canvas:
    radial-gradient(ellipse 75% 50% at 15% 6%, rgba(16, 185, 129, 0.28) 0%, transparent 56%),
    radial-gradient(ellipse 70% 50% at 82% 14%, rgba(139, 92, 246, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 60% 45% at 50% 95%, rgba(14, 165, 233, 0.22) 0%, transparent 52%),
    linear-gradient(160deg, #050d15 0%, #091826 52%, #07111d 100%);
  --bento-card-bg: rgba(14, 28, 41, 0.92);
  --bento-rail-bg: rgba(12, 25, 37, 0.94);
  --bento-drawer-bg: rgba(11, 22, 33, 0.94);
  --bento-card-border: rgba(94, 234, 212, 0.18);
  --bento-shadow: 0 14px 36px -14px rgba(0, 0, 0, 0.65);
  --bento-prism: linear-gradient(90deg, #10b981 0%, #06b6d4 35%, #6366f1 70%, #a855f7 100%);
  --bento-rail-ink: #d7ecf4;
  --bento-rail-dim: #7fa4b8;
  --bento-rail-hover: rgba(94, 234, 212, 0.12);
  --bento-ad-bg: rgba(20, 41, 58, 0.84);
  --bento-ad-border: rgba(94, 234, 212, 0.22);
}

/* Skin 10: Warm Paper Studio (Calm Editorial Linen Ivory) */
html[data-skin="zen-paper"] {
  --page: #f2efe8;
  --paper: #fffdf9;
  --well: #f6f3ec;
  --ink: #1f1d19;
  --ink-2: #444038;
  --ink-3: #787266;
  --brand-ink: #292524;
  --line: #e2dcd0;
  --line-2: #efeae0;
  --water: #36332e;
  --water-2: #1c1917;
  --water-soft: #ede9df;
  --on-water: #fffdf9;
  --focus: #57534e;
  --link: #44403c;
  --bento-canvas: linear-gradient(155deg, #f4f1ea 0%, #ebe6dc 100%);
  --bento-card-bg: rgba(255, 253, 249, 0.97);
  --bento-rail-bg: rgba(255, 253, 249, 0.97);
  --bento-drawer-bg: rgba(248, 245, 238, 0.97);
  --bento-card-border: rgba(68, 64, 60, 0.14);
  --bento-rail-ink: #36332e;
  --bento-rail-dim: #787266;
  --bento-rail-hover: #f2eee6;
  --bento-ad-bg: rgba(243, 239, 230, 0.85);
}

/* ── Split-Glass Bento Shell & Floating Card Grid ─────────────────────────── */
.shell.bento-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 10px;
  gap: 10px;
  background: var(--bento-canvas);
  background-size: var(--bento-canvas-size, cover);
}

.bento-bar {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--bento-card-bg);
  border: 1px solid var(--bento-card-border);
  box-shadow: var(--bento-shadow);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  z-index: 45;
}
.bento-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 2px;
}
.bento-brand:hover { text-decoration: none; opacity: 0.92; }
.bento-mark { width: 26px; height: 26px; display: block; flex-shrink: 0; }
.bento-brand .brand-name { font-size: 15px; font-weight: 700; color: var(--brand-ink); }
.bento-brand .brand-by { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }

.bento-omni-group {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  max-width: none;
}
.bento-omni {
  flex: 1 1 230px;
  min-width: 175px;
  max-width: 380px;
  border-radius: 999px;
  padding: 2px 8px 2px 11px;
  background: var(--well);
  border: 1px solid var(--line);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.bento-omni:focus-within {
  background: var(--paper);
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--water-soft);
}
.bento-omni-ico { color: var(--ink-3); flex-shrink: 0; }
.bento-omni input[type="search"] {
  font-size: 12.5px;
  padding: 5px 6px;
  color: var(--ink);
}
.omni-kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  flex-shrink: 0;
}
.bento-web-wrap {
  position: relative;
  flex: 1.18 1 255px;
  min-width: 205px;
  max-width: 430px;
}
.bento-web-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 2px 4px 2px 9px;
  border-radius: 999px;
  background: var(--well);
  border: 1px solid var(--line);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.bento-web-search:focus-within {
  background: var(--paper);
  border-color: var(--focus);
  box-shadow: 0 0 0 2.5px var(--water-soft);
}
.bento-web-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 5px 2px;
  font-size: 12.4px;
  color: var(--ink);
  box-shadow: none;
}
.bento-web-search input[type="search"]::placeholder { color: var(--ink-3); }
.bento-web-search input[type="search"]:focus { border: none; box-shadow: none; }
.bento-web-go {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-3);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease, transform 80ms ease;
}
.bento-web-search:focus-within .bento-web-go,
.bento-web-go:hover {
  background: var(--water);
  color: var(--on-water);
}
.bento-web-go:active { transform: scale(0.94); }

/* ── Live Search by Hottub Autocomplete Dropdown (WASM) ───────────────────── */
.ht-suggest-pop {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  min-width: 300px;
  max-height: min(62vh, 390px);
  overflow-y: auto;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 48px -14px rgba(6, 22, 28, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  z-index: 90;
  padding: 0 0 5px;
  animation: ht-pop-in 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ht-suggest-pop[hidden] { display: none; }
@keyframes ht-pop-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ht-suggest-edge {
  height: 2.5px;
  width: 100%;
  background: var(--bento-prism, linear-gradient(90deg, #e23b3b, #f2702a, #eaa915, #2e9e62, #2b78d0, #7a4cc6));
  margin-bottom: 4px;
}
.ht-suggest-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: calc(100% - 10px);
  margin: 1px 5px;
  padding: 7px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12.6px;
  line-height: 1.32;
  text-align: left;
  cursor: pointer;
  transition: background 70ms ease, color 70ms ease;
}
.ht-suggest-item:hover,
.ht-suggest-item.is-active {
  background: var(--water-soft);
  color: var(--brand-ink);
}
.ht-suggest-item.is-instant {
  align-items: flex-start;
  background: var(--well);
  border: 1px solid var(--line-2);
  margin: 3px 6px 5px;
  width: calc(100% - 12px);
  padding: 8px 10px;
}
.ht-suggest-item.is-instant:hover,
.ht-suggest-item.is-instant.is-active {
  background: var(--water-soft);
  border-color: var(--focus);
}
.ht-suggest-ico {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: var(--ink-3);
  font-size: 11px;
}
.ht-suggest-item.is-instant .ht-suggest-ico {
  background: var(--water);
  color: var(--on-water);
  margin-top: 1px;
}
.ht-suggest-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ht-suggest-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}
.ht-suggest-match { font-weight: 450; opacity: 0.78; }
.ht-suggest-tail { font-weight: 680; }
.ht-suggest-eyebrow {
  font-size: 10.3px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.ht-suggest-preview {
  font-size: 13px;
  font-weight: 680;
  color: var(--brand-ink);
  white-space: normal;
  line-height: 1.3;
}
.ht-suggest-sub {
  flex: none;
  font-size: 10.6px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--well);
  border: 1px solid var(--line-2);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ht-suggest-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 6px 12px 3px;
  border-top: 1px solid var(--line-2);
  font-size: 10.6px;
  color: var(--ink-3);
}
.ht-suggest-foot strong { color: var(--brand-ink); font-weight: 650; }
.ht-suggest-priv {
  font-size: 10px;
  opacity: 0.85;
  white-space: nowrap;
}

.bento-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.bento-suite-pills {
  display: flex;
  align-items: center;
  gap: 5px;
}
.bento-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 31px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 80ms ease, border-color 80ms ease, transform 60ms ease;
}
.bento-pill:hover {
  background: var(--well);
  border-color: var(--focus);
  text-decoration: none;
}
.bento-pill:active { transform: scale(0.975); }
.bento-pill.strip-btn { width: auto; height: 31px; border-radius: 999px; display: inline-flex; font-size: 12px; }
.bento-pill.active {
  background: var(--water);
  border-color: var(--water);
  color: var(--on-water);
}
.bento-pill .strip-dot { top: -2px; right: -2px; }
.bento-pill .strip-badge { top: -5px; right: -4px; }

/* ── Quick 10-Skin Switcher Popover & Visual Swatch Grid ──────────────────── */
.skin-menu { position: relative; }
.skin-menu > summary { list-style: none; }
.skin-menu > summary::-webkit-details-marker { display: none; }
.bento-skin-pill {
  background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--bento-prism) border-box;
  border: 1.5px solid transparent;
  padding: 0 10px;
}
.skin-pill-caret { font-size: 10px; opacity: 0.7; }
.skin-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 350px;
  max-height: min(74vh, 520px);
  overflow-y: auto;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -14px rgba(6, 22, 28, 0.35);
  z-index: 65;
}
.skin-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--brand-ink);
}
.skin-popover-head a { font-size: 11.5px; font-weight: 600; color: var(--link); }

.skin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.skin-grid-compact { gap: 7px; }
.skin-tile-form { margin: 0; }
.skin-tile {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--well);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform 60ms ease, border-color 90ms ease, box-shadow 90ms ease;
}
.skin-tile:hover {
  border-color: var(--focus);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.28);
}
.skin-tile:active { transform: scale(0.98); }
.skin-tile.is-active {
  border-color: var(--water);
  background: var(--water-soft);
  box-shadow: 0 0 0 2px var(--water-soft);
}
.skin-swatch {
  position: relative;
  display: block;
  width: 100%;
  height: 30px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  overflow: hidden;
}
.skin-season-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.skin-tile-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.skin-tile-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.skin-tile-sub {
  font-size: 10.2px;
  line-height: 1.3;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 4-Card Bento Workspace Grid ──────────────────────────────────────────── */
.bento-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 196px 282px minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}
.shell.bento-shell.shell-dock-open .bento-grid {
  grid-template-columns: 190px 262px minmax(0, 1fr) 326px;
}

.bento-grid > .rail,
.bento-grid > .thread-pane,
.bento-grid > .reader-pane,
.bento-grid > .suite-drawer {
  position: static;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  border-radius: 14px;
  border: 1px solid var(--bento-card-border);
  box-shadow: var(--bento-shadow);
  overflow: hidden;
  contain: layout style;
}

/* Bento Card 1: Left Navigation Rail (Theme-Adaptive Frosted Card) */
.bento-grid > .rail {
  background: var(--bento-rail-bg);
  color: var(--bento-rail-ink);
  padding: 11px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.bento-grid > .rail .btn-rail-compose {
  background: var(--water);
  color: var(--on-water);
  border-color: transparent;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.35);
}
.bento-grid > .rail .btn-rail-compose:hover {
  background: var(--water-2);
  color: var(--on-water);
}
.bento-grid > .rail .rail-section-label {
  color: var(--bento-rail-dim);
  padding: 4px 7px 0;
}
.bento-grid > .rail .rail-divider { background: var(--line-2); margin: 2px 4px; }
.bento-grid > .rail .lane-link {
  color: var(--bento-rail-ink);
  border-radius: 9px;
  padding: 6.5px 9px;
  font-weight: 550;
}
.bento-grid > .rail .lane-link-sec { color: var(--bento-rail-dim); padding: 5px 9px; }
.bento-grid > .rail .lane-link:hover {
  background: var(--bento-rail-hover);
  color: var(--brand-ink);
}
.bento-grid > .rail .lane-link.active {
  background: var(--water);
  color: var(--on-water);
  font-weight: 700;
}
.bento-grid > .rail .lane-count {
  background: var(--well);
  color: var(--brand-ink);
  border: 1px solid var(--line-2);
}
.bento-grid > .rail .lane-count-muted { color: var(--bento-rail-dim); }
.bento-grid > .rail .lane-link.active .lane-count {
  background: #ffb84d;
  color: #1f1402;
  border-color: transparent;
}
.bento-grid > .rail .rail-section-title { color: var(--bento-rail-dim); }
.bento-grid > .rail .rail-section-title a { color: var(--link); }
.bento-grid > .rail .next-agenda-card {
  background: var(--well);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--water);
}
.bento-grid > .rail .agenda-title { color: var(--brand-ink); }
.bento-grid > .rail .agenda-when { color: var(--ink-3); }
.bento-grid > .rail .agenda-more { color: var(--link); }
.bento-grid > .rail .agenda-badge { background: var(--water-soft); color: var(--brand-ink); }
.bento-grid > .rail .next-agenda-empty {
  background: var(--well);
  border-color: var(--line);
  color: var(--ink-2);
}
.bento-grid > .rail .next-agenda-empty:hover { background: var(--water-soft); color: var(--brand-ink); }
.bento-grid > .rail .rail-addr-pill {
  background: var(--well);
  border-color: var(--line);
}
.bento-grid > .rail .rail-addr-pill:hover { background: var(--water-soft); border-color: var(--focus); }
.bento-grid > .rail .rail-addr-text { color: var(--brand-ink); font-weight: 600; }
.bento-grid > .rail .rail-storage { border-top-color: var(--line-2); padding-top: 7px; }
.bento-grid > .rail .storage-bar { background: var(--line-2); }
.bento-grid > .rail .address-meta { color: var(--ink-3); }
.bento-grid > .rail .ses-status { color: var(--ok); }
.bento-grid > .rail .rail-suite-row { color: var(--ink-3); }
.bento-grid > .rail .rail-suite-row a { color: var(--ink-2); }
.bento-grid > .rail .rail-suite-row a:hover { color: var(--link); }
.bento-grid > .rail .rail-logout-btn { color: var(--ink-3); }
.bento-grid > .rail .rail-logout-btn:hover { background: var(--bento-rail-hover); color: var(--brand-ink); }

/* Bento Card 2: Thread Stack */
.bento-grid > .thread-pane {
  background: var(--bento-card-bg);
  display: flex;
  flex-direction: column;
}
.bento-grid > .thread-pane .thread-pane-head {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-2);
}

/* Bento Card 3: Conversation Reader + Prism Edge */
.bento-grid > .reader-pane {
  background: var(--bento-card-bg);
  display: flex;
  flex-direction: column;
}
.bento-prism-edge {
  height: 3px;
  width: 100%;
  flex: 0 0 auto;
  background: var(--bento-prism);
}
.bento-grid > .reader-pane .reader-scroll {
  background: transparent;
}

/* Bento Card 4: Scrollable Suite Inspector */
.bento-grid > .suite-drawer {
  background: var(--bento-drawer-bg);
  display: flex;
  flex-direction: column;
}
.bento-grid > .suite-drawer .drawer-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line-2);
}
.bento-grid > .suite-drawer .drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 11px 11px 24px;
}

/* ── Optimal Privacy-First Partner Spaces (4 Native Bento Slots, cosmetic-safe classes) ── */
.bento-partner {
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--bento-ad-bg);
  border: 1px solid var(--bento-ad-border);
  transition: border-color 110ms ease, transform 90ms ease;
}
.bento-partner:hover { border-color: var(--focus); }
.partner-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.partner-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 5.5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--water-soft);
  color: var(--brand-ink);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.partner-sponsor { font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.partner-privacy { color: var(--ink-3); font-size: 9.8px; margin-left: auto; flex-shrink: 0; }
.partner-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.partner-link:hover { text-decoration: none; }
.partner-headline {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-ink);
}
.partner-body {
  display: block;
  font-size: 11px;
  line-height: 1.38;
  color: var(--ink-2);
}
.partner-cta {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--link);
}

/* Slot A: Left Rail Compact Spotlight */
.partner-rail { padding: 8px 9px; }

/* Slot B: Thread List Native Docked Footer */
.partner-thread {
  border-radius: 0 0 13px 13px;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: 1px solid var(--line);
  padding: 9px 11px;
}

/* Slot C: Below-Conversation Wide Horizontal Banner */
.partner-reader {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.partner-reader-copy { min-width: 0; flex: 1 1 auto; }
.partner-reader .partner-privacy { margin-left: 0; }
.partner-reader-cta { flex-shrink: 0; white-space: nowrap; }

/* Slot D: Scrollable Right Inspector Native Card */
.partner-drawer {
  background: var(--paper);
  border: 1px solid var(--bento-ad-border);
}

/* ── Instant Reloads & Granular In-Place Pane Glides ──────────────────────── */
/* Intentionally omit `@view-transition { navigation: auto; }` so full browser
   reloads paint immediately on the first frame without a 170ms root cross-fade. */
@keyframes ht-pane-glide {
  from { opacity: 0.45; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ht-drawer-slide {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.pane-enter { animation: ht-pane-glide 150ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.drawer-enter { animation: ht-drawer-slide 180ms cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Smooth theme/skin cross-fade (scoped strictly to live skin switches so initial
   page reloads never pay top-level compositor transition overhead). */
html.skin-switching .shell.bento-shell,
html.skin-switching .bento-bar,
html.skin-switching .bento-grid > .rail,
html.skin-switching .bento-grid > .thread-pane,
html.skin-switching .bento-grid > .reader-pane,
html.skin-switching .bento-grid > .suite-drawer {
  transition: background-color 180ms ease, border-color 180ms ease, color 160ms ease, box-shadow 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .pane-enter, .drawer-enter { animation: none; }
}

/* ── Full Drag-and-Drop Email Triage Visual Feedback ──────────────────────── */
.thread-row[draggable="true"] { cursor: grab; position: relative; }
.thread-row[draggable="true"]:active { cursor: grabbing; }
.drag-grip {
  display: inline-grid;
  place-items: center;
  width: 11px;
  height: 28px;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: -2px;
  color: var(--ink-3);
  opacity: 0;
  flex-shrink: 0;
  user-select: none;
  transition: opacity 100ms ease;
}
.thread-row:hover .drag-grip,
.thread-row.selected .drag-grip { opacity: 0.55; }
.thread-row.is-dragging {
  opacity: 0.48;
  transform: scale(0.985);
  background: var(--water-soft);
  border-left-color: var(--water);
  box-shadow: inset 0 0 0 1.5px var(--focus);
}
.thread-row.is-moving-out {
  opacity: 0;
  transform: translateX(-18px) scale(0.97);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
  overflow: hidden;
  transition: opacity 180ms ease, transform 180ms ease, max-height 200ms ease, padding 200ms ease;
}
.rail.drag-active .lane-link[data-drop-lane] {
  outline: 1.5px dashed var(--line);
  outline-offset: -1px;
}
.bento-suite-pills.drag-active .bento-pill[data-drop-dock] {
  outline: 1.5px dashed var(--focus);
  outline-offset: 1px;
}
.lane-link.drop-over,
.bento-grid > .rail .lane-link.drop-over {
  background: var(--water);
  color: var(--on-water);
  outline: 2px solid var(--focus);
  outline-offset: 0;
  transform: scale(1.025);
  box-shadow: 0 6px 18px -8px rgba(12, 75, 88, 0.55);
}
.bento-pill.drop-over {
  background: var(--water);
  color: var(--on-water);
  border-color: var(--water);
  transform: scale(1.06);
  box-shadow: 0 6px 18px -6px rgba(12, 75, 88, 0.55);
}
@keyframes ht-drop-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.drop-pulse { animation: ht-drop-pulse 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ── Live Organize by Hottub + Suite Sync Styling ─────────────────────────── */
.strip-btn-org { background: rgba(122, 76, 198, 0.10); border-color: rgba(122, 76, 198, 0.34); color: var(--brand-ink); }
.status-org { background: rgba(122, 76, 198, 0.12); color: #5b31a8; border-color: rgba(122, 76, 198, 0.32); }
.micro-org { background: rgba(122, 76, 198, 0.14); color: #5b31a8; }
html[data-skin="aurora-night"] .status-org,
html[data-skin="aurora-night"] .micro-org { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; }
.suite-live-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.org-task-list { display: flex; flex-direction: column; gap: 7px; }
.org-task-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--well);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--water);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 110ms ease, background 110ms ease;
}
.org-task-row:hover {
  background: var(--water-soft);
  border-color: var(--focus);
  text-decoration: none;
}
.org-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12.2px;
}
.org-task-top strong {
  color: var(--brand-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-task-sub { font-size: 11px; color: var(--ink-3); }

/* Dark skin form controls polish */
html[data-skin="aurora-night"] input[type="text"],
html[data-skin="aurora-night"] input[type="email"],
html[data-skin="aurora-night"] input[type="password"],
html[data-skin="aurora-night"] input[type="date"],
html[data-skin="aurora-night"] input[type="time"],
html[data-skin="aurora-night"] input[type="search"],
html[data-skin="aurora-night"] select,
html[data-skin="aurora-night"] textarea {
  background: #102232;
  color: #ecf6fa;
  border-color: rgba(148, 210, 232, 0.22);
}
html[data-skin="aurora-night"] .btn {
  background: #14283a;
  color: #e4f2f8;
  border-color: rgba(148, 210, 232, 0.22);
}
html[data-skin="aurora-night"] .btn:hover { background: #1b364d; }
html[data-skin="aurora-night"] .btn-primary {
  background: var(--water);
  color: var(--on-water);
  border-color: transparent;
}
html[data-skin="aurora-night"] .status-hottub {
  background: linear-gradient(rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.18)) padding-box,
    var(--bento-prism) border-box;
  color: #6ee7b7;
}
html[data-skin="aurora-night"] .reader-card,
html[data-skin="aurora-night"] .dock-card,
html[data-skin="aurora-night"] .reply-dock,
html[data-skin="aurora-night"] .reader-bar,
html[data-skin="aurora-night"] .action-popover,
html[data-skin="aurora-night"] .skin-popover,
html[data-skin="aurora-night"] .ht-suggest-pop {
  background: #0f2030;
  color: var(--ink);
}
html[data-skin="aurora-night"] .msg-collapsed { background: #14293b; }
html[data-skin="aurora-night"] .msg-expanded-body { background: #0e1d2b; }

/* Responsive Bento breakpoints */
@media (max-width: 1320px) {
  .bento-grid { grid-template-columns: 186px 258px minmax(0, 1fr); }
  .shell.bento-shell.shell-dock-open .bento-grid { grid-template-columns: 182px 244px minmax(0, 1fr) 306px; }
  .bento-omni { min-width: 155px; max-width: 280px; }
  .bento-web-wrap { min-width: 175px; max-width: 310px; }
}
@media (max-width: 1080px) {
  .shell.bento-shell,
  .shell.bento-shell.shell-dock-open {
    height: auto;
    overflow: visible;
  }
  .bento-bar { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 8px 12px; }
  .bento-omni-group { order: 3; flex-basis: 100%; width: 100%; }
  .bento-omni, .bento-web-wrap { max-width: none; }
  .bento-grid,
  .shell.bento-shell.shell-dock-open .bento-grid {
    grid-template-columns: 182px 250px minmax(0, 1fr);
    overflow: visible;
  }
  .bento-grid > .suite-drawer { grid-column: 1 / -1; height: auto; max-height: none; }
}
@media (max-width: 820px) {
  .bento-bar { height: auto; flex-wrap: wrap; padding: 8px 10px; }
  .bento-omni-group { order: 3; width: 100%; max-width: none; }
  .bento-grid,
  .shell.bento-shell.shell-dock-open .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid > .rail,
  .bento-grid > .thread-pane,
  .bento-grid > .reader-pane,
  .bento-grid > .suite-drawer {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .partner-reader { flex-direction: column; align-items: flex-start; }
}
