  /* ─── The ticket. Plain CSS so the printed page never depends on the UI layer. ───
     One shared base, then one block per layout (.tk.l-pass / .l-classic / .l-band / .l-minimal).
     Type scale everywhere: 8 caps label · 9.5 small · 11 body · 12.5 strong · 16–19 titles · 26+ display. */
  .tk { --a: #0b4f86; --on-a: #fff; --ink: #14171c; --mut: #646b76; --faint: #9aa1ab; --line: #e4e6ea;
    --tint: color-mix(in srgb, var(--a) 5%, #fff); --tint2: color-mix(in srgb, var(--a) 13%, #fff); --g: 40px;
    width: 794px; box-sizing: border-box; display: flex; flex-direction: column; position: relative; background: #fff; color: var(--ink);
    font: 400 11px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-feature-settings: 'tnum', 'cv11', 'ss01'; letter-spacing: 0; text-align: left;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tk * { box-sizing: border-box; }
  .tk .m { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
  .tk .ph { color: #c5c9cf; }
  .tk .r { text-align: right; }
  .tk sup { font-size: 8.5px; color: var(--a); margin-left: 1px; font-weight: 700; line-height: 0; }
  .tk .lbl { font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); line-height: 1.3; }
  .tk .pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 7px; border-radius: 999px; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; line-height: 1.2; }
  .tk .pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .tk .ok { background: #e6f5ec; color: #12713f; } .tk .warn { background: #fdf2d8; color: #8a5a00; }
  .tk .bad { background: #fde8e8; color: #b42323; } .tk .neu { background: #eef0f3; color: #4b5361; }
  .tk .brand { display: flex; gap: 14px; align-items: center; min-width: 0; }
  .tk .logo { max-height: 50px; max-width: 160px; object-fit: contain; display: block; }
  .tk .mono { width: 44px; height: 44px; border-radius: 12px; background: var(--a); color: var(--on-a); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
  .tk .bname { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
  .tk .btag { color: var(--mut); font-size: 10.5px; margin-top: 2px; }
  .tk .doc { text-align: right; flex-shrink: 0; }
  .tk .dtitle { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--a); }
  .tk .dmeta { margin-top: 5px; font-size: 9.5px; color: var(--mut); line-height: 1.65; }
  .tk .dmeta b { color: var(--ink); font-weight: 600; margin-left: 6px; }
  .tk .qr { width: 64px; height: 64px; padding: 4px; background: #fff; border-radius: 9px; border: 1px solid var(--tint2); flex-shrink: 0; }
  .tk .qr svg { width: 100%; height: 100%; display: block; }
  .tk .al { height: 22px; max-width: 110px; object-fit: contain; display: block; }
  .tk .sec { display: flex; align-items: center; gap: 12px; margin: 16px var(--g) 8px; }
  .tk .sec h3 { margin: 0; font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
  .tk .sec .rule { flex: 1; height: 1px; background: var(--line); }
  .tk .sec .cnt { font-size: 9.5px; color: var(--mut); }
  .tk .more { color: var(--mut); font-size: .72em; font-weight: 600; }
  .tk .notes { margin: 0 var(--g); padding: 0; list-style: none; display: grid; gap: 2px; }
  .tk .notes li { position: relative; padding-left: 15px; color: #3b424d; font-size: 10px; }
  .tk .notes li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 4.5px; height: 4.5px; border-radius: 1.5px; background: var(--a); transform: rotate(45deg); }
  .tk .foot { margin-top: auto; padding: 16px var(--g) 20px; }
  .tk .fin { border-top: 1px solid var(--line); padding-top: 11px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .tk .fbiz { font-size: 9.5px; color: var(--mut); line-height: 1.65; min-width: 0; }
  .tk .fbiz b { color: var(--ink); font-size: 10.5px; }
  .tk .bc { text-align: center; flex-shrink: 0; }
  .tk .bc svg { height: 30px; width: auto; max-width: 240px; display: block; margin: 0 auto; }
  .tk .bc div { font-size: 8px; letter-spacing: .22em; color: var(--mut); margin-top: 4px; }
  .tk .legal { margin-top: 9px; font-size: 8px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; }
  /* passenger table (pass + band) */
  .tk .prow { display: grid; grid-template-columns: 20px 1.9fr 1fr 1fr 1fr 1.25fr; gap: 10px; align-items: center; padding: 7px 14px; border-top: 1px solid var(--line); font-size: 10.5px; }
  .tk .prow:first-child { border-top: 0; }
  .tk .prow.ph { background: var(--tint); font-size: 8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); padding: 6px 14px; }
  .tk .prow b { font-size: 11px; font-weight: 600; }
  .tk .prow em { font-style: normal; color: var(--mut); font-size: 9px; margin-left: 4px; }
  .tk .prow .n { color: var(--a); font-weight: 700; }

  /* ─── Boarding pass ─── */
  .tk.l-pass .bar { height: 6px; background: linear-gradient(90deg, var(--a), color-mix(in srgb, var(--a) 55%, #fff)); }
  .tk.l-pass .head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px var(--g) 15px; }
  .tk.l-pass .hero { margin: 0 var(--g); border-radius: 14px; background: var(--tint); border: 1px solid var(--tint2); padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
  .tk.l-pass .pname { font-size: 19px; font-weight: 700; letter-spacing: -.015em; margin-top: 4px; line-height: 1.15; }
  .tk.l-pass .psub { color: var(--mut); margin-top: 4px; font-size: 10.5px; }
  .tk.l-pass .hr { display: flex; align-items: center; gap: 16px; text-align: right; }
  .tk.l-pass .pnr { font-size: 21px; font-weight: 700; letter-spacing: .14em; color: var(--a); margin-top: 3px; line-height: 1.1; }
  .tk.l-pass .hero .pill { margin-top: 6px; }
  .tk.l-pass .facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin: 12px var(--g) 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .tk.l-pass .cell { background: #fff; padding: 7px 14px; min-width: 0; }
  .tk.l-pass .val { font-size: 11.5px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
  .tk.l-pass .pax { margin: 0 var(--g); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .tk.l-pass .seg { position: relative; display: grid; grid-template-columns: 1fr 168px; margin: 0 var(--g) 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .tk.l-pass .sm { padding: 11px 18px 12px; min-width: 0; }
  .tk.l-pass .stop { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--mut); }
  .tk.l-pass .stop .n { font-weight: 700; color: var(--a); letter-spacing: .14em; text-transform: uppercase; font-size: 8.5px; }
  .tk.l-pass .stop .d { color: var(--ink); font-weight: 600; }
  .tk.l-pass .stop .pill { margin-left: auto; }
  .tk.l-pass .route { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 8px; }
  .tk.l-pass .code { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
  .tk.l-pass .time { font-size: 14px; font-weight: 700; margin-top: 6px; }
  .tk.l-pass .city { font-size: 10.5px; font-weight: 600; margin-top: 1px; }
  .tk.l-pass .apn { font-size: 9px; color: var(--mut); margin-top: 1px; line-height: 1.35; }
  .tk.l-pass .path { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--a); }
  .tk.l-pass .track { display: flex; align-items: center; width: 100%; gap: 5px; }
  .tk.l-pass .track i { flex: 1; border-top: 1.5px dashed color-mix(in srgb, var(--a) 40%, #fff); }
  .tk.l-pass .track b { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--a); background: #fff; }
  .tk.l-pass .track svg { width: 16px; height: 16px; transform: rotate(45deg); }
  .tk.l-pass .path .fl { font-size: 9px; color: var(--mut); font-weight: 500; white-space: nowrap; }
  .tk.l-pass .multi .al { height: 18px; max-width: 72px; }
  .tk.l-pass .multi .code { font-size: 22px; }
  .tk.l-pass .multi .time { font-size: 12.5px; }
  .tk.l-pass .multi .time .via { color: var(--mut); font-weight: 500; margin: 0 3px; }
  .tk.l-pass .multi .c { text-align: center; }
  .tk.l-pass .multi .c .apn { color: var(--a); font-weight: 600; }
  .tk.l-pass .multi .route { gap: 10px; }
  .tk.l-pass .stub { position: relative; background: var(--tint); border-left: 1.5px dashed color-mix(in srgb, var(--a) 28%, #fff); padding: 12px 14px 12px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-content: center; }
  .tk.l-pass .stub::before, .tk.l-pass .stub::after { content: ''; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
  .tk.l-pass .stub::before { top: -10px; } .tk.l-pass .stub::after { bottom: -10px; }
  .tk.l-pass .stub .w { grid-column: span 2; }
  .tk.l-pass .stub .v { font-size: 11px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; line-height: 1.35; }
  /* 3+ flights in one journey: a route map, then compact rows */
  .tk.l-pass .lx-sum { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 8px; }
  .tk.l-pass .lx-end b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1; margin-right: 6px; }
  .tk.l-pass .lx-end span { font-size: 12.5px; font-weight: 700; }
  .tk.l-pass .lx-end small { display: block; font-size: 9.5px; color: var(--mut); margin-top: 2px; }
  .tk.l-pass .lx-end:last-child { text-align: right; }
  .tk.l-pass .mmap { display: flex; align-items: center; margin-bottom: 10px; }
  .tk.l-pass .mmap i { flex: 1; border-top: 1.5px dashed color-mix(in srgb, var(--a) 40%, #fff); }
  .tk.l-pass .mmap span { position: relative; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--a); background: #fff; margin: 0 4px; }
  .tk.l-pass .mmap em { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); font: 600 8.5px/1 Inter, sans-serif; letter-spacing: .06em; color: var(--a); font-style: normal; }
  .tk.l-pass .lrows { margin-top: 9px; border-top: 1px solid var(--line); padding-top: 2px; }
  .tk.l-pass .lr { display: grid; grid-template-columns: 54px 58px minmax(0, 1fr) 40px minmax(0, 1fr) 104px; align-items: center; gap: 10px; padding: 5px 0; }
  .tk.l-pass .lr.nd { grid-template-columns: 54px minmax(0, 1fr) 48px minmax(0, 1fr) 128px; margin-top: 4px; padding-bottom: 0; }
  .tk.l-pass .lr .al { height: 15px; max-width: 54px; }
  .tk.l-pass .slim .sm { padding: 9px 18px 9px; }
  .tk.l-pass .slim .stub { padding: 8px 14px 8px 18px; gap: 6px 10px; }
  .tk.l-pass .lr-d { font-size: 9.5px; color: var(--mut); font-weight: 500; white-space: nowrap; }
  .tk.l-pass .lr-p { font-size: 12px; font-weight: 600; white-space: nowrap; min-width: 0; }
  .tk.l-pass .lr-p b { font-weight: 800; margin-right: 3px; }
  .tk.l-pass .lr-p small, .tk.l-pass .lr-f small { display: block; font-size: 9px; color: var(--mut); font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tk.l-pass .lr-k { display: flex; align-items: center; gap: 2px; color: var(--a); }
  .tk.l-pass .lr-k i { flex: 1; border-top: 1px dashed color-mix(in srgb, var(--a) 40%, #fff); }
  .tk.l-pass .lr-k svg { width: 11px; height: 11px; transform: rotate(45deg); flex-shrink: 0; }
  .tk.l-pass .lr-f { text-align: right; min-width: 0; }
  .tk.l-pass .lr-f b { font-size: 10px; font-weight: 600; white-space: nowrap; }
  .tk.l-pass .lc { display: flex; align-items: center; gap: 8px; padding-left: 129px; height: 12px; }
  .tk.l-pass .lc span { font-size: 8.5px; font-weight: 600; color: var(--a); background: var(--tint); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
  .tk.l-pass .lc::after { content: ''; flex: 1; border-top: 1px dashed var(--line); }
  .tk.l-pass .fare { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin: 0 var(--g); }
  .tk.l-pass .ftab { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .tk.l-pass .frow { display: flex; justify-content: space-between; gap: 12px; padding: 6px 14px; border-top: 1px solid var(--line); font-size: 10.5px; }
  .tk.l-pass .frow:first-child { border-top: 0; }
  .tk.l-pass .frow span:last-child { font-weight: 500; }
  .tk.l-pass .frow.tot { background: var(--tint); font-weight: 700; font-size: 11.5px; }
  .tk.l-pass .paid { border-radius: 12px; background: var(--a); color: var(--on-a); padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
  .tk.l-pass .paid .lbl { color: inherit; opacity: .75; }
  .tk.l-pass .paid .amt { font-size: 19px; font-weight: 700; margin-top: 3px; letter-spacing: -.01em; }
  .tk.l-pass .paid .meta { font-size: 9.5px; opacity: .85; margin-top: 5px; line-height: 1.5; }
  .tk.l-pass .stamp { position: absolute; right: 12px; top: 12px; border: 1.5px solid currentColor; opacity: .8; border-radius: 6px; padding: 2px 7px; font-size: 8px; font-weight: 800; letter-spacing: .18em; transform: rotate(8deg); }

  /* ─── Classic receipt ─── */
  .tk.l-classic { --line: #dfe2e6; }
  .tk.l-classic .c-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px var(--g) 14px; border-bottom: 2px solid var(--ink); margin: 0 var(--g); padding-left: 0; padding-right: 0; }
  .tk.l-classic .dtitle { font-size: 13px; letter-spacing: .16em; color: var(--ink); }
  .tk.l-classic .c-ref { margin-top: 4px; font-size: 9.5px; color: var(--mut); }
  .tk.l-classic .c-ref b { color: var(--ink); font-weight: 600; margin-left: 4px; }
  .tk.l-classic .c-box { display: flex; align-items: center; gap: 16px; margin: 12px var(--g) 0; border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; }
  .tk.l-classic .c-kv { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 12px; align-items: end; }
  .tk.l-classic .c-kv .v { font-size: 11px; font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tk.l-classic .c-pnr { font-size: 18px; font-weight: 700; letter-spacing: .12em; color: var(--a); line-height: 1; }
  .tk.l-classic .qr { width: 56px; height: 56px; border-color: var(--line); border-radius: 4px; padding: 3px; }
  .tk.l-classic .sec { margin: 14px var(--g) 6px; }
  .tk.l-classic .sec h3 { color: var(--a); }
  .tk.l-classic .c-tab { width: calc(100% - 2 * var(--g)); margin: 0 var(--g); border-collapse: collapse; table-layout: fixed; font-size: 10.5px; }
  .tk.l-classic .c-tab th { font-size: 7.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); text-align: left; padding: 5px 8px; background: #f3f4f6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
  .tk.l-classic .c-tab th.r, .tk.l-classic .c-tab td.r { text-align: right; }
  .tk.l-classic .c-tab td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow: hidden; }
  .tk.l-classic .c-tab td b { font-weight: 600; }
  .tk.l-classic .c-tab small { display: block; font-size: 8.5px; color: var(--mut); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tk.l-classic .c-pax td { vertical-align: middle; padding-top: 6px; padding-bottom: 6px; }
  .tk.l-classic .c-pax .n { color: var(--mut); }
  .tk.l-classic .c-itin td { white-space: nowrap; }
  .tk.l-classic .c-itin td b { font-size: 11px; }
  .tk.l-classic .c-to { color: var(--mut); font-weight: 400; margin: 0 2px; }
  .tk.l-classic .c-fl { display: flex; align-items: center; gap: 6px; height: 15px; }
  .tk.l-classic .c-fl .al { height: 13px; max-width: 46px; }
  .tk.l-classic .c-jh td { background: color-mix(in srgb, var(--a) 6%, #fff); padding: 4px 8px; border-bottom: 1px solid var(--line); font-size: 9.5px; color: var(--mut); }
  .tk.l-classic .c-jh .n { font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--a); margin-right: 10px; }
  .tk.l-classic tbody + tbody .c-jh td { border-top: 6px solid #fff; }
  .tk.l-classic .c-cx td { padding: 0 8px; height: 15px; border-bottom: 1px dashed var(--line); }
  .tk.l-classic .c-cx span { font-size: 8.5px; color: var(--a); font-weight: 600; }
  .tk.l-classic .c-itin tbody .c-leg:has(+ .c-cx) td { border-bottom: 0; }
  .tk.l-classic .c-tag { display: inline-block; margin-top: 2px; font-size: 7.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--a); }
  .tk.l-classic .c-st { font-size: 10px; font-weight: 600; background: none; display: inline-flex; align-items: center; gap: 5px; }
  .tk.l-classic .c-st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .tk.l-classic .c-fare { display: grid; grid-template-columns: 1fr 300px; gap: 14px; margin: 0 var(--g); align-items: stretch; }
  .tk.l-classic .c-pay { border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; align-items: center; align-content: center; }
  .tk.l-classic .c-pay .v { font-size: 11.5px; font-weight: 600; margin-top: 3px; }
  .tk.l-classic .c-stamp { justify-self: end; transform: rotate(-6deg); border: 1.5px solid var(--a); color: var(--a); border-radius: 4px; padding: 3px 9px; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
  .tk.l-classic .c-ftab { border-collapse: collapse; font-size: 10.5px; width: 100%; }
  .tk.l-classic .c-ftab td { padding: 4px 0; border-bottom: 1px solid var(--line); }
  .tk.l-classic .c-ftab tr:first-child td { border-top: 1px solid var(--line); }
  .tk.l-classic .c-ftab .tot td { font-weight: 700; font-size: 12px; border-bottom: 2px solid var(--ink); padding: 6px 0; }
  .tk.l-classic .notes { grid-template-columns: 1fr 1fr; gap: 2px 24px; }
  .tk.l-classic .notes li { font-size: 9.5px; }
  .tk.l-classic .fin { border-top-color: var(--ink); }

  /* ─── Modern band ─── */
  .tk.l-band .b-band { background: var(--a); color: var(--on-a); padding: 22px var(--g) 50px; }
  .tk.l-band .b-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
  .tk.l-band .logo { background: #fff; padding: 6px 10px; border-radius: 10px; max-height: 50px; box-sizing: content-box; }
  .tk.l-band .mono { background: #fff; color: var(--a); }
  .tk.l-band .btag, .tk.l-band .b-ref { color: inherit; opacity: .78; }
  .tk.l-band .dtitle { color: inherit; }
  .tk.l-band .b-ref { margin-top: 5px; font-size: 9.5px; line-height: 1.65; }
  .tk.l-band .b-ref b { font-weight: 600; margin-left: 6px; }
  .tk.l-band .b-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 18px; margin-top: 20px; }
  .tk.l-band .b-code { font-size: 46px; font-weight: 800; letter-spacing: -.02em; line-height: .95; }
  .tk.l-band .b-city { font-size: 13px; font-weight: 600; margin-top: 7px; }
  .tk.l-band .b-when { font-size: 10px; opacity: .78; margin-top: 2px; }
  .tk.l-band .b-pt.r { text-align: right; }
  .tk.l-band .b-mid { text-align: center; }
  .tk.l-band .b-line { display: flex; align-items: center; gap: 6px; }
  .tk.l-band .b-line i { flex: 1; border-top: 1.5px dashed currentColor; opacity: .55; }
  .tk.l-band .b-line b { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
  .tk.l-band .b-line > svg { width: 22px; height: 22px; transform: rotate(45deg); }
  .tk.l-band .b-rt svg { width: 22px; height: 22px; display: block; }
  .tk.l-band .b-kind { margin-top: 6px; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  .tk.l-band .b-kind span { display: block; font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .78; font-size: 10px; margin-top: 2px; }
  .tk.l-band .b-card { position: relative; margin: -30px var(--g) 0; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 28px -14px rgba(16, 24, 40, .35);
    padding: 13px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 22px; align-items: center; }
  .tk.l-band .b-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-top: 3px; line-height: 1.2; }
  .tk.l-band .b-sub { color: var(--mut); font-size: 10.5px; margin-top: 2px; }
  .tk.l-band .b-pnr { text-align: right; padding-left: 22px; border-left: 1px solid var(--line); }
  .tk.l-band .b-pnr .m { font-size: 20px; font-weight: 700; letter-spacing: .14em; color: var(--a); line-height: 1.15; margin: 3px 0 4px; }
  .tk.l-band .b-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px 16px; margin: 14px var(--g) 0; padding: 0 18px; }
  .tk.l-band .b-facts .val { font-size: 11.5px; font-weight: 600; margin-top: 2px; }
  .tk.l-band .b-paxl { margin: 0 var(--g); }
  .tk.l-band .b-paxl .prow.ph { background: none; border-bottom: 1px solid var(--line); padding-top: 0; }
  .tk.l-band .b-paxl .prow { border-top: 0; border-bottom: 1px solid var(--line); }
  .tk.l-band .b-tl { margin: 0 var(--g); }
  .tk.l-band .b-j + .b-j { margin-top: 6px; }
  .tk.l-band .b-jh { display: flex; align-items: center; gap: 10px; padding: 0 0 4px 76px; font-size: 10px; color: var(--mut); }
  .tk.l-band .b-jh .n { font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--a); }
  .tk.l-band .b-jh .d { color: var(--ink); font-weight: 600; }
  .tk.l-band .b-jh .pill { margin-left: auto; }
  .tk.l-band .b-ti { display: grid; grid-template-columns: 54px 22px minmax(0, 1fr); column-gap: 0; }
  .tk.l-band .b-day { font-size: 11px; font-weight: 700; line-height: 1.15; padding-top: 9px; }
  .tk.l-band .b-day small { display: block; font-size: 8.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
  .tk.l-band .b-rail { position: relative; }
  .tk.l-band .b-rail::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; border-left: 2px solid var(--tint2); }
  .tk.l-band .b-leg.first .b-rail::before { top: 17px; } .tk.l-band .b-leg.last .b-rail::before { bottom: calc(100% - 17px); }
  .tk.l-band .b-leg.first.last .b-rail::before { display: none; }
  .tk.l-band .b-lay .b-rail::before { border-left-style: dashed; border-left-color: color-mix(in srgb, var(--a) 35%, #fff); }
  .tk.l-band .b-rail b { position: absolute; left: 5px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--a); }
  .tk.l-band .b-lg { display: grid; grid-template-columns: 128px 44px 128px minmax(0, 1fr) 84px; align-items: center; gap: 10px; padding: 7px 0 7px 10px; border-bottom: 1px solid var(--line); }
  .tk.l-band .b-leg.last .b-lg { border-bottom: 0; }
  .tk.l-band .b-tm { font-size: 14px; font-weight: 700; line-height: 1.15; }
  .tk.l-band .b-cd { font-size: 10px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
  .tk.l-band .b-cd b { color: var(--ink); font-weight: 700; letter-spacing: .02em; margin-right: 2px; }
  .tk.l-band .b-ar { display: flex; align-items: center; gap: 3px; color: var(--a); }
  .tk.l-band .b-ar i { flex: 1; border-top: 1.5px dashed color-mix(in srgb, var(--a) 40%, #fff); }
  .tk.l-band .b-ar svg { width: 13px; height: 13px; transform: rotate(45deg); flex-shrink: 0; }
  .tk.l-band .b-fl { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .tk.l-band .b-alw { width: 56px; flex-shrink: 0; display: flex; justify-content: center; }
  .tk.l-band .b-fl .al { height: 17px; max-width: 56px; }
  .tk.l-band .b-fl b { font-size: 11px; font-weight: 700; }
  .tk.l-band .b-fl small, .tk.l-band .b-cb small { display: block; font-size: 9px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tk.l-band .b-fl > div:last-child { min-width: 0; }
  .tk.l-band .b-cb { text-align: right; font-size: 10.5px; font-weight: 600; }
  .tk.l-band .b-lay .b-lt { padding: 3px 0 3px 10px; font-size: 9px; font-weight: 600; color: var(--a); border-bottom: 1px solid var(--line); }
  .tk.l-band .b-fare { display: grid; grid-template-columns: 1fr 236px; gap: 14px; margin: 0 var(--g); }
  .tk.l-band .b-fr { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; }
  .tk.l-band .b-fr.tot { border-bottom: 0; font-weight: 700; font-size: 12px; padding-top: 7px; }
  .tk.l-band .b-paid { position: relative; border-radius: 12px; background: var(--tint); border: 1px solid var(--tint2); padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; }
  .tk.l-band .b-amt { font-size: 20px; font-weight: 700; color: var(--a); margin-top: 3px; letter-spacing: -.01em; }
  .tk.l-band .b-pm { font-size: 9.5px; color: var(--mut); margin-top: 3px; }
  .tk.l-band .b-stamp { position: absolute; right: 12px; top: 11px; background: var(--a); color: var(--on-a); border-radius: 999px; padding: 2px 8px; font-size: 7.5px; font-weight: 800; letter-spacing: .16em; }

  /* ─── Minimal ink: black on white, hairlines, no tints ─── */
  .tk.l-minimal { --a: #14171c; --mut: #5f646c; --line: #d6d8db; --g: 52px; }
  .tk.l-minimal .logo, .tk.l-minimal .al { filter: grayscale(1) contrast(1.1); }
  .tk.l-minimal .mono { background: none; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50%; }
  .tk.l-minimal .m-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 0 var(--g); padding: 30px 0 16px; border-bottom: 1.5px solid var(--ink); }
  .tk.l-minimal .dtitle { color: var(--ink); font-weight: 600; letter-spacing: .26em; }
  .tk.l-minimal .m-hero { display: flex; align-items: flex-end; gap: 26px; margin: 0 var(--g); padding: 20px 0 18px; border-bottom: 1px solid var(--line); }
  .tk.l-minimal .m-who { flex: 1; min-width: 0; }
  .tk.l-minimal .m-name { font-size: 23px; font-weight: 300; letter-spacing: -.01em; line-height: 1.15; margin-top: 5px; }
  .tk.l-minimal .m-sub { font-size: 10.5px; color: var(--mut); margin-top: 4px; }
  .tk.l-minimal .m-ref { text-align: right; }
  .tk.l-minimal .m-pnr { font-size: 21px; font-weight: 500; letter-spacing: .16em; line-height: 1.15; margin: 4px 0 5px; }
  .tk.l-minimal .m-st { display: inline-block; font-size: 8px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--ink); padding: 2px 7px; line-height: 1.3; }
  .tk.l-minimal .qr { border: 0; padding: 0; width: 60px; height: 60px; border-radius: 0; }
  .tk.l-minimal .m-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0; margin: 0 var(--g); padding: 15px 0; border-bottom: 1px solid var(--line); }
  .tk.l-minimal .m-lab { margin: 0; font-size: 8.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding-top: 2px; }
  .tk.l-minimal .m-lab small { display: block; font-size: 9.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mut); margin-top: 4px; }
  .tk.l-minimal .m-row:has(+ .foot) { border-bottom: 0; }
  .tk.l-minimal .m-kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px 16px; }
  .tk.l-minimal .m-kv .v { font-size: 11px; margin-top: 2px; }
  .tk.l-minimal .m-pax { width: 100%; border-collapse: collapse; }
  .tk.l-minimal .m-pax td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: middle; }
  .tk.l-minimal .m-pax tr:first-child td { border-top: 0; padding-top: 0; }
  .tk.l-minimal .m-pax .n { width: 22px; color: var(--mut); }
  .tk.l-minimal .m-pax b { font-weight: 600; font-size: 11px; }
  .tk.l-minimal .m-pax small { display: block; font-size: 9px; color: var(--mut); }
  .tk.l-minimal .m-pax .lbl { font-size: 7px; }
  .tk.l-minimal .m-j + .m-j { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .tk.l-minimal .m-jh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 3px; }
  .tk.l-minimal .m-jl { font-size: 8.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .tk.l-minimal .m-jd { font-size: 10.5px; color: var(--mut); }
  .tk.l-minimal .m-jh .m-st { margin-left: auto; }
  .tk.l-minimal .m-leg { display: grid; grid-template-columns: 38px minmax(0, 1fr) 14px 46px minmax(0, 1fr) 120px; align-items: baseline; column-gap: 6px; padding: 5px 0 4px; }
  .tk.l-minimal .m-t { font-size: 13px; font-weight: 600; white-space: nowrap; }
  .tk.l-minimal .m-t sup { color: var(--ink); }
  .tk.l-minimal .m-c { font-size: 10px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tk.l-minimal .m-c b { color: var(--ink); font-size: 12px; font-weight: 700; margin-right: 5px; letter-spacing: .02em; }
  .tk.l-minimal .m-to { color: var(--mut); }
  .tk.l-minimal .m-fl { justify-self: end; display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; align-self: center; }
  .tk.l-minimal .m-fl .al { height: 12px; max-width: 44px; }
  .tk.l-minimal .m-d { grid-column: 2 / -1; font-size: 9px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
  .tk.l-minimal .m-cx { margin-left: 46px; font-size: 9px; font-style: italic; color: var(--mut); padding: 0 0 0 10px; border-left: 1px solid var(--line); line-height: 1.6; }
  .tk.l-minimal .m-fare { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
  .tk.l-minimal .m-amt { font-size: 18px; font-weight: 500; margin-top: 3px; }
  .tk.l-minimal .m-pm { font-size: 10px; color: var(--mut); margin-top: 2px; }
  .tk.l-minimal .m-fr { display: flex; justify-content: space-between; padding: 3px 0; font-size: 10.5px; }
  .tk.l-minimal .m-fr.tot { border-top: 1px solid var(--ink); margin-top: 3px; padding-top: 5px; font-weight: 700; font-size: 12px; }
  .tk.l-minimal .m-stamp { float: right; border: 1.5px solid var(--ink); padding: 3px 9px; font-size: 8.5px; font-weight: 700; letter-spacing: .22em; transform: rotate(-5deg); margin-top: 4px; }
  .tk.l-minimal .notes { margin: 0; }
  .tk.l-minimal .notes li { padding-left: 12px; color: var(--ink); font-size: 10px; }
  .tk.l-minimal .notes li::before { content: '–'; background: none; width: auto; height: auto; transform: none; top: 0; left: 0; border-radius: 0; color: var(--mut); }
  .tk.l-minimal .foot { padding-left: var(--g); padding-right: var(--g); }
  .tk.l-minimal .fin { border-top: 1.5px solid var(--ink); }

  .paper { position: relative; overflow: hidden; }
  .paper .tk { transform-origin: top left; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 40px -12px rgba(16,24,40,.18); border-radius: 4px; overflow: hidden; }
  #capture { position: fixed; left: -12000px; top: 0; width: 794px; pointer-events: none; }
  #print-root { display: none; }
  @media print {
    html, body { background: #fff !important; }
    body > *:not(#print-root) { display: none !important; }
    #print-root { display: block !important; }
    #print-root .tk { min-height: 0 !important; }
  }
