:root {
  --green: #3aaa35;
  --green-dark: #167347;
  --ink: #111111;
  --muted: #6B7280;
  --line: #dfe5e2;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #eef7fa;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  width: 174px;
  height: auto;
  object-fit: contain;
}

.brand-link {
  display: inline-flex;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-logo.small {
  width: 132px;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, 540px) minmax(0, 1fr);
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

.workspace,
.preview-panel,
.login-panel,
.ticket-document {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.workspace,
.preview-panel {
  padding: 24px;
}

.intro h1,
.login-panel h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

.intro p,
.muted {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.stack-form,
.generator {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 360px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

button,
.button,
.file-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.ghost-button {
  background: #fff;
  color: var(--green-dark);
}

.file-input {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--green-dark);
}

.file-input input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-actions,
.preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-actions {
  margin-bottom: 16px;
}

.preview-actions h2 {
  margin: 0;
  font-size: 20px;
}

.ticket-frame {
  width: 100%;
  min-height: 820px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f2b8ad;
  border-radius: 6px;
  color: #8a1f11;
  background: #fff1ef;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 430px);
}

.login-panel {
  padding: 34px;
}

.login-panel .brand-logo {
  margin-bottom: 26px;
}

.ticket-body {
  background: #eef2f0;
  padding: 24px;
}

.ticket-document {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.ticket-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: 32px 36px 56px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 251, 0.9)),
    radial-gradient(circle at 50% 20%, rgba(58, 170, 53, 0.11), transparent 38%);
}

.ticket-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-logo {
  width: 286px;
  max-width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: #050505;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.ticket-hero h1 {
  margin: 30px 0 4px;
  font-size: 48px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ticket-hero p {
  margin: 0;
  color: var(--green);
  font-size: 27px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-flight-mark {
  width: 150px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--green);
}

.identity-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: -36px 28px 18px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid rgba(223, 229, 226, 0.9);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.identity-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-width: 0;
  min-height: 70px;
  padding: 0 14px;
  border-right: 1px solid rgba(22, 115, 71, 0.35);
}

.identity-item:last-child {
  border-right: 0;
}

.identity-item p,
.identity-item small {
  margin: 0;
}

.identity-item p {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.identity-item strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.identity-item small {
  display: block;
  margin-top: 4px;
  color: #111;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.line-icon {
  grid-row: span 3;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
}

.airline-brand strong {
  color: #0759a5;
  font-size: 19px;
  font-style: italic;
}

.ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--ink);
}

.ticket-header h1 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.15;
  text-align: right;
}

.eyebrow {
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  text-align: right;
}

.info-grid,
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.info-grid div,
.summary-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-grid span,
.summary-grid span,
.airport span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.info-grid strong,
.summary-grid strong {
  font-size: 16px;
  line-height: 1.25;
}

.segments {
  display: grid;
  gap: 18px;
  padding: 0 28px;
}

.segment-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.05);
}

.ticket-segment {
  padding: 16px 22px 22px;
  border-radius: 16px;
}

.segment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  border-bottom: 2px solid #111;
}

.segment-head > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.segment-head h2,
.practical h2 {
  margin: 0 16px 0 0;
  padding: 7px 18px 8px;
  border-radius: 8px;
  background: #050505;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.route {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.9fr) minmax(0, 1.2fr) 170px;
  align-items: center;
  gap: 20px;
}

.airport {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
}

.airport strong {
  max-width: 100%;
  font-size: 22px;
  line-height: 1.12;
  text-transform: uppercase;
}

.airport p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.destination-icon {
  width: 122px;
  height: 122px;
  color: var(--ink);
}

.destination-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flight-core {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.flight-core > strong {
  font-size: 28px;
}

.flight-core > span {
  display: inline-flex;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.route-line {
  width: 100%;
  height: 24px;
  background: transparent;
  color: var(--green);
  position: relative;
  display: grid;
  place-items: center;
  font-size: 36px;
}

.route-line::before,
.route-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  border-top: 2px dashed var(--green);
}

.route-line::before {
  left: 0;
}

.route-line::after {
  right: 0;
}

.segment-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
  margin: 10px 188px 0 150px;
}

.segment-details div {
  padding: 0;
  border-radius: 6px;
  background: transparent;
  text-align: center;
}

.segment-details dt {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.segment-details dd {
  margin: 5px 0 0;
  color: #000;
  font-size: 25px;
  font-weight: 700;
}

.segment-side {
  display: grid;
  align-self: stretch;
  align-content: space-around;
  gap: 24px;
  padding-left: 24px;
  border-left: 2px solid rgba(22, 115, 71, 0.5);
}

.segment-side span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.segment-side strong {
  font-size: 22px;
}

.journey-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(230px, 1.35fr) minmax(140px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 220px;
  padding: 28px 28px 24px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #fff;
}

.journey-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  opacity: 0.045;
  pointer-events: none;
}

.journey-bg svg {
  width: 88%;
  max-width: 760px;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-point {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.journey-point strong {
  color: var(--ink);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 0.95;
}

.journey-point span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.journey-point small {
  color: var(--muted);
  font-size: 13px;
}

.journey-line {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  color: var(--green);
}

.journey-line span {
  height: 1px;
  background: var(--green);
}

.journey-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 16px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.journey-meta div {
  padding: 14px 14px 0;
  border-right: 1px solid rgba(58, 170, 53, 0.26);
}

.journey-meta div:last-child {
  border-right: 0;
}

.journey-meta dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.journey-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.journey-meta strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.summary-grid {
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 28px 24px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.06);
}

.summary-grid div {
  border: 0;
  border-right: 1px solid rgba(22, 115, 71, 0.35);
  border-radius: 0;
  padding: 8px 18px;
}

.summary-grid div:last-child {
  border-right: 0;
}

.summary-grid small {
  display: block;
  margin-top: 4px;
}

.practical {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 28px 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.06);
}

.practical h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.practical h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
}

.practical p {
  margin: 0;
  color: var(--muted);
  color: #111;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.practical div {
  padding: 0 16px;
  border-right: 1px solid rgba(22, 115, 71, 0.32);
}

.practical div:last-child {
  border-right: 0;
}

.ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 0;
  padding: 24px 80px;
  border-top: 0;
  background: #050505;
  color: #fff;
  font-size: 21px;
  font-style: italic;
}

.footer-mark {
  display: inline-block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: #65cc45;
}

.ticket-footer .brand-logo {
  padding: 0;
  background: #050505;
}

.empty-state p {
  color: var(--muted);
}

.td-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.25fr) minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
  width: 100%;
  margin-top: 28px;
  padding: 26px clamp(22px, 6vw, 90px);
  color: #0b5f75;
  background: #eaf6fa;
  border-top: 1px solid rgba(11, 95, 117, 0.08);
}

.td-footer__copyright {
  display: grid;
  gap: 6px;
  justify-self: end;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.td-footer__brand {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}

.td-footer__brand > span {
  height: 1px;
  background: rgba(11, 95, 117, 0.36);
}

.td-footer__brand a {
  display: inline-flex;
}

.td-footer__brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.td-footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.td-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid rgba(11, 95, 117, 0.16);
  border-radius: 6px;
  color: #0b5f75;
  background: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.td-footer__socials a:hover {
  border-color: rgba(11, 95, 117, 0.3);
  background: #fff;
}

.td-footer__socials svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.td-footer__socials .td-footer__hashtag {
  width: auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .ticket-frame {
    min-height: 680px;
  }
}

@media (max-width: 900px) {
  .ticket-body {
    padding: 18px;
  }

  .ticket-hero {
    min-height: 270px;
    padding: 26px 28px 50px;
  }

  .ticket-hero h1 {
    font-size: clamp(34px, 6vw, 44px);
  }

  .ticket-hero p {
    font-size: clamp(20px, 3.8vw, 25px);
  }

  .identity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -30px 18px 18px;
    padding: 16px;
  }

  .identity-item {
    border-right: 0;
    border-bottom: 1px solid rgba(22, 115, 71, 0.22);
    padding: 12px;
  }

  .identity-item:nth-last-child(-n + 1) {
    border-bottom: 0;
  }

  .airline-brand {
    grid-column: 1 / -1;
  }

  .segments {
    padding: 0 18px;
  }

  .journey-card {
    grid-template-columns: minmax(120px, 1fr) minmax(180px, 1fr) minmax(120px, 1fr);
    gap: 12px;
    padding: 24px 18px;
  }

  .journey-point strong {
    font-size: clamp(46px, 8vw, 60px);
  }

  .journey-point span,
  .journey-point small {
    overflow-wrap: anywhere;
  }

  .journey-meta,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-meta div,
  .summary-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(58, 170, 53, 0.22);
  }

  .journey-meta div:nth-last-child(-n + 1),
  .summary-grid div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .practical {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practical div {
    border-right: 0;
    border-bottom: 1px solid rgba(22, 115, 71, 0.25);
    padding: 12px;
  }

  .practical div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .td-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    padding: 26px 18px;
    text-align: center;
  }

  .td-footer__copyright,
  .td-footer__socials {
    justify-self: center;
  }

  .td-footer__brand {
    width: min(100%, 360px);
    gap: 18px;
  }

  .td-footer__socials {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .ticket-body {
    padding: 0;
  }

  .ticket-document,
  .workspace,
  .preview-panel {
    border-radius: 0;
    padding: 18px;
  }

  .ticket-header,
  .ticket-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-header h1,
  .eyebrow {
    text-align: left;
  }

  .info-grid,
  .identity-strip,
  .summary-grid,
  .segment-details,
  .practical,
  .route {
    grid-template-columns: 1fr;
  }

  .ticket-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px 18px 50px;
  }

  .ticket-hero h1 {
    font-size: 36px;
  }

  .ticket-hero p {
    font-size: 20px;
  }

  .identity-strip {
    margin: -30px 12px 16px;
    padding: 12px;
  }

  .identity-item,
  .summary-grid div,
  .practical div {
    border-right: 0;
    border-bottom: 1px solid rgba(22, 115, 71, 0.25);
    padding: 12px;
  }

  .identity-item:last-child,
  .summary-grid div:last-child,
  .practical div:last-child {
    border-bottom: 0;
  }

  .segments,
  .summary-grid,
  .practical {
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .segment-details {
    margin: 16px 0 0;
    gap: 14px;
  }

  .journey-card {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 24px 18px;
  }

  .journey-point strong {
    font-size: 56px;
  }

  .journey-line {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    min-height: 78px;
  }

  .journey-line span {
    width: 1px;
    height: 24px;
  }

  .journey-meta {
    grid-template-columns: 1fr;
  }

  .journey-meta div {
    border-right: 0;
    border-bottom: 1px solid rgba(58, 170, 53, 0.22);
    padding: 12px 0;
  }

  .journey-meta div:last-child {
    border-bottom: 0;
  }

  .segment-side {
    border-left: 0;
    border-top: 1px solid rgba(22, 115, 71, 0.35);
    padding: 16px 0 0;
    grid-template-columns: 1fr 1fr;
  }

  .ticket-footer {
    padding: 22px;
  }

  .route-line {
    width: 100%;
    height: 44px;
    margin: 0 auto;
  }

}

@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;
  }

  body,
  .ticket-body {
    background: #fff;
    padding: 0;
  }

  .ticket-document {
    width: 100%;
    max-width: 100%;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    overflow: visible;
  }

  .ticket-hero {
    min-height: 150px;
    padding: 14px 24px 28px;
  }

  .hero-logo {
    width: 150px;
    padding: 6px 9px;
    border-radius: 7px;
    box-shadow: none;
  }

  .ticket-hero h1 {
    margin-top: 14px;
    font-size: 30px;
  }

  .ticket-hero p {
    font-size: 17px;
  }

  .hero-flight-mark {
    width: 100px;
    margin-top: 9px;
  }

  .identity-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: -18px 16px 10px;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: none;
  }

  .identity-item {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 46px;
    column-gap: 7px;
    padding: 0 8px;
  }

  .identity-item p {
    font-size: 8.5px;
  }

  .identity-item strong {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.15;
  }

  .identity-item small {
    margin-top: 2px;
    font-size: 9.5px;
    line-height: 1.15;
  }

  .line-icon {
    font-size: 19px;
  }

  .airline-brand strong {
    font-size: 12px;
  }

  .segments {
    gap: 8px;
    padding: 0 16px;
  }

  .ticket-segment {
    padding: 9px 12px 11px;
    border-radius: 10px;
  }

  .segment-head {
    margin-bottom: 7px;
    border-bottom-width: 1px;
  }

  .segment-head h2 {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 17px;
  }

  .segment-head > span {
    font-size: 10px;
  }

  .journey-card {
    min-height: 110px;
    padding: 13px 16px;
    border-radius: 9px;
  }

  .journey-bg {
    opacity: 0.035;
  }

  .journey-point strong {
    font-size: 40px;
  }

  .journey-point span {
    font-size: 11px;
  }

  .journey-point small {
    font-size: 9px;
  }

  .journey-meta {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 8px;
  }

  .journey-meta div {
    padding: 8px 9px 0;
    border-right: 1px solid rgba(58, 170, 53, 0.26);
    border-bottom: 0;
  }

  .journey-meta dt {
    margin-bottom: 4px;
    font-size: 8.5px;
  }

  .journey-meta dd {
    font-size: 10px;
  }

  .journey-meta strong {
    font-size: 16px;
  }

  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 9px 16px 10px;
    padding: 9px 12px;
    border-radius: 10px;
    box-shadow: none;
  }

  .summary-grid div {
    padding: 5px 9px;
    border-right: 1px solid rgba(22, 115, 71, 0.35);
    border-bottom: 0;
  }

  .summary-grid span {
    font-size: 8.5px;
  }

  .summary-grid strong {
    font-size: 11px;
  }

  .summary-grid small {
    font-size: 9px;
  }

  .practical {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 16px 10px;
    padding: 9px 12px;
    border-radius: 10px;
    box-shadow: none;
  }

  .practical div {
    padding: 0 9px;
    border-right: 1px solid rgba(22, 115, 71, 0.32);
    border-bottom: 0;
  }

  .practical h3 {
    margin-bottom: 4px;
    font-size: 8.5px;
  }

  .practical p {
    font-size: 8.5px;
    line-height: 1.25;
  }

  .ticket-footer {
    padding: 12px 40px;
    font-size: 14px;
  }

  .footer-mark {
    width: 48px;
  }

  .ticket-footer .brand-logo {
    width: 96px;
  }

  .segment-card,
  .info-grid div,
  .summary-grid div {
    break-inside: avoid;
    box-shadow: none;
  }
}
