:root {
  --background: #e8f7fc;
  --background-deep: #b7dff1;
  --printer: #f8fbfd;
  --paper: #fffdf6;
  --ink: #062b49;
  --muted-ink: #557184;
  --airport-yellow: #009bd3;
  --blue-grey: #006aa6;
  --ticket-height: 720px;
  --paper-start: clamp(136px, 41vw, 260px);
  --paper-drift: 0px;
  --paper-feed-y: calc(var(--ticket-height) * -1);
  --paper-tilt: 0deg;
  --printer-shift-x: 0px;
  --printer-shift-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  min-width: 320px;
  overflow-x: hidden;
  overscroll-behavior: none;
  background-color: #9b8265;
  background-image: url("./assets/wood-texture.webp");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior: none;
  position: relative;
  isolation: isolate;
  color: var(--ink);
  font-family:
    "Courier New",
    "Nimbus Mono PS",
    "Liberation Mono",
    ui-monospace,
    monospace;
  background: transparent;
}

body.has-modal {
  overflow: hidden;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.36) 0 120px, rgba(255, 255, 255, 0.08) 380px, transparent 660px),
    radial-gradient(circle at 50% 72%, rgba(37, 22, 12, 0.24), transparent 430px),
    linear-gradient(90deg, rgba(35, 22, 12, 0.18), transparent 18%, transparent 82%, rgba(35, 22, 12, 0.18)),
    linear-gradient(180deg, rgba(255, 249, 238, 0.18), rgba(73, 43, 22, 0.2)),
    url("./assets/wood-texture.webp") center top / cover no-repeat,
    #9b8265;
}

button {
  font: inherit;
}

.noscript {
  margin: 1rem;
  padding: 1rem;
  border: 1px solid rgba(38, 39, 40, 0.2);
  background: var(--paper);
  text-align: center;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(34px, env(safe-area-inset-bottom));
}

.print-experience {
  display: grid;
  place-items: center;
  gap: 10px;
}

.wood-burn {
  margin: 2px 0 0;
  color: rgba(54, 29, 13, 0.74);
  font-size: clamp(1.05rem, 5vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 -1px 1px rgba(31, 14, 5, 0.54),
    0 1px 0 rgba(255, 243, 219, 0.18),
    0 0 8px rgba(28, 13, 5, 0.22);
  mix-blend-mode: multiply;
  filter: blur(0.08px);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.64);
  color: rgba(6, 43, 73, 0.82);
  font-size: 0.72rem;
  line-height: 1;
  box-shadow:
    0 8px 18px rgba(38, 22, 10, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--airport-yellow);
  box-shadow: 0 0 0 4px rgba(233, 189, 69, 0.18);
}

.page-shell[data-state="printing"] .status-dot {
  animation: statusPulse 0.65s steps(2, end) infinite;
}

.page-shell[data-state="idle"] .status-dot {
  background: #68a9c7;
  box-shadow: 0 0 0 4px rgba(0, 155, 211, 0.16);
}

.printer-scene {
  position: relative;
  width: clamp(288px, 88vw, 560px);
  height: calc(var(--paper-start) + var(--ticket-height) + 20px);
  margin-inline: auto;
}

.photo-scene {
  --model-width: clamp(450px, 116vw, 560px);
  --model-height: calc(var(--model-width) * 1.028);
  --photo-paper-start: calc(var(--model-height) * 0.512);
  width: min(100%, 560px);
  height: calc(var(--photo-paper-start) + var(--ticket-height) + 38px);
  overflow: visible;
}

.photo-scene::before,
.photo-scene::after {
  position: absolute;
  left: 50%;
  pointer-events: none;
  content: "";
  transform: translateX(-50%) translate3d(var(--printer-shift-x), var(--printer-shift-y), 0);
}

.photo-scene::before {
  z-index: 3;
  top: 0;
  width: var(--model-width);
  height: var(--model-height);
  background: url("./assets/printer-empty.webp") center top / 100% 100% no-repeat;
  clip-path: inset(46.8% 10% 45% 10%);
}

.photo-scene::after {
  z-index: 4;
  top: calc(var(--photo-paper-start) - (var(--model-width) * 0.022));
  width: calc(var(--model-width) * 0.64);
  height: calc(var(--model-width) * 0.034);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(252, 255, 255, 0.42) 0%, rgba(72, 98, 120, 0.28) 42%, rgba(7, 20, 32, 0.42) 78%, rgba(7, 17, 26, 0.34) 100%),
    linear-gradient(90deg, transparent 0%, rgba(5, 28, 45, 0.18) 16%, rgba(5, 28, 45, 0.34) 50%, rgba(5, 28, 45, 0.18) 84%, transparent 100%);
  box-shadow: 0 9px 13px rgba(8, 18, 28, 0.22);
  filter: blur(0.45px);
}

.photo-frame {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: var(--model-width);
  aspect-ratio: 1500 / 1542;
  overflow: visible;
  border-radius: 6px;
  box-shadow: none;
  transform: translateX(-50%) translate3d(var(--printer-shift-x), var(--printer-shift-y), 0);
}

.printer-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  filter:
    saturate(0.98)
    contrast(1.04)
    brightness(1.02)
    drop-shadow(0 36px 32px rgba(35, 20, 9, 0.34))
    drop-shadow(0 9px 8px rgba(18, 11, 7, 0.24));
}

.photo-paper-base {
  display: none;
}

.photo-scene .paper-mask {
  z-index: 2;
  top: calc(var(--photo-paper-start) - (var(--model-width) * 0.02));
  width: calc(var(--model-width) * 0.47);
  filter:
    drop-shadow(0 9px 9px rgba(34, 19, 8, 0.18))
    drop-shadow(0 2px 2px rgba(20, 12, 7, 0.16))
    drop-shadow(0 -2px 2px rgba(255, 255, 255, 0.48));
}

.page-shell[data-state="done"] .photo-scene .paper-mask {
  filter:
    drop-shadow(0 22px 18px rgba(34, 19, 8, 0.35))
    drop-shadow(0 5px 4px rgba(20, 12, 7, 0.26))
    drop-shadow(0 -2px 2px rgba(255, 255, 255, 0.48));
}

.photo-scene .paper-mask::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 104%;
  height: calc(var(--model-width) * 0.058);
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 18, 28, 0.58) 0%, rgba(50, 80, 105, 0.32) 42%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-50%);
}

.print-trigger {
  position: absolute;
  z-index: 7;
  top: calc(var(--model-width) * 0.23);
  right: calc(50% - (var(--model-width) * 0.32));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: clamp(86px, 25vw, 112px);
  min-height: clamp(34px, 9vw, 42px);
  border: 1px solid rgba(7, 34, 55, 0.22);
  border-radius: 7px;
  padding: 8px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(214, 229, 238, 0.86)),
    #eaf3f8;
  color: rgba(6, 43, 73, 0.88);
  cursor: pointer;
  font-size: clamp(0.62rem, 2.2vw, 0.76rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow:
    0 10px 15px rgba(16, 36, 52, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -2px 4px rgba(42, 72, 94, 0.12);
  transform: translate3d(var(--printer-shift-x), var(--printer-shift-y), 0);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    opacity 180ms ease;
}

.print-trigger::after {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--airport-yellow);
  box-shadow:
    0 0 0 3px rgba(0, 155, 211, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
  content: "";
}

.print-trigger svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.print-trigger:hover {
  transform: translate3d(var(--printer-shift-x), calc(var(--printer-shift-y) - 1px), 0);
  box-shadow:
    0 13px 18px rgba(16, 36, 52, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 4px rgba(42, 72, 94, 0.12);
}

.print-trigger:active {
  transform: translate3d(var(--printer-shift-x), calc(var(--printer-shift-y) + 1px), 0);
}

.print-trigger:focus-visible {
  outline: 3px solid rgba(0, 155, 211, 0.42);
  outline-offset: 3px;
}

.print-trigger:disabled {
  cursor: default;
  opacity: 0.72;
}

.page-shell[data-state="processing"] .print-trigger,
.page-shell[data-state="printing"] .print-trigger {
  pointer-events: none;
}

.page-shell[data-state="printing"] .print-trigger::after {
  animation: statusPulse 0.65s steps(2, end) infinite;
}

.printer-shadow {
  position: absolute;
  z-index: 0;
  top: clamp(232px, 54vw, 335px);
  left: 9%;
  width: 82%;
  height: 58px;
  border-radius: 999px;
  background: rgba(52, 47, 50, 0.24);
  filter: blur(18px);
  transform: translateY(12px);
}

.printer {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  overflow: visible;
  transform: translate3d(var(--printer-shift-x), var(--printer-shift-y), 0);
}

.paper-mask {
  position: absolute;
  z-index: 2;
  top: var(--paper-start);
  left: 50%;
  width: min(68%, 360px);
  height: var(--ticket-height);
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 18px rgba(63, 55, 57, 0.17));
}

.photo-scene .ticket {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transform: translateX(var(--paper-drift)) translateY(var(--paper-feed-y)) rotate(var(--paper-tilt));
  will-change: transform;
}

.photo-scene .ticket-image {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 20px 18px rgba(31, 18, 8, 0.28))
    drop-shadow(0 5px 4px rgba(15, 9, 5, 0.18))
    drop-shadow(0 2px 1px rgba(255, 255, 255, 0.55));
}

.ticket-map-link {
  position: absolute;
  z-index: 4;
  display: block;
  border-radius: 3px;
  background: transparent;
  -webkit-tap-highlight-color: rgba(0, 155, 211, 0.16);
}

.ticket-map-link:focus-visible {
  outline: 2px solid rgba(0, 155, 211, 0.56);
  outline-offset: 2px;
}

.ticket-map-link-asc {
  top: 28.8%;
  left: 9.5%;
  width: 36%;
  height: 8.3%;
}

.ticket-map-link-ascochinga {
  top: 45.8%;
  left: 9.5%;
  width: 64%;
  height: 7.3%;
}

.ticket-map-link-hotel {
  top: 61.2%;
  left: 9.5%;
  width: 79%;
  height: 4.6%;
}

.photo-scene .ticket::before,
.photo-scene .ticket-noise {
  display: none;
}

.photo-scene .ticket::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 13, 8, 0.1), rgba(255, 255, 255, 0) 11%, rgba(255, 255, 255, 0) 89%, rgba(20, 13, 8, 0.1)),
    linear-gradient(180deg, rgba(5, 15, 24, 0.12) 0, rgba(255, 255, 255, 0) 10%);
  mix-blend-mode: multiply;
}

.photo-scene .boarding-row,
.photo-scene .ticket-footer {
  font-size: clamp(0.46rem, 1.45vw, 0.6rem);
}

.photo-scene .eyebrow {
  margin-top: 8px;
  font-size: clamp(0.48rem, 1.48vw, 0.62rem);
}

.photo-scene .ticket h1 {
  margin-bottom: 8px;
  font-size: clamp(0.8rem, 2.5vw, 1.05rem);
}

.photo-scene .flight-grid {
  gap: 4px;
}

.photo-scene .flight-grid div {
  grid-template-columns: minmax(60px, 0.78fr) minmax(0, 1.22fr);
  gap: 7px;
}

.photo-scene .flight-grid dt {
  font-size: clamp(0.46rem, 1.42vw, 0.6rem);
}

.photo-scene .flight-grid dd {
  font-size: clamp(0.48rem, 1.48vw, 0.62rem);
}

.photo-scene .date-line {
  margin: 4px 0 9px;
  padding: 7px 8px;
  font-size: clamp(0.74rem, 2.3vw, 0.96rem);
}

.photo-scene .main-line {
  margin-bottom: 8px;
  font-size: clamp(0.68rem, 2.05vw, 0.86rem);
}

.photo-scene .venue-line {
  font-size: clamp(0.56rem, 1.7vw, 0.72rem);
}

.photo-scene .city-line,
.photo-scene .message-block {
  font-size: clamp(0.5rem, 1.52vw, 0.64rem);
}

.photo-scene .ticket-rule {
  margin-bottom: 8px;
}

.photo-scene .ticket-rule.dotted {
  margin-block: 8px;
}

.photo-scene .city-line {
  margin-bottom: 10px;
}

.photo-scene .message-block {
  gap: 7px;
  margin-bottom: 10px;
  line-height: 1.32;
}

.photo-scene .code-row {
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.photo-scene .barcode {
  height: 36px;
}

.photo-scene .qr {
  width: 42px;
  height: 42px;
}

.photo-scene .ticket-footer {
  margin-top: 7px;
  padding-top: 5px;
}

.ticket {
  position: relative;
  width: 100%;
  min-height: 680px;
  padding: 42px 20px 18px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 96%, rgba(156, 157, 150, 0.18) 96% 97%, transparent 97%),
    radial-gradient(circle at 18% 72%, rgba(116, 130, 144, 0.08) 0 18px, transparent 22px),
    radial-gradient(circle at 88% 65%, rgba(38, 39, 40, 0.06) 0 24px, transparent 30px),
    linear-gradient(180deg, #fffef8 0%, var(--paper) 54%, #f3f0e7 100%);
  box-shadow:
    inset 0 0 0 1px rgba(38, 39, 40, 0.08),
    inset 10px 0 16px rgba(255, 255, 255, 0.7),
    inset -7px 0 12px rgba(99, 99, 94, 0.08);
  transform: translateX(var(--paper-drift)) rotate(var(--paper-tilt));
  transform-origin: top center;
}

.ticket::before,
.ticket::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 13px;
  content: "";
  background:
    radial-gradient(8px 8px at 8px 0, transparent 7px, var(--paper) 7.5px) 0 0 / 16px 13px repeat-x;
}

.ticket::before {
  top: 0;
  transform: translateY(-8px);
}

.ticket::after {
  bottom: 0;
  transform: translateY(8px) rotate(180deg);
}

.ticket-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(31, 31, 31, 0.03) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(31, 31, 31, 0.018) 0 1px, transparent 1px 7px);
  mix-blend-mode: multiply;
  opacity: 0.55;
}

.ticket-rule {
  position: relative;
  height: 1px;
  margin: 0 0 14px;
  background: repeating-linear-gradient(
    90deg,
    rgba(38, 39, 40, 0.85) 0 8px,
    transparent 8px 13px
  );
}

.ticket-rule.dotted {
  margin-block: 16px;
  opacity: 0.6;
}

.boarding-row,
.ticket-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted-ink);
  font-size: 0.68rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  position: relative;
  margin: 15px 0 8px;
  color: var(--blue-grey);
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.ticket h1,
.date-line,
.main-line,
.venue-line,
.city-line,
.message-block,
.flight-grid,
.code-row,
.ticket-footer {
  position: relative;
}

.ticket h1 {
  margin: 0 0 15px;
  font-size: 1.25rem;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
}

.flight-grid {
  display: grid;
  gap: 7px;
  margin: 0;
}

.flight-grid div {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: baseline;
}

.flight-grid dt {
  color: var(--muted-ink);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.flight-grid dd {
  min-width: 0;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.date-line {
  margin: 8px 0 18px;
  padding: 10px 8px;
  border-block: 2px solid rgba(38, 39, 40, 0.72);
  background:
    linear-gradient(90deg, rgba(233, 189, 69, 0.16), transparent 44%, rgba(116, 130, 144, 0.12));
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.main-line {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  text-transform: uppercase;
}

.venue-line {
  margin: 0 0 4px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.city-line {
  margin: 0 0 18px;
  color: var(--muted-ink);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.message-block {
  display: grid;
  gap: 13px;
  margin: 0 0 18px;
  font-family:
    "Courier New",
    ui-monospace,
    monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.message-block p {
  margin: 0;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 13px;
  align-items: end;
  margin-top: 2px;
}

.barcode {
  height: 54px;
  background:
    linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 8px, transparent 8px 13px, var(--ink) 13px 18px, transparent 18px 21px, var(--ink) 21px 22px, transparent 22px 25px, var(--ink) 25px 29px, transparent 29px 33px) 0 0 / 34px 100% repeat-x;
  opacity: 0.78;
}

.qr {
  display: grid;
  width: 58px;
  height: 58px;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(38, 39, 40, 0.45);
}

.qr span {
  background: transparent;
}

.qr .is-filled {
  background: var(--ink);
  opacity: 0.78;
}

.ticket-footer {
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px dashed rgba(38, 39, 40, 0.5);
}

.actions {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 10px 0 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.actions.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.primary-actions {
  display: grid;
  gap: 10px;
}

.action-button,
.utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(0, 106, 166, 0.35);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.18;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.action-button svg,
.utility-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.action-button.primary {
  background: var(--airport-yellow);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 106, 166, 0.18);
  font-weight: 700;
}

.action-button.secondary,
.utility-button {
  background: rgba(255, 255, 255, 0.68);
}

.utility-button {
  min-height: 40px;
  font-size: 0.72rem;
}

.utility-button.is-active {
  border-color: rgba(0, 106, 166, 0.58);
  background: rgba(0, 155, 211, 0.13);
}

@media (hover: hover) {
  .action-button:hover,
  .utility-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 106, 166, 0.14);
  }
}

.action-button:active,
.utility-button:active {
  transform: translateY(1px);
}

.action-button:focus-visible,
.utility-button:focus-visible {
  outline: 3px solid rgba(0, 155, 211, 0.42);
  outline-offset: 3px;
}

.feedback {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(38, 39, 40, 0.78);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.estimate-summary {
  min-height: 19px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 2px rgba(33, 20, 10, 0.36);
}

.estimate-modal[hidden] {
  display: none;
}

.estimate-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px 14px max(18px, env(safe-area-inset-bottom));
}

.estimate-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 320px),
    rgba(22, 15, 10, 0.58);
  backdrop-filter: blur(5px);
}

.estimate-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 251, 0.94)),
    var(--paper);
  box-shadow:
    0 30px 70px rgba(25, 14, 8, 0.36),
    0 8px 18px rgba(25, 14, 8, 0.22);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(6, 43, 73, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: pointer;
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.estimate-event {
  padding: 26px 54px 18px 22px;
  border-bottom: 1px solid rgba(6, 43, 73, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 155, 211, 0.12), transparent 54%),
    rgba(255, 255, 255, 0.56);
}

.estimate-kicker,
.estimate-event h2,
.estimate-event p {
  margin: 0;
}

.estimate-kicker {
  color: var(--blue-grey);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.estimate-event h2 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.12;
}

.estimate-event p {
  margin-top: 7px;
  color: rgba(6, 43, 73, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.estimate-form {
  display: grid;
  gap: 13px;
  padding: 18px 18px 20px;
}

.estimate-form label {
  display: grid;
  gap: 6px;
  color: rgba(6, 43, 73, 0.8);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.estimate-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(6, 43, 73, 0.22);
  border-radius: 7px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  text-transform: none;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(32, 20, 12, 0.08);
}

.estimate-form input:focus {
  border-color: rgba(0, 106, 166, 0.65);
  box-shadow:
    0 0 0 3px rgba(0, 155, 211, 0.16),
    inset 0 1px 3px rgba(32, 20, 12, 0.08);
}

.estimate-hp {
  position: absolute;
  left: -9999px;
}

.submit-estimate {
  margin-top: 2px;
}

.estimate-form.is-submitting .submit-estimate {
  opacity: 0.72;
  pointer-events: none;
}

.estimate-status {
  min-height: 19px;
  margin: 0;
  color: rgba(6, 43, 73, 0.76);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}

@keyframes statusPulse {
  50% {
    opacity: 0.35;
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding-top: 28px;
  }

  .status-line {
    font-size: 0.78rem;
  }

  .ticket {
    padding: 46px 24px 20px;
  }

  .ticket h1 {
    font-size: 1.4rem;
  }

  .date-line {
    font-size: 1.24rem;
  }

  .main-line {
    font-size: 1.08rem;
  }

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

@media (max-width: 380px) {
  .page-shell {
    padding-inline: 10px;
  }

  .ticket {
    padding: 40px 15px 16px;
  }

  .flight-grid div {
    grid-template-columns: minmax(62px, 0.75fr) minmax(0, 1.25fr);
    gap: 7px;
  }

  .ticket h1 {
    font-size: 1.06rem;
  }

  .date-line {
    font-size: 1rem;
  }

  .main-line {
    font-size: 0.92rem;
  }

  .message-block {
    font-size: 0.76rem;
  }

  .utility-actions {
    grid-template-columns: 1fr;
  }
}

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