/* Structure only - no brand colours or type. Brand layer goes in theme.css
   once Texel Air brand assets (logo, hex codes, fonts) are supplied. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; line-height: 1.4; }
.app-header { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 12px 16px; border-bottom: 1px solid; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 600; }
.brand-logo { height: 28px; width: auto; }
.app-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.app-nav a.is-current { font-weight: 700; text-decoration: underline; }
.region-switch { display: flex; gap: 6px; align-items: center; }
.app-user { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.app-user form { margin: 0; }
.app-main { max-width: 1400px; margin: 0 auto; padding: 16px; }
.app-footer { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid; font-size: 0.85em; }
.freshness.is-stale { font-weight: 700; }
.muted { opacity: 0.7; }
.small { font-size: 0.85em; }
.panel { margin: 0 0 24px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0 0 12px; }
.kpi { display: flex; flex-direction: column; padding: 12px; border: 1px solid; border-radius: 6px; }
.kpi-label { font-size: 0.8em; }
.kpi-value { font-size: 1.8em; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 0.8em; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.9em; }
th, td { padding: 6px 8px; text-align: left; border-bottom: 1px solid; vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.roster-grid th.day, .roster-grid td.cell { text-align: center; min-width: 2.2em; }
tr.is-inactive { opacity: 0.6; }
.is-alert { font-weight: 700; }

/* "Data as of" footer: per-page data sources with status dots (good / warn / crit) */
.src-box { flex: 1 1 auto; min-width: 0; }
.src-box > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.src-box > summary::-webkit-details-marker { display: none; }
.src-lead { font-weight: 600; }
.src-item { white-space: nowrap; }
.src-item b { font-weight: 600; font-variant-numeric: tabular-nums; }
.src-more { text-decoration: underline; text-underline-offset: 2px; }
.src-box[open] .src-more { display: none; }
.src-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.src-dot.src-good { background: var(--c-good-ink, #1e7a46); } .src-dot.src-warn { background: var(--c-warn-ink, #b06a00); } .src-dot.src-crit { background: var(--c-crit-ink, #b42318); }
.src-table { border-collapse: collapse; margin: 10px 0 4px; font-size: 12.5px; }
.src-table th, .src-table td { text-align: left; padding: 4px 10px 4px 0; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .src-table .src-opt { display: none; } .src-table td:first-child { white-space: nowrap; } }
/* Help & About (build 14) */
.app-user .help-link { color: #fff; text-decoration: none; font-size: var(--fs-xs, 12px); font-weight: var(--fw-semibold, 600); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 3px 12px; }
.app-user .help-link:hover, .app-user .help-link.is-on { background: rgba(255,255,255,.14); }
.app-build { margin: 0; width: 100%; color: var(--text-muted); }
.app-build a { color: inherit; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.help-sec { scroll-margin-top: 140px; }
.help-sec h2 { display: flex; align-items: baseline; gap: 12px; }
.help-sec ul { margin: 0 0 8px; padding-left: 20px; } .help-sec li { margin: 4px 0; max-width: 100ch; }
.help-src { color: var(--text-body); border-top: 1px solid var(--border-subtle); padding-top: 8px; margin: 8px 0 0; }
.help-gloss { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 6px 16px; margin: 0; }
.help-gloss dt { font-weight: 700; } .help-gloss dd { margin: 0; }
@media (max-width: 600px) { .help-gloss { grid-template-columns: 1fr; } .help-gloss dd { margin-bottom: 8px; } }
.about-tiles { grid-template-columns: minmax(160px, 260px) 1fr; }
.about-name { font-size: 1.1rem; }
.about-news { padding-top: 8px; padding-bottom: 8px; }
.about-build { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.about-build:last-child { border-bottom: 0; }
.about-build h3 { margin: 0 0 4px; font-size: 1rem; }
.about-build ul { margin: 0; padding-left: 18px; } .about-build li { margin: 3px 0; }
.about-bno { display: flex; flex-direction: column; }
@media (max-width: 600px) { .about-build { grid-template-columns: 1fr; gap: 4px; } .about-tiles { grid-template-columns: 1fr; } }
/* build 46: Help search and the MCP server sections */
.help-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; }
.help-search-l { font-weight: 700; }
.help-search input[type=search] { flex: 1 1 260px; min-width: 0; font: inherit; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-card); color: var(--text-body); }
.help-search button { font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--ta-navy, #143055); background: var(--ta-navy, #143055); color: #fff; cursor: pointer; }
.help-toc-h { flex-basis: 100%; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.help-mcp h3 { font-size: 14px; margin: 12px 0 4px; }
.help-steps { margin: 0; padding-left: 22px; } .help-steps li { margin: 6px 0; max-width: 100ch; }
.help-who { font-weight: 400; }
.help-tools { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.help-tools th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); padding: 6px 8px; border-bottom: 1px solid var(--border-subtle); }
.help-tools td { padding: 7px 8px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.help-tools td:first-child { white-space: nowrap; }
.help-ask { color: var(--text-muted); font-style: italic; }
.help-gloss > div { display: contents; } .help-gloss > div[hidden] { display: none; }
.hs-sec[hidden], .hs-item[hidden], .help-mcp h3[hidden] { display: none; }
::highlight(help-hit) { background: color-mix(in srgb, var(--ta-cyan, #009ee5) 30%, transparent); color: inherit; }
@media (max-width: 720px) { .help-tools thead { display: none; } .help-tools tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--border-subtle); } .help-tools td { display: block; border: 0; padding: 2px 0; } .help-tools td:first-child { white-space: normal; } }
.help-toc[hidden], .help-foot[hidden] { display: none; }
.pv-draft { border-left: 4px solid var(--c-warn, #e8a21c); background: color-mix(in srgb, var(--c-warn, #e8a21c) 12%, transparent); padding: 8px 12px; border-radius: 6px; margin: 0 0 12px; }
.pv-tbc { background: color-mix(in srgb, var(--c-warn, #e8a21c) 22%, transparent); border-radius: 3px; padding: 0 3px; font-size: .9em; }
.pv-table td:first-child { white-space: normal; min-width: 220px; }
/* build 47: Collapse all / Expand all (prefs.js), under the page title on pages with foldable panels */
.fold-bar { display: flex; justify-content: flex-end; gap: 8px; margin: -6px 0 10px; }
.fold-btn { font: inherit; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-card); color: var(--text-strong); cursor: pointer; }
.fold-btn[hidden] { display: none; }
/* build 47: gear (Manage) menu at the top right - Editor, Admin, View as */
.gear { position: relative; }
.gear > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.gear > summary::-webkit-details-marker { display: none; }
.gear > summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gear > summary:hover, .gear[open] > summary, .gear.is-current > summary { color: #fff; border-color: #fff; }
.gear[open] > summary svg { transform: rotate(45deg); transition: transform .2s; }
.gear-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1100; width: 290px; max-width: calc(100vw - 16px); background: var(--surface-card); border: 1px solid var(--border-subtle); border-top: 3px solid var(--ta-cyan, #009ee5); border-radius: 10px; box-shadow: 0 10px 30px rgba(10, 18, 32, .2); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.gear-panel a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 7px; text-decoration: none; color: var(--text-strong); }
.gear-panel a span { font-size: 12.5px; color: var(--text-muted); }
.gear-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ta-cyan, #009ee5); padding: 8px 10px 2px; }   /* build 92: menu groups */
.gear-h:not(:first-child) { border-top: 1px solid var(--border-subtle); margin-top: 4px; padding-top: 10px; }
.gear-panel a:hover, .gear-panel a:focus-visible, .gear-panel a.is-on { background: var(--surface-sunk, #e7edf3); }
@media (max-width: 720px) { .gear-l { display: none; } .gear-panel { position: fixed; left: 8px; right: 8px; top: auto; width: auto; } }

/* build 59 (Hayo 2026-10-13): long tables (more than 15 rows) scroll inside their own block, with the column titles fixed
   at the top of the block; the page itself stays where it is. Class set by prefs.js. Printing shows the whole table. */
.table-wrap.tw-tall { max-height: min(70vh, 640px); overflow: auto; overscroll-behavior: contain; border-bottom: 1px solid var(--border-subtle); }
.table-wrap.tw-tall thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-sunk, #e7edf3); box-shadow: inset 0 -2px 0 var(--border-subtle); }
.table-wrap.tw-tall tfoot th, .table-wrap.tw-tall tfoot td { position: sticky; bottom: 0; z-index: 1; background: var(--surface-card); }
.tw-more { margin: 4px 0 0; }
@media print { .table-wrap.tw-tall { max-height: none; overflow: visible; } .table-wrap.tw-tall thead th { position: static; } }

/* build 59: smart search in the header */
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search svg { position: absolute; left: 9px; width: 15px; height: 15px; fill: none; stroke: rgba(255,255,255,.75); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.nav-search input { width: 150px; padding: 5px 10px 5px 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08);
  color: #fff; font: inherit; font-size: 12.5px; transition: width .15s, background .15s; }
.nav-search input::placeholder { color: rgba(255,255,255,.7); }
.nav-search input:focus { width: 240px; background: rgba(255,255,255,.16); outline: 2px solid var(--ta-cyan, #009ee5); outline-offset: 1px; }
.ns-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 1150; width: 380px; max-width: calc(100vw - 16px); max-height: 70vh; overflow: auto;
  background: var(--surface-card); color: var(--text-strong); border: 1px solid var(--border-subtle); border-top: 3px solid var(--ta-cyan, #009ee5);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(10, 18, 32, .22); padding: 6px; }
.ns-list a { display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; padding: 7px 8px; border-radius: 7px; text-decoration: none; color: var(--text-strong); }
.ns-list a b { font-size: 14px; font-weight: 600; }
.ns-list .ns-sub { grid-column: 2; font-size: 12px; color: var(--text-muted); }
.ns-list .ns-kind { grid-row: span 2; align-self: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.ns-list a.is-active, .ns-list a:hover { background: var(--surface-sunk, #e7edf3); }
.ns-list a.ns-all { display: block; font-size: 12.5px; color: var(--ta-cyan, #009ee5); border-top: 1px solid var(--border-subtle); border-radius: 0 0 7px 7px; margin-top: 4px; }
.ns-none { padding: 8px; font-size: 13px; color: var(--text-muted); }
.srch-list { list-style: none; margin: 0; padding: 0; }
.srch-list a { display: grid; grid-template-columns: 80px 1fr; column-gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--border-subtle); text-decoration: none; color: var(--text-strong); }
.srch-list .srch-kind { grid-row: span 2; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); align-self: center; }
.srch-list .muted { grid-column: 2; }
@media (max-width: 720px) { .nav-search, .nav-search input, .nav-search input:focus { width: 100%; } .ns-list { left: 0; right: auto; width: 100%; } }
/* build 78 (item 48): open count on the Requests tracker entry of the Manage menu */
.gear-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #cf222e; color: #fff; font-size: 11px; font-weight: 700; text-align: center; vertical-align: 1px; }
