:root,
html[data-theme="dark"] {
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #8d8d8d;
  --accent: #ffd000;
  --accent-ink: #111111;
  --accent-text: #ffd000;
  --accent-soft: rgba(255, 208, 0, 0.16);
  --mint: #ffd000;
  --amber: #ff9f1a;
  --ice: #9aa4ad;
  --danger: #ef6b6b;
  --btn-text: #111111;
  --dock-bg: rgba(11, 11, 11, 0.9);
  --bar-track: #2a2a2a;
  --ease: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --glow: 0 8px 22px rgba(255, 208, 0, 0.28);
}

html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --line: #e6e6e6;
  --text: #111111;
  --muted: #6b6b6b;
  --accent: #ffd000;
  --accent-ink: #111111;
  --accent-text: #b88600;
  --accent-soft: rgba(255, 208, 0, 0.22);
  --mint: #b88600;
  --amber: #c46a00;
  --ice: #5a6670;
  --danger: #c23b3b;
  --btn-text: #111111;
  --dock-bg: rgba(255, 255, 255, 0.92);
  --bar-track: #ececec;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  min-height: 100dvh;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.app { max-width: 820px; margin: 0 auto; min-height: 100dvh; padding-bottom: 104px; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 6px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.04em; font-size: 28px; line-height: 1.1; }
.mark {
  width: 10px; height: 10px; border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.top-meta { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 10px; }
.dot { opacity: 0.4; }

.theme-btn {
  width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px;
  background: transparent; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.theme-btn svg { width: 15px; height: 15px; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }

.main { padding: 4px 20px 32px; }
.flash {
  margin: 8px 20px 0; padding: 10px 12px; border-radius: 0;
  background: transparent; border-left: 2px solid var(--accent); font-size: 14px;
}
.flash-err { border-left-color: var(--danger); }

h1 { font-size: 28px; letter-spacing: -0.04em; margin: 0; font-weight: 500; line-height: 1.1; }
h2, .section-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); font-weight: 500; margin: 22px 0 8px;
}
.card h2, .card .section-label, form h2, form .section-label {
  margin: 18px 0 8px;
}
.card > h2:first-child,
.card > .section-label:first-child,
.tesla-tier > .section-label:first-child {
  margin-top: 0;
}
p.lead { color: var(--muted); margin: 0 0 18px; line-height: 1.5; font-size: 15px; }
.page-head .lead, .dash-head .lead { margin: 6px 0 0; }
p.tiny { margin: 0 0 12px; line-height: 1.45; }
p.tiny:last-child { margin-bottom: 0; }
.eyebrow { margin: 0 0 6px; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

.dash-head, .page-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px; margin: 8px 0 22px;
}
.dash-head { flex-wrap: nowrap; }
.dash-head-text { flex: 1; min-width: 0; }
.dash-head-text h1 { margin: 0; }
.dash-head-text .eyebrow { margin: 4px 0 0; }
.dash-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.page-head .lead { max-width: 36rem; }
.page-head .btn, .dash-head .btn { width: auto; flex-shrink: 0; }
.dash-head form { margin: 0; display: flex; }
.period-shift {
  width: 36px; height: 36px; flex-shrink: 0;
  background: transparent; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--text);
  font-size: 22px; line-height: 1; position: relative; z-index: 2;
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}
.period-shift:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.period-shift.is-off { opacity: 0.28; pointer-events: none; }

.range-fold { margin: 8px 0 0; }
.range-fold > summary {
  cursor: pointer;
  list-style: none;
  width: fit-content;
  font-size: 12px;
  color: var(--muted);
}
.range-fold > summary::-webkit-details-marker,
.range-fold > summary::marker { display: none; content: ""; }
.range-fold > summary:hover { color: var(--accent-text); }
.range-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.range-custom {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}
.range-custom input[type="date"],
.range-go {
  box-sizing: border-box;
  height: 36px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1;
}
.range-custom input[type="date"] { padding: 0 10px; }
.range-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 12px;
  cursor: pointer;
}
.range-custom input[type="date"]:focus,
.range-go:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.range-go:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-soft);
}
@media (max-width: 640px) {
  .range-custom { width: 100%; }
  .range-custom input[type="date"] { flex: 1; min-width: 0; }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.kpi {
  background: var(--bg);
  padding: 16px 14px 14px;
}
.kpi:first-child {
  background: var(--accent);
}
.kpi:first-child span { color: var(--accent-ink); opacity: 0.62; }
.kpi:first-child strong { color: var(--accent-ink); }
.kpi:last-child strong { color: var(--accent-text); }
.kpi span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.kpi strong {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.kpi em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  margin-bottom: 8px;
  box-shadow: none;
}
a.card:hover { border-color: var(--accent); }
.muted a, p.tiny a, .lead a { color: var(--accent-text); }
.card-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card-row .right { text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }
.num, .stat {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.stat-lg { font-size: 32px; letter-spacing: -0.05em; font-weight: 500; }
.stat-md { font-size: 20px; font-weight: 500; letter-spacing: -0.04em; }
.mint { color: var(--accent-text); }
.amber { color: var(--amber); }
.ice { color: var(--ice); }
.danger { color: var(--danger); }

/* Old cached markup used <i> / .bar-fill as a meter; hide every leftover. */
.bar,
.bar i,
.bar .bar-fill,
.card > i,
a.card i {
  display: none !important;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  padding: 7px 11px;
  font-size: 13px;
  transition: border-color var(--ease), background var(--ease), color var(--ease), transform var(--ease);
}
label.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
label.chip { cursor: pointer; }
label.chip:has(input:checked), .chip.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
label.chip input { display: none; }

.country-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
}
.country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  min-height: 48px;
  font-weight: 500;
  line-height: 1.2;
}
.country-item input { display: none; }
.country-item {
  transition: border-color var(--ease), background var(--ease), color var(--ease), transform var(--ease);
}
.country-item:hover { border-color: var(--accent); color: inherit; }
.country-item.on {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.country-item.on:hover { color: var(--accent-ink); }
.flag {
  width: 22px;
  height: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: inline-block;
  line-height: 0;
  background: #fff;
}
.flag svg { width: 100%; height: 100%; display: block; }
html[data-theme="dark"] .flag { border-color: rgba(255, 255, 255, 0.22); }
.country-programs { margin-bottom: 12px; }
a.item.country-row { align-items: center; }
.country-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.country-row .flag { width: 28px; height: 19px; }

.field { margin-bottom: 16px; }
.field:has(+ .btn),
.field:has(+ .form-actions),
p.tiny:has(+ .btn),
.chips:has(+ .btn),
.grid-2:has(+ .btn),
.grid-3:has(+ .btn) { margin-bottom: 8px; }
.field span, .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.kwh-input label { display: block; }
.kwh-input span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.kwh-input input {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 56px;
  font-weight: 500;
  padding: 0 0 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  caret-color: var(--accent);
}
.when {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.7fr;
  gap: 8px;
}
.when input,
.when select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 10px;
  outline: none;
}
.when input:focus,
.when select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
@media (max-width: 640px) {
  .when { grid-template-columns: 1fr 1fr; }
  .when input[type="date"] { grid-column: 1 / -1; }
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; border-radius: 0; padding: 13px 16px;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}
.btn:hover { filter: brightness(1.08); box-shadow: var(--glow); }
.btn:active { box-shadow: none; filter: brightness(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-sm { width: auto; padding: 8px 12px; font-size: 13px; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); filter: none; }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); box-shadow: none; filter: none; }
.btn.ghost { background: transparent; color: var(--muted); width: auto; padding: 8px 0; filter: none; box-shadow: none; }
.btn.ghost:hover { color: var(--accent-text); box-shadow: none; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); filter: none; }
.btn.danger:hover { background: rgba(239, 107, 107, 0.12); box-shadow: none; filter: none; }
.btn.ghost.danger {
  padding: 6px 12px;
  margin-top: 6px;
}
.item-actions {
  display: flex; gap: 8px; justify-content: flex-end; align-items: center;
  margin-top: 8px;
}
.item-actions form { margin: 0; display: flex; }
.btn-mini {
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box; height: 32px; padding: 0 12px;
  border: 1px solid var(--line); background: transparent;
  color: var(--text); font-size: 13px; font-weight: 500; line-height: 1;
  width: auto; cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}
.btn-mini:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.btn-mini.danger { color: var(--danger); border-color: var(--danger); }
.btn-mini.danger:hover { background: rgba(239, 107, 107, 0.12); color: var(--danger); }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { width: auto; flex: 1; }
.form-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 16px;
}
.card > .btn:last-child,
form.card > .btn,
form > .btn[type="submit"] { margin-top: 16px; }
.household-box form + form { margin-top: 8px; }
.household-box form + form > .btn { margin-top: 0; }

.list { display: flex; flex-direction: column; }
.card > .list {
  margin-left: -16px;
  margin-right: -16px;
}
.item {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.list > .item:first-child { padding-top: 4px; }
.item:last-child { border-bottom: 0; padding-bottom: 4px; }
.card > .list > .item:first-child { padding-top: 10px; }
.card > .list > .item:last-child { padding-bottom: 10px; }
.item .left { min-width: 0; flex: 1; }
.item .left b { display: block; font-weight: 500; line-height: 1.25; }
.item .right { text-align: right; white-space: nowrap; flex-shrink: 0; }
a.item { color: inherit; transition: color var(--ease), background var(--ease); }
a.item:hover { background: var(--accent-soft); }
a.item:hover b { color: var(--accent-text); }
a.card { transition: border-color var(--ease); }
.item-meter { flex-direction: column; align-items: stretch; gap: 8px; }
.item-meter .item-actions { margin-top: 2px; justify-content: flex-start; }
.month-note {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 14px;
  margin: 0 0 16px;
}
.share-box { margin: 4px 0 20px; }
.share-box > .section-label { margin-top: 4px; }
.share-people { margin-top: 16px; }
.share-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.share-box > .share-row { margin-bottom: 0; }
.share-people .share-row + .share-row { border-top: 0; }
.share-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.share-row > span { display: block; min-width: 0; flex: 1; }
.share-row b {
  display: block;
  font-weight: 500;
  line-height: 1.25;
}
.share-row .tiny { margin-top: 2px; line-height: 1.35; }
.share-row:hover { border-color: var(--accent); z-index: 1; }
.share-row:has(input:checked) { background: var(--accent-soft); }
.share-row.is-you { cursor: default; }
.month-note b { display: block; font-weight: 600; margin-bottom: 4px; }
.month-note .tiny { color: var(--accent-ink); opacity: 0.72; margin: 0; }
.item-main {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  width: 100%;
}
.item-main .left { min-width: 0; flex: 1; }
.item-main .right { text-align: right; white-space: nowrap; flex-shrink: 0; }
.remain { display: flex; flex-direction: column; gap: 5px; }
.remain-track {
  height: 3px; background: var(--bar-track); overflow: hidden;
}
.remain-track::before {
  content: ""; display: block; height: 100%;
  width: var(--remain, 0%); background: var(--accent);
}
.remain-track.low::before { background: var(--danger); }

.mix-bar {
  display: flex;
  height: 18px;
  background: var(--bar-track);
  overflow: hidden;
  margin: 0 0 12px;
}
.mix-seg { display: block; height: 100%; min-width: 0; }
.mix-ac { background: #3b82f6; }
.mix-dc { background: var(--accent); }
.mix-ufc { background: var(--amber); }
.mix-destination { background: #7c9cff; }
.mix-drivex { background: var(--text); }
.mix-any { background: var(--muted); }
.mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  color: var(--muted);
  font-size: 12px;
}
.mix-key { display: inline-flex; align-items: center; gap: 7px; }
.mix-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

details.extra { margin: 8px 0 16px; }
details.extra summary { cursor: pointer; color: var(--muted); padding: 8px 0; }

details.fold {
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 0 0 10px;
}
form.card + details.fold { margin-top: 16px; }
details.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
details.fold > summary::-webkit-details-marker,
details.fold > summary::marker { display: none; content: ""; }
details.fold > summary .tiny { color: var(--muted); font-weight: 400; }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
details.fold .list > .item:first-child { padding-top: 10px; }
details.fold .list > .item:last-child { padding-bottom: 10px; }
details.fold .fold-empty { padding: 12px 16px; margin: 0; }
details.fold .fold-empty a { color: var(--accent-text); }
details.fold .fold-more {
  display: block;
  padding: 12px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
details.fold .fold-more:hover { color: var(--accent-text); background: var(--accent-soft); }
.log-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 18px;
  font-size: 13px;
}
.log-pages a { color: var(--muted); }
.log-pages a:hover { color: var(--accent-text); }
.log-pages .is-off { color: var(--muted); opacity: 0.4; }

.dock {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: min(820px, 100%);
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  background: var(--dock-bg);
  border: 0;
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: 0;
  padding: 8px 8px 10px;
  z-index: 20;
}
.dock-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }
.dock a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 6px 4px;
  transition: color var(--ease);
}
.dock a:hover { color: var(--accent-text); }
.dock svg { width: 18px; height: 18px; }
.dock a.on { color: var(--accent-text); }
.dock .fab {
  background: transparent; color: inherit; border-radius: 0; font-weight: 500;
}
.dock .fab span {
  font-size: 16px; line-height: 1;
  width: 28px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.dock .fab.on { color: var(--accent-text); }

.hero-actions { display: flex; gap: 8px; margin: 12px 0 6px; }
.hero-actions .btn { width: auto; }
.compare-wrap {
  padding: 0 16px 10px;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0;
  background: transparent;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.compare .box {
  background: transparent;
  border-radius: 0;
  padding: 0 12px 0 0;
  border: 0;
  min-width: 0;
}
.compare .box + .box {
  padding: 0 0 0 12px;
  border-left: 1px solid var(--line);
}
.compare .tiny {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compare .stat {
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.15;
}
.compare-note { margin-top: 8px; }
.auth-wrap { padding: 56px 20px 20px; }
.logo-lg { font-size: 28px; font-weight: 500; letter-spacing: -0.04em; display: flex; gap: 10px; align-items: center; }
section.step { margin-top: 22px; }
.hidden { display: none; }
.tesla-extra, .home-extra { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.tesla-extra[hidden], .home-extra[hidden] { display: none; }
.tesla-tier { margin: 4px 0 18px; }
.tesla-connect {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
}
.tesla-connect[hidden] { display: none; }
.tesla-connect.is-on { border-color: var(--accent); }
.tesla-connect .btn { width: auto; margin-top: 10px; }
.tesla-connect .btn + .tiny { margin-top: 10px; }
.page-head .eyebrow a { color: var(--muted); }
.page-head .eyebrow a:hover { color: var(--accent-text); }
.ev-picker { margin-bottom: 4px; }
.ev-note { margin: 0 0 16px; }
.logout { margin-top: 28px; }
.session-month { margin: 0 0 6px; }
.session-month > h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 8px;
}
.session-month:first-child > h2 { margin-top: 4px; }
.session-month > h2 .tiny {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.session-month .card { margin-bottom: 14px; }

.seg {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: transparent; border-radius: 0; padding: 0; gap: 0;
  border: 1px solid var(--line);
}
.seg button {
  border: 0; background: transparent; color: var(--muted);
  border-radius: 0; padding: 9px 6px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.seg button:hover:not(.on) { color: var(--accent-text); background: var(--accent-soft); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }

.app.landing-shell { max-width: 860px; padding-bottom: 40px; }
.landing-main { padding: 0 20px 32px; }
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0 8px;
}
.lp-nav-links { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }
.lp-login {
  color: var(--accent-ink) !important;
  background: var(--accent);
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 0;
  transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}
.lp-login:hover { box-shadow: var(--glow); filter: brightness(1.08); }
.lp-hero { padding: 48px 0 12px; }
.lp-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 14px;
}
.lp-hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 0.94; letter-spacing: -0.05em; margin: 0 0 16px; max-width: 11ch;
  font-weight: 500;
}
.lp-sub { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 34rem; margin: 0 0 24px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lp-cta .btn { width: auto; min-width: 160px; }
.lp-note { margin-top: 4px; }
.lp-preview {
  margin: 36px 0 10px; padding: 0; border-radius: 0;
  border: 1px solid var(--line); background: transparent;
}
.lp-preview-bar {
  display: flex; justify-content: space-between; color: var(--muted);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.lp-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.lp-preview-grid .card { margin: 0; border: 0; border-right: 1px solid var(--line); }
.lp-preview-grid .card:last-child { border-right: 0; }
.lp-section { padding: 36px 0 8px; }
.lp-section h2, .lp-end h2 {
  text-transform: none; letter-spacing: -0.04em; font-size: 24px;
  color: var(--text); margin: 0 0 16px; font-weight: 500;
}
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-features .card { margin: 0; }
.lp-features p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 8px 0 0; }
.lp-list { margin: 0; }
.lp-end { padding: 40px 0 12px; }
.lp-end .btn { width: auto; min-width: 200px; }
.lp-foot {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 24px 0 10px; color: var(--muted); font-size: 12px;
  border-top: 1px solid var(--line); margin-top: 24px;
}
@media (max-width: 720px) {
  .lp-nav-links a:not(.lp-login) { display: none; }
  .lp-preview-grid, .lp-features { grid-template-columns: 1fr; }
  .lp-preview-grid .card { border-right: 0; border-bottom: 1px solid var(--line); }
  .lp-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn:hover, .btn-mini:hover, .period-shift:hover, .theme-btn:hover,
  .dock a:hover, .country-item:hover, label.chip:hover, .lp-login:hover, a.card:hover {
    transform: none;
    box-shadow: none;
  }
}
