:root { color-scheme: light; --ink: #1c1c1e; --muted: #636366; --bg: #f2f2f7; --red: #e11d2e; --line: rgba(60,60,67,.12); }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.card { background: #fff; border-radius: 20px; padding: 20px; width: min(420px, 100%); }
h1 { font-size: 28px; margin: 0 0 8px; }
.brand span { color: var(--red); }
label { display: block; margin: 12px 0; }
label span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
input, select, textarea { width: 100%; border: 0; background: var(--bg); border-radius: 12px; padding: 12px; }
textarea { min-height: 88px; }
.primary { background: var(--red); color: #fff; border: 0; border-radius: 14px; min-height: 44px; padding: 0 14px; font-weight: 650; }
.primary:active { transform: scale(.98); }
.ghost { background: #fff; border: 0; border-radius: 12px; min-height: 40px; padding: 0 12px; }
.err { color: var(--red); min-height: 1.2em; }
.shell { display: grid; grid-template-columns: 320px 1fr; min-height: 100dvh; }
aside { background: #fff; border-right: 1px solid var(--line); padding: 16px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.queue { display: grid; gap: 8px; margin-top: 12px; }
.queue button { text-align: left; border: 0; background: var(--bg); border-radius: 14px; padding: 10px 12px; }
.queue button.on { outline: 2px solid var(--red); }
.queue small { color: var(--muted); display: block; }
.badge { background: var(--red); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 12px; }
main { padding: 20px; }
.grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.panel { background: #fff; border-radius: 20px; padding: 16px; margin-bottom: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg { background: var(--bg); border-radius: 14px; padding: 8px 10px; margin: 8px 0; }
.msg.operator { background: #fde8ea; }
.msg small { color: var(--muted); }
.sms { font-size: 13px; color: var(--muted); white-space: pre-wrap; }
@media (max-width: 900px) {
  .shell, .grid { grid-template-columns: 1fr; }
}
