@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(../assets/fonts/poppins-400-latin.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(../assets/fonts/poppins-500-latin.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(../assets/fonts/poppins-600-latin.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(../assets/fonts/poppins-700-latin.woff2) format("woff2"); }
:root {
  --navy: #27283d; --navy-2: #32334c; --orange: #fe8f1d; --orange-ink: #a85300; --crimson: #b8213f; --slate: #494a66;
  --green: #1f7a55; --line: #dcdde6; --tint: #f4f4f8; --warm: #fff4e6; --ink: #1f2030; --muted: #6c6d84; --white: #fff;
  --pass-bg: #e3f3ec; --fail-bg: #fbe4e9; --na-bg: #ececf2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--tint); line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }
a { color: var(--orange-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 600; background: var(--navy); color: #fff; text-decoration: none; min-height: 44px; }
.btn.orange { background: var(--orange); color: #1f1300; }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn.small { padding: 8px 12px; min-height: 36px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.pass { background: var(--pass-bg); color: var(--green); }
.pill.fail { background: var(--fail-bg); color: var(--crimson); }
.pill.na { background: var(--na-bg); color: var(--slate); }
.pill.due { background: var(--warm); color: var(--orange-ink); }
.pill.none { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.pill.hand { background: #fff; color: var(--orange-ink); border: 1px dashed var(--orange); }
.bar { height: 8px; background: #e6e7ef; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.bar.met > i { background: var(--green); }
.warn { background: var(--warm); border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.demo-tag { background: var(--crimson); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.muted { color: var(--muted); }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan svg { display: block; width: 100%; height: auto; }
.pin { cursor: pointer; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(20, 21, 34, 0.55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 16px; } }
.sheet-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 16px 6px; font-weight: 700; font-size: 16px; }
.choice.pass.on { background: var(--pass-bg); border-color: var(--green); color: var(--green); }
.choice.fail.on { background: var(--fail-bg); border-color: var(--crimson); color: var(--crimson); }
.choice.na.on { background: var(--na-bg); border-color: var(--slate); color: var(--slate); }
.lbl { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--slate); }
.lbl textarea, .lbl input, .lbl select { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; }
.hist { font-size: 12.5px; color: var(--slate); display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--slate); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; border: 1px solid var(--navy); vertical-align: -1px; }
.plan-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.plan.editing { outline: 2.5px dashed var(--orange); }
.plan.editing svg { touch-action: none; cursor: grab; }
.plan.editing .pin { cursor: grab; }
.rename { display: flex; gap: 6px; }
.rename input { flex: 1; min-width: 0; text-transform: uppercase; }
