
  :root { color-scheme: dark; font-family: Inter, "Helvetica Neue", Arial, sans-serif; color: #e8eadf; background: #111311; }
  * { box-sizing: border-box; }
  body { margin: 0; }
  button, input { font: inherit; }
  button { cursor: pointer; }
  button:focus-visible, input:focus-visible { outline: 2px solid #d9ef9b; outline-offset: 5px; }
  button { color: inherit; background: transparent; border: 1px solid #484b43; border-radius: 6px; padding: 10px 16px; min-height: 42px; transition: background .2s, border-color .2s; }
  button:hover { background: #30342b; border-color: #929a80; }
  button[aria-pressed="true"], .primary { background: #d9ef9b; color: #19200e; border-color: #d9ef9b; }
  button:disabled { opacity: .5; cursor: wait; }
  .shell { max-width: 1500px; margin: auto; padding: 30px 40px 24px; }
  header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 38px; }
  .brand { display: flex; align-items: center; gap: 13px; font-size: 17px; letter-spacing: .16em; font-weight: 600; }
  .brand-mark { width: 25px; height: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(-8deg); }
  .brand-mark i { background: #d9ef9b; }
  .brand-mark i:nth-child(2) { transform: translateY(-4px); }
  .brand-mark i:nth-child(3) { transform: translateX(-4px); }
  .eyebrow { color: #a2a99a; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
  .intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 23px; }
  h1 { font-weight: 400; font-size: clamp(30px, 4.4vw, 59px); letter-spacing: -.055em; line-height: 1.05; margin: 0; }
  h1 em { font-family: Georgia, serif; font-weight: 400; color: #d9ef9b; }
  .intro p { color: #a2a99a; font-size: 13px; line-height: 1.6; margin: 0; max-width: 270px; }
  .stage { position: relative; background: #20251f; overflow: hidden; border-radius: 8px; }
  #view { width: 100%; height: clamp(320px, 53vw, 660px); display: block; cursor: grab; touch-action: none; }
  #view:active { cursor: grabbing; }
  .stage-top, .stage-bottom { position: absolute; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; gap: 12px; }
  .stage-top { top: 18px; }
  .stage-bottom { bottom: 18px; }
  .chip { color: #fff9ea; background: #15231ac9; backdrop-filter: blur(12px); padding: 8px 10px; border-radius: 4px; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .09em; }
  .signal { display: inline-block; width: 6px; height: 6px; background: #d9ef9b; border-radius: 50%; margin-right: 7px; }
  .motion { width: 150px; }
  .motion-label { display: flex; justify-content: space-between; margin-bottom: 7px; }
  .track { height: 3px; background: #e9f3d736; }
  #motion-bar { display: block; width: 0; height: 100%; background: #d9ef9b; transition: width .1s linear; }
  .controls { display: grid; grid-template-columns: 1.35fr 1fr 1fr auto; gap: 30px; padding: 25px 0; align-items: center; }
  .control-label { display: flex; justify-content: space-between; color: #a2a99a; font-size: 12px; margin-bottom: 12px; gap: 10px; }
  output { color: #e8eadf; font-variant-numeric: tabular-nums; }
  .buttons { display: flex; gap: 7px; flex-wrap: wrap; }
  .buttons button { font-size: 12px; }
  input[type=range] { width: 100%; accent-color: #d9ef9b; height: 18px; margin: 0; cursor: ew-resize; }
  .actions { display: flex; gap: 8px; align-items: center; }
  .actions button { font-size: 12px; white-space: nowrap; }
  footer { border-top: 1px solid #34392f; padding-top: 16px; display: flex; justify-content: space-between; gap: 14px; color: #939c88; font-size: 11px; line-height: 1.5; }
  #status { max-width: 720px; }
  video { display: none; }
  @media (max-width: 850px) {
    .shell { padding: 22px; } header { margin-bottom: 28px; }
    .controls { grid-template-columns: 1fr 1fr; gap: 23px; }
    .actions { justify-content: flex-end; } .intro p { max-width: 210px; }
  }
  @media (max-width: 520px) {
    .shell { padding: 17px 14px; } header .eyebrow { display: none; }
    .intro { display: block; } .intro p { max-width: none; margin-top: 12px; }
    #view { height: 400px; } .controls { gap: 22px 17px; }
    .source-control, .actions { grid-column: 1 / -1; }
    .actions { justify-content: flex-start; }
    .stage-top, .stage-bottom { left: 12px; right: 12px; }
    .motion { width: 115px; } .stage-bottom > .chip { max-width: 145px; line-height: 1.6; }
    footer { flex-direction: column; } button { min-height: 44px; }
  }
#camera-gate{position:absolute;inset:0;z-index:3;background:#111713;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px}#camera-gate[hidden]{display:none}#camera-gate h2{font:400 clamp(28px,5vw,56px) Georgia,serif;margin:0}#camera-gate p{font-size:14px;max-width:380px;line-height:1.5}#start-camera{padding:12px 22px}
