/* Rennrad Dashboard — Claude Design v2 */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F9F9F9;
  --border: #EFEFEF;
  --border-2: #F0F0F0;
  --text: #000000;
  --muted: #646464;
  --muted-2: #A7A7A7;
  --muted-3: #333333;
  --accent: #E85002;
  --accent-2: #F16001;
  --accent-3: #C10801;
  --accent-4: #7A0000;
  --dark: #000000;
  --dark-fg: #F9F9F9;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --gap: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.4;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-3); }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.page { max-width: 1440px; margin: 0 auto; padding: 20px; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px 24px; border-bottom: 1px solid var(--border);
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 22%; /* iOS-App-Icon-Feel */
  background-image: url('logo.png');
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.brand-mark-lg { width: 64px; height: 64px; }
.brand-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.btn {
  padding: 8px 14px; border: 1px solid var(--border); background: #fff;
  border-radius: var(--radius-xs); font-size: 13px; color: var(--muted-3);
  cursor: pointer; font-weight: 500; text-decoration: none; line-height: 1;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--muted-2); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-outline { color: var(--muted-3); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-12 { grid-column: span 12; }
@media (max-width: 960px) {
  .span-4, .span-5, .span-7, .span-8 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .page { padding: 12px; }
  .grid { gap: 12px; }
}

/* Cards */
.card { border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.card-loading { background: var(--bg-soft); text-align: center; grid-column: span 12; color: var(--muted); padding: 60px; }
.card-dark { background: var(--dark); color: var(--dark-fg); }
.card-orange {
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-3) 60%, var(--accent-4) 100%);
  color: #fff;
}
.card-soft { background: var(--bg-soft); border: 1px solid var(--border); }
.card-light { background: #fff; border: 1px solid var(--border); }

.card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 10px; position: relative;
}
.card-head-l { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 3px; }
.dot-orange { background: var(--accent); }
.dot-white  { background: #fff; }
.label { font-size: 14px; font-weight: 600; }
.card-head-r { display: flex; align-items: center; gap: 8px; }

.chip {
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.chip-orange { background: rgba(232,80,2,0.15); color: var(--accent); }
.chip-dark   { background: rgba(0,0,0,0.25); color: #fff; font-weight: 500; }
.chip-tss    { background: rgba(255,255,255,0.08); color: var(--dark-fg); font-weight: 500; }

.pill {
  padding: 2px 8px; border-radius: 999px; font-size: 11px;
  background: #fff; color: var(--muted); border: 1px solid var(--border);
}
.pill-dark { background: rgba(255,255,255,0.06); color: var(--muted-2); border: 0; }

.meta { font-size: 11px; color: var(--muted); }
.meta-time { font-size: 11px; color: var(--muted-2); }

/* Glow effects */
.glow { position: absolute; pointer-events: none; }
.glow-tr {
  top: -80px; right: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(232,80,2,0.55) 0%, rgba(193,8,1,0.2) 40%, transparent 70%);
  filter: blur(20px);
}
.glow-tr-soft {
  top: -40px; right: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
}
.glow-bl {
  bottom: -100px; left: -80px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(232,80,2,0.35) 0%, transparent 65%);
  filter: blur(30px);
}
.year-tile-dark .glow-tr { top: -30px; right: -30px; width: 140px; height: 140px; background: radial-gradient(circle, rgba(232,80,2,0.5) 0%, transparent 70%); filter: none; }

/* Latest ride */
.ride-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; position: relative; }
.ride-loc { font-size: 13px; color: var(--muted-2); margin-bottom: 28px; position: relative; }

/* Metric primitives */
.metric-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.metric-label.alt { color: var(--muted-2); }
.card-dark .metric-label, .card-orange .metric-label { color: var(--muted-2); }
.card-orange .metric-label.alt { color: rgba(255,255,255,0.75); }
.card-dark .metric-label.alt { color: var(--muted-2); }

.metric-sub { font-size: 11px; color: var(--muted-2); margin-top: 6px; }

.metric-value { font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.metric-value .unit { font-size: 0.44em; color: var(--muted-2); font-weight: 500; margin-left: 4px; }
.card-orange .metric-value .unit { color: rgba(255,255,255,0.7); }
.metric-value.big  { font-size: 32px; }
.metric-value.lg   { font-size: 30px; }
.metric-value.mid  { font-size: 22px; }
.metric-value.md   { font-size: 26px; }
.metric-value.huge { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px; }
.metric-value.xxl  { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.metric-value.accent { color: var(--accent); }

/* Latest activity: 2-column body (Desktop) */
.latest-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 28px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.latest-col { min-width: 0; }
.col-caption {
  font-size: 10px; color: var(--muted-2); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.metric-grid { display: grid; gap: 16px; }
.metric-grid-3 { grid-template-columns: repeat(3, 1fr); }
.metric { min-width: 0; }

@media (max-width: 900px) {
  .latest-body { grid-template-columns: 1fr; gap: 24px; padding-bottom: 20px; }
}
@media (max-width: 460px) {
  .metric-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .latest-body { gap: 20px; }
}

/* Zones */
.zones-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding-top: 0; position: relative;
}
.zones-row-wide { gap: 48px; }
@media (max-width: 720px) { .zones-row, .zones-row-wide { grid-template-columns: 1fr; gap: 24px; } }
.zone-block { min-width: 0; }
.zone-head { display: flex; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.zone-head .label { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 400; }
.zone-head .meta { font-size: 11px; color: var(--muted); }

.zone-bars { display: flex; gap: 3px; height: 40px; align-items: flex-end; }
.zone-bars.sm { height: 32px; }
.zone-bars > .zbar { border-radius: 3px; min-width: 4px; transition: height .3s; }

/* Power zone colors (7) */
.zone-bars-power > .zbar.z1 { background: #333; }
.zone-bars-power > .zbar.z2 { background: var(--muted); }
.zone-bars-power > .zbar.z3 { background: var(--muted-2); }
.zone-bars-power > .zbar.z4 { background: var(--accent-2); }
.zone-bars-power > .zbar.z5 { background: var(--accent); }
.zone-bars-power > .zbar.z6 { background: var(--accent-3); }
.zone-bars-power > .zbar.z7 { background: var(--accent-4); }
/* HR zone colors (5) */
.zone-bars-hr > .zbar.z1 { background: #333; }
.zone-bars-hr > .zbar.z2 { background: var(--muted); }
.zone-bars-hr > .zbar.z3 { background: var(--muted-2); }
.zone-bars-hr > .zbar.z4 { background: var(--accent-2); }
.zone-bars-hr > .zbar.z5 { background: var(--accent); }

.card-light .zone-bars-power > .zbar.z1,
.card-light .zone-bars-hr > .zbar.z1 { background: #333; }

.zone-labels {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 9px; color: var(--muted);
}
.zone-ranges {
  display: flex; justify-content: space-between; margin-top: 3px;
  font-size: 8px; color: var(--muted-2);
  letter-spacing: 0.02em;
}
.zone-ranges > span { white-space: nowrap; }

.zones-empty {
  padding: 14px 12px;
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 8px;
}
.card-light .zones-empty { border-color: var(--border-2); }


/* Year / Season */
.year-tile-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 8px;
}
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .year-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.year-tile {
  background: #fff; border-radius: var(--radius-md); padding: 22px; border: 1px solid var(--border);
  min-width: 0;
}
@media (max-width: 900px) { .year-tile { padding: 16px 14px; } }
@media (max-width: 640px) {
  .metric-value.xxl  { font-size: 30px; }
  .metric-value.huge { font-size: 44px; }
  .year-tile { padding: 14px 12px; }
}
@media (max-width: 380px) {
  .metric-value.xxl { font-size: 26px; }
}
.year-tile-dark { background: var(--dark); color: var(--dark-fg); border: 0; position: relative; overflow: hidden; }
.year-tile-dark .metric-label { color: var(--muted-2); }
.year-tile-dark .metric-sub { color: var(--muted-2); }

/* Week nav */
.week-nav { display: flex; align-items: center; gap: 6px; }
.nav-btn {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff;
  color: var(--muted-3); cursor: pointer; font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; padding: 0;
}
.nav-btn:hover { border-color: var(--muted-2); }
.nav-btn:disabled { opacity: 0.35; cursor: default; }

/* Week */
.week-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; touch-action: pan-y; }
.week-tile {
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  min-width: 0;
}
.week-tile.week-zones { grid-column: span 2; }
.week-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.delta {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  color: var(--muted); background: var(--border-2);
}
.delta.up { color: var(--accent-3); background: rgba(232,80,2,0.10); }
.delta.down { color: var(--muted); background: var(--border-2); }

.bar-track { height: 4px; background: var(--border-2); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); transition: width .3s; }
.bar-fill.grey { background: var(--muted-2); }

.week-zones-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 6px; }
.week-zone-foot { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted-2); margin-top: 6px; }

/* Recent 7 activities */
.recent-head {
  display: grid; grid-template-columns: 12px 1fr 60px 60px 60px 50px;
  gap: 8px 12px; font-size: 10px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0 0 10px; border-bottom: 1px solid var(--border-2); align-items: center;
}
.recent-head > div:nth-child(n+3) { text-align: right; }
.recent-list { display: flex; flex-direction: column; }
.recent-row {
  display: grid; grid-template-columns: 12px 1fr 60px 60px 60px 50px;
  gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid #F5F5F5; align-items: center;
}
.recent-row:last-child { border-bottom: 0; }
.recent-dot { width: 8px; height: 8px; border-radius: 50%; }
.recent-name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-date { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.recent-cell { font-size: 13px; font-weight: 500; text-align: right; color: var(--muted-3); }
.recent-cell.km { font-weight: 600; color: var(--text); }
.recent-cell.w  { font-weight: 600; color: var(--accent); }

/* Mobile: horizontal scroll inside body, gleiches Muster wie Rundentabelle */
@media (max-width: 720px) {
  [data-block="recent"] .recent-body { overflow-x: auto; }
  [data-block="recent"] .recent-head,
  [data-block="recent"] .recent-list { min-width: 420px; }
  .recent-head, .recent-row {
    grid-template-columns: 12px minmax(160px, 1fr) 60px 60px 60px 50px;
  }
}

/* Accordion Card */
.card-accordion { padding: 0; }
.card-accordion > .acc-head {
  padding: 22px 28px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}
.card-accordion > .acc-head::-webkit-details-marker { display: none; }
.card-accordion > .acc-head::marker { content: ''; }
.card-accordion > .acc-head:hover { background: var(--bg-soft); }
.card-accordion[open] > .acc-head { border-bottom: 1px solid var(--border-2); }

.acc-head-r { display: flex; align-items: center; gap: 12px; }
.chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.card-accordion[open] > .acc-head .chevron { transform: rotate(180deg); }
.acc-body { padding: 20px 28px 24px; }
@media (max-width: 640px) {
  .card-accordion > .acc-head { padding: 18px 20px; }
  .acc-body { padding: 16px 20px 20px; }
}

/* Laps */
.laps-head {
  display: grid;
  grid-template-columns: 42px 72px 84px 62px 62px 62px 62px 62px 1fr;
  gap: 6px 10px;
  font-size: 10px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--border-2);
  align-items: center;
}
.laps-head .lap-cell-num, .laps-head .lap-cell-dur { text-align: right; }
.laps-head .lap-cell-num:first-child { text-align: center; }
.laps-head .lap-cell-zone { text-align: left; padding-left: 10px; }

.laps-list { display: flex; flex-direction: column; }
.lap-row {
  display: grid;
  grid-template-columns: 42px 72px 84px 62px 62px 62px 62px 62px 1fr;
  gap: 6px 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #F5F5F5;
  align-items: center;
  font-size: 13px;
  transition: background 0.15s;
}
.lap-row:last-child { border-bottom: 0; }
.lap-row:hover { background: #FAFAFA; }

.lap-num {
  text-align: center; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  width: 28px; height: 28px; border-radius: 8px; line-height: 28px;
  background: var(--bg-soft); color: var(--muted-3);
  justify-self: center;
}
.lap-dur, .lap-num-cell {
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.lap-dur { color: var(--muted-3); font-weight: 500; }
.lap-num-cell { color: var(--muted-3); }
.lap-num-cell.primary { color: var(--text); font-weight: 600; }

.lap-zone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding-left: 10px;
  color: var(--muted-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lap-zone .lz-num { font-weight: 600; }
.lap-zone.lz-z1 .lz-num { color: #666; }
.lap-zone.lz-z2 .lz-num { color: var(--muted); }
.lap-zone.lz-z3 .lz-num { color: var(--muted-3); }
.lap-zone.lz-z4 .lz-num { color: var(--accent-2); }
.lap-zone.lz-z5 .lz-num { color: var(--accent); }
.lap-zone.lz-z6 .lz-num { color: var(--accent-3); }
.lap-zone.lz-z7 .lz-num { color: var(--accent-4); }

/* Intervall-Klassifikation */
.lap-row.lap-hard    .lap-num { background: var(--accent); color: #fff; }
.lap-row.lap-hard    .lap-num-cell.primary { color: var(--accent); }
.lap-row.lap-rest    { opacity: 0.55; }
.lap-row.lap-rest    .lap-num { background: var(--border-2); color: var(--muted-2); }

/* Mobile: horizontal scroll inside body */
@media (max-width: 720px) {
  .laps-head, .lap-row {
    grid-template-columns: 36px 62px 72px 54px 54px 54px 54px 54px 140px;
    font-size: 12px;
  }
  [data-block="laps"] .acc-body { overflow-x: auto; }
  [data-block="laps"] .laps-head,
  [data-block="laps"] .laps-list { min-width: 660px; }
  .lap-zone { font-size: 11px; }
}

/* 12-week chart */
.chart-wrap { position: relative; }
.chart-grid {
  position: absolute; inset: 0 0 28px 0;
  display: flex; flex-direction: column; justify-content: space-between;
  pointer-events: none;
}
.chart-grid > .gline {
  border-top: 1px dashed rgba(255,255,255,0.06);
  font-size: 9px; color: var(--muted); padding-left: 4px;
}
.chart-grid > .gline.last { border-top: 1px solid rgba(255,255,255,0.15); }

.chart-body {
  height: 240px; display: flex; align-items: flex-end;
  gap: 10px; padding: 0 8px; position: relative;
}
.chart-col {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  height: 100%; justify-content: flex-end; position: relative;
}
.chart-col-bars { width: 100%; display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.chart-col-bars > div {
  flex: 1; border-radius: 4px 4px 0 0;
}
.chart-col-bars > .cb-dist { background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 100%); }
.chart-col-bars > .cb-hm   { background: var(--muted-2); }

.chart-line {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.chart-line polyline { stroke-width: 2px !important; }
.chart-line circle { r: 0.9; fill: #000; stroke: #F9F9F9; stroke-width: 1.5px; }

.chart-xlabels {
  display: flex; gap: 10px; padding: 10px 8px 0; margin-top: 4px;
  color: var(--muted);
}
.chart-xlabels > div { flex: 1; text-align: center; font-size: 10px; }

.chart-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08);
}

/* Monthly Intensity Chart */
.monthly-wrap { overflow-x: auto; }
.monthly-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(52px, 1fr));
  gap: 6px;
  min-width: 720px;
  padding-top: 8px;
}
.monthly-col {
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0;
}
.monthly-time {
  font-size: 12px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.monthly-bar {
  width: 100%; height: 240px;
  display: flex; flex-direction: column;
  background: var(--bg-soft); border-radius: 6px; overflow: hidden;
  align-items: stretch;
}
.mseg {
  color: #fff; font-size: 11px; font-weight: 700; text-align: center;
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
  font-family: 'JetBrains Mono', monospace;
}
.mseg-lit { background: #000000; }
.mseg-mit { background: var(--muted-2); }  /* #A7A7A7 */
.mseg-hit { background: var(--accent); }   /* #E85002 */
.mseg { cursor: pointer; }
.legend-lit { background: #000; }
.legend-mit { background: var(--muted-2); }
.legend-hit { background: var(--accent); }
.monthly-label {
  font-size: 10px; color: var(--muted); text-align: center;
  line-height: 1.3;
}

/* Legend */
.legend { display: flex; gap: 16px; font-size: 11px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--muted-2); }
.legend-dot { width: 10px; height: 10px; border-radius: 2px; }
.legend-orange { background: var(--accent); }
.legend-grey { background: var(--muted-2); }
.legend-line { width: 10px; height: 2px; background: var(--dark-fg); border-radius: 2px; }

/* Footer */
.foot {
  margin-top: 32px; padding: 16px 4px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2);
  flex-wrap: wrap; gap: 8px;
}

/* Tooltip */
.tt {
  position: fixed; z-index: 1000;
  background: rgba(20,20,20,0.96); color: #fff;
  border-radius: 8px; padding: 8px 10px;
  font-size: 12px; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  pointer-events: none; max-width: 220px;
  border: 1px solid rgba(255,255,255,0.08);
}
.tt[hidden] { display: none; }
.tt .tt-title { font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-bottom: 4px; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.05em; }
.tt .tt-row { display: flex; justify-content: space-between; gap: 12px; font-family: 'JetBrains Mono', monospace; }
.tt .tt-row .k { color: var(--muted-2); }
.tt .tt-row .v { font-weight: 600; }

.zbar, .chart-col-bars > div { cursor: pointer; }
.chart-col { cursor: pointer; }

/* Login */
.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 20px; background: var(--bg-soft);
}
.login-card {
  width: 100%; max-width: 340px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}
.login-card .brand-mark { margin-bottom: 8px; }
.login-card h1 { font-size: 22px; margin: 0 0 8px; }
.login-card label { width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'JetBrains Mono', monospace; }
.login-card input {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-xs);
  color: var(--text); padding: 12px 14px; font-size: 15px; font-family: inherit;
  width: 100%;
}
.login-card input:focus { outline: none; border-color: var(--accent); background: #fff; }
.login-card button {
  width: 100%; background: var(--dark); color: #fff; border: 0;
  border-radius: var(--radius-xs);
  padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 4px;
}
.login-card button:hover { background: #222; }
.login-card .err { color: var(--accent-3); font-size: 12px; }
