:root {
  --navy: #14284b; --navy-2: #1f3a6b; --ink: #1b2437; --muted: #5d6a82; --line: #dfe5ef; --bg: #f5f7fb; --card: #fff;
  --green: #1f9d55; --yellow: #e0a100; --red: #d23b3b; --blue-soft: #e8eefb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 -apple-system, "Noto Sans TC", "Microsoft JhengHei", sans-serif; color: var(--ink); background: var(--bg); padding-bottom: 76px; }
h1, h2, h3 { color: var(--navy); margin: 0 0 8px; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
a { color: var(--navy-2); }
.top { position: sticky; top: 0; z-index: 5; background: var(--navy); color: #fff; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.top b { font-size: 16px; } .top small { opacity: .8; display: block; font-size: 12px; }
.top button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; background: #fff; border-top: 1px solid var(--line); display: flex; overflow-x: auto; padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1 0 auto; min-width: 64px; text-align: center; padding: 10px 8px; color: var(--muted); text-decoration: none; font-size: 13px; }
.nav a.on { color: var(--navy); font-weight: 700; border-top: 3px solid var(--navy); margin-top: -1px; }
main { max-width: 980px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.card.alert { border-left: 5px solid var(--red); } .card.warn { border-left: 5px solid var(--yellow); } .card.ok { border-left: 5px solid var(--green); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.sb { justify-content: space-between; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi .n { font-size: 28px; font-weight: 700; color: var(--navy); } .kpi .l { color: var(--muted); font-size: 13px; } .kpi small { color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-size: 13px; }
.pill.red { background: #fde8e8; color: var(--red); } .pill.yellow { background: #fff4d6; color: #8a6400; } .pill.green { background: #e2f5ea; color: var(--green); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.dot.green { background: var(--green); } .dot.yellow { background: var(--yellow); } .dot.red { background: var(--red); }
button, .btn { font: inherit; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
button.primary { background: var(--navy); color: #fff; }
button.danger { border-color: var(--red); color: var(--red); }
button.big { min-height: 56px; font-size: 18px; font-weight: 700; width: 100%; }
button.sm { min-height: 34px; padding: 4px 10px; font-size: 14px; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { font: inherit; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #c4cde0; border-radius: 10px; background: #fff; }
textarea { min-height: 72px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
label.chk { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 16px; min-height: 44px; margin: 0; }
label.chk input { width: 22px; min-height: 22px; height: 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; }
.scroll table { min-width: 560px; }
.score-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.score-row .name { display: flex; justify-content: space-between; font-weight: 600; }
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 6px; }
.scores button { min-height: 52px; font-size: 20px; font-weight: 700; padding: 0; }
.scores button.on { background: var(--navy); color: #fff; }
.scores button.on.z { background: var(--red); border-color: var(--red); }
.timer { font-size: 44px; font-weight: 700; text-align: center; color: var(--navy); font-variant-numeric: tabular-nums; }
.timer.over { color: var(--red); }
.total { position: sticky; bottom: 64px; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 4px 14px; border-radius: 999px; }
.chip.on { background: var(--navy); color: #fff; }
.verdict { text-align: center; padding: 18px; border-radius: 12px; }
.verdict.pass { background: #e2f5ea; } .verdict.remedial { background: #fff4d6; } .verdict.suspended { background: #fde8e8; }
.verdict .big-t { font-size: 28px; font-weight: 800; }
.bar { height: 14px; background: var(--blue-soft); border-radius: 7px; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--navy-2); }
.timeline { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
.timeline div { flex: 0 0 auto; min-width: 74px; text-align: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; }
.timeline div.done { background: var(--navy); color: #fff; }
.passport { background: var(--blue-soft); border: 2px dashed var(--navy-2); border-radius: 12px; padding: 12px; font-size: 17px; line-height: 1.9; }
.errs { background: #fde8e8; color: #8d1f1f; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.errs ul { margin: 4px 0 0; padding-left: 20px; }
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(20,40,75,.5); display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden], .toast[hidden] { display: none; }
.modal .sheet { background: #fff; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 16px; }
@media (min-width: 700px) { .modal { align-items: center; } .modal .sheet { border-radius: 16px; } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 30; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; }
.login { max-width: 380px; margin: 12vh auto; padding: 0 16px; }
.hint { background: var(--blue-soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--navy); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.seg button.on { background: var(--navy); color: #fff; }

.plan table { font-size: 13px; } .plan td { height: 38px; }
@media print {
  .top, .nav, .noprint, .toast, .modal { display: none !important; }
  body { background: #fff; padding: 0; font-size: 12px; }
  main { padding: 0; max-width: none; }
  .plan tr { page-break-inside: avoid; } .plan td, .plan th { border: 1px solid #999; }
}

.trial-mark{border:2px dashed #b45309;color:#b45309;padding:6px 10px;font-weight:700;margin:8px 0}
