/* ============================================================
   FIGS · 高强度冲刺封闭营 · 午餐选餐
   设计语言：麦肯锡风格 — 海军蓝单色、平面、薄分隔线、留白
   字体：PingFang SC 统一字体栈
   ============================================================ */

:root {
  --font:  "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
           -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Palette — FIGS / McKinsey navy */
  --ink:        #051C2C;
  --ink-soft:   #2C3E50;
  --ink-mute:   #6C7681;
  --ink-faint:  #A3ABB5;
  --paper:      #FFFFFF;
  --surface:    #F7F8FA;
  --surface-2:  #EEF0F3;
  --rule:       #DDE1E5;
  --rule-soft:  #ECEEF1;
  --bright:     #2251FF;
  --bright-soft:#EAEFFF;

  /* Meal grid row tints — very pale, no clashes with navy */
  --row-warm:   #FFF9EC;
  --row-cool:   #F0F6EE;
  --row-sel:    #051C2C;
  --row-sel-bg: #EAEFFF;

  --danger:     #B00020;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 1, "kern" 1;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity 0.15s ease;
}
a:hover { opacity: 0.6; }
a.no-underline { border-bottom: 0; }
a.no-underline:hover { opacity: 0.75; }

/* ============================================================
   Typography
   ============================================================ */

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

.display {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.022em;
}

.deck {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 38rem;
  font-weight: 400;
}

.muted { color: var(--ink-mute); }
.hint  { color: var(--ink-mute); font-size: 0.85rem; }
.hint.err { color: var(--danger); }
.hint.ok  { color: var(--ink); }

/* ============================================================
   App bar
   ============================================================ */

.appbar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.appbar-inner {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  border: 0;
}
.brand:hover { opacity: 0.75; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .appbar-inner { padding: 0 1.2rem; gap: 1rem; }
  .brand-logo { height: 32px; }
}

.appnav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.appnav a {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-weight: 500;
  border: 0;
  padding-bottom: 2px;
}
.appnav a:hover { opacity: 1; color: var(--ink); }
.appnav a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--ink);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-decoration: none;
  border-radius: 0;
}
.btn:hover { opacity: 0.85; }
.btn:active { opacity: 1; }
.btn:focus { outline: 2px solid var(--bright); outline-offset: 2px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; opacity: 1; }

.btn-bare {
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  padding: 0.55rem 0.4rem;
}
.btn-bare:hover { color: var(--ink); opacity: 1; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

.btn-link {
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 0;
  font-size: 0.84rem;
  cursor: pointer;
  border-bottom: 1px solid var(--ink);
}
.btn-link:hover { opacity: 0.6; }
.btn-link.danger { color: var(--danger); border-bottom-color: var(--danger); }

/* ============================================================
   Page layout
   ============================================================ */

.page {
  max-width: 84rem;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.page-narrow {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

@media (max-width: 640px) {
  .page,
  .page-narrow { padding: 2rem 1.2rem 4rem; }
}

/* ============================================================
   Page header
   ============================================================ */

.form-header {
  margin-bottom: 3rem;
  text-align: left;
}
.form-header .eyebrow { margin-bottom: 1.2rem; }
.form-header .display { margin-bottom: 0.9rem; }
.form-header .deck { margin-bottom: 0; }

/* ============================================================
   Form sections
   ============================================================ */

.form-section {
  margin: 2.6rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  gap: 1rem;
}
.section-head h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-head .section-num {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  white-space: nowrap;
}

.section-help {
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin: 0 0 1.4rem;
  max-width: 38rem;
}

/* ---------- Fields ---------- */

.field { display: block; margin-bottom: 1.2rem; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
  margin-bottom: 0.45rem;
}
.field label .req { color: var(--danger); margin-left: 0.2em; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="search"],
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.9rem;
  line-height: 1.5;
  transition: border-color 0.15s ease;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { min-height: 5rem; resize: vertical; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem 1.4rem;
}
@media (min-width: 640px) {
  .field-grid { grid-template-columns: repeat(3, 1fr); }
}

.row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Notice card — the official 入营通知 displayed at top of index
   ============================================================ */

.notice {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 2rem 2.2rem;
  margin: 0 0 2rem;
  position: relative;
}
.notice-tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--ink-mute);
  margin-bottom: 1.4rem;
}
.notice-title {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.notice-greet {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.notice-lede {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1.6rem;
}
.notice h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.6rem 0 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}
.notice h3:first-of-type { padding-top: 0; border-top: 0; margin-top: 0; }
.notice .h3-num {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-right: 0.6rem;
  font-weight: 600;
}
.notice p,
.notice li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.notice p { margin: 0 0 0.7rem; }
.notice ol,
.notice ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.4rem;
}
.notice li { margin-bottom: 0.3rem; }
.notice strong { color: var(--ink); font-weight: 600; }
.notice .callout {
  background: var(--surface);
  border-left: 3px solid var(--ink);
  padding: 0.85rem 1.1rem;
  margin: 0.8rem 0;
  font-size: 0.92rem;
}
.notice .meal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 0.4rem;
  font-size: 0.9rem;
}
.notice .meal-table td {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  vertical-align: middle;
}
.notice .meal-table td .code {
  color: var(--ink);
  font-weight: 600;
  margin-right: 0.3em;
  font-feature-settings: "tnum" 1;
}
.notice-sign {
  text-align: right;
  margin-top: 1.6rem;
  font-size: 0.86rem;
  color: var(--ink-mute);
  line-height: 1.6;
}
.notice-sign strong { color: var(--ink); display: block; font-weight: 500; }

.notice-scroll-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.4rem 0 0;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.notice-scroll-cta::before,
.notice-scroll-cta::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
  max-width: 4rem;
}

@media (max-width: 640px) {
  .notice { padding: 1.5rem 1.2rem; }
  .notice-title { font-size: 1.2rem; }
}

/* ============================================================
   Meal selection grid
   ============================================================ */

.grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rule);
  margin-bottom: 0.8rem;
}
table.meal-grid {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: center;
}
.meal-grid th,
.meal-grid td {
  border: 1px solid var(--rule-soft);
  padding: 0.6rem 0.5rem;
  vertical-align: middle;
}
.meal-grid thead th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
}
.meal-grid thead th:first-child { text-align: left; padding-left: 1rem; }
.meal-grid thead th .d-date {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
}
.meal-grid thead th .d-meal {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-mute);
  font-weight: 500;
  margin-top: 0.15rem;
}
.meal-grid tbody th {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.6rem 1rem;
  font-size: 0.92rem;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--paper);
}
.meal-grid tbody tr.row-warm th { background: var(--row-warm); }
.meal-grid tbody tr.row-cool th { background: var(--row-cool); }
.meal-grid .dish-code {
  font-weight: 600;
  color: var(--ink);
  margin-right: 0.35rem;
  font-feature-settings: "tnum" 1;
}
.meal-grid td.cell {
  cursor: pointer;
  transition: background-color 0.1s, color 0.1s;
  background: var(--paper);
  user-select: none;
  min-width: 56px;
  height: 42px;
  color: transparent;
}
.meal-grid td.cell:hover {
  background: var(--surface);
  color: var(--ink-faint);
}
.meal-grid td.cell:hover::before { content: "+"; font-weight: 400; }
.meal-grid td.cell.selected {
  background: var(--ink) !important;
  color: #fff !important;
  font-weight: 600;
}
.meal-grid td.cell.selected:hover::before { content: ""; }
.meal-grid td.cell.selected::after { content: "✓"; font-size: 1rem; }

.grid-help {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin: 0;
}

/* ============================================================
   Action bar (submit row)
   ============================================================ */

.action-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

/* ============================================================
   Modal
   ============================================================ */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 28, 44, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 2rem;
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-lg { max-width: 620px; }
.modal h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 500;
}
.modal .modal-deck {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin: 0 0 1.4rem;
}

.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  margin: 0 auto;
  width: fit-content;
}
.qr-box img,
.qr-box canvas { display: block; }

.share-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}
.share-row label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  white-space: nowrap;
}
.share-row input {
  flex: 1;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 0.5rem 0.7rem;
  background: var(--surface);
  border-radius: 0;
  min-width: 0;
}
.share-row input:focus { outline: none; border-color: var(--ink); }

.modal-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.6rem;
}
.modal-actions .btn { flex: 1; justify-content: center; }
.modal-actions .btn-link { flex: 0; }

/* ============================================================
   Report page
   ============================================================ */

.report-cover {
  padding: 0 0 2.4rem;
  margin: 0 0 2.4rem;
  border-bottom: 1px solid var(--ink);
}
.report-cover-tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--ink-mute);
  margin-bottom: 1.2rem;
}
.report-cover h1 {
  font-size: clamp(2rem, 4.6vw, 2.8rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.022em;
  margin: 0.4rem 0 0.6rem;
}
.report-cover-deck {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}
.report-cover-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
@media (min-width: 480px) {
  .report-cover-meta { grid-template-columns: repeat(3, 1fr); }
}
.report-cover-meta .item .label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.report-cover-meta .item .value {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

.report-block { margin: 2.4rem 0; }
.report-block h2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1rem;
}

.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.report-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
  gap: 1rem;
}
.report-list .day {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.report-list .dish {
  font-size: 0.92rem;
  color: var(--ink);
  text-align: right;
}
.report-list .dish.empty { color: var(--ink-faint); font-weight: 400; }

.notes-box {
  background: var(--surface);
  border-left: 3px solid var(--ink);
  padding: 0.9rem 1.2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.share-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.8rem 2rem;
  margin: 2rem 0 0;
  border: 1px solid var(--ink);
}
.share-block-kicker {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.share-block .share-row { margin-top: 0; }
@media (max-width: 600px) {
  .share-block {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }
}

/* ============================================================
   Admin
   ============================================================ */

.admin-hero { margin: 0 0 2.4rem; }
.admin-hero h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.admin-hero p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.admin-bar-left { font-size: 0.86rem; color: var(--ink-mute); }
.admin-bar-left strong { color: var(--ink); font-weight: 500; }
.admin-bar-right { display: flex; gap: 0.5rem; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.4rem;
}
@media (min-width: 640px) {
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
}
.admin-stat {
  padding: 1.4rem 1.6rem;
  border-right: 1px solid var(--rule);
}
.admin-stat:nth-child(2n) { border-right: 0; }
@media (min-width: 640px) {
  .admin-stat:nth-child(2n) { border-right: 1px solid var(--rule); }
  .admin-stat:last-child { border-right: 0; }
}
.admin-stat .value {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.admin-stat .label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-top: 0.4rem;
}

.stats-table-wrap { overflow-x: auto; border: 1px solid var(--rule); margin-bottom: 2.4rem; }
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: center;
  min-width: 720px;
}
.stats-table th,
.stats-table td {
  border: 1px solid var(--rule-soft);
  padding: 0.55rem 0.5rem;
}
.stats-table thead th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.stats-table thead th:first-child { text-align: left; padding-left: 1rem; }
.stats-table tbody th {
  text-align: left;
  padding-left: 1rem;
  font-weight: 500;
  white-space: nowrap;
}
.stats-table tbody tr.row-warm th { background: var(--row-warm); }
.stats-table tbody tr.row-cool th { background: var(--row-cool); }
.stats-table .total-col {
  font-weight: 600;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}
.stats-table tfoot td,
.stats-table tfoot th {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  border-color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stats-table tfoot th { text-align: left; padding-left: 1rem; }
.stats-cell { color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.stats-cell.hot { color: var(--ink); font-weight: 600; }

.list-table-wrap { overflow-x: auto; }
.list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.list-table thead th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.list-table tbody td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.list-table tbody tr:hover td { background: var(--surface); }
.list-table .name { font-weight: 500; color: var(--ink); }
.list-table .badge {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--rule);
  font-size: 0.72rem;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.list-table .badge.full { color: var(--ink); border-color: var(--ink); }
.list-table .notes-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.list-table .time-cell {
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.list-table .row-actions {
  white-space: nowrap;
  text-align: right;
}
.list-table .row-actions .btn-link { margin-left: 1rem; }

.empty {
  text-align: center;
  color: var(--ink-mute);
  padding: 3rem 1rem;
  font-size: 0.95rem;
  border: 1px dashed var(--rule);
}
.empty strong { display: block; color: var(--ink); margin-bottom: 0.4rem; font-weight: 500; }

.search-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.search-row h2 {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.search-row input[type="search"] {
  max-width: 320px;
  font-family: var(--font);
  font-size: 0.92rem;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.8rem;
  background: var(--paper);
}
.search-row input[type="search"]:focus { outline: none; border-color: var(--ink); }

/* ============================================================
   Login view
   ============================================================ */

.login-card {
  max-width: 26rem;
  margin: 4rem auto 0;
  border: 1px solid var(--rule);
  padding: 2.4rem;
}
.login-card .display { font-size: 1.6rem; margin-bottom: 0.6rem; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  text-align: center;
  color: var(--ink-mute);
  font-size: 0.78rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.footer a { color: var(--ink-mute); border-bottom-color: var(--rule); }

/* ============================================================
   Utility
   ============================================================ */

.hidden { display: none !important; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
[hidden] { display: none !important; }

@media print {
  body { background: white; }
  .no-print { display: none !important; }
  .appbar, .footer { display: none !important; }
  .share-block { display: none !important; }
}
