:root {
  --bg: #0f1720; --card: #17212c; --line: #263343; --text: #e6edf3; --muted: #8b9bb0;
  --go: #1f9d55; --caution: #d69e2e; --nogo: #d64545; --accent: #3b82f6;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.top { position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(15,23,32,.95); border-bottom: 1px solid var(--line); }
h1 { font-size: 18px; margin: 0; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
h3 { font-size: 14px; margin: 14px 0 6px; }
main { max-width: 720px; margin: 0 auto; padding: 12px 12px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.hidden { display: none; }
.muted { color: var(--muted); } .small { font-size: 13px; }
button { font: inherit; border-radius: 10px; border: 1px solid var(--line); padding: 10px 14px; color: var(--text); background: #1f2b38; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.ghost { background: none; border: none; font-size: 22px; padding: 4px 8px; }
button.wide { width: 100%; margin-top: 10px; }
button:disabled { opacity: .6; }
.row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
#map { height: 240px; border-radius: 10px; margin-bottom: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: block; font-size: 13px; color: var(--muted); }
input[type=text], input:not([type]), input[inputmode] { width: 100%; margin-top: 4px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: #0f1720; color: var(--text); font-size: 16px; }
.alt { margin-top: 12px; } .alt b { color: var(--text); }
input[type=range] { width: 100%; margin-top: 6px; }
.verdict { text-align: center; padding: 20px 14px; }
.verdict .v-label { font-size: 34px; font-weight: 800; letter-spacing: .04em; }
.verdict .v-score { font-size: 15px; margin-top: 4px; }
.verdict .v-time { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 6px; }
.verdict.pending { background: var(--card); } .verdict.pending .v-label { font-size: 20px; color: var(--muted); }
.verdict.go { background: var(--go); border-color: var(--go); }
.verdict.caution { background: var(--caution); border-color: var(--caution); color: #1a1300; }
.verdict.caution .v-time { color: rgba(0,0,0,.6); }
.verdict.nogo { background: var(--nogo); border-color: var(--nogo); }
#fixList { margin: 0; padding-left: 20px; } #fixList li { margin-bottom: 6px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; }
.dot.pass { background: var(--go); } .dot.caution { background: var(--caution); } .dot.nogo { background: var(--nogo); } .dot.info { background: var(--muted); }
.ct { font-weight: 600; } .reg { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.cd { font-size: 14px; color: #c3cfdc; }
.tick { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--text); font-size: 15px; }
.tick input { width: 20px; height: 20px; }
a { color: #7fb0ff; }
pre.raw { white-space: pre-wrap; word-break: break-word; background: #0f1720; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: 13px/1.4 ui-monospace, Menlo, monospace; margin: 4px 0 8px; color: var(--text); }
table.mod { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text); }
table.mod th, table.mod td { padding: 4px 3px; text-align: center; border-bottom: 1px solid var(--line); }
table.mod th { color: var(--muted); font-weight: 500; }
.tag { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #263343; color: var(--muted); margin-left: 6px; }
.foot { margin-top: 18px; text-align: center; }
.err { color: #ff9b9b; }

.warnbox { background: #3a2a00; border: 1px solid var(--caution); color: #ffd98a; border-radius: 8px; padding: 8px; font-size: 13px; margin-bottom: 8px; }
.notam { margin-top: 8px; } .notam.hit pre.raw { border-color: var(--nogo); }
.tag.hot { background: var(--nogo); color: #fff; }
details summary { cursor: pointer; margin-top: 10px; color: var(--muted); font-size: 14px; }

.plain { font-size: 14px; color: var(--text); margin: -2px 0 10px; padding-left: 10px; border-left: 3px solid var(--accent); }
ul.plain { padding-left: 24px; } ul.plain li { margin-bottom: 4px; }
.plain .when { color: var(--muted); font-size: 12px; margin-top: 3px; }
