:root { --ink: #1b1b1b; --muted: #6b6b6b; --line: #e3e3e3; --brand: #1F3864; --ok: #2e7d32; --warn: #b26a00; --err: #c62828; --bg: #faf9f7; --card: #fff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--brand); color: #fff; }
header h1 { font-size: 18px; margin: 0; font-weight: 600; }
.hdr-right { display: flex; gap: 14px; align-items: center; font-size: 14px; }
header .muted { color: #cfd8e6; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
h2 { font-size: 20px; margin: 0 0 12px; } h3 { font-size: 17px; margin: 0 0 6px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .error { color: var(--err); }
.pill { display: inline-block; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 13px; vertical-align: middle; margin-left: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
td.num, th.num { text-align: right; white-space: nowrap; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef2f8; color: var(--brand); margin-right: 4px; }
.tag.draft { background: #f3f3f3; color: var(--muted); }
.needs { color: var(--err); font-weight: 600; } .new { color: var(--ok); font-weight: 600; }
#issues { margin-top: 12px; } #issues p { margin: 4px 0; font-size: 15px; }
.issue-error::before { content: "✕ "; color: var(--err); } .issue-warn::before { content: "! "; color: var(--warn); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.step .detail { font-size: 15px; margin: 10px 0 14px; min-height: 24px; }
.step .detail ul { margin: 6px 0; padding-left: 20px; }
.step.done { border-color: #c8e6c9; } .step.done h3::after { content: " ✓"; color: var(--ok); }
button, .button { font: inherit; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .button.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
button.link { background: none; border: none; color: #fff; text-decoration: underline; padding: 0; cursor: pointer; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
label.inline { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
input[type=password], input[type=number] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
#login-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; } #login-form label { display: flex; flex-direction: column; gap: 4px; }
.result { margin: 10px 0 0; font-size: 15px; } .result.ok { color: var(--ok); } .result.err { color: var(--err); }
code { background: #f1f1f1; padding: 1px 5px; border-radius: 4px; font-size: 90%; }
td:nth-child(3) { white-space: nowrap; }
.table-wrap { overflow-x: auto; margin: 0 -8px; }
@media (max-width: 640px) { th:nth-child(6), td:nth-child(6), th:nth-child(4), td:nth-child(4) { display: none; } th, td { padding: 8px 6px; font-size: 14px; } main { padding: 12px 10px 50px; } .card { padding: 14px 12px; } }

.checklist { list-style: none; padding: 0; margin: 14px 0 18px; }
.checklist li { padding: 10px 0; border-top: 1px solid var(--line); }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.checklist label > span { flex: 1; }
.checklist input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.checklist a { display: block; font-size: 14px; margin-top: 2px; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 10px; }
.choice { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 18px 20px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; }
.choice b { font-size: 19px; color: var(--brand); } .choice span { color: var(--muted); font-size: 14px; }
.choice:hover { border-color: var(--brand); }
button.link.dark { color: var(--brand); font-size: 14px; font-weight: 400; margin-left: 8px; }
button.danger { background: #fff; color: var(--err); border-color: var(--err); }
.addline input[type=text] { flex: 1; min-width: 240px; }
input[type=text] { font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
label.inline.wide { display: flex; gap: 10px; align-items: center; margin: 12px 0; } label.inline.wide input { flex: 1; }
td input[type=number] { width: 4.5em; text-align: right; } td input[type=text].edit { width: 100%; } td input.price { width: 6em; text-align: right; }
td input[type=checkbox] { width: 18px; height: 18px; }
.sq-hit { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .sq-hit span { flex: 1; }
tfoot td { font-weight: 600; border-top: 2px solid var(--ink); }
.status-sent { color: var(--ok); font-weight: 600; } .status-draft { color: var(--warn); font-weight: 600; }
.sl-summary { margin: 8px 0 10px; }
.sl-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.sl-chips { display: flex; gap: 6px; }
.chip { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; padding: 0; }
.chip.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.sl-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: 320px; margin: 8px 0 14px; }
.sl-cell { aspect-ratio: 38.1 / 21.2; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 0; font-size: 15px; line-height: 1; color: var(--err); }
.sl-cell.used { background: #c9d6ea; border-color: #9fb3d6; }
.sl-cell.blocked { background: #fdecea; border-color: #f5c2c0; }
.sl-open { margin-top: 4px; }
.pill.count { margin: 0 4px 0 0; min-width: 28px; text-align: center; }
.pill.count.zero { background: #e3e3e3; color: var(--muted); }
.step.off { opacity: .45; } .step.off button, .step.off .button { pointer-events: none; }
