:root {
  --bg: #071018;
  --paper: #0e1c28;
  --ink: #f4f8fb;
  --muted: #9fb4c6;
  --line: rgba(186, 220, 242, 0.18);
  --accent: #8ecfff;
  --accent-soft: rgba(142, 207, 255, 0.14);
  --on-accent: #071018;
  --warn: #e6c27a;
  --warn-soft: rgba(230, 194, 122, 0.16);
  --danger: #f0a8a4;
  --danger-soft: rgba(240, 168, 164, 0.16);
  --ok: #8ed4ae;
  --ok-soft: rgba(142, 212, 174, 0.16);
  --side: #08141e;
  --side-ink: #f4f8fb;
  --side-muted: #8aa0b4;
  --radius: 16px;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100dvh; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--bg);
  padding: 24px;
}
.login-card {
  width: min(400px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
  display: grid;
  gap: 12px;
}
.login-card h1 { margin: 0; font-size: 28px; letter-spacing: -0.04em; }
.login-card h1 b { color: var(--accent); margin-right: 6px; }
.mark { margin: 0; letter-spacing: 0.16em; font-size: 12px; color: var(--side-muted); }
.hint { color: var(--muted); margin: 0 0 6px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
input, select, textarea {
  background: #0b1822;
  border: 1px solid rgba(186, 220, 242, 0.28);
  border-radius: 6px;
  padding: 9px 10px;
  min-height: 40px;
  color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input.filled, select.filled { border-color: var(--ok); }
input::placeholder { color: #7f96aa; }
input[type="checkbox"] { accent-color: var(--accent); }
.btn, .btn-ghost, .btn-danger {
  border-radius: 6px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn { background: var(--accent); color: var(--on-accent); }
label.btn { display: inline-flex; align-items: center; cursor: pointer; }
label.btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.btn:hover { background: #b7e4ff; }
.btn:active, .btn-ghost:active, .btn-danger:active { transform: scale(0.98); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger { background: #c45c56; color: #fff; }
.login-card .btn { margin-top: 6px; }

.shell { min-height: 100dvh; display: grid; grid-template-columns: 232px 1fr; }
.side {
  background: var(--side);
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 18px 12px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.brand { padding: 4px 10px 16px; }
.brand strong { display: block; font-size: 18px; letter-spacing: -0.03em; }
.brand strong b { color: var(--accent); margin-right: 4px; }
.brand span { color: var(--side-muted); font-size: 12px; }
.nav { display: grid; gap: 14px; overflow: auto; padding-right: 2px; }
.nav-group p { margin: 0 10px 4px; font-size: 11px; color: var(--side-muted); }
.nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 10px;
}
.nav-ico { color: var(--accent); display: flex; }
.nav-ico svg { width: 16px; height: 16px; }
.nav a:hover { background: rgba(142, 207, 255, 0.08); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.who { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.who b { display: block; }
.who span { color: var(--side-muted); font-size: 12px; }
.who .actions { margin-top: 8px; }
.workspace {
  min-width: 0;
  background:
    radial-gradient(ellipse 70% 42% at 92% 0%, rgba(92, 168, 214, 0.14), transparent 62%),
    radial-gradient(ellipse 46% 28% at 0% 100%, rgba(255, 176, 96, 0.08), transparent 58%),
    var(--bg);
}
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 0;
  background: rgba(8, 20, 30, 0.9);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffb56a 32%, #8ecfff 70%, transparent);
  opacity: 0.75;
}
.crumb { display: flex; flex-direction: column; line-height: 1.2; }
.crumb span { font-size: 11px; color: var(--muted); }
.crumb strong { font-size: 15px; letter-spacing: -0.02em; }
.top-meta { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.top-meta .chip { background: var(--accent-soft); border: 1px solid rgba(142, 207, 255, 0.28); border-radius: 8px; padding: 4px 8px; color: var(--accent); }
.menu-btn { display: none; }
#main { padding: 16px 18px 40px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.page-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.04em; font-weight: 650; line-height: 1.15; color: var(--ink); }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters input, .filters select { min-width: 180px; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
th { position: sticky; top: 0; background: #102433; font-weight: 600; color: var(--muted); font-size: 12px; }
td.num, th.num { text-align: right; }
tbody tr:hover td { background: rgba(142, 207, 255, 0.06); }
tr:last-child td { border-bottom: 0; }
.empty, .muted { color: var(--muted); }
.error { color: var(--danger); }

.badge { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 12px; background: rgba(244, 248, 251, 0.08); color: var(--ink); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
tr.late td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
tr.soon td:first-child { box-shadow: inset 3px 0 0 var(--warn); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.metric { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin-top: 6px; font-size: 24px; letter-spacing: -0.04em; font-weight: 650; font-variant-numeric: tabular-nums; }
.tickets { display: grid; gap: 10px; }
.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.ticket header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ticket header b { font-size: 16px; }
.ticket .meta { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.quad div { background: rgba(244, 248, 251, 0.04); border-radius: 10px; padding: 8px 10px; }
.quad span, .quad em { display: block; color: var(--muted); font-size: 12px; font-style: normal; }
.quad strong { display: block; margin: 2px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); text-decoration: none; }
.chip.miss { background: var(--danger-soft); color: var(--danger); }
details.more { margin: 12px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
details.more summary { cursor: pointer; font-weight: 600; }
details.more .sheet { margin-top: 12px; }
.metric em { font-style: normal; color: var(--muted); font-size: 12px; }
.metric.warn em, .metric.down strong, .metric.down em { color: var(--danger); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 12px; }
.card h3 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.card h3 em { font-style: normal; color: var(--muted); font-size: 12px; font-weight: 500; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.card li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.card li .btn { flex: none; white-space: nowrap; }
.card .more { margin: 8px 0 0; }
.alert-list a { color: var(--ink); text-decoration: none; }
.alert-list a:hover { color: var(--accent); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 10px 0 0; }
.steps li { font-size: 12px; color: var(--muted); padding: 3px 8px; border-radius: 6px; background: rgba(244, 248, 251, 0.06); }
.steps li.done { background: var(--accent-soft); color: var(--accent); }

.bars { display: grid; gap: 8px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(108px, 42%) 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.bar { display: block; height: 8px; background: var(--accent); border-radius: 99px; max-width: 100%; }
.bar.down { background: var(--danger); }
.bar-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: rgba(244, 248, 251, 0.08); margin: 8px 0 12px; }
.mix i { display: block; height: 100%; }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 99px; }

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(20, 33, 28, 0.36);
  z-index: 20;
  display: flex;
  justify-content: flex-end;
}
.drawer[hidden] { display: none; }
.drawer form {
  width: auto;
  flex: 1;
  min-width: 280px;
  background: var(--paper);
  height: 100%;
  padding: 20px 18px 28px;
  overflow: auto;
  box-shadow: none;
  display: grid;
  align-content: start;
  gap: 10px;
}
.book-view {
  width: min(460px, 100%);
  height: 100%;
  background: var(--paper);
  box-shadow: var(--shadow);
  display: flex;
}
.book-view.has-file { width: min(1120px, 100%); }
.file-pane {
  width: min(640px, 58%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #08141e;
}
.file-pane h3 { margin: 16px 16px 8px; font-size: 14px; }
.file-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.file-tabs button.active { border-color: var(--accent); color: var(--accent); }
.file-stage { flex: 1; min-height: 0; background: #fff; }
.file-stage iframe, .file-stage img { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: #fff; }
.file-stage .file-fallback { padding: 24px 16px; color: #123044; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: rgba(142, 207, 255, 0.08); }
@media (max-width: 800px) {
  .book-view.has-file { flex-direction: column; width: 100%; }
  .file-pane { width: 100%; height: 42vh; border-right: 0; border-bottom: 1px solid var(--line); }
}
.drawer h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.03em; }
.drawer .row-actions { display: flex; gap: 8px; margin-top: 6px; }

.toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 30;
  background: #123044;
  color: var(--ink);
  border: 1px solid rgba(142, 207, 255, 0.4);
  padding: 10px 14px;
  border-radius: 8px;
  max-width: min(360px, calc(100% - 32px));
}
.toast[hidden] { display: none; }
.portal {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  overflow: hidden;
}
.portal-banner {
  position: relative;
  z-index: 1;
  margin: -16px -16px 8px;
  padding: 16px 18px 12px;
  background: #102433;
}
.portal-banner h1 { margin: 0; font-size: 28px; letter-spacing: -0.04em; color: var(--ink); font-weight: 650; }
.portal-banner h1 b { color: var(--accent); font-weight: 750; margin-right: 6px; }
.portal-banner p { margin: 6px 0 0; color: var(--muted); }
.tiles { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile {
  min-height: 92px;
  background: #102433;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
}
.tile:hover { transform: translateY(-2px); border-color: rgba(142, 207, 255, 0.55); }
.tile-ico { color: var(--accent); display: flex; }
.tile svg { width: 34px; height: 34px; }
.tile span:last-child { font-size: 14px; }
button.tile { width: 100%; font: inherit; }
.module-board { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.module-board h2 { margin: 0 0 12px; font-size: 26px; letter-spacing: -0.04em; }
.module-board .metrics { grid-template-columns: 1fr; margin-bottom: 12px; }
.flow { margin-top: 12px; width: 100%; }
.flow h2 { margin: 0 0 2px; font-size: 16px; letter-spacing: -0.03em; }
.flow .note { margin: 0 0 10px; }
.portal-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-top: 18px; }
.portal-foot h2 { margin: 0; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.portal-foot p { margin: 8px 0 0; display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.section { margin-top: 18px; }
.section h2 { font-size: 15px; margin: 0 0 8px; letter-spacing: -0.02em; }
.section article.card { margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { font-size: 12px; color: var(--muted); }

.gate { min-height: 100dvh; position: relative; overflow: auto; color: #f4f8fb; background: #071018; }
.gate-sea { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 42% at 78% 108%, rgba(255, 176, 96, 0.22), transparent 62%),
  radial-gradient(ellipse 46% 32% at 12% 0%, rgba(92, 168, 214, 0.2), transparent 70%),
  linear-gradient(180deg, #071018 0%, #0c1c2a 58%, #102433 100%); }
.gate-lane { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 72px, rgba(180, 214, 236, 0.045) 72px 73px); mask-image: linear-gradient(180deg, transparent 20%, #000 70%); }
.gate-glow { position: absolute; left: -12%; right: -12%; bottom: 16%; height: 2px; background: linear-gradient(90deg, transparent, #ffb56a 28%, #fff4df 48%, #8ecfff 72%, transparent); box-shadow: 0 0 28px rgba(255, 181, 106, 0.65); }
.gate-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 36px; flex-wrap: wrap; }
.gate-mark { width: 16px; height: 12px; border-top: 1.5px solid rgba(244, 248, 251, 0.8); border-left: 1.5px solid rgba(244, 248, 251, 0.8); }
.gate-top h1 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0.22em; }
.gate-user { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gate-user b { font-weight: 650; }
.gate-user span { color: #9fb4c6; font-size: 13px; }
.gate-stage { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 8px 36px 120px; }
.gate .module-board h2 { color: #f4f8fb; }
.gate-doors { display: grid; gap: 16px; width: min(560px, 100%); margin: 10vh auto 0; }
.gate-block { display: grid; gap: 10px; }
.gate-label { margin: 0; font-size: 13px; letter-spacing: 0.18em; color: #8ecfff; }
.gate-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gate-links button { color: #f4f8fb; background: rgba(8, 18, 28, 0.62); border: 1px solid rgba(186, 220, 242, 0.32); border-radius: 999px; min-height: 36px; padding: 6px 14px; }
.gate-links button:hover { border-color: rgba(158, 214, 255, 0.85); background: rgba(16, 40, 60, 0.78); }
.gate-doors button { text-align: left; color: #f4f8fb; background: rgba(8, 18, 28, 0.62); border: 1px solid rgba(186, 220, 242, 0.32); border-radius: 18px; padding: 26px 28px 22px; display: grid; gap: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 40px rgba(0, 0, 0, 0.28); }
.gate-doors button:hover { border-color: rgba(158, 214, 255, 0.85); background: rgba(16, 40, 60, 0.78); transform: translateY(-3px); }
.gate-doors button:active { transform: translateY(0) scale(0.99); }
.gate-doors span { font-size: 12px; letter-spacing: 0.22em; color: #8ecfff; }
.gate-doors strong { font-size: clamp(28px, 3vw, 40px); font-weight: 650; letter-spacing: -0.03em; }
.gate-doors em { font-style: normal; font-size: 14px; color: #d5e4f0; }
.gate-dog { position: absolute; right: 28px; bottom: 8px; width: 150px; height: auto; color: rgba(226, 238, 248, 0.72); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .gate-glow { animation: gate-drift 16s ease-in-out infinite; }
}
@keyframes gate-drift {
  0%, 100% { transform: translateX(-6%); opacity: 0.72; }
  50% { transform: translateX(6%); opacity: 1; }
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.tabs button[aria-current="page"] { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.fee-line { display: grid; grid-template-columns: 1fr 1fr 120px; gap: 8px; }
.ar-line { display: grid; grid-template-columns: 1.4fr 88px 120px 1fr; gap: 8px; margin-bottom: 8px; }
.fee-preview { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.fee-preview span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink); font-size: 13px; }
.sea-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
.sea-projects a { text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: grid; gap: 6px; }
.sea-projects a:hover { border-color: rgba(142, 207, 255, 0.7); }
.sea-projects span { color: var(--accent); letter-spacing: 0.16em; font-size: 12px; }
.sea-projects strong { font-size: 32px; letter-spacing: -0.03em; }
.sea-projects em { color: var(--muted); font-style: normal; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.sheet .wide { grid-column: 1 / -1; }
.req::after { content: " *"; color: var(--danger); }
.ledger table { width: max-content; min-width: 100%; }
.ledger th, .ledger td { white-space: nowrap; }
.line-grid { display: grid; grid-template-columns: 110px 80px 70px 70px 80px 80px 80px 90px 36px; gap: 6px; align-items: center; margin-bottom: 6px; }
.charge-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #0b1822; }
.charge-head, .charge-line { display: grid; grid-template-columns: 88px 120px 100px 72px 100px 72px 84px 72px 64px 72px 84px 72px 84px 96px 96px 84px 84px 36px; gap: 4px; align-items: center; min-width: 1560px; }
.charge-head { padding: 8px; font-size: 12px; color: var(--muted); background: #102433; }
.charge-line { padding: 6px 8px; border-top: 1px solid var(--line); }
.charge-line input, .charge-line select { min-height: 32px; padding: 4px 6px; }
.line-grid input, .line-grid select { min-height: 34px; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 18px; }
@media (max-width: 1100px) {
  .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    z-index: 15;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .side.open { transform: translateX(0); }
  .menu-btn { display: inline-flex; }
  .cards, .tiles, .module-board { grid-template-columns: 1fr 1fr; }
  .module-board { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .portal-banner h1 { font-size: 22px; }
  .gate-top { padding: 12px 18px; }
  .gate-user { width: 100%; margin-left: 0; }
  .gate-stage { padding: 8px 18px 110px; }
  .gate-dog { width: 108px; right: 8px; }
  .fee-line, .sheet, .quad, .ar-line, .sea-projects { grid-template-columns: 1fr 1fr; }
  .sea-projects { grid-template-columns: 1fr; }
  .line-grid { grid-template-columns: 1fr 1fr; }
  #main { padding: 14px 12px 40px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .top-meta span:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .side { transition: none; }
  .btn:active, .btn-ghost:active, .btn-danger:active, .tile:hover { transform: none; }
}
