:root, html[data-theme="dark"] {
  --s2a-accent: #f47b27;
  --s2a-accent-contrast: #111722;
  --s2a-bg: #0b111a;
  --s2a-surface: #131c28;
  --s2a-surface-alt: #182432;
  --s2a-border: #263446;
  --s2a-text: #edf3f9;
  --s2a-muted: #8da1b7;
}
* { box-sizing: border-box; }
body { margin: 0; }
body.s2-admin { background: var(--s2a-bg); color: var(--s2a-text); font-family: Inter, system-ui, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid #ffbd7f; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ptt-main { max-width: 1660px; margin: 0 auto; padding: 29px clamp(15px,3vw,46px) 24px; }
.headline { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.eyebrow { color: #f5a369; font-size: 10px; font-weight: 800; letter-spacing: .155em; text-transform: uppercase; }
.headline h1 { font-size: clamp(25px, 2.5vw, 39px); letter-spacing: -.042em; line-height: 1.13; margin: 8px 0 10px; font-weight: 780; }
.intro { color: var(--s2a-muted); max-width: 660px; line-height: 1.55; font-size: 13px; margin: 0; }
.status-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.environment-tag { background: rgba(244, 123, 39, .14); border: 1px solid rgba(244,123,39,.45); color: #ffb174; font-size: 10px; padding: 8px 11px; border-radius: 6px; letter-spacing: .06em; font-weight: 800; white-space: nowrap; }
.status-token { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #a2b4c5; }
.status-led, .mini-led { display: inline-block; border-radius: 50%; width: 7px; height: 7px; background: #667487; }
.status-led.online, .mini-led { background: #4dd7a3; box-shadow: 0 0 0 3px rgba(77,215,163,.1); }
.warning { border: 1px solid #654527; background: #251d18; border-radius: 9px; color: #d0b294; padding: 13px 17px; font-size: 12px; line-height: 1.5; margin-bottom: 20px; }
.warning strong { color: #ffc58b; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 19px; }
.metric { background: linear-gradient(160deg, #182332, #131c28); border: 1px solid var(--s2a-border); border-radius: 11px; min-height: 116px; padding: 18px 20px; }
.metric > span { font-size: 10px; letter-spacing: .115em; font-weight: 700; color: #91a1b2; }
.metric strong { display: block; font-size: 25px; letter-spacing: -.02em; font-weight: 740; margin: 8px 0 3px; }
.metric small { color: #8293a7; font-size: 11px; }
.metric strong.text-warning { color: #ff9253; }
.onboarding { display: flex; gap: 26px; align-items: center; background: linear-gradient(115deg,#1a2938,#131b27 70%); padding: 45px; border: 1px solid #304155; border-radius: 14px; }
.onboard-icon { width: 92px; height: 92px; flex-shrink: 0; border-radius: 20px; display: grid; place-items: center; background: #f47b27; color: #151923; font-size: 33px; font-weight: 900; letter-spacing: -.09em; }
.onboarding h2 { margin: 0 0 9px; letter-spacing: -.018em; font-size: 23px; }
.onboarding p { margin: 0 0 20px; color: #a0b0bf; font-size: 12px; max-width: 560px; line-height: 1.6; }
.join-form { display: flex; flex-wrap: wrap; gap: 9px; }
.join-form input { width: min(280px, 100%); border-radius: 7px; border: 1px solid #43516a; background: #111a27; color: #edf3f9; padding: 11px 13px; }
.btn { border-radius: 8px; border: 1px solid transparent; padding: 10px 14px; font-size: 12px; cursor: pointer; font-weight: 700; transition: opacity .15s, border-color .15s, background .15s; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: #f47b27; color: #14171e; }
.btn.primary:hover { background: #ff964b; }
.btn.outline { background: #192535; border-color: #42566b; color: #ecf0f4; }
.btn.outline:hover { background: #293c4e; }
.btn.quiet { background: transparent; border-color: #2e3d4f; color: #8ca1b2; }
.error-message { color: #ff9b8c !important; margin: 8px 0 0 !important; }
.console-layout { display: grid; grid-template-columns: minmax(205px, .84fr) minmax(310px, 1.57fr) minmax(215px,.94fr); gap: 16px; align-items: stretch; }
.panel { background: #151f2c; border: 1px solid #29384a; border-radius: 11px; min-width: 0; }
.panel-head { padding: 20px 20px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid #293747; }
.panel-head h2 { font-size: 15px; line-height: 1.2; letter-spacing: -.01em; font-weight: 750; margin: 6px 0 0; }
.panel-count { border: 1px solid #344b61; background: #202d3c; border-radius: 5px; padding: 5px 7px; color: #b5c2cc; font-size: 10px; }
.group-list { padding: 12px; display: flex; gap: 9px; flex-direction: column; }
.group { display: flex; gap: 11px; width: 100%; align-items: center; text-align: left; padding: 14px 11px; background: #172331; border: 1px solid #293848; border-radius: 8px; cursor: pointer; color: #c8d5e2; }
.group.active { border-color: #d67735; background: #30251e; box-shadow: inset 3px 0 #f47b27; }
.group-icon { display: grid; place-items: center; border-radius: 9px; width: 37px; height: 37px; background: #2d3b4a; font-weight: 800; font-size: 12px; color: #a5b5c5; }
.group.active .group-icon { background: #58351e; color: #ffc092; }
.group-info { display: flex; min-width: 0; flex-direction: column; flex: 1; }
.group-info strong { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-info small { font-size: 10px; margin-top: 3px; color: #879bae; }
.group-arrow { font-size: 15px; color: #8194a7; }
.panel-foot { padding: 16px 17px; border-top: 1px solid #293747; display: flex; align-items: center; gap: 9px; color: #8d9bad; font-size: 10px; }
.channel-type, .module-notice { color: #819bb2; font-size: 9px; letter-spacing: .06em; border: 1px solid #304356; padding: 6px 8px; border-radius: 5px; white-space: nowrap; }
.transmit-panel { background: radial-gradient(ellipse at 50% 45%,#202c3c 0%,#151f2c 70%); }
.transmit-body { min-height: 428px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 27px 20px 18px; text-align: center; }
.wave-display { display: flex; height: 48px; align-items: center; gap: 5px; margin-bottom: 18px; }
.wave-display span { width: 4px; height: 13px; border-radius: 5px; background: #d07c41; opacity: .67; }
.wave-display span:nth-child(2),.wave-display span:nth-child(8){height:25px}
.wave-display span:nth-child(3),.wave-display span:nth-child(7){height:34px}
.wave-display span:nth-child(4),.wave-display span:nth-child(6){height:21px}
.wave-display span:nth-child(5){height:45px}
.transmitting .wave-display span { animation: wave .65s alternate infinite ease-in-out; }
.transmitting .wave-display span:nth-child(even) { animation-delay: .19s; }
@keyframes wave { to { transform: scaleY(.38); opacity:1; } }
.floor-label { color: #edf1f5; font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.floor-description { color: #8d9db0; font-size: 11px; line-height: 1.6; max-width: 280px; margin: 0 0 21px; }
.ptt-button { width: 168px; height: 168px; border-radius: 50%; border: 7px solid #593e2b; box-shadow: 0 0 0 6px #2d302f, 0 15px 30px #0c131c; background: radial-gradient(circle at 35% 30%,#fba358,#d96b20); color: #20170f; display: flex; align-items: center; justify-content: center; flex-direction: column; cursor: pointer; user-select: none; touch-action: none; }
.ptt-button strong { font-size: 12px; margin: 7px 0 5px; }
.ptt-button small { font-size: 8px; max-width: 115px; line-height: 1.35; }
.ptt-button .mic-glyph { font-size: 27px; }
.ptt-button:disabled { filter: grayscale(.8); opacity: .5; cursor: not-allowed; }
.transmitting .ptt-button { background: #ffb16d; border-color: #b65a20; box-shadow: 0 0 0 7px rgba(247,119,29,.17),0 0 55px rgba(247,119,29,.25); }
.control-row { display: flex; gap: 9px; margin: 25px 0 10px; flex-wrap: wrap; justify-content: center; }
.mic-status { font-size: 10px; color: #9cabbc; min-height: 16px; margin: 0; }
.transmit-footer { border-top: 1px solid #293747; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; color: #798da2; font-size: 10px; }
.member-list { list-style: none; margin: 0; padding: 13px; min-height: 148px; }
.member { display: flex; align-items: center; gap: 10px; padding: 9px 4px; }
.avatar { background: #2b3e4f; border-radius: 9px; color: #b9c9d8; width: 34px; height: 34px; display: grid; place-items: center; font-weight: 760; font-size: 11px; }
.member span { flex: 1; min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member small { font-size: 9px; color: #65d4ac; }
.no-members { font-size: 11px; color: #8d9db0; padding: 10px; }
.activity-section { border-top: 1px solid #293747; padding: 18px 18px 15px; }
.event-log { margin: 12px 0 0; list-style: none; padding: 0; max-height: 230px; overflow: auto; }
.event-log li { padding: 10px 0 10px 11px; font-size: 11px; color: #a5b6c5; border-left: 2px solid #415267; margin: 0 0 8px 3px; }
.event-log time { display: block; color: #788b9e; font-size: 9px; margin-top: 5px; }
.supplementary { margin-top: 17px; }
.module-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 16px; }
.module-card { border: 1px solid #2b3c4d; background: #1a2735; border-radius: 9px; padding: 16px; min-height: 102px; }
.module-card strong { display: block; font-size: 12px; margin-bottom: 8px; }
.module-card p { font-size: 10px; color: #91a6ba; line-height: 1.65; margin: 0; }
.module-card em { display: inline-block; color: #f4b282; font-size: 9px; font-style: normal; margin-top: 9px; }
.app-footer { text-align: center; color: #6e8194; padding-top: 24px; font-size: 10px; letter-spacing: .02em; }
@media (max-width:1180px) {
  .console-layout { grid-template-columns: minmax(180px,1fr) minmax(280px,1.6fr); }
  .members-panel { grid-column: 1 / -1; }
  .member-list { min-height: 0; }
  .module-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:740px) {
  .headline { flex-wrap: wrap; }
  .status-wrap { flex-direction: row; align-items: center; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .console-layout { grid-template-columns: 1fr; }
  .members-panel { grid-column: auto; }
  .onboarding { padding: 21px; align-items: flex-start; }
  .onboard-icon { width: 52px; height: 52px; font-size: 19px; border-radius: 11px; }
  .transmit-body { min-height: 370px; }
}
@media (max-width:460px) {
  .module-grid { grid-template-columns: 1fr; }
  .ptt-main { padding-left: 12px; padding-right: 12px; }
  .metric { padding: 13px; min-height: 100px; }
  .metric strong { font-size: 21px; }
  .onboarding { flex-direction: column; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { transition: none !important; animation: none !important; }
}

.prototype-link {display:inline-flex;align-items:center;padding:9px 12px;color:#f5a46e;background:#29231f;border:1px solid #61503c;border-radius:7px;font-size:11px;font-weight:750;text-decoration:none;}
.prototype-link:hover{color:#ffbf94;background:#39271c;}
