:root { --navy: #0B1F3A; --gold: #C8A45A; --gold-soft: #f6efe0; --ink: #1b2433; --muted: #6b7686; --line: #e3e7ee; --bg: #eef1f5; --red: #b42318; --red-soft: #fde8e7; --green: #1d7a46; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Montserrat, Arial, sans-serif; font-size: 14px; }
button { font: inherit; cursor: pointer; }
.bar { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 18px; padding: 12px 24px; border-bottom: 3px solid var(--gold); }
.bar img { height: 38px; }
.bar-title { font-weight: 600; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; flex: 1; }
.who { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.link { background: none; border: 0; color: inherit; text-decoration: underline; padding: 0; opacity: .85; }
main { max-width: 1500px; margin: 24px auto; padding: 0 20px; }
main.center { display: flex; justify-content: center; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(11,31,58,.07); padding: 20px 24px; margin-bottom: 16px; }
h1 { margin: 0 0 16px; color: var(--navy); }
h2 { margin: 0 0 14px; font-size: 16px; color: var(--navy); display: flex; align-items: center; gap: 10px; }
h3 { margin: 0 0 10px; font-size: 13px; color: var(--navy); letter-spacing: .04em; }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.muted { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.error { color: var(--red); background: var(--red-soft); padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.login { width: 380px; display: flex; flex-direction: column; gap: 14px; }
.login label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
input[type=text], input:not([type]), input[type=password] { font: inherit; padding: 11px 12px; border: 1px solid #cfd6e0; border-radius: 8px; }
input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.primary { background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; font-weight: 700; }
.primary:disabled { background: #a8b0bd; cursor: not-allowed; }
.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); border-radius: 8px; padding: 11px 18px; font-weight: 600; }
.big { padding: 14px 28px; font-size: 15px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kind { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 18px; text-align: left; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.kind b { font-size: 16px; color: var(--navy); }
.kind span { color: var(--muted); font-size: 12.5px; }
.kind.on { border-color: var(--gold); background: var(--gold-soft); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px; border: 2px dashed #b9c2cf; border-radius: 12px; cursor: pointer; text-align: center; color: var(--muted); }
.drop b { color: var(--navy); font-size: 15px; }
.drop.over { border-color: var(--gold); background: var(--gold-soft); }
kbd { background: #f3f5f8; border: 1px solid #d5dbe3; border-radius: 4px; padding: 0 5px; font-size: 11px; }
.picked { margin-top: 12px; display: flex; gap: 14px; align-items: center; font-weight: 600; color: var(--navy); }
.picked .link { color: var(--red); }
.actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.busy { text-align: center; width: 420px; }
.spinner { width: 46px; height: 46px; margin: 8px auto 16px; border: 4px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checks h2 { margin-bottom: 10px; }
.ok-line { color: var(--green); font-weight: 700; }
.issue { border-left: 4px solid var(--red); background: var(--red-soft); border-radius: 6px; padding: 10px 12px; margin: 8px 0; }
.issue.warn { border-color: var(--gold); background: var(--gold-soft); }
.issue .label { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { background: #fff; border: 1px solid #cfd6e0; border-radius: 6px; padding: 6px 10px; text-align: left; }
.choice small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.choice.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.choice.on small { color: var(--gold); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
.pane { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 2px 12px rgba(11,31,58,.07); min-width: 0; }
.original { height: 1150px; border: 1px solid var(--line); border-radius: 8px; overflow: auto; background: #f7f8fa; }
.original img { width: 100%; display: block; }
.original iframe { width: 100%; height: 100%; border: 0; }
.docwrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #e9edf2; position: relative; }
#doc { width: 840px; border: 0; transform-origin: 0 0; display: block; background: #fff; }
.finish { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.confirm { display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--navy); font-size: 15px; }
.confirm input { width: 20px; height: 20px; }
.finish-buttons { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.out-buttons { display: flex; gap: 12px; }
.secondary:disabled { color: #a8b0bd; border-color: #c9cfd8; cursor: not-allowed; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } .kinds { grid-template-columns: 1fr; } }
