/* ATLAS — layout & app-specific pieces (tokens only) */
.app-root.atlas {
  position: relative; min-height: 100%; padding: 18px 24px 16px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr 1fr; gap: var(--gap);
}
.atlas .atl-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; min-height: 46px; }
.atlas .atl-pass { grid-column: 1 / span 6; grid-row: 2; }
.atlas .atl-tz { grid-column: 7 / span 3; grid-row: 2; }
.atlas .atl-itin { grid-column: 10 / span 3; grid-row: 2 / span 2; }
.atlas .atl-wx { grid-column: 1 / span 3; grid-row: 3; }
.atlas .atl-fx { grid-column: 4 / span 3; grid-row: 3; }
.atlas .atl-pack { grid-column: 7 / span 3; grid-row: 3; }

/* header */
.atl-logo { display: flex; align-items: center; gap: 10px; }
.atl-logo-i { width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.layer[data-skin="glass"] .atl-logo-i { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.layer[data-skin="brutal"] .atl-logo-i { border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); color: #111; }
.atl-logo b { font-size: 24px; }
.atl-trip { display: flex; flex-direction: column; line-height: 1.25; padding-left: 16px; margin-left: 6px; border-left: max(1px, var(--border-w)) solid var(--line); }
.atl-trip b { font-size: 14px; } .atl-trip span { font-size: 12px; }
.atl-clocks { display: flex; gap: 8px; }
.atl-clocks .chip { gap: 8px; height: 30px; }
.atl-clocks .chip b { color: var(--text); font-size: 13px; }

/* ---------- boarding pass ---------- */
.layer .atlas .atl-pass.card { --stub: 172px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 1px var(--stub); overflow: hidden; }
.layer:not([data-skin="swiss"]):not([data-skin="brutal"]) .atlas .atl-pass.card {
  -webkit-mask: radial-gradient(circle 12px at calc(100% - var(--stub) - .5px) 0, transparent 11.5px, #000 12px), radial-gradient(circle 12px at calc(100% - var(--stub) - .5px) 100%, transparent 11.5px, #000 12px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.atl-main { position: relative; min-width: 0; padding: var(--pad); display: flex; flex-direction: column; gap: 10px; }
.atl-ph { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.atl-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); flex: none; }
.atl-mark svg { width: 18px; height: 18px; fill: var(--on-accent); }
.atl-air { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.atl-air b { font-size: 13px; } .atl-air span { font-size: 11px; white-space: nowrap; }
.atl-checked { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.atl-refresh { width: 30px; height: 30px; }
.atl-refresh .ic { width: 14px; height: 14px; }
.atl-refresh:active .ic { transform: rotate(-120deg); transition: transform .3s; }

.atl-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.atl-ap { display: flex; flex-direction: column; line-height: 1.1; }
.atl-ap.r { text-align: right; align-items: flex-end; }
.atl-code { font-size: 38px; line-height: .95; letter-spacing: -.03em; }
.atl-city { font-size: 11.5px; color: var(--text-2); margin-top: 3px; }
.atl-time { font-size: 15px; font-variant-numeric: tabular-nums; margin-top: 1px; }
.atl-time sup { font-size: 9.5px; color: var(--accent-ink); margin-left: 2px; }
.atl-path { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 3px; min-width: 0; }
.atl-arc { position: relative; width: 100%; height: 30px; }
.atl-arc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.atl-arc path { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 4; }
.atl-plane { position: absolute; left: 50%; top: -3px; width: 22px; height: 22px; margin-left: -11px; color: var(--accent-ink); transform: rotate(90deg); }
.atl-plane .ic { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.atl-dur { font-size: 10.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.atl-fields { display: grid; grid-template-columns: 1.55fr .8fr .8fr .9fr .6fr; gap: 10px; align-items: end; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.atl-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.atl-f b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atl-f b small { font-size: 10.5px; font-weight: 500; color: var(--text-2); }
.atl-f .lbl { font-size: 10.5px; }
.atl-gate { display: flex; align-items: flex-end; gap: 6px; }
.atl-was { color: var(--warn); font-weight: 600; }
.atl-f.gate .lbl { white-space: nowrap; }
.atl-f.gate { border-radius: var(--radius-sm); margin: -4px -6px; padding: 4px 6px; }
.atl-pass.gate-flash .atl-f.gate { animation: atl-flash calc(2.2s / var(--speed)) ease-out; }
@keyframes atl-flash { 0%, 40% { background: color-mix(in oklab, var(--warn) 26%, transparent); } 100% { background: transparent; } }

/* split-flap */
.atl-flap { display: inline-flex; gap: .06em; line-height: 1; font-family: var(--font-num); font-weight: var(--num-weight); }
.atl-fc { position: relative; display: inline-block; width: .7em; height: 1.08em; perspective: 3em; }
.atl-fc::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: var(--bg); opacity: .55; z-index: 3; }
.atl-fh { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: var(--surface-3); color: var(--text); backface-visibility: hidden; }
.atl-fh > i { position: absolute; left: 0; right: 0; height: 200%; display: flex; align-items: center; justify-content: center; font-style: normal; }
.atl-fh.t, .atl-fh.ft { top: 0; border-radius: .12em .12em 0 0; }
.atl-fh.b, .atl-fh.fb { bottom: 0; border-radius: 0 0 .12em .12em; }
.atl-fh.t > i, .atl-fh.ft > i { top: 0; }
.atl-fh.b > i, .atl-fh.fb > i { bottom: 0; }
.atl-fh.ft { z-index: 2; transform-origin: 50% 100%; animation: atl-ft calc(.32s / var(--speed)) ease-in forwards; }
.atl-fh.fb { z-index: 2; transform-origin: 50% 0; transform: rotateX(90deg); animation: atl-fb calc(.32s / var(--speed)) cubic-bezier(.3, 1.4, .5, 1) calc(.32s / var(--speed)) forwards; }
@keyframes atl-ft { to { transform: rotateX(-90deg); } }
@keyframes atl-fb { to { transform: rotateX(0deg); } }
.atl-fh .dm { display: block; }
.layer[data-skin="dots"] .atl-fh { background: var(--surface-2); color: var(--accent); }
.layer[data-skin="glass"] .atl-fh { background: color-mix(in oklab, var(--surface-3) 90%, var(--accent) 10%); }
.layer[data-skin="swiss"] .atl-fh { background: var(--text); color: var(--bg); border-radius: 0; }
.layer[data-skin="brutal"] .atl-fc { border: 2.5px solid var(--ink); border-radius: 5px; overflow: hidden; height: 1.12em; }
.layer[data-skin="brutal"] .atl-fh { background: var(--accent); color: #111; border-radius: 0; }
.layer[data-skin="noir"] .atl-fh { background: var(--surface-2); color: var(--accent); border-radius: 1px; box-shadow: inset 0 0 0 1px var(--line); }
.layer[data-skin="nordic"] .atl-fh { background: var(--accent-soft); color: var(--accent-ink); }

/* countdown row */
.atl-cd { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 6px 18px; margin-top: auto; }
.atl-cd-a { display: flex; flex-direction: column; gap: 4px; }
.atl-cd-l { font-size: 10.5px; white-space: nowrap; }
.atl-cd-n { color: var(--text); }
.atl-cd-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-bottom: 4px; }
.atl-cd-b .bar-h { height: 4px; }
.layer[data-skin="brutal"] .atl-cd-b .bar-h { height: 10px; }
.atl-notice { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--warn); opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s; min-width: 0; }
.atl-notice span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atl-notice .ic { width: 13px; height: 13px; }
.atl-notice.on { opacity: 1; transform: none; }

.atl-stamp { position: absolute; left: 50%; top: 58px; margin-left: -62px; min-width: 124px; display: flex; flex-direction: column; align-items: center; padding: 6px 14px; border: 2.5px solid var(--good); border-radius: 8px; color: var(--good); transform: rotate(-9deg) scale(1.6); opacity: 0; pointer-events: none; transition: transform calc(.45s / var(--speed)) cubic-bezier(.3, 1.6, .4, 1), opacity calc(.25s / var(--speed)); background: color-mix(in oklab, var(--surface) 70%, transparent); }
.atl-stamp b { font-size: 17px; text-transform: uppercase; letter-spacing: .12em; line-height: 1.1; }
.atl-stamp span { font-size: 10px; }
.atl-pass.boarded .atl-stamp { opacity: 1; transform: rotate(-9deg) scale(1); transition-delay: .35s; }

/* stub */
.atl-perf { margin: 16px 0; background: repeating-linear-gradient(to bottom, var(--line-2) 0 5px, transparent 5px 10px); position: relative; }
.atl-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; padding: var(--pad) 18px; background: color-mix(in oklab, var(--accent) 6%, transparent); }
.atl-stub::before { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; bottom: 58px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); opacity: 0; transition: opacity .4s .3s; }
.atl-pass.boarded .atl-stub::before { opacity: 1; }
.atl-stub-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform calc(.8s / var(--speed)) cubic-bezier(.5, -.3, .4, 1.2), opacity calc(.8s / var(--speed)); transform-origin: 20% 0; }
.atl-pass.boarded .atl-stub-in { transform: translate(24px, 40px) rotate(14deg); opacity: .22; }
.atl-qr { width: 108px; height: 108px; padding: 6px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.atl-qr svg { width: 100%; height: 100%; display: block; }
.atl-stub-f { display: grid; grid-template-columns: repeat(3, auto); gap: 12px; text-align: center; }
.atl-stub-f div { display: flex; flex-direction: column; gap: 1px; }
.atl-stub-f .lbl { font-size: 9.5px; }
.atl-stub-f b { font-size: 14px; font-variant-numeric: tabular-nums; }
.atl-scan { width: 100%; height: 34px; padding: 0 10px; font-size: 12.5px; gap: 6px; white-space: nowrap; }
.layer[data-skin="noir"] .atl-scan { letter-spacing: .1em; font-size: 10px; }
.atl-scan .ic { width: 15px; height: 15px; }
.atl-pass.boarded .atl-scan { background: var(--surface-2); color: var(--text); box-shadow: none; }

/* skin structure for the pass */
.layer[data-skin="glass"] .atl-stub { background: rgba(255, 255, 255, .14); }
.layer[data-skin="glass"][data-mode="light"] .atl-stub { background: rgba(255, 255, 255, .34); }
.layer[data-skin="glass"] .atl-plane { filter: drop-shadow(0 0 6px color-mix(in oklab, var(--accent) 60%, transparent)); }
.layer[data-skin="glass"] .atl-mark { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.layer[data-skin="dots"] .atl-arc path { stroke-dasharray: .1 6; stroke-linecap: round; stroke-width: 3; stroke: var(--text-3); }
.layer[data-skin="dots"] .atl-fields { border-top-style: dotted; border-top-width: 2px; }
.layer[data-skin="dots"] .atl-perf { background: radial-gradient(circle, var(--line-2) 1.6px, transparent 2px) 0 0 / 1px 8px; width: 4px; margin-left: -1.5px; }
.layer[data-skin="swiss"] .atlas .atl-pass.card { padding: 0; border-top: 2px solid var(--line-2); }
.layer[data-skin="swiss"] .atl-main { padding: 14px 18px 0 0; }
.layer[data-skin="swiss"] .atl-stub { background: transparent; padding: 14px 0 0 18px; }
.layer[data-skin="swiss"] .atl-perf { margin: 14px 0 0; background: var(--line); }
.layer[data-skin="swiss"] .atl-mark, .layer[data-skin="swiss"] .atl-qr, .layer[data-skin="swiss"] .atl-stub::before, .layer[data-skin="swiss"] .atl-stamp { border-radius: 0; }
.layer[data-skin="swiss"] .atl-qr { border: 0; background: transparent; padding: 0; }
.layer[data-skin="swiss"] .atl-fields { border-top: 1px solid var(--line); }
.layer[data-skin="swiss"] .atl-arc path { stroke: var(--text); stroke-dasharray: none; stroke-width: 1; }
.layer[data-skin="swiss"] .atl-code { font-size: 44px; letter-spacing: -.06em; }
.layer[data-skin="brutal"] .atl-stub { background: var(--accent-3); }
.layer[data-skin="brutal"] .atl-perf { background: repeating-linear-gradient(to bottom, var(--ink) 0 6px, transparent 6px 11px); width: 3px; margin: 14px 0 14px -1px; overflow: visible; }
.layer[data-skin="brutal"] .atl-perf::before, .layer[data-skin="brutal"] .atl-perf::after { content: ""; position: absolute; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--ink); }
.layer[data-skin="brutal"] .atl-perf::before { top: -14px; margin-top: -13px; } .layer[data-skin="brutal"] .atl-perf::after { bottom: -14px; margin-bottom: -13px; }
.layer[data-skin="brutal"] .atl-qr { border: 2.5px solid var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.layer[data-skin="brutal"] .atl-qr svg { fill: #111 !important; }
.layer[data-skin="brutal"] .atl-mark { border: 2px solid var(--ink); }
.layer[data-skin="brutal"] .atl-mark svg { fill: #111; }
.layer[data-skin="brutal"] .atl-fields { border-top: 2.5px dashed var(--ink); }
.layer[data-skin="brutal"] .atl-arc path { stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 6 5; }
.layer[data-skin="brutal"] .atl-stamp { border-width: 3px; border-color: var(--ink); color: #111; background: var(--good); box-shadow: 3px 3px 0 var(--ink); }
.layer[data-skin="brutal"] .atl-stub-f b, .layer[data-skin="brutal"] .atl-stub-f .lbl { color: #111; }
.layer[data-skin="noir"] .atl-stub { background: transparent; }
.layer[data-skin="noir"] .atl-mark { background: transparent; border: 1px solid var(--accent); }
.layer[data-skin="noir"] .atl-mark svg { fill: var(--accent); }
.layer[data-skin="noir"] .atl-code { font-size: 44px; letter-spacing: .01em; }
.layer[data-skin="noir"] .atl-qr { background: transparent; border-color: var(--line-2); }
.layer[data-skin="noir"] .atl-qr svg { fill: var(--accent) !important; }
.layer[data-skin="noir"] .atl-arc path { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 1 5; }
.layer[data-skin="noir"] .atl-fields { border-top: 1px solid var(--line); }
.layer[data-skin="noir"] .atl-stamp { border-width: 1px; border-color: var(--accent); color: var(--accent); background: var(--bg); border-radius: 1px; }
.layer[data-skin="nordic"] .atl-stub { background: var(--surface-2); }
.layer[data-skin="nordic"] .atl-fields { border-top: 1px solid var(--line-2); }
.layer[data-skin="nordic"] .atl-qr { border: 0; }

/* ---------- call home ---------- */
.atl-tz-top { display: flex; align-items: center; gap: 14px; }
.atl-dial { width: 148px; height: 148px; flex: none; }
.atl-dial svg { display: block; overflow: visible; }
.atl-dial text { font-family: var(--font-mono); font-size: 9px; fill: var(--text-3); }
.atl-tz-read { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.atl-tz-read > div { display: flex; flex-direction: column; gap: 1px; }
.atl-tz-read .lbl { font-size: 10.5px; }
.atl-tz-big { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.atl-tz-h { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.atl-tz-key { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 4px 10px !important; font-size: 10.5px; color: var(--text-2); }
.atl-tz-key span { display: inline-flex; align-items: center; gap: 4px; }
.atl-tz-key i { width: 8px; height: 8px; border-radius: 50%; }
.atl-tz-key .k1 { background: var(--accent-3); } .atl-tz-key .k2 { background: var(--accent-2); } .atl-tz-key .k3 { background: var(--accent); }
.layer[data-skin="swiss"] .atl-tz-key i, .layer[data-skin="noir"] .atl-tz-key i { border-radius: 0; }
.layer[data-skin="brutal"] .atl-tz-key i { border: 1.5px solid var(--ink); }
.atl-tz .sld { margin-top: 8px; }
.atl-note { font-size: 12px; line-height: 1.45; color: var(--text-2); margin: 6px 0 0; }

/* ---------- itinerary ---------- */
.layer .atlas .atl-days.seg { display: flex; width: 100%; }
.layer .atlas .atl-days .seg-i { flex: 1; height: 42px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; gap: 1px; }
.atl-days .seg-i small { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.atl-days .seg-i b { font-size: 15px; font-weight: 600; }
.layer[data-skin="noir"] .atl-days .seg-i b { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: 0; }
.atl-tzline { font-size: 11px; margin: 8px 0 2px; }
.atl-evs { display: flex; flex-direction: column; }
.atl-ev { position: relative; display: grid; grid-template-columns: 40px 28px minmax(0, 1fr); gap: 9px; padding: 5px 0; align-items: start; transition: opacity .3s; }
.atl-ev::before { content: ""; position: absolute; left: 62.5px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.atl-ev:first-child::before { top: 20px; } .atl-ev:last-child::before { bottom: calc(100% - 20px); }
.atl-ev-t { font-size: 11.5px; color: var(--text-2); padding-top: 6px; }
.atl-ev-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.atl-ev-dot .ic { width: 14px; height: 14px; }
.atl-ev-b { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-top: 2px; }
.atl-ev-b b { font-size: 13px; font-weight: 600; line-height: 1.25; }
.atl-ev-b small { font-size: 11px; line-height: 1.3; }
.atl-ev.done { opacity: .5; }
.atl-ev.next .atl-ev-dot { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 0 0 4px var(--accent-soft); }
.atl-ev.next .atl-ev-t { color: var(--accent-ink); font-weight: 600; }
.atl-ev.next small { color: var(--accent-ink); }
.atl-tip { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--text-2); margin: auto 0 0; padding: 9px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.atl-tip .ic { width: 14px; height: 14px; color: var(--accent-ink); margin-top: 2px; }
.atl-nights { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.atl-nights-h { display: flex; justify-content: space-between; font-size: 11px; }
.atl-nights-l { display: flex; gap: 12px; font-size: 11px; color: var(--text-2); }
.atl-nights-l span { display: inline-flex; align-items: center; gap: 5px; }
.atl-nights-l i { width: 8px; height: 8px; border-radius: 2px; }
.atl-nights-l b { color: var(--text); font-weight: 600; }
.layer[data-skin="dots"] .atl-ev-dot { border-style: dashed; }
.layer[data-skin="swiss"] .atl-ev-dot, .layer[data-skin="swiss"] .atl-tip { border-radius: 0; }
.layer[data-skin="swiss"] .atl-ev-dot { background: var(--bg); border: 1.5px solid var(--line-2); }
.layer[data-skin="swiss"] .atl-ev.next .atl-ev-dot { box-shadow: none; }
.layer[data-skin="swiss"] .atl-tip { background: transparent; border-left: 3px solid var(--accent); padding: 4px 0 4px 10px; }
.layer[data-skin="brutal"] .atl-ev-dot { border: 2px solid var(--ink); background: var(--surface); }
.layer[data-skin="brutal"] .atl-ev.next .atl-ev-dot { color: #111; box-shadow: 2px 2px 0 var(--ink); }
.layer[data-skin="brutal"] .atl-ev::before { width: 2px; background: var(--ink); left: 62px; }
.layer[data-skin="brutal"] .atl-tip { border: 2px solid var(--ink); background: var(--accent-2); color: #111; }
.layer[data-skin="brutal"] .atl-tip .ic { color: #111; }
.layer[data-skin="brutal"] .atl-ev.next .atl-ev-t, .layer[data-skin="brutal"] .atl-ev.next small { color: var(--text); }
.layer[data-skin="noir"] .atl-ev-dot { background: transparent; border-color: var(--line-2); color: var(--accent); transform: rotate(45deg) scale(.82); border-radius: 1px; }
.layer[data-skin="noir"] .atl-ev-dot .ic { transform: rotate(-45deg); }
.layer[data-skin="noir"] .atl-ev.next .atl-ev-dot { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.layer[data-skin="noir"] .atl-ev-b b { font-family: var(--font-display); font-weight: 400; font-size: 15px; letter-spacing: 0; line-height: 1.15; }
.layer[data-skin="noir"] .atl-tip { background: transparent; border: 1px solid var(--line); border-radius: 1px; }
.layer[data-skin="nordic"] .atl-ev-dot { border: 0; background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- weather ---------- */
.atl-wx-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.atl-wx-n { display: flex; align-items: flex-start; }
.atl-deg { font-family: var(--font-num); font-size: 30px; line-height: .8; color: var(--text); margin-left: 2px; }
.atl-deg.s { font-size: 18px; color: var(--text-2); }
.atl-wx-lo { display: inline-flex; align-items: flex-start; margin-left: 10px; align-self: flex-end; color: var(--text-2); }
.atl-wx-r { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; min-width: 0; }
.atl-wx-t { font-size: 13px; }
.atl-wx-ch { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; min-height: 92px; margin: 10px 0 2px; }
.atl-wx-d { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 3px; border-radius: var(--radius-sm); transition: background .2s; min-width: 0; }
.atl-wx-d:hover { background: var(--surface-2); }
.atl-wx-d.on { background: var(--surface-3); }
.atl-wx-ic .ic { width: 15px; height: 15px; color: var(--text-2); }
.atl-wx-d.on .atl-wx-ic .ic { color: var(--accent-ink); }
.atl-wx-col { position: relative; flex: 1; width: 100%; min-height: 46px; }
.atl-wx-bar { position: absolute; left: 50%; width: 7px; margin-left: -3.5px; border-radius: 4px; background: linear-gradient(var(--warn), var(--accent-3)); transition: top .5s, bottom .5s; }
.atl-wx-col b, .atl-wx-col small { position: absolute; left: 0; right: 0; text-align: center; font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.atl-wx-col b { margin-bottom: 3px; font-weight: 600; }
.atl-wx-col small { margin-top: 3px; color: var(--text-2); }
.atl-wx-dl { font-size: 10px; color: var(--text-2); }
.atl-wx .atl-note { margin-top: 4px; }
.layer[data-skin="dots"] .atl-wx-bar { background: radial-gradient(circle, var(--accent) 2px, transparent 2.4px) 50% 0 / 7px 6px; border-radius: 0; }
.layer[data-skin="glass"] .atl-wx-bar { box-shadow: 0 0 12px -2px var(--warn); }
.layer[data-skin="swiss"] .atl-wx-bar { border-radius: 0; width: 10px; margin-left: -5px; background: var(--text); }
.layer[data-skin="swiss"] .atl-wx-d.on .atl-wx-bar { background: var(--accent); }
.layer[data-skin="swiss"] .atl-wx-d { border-radius: 0; }
.layer[data-skin="brutal"] .atl-wx-bar { width: 12px; margin-left: -6px; border: 2px solid var(--ink); border-radius: 3px; background: linear-gradient(var(--accent-2), var(--accent-3)); }
.layer[data-skin="brutal"] .atl-wx-d.on { background: var(--accent); }
.layer[data-skin="brutal"] .atl-wx-d.on * { color: #111 !important; }
.layer[data-skin="noir"] .atl-wx-bar { width: 1px; margin-left: -.5px; background: var(--accent); border-radius: 0; }
.layer[data-skin="noir"] .atl-wx-bar::before, .layer[data-skin="noir"] .atl-wx-bar::after { content: ""; position: absolute; left: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.layer[data-skin="noir"] .atl-wx-bar::before { top: -3px; } .layer[data-skin="noir"] .atl-wx-bar::after { bottom: -3px; background: var(--bg); border: 1px solid var(--accent); }
.layer[data-skin="noir"] .atl-wx-d.on { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.layer[data-skin="nordic"] .atl-wx-bar { width: 10px; margin-left: -5px; border-radius: 99px; }

/* ---------- currency ---------- */
.atl-fx-big { display: flex; align-items: flex-end; gap: 6px; }
.atl-cur { font-family: var(--font-num); font-weight: var(--num-weight); font-size: 26px; line-height: 1; color: var(--text-2); padding-bottom: 3px; }
.atl-fx-sub { font-size: 12px; margin: 6px 0 2px; }
.atl-fx .sld { margin: 4px 0 6px; }
.atl-rate { height: 22px; font-size: 10.5px; align-self: center; }
.atl-prices { display: flex; flex-direction: column; }
.atl-price { display: grid; grid-template-columns: 15px minmax(0, 1fr) auto auto 30px; gap: 8px; align-items: center; font-size: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.atl-price .ic { width: 15px; height: 15px; color: var(--text-2); }
.atl-price .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atl-price .mono { font-size: 11px; }
.atl-cnt { text-align: right; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.atl-price.no .atl-cnt { color: var(--text-3); }
.atl-fx > .muted { font-size: 11.5px; margin-top: auto; padding-top: 6px; line-height: 1.4; }
.layer[data-skin="brutal"] .atl-price { border-top: 2px dashed color-mix(in oklab, var(--ink) 35%, transparent); }

/* ---------- packing ---------- */
.atl-items { display: flex; flex-direction: column; gap: 1px; }
.atl-item { display: flex; align-items: center; gap: 10px; padding: 4px 6px; margin: 0 -6px; border-radius: var(--radius-sm); text-align: left; transition: background .2s; }
.atl-item:hover { background: var(--surface-2); }
.atl-item .grow { flex: 1; min-width: 0; }
.atl-item b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.atl-item small { display: block; font-size: 11px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atl-item-ic .ic { width: 15px; height: 15px; color: var(--text-3); }
.atl-chk { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background .25s, border-color .25s, color .25s, transform .3s cubic-bezier(.3, 1.6, .4, 1); }
.atl-chk .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.atl-item.done .atl-chk { background: var(--good); border-color: var(--good); color: var(--bg); transform: scale(1.05); }
.atl-item.done b { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-3); }
.layer[data-skin="swiss"] .atl-chk, .layer[data-skin="swiss"] .atl-item { border-radius: 0; }
.layer[data-skin="nordic"] .atl-chk, .layer[data-skin="glass"] .atl-chk { border-radius: 50%; }
.layer[data-skin="brutal"] .atl-chk { border: 2.5px solid var(--ink); border-radius: 5px; }
.layer[data-skin="brutal"] .atl-item.done .atl-chk { color: #111; }
.layer[data-skin="noir"] .atl-chk { border-radius: 0; transform: rotate(45deg) scale(.8); }
.layer[data-skin="noir"] .atl-item.done .atl-chk { background: var(--accent); border-color: var(--accent); transform: rotate(45deg) scale(.85); }
.layer[data-skin="noir"] .atl-chk .ic { transform: rotate(-45deg); }
.layer[data-skin="dots"] .atl-chk { border-style: dashed; }

/* ---------- tablet ---------- */
@container screen (max-width: 960px) {
  .app-root.atlas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; padding: 22px; }
  .atlas .atl-pass { grid-column: 1 / -1; grid-row: 2; }
  .atlas .atl-tz { grid-column: 1; grid-row: 3; } .atlas .atl-wx { grid-column: 2; grid-row: 3; }
  .atlas .atl-itin { grid-column: 1; grid-row: 4 / span 2; } .atlas .atl-fx { grid-column: 2; grid-row: 4; } .atlas .atl-pack { grid-column: 2; grid-row: 5; }
  .atl-clocks .chip:first-child, .atl-bell { display: none; }
}
/* ---------- phone ---------- */
@container screen (max-width: 560px) {
  .app-root.atlas { grid-template-columns: minmax(0, 1fr); padding: 58px 14px 30px; gap: 12px; }
  .atlas > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .atl-trip, .atl-clocks { display: none; }
  .layer .atlas .atl-pass.card { grid-template-columns: minmax(0, 1fr); -webkit-mask: none; mask: none; }
  .atl-perf { height: 1px; margin: 0 16px; background: repeating-linear-gradient(to right, var(--line-2) 0 5px, transparent 5px 10px); }
  .layer[data-skin="brutal"] .atl-perf { width: auto; height: 3px; margin: 0 14px; background: repeating-linear-gradient(to right, var(--ink) 0 6px, transparent 6px 11px); }
  .layer[data-skin="brutal"] .atl-perf::before, .layer[data-skin="brutal"] .atl-perf::after { display: none; }
  .atl-stub { align-items: stretch; gap: 12px; }
  .atl-stub-in { flex-direction: row; gap: 18px; align-items: center; }
  .atl-stub-f { grid-template-columns: repeat(3, auto); gap: 16px; text-align: left; }
  .atl-stub::before { bottom: 58px; }
  .atl-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .atl-f.pax { grid-column: 1 / -1; }
  .atl-checked { display: none; }
  .atl-code { font-size: 32px; }
  .atl-dur { white-space: normal; text-align: center; }
  .atl-cd { grid-template-columns: minmax(0, 1fr); }
  .atl-stamp { top: 64px; }
  .atl-pass.boarded .atl-stub-in { transform: translate(18px, 6px) rotate(3deg); }
}

/* ---------- watch ---------- */
.app-root.atlas-w { position: absolute; inset: 0; padding: 24px 22px 18px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.aw-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 0 10px; }
.aw-app { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--accent-ink); }
.aw-app .ic { width: 14px; height: 14px; fill: currentColor; stroke: none; transform: rotate(45deg); }
.aw-time { font-size: 12px; color: var(--text-2); }
.aw-face { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: 4px; }
.aw-gate { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 10px; }
.aw-gate .lbl { grid-column: 1 / -1; font-size: 10px; }
.aw-was { font-size: 10px; color: var(--text-2); line-height: 1.2; padding-bottom: 4px; }
.atlas-w .aw-was.moved { color: var(--warn); font-weight: 600; }
.aw-cd { display: flex; flex-direction: column; gap: 3px; }
.aw-cd .lbl { font-size: 10px; }
.aw-seat { display: flex; gap: 18px; padding: 0 0 2px; }
.aw-seat div { display: flex; flex-direction: column; }
.aw-seat .lbl { font-size: 9.5px; } .aw-seat b { font-size: 15px; }
.aw-qr { display: none; width: 128px; height: 128px; margin: 6px auto 0; padding: 6px; border-radius: 12px; background: var(--surface-2); }
.aw-qr svg { width: 100%; height: 100%; display: block; }
.atlas-w.qr .aw-face { display: none; }
.atlas-w.qr .aw-qr { display: block; }
.aw-foot { font-size: 9.5px; text-align: center; }
.atlas-w.boarded .aw-gate .atl-flap { opacity: .45; }
.layer[data-skin="brutal"] .aw-qr { border: 2.5px solid var(--ink); background: #fff; }
.layer[data-skin="brutal"] .aw-qr svg { fill: #111 !important; }

/* ---------- widgets ---------- */
.atlas-wd { position: absolute; inset: 0; padding: 14px; display: flex; gap: 12px; }
.atlas-wd.wd-small { flex-direction: column; gap: 6px; }
.awd-h { display: flex; align-items: center; gap: 6px; }
.awd-h .lbl { font-size: 10.5px; white-space: nowrap; }
.awd-ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); flex: none; }
.awd-ic .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; transform: rotate(45deg); }
.awd-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; margin-top: 2px; }
.awd-route > div { display: flex; flex-direction: column; line-height: 1.05; }
.awd-route > div.r { align-items: flex-end; }
.awd-route b { font-size: 22px; }
.awd-route small { font-size: 10.5px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
.awd-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 3px, transparent 3px 6px); margin-top: -12px; }
.awd-line i { position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; color: var(--accent-ink); }
.awd-line .ic { width: 14px; height: 14px; fill: currentColor; stroke: none; transform: rotate(90deg); }
.atlas-wd .pill { align-self: flex-start; height: 20px; font-size: 10px; padding: 0 8px; }
.awd-sub { font-size: 10.5px; margin-top: auto; line-height: 1.3; }
.awd-l { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.awd-r { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-left: 14px; border-left: 1px solid var(--line); width: 128px; flex: none; }
.awd-r .lbl { font-size: 10px; }
.awd-r .awd-cdl { margin-top: auto; }
.layer[data-skin="brutal"] .awd-ic { border: 2px solid var(--ink); color: #111; }
.layer[data-skin="nordic"] .atl-ev.next .atl-ev-dot { background: var(--accent); color: var(--on-accent); }
