:root {
  --bg: oklch(0.985 0.003 155);
  --surface: oklch(1 0 0);
  --ink: oklch(0.32 0.075 158);
  --action: oklch(0.61 0.16 158);
  --text: oklch(0.27 0.015 165);
  --muted: oklch(0.5 0.015 165);
  --divider: oklch(0.89 0.008 230);
  --soft: oklch(0.955 0.012 158);

  --good: oklch(0.57 0.12 142);
  --good-bg: oklch(0.92 0.06 142);
  --mixed: oklch(0.62 0.11 85);
  --mixed-bg: oklch(0.94 0.07 90);
  --bad: oklch(0.54 0.13 24);
  --bad-bg: oklch(0.93 0.04 24);
  --std-bg: oklch(0.95 0.005 230);
  --premium: oklch(0.45 0.07 280);
  --premium-bg: oklch(0.92 0.03 280);

  --r: 10px;
  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--ink); }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- 頂部 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink);
  color: #fff;
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 16px;
  height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 16px; white-space: nowrap; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  color: oklch(0.9 0.03 158); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.topnav a:hover { background: oklch(0.38 0.075 158); }
.topnav a[aria-current="page"] { background: oklch(0.42 0.08 158); color: #fff; }

/* ---------- 首頁 ---------- */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 26px; margin: 0 0 4px; color: var(--ink); }
.lead { margin: 0 0 16px; color: var(--muted); }
.filters { display: flex; flex-direction: column; gap: 12px; }
.filters input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--divider); border-radius: var(--r);
  background: var(--surface); font: inherit; color: var(--text);
}
.filters input:focus { outline: 2px solid var(--action); outline-offset: 1px; border-color: transparent; }

.seg {
  display: inline-flex; background: var(--soft); border-radius: var(--r); padding: 4px; gap: 4px; align-self: flex-start;
}
.seg button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; cursor: pointer; min-height: 36px;
  font-size: 14px; color: var(--muted); transition: background-color .18s, color .18s;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px oklch(0 0 0 / .08); }
.seg-inline { margin: 0 0 12px; }

.region { margin: 24px 0; }
.region-title { font-size: 17px; margin: 0 0 8px; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.count { font-size: 13px; color: var(--muted); font-weight: 400; }
.airline-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }

.airline-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r);
  padding: 12px; text-decoration: none; color: var(--text);
  transition: border-color .18s, transform .18s;
}
.airline-card:hover { border-color: var(--action); transform: translateY(-1px); }
.ac-body { display: flex; flex-direction: column; min-width: 0; }
.ac-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ac-en { font-size: 12px; color: var(--muted); }
.ac-models { font-size: 13px; color: var(--ink); margin-top: 4px; }

.code {
  --ac: var(--ink);
  flex: none; width: 44px; height: 44px; border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  color: var(--ac); background: color-mix(in oklch, var(--ac) 12%, white);
  border: 1px solid color-mix(in oklch, var(--ac) 30%, white);
}
.code-lg { width: 56px; height: 56px; font-size: 18px; }

.tag { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.tag-lcc { background: var(--mixed-bg); color: oklch(0.42 0.08 75); }
.tag-fsc { background: var(--soft); color: var(--ink); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: var(--r); border: 0; background: var(--action); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer;
}

/* ---------- 共用頁頭 ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs .sep { opacity: .5; }
.page-head { display: flex; gap: 12px; align-items: center; padding: 12px 0 16px; }
.page-head h1 { font-size: 22px; margin: 0; color: var(--ink); line-height: 1.3; }
.page-head .sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.notice {
  background: var(--mixed-bg); border-radius: var(--r); padding: 10px 14px; margin: 0 0 16px; font-size: 14px;
  color: oklch(0.36 0.06 75);
}
.notice b { color: oklch(0.42 0.1 70); }
.notice.small { font-size: 13px; margin-top: 12px; }

/* ---------- 航空公司頁 ---------- */
.model-list { display: grid; grid-template-columns: 1fr; gap: 12px; padding-bottom: 24px; }
.model-card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 16px;
  text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 8px;
  transition: border-color .18s, transform .18s;
}
.model-card:hover { border-color: var(--action); transform: translateY(-1px); }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mc-model { font-size: 18px; font-weight: 700; color: var(--ink); }
.badge-pending { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--mixed-bg); color: oklch(0.42 0.1 70); white-space: nowrap; }
.mc-seats { color: var(--muted); }
.mc-seats b { font-size: 22px; color: var(--text); }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--std-bg); }
.chip-J, .chip-F { background: var(--premium-bg); color: var(--premium); }
.chip-W { background: var(--soft); color: var(--ink); }
.mc-meta { display: flex; gap: 24px; margin: 0; }
.mc-meta div { display: flex; flex-direction: column; }
.mc-meta dt { font-size: 12px; color: var(--muted); }
.mc-meta dd { margin: 0; font-weight: 600; }
.mc-routes { margin: 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--divider); padding-top: 8px; }

/* ---------- 座位圖頁 ---------- */
.sm-layout { display: flex; flex-direction: column-reverse; gap: 16px; padding-bottom: 32px; }
.sm-side { display: flex; flex-direction: column; gap: 16px; }

.cabin-list { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 12px 14px; }
.cabin-list h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.cl-item + .cl-item { border-top: 1px solid var(--divider); margin-top: 8px; padding-top: 8px; }
.cl-item h4 { margin: 0 0 4px; font-size: 16px; color: var(--ink); display: flex; align-items: center; }
.cl-item ul { list-style: none; margin: 0; padding: 0; }
.cl-item li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 16px; }
.cl-item li span { color: var(--muted); }
.cl-item li b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--muted); }
.dot-F, .dot-J { background: var(--premium); }
.dot-W { background: var(--action); }
.dot-Y { background: oklch(0.7 0.01 230); }

.seat-swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--divider); }
.exit-swatch { font-size: 10px; font-weight: 700; color: var(--bad); border: 1px solid var(--bad); border-radius: 3px; padding: 0 3px; }

.seat-detail { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 12px 14px; min-height: 72px; transition: border-color .18s; }
.seat-detail.on { border-color: var(--ink); }
.seat-detail { position: relative; }
.seat-detail .hint { margin: 0; color: var(--muted); font-size: 16px; }
.seat-detail:not(.on) { display: none; }
.seat-hint { margin: 0 0 6px; color: var(--muted); font-size: 14px; text-align: center; }
.sd-close { position: absolute; top: 8px; right: 8px; }
.sd-big { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--ink); letter-spacing: .02em; margin: 0 0 4px; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.sd-tags span { font-size: 14px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--ink); }
.sd-h { margin: 12px 0 4px; font-size: 16px; }
.sd-h.pro { color: oklch(0.4 0.1 142); }
.sd-h.con { color: var(--bad); }
.sd-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 16px; }
.sd-list li { position: relative; padding-left: 22px; margin: 3px 0; }
.sd-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.sd-list.pro li::before { content: "✓"; color: oklch(0.45 0.12 142); }
.sd-list.con li::before { content: "✕"; color: var(--bad); }
.sd-list.info li::before { content: "•"; color: var(--muted); left: 4px; }
.sd-none { margin: 0; font-size: 15px; color: var(--muted); }
.sd-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sd-id { font-size: 20px; font-weight: 700; color: var(--ink); }
.sd-meta { color: var(--muted); font-size: 15px; }
.sd-rating { font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.r-good { background: var(--good-bg); color: oklch(0.4 0.1 142); }
.r-mixed { background: var(--mixed-bg); color: oklch(0.42 0.1 70); }
.r-bad { background: var(--bad-bg); color: var(--bad); }
.r-std { background: var(--std-bg); color: var(--muted); }
.r-premium { background: var(--premium-bg); color: var(--premium); }
.sd-spec { margin: 10px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }

.tips { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 12px 14px; }
.tips h2 { font-size: 15px; margin: 0 0 4px; color: var(--ink); }
.tips ul { margin: 0; padding-left: 18px; font-size: 16px; }
.tips li + li { margin-top: 4px; }

/* 機身 */
.plane-wrap { --wing-span: clamp(18px, 8vw - 28px, 72px); overflow-x: auto; padding: 4px var(--wing-span) 8px; }
.plane {
  --inch: 1.56px;
  --hull: oklch(0.8 0.026 244);
  --metal: oklch(0.89 0.021 244);
  --nose-depth: 110px;
  --tail-depth: 95px;
  position: relative; box-sizing: border-box; width: max-content; margin: 0 auto;
  scroll-margin-top: 64px;
  isolation: isolate;
  background: var(--surface); border-inline: 2px solid var(--hull);
  border-radius: 49% 49% 31% 31% / var(--nose-depth) var(--nose-depth) var(--tail-depth) var(--tail-depth);
  padding: var(--nose-depth) 6px var(--tail-depth);
  display: flex; flex-direction: column; align-items: center;
}
.plane[data-airframe="wide"], .plane[data-airframe="raked"], .plane[data-airframe="double"], .plane[data-airframe="four"] {
  --nose-depth: 128px; --tail-depth: 112px;
}
.plane[data-airframe="737"] { --nose-depth: 120px; }
.plane[data-airframe="stretched"] { --tail-depth: 105px; }
.plane[data-airframe="turboprop"] { --nose-depth: 82px; --tail-depth: 74px; }
.nose, .tail { position: absolute; inset-inline: 0; font-size: 12px; color: var(--muted); text-align: center; }
.nose {
  top: 0; height: var(--nose-depth); border: solid var(--hull); border-width: 2px 0 0;
  border-radius: 49% 49% 0 0 / 100% 100% 0 0;
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.cockpit { display: flex; gap: 2px; }
.cockpit i { width: 14px; height: 8px; background: oklch(0.49 0.055 246); border-radius: 3px 3px 2px 2px; }
.cockpit i:first-child { transform: translateY(3px) skewY(-19deg); }
.cockpit i:last-child { transform: translateY(3px) skewY(19deg); }
.tail { bottom: 0; height: var(--tail-depth); border-bottom: 2px solid var(--hull); border-radius: 0 0 31% 31% / 0 0 100% 100%; }
.tail::before {
  content: ""; position: absolute; inset: 18% -3% 4%; z-index: -1;
  background: var(--metal); clip-path: polygon(50% 0, 100% 55%, 100% 76%, 60% 57%, 50% 100%, 40% 57%, 0 76%, 0 55%);
}
.tail i {
  display: block; width: 10px; height: 52%; margin: 8px auto 2px;
  background: var(--hull); border-radius: 55% 55% 35% 35%;
  clip-path: polygon(50% 0, 100% 85%, 80% 100%, 20% 100%, 0 85%);
}
.wing { display: none; position: absolute; width: var(--wing-span); pointer-events: none; z-index: 0; }
.wing-l { right: 100%; transform: scaleX(-1); }
.wing-r { left: 100%; }
.wing::before, .wing::after { content: ""; position: absolute; inset: 0; clip-path: var(--wing-edge); }
.wing::before { background: var(--hull); }
.wing::after { inset: 1px 1px 2px 0; background: var(--metal); }
.plane { --wing-edge: polygon(0 0, 94% 64%, 100% 62%, 98% 78%, 0 100%); }
.plane[data-airframe="raked"] { --wing-edge: polygon(0 0, 88% 57%, 100% 66%, 91% 74%, 0 100%); }
.plane[data-airframe="turboprop"] { --wing-edge: polygon(0 0, 90% 20%, 100% 29%, 100% 53%, 87% 67%, 0 100%); }
.nacelle {
  position: absolute; z-index: 1; left: 10%; top: 13%; width: 29%; height: clamp(13px, 25%, 48px);
  border: 1px solid var(--hull); border-top: 3px solid oklch(0.52 0.045 245);
  border-radius: 36% 36% 43% 43%; background: oklch(0.96 0.012 240);
}
.nacelle.outboard { display: none; left: 49%; top: 45%; width: 22%; }
.plane[data-airframe="double"] .outboard, .plane[data-airframe="four"] .outboard { display: block; }
.plane[data-airframe="turboprop"] .nacelle { left: 31%; top: 6%; }
.plane[data-airframe="turboprop"] .nacelle::before {
  content: ""; position: absolute; width: 175%; height: 2px; top: 0; left: -38%;
  background: var(--muted); border-radius: 2px;
}
.seat-hint span { display: block; font-size: 12px; }
.wing-jump { display: block; margin: 2px auto 0; padding: 5px 8px; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); text-decoration: underline; cursor: pointer; }
.plane-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; text-align: center; }
.deck-title { margin: 18px 0 8px; font-size: 15px; text-align: center; }
.plane + .deck-title { margin-top: 28px; }

/* 廁所、廚房 */
.fac-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 3px 0; padding: 0 12px; contain: inline-size; }
.row .fac-band { position: absolute; inset: 0 3px; align-items: center; pointer-events: none; }
.fac-slot { display: flex; flex-wrap: wrap; align-content: center; gap: 3px; }
.fac-L { justify-content: flex-start; } .fac-C { justify-content: center; } .fac-R { justify-content: flex-end; }
.fac { font-size: 10px; font-weight: 600; padding: 5px 4px; border-radius: 3px; border: 1px solid; white-space: nowrap; line-height: 1; }
.fac-lav { background: oklch(0.95 0.025 240); border-color: oklch(0.78 0.05 240); color: oklch(0.42 0.08 240); }
.fac-galley { background: oklch(0.95 0.025 60); border-color: oklch(0.8 0.06 60); color: oklch(0.45 0.08 60); }

/* 嬰兒搖籃 */
.has-bassinet { position: relative; }
.has-bassinet::after {
  content: ""; position: absolute; top: -4px; left: 50%; width: 14px; height: 6px; margin-left: -7px;
  background: oklch(0.7 0.13 330); border-radius: 0 0 7px 7px; border: 1px solid var(--surface);
}
.seat-swatch.has-bassinet::after { top: -3px; width: 10px; margin-left: -5px; height: 5px; }
.cabin {
  --seat: calc(var(--seat-width, var(--typical-width, 17.5)) * var(--inch));
  --pitch: calc(var(--seat-pitch, var(--typical-pitch, 31)) * var(--inch));
  --seat-depth: calc(var(--pitch) * 0.65);
  align-self: stretch; margin: 6px 0 10px; position: relative; z-index: 1;
  border-radius: 12px; padding: 8px 0 10px; background: var(--cabin-bg, transparent);
}
.cabin-W { --typical-width: 19; --typical-pitch: 38; }
.cabin-J { --typical-width: 22; --typical-pitch: 45; }
.cabin-F { --typical-width: 24; --typical-pitch: 53; }
.cabin-wide.cabin-W { --typical-width: 17.5; }
.cabin-wide.cabin-J { --typical-width: 19; }
.cabin-F, .cabin-J { --cabin-bg: color-mix(in oklch, var(--premium) 7%, var(--surface)); }
.cabin-W { --cabin-bg: color-mix(in oklch, var(--action) 7%, var(--surface)); }
.cabin-Y { --cabin-bg: oklch(0.975 0.004 230); }
.cabin + .cabin { margin-top: 4px; }
.cabin-title { font-size: 13px; margin: 0 0 6px; width: 0; min-width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; color: var(--ink); text-align: center; }
.cabin-title span:last-child { color: var(--muted); font-weight: 400; margin-left: 6px; }
.cabin-body { display: flex; flex-direction: column; }

.row { display: flex; align-items: center; justify-content: center; gap: 3px; position: relative; padding: 0 14px; }
.row:not(.row-head) { min-height: var(--pitch); }
.row-head { min-height: 18px; }
.row-head .col { width: var(--seat); text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.aisle { width: calc(17 * var(--inch)); flex: none; text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-head .aisle { height: 1px; }
.row-exit { margin: 8px 0; }
.cabin-body { isolation: isolate; }
.exit-arr { font-weight: inherit; }
.exit { position: absolute; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 700; line-height: 1; color: #fff; background: var(--bad); border-radius: 3px; padding: 3px 4px; white-space: nowrap; }
.exit-l { right: calc(100% - 12px); }
.exit-r { left: calc(100% - 12px); }
.win { position: absolute; top: 50%; width: 8px; height: 14px; margin-top: -7px; border-radius: 4px; background: oklch(0.8 0.05 240); border: 1px solid oklch(0.68 0.06 240); }
.win-l { left: 2px; } .win-r { right: 2px; }
/* 有逐排資料：依實際位置畫，一排可能沒有或有多扇 */
.win.win-pos { top: calc(var(--wy) * 10%); height: 10px; margin-top: -5px; }
.win-swatch { display: inline-block; width: 6px; height: 12px; border-radius: 3px; background: oklch(0.8 0.05 240); border: 1px solid oklch(0.68 0.06 240); }
.spec-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--divider); border: 1px solid var(--divider); border-radius: var(--r); overflow: hidden; }
.spec-card > div { background: var(--surface); padding: 10px 12px; }
.spec-card dt { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.spec-card dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.spec-ill { display: block; width: 100%; max-width: 120px; height: auto; margin: 4px 0 6px; }
.spec-ill .ill-seat { fill: var(--soft); stroke: var(--muted); stroke-width: 1.5; stroke-linejoin: round; }
.spec-ill .ill-arm { fill: var(--std-bg); stroke: var(--muted); stroke-width: 1.5; }
.spec-ill .ill-leg, .spec-ill .ill-tick { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.spec-ill .ill-tick { stroke-dasharray: 2 2; }
.spec-ill .ill-dim { fill: none; stroke: var(--action); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.amen { margin-top: 10px; border: 1px solid var(--divider); border-radius: var(--r); background: var(--surface); padding: 10px 12px; }
.amen h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.amen-cabin + .amen-cabin { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--divider); }
.amen-cabin h4 { margin: 0 0 4px; font-size: 16px; color: var(--ink); display: flex; align-items: center; }
.amen-none { margin: 0; font-size: 15px; }
.amen h3 span { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.amen ul { list-style: none; margin: 0; padding: 0; }
.amen li { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--divider); }
.amen li:first-child { border-top: 0; }
.am-label { flex: 0 0 108px; font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.am-label svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.am-val { font-size: 16px; color: var(--ink); }
.am-val small { display: block; font-size: 14px; color: var(--muted); }
.am-yes { color: var(--good, var(--ink)); }
.am-no { color: var(--bad); }
.amen .muted { color: var(--muted); }
.amen-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.spec-card dd.muted { color: var(--muted); font-size: 15px; font-weight: 600; }
.row-zone .seat { box-shadow: inset 0 -3px 0 oklch(0.7 0.06 230); }
.zone-label { text-align: center; font-size: 12px; color: oklch(0.45 0.06 230); margin: 6px 0 2px; }

.seat {
  width: var(--seat); height: var(--seat-depth); flex: none;
  border-radius: 5px 5px 8px 8px; border: 1px solid transparent;
  font-size: 11px; font-weight: 600; cursor: pointer; padding: 0 0 3px; position: relative;
  transition: transform .15s, outline-color .15s;
}
/* 機頭朝上。椅背在座墊後方，與扶手有各自的輪廓。 */
.seat:not(.seat-empty)::before {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 1px; height: 5px;
  border-radius: 2px 2px 4px 4px; background: var(--tone); pointer-events: none;
}
.seat-swatch::before { display: none; }
.seat:hover { transform: translateY(-1px); }
.seat:focus-visible, .seat.active { outline: 2px solid var(--ink); outline-offset: 1px; }
.seat-empty { background: transparent; cursor: default; }
.s-good { background: var(--good-bg); border-color: var(--good); color: oklch(0.38 0.1 142); }
.s-mixed { background: var(--mixed-bg); border-color: var(--mixed); color: oklch(0.42 0.1 70); }
.s-bad { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.s-std { background: var(--std-bg); border-color: oklch(0.82 0.008 230); color: var(--muted); }
.s-premium { background: var(--premium-bg); border-color: var(--premium); color: var(--premium); }
.cabin-wide .seat { font-size: 10px; }

/* ---------- 比較頁 ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.compare th { font-size: 12px; color: var(--muted); background: var(--soft); position: sticky; top: 0; }
.compare tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: var(--soft); }
.compare td a { font-weight: 600; text-decoration: none; }
.bar { display: inline-block; width: 48px; height: 6px; border-radius: 3px; background: var(--std-bg); margin-right: 8px; vertical-align: middle; position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--action); border-radius: 3px; }

.footer { color: var(--muted); font-size: 14px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--divider); margin-top: 16px; }
.footer p { margin: 0 0 4px; }
.footer .footer-src { font-size: 12px; margin-top: 4px; }

/* ---------- 手機：座位說明固定在底部、廣體機縮小 ---------- */
@media (max-width: 999px) {
  .seat-detail.on {
    position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 20;
    box-shadow: 0 4px 16px oklch(0 0 0 / .14);
    max-height: 45vh; overflow-y: auto;
  }
  .seat-detail .sd-close { display: inline-flex; }
}
@media (max-width: 540px) {
  .brand { font-size: 14px; }
  .topnav { gap: 0; }
  .topnav a { padding: 8px 7px; font-size: 13px; }
  .row { gap: 2px; padding-inline: 12px; }
  .plane-wrap { --wing-span: 18px; }
  .plane[data-airframe] { --inch: 1.24px; --nose-depth: 75px; --tail-depth: 62px; padding-inline: 4px; }
  .plane[data-airframe="turboprop"] { --nose-depth: 57px; --tail-depth: 58px; }
  .nacelle { border-top-width: 2px; width: 42%; }
  /* 手機：出口改直書小標，放在機身外框與窗邊座位之間，不超出畫面 */
  .exit { font-size: 9px; padding: 3px 1px; writing-mode: vertical-rl; letter-spacing: .1em; } .exit-arr { display: none; }
  .exit-l { left: -5px; right: auto; } .exit-r { right: -5px; left: auto; }
  .win-l { left: 2px; } .win-r { right: 2px; }
  .fac-band { padding: 0 12px; }
}
.sd-close {
  display: none; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--soft); cursor: pointer; font-size: 16px; line-height: 1;
}

/* ---------- 桌面 ---------- */
@media (min-width: 720px) {
  .hero h1 { font-size: 32px; }
  .filters { flex-direction: row; align-items: center; }
  .filters input { flex: 1; }
  .seg { align-self: auto; }
  .airline-grid { grid-template-columns: repeat(2, 1fr); }
  .model-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .airline-grid { grid-template-columns: repeat(3, 1fr); }
  .model-list { grid-template-columns: repeat(3, 1fr); }
  .sm-layout { flex-direction: row-reverse; align-items: flex-start; }
  .plane-wrap { flex: 1; min-width: 0; }
  .sm-side { width: 360px; flex: none; position: sticky; top: 68px; max-height: calc(100vh - 84px); overflow-y: auto; }
}

/* ---------- 找航班／機型 ---------- */
.find-cta { display: block; margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: var(--soft); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.5; }
.find-cta b { color: var(--ink); white-space: nowrap; }
.find-cta:hover { background: var(--good-bg); }
.find-form { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0 0 16px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
/* iOS 的日期欄有內建最小寬度，會比其他欄寬，關掉原生外觀讓它跟其他欄一樣寬 */
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-height: 46px; text-align: left; line-height: 1.4; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input, .field select { font: inherit; font-size: 16px; color: var(--text); padding: 10px 12px; border: 1px solid var(--divider); border-radius: 8px; background: var(--surface); width: 100%; min-width: 0; }
.route-pair { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); grid-template-rows: auto 48px auto; column-gap: 12px; row-gap: 6px; min-width: 0; }
.route-pair .ap-field { display: grid; grid-template-rows: subgrid; grid-row: 1 / 4; }
.route-pair .ap-field:first-child { grid-column: 1; }
.route-pair .ap-field:last-child { grid-column: 3; }
.find-form .field input, .find-form .field select { height: 48px; }
.find-go { align-self: end; }
.find-go .btn { height: 48px; font: inherit; font-weight: 600; }
.ap-field { gap: 6px; }
.combo { position: relative; }
.ap-field .combo-in { font-size: 16px; padding-right: 34px; cursor: pointer; text-overflow: ellipsis; }
.ap-field .combo-in:focus { cursor: text; }
.combo-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); font-size: 12px; }
.combo-pop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--divider); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.combo-pop [role=option] { padding: 8px 12px; font-size: 15px; color: var(--text); cursor: pointer; }
.combo-pop [role=option][aria-selected=true] { font-weight: 700; }
.combo-pop [role=option].on, .combo-pop [role=option]:hover { background: var(--good-bg); }
.combo-grp { padding: 8px 12px 4px; font-size: 12px; color: var(--muted); position: sticky; top: -4px; background: var(--surface); }
.combo-none { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.ap-hint { min-height: 0; font-size: 12px; color: var(--muted, #666); }
.route-pair .swap-btn { grid-column: 2; grid-row: 2; align-self: center; margin: 0; }
.swap-btn { font: inherit; font-size: 18px; line-height: 1; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--divider); border-radius: 50%; background: var(--surface); color: var(--action); cursor: pointer; }
.swap-btn:hover { border-color: var(--action); }
.swap-btn:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
@media (max-width: 420px) {
  .route-pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: 8px; }
  .route-pair .ap-field { display: flex; grid-column: 1; grid-row: auto; }
  .route-pair .ap-field:last-child { grid-column: 1; }
  .route-pair .swap-btn { grid-column: 1; grid-row: auto; justify-self: center; transform: rotate(90deg); margin: 0; }
}
.field input:focus, .field select:focus { outline: 2px solid var(--action); outline-offset: 1px; border-color: transparent; }
.find-hint { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.al-chips { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.al-group-title { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.al-grid button { width: 100%; min-width: 0; justify-content: flex-start; }
.al-chips .al-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.al-chips button { font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--divider); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; }
.al-chips button[aria-pressed="true"] { border-color: var(--action); background: var(--soft); color: var(--ink); font-weight: 600; }
.al-chips .count { font-size: 12px; color: var(--muted); }
.al-chips .al-code { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--muted); margin-left: -2px; }
.al-chips .al-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--al, var(--muted)); flex: none; }
.al-chips button[aria-pressed="true"] { border-color: var(--al, var(--action)); box-shadow: inset 0 0 0 1px var(--al, var(--action)); }
.al-chips .tag { font-size: 11px; }
.flight-list { display: grid; grid-template-columns: 1fr; gap: 10px; padding-bottom: 16px; }
.flight-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--divider); border-radius: var(--r); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s; }
.flight-card:hover { border-color: var(--action); }
.flight-card.is-off { opacity: .6; }
.fc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-no { font-size: 17px; color: var(--ink); }
.flight-card { border-left: 4px solid var(--al, var(--divider)); }
.fc-al { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.fc-al .al-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--al, var(--muted)); flex: none; }
.fc-iata { font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1; padding: 3px 6px; border-radius: 5px; color: var(--al, var(--ink)); background: color-mix(in srgb, var(--al, var(--ink)) 12%, white); border: 1px solid color-mix(in srgb, var(--al, var(--ink)) 30%, white); }
.fc-code { font-size: 12px; color: var(--muted); }
.fc-time { font-size: 15px; }
.fc-time .num { font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-arrow { color: var(--muted); }
.fc-model { font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fc-go { color: var(--action); font-weight: 600; margin-left: auto; text-decoration: none; padding: 4px 0; }
.fc-go:hover { text-decoration: underline; }
.fc-next { font-size: 11px; color: var(--bad); font-weight: 600; margin-left: 1px; }
.fc-src { color: var(--muted); }
.fc-days { font-size: 12px; color: var(--muted); }
.badge-off { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--bad-bg); color: var(--bad); }
.mc-al { font-size: 13px; color: var(--muted); }
@media (min-width: 720px) {
  .find-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .find-form .field-wide { grid-column: 1 / -1; max-width: 480px; }
  .find-form .route-pair { grid-column: 1 / -1; max-width: 760px; }
  .flight-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 頂部航班列、底部備註 ---------- */
.flight-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--divider); }
.fb-no { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: .02em; }
.fb-route { font-size: 18px; font-weight: 600; color: var(--ink); }
.fb-route small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.fb-route i { font-style: normal; color: var(--muted); margin: 0 6px; }
.page-notes { margin: 8px 0 24px; padding-top: 14px; border-top: 1px solid var(--divider); color: var(--muted); }
.page-notes h2 { font-size: 15px; margin: 0 0 6px; color: var(--muted); }
.page-notes ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.page-notes li + li { margin-top: 4px; }

/* ---------- 第一批（2026-11-13）：座位完整編號、結果列排序、設備、版本切換 ---------- */
.seat { font-size: 9px; letter-spacing: -.02em; }
.cabin-wide .seat { font-size: 8px; letter-spacing: -.04em; }
.cabin-J .seat, .cabin-F .seat { font-size: 10px; }
.fl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 10px; }
.fl-count { font-size: 14px; color: var(--muted); }
.fl-count b { color: var(--ink); }
.fl-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.fl-sort select, .al-field select { font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--divider); border-radius: 8px; padding: 7px 10px; min-height: 40px; }
.al-field select { width: 100%; }
.fc-amen { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.fc-amen .fa { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.fc-amen svg { width: 15px; height: 15px; flex: none; fill: none; stroke: oklch(0.42 0.1 142); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 座位圖頁上方：讀者選的航班 */
.flight-bar-card { margin: 12px 0 0; }
.flight-bar-card .flight-card { margin: 0; }
.ver-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 14px; }
.ver-label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.ver-pill { font-size: 13px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--divider); background: var(--surface); color: var(--text); text-decoration: none; }
.ver-pill[aria-current="page"] { border-color: var(--action); background: var(--soft); color: var(--ink); font-weight: 600; }
a.ver-pill:hover { border-color: var(--ink); }

/* ---------- 第二批：艙等短評、窗景小卡、條款頁 ---------- */
.cl-review { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--text); background: var(--soft); border-radius: 8px; padding: 6px 10px; }
.view-card { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--r); padding: 12px 14px; margin-top: 12px; }
.view-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.vc-item + .vc-item { border-top: 1px solid var(--divider); margin-top: 8px; padding-top: 8px; }
.vc-item h4 { margin: 0 0 4px; font-size: 16px; color: var(--ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vc-item p { margin: 0 0 4px; font-size: 15px; line-height: 1.6; }
.vc-side { font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--std-bg); color: var(--text); }
.vc-side-l, .vc-side-r { background: oklch(0.92 0.05 240); color: oklch(0.38 0.09 240); }
.vc-meta { font-size: 13px !important; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; line-height: 1.5; }
.vc-meta a { color: var(--muted); }
.vc-conf { display: inline-flex; align-items: center; font-size: 12px; line-height: 1.5; padding: 0 6px; border-radius: 4px; border: 1px solid var(--divider); margin-right: 2px; }
.vc-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.plane.view-l .win-l, .plane.view-r .win-r { background: oklch(0.72 0.12 240); border-color: oklch(0.55 0.14 240); box-shadow: 0 0 0 2px oklch(0.88 0.06 240); }

.legal { max-width: 720px; }
.legal h1 { margin: 0 0 4px; color: var(--ink); }
.legal h2 { font-size: 18px; color: var(--ink); margin: 20px 0 6px; }
.legal ul { margin: 0; padding-left: 1.2em; }
.legal li { margin: 4px 0; line-height: 1.7; }
.legal-meta { margin: 0; color: var(--muted); font-size: 14px; }
.legal-draft { margin: 8px 0 0; display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--mixed-bg); color: oklch(0.42 0.09 85); }
.legal-other { margin-top: 24px; font-size: 14px; }
mark.ph { background: oklch(0.93 0.12 95); color: inherit; padding: 0 2px; border-radius: 3px; }
.footer .footer-links { font-size: 13px; margin-top: 6px; }
.footer .footer-links a { color: var(--muted); }

/* 外連按鈕樣式（YouTube 連結使用） */
.ext-link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--soft); border: 1px solid var(--divider); text-decoration: none; }
.ext-link:hover { border-color: var(--ink); }

/* YouTube 搜尋連結 */
.cl-video { margin: 6px 0 0; font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 4px; }
.yt-link { display: inline-flex; align-items: center; gap: 6px; }
.yt-ico { width: 20px; height: 14px; flex: none; }

.cabin .seat {
  --tone: color-mix(in oklch, currentColor 30%, transparent);
  --arm: 2px;
}
.cabin .seat:not(.seat-empty) {
  background-image: linear-gradient(var(--tone), var(--tone)), linear-gradient(var(--tone), var(--tone));
  background-size: var(--arm) 55%;
  background-position: left bottom 3px, right bottom 3px;
  background-repeat: no-repeat;
}
.look-slim .seat:not(.seat-empty)::before { height: 3px; }
.look-premium .seat, .look-recliner .seat { --arm: 4px; }
.look-premium .seat:not(.seat-empty), .look-recliner .seat:not(.seat-empty) { border-radius: 7px 7px 10px 10px; }
.look-premium .seat:not(.seat-empty)::before, .look-recliner .seat:not(.seat-empty)::before { height: 7px; left: 4px; right: 4px; }
.look-bed, .look-angled, .look-pod, .look-suite { --seat-depth: calc(var(--pitch) * 0.81); }
.look-bed .seat:not(.seat-empty), .look-angled .seat:not(.seat-empty), .look-suite .seat:not(.seat-empty) {
  padding-top: 9px; border-radius: 8px 8px 11px 11px;
  box-shadow: inset 3px 0 0 var(--tone), inset -3px 0 0 var(--tone), inset 0 12px 0 -4px var(--tone);
}
.look-bed .seat:not(.seat-empty)::before, .look-angled .seat:not(.seat-empty)::before,
.look-suite .seat:not(.seat-empty)::before { height: 8px; left: 4px; right: 4px; }
.look-pod .seat:not(.seat-empty) {
  border-radius: 12px 6px 12px 6px;
  box-shadow: inset 0 0 0 2px var(--tone), inset 0 10px 0 -4px var(--tone);
  transform: rotate(var(--rot, 0deg));
}
.look-pod .seat:not(.seat-empty):hover { transform: rotate(var(--rot, 0deg)) translateY(-1px); }
.look-pod .seat:not(.seat-empty)::before { height: 7px; left: 4px; right: 4px; bottom: 3px; }
.look-suite .seat:not(.seat-empty) { border-radius: 5px; box-shadow: inset 0 11px 0 -3px var(--tone); }
.look-suite .seat-pod::before { transform: rotate(var(--rot, 0deg)); }
.seat-wall, .seat-divider { position: absolute; pointer-events: none; }
.seat-wall { inset: -1px; border: 2px solid var(--premium); border-radius: inherit; }
.wall-shell.wall-r { border-right-color: transparent; }
.wall-shell.wall-l { border-left-color: transparent; }
.wall-suite::after {
  content: ""; position: absolute; top: 46%; height: 38%; width: 3px;
  border: 1px solid var(--premium); border-radius: 1px; background: var(--premium-bg);
}
.wall-suite.wall-r::after { right: -3px; }
.wall-suite.wall-l::after { left: -3px; }
.seat-divider { right: calc(-3px - var(--divider-gap) * (var(--seat) + 2px)); top: 18%; bottom: 14%; width: 3px; background: var(--premium); border-radius: 2px; z-index: 1; }
.seat > span { position: relative; }


/* JAL SKY SUITE / Apex：坐墊與外殼分開，窗邊座前移。 */
.look-apex { --seat-depth: calc(var(--pitch) * .94); }
.look-apex .row:not(.row-head) { padding-top: calc(var(--pitch) * .2); }
.look-apex .seat:not(.seat-empty) {
  background: color-mix(in oklch, var(--premium-bg) 35%, var(--surface));
  background-image: none;
  border-radius: 2px;
  box-shadow: none;
  overflow: visible;
}
.look-apex .seat-forward { transform: translateY(calc(var(--pitch) * -.23)); }
.look-apex .seat-forward:hover { transform: translateY(calc(var(--pitch) * -.23)); }
.look-apex .seat::before { display: none; }
.look-apex .seat-wall { border-radius: 2px; border-width: 1px; }
.look-apex .seat-cushion {
  position: absolute; left: 12%; right: 12%; top: 55%; bottom: 12%;
  background: var(--premium); border-radius: 3px 3px 5px 5px;
  box-shadow: -2px 0 0 var(--tone), 2px 0 0 var(--tone);
}
.look-apex .seat-backrest {
  position: absolute; left: -1px; right: -1px; height: 22%; bottom: -2px;
  background: color-mix(in oklch, var(--premium) 65%, black); border-radius: 2px;
}
.look-apex .seat-ottoman {
  position: absolute; left: 18%; right: 18%; top: 7%; height: 13%;
  background: color-mix(in oklch, var(--premium) 50%, var(--surface));
  border: 1px solid var(--premium); border-radius: 1px;
}
.look-apex .seat > span { position: absolute; top: 56%; left: 0; right: 0; color: white; font-size: 9px; line-height: 1.5; }
.look-apex .seat-divider { top: 12%; bottom: 6%; width: 2px; }
.apex-note { max-width: 280px; margin: 12px auto 0; padding: 0 10px; font-size: 12px; color: var(--muted); line-height: 1.6; }


/* 所有艙等共用的座椅零件，配置圖決定其方向與排列。 */
.cabin:not(.look-apex) .seat[data-id] {
  background-image: none;
  box-shadow: none;
}
.cabin:not(.look-apex) .seat[data-id]::before { display: none; }
.seat-cushion, .seat-backrest, .seat-arm, .seat-ottoman { pointer-events: none; }
.cabin:not(.look-apex) .seat-cushion {
  position: absolute; inset: 15% 12% 20%;
  background: color-mix(in oklch, currentColor 18%, var(--surface));
  border: 1px solid color-mix(in oklch, currentColor 48%, transparent);
  border-radius: 4px 4px 3px 3px;
}
.cabin:not(.look-apex) .seat-backrest {
  position: absolute; left: -1px; right: -1px; bottom: -4px; height: 5px;
  background: color-mix(in oklch, currentColor 55%, var(--surface));
  border: 1px solid color-mix(in oklch, currentColor 60%, transparent);
  border-radius: 2px 2px 3px 3px;
}
.seat-arm { position: absolute; width: 2px; top: 25%; bottom: 0; border-radius: 2px; background: currentColor; opacity: .55; }
.seat-arm-l { left: -3px; }
.seat-arm-r { right: -3px; }
.cabin:not(.look-apex) .seat > span { position: absolute; left: 0; right: 0; top: 26%; line-height: 1.3; z-index: 2; }
.look-premium .seat-cushion, .look-recliner .seat-cushion { border-radius: 5px !important; }
.look-premium .seat-arm, .look-recliner .seat-arm { width: 3px; }
.cabin:is(.look-bed,.look-angled,.look-pod,.look-suite) .seat-cushion { top: 54%; bottom: 13%; }
.cabin:is(.look-bed,.look-angled,.look-pod,.look-suite) .seat > span { top: 56%; }
.cabin:not(.look-apex) .seat-ottoman {
  position: absolute; left: 23%; right: 23%; top: 9%; height: 14%;
  background: color-mix(in oklch, currentColor 30%, var(--surface));
  border: 1px solid color-mix(in oklch, currentColor 60%, transparent);
  border-radius: 2px;
}
.look-suite .seat-cushion, .look-suite .seat-ottoman { transform: rotate(var(--rot, 0deg)); }

/* Keep the clickable cell upright; draw the entire angled envelope inside it. */
.cabin .pod-footprint[data-id], .cabin .pod-footprint[data-id]:hover {
  background: transparent; border-color: transparent; border-radius: 3px;
  transform: none; box-shadow: none;
}
.pod-footprint > .seat-cushion, .pod-footprint > .seat-ottoman { display: none; }
.pod-drawing { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pod-floor { fill: var(--premium-bg); }
.pod-console { fill: color-mix(in oklch, currentColor 18%, var(--surface)); stroke: currentColor; stroke-width: 1; }
.pod-bedwell { fill: var(--surface); stroke: currentColor; stroke-width: 1; }
.pod-shell { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; }
.pod-door { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.pod-cushion { fill: color-mix(in oklch, currentColor 25%, var(--surface)); stroke: currentColor; stroke-width: 1.3; }
.pod-back, .pod-foot { fill: color-mix(in oklch, currentColor 50%, var(--surface)); stroke: currentColor; stroke-width: 1; }
.pod-arm { stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.cabin .pod-footprint > span { top: 59%; }
/* Small economy seats need a readable number, not miniature upholstery parts. */
.cabin-Y .seat-cushion, .cabin-Y .seat-ottoman { display: none; }
.cabin-Y .seat[data-id]::before { display: block !important; height: 3px; }
.cabin-Y .seat[data-id] > span { top: 50%; transform: translateY(-55%); }
.win[hidden] { display: none; }
.win.win-pos { height: 6px; margin-top: -3px; }

@media (max-width: 719px) { .find-go .btn { width: 100%; } }
