/* Hallmark · system: Extremo cabinet (design.md) · genre: atmospheric
 * Основа экранов кабинета: сброс, кнопки, панели. Значения — только из tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--fc); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.brand { display: flex; align-items: center; gap: 10px; font: 700 15px/1 var(--display); letter-spacing: .08em; }
.brand img { width: 24px; height: 24px; }

/* кнопки: главная белая пилюля, вторая полупрозрачная, ссылка-действие цветом фракции */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--ctl-h); padding: 0 22px; border: 0; border-radius: var(--r-ctl); background: var(--white); color: var(--ink-on-white); font: 600 15px/1 var(--body); white-space: nowrap; cursor: pointer; transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.btn:hover { background: var(--white-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { background: var(--white); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: color-mix(in srgb, var(--white) 10%, transparent); color: var(--white); }
.btn.ghost:hover { background: color-mix(in srgb, var(--white) 16%, transparent); }
.btn.ghost:disabled:hover, .btn.ghost[aria-disabled="true"]:hover { background: color-mix(in srgb, var(--white) 10%, transparent); }
.btn[data-busy="true"] { cursor: progress; }
.link { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 0; background: none; color: var(--fc-ink); font-weight: 500; white-space: nowrap; cursor: pointer; }
.link::after { content: "\203A"; font-size: 18px; line-height: 1; }
.link:hover { color: var(--white); }
.link:active { opacity: .8; }

/* копирование: буфер обмена бывает закрыт, тогда кнопка выделяет текст */
.copy { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 4px; border: 0; border-radius: var(--r-badge); background: transparent; color: var(--faint); cursor: pointer; vertical-align: middle; flex: none; }
.copy svg { width: 15px; height: 15px; }
.copy:hover { color: var(--white); background: color-mix(in srgb, var(--white) 8%, transparent); }
.copy:active { transform: translateY(1px); }
.copy[data-done="true"] { color: var(--plus); }

/* панели */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; }
.panel h2 { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.label { color: var(--muted); font-size: 13px; }
.empty { padding: 18px; border-radius: 12px; background: var(--raised); color: var(--muted); }

/* места сервера */
.seats { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.seats i { aspect-ratio: 1; border-radius: 3px; background: var(--raised); }
.seats i.on { background: var(--fc); }

@media (max-width: 560px) { .wrap { width: calc(100% - 32px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
