/* 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 { font-family: inherit; }

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(1120px, 100%);
  margin: 0 auto;
  padding: 20px 24px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

/* Embedded hottub.tech Search Bar (zero-JS GET form, rainbow "H" + Search in Water & Sun palette) */
.ht-search-bar {
  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: 4px;
  background: var(--rail-glass);
  border: 1px solid var(--rail-line);
  border-radius: 999px;
  padding: 3px 4px 3px 11px;
  margin-bottom: 6px;
  transition: border-color 0.15s 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 4px;
  font-size: 12px;
  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(1120px, 100%);
  margin: auto;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.public-main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 420px);
  gap: 44px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--water-soft);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--water);
}

.public-title {
  margin: 0 0 12px;
  font-size: clamp(27px, 3.25vw, 38px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--brand-ink);
}
.public-title span {
  display: block;
  color: var(--ink);
  font-weight: 550;
}

.public-lede {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 54ch;
}

/* 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);
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-2);
  background: var(--well);
}
.preview-addr {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 650;
  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: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
  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: 13.5px; color: var(--ink); }
.preview-time { font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.preview-subj { font-size: 13px; font-weight: 550; color: var(--ink-2); margin: 2px 0 6px; }
.preview-axis {
  padding: 10px 16px 12px;
  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: 6px;
}
.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: 18px;
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pillar-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pillar h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-ink);
}
.pillar p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* Auth / TOTP / Claim Cards */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 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: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.auth-card-inner { padding: 28px 28px 24px; }
.auth-card h1,
.auth-card h2 {
  margin: 14px 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand-ink);
}
.auth-sub {
  margin: 0 0 20px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.55;
}

.auth-foot {
  margin-top: 20px;
  padding-top: 16px;
  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-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: 18px 0 0;
  padding-top: 15px;
  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(1120px, 100%);
  margin: 0 auto;
  padding: 12px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  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 (Tidepool Compact — 196px Rail + 312px List + 888px Reader + 44px Suite Strip) ─ */
.shell {
  display: grid;
  grid-template-columns: 196px 312px minmax(0, 1fr) 44px;
  min-height: 100vh;
}
.shell.shell-dock-open {
  grid-template-columns: 196px 312px minmax(0, 1fr) 324px 44px;
}

.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;
}
.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.14s var(--ease);
}
.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.08em;
  color: var(--rail-dim);
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rail-section-title a { color: #8dd3de; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 11px; }

.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;
  gap: 6px;
  font-size: 11.5px;
  color: var(--rail-dim);
  padding: 2px 2px 0;
}
.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;
}
.thread-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-2);
  border-left: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.12s var(--ease);
}
.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); }

/* ── Zone 3: Generous Calm Reading Sheet ──────────────────────────────────── */
.reader-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}
.reader-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 52px;
  padding: 0 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.reader-bar-left,
.reader-bar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
}
.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;
}
.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: 4px 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); cursor: default; }
.status-warn { background: var(--warm-soft); color: var(--warm-ink); cursor: default; }
.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 {
  padding: 18px 26px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}
.reader-scroll-empty {
  margin: auto;
  max-width: 560px;
}

/* Slim Inline Calendar Ribbon */
.detect-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 14px;
  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: 20px 26px 24px;
  box-shadow: var(--shadow-1);
}
.reader-card-head {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.reader-subject {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.24;
  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: 12px;
}
.msg-collapsed {
  background: var(--well);
  border: 1px solid var(--line-2);
  border-radius: 9px;
}
.msg-collapsed > summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 12px;
  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: 12px 14px 14px;
  border-top: 1px solid var(--line-2);
  background: var(--paper);
  border-radius: 0 0 9px 9px;
}
.msg-sub-meta { font-size: 11.5px; color: var(--ink-3); margin-bottom: 10px; }

.msg-active-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 14px;
  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: 15px;
  line-height: 1.64;
  max-width: 68ch;
  color: var(--ink);
}
.msg-html-frame {
  width: 100%;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: #ffffff;
}
.att-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.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-card, .compose-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 16px 20px;
  box-shadow: var(--shadow-1);
}
.compose-card { max-width: 780px; width: 100%; margin: 0 auto; padding: 20px 24px; }
.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;
  position: sticky;
  top: 0;
}
.drawer-head {
  height: 52px;
  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: 14px;
  font-weight: 600;
  color: var(--brand-ink);
}
.drawer-scroll {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.dock-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.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-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-ink);
}
.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: 184px 284px minmax(0, 1fr) 44px; }
  .shell.shell-dock-open { grid-template-columns: 184px 268px minmax(0, 1fr) 300px 44px; }
}
@media (max-width: 1080px) {
  .shell,
  .shell.shell-dock-open { grid-template-columns: 180px 264px minmax(0, 1fr) 44px; }
  .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: 24px; }
  .pillar-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell,
  .shell.shell-dock-open { grid-template-columns: 1fr; }
  .rail, .thread-pane, .suite-strip, .suite-drawer {
    position: static;
    height: auto;
    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; }
