/* Canonical cross-application colors, typography and base controls. */
:root {
  color-scheme: dark;
  --bg: #080a0b;
  --panel: #111315;
  --panel-raised: #1a1b1d;
  --border: #34322d;
  --gold: #f0c978;
  --gold-soft: #bd8b3d;
  --text: #f4ebdd;
  --muted: #aaa69e;
  --success: #70dda1;
  --danger: #ff8f89;
  --warning: #f3c97d;
  --radius: 14px;
  --font: Inter,"Segoe UI",system-ui,sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button,
select,
input,
textarea {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--panel-raised);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  border-color: var(--gold-soft);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
a {
  color: var(--gold);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(26px,3vw,40px);
  letter-spacing: .03em;
  line-height: 1.15;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
.muted {
  color: var(--muted);
}
.gold {
  color: var(--gold);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  color: var(--muted);
}
.primary {
  background: linear-gradient(135deg,#f4d994,#c89443);
  color: #15120b;
  border-color: #e8bf70;
  font-weight: 650;
}
.danger {
  color: var(--danger);
}
.panel {
  background: linear-gradient(145deg,#151719,#0e1011);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 5px 12px;
  font-size: 12px;
}
.ok {
  color: var(--success);
}
.error {
  color: var(--danger);
  background: #291b20;
  padding: 12px 16px;
  border: 1px solid #72474d;
  border-radius: 8px;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
input,
select,
textarea {
  width: 100%;
}
input[type=checkbox] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--gold);
}
input[type=range] {
  padding: 0;
  accent-color: var(--gold);
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
}
.high-contrast {
  --bg: #000;
  --panel: #080808;
  --border: #a4a4a4;
  --text: #fff;
  --muted: #ddd;
  --gold: #ffe2a0;
}
.reduced-motion * {
  animation: none!important;
  transition: none!important;
  scroll-behavior: auto!important;
}
@media (prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
  }
}
@media (max-width:700px) {
  .panel {
    padding: 18px;
  }
}
