/* Map-sheet theme: day and night tokens, Archivo, squared chrome. Loaded last on every page. */
    html[data-style] {
      --bg: #E8EAE7; --bg-raised: #F6F7F5;
      --text: #15191D; --text-soft: #4A5258; --rule: #C3C8C5; --line: #15191D;
      --accent: #1F4E5F; --button-bg: #1F4E5F; --button-text: #F6F7F5; --brass-soft: #9AA3A0;
      --wall: #DCDFDC; --wall-light: rgba(255,255,255,.7);
      --display: "Archivo", system-ui, "Segoe UI", sans-serif;
      --body: "Archivo", system-ui, "Segoe UI", sans-serif;
      color-scheme: light;
    }
    html[data-style][data-theme="night"] {
      --bg: #12171B; --bg-raised: #1A2025;
      --text: #E6E9E6; --text-soft: #A3ABB0; --rule: #2B3339; --line: #56616A;
      --accent: #8CBBCB; --button-bg: #8CBBCB; --button-text: #0E1418; --brass-soft: #56616A;
      color-scheme: dark;
    }
    body { font-weight: 400; }
    h1, h2, h3, .wordmark { font-weight: 600; font-stretch: 112%; letter-spacing: -0.02em; }
    .wordmark { font-size: 1.25rem; letter-spacing: -0.01em; }

    /* Chrome: squared corners, ink lines, no pills */
    .site-header { border-bottom: 1px solid var(--line); }
    .btn, .style-switch, .style-switch button, .cselect-btn, .room-controls select, .menu-btn, .icon-btn, .toast { border-radius: 3px; }
    .cselect-list { border-radius: 3px; }
    .cselect-list li { border-radius: 2px; }
    .pack, .license { border-radius: 2px; border-color: var(--line); }
    .pack-cover, .room, .lb-body { border-radius: 2px; }
    .tree { border-radius: 2px; border: 1px solid var(--rule); }
    .section, .site-footer, .steps li { border-top-color: var(--line); }
    .pack-badge { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .9rem; }
    .dim { color: #4A5258; }
    dialog.lightbox::backdrop, html[data-style="paper"] dialog.lightbox::backdrop { background: rgba(10, 14, 17, .84); }
    .theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 3px; background: transparent; font-weight: 500; font-size: .92rem; }
    .theme-btn::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); flex: none; }
    .theme-btn:hover { border-color: var(--text-soft); }
    @media (max-width: 560px) { .theme-btn { min-height: 44px; } }

/* The bundle cover holds two small frames; give it the same height as the single-pack covers */
.pack-cover.two { aspect-ratio: 1 / 1.23; align-content: center; }
