:root { color-scheme: dark; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0d1520; color: #e8f0fb; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; padding: 32px 24px; }
main { width: 100%; max-width: 1120px; margin: 0 auto; }
.mark { width: 44px; height: 44px; border-radius: 14px; background: #77c7ed; color: #0d1520; display: grid; place-items: center; font-size: 27px; font-weight: 800; }
.eyebrow { margin: 22px 0 8px; font-size: 11px; letter-spacing: .18em; color: #89aac5; }
h1 { font-size: clamp(32px, 7vw, 44px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.04em; }
h2 { font-size: 19px; margin: 0; }
h3 { font-size: 17px; margin: 0; }
.intro { color: #b3c3d8; line-height: 1.8; margin: 0 0 24px; }
.card { min-width: 0; background: #162233; border: 1px solid #2c3c52; border-radius: 18px; padding: 24px; }
#status { min-height: 1.7em; line-height: 1.7; color: #d0ddef; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
button { min-height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 10px 17px; background: #77c7ed; color: #0d1520; font: inherit; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.secondary { background: #29394e; color: #d6e5f7; }
.quiet { background: transparent; border-color: #40546d; color: #bfd1e7; }
.danger { color: #ffc1c7; }
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #a1dfff; outline-offset: 3px; }
[hidden] { display: none !important; }
.note, .hint { color: #a5b7cd; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.note { margin: 18px 4px 0; }
.note strong { color: #d3e3f7; }
noscript { display: block; margin-top: 20px; color: #ffd5a7; }
.sync-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 12px; }
.sync-bar p { margin: 0; font-size: 13px; color: #a9c5dc; line-height: 1.7; }
.workspace-grid { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.8fr); gap: 18px; align-items: start; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.count { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 8px; color: #b4d4ed; background: #25384d; border-radius: 20px; vertical-align: middle; }
.badge { font-size: 12px; color: #b9d6e9; }
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 7px; color: #d2dfec; }
input, select, textarea { display: block; width: 100%; min-width: 0; padding: 12px; border: 1px solid #41536b; border-radius: 9px; background: #0e1927; color: #e8f0fb; font: inherit; font-size: 16px; line-height: 1.5; }
textarea { min-height: 210px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8498af; }
textarea:read-only { opacity: .8; }
form > button { width: 100%; margin-top: 10px; }
.item-list { display: grid; gap: 7px; margin-top: 12px; max-height: 290px; overflow: auto; }
.list-button { text-align: left; display: block; width: 100%; min-width: 0; background: #1c2c40; border-color: #30445c; color: #d5e5f6; font-weight: 500; }
.list-button[aria-pressed="true"] { background: #25475f; border-color: #7bcdf3; color: #fff; }
.list-button small { display: block; color: #a6c0d7; font-size: 12px; margin-top: 5px; font-weight: 400; }
.draft-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 220px; }
.editor-empty { margin: 30px 0 8px; padding: 32px 16px; border: 1px dashed #3c526b; border-radius: 12px; text-align: center; color: #a5bbd1; line-height: 1.8; }
#editor { border-top: 1px solid #30445c; margin-top: 24px; padding-top: 24px; }
.text-count { text-align: right; font-size: 12px; color: #a6c0d7; font-variant-numeric: tabular-nums; margin: 8px 0; }
.warning { background: #41352b; color: #ffdfb1; border: 1px solid #776044; border-radius: 10px; padding: 12px; line-height: 1.8; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#progress { margin: 20px 0 24px; max-width: 640px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px 10px; border: 1px solid #34465d; border-radius: 10px; color: #b1c1d5; font-size: 14px; }
.step-number { display: grid; place-items: center; border: 1px solid #53667e; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; }
.step-state { font-size: 12px; color: #a6b9cf; }
.steps li[data-state="current"] { border-color: #77c7ed; background: #20384b; color: #e8f0fb; }
.steps li[data-state="current"] .step-state { color: #9ddcff; }
.steps li[data-state="complete"] .step-number { background: #77c7ed; border-color: #77c7ed; color: #0d1520; }
.steps li[data-state="complete"] .step-state { color: #a6e0d1; }
.elapsed { font-size: 13px; color: #b3c3d8; font-variant-numeric: tabular-nums; margin: 14px 0 0; }
.wait-hint { font-size: 13px; line-height: 1.8; color: #b3c3d8; margin: 10px 0 0; }
@media (max-width: 740px) { .workspace-grid { grid-template-columns: 1fr; } .accounts-panel .item-list { max-height: 180px; } }
@media (max-width: 440px) { body { padding: 22px 14px; } .card { padding: 18px; } .actions button { flex: 1 1 auto; } .draft-list { grid-template-columns: 1fr; } .steps li { font-size: 13px; gap: 8px; padding: 11px 8px; } .step-state { font-size: 11px; } }
