:root { --blue:#174f9a; --blue-dark:#0c356f; --blue-soft:#eaf1fa; --red:#e30613; --ink:#1f2a3a; --muted:#637083; --line:#d9e0e9; --surface:#fff; --canvas:#f5f7fa; --success:#087a58; }
* { box-sizing:border-box; }
body { min-width:320px; margin:0; color:var(--ink); background:var(--canvas); font-family:"Segoe UI",Arial,sans-serif; }
button,input { font:inherit; }
.shell { width:min(880px,calc(100% - 40px)); margin:0 auto; padding:42px 0 64px; }
.hero { display:grid; justify-items:center; gap:24px; padding:8px 0 34px; text-align:center; border-bottom:1px solid var(--line); }
.brand-logo { display:block; width:min(620px,100%); height:auto; }
.hero-title p,.eyebrow { margin:0 0 6px; color:var(--blue); font-size:.72rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
h1,h2,p { margin-top:0; }
h1 { margin-bottom:0; color:var(--blue-dark); font-size:clamp(1.65rem,4vw,2.25rem); line-height:1.1; text-transform:uppercase; }
h2 { margin-bottom:0; color:var(--blue-dark); font-size:clamp(1.25rem,3vw,1.55rem); }
.mode-section { padding:36px 0 30px; }
.section-heading { text-align:center; }
.section-heading > p:last-child { max-width:420px; margin:10px auto 0; color:var(--muted); line-height:1.5; }
.mode-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:24px; }
.mode-card { display:flex; min-height:166px; align-items:center; gap:18px; padding:25px; cursor:pointer; color:var(--ink); text-align:left; background:var(--surface); border:1px solid var(--line); border-radius:14px; transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.mode-card:hover { border-color:#8aa8cf; transform:translateY(-2px); }
.mode-card.is-selected { border:2px solid var(--blue); box-shadow:0 9px 22px rgba(23,79,154,.12); }
.mode-icon { display:grid; flex:0 0 48px; width:48px; height:48px; place-items:center; color:var(--blue); background:var(--blue-soft); border-radius:12px; font-size:1.65rem; }
.mode-copy { display:grid; gap:6px; }
.mode-copy strong { color:var(--blue-dark); font-size:1.15rem; text-transform:uppercase; }
.mode-copy small { color:var(--muted); font-size:.92rem; line-height:1.4; }
.editor-card { padding:clamp(22px,4vw,34px); background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:0 12px 30px rgba(26,49,84,.06); }
.editor-heading { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:24px; }
.editor-heading p:last-child { max-width:540px; margin:9px 0 0; color:var(--muted); line-height:1.5; }
.mode-badge { padding:7px 11px; color:var(--blue-dark); background:var(--blue-soft); border-radius:99px; font-size:.78rem; font-weight:750; white-space:nowrap; }
.file-picker { display:flex; align-items:center; gap:12px; padding:15px; cursor:pointer; background:#f9fbfe; border:1px dashed #9bb2cf; border-radius:10px; }
.file-picker:hover { background:#f1f6fc; border-color:var(--blue); }
.picker-icon { display:grid; flex:0 0 35px; width:35px; height:35px; place-items:center; color:var(--blue); background:var(--blue-soft); border-radius:8px; font-size:1.3rem; font-weight:800; }
.picker-copy { display:grid; gap:2px; }
.picker-copy small { color:var(--muted); }
.picker-action { margin-left:auto; color:var(--blue); font-size:.88rem; font-weight:750; }
#image-input { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.preview-area { position:relative; min-height:260px; margin-top:18px; overflow:hidden; background:#f8fafc; border:1px solid var(--line); border-radius:10px; aspect-ratio:16 / 9; }
.preview-empty { display:grid; width:100%; height:100%; min-height:260px; place-content:center; color:#8090a5; text-align:center; }
.preview-empty span { color:#7593b8; font-size:2.3rem; }
.preview-empty p { margin:8px 18px 0; font-size:.94rem; }
#preview-image { display:block; width:100%; height:100%; object-fit:cover; }
.preview-area:not(.has-preview) #preview-image { display:none; }
.preview-area.has-preview .preview-empty { display:none; }
.publish-button { width:100%; margin-top:20px; padding:14px 18px; cursor:pointer; color:#fff; background:var(--blue); border:0; border-radius:8px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; transition:background .18s ease,transform .18s ease; }
.publish-button:hover:not(:disabled) { background:var(--blue-dark); transform:translateY(-1px); }
.publish-button:focus-visible,.mode-card:focus-visible,.file-picker:focus-within { outline:3px solid rgba(227,6,19,.35); outline-offset:3px; }
.publish-button:disabled { cursor:not-allowed; opacity:.45; }
.publish-message { min-height:1.3em; margin:11px 0 0; color:var(--muted); font-size:.86rem; line-height:1.4; text-align:center; }
.publish-message.is-success { color:var(--success); font-weight:650; }
@media (max-width:640px) { .shell { width:min(100% - 28px,600px); padding-top:25px; } .hero { gap:20px; padding-bottom:28px; } .mode-grid { grid-template-columns:1fr; } .mode-card { min-height:132px; } .editor-heading { display:grid; } .mode-badge { justify-self:start; } .preview-area,.preview-empty { min-height:185px; } }
