:root {
  --bg: #050403;
  --panel: #12100c;
  --panel-2: #1b1813;
  --ink: #f7f4ee;
  --muted: #b7aa96;
  --gold: #e3ab3a;
  --gold-light: #f6d889;
  --brown: #7a590d;
  --line: rgba(227, 171, 58, 0.28);
  --line-soft: rgba(247, 244, 238, 0.08);
  --danger: #f0c7b8;
  --ok: #d9e4cc;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(227, 171, 58, 0.16), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, .num {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.05;
}
h1 { font-size: clamp(40px, 6vw, 64px); margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; text-transform: uppercase; }
h3 { font-size: 28px; margin: 0; text-transform: uppercase; }
p { margin: 0; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }

.top {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 4, 3, 0.88);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
}
.nav { display: flex; gap: 8px; }
.nav a {
  text-decoration: none;
  color: var(--gold-light);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
.nav a.is-on, .nav a:hover { border-color: var(--line); background: rgba(227, 171, 58, 0.08); }
.who { display: flex; align-items: center; gap: 12px; }
.who span { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 600; }
.who small { color: var(--muted); font-weight: 500; }
.demo-pill, .sample, .soon {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
}
.demo-ribbon {
  margin: 0;
  padding: 10px 22px;
  background: #2a210f;
  color: var(--gold-light);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 22px; }
.page-head p { max-width: 640px; color: var(--muted); margin-top: 8px; }

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.queue {
  background: linear-gradient(180deg, rgba(227, 171, 58, 0.05), transparent 90px), var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 320px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.queue header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.queue header h2 { font-size: clamp(22px, 2vw, 30px); }
.count {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
}
.qlist { display: flex; flex-direction: column; }
.qrow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "sample title go" "sample meta go";
  gap: 2px 10px;
  padding: 14px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.qrow:hover, .qrow:focus-visible { background: rgba(227, 171, 58, 0.08); }
.qrow .sample { grid-area: sample; align-self: start; margin-top: 3px; }
.qtitle { grid-area: title; font-weight: 600; }
.qmeta { grid-area: meta; color: var(--muted); font-size: 13px; }
.qgo { grid-area: go; color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.empty { padding: 22px 16px; color: var(--muted); }

.layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.panel + .panel { margin-top: 16px; }
.layout .panel + .panel { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 16px 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; }
.back {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.num { font-size: 34px; color: var(--gold-light); }
.flag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(227, 171, 58, 0.12);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 700;
}
.flag.no { color: var(--danger); background: rgba(240, 199, 184, 0.08); }
.flag.yes { color: var(--ok); background: rgba(217, 228, 204, 0.08); }

label { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); }
input, textarea {
  width: 100%;
  background: #0c0a08;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}
.row-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(110deg, var(--brown), var(--gold));
  color: #1a1408;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn.secondary { background: transparent; color: var(--gold-light); border: 1px solid var(--line); }
.btn:disabled {
  background: #2a261f;
  color: #8d8478;
  border: 1px solid #3a342c;
  cursor: not-allowed;
}
.text-btn {
  background: transparent;
  border: 0;
  color: var(--gold-light);
  padding: 0;
  font-weight: 600;
  white-space: nowrap;
}

.note, .warn, .okmsg {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  background: #241c10;
  color: var(--gold-light);
}
.warn { border-color: rgba(240, 199, 184, 0.4); color: var(--danger); background: #2a1814; }
.okmsg { border-color: rgba(217, 228, 204, 0.35); color: var(--ok); background: #182016; }

.thread { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.bubble {
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--panel-2);
}
.bubble.customer { border-left-color: #8d8478; }
.bubble header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.bubble strong { font-size: 14px; }
.bubble time { color: var(--muted); font-size: 12px; }
.call {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.call b { display: block; font-family: "Barlow Condensed", sans-serif; font-size: 22px; letter-spacing: 0.04em; font-weight: 600; }
.addr { white-space: pre-line; }

.action-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.action-row, .request {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #0e0c0a;
}
.request { align-items: flex-start; flex-direction: column; }
.request .top-line { display: flex; justify-content: space-between; gap: 12px; width: 100%; align-items: center; }

.signin {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
}
.signin-card, .signin-aside { padding: clamp(28px, 6vw, 72px); }
.signin-card { display: flex; flex-direction: column; justify-content: center; }
.logo { width: 84px; height: 84px; object-fit: contain; margin-bottom: 18px; }
.gold-rule { width: 56px; height: 2px; margin: 16px 0; background: linear-gradient(90deg, var(--brown), var(--gold), var(--gold-light)); }
.demo-box {
  margin-top: 22px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #16130e;
}
.demo-box ul { margin: 8px 0 0; padding-left: 18px; }
.demo-box li { margin: 6px 0; }
.demo-box code { color: var(--gold-light); }
.signin-aside {
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.2), rgba(5, 4, 3, 0.72)),
    radial-gradient(500px 280px at 70% 20%, rgba(227, 171, 58, 0.2), transparent 60%),
    #100e0b;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.queue-preview { list-style: none; padding: 0; margin: 22px 0 0; }
.queue-preview li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.queue-preview span { color: var(--gold); font-size: 18px; }
.fine { margin-top: 28px; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .board, .layout, .signin { grid-template-columns: 1fr; }
  .signin-aside { border-left: 0; border-top: 1px solid var(--line); }
  .top { flex-wrap: wrap; }
  .who { width: 100%; justify-content: space-between; }
  .who span { align-items: flex-start; }
  .page-head, .action-row, .request .top-line, .call { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr; }
}
