/* App presentation. Existing backend contracts and operational detail modules are retained. */
#tkops-app.tkops-app {
    --ops-sidebar: 176px; --ops-bg: var(--os-bg); --ops-card: var(--os-surface);
    --ops-panel: var(--os-surface); --ops-text: var(--os-text); --ops-soft: var(--os-muted);
    --ops-line: var(--os-line); --ops-red: var(--os-accent); --ops-green: #48a57a;
    padding: 0; color: var(--os-text); background: var(--os-bg);
}
#tkops-app .tkops-top { display: none; }
#tkops-app .tkops-layout { position: absolute; inset: var(--os-status-height) 0 0; display: grid; grid-template-columns: var(--ops-sidebar) minmax(0, 1fr); overflow: hidden; }
#tkops-app .tkops-sidebar { display: flex; flex-direction: column; gap: 5px; padding: 30px 13px 35px; min-width: 0; overflow-y: auto; background: var(--os-bg); border-right: 1px solid var(--os-line); }
#tkops-app .tkops-brand { font-size: 25px; font-weight: 700; letter-spacing: -.055em; padding: 0 13px 29px; }
#tkops-app .tkops-brand span { font-weight: 350; color: var(--os-muted); }
#tkops-app .tkops-nav { flex: none; width: 100%; display: block; min-height: 42px; padding: 10px 13px; border-radius: 12px; background: transparent; border: 0; color: var(--os-muted); text-align: left; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .18s, color .18s; }
#tkops-app .tkops-nav:hover { color: var(--os-text); background: var(--os-elevated); }
#tkops-app .tkops-nav.active { color: var(--os-text); background: var(--os-surface); box-shadow: inset 0 0 0 1px var(--os-line); }
#tkops-app .tkops-nav[data-tkops-tab='flights'].active { border-left: 2px solid var(--os-accent); }
#tkops-app .tkops-sidebottom { margin-top: auto; padding: 40px 13px 10px; display: grid; gap: 14px; }
#tkops-app .tkops-sidebottom small { font-size: 7px; font-weight: 500; color: var(--os-muted); letter-spacing: .13em; }
#tkops-app .tkops-sidebar-airline-logo { width: 108px; max-width: 100%; object-fit: contain; opacity: .8; }
#tkops-app .tkops-main { min-height: 0; min-width: 0; overflow: auto; padding: 28px clamp(18px, 3.1cqw, 44px) 65px; background: var(--os-bg); scrollbar-width: thin; }
#tkops-app .tkops-panel { max-width: none; }
#tkops-app .tkops-back { color: var(--os-text); background: var(--os-surface); border: 1px solid var(--os-line); padding: 9px 13px; border-radius: 10px; font-size: 11px; cursor: pointer; }
#tkops-app .tkops-empty { border: 1px dashed var(--os-line); background: var(--os-surface); color: var(--os-muted); padding: 35px 22px; border-radius: 18px; font-size: 12px; line-height: 1.8; }
.flt-v3-connection[data-connected='true'] { color: #8eae9d; }
#tkops-app #tkops-flight-summary { width: 100%; margin: 0 0 22px; color: var(--os-text); }
.flt-v3-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.flt-v3-identity { min-width: 0; }
.flt-v3-eyebrow { color: var(--os-muted); font-size: 8px; font-weight: 500; letter-spacing: .17em; }
.flt-v3-title { font-size: clamp(29px, 3.3cqw, 46px); line-height: 1.08; font-weight: 500; letter-spacing: -.055em; margin: 10px 0 9px; }
.flt-v3-subtitle { font-size: 11px; line-height: 1.6; color: var(--os-muted); max-width: 330px; margin: 0; }
.flt-v3-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; padding-top: 4px; max-width: 250px; }
.flt-v3-connection { border-radius: 20px; padding: 6px 9px; width: fit-content; margin-left: auto; display: inline-flex; line-height: 1.2; background: #7c8a9f0e; flex: 0 0 auto; font-size: 9px; text-align: right; color: var(--os-muted); margin-bottom: 8px; }
.flt-v3-action, .flt-v3-details { min-height: 34px; padding: 9px 12px; border: 1px solid var(--os-line); border-radius: 10px; background: var(--os-surface); color: var(--os-text); font-size: 10px; font-weight: 500; cursor: pointer; transition: transform .15s, background .15s; }
.flt-v3-action:hover, .flt-v3-details:hover { background: var(--os-elevated); }
.flt-v3-action:active, .flt-v3-details:active { transform: scale(.97); }
.flt-v3-action-primary { background: var(--os-text); color: var(--os-bg); border-color: transparent; }
.flt-v3-action-primary:hover { background: #c4c8d0; color: #111; }
.flt-v3-focus { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(190px, 1fr); border: 1px solid var(--os-line); border-radius: 22px; background: var(--os-surface); overflow: hidden; }
.flt-v3-focus-left { position: relative; min-width: 0; padding: 25px 27px 21px; }
.flt-v3-overline { display: inline-block; color: var(--os-muted); font-size: 8px; font-weight: 600; letter-spacing: .15em; }
.flt-v3-route { display: block; font-size: clamp(26px, 3.8cqw, 51px); font-weight: 500; letter-spacing: -.055em; line-height: 1.2; margin: 13px 0 8px; white-space: nowrap; }
.flt-v3-route-sub { font-size: 10px; line-height: 1.6; color: var(--os-muted); margin: 0; }
.flt-v3-focus-right { display: grid; grid-template-columns: 1fr; align-content: center; gap: 22px; padding: 27px; border-left: 1px solid var(--os-line); background: #89919c05; }
.flt-v3-next { display: flex; flex-direction: column; gap: 8px; }
.flt-v3-next > span { font-size: 8px; letter-spacing: .11em; color: var(--os-muted); }
.flt-v3-next > strong { font-size: 18px; font-weight: 500; letter-spacing: -.03em; }
.flt-v3-status > strong { font-size: 12px; color: #6eb58d; }
.flt-v3-details { width: fit-content; }
.flt-v3-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.flt-v3-metric { display: flex; flex-direction: column; gap: 12px; padding: 18px 17px; border: 1px solid var(--os-line); border-radius: 16px; background: var(--os-surface); min-width: 0; }
.flt-v3-metric > span { font-size: 9px; color: var(--os-muted); }
.flt-v3-metric > strong { font-size: 24px; line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.flt-v3-guidance { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 7px 3px; color: var(--os-muted); }
.flt-v3-guidance-dot { font-size: 17px; color: var(--os-text); }
.flt-v3-guidance-copy { display: flex; flex-direction: column; gap: 4px; }
.flt-v3-guidance-copy strong { font-size: 10px; color: var(--os-text); font-weight: 500; }
.flt-v3-guidance-copy span { font-size: 9px; }
.flt-v3-visible { margin-left: auto; flex: none; font-size: 9px; }
#tkops-app .tkops-flights-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 17px; }
#tkops-app .tkops-flights-filter-group { display: flex; align-items: center; gap: 3px; background: var(--os-surface); border: 1px solid var(--os-line); padding: 4px; border-radius: 12px; }
#tkops-app .tkops-flights-filter-group button { min-height: 29px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--os-muted); font-size: 10px; cursor: pointer; }
#tkops-app .tkops-flights-filter-group button.active { background: var(--os-elevated); color: var(--os-text); box-shadow: 0 1px 4px #0001; }
#tkops-app .tkops-flights-search { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 130px; border: 1px solid var(--os-line); border-radius: 12px; padding: 10px 12px; background: transparent; color: var(--os-muted); font-size: 12px; }
#tkops-app .tkops-flights-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--os-text); font-size: 10px; }
#tkops-app .tkops-flights-search input::placeholder { color: var(--os-muted); }
#tkops-app .tkops-booking-card { display: block; width: 100%; padding: 21px 24px 16px; margin-bottom: 12px; border: 1px solid var(--os-line); border-radius: 19px; background: var(--os-surface); color: var(--os-text); text-align: left; cursor: pointer; box-shadow: none; transition: border-color .18s, transform .18s; }
#tkops-app .tkops-booking-card:hover { border-color: #9199a84a; transform: translateY(-1px); }
#tkops-app .tkops-booking-card.is-current { border-left: 2px solid var(--os-accent); }
#tkops-app .tkops-booking-card.is-checked-in { border-color: #448c6859; }
#tkops-app .tkops-booking-top { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
#tkops-app .tkops-booking-number { font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
#tkops-app .tkops-badge { display: inline-block; padding: 4px 7px; border-radius: 5px; background: var(--os-elevated); color: var(--os-muted); font-size: 7px; font-weight: 500; letter-spacing: .05em; }
#tkops-app .tkops-badge.checked-in { color: #7ac496; background: #3ca36b18; }
#tkops-app .tkops-booking-chevron { margin-left: auto; color: var(--os-muted); font-size: 21px; }
#tkops-app .tkops-booking-route { display: grid; grid-template-columns: minmax(0, 1fr) 74px 18px 74px; grid-template-rows: auto auto; align-items: center; column-gap: 15px; row-gap: 7px; }
#tkops-app .tkops-booking-route-code { grid-column: 1; grid-row: 1; font-size: clamp(22px, 2.7cqw, 37px); letter-spacing: -.045em; font-weight: 500; }
#tkops-app .tkops-booking-callsign { grid-column: 1; grid-row: 2; font-size: 9px; color: var(--os-muted); }
#tkops-app .tkops-booking-time-block { grid-row: 1 / 3; }
#tkops-app .tkops-booking-time-label { font-size: 8px; color: var(--os-muted); font-weight: 500; }
#tkops-app .tkops-booking-time-value { font-size: 16px; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
#tkops-app .tkops-route-arrow { grid-row: 1 / 3; font-size: 15px; color: var(--os-muted); }
#tkops-app .tkops-booking-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--os-line); font-size: 8px; color: var(--os-muted); }
#tkops-app .tkops-pulse-banner { background: transparent; border: 0; padding: 0 2px; color: var(--os-muted); font-size: 9px; margin: 8px 0; }
#tkops-app .tkops-pulse-banner.connected { color: #74b890; }

/* Route Lens is a planned-route visualization. It never renders a fabricated live position. */
.crew-route-lens { border-top: 1px solid var(--os-line); padding-top: 8px; margin-top: 19px; }
.crew-route-lens-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--os-muted); font-size: 8px; }
.crew-route-lens-head strong { font-weight: 500; letter-spacing: .05em; }
.crew-route-button { background: transparent; border: 0; color: var(--os-text); font-size: 8px; padding: 6px 0 6px 10px; cursor: pointer; }
.crew-route-canvas { display: block; width: 100%; height: 105px; touch-action: pan-y; }
.crew-route-caption { margin: 0; font-size: 8px; color: var(--os-muted); line-height: 1.5; }
.os-route-panel { width: min(760px, 95%); }
.os-route-panel .crew-route-canvas { height: min(40cqh, 350px); touch-action: none; cursor: grab; }
.os-route-panel .crew-route-canvas:active { cursor: grabbing; }
.crew-route-tools { display: flex; gap: 5px; margin: 0 20px 12px; }
.crew-route-tools button { background: transparent; border: 1px solid var(--os-line); border-radius: 8px; color: var(--os-muted); padding: 7px 12px; cursor: pointer; font-size: 11px; }
.crew-route-tools button[aria-pressed='true'] { color: var(--os-text); background: var(--os-elevated); }
.crew-route-stats { display: flex; gap: 30px; padding: 0 24px 20px; font-size: 10px; color: var(--os-muted); }
.crew-route-stats strong { display: block; font-size: 16px; color: var(--os-text); margin-top: 6px; font-weight: 500; }

/* Weather is presented from measured METAR data, with the original station persistence. */
#weather-app { background: var(--os-bg); color: var(--os-text); padding: 0; }
#weather-app .weather-ios-shell { height: 100%; display: grid; grid-template-columns: 238px minmax(0, 1fr); padding-top: var(--os-status-height); overflow: hidden; }
#weather-app .weather-ios-sidebar { padding: 30px 19px; min-width: 0; overflow: auto; background: var(--os-bg); border-right: 1px solid var(--os-line); }
#weather-app .weather-ios-sidebar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 30px; }
#weather-app .weather-ios-time-label { display: block; color: var(--os-muted); font-size: 8px; letter-spacing: .15em; }
#weather-app .weather-ios-sidebar h2 { margin: 7px 0 0; font-size: 27px; font-weight: 500; letter-spacing: -.045em; }
#weather-app .weather-add-button { width: 31px; height: 31px; padding: 0; border: 1px solid var(--os-line); border-radius: 50%; background: var(--os-surface); color: var(--os-text); font-size: 22px; cursor: pointer; }
#weather-app .weather-sidebar-section-label { color: var(--os-muted); font-size: 8px; letter-spacing: .13em; margin: 20px 5px 10px; }
#weather-app .weather-station-list { display: grid; gap: 8px; }
#weather-app .weather-station-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px; min-height: 62px; width: 100%; background: transparent; border: 1px solid var(--os-line); border-radius: 14px; color: var(--os-text); text-align: left; cursor: pointer; }
#weather-app .weather-station-item.active { background: var(--os-surface); border-left: 2px solid var(--os-accent); }
#weather-app .weather-station-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
#weather-app .weather-station-main strong { font-size: 12px; font-weight: 500; }
#weather-app .weather-station-main small { font-size: 9px; color: var(--os-muted); }
#weather-app .weather-station-mini { color: var(--os-muted); font-size: 12px; margin-left: auto; }
#weather-app .weather-station-remove { color: var(--os-muted); font-size: 16px; padding: 5px; }
#weather-app .weather-station-limit { font-size: 9px; color: var(--os-muted); margin: 19px 5px; line-height: 1.7; }
#weather-app .weather-ios-detail { position: relative; padding: 23px 30px 60px; overflow: auto; min-width: 0; background: var(--os-bg); }
#weather-app .weather-ios-home { background: transparent; border: 0; padding: 7px 0; color: var(--os-muted); cursor: pointer; font-size: 11px; }
#weather-app .weather-detail-loading { position: absolute; top: 28px; right: 30px; color: var(--os-muted); font-size: 10px; pointer-events: none; }
#weather-app .weather-detail-content { max-width: 1000px; margin: 0 auto; }
#weather-app .weather-detail-hero { text-align: center; padding: 27px 10px 31px; }
#weather-app .weather-detail-place { font-size: 15px; font-weight: 500; }
#weather-app .weather-detail-place small { margin-left: 7px; color: var(--os-muted); font-size: 10px; font-weight: 400; }
#weather-app .weather-detail-temp { font-size: clamp(65px, 9.2cqw, 130px); letter-spacing: -.065em; font-weight: 300; line-height: 1.18; }
#weather-app .weather-detail-condition { font-size: 16px; font-weight: 500; margin-top: 8px; }
#weather-app .weather-detail-sub { color: var(--os-muted); font-size: 11px; margin-top: 8px; }
#weather-app .weather-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#weather-app .weather-metric { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 18px; min-height: 101px; border: 1px solid var(--os-line); border-radius: 18px; background: var(--os-surface); }
#weather-app .weather-metric > span { color: var(--os-muted); font-size: 8px; letter-spacing: .12em; font-weight: 500; }
#weather-app .weather-metric > strong { color: var(--os-text); font-size: clamp(17px, 2.3cqw, 30px); font-weight: 500; letter-spacing: -.04em; }
#weather-app .weather-metar-section { border: 1px solid var(--os-line); border-radius: 19px; background: var(--os-surface); padding: 21px; margin-top: 14px; }
#weather-app .weather-metar-heading, #weather-app .weather-metar-heading > div { display: flex; align-items: center; gap: 10px; }
#weather-app .weather-metar-heading { justify-content: space-between; margin-bottom: 15px; }
#weather-app .weather-metar-heading strong { font-size: 12px; font-weight: 500; }
#weather-app .weather-metar-heading > span { font-size: 10px; color: var(--os-muted); }
#weather-app .weather-category-badge { border-radius: 6px; padding: 4px 7px; font-size: 8px; background: #36945d1f; color: #7bb18e; }
#weather-app .weather-category-badge[data-category='IFR'], #weather-app .weather-category-badge[data-category='LIFR'] { color: #ef8698; background: #c514361d; }
#weather-app .weather-metar-raw { font: 11px/1.9 ui-monospace, Consolas, monospace; padding: 15px; color: var(--os-text); border: 1px solid var(--os-line); border-radius: 12px; background: var(--os-bg); overflow-wrap: anywhere; user-select: text; }
#weather-app .weather-metar-breakdown { display: grid; gap: 0; margin-top: 13px; }
#weather-app .weather-metar-row { display: flex; gap: 17px; border-bottom: 1px solid var(--os-line); padding: 9px 0; font-size: 10px; color: var(--os-muted); line-height: 1.6; }
#weather-app .weather-metar-row strong { flex: 0 0 95px; color: var(--os-text); font-size: 10px; font-weight: 500; }
#weather-app .weather-dialog-backdrop { position: absolute; z-index: 170; inset: 0; display: grid; place-items: center; padding: 25px; background: #080b1366; backdrop-filter: blur(10px); }
#weather-app .weather-dialog { position: relative; width: min(380px, 100%); border: 1px solid var(--os-line); border-radius: 24px; background: var(--os-surface); padding: 27px; box-shadow: 0 20px 60px #0006; }
#weather-app .weather-dialog-close { position: absolute; top: 14px; right: 14px; border: 0; border-radius: 50%; background: var(--os-elevated); color: var(--os-text); width: 25px; height: 25px; cursor: pointer; }
#weather-app .weather-dialog h3 { font-size: 22px; font-weight: 500; letter-spacing: -.04em; margin: 15px 0 10px; }
#weather-app .weather-dialog p { color: var(--os-muted); font-size: 11px; line-height: 1.7; }
#weather-app .weather-dialog input { width: 100%; color: var(--os-text); background: var(--os-bg); border: 1px solid var(--os-line); border-radius: 11px; padding: 13px; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; margin: 10px 0; }
#weather-app .weather-add-error { color: #ef8698; font-size: 10px; line-height: 1.6; }
#weather-app .weather-dialog-submit { width: 100%; border: 0; padding: 12px; margin-top: 16px; border-radius: 11px; background: var(--os-text); color: var(--os-bg); font-size: 12px; cursor: pointer; }

/* SimBrief, ATIS, profile and document shells use the same quiet materials. */
#flight-app .flight-hero { border: 1px solid var(--os-line); border-radius: 22px; background: var(--os-surface); box-shadow: none; padding: 26px; grid-template-columns: 130px minmax(0, 1fr); }
#flight-app .route-display { grid-template-columns: 1fr auto 1fr; }
#flight-app .route-display strong { color: var(--os-text); font-size: clamp(27px, 4cqw, 51px); font-weight: 500; letter-spacing: -.045em; }
#flight-app .flight-number-area strong { font-size: 27px; color: var(--os-text); }
#flight-app .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-content .info-card, .app-content .route-card, .app-content .weather-card { border: 1px solid var(--os-line); border-radius: 18px; background: var(--os-surface); box-shadow: none; color: var(--os-text); }
.app-content .data-row { border-color: var(--os-line); }
.app-content .data-row span, .app-content .card-title { color: var(--os-muted); }
.app-content .data-row strong { color: var(--os-text); font-weight: 500; }
.app-content .route-card p { color: var(--os-text); font-size: 12px; line-height: 1.9; }
#atis-app .weather-selector { display: flex; gap: 8px; margin-bottom: 22px; }
#atis-app .selector-button { background: var(--os-surface); color: var(--os-muted); border-color: var(--os-line); border-radius: 10px; }
#atis-app .selector-button.active { background: var(--os-elevated); color: var(--os-text); }
#atis-app .weather-airport strong { font-size: 42px; letter-spacing: -.05em; color: var(--os-text); }
#atis-app .atis-item { background: var(--os-surface); color: var(--os-text); border: 1px solid var(--os-line); border-radius: 17px; box-shadow: none; }
#atis-app .atis-item p { font: 11px/1.9 ui-monospace, Consolas, monospace; color: var(--os-text); }
#atis-app .atis-item-header { border-color: var(--os-line); }
#atis-app .atis-item-header span { color: var(--os-muted); }
#placeholder-app .placeholder-content { height: calc(100% - 72px); max-width: 470px; margin: 0 auto; padding: 35px; }
#placeholder-app .placeholder-content img { width: 140px; height: 60px; opacity: .65; }
#placeholder-app .placeholder-content h3 { font-size: 26px; font-weight: 500; letter-spacing: -.035em; color: var(--os-text); }
#placeholder-app .placeholder-content p { color: var(--os-muted); font-size: 12px; line-height: 1.8; }
:root[data-tk-color-scheme='light'] #placeholder-app .placeholder-content img, :root[data-tk-color-scheme='light'] #tkops-app .tkops-sidebar-airline-logo { filter: invert(1); }

/* Calendar retains event editing and drag-and-drop, with neutral OS surfaces. */
#calendar-app .tk-cal-shell { top: 108px; left: 30px; right: 30px; padding-top: 18px; }
#calendar-app .tk-cal-toolbar button, #calendar-app .tk-cal-filters input, #calendar-app .tk-cal-filters select { background: var(--os-surface); border-color: var(--os-line); color: var(--os-text); font-size: 11px; }
#calendar-app .tk-cal-nav strong { font-size: 18px; letter-spacing: -.03em; }
#calendar-app .tk-cal-views button.selected { background: var(--os-elevated); border-color: var(--os-line); }
#calendar-app .tk-cal-month, #calendar-app .tk-cal-day, #calendar-app .tk-cal-weekday, #calendar-app .tk-cal-hour, #calendar-app .tk-cal-hour-cell, #calendar-app .tk-cal-list-row { background: var(--os-surface); border-color: var(--os-line); color: var(--os-text); }
#calendar-app .tk-cal-weekday { padding: 11px 3px; font-size: 10px; color: var(--os-muted); font-weight: 500; }
#calendar-app .tk-cal-day { min-height: 85px; }
#calendar-app .tk-cal-day-number { color: var(--os-text); font-size: 11px; font-weight: 500; }
#calendar-app .tk-cal-day.today { background: var(--os-elevated); }
#calendar-app .tk-cal-day.today .tk-cal-day-number { background: var(--os-accent); color: white; }
#calendar-app .tk-cal-event { font-size: 10px; }
.tk-cal-dialog { background: var(--os-surface); color: var(--os-text); border: 1px solid var(--os-line); }
.tk-cal-form input, .tk-cal-form textarea, .tk-cal-form select { background: var(--os-elevated); color: var(--os-text); border-color: var(--os-line); }
.tk-cal-form label { color: var(--os-muted); }

/* Settings presentation: reference-inspired hierarchy with TK materials and accent. */
#settings-app.tk-settings-app { --set-bg:#0b1018; --set-foreground:var(--os-text); --set-muted:#9ba6b9; --set-line:#c3d1ed20; --settings-accent:var(--tk-settings-accent,#e31837); }
#settings-app[data-mode='light'] { --set-bg:#edf1f7; --set-foreground:#18202d; --set-muted:#69758a; --set-line:#374f711d; }
#settings-app .tk-settings-shell { inset:var(--os-status-height) 0 0; grid-template-columns:28.5% minmax(0,1fr); grid-template-rows:minmax(0,1fr); }
#settings-app .tk-settings-sidebar { display:flex; flex-direction:column; min-height:0; padding:22px 15px 28px; overflow:auto; border-right:1px solid var(--set-line); border-bottom:0; scrollbar-width:thin; scrollbar-color:#9ba6b93b transparent; }
#settings-app .tk-settings-side-top { display:block; }
#settings-app .tk-settings-search { display:flex; height:clamp(38px,3.6cqw,58px); margin:0 2px 20px; padding:0 15px; border-radius:30px; border:1px solid #c5d9ff29; background:linear-gradient(140deg,#dce8ff1f,#dce8ff06 60%); box-shadow:inset 0 1px #ffffff12,0 5px 14px #00000012; }
#settings-app .tk-settings-search input { font-size:clamp(12px,1.2cqw,18px); }
#settings-app .tk-settings-profile { display:flex; gap:12px; padding:12px 10px 18px; margin:0 0 20px; background:transparent; border:0; border-radius:18px; }
#settings-app .tk-settings-profile:hover { background:#c9d7fb0c; }
#settings-app .tk-settings-profile-text { min-width:0; }
#settings-app .tk-settings-avatar { flex:none; width:clamp(37px,3.7cqw,57px); height:clamp(37px,3.7cqw,57px); background:linear-gradient(145deg,#c22d4e,#64243d); box-shadow:inset 0 1px #ffffff36,0 6px 18px #0002; font-size:clamp(14px,1.35cqw,21px); }
#settings-app .tk-settings-profile strong { font-size:clamp(14px,1.45cqw,22px); font-weight:650; letter-spacing:-.03em; overflow-wrap:anywhere; }
#settings-app .tk-settings-profile small { font-size:clamp(10px,.95cqw,14px); line-height:1.4; margin-top:5px; }
#settings-app .tk-settings-profile-chevron { font-size:21px; flex:none; }
#settings-app .tk-settings-nav-group { display:flex; flex-direction:column; flex:none; gap:clamp(15px,1.8cqw,29px); margin:0; padding:0; overflow:visible; }
#settings-app .tk-settings-nav-cluster { display:flex; flex-direction:column; gap:3px; }
#settings-app .tk-settings-nav-item { width:100%; min-height:clamp(44px,4cqw,62px); padding:8px 11px; display:flex; gap:11px; border-radius:13px; font-size:clamp(12px,1.1cqw,17px); line-height:1.3; white-space:normal; color:var(--set-foreground); font-weight:500; transition:background .16s,box-shadow .16s; }
#settings-app .tk-settings-nav-label { min-width:0; flex:1; }
#settings-app .tk-settings-nav-icon { width:clamp(27px,2.65cqw,39px); height:clamp(27px,2.65cqw,39px); border-radius:10px; box-shadow:inset 0 1px #ffffff33,0 3px 9px #0002; }
#settings-app .tk-settings-nav-icon svg { width:64%; height:64%; }
#settings-app .tk-settings-nav-trail { display:inline; font-size:clamp(9px,.9cqw,13px); max-width:30%; text-align:right; flex:none; }
#settings-app .tk-settings-nav-item.selected { color:var(--set-foreground); background:linear-gradient(105deg,color-mix(in srgb,var(--settings-accent) 24%,transparent),#a4bfff08); box-shadow:inset 3px 0 var(--settings-accent),inset 0 0 0 1px color-mix(in srgb,var(--settings-accent) 25%,transparent); }
#settings-app .tk-settings-nav-item.selected .tk-settings-nav-trail { color:var(--set-muted); }
#settings-app .tk-settings-focus-shortcut { display:flex; align-items:center; min-width:0; gap:4px; padding-right:9px; }
#settings-app .tk-settings-focus-shortcut .tk-settings-nav-item { min-width:0; flex:1; }
#settings-app .tk-settings-focus-shortcut .tk-settings-switch { width:43px; height:26px; }
#settings-app .tk-settings-focus-shortcut .tk-settings-switch::after { width:22px; height:22px; }
#settings-app .tk-settings-focus-shortcut .tk-settings-switch:checked::after { transform:translateX(17px); }
#settings-app .tk-settings-exit { margin-top:26px; width:100%; color:var(--set-muted); background:#a5bddb09; border:1px solid var(--set-line); border-radius:13px; padding:12px; font-size:12px; cursor:pointer; }
#settings-app .tk-settings-detail { display:block; min-width:0; min-height:0; padding:26px clamp(24px,4.5cqw,78px) 60px; }
#settings-app .tk-settings-detail-header { display:flex; align-items:center; justify-content:center; max-width:760px; margin:0 auto 28px; padding:2px 0 17px; border-bottom:1px solid var(--set-line); text-align:center; }
#settings-app .tk-settings-detail-header h2 { font-size:clamp(14px,1.35cqw,21px); font-weight:600; letter-spacing:-.02em; }
#settings-app .tk-settings-panel { max-width:760px; }
#settings-app .tk-settings-row { font-size:clamp(12px,1.2cqw,18px); min-height:clamp(49px,4.65cqw,68px); padding:13px 19px; font-weight:450; }
#settings-app .tk-settings-row > span:first-child { min-width:0; }
#settings-app .tk-settings-row small { display:block; margin-top:5px; font-size:clamp(10px,.9cqw,13px); line-height:1.5; }
#settings-app .tk-settings-trailing { font-size:clamp(11px,1.05cqw,16px); text-align:right; overflow-wrap:anywhere; max-width:58%; }
#settings-app .tk-settings-card { border-radius:21px; }
#settings-app .tk-settings-card > .tk-settings-row:not(:last-child) { border-bottom:1px solid var(--set-line); }
#settings-app .tk-settings-focus-shortcut:has(.tk-settings-nav-item[hidden]) { display:none; }
#settings-app .tk-settings-group-gap { margin-top:23px; }
#settings-app .tk-settings-section-label { margin:25px 15px 10px; color:var(--set-muted); font-size:clamp(10px,.95cqw,13px); font-weight:600; letter-spacing:.05em; }
#settings-app .tk-settings-note { margin:12px 14px 20px; font-size:clamp(10px,.95cqw,13px); line-height:1.65; color:var(--set-muted); }
#settings-app .tk-settings-switch { width:47px; height:28px; }
#settings-app .tk-settings-switch::after { width:24px; height:24px; top:2px; left:2px; }
#settings-app .tk-settings-switch:checked { background:var(--settings-accent); }
#settings-app .tk-settings-switch:checked::after { transform:translateX(19px); }
#settings-app .tk-settings-hero { display:flex; align-items:flex-start; padding:25px; gap:17px; border-radius:23px; box-shadow:var(--glass-shadow); }
#settings-app .tk-settings-hero-icon { margin:0; width:44px; height:44px; border-radius:13px; flex:none; font-size:22px; }
#settings-app .tk-settings-hero h3 { font-size:clamp(20px,2.1cqw,31px); font-weight:600; letter-spacing:-.035em; }
#settings-app .tk-settings-hero p { font-size:clamp(11px,1.1cqw,16px); line-height:1.6; }
#settings-app .tk-settings-secondary { margin-top:20px; border:1px solid var(--set-line); background:#9fbae20c; border-radius:12px; color:var(--set-foreground); padding:11px 15px; font-size:11px; cursor:pointer; }
#settings-app .tk-settings-mode-preview { height:145px; }
#settings-app .settings-intro { position:relative; padding:5px 7px 28px; }
#settings-app .settings-intro-mark { width:42px; height:42px; display:grid; place-items:center; color:white; background:linear-gradient(145deg,#dc3152,#7c1832); border-radius:13px; box-shadow:inset 0 1px #ffffff30,0 7px 24px #a5002522; margin-bottom:18px; }
#settings-app .settings-intro-mark svg { width:26px; height:26px; }
#settings-app .settings-kicker { display:block; color:var(--set-muted); font-size:clamp(8px,.75cqw,11px); letter-spacing:.13em; font-weight:600; }
#settings-app .settings-intro h3 { margin:12px 0; font-size:clamp(25px,3.2cqw,47px); font-weight:550; letter-spacing:-.05em; line-height:1.08; }
#settings-app .settings-intro p { color:var(--set-muted); font-size:clamp(11px,1.1cqw,15px); line-height:1.6; margin:0; }
#settings-app .settings-build-tag { padding:4px 8px; font-size:10px; color:var(--set-muted); border:1px solid var(--set-line); border-radius:7px; }
#settings-app .settings-summary-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-top:24px; }
#settings-app .settings-summary-tile { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:11px; padding:19px; color:var(--set-foreground); border:1px solid var(--set-line); border-radius:19px; background:var(--glass-reflection),var(--glass-panel); text-align:left; cursor:pointer; }
#settings-app .settings-summary-tile > span { font-size:8px; letter-spacing:.12em; color:var(--set-muted); }
#settings-app .settings-summary-tile strong { font-size:clamp(22px,2.5cqw,37px); font-weight:500; letter-spacing:-.04em; }
#settings-app .settings-summary-tile small { font-size:10px; color:var(--set-muted); }
#settings-app .settings-account-brand { display:flex; align-items:center; justify-content:space-between; gap:20px; height:60px; padding:0 15px; margin-bottom:20px; overflow:hidden; }
#settings-app .settings-account-brand img { width:180px; height:102px; max-width:55%; object-fit:contain; }
#settings-app .settings-account-brand > span { font-size:9px; color:var(--set-muted); letter-spacing:.16em; white-space:nowrap; }
#settings-app .settings-account-brand b { font-weight:400; color:var(--set-foreground); }
#settings-app .settings-signout-form { margin:25px 0 0; }
#settings-app .settings-signout { width:100%; border:1px solid var(--set-line); padding:17px; border-radius:19px; background:var(--glass-reflection),var(--glass-panel); color:#ff6a7f; font-size:14px; cursor:pointer; }
#settings-app .settings-signout:hover { background-color:#e42b4822; }
#settings-app .settings-connection-hero { display:flex; flex-direction:column; align-items:center; text-align:center; gap:11px; padding:10px 5px 35px; }
#settings-app .settings-network-orbit { display:grid; place-items:center; width:75px; height:75px; border:1px solid #7bb5f652; border-radius:50%; background:radial-gradient(circle,#3d80b330,#3d80b308); color:#8ecaff; font-size:59px; line-height:1; margin-bottom:4px; }
#settings-app .settings-connection-hero strong { font-size:clamp(19px,2.1cqw,29px); letter-spacing:-.03em; font-weight:550; }
#settings-app .settings-connection-hero > span:last-child { color:var(--set-muted); font-size:11px; }
#settings-app .tk-settings-battery-card { display:flex; flex-direction:column; align-items:center; gap:10px; padding:33px 20px; background:var(--glass-reflection),var(--glass-panel); }
#settings-app #tk-battery-big { font-size:clamp(44px,5.7cqw,81px); font-weight:300; line-height:1.15; letter-spacing:-.05em; }
#settings-app #tk-battery-caption { font-size:clamp(11px,1.1cqw,16px); color:var(--set-muted); }
#settings-app .settings-battery-symbol { position:relative; display:block; width:44px; height:20px; padding:3px; border:1.5px solid var(--set-muted); border-radius:5px; margin-bottom:1px; }
#settings-app .settings-battery-symbol::after { content:''; position:absolute; right:-5px; top:5px; height:7px; width:2px; border-radius:0 2px 2px 0; background:var(--set-muted); }
#settings-app .settings-battery-symbol i { display:block; height:100%; max-width:100%; background:#b5bfd0; border-radius:1px; }
#settings-app #tk-settings-battery.is-connected .settings-battery-symbol i { background:#3dd880; }
.is-low-power:not(.is-charging) .battery-glyph { color:#f4c64f; }
.is-low-power #settings-app .settings-battery-symbol i { background-color:#f4c64f; }
#settings-app .settings-hardware-details { margin-top:25px; }
#settings-app .settings-hardware-details summary { padding:0 14px 15px; cursor:pointer; color:var(--set-muted); font-size:11px; }
#settings-app .settings-release-hero { display:flex; align-items:center; text-align:center; flex-direction:column; padding:3px 5px 31px; }
#settings-app .settings-release-icon { display:grid; place-items:center; width:65px; height:65px; border:1px solid #ffffff30; border-radius:19px; background:linear-gradient(145deg,#c73757,#78152c); color:#fff; font-size:40px; box-shadow:inset 0 1px #ffffff30,0 12px 32px #b1062920; margin-bottom:21px; }
#settings-app .settings-release-hero h3 { font-size:clamp(24px,3cqw,43px); font-weight:550; line-height:1.12; letter-spacing:-.045em; margin:14px 0; }
#settings-app .settings-release-version { color:var(--set-muted); font-size:12px; }
#settings-app .settings-release-version b { color:var(--set-foreground); font-weight:500; }
#settings-app .settings-update-status { display:flex; flex-direction:column; align-items:center; gap:12px; padding:21px 15px; margin-top:20px; border:1px solid var(--set-line); border-radius:19px; background:#a3b9da08; }
#settings-app .settings-update-status p { font-size:11px; color:var(--set-muted); line-height:1.7; text-align:center; margin:0; }
#settings-app .settings-primary-button { padding:11px 17px; border:1px solid color-mix(in srgb,var(--settings-accent) 45%,transparent); border-radius:13px; background:color-mix(in srgb,var(--settings-accent) 15%,transparent); color:var(--set-foreground); font-size:12px; cursor:pointer; }
#settings-app .settings-mobile-back { display:none; }
#settings-app[data-mode='light'] .settings-account-brand img { filter:brightness(.15); }
#settings-app[data-mode='light'] .settings-signout { color:#bf1535; }
@container display (max-width:850px) {
    #settings-app .tk-settings-shell { grid-template-columns:31% minmax(0,1fr); }
    #settings-app .tk-settings-sidebar { padding:16px 9px 25px; }
    #settings-app .tk-settings-side-top { display:block; }
    #settings-app .tk-settings-profile { padding:9px 6px 12px; gap:8px; }
    #settings-app .tk-settings-profile-chevron { display:none; }
    #settings-app .tk-settings-nav-trail { display:none; }
    #settings-app .tk-settings-detail { padding:21px 21px 50px; }
    #settings-app .tk-settings-hero { flex-direction:column; padding:20px; }
    #settings-app .tk-settings-focus-shortcut { padding-right:3px; }
    #settings-app .tk-settings-focus-shortcut .tk-settings-switch { width:35px; height:22px; }
    #settings-app .tk-settings-focus-shortcut .tk-settings-switch::after { width:18px; height:18px; }
    #settings-app .tk-settings-focus-shortcut .tk-settings-switch:checked::after { transform:translateX(13px); }
}
@container display (max-width:560px) {
    #settings-app .tk-settings-shell { grid-template-columns:1fr; grid-template-rows:minmax(0,1fr); }
    #settings-app .tk-settings-sidebar { display:flex; padding:18px; border:0; }
    #settings-app .tk-settings-search, #settings-app .tk-settings-profile { display:flex; }
    #settings-app .tk-settings-nav-group, #settings-app .tk-settings-nav-cluster { display:flex; flex-direction:column; overflow:visible; }
    #settings-app .tk-settings-nav-item { width:100%; min-height:45px; white-space:normal; }
    #settings-app .tk-settings-nav-trail { display:inline; }
    #settings-app .tk-settings-detail { display:none; }
    #settings-app[data-settings-mobile='detail'] .tk-settings-sidebar { display:none; }
    #settings-app[data-settings-mobile='detail'] .tk-settings-detail { display:block; }
    #settings-app .tk-settings-detail-header { justify-content:space-between; gap:10px; }
    #settings-app .settings-mobile-back { display:block; color:var(--set-muted); font-size:11px; padding:4px 0; background:transparent; border:0; cursor:pointer; }
    #settings-app .tk-settings-row { font-size:12px; }
    #settings-app .tk-settings-switch { width:43px; height:26px; }
    #settings-app .tk-settings-switch::after { width:22px; height:22px; }
    #settings-app .tk-settings-switch:checked::after { transform:translateX(17px); }
}

@container display (max-width: 1100px) {
    #tkops-app.tkops-app { --ops-sidebar: 148px; }
    #tkops-app .tkops-main { padding: 25px 24px 55px; }
    .flt-v3-header { flex-wrap: wrap; gap: 15px; }
    .flt-v3-actions { max-width: none; padding: 0; }
    .flt-v3-connection { border-radius: 20px; padding: 6px 9px; width: fit-content; margin-left: auto; display: inline-flex; line-height: 1.2; background: #7c8a9f0e; flex: none; margin: 0 10px 0 0; text-align: left; }
    .flt-v3-focus { grid-template-columns: minmax(0, 1.3fr) minmax(160px, 1fr); }
    .flt-v3-focus-left, .flt-v3-focus-right { padding: 22px; }
    .flt-v3-subtitle { max-width: none; }
}
@container display (max-width: 850px) {
    #weather-app .weather-ios-shell { grid-template-columns: 180px minmax(0, 1fr); }
    #weather-app .weather-ios-sidebar { padding: 22px 13px; }
    #weather-app .weather-ios-detail { padding: 17px 20px 55px; }
    #weather-app .weather-metric { padding: 13px; min-height: 85px; }
    #weather-app .weather-metric-grid { gap: 9px; }
    #tkops-app.tkops-app { --ops-sidebar: 132px; }
    #tkops-app .tkops-main { padding: 21px 18px 55px; }
    #tkops-app .tkops-sidebar { padding: 25px 8px; }
    #tkops-app .tkops-nav { padding: 11px 9px; font-size: 10px; }
    .flt-v3-focus { grid-template-columns: minmax(0, 1fr); }
    .flt-v3-focus-right { grid-template-columns: 1fr 1fr; gap: 12px; border-left: 0; border-top: 1px solid var(--os-line); }
    .flt-v3-details { grid-column: 1 / -1; }
    .flt-v3-next strong { font-size: 15px; }
    .flt-v3-status strong { font-size: 11px; }
    .flt-v3-metric { padding: 13px; gap: 9px; }
    .flt-v3-metric > strong { font-size: 21px; }
    .flt-v3-metric > span { font-size: 8px; }
    #tkops-app .tkops-booking-card { padding: 17px; }
    #tkops-app .tkops-booking-route { grid-template-columns: 1fr 55px 12px 55px; column-gap: 8px; }
    #flight-app .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #calendar-app .tk-cal-shell { left: 17px; right: 17px; }
    #calendar-app .tk-cal-day { min-height: 62px; }
}
@container display (max-width: 600px) {
    #weather-app .weather-ios-shell { grid-template-columns: 128px minmax(0, 1fr); }
    #weather-app .weather-ios-sidebar { padding: 18px 10px; }
    #weather-app .weather-ios-sidebar h2 { font-size: 20px; }
    #weather-app .weather-station-item { padding: 10px; }
    #weather-app .weather-station-mini { display: none; }
    #weather-app .weather-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #weather-app .weather-metar-row { flex-direction: column; gap: 4px; }
    #weather-app .weather-metar-row strong { flex-basis: auto; }
    #tkops-app .tkops-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    #tkops-app .tkops-sidebar { display: flex; flex-direction: row; gap: 3px; padding: 7px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--os-line); }
    #tkops-app .tkops-brand, #tkops-app .tkops-sidebottom { display: none; }
    #tkops-app .tkops-nav { width: auto; white-space: nowrap; min-height: 31px; padding: 7px 9px; }
    #tkops-app .tkops-main { padding: 18px 16px 50px; }
    .flt-v3-title { font-size: 29px; }
    .flt-v3-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flt-v3-visible { display: none; }
    #tkops-app .tkops-booking-route-code { font-size: 24px; }
    #tkops-app .tkops-booking-time-value { font-size: 13px; }
    #flight-app .flight-hero { grid-template-columns: 1fr; gap: 20px; }
    #flight-app .info-grid { grid-template-columns: 1fr; }
    #calendar-app .tk-cal-shell { top: 95px; }
}
