
:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #1b2430;
  --muted: #657181;
  --line: #d8dee6;
  --accent: #007a78;
  --accent-strong: #005c5a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; }
.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 36px; }
.topbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 6px; color: var(--accent-strong); font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: 28px; line-height: 1.25; }
.subtitle { max-width: 720px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.metrics { display: grid; grid-template-columns: minmax(96px, auto) minmax(220px, auto); gap: 10px; }
.metric { min-height: 68px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.metric span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.metric strong { display: block; font-size: 16px; line-height: 1.35; }
.toolbar { display: grid; grid-template-columns: 160px 180px minmax(240px, 1fr) 128px; gap: 12px; align-items: end; margin: 20px 0 14px; }
label { color: var(--muted); font-size: 12px; font-weight: 700; }
input, button { width: 100%; min-height: 40px; margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input { padding: 8px 10px; background: #fff; }
button { cursor: pointer; color: #fff; background: var(--accent); font-weight: 700; }
button:hover { background: var(--accent-strong); }
.table-wrap { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; z-index: 1; background: #eef3f6; color: #334155; font-size: 13px; }
td { font-size: 14px; }
td.subject { line-height: 1.55; }
td.subject strong { display: block; margin-bottom: 8px; color: #111827; font-size: 15px; }
td.subject p { margin: 0; color: #3f4a59; white-space: pre-wrap; }
.empty-row td { padding: 28px 14px; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .app-shell { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .topbar, .metrics, .toolbar { display: grid; grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  td { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 5px 0; border-bottom: 0; }
  td::before { content: attr(data-label); color: var(--muted); font-weight: 700; }
}
