/* 报表不依赖外部字体或 CDN，生产环境断网时仍可完整展示。 */
:root {
  --fog: #f3f6f4;
  --paper: #fbfcfb;
  --white: #ffffff;
  --ink: #17231f;
  --muted: #697670;
  --line: #dce4df;
  --line-dark: rgba(255, 255, 255, 0.14);
  --green: #2a6b52;
  --green-soft: #dceae3;
  --blue: #4a6fe3;
  --blue-soft: #e5eafe;
  --violet: #8a6cc2;
  --violet-soft: #ede6f6;
  --coral: #df7055;
  --coral-soft: #f9e5df;
  --amber: #c8903e;
  --shadow: 0 20px 55px rgba(23, 35, 31, 0.07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 0%, rgba(255, 255, 255, 0.95), transparent 27rem),
    var(--fog);
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.auth-locked { overflow: hidden; }
body.auth-locked > .topbar, body.auth-locked > main { visibility: hidden; }

button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.55; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(74, 111, 227, 0.28);
  outline-offset: 2px;
}

h1, h2, p, dl, dd { margin-top: 0; }
h1, h2, .large-stat strong, .pulse-metrics strong, .conversion-ring strong {
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
h1, h2 { letter-spacing: -0.045em; }
h2 { margin-bottom: 0; font-size: clamp(21px, 2vw, 27px); line-height: 1.15; }

.eyebrow {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.17em;
}
.eyebrow.light { color: #9fd3bd; }
.eyebrow.coral { color: var(--coral); }
.muted { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

/* 顶部只承担身份与筛选，避免与核心订阅洞察争夺视觉注意力。 */
.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgba(220, 228, 223, 0.82);
  background: rgba(243, 246, 244, 0.9);
  backdrop-filter: blur(20px);
}

.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 14px; letter-spacing: -0.015em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: 0.045em; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; width: 32px; height: 32px; border-radius: 10px; padding: 8px; background: var(--ink); }
.brand-mark i { display: block; width: 4px; border-radius: 4px; background: #91cdb3; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 11px; }

.filters { display: flex; align-items: flex-end; gap: 8px; }
.filters label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
select, input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: var(--white);
}
.button-square, .button-quiet {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--white);
}
.button-square { width: 40px; padding: 0; font-size: 18px; }
.button-quiet { padding: 0 13px; color: var(--muted); }

main { width: min(1440px, calc(100% - 48px)); margin: 28px auto 60px; }

.error-banner, .notice { border-radius: 12px; padding: 11px 14px; font-size: 12px; line-height: 1.5; }
.error-banner { margin-bottom: 14px; border: 1px solid #eec4b8; color: #863d2b; background: #fff0eb; }
.notice { margin: 12px 4px 0; color: var(--muted); text-align: right; }

/* 深色 pulse 是报表的视觉锚点，业务增长在基线上方、流失信号在下方。 */
.pulse-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(26px, 4vw, 48px);
  color: white;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(145deg, #1b2c26 0%, #14201c 72%);
  background-size: 38px 38px, 38px 38px, auto;
  box-shadow: 0 28px 75px rgba(23, 35, 31, 0.18);
}
.pulse-hero::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 107, 82, 0.5), transparent 67%);
  pointer-events: none;
}
.hero-copy, .hero-period, .pulse-metrics, .pulse-chart-shell { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 760px; margin-bottom: 12px; font-size: clamp(34px, 5vw, 64px); font-weight: 620; line-height: 1.03; }
.hero-copy > p:last-child { max-width: 700px; margin-bottom: 0; color: rgba(255, 255, 255, 0.65); font-size: 14px; line-height: 1.7; }
.hero-period { align-self: start; display: grid; justify-items: end; gap: 4px; border: 1px solid var(--line-dark); border-radius: 14px; padding: 11px 14px; background: rgba(255, 255, 255, 0.045); }
.hero-period span { color: #9fd3bd; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; }
.hero-period strong { font-size: 13px; }

.pulse-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.pulse-metrics > div { padding: 18px 18px 17px 0; }
.pulse-metrics > div + div { border-left: 1px solid var(--line-dark); padding-left: 18px; }
.pulse-metrics span { display: block; color: rgba(255, 255, 255, 0.55); font-size: 10px; letter-spacing: 0.055em; }
.pulse-metrics strong { display: block; margin-top: 5px; font-size: clamp(25px, 3vw, 38px); font-weight: 550; letter-spacing: -0.045em; }
.pulse-metrics .negative strong { color: #f59a83; }

.pulse-chart-shell { grid-column: 1 / -1; min-width: 0; }
.chart-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.chart-heading > div:first-child { display: grid; gap: 3px; }
.chart-heading > div:first-child span { color: #8eb9a6; font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }
.chart-heading > div:first-child strong { font-size: 15px; }
.pulse-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 13px; color: rgba(255, 255, 255, 0.6); font-size: 9px; }
.pulse-legend span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 2px; }
.legend-initial::before { background: #55a67d; }
.legend-trial::before { background: #a98ad7; }
.legend-renewal::before { background: #6f8ff1; }
.legend-off::before { background: #ed8d75; }
.legend-expired::before { background: #c26350; }
.legend-refund::before { background: #e7b04e; }

.pulse-chart {
  display: flex;
  align-items: stretch;
  gap: 5px;
  min-height: 238px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.pulse-day { display: grid; grid-template-rows: 108px 1px 78px 25px; flex: 1 0 22px; min-width: 22px; gap: 0; }
.pulse-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; padding: 0 1px; }
.pulse-bars.negative { align-items: flex-start; }
.pulse-baseline { background: rgba(255, 255, 255, 0.18); }
.pulse-bar { width: 5px; min-height: 1px; border-radius: 3px 3px 0 0; transition: height 240ms ease; }
.pulse-bars.negative .pulse-bar { border-radius: 0 0 3px 3px; }
.pulse-bar.initial { background: #55a67d; }
.pulse-bar.trial { background: #a98ad7; }
.pulse-bar.renewal { background: #6f8ff1; }
.pulse-bar.off { background: #ed8d75; }
.pulse-bar.expired { background: #c26350; }
.pulse-bar.refund { background: #e7b04e; }
.pulse-date { align-self: end; overflow: hidden; color: rgba(255, 255, 255, 0.38); font: 8px "SFMono-Regular", Consolas, monospace; text-align: center; white-space: nowrap; }

/* 分析区采用 12 栏编辑式布局，大块洞察优先于重复的小卡片。 */
.analysis-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.panel { border: 1px solid rgba(220, 228, 223, 0.95); border-radius: 22px; padding: clamp(20px, 2.2vw, 30px); background: rgba(255, 255, 255, 0.83); box-shadow: var(--shadow); }
.trial-panel { grid-column: span 7; }
.churn-panel { grid-column: span 5; }
.refund-panel { grid-column: span 5; }
.gross-panel { grid-column: span 7; }
.product-panel, .lineage-panel, .notification-panel { margin-top: 16px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.panel-heading .muted { max-width: 430px; text-align: right; }

.trial-overview { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 28px; }
.conversion-ring { --trial-angle: 0deg; display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; background: conic-gradient(var(--green) var(--trial-angle), #e5ebe7 0); }
.conversion-ring::before { content: ""; grid-area: 1 / 1; width: 127px; height: 127px; border-radius: 50%; background: var(--paper); }
.conversion-ring > div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.conversion-ring strong { display: block; font-size: 33px; font-weight: 600; letter-spacing: -0.055em; }
.conversion-ring span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.trial-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.trial-stats div { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.trial-stats span { display: block; color: var(--muted); font-size: 10px; }
.trial-stats strong { display: block; margin-top: 5px; font-size: 23px; }
.weekly-insight { margin-top: 24px; border-left: 3px solid var(--violet); padding: 13px 16px; color: #4c3c67; background: var(--violet-soft); font-size: 12px; line-height: 1.65; }
.trial-products { display: grid; gap: 11px; margin-top: 18px; }
.trial-product { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr auto; align-items: center; gap: 14px; font-size: 10px; }
.trial-product strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.trial-track { height: 7px; overflow: hidden; border-radius: 9px; background: #e8ece9; }
.trial-fill { height: 100%; border-radius: inherit; background: var(--violet); }
.trial-product span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

.large-stat { position: relative; overflow: hidden; border-radius: 18px; padding: 23px; color: white; background: var(--ink); }
.large-stat::after { content: ""; position: absolute; right: -45px; bottom: -75px; width: 170px; height: 170px; border-radius: 50%; background: rgba(223, 112, 85, 0.28); }
.large-stat span, .large-stat small { position: relative; z-index: 1; display: block; }
.large-stat span { color: rgba(255, 255, 255, 0.62); font-size: 10px; }
.large-stat strong { position: relative; z-index: 1; display: block; margin: 8px 0 3px; color: #f4a28e; font-size: 50px; font-weight: 550; }
.large-stat small { color: rgba(255, 255, 255, 0.48); font-size: 9px; }
.metric-list { display: grid; gap: 0; margin: 18px 0 0; }
.metric-list div { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 11px 2px; }
.metric-list dt { color: var(--muted); font-size: 11px; }
.metric-list dd { margin: 0; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }

.refund-layout { display: grid; grid-template-columns: minmax(120px, 0.8fr) 1.2fr; gap: 28px; }
.refund-lead { border-right: 1px solid var(--line); }
.refund-lead > span { color: var(--muted); font-size: 10px; }
.refund-lead > strong { display: block; margin: 5px 0 16px; color: var(--coral); font-size: 52px; font-weight: 550; letter-spacing: -0.055em; }
.compact-list { margin-top: 0; }
.compact-list div:first-child { padding-top: 0; }

.gross-list { display: flex; flex-wrap: wrap; gap: 10px; }
.gross-item { min-width: 170px; border-left: 3px solid var(--green); padding: 8px 14px; background: #f5f8f6; }
.gross-item span { display: block; color: var(--muted); font-size: 10px; }
.gross-item strong { display: block; margin-top: 3px; font-size: 25px; letter-spacing: -0.035em; }
.gross-list.compact { display: grid; }
.gross-list.compact .gross-item { min-width: 0; border-left-color: var(--coral); padding: 7px 10px; }
.gross-list.compact .gross-item strong { font-size: 17px; }
.coverage-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; border-top: 1px solid var(--line); }
.coverage-strip div { padding: 18px 12px 0 0; }
.coverage-strip div + div { border-left: 1px solid var(--line); padding-left: 15px; }
.coverage-strip span { display: block; min-height: 28px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.coverage-strip strong { display: block; margin-top: 4px; font-size: 20px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 10px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.035em; }
tbody tr { transition: background 140ms ease; }
tbody tr:hover { background: rgba(42, 107, 82, 0.035); }
td.code, .raw-event, pre { font-family: "SFMono-Regular", Consolas, monospace; }
.product-name { display: grid; gap: 2px; }
.product-name strong { font-size: 11px; }
.product-name small { color: var(--muted); font: 8px "SFMono-Regular", Consolas, monospace; }
.state { display: inline-flex; border-radius: 999px; padding: 5px 9px; color: #285842; background: var(--green-soft); font-size: 9px; font-weight: 650; }
.state.expired, .state.revoked, .state.refunded, .state.family_revoked { color: #8a4534; background: var(--coral-soft); }
.state.active_renewal_off, .state.trial_renewal_off, .state.billing_retry { color: #805c23; background: #f5ead7; }
.state.trial_active, .state.billing_grace_period { color: #5c4781; background: var(--violet-soft); }
.event-label { display: grid; gap: 2px; }
.event-label strong { font-size: 10px; }
.raw-event { color: var(--muted); font-size: 8px; }
.detail-button { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; color: var(--green); background: transparent; font-size: 9px; font-weight: 650; }
.empty { margin-bottom: 0; padding: 18px 0; color: var(--muted); font-size: 11px; }

.system-section { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 16px; margin-top: 16px; }
.daily-chart { display: flex; align-items: flex-end; gap: 4px; min-height: 150px; overflow-x: auto; border-bottom: 1px solid var(--line); padding-top: 12px; }
.daily-column { display: flex; align-items: flex-end; gap: 2px; flex: 1 0 12px; min-width: 12px; max-width: 38px; height: 125px; }
.daily-bar { width: 50%; min-height: 1px; border-radius: 3px 3px 0 0; }
.daily-bar.notifications { background: var(--green); }
.daily-bar.transactions { background: var(--blue); }
.bar-list { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 1.4fr) 2fr auto; align-items: center; gap: 10px; font-size: 9px; }
.bar-row > span { overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 6px; overflow: hidden; border-radius: 8px; background: #e7ece9; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--green); }

.dictionary { margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; background: rgba(255, 255, 255, 0.58); }
.dictionary summary { padding: 19px 0; color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.dictionary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; border-top: 1px solid var(--line); padding: 21px 0 24px; }
.dictionary-grid strong { font-size: 11px; }
.dictionary-grid p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 4px 0; color: var(--muted); font-size: 9px; }

/* 通知详情使用独立抽屉，主列表保持克制但不丢失任何 decoded 字段。 */
.drawer-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(23, 35, 31, 0.35); backdrop-filter: blur(4px); }
.drawer-backdrop[hidden], .detail-drawer[hidden] { display: none; }
.detail-drawer { position: fixed; z-index: 31; top: 0; right: 0; width: min(680px, 94vw); height: 100vh; overflow-y: auto; padding: 28px; background: var(--paper); box-shadow: -30px 0 80px rgba(23, 35, 31, 0.2); }
.detail-drawer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.drawer-close { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: white; font-size: 23px; line-height: 1; }
.drawer-status { margin: 14px 0 0; color: var(--muted); font-size: 10px; }
.detail-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; border: 1px solid var(--line); background: var(--line); }
.detail-field { min-width: 0; padding: 12px; background: var(--white); }
.detail-field span { display: block; color: var(--muted); font-size: 8px; letter-spacing: 0.05em; text-transform: uppercase; }
.detail-field strong { display: block; overflow-wrap: anywhere; margin-top: 4px; font: 10px/1.5 "SFMono-Regular", Consolas, monospace; }
.detail-payloads { display: grid; gap: 9px; margin-top: 18px; }
.payload-block { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.payload-block summary { padding: 13px 15px; color: var(--green); font-size: 10px; font-weight: 700; cursor: pointer; }
.payload-block pre { max-height: 480px; overflow: auto; margin: 0; border-top: 1px solid var(--line); padding: 16px; color: #31413b; background: #f0f4f1; font-size: 9px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 登录层沿用同一套订阅 pulse 语言，避免出现通用后台登录模板。 */
.login-layer { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 22px; background: rgba(23, 35, 31, 0.42); backdrop-filter: blur(18px); }
.login-shell { display: grid; grid-template-columns: 0.95fr 1.05fr; width: min(890px, 100%); min-height: 480px; overflow: hidden; border-radius: 28px; background: white; box-shadow: 0 40px 110px rgba(16, 29, 24, 0.3); }
.login-visual { display: flex; flex-direction: column; justify-content: flex-end; padding: 38px; color: white; background: linear-gradient(150deg, #233c32, #14201c); }
.login-visual h2 { margin: 26px 0 12px; font-size: 36px; line-height: 1.13; }
.login-visual > p:last-child { margin-bottom: 0; color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.login-signal { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.login-signal span { width: 18px; border-radius: 8px 8px 2px 2px; background: #77b598; }
.login-signal span:nth-child(1) { height: 26%; }
.login-signal span:nth-child(2) { height: 58%; background: #a78bd1; }
.login-signal span:nth-child(3) { height: 88%; background: #6f8ff1; }
.login-signal span:nth-child(4) { height: 42%; background: #ed8d75; }
.login-signal span:nth-child(5) { height: 19%; background: #e7b04e; }
.login-card { align-self: center; padding: 46px; }
.login-card h1 { margin-bottom: 13px; font-size: 32px; line-height: 1.13; }
.login-fields { display: grid; gap: 7px; margin-top: 27px; }
.login-card label { display: block; color: var(--muted); font-size: 10px; }
.login-card label:not(:first-child) { margin-top: 9px; }
.login-card input { width: 100%; min-height: 46px; padding-right: 13px; }
.login-card button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; border: 0; border-radius: 12px; padding: 0 17px; color: white; background: var(--green); }
.session-note { display: flex; align-items: center; gap: 7px; margin: 13px 0 0; color: var(--muted); font-size: 9px; }
.session-note span { width: 7px; height: 7px; border-radius: 50%; background: #77b598; box-shadow: 0 0 0 4px rgba(119, 181, 152, 0.14); }
.form-error { min-height: 18px; margin: 8px 0 0; color: #a14630; font-size: 10px; }

@media (max-width: 1080px) {
  .trial-panel, .churn-panel, .refund-panel, .gross-panel { grid-column: 1 / -1; }
  .system-section { grid-template-columns: 1fr; }
  .dictionary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar { position: static; align-items: stretch; flex-direction: column; padding: 18px; }
  .filters { align-items: stretch; flex-wrap: wrap; }
  .filters label { flex: 1 1 130px; }
  main { width: min(100% - 24px, 1440px); margin-top: 12px; }
  .pulse-hero { grid-template-columns: 1fr; border-radius: 22px; padding: 24px 18px; }
  .hero-period { justify-self: start; justify-items: start; }
  .pulse-metrics { grid-template-columns: repeat(2, 1fr); }
  .pulse-metrics > div, .pulse-metrics > div + div { border: 0; border-bottom: 1px solid var(--line-dark); padding: 14px 10px 14px 0; }
  .pulse-metrics > div:nth-child(even) { border-left: 1px solid var(--line-dark); padding-left: 13px; }
  .pulse-metrics > div:last-child { grid-column: 1 / -1; }
  .chart-heading, .panel-heading { align-items: flex-start; flex-direction: column; }
  .pulse-legend { justify-content: flex-start; }
  .panel-heading .muted { text-align: left; }
  .trial-overview { grid-template-columns: 1fr; justify-items: center; }
  .trial-stats { width: 100%; }
  .refund-layout { grid-template-columns: 1fr; }
  .refund-lead { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .coverage-strip { grid-template-columns: 1fr 1fr; }
  .coverage-strip div:nth-child(3) { border-left: 0; padding-left: 0; }
  .dictionary-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
  .login-shell { grid-template-columns: 1fr; min-height: 0; }
  .login-visual { display: none; }
  .login-card { padding: 32px 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
