@font-face { font-family: Archivo; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../styles/fonts/archivo-latin.woff2') format('woff2'); }
/* Local names for the shared tokens; --violet is the light violet ink here. */
:root { color-scheme: dark; --bg: var(--dm-ground); --panel: var(--dm-rail); --raised: var(--dm-raised); --ink: var(--dm-ink); --muted: var(--dm-prose-muted); --edge: var(--dm-edge-solid); --violet: var(--dm-violet-ink); }
* { box-sizing: border-box; }
html { scrollbar-color: #4b5367 var(--bg); scroll-padding: 24px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 15px/1.5 Archivo, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #9165ff; color: white; }
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { min-height: 44px; padding: 9px 13px; border: 1px solid var(--edge); border-radius: 8px; background: #191e2c; transition: background 140ms, border-color 140ms; }
button:hover { background: #262d40; border-color: #65708b; }
button[aria-pressed=true] { background: #302448; border-color: #ad90f4; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
a { color: inherit; text-underline-offset: 4px; }
input { accent-color: var(--violet); caret-color: var(--violet); }
input[type=range] { width: 100%; margin: 3px 0 16px; min-height: 30px; }
input[type=color] { width: 42px; height: 36px; padding: 3px; border: 1px solid #566079; border-radius: 8px; background: var(--bg); cursor: pointer; }
select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #424b60; border-radius: 8px; background: var(--bg); margin-top: 6px; }
button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; display: block; }
.light-handle svg { margin: auto; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(25px, 2.5vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: 15px; font-weight: 620; letter-spacing: -.01em; }
h3 { font-size: 13px; font-weight: 560; margin: 18px 0 12px; }
output, .dimensions, #light-count { font-variant-numeric: tabular-nums; }
.skip { position: fixed; z-index: 50; top: 8px; left: 12px; padding: 12px; background: white; color: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { min-height: 78px; padding: 14px 32px; display: flex; align-items: center; gap: 32px; border-bottom: 1px solid #202636; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.brand small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.site-header nav { display: flex; gap: 26px; margin-left: auto; }
.site-header nav a { padding: 10px 0; text-decoration: none; color: var(--muted); font-size: 13px; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a[aria-current] { color: var(--ink); }
.simulation { color: var(--muted); font-size: 12px; border: 1px solid #3a4255; padding: 4px 10px; border-radius: 999px; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; max-width: 1920px; margin: auto; }
.workspace { min-width: 0; padding: 32px 28px 16px; position: sticky; top: 0; align-self: start; }
.room-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.room-heading p { color: var(--muted); margin-top: 10px; font-size: 14px; }
.dimensions { color: var(--muted); font-size: 12px; white-space: nowrap; }
.configurator-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 13px; color: var(--violet); }
.configurator-links a { min-height: 32px; display: inline-flex; align-items: center; }
.viewport { position: relative; height: clamp(460px, calc(100svh - 275px), 850px); margin-top: 16px; border-radius: 16px; overflow: hidden; background: #0d111c; }
#room { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#room:active { cursor: grabbing; }
#room:focus-visible { outline-offset: -5px; }
#light-handles { position: absolute; inset: 0; pointer-events: none; }
.light-handle { pointer-events: auto; position: absolute; width: 32px; min-height: 32px; height: 32px; border-radius: 50%; padding: 0; border: 1px solid #c6b4ff; background: #17152fe8; color: white; font-size: 17px; line-height: 1; transform: translate(-50%, -50%); cursor: move; touch-action: none; }
.light-handle[aria-pressed=true] { outline: 2px solid #b9a2ff; outline-offset: 3px; background: #513c81; }
.light-handle::after { content: ''; position: absolute; inset: -7px; }
.room-caption { position: absolute; bottom: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); pointer-events: none; }
#scene-caption { font-size: 13px; color: var(--ink); }
.camera-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.camera-bar p { font-size: 12px; color: var(--muted); max-width: 28ch; }
.camera-bar [role=group] { display: flex; gap: 6px; }
.camera-bar button { font-size: 12px; background: #111522; }
.camera-bar button:first-child, .camera-bar button:nth-child(2) { padding: 10px; }
.render-status { position: absolute; inset: 0; display: grid; align-content: center; padding: 30px; text-align: center; background: #111522; color: var(--muted); font-size: 16px; }
[hidden] { display: none !important; }
.inspector { background: #111522; padding: 4px 24px 16px; }
.control-section { padding: 22px 0; border-bottom: 1px solid var(--edge); }
.control-section:last-child { border: 0; padding-bottom: 8px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#light-count { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 400; }
.scene-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.scene-choices button { display: flex; align-items: center; gap: 9px; font-size: 12px; text-align: left; padding: 10px; }
.scene-preview { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 5px; }
.afterhours { background: linear-gradient(135deg, #00ddf5, #9165ff 65%, #ffbc79); }
.sunset { background: linear-gradient(135deg, #ff9852, #f64c71 65%, #a35cff); }
.ocean { background: linear-gradient(135deg, #36e0be, #2099ed 65%, #3952cb); }
.reading { background: linear-gradient(135deg, #fff0cb, #ffbf73); }
.text-button { background: transparent; border-color: transparent; padding: 4px 0 4px 8px; color: var(--violet); font-size: 12px; min-height: 32px; }
.text-button:hover { background: transparent; border-color: transparent; text-decoration: underline; }
.light-list { display: flex; flex-direction: column; gap: 4px; }
.light-row { display: flex; align-items: center; gap: 12px; border-color: transparent; background: transparent; padding: 10px; text-align: left; min-height: 56px; }
.light-row[aria-pressed=true] { background: #202137; border-color: transparent; }
.light-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.light-row strong { display: block; font-size: 13px; font-weight: 550; }
.light-row small { display: block; font-size: 12px; color: var(--muted); }
.light-row .level { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.field { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0 18px; }
.field input { margin-left: auto; }
.field output { font-size: 12px; width: 66px; }
.range-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.range-field output { color: var(--ink); font-size: 12px; }
#power { min-height: 32px; min-width: 48px; padding: 4px 10px; font-size: 12px; }
.remove { background: transparent; color: #ffa3ae; width: 100%; font-size: 12px; margin-top: 8px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 15px; }
#motion { width: 100%; font-size: 12px; }
.save-state { font-size: 12px; color: var(--muted); margin: 14px 0 4px; }
.room-settings .text-button { padding-left: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1920px; margin: auto; padding: 20px 32px; color: var(--muted); font-size: 12px; border-top: 1px solid #202636; }
.noscript { padding: 24px; }
@media (min-width: 1600px) { main { grid-template-columns: minmax(0, 1fr) 360px; } .inspector { padding-left: 30px; padding-right: 30px; } .workspace { padding: 40px; } }
@media (max-width: 1100px) { .dimensions { display: none; } .workspace { padding: 28px 18px 14px; } .camera-bar { flex-wrap: wrap; } .camera-bar p { max-width: none; } .site-header { padding: 14px 22px; } }
@media (max-width: 760px) {
  .site-header { padding: 14px 18px 8px; gap: 14px; flex-wrap: wrap; }
  .brand { margin-right: auto; font-size: 19px; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .site-header nav a { font-size: 12px; }
  main { display: block; }
  .workspace { position: relative; padding: 24px 14px 0; }
  h1 { font-size: 27px; }
  .room-heading p { font-size: 13px; margin-top: 8px; }
  .viewport { height: 390px; margin-top: 18px; }
  .room-caption { left: 16px; right: 16px; bottom: 16px; flex-direction: column; gap: 3px; }
  .camera-bar { justify-content: center; padding: 14px 0 22px; gap: 12px; }
  .camera-bar p { font-size: 12px; text-align: center; width: 100%; }
  .camera-bar button { min-height: 44px; }
  .inspector { padding: 0 22px 12px; }
  .control-section { padding-top: 24px; padding-bottom: 24px; }
  .scene-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .scene-choices button { flex-direction: column; text-align: center; gap: 8px; padding: 10px 4px; font-size: 12px; }
  .scene-preview { width: 30px; flex-basis: 22px; }
  .text-button { min-height: 44px; }
  .light-handle { width: 36px; height: 36px; }
  #power { min-height: 44px; }
  input[type=range] { min-height: 38px; }
  footer { padding: 20px 22px; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-transparency: reduce) { .light-handle { background: #17152f; } }
