@font-face {
  font-family: "Cairo";
  src: url("fonts/cairo-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+0660-0669;
}
@font-face {
  font-family: "Cairo";
  src: url("fonts/cairo-arabic-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+0660-0669;
}
@font-face {
  font-family: "Cairo";
  src: url("fonts/cairo-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  src: url("fonts/cairo-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --teal: #0f6f78;
  --orange: #ef8b1a;
  --cream: #f6f3ec;
  --ink: #173036;
  --muted: #4e6468;
  --line: rgba(15, 111, 120, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  line-height: 1.7;
}
body.site {
  background:
    radial-gradient(820px 380px at 100% -8%, rgba(15, 111, 120, 0.1), transparent 58%),
    radial-gradient(640px 340px at -8% 108%, rgba(239, 139, 26, 0.1), transparent 60%),
    var(--cream);
}
body.desk { background: #f3f0e8; color: #14202b; }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; }
button, input, select { font: inherit; }
::selection { background: #16181d; color: #f4f1ea; }

.shell { position: relative; z-index: 1; display: flex; min-height: 100svh; flex-direction: column; }
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop video { width: 100%; height: 100%; object-fit: cover; }
.backdrop span { position: absolute; inset: 0; background: rgba(244, 241, 234, 0.8); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(15, 111, 120, 0.1);
  background: rgba(246, 243, 236, 0.95);
}
.bar, .foot-grid, .foot-nav { width: min(960px, calc(100% - 32px)); margin: 0 auto; }
.bar { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; }
.header-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-shot { max-width: 11rem; font-size: 12px; line-height: 1.35; text-align: start; }
.brand img, .site-header .brand img { height: 48px; width: auto; }
.bar nav { display: flex; align-items: center; gap: 8px; }
.quiet-link { padding: 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.quiet-link .long { display: none; }
.header-book { height: 40px; min-height: 40px; width: auto; padding: 0 16px; }
.home-main { display: flex; flex: 1; align-items: center; justify-content: center; }
.page-main { width: min(32rem, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; flex: 1; }
body.desk .page-main { width: min(1100px, calc(100% - 24px)); }

.hero { display: grid; width: min(960px, calc(100% - 32px)); align-items: center; gap: 32px; padding: 32px 0; }
.hero-logo { display: flex; justify-content: center; }
.logo-plate {
  display: grid;
  width: fit-content;
  place-items: center;
  border-radius: 2rem;
  background: #fff;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 10px 24px rgba(18, 52, 58, 0.05);
}
.logo-plate img { height: 112px; width: auto; }
.hero-copy { text-align: center; }
.eyebrow {
  display: inline-flex;
  margin: 0;
  border-radius: 999px;
  background: #fff;
  padding: 4px 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 111, 120, 0.08);
}
.hero h1, .stage-card h1 { margin: 16px 0 0; font-size: clamp(32px, 7vw, 48px); line-height: 1.25; }
.hero-copy > p, .lead { margin: 16px auto 0; max-width: 28rem; color: var(--muted); }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.shot-hint, a.shot-hint, .shot-hint a { color: #0f6f78; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.hero-shot { display: inline-block; margin: 0 0 14px; }
p.shot-hint { margin: 0; padding: 0 16px 10px; text-align: center; }
.qr-label { margin: 10px 0 0; color: #0f6f78; font-size: 13px; font-weight: 800; }
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.path .step {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 8px;
  text-align: center;
}
.path span { display: grid; width: 28px; height: 28px; margin: 0 auto; place-items: center; border-radius: 999px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; }
.path p { margin: 8px 0 0; font-size: 13px; font-weight: 700; }

.stage-card {
  border-radius: 1.85rem;
  background: #fff;
  padding: 1.35rem 1.1rem;
  box-shadow: 0 18px 48px rgba(18, 52, 58, 0.08);
}
.kicker { margin: 0; color: var(--teal); font-size: 14px; font-weight: 700; }
.stage-card h1 { font-size: 30px; }
.sheet { margin-top: 20px; }
.choices { display: grid; gap: 10px; }
.choices form { display: block; }
.form-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.chip { min-width: 0; margin: 0; overflow: hidden; border-radius: 999px; background: #f3efe6; padding: 4px 12px; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.back { border: 0; background: transparent; color: var(--teal); font-weight: 700; cursor: pointer; padding: 0; }
.review { display: grid; gap: 10px; margin: 0 0 16px; }
.visit-banner { display: grid; gap: 8px; margin: 0 0 16px; border-radius: 22px; background: #173036; color: #fff; padding: 14px 16px; }
.visit-banner div { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.visit-banner span { color: rgba(255, 255, 255, 0.62); font-size: 13px; font-weight: 700; }
.visit-banner strong { font-size: 14px; text-align: end; }
.review div { border-radius: 16px; background: #f3efe6; padding: 12px 14px; }
.review dt { color: #6d6256; font-size: 13px; }
.review dd { margin: 4px 0 0; font-size: 18px; font-weight: 700; }

.btn-signal, button.btn-signal, .btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #1b1206;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 24px;
  box-shadow: 0 10px 24px rgba(239, 139, 26, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-signal:hover, .btn:hover { background: #f6a23a; transform: translateY(-1px); }
.btn-signal:active, .btn:active { transform: translateY(0) scale(0.98); }
.btn-signal.slim, .btn.small { min-height: 42px; width: auto; border-radius: 14px; padding: 8px 14px; box-shadow: none; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(15, 111, 120, 0.15);
  background: #fff;
  color: var(--teal);
  font-weight: 700;
  padding: 0 20px;
}
.btn.quiet { background: #fff; color: var(--teal); box-shadow: none; border: 1px solid var(--line); }
.btn.danger { background: #9a3b32; color: #fff; box-shadow: none; }

.stepper { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; padding: 0; list-style: none; }
.stepper::before, .stepper::after { content: ""; position: absolute; top: 16px; height: 2px; border-radius: 999px; transform: translateY(-50%); }
.stepper::before { inset-inline: 12.5%; background: #e6e0d6; }
.stepper::after { inset-inline-start: 12.5%; width: calc(var(--step-progress) * 75%); background: var(--teal); transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.stepper li { min-width: 0; text-align: center; }
.step-dot { position: relative; z-index: 1; display: grid; width: 32px; height: 32px; margin: 0 auto; place-items: center; border-radius: 999px; border: 1px solid #e6e0d6; background: #fff; color: #8a9494; font-size: 12px; font-weight: 700; transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease; }
.step-dot-on { border-color: var(--teal); background: var(--teal); color: #fff; }
.step-dot-current { transform: scale(1.08); }
.stepper p { margin: 8px 0 0; color: #8a9494; font-size: 12px; line-height: 1.3; }
.stepper p.on { color: var(--ink); font-weight: 700; }

.choice {
  display: grid;
  width: 100%;
  min-height: 4.35rem;
  grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
  align-items: center;
  column-gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 1.15rem;
  background: #f3efe6;
  padding-inline: 0.45rem;
  text-align: start;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.choice:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(15, 111, 120, 0.16); background: #fff; box-shadow: 0 14px 30px rgba(15, 111, 120, 0.1); }
.choice:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.choice:disabled { cursor: not-allowed; color: #8d9696; }
.choice-index { display: grid; width: 2.75rem; height: 2.75rem; justify-self: center; place-items: center; border-radius: 0.85rem; background: #fff; color: var(--teal); font-size: 0.85rem; font-weight: 700; }
.choice-title { min-width: 0; overflow: hidden; text-align: center; font-size: 1.125rem; font-weight: 700; }
.choice-time { display: block; margin-top: 2px; color: #0f6f78; font-size: 0.82rem; font-weight: 700; }
.choice:disabled .choice-time { color: #8d9696; }
.choice:disabled .choice-index { background: #e7e2d8; color: #8d9696; }
.choice-go { display: grid; width: 2.35rem; height: 2.35rem; justify-self: center; place-items: center; border-radius: 999px; background: var(--teal); color: #fff; transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease; }
.choice:hover:not(:disabled) .choice-go { transform: translateX(-4px); background: var(--orange); color: #1b1206; }
.choice-badge { justify-self: center; border-radius: 999px; background: #e7e2d8; padding: 0.3rem 0.7rem; color: #6d7575; font-size: 0.75rem; font-weight: 700; }

.field { display: grid; gap: 6px; margin-bottom: 18px; font-weight: 700; }
.field-input, .nid-input {
  height: 3.6rem;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid transparent;
  background: #f6f3ec;
  color: var(--ink);
  padding: 0 1rem;
  font-size: 1.125rem;
  text-align: start;
}
.nid-input { text-align: center; letter-spacing: 0.04em; }
.field-input:focus, .nid-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 111, 120, 0.12); }
.field.invalid input { border-color: #9a3b32; }
.field small, .alert { color: #9a3b32; font-weight: 700; }
.alert { background: #fff4f2; border-radius: 16px; padding: 12px 14px; }
.desk .field input, .desk .field select { min-height: 52px; width: 100%; border-radius: 16px; border: 1px solid #d9d3c7; background: #fff; padding: 10px 14px; }

.foot { margin-top: auto; border-top: 1px solid rgba(15, 111, 120, 0.1); }
.foot-grid { display: grid; gap: 18px; padding: 28px 0; }
.foot img { height: 56px; width: auto; }
.foot p { max-width: 34rem; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.social a { width: 48px; height: 48px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: transform 0.2s ease; }
.social a:hover { transform: translateY(-2px); }
.social img { width: 26px; height: 26px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 0 28px; font-weight: 700; color: var(--muted); border-top: 1px solid rgba(15, 111, 120, 0.1); }

.ticket-sheet { position: relative; overflow: hidden; border-radius: 1.75rem; background: #fffdf8; padding: 1.5rem 1.15rem 1.35rem; color: var(--ink); box-shadow: 0 18px 48px rgba(18, 52, 58, 0.1); }
.ticket-sheet::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: linear-gradient(90deg, #0f6f78, #ef8b1a); }
.ticket-top, .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket-top img { height: 48px; width: auto; }
.pill { background: var(--teal); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.ticket-sheet h2 { margin: 20px 0 0; font-size: 28px; line-height: 1.35; }
.slot, .grid2 div { background: #f3efe6; border-radius: 18px; padding: 12px 14px; margin-top: 10px; }
.slot p, .grid2 dt { margin: 0; color: #6d6256; font-size: 13px; }
.slot strong, .grid2 dd { display: block; margin: 4px 0 0; font-size: 18px; font-weight: 700; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.grid2 div { margin-top: 0; }
.qr-wrap { text-align: center; border-top: 1px dashed rgba(23, 48, 54, 0.15); margin-top: 18px; padding-top: 18px; }
.qr-wrap img { width: 196px; height: 196px; border-radius: 16px; background: #fff; }
.code { display: inline-block; background: #173036; color: #fff; border-radius: 999px; padding: 6px 14px; letter-spacing: 0.04em; }
.ticket-redline { position: relative; height: 14px; margin-top: 1.2rem; }
.ticket-redline::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; transform: translateY(-50%); border-radius: 999px; background: linear-gradient(90deg, transparent, #d23b3b 14%, #d23b3b 86%, transparent); }
.ticket-redline span { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%) rotate(45deg); border-radius: 1.5px; background: #d23b3b; box-shadow: 0 0 0 4px #fffdf8, 0 0 0 6px rgba(210, 59, 59, 0.35); }
.ticket-alert { margin-top: 0.9rem; border-radius: 1rem; background: #fff5f3; padding: 0.85rem 0.95rem; color: #7a1f1a; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(210, 59, 59, 0.28); }
.ticket-alert p { margin: 0 0 6px; }
.note { margin-top: 0.85rem; text-align: center; font-size: 0.92rem; font-weight: 700; line-height: 1.8; }

.stage-in, .step-in, .choice-in, .rise { animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
.step-in { animation-duration: 0.36s; }
.top { padding: 18px 16px 0; }
.top .brand img { height: 64px; }
.card { background: #fff; border-radius: 28px; padding: 22px; margin-top: 16px; box-shadow: 0 16px 40px rgba(23, 48, 54, 0.05); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.desk-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.stat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stat > div { min-width: 0; }
.stat input { width: 100%; min-height: 42px; border: 1px solid #d9d3c7; border-radius: 12px; text-align: center; }
.hide-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.console .hide-row h3 { margin: 0; }
body.console .hide-row .btn { width: auto; min-height: 34px; padding: 4px 12px; }
.stop { margin-top: 16px; padding-top: 8px; border-top: 1px solid #efeae0; }
.stop-grid { display: grid; gap: 10px; }
.stop-grid .wide { grid-column: 1 / -1; }
.slot-box { margin-top: 12px; padding: 12px; border: 1px solid #efeae0; border-radius: 18px; background: #fbf8f2; }
.slot-box h4 { margin: 0 0 8px; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 700; }
.stop-note { margin: 0 0 12px; color: #5d6b78; font-size: 13px; font-weight: 700; line-height: 1.7; }
.add-stop { margin-top: 22px; padding-top: 12px; border-top: 1px dashed #d9d3c7; }
@media (min-width: 800px) {
  .stop-grid.two { grid-template-columns: 1fr 1fr; }
  .stop-grid.three { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr); }
}
.stop.is-hidden, .city-card.is-hidden { opacity: 0.7; }
@media (min-width: 800px) {
  .stat { grid-template-columns: minmax(0, 1fr) 96px auto; }
}
.desk h2, .desk h3 { margin: 12px 0; }

@media (min-width: 640px) {
  .logo-plate img { height: 160px; }
  .hero-actions { align-items: center; }
  .btn-signal, .btn-ghost { width: auto; min-width: 176px; }
  .quiet-link .short { display: none; }
  .quiet-link .long { display: inline; }
  .stage-card { padding: 1.65rem 1.5rem 1.5rem; }
}
@media (min-width: 800px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 56px; }
  .hero-logo { order: 2; }
  .hero-copy { order: 1; text-align: start; }
  .hero-copy > p { margin-inline: 0; }
  .hero-actions { align-items: flex-start; }
  .hero-actions { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr auto; align-items: center; }
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

#busy-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(246, 243, 236, 0.94);
  padding: 24px;
}
#busy-screen[hidden] { display: none !important; }
.busy-card { width: min(100%, 22rem); text-align: center; display: grid; justify-items: center; gap: 10px; }
.busy-card p { margin: 0; }
.busy-hint { color: #4e6468; font-size: 14px; line-height: 1.8; }
.orbit-spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 111, 120, 0.16);
  border-top-color: #0f6f78;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
body[data-busy="1"] { cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  .logo-plate, .console-logo, .city-card, .stage-in, .step-in, .choice-in, .rise, .stepper::after, .btn-signal, .btn, .social a, .choice, .choice-go, .step-dot, .orbit-spinner, .pulse-num { animation: none; transition: none; }
  .backdrop { display: none; }
}
body.console {
  display: block;
  background: #0e141b;
  color: #e8e2d6;
}
body.console .shell,
body.console .console-main {
  width: 100%;
  min-width: 0;
}
body.console .console-work {
  min-width: 0;
  max-width: 100%;
}
body.console .console-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.console { min-height: 100svh; }
.console-side {
  background: #090d12;
  padding: 18px 16px 16px;
  border-bottom: 1px solid rgba(230, 194, 122, 0.16);
}
.console-logo {
  display: grid;
  place-items: center;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
}
.console-logo img { height: 72px; width: auto; }
.console-login .console-logo { width: 180px; margin-inline: auto; }
.console-title { margin: 18px 0 0; font-size: 22px; }
.city-grid { display: grid; gap: 12px; margin-top: 12px; }
.city-card {
  border: 1px solid #e7dece;
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  animation: rise 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.session-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 0; font-size: 14px; }
.session-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-line b { white-space: nowrap; }
.occ { height: 8px; overflow: hidden; margin-top: 10px; border-radius: 999px; background: #e7e1d6; }
.occ i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c9963a, #e6c27a); }
.console-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #9a7430;
}
.console-side .console-kicker { color: #e6c27a; }
.console-side strong { display: block; margin: 6px 0 14px; font-size: 22px; color: #f6f1e6; }
.console-side nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.console-side nav a {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 11px 12px;
  color: rgba(246, 241, 230, 0.75);
  font-weight: 700;
  text-align: center;
}
.console-side nav a.on { background: #e6c27a; color: #14202b; }
.pulse {
  border-radius: 28px;
  background: #101820;
  color: #f6f1e6;
  padding: 22px 22px 18px;
}
.pulse-kicker { display: flex; align-items: center; gap: 8px; margin: 0; color: #8dcea0; font-size: 13px; font-weight: 800; }
.pulse-kicker i { width: 8px; height: 8px; border-radius: 99px; background: #3dbe7a; }
.pulse-num { display: block; margin-top: 8px; font-size: clamp(64px, 12vw, 112px); line-height: 0.95; color: #e6c27a; font-variant-numeric: tabular-nums; }
.pulse-num.tick { animation: pulse-tick 420ms ease; }
@keyframes pulse-tick { from { transform: translateY(8px); opacity: 0.35; } to { transform: none; opacity: 1; } }
.pulse-sub { margin: 10px 0 0; color: #a7b0b8; font-size: 14px; }
.pulse-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.pulse-side span { display: block; color: #a7b0b8; font-size: 12px; }
.pulse-side b { display: block; margin-top: 4px; font-size: 22px; font-variant-numeric: tabular-nums; }
.city-card.still { animation: none; }
.console-out { display: inline-flex; margin-top: 12px; color: #f6f1e6; font-weight: 700; }
.console-work {
  margin: 12px;
  border-radius: 28px;
  background: #f4f0e6;
  color: #14202b;
  padding: 18px 14px 32px;
}
.console-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.console-top h1 { margin: 4px 0 0; font-size: 30px; }
.pill-open, .pill-shut {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}
.pill-open { background: #e7f6ee; color: #146c43; }
.pill-shut { background: #fdecea; color: #9a3b32; }
.console-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  border-radius: 24px;
  background: #101820;
  color: #f6f1e6;
  padding: 16px;
}
.console-switch p { margin: 0; color: #e6c27a; font-size: 13px; }
.console-switch strong { display: block; margin-top: 4px; }
.console-switch .btn { width: auto; min-width: 148px; }
.console-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.console-metric { min-height: 92px; border: 1px solid #e7dece; background: #fff; border-radius: 18px; padding: 14px; text-align: start; }
.console-metric span { display: block; color: #5d6b78; font-size: 12px; }
.console-metric b { display: block; margin-top: 6px; font-size: 28px; }
.console-metric.dark { background: #101820; color: #f6f1e6; }
.console-metric.dark span { color: #e6c27a; }
.console-login {
  width: min(28rem, calc(100% - 32px));
  margin: 10vh auto;
  border-radius: 28px;
  background: #f4f0e6;
  color: #14202b;
  padding: 28px 22px;
}
.console-login h1 { margin: 8px 0; }
.gate-work { width: min(32rem, calc(100% - 24px)); margin: 16px auto; }
.gate-lens { position: relative; overflow: hidden; margin-top: 16px; border-radius: 28px; background: #101820; aspect-ratio: 4 / 3; }
.gate-lens video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-open { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: transparent; color: #e6c27a; font-size: 20px; font-weight: 800; }
.gate-frame { pointer-events: none; position: absolute; inset: 16%; border: 2px solid rgba(230, 194, 122, 0.95); border-radius: 16px; box-shadow: 0 0 0 999px rgba(8, 12, 16, 0.35); }
.gate-note { margin: 10px 0 0; color: #5d6b78; font-weight: 700; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.console .btn,
body.console button.btn {
  background: linear-gradient(180deg, #f6e2b8, #e6c27a 48%, #c9963a);
  color: #1b140a;
  box-shadow: 0 10px 24px rgba(201, 150, 58, 0.22);
}
body.console .btn:hover,
body.console button.btn:hover { background: #f3d7a2; }
body.console .btn.danger { background: #9a3b32; color: #fff; box-shadow: none; }
body.console .btn.quiet { background: #fff; color: #14202b; box-shadow: none; }
@media (min-width: 960px) {
  .console { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
  .console-side {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    border-bottom: 0;
    border-left: 1px solid rgba(230, 194, 122, 0.16);
  }
  .console-side nav { grid-template-columns: 1fr; }
  .console-side nav a { text-align: start; background: transparent; }
  .console-out { margin-top: auto; }
  .console-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: 1fr 1fr; }
}

body.console .ledger {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #e7dece;
  border-radius: 28px;
  background: #fffdf8;
  padding: 0;
}
body.console .ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #101820;
  color: #f6f1e6;
  padding: 18px;
}
body.console .ledger-head p { margin: 0; color: #e6c27a; font-size: 12px; font-weight: 800; }
body.console .ledger-head h2 { margin: 2px 0 0; color: #f6f1e6; }
body.console .ledger-head .btn.excel,
body.console .ledger-head a.btn.excel {
  width: auto;
  background: transparent;
  color: #e6c27a;
  border: 1px solid #e6c27a;
  box-shadow: none;
}
body.console .ledger-body { padding: 16px; }
body.console .ledger-search { display: flex; gap: 8px; align-items: center; margin: 0; }
body.console .ledger-search input { flex: 1; min-height: 44px; border: 1px solid #d9d3c7; border-radius: 14px; padding: 8px 12px; }
body.console .ledger-search .btn { width: auto; min-width: 88px; }
body.console .chip-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
body.console .chip-line > span { font-size: 12px; font-weight: 800; color: #5d6b78; }
body.console .chip-form { margin: 0; flex: 0 0 auto; }
body.console button.chip {
  width: auto;
  min-height: 36px;
  border: 1px solid #e7dece;
  border-radius: 999px;
  background: #fff;
  color: #14202b;
  padding: 0 14px;
  font-weight: 700;
  box-shadow: none;
}
body.console button.chip.on { background: #101820; color: #e6c27a; border-color: #101820; }
body.console .ledger-count { margin: 14px 0; color: #5d6b78; font-weight: 700; }
body.console .ledger-table table { min-width: 0; }
body.console .ledger-table thead th { background: #101820; color: #e6c27a; border-bottom: 0; }
body.console .ledger-table tbody tr:nth-child(even) { background: #fbf8f2; }
@media (max-width: 800px) {
  body.console .ledger-table { overflow-x: auto; }
  body.console .ledger-table table { min-width: 860px; }
}

@media print {
  .site-header, .foot, .no-print, .backdrop { display: none !important; }
  body, .shell, .page-main { background: #fff; width: auto; margin: 0; }
  .ticket-sheet { box-shadow: none; }
}
