/* ============================================================
   Crest & Route — the page chrome of the public site and the staff
   application. Sharp corners, one-pixel rules, ink on warm paper.
   ============================================================ */

/* ------------------------------------------------------------
   Brand
   ------------------------------------------------------------ */

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
}
.brand:hover {
  text-decoration: none;
}

.brand-crest {
  width: 42px;
  height: 42px;
  flex: none;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.brand-crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-copy strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-crest.is-small {
  width: 32px;
  height: 32px;
}
.brand-crest.is-small + .brand-copy strong {
  font-size: 16px;
}
.brand-crest.is-small + .brand-copy small {
  font-size: 8px;
}

/* ------------------------------------------------------------
   Public header
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a:hover {
  color: var(--red);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--red);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  border-bottom: 1px solid var(--ink);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 5vw, 64px) 0;
}

.hero-copy h1 {
  margin: 14px 0 0;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 .accent {
  color: var(--red);
}

.hero-lead {
  max-width: 52ch;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--ink);
}

.hero-facts > div {
  padding: 12px 14px 0 0;
}
.hero-facts > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.hero-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-facts dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.04em;
}

.hero-figure {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.hero-figure .figure-main {
  grid-row: span 2;
  height: 100%;
  min-height: 380px;
}

.hero-figure figure {
  margin: 0;
  position: relative;
}

.hero-figure figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 9px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-figure .figure-side {
  height: 184px;
}

/* ------------------------------------------------------------
   Route strip
   ------------------------------------------------------------ */

.route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--ink);
}

.route-step {
  position: relative;
  padding: 26px 18px 24px 0;
}
.route-step + .route-step {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.route-step::before {
  content: "";
  position: absolute;
  top: 26px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--teal);
  transform: translateY(-14px);
}
.route-step + .route-step::before {
  left: 18px;
}
.route-step .step-no {
  display: inline-block;
  padding: 3px 7px;
  color: var(--paper);
  background: var(--teal-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.route-step h3 {
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.route-step p {
  color: var(--muted);
  font-size: 12.5px;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */

.section {
  padding: clamp(34px, 5vw, 60px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 13.5px;
}

.section.is-ink {
  color: var(--paper);
  background: var(--ink);
  border-bottom-color: var(--ink);
}
.section.is-ink .section-head {
  border-bottom-color: rgba(244, 241, 232, 0.35);
}
.section.is-ink .section-head p,
.section.is-ink .muted {
  color: rgba(244, 241, 232, 0.68);
}

/* ------------------------------------------------------------
   Package ticket
   ------------------------------------------------------------ */

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ticket {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
}

.ticket-media {
  position: relative;
  height: 190px;
}
.ticket-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ticket-media .tag {
  position: absolute;
  left: 0;
  bottom: 0;
}
.ticket-media .duration {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 9px;
  color: var(--ink);
  background: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 18px 18px;
}

.ticket-body h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.ticket-price .label {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticket-price .amount {
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   Package detail
   ------------------------------------------------------------ */

.detail-hero {
  position: relative;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.detail-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.detail-hero-inner {
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0;
}

.detail-hero h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-hero .lede {
  margin-top: 14px;
  color: rgba(244, 241, 232, 0.82);
}

.package-description {
  margin-bottom: 20px;
}

.package-description p + p {
  margin-top: 12px;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 32px;
  align-items: start;
}

.itinerary {
  border-top: 1px solid var(--ink);
}

.itinerary-day {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.itinerary-day .day-no {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.05em;
  color: var(--teal-deep);
}

.itinerary-day h3 {
  font-size: 15px;
}

.itinerary-day p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  padding: 18px;
}

.side-card + .side-card {
  margin-top: 18px;
}

.side-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.side-card .price {
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 0.03em;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.check-list li + li {
  margin-top: 6px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--teal);
}
.check-list.is-exclude li::before {
  background: var(--red);
}

.departure-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 13px;
}
.departure-row:last-child {
  border-bottom: 0;
}
.departure-row .date {
  font-family: var(--font-mono);
  font-size: 12px;
}
.departure-row .seats {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ------------------------------------------------------------
   Public footer
   ------------------------------------------------------------ */

.site-footer {
  padding: 42px 0 30px;
  color: rgba(244, 241, 232, 0.75);
  background: var(--ink);
}

.site-footer .brand-copy strong {
  color: var(--paper);
}
.site-footer .brand-copy small {
  color: rgba(244, 241, 232, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
  gap: 28px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 241, 232, 0.2);
}

.footer-grid h4 {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid li {
  font-size: 13px;
  line-height: 1.9;
}

.footer-grid a {
  color: rgba(244, 241, 232, 0.8);
}
.footer-grid a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(244, 241, 232, 0.2);
  color: rgba(244, 241, 232, 0.45);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Staff application chrome
   ------------------------------------------------------------ */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 14px 16px;
  overflow-y: auto;
  color: rgba(244, 241, 232, 0.72);
  background: var(--ink);
}

.sidebar .brand {
  padding: 0 6px 20px;
}
.sidebar .brand-copy strong {
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.sidebar .brand-copy small {
  font-size: 8px;
}
.sidebar .btn {
  color: var(--paper);
  border-color: rgba(244, 241, 232, 0.4);
}
.sidebar .btn:hover {
  color: var(--ink);
  background: var(--paper);
}
.sidebar .brand-copy small {
  color: rgba(244, 241, 232, 0.45);
}

.nav-label {
  margin: 18px 8px 6px;
  color: rgba(244, 241, 232, 0.35);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: rgba(244, 241, 232, 0.78);
  border-left: 2px solid transparent;
  font-size: 13px;
}
.nav-item:hover {
  color: var(--paper);
  background: rgba(244, 241, 232, 0.06);
  text-decoration: none;
}
.nav-item.is-active {
  color: var(--paper);
  background: rgba(22, 162, 181, 0.16);
  border-left-color: var(--teal);
}
.nav-item .icon {
  width: 16px;
  height: 16px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 6px 0;
  border-top: 1px solid rgba(244, 241, 232, 0.16);
}
.sidebar-user strong {
  display: block;
  color: var(--paper);
  font-size: 13px;
}
.sidebar-user small {
  color: rgba(244, 241, 232, 0.45);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--topbar-h);
  padding: 0 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.topbar h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.content {
  padding: 26px 24px 40px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat .label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stat .value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.03em;
}
.stat .hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

/* Dashboard */
.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dash-hero .display-md {
  margin-top: 7px;
  font-size: clamp(29px, 2.8vw, 36px);
}

.dash-hero .lede {
  margin-top: 7px;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 1.55;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dash-kpi {
  min-width: 0;
  padding: 14px 16px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
}

.dash-kpi.is-gold {
  border-top-color: var(--gold);
}

.dash-kpi.is-red {
  border-top-color: var(--red);
}

.dash-kpi.is-ink {
  border-top-color: var(--ink);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--teal-deep);
  background: rgba(26, 162, 181, 0.1);
}

.dash-kpi.is-gold .kpi-icon {
  color: #a8760a;
  background: rgba(244, 178, 35, 0.14);
}

.dash-kpi.is-red .kpi-icon {
  color: var(--red);
  background: rgba(213, 9, 7, 0.08);
}

.dash-kpi.is-ink .kpi-icon {
  color: var(--ink);
  background: rgba(1, 2, 2, 0.06);
}

.kpi-icon .icon {
  width: 16px;
  height: 16px;
}

.kpi-value {
  margin-top: 9px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kpi-value.is-red {
  color: var(--red);
}

.kpi-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

.kpi-progress {
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  background: var(--line);
}

.kpi-progress span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.kpi-progress.is-gold span {
  background: var(--gold);
}

.dash-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.9fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.dash-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-stack .panel {
  margin: 0;
}

.pipeline-strip {
  display: flex;
  gap: 2px;
  height: 8px;
  margin-bottom: 10px;
  background: var(--paper-2);
}

.pipeline-strip span {
  display: block;
  height: 100%;
}

.pipeline-strip .is-new,
.pipeline-legend .is-new {
  background: var(--red);
}

.pipeline-strip .is-contacted,
.pipeline-legend .is-contacted {
  background: var(--gold);
}

.pipeline-strip .is-closed,
.pipeline-legend .is-closed {
  background: var(--teal);
}

.pipeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 11.5px;
}

.pipeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pipeline-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
}

.pipeline-legend b {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
}

.attention-list,
.upcoming-list {
  display: flex;
  flex-direction: column;
}

.attention-item,
.upcoming-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.attention-item:last-child,
.upcoming-item:last-child {
  border-bottom: 0;
}

.attention-item:hover,
.upcoming-item:hover {
  background: var(--paper-2);
  text-decoration: none;
}

.attention-item:focus-visible,
.upcoming-item:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.attention-icon {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--teal-deep);
  border: 1px solid var(--line);
}

.attention-icon .icon {
  width: 17px;
  height: 17px;
}

.attention-item.is-red .attention-icon {
  color: var(--red);
  border-color: rgba(213, 9, 7, 0.3);
}

.attention-item.is-gold .attention-icon {
  color: #a8760a;
  border-color: rgba(244, 178, 35, 0.45);
}

.attention-copy {
  flex: 1;
  min-width: 0;
}

.attention-copy b {
  display: block;
  font-size: 13px;
}

.attention-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.attention-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.attention-arrow {
  color: var(--muted);
}

.attention-arrow .icon {
  width: 15px;
  height: 15px;
}

.date-chip {
  display: flex;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.date-chip b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.date-chip span {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upcoming-copy {
  flex: 1;
  min-width: 0;
}

.upcoming-copy b {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upcoming-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.upcoming-copy span.is-low {
  color: var(--red);
  font-weight: 600;
}

.upcoming-copy span.is-warning {
  color: #a8760a;
  font-weight: 600;
}

.upcoming-price {
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.dash-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}

.dash-section-head h2 {
  margin-top: 4px;
}

.dash-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 1100px) {
  .dash-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .dash-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .dash-hero {
    align-items: flex-start;
  }

  .dash-actions {
    width: 100%;
  }

  .dash-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .kpi-value {
    font-size: 30px;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ink);
}
.panel-head h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.panel-body {
  padding: 16px;
}

.empty {
  padding: 34px 16px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-inner,
  .detail-columns,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ticket-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ticket-grid,
  .stat-grid,
  .route {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    height: auto;
  }
}

/* ------------------------------------------------------------
   Blog and article pages
   ------------------------------------------------------------ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.post-card {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.post-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.post-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--line-strong);
}

.post-cover-empty {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: var(--paper);
  background: var(--ink);
}

.post-cover-empty span {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.post-cat {
  color: var(--teal-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.post-body p {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.post-date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.article-wrap {
  max-width: 860px;
}

.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-top: 22px;
  border: 1px solid var(--line-strong);
}

.article-body {
  margin-top: 26px;
  font-size: 15.5px;
  line-height: 1.85;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  margin: 30px 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.article-body h2 { font-size: 34px; }
.article-body h3 { font-size: 27px; }
.article-body h4 { font-size: 22px; }

.article-body p {
  margin-bottom: 14px;
}

.article-body ul {
  margin: 0 0 16px 20px;
  list-style: square;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body a {
  color: var(--teal-deep);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Pagination and range filters
   ------------------------------------------------------------ */

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.page-btn,
.page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

.page-btn:hover,
.page-arrow:hover {
  color: var(--ink);
  background: var(--paper-2);
  border-color: var(--ink);
  text-decoration: none;
}

.page-btn.is-current {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.page-arrow.is-disabled {
  pointer-events: none;
  opacity: 0.35;
}

.page-gap {
  min-width: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

.btn.is-disabled {
  pointer-events: none;
  opacity: 0.4;
}

.range-filter {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.range-filter label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.range-filter label > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.range-filter input {
  width: 160px;
  min-height: 36px;
  padding: 6px 10px;
}

/* ------------------------------------------------------------
   Polished toolbars, pager, navigation, and empty states
   ------------------------------------------------------------ */

.nav-item {
  gap: 12px;
  min-height: 38px;
  padding: 10px;
  font-size: 13.5px;
}

.nav-item .icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.nav-label {
  margin: 18px 10px 6px;
}

.range-filter {
  align-items: flex-end;
  gap: 12px;
  padding: 14px 16px;
}

.range-filter label {
  gap: 5px;
}

.range-filter label > span {
  font-size: 9px;
  letter-spacing: 0.12em;
}

.range-filter input[type="date"] {
  width: 152px;
  min-height: 38px;
  padding: 6px 10px;
}

.range-filter .btn {
  min-height: 38px;
  padding: 0 16px;
}

.filter-panel {
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.filter-panel .range-filter {
  border-bottom: 0;
}

.pager {
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
}

.pager .btn {
  min-width: 116px;
  min-height: 36px;
  padding: 0 14px;
}

.pager-state {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.panel .empty {
  margin: 14px 16px;
}

@media (max-width: 640px) {
  .range-filter {
    align-items: stretch;
  }
  .range-filter label,
  .range-filter input[type="date"] {
    width: 100%;
  }
  .pager {
    justify-content: space-between;
  }
  .pager .btn {
    min-width: 0;
  }
  .pager-state {
    font-size: 8.5px;
  }
}

/* ------------------------------------------------------------
   Server-rendered charts
   ------------------------------------------------------------ */

.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.chart-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.chart-span-2 {
  grid-column: 1 / -1;
}

.chart-panel.is-compact .chart-head {
  padding: 12px 14px;
}

.chart-panel.is-compact .chart-head h3 {
  font-size: 19px;
}

.chart-panel.is-compact .chart-caption {
  margin-top: 4px;
  font-size: 11px;
}

.chart-panel.is-compact .chart-body {
  padding-top: 6px;
}

.chart-panel.is-compact .chart-label {
  font-size: 12px;
}

.chart-panel.is-compact .chart-value {
  font-size: 11px;
}

.chart-panel.is-compact .chart-legend {
  padding: 8px 14px;
  font-size: 10px;
}

.chart-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chart-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-caption {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
}

.chart-body {
  padding: 10px 0 0;
  overflow-x: hidden;
}

.chart-svg {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: currentColor;
}

.chart-label {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.chart-value {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.chart-axis {
  stroke: var(--ink);
  stroke-width: 1;
}

.chart-grid-line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.chart-zero {
  stroke: var(--ink);
  stroke-width: 1;
}

.chart-bar {
  fill: currentColor;
}

.chart-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: miter;
}

.chart-point {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 2;
}

.chart-empty {
  padding: 34px 16px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.tone-teal {
  color: var(--teal);
}

.tone-ink {
  color: var(--ink);
}

.tone-gold {
  color: var(--gold);
}

.tone-red {
  color: var(--red);
}



.chart-tooltip {
  position: fixed;
  z-index: 80;
  max-width: 280px;
  padding: 7px 9px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 100ms ease;
}

.chart-tooltip.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   Modal dialogs
   ------------------------------------------------------------ */

dialog.app-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--ink);
  box-shadow: 0 22px 60px rgba(1, 2, 2, 0.28);
}

dialog.app-dialog::backdrop {
  background: rgba(1, 2, 2, 0.58);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.dialog-body {
  max-height: calc(100vh - 160px);
  padding: 18px;
  overflow-y: auto;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

dialog.app-dialog.is-wide {
  width: min(1020px, calc(100vw - 32px));
}

.dialog-loading {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-trigger {
  display: inline-block;
  margin: 0 0 12px;
}

dialog.app-dialog .dialog-body .panel {
  max-width: none !important;
}

@media (max-width: 640px) {
  dialog.app-dialog,
  dialog.app-dialog.is-wide {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .dialog-head h2 {
    font-size: 22px;
  }
}

/* ------------------------------------------------------------
   Shared patterns: page context, list tools, empty states, forms
   ------------------------------------------------------------ */

.page-lede {
  max-width: 720px;
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.list-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}

.list-tools[hidden] {
  display: none;
}

.list-search {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 210px;
  max-width: 360px;
}

.list-search .icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.list-search input {
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0 12px 0 32px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 12px;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  max-width: 100%;
}

.filter-pills button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.filter-pills button:hover {
  color: var(--ink);
  background: var(--surface);
}

.filter-pills button.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.filter-pills button b {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.list-tools-note {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
}

.table tbody tr {
  transition: background 0.12s ease;
}

.table tbody tr:hover {
  background: var(--paper-2);
}

.table tbody tr.is-hidden {
  display: none;
}

.table .cell-title {
  font-weight: 600;
}

.table .cell-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.table .cell-actions {
  white-space: nowrap;
  text-align: right;
}

.list-no-results td {
  padding: 28px 16px !important;
  color: var(--muted);
  text-align: center;
  font-size: 12.5px;
}

.summary-strip {
  display: flex;
  align-items: center;
  gap: 10px 20px;
  flex-wrap: wrap;
  padding: 10px 16px;
  color: var(--muted);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
}

.summary-strip > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.summary-strip b {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.stat-grid.is-compact {
  gap: 10px;
  margin-bottom: 16px;
}

.stat-grid.is-compact .stat {
  padding: 11px 13px;
}

.stat-grid.is-compact .stat .value {
  margin-top: 4px;
  font-size: 25px;
}

.stat-grid.is-compact .stat .hint {
  margin-top: 2px;
  font-size: 10.5px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px 22px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  background: transparent;
}

.empty-state .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  color: var(--muted);
}

.empty-state b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.empty-state p {
  max-width: 390px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.empty-state .btn {
  margin-top: 6px;
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--line);
}

.form-section + .form-section {
  margin-top: 14px;
}

.form-section-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.form-section-head h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}

.form-section-body {
  padding: 16px;
}

.form-help {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.input-affix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-affix input {
  padding-right: 48px;
}

.input-affix .suffix {
  position: absolute;
  right: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  pointer-events: none;
}

.upload-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
}

.upload-zone-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  height: 64px;
  flex: 0 0 94px;
  overflow: hidden;
  color: var(--muted);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.upload-zone-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-zone-copy {
  flex: 1;
  min-width: 0;
}

.upload-zone-copy b {
  display: block;
  font-size: 12.5px;
}

.upload-zone-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.upload-zone input[type="file"] {
  margin-top: 8px;
  max-width: 100%;
  font-size: 11px;
}

.notice {
  padding: 11px 13px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.notice.is-warning {
  background: rgba(244, 178, 35, 0.12);
  border-left-color: var(--gold);
}

.notice.is-danger {
  background: rgba(213, 9, 7, 0.07);
  border-left-color: var(--red);
}

.notice.is-info {
  background: rgba(26, 162, 181, 0.09);
  border-left-color: var(--teal);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: var(--paper);
  background: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.occupancy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 86px;
}

.occupancy-bar {
  width: 44px;
  height: 4px;
  overflow: hidden;
  background: var(--line);
}

.occupancy-bar span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.occupancy.is-low .occupancy-bar span {
  background: var(--gold);
}

.occupancy.is-full .occupancy-bar span {
  background: var(--red);
}

.occupancy small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.timeline {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 128px 18px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-date {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.timeline-mark {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-mark::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: -14px;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child .timeline-mark::before {
  display: none;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--paper);
  background: var(--ink);
}

.timeline-dot .icon {
  width: 12px;
  height: 12px;
}

.timeline-copy b {
  display: block;
  font-size: 12.5px;
}

.timeline-copy p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.timeline-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  background: var(--surface);
  margin-bottom: 16px;
}

.detail-header h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-list div {
  padding: 10px 12px;
  background: var(--surface);
}

.metric-list span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-list b {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 900px) {
  .list-search {
    max-width: none;
  }

  .timeline-item {
    grid-template-columns: 1fr 18px minmax(0, 1fr);
  }

  .metric-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .list-tools {
    align-items: stretch;
  }

  .list-search {
    min-width: 100%;
  }

  .filter-pills {
    padding-bottom: 2px;
  }

  .stat-grid.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-zone {
    align-items: flex-start;
    flex-direction: column;
  }
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.booking-layout .detail-aside {
  position: sticky;
  top: 16px;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.summary-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.summary-lines > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-lines span {
  color: var(--muted);
  font-size: 11.5px;
}

.summary-lines b {
  max-width: 66%;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: right;
}

.summary-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}

.summary-total span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-total b {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 900px) {
  .booking-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-layout .detail-aside {
    position: static;
  }
}

.ticket-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.08em;
}

.detail-hero.is-empty {
  background: var(--ink);
}

.departure-row .seats.is-low {
  color: var(--red);
  font-weight: 700;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.request-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.request-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: request-step;
}

.request-steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 34px;
  counter-increment: request-step;
}

.request-steps li::before {
  content: counter(request-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.request-steps b {
  font-size: 12.5px;
}

.request-steps span {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .request-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.article-wrap {
  margin-right: auto;
  margin-left: auto;
}

.post-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.post-card.is-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.post-card.is-feature .post-cover {
  height: 100%;
  min-height: 300px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 0;
}

.post-card.is-feature .post-cover-empty {
  min-height: 300px;
}

.post-card.is-feature .post-body {
  justify-content: center;
  padding: 26px;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
}

@media (max-width: 720px) {
  .post-card.is-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .post-card.is-feature .post-cover {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-primary,
.contact-card {
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.contact-primary {
  color: var(--paper);
  background: var(--ink);
}

.contact-primary .eyebrow,
.contact-primary .muted,
.contact-primary p {
  color: rgba(244, 241, 232, 0.7);
}

.contact-primary h3,
.contact-card h3 {
  margin: 5px 0 7px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

.contact-primary h3 {
  color: var(--paper);
}

.contact-card p,
.contact-primary p {
  font-size: 12.5px;
  line-height: 1.55;
}

.contact-card .btn,
.contact-primary .btn {
  margin-top: 12px;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  color: var(--teal-deep);
  border: 1px solid var(--line-strong);
}

.contact-primary .contact-icon {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.contact-icon .icon {
  width: 17px;
  height: 17px;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 20px 22px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------
   Media uploader and landing page media library
   ------------------------------------------------------------ */

.asset-uploader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-zone {
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: var(--teal);
  background: rgba(26, 162, 181, 0.06);
}

.upload-zone .icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.upload-zone input[type="file"] {
  color: var(--muted);
}

.upload-progress {
  height: 4px;
  overflow: hidden;
  background: var(--line);
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 150ms ease;
}

.upload-error {
  color: var(--red);
  font-size: 11.5px;
  line-height: 1.45;
}

.upload-placeholder {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: center;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.media-slot {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
}

.media-slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.media-slot-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-slot-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.media-slot-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.media-slot-clear {
  padding: 0 14px 14px;
}

.media-slot .upload-zone {
  padding: 10px;
}

.media-slot .upload-zone-preview {
  width: 88px;
  height: 62px;
  flex-basis: 88px;
}

@media (max-width: 900px) {
  .media-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Related content and package cross-links */
.related-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.related-package {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}

.related-package:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.related-package-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  overflow: hidden;
  background: var(--ink);
}

.related-package-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-package-media.is-empty span {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.related-package-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px 15px;
}

.related-package-copy .tag {
  align-self: flex-start;
}

.related-package-copy h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.related-package-copy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.text-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-wrap .related-packages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .related-packages,
  .article-wrap .related-packages {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Service cards on the company landing page */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 18px 18px 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease;
}

.service-card:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.service-no {
  color: var(--teal-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-icon {
  display: inline-flex;
  color: var(--teal-deep);
}

.service-icon .icon {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.service-card p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.service-card .text-link {
  margin-top: auto;
  padding-top: 16px;
}

@media (max-width: 1050px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    min-height: 0;
  }
}

/* Table cover thumbnails */
.cell-media {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cell-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 36px;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--paper);
}

.cell-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell-thumb .icon {
  width: 15px;
  height: 15px;
  opacity: 0.65;
}

.cell-media .cell-title {
  display: inline-block;
}

@media (max-width: 700px) {
  .cell-thumb {
    flex-basis: 38px;
    width: 38px;
    height: 30px;
  }
}

/* Sidebar identity and icon-only actions */
.sidebar-user .avatar.is-sidebar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  color: var(--ink);
  background: var(--teal);
  font-size: 18px;
}

.sidebar-user .grow {
  min-width: 0;
}

.sidebar-user form {
  flex: 0 0 auto;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
}

.btn-icon .icon {
  width: 16px;
  height: 16px;
}

.sidebar-user .btn-icon {
  color: var(--paper);
  background: transparent;
  border-color: rgba(244, 241, 232, 0.45);
}

.sidebar-user .btn-icon:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

/* ------------------------------------------------------------
   Mobile public menu
   ------------------------------------------------------------ */

.site-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.site-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu summary .icon {
  width: 15px;
  height: 15px;
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  width: min(280px, calc(100vw - 36px));
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(1, 2, 2, 0.16);
}

.site-menu-panel a {
  padding: 10px 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.site-menu-panel a:hover,
.site-menu-panel a.is-active {
  color: var(--red);
  text-decoration: none;
}

.site-menu-panel .btn {
  justify-content: center;
  margin-top: 7px;
  border-bottom: 0;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .site-menu {
    display: block;
  }

  .site-header-inner {
    min-height: 60px;
    gap: 12px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy small {
    letter-spacing: 0.1em;
  }
}

/* ------------------------------------------------------------
   Mobile staff drawer
   ------------------------------------------------------------ */

.menu-toggle,
.sidebar-close,
.sidebar-backdrop {
  display: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(84vw, 300px);
    height: 100dvh;
    padding-right: 16px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 12px 0 30px rgba(1, 2, 2, 0.28);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    position: absolute;
    top: 14px;
    right: 12px;
    z-index: 1;
    display: inline-flex;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .sidebar .brand {
    padding-right: 44px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(1, 2, 2, 0.58);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 60px;
    padding: 0 16px;
    gap: 12px;
  }

  .topbar-left {
    flex: 1;
    min-width: 0;
  }

  .topbar h1 {
    min-width: 0;
    overflow: hidden;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-site {
    flex: 0 0 auto;
  }

  .content {
    padding: 18px 14px 32px;
  }
}

@media (max-width: 430px) {
  .topbar h1 {
    font-size: 17px;
  }

  .topbar-site {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 9px;
  }
}
