:root {
  --canvas: #edf2ef;
  --paper: #ffffff;
  --soft: #f3f6f3;
  --line: #cedbd5;
  --ink: #152722;
  --muted: #64736e;
  --pine: #176156;
  --pine-deep: #092d24;
  --gold: #cda65a;
  --lime: #d6e779;
  --rose: #b84242;
}

body:not(.home-body) { background: var(--canvas); color: var(--ink); }

.topbar {
  min-height: 72px;
  height: auto;
  background: var(--pine-deep);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 16px rgba(5, 30, 23, .18);
}

.brand { gap: 12px; }
.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(221, 187, 111, .9);
  border-radius: 6px;
  background: #06231b;
}

.brand strong,
.page-heading h1,
.kiosk-hero h1,
.scan-heading h1,
.day-heading h1,
.cash-panel-heading h1,
.cash-panel-heading h2,
.cash-key-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .2px;
}

.brand strong { font-size: 17px; }
.brand small { color: #d2ded8; }
.season-badge { background: #d9b66c; color: #122821; border-radius: 4px; }

.local-state { display: inline-flex; align-items: center; gap: 7px; color: #dce8e2; }
.local-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #67d990; box-shadow: 0 0 0 3px rgba(103, 217, 144, .15); }

.app-shell,
.kiosk-shell,
.scan-shell,
.day-shell,
.cash-shell { padding-top: 28px; }

.page-heading,
.kiosk-hero,
.scan-heading,
.day-heading {
  position: relative;
  padding-bottom: 16px;
}

.page-heading::after,
.kiosk-hero::after,
.scan-heading::after,
.day-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: var(--gold);
}

.eyebrow { color: #927027; letter-spacing: 1px; }
h1, h2, h3 { color: var(--pine-deep); }

.button,
.icon-button,
.cash-lock,
.order-line-controls button,
.beater-tab {
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(11, 48, 38, .10);
}

.button:not(:disabled):hover,
.icon-button:not(:disabled):hover,
.cash-lock:not(:disabled):hover,
.order-line-controls button:not(:disabled):hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.kiosk-card:focus-visible,
.cash-key:focus-visible {
  outline: 3px solid #d9b66c;
  outline-offset: 2px;
}

input, select, textarea {
  border-color: #b8c8c1 !important;
  box-shadow: inset 0 1px 2px rgba(11, 48, 38, .04);
}

.filters,
.summary-grid article,
.table-frame,
.details-panel,
.day-card,
.cash-panel,
.cash-key-panel,
.kiosk-counts article,
.scan-person-card,
.camera-frame,
.kiosk-registered {
  border-color: #c9d7d1;
  box-shadow: 0 8px 22px rgba(11, 48, 38, .07);
}

.filters,
.summary-grid article,
.table-frame,
.details-panel,
.day-card,
.cash-panel,
.cash-key-panel,
.kiosk-counts article,
.scan-person-card {
  border-radius: 6px;
}

.summary-grid article { border-top: 3px solid #cda65a; }
.summary-grid article strong { color: var(--pine-deep); }

th { background: #e8efeb; color: #365149; border-bottom: 1px solid #cbd9d3; }
tbody tr:hover, tbody tr.selected { background: #edf7f1; }
.details-title, .cash-panel-heading { border-bottom-color: #d3ded8; }

dialog {
  border: 1px solid #c9d7d1;
  border-top: 3px solid #cda65a;
  border-radius: 6px;
  box-shadow: 0 20px 55px rgba(5, 30, 23, .30);
}
dialog::backdrop { background: rgba(4, 27, 21, .67); }
.dialog-header { border-bottom: 1px solid #d9e2de; padding-bottom: 13px; }

.kiosk-card {
  border-color: #c8d7d0;
  border-radius: 6px;
  box-shadow: 0 7px 18px rgba(11, 48, 38, .07);
}
.kiosk-card:hover { border-color: #cda65a; box-shadow: 0 10px 23px rgba(11, 48, 38, .13); }
.kiosk-counts article { border-top: 3px solid #cda65a; }
.kiosk-registered { border-top: 2px solid #cda65a; }

.scan-person-card { border-left-color: #cda65a; }
.scan-person-card.is-ready { border-left-color: #3b936f; }
.camera-frame { border: 1px solid #173d32; border-top: 3px solid #cda65a; }
.camera-stage { background: #0b281f; }
.back-capture-prompt { border-radius: 5px; box-shadow: 0 5px 12px rgba(11, 48, 38, .06); }

.day-card { border-top: 3px solid #cda65a; }
.hunt-table-summary > div { background: #f1f5f2; border-color: #cfddd6; border-top-color: #cda65a; }
.hunt-table-row { background: #f5f8f6; border-color: #d1ded8; }

.cash-panel, .cash-key-panel { border-top: 3px solid #cda65a; }
.cash-key { border-radius: 4px; }
.cash-fixed-actions .cash-action { border-radius: 4px; }
.archive-row { border-bottom-color: #d9e3de; }

@media (max-width: 760px) {
  .topbar { padding: 10px 14px; }
  .brand-logo { width: 42px; height: 42px; }
  .app-shell, .kiosk-shell, .scan-shell, .day-shell, .cash-shell { padding-top: 20px; }
  .page-heading, .kiosk-hero, .scan-heading, .day-heading { padding-bottom: 12px; }
}

@media print {
  body:not(.home-body) { background: #fff; }
  .topbar { box-shadow: none; }
}
