body.night{background:#101419;color:#e9edf1}
.night .header{height:75px;background:#0d1116;border-bottom:1px solid #353a40;padding:0 clamp(16px,4vw,72px)}
.night .brand-copy,.night .preview-heading,.night .preview-footer{display:none}
.night .header .brand-icon{height:60px;width:auto}
.night main{max-width:none;padding:0;margin:0}
.night .workspace{display:block;margin:0;background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible}
.night .preview-panel{position:relative;padding:0;background:#0b1017;display:block;overflow:hidden;border-radius:0}
.night .plate-stage{container-type:size;width:100%;height:clamp(420px,39vw,760px);min-height:0;margin:0;padding:0;background:url('/assets/night-studio.webp') center 54% /cover no-repeat}
/* The car photograph (1672 × 941) uses cover. Scale the overlay with whichever axis fills the stage. */
.night .plate-wrap{position:absolute;left:50%;top:calc(54% - max(.7cqw, 1.244cqh));transform:translate(-50%,-50%);width:max(20cqw, 35.537cqh);max-width:none;height:auto;aspect-ratio:2;box-shadow:0 3px 8px #000b;border-radius:5px}
.night .studio-heading{position:absolute;top:clamp(14px,3vw,46px);left:4%;z-index:2;color:white;text-shadow:0 2px 10px #000}
.night .studio-heading h1{font:650 clamp(26px,3.3vw,50px)/1.1 system-ui;margin:0 0 12px;letter-spacing:-.045em}
.studio-tabs{display:inline-flex;background:#12171ee8;border:1px solid #777;border-radius:28px;overflow:hidden}
.studio-tabs button{padding:8px 15px;color:white;background:transparent;border:0;font-weight:650}
.studio-tabs button[aria-pressed=true]{color:#151513;background:#ffbe3f;border-radius:24px}
.night .plate-only .plate-stage{background:radial-gradient(ellipse at center,#46505b,#151a20 70%)}
.night .plate-only .plate-wrap{top:53%;width:min(56%,590px)}
.night .preview-error{position:absolute;bottom:35px;background:#171a20df;padding:5px 12px;border-radius:8px}
.night .editor{position:relative;z-index:2;margin:-22px auto 26px;width:calc(100% - 5vw);max-width:1460px;border:1px solid #41464d;border-radius:18px;padding:clamp(14px,2.1vw,32px);background:#1b2026;color:#f1f3f5;box-sizing:border-box}
.studio-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:22px;align-items:end}
.night .state-picker{margin:0}.night .step-label{margin:0 0 7px;color:#f3f4f5}.night .step-label>span:first-child{display:none}
.night .state-trigger,.night .input-wrap input{background:#252a31;color:white;border:1px solid #687078;height:48px}.night #character-count,.night .state-trigger-note{color:#c5cace}
.studio-actions{display:flex;align-items:center;gap:8px}.night .download-button{background:#ffbf41;color:#17150e;border:0;min-height:48px;border-radius:8px}.night .preview-share{position:static;width:46px;height:46px;color:white;border-color:#687078}
.night .state-menu{z-index:12;color:#17241e}.night .design-picker-heading{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px}.night .design-picker-heading .step-label{margin:0}
.night #desktop-design-list:not([hidden]){display:flex;gap:10px;overflow:auto;max-height:none;padding:4px 0 9px;border:0;background:none}
.night .design-option{display:flex;flex:0 0 145px;flex-direction:column;align-items:flex-start;gap:5px;background:#262c33;border:1px solid #515960;border-radius:8px;color:white;padding:7px}
.night .design-option[aria-pressed=true]{outline:2px solid #ffc149;outline-offset:-2px}.night .design-option-image{width:100%;display:block;aspect-ratio:2}.night .design-option-image>*{width:100%;height:auto;aspect-ratio:2;margin:0;object-fit:contain}
.night .design-option-title{color:#f8f8f8;font-size:12px}.night .design-option-check,.night .design-option .card-capacity{display:none}
.night .helper,.night .application-disclosure summary,.night .validation{color:#d2d7df}.night .application-layout{background:#f5f7f7;color:#17231e}.night .application-layout .helper{color:#43534b}
.night main>section:not(.workspace),.night footer{color:#edf1f4;background:#161b21;padding:24px clamp(16px,4vw,72px);margin:0}
@media(max-width:760px){.night .plate-stage{height:340px}.night .studio-heading{top:12px}.night .studio-heading h1{font-size:24px;margin-bottom:5px}.night .studio-tabs button{padding:5px 10px}.night .plate-only .plate-wrap{width:min(75%,430px);top:58%}.studio-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.studio-actions{grid-column:1/-1}.night .editor{width:96%;margin-top:-12px}.night .state-trigger-note{display:none}.night .design-option{flex-basis:110px}.night .preview-error{bottom:18px}}
.night .header{color:#f6f7f8}.night #state-trigger #state-name{color:#f6f7f8}.night .studio-actions .download-button:hover:not(:disabled){background:#ffd376}.night .studio-actions .download-button{order:0;margin:0}
.night .editor .application-disclosure summary .fit-label{color:inherit}
.night .studio-controls>div{min-width:0}
.night .design-option{height:auto;min-height:84px;justify-content:flex-start}.night .design-option-image{flex:none}.night .design-option-copy{line-height:1.2;text-align:left}.night .plate-stage{flex:none}

@media (max-width: 760px) {
  .night .studio-controls { grid-template-columns: minmax(0, 1fr) 46px; gap: 10px; }
  .night #state-picker { grid-column: 1 / -1; }
  .night .state-trigger svg { margin-inline-start: auto; }
  .night .studio-actions { grid-column: 2; }
  .night .studio-actions .preview-share { height: 48px; }
  .night .input-wrap input { padding: 8px 12px; font-size: 22px; letter-spacing: .045em; }
  .night .studio-controls > div:has(.input-wrap) { position: relative; }
  .night .input-wrap { position: static; }
  .night #character-count { top: 0; right: 0; transform: none; font-size: 11px; }
  .night .studio-controls .step-label { padding-right: 65px; }
  .night .design-option { flex-basis: clamp(104px, 38%, 160px); scroll-snap-align: start; }
  .night #desktop-design-list { scroll-snap-type: x proximity; }
  .night .design-picker-heading:has(+ #desktop-design-list > :nth-child(3)) .design-step-title::after {
    content: "Swipe to explore →"; display: block; color: #b9c3ce; font-size: 12px; font-weight: 450; margin-top: 3px;
  }
}

.night :is(.catalog-section, .rules, .about-tool, .site-disclaimer, .site-footer) {
  color-scheme: dark;
}
.night :is(.popular-section, .rules, .site-disclaimer) {
  background: #1c2229;
  color: #edf1f4;
  border-color: #39434c;
}
.night :is(.design-card, .search-wrap, .catalog-controls select, .catalog-pagination button) {
  background: #262d35;
  color: #edf1f4;
  border-color: #4b5661;
}
.night :is(.card-title, .search-wrap input) { color: #edf1f4; }
.night :is(.card-meta, .popular-note, .section-heading > span, .catalog-pagination > span,
  .about-tool p, .section-eyebrow, .site-disclaimer p, .rules-content, .design-attribution,
  .search-wrap > span, .rules summary .rules-toggle) { color: #bbc5cf; }
.night .search-wrap input::placeholder { color: #bbc5cf; }
.night .design-card.too-long .card-meta { color: #ffbd91; }
.night .card-meta .selected-check { border-color: #81909f; }
.night .design-card:hover, .night .catalog-pagination button:hover:not(:disabled) {
  background: #303944;
  border-color: #8694a1;
}
.night .design-card[aria-pressed=true] { border-color: #ffc149; box-shadow: none; }
.night .design-card[aria-pressed=true] .selected-check,
.night .catalog-pagination button[aria-current=page] {
  background: #ffc149;
  border-color: #ffc149;
  color: #181b20;
}
.night .catalog-section :focus-visible, .night .search-wrap:focus-within {
  outline: 2px solid #ffd27a;
  outline-offset: 2px;
}
.night :is(.source-links, .design-attribution a, .site-footer a, .footer-credits summary,
  .footer-contact .contact-developer) { color: #bad8c9; }
.night :is(.about-tool, .site-footer, .rule-table td, .rule-table th) { border-color: #39434c; }
