:root { --bg:#f6f7f9; --card:#fff; --text:#172033; --muted:#687386; --line:#d8dee9; --primary:#1f6feb; --danger:#b42318; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); text-decoration: none; }
.topbar { height: 58px; display:flex; align-items:center; justify-content:space-between; padding: 0 22px; background:#fff; border-bottom:1px solid var(--line); position: sticky; top:0; z-index:10; }
.brand { font-weight: 800; color: var(--text); }
.container { max-width: 980px; margin: 28px auto; padding: 0 16px 80px; }
.card { background: var(--card); border:1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px; box-shadow: 0 8px 28px rgba(16,24,40,.05); }
.hero h1 { font-size: 34px; margin-bottom: 6px; }
.row { display:flex; gap:10px; flex-wrap: wrap; align-items:center; }
input, textarea, select { width:100%; border:1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; margin: 6px 0 14px; background:#fff; }
.row input { width: 340px; max-width: 100%; margin: 0; }
button { border:0; background: var(--primary); color:#fff; padding: 11px 16px; border-radius: 10px; font-weight:700; cursor:pointer; }
button.secondary { background:#344054; }
button:hover { filter: brightness(.96); }
label { font-weight: 700; display:block; }
.option { display:block; padding: 10px 12px; border:1px solid var(--line); border-radius: 10px; margin: 8px 0; font-weight: 500; }
.option input { width:auto; margin-right:8px; }
.points { font-size: 14px; color: var(--muted); font-weight: 500; }
.notice { padding: 12px 14px; background:#eef4ff; border:1px solid #c7d7fe; border-radius: 12px; }
.muted { color: var(--muted); }
.warn { color: var(--danger); font-weight: 700; }
.score { font-size: 32px; font-weight: 900; margin: 10px 0; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { border-bottom:1px solid var(--line); padding: 10px 8px; text-align:left; vertical-align:top; }
th { background:#f8fafc; }
pre { white-space: pre-wrap; background:#111827; color:#e5e7eb; padding: 14px; border-radius: 10px; overflow:auto; }
.subcard { border:1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; background:#fbfcfe; }
@media (max-width:700px){ .hero h1{font-size:28px;} .topbar{padding:0 14px;} }
.grid2 { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hint { color: var(--muted); font-size: 13px; margin-top: -8px; }
.checkline { display:flex; align-items:center; gap:8px; font-weight:700; margin: 10px 0; }
.checkline input { width:auto; margin:0; }
.top-gap { margin-top: 14px; }
.pre-light { background:#f8fafc; color:#172033; border:1px solid var(--line); min-height: 54px; }
.sticky-actions { position: sticky; bottom: 16px; z-index: 8; display:flex; align-items:center; gap:12px; }
code { background:#eef2f7; padding: 2px 5px; border-radius: 5px; }
nav { display:flex; gap:14px; }
@media (max-width:700px){ .grid2{grid-template-columns:1fr;} .sticky-actions{display:block;} .sticky-actions button{margin-right:8px; margin-bottom:8px;} }
.settings-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.setting-item { min-width: 0; }
.setting-item textarea { min-height: 88px; }
.tag { display:inline-block; font-size: 12px; line-height: 1; padding: 4px 6px; border-radius: 999px; margin-left: 6px; background:#eef2ff; color:#3538cd; }
.warn-tag { background:#fff1f3; color:#b42318; }
.button-link { display:inline-block; background: var(--primary); color:white; padding: 11px 16px; border-radius: 10px; font-weight:700; text-decoration:none; }
.secondary-link { background:#344054; }
.option-mini { width:auto; min-width: 70px; text-align:center; margin: 6px 4px; }
@media (max-width:850px){ .settings-grid{grid-template-columns:1fr;} }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.62); z-index: 100; display:flex; align-items:flex-start; justify-content:center; padding: 28px 14px; overflow:auto; }
.modal.hidden { display:none; }
.modal-panel { background:#fff; border-radius: 18px; width:min(1120px, 100%); padding: 22px; box-shadow: 0 28px 80px rgba(15,23,42,.35); border:1px solid var(--line); }
.modal-panel textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
ol li { margin: 7px 0; }
