:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eef3fa;
  background: #0b0e15;
  --muted: #a2adbf;
  --line: #283343;
  --panel: #141b28;
  --mint: #9ef2cf;
  --red: #ffb3ad;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; background: radial-gradient(ellipse at 12% 0%, #20343e, transparent 44rem); }
a { color: var(--mint); }
p, h1, h2, dl, dd { margin: 0; }
button, input { font: inherit; }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .68rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #202b3b;
  color: inherit;
  cursor: pointer;
  font-weight: 660;
  font-size: .92rem;
  transition: background 130ms ease, border-color 130ms ease;
}
button:hover:not(:disabled) { background: #2d3b4b; border-color: #587282; }
button:disabled { opacity: .43; cursor: default; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
button.primary { background: var(--mint); border-color: var(--mint); color: #10271f; }
button.primary:hover:not(:disabled) { background: #c6f9e5; }
button.danger { color: var(--red); background: #2d2029; border-color: #562f38; }
button.danger:hover:not(:disabled) { background: #42252d; border-color: #a35155; }
.shell { max-width: 1160px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 22px; }
.brand { display:flex; align-items:center; gap: 11px; min-width: 0; }
.brand img { flex: none; background: #1c2a36; border-radius: 11px; }
h1 { font-size: clamp(1.08rem, 3vw, 1.4rem); line-height: 1.18; letter-spacing: -.03em; }
.brand p { font-size: .84rem; color: var(--muted); margin-top: 3px; }
.connection { display:inline-flex; gap: 7px; align-items:center; justify-content:center; border: 1px solid var(--line); border-radius: 100px; padding: .47rem .6rem; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.connection i { border-radius: 50%; width: 7px; height: 7px; background: #d7a963; flex: none; }
.connection.online { color: var(--mint); border-color: #355747; }
.connection.online i { background: var(--mint); box-shadow: 0 0 10px #9ef2cf8a; }
.panel { border: 1px solid var(--line); border-radius: 15px; background: var(--panel); }
.pair { max-width: 570px; margin: 3rem auto; padding: clamp(20px, 5vw, 34px); }
h2 { font-size: 1.13rem; letter-spacing: -.02em; }
.pair h2 { font-size: 1.55rem; }
.pair p, .pair label { color: var(--muted); line-height: 1.6; }
.pair label { display: inline-block; margin-top: 1.25rem; font-size: .85rem; }
.pair p { margin: .7rem 0; }
.pair form { display: flex; gap: 9px; margin-top: 5px; }
.pair input { min-width: 0; flex: 1; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: #eef3fa; background: #0d1520; }
.hero { padding: clamp(17px, 3.2vw, 30px); display: flex; justify-content: space-between; align-items: center; gap: 18px; background: linear-gradient(143deg, #1b3036, #161f2e 56%, #181e2a); }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--mint); font-size: .74rem; font-weight: 700; letter-spacing: .11em; }
.hero h2 { font-size: clamp(1.35rem, 3.8vw, 2.5rem); line-height: 1.12; margin-top: 7px; overflow-wrap: anywhere; }
.hero p { color: var(--muted); margin-top: 8px; font-size: .88rem; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(76px,1fr)); gap: 8px; flex: 0 1 380px; }
.metrics div { padding: 10px; border: 1px solid #334746; border-radius: 12px; background: #0f1b23aa; }
.metrics dt { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.metrics dd { font-size: clamp(1.2rem, 4vw, 1.73rem); color: var(--mint); font-weight: 720; margin-top: 3px; }
.workspace { display: grid; grid-template-columns: minmax(300px, .87fr) minmax(0, 1.13fr); gap: 16px; margin-top: 16px; align-items: start; }
.stack { display: grid; gap: 16px; min-width: 0; }
.section { padding: 16px; min-width: 0; }
.section-head { display: flex; gap: 9px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head span { color: var(--muted); font-size: .75rem; }
.buttons { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.feedback { min-height: 1.1em; color: var(--muted); font-size: .86rem; margin-top: 10px; overflow-wrap: anywhere; }
.loadout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.loadout div { padding: 9px; border-radius: 9px; background: #1c2737; }
.loadout dt { color: var(--muted); font-size: .74rem; }
.loadout dd { color: #f5fcfb; font-weight: 660; font-size: .91rem; line-height: 1.25; margin-top: 4px; overflow-wrap: anywhere; }
.activity { list-style: none; margin: 0; padding: 0; max-height: 235px; overflow: auto; }
.activity li { display: flex; gap: 8px; color: #d6ddeb; padding: 6px 0; overflow-wrap: anywhere; border-bottom: 1px solid #253042; font-size: .83rem; }
.activity time { color: var(--mint); font: .75rem ui-monospace, monospace; flex: none; padding-top: 2px; }
.stage { display: grid; place-items: center; min-height: 263px; background: #0b111b; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; overflow: hidden; }
.stage img { width: 100%; height: auto; object-fit: contain; }
#shot-empty { padding: 22px; text-align: center; color: var(--muted); font-size: .9rem; }
.viewfinder { display: inline-block; width: 42px; height: 28px; border: 1px solid var(--mint); border-radius: 5px; opacity: .72; margin-bottom: 10px; position: relative; }
.viewfinder::after { content: ""; width: 8px; height: 8px; border: 1px solid var(--mint); border-radius: 50%; position: absolute; inset: 0; margin: auto; }
.shot-time { min-height: 1.2em; color: var(--muted); font-size: .78rem; padding-top: 8px; }
.footer { display:flex; align-items:center; justify-content:space-between; gap: 12px; color:var(--muted); padding: 8px 2px 0; font-size: .8rem; }
button.text-button { background: none; border-color: transparent; color:var(--muted); font-size: .8rem; }
@media (max-width: 720px) {
  .hero { align-items: stretch; flex-direction: column; gap: 12px; }
  .metrics { flex: none; }
  .workspace { grid-template-columns: minmax(0,1fr); gap: 12px; margin-top: 12px; }
  .stack { gap: 12px; display: contents; }
  .capture { grid-row: 2; }
  .stage { min-height: 197px; }
  .top { padding-top: 2px; padding-bottom: 15px; }
}
@media (max-width: 340px) {
  .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .metrics div { padding: 6px; }
  .metrics dt { font-size: .65rem; }
  button { padding-inline: .55rem; font-size: .83rem; }
}
