:root {
  color-scheme: dark;
  --bg: #171c15;
  --paper: #262d22;
  --paper-soft: #313a2b;
  --panel: var(--paper);
  --panel-solid: var(--paper);
  --line: #080b07;
  --text: #f3f0e3;
  --muted: #aeb6a2;
  --accent: #9bd653;
  --accent-strong: #b7e778;
  --accent-soft: #3c522f;
  --accent-2: #b9e77f;
  --sun: #e2b958;
  --danger: #e77965;
  --warning: #dba74d;
  --on-accent: #10150d;
  --radius: 16px;
  --stroke: 2px solid var(--line);
  --shadow: 7px 7px 0 var(--line);
  --shadow-small: 4px 4px 0 var(--line);
  font-family: Inter, "Arial", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(130px);
  opacity: 0.1;
  pointer-events: none;
}

.ambient-one { background: var(--accent); top: -260px; left: -100px; }
.ambient-two { background: #6048ff; right: -250px; bottom: -280px; }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark { height: 22px; display: flex; align-items: center; gap: 3px; }
.brand-mark i { display: block; width: 3px; border-radius: 4px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:nth-child(3) { height: 13px; }
.brand-mark i:nth-child(4) { height: 21px; }

.prototype-badge {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.top-actions { display: flex; align-items: center; gap: 10px; }
.profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px 5px 6px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  cursor: pointer;
  font-size: 11px;
}
.profile-chip:hover { border-color: rgba(184,255,54,.4); }
.profile-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--accent), #72dbff); color: #10130b; font-size: 11px; font-weight: 900; }
.profile-avatar.large { width: 45px; height: 45px; font-size: 17px; }

.shell { max-width: 1320px; margin: 0 auto; padding: 54px 28px 90px; position: relative; }
.panel { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24); backdrop-filter: blur(18px); }
.hidden { display: none !important; }

.home-shell { display: grid; gap: 18px; }
.hero { max-width: 880px; width: 100%; margin: 3vh auto 0; padding: 58px; border-radius: 26px; }
.eyebrow { color: var(--accent); letter-spacing: 0.18em; font-size: 11px; font-weight: 800; margin: 0 0 15px; }
.hero h1 { font-size: clamp(44px, 7vw, 78px); line-height: 0.96; letter-spacing: -0.06em; margin: 0; }
.hero h1 span { color: var(--muted); }
.lead { color: var(--muted); font-size: 18px; line-height: 1.55; max-width: 660px; margin: 28px 0 34px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
  border-radius: 16px;
  text-align: left;
  padding: 20px;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 10px;
  cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}
.choice-card:hover { transform: translateY(-2px); border-color: rgba(184,255,54,.5); background: rgba(184,255,54,.04); }
.choice-icon { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255,255,255,.06); border-radius: 10px; }
.choice-card strong { font-size: 15px; }
.choice-card small { color: var(--muted); margin-top: 4px; }
.primary-choice .choice-icon { color: #0a0c0d; background: var(--accent); }
.fine-print { color: #686f7e; margin: 23px 0 0; font-size: 12px; }

#home-social-mount { max-width: 880px; width: 100%; margin: 0 auto; }
.social-panel { border-radius: 22px; padding: 24px; width: 100%; }
.social-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.social-head h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.social-head .eyebrow { margin-bottom: 7px; }
.mini-status { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; font-size: 10px; white-space: nowrap; }
.mini-status.live { color: var(--accent); border-color: rgba(184,255,54,.25); }
.mini-status.error { color: var(--danger); border-color: rgba(255,103,125,.28); }
.incoming-invite { margin-top: 18px; padding: 13px 15px; border: 1px solid rgba(184,255,54,.35); border-radius: 13px; background: rgba(184,255,54,.06); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.incoming-invite div { display: grid; gap: 4px; }
.incoming-invite small { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.incoming-invite strong { font-size: 13px; }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.social-column { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: rgba(255,255,255,.018); }
.profile-summary { display: flex; align-items: center; gap: 11px; }
.profile-summary div { display: grid; gap: 3px; }
.profile-summary small { color: var(--muted); font-size: 10px; }
.profile-summary strong { font-size: 15px; }
.social-action button { min-width: 92px; color: var(--text); border: 1px solid var(--line); border-left: 0; border-radius: 0 9px 9px 0; background: rgba(255,255,255,.06); cursor: pointer; font-size: 11px; }
.social-action button:hover { background: rgba(184,255,54,.09); }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.people-grid h3 { margin: 0 0 9px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.people-list { display: grid; gap: 7px; }
.person-row { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.person-dot { width: 8px; height: 8px; border-radius: 50%; background: #4d5360; flex: 0 0 auto; }
.person-dot.online { background: var(--accent); box-shadow: 0 0 10px rgba(184,255,54,.45); }
.person-meta { min-width: 0; display: grid; gap: 2px; margin-right: auto; }
.person-meta strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.person-meta small { color: var(--muted); font-size: 9px; }
.person-row button { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--text); background: rgba(255,255,255,.055); cursor: pointer; font-size: 10px; }
.person-row button:disabled { opacity: .38; cursor: not-allowed; }
.empty-state { margin: 0; min-height: 50px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; color: #666e7d; font-size: 10px; }
#host-social-mount .social-panel { max-width: none; }

.workspace { display: grid; gap: 18px; }
.session-head { border-radius: var(--radius); padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; }
.session-head h2 { margin: 0; font-size: 27px; letter-spacing: -0.04em; }
.session-head .eyebrow { margin-bottom: 7px; }
.status-pill { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; font-size: 13px; color: var(--muted); }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: #666; }
.status-pill.live span { background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.status-pill.live { color: var(--text); }
.status-pill.error span { background: var(--danger); }

.workspace-tabs {
  width: fit-content;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 13px;
  box-shadow: none;
}
.workspace-tab {
  min-width: 120px;
  border: 0;
  border-radius: 9px;
  padding: 9px 16px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: color .18s, background .18s, box-shadow .18s;
}
.workspace-tab:hover { color: var(--text); }
.workspace-tab.active {
  color: #11150b;
  background: var(--accent);
  box-shadow: 0 5px 18px rgba(184,255,54,.12);
}
.host-view { min-width: 0; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .7fr); gap: 18px; align-items: start; }
.stage, .remote-stage { border-radius: var(--radius); padding: 14px; }
.video-wrap { position: relative; overflow: hidden; background: #030405; border-radius: 12px; aspect-ratio: 16 / 9; }
video { width: 100%; height: 100%; object-fit: contain; background: #030405; display: block; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--muted); text-align: center; padding: 20px; }
.video-placeholder span:not(.spinner) { font-size: 34px; color: #596172; }
.video-placeholder strong { color: #c7ccd5; }
.video-placeholder small { max-width: 390px; }
.stage-actions { min-height: 58px; padding: 14px 5px 0; display: flex; align-items: center; gap: 10px; }
.stage-profile {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.button { border: 1px solid var(--line); border-radius: 11px; padding: 12px 17px; background: rgba(255,255,255,.055); cursor: pointer; font-weight: 700; transition: opacity .2s, transform .15s, background .2s; }
.button:hover:not(:disabled) { transform: translateY(-1px); background: rgba(255,255,255,.09); }
.button.primary { color: #10130b; background: var(--accent); border-color: var(--accent); }
.button.warning { color: #ffd58f; border-color: rgba(255,190,99,.35); background: rgba(255,190,99,.08); }
.button.warning.active { color: #171006; border-color: #ffbe63; background: #ffbe63; }
.button.ghost { background: transparent; color: var(--muted); }
.button.compact { font-size: 13px; padding: 9px 12px; }
.button:disabled { cursor: not-allowed; opacity: .4; }

.control-stack { display: grid; gap: 14px; }
.studio-stack { align-content: start; }
.control-card { border-radius: var(--radius); padding: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-card { min-height: 100%; }
.settings-card .button { width: 100%; margin-top: 12px; }
.card-title { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; }
.card-title span { color: var(--accent); font: 700 10px ui-monospace, monospace; }
.card-title h3 { margin: 0; font-size: 15px; }
.card-copy { color: var(--muted); font-size: 12px; line-height: 1.5; margin: -5px 0 14px; }
label { color: var(--muted); font-size: 11px; display: grid; gap: 7px; margin-top: 12px; }
input, select { min-width: 0; width: 100%; color: var(--text); background: #0a0c11; border: 1px solid var(--line); border-radius: 9px; outline: none; padding: 10px 11px; }
input:focus, select:focus { border-color: rgba(184,255,54,.55); box-shadow: 0 0 0 3px rgba(184,255,54,.06); }
select:disabled { opacity: .55; }
.input-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.input-action input { border-radius: 9px 0 0 9px; }
.input-action button { border: 1px solid var(--line); border-left: 0; border-radius: 0 9px 9px 0; background: rgba(255,255,255,.06); cursor: pointer; font-size: 11px; }
.input-action button:disabled { opacity: .4; }
.field-warning { color: #ffbe63; font-size: 10px; line-height: 1.45; margin: 8px 0 0; }
.field-warning.safe { color: var(--accent); }
.bridge-row { display: grid; grid-template-columns: 76px 1fr; gap: 9px; }
.inline-status { font-size: 11px; color: var(--muted); margin-top: 10px; }
.inline-status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #59606e; vertical-align: 1px; }
.inline-status.live { color: var(--accent); }
.inline-status.live::before { background: var(--accent); box-shadow: 0 0 10px rgba(184,255,54,.6); }
.inline-status.error { color: var(--danger); }
.inline-status.error::before { background: var(--danger); }
.switch-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 17px; }
.switch-row span { display: grid; gap: 3px; color: var(--text); }
.switch-row small { color: var(--muted); }
.switch-row input { appearance: none; width: 39px; height: 22px; padding: 2px; border-radius: 99px; background: #292d37; cursor: pointer; }
.switch-row input::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #9299a8; transition: transform .2s, background .2s; }
.switch-row input:checked { background: rgba(184,255,54,.3); }
.switch-row input:checked::after { transform: translateX(17px); background: var(--accent); }
.safety-note { color: #747b89; font-size: 10px; margin: 14px 0 0; }
kbd { font: 600 10px ui-monospace, monospace; color: #cdd2db; border: 1px solid #3b404b; border-bottom-width: 2px; background: #171a22; border-radius: 4px; padding: 2px 4px; }
.compact-card { padding-block: 14px; }
.metric-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); padding: 5px 0; }
.metric-row strong { color: var(--text); }
code { color: var(--accent-2); font: 10px ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.remote-stage { padding: 12px; }
.remote-wrap, .remote-wrap video { cursor: none; outline: none; }
.remote-wrap video:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.remote-hud { position: absolute; z-index: 7; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.remote-hud span { background: rgba(6,7,10,.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 7px 10px; font-size: 10px; }
.viewer-actions { justify-content: flex-end; }
.viewer-actions p { color: var(--muted); font-size: 11px; margin-right: auto; }
.fingerprint-line { border-top: 1px solid var(--line); padding: 11px 5px 0; color: var(--muted); font-size: 10px; }
.collaborator-cursors { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.collaborator-cursor { position: absolute; left: 0; top: 0; display: grid; justify-items: start; transform: translate3d(var(--cursor-x, 0), var(--cursor-y, 0), 0) translate(-2px, -2px); will-change: transform; transition: opacity .08s linear; }
.collaborator-cursor.offscreen { opacity: 0; }
.collaborator-cursor-pointer { width: 16px; height: 22px; background: var(--cursor-color, var(--accent-2)); clip-path: polygon(0 0, 0 82%, 27% 61%, 42% 100%, 58% 92%, 42% 56%, 75% 56%); filter: drop-shadow(0 1px 2px rgba(0,0,0,.9)); }
.collaborator-cursor-label { margin: -2px 0 0 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 6px; border-radius: 5px; background: var(--cursor-color, var(--accent-2)); color: #071015; font-size: 9px; font-weight: 850; box-shadow: 0 2px 10px rgba(0,0,0,.4); }

body.remote-fullscreen { overflow: hidden; }
.remote-stage.app-fullscreen { position: fixed; inset: 0; z-index: 1000; padding: 0; border: 0; border-radius: 0; background: #000; }
.remote-stage.app-fullscreen .remote-wrap { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.remote-stage.app-fullscreen .remote-wrap video { outline: 0; }
.remote-stage.app-fullscreen .viewer-actions { position: absolute; z-index: 8; left: 16px; right: 16px; bottom: 16px; min-height: 0; padding: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(8,10,14,.82); backdrop-filter: blur(14px); opacity: .1; transition: opacity .16s; }
.remote-stage.app-fullscreen .viewer-actions:hover, .remote-stage.app-fullscreen .viewer-actions:focus-within { opacity: 1; }
.remote-stage.app-fullscreen .fingerprint-line { display: none; }
.remote-stage.app-fullscreen .remote-hud { top: 16px; left: 16px; right: 16px; }
.spinner { width: 28px; height: 28px; border: 2px solid #333844; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); padding: 11px 15px; background: #e8ebf2; color: #11141a; border-radius: 10px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .control-stack { grid-template-columns: 1fr 1fr; }
  .compact-card { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .settings-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { padding: 28px 14px 60px; }
  .topbar { padding: 0 16px; }
  .hero { padding: 30px 22px; }
  .choice-grid, .control-stack, .settings-grid, .social-grid, .people-grid { grid-template-columns: 1fr; }
  .settings-card:last-child { grid-column: auto; }
  .session-head { align-items: flex-start; gap: 14px; flex-direction: column; }
  .stage-actions, .viewer-actions { flex-wrap: wrap; }
  .stage-profile { width: 100%; margin-left: 0; text-align: center; }
  .workspace-tabs { width: 100%; }
  .workspace-tab { flex: 1; min-width: 0; }
  .viewer-actions p { width: 100%; }
  .prototype-badge { display: none; }
  .top-actions { min-width: 0; }
  .profile-badge { max-width: 170px; }
  #top-profile-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .social-head { align-items: flex-start; flex-direction: column; }
}

/* Dark Warm Groove theme — bold studio cards, tactile controls and clear hierarchy. */
body {
  background:
    radial-gradient(circle at 8% 20%, #665426 0 9rem, transparent 9.1rem),
    radial-gradient(circle at 92% 76%, #3c5a29 0 13rem, transparent 13.1rem),
    linear-gradient(135deg, #20291d 0%, var(--bg) 52%, #26321f 100%);
  color: var(--text);
  font-weight: 520;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(243, 240, 227, .09) .75px, transparent .75px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.48), transparent 75%);
}

button, input, select { font-weight: 650; }
button:focus-visible, input:focus-visible, select:focus-visible, video:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.ambient {
  filter: none;
  opacity: 1;
  z-index: -1;
  border: var(--stroke);
}
.ambient-one {
  width: 300px;
  height: 300px;
  top: 96px;
  left: -190px;
  background: var(--accent);
}
.ambient-two {
  width: 390px;
  height: 160px;
  right: -170px;
  bottom: 70px;
  border-radius: 32px;
  background: #304923;
  transform: rotate(-14deg);
}

.topbar {
  position: relative;
  z-index: 20;
  width: calc(100% - 36px);
  max-width: 1320px;
  height: 68px;
  margin: 18px auto 0;
  padding: 0 20px;
  border: var(--stroke);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow-small);
}
.brand {
  gap: 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.035em;
}
.brand-mark {
  width: 35px;
  height: 35px;
  justify-content: center;
  gap: 3px;
  border: var(--stroke);
  border-radius: 8px;
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--line);
}
.brand-mark i {
  width: 3px;
  border-radius: 0;
  background: var(--line);
}
.prototype-badge {
  color: var(--text);
  border: var(--stroke);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--accent-soft);
  font-weight: 850;
  letter-spacing: .045em;
}
.profile-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 230px;
  border: var(--stroke);
  border-radius: 9px;
  padding: 5px 11px 5px 6px;
  color: var(--text);
  background: #2d3628;
  box-shadow: 3px 3px 0 var(--line);
  font-size: 11px;
  font-weight: 800;
}
.profile-badge #top-profile-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-avatar {
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--accent);
  color: var(--line);
}
.profile-avatar.large {
  width: 48px;
  height: 48px;
  border-width: 2px;
  border-radius: 11px;
  box-shadow: 3px 3px 0 var(--line);
}

.shell { padding: 42px 28px 90px; }
.panel {
  background: var(--paper);
  border: var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}
.home-shell { gap: 28px; }
.hero {
  position: relative;
  overflow: visible;
  max-width: 920px;
  margin-top: 1vh;
  padding: 52px;
  border-radius: 22px;
}
.hero::before {
  content: "STUDIO ONLINE";
  position: absolute;
  top: -16px;
  right: 32px;
  padding: 7px 12px;
  border: var(--stroke);
  border-radius: 8px;
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--line);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}
.eyebrow {
  width: fit-content;
  margin-bottom: 16px;
  padding: 5px 8px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .13em;
}
.hero h1 {
  max-width: 760px;
  color: var(--text);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 950;
  line-height: .94;
  letter-spacing: -.065em;
}
.hero h1 span { color: var(--accent-strong); }
.lead {
  color: var(--muted);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.48;
  margin: 27px 0 31px;
}
.choice-grid { grid-template-columns: minmax(0, 520px); gap: 19px; }
.choice-card {
  position: relative;
  grid-template-columns: 49px 1fr;
  column-gap: 13px;
  min-height: 118px;
  padding: 21px;
  border: var(--stroke);
  border-radius: 14px;
  background: #2c3427;
  box-shadow: 6px 6px 0 var(--line);
  color: var(--text);
  transition: transform .14s, box-shadow .14s, background .14s;
}
.choice-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 15px;
  width: 78px;
  height: 14px;
  z-index: -1;
  border: var(--stroke);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--accent-soft);
}
.choice-card.primary-choice::before { background: var(--accent); }
.choice-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--line);
  background: #35402e;
  box-shadow: 8px 8px 0 var(--line);
}
.choice-card:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--line); }
.choice-icon {
  width: 44px;
  height: 44px;
  border: var(--stroke);
  border-radius: 9px;
  background: var(--sun);
  color: var(--on-accent);
  font-size: 21px;
  font-weight: 950;
}
.primary-choice .choice-icon { color: var(--on-accent); background: var(--accent); }
.choice-card strong { align-self: end; font-size: 16px; font-weight: 900; }
.choice-card small { color: var(--muted); font-weight: 620; line-height: 1.3; }
.fine-print { color: var(--muted); font-weight: 620; }

#home-social-mount { max-width: 920px; }
.social-panel { border-radius: 19px; padding: 26px; }
.social-head h2, .session-head h2 {
  color: var(--text);
  font-weight: 950;
  letter-spacing: -.045em;
}
.mini-status, .status-pill {
  color: var(--text);
  border: var(--stroke);
  border-radius: 8px;
  background: var(--paper-soft);
  font-weight: 780;
}
.mini-status.live { color: var(--text); border-color: var(--line); background: var(--accent-soft); }
.mini-status.error { color: #ffc4b8; border-color: var(--line); background: #572921; }
.incoming-invite {
  border: var(--stroke);
  border-radius: 11px;
  background: var(--accent-soft);
  box-shadow: var(--shadow-small);
}
.incoming-invite small { color: var(--accent-2); }
.social-grid, .people-grid { gap: 18px; }
.social-column, .person-row {
  border: var(--stroke);
  border-radius: 12px;
  background: #2c3427;
  box-shadow: var(--shadow-small);
}
.social-column { padding: 17px; }
.profile-summary small, .person-meta small { color: var(--muted); }
.profile-summary strong, .person-meta strong { color: var(--text); font-weight: 900; }
.social-action button, .person-row button {
  color: var(--text);
  border: var(--stroke);
  background: var(--accent-soft);
  font-weight: 850;
}
.social-action button { border-left: 0; }
.social-action button:hover, .person-row button:hover:not(:disabled) { color: var(--on-accent); background: var(--accent); }
.people-grid h3 { color: var(--text); font-weight: 950; }
.person-dot { border: 1px solid var(--line); background: #616858; }
.person-dot.online { background: var(--accent); box-shadow: 0 0 0 3px rgba(155,214,83,.25); }
.empty-state {
  border: 2px dashed #6f7867;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(38,45,34,.72);
  font-weight: 650;
}

.workspace { gap: 20px; }
.session-head { border-radius: 16px; padding: 20px 23px; }
.session-head h2 { font-size: 29px; }
.status-pill { padding: 8px 11px; }
.status-pill span { border: 1px solid var(--line); background: #707767; }
.status-pill.live { color: var(--text); background: var(--accent-soft); }
.status-pill.live span { background: var(--accent-strong); box-shadow: none; }
.status-pill.error { color: #ffc4b8; background: #572921; }
.status-pill.error span { background: var(--danger); }

.workspace-tabs {
  gap: 7px;
  padding: 7px;
  border-radius: 13px;
  box-shadow: var(--shadow-small);
}
.workspace-tab {
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
}
.workspace-tab:hover { color: var(--text); background: var(--paper-soft); }
.workspace-tab.active {
  color: var(--on-accent);
  border-color: var(--line);
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--line);
}
.workspace-grid { gap: 22px; }
.stage, .remote-stage { border-radius: 16px; padding: 13px; }
.video-wrap {
  border: var(--stroke);
  border-radius: 10px;
  background: #10150e;
}
video { background: #10150e; }
.video-placeholder { color: #bfc7b7; }
.video-placeholder span:not(.spinner) { color: var(--accent); }
.video-placeholder strong { color: #f8f4e9; font-weight: 900; }
.stage-actions { min-height: 62px; padding-top: 15px; }
.stage-profile {
  border: var(--stroke);
  border-radius: 7px;
  color: var(--text);
  background: var(--paper-soft);
  font-weight: 850;
}

.button {
  border: var(--stroke);
  border-radius: 9px;
  padding: 11px 16px;
  color: var(--text);
  background: #2d3528;
  box-shadow: 3px 3px 0 var(--line);
  font-weight: 900;
  transition: transform .13s, box-shadow .13s, background .13s, opacity .2s;
}
.button:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  background: var(--paper-soft);
  box-shadow: 4px 4px 0 var(--line);
}
.button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.button.primary { color: var(--on-accent); background: var(--accent); border-color: var(--line); }
.button.primary:hover:not(:disabled) { background: #ace866; }
.button.warning { color: #241806; border-color: var(--line); background: #d8ad5b; }
.button.warning.active { color: var(--on-accent); border-color: var(--line); background: var(--warning); }
.button.ghost { color: var(--text); background: var(--paper); }
.button:disabled { opacity: .42; box-shadow: 2px 2px 0 #7f8776; }

.control-stack { gap: 17px; }
.control-card { border-radius: 15px; padding: 21px; }
.settings-grid { gap: 22px; }
.settings-card { min-height: 0; align-self: start; }
.card-title { margin-bottom: 18px; }
.card-title span {
  display: grid;
  min-width: 31px;
  height: 31px;
  place-items: center;
  border: var(--stroke);
  border-radius: 7px;
  background: var(--accent);
  color: var(--on-accent);
  font: 950 10px ui-monospace, monospace;
  box-shadow: 2px 2px 0 var(--line);
}
.card-title h3 { color: var(--text); font-size: 16px; font-weight: 950; }
.card-copy { color: var(--muted); font-weight: 620; }
label { color: var(--muted); font-weight: 780; }
input, select {
  color: var(--text);
  background: #171d15;
  border: var(--stroke);
  border-radius: 8px;
  padding: 10px 11px;
  font-weight: 680;
}
input::placeholder { color: #78806f; }
input:focus, select:focus {
  border-color: var(--line);
  box-shadow: 0 0 0 4px rgba(155,214,83,.34);
}
select:disabled, input:disabled { opacity: .56; }
.input-action input { border-radius: 8px 0 0 8px; }
.input-action button { border: var(--stroke); border-left: 0; border-radius: 0 8px 8px 0; background: var(--accent-soft); color: var(--text); font-weight: 850; }
.field-warning { color: #edc16d; font-weight: 720; }
.field-warning.safe { color: var(--accent-2); }
.inline-status { color: var(--muted); font-weight: 680; line-height: 1.45; }
.inline-status::before { border: 1px solid var(--line); background: #767d6d; }
.inline-status.live { color: var(--accent-2); }
.inline-status.live::before { background: var(--accent); box-shadow: none; }
.inline-status.error { color: #ff9d8d; }
.inline-status.error::before { background: var(--danger); }
.switch-row { border-top: 2px dashed #495341; }
.switch-row span { color: var(--text); }
.switch-row small { color: var(--muted); font-weight: 560; line-height: 1.3; }
.switch-row input {
  width: 44px;
  height: 25px;
  flex: 0 0 auto;
  border: var(--stroke);
  background: #51584b;
  box-shadow: 2px 2px 0 var(--line);
}
.switch-row input::after {
  width: 17px;
  height: 17px;
  border: 1px solid var(--line);
  background: #d8ddcf;
}
.switch-row input:checked { background: var(--accent); }
.switch-row input:checked::after { transform: translateX(18px); background: var(--on-accent); }
.safety-note { color: var(--muted); font-weight: 630; line-height: 1.5; }
kbd {
  color: var(--text);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  background: #1a2017;
  border-radius: 4px;
  font-weight: 850;
}
.metric-row { color: var(--muted); border-bottom: 1px dashed #48513f; padding: 7px 0; }
.metric-row:last-child { border-bottom: 0; }
.metric-row strong { color: var(--text); font-weight: 900; }
code { color: var(--accent-2); font-weight: 800; }

.remote-wrap, .remote-wrap video { cursor: none; outline: none; }
.remote-wrap video:focus { outline: 3px solid var(--accent); outline-offset: -3px; }
.remote-hud span {
  color: #f9f7ee;
  border: 1.5px solid #f9f7ee;
  border-radius: 7px;
  background: rgba(20,27,16,.86);
  font-weight: 800;
}
.remote-hud span.degraded { color: #201a08; border-color: var(--line); background: var(--sun); }
.viewer-actions p, .fingerprint-line { color: var(--muted); }
.fingerprint-line { border-top: 2px dashed #48513f; }
.collaborator-cursor-pointer { filter: drop-shadow(1px 2px 0 rgba(0,0,0,.9)); }
.collaborator-cursor-label { border: 1px solid var(--line); border-radius: 4px; color: var(--line); box-shadow: 2px 2px 0 var(--line); }
.spinner { border-color: #53604b; border-top-color: var(--accent); }

.remote-stage.app-fullscreen { background: #080b07; box-shadow: none; }
.remote-stage.app-fullscreen .viewer-actions {
  border: 2px solid #f8f4e9;
  border-radius: 10px;
  background: rgba(20,27,16,.9);
  box-shadow: 5px 5px 0 rgba(248,244,233,.65);
}
.remote-stage.app-fullscreen .viewer-actions p { color: #e4e9dc; }
.remote-stage.app-fullscreen .button { box-shadow: 3px 3px 0 #f8f4e9; }

.toast {
  padding: 12px 16px;
  border: var(--stroke);
  border-radius: 8px;
  background: var(--sun);
  color: var(--text);
  box-shadow: var(--shadow-small);
  font-weight: 850;
}

.creator-footer {
  width: calc(100% - 36px);
  max-width: 920px;
  margin: 0 auto 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
}
.creator-footer strong { color: var(--text); font-weight: 950; }
.creator-footer nav { display: flex; gap: 9px; }
.creator-footer a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: var(--stroke);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--line);
  color: var(--accent);
  transition: transform .13s, box-shadow .13s, background .13s, color .13s;
}
.creator-footer a:hover {
  transform: translate(-1px, -1px);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 4px 4px 0 var(--line);
}
.creator-footer a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.creator-footer svg { width: 19px; height: 19px; overflow: visible; }
.creator-footer a:first-child svg { fill: none; stroke: currentColor; stroke-width: 2; }
.creator-footer a:first-child .social-fill { fill: currentColor; stroke: none; }
.creator-footer a:last-child svg { fill: currentColor; }

@media (max-width: 900px) {
  .topbar { width: calc(100% - 28px); }
  .hero { padding: 43px; }
  .workspace-grid { gap: 18px; }
  .settings-grid { gap: 18px; }
}

@media (max-width: 620px) {
  body {
    background:
      radial-gradient(circle at 0 13%, #665426 0 5rem, transparent 5.1rem),
      linear-gradient(135deg, #20291d, var(--bg));
  }
  .topbar { height: 62px; margin-top: 12px; padding: 0 12px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; }
  .shell { padding: 34px 14px 60px; }
  .hero { padding: 37px 22px 28px; border-radius: 17px; }
  .hero::before { right: 18px; }
  .hero h1 { font-size: clamp(39px, 14vw, 57px); }
  .choice-grid { gap: 22px; }
  .choice-card { min-height: 108px; }
  .social-panel, .control-card { padding: 18px; }
  .session-head { padding: 18px; }
  .workspace-tabs { box-shadow: 4px 4px 0 var(--line); }
  .workspace-tab { padding-inline: 8px; }
  .ambient-two { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
