
* { box-sizing: border-box; }
body { margin: 0; color: #172033; background: #f7f8fc; font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #e8eaf0; }
.brand { display: flex; align-items: center; gap: 10px; color: #172033; font: 800 19px Manrope, sans-serif; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; color: white; border-radius: 10px; background: #455ee9; }
nav { display: flex; gap: 28px; height: 100%; align-items: center; }
nav a { position: relative; color: #6f7890; text-decoration: none; font-weight: 600; font-size: 14px; }
nav a.active { color: #455ee9; }
nav a.active::after { content: ""; position: absolute; height: 3px; border-radius: 3px; background: #455ee9; left: 0; right: 0; bottom: -26px; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 40px; }
.hero { display: flex; justify-content: space-between; align-items: end; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #17a673; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #17a673; box-shadow: 0 0 0 5px rgba(23, 166, 115, .12); }
h1 { margin: 0; font: 800 clamp(30px, 4vw, 44px)/1.15 Manrope, sans-serif; letter-spacing: -.035em; }
.hero__meta { display: flex; gap: 10px; color: #6f7890; margin: 12px 0 0; }
.updated { display: flex; flex-direction: column; align-items: flex-end; color: #6f7890; font-size: 12px; }
.updated strong { margin-top: 4px; color: #172033; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 24px; }
.stats article { display: flex; align-items: center; gap: 14px; background: white; border: 1px solid #e8eaf0; border-radius: 14px; padding: 18px; box-shadow: 0 3px 14px rgba(30, 38, 64, .035); }
.stats article div { display: flex; flex-direction: column; }
.stats strong { font: 800 20px Manrope, sans-serif; }
.stats article div span { color: #6f7890; font-size: 12px; margin-top: 2px; }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; font-weight: 700; }
.stat-icon--green { color: #17a673; background: rgba(23, 166, 115, .1); }
.stat-icon--blue { color: #455ee9; background: rgba(69, 94, 233, .1); }
.stat-icon--amber { color: #e99c31; background: rgba(233, 156, 49, .12); }
.stat-icon--violet { color: #8a5de8; background: rgba(138, 93, 232, .1); }
.admin-panel, .add-form { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid #dfe3f8; background: #f1f3ff; }
.admin-panel { border-radius: 14px 14px 0 0; }
.admin-panel > div { margin-right: auto; }
.admin-panel h2 { margin: 0 0 3px; font: 700 16px Manrope, sans-serif; }
.admin-panel p { margin: 0; color: #6f7890; font-size: 13px; }
.add-form { border-top: 0; margin-bottom: 20px; border-radius: 0 0 14px 14px; background: white; }
label { display: flex; flex-direction: column; gap: 6px; color: #4d566b; font-size: 12px; font-weight: 600; }
input { min-width: 210px; height: 42px; padding: 0 12px; border: 1px solid #daddE7; border-radius: 8px; color: #172033; background: white; outline: none; }
input:focus { border-color: #455ee9; box-shadow: 0 0 0 3px rgba(69, 94, 233, .1); }
.button { height: 42px; padding: 0 16px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 700; font-size: 13px; }
.add-form .button { align-self: end; }
.button--primary { color: white; background: #455ee9; }
.button--ghost { color: #455ee9; background: white; border: 1px solid #d8dcf5; }
.button--danger-ghost { color: #c24d58; background: white; border: 1px solid #f0d5d8; }
.queue-card { overflow: hidden; background: white; border: 1px solid #e8eaf0; border-radius: 16px; box-shadow: 0 8px 30px rgba(28, 36, 60, .05); }
.queue-card__heading { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid #e8eaf0; }
.queue-card__heading h2 { margin: 0 0 4px; font: 700 18px Manrope, sans-serif; }
.queue-card__heading p { margin: 0; color: #6f7890; font-size: 13px; }
.auto-refresh { color: #17a673; background: rgba(23, 166, 115, .09); padding: 7px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.candidate { min-height: 86px; display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #e8eaf0; }
.candidate:last-child { border: 0; }
.candidate--current { background: linear-gradient(90deg, rgba(69, 94, 233, .06), transparent 65%); box-shadow: inset 3px 0 #455ee9; }
.candidate--done { opacity: .65; }
.candidate__number { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #dfe2ea; border-radius: 50%; color: #6f7890; font-weight: 700; font-size: 13px; }
.candidate--done .candidate__number { color: white; border-color: #17a673; background: #17a673; }
.candidate--current .candidate__number { color: white; border-color: #455ee9; background: #455ee9; }
.candidate__identity { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.candidate__identity strong { font-size: 15px; }
.candidate__identity span, .candidate__status small { color: #6f7890; font-size: 12px; }
.candidate__status { min-width: 140px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.pill--done { color: #17a673; background: rgba(23, 166, 115, .1); }
.pill--current { color: #455ee9; background: rgba(69, 94, 233, .1); }
.pill--waiting { color: #7d8494; background: #f0f1f4; }
.pill i { width: 6px; height: 6px; background: #455ee9; border-radius: 50%; animation: pulse 1.4s infinite; }
.candidate__actions { display: flex; gap: 7px; margin-left: 8px; }
.mini-button { height: 32px; border: 0; border-radius: 7px; padding: 0 11px; cursor: pointer; font-size: 11px; font-weight: 700; }
.mini-button--start { color: #455ee9; background: rgba(69, 94, 233, .1); }
.mini-button--done { color: white; background: #17a673; }
.mini-button--remove { color: #b85d65; background: #f8e9eb; font-size: 18px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 60px; color: #6f7890; }
.empty-state strong { color: #172033; margin-bottom: 5px; }
.footnote { text-align: center; color: #6f7890; font-size: 12px; margin-top: 18px; }
.footnote span { color: #17a673; margin-right: 5px; }
dialog { width: min(440px, calc(100% - 30px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 80px rgba(20, 28, 50, .22); }
dialog::backdrop { background: rgba(19, 25, 42, .45); backdrop-filter: blur(3px); }
dialog form { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
dialog form > div { display: flex; justify-content: space-between; align-items: center; }
dialog h2 { margin: 0; font: 700 19px Manrope, sans-serif; }
dialog input { width: 100%; }
.dialog-close { border: 0; background: none; font-size: 25px; cursor: pointer; color: #6f7890; }
.toast { position: fixed; right: 22px; bottom: 22px; transform: translateY(20px); opacity: 0; pointer-events: none; padding: 12px 16px; color: white; background: #172033; border-radius: 9px; font-size: 13px; transition: .2s; }
.toast--show { opacity: 1; transform: none; }
.toast--error { background: #b94752; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(69, 94, 233, .15); } }
@media (max-width: 760px) {
  .topbar { padding: 0 18px; }
  nav { gap: 16px; }
  nav a { font-size: 12px; }
  .shell { width: min(100% - 24px, 1120px); padding-top: 32px; }
  .hero { align-items: start; }
  .updated { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .admin-panel { align-items: flex-start; flex-wrap: wrap; }
  .admin-panel > div { flex: 0 0 100%; }
  .add-form { flex-wrap: wrap; }
  .add-form label { flex: 1 1 150px; }
  .add-form input { min-width: 0; width: 100%; }
  .candidate { padding: 14px; gap: 10px; flex-wrap: wrap; }
  .candidate__status { min-width: 100px; }
  .candidate__actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 430px) {
  .brand { font-size: 0; }
  .stats { gap: 8px; }
  .stats article { padding: 13px 11px; gap: 9px; }
  .stat-icon { width: 32px; height: 32px; }
  .queue-card__heading { padding: 18px 14px; }
  .auto-refresh { display: none; }
  .candidate__status small { display: none; }
}
