/* 方向性: 添削された英語ノート。紙とインク、赤ペンは訂正と「いま見るべきもの」だけに使う */
:root {
  --paper: #f7f8fa;
  --sheet: #ffffff;
  --ink: #1b2433;
  --ink-2: #4b5566;
  --rule: #dde1e8;
  --rule-strong: #1b2433;
  --speak: #2b5d8f;
  --listen: #a05a12;
  --pen: #c8402a;
  --up: #2e7a4d;
  --down: #c8402a;
  --heat-0: #e8ebf0;
  --heat-1: #b9cbe0;
  --heat-2: #7fa1c6;
  --heat-3: #3f6d9e;
  --heat-4: #1f4670;
  --st-new: #c9d3df;
  --st-learning: #8aa6c6;
  --st-reviewing: #4b78a6;
  --st-mastered: #1f4670;
  --mark: #fde9a8;
  --focus: #c8402a;

  --serif: "Newsreader", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "IBM Plex Sans JP", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-21: 21px;
  --fs-28: 28px;
  --fs-37: 37px;
  --fs-64: 64px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --r-input: 6px;
  --r-btn: 8px;
  --gutter: 16px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (min-width: 1080px) { :root { --gutter: 40px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181b21;
    --sheet: #20242b;
    --ink: #eef0f3;
    --ink-2: #b4bcc8;
    --rule: #333946;
    --rule-strong: #eef0f3;
    --speak: #7fb0e0;
    --listen: #e2a260;
    --pen: #f07a62;
    --up: #6fc493;
    --down: #f07a62;
    --heat-0: #282d36;
    --heat-1: #2f4a66;
    --heat-2: #3f6d9e;
    --heat-3: #6d9ccd;
    --heat-4: #a9cbee;
    --st-new: #3a4352;
    --st-learning: #4f6f93;
    --st-reviewing: #7299c3;
    --st-mastered: #b3d0ee;
    --mark: #5b4a17;
    --focus: #f07a62;
  }
}

@media (prefers-color-scheme: dark) {
  .sort select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23b4bcc8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-16);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--space-4); top: -48px; z-index: 30;
  background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-4);
  border-radius: var(--r-btn); text-decoration: none;
}
.skip:focus { top: var(--space-2); }
svg { flex-shrink: 0; }

/* ───── トップバー / ナビ ───── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: var(--space-8);
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: var(--space-2);
  text-decoration: none; font-weight: 700; font-size: var(--fs-16); letter-spacing: .02em;
}
.brand-mark { width: 28px; height: 28px; }
.brand-mark rect { fill: var(--ink); }
.brand-mark .a { stroke: var(--paper); stroke-width: 2.4; fill: none; stroke-linejoin: round; }
.brand-mark .pen { stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; }
.updated { margin: 0 0 0 auto; font-size: var(--fs-14); color: var(--ink-2); white-space: nowrap; }

.tabs { display: flex; gap: var(--space-1); height: 100%; }
.tabs a {
  position: relative;
  display: flex; align-items: center; gap: var(--space-2);
  padding: 0 var(--space-3);
  text-decoration: none; font-size: var(--fs-14); font-weight: 500; color: var(--ink-2);
  transition: color .15s var(--ease);
}
.tabs a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after {
  content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: -1px;
  height: 3px; background: var(--pen); border-radius: 2px 2px 0 0;
}

/* スマホ: ナビは親指の届く下へ */
@media (max-width: 719px) {
  /* backdrop-filter があると fixed の基準がトップバーになり、タブバーが下に行かない */
  .topbar { backdrop-filter: none; background: var(--paper); }
  .topbar-inner { height: 56px; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--sheet);
    border-top: 1px solid var(--rule);
    gap: 0;
  }
  .tabs a {
    flex: 1; flex-direction: column; justify-content: center; gap: 2px;
    padding: 0; font-size: var(--fs-12);
  }
  .tabs a svg { width: 24px; height: 24px; }
  .tabs a[aria-current="page"] { color: var(--pen); }
  .tabs a[aria-current="page"]::after { top: 0; bottom: auto; left: 30%; right: 30%; border-radius: 0 0 2px 2px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* ───── ページ ───── */
.page-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.page { padding: var(--space-10) 0 var(--space-16); animation: page-in .2s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }

.page-title {
  font-family: var(--serif); font-weight: 700; font-size: var(--fs-37); line-height: 1.2;
  margin: 0 0 var(--space-8); letter-spacing: -.01em;
}
.page-title:focus { outline: none; }
@media (max-width: 719px) {
  .page { padding-top: var(--space-6); }
  .page-title { font-size: var(--fs-28); margin-bottom: var(--space-6); }
}

h2.section {
  font-size: var(--fs-14); font-weight: 700; letter-spacing: .04em;
  margin: 0 0 var(--space-4); padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--rule-strong);
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
}
h2.section a { font-weight: 500; font-size: var(--fs-14); letter-spacing: 0; text-underline-offset: 3px; }
.block + .block { margin-top: var(--space-12); }

.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5);
  border-radius: var(--r-btn); font-size: var(--fs-14); font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--pen); border-color: var(--pen); }
.btn-secondary { background: transparent; border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-secondary { margin-top: var(--space-6); }

.empty {
  margin: 0; padding: var(--space-8) 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.empty strong { display: block; font-size: var(--fs-16); margin-bottom: var(--space-1); }

/* ───── 概要 ───── */
.home-grid {
  display: grid; gap: var(--space-12) var(--space-10);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "main side" "recent side";
  align-items: start;
}
.h-main { grid-area: main; }
.h-side { grid-area: side; }
.h-recent { grid-area: recent; }
/* スマホでは「今日の復習」を実力の直後に出す（最近の表現より優先） */
@media (max-width: 899px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "recent"; }
}

.scores { display: grid; grid-template-columns: 1fr 1fr; }
.score { padding: var(--space-5) 0 var(--space-6); }
.score + .score { border-left: 1px solid var(--rule); padding-left: var(--space-6); }
.score-name { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--fs-14); font-weight: 700; }
.swatch-line { width: 16px; height: 3px; border-radius: 2px; }
.score-value {
  margin: var(--space-2) 0 var(--space-2);
  font-family: var(--serif); font-size: var(--fs-64); font-weight: 500; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em;
}
.score-value small { font-family: var(--sans); font-size: var(--fs-16); font-weight: 500; letter-spacing: 0; margin-left: var(--space-1); color: var(--ink-2); }
.score-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; font-size: var(--fs-14); }
.level {
  font-family: var(--mono); font-size: var(--fs-14); line-height: 1.4;
  border: 1.5px solid currentColor; border-radius: 4px; padding: 0 6px;
}
.delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.bench-date { margin: var(--space-3) 0 0; font-size: var(--fs-14); color: var(--ink-2); }
@media (max-width: 479px) {
  .scores { grid-template-columns: 1fr; }
  .score + .score { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .score { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: var(--space-4); padding: var(--space-4) 0; }
  .score-name, .score-meta { grid-column: 1 / -1; }
  .score-value { font-size: 52px; }
}

.focus-list { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.focus-list li {
  position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-8);
  border-bottom: 1px solid var(--rule);
}
.focus-list li::before {
  counter-increment: f; content: counter(f);
  position: absolute; left: 0; top: var(--space-3);
  font-family: var(--serif); font-size: var(--fs-21); line-height: 1.2; color: var(--pen); font-weight: 700;
}

.due-card h2.section { color: var(--pen); border-bottom-color: var(--pen); }
.due-card .num {
  margin: var(--space-1) 0 var(--space-4);
  font-family: var(--serif); font-size: var(--fs-64); line-height: 1; font-weight: 500;
}
.due-card .num small { font-family: var(--sans); font-size: var(--fs-16); margin-left: var(--space-1); }
.due-card p.hint { margin: 0 0 var(--space-4); font-size: var(--fs-14); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: 0; }
.mini-stats div { border-top: 1px solid var(--rule); padding-top: var(--space-2); }
.mini-stats dt { font-size: var(--fs-12); font-weight: 700; color: var(--ink-2); }
.mini-stats dd { margin: 0; font-family: var(--serif); font-size: var(--fs-28); line-height: 1.2; font-variant-numeric: tabular-nums; }
.mini-stats dd small { font-family: var(--sans); font-size: var(--fs-14); margin-left: 2px; }

/* ───── 表現ノート ───── */
.vocab-toolbar {
  position: sticky; top: 64px; z-index: 10;
  background: var(--paper);
  padding: var(--space-2) 0 var(--space-3);
  margin: calc(var(--space-2) * -1) 0 0;
}
@media (max-width: 719px) { .vocab-toolbar { top: 56px; } }
.searchbox {
  position: relative; display: flex; align-items: center;
}
.searchbox svg {
  position: absolute; left: var(--space-3); width: 20px; height: 20px;
  fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; pointer-events: none;
}
.searchbox input {
  width: 100%; height: 48px;
  padding: 0 var(--space-10) 0 var(--space-10);
  font-size: var(--fs-16);
  background: var(--sheet); border: 1.5px solid var(--rule); border-radius: var(--r-input);
  transition: border-color .15s var(--ease);
}
.searchbox input:hover { border-color: var(--ink-2); }
.searchbox input:focus { outline: none; border-color: var(--ink); }
.searchbox input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.searchbox input::placeholder { color: var(--ink-2); }
.kbd-hint {
  position: absolute; right: var(--space-3);
  font-family: var(--mono); font-size: var(--fs-12); line-height: 1;
  border: 1px solid var(--rule); border-radius: 4px; padding: 4px 7px; color: var(--ink-2);
}
.searchbox input:focus ~ .kbd-hint, .searchbox input:not(:placeholder-shown) ~ .kbd-hint { display: none; }
@media (hover: none) { .kbd-hint { display: none; } }

.toolbar-row { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.chips {
  display: flex; gap: var(--space-2); flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--gutter) * -1) 0 0; padding-right: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 var(--space-3);
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--sheet); font-size: var(--fs-14); cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.chip:hover { border-color: var(--ink-2); }
.chip b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] b { color: inherit; }
.chip.due:not([aria-pressed="true"]) { border-color: var(--pen); color: var(--pen); }
.chip.due:not([aria-pressed="true"]) b { color: var(--pen); }
.sort select {
  height: 36px; padding: 0 var(--space-8) 0 var(--space-3);
  border: 1px solid var(--rule); border-radius: var(--r-input); background: var(--sheet);
  font-size: var(--fs-14); cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%234b5566' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
}
@media (max-width: 719px) {
  .chips { margin-right: 0; padding-right: var(--space-6); }
  .sort select { padding-left: var(--space-2); max-width: 8.5em; }
}
/* 横スクロールの続きがあることを右端のフェードで示す */
.chips {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

.result-count { margin: var(--space-2) 0 var(--space-2); font-size: var(--fs-14); color: var(--ink-2); }
.entries { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.entry { border-bottom: 1px solid var(--rule); }
.entry-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-4);
  width: 100%; padding: var(--space-5) 0; text-align: left;
  background: none; border: 0; cursor: pointer;
}
a.entry-head { text-decoration: none; color: inherit; }
.entry-head:hover .term { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.term-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.term { font-family: var(--serif); font-size: var(--fs-28); font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.kind { font-family: var(--serif); font-style: italic; font-size: var(--fs-16); color: var(--ink-2); }
.meaning { display: block; margin-top: var(--space-1); font-size: var(--fs-16); }
.example { display: block; margin-top: var(--space-2); font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.entry-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); padding-top: 6px; }
.status-tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); font-weight: 700; white-space: nowrap; }
.status-tag i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.due-tag { font-size: var(--fs-12); font-weight: 700; color: var(--pen); white-space: nowrap; }
.chev { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; transition: transform .2s var(--ease); }
.entry-head[aria-expanded="true"] .chev { transform: rotate(180deg); }
mark { background: var(--mark); color: inherit; border-radius: 2px; padding: 0 1px; }

.correction {
  display: block; margin-top: var(--space-3);
  font-size: var(--fs-16); line-height: 1.6;
}
.correction s { text-decoration-color: var(--pen); text-decoration-thickness: 2px; color: var(--ink-2); }
.correction .fix { font-family: "Newsreader", serif; font-style: italic; color: var(--pen); font-size: 18px; font-weight: 500; }
.correction .arrow { color: var(--pen); margin: 0 var(--space-2); }

.entry-detail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4) var(--space-8);
  padding: 0 0 var(--space-6);
  font-size: var(--fs-14);
}
.entry-detail dt { font-size: var(--fs-12); font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.entry-detail dd { margin: 0; }
.streak { display: flex; gap: 4px; margin-top: 4px; }
.streak i { width: 18px; height: 6px; border-radius: 1px; background: var(--rule); }
.streak i.on { background: var(--speak); }
.hist { display: flex; gap: 6px; flex-wrap: wrap; font-family: var(--mono); }
.hist .ok { color: var(--up); }
.hist .ng { color: var(--down); }

@media (max-width: 719px) {
  .term { font-size: 24px; }
  .entry-head { padding: var(--space-4) 0; }
}

/* ───── ベンチマーク ───── */
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-10); }
@media (max-width: 719px) {
  .charts { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  /* SVG は画面幅に合わせて縮むので、縮んだ後も 12px 以上になるよう viewBox 上の文字を大きくする */
  .chart .tick { font-size: 17px; }
  .chart .last { font-size: 22px; }
}
.chart-title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); font-size: var(--fs-14); font-weight: 700; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .tick { fill: var(--ink-2); font-size: 12px; font-family: var(--sans); }
.chart .grid { stroke: var(--rule); }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .08; }
.chart .pt { stroke: var(--paper); stroke-width: 2; }
.chart .last { font-family: var(--serif); font-size: 18px; font-weight: 700; }

.rubric { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.rubric th, .rubric td { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.rubric thead th { font-size: var(--fs-12); color: var(--ink-2); font-weight: 700; padding-top: 0; }
.rubric td.num { font-family: var(--serif); font-size: var(--fs-21); font-variant-numeric: tabular-nums; width: 4em; }
.rubric td.diff { width: 4.5em; text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.rubric .bar { position: relative; height: 8px; background: var(--rule); border-radius: 1px; }
.rubric .bar span { position: absolute; inset: 0 auto 0 0; background: var(--speak); border-radius: 1px; }
.rubric .bar .prev { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.rubric-note { margin: var(--space-2) 0 0; font-size: var(--fs-12); color: var(--ink-2); display: flex; align-items: center; gap: var(--space-2); }
.rubric-note i { width: 2px; height: 12px; background: var(--ink); display: inline-block; }
@media (max-width: 479px) { .rubric .barcell, .rubric-note { display: none; } }

.runs { list-style: none; margin: 0; padding: 0; }
.run { display: grid; grid-template-columns: 7.5em 1fr 1fr; gap: var(--space-4); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-14); }
.run time { font-weight: 700; }
.run .v { font-family: var(--serif); font-size: var(--fs-21); font-variant-numeric: tabular-nums; margin-right: var(--space-2); }
.run-label { font-size: var(--fs-12); color: var(--ink-2); display: block; }
@media (max-width: 479px) { .run { grid-template-columns: 1fr 1fr; } .run time { grid-column: 1 / -1; } }

/* ───── 練習記録 ───── */
.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); margin: 0; }
.totals div { padding: var(--space-4) var(--space-4) var(--space-4) 0; }
.totals div + div { border-left: 1px solid var(--rule); padding-left: var(--space-4); }
.totals dt { font-size: var(--fs-12); font-weight: 700; color: var(--ink-2); }
.totals dd { margin: 0; font-family: var(--serif); font-size: var(--fs-37); line-height: 1.2; font-variant-numeric: tabular-nums; }
.totals dd small { font-family: var(--sans); font-size: var(--fs-14); margin-left: 2px; }
@media (max-width: 599px) {
  .totals { grid-template-columns: 1fr 1fr; }
  .totals div:nth-child(3) { border-left: 0; padding-left: 0; }
  .totals div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

.heat-wrap { overflow-x: auto; }
.heat svg { display: block; }
.heat .tick { fill: var(--ink-2); font-size: 12px; font-family: var(--sans); }
.heat-legend { display: flex; align-items: center; gap: 4px; margin-top: var(--space-2); font-size: var(--fs-12); color: var(--ink-2); }
.heat-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }

.sessions { list-style: none; margin: 0; padding: 0; }
.session { display: grid; grid-template-columns: 8em minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--rule); }
.session time { font-weight: 700; font-size: var(--fs-14); }
.session .mode { font-size: var(--fs-12); color: var(--ink-2); display: block; font-weight: 400; }
.session .topics { margin: 0; }
.session .note { margin: var(--space-1) 0 0; font-size: var(--fs-14); color: var(--ink-2); }
.session .mins { font-family: var(--serif); font-size: var(--fs-21); font-variant-numeric: tabular-nums; }
.session .mins small { font-family: var(--sans); font-size: var(--fs-12); }
@media (max-width: 599px) {
  .session { grid-template-columns: minmax(0, 1fr) auto; }
  .session time { grid-column: 1; }
  .session .body { grid-column: 1 / -1; grid-row: 2; }
  .session .mins { grid-column: 2; grid-row: 1; }
}

.footer {
  max-width: 1120px; margin: 0 auto; padding: var(--space-8) var(--gutter) var(--space-10);
  font-size: var(--fs-14); color: var(--ink-2); border-top: 1px solid var(--rule);
}
.footer p { margin: 0; }
