:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  --base: #101216;
  --panel: #181b21;
  --line: #373c47;
  --text: #f3f5f7;
  --muted: #adb4c2;
  --accent: #f6d94a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--base); color: var(--text); }
header { border-bottom: 2px solid var(--accent); background: #14171c; padding: 24px 0 21px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.brand { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 4px 0 0; font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.055em; }
h2 { margin: 0 0 14px; font-size: 1.11rem; }
h2 span, .toolbar p, #orders-status { color: var(--muted); font-weight: 400; }
.toolbar, .section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.toolbar { min-height: 75px; }
.toolbar p { margin: 0 0 0 auto; }
.section-head { justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
section { background: var(--panel); padding: 19px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; margin: 18px 0 30px; }
.table-scroll { overflow: auto; max-height: 420px; }
table { width: 100%; border-collapse: collapse; font-size: .89rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 9px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); white-space: nowrap; position: sticky; top: 0; background: var(--panel); }
td:first-child, td:nth-last-child(-n+2) { white-space: nowrap; }
select, textarea, button { font: inherit; background: var(--base); color: inherit; border: 1px solid var(--line); padding: 8px 10px; border-radius: 5px; }
select:disabled, button:disabled { opacity: .55; }
button { background: var(--accent); color: #18170b; font-weight: 720; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form { display: grid; gap: 9px; }
form[hidden] { display: none; }
textarea { resize: vertical; }
ol { padding-inline-start: 20px; font-size: .88rem; }
li { padding-block: 4px; overflow-wrap: anywhere; }
.ready { color: #8de6a8; }
.unready { color: #ff9e97; }
@media (max-width: 760px) {
  .columns { grid-template-columns: 1fr; }
  .toolbar { padding-block: 12px; }
  .toolbar p { width: 100%; }
  section { padding: 14px; }
}
.header-layout { display: flex; justify-content: space-between; align-items: end; gap: 15px; flex-wrap: wrap; }
.user-tools { display: flex; align-items: center; gap: 12px; font-size: .89rem; }
.user-tools button { background: var(--base); color: var(--text); }
.login { width: min(440px, 100%); margin: 45px auto; }
.login h2 { margin-bottom: 20px; }
.login input { font: inherit; min-width: 0; padding: 10px; background: var(--base); color: inherit; border: 1px solid var(--line); border-radius: 5px; }
.login button { margin-top: 9px; }
.login form p { margin: 0; color: var(--muted); }
