:root {
  --ink: #102b61;
  --muted: #697386;
  --line: #dde2e9;
  --paper: rgba(255, 255, 255, 0.88);
  --page: #f2f6fc;
  --accent: #2464d8;
  --accent-soft: #eaf2ff;
  --green: #27ae78;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.09);
  --shell-gutter: clamp(16px, 4vw, 40px);
  --panel-gap: clamp(12px, 1.6vw, 18px);
  --card-radius: clamp(18px, 2.2vw, 24px);
}

body[data-theme="emerald"] {
  --ink: #073b35;
  --muted: #64746f;
  --line: #d8e9e3;
  --paper: rgba(250, 255, 253, 0.9);
  --page: #f2fbf7;
  --accent: #0f9f6e;
  --accent-soft: #e5f8ef;
  --green: #0f9f6e;
}

body[data-theme="purple"] {
  --ink: #30145f;
  --muted: #746987;
  --line: #e4dcf4;
  --paper: rgba(253, 251, 255, 0.9);
  --page: #f8f5ff;
  --accent: #7c3aed;
  --accent-soft: #f0e8ff;
  --green: #22a06b;
}

body[data-theme="dark"] {
  --ink: #eaf2ff;
  --muted: #aab8d0;
  --line: rgba(255,255,255,.14);
  --paper: rgba(15, 23, 42, 0.86);
  --page: #0f172a;
  --accent: #d7aa45;
  --accent-soft: rgba(215,170,69,.16);
  --green: #40c78f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body.lightbox-open { overflow: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .16;
  pointer-events: none;
}

.ambient-one { top: -220px; right: -100px; background: #4f88ef; }
.ambient-two { bottom: -300px; left: -170px; background: #74b9ff; }
body[data-theme="emerald"] .ambient-one { background: #5ee0a4; }
body[data-theme="emerald"] .ambient-two { background: #9ee7cb; }
body[data-theme="purple"] .ambient-one { background: #9b7cff; }
body[data-theme="purple"] .ambient-two { background: #d3b5ff; }
body[data-theme="dark"] .ambient-one { background: #d7aa45; opacity: .09; }
body[data-theme="dark"] .ambient-two { background: #2563eb; opacity: .08; }

.app-shell {
  position: relative;
  width: min(1180px, calc(100% - var(--shell-gutter)));
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(16px, 2.2vw, 26px) 0 calc(24px + env(safe-area-inset-bottom));
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  padding: 24px;
  background: rgba(242, 246, 252, .82);
  backdrop-filter: blur(20px);
  place-items: center;
}

.login-screen.hidden { display: none; }

.login-card {
  width: min(420px, 100%);
  margin: 0;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

.login-logo { width: 180px; height: auto; }
.login-card h1 { margin: 18px 0 10px; font: 600 34px/1 Georgia, serif; letter-spacing: -.05em; }
.login-card p { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.login-card label { display: block; margin-bottom: 20px; color: #3d4656; font-size: 11px; font-weight: 700; letter-spacing: .04em; }

.topbar, .summary-strip, .workspace, footer, .inbox-header, .section-heading, .composer-title-row,
.brand, .service-state, .stats, .inbox-actions, .connection-banner {
  display: flex;
  align-items: center;
}

.topbar { gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.brand { min-width: 0; color: inherit; gap: 9px; text-decoration: none; }
.brand-icon { width: clamp(116px, 13vw, 142px); height: auto; display: block; flex: 0 0 auto; }
.brand-wordmark { color: #d7aa45; font-size: 23px; font-weight: 900; letter-spacing: -.06em; }
.brand-divider { width: 1px; height: 29px; margin: 0 5px; background: #cbd6e7; }
.product-name strong, .product-name small { display: block; }
.product-name strong { color: #203657; font-size: 13px; letter-spacing: -.02em; }
.product-name small { margin-top: 3px; color: var(--muted); font-size: 7px; letter-spacing: .16em; }

.service-state {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.header-notify-button {
  display: none;
  height: 28px;
  padding: 0 10px;
  color: #fff;
  border-radius: 999px;
  background: var(--accent);
  font-size: 10px;
  font-weight: 700;
}
.header-notify-button.enabled { background: var(--green); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #aab1bd; }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 5px rgba(39, 174, 120, .1); }

.summary-strip {
  justify-content: center;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.05);
  backdrop-filter: blur(18px);
}

.eyebrow, .section-heading p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}

h1 { margin: 0; font: 500 clamp(42px, 6vw, 72px)/.98 Georgia, "Songti SC", serif; letter-spacing: -.045em; }
h1 em { color: var(--accent); font-weight: inherit; }
.hero-copy { max-width: 520px; margin: 22px 0 0; color: var(--muted); line-height: 1.7; }
.winit-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.winit-tags span {
  padding: 7px 11px;
  color: #31598e;
  border: 1px solid #d5e2f5;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}

.stats { width: 100%; justify-content: space-between; gap: clamp(8px, 2vw, 26px); padding: 0; }
.stats div { min-width: 0; flex: 1 1 0; text-align: center; }
.stats strong, .stats span { display: block; }
.stats strong { font: 500 clamp(21px, 2.5vw, 28px)/1 Georgia, serif; }
.stats span { margin-top: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }

.workspace { align-items: stretch; gap: var(--panel-gap); margin-top: clamp(12px, 2vw, 16px); }
.control-column { display: flex; min-width: 330px; max-width: 460px; flex: 0 0 clamp(330px, 39%, 460px); flex-direction: column; gap: var(--panel-gap); }
.mobile-quick-actions { display: none; }
.card { border: 1px solid rgba(255,255,255,.9); background: var(--paper); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.composer { width: 100%; padding: clamp(24px, 2.5vw, 30px); border-radius: var(--card-radius); }
.composer-title-row { align-items: flex-start; justify-content: space-between; gap: 14px; }
.composer-close, .mobile-compose-button, .composer-backdrop { display: none; }
.inbox { display: flex; min-width: 0; min-height: clamp(540px, calc(100svh - 120px), 720px); flex: 1 1 0; border-radius: var(--card-radius); flex-direction: column; overflow: hidden; }

.section-heading { align-items: flex-start; gap: 14px; }
.section-heading p { margin-bottom: 5px; color: var(--muted); }
.section-heading h2 { margin: 0; font: 500 25px/1.2 Georgia, "Songti SC", serif; }
.step-number { padding-top: 2px; color: var(--accent); font: italic 15px Georgia, serif; }

form { margin-top: 34px; }
form > label { display: block; margin: 0 0 21px; }
form > label { color: #3d4656; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.field-label { display: block; color: #3d4656; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.field-label small { color: #9aa1ad; font-size: 9px; font-weight: 500; }
input, textarea, select, button { min-width: 0; font: inherit; }
select option { color: #102033; background: #fff; }

input, textarea, form select {
  width: 100%;
  margin-top: 9px;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: rgba(255,255,255,.8);
  font-size: 12px;
  transition: border .2s, box-shadow .2s;
}

body[data-theme="dark"] input,
body[data-theme="dark"] textarea,
body[data-theme="dark"] form select,
body[data-theme="dark"] .topic-picker,
body[data-theme="dark"] .control-picker,
body[data-theme="dark"] .icon-button,
body[data-theme="dark"] .text-button,
body[data-theme="dark"] .summary-strip,
body[data-theme="dark"] .connection-banner {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(15, 23, 42, .72);
}

form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
input:focus, textarea:focus, form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(36, 100, 216, .1); }
textarea { min-height: 125px; line-height: 1.6; resize: vertical; }

.input-prefix { position: relative; }
.input-prefix span { position: absolute; z-index: 1; top: 21px; left: 14px; color: var(--accent); font-weight: 800; }
.input-prefix input { padding-left: 30px; }
.character-count { display: block; margin-top: 6px; color: #9aa1ad; font-size: 9px; text-align: right; }
.image-field { margin: 0 0 21px; }
.image-picker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 9px;
  padding: 12px;
  color: #52627a;
  border: 1px dashed #b8c8df;
  border-radius: 11px;
  background: rgba(243,247,253,.72);
  cursor: pointer;
}
.image-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.image-picker-icon { display: grid; width: 34px; height: 34px; color: var(--accent); border-radius: 9px; background: var(--accent-soft); font-size: 19px; place-items: center; }
.image-picker strong, .image-picker small { display: block; }
.image-picker strong { color: #304563; font-size: 10px; }
.image-picker small { margin-top: 3px; color: #8995a7; font-size: 8px; }
.image-preview { position: relative; margin-top: 10px; overflow: hidden; border-radius: 12px; background: #e8eef7; }
.image-preview img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.image-preview button { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; color: white; border-radius: 50%; background: rgba(15,31,55,.75); }
.image-url-details { margin-top: 8px; }
.image-url-details summary { color: #718096; font-size: 9px; cursor: pointer; }
.image-url-details input { margin-top: 8px; font-size: 10px; }

button { border: 0; cursor: pointer; }
.primary-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  color: white;
  border-radius: 10px;
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s, background .2s;
}
.primary-button:hover { background: var(--accent); transform: translateY(-2px); }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.arrow { font-size: 18px; font-weight: 400; }

.inbox-header { justify-content: space-between; gap: 20px; padding: clamp(22px, 2.6vw, 30px); border-bottom: 1px solid var(--line); }
.inbox-actions { min-width: 0; gap: 8px; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.topic-picker, .control-picker { display: flex; min-width: 0; align-items: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.topic-picker span, .control-picker span { color: var(--accent); font-weight: 800; }
.topic-picker select, .control-picker select { max-width: 115px; min-width: 0; padding: 9px 5px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; font-weight: 700; }
body[data-theme="dark"] .topic-picker select,
body[data-theme="dark"] .control-picker select { color: var(--ink); }
.opt-out-picker.active { border-color: var(--accent); background: var(--accent-soft); }
.theme-picker select { max-width: 72px; }
.hidden-action { display: none !important; }
.icon-button, .text-button { height: 36px; border-radius: 9px; background: white; border: 1px solid var(--line); }
.icon-button { width: 36px; color: var(--muted); }
.icon-button.enabled { color: var(--green); border-color: var(--green); }
.text-button { padding: 0 12px; color: var(--muted); font-size: 10px; }

.connection-banner {
  gap: 9px;
  margin: 18px 30px 0;
  padding: 11px 14px;
  color: #586273;
  border-radius: 9px;
  background: #f3f5f7;
  font-size: 10px;
}
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(39,174,120,.1); }

.message-list { display: flex; min-height: 0; padding: 12px clamp(18px, 2.6vw, 30px) 30px; flex: 1; flex-direction: column; overflow-y: auto; }
.empty-state { margin: auto; max-width: 260px; color: var(--muted); text-align: center; }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 17px; padding: 13px; color: var(--accent); border: 1px solid #cbdcff; border-radius: 50%; background: var(--accent-soft); font-size: 21px; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); font: 500 18px Georgia, serif; }
.empty-state p { margin: 0; font-size: 11px; line-height: 1.7; }

.message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 13px;
  padding: 18px 3px;
  border-bottom: 1px solid var(--line);
  animation: arrive .35s ease-out;
}
.message > div { min-width: 0; }
@keyframes arrive { from { opacity: 0; transform: translateY(-8px); } }
.message-badge { display: grid; width: 38px; height: 38px; color: var(--accent); border-radius: 10px; background: var(--accent-soft); font: 600 15px Georgia, serif; place-items: center; }
.message.priority-2 .message-badge { color: #c27b0a; background: #fff5d9; }
.message.priority-3 .message-badge { color: #c43636; background: #ffe8e8; }
.message-title { margin: 0 0 5px; font-size: 12px; }
.message-body { margin: 0; color: #566071; font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.message-image { display: block; width: 100%; max-height: 300px; margin-top: 11px; border-radius: 11px; background: #edf2f8; object-fit: cover; cursor: zoom-in; }
.message-meta { margin-top: 8px; color: #a1a7b1; font-size: 9px; }
.delete-message { align-self: start; padding: 4px; color: #a1a7b1; background: transparent; opacity: 0; }
.message:hover .delete-message { opacity: 1; }

footer { justify-content: space-between; gap: 8px; padding: 20px 4px 0; color: #8e96a3; font-size: 9px; flex-wrap: wrap; }
footer b { color: #1d54b5; letter-spacing: .06em; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 5; padding: 12px 16px; color: white; border-radius: 10px; background: var(--ink); box-shadow: var(--shadow); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #b83e3e; }

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 17, 36, .82);
  backdrop-filter: blur(8px);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.image-lightbox[hidden] { display: none; }
.image-lightbox img {
  display: block;
  max-width: min(100%, calc(100vw - 36px));
  max-height: calc(100vh - 86px);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .36);
  object-fit: contain;
  cursor: zoom-in;
  touch-action: none;
  transform-origin: center center;
  transition: transform .08s ease-out;
  will-change: transform;
}
.image-lightbox img.zoomed { cursor: grab; }
.image-lightbox img.zoomed:active { cursor: grabbing; }
.image-lightbox-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 21;
  width: 38px;
  height: 38px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 980px) {
  .summary-strip { justify-content: center; }
  .stats { width: 100%; justify-content: center; }
  .workspace { flex-direction: column; }
  .control-column { width: 100%; max-width: none; min-width: 0; flex: none; }
  .composer, .inbox { width: 100%; }
  .inbox { min-height: clamp(520px, 70svh, 680px); }
  .inbox-header { align-items: flex-start; flex-wrap: wrap; }
  .inbox-actions { width: 100%; justify-content: flex-start; }
  .delete-message { opacity: .72; }
}

@media (max-width: 700px) {
  .login-card { padding: 28px; }
  .inbox-header { flex-direction: column; }
  .topic-picker, .control-picker { flex: 1 1 150px; }
  .topic-picker select, .control-picker select { max-width: none; width: 100%; }
}

@media (max-width: 560px), (max-height: 520px) and (pointer: coarse) {
  html, body { touch-action: pan-y; }
  body.composer-open { overflow: hidden; }
  .app-shell { width: min(1180px, calc(100% - 18px)); padding-top: max(12px, env(safe-area-inset-top)); }
  .topbar, .service-state, .inbox-actions, .topic-picker { min-width: 0; }
  .topbar { gap: 8px; align-items: center; }
  #serviceStatus { display: none; }
  .header-notify-button { display: inline-flex; align-items: center; }
  .brand-divider, .product-name { display: none; }
  .brand-icon { width: clamp(106px, 36vw, 122px); }
  .mobile-quick-actions { display: none; }
  .summary-strip { margin: 0; padding: 8px 10px; }
  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .stats div { min-width: 0; text-align: center; }
  .stats strong { font-size: clamp(22px, 7vw, 26px); }
  .stats span { white-space: normal; }
  .workspace { gap: 12px; margin-top: 12px; }
  .control-column { gap: 12px; }
  .mobile-quick-actions { display: none !important; }
  .quick-action-button {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 13px 12px;
    color: #27436c;
    border: 1px solid #d7e2f2;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    text-align: left;
  }
  .quick-action-button.primary { color: white; border-color: #174a9c; background: #174a9c; }
  .quick-action-icon { font-size: 20px; line-height: 1; }
  .quick-action-button strong, .quick-action-button small { display: block; }
  .quick-action-button strong { font-size: 11px; }
  .quick-action-button small { margin-top: 3px; opacity: .7; font-size: 8px; }
  .quick-action-button.enabled { border-color: #28ad78; background: #28ad78; }
  .composer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12;
    display: block;
    background: rgba(7, 22, 48, .44);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  body.composer-open .composer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .composer {
    position: fixed;
    right: max(8px, env(safe-area-inset-right));
    bottom: 0;
    left: max(8px, env(safe-area-inset-left));
    z-index: 13;
    width: auto;
    max-height: min(88svh, 720px);
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
    transform: translateY(110%);
    transition: transform .24s ease;
  }
  body.composer-open .composer { transform: translateY(0); }
  .composer-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    font-size: 20px;
    place-items: center;
  }
  .mobile-compose-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
    font-weight: 700;
  }
  .inbox { min-height: calc(100svh - 174px); border-radius: 20px; }
  .inbox-header { align-items: flex-start; padding: 18px; flex-direction: column; }
  .inbox-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .mobile-compose-button, .topic-picker { grid-column: 1 / -1; }
  .topic-picker, .control-picker { flex: 1 1 auto; }
  .topic-picker select, .control-picker select { max-width: none; width: 100%; }
  .icon-button, .text-button { width: 100%; }
  input, textarea, form select { font-size: 16px; }
  form { margin-top: 24px; }
  form > label, .image-field { margin-bottom: 18px; }
  .connection-banner { align-items: flex-start; margin: 12px 14px 0; }
  .message-list { padding: 10px 14px 22px; }
  .message { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .message-image { max-height: min(260px, 42svh); }
  .image-lightbox { padding: 12px; }
  .image-lightbox img {
    max-width: calc(100vw - 24px);
    max-height: calc(100svh - 74px);
  }
  .toast { right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); left: 10px; text-align: center; }
  footer span:last-child { display: none; }
}

@media (max-width: 380px) {
  .app-shell { width: min(1180px, calc(100% - 12px)); }
  .login-screen { padding: 12px; }
  .login-card { padding: 22px; }
  .login-logo { width: 150px; }
  .stats { gap: 2px; }
  .stats strong { font-size: 22px; }
  .stats span { font-size: 8px; }
  .section-heading h2 { font-size: 22px; }
  .inbox-actions { grid-template-columns: 1fr; }
  .composer { padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); }
  .message {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 14px 0;
  }
  .message-badge { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
  .delete-message { grid-column: 2; justify-self: start; }
}

@media (max-height: 520px) and (pointer: coarse) {
  .app-shell { padding-top: 10px; }
  .summary-strip { padding: 7px 10px; }
  .stats strong { font-size: 20px; }
  .stats span { margin-top: 3px; font-size: 8px; }
  .inbox { min-height: 420px; }
  .composer { max-height: calc(100svh - 12px); }
  .login-card { max-height: calc(100svh - 24px); overflow-y: auto; }
}
