/* Creation-only public UI. Banner artwork uses the immutable original CSS. */
#validation:empty { display:none; }
#revision-label { margin-top:14px; }

/* Keep startup chrome separate from the approved artwork fingerprint. */
body.startup-pending { overflow:hidden; }
.startup-overlay {
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  overflow:auto;
  padding:24px;
  background:rgba(0,0,0,.64);
  overscroll-behavior:contain;
}
.startup-overlay:focus { outline:none; }
.startup-overlay[hidden], .startup-overlay [hidden] { display:none; }
.startup-card {
  width:min(100%,420px);
  padding:36px 28px;
  border:1px solid #dddcd5;
  border-radius:18px;
  background:#f8f7f2;
  color:#22251f;
  box-shadow:0 20px 80px #0004;
  text-align:center;
  font-family:system-ui,-apple-system,sans-serif;
  overflow-wrap:anywhere;
}
.startup-card h2 { margin:20px 0 12px; font-size:22px; }
.startup-card p { margin:8px 0; line-height:1.75; }
#startup-hint { color:#5d6058; font-size:13px; }
#startup-retry { width:100%; min-height:48px; margin-top:22px; }
#startup-retry:focus-visible { outline:3px solid #22251f; outline-offset:4px; }
.startup-spinner {
  display:inline-block;
  width:36px;
  height:36px;
  border:3px solid #d5d6cf;
  border-top-color:#22251f;
  border-radius:50%;
  animation:startup-spin .9s linear infinite;
}
@keyframes startup-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .startup-spinner { animation:none; } }
@media (max-width:400px) {
  .startup-overlay { padding:16px; }
  .startup-card { padding:28px 20px; }
}

#startup-reload[hidden] { display:none; }
#startup-reload { display:inline-block; margin-top:18px; color:inherit; font-size:12px; text-underline-offset:3px; }

/* Availability and render-only preview state. */
select[name="templateChoice"] option:disabled { color: #888; background: #eee; }
#preview-mode[data-mode="sample"] { color: #72521b; background: #fff4d8; padding: 10px 12px; border-radius: 8px; }


/* Approved event-information sidebar and quiet, floating studio panels.
   Deliberately isolated from style.css and the canvas rendering fingerprint. */
body { background:#f1f2f5; }
#creator-root { padding:18px 40px 28px; max-width:1680px; margin:auto; }
#creator-root header { height:64px; min-height:64px; padding:0 24px; border:1px solid #e9eaed; border-radius:26px; background:#fff; box-shadow:0 3px 16px #20243104; }
#creator-root .brand { font-size:30px; font-weight:800; }
#creator-root .brand span { margin-left:14px; color:#777b85; font-size:11px; letter-spacing:.12em; font-weight:500; }
#creator-root main { max-width:none; padding:20px 0 0; }
#creator-root .workspace { grid-template-columns:minmax(290px,405px) minmax(0,1fr); gap:28px; }
#banner-form { padding:26px 24px; border:1px solid #e7e8ed; border-radius:26px; box-shadow:0 5px 24px #28304704; }
#event-heading { display:flex; align-items:center; gap:12px; margin:0 0 22px; font-size:26px; font-weight:750; letter-spacing:-.04em; }
#event-heading svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
#banner-form label { margin:17px 0 0; font-size:13px; font-weight:600; color:#4b4f59; }
#banner-form input,#banner-form select { border:1px solid #e2e4e9; border-radius:11px; background:#f7f8fa; min-height:44px; padding:10px 12px; margin-top:8px; font-size:14px; color:#20232a; }
#banner-form hr { border:0; border-top:1px solid #eceef1; margin:23px 0; }
#banner-form .hint { margin:8px 0 0; font-size:11px; color:#858a94; }
#banner-form .pair { gap:12px; }
#creator-root input:focus-visible,#creator-root select:focus-visible,#creator-root button:focus-visible { outline:2px solid #555c6b; outline-offset:3px; }
.studio-content { min-width:0; }
#creator-root .intro { margin:10px 0 0; }
#creator-root h1 { font-size:30px; font-weight:750; margin:0 0 10px; letter-spacing:-.04em; }
#creator-root .intro p { margin:0; font-size:13px; color:#858a94; }
#creator-root #status { margin:8px 0 12px; min-height:18px; font-size:11px; color:#858a94; }
#creator-root .preview-card { position:static; padding:24px; border:1px solid #e7e8ed; border-radius:26px; box-shadow:0 5px 24px #28304704; }
#creator-root .preview-head h2 { margin:0; font-size:19px; font-weight:700; }
#creator-root #preview-size { background:#f5f6f8; border:1px solid #e9ebef; border-radius:9px; padding:6px 10px; font-size:11px; color:#858a94; white-space:nowrap; }
#creator-root .canvas-wrap { padding:0; margin-top:18px; border:0; border-radius:10px; overflow:hidden; background:#f4f5f7; }
#creator-root #preview-mode { font-size:11px; margin:12px 0 0; }
#creator-root #preview-mode[data-mode="input"] { color:#858a94; }
#creator-root #revision-label { font-size:11px; background:transparent; padding:0; color:#858a94; margin:12px 0 0; }
#creator-root #validation { font-size:12px; }
.export-card { display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; margin-top:22px; padding:24px; background:#fff; border:1px solid #e7e8ed; border-radius:24px; box-shadow:0 5px 24px #28304704; }
.export-description { display:flex; align-items:center; gap:14px; flex:1 1 220px; }
.export-description svg { width:48px; height:48px; padding:13px; flex-shrink:0; border-radius:13px; background:#f4f5f8; fill:none; stroke:#737987; stroke-width:1.5; }
#creator-root .export-description h2 { font-size:17px; font-weight:700; margin:0 0 7px; }
.export-description p { font-size:11px; color:#858a94; margin:0; }
#creator-root .check { margin:0; font-size:11px; font-weight:400; color:#858a94; flex:0 1 210px; }
#creator-root #export { width:auto; margin:0; min-height:44px; border-radius:24px; padding:12px 22px; font-size:13px; background:#20232b; border-color:#20232b; }
#creator-root #export:hover:not(:disabled) { background:#363b46; }
#creator-root #export:disabled { opacity:.4; }
@media (max-width:1150px) {
 #creator-root { padding:18px 24px 24px; }
 #creator-root .workspace { grid-template-columns:310px minmax(0,1fr); gap:20px; }
 #banner-form { padding:24px 20px; }
 #event-heading { font-size:23px; }
 .export-card { gap:18px; }
}
@media (max-width:800px) {
 #creator-root { padding:12px 16px 24px; }
 #creator-root header { padding:0 18px; border-radius:20px; }
 #creator-root main { padding-top:16px; }
 #creator-root .workspace { grid-template-columns:minmax(0,1fr); gap:20px; }
 #banner-form { border-radius:22px; }
 #creator-root .preview-card { padding:18px; border-radius:22px; }
 #creator-root h1 { font-size:26px; }
 .export-card { padding:20px; border-radius:22px; }
 #creator-root #export { width:100%; }
 #creator-root .check { flex-basis:100%; }
 #creator-root .brand span { font-size:10px; }
}

/* Keep existing header layout; only replace its PbY wordmark with supplied logo. */
#creator-root .brand { display:inline-flex; align-items:center; }
#creator-root .brand-logo { display:block; width:58px; height:31px; object-fit:contain; }
#banner-form, #creator-root .preview-card, #creator-root .export-card { min-width:0; }
#creator-root .preview-head { flex-wrap:wrap; gap:10px; }
#creator-root .canvas-wrap canvas { display:block; max-width:100%; height:auto; }
#creator-root .export-description { min-width:0; }
