:root{color-scheme:dark;font:16px/1.5 Arial,sans-serif;--background:#090b0a;--surface:#111512;--input-surface:#090b0a;--text:#f4e8cf;--muted:#b8af9c;--line:#4e4938;--accent:#d5b77a;--button-bg:#d5b77a;--button-fg:#171b17;--button-hover:#dfc78f;--accent-soft:#22291f;--shadow-color:#0003}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--background);color:var(--text)}
main{max-width:1100px;margin:auto;padding:24px 40px 28px}.platform-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:20px;border-bottom:1px solid var(--line)}
.platform-brand{display:flex;align-items:center;gap:12px;color:var(--accent)}.platform-wordmark{display:block;font:italic 700 30px/1.15 Georgia,serif;letter-spacing:-.6px}.platform-subtitle{font:11px/1.4 Arial,sans-serif;letter-spacing:.12em;margin:5px 0 0}.platform-emblem{display:block;width:60px;height:60px;object-fit:contain;border-radius:50%;flex:none}
.platform-header .theme-toggle{display:grid;place-items:center;width:44px;min-height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--text)}.platform-header .theme-toggle:hover{background:var(--accent-soft)}.platform-header .theme-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.intro{padding:40px 0 30px}.eyebrow,.preview-label{font:700 10px/1.5 Arial,sans-serif;letter-spacing:.18em;color:var(--accent);margin:0 0 12px}.intro h1{font:500 clamp(34px,4.8vw,52px)/1.06 Georgia,serif;letter-spacing:-1.3px;margin:0 0 14px}.intro>p:last-child{font-size:15px;line-height:1.65;margin:0;color:var(--muted)}
.setup-layout{display:grid;grid-template-columns:265px minmax(0,1fr);gap:36px;align-items:start}.step-list{display:flex;flex-direction:column;gap:10px}.step-list button{display:flex;text-align:left;gap:13px;width:100%;border:1px solid transparent;border-radius:12px;padding:16px 13px;background:transparent;color:var(--text);font:inherit;cursor:pointer}.step-list button[aria-selected=true]{background:var(--accent-soft);border-color:var(--line)}.step-list button:not(:disabled):hover{background:var(--accent-soft)}.step-list button:disabled{opacity:.52;cursor:not-allowed}.step-number{font-size:12px;font-weight:700;padding-top:2px;color:var(--accent)}.step-list strong{display:block;font-size:14px;margin-bottom:5px}.step-list small{display:block;font-size:12px;line-height:1.65;color:var(--muted)}.step-list em{font-style:normal;font-size:10px;font-weight:400;margin-left:5px;color:var(--muted)}.draft-status{padding:8px 16px;font-size:11px;color:var(--muted);line-height:1.65}
.setup-card,.result-card{padding:30px 32px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 16px 40px var(--shadow-color)}.panel-heading h2,.result-card h2{font:500 28px/1.15 Georgia,serif;letter-spacing:-.6px;margin:0 0 9px}.panel-heading>p:last-child{font-size:13px;margin:0 0 23px;color:var(--muted)}
.brand-preview{display:flex;align-items:center;gap:14px;padding:17px 18px;margin:0 0 23px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text)}.brand-preview .preview-label{font-size:9px;letter-spacing:.12em;color:var(--muted);margin:0 0 5px}.brand-preview h3{margin:0;font:600 23px/1.25 Arial,sans-serif;overflow-wrap:anywhere}.brand-mark{display:grid;place-items:center;width:56px;height:56px;flex:none;border:1px solid var(--line);border-radius:12px;background:var(--accent-soft);color:var(--accent);font-size:22px;font-weight:600;overflow:hidden}.brand-mark img{width:100%;height:100%;object-fit:contain;padding:4px;background:var(--surface)}
label{display:block;font-size:13px;font-weight:600;margin:19px 0 7px}.optional{font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}input,select{display:block;width:100%;min-width:0;padding:12px;background:var(--input-surface);border:1px solid var(--line);border-radius:8px;color:var(--text);font:400 14px Arial,sans-serif;min-height:46px}input::placeholder{color:var(--muted);opacity:.8}select{cursor:pointer}input[type=file]{padding:7px;font-size:11px}input[type=file]::file-selector-button{padding:8px;margin-right:8px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--text);cursor:pointer;font-size:11px}.brand-controls{display:grid;grid-template-columns:1fr 1.35fr;gap:22px}.color-control{display:flex;align-items:center;gap:10px;min-height:46px}.color-control input{width:46px;height:42px;min-height:42px;padding:4px;border-radius:8px;cursor:pointer;flex:none}.color-control span{color:var(--muted);font-size:11px}.field-help{font-size:11px;line-height:1.6;color:var(--muted);margin:7px 0 0}.image-actions{display:flex;align-items:center;gap:8px;min-height:24px}.image-actions .field-help{margin:4px 0}.image-actions .text-button{font-size:11px;padding:4px;min-height:32px;background:transparent;color:var(--accent);border:0;text-decoration:underline}
button,.button-link{font:600 13px/1.4 Arial,sans-serif;cursor:pointer;background:var(--button-bg);color:var(--button-fg);border:1px solid transparent;border-radius:8px;padding:12px 18px;min-height:44px}button:hover,.button-link:hover{background:var(--button-hover)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:transparent;color:var(--text);border-color:var(--line)}button.secondary:hover{background:var(--accent-soft)}.form-actions{display:flex;justify-content:space-between;gap:12px;margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.form-actions.end{justify-content:flex-end}a{color:var(--accent)}.button-link{display:inline-flex;align-items:center;gap:16px;text-decoration:none}.result-card{max-width:650px;margin:auto}.result-card>p{color:var(--muted)}.result-card details{margin-top:24px;font-size:13px}
.profile-control{display:grid;grid-template-columns:74px minmax(0,1fr);gap:17px;align-items:center;margin-bottom:21px}.profile-control label{margin-top:0}.profile-preview{height:74px;width:74px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--accent-soft);overflow:hidden}.profile-preview img{width:100%;height:100%;object-fit:cover}.profile-preview svg{width:32px;height:32px;fill:none;stroke:var(--muted);stroke-width:1.4}.invitation-note{display:flex;gap:14px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--input-surface);margin-bottom:24px}.invitation-note svg{width:25px;height:25px;flex:none;fill:none;stroke:var(--accent);stroke-width:1.5}.invitation-note p{font-size:13px;color:var(--muted);margin:0;line-height:1.7}
#message{font-size:12px;line-height:1.6;color:var(--muted);margin:15px 0 0}#message:empty{display:none}.build-footer{max-width:650px;text-align:center;margin:28px auto 0;color:var(--muted);font-size:10px}.build-footer>p{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 0 7px}.build-dot{width:5px;height:5px;border-radius:50%;background:var(--accent)}.build-footer summary{cursor:pointer;font-size:10px}.build-footer details>p{max-width:520px;margin:10px auto 0;line-height:1.7}summary{cursor:pointer}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
@media(max-width:760px){main{padding:18px 20px 25px}.intro{padding:30px 0 24px}.intro h1{font-size:40px}.setup-layout{grid-template-columns:1fr;gap:20px}.step-list{gap:6px}.step-list button{padding:12px 14px;gap:12px}.step-list strong{font-size:13px;margin-bottom:3px}.step-list small{font-size:11px}.draft-status{padding:0 14px;margin:8px 0 0}.setup-card,.result-card{padding:23px}.platform-brand{font-size:25px}.platform-mark{width:35px;height:35px}.panel-heading h2{font-size:26px}.intro h1 br{display:none}.intro h1{max-width:450px}.build-footer{margin-top:23px}}
@media(max-width:420px){main{padding:16px}.brand-controls{gap:14px;grid-template-columns:.85fr 1.15fr}.setup-card{padding:19px}.intro h1{font-size:36px}.color-control{gap:7px}.color-control span{font-size:10px}.brand-preview{padding:14px}.brand-preview h3{font-size:21px}.step-list small{line-height:1.5}.platform-header{padding-bottom:15px}.desktop-break{display:none}}
@media(max-width:760px){.step-list button[aria-selected=false] small{display:none}}
@media(max-width:760px){.platform-wordmark{font-size:26px}.platform-subtitle{font-size:10px}.platform-emblem{width:48px;height:48px}}

#contextMessage{max-width:650px;margin:24px auto;overflow-wrap:anywhere} input[type=checkbox]{width:auto;display:inline} #recipient{overflow-wrap:anywhere} input:disabled{opacity:.65}

/* Exact recovered Creator control sizing, shared by the two platform contexts. */
.platform-header #theme.theme-toggle{display:grid;place-items:center;width:44px;height:44px;min-height:44px;flex:0 0 44px;padding:0;margin:0;line-height:1;color:var(--text)}
.platform-header #theme.theme-toggle svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.platform-header #rehearsalThemeToggle.theme-toggle{height:44px;flex:0 0 44px;padding:0;margin:0;line-height:1}
.platform-header #rehearsalThemeToggle.theme-toggle svg{display:block}
