:root { --ink: #14161a; --muted: #5b6270; --bg: #f6f7f9; --card: #ffffff; --accent: #1f5eff; --line: #d7dbe2; --error: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px;
       font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
.card { width: 100%; max-width: 440px; background: var(--card); border-radius: 12px; padding: 32px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
h1 { margin: 0 0 4px; font-size: 1.6rem; }
h2 { margin: 24px 0 12px; font-size: 1.15rem; }
p { line-height: 1.5; }
.lead { margin: 0; color: var(--muted); }
.muted, .hint, .fine { color: var(--muted); }
.hint { font-size: 0.85rem; margin: 4px 0 0; }
.fine { font-size: 0.8rem; margin-top: 24px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input { width: 100%; padding: 11px 12px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { width: 100%; margin-top: 18px; padding: 12px; font-size: 1rem; font-weight: 600; color: #fff;
         background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: wait; }
.link-button { width: auto; margin: 0; padding: 6px 0; color: var(--accent); background: none; font-weight: 500; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.switch { font-size: 0.95rem; margin: 14px 0 0; }
.big { font-size: 1.2rem; font-weight: 600; }
#msg { min-height: 1.5em; margin: 16px 0 0; }
#msg.error { color: var(--error); }
a { color: var(--accent); }

/* ---------- D7-7b: the review screen ---------- */
.card.wide { max-width: 560px; }
.account { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
                   clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.drop.dragging { border-color: var(--accent); background: #eef3ff; }
.drop.has-file .drop-label { display: none; }
.drop-label { display: block; cursor: pointer; margin: 0; font-weight: 400; }
.drop-title { display: inline-block; padding: 10px 18px; margin-bottom: 8px; border-radius: 8px;
              background: var(--accent); color: #fff; font-weight: 600; }
.drop-label .hint { display: block; }
#file:focus-visible + .drop-label .drop-title { outline: 2px solid var(--ink); outline-offset: 2px; }
#preview { margin: 0; }
#preview img { max-width: 100%; max-height: 320px; border-radius: 8px; display: block; margin: 0 auto 8px; }
#preview figcaption { font-size: 0.9rem; color: var(--muted); word-break: break-word; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; }
.steps li { padding: 10px 0 10px 32px; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px;
                    border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.steps li.active { color: var(--ink); font-weight: 600; }
.steps li.active::before { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--accent); border-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps li.active::before { animation: none; border-top-color: var(--accent); } }
.verdict { font-size: 1.35rem; font-weight: 700; margin: 24px 0 6px; padding: 10px 14px; border-radius: 8px; }
.verdict.launch { background: #e7f6ec; color: #11683a; }
.verdict.fix_first { background: #fff4e0; color: #8a5300; }
.verdict.do_not_launch { background: #fdecea; color: var(--error); }
.risk { border-left: 4px solid var(--line); padding: 4px 0 4px 14px; margin: 16px 0; }
.risk.high { border-left-color: var(--error); }
.risk p { margin: 6px 0; }
.risk-line { font-size: 1.05rem; }
.scores { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scores li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px;
             background: var(--bg); border-radius: 8px; font-size: 0.95rem; }