﻿* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, Helvetica, sans-serif; background: #071015; color: #edf7fb; }
.app { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 24px 0; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid rgba(255,255,255,.12); }
header strong, header span { display: block; }
header strong { font-size: 22px; letter-spacing: 1px; color: #8ee5ff; }
header span { margin-top: 4px; font-size: 12px; color: #9eb0be; }
button { border: 0; border-radius: 6px; min-height: 36px; padding: 0 14px; background: #1e7fa8; color: white; font-weight: 900; cursor: pointer; }
button:hover { background: #2b9bcc; }
button.active { background: #22a765; box-shadow: 0 0 0 2px rgba(34,167,101,.25); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.workbench { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.panel { border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: #101a22; padding: 14px; }
.panel span { display: block; font-size: 11px; font-weight: 900; color: #9eb0be; }
.panel strong { display: block; margin-top: 7px; font-size: 28px; color: #8ee5ff; }
.large h1 { margin: 0 0 12px; font-size: 16px; color: #edf7fb; }
.list { display: grid; gap: 8px; }
.compact { margin-top: 12px; }
.row { border-radius: 6px; background: #071015; padding: 10px; border: 1px solid rgba(255,255,255,.08); }
.row strong { margin: 0; font-size: 14px; color: #fff; }
.row span { margin-top: 4px; font-size: 12px; }
label { display: grid; gap: 5px; margin-bottom: 10px; font-size: 11px; font-weight: 900; color: #9eb0be; }
input, textarea { width: 100%; border: 1px solid #34424e; border-radius: 6px; background: #071015; color: white; padding: 10px; font: 14px Arial, Helvetica, sans-serif; }
textarea { min-height: 110px; resize: vertical; }
.actions, .voice-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.voice-state { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.voice-state span { border-radius: 6px; background: #071015; border: 1px solid rgba(255,255,255,.08); padding: 9px; color: #8ee5ff; }
.voice-panel { min-height: 350px; }
.audio-bin { display: none; }
p { color: #9eb0be; font-size: 12px; line-height: 1.4; }
@media (max-width: 760px) { .grid, .workbench { grid-template-columns: 1fr; } header { align-items: flex-start; flex-direction: column; padding-bottom: 14px; } .voice-actions { justify-content: stretch; } .voice-actions button { flex: 1 1 42%; } }
.admin-panel { grid-column: 1 / -1; }
.admin-actions { justify-content: flex-start; }
.admin-actions button { margin-bottom: 6px; }
#healthBox { margin: 10px 0; grid-template-columns: repeat(3, 1fr); display: grid; }
.admin-panel textarea { min-height: 120px; font-family: Consolas, monospace; font-size: 12px; }
@media (max-width: 760px) { #healthBox { grid-template-columns: 1fr; } }

.admin-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-panel h1, .admin-panel .actions, #healthBox { grid-column: 1 / -1; }
.admin-panel label textarea { min-height: 150px; }
@media (max-width: 900px) { .admin-panel { grid-template-columns: 1fr; } }
