:root { color-scheme: light; --border:#dce1e5; --muted:#69727a; --ink:#242a30; --blue:#1265d6; --green:#267d59; }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:#fff; color:var(--ink); font:14px/1.5 Arial,Helvetica,sans-serif; letter-spacing:0; }
button,input,select,textarea { font:inherit; letter-spacing:0; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.5; }
button,summary { -webkit-tap-highlight-color:transparent; }
button:focus-visible,summary:focus-visible { outline:3px solid #8abbfa; outline-offset:3px; }
svg { flex-shrink:0; vertical-align:middle; }
[hidden],.hidden { display:none!important; }
.topbar { min-height:76px; padding:12px 28px; display:flex; gap:20px; align-items:center; border-bottom:1px solid var(--border); }
.brand { display:flex; align-items:center; gap:12px; }
.brand-mark { width:38px; height:38px; border-radius:6px; background:var(--green); color:#fff; display:grid; place-items:center; }
h1 { margin:0; font-size:20px; line-height:1.3; }
.brand small { color:var(--muted); font-size:12px; }
.topbar-spacer { flex:1; }
.connection { display:flex; gap:8px; align-items:center; color:var(--muted); font-size:12px; min-width:0; }
#connectionText { overflow-wrap:anywhere; }
.connection-dot { width:8px; height:8px; flex-shrink:0; border-radius:50%; background:#929ba3; }
.ready .connection-dot { background:var(--green); }
.error .connection-dot { background:#bd3131; }
.layout { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:calc(100vh - 76px); }
.sidebar { position:sticky; top:0; align-self:start; height:calc(100vh - 76px); padding:28px 16px; background:#f6f7f8; border-right:1px solid var(--border); overflow:auto; }
.sidebar-title { margin:0 12px 20px; font-size:11px; font-weight:700; color:var(--muted); }
.nav-button { display:flex; align-items:center; gap:12px; width:100%; min-height:58px; padding:10px; margin:3px 0; border:0; border-radius:5px; color:#4c545c; background:transparent; text-align:left; }
.nav-button:hover { background:#e9edf0; }
.nav-button.active { background:#e5effc; color:#125ab6; font-weight:600; }
.step-number { width:28px; height:28px; display:grid; place-items:center; flex-shrink:0; border-radius:50%; border:1px solid #cbd2d9; font-size:12px; }
.active .step-number { background:var(--blue); border-color:var(--blue); color:#fff; }
.nav-title { flex:1; min-width:0; overflow-wrap:anywhere; }
.dirty-dot { width:6px; height:6px; flex-shrink:0; border-radius:50%; }
.dirty .dirty-dot { background:#b07815; }
.progress-area { margin:36px 12px 0; color:var(--muted); font-size:12px; }
progress { display:block; width:100%; height:4px; margin-top:12px; border:0; accent-color:var(--green); }
progress::-webkit-progress-bar { background:#dfe5e3; }
progress::-webkit-progress-value { background:var(--green); }
.main { min-width:0; display:flex; flex-direction:column; }
.content { width:100%; max-width:1160px; margin:0 auto; padding:32px 40px 40px; flex:1; }
.page-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding-bottom:26px; margin-bottom:26px; border-bottom:1px solid var(--border); }
.eyebrow { font-size:11px; color:var(--muted); margin-bottom:6px; }
h2 { font-size:24px; line-height:1.3; margin:0; overflow-wrap:anywhere; }
h2:focus { outline:none; }
.draft { color:var(--muted); font-size:12px; }
.draft.changed { color:#95630c; }
.fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px; row-gap:22px; }
.field { min-width:0; }
.field-wide { grid-column:1/-1; }
.field>label { display:block; font-size:13px; font-weight:600; margin-bottom:8px; overflow-wrap:anywhere; }
.control { width:100%; min-width:0; height:40px; padding:9px 11px; border:1px solid #bcc6ce; border-radius:4px; background:#fff; color:var(--ink); scroll-margin:120px 0; }
.control:focus { outline:2px solid #bed9fb; outline-offset:1px; border-color:var(--blue); }
textarea.control { min-height:136px; height:136px; resize:vertical; }
.password-row { display:flex; align-items:center; gap:8px; }
.repeated-field { max-width:680px; }
.repeated-rows { display:grid; gap:10px; }
.repeated-row { display:flex; align-items:center; gap:8px; }
.repeated-row .control { flex:1; }
.add-field { margin-top:12px; }
.password-row .control { flex:1; }
.icon-button { display:grid; place-items:center; width:40px; height:40px; flex-shrink:0; border:1px solid #bcc6ce; border-radius:4px; background:#fff; color:#515d66; }
.icon-button:hover,.secondary:hover { background:#f2f5f7; }
.toggle { width:42px; height:24px; position:relative; margin:8px 0; }
.toggle input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; z-index:1; cursor:pointer; }
.toggle-track { position:absolute; inset:0; border-radius:12px; background:#a4afb8; pointer-events:none; }
.toggle-track:after { content:''; position:absolute; width:18px; height:18px; left:3px; top:3px; border-radius:50%; background:#fff; }
.toggle input:checked+.toggle-track { background:var(--green); }
.toggle input:checked+.toggle-track:after { transform:translateX(18px); }
.toggle input:focus-visible+.toggle-track { outline:3px solid #8abbfa; outline-offset:3px; }
.field-error { display:block; min-height:16px; margin-top:4px; color:#b02f2f; font-size:12px; }
[aria-invalid=true] { border-color:#bd3131; }
.form-error { padding:12px 16px; border-left:3px solid #bd3131; background:#fff0f0; margin-bottom:24px; overflow-wrap:anywhere; }
.actions { position:sticky; bottom:0; z-index:5; display:flex; align-items:center; gap:12px; min-height:80px; padding:18px 40px; border-top:1px solid var(--border); background:#fff; }
.primary,.secondary { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:9px 15px; border-radius:4px; font-weight:600; line-height:20px; }
.primary { border:1px solid var(--blue); background:var(--blue); color:#fff; }
.primary:hover:not(:disabled) { background:#0b54b7; }
.secondary { border:1px solid #c9d1d7; background:#fff; color:#48535c; }
#footerStatus { flex:1; font-size:12px; color:var(--muted); }
.review-banner { display:flex; align-items:center; gap:12px; padding:16px 0 24px; color:var(--green); }
.review-group { border-top:1px solid var(--border); }
.review-group:last-child { border-bottom:1px solid var(--border); }
summary { list-style:none; display:flex; align-items:center; gap:12px; padding:18px 0; cursor:pointer; }
summary::-webkit-details-marker { display:none; }
summary>span { flex:1; font-weight:600; overflow-wrap:anywhere; }
summary small { font-size:11px; color:var(--muted); }
details[open] summary>svg:last-child { transform:rotate(180deg); }
dl { margin:0; }
.review-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); gap:22px; padding:12px 0; border-top:1px solid #edf0f2; }
dt { font-size:13px; color:#5b646c; overflow-wrap:anywhere; }
dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
dd del { display:block; color:#7f898e; font-size:12px; margin-bottom:4px; }
.review-row.changed dd>span { color:#155fba; }
.review-edit { margin:16px 0 20px; }
.loading { padding:64px 24px; text-align:center; color:var(--muted); }
.toast { position:fixed; z-index:20; bottom:100px; right:24px; padding:13px 18px; max-width:calc(100% - 48px); color:#fff; background:#273a32; border-radius:5px; overflow-wrap:anywhere; }
.toast.error { background:#9d2d2d; }
@media(max-width:1050px) { .layout { grid-template-columns:224px minmax(0,1fr); } .content { padding:28px 24px; } .actions { padding:16px 24px; } }
@media(max-width:760px) {
    .topbar { padding:12px 16px; gap:12px; } .brand { flex-shrink:0; } .connection { max-width:120px; }
    .layout { display:block; } .sidebar { position:relative; height:auto; padding:10px 12px; border-right:0; border-bottom:1px solid var(--border); }
    .sidebar-title,.progress-area { display:none; } #navigation { display:flex; overflow-x:auto; gap:6px; padding:2px; }
    .nav-button { width:194px; min-height:56px; flex-shrink:0; margin:0; }
    .content { padding:24px 18px 32px; } .page-heading { gap:10px; padding-bottom:20px; margin-bottom:22px; } h2 { font-size:21px; }
    .fields { grid-template-columns:1fr; row-gap:16px; } .actions { padding:12px 18px; flex-wrap:wrap; gap:8px; }
    #footerStatus { order:-1; flex-basis:100%; } #nextButton,#saveButton { margin-left:auto; }
    .primary,.secondary { font-size:13px; padding:9px 11px; } .review-row { grid-template-columns:1fr; gap:5px; }
    summary { flex-wrap:wrap; gap:8px; } summary small { flex-basis:100%; padding-left:26px; order:2; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; } }
