:root {
  --ink: #152a41;
  --blue: #2a6f97;
  --cyan: #4bb9d0;
  --paper: #f2f6f9;
  --muted: #667b8e;
  --line: #d6e1e9;
  --gold: #f4c44e;
  --red: #d7474d;
  --redbg: #fff0f1;
  --amber: #c98400;
  --amberbg: #fff6dc;
  --green: #168c68;
  --greenbg: #e7f6f0;
  --shadow: 0 18px 44px rgba(21, 42, 65, .10);
}

html { background: var(--paper); }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 5%, rgba(75, 185, 208, .13), transparent 24rem),
    radial-gradient(circle at 6% 22%, rgba(244, 196, 78, .10), transparent 20rem),
    var(--paper);
}

.topbar {
  height: 84px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  background: linear-gradient(110deg, #11263c 0%, #193751 58%, #285370 100%);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 12px 30px rgba(21, 42, 65, .24);
}

.brand { gap: 14px; }

.brand-logo-shell {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 16px;
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px rgba(255, 255, 255, .10), 0 10px 24px rgba(0, 0, 0, .16);
}

.brand-logo {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand strong { font-size: .9rem; letter-spacing: .15em; }
.brand div span { margin-top: 3px; color: #bdd0de; font-size: .76rem; }

.freshness {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(4, 18, 30, .27);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.freshness small { color: #b9cfdd; }
main { max-width: 1240px; padding: 28px 24px 64px; }

.command-banner {
  position: relative;
  min-height: 184px;
  margin-bottom: 16px;
  padding: 34px 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(128deg, #152a41 0%, #1d3d59 66%, #2e5c79 100%);
  box-shadow: 0 24px 56px rgba(21, 42, 65, .18);
}

.command-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0 72%, rgba(255, 255, 255, .05) 72% 72.15%, transparent 72.15%);
}

.command-banner::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -96px;
  top: -164px;
  border: 58px solid rgba(244, 196, 78, .13);
  border-radius: 50%;
}

.command-copy { position: relative; z-index: 1; }
.command-copy .eyebrow { color: var(--gold); letter-spacing: .16em; }

.command-copy h1 {
  max-width: 760px;
  margin: 12px 0 10px;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.command-copy p { margin: 0; color: #c7d7e3; font-size: 1rem; line-height: 1.5; }

.command-signal {
  position: relative;
  z-index: 1;
  width: 142px;
  height: 92px;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 17px 18px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(5, 19, 31, .18);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.command-signal span {
  width: 8px;
  border-radius: 8px 8px 2px 2px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(244, 196, 78, .20);
}

.command-signal span:nth-child(1) { height: 23px; opacity: .56; }
.command-signal span:nth-child(2) { height: 38px; opacity: .78; }
.command-signal span:nth-child(3) { height: 54px; }
.command-signal b { position: absolute; right: 13px; top: 10px; color: #d5e3ec; font-size: .59rem; letter-spacing: .16em; }

.snapshot-note {
  padding: 12px 16px;
  margin-bottom: 18px;
  border-color: #c3e2ea;
  border-radius: 15px;
  background: rgba(231, 247, 250, .88);
  box-shadow: 0 8px 22px rgba(21, 42, 65, .05);
}

.snapshot-note strong { color: #1f596f; }
.overview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }

.overview > article {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.overview > article::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -45px;
  top: -51px;
  border: 22px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
}

.overview > article > * { width: 100%; text-align: center; }
.overview > article strong { margin: 12px 0 5px; font-size: 2.8rem; letter-spacing: -.055em; }
.send-summary { background: linear-gradient(145deg, #147a5a, #1a9b73); }
.dirty-summary { color: #fff; border-color: transparent; background: linear-gradient(145deg, #195e89, #287fa9); }
.balance-card { border-top: 5px solid #cad7e0; background: rgba(255, 255, 255, .96); }
.balance-card.is-negative { border-top-color: var(--red); }
.send-summary .eyebrow, .dirty-summary .eyebrow { color: #d7f4ea; }
.dirty-summary .eyebrow { color: #d9eff7; }
.send-summary > span:last-child, .dirty-summary > span:last-child { color: #def4ed; }
.dirty-summary > span:last-child { color: #dceff6; }
.balance-card.is-negative strong, .balance-card.is-negative > span:last-child { color: var(--red); }

.tabs {
  top: 96px;
  gap: 12px;
  padding: 0;
  margin-bottom: 14px;
  background: transparent;
}

.tab {
  min-height: 68px;
  padding: 14px 17px;
  border: 1px solid #c9d7e1;
  border-radius: 17px;
  justify-content: flex-start;
  color: #3c566a;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 22px rgba(21, 42, 65, .08);
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}

.tab:hover { transform: translateY(-2px); border-color: #9fb4c4; box-shadow: 0 12px 27px rgba(21, 42, 65, .12); }
.tab:focus-visible, .hotel-filter:focus-visible, .report-tab:focus-visible { outline: 3px solid rgba(75, 185, 208, .42); outline-offset: 3px; }
.tab i { margin-left: auto; color: #7790a3; font-size: 1.55rem; font-style: normal; }
.tab b { color: #3b566a; background: #edf3f6; }
.tab.active { color: #fff; border-color: var(--ink); background: linear-gradient(135deg, var(--ink), #284f6b); box-shadow: 0 13px 30px rgba(21, 42, 65, .22); }
.tab.active::before { content: ""; width: 5px; height: 28px; border-radius: 999px; background: var(--gold); }
.tab.active b { color: #fff; background: rgba(255, 255, 255, .15); }
.tab.active i { color: #fff; }

.secondary-reports {
  margin: 0 0 17px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .65);
}

.secondary-reports > span { color: #50697c; letter-spacing: .06em; text-transform: uppercase; }
.secondary-reports button { padding: 8px 12px; color: #40596b; background: #edf3f6; border-color: transparent; }
.secondary-reports button:hover { border-color: #b7cad6; }
.secondary-reports button.active { color: #fff; border-color: var(--ink); background: var(--ink); }

.hotel-brand-filters {
  gap: 11px;
  margin-bottom: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 25px rgba(21, 42, 65, .06);
}

.hotel-brand-filters .hotel-filter {
  min-width: 118px;
  height: 84px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 15px;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.hotel-brand-filters .hotel-filter:hover { transform: translateY(-2px); border-color: #9fb4c4; box-shadow: 0 9px 20px rgba(21, 42, 65, .10); }
.hotel-brand-filters .hotel-filter.active { color: #fff; border-color: var(--ink); background: var(--ink); box-shadow: 0 9px 23px rgba(21, 42, 65, .20); }
.logo-tile { width: 88px; height: 44px; padding: 3px 8px; display: grid; place-items: center; border-radius: 9px; background: #fff; }
.hotel-brand.wide-logo { min-width: 164px; }
.hotel-brand.wide-logo .logo-tile { width: 138px; }
.hotel-brand img { display: block; max-width: 100%; max-height: 38px; object-fit: contain; }
.hotel-brand-filters small { font-size: .69rem; line-height: 1; font-weight: 800; }
.all-hotels span { font-size: 1rem; }
.all-hotels small { color: var(--muted); }
.all-hotels.active small { color: #c8d7e2; }

.section-heading { margin: 24px 2px 14px; }
.section-heading h1 { color: var(--ink); font-size: 1.9rem; letter-spacing: -.045em; }
.hotel-grid { gap: 16px; }

.hotel-card, .all-total, .report-card {
  position: relative;
  border-radius: 22px;
  border-color: var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.hotel-card::before, .report-card::before, .all-total::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.report-card::before, .all-total::before { background: linear-gradient(90deg, var(--gold), #e7a928); }
.hotel-head, .report-card-head { padding: 21px 20px 18px; background: linear-gradient(180deg, #fff, #fbfdfe); }
.hotel-title h2, .report-card-head h2 { color: var(--ink); font-size: 1.12rem; }
.rows { padding: 7px 14px 12px; }
.data-row { padding: 12px 7px; }
.all-total { margin-top: 18px; padding: 20px; }
.table-scroll th { color: #425d70; background: #edf3f7; }
.table-scroll tbody tr:hover { background: #f5f9fb; }
.table-scroll .highlight-row { color: #173a53; background: #e3f0f8; }
.table-scroll .highlight-row td:first-child { background: #a8d0e9; }
.chart-summary > div { border-radius: 15px; background: #f4f8fb; }
footer { max-width: 1240px; padding: 22px 24px 30px; border-top-color: var(--line); }

@media (max-width: 850px) {
  .command-banner { min-height: 165px; padding: 28px 30px; }
  .command-signal { width: 122px; }
  .overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .topbar { height: 72px; padding: 0 14px; }
  .brand-logo-shell { width: 48px; height: 48px; border-radius: 14px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand div span { display: none; }
  .freshness { padding: 7px 9px; }
  .freshness span { font-size: .78rem; }
  .freshness small { font-size: .65rem; }
  main { padding: 14px 12px 42px; }
  .command-banner { min-height: 170px; padding: 25px 23px; border-radius: 19px; }
  .command-copy h1 { max-width: 310px; font-size: 2.35rem; }
  .command-copy p { max-width: 290px; font-size: .9rem; }
  .command-signal { display: none; }
  .snapshot-note { font-size: .82rem; }
  .overview { grid-template-columns: 1fr; gap: 9px; }
  .overview > article { min-height: 104px; border-radius: 17px; }
  .overview > article strong { font-size: 2.25rem; }
  .tabs { top: 80px; gap: 7px; }
  .tab { min-height: 78px; padding: 11px 7px; flex-direction: column; justify-content: center; gap: 5px; font-size: .83rem; }
  .tab.active::before, .tab i { display: none; }
  .secondary-reports { align-items: flex-start; flex-direction: column; gap: 7px; margin-bottom: 11px; padding: 10px; }
  .secondary-reports > div { width: 100%; }
  .hotel-brand-filters { padding: 10px; }
  .hotel-brand-filters .hotel-filter { min-width: 104px; height: 76px; }
  .hotel-brand.wide-logo { min-width: 148px; }
  .hotel-brand.wide-logo .logo-tile { width: 124px; }
  .section-heading { margin-top: 21px; align-items: flex-start; }
  .section-heading h1 { font-size: 1.55rem; }
  .legend { max-width: 138px; justify-content: flex-end; }
  .hotel-card, .all-total, .report-card { border-radius: 18px; }
  .hotel-head, .report-card-head { padding: 18px 16px 15px; }
  .rows { padding: 5px 10px 9px; }
  .total-list { grid-template-columns: 1fr; }
  footer { padding: 20px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
