/* Approved prototype layout; production fields and safe-area foundations. */
body.travel-app-body { margin: 0; padding: 0; height: 100dvh; overflow: hidden; font-family: var(--hx-font); }
.tv-page { --safe-top: env(safe-area-inset-top,0px); --safe-right: env(safe-area-inset-right,0px); --safe-bottom: env(safe-area-inset-bottom,0px); --safe-left: env(safe-area-inset-left,0px); --travel-rail-top: var(--hx-child-height); --travel-rail-height: 66px; --travel-rail-clearance: calc(var(--travel-rail-top) + var(--travel-rail-height) + 16px); }
.tv-page *, .tv-page *::before, .tv-page *::after { box-sizing: border-box; letter-spacing: 0; }
:where(.tv-page) button { border: 0; padding: 0; color: inherit; font: inherit; }
:where(.tv-page) a { color: inherit; text-decoration: none; }
.tv-icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-page { --tv-bg: var(--hx-theme-deep); --tv-text: var(--hx-theme-on-deep); --tv-muted: var(--hx-theme-on-deep-muted); --tv-line: #ffffff20; height: 100vh; height: 100dvh; overflow: auto; overflow-x: clip; background: var(--tv-bg); color: var(--tv-text); letter-spacing: 0; font-size: 16px; }
.tv-page button, .tv-page a, .tv-page select { -webkit-tap-highlight-color: transparent; }
.tv-page button { cursor: pointer; background: transparent; }
.tv-page :is(a,button,select,summary):focus-visible { outline: 2px solid var(--hx-theme-on-deep-link); outline-offset: 4px; }
.tv-page h1, .tv-page h2, .tv-page h3, .tv-page p { margin: 0; }
.tv-page select { appearance: none; background: transparent; color: inherit; font: inherit; border: 0; cursor: pointer; border-radius: 0; }
.tv-page option { background: var(--hx-theme-deep); color: var(--hx-theme-on-deep); }
.tv-workspace { margin-left: 0; }
.tv-top-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tv-trip-picker { position: relative; min-width: 0; z-index: 30; }
.tv-trip-trigger { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid #c6d9ce35 !important; border-radius: 6px; color: var(--hx-theme-on-deep); font-size: 14px; background: #ffffff07 !important; }
.tv-trip-trigger > span { overflow-wrap: anywhere; text-align: left; }
.tv-trip-trigger > svg { flex-shrink: 0; }
.tv-trip-trigger > svg:last-child { transition: transform 240ms ease; }
.tv-trip-trigger[aria-expanded=true] > svg:last-child { transform: rotate(180deg); }
.tv-trip-popover { position: absolute; top: calc(100% + 10px); right: 0; width: 380px; max-width: calc(100vw - 32px - var(--safe-left) - var(--safe-right)); max-height: calc(100dvh - 100px - var(--safe-top) - var(--safe-bottom)); overflow-y: auto; padding: 12px 18px 18px; background: linear-gradient(140deg,rgb(var(--hx-theme-deep-rgb) / .980392),rgb(var(--hx-theme-deep-rgb) / .988235)); border: 1px solid #ffffff24; border-radius: 8px; box-shadow: 0 18px 48px #0006; transform-origin: top right; opacity: 0; visibility: hidden; transform: translateY(-18px) scale(.98); transition: transform 640ms cubic-bezier(.22,.7,.18,1),opacity 480ms ease,visibility 640ms; }
.tv-trip-popover.is-open { opacity: 1; visibility: visible; transform: none; }
.tv-picker-heading { padding: 8px 10px 12px; font-size: 13px; color: var(--hx-theme-on-deep-muted); }
.tv-trip-popover [role=option] { width: 100%; padding: 16px 10px; display: flex; text-align: left; gap: 12px; align-items: center; border-top: 1px solid #ffffff18; color: var(--hx-theme-on-deep); border-radius: 4px; }
.tv-trip-popover [role=option] > span { min-width: 0; flex: 1; }
.tv-trip-popover [role=option] > svg { flex-shrink: 0; color: var(--hx-theme-on-deep); }
.tv-trip-popover small { display: block; font-size: 14px; color: var(--hx-theme-on-deep-muted); line-height: 1.6; margin-bottom: 8px; }
.tv-trip-popover strong { display: block; font-weight: 550; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.tv-trip-popover [role=option]:is(:hover,:focus-visible,[aria-selected=true]) { background: #ffffff09; }
.tv-hero { --tv-photo-fade: 96px; position: relative; isolation: isolate; min-height: 366px; padding: 38px max(48px,var(--safe-right)) calc(var(--tv-photo-fade) + 20px) 48px; display: flex; align-items: flex-end; overflow: hidden; background: var(--hx-theme-deep); }
.tv-hero > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; max-height: 440px; object-fit: cover; object-position: center 50%; }
.tv-hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgb(var(--hx-theme-deep-rgb) / .788235),rgb(var(--hx-theme-deep-rgb) / .439216) 48%,rgb(var(--hx-theme-deep-rgb) / .05098) 85%); }
.tv-hero::after { content: ''; position: absolute; z-index: 1; pointer-events: none; inset: auto 0 0; height: var(--tv-photo-fade); background: linear-gradient(180deg,rgb(var(--hx-theme-paper-rgb) / 0),rgb(var(--hx-theme-paper-rgb) / .45) 42%,rgb(var(--hx-theme-paper-rgb) / .87) 76%,var(--hx-theme-paper)); }
.tv-hero-content { width: 100%; max-width: 1180px; margin: 0 auto; animation: tv-arrive 520ms ease-out; }
.tv-page[data-trip-motion="leaving"] :is(.tv-hero,#travel-content) { animation: tv-trip-leave 180ms ease-out both; }
.tv-page[data-trip-motion="leaving"] .tv-content { position: relative; }
.tv-page[data-trip-motion="leaving"] #travel-state { position: absolute; inset: 0 0 auto; z-index: 2; }
.tv-page[data-trip-motion="leaving"] #travel-state .tv-skeleton { display: none; }
.tv-page[data-trip-motion="arriving"] :is(.tv-hero,#travel-content) { animation: tv-trip-enter 520ms ease-out both; }
.tv-cover-arriving { animation: tv-cover-enter 520ms ease-out both; }
@keyframes tv-trip-leave { from { opacity: 1; } to { opacity: 0; } }
@keyframes tv-trip-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tv-cover-enter { from { opacity: 0; } to { opacity: 1; } }
.tv-eyebrow { font-size: 12px; font-weight: 650; color: var(--hx-theme-on-deep-muted); }
.tv-eyebrow span { color: var(--hx-theme-on-deep-muted); }
.tv-hero h1 { font-size: 48px; line-height: 1.18; font-weight: 650; max-width: 970px; margin: 18px 0 16px; text-wrap: balance; overflow-wrap: anywhere; }
.tv-date-range { font-size: 16px; color: var(--hx-theme-on-deep-muted); font-variant-numeric: tabular-nums; }
.tv-date-range > span { margin: 0 10px; color: var(--hx-theme-on-deep-muted); }
.tv-hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 28px; color: var(--hx-theme-on-deep-muted); font-size: 14px; line-height: 1.6; }
.tv-hero-bottom > span { flex-shrink: 0; display: flex; gap: 12px; align-items: center; color: var(--hx-theme-on-deep); }
.tv-hero-bottom i { height: 12px; width: 1px; background: #c1cec46b; }
.tv-reading { --tv-text: var(--hx-theme-ink); --tv-muted: var(--hx-theme-muted); --tv-line: var(--hx-theme-line); --tv-accent: var(--hx-theme-link); background: var(--hx-theme-paper); color: var(--tv-text); }
.tv-reading :is(a,button,select,summary):focus-visible { outline-color: var(--hx-theme-link); }
.tv-reading option { background: var(--hx-theme-paper); color: var(--hx-theme-ink); }
.tv-reading .tv-eyebrow { color: var(--tv-muted); }
.tv-content { max-width: 1240px; padding: 0 48px; margin: auto; }
.tv-viewbar { min-height: 70px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--tv-line); gap: 12px; }
.tv-tabs { display: flex; gap: 32px; }
.tv-tabs button { min-height: 70px; position: relative; font-size: 16px; color: var(--tv-muted); white-space: nowrap; }
.tv-tabs button[aria-selected=true] { color: var(--tv-text); font-weight: 650; }
.tv-tabs button[aria-selected=true]::after { content: ''; position: absolute; height: 2px; background: var(--tv-accent); bottom: -1px; inset-inline: 0; }
.tv-summary-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--tv-muted); white-space: nowrap; }
.tv-summary-toggle svg { transition: transform 180ms; }
.tv-disclosure { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 680ms cubic-bezier(.22,.7,.18,1),visibility 680ms; }
.tv-disclosure.is-open { grid-template-rows: 1fr; visibility: visible; }
.tv-disclosure-clip { min-height: 0; overflow: hidden; }
.tv-disclosure-content { opacity: 0; transform: translateY(-16px); transition: opacity 400ms ease,transform 680ms cubic-bezier(.22,.7,.18,1); }
.tv-disclosure.is-open > .tv-disclosure-clip > .tv-disclosure-content { opacity: 1; transform: none; }
.tv-panels { position: relative; overflow: clip; }
.tv-view-panel { display: none; min-width: 0; }
.tv-view-panel.is-active { display: block; position: relative; }
.tv-view-panel.is-leaving { display: block; position: absolute; inset: 0 0 auto; pointer-events: none; }
.tv-view-panel.is-active.is-moving { animation: tv-panel-in 760ms cubic-bezier(.22,.7,.18,1); }
.tv-view-panel.is-leaving.is-moving { animation: tv-panel-out 760ms cubic-bezier(.22,.7,.18,1) both; }
@keyframes tv-panel-in { from { transform: translateX(calc(var(--tv-slide-direction) * 100%)); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes tv-panel-out { from { transform: none; opacity: 1; } to { transform: translateX(calc(var(--tv-slide-direction) * -100%)); opacity: 0; } }
.tv-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0; border-bottom: 1px solid var(--tv-line); }
.tv-summary h2 { font-size: 20px; margin-bottom: 16px; }
.tv-page dl { margin: 0; }
.tv-page dl > div { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--tv-line); line-height: 1.7; font-size: 16px; }
.tv-page dt { color: var(--tv-muted); }
.tv-page dd { margin: 0; overflow-wrap: anywhere; }
.tv-flight { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--tv-line); }
.tv-flight > svg { color: var(--tv-accent); flex-shrink: 0; margin-top: 4px; }
.tv-flight strong { font-weight: 550; }
.tv-flight p { margin-top: 8px; color: var(--tv-muted); font-size: 14px; }
.tv-date-rail { display: flex; gap: 8px; position: sticky; top: var(--hx-child-height); z-index: 20; height: 66px; padding: 8px 0; background: var(--hx-theme-paper); border-bottom: 1px solid var(--tv-line); align-items: center; }
.tv-date-strip { display: flex; position: relative; flex: 1; min-width: 0; gap: 8px; overflow: auto; scrollbar-width: none; }
.tv-date-arrow,.tv-date-picker-button { display: grid; place-items: center; flex: 0 0 44px; height: 44px; color: var(--tv-accent); border-radius: 4px; }
.tv-date-arrow:disabled,.tv-date-picker-button:disabled { opacity: .25; cursor: default; }
.tv-date-arrow:hover:not(:disabled),.tv-date-picker-button:hover:not(:disabled) { background: var(--hx-theme-selected-bg); }
.tv-date-picker-button { border-left: 1px solid var(--tv-line) !important; border-radius: 0; }
.tv-date-strip::-webkit-scrollbar { display: none; }
.tv-date-strip button { display: flex; flex: 0 0 73px; min-height: 48px; gap: 4px; align-items: center; justify-content: center; flex-direction: column; color: var(--tv-muted); border-radius: 4px; transition: background 160ms,color 160ms; }
.tv-date-strip button > span { font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 550; }
.tv-date-strip button > small { font-size: 12px; }
.tv-date-strip button[aria-current=date] { background: var(--hx-theme-selected-bg); color: var(--hx-theme-selected-ink); box-shadow: inset 0 -2px var(--hx-theme-link); }
.tv-date-strip button:hover:not([aria-current]) { background: var(--hx-theme-selected-bg); color: var(--tv-text); }
.tv-filter-row { display: flex; justify-content: space-between; align-items: center; min-height: 70px; font-size: 14px; color: var(--tv-muted); }
.tv-filter-row label { display: flex; align-items: center; gap: 8px; }
.tv-filter-row select { min-height: 44px; font-size: 14px; }
.tv-day { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 28px; padding: 30px 0 36px; border-top: 1px solid var(--tv-line); }
.tv-day-heading { padding-top: 0; }
.tv-day-heading > span { font-size: 12px; color: var(--tv-muted); font-weight: 650; }
.tv-day-heading h2 { font-size: 28px; font-weight: 550; line-height: 1.2; margin: 8px 0; font-variant-numeric: tabular-nums; }
.tv-day-heading > p { font-size: 14px; color: var(--tv-muted); }
.tv-day-theme { font-size: 30px; font-weight: 700; color: var(--hx-theme-link); line-height: 1.4; padding-bottom: 20px; text-wrap: balance; overflow-wrap: anywhere; }
.tv-day-body { display: grid; gap: 20px; }
.tv-day-body.has-reminders { grid-template-columns: minmax(0,1fr) 240px; gap: 40px; }
.tv-schedule { min-width: 0; }
.tv-day-body.has-reminders > .tv-schedule { grid-column: 1; grid-row: 1; }
.tv-reminders { align-self: start; color: var(--tv-text); border-block: 1px solid var(--hx-theme-line); background: var(--hx-theme-selected-bg); padding-inline: 16px; }
.tv-day-body.has-reminders > .tv-reminders { grid-column: 2; grid-row: 1; }
.tv-reminder-toggle { display: flex; width: 100%; text-align: left; align-items: center; gap: 10px; min-height: 52px; font-size: 15px; font-weight: 600; color: var(--hx-theme-ink); }
.tv-reminder-toggle small { margin-left: 6px; font-size: 13px; color: var(--tv-muted); }
.tv-reminder-toggle > svg:last-child { margin-left: auto; transition: transform 240ms; }
.tv-reminder-toggle[aria-expanded=true] > svg:last-child { transform: rotate(180deg); }
.tv-reminders ul { padding: 0; margin: 0; list-style: none; }
.tv-reminders li { padding: 16px 0; border-top: 1px solid var(--hx-theme-line); }
.tv-reminders h3 { font-size: 16px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
.tv-reminders p { font-size: 14px; line-height: 1.7; margin-top: 8px; color: var(--tv-muted); overflow-wrap: anywhere; }
.tv-event { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 16px; border-top: 1px solid var(--tv-line); padding: 16px 0; }
.tv-event-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.tv-time { color: var(--tv-accent); font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 650; line-height: 27px; white-space: nowrap; }
.tv-category { color: var(--tv-muted); font-size: 14px; line-height: 1.5; }
.tv-event h3 { font-size: 18px; line-height: 27px; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.tv-page .tv-event-facts > div { grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 2px 0; border: 0; font-size: 16px; line-height: 1.6; }
.tv-event-facts dt { font-size: 14px; padding-top: 2px; color: var(--tv-muted); }
.tv-event-facts dd { color: var(--hx-theme-ink); }
.tv-map { width: fit-content; min-height: 44px; display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 14px; color: var(--tv-accent); transition: color 150ms; }
.tv-map:hover { text-decoration: underline; }
.tv-today,.tv-info { padding: 42px 0 80px; min-height: 400px; }
.tv-today h2,.tv-info h2 { font-size: 32px; font-weight: 550; margin: 16px 0 24px; line-height: 1.4; }
.tv-today > p:not(.tv-eyebrow) { color: var(--tv-muted); line-height: 1.75; }
.tv-next { padding: 28px 0; margin-top: 22px; border-block: 1px solid var(--tv-line); }
.tv-next > span { font-size: 14px; color: var(--tv-muted); }
.tv-next h3 { font-size: 22px; font-weight: 550; margin-top: 12px; }
.tv-inline-action { min-height: 48px; display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; border-bottom: 1px solid var(--hx-theme-control-border) !important; }
.tv-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; }
.tv-info-grid h3 { font-size: 22px; margin-bottom: 14px; }
.tv-empty { padding: 40px 0; }
.tv-empty button { display: block; margin-top: 16px; text-decoration: underline; min-height: 44px; }
.tv-footer { border-top: 1px solid var(--tv-line); padding: 32px 0 calc(32px + var(--safe-bottom)); display: flex; justify-content: space-between; align-items: center; color: var(--tv-muted); font-size: 13px; }
.tv-footer a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--tv-text); font-weight: 650; }
.tv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tv-back-top { position: fixed; z-index: 30; right: calc(18px + var(--safe-right)); bottom: calc(18px + var(--safe-bottom)); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--hx-theme-control-border); background: var(--hx-theme-link) !important; color: white; box-shadow: 0 4px 14px #0002; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 400ms,transform 640ms,visibility 640ms; }
.tv-back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.tv-back-top:hover { background: var(--hx-theme-link) !important; }
.tv-page:has(dialog[open]) { overflow-y: hidden; }
.tv-date-dialog { position: fixed; inset: 0; margin: auto; width: min(520px,calc(100vw - 32px - var(--safe-left) - var(--safe-right))); max-height: calc(100dvh - 32px - var(--safe-top) - var(--safe-bottom)); padding: 24px; border: 1px solid var(--hx-theme-control-border); border-radius: 8px; background: var(--hx-theme-surface); color: var(--hx-theme-ink); overflow-y: auto; }
.tv-date-dialog[open] { animation: tv-date-open 480ms cubic-bezier(.22,.7,.18,1); }
.tv-date-dialog::backdrop { background: #080e1499; backdrop-filter: blur(5px); }
.tv-date-dialog header { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; margin-bottom: 24px; }
.tv-date-dialog h2 { font-size: 24px; font-weight: 650; }
.tv-date-dialog p { font-size: 14px; color: var(--hx-theme-muted); margin-top: 8px; line-height: 1.6; }
.tv-date-dialog header button { flex: 0 0 44px; height: 44px; display: grid; place-items: center; }
.tv-date-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.tv-date-grid button { min-height: 68px; padding: 8px 4px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid var(--hx-theme-line); border-radius: 4px; }
.tv-date-grid span { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tv-date-grid small { font-size: 13px; }
.tv-date-grid button[aria-pressed=true] { background: var(--hx-theme-link); color: white; border-color: var(--hx-theme-link); }
.tv-date-grid button:hover:not([aria-pressed=true]) { background: var(--hx-theme-selected-bg); }
.tv-date-dialog :is(button):focus-visible { outline-color: var(--hx-theme-link); }
@keyframes tv-date-open { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tv-arrive { from { opacity: .65; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1180px) {

 .tv-workspace { margin-left: 0; }

 .tv-hero { min-height: 336px; padding-inline: calc(32px + var(--safe-left)) calc(32px + var(--safe-right)); }
 .tv-hero h1 { font-size: 40px; }
 .tv-content { padding-inline: calc(32px + var(--safe-left)) calc(32px + var(--safe-right)); }
 .tv-day { grid-template-columns: 84px minmax(0,1fr); gap: 20px; }
 .tv-summary { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 1180px) { .tv-day-body.has-reminders { grid-template-columns: minmax(0,1fr); gap: 18px; } .tv-day-body.has-reminders > .tv-reminders,.tv-day-body.has-reminders > .tv-schedule { grid-column: 1; grid-row: auto; } }
@media (max-width: 1180px) and (orientation: portrait) { .tv-day { grid-template-columns: 1fr; gap: 20px; } .tv-day-heading { display: flex; align-items: baseline; gap: 14px; } .tv-day-heading h2 { margin: 0; } }
@media (max-width: 760px) { .tv-trip-trigger > svg:first-child { display: none; } .tv-top-actions { gap: 4px; } .tv-trip-trigger { gap: 6px; padding-inline: 8px; font-size: 13px; }
 .tv-hero { --tv-photo-fade: 64px; min-height: 280px; padding: 26px calc(22px + var(--safe-right)) calc(var(--tv-photo-fade) + 18px) calc(22px + var(--safe-left)); }
 .tv-hero h1 { font-size: 32px; margin-block: 14px; } .tv-date-range { font-size: 14px; } .tv-date-range > span { margin: 0 4px; }
 .tv-hero-bottom { margin-top: 20px; gap: 10px; flex-direction: column; align-items: flex-start; font-size: 13px; }
 .tv-content { padding-inline: calc(22px + var(--safe-left)) calc(22px + var(--safe-right)); }
 .tv-viewbar,.tv-tabs button { min-height: 60px; } .tv-tabs { gap: 16px; } .tv-tabs button { font-size: 15px; } .tv-summary-toggle { font-size: 14px; gap: 4px; }
 .tv-date-rail { height: 64px; gap: 2px; } .tv-date-strip { gap: 4px; } .tv-date-strip button { flex-basis: 61px; }
 .tv-filter-row { min-height: 58px; } .tv-day { grid-template-columns: 1fr; gap: 20px; padding-bottom: 30px; }
 .tv-day-heading { display: flex; align-items: baseline; gap: 12px; } .tv-day-heading h2 { font-size: 28px; margin: 0; } .tv-day-heading p { margin-left: auto; }
 .tv-day-theme { font-size: 26px; padding-bottom: 16px; }
 .tv-event { grid-template-columns: 68px minmax(0,1fr); gap: 12px; padding: 14px 0; }
 .tv-event h3 { font-size: 17px; }
 .tv-date-dialog { padding: 18px; }
 .tv-info-grid { grid-template-columns: 1fr; gap: 36px; } .tv-today h2,.tv-info h2 { font-size: 26px; }
}
@media (orientation: landscape) and (max-height: 560px) {
 .tv-hero { --tv-photo-fade: 40px; min-height: 166px; padding-block: 14px calc(var(--tv-photo-fade) + 14px); } .tv-hero h1 { font-size: 30px; margin-block: 8px; max-width: 800px; }
 .tv-hero-bottom,.tv-status { display: none; }
 .tv-viewbar,.tv-tabs button { min-height: 48px; } .tv-date-rail { height: 58px; } .tv-filter-row { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .tv-page *, .tv-page *::before, .tv-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .tv-view-panel.is-leaving { display: none; } }

.tv-date-rail { top: var(--travel-rail-top); height: var(--travel-rail-height); }
.tv-day { scroll-margin-top: var(--travel-rail-clearance); }
.tv-reading { min-height: calc(100dvh - var(--safe-top)); }
.tv-trip-trigger { max-width: 100%; }
.tv-top-actions { max-width: 65%; }
.tv-event-body, .tv-day-events, .tv-info-grid > section, .tv-summary > div { min-width: 0; }
.tv-page [data-field] { white-space: pre-wrap; overflow-wrap: anywhere; }
.tv-page .tv-time { white-space: normal; overflow-wrap: anywhere; }
.tv-reminders .tv-event { display: block; }
.tv-reminders .tv-event:first-child { border-top: 0; }
.tv-reminders .tv-time { font-size: 14px; }
.tv-reminders .tv-event h3 { font-size: 16px; }
.tv-reminders .tv-event-facts > div { display: block; font-size: 14px; padding-block: 4px; }
.tv-reminders .tv-event-facts dt { display: inline; margin-right: 8px; }
.tv-reminders .tv-event-facts dd { display: inline; }
.tv-summary h3 { font-size: 18px; margin: 24px 0 12px; }
.tv-flight { display: block; }
.tv-flight h3 { margin: 0 0 12px; }
.tv-page .tv-info-item { padding-block: 24px; border-bottom: 1px solid var(--tv-line); }
.tv-info-item h4 { font-size: 18px; margin: 0 0 12px; }
.tv-page .tv-quick-actions { display: flex; flex-wrap: wrap; gap: 16px 32px; padding-block: 24px; border-block: 1px solid var(--tv-line); margin-block: 24px; }
.tv-quick-actions > div { min-width: 0; max-width: 100%; display: block !important; }
.tv-quick-actions dt { font-size: 14px; margin-bottom: 8px; }
.tv-quick-actions .tv-quick-notes { flex-basis: 100%; }
.tv-page .tv-text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--tv-accent,var(--hx-theme-link)); text-decoration: underline; overflow-wrap: anywhere; }
.tv-state { padding: 28px 0; }
.tv-state h2 { font-size: 24px; }
.tv-state p { line-height: 1.7; margin-block: 16px; }
.tv-state button { min-height: 44px; text-decoration: underline; }
.tv-skeleton { height: 60px; margin: 16px 0; background: var(--hx-theme-selected-bg); }
.tv-page [hidden] { display: none !important; }
.tv-status { margin-top: 12px !important; font-size: 14px; color: var(--hx-theme-on-deep-muted); }
.tv-day-heading { flex-wrap: wrap; }
.tv-date-dialog { top: var(--safe-top); right: var(--safe-right); bottom: var(--safe-bottom); left: var(--safe-left); }
.tv-date-dialog h2 { color: var(--hx-theme-ink); }
.tv-date-grid button { overflow-wrap: anywhere; }
.tv-summary-toggle[aria-expanded=true] svg { transform: rotate(180deg); }
.tv-page button:active:not(:disabled), .tv-page .tv-text-link:active { opacity: .7; }
@media (max-width: 760px) { .tv-page { --travel-rail-height: 64px; } .tv-page dl > div { grid-template-columns: 72px minmax(0,1fr); gap: 12px; } .tv-page .tv-event-facts > div { grid-template-columns: 32px minmax(0,1fr); gap: 10px; } }
@media (orientation: landscape) and (max-height: 560px) { .tv-page { --travel-rail-height: 58px; } }
.travel-app-body { --hx-child-bg: var(--hx-theme-deep); }
