/* The logbook screens (logbook.js): Dashboard, Timeline, Logbook, Components,
   Findings. Desktop first (George, 2026-09-28); the phone layout comes later.
   Over the theme's variables, so light and dark and both themes just work;
   one colour per kind of entry, readable on either ground. */

:root {
  --c-annual: #087CF4; --c-hundred: #0E7490; --c-repair: #5B6673; --c-overhaul: #B4531E;
  --c-alteration: #5B3FA6; --c-component: #0891B2; --c-check: #6B8FC7; --c-wb: #8A6D3B; --c-other: #9AA5B1;
  --bad: #B42318; --bad-bg: #FEF3F2; --warn: #8A4B00; --warn-bg: #FFF4E5; --good: #1E7A46; --good-bg: #ECF8F1;
  --hatch: #D8DFE8;
}
:root[data-theme="dark"] {
  --c-repair: #B9C4D3; --c-check: #8FB6E8; --c-alteration: #A58BEA; --c-overhaul: #E0A868; --c-wb: #C8A86A;
  --c-component: #4DE4FF; --c-hundred: #34C3D9; --c-other: #7D8A9C;
  --bad: #FF9A8A; --bad-bg: #3A1814; --warn: #E0A868; --warn-bg: #2A2117; --good: #6FD39A; --good-bg: #11301F;
  --hatch: #34507E;      /* the years no book covers: lighter, to show on the dark card (George, 2026-10-08) */
}

.lb { flex-grow: 1; min-height: 0; overflow: auto; padding: 32px 40px 56px; }
.lb-wrap { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.lb h1 { font-size: 34px; line-height: 1.1; }
.lb h2 { margin: 0; font-size: 20px; font-weight: 600; }
.lb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.lb-head .sub { color: var(--muted); font-size: 15px; margin-top: 6px; }
.lb-card { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.lb-card > h2 { margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lb-card > h2 a { font-family: var(--serif); font-size: 14px; font-weight: 600; text-decoration: none; }
.lb-note { font-size: 13px; color: var(--muted); }
.lb-advisory { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.lb-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.lb a.ref { font-family: var(--mono); font-size: 12px; text-decoration: none; white-space: nowrap; }

/* tiles */
.lb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lb-tile { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
           display: flex; flex-direction: column; gap: 4px; }
.lb-tile .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lb-tile .v { font-family: var(--label); font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.lb-tile .v small { font-size: 16px; color: var(--muted); font-weight: 500; }
.lb-tile .s { font-size: 13px; color: var(--muted); }
.lb-tile.bad .v { color: var(--bad); }

.lb-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.lb-side { display: flex; flex-direction: column; gap: 24px; }

/* state pills */
.st { display: inline-block; min-width: 86px; text-align: center; padding: 3px 10px; border-radius: 999px; font-family: var(--mono);
      font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.st.overdue { background: var(--bad-bg); color: var(--bad); }
.st.soon { background: var(--warn-bg); color: var(--warn); }
.st.ok { background: var(--good-bg); color: var(--good); }
.st.conditional, .st.unknown { background: var(--desk); color: var(--muted); }

/* the due list */
.due { display: flex; flex-direction: column; }
.due-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; gap: 16px; align-items: start;
           padding: 14px 0; border-top: 1px solid var(--line); }
.due-row:first-child { border-top: 0; padding-top: 0; }
.due-row .what { font-weight: 600; }
.due-row .text { color: var(--soft); font-size: 15px; }
.due-row .meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.due-row .act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lb-btn { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent;
          color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lb-btn:hover { background: var(--desk); }
.lb-btn.solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lb-btn.danger { color: var(--bad); }
.lb-confirm { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 8px; background: var(--desk); }
.lb-confirm input { height: 36px; padding: 0 10px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; font-size: 14px; }
.lb-confirm .row { gap: 8px; }
.lb-word-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2, var(--ink)); }
.lb-word-f input { max-width: 22rem; }
/* your own inspections (George, 2026-10-25): Add another inspection under the due list, and in Manage */
.lb-word-f select { max-width: 22rem; }
.own-add { padding-top: 10px; }
.own-tick { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.own-list { display: flex; flex-direction: column; gap: 8px; }
.own-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line, #ddd); }
.own-row .act { display: flex; gap: 6px; }
.ph-due .act { margin-top: 6px; }

/* categories */
.cat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
       text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cat i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-other); flex-shrink: 0; }
.cat-annual i { background: var(--c-annual); } .cat-hundred i { background: var(--c-hundred); } .cat-repair i { background: var(--c-repair); }
.cat-overhaul i { background: var(--c-overhaul); } .cat-alteration i { background: var(--c-alteration); }
.cat-component i { background: var(--c-component); } .cat-check i { background: var(--c-check); } .cat-wb i { background: var(--c-wb); }

.recent { display: flex; flex-direction: column; }
.recent a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line);
            text-decoration: none; color: var(--ink); }
.recent a:first-child { border-top: 0; padding-top: 0; }
.recent a:hover .w { color: var(--link); }
.recent .d { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.recent .w { font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.fsum { display: flex; flex-direction: column; gap: 10px; }
.fsum a { text-decoration: none; color: var(--ink); display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.fsum a:hover { color: var(--link); }
.fsum .n { font-family: var(--label); font-weight: 600; font-size: 20px; min-width: 26px; color: var(--accent); }

/* timeline */
.tl-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tl-zoom { display: flex; gap: 6px; }
.tl-zoom button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tl-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.tl-legend button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 2px; cursor: pointer;
                    font-family: var(--mono); font-size: 12px; color: var(--soft); }
.tl-legend button i { width: 10px; height: 10px; border-radius: 50%; }
.tl-legend button[aria-pressed="false"] { opacity: 0.35; }
.tl-box { position: relative; background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 20px 64px 16px 24px; }
.tl-svg { display: block; width: 100%; overflow: visible; }
.tl-svg .axis { stroke: var(--line); }
.tl-svg .grid { stroke: var(--line); stroke-dasharray: 2 4; }
.tl-svg text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.tl-svg .yr { text-anchor: middle; }
.tl-svg .stem { stroke-width: 2; stroke-opacity: 0.55; }
.tl-svg .dot { stroke: var(--field); stroke-width: 2; cursor: pointer; }
.tl-svg .dot:hover, .tl-svg .dot.on { stroke: var(--ink); }
.tl-svg .gap { fill: url(#tl-hatch); }
.tl-svg .gap-label { font-size: 10px; }
.tl-svg .meter { stroke: var(--muted); stroke-dasharray: 3 3; }
.tl-svg .today { stroke: var(--accent); stroke-width: 1.5; }
.tl-svg .lane-label { font-family: var(--serif); font-size: 12px; font-weight: 600; fill: var(--soft); }
.tl-svg .life { rx: 4; }
.tl-svg .life.engine { fill: rgba(8, 124, 244, 0.55); } .tl-svg .life.prop { fill: rgba(14, 116, 144, 0.55); }
.tl-svg .life.unknown { fill: url(#tl-fade); }
.tl-svg .life-label { font-size: 10.5px; fill: var(--ink); pointer-events: none; }
/* (2026-10-08) a bar opens the page that installed its engine or propeller; overhauls are stems on it */
.tl-svg .go { cursor: pointer; }
.tl-svg .life.go:hover, .tl-svg .life.go:focus-visible { stroke: var(--ink); stroke-width: 1.5; outline: none; }
.tl-svg .c-annual { fill: var(--c-annual); stroke: var(--c-annual); } .tl-svg .c-hundred { fill: var(--c-hundred); stroke: var(--c-hundred); }
.tl-svg .c-repair { fill: var(--c-repair); stroke: var(--c-repair); } .tl-svg .c-overhaul { fill: var(--c-overhaul); stroke: var(--c-overhaul); }
.tl-svg .c-alteration { fill: var(--c-alteration); stroke: var(--c-alteration); } .tl-svg .c-component { fill: var(--c-component); stroke: var(--c-component); }
.tl-svg .c-check { fill: var(--c-check); stroke: var(--c-check); } .tl-svg .c-wb { fill: var(--c-wb); stroke: var(--c-wb); }
.tl-svg .c-other { fill: var(--c-other); stroke: var(--c-other); }
.tl-svg .dot { stroke: var(--field); }
.tl-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.tl-pick .when { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tl-pick .work { margin-top: 6px; color: var(--soft); }

/* logbook: the list, and the page with its entries */
.lbk { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.lbk-list { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 150px); }
.lbk-filters { display: flex; flex-direction: column; gap: 8px; }
.lbk-filters select, .lbk-filters input[type="search"] { height: 38px; padding: 0 10px; border: 1px solid var(--line); background: var(--field);
                                                        color: var(--ink); font: inherit; font-size: 14px; }
.lbk-filters label { font-size: 13px; color: var(--soft); display: flex; gap: 8px; align-items: center; }
.lbk-count { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.lbk-items { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
.lbk-year { position: sticky; top: 0; background: var(--desk); padding: 4px 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lbk-item { display: block; padding: 10px 12px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.lbk-item:hover { background: var(--desk); }
.lbk-item[aria-current="true"] { background: var(--s1-bg); box-shadow: inset 3px 0 0 var(--accent); }
.lbk-item .top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.lbk-item .w { font-size: 13.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lbk-item .doubt { color: var(--warn); }

.pg { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-bar .t { font-weight: 600; }
.pg-bar .t span { color: var(--muted); font-weight: 400; }
.pg-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pg-scan { background: var(--desk); border: 1px solid var(--line); border-radius: 10px; padding: 12px; position: sticky; top: 0; }
.pg-scan button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pg-scan img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.pg-scan .cap { font-size: 12px; color: var(--muted); margin-top: 8px; }
.pg-entries { display: flex; flex-direction: column; gap: 12px; }
.ent { background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.ent.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ent .hd { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; min-width: 0; }
/* a long category with its "reclassified" tag stuck out past the card (George, 2026-10-13): each part may shrink and
   the row wraps, so the tag drops below when there's no room and stays on the line when there is */
.ent .hd > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.ent .hd > .fix-tag { flex: 0 0 auto; }
.ent .hd > .cat { white-space: normal; }
.ent .hd a { text-decoration: none; color: var(--ink); font-weight: 600; }
.ent dl { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 6px 12px; margin: 12px 0 0; font-size: 14px; }
.ent dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.ent dd { margin: 0; }
.ent .work { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.ent .unsure { background: var(--warn-bg); color: var(--warn); border-radius: 3px; padding: 0 2px; }
.ent .doubts { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; }
.ent .src { margin-top: 12px; font-size: 12px; color: var(--muted); }
.pg details { border: 1px solid var(--line); border-radius: 10px; background: var(--field); }
.pg summary { cursor: pointer; padding: 12px 16px; font-weight: 600; font-size: 14px; }
.pg .transcript { margin: 0; padding: 0 16px 16px; white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--soft); }

/* the scan, full size */
.lb-zoom { position: fixed; inset: 0; z-index: 50; background: rgba(4, 17, 38, 0.92); overflow: auto; display: flex; justify-content: center;
           align-items: flex-start; padding: 40px; cursor: zoom-out; }
.lb-zoom img { max-width: none; width: min(1600px, 100%); height: auto; background: #fff; }

/* components and findings */
.lb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb-table th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
               color: var(--muted); padding: 0 14px 10px 0; border-bottom: 1px solid var(--line); }
.lb-table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lb-table td .n { font-weight: 600; } .lb-table td .m { color: var(--muted); font-size: 13px; }
.lb-table tr.removed td { color: var(--muted); }
.find-sec { display: flex; flex-direction: column; gap: 14px; }
.find-sec > h2 { font-size: 22px; }
.find-sec > p { color: var(--muted); margin-top: -8px; }
.finds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.find { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.find.disagree { border-left: 4px solid var(--bad); } .find.other_aircraft { border-left: 4px solid var(--warn); }
.find.agree { border-left: 4px solid var(--good); } .find.people { border-left: 4px solid var(--c-check); } .find.gap { border-left: 4px solid var(--c-other); }
.find h3 { margin: 0; font-size: 16px; }
.find p { color: var(--soft); font-size: 14.5px; }
.find .refs { display: flex; flex-wrap: wrap; gap: 6px; }
.find .refs a { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--desk); text-decoration: none; color: var(--link); }

/* links drawn as buttons */
a.lb-btn { display: inline-flex; align-items: center; text-decoration: none; }

/* a logbook site has five more tabs: a tighter header, nothing wrapping */
.has-logbooks .tabs { gap: 16px; font-size: 13.5px; letter-spacing: 0.03em; }
.has-logbooks .tabs a, .has-logbooks .bar .btn-quiet, .has-logbooks .bar .usage { white-space: nowrap; }
.has-logbooks .bar { gap: 20px; padding: 0 28px; }

/* ---- contrast (George, 2026-09-28): the screens sit on a tinted ground and
   every widget is a white card with an edge and a soft shadow ---- */
:root { --lb-ground: #E1E7EF; --lb-edge: #C9D3DF; --lb-shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 6px 18px rgba(15, 27, 45, 0.06); }
:root[data-theme="dark"] { --lb-ground: #041126; --lb-edge: #23385A; --lb-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.3); }
.lb { background: var(--lb-ground); }
.lb-card, .lb-tile, .tl-box, .find, .ent, .pg details, .lbk-items, .pg-scan {
  border-color: var(--lb-edge); box-shadow: var(--lb-shadow); }
.lb-card, .lb-tile, .tl-box, .find, .ent, .pg details, .lbk-items { background: var(--field); }
.pg-scan { background: var(--field); }
.lbk-filters select, .lbk-filters input[type="search"] { border-color: var(--lb-edge); background: var(--field); border-radius: 8px; }
.lbk-year { background: var(--lb-ground); }
.lb-btn { background: var(--field); border-color: var(--lb-edge); }
.lb-btn.solid { background: var(--accent); border-color: var(--accent); }
.tl-zoom button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.lb-tile .k, .lb-card > h2 { color: var(--ink); }
.lb-tile .k { color: var(--muted); }
.lb-card > h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* the timeline's caption box */
.tl-tip { position: absolute; z-index: 5; pointer-events: none; width: max-content; max-width: 340px; padding: 10px 12px;
          background: var(--ink); color: var(--ground); border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
          font-size: 13px; line-height: 1.4; transform: translate(-50%, calc(-100% - 12px)); }
.tl-tip::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -6px; width: 12px; height: 12px; margin-left: -6px;
                 background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.tl-tip.below { transform: translate(-50%, 12px); }
.tl-tip.below::after { bottom: auto; top: -6px; }
.tl-tip .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; opacity: 0.75; }
.tl-tip .t { font-weight: 600; margin-top: 2px; }
.tl-tip .w { margin-top: 4px; opacity: 0.9; }
.tl-tip .h { margin-top: 6px; font-size: 11.5px; opacity: 0.7; }
.tl-svg .dot:focus { outline: none; stroke: var(--ink); stroke-width: 3; }

/* the picked entry, with its page right under it */
.tl-pick { grid-template-columns: minmax(0, 1fr); }
.tl-pick .hd { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.tl-scan { margin-top: 16px; }
.tl-scan button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; max-width: 980px; width: 100%; }
.tl-scan img { display: block; width: 100%; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.tl-scan .cap { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* the page's text, typed out, rendered (not raw Markdown) */
.pg summary .sum-note { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.typed { padding: 4px 18px 18px; font-size: 14.5px; line-height: 1.55; color: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.typed h4 { margin: 8px 0 0; font-size: 15px; color: var(--ink); }
.typed h4:first-child { margin-top: 0; }
.typed blockquote { margin: 0; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--lb-ground); border-radius: 0 6px 6px 0;
                    font-family: var(--mono); font-size: 13px; white-space: pre-wrap; color: var(--ink); }
.typed ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.typed table { border-collapse: collapse; font-size: 13.5px; }
.typed td { padding: 4px 12px 4px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.typed code { font-family: var(--mono); font-size: 12.5px; }
.typed .unsure { background: var(--warn-bg); color: var(--warn); border-radius: 3px; padding: 0 2px; }

.lbk { grid-template-columns: 410px minmax(0, 1fr); }

/* ADs and SBs: a diamond on the day's stem, and in the legend and lists */
.tl-svg .adm { fill: #D92D20; stroke: var(--field); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; rotate: 45deg; pointer-events: none; }
.tl-legend .ad-key { width: 9px; height: 9px; border-radius: 1px; background: #D92D20; transform: rotate(45deg); }
.cat.ad-cat { color: #D92D20; margin-left: 12px; }
:root[data-theme="dark"] .tl-svg .adm, :root[data-theme="dark"] .tl-legend .ad-key { fill: #FF8A7A; background: #FF8A7A; }
:root[data-theme="dark"] .cat.ad-cat { color: #FF8A7A; }
.tl-day { font-size: 20px; margin: 0 0 4px; }
.tl-entry { padding: 14px 0; border-top: 1px solid var(--line); }
.tl-entry:first-of-type { border-top: 0; }
.tl-entry .work { margin-top: 8px; }

/* ---- a colour per kind that no other kind resembles (George, 2026-09-28):
   used by the timeline's markers and by every list and card ---- */
:root {
  --c-annual: #2563EB; --c-hundred: #16A34A; --c-ad: #DC2626; --c-check: #0891B2; --c-component: #CA8A04;
  --c-wb: #92400E; --c-other: #9CA3AF; --c-repair: #EA580C; --c-alteration: #9333EA; --c-overhaul: #DB2777;
}
:root[data-theme="dark"] {
  --c-annual: #60A5FA; --c-hundred: #4ADE80; --c-ad: #F87171; --c-check: #22D3EE; --c-component: #FACC15;
  --c-wb: #D6A36A; --c-other: #9CA3AF; --c-repair: #FB923C; --c-alteration: #C084FC; --c-overhaul: #F472B6;
}
.cat-check i { background: var(--c-check); } .cat-component i { background: var(--c-component); }

/* the timeline: thin neutral stems, one coloured marker per kind of work */
.tl-box { padding: 20px 64px 16px 24px; }
.tl-svg { width: auto; }
.tl-svg .stem { stroke: var(--muted); stroke-width: 1.25; stroke-opacity: 0.45; }
.tl-svg .mk { stroke: var(--field); stroke-width: 1.5; cursor: pointer; }
.tl-svg .mk:hover, .tl-svg .mk.on, .tl-svg .mk:focus { stroke: var(--ink); stroke-width: 2.5; outline: none; }
.tl-svg .mk.diamond { transform-box: fill-box; transform-origin: center; rotate: 45deg; }
.tl-svg .k-annual { fill: var(--c-annual); } .tl-svg .k-hundred { fill: var(--c-hundred); } .tl-svg .k-ad { fill: var(--c-ad); }
.tl-svg .k-check { fill: var(--c-check); } .tl-svg .k-component { fill: var(--c-component); } .tl-svg .k-wb { fill: var(--c-wb); }
.tl-svg .k-other { fill: var(--c-other); } .tl-svg .k-repair { fill: var(--c-repair); } .tl-svg .k-alteration { fill: var(--c-alteration); }
.tl-svg .k-overhaul { fill: var(--c-overhaul); }
.tl-legend .key { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.tl-legend .key-square { border-radius: 2px; }
.tl-legend .key-diamond { border-radius: 1px; width: 9px; height: 9px; transform: rotate(45deg); }
.tl-legend .k-annual { background: var(--c-annual); } .tl-legend .k-hundred { background: var(--c-hundred); } .tl-legend .k-ad { background: var(--c-ad); }
.tl-legend .k-check { background: var(--c-check); } .tl-legend .k-component { background: var(--c-component); } .tl-legend .k-wb { background: var(--c-wb); }
.tl-legend .k-other { background: var(--c-other); } .tl-legend .k-repair { background: var(--c-repair); } .tl-legend .k-alteration { background: var(--c-alteration); }
.tl-legend .k-overhaul { background: var(--c-overhaul); }
.cat.ad-cat { color: var(--c-ad); }

/* annual and 100-hour inspections are one family: one colour, one square */
:root { --c-inspection: var(--c-annual); }
.tl-svg .k-inspection { fill: var(--c-annual); }
.tl-legend .k-inspection { background: var(--c-annual); }

.tl-legend .tl-all { height: 30px; padding: 0 12px; margin-right: 6px; font-family: var(--serif); font-size: 13px; }


/* ---- the aircraft tab row, under the header (layout A: two or more aircraft) ---- */
.ac-tabs { display: flex; align-items: stretch; gap: 4px; min-height: 58px; padding: 0 28px; flex-shrink: 0;
           background: var(--field); border-bottom: 1px solid var(--lb-edge); }
.ac-tab { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-width: 120px;
          border-bottom: 3px solid transparent; text-decoration: none; color: var(--soft); line-height: 1.2; }
.ac-tab:hover { background: var(--lb-ground); color: var(--ink); }
.ac-tab[aria-selected="true"] { border-bottom-color: var(--accent); background: var(--lb-ground); color: var(--ink); }
.ac-words { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ac-tab b { font-weight: 600; font-size: 15px; }
.ac-tab.ac-fleet { flex-direction: row; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.ac-tab.ac-fleet svg rect { fill: none; stroke: currentColor; stroke-width: 1.8; }
.ac-status { font-size: 12px; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-status.bad { color: var(--bad); } .ac-status.warn { color: var(--warn); } .ac-status.good { color: var(--good); }
.ac-thumb { width: 34px; height: 26px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
/* the top bar's one button: the Inspection Records Packet, on the dashboard only (George, 2026-10-27) */
.ac-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.ac-actions:empty { display: none; }
.ac-actions .ac-act { display: inline-flex; align-items: center; gap: 8px; height: 38px; min-height: 0; padding: 0 16px;
                      font-size: 14px; font-weight: 600; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.ac-actions .tl-zoom { flex-wrap: wrap; }
.sq-form[hidden] { display: none; }

/* squawks: the mechanic, ticks, and the send dialog (2026-10-01) */
.sq-mech { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border-radius: 10px;
           background: var(--desk); font-size: 14px; color: var(--soft); }
.sq-mech .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sq-mech b { color: var(--ink); }
.sq-mech .lb-btn { margin-left: auto; }
.sq-pick { width: 18px; height: 18px; margin: 2px 4px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.sq-sent { margin: 0; font-size: 13px; color: var(--accent); font-weight: 600; }
.sq-sentnote { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--desk); color: var(--good); font-weight: 600; }
.lb-modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(10, 16, 24, 0.38); display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; overflow: auto; }
.lb-modal { width: min(560px, 100%); background: var(--field); border: 1px solid var(--lb-edge); border-radius: 14px; box-shadow: var(--lb-shadow);
            padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.sq-send, .sq-mform { display: flex; flex-direction: column; gap: 10px; }
.sq-send textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--field); color: var(--ink); }
.sq-to { margin: 0; color: var(--soft); font-size: 14px; }
.sq-sendlist { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
/* the greeting in the middle of the row (2026-10-01) */
.ac-greet { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 24px; }
.ac-greet b { font-size: 14px; font-weight: 600; color: var(--ink); }
.ac-line { display: block; max-width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
           font: inherit; font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.ac-line:hover .q { color: var(--ink); }
.ac-line .by { color: var(--muted); }
.ac-otd .by { color: var(--accent); font-weight: 600; }
@media (max-width: 1100px) { .ac-greet { display: none; } }

/* Manage > People: the mechanic per aircraft */
.mc-card { display: flex; flex-direction: column; gap: 12px; }
.mc-list { display: flex; flex-direction: column; }
.mc-row { display: grid; grid-template-columns: 110px 1fr auto auto; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.mc-row .mc-remove[data-sure] { border-color: var(--bad, #b3261e); color: var(--bad, #b3261e); }
.mc-reg { font-family: var(--mono); font-size: 14px; }
.mc-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mc-self { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: -4px; }
.mc-self .mc-self-say { color: var(--ink-2, inherit); }
.pg-mech { display: block; color: var(--ok, #1e7a3c); font-weight: 600; }
.mc-name { font-weight: 600; }

.ib-where { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
.ib-read { color: var(--good); font-weight: 600; text-decoration: none; }
.ib-read:hover { text-decoration: underline; }
.ib-failed { color: var(--bad); }

/* the New logs side panel, opened from the row */
.lb-panel-back { position: fixed; inset: 0; z-index: 60; background: rgba(10, 16, 24, 0.38); display: flex; justify-content: flex-end; }
.lb-panel { width: min(640px, 100%); height: 100%; overflow: auto; background: var(--lb-ground); border-left: 1px solid var(--lb-edge);
            box-shadow: var(--lb-shadow); padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.lb-panel-x { align-self: flex-end; }

/* ---- the Fleet view: a card per aircraft ---- */
.fleet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fleet-card { display: flex; flex-direction: column; gap: 6px; padding: 0 22px 20px; overflow: hidden; background: var(--field); border: 1px solid var(--lb-edge);
              border-radius: 14px; box-shadow: var(--lb-shadow); text-decoration: none; color: var(--ink); }
.fleet-card:hover { border-color: var(--accent); color: var(--ink); }
.fleet-card .fphoto { height: 160px; margin: 0 -22px 12px; border-bottom: 1px solid var(--lb-edge); }
.fleet-card .reg { font-family: var(--label); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.fleet-card .mm { font-size: 13.5px; color: var(--muted); }
.fleet-card .fstat { margin-top: 6px; }
.fleet-card .fnext { font-size: 13.5px; color: var(--soft); }
.fleet-card .fmeta { font-size: 13px; color: var(--muted); }
.set-row { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }

/* ---- the owner's photo of the aircraft: big on its dashboard, small in its tab and Fleet card ---- */
.lb-ident { display: flex; align-items: center; gap: 24px; }
.ac-photo { position: relative; width: 240px; height: 150px; flex-shrink: 0; border-radius: 14px; overflow: hidden;
            border: 1px solid var(--lb-edge); background: var(--lb-ground); display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.ac-photo img, .ac-thumb img, .fphoto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-thumb.none, .fphoto.none { display: flex; align-items: center; justify-content: center; background: var(--lb-ground); }
.fphoto { display: block; }
svg.plane { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.ac-photo .ph-note { font-size: 13px; }
.ac-photo.none { padding-bottom: 34px; }
.ac-photo .ph-tools { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.ac-photo .ph-btn { height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: rgba(7, 22, 43, 0.8); color: #FFFFFF;
                    font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ac-photo .ph-btn:hover { background: rgba(7, 22, 43, 0.95); }
.ac-photo .ph-btn:disabled { opacity: 0.7; cursor: default; }
/* over a photo: a grey corner tab, and the buttons only once it is clicked */
.ac-photo .ph-corner { position: absolute; top: 0; right: 0; width: 38px; height: 38px; padding: 0; border: 0; cursor: pointer;
                       background: rgba(7, 22, 43, 0.38); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.ac-photo .ph-corner::after { content: ""; position: absolute; top: 7px; right: 7px; width: 3px; height: 3px; border-radius: 50%;
                              background: #FFFFFF; box-shadow: -5px 0 0 #FFFFFF, -10px 0 0 #FFFFFF; }   /* "…" */
.ac-photo .ph-corner:hover, .ac-photo .ph-corner[aria-expanded="true"] { background: rgba(7, 22, 43, 0.72); }
.ac-photo .ph-corner:focus-visible { outline: none; background: rgba(7, 22, 43, 0.85); }
.ac-photo .ph-menu { top: 8px; bottom: auto; right: 44px; }
.ac-photo .ph-problem { position: absolute; left: 8px; right: 8px; top: 8px; margin: 0; padding: 6px 8px; border-radius: 7px;
                        background: var(--bad-bg); color: var(--bad); font-size: 12.5px; }

/* ---- Manage: the owner's aircraft, and adding one from the FAA registry ---- */
.mg-list { display: flex; flex-direction: column; gap: 4px; }
.mg-plane { display: grid; grid-template-columns: 96px minmax(0, 1fr) 280px; gap: 20px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.mg-thumb { width: 96px; height: 64px; border-radius: 8px; overflow: hidden; }
.mg-thumb.none { display: flex; align-items: center; justify-content: center; background: var(--lb-ground); }
.mg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-mid { display: flex; flex-direction: column; gap: 5px; }
.mg-mid .reg { font-family: var(--label); font-size: 22px; font-weight: 600; }
.mg-faa { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.mg-faa .st { min-width: 0; }
.warn-ink { color: var(--warn); }
.mg-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mg-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mg-add { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.mg-reg { display: flex; align-items: flex-end; gap: 12px; }
.mg-reg .field { flex: 0 1 280px; }
.mg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.mg-found { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--accent); background: var(--lb-ground); }
.mg-found .row { display: flex; gap: 10px; }
.mg-dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 15px; }
.mg-dl dt { color: var(--muted); }
.mg-dl dd { margin: 0; font-weight: 600; }
.mg-problem { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-size: 14.5px; }
.mg-add > .btn-solid { align-self: flex-start; }
.lb-faa { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.mg-take { align-self: flex-start; margin-top: 4px; }

/* ---- the dashboard (George, 2026-09-29, from the flight-deck mockups) ---- */
.db { gap: 20px; }
.db .lb-head { align-items: center; }
.db-ring-card { display: flex; align-items: center; gap: 18px; padding: 16px 20px; flex-shrink: 0; border-radius: 12px;
                border: 1px solid var(--lb-edge); background: var(--panel, var(--field)); box-shadow: var(--lb-shadow); }
.db-ring { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.db-ring-hole { width: 76px; height: 76px; border-radius: 50%; background: var(--field); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.db-ring-hole b { font-family: var(--label); font-size: 26px; font-weight: 600; line-height: 1; }
.db-ring-hole b small { font-size: 15px; color: var(--muted); }
.db-ring-hole span { font-size: 11px; color: var(--muted); }
.db-ring-key { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.db-key { display: flex; align-items: center; gap: 8px; }
.db-key i { width: 9px; height: 9px; border-radius: 2px; background: var(--line); }
.db-key.bad i { background: var(--bad); } .db-key.warn i { background: var(--warn); } .db-key.good i { background: var(--good); }

.db-tile { gap: 8px; }
.db-tile-k { display: flex; align-items: center; gap: 10px; }
.db-mono { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
           font-family: var(--mono); font-size: 10px; border: 1.5px solid currentColor; }
.db-tile .db-mono { color: var(--link); }
.db-tile.cyan .db-mono { color: var(--cyan, var(--c-component)); } .db-tile.amber .db-mono { color: var(--warn); }
.db-tile.green .db-mono { color: var(--good); } .db-tile.red .db-mono { color: var(--bad); }
.db-tile.cyan { border-color: var(--cyan-glow, var(--lb-edge)); } .db-tile.amber { border-color: var(--warn-edge, var(--lb-edge)); }
.db-tile.green { border-color: var(--good-edge, var(--lb-edge)); } .db-tile.red { border-color: var(--bad-edge, var(--lb-edge)); }
.db-tile.blue { border-color: var(--blue-edge, var(--lb-edge)); }
.db-bar { height: 6px; border-radius: 99px; background: var(--track, var(--desk)); overflow: hidden; }
.db-bar i { display: block; height: 6px; border-radius: 99px; background: var(--link); }
.db-tile.cyan .db-bar i { background: var(--cyan, var(--c-component)); }
.db-tile.amber .db-bar i { background: linear-gradient(90deg, var(--good), var(--warn)); }
.db-tile.green .db-bar i { background: var(--good); } .db-tile.red .db-bar i { background: var(--bad); }

.db-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) minmax(0, 0.85fr); gap: 16px; align-items: start; }
.db-mid { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.db .lb-card { padding: 18px 20px; }
.db .lb-card > h2 { margin-bottom: 10px; }

/* the due list, compact: each row washed in its state's colour */
.due.compact { gap: 8px; }
.due.compact .due-row { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.due.compact .due-row:first-child { padding-top: 10px; }
.due.compact .due-row .text { font-size: 14px; }
.due.compact .due-row .meta { font-size: 12.5px; }
.due-row.st-bad { border-color: var(--bad-edge, var(--line)); background: linear-gradient(90deg, var(--bad-bg), transparent 60%); }
.due-row.st-warn { border-color: var(--warn-edge, var(--line)); background: linear-gradient(90deg, var(--warn-bg), transparent 60%); }
.due-row.st-good { border-color: var(--good-edge, var(--line)); background: linear-gradient(90deg, var(--good-bg), transparent 60%); }
.due.compact .st { min-width: 0; }

/* the whole history, small */
.db-mini { display: block; width: 100%; height: auto; cursor: pointer; }
.db-mini .gap { fill: var(--desk); opacity: 0.8; }
:root[data-theme="dark"] .db-mini .gap { fill: var(--hatch); opacity: 0.55; }
.db-mini .base { stroke: var(--lb-edge); stroke-width: 1.5; }
.db-mini .yr { font-family: var(--mono); font-size: 10px; fill: var(--muted); text-anchor: middle; }
.db-mini .stem { stroke-width: 1; opacity: 0.55; }
.db-mini .k-inspection, .db-mini .k-hundred { fill: var(--c-annual); stroke: var(--c-annual); }
.db-mini .k-ad, .db-mini .k-check { fill: var(--c-check); stroke: var(--c-check); }
.db-mini .k-component, .db-mini .k-wb, .db-mini .k-other { fill: var(--c-component); stroke: var(--c-component); }
.db-mini .k-repair { fill: var(--c-repair); stroke: var(--c-repair); }
.db-mini .k-alteration { fill: var(--c-alteration); stroke: var(--c-alteration); }
.db-mini .k-overhaul { fill: var(--c-overhaul); stroke: var(--c-overhaul); }

/* what the books show, by kind */
.db-find { display: flex; flex-direction: column; gap: 8px; }
.db-find-row { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.db-find-row:hover { border-color: var(--lb-edge); color: var(--ink); }
.db-find-row .db-mono { width: 36px; height: 36px; }
.db-find-row > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.db-find-row b { font-family: var(--label); font-size: 19px; font-weight: 600; }
.db-find-row span span { font-size: 13.5px; color: var(--soft); }
.db-find-row.warn { background: var(--warn-bg); } .db-find-row.warn .db-mono { color: var(--warn); }
.db-find-row.bad { background: var(--bad-bg); } .db-find-row.bad .db-mono { color: var(--bad); }
.db-find-row.good { background: var(--good-bg); } .db-find-row.good .db-mono { color: var(--good); }
.db-find-row.violet { background: var(--violet-bg, var(--desk)); } .db-find-row.violet .db-mono { color: var(--violet, var(--c-check)); }
.db-find-row.blue { background: var(--blue-bg, var(--desk)); } .db-find-row.blue .db-mono { color: var(--link); }
.db-find-row.none .db-mono { color: var(--muted); }
.due.compact .due-row { grid-template-columns: 92px minmax(0, 1fr); }
.due.compact .due-row .act { grid-column: 2; }
.due.compact .due-row .act:empty { display: none; }
.due.compact .lb-btn { height: 32px; padding: 0 10px; font-size: 13px; }

/* ---- the parts the owner follows (Components) ---- */
.cp-tracked { display: flex; flex-direction: column; gap: 12px; }
.cp-head { display: flex; justify-content: space-between; align-items: baseline; }
.cp-head a { font-weight: 600; font-size: 14px; text-decoration: none; }
.cp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cp-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--lb-edge);
           background: var(--panel, var(--field)); box-shadow: var(--lb-shadow); }
.cp-card.st-bad { border-color: var(--bad-edge, var(--lb-edge)); } .cp-card.st-warn { border-color: var(--warn-edge, var(--lb-edge)); }
.cp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cp-top b { font-family: var(--label); font-size: 19px; font-weight: 600; }
.cp-state { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
            background: var(--desk); color: var(--muted); }
.cp-state.bad { background: var(--bad-bg); color: var(--bad); } .cp-state.warn { background: var(--warn-bg); color: var(--warn); }
.cp-state.good { background: var(--good-bg); color: var(--good); } .cp-state.blue { background: var(--blue-bg, var(--desk)); color: var(--link); }
.cp-what { font-size: 14px; color: var(--soft); }
.cp-what.cp-also { font-size: 13px; color: var(--muted); }
.cp-ids { font-family: var(--mono); font-size: 13px; color: var(--ink, inherit); overflow-wrap: anywhere; }
.cp-doubt { font-size: 12.5px; color: var(--warn, var(--soft)); }
.cp-older { font-size: 13px; color: var(--muted); } .cp-older summary { cursor: pointer; }
.cp-older div { padding: 2px 0 2px 12px; }
.ph-parts { font-size: 20px; margin: 18px 0 8px; }
.mg-tfit { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .mg-tfit b { font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.cp-src { align-self: flex-start; margin-top: auto; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
          padding: 2px 7px; border-radius: 999px; }
.cp-src.logs { background: var(--good-bg); color: var(--good); } .cp-src.mine { background: var(--blue-bg, var(--desk)); color: var(--link); }

/* ---- Manage: its sub-tabs, and choosing what to track ---- */
.mg-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 10px; background: var(--tray, var(--desk)); border: 1px solid var(--line); }
.mg-tab { height: 36px; padding: 0 14px; display: flex; align-items: center; gap: 6px; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--soft); }
.mg-tab[aria-selected="true"] { color: #FFFFFF; background: linear-gradient(180deg, var(--accent-hi, var(--accent)), var(--accent)); }
.mg-tab[aria-disabled="true"] { color: var(--muted); cursor: default; }
.mg-soon { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: var(--desk); }
.mg-plane-pick { align-self: flex-start; height: 40px; padding: 0 10px; border: 1px solid var(--lb-edge); background: var(--field); color: var(--ink); font: inherit; font-weight: 600; }
.mg-track { padding: 0; overflow: hidden; }
.mg-trow { display: grid; grid-template-columns: 44px 190px minmax(0, 1fr) 500px; gap: 16px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.mg-trow.on { background: var(--blue-bg, transparent); }
.mg-trow input[type="checkbox"] { width: 20px; height: 20px; }
.mg-thead { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: none; }
.mg-tname { display: flex; flex-direction: column; }
.mg-tname b { font-family: var(--label); font-size: 17px; font-weight: 600; }
.mg-tlogs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); min-width: 0; }
.mg-tlogs .cp-state { flex-shrink: 0; }
.mg-tfigs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mg-tab { white-space: nowrap; }
.mg-tfigs input { width: 84px; height: 36px; padding: 0 8px; font-size: 13.5px; font-family: var(--serif); }
.mg-tfigs input:first-child { width: 128px; }
.mg-tfigs .btn-quiet { height: 36px; }
.mg-tsaid { flex-basis: 100%; }
.mg-tsaid:empty { display: none; }
.mg-tadd { display: flex; gap: 10px; align-items: center; padding: 14px 20px; }
.mg-tadd input { max-width: 320px; height: 40px; }
.mg-track > p { padding: 0 20px 16px; margin: 0; }

/* ---- findings: two panes, the pages side by side (George, 2026-09-29) ---- */
.fd { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 24px; align-items: start; }
.fd-rail { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; }
.fd-rail h1 { font-size: 30px; line-height: 1.1; }
.fd-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fd-chip { height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); color: var(--soft);
           font-family: var(--serif); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.fd-chip .n { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.fd-chip[aria-pressed="true"] { border-color: var(--lb-edge); background: var(--blue-bg, var(--desk)); color: var(--ink); }
.fd-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 290px); overflow: auto; padding-right: 4px; }
.fd-item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 12px; border-radius: 10px;
           border: 1px solid var(--line); background: var(--field); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.fd-item:hover { border-color: var(--lb-edge); }
.fd-item .db-mono { width: 36px; height: 36px; }
.fd-item.warn .db-mono { color: var(--warn); } .fd-item.bad .db-mono { color: var(--bad); } .fd-item.good .db-mono { color: var(--good); }
.fd-item.violet .db-mono { color: var(--violet, var(--c-check)); } .fd-item.blue .db-mono { color: var(--link); }
/* the finding open on the right (George, 2026-10-26: "That entry should be colored differently or identified as what I've
   clicked on"): one look for every kind, in both themes: an accent bar down its left, an accent border, a stronger ground,
   its title bold, and "Showing on the right" over it */
.fd-item[aria-current="true"] { border: 2px solid var(--accent); padding: 10px 11px 10px 15px; background: var(--blue-bg, var(--desk));
                                box-shadow: inset 5px 0 0 var(--accent), 0 0 0 3px rgba(10, 108, 240, 0.18); }
.fd-item[aria-current="true"] .fd-words b { font-weight: 700; color: var(--ink); }
.fd-now { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-hi, var(--accent));
          margin-bottom: 3px; }
.fd-item:focus-visible { outline: 3px solid var(--accent-hi, var(--accent)); outline-offset: 2px; }
.fd-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fd-words b { font-size: 15px; }
.fd-words span { font-size: 13px; color: var(--soft); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fd-words .fd-looked { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--good); }
.fd-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fd-kind { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fd-kind.warn { color: var(--warn); } .fd-kind.bad { color: var(--bad); } .fd-kind.good { color: var(--good); }
.fd-kind.violet { color: var(--violet, var(--c-check)); } .fd-kind.blue { color: var(--link); }
.fd-pane h2 { font-size: 30px; line-height: 1.1; }
.fd-detail { margin: 0; font-size: 16px; line-height: 1.5; color: var(--soft); max-width: 900px; }
.fd-pages { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fd-pages.n1 { grid-template-columns: minmax(0, 560px); } .fd-pages.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fd-page { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fd-page figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; }
.fd-page figcaption a { font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.fd-page img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--lb-edge); box-shadow: var(--lb-shadow); background: #FFFFFF; }
.fd-mark { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--lb-edge); font-size: 14.5px; color: var(--soft); }
.fd-mark > span { flex: 1 1 280px; }
.fd-mark input { max-width: 340px; height: 40px; }

/* ---- Manage: people (George, 2026-09-30; app/people.py) ---- */
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.pp-list { overflow-x: auto; }
.pp-who b { display: block; font-size: 15.5px; }
.pp-who span, .pp-state span { display: block; }
.lb-table td > .small { display: block; }
.pp-role { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
           background: var(--desk); color: var(--muted); }
.pp-account, .pp-owner { background: var(--s1-bg, var(--desk)); color: var(--accent); }
.pp-mechanic { background: rgba(0, 152, 199, 0.1); color: var(--c-component); }
.pp-ok { color: var(--good); } .pp-wait { color: var(--warn); }
.pp-ended td { opacity: 0.6; }
.pp-act { white-space: nowrap; text-align: right; }
.pp-act .lb-btn + .lb-btn { margin-left: 6px; }
.pp-remove { color: var(--bad); }
.pp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 14px; }
.pp-foot p { flex-basis: 100%; margin: 0; }
.pp-count { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--desk); color: var(--muted); }
.pp-form { display: flex; flex-direction: column; gap: 14px; }
.pp-form h2 { margin: 0; }
.pp-field { display: flex; flex-direction: column; gap: 6px; }
.pp-label, .pp-form legend { font-size: 13px; font-weight: 600; color: var(--muted); }
.pp-form input[type="email"], .pp-form input[type="date"] { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field, transparent); color: inherit; font: inherit; }
.pp-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 9px; background: var(--tray, var(--desk)); border: 1px solid var(--line); }
.pp-seg button { height: 32px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.pp-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #FFFFFF); }
.pp-form fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; }
.pp-form fieldset.pp-areas { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); }
.pp-form fieldset.pp-areas[hidden] { display: none; }
.pp-areas legend { float: left; grid-column: 1 / -1; margin-bottom: 4px; }
.pp-check { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.pp-check input { width: 17px; height: 17px; }
.pp-form > .btn-solid { height: 42px; }
.pp-said { margin: 0; color: var(--good); }
.pp-said:empty { display: none; }
.lb-readonly { margin: 0 0 14px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--desk); font-size: 14px; }
@media (max-width: 1100px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- corrections (George, 2026-09-30; engine/logbook.py) ---- */
.fix-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
           text-transform: uppercase; vertical-align: middle; background: var(--good-bg); color: var(--good); }
.fix-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 13px; color: var(--muted); }
.fix-note .lb-btn { height: 26px; padding: 0 10px; font-size: 12.5px; }
.ent dl dd.fix-dd { grid-column: 2; margin: -4px 0 0; }
.lbk-item .top.fixed { color: var(--good); }
.fix { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.fix > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); list-style: none; }
.fix > summary::-webkit-details-marker { display: none; }
.fix > summary::before { content: "✎ "; }
.fix-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.fix-l { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.fix-form select, .fix-form input, .fix-form textarea { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field, transparent);
           color: inherit; font: inherit; font-size: 14px; }
.fix-now { margin: 0; font-size: 13px; color: var(--muted); }
.fix-form .btn-solid { align-self: flex-start; height: 38px; margin-top: 6px; }
.fix-form .small { margin: 0; }

/* ---- superseded records (George, 2026-10-17; engine/supersede.py) ---- */
.sup-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 6px; font-size: 13.5px; }
.sup-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
           text-transform: uppercase; background: var(--desk); color: var(--muted); border: 1px solid var(--line); }
.sup-by .sup-tag { background: var(--good-bg); color: var(--good); border-color: transparent; }
.lbk-item .top.sup { color: var(--muted); }
/* ---- the Logbook's "By kind" lists (George, 2026-10-17; engine/bykind.py) ---- */
.lbk-item .top.kind-where { color: var(--ink); }
.lbk-item .top.kind-cur { color: var(--good); font-weight: 600; }
.lbk-item .top.kind-form { color: var(--accent); }
.lbk-item .top.kind-ref { color: var(--muted); }
.ent-doc { margin: 2px 0 6px; color: var(--muted); }
.ent-doc b { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; margin-right: 2px; }
.fd-f337 { margin-bottom: 8px; }
.fd-f337-sure { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lbk-year.lbk-group { position: static; color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); }
.sup-choices { display: flex; flex-direction: column; gap: 4px; }
.sup-choice { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 14px; }
.sup-choice input { margin-top: 3px; min-height: 0; }
.sup-choice:has(input:checked) { border-color: var(--accent); }
.sda { margin: 6px 0 10px; padding: 10px 12px; border: 1px solid var(--warn); border-radius: 10px; background: var(--warn-bg); }
.sda > b { font-size: 14px; }
.sda > p { margin: 4px 0 0; }
.intake-fix { display: block; margin: 2px 0 4px 22px; font-size: 13px; }

/* ---- the mechanic's profile (George, 2026-10-01; app/credentials.py) ---- */
.cred-form { max-width: 620px; margin: 24px auto; display: flex; flex-direction: column; gap: 14px; }
.cred-form h1 { margin: 0; }
.cred-form .sub { margin: 0; color: var(--muted); }
.cred-form input[type="text"], .cred-form input:not([type]) { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field, transparent); color: inherit; font: inherit; }
.cred-ratings { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.cred-tick { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.cred-tick input { margin-top: 3px; }
.cred-tick span { display: flex; flex-direction: column; gap: 2px; }
/* repairman certificates (George, 2026-10-29): a ticked one's number, class and aircraft under it */
.rm-more { margin: -2px 0 4px 30px; display: flex; flex-direction: column; gap: 8px; }
.rm-classes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.rm-classes .pp-label { flex-basis: 100%; }
.cred-actions { display: flex; gap: 10px; align-items: center; }
.cred-actions .btn-solid { height: 42px; padding: 0 20px; }
.fix-as { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---- one record on several pages (George, 2026-10-01): a Form 337's front
   and back side by side, each with a numbered yellow tab ---- */
.pg-scans { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; }
.pg-scans .pg-scan { position: relative; top: auto; }
.pg-scans .cap { font-size: 12px; color: var(--muted); margin: 0; }
.pg-body.multi { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.pg-body.multi .pg-scans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.pg-body.multi .pg-scans .cap { grid-column: 1 / -1; }
.pg-tab { position: absolute; top: -8px; right: 16px; min-width: 30px; height: 30px; padding: 0 8px; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
          border-radius: 4px 4px 8px 8px; background: #FFD84D; color: #3A2E00; font-family: var(--mono); font-size: 15px; font-weight: 700;
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); border: 1px solid #E0B400; }
.typed-h { margin: 14px 0 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1180px) { .pg-body.multi .pg-scans { grid-template-columns: minmax(0, 1fr); } }

/* ---- squawks and the pre-annual checklist (George, 2026-10-01) ---- */
.sq-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sq-list, .sq-pre { display: flex; flex-direction: column; gap: 10px; }
.sq-list h2, .sq-pre h2 { margin: 0; }
.sq-top { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.sq-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sq-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: var(--desk); }
.sq-form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sq-form-row input[type="text"] { flex: 1 1 260px; }
.sq-form input, .sq-form select, .sq-form textarea, .sq-check input, .sq-check select { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--field, transparent); color: inherit; font: inherit; font-size: 14.5px; }
.sq-form .btn-solid, .sq-check .btn-solid { height: 38px; padding: 0 16px; }
.sq-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.sq-item.done { opacity: 0.85; }
.sq-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sq-top b { font-size: 16px; }
.sq-when { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.sq-detail { margin: 0; font-size: 14.5px; }
.sq-by { margin: 0; font-size: 13px; color: var(--muted); }
.sq-ok { color: var(--good); }
.sq-acts { display: flex; gap: 8px; margin-top: 4px; }
.sq-check { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.sq-done > summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.sq-pre-head { display: flex; justify-content: space-between; align-items: center; }
.sq-pre h3 { margin: 10px 0 2px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sq-pre .sub { margin: 0; color: var(--muted); font-size: 14px; }
.sq-due { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sq-due div { display: flex; flex-direction: column; gap: 2px; }
.sq-state { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; text-align: center; background: var(--desk); }
.sq-due.overdue .sq-state { background: var(--bad-bg); color: var(--bad); }
.sq-due.soon .sq-state { background: var(--warn-bg); color: var(--warn); }
@media (max-width: 1100px) { .sq-grid { grid-template-columns: minmax(0, 1fr); } }
@media print {
  body * { visibility: hidden; }
  .sq-pre, .sq-pre * { visibility: visible; }
  .sq-pre { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; }
  .sq-pre .lb-btn { display: none; }
}
.sq-line { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lb-admin { margin: 0 0 14px; padding: 9px 14px; border-radius: 10px; border: 1px solid #E0B400; background: #FFF6D1; color: #3A2E00; font-size: 14px; font-weight: 500; }

/* ---- new logs sent in, awaiting reading (George, 2026-10-01) ---- */
.lb-inbox { margin: 0 0 16px; }
.lb-inbox:empty { display: none; }
.ib-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ib-head h2 { margin: 0; font-size: 18px; }
.ib-head .btn-solid { height: 38px; padding: 0 16px; }
.ib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.ib-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px; border-radius: 10px;
           border: 1px solid var(--line); background: var(--card, transparent); }
.ib-card > .lb-btn, .ib-card > .ib-noteform { grid-column: 2; justify-self: start; }
.ib-pic { width: 84px; height: 84px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--desk); cursor: zoom-in;
          display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.ib-pic img { width: 100%; height: 100%; object-fit: cover; }
.ib-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ib-text b { font-size: 15px; }
.ib-note { font-size: 14px; font-style: italic; }
.ib-state { align-self: flex-start; margin-top: 2px; padding: 1px 8px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em;
            text-transform: uppercase; background: var(--warn-bg); color: var(--warn); }
.ib-noteform { display: flex; gap: 6px; align-items: flex-start; width: 100%; }
.ib-noteform textarea { flex: 1; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: var(--field, transparent); color: inherit; }
.ib-add { display: flex; flex-direction: column; gap: 12px; padding: 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--accent); background: var(--card, transparent); }
.ib-addtop { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ib-tabs { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
.ib-phone { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.ib-qr { width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; background: #FFFFFF; border-radius: 10px; padding: 6px; }
.ib-qr svg { width: 100%; height: 100%; }
.ib-side { display: flex; flex-direction: column; gap: 8px; max-width: 360px; align-items: flex-start; }
.ib-ok { color: var(--good); font-weight: 600; }
.ib-comp { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ib-comp textarea { width: min(560px, 100%); padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--field, transparent); color: inherit; }
.ib-comp .btn-solid { height: 40px; padding: 0 18px; }
.db-newlog { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid #E0B400;
             background: #FFF6D1; color: #3A2E00; text-decoration: none; }
.db-newlog span { font-size: 14px; }

/* Manage: the owner's own aircraft details (2026-10-02) */
.mg-edit { display: flex; flex-direction: column; gap: 12px; }
.mg-edit .mg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.mg-faa-sug { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--desk); }

/* ACCOUNT (George, 2026-10-02): behind the gear */
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.acct-history { grid-column: 1 / -1; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-card { display: flex; flex-direction: column; gap: 12px; }
.acct-card > h2 { margin-bottom: 0; }
.acct-card .field input, .acct-card .field select { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper, var(--field)); color: var(--ink); font: inherit; font-size: 16px; width: 100%; }
.acct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-three { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 520px) { .acct-two, .acct-three { grid-template-columns: 1fr; } }
.acct-value { font-size: 18px; font-weight: 600; }
.acct-email { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); align-items: flex-start; }
.acct-email-new { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.acct-email-new .btn-line { align-self: flex-start; }
.acct-said { min-height: 1em; color: var(--muted); }
.acct-pay { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.acct-upgrades { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.acct-upgrades h3 { font-size: 15px; margin: 0; }
.acct-up { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.acct-confirm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.acct-confirm p { flex-basis: 100%; margin: 0; }
.acct-radios { display: flex; flex-direction: column; gap: 10px; }
.acct-radio { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.acct-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.acct-link { margin-right: 12px; }
.fd-lines { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.mg-confirm { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--bad); border-radius: 10px; background: var(--bad-bg, var(--desk)); max-width: 360px; }
.mg-confirm .field input { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
.btn-solid.danger { background: var(--bad); }
.mg-remove { color: var(--bad); }
.pay-panel { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.pay-panel h1 { font-size: 24px; }
.acct-alert { border-color: var(--bad); background: var(--bad-bg, var(--field)); font-weight: 600; margin-bottom: 18px; }
.acct-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 18px; border-color: var(--accent, #1366E0); }
.acct-grid.acct-ro .acct-card { opacity: .85; }

/* serial numbers for ADs (George, 2026-10-02) */
.sn-card { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.sn-card > h2 { margin-bottom: 0; }
.sn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.sn-num { font-size: 17px; margin: 2px 0; }
.sn-ok { color: var(--good); }
.sn-none { color: var(--muted); }
.sn-page { width: 220px; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; display: block; }
.sn-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sn-form { display: flex; gap: 8px; flex-wrap: wrap; }
.sn-form input { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
.sn-row .mg-problem { grid-column: 1 / -1; }
@media (max-width: 760px) { .sn-row { grid-template-columns: 1fr; } .sn-act { justify-content: flex-start; } }

/* getting set up (George, 2026-10-02) */
.setup-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; margin-bottom: 18px; border-color: var(--accent); }
.checks-card { gap: 4px; }
.setup-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; display: block; }
.setup-bar i { display: block; height: 100%; background: var(--accent); }
.setup-list { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 0; padding: 8px 24px; max-width: 860px; }
.setup-step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.setup-step:first-child { border-top: 0; }
.setup-step > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.setup-step p { margin: 0; }
.setup-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; color: #fff; }
.setup-step.done .setup-mark { background: var(--good); border-color: var(--good); }
.setup-step.done b { color: var(--muted); }
.setup-hours { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.setup-hours .field input { height: 40px; width: 9em; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }

/* ADs (George, 2026-10-02) */
.ad-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ad-row-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ad-warn { color: var(--warn); font-weight: 600; margin: 0; }
.ad-line { padding-left: 12px; border-left: 3px solid var(--line); }
.ad-aside { font-style: italic; }
.ad-form { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.ad-form select, .ad-form textarea, .ad-form input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
.ad-form textarea { min-height: 64px; }
.ad-ref { display: flex; gap: 8px; }

/* ---- tablets and phones (George, 2026-10-02: mechanics in the hangar) ----
   Only on a site that keeps logbooks (body.has-logbooks). Every button stays
   in sight (George: a menu button hides them from people who aren't at home
   with computers): below 1240px the bar's buttons get smaller, and wrap onto
   a second row rather than hide. Only a phone (below 900px) has the menu. */
@media (min-width: 901px) and (max-width: 1240px) {
  body.has-logbooks .bar { flex-wrap: wrap; height: auto; min-height: 60px; padding: 6px 14px; gap: 6px 10px; }
  body.has-logbooks .brand .mono { display: none; }
  body.has-logbooks .wordmark { height: 24px; }
  body.has-logbooks .bar .tabs { margin: 0; flex-wrap: wrap; gap: 1px; font-size: 12.5px; }
  body.has-logbooks .bar .tabs a { height: 32px; padding: 0 7px; }
  body.has-logbooks .bar .btn-quiet { height: 34px; padding: 0 10px; font-size: 13px; }
  body.has-logbooks .bar .who { gap: 8px; }
}
@media (max-width: 1240px) {
  html:has(body.has-logbooks) { height: auto; }
  body.has-logbooks { height: auto; min-height: 100%; display: block; }
  .lb { overflow: visible; }
  .fd { grid-template-columns: minmax(0, 1fr); }
  .fd-rail { position: static; }
  .fd-list { max-height: none; overflow: visible; }
  .db-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .db-cols > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .lb-ident { flex-direction: column; align-items: stretch; gap: 16px; }
  .ac-photo { width: 100%; height: 190px; }
  .db .lb-head, .lb-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .lb-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .db-cols { grid-template-columns: minmax(0, 1fr); }
  .db-ring-card { align-self: stretch; }
  .lb { padding: 20px 16px 40px; overflow: visible; }
  .lb h1 { font-size: 28px; }
  .lb-card { padding: 16px; }
}
@media (max-width: 420px) {
  .lb-tiles { grid-template-columns: minmax(0, 1fr); }
}
/* fingers, not a mouse: every control at least 44px (WCAG 2.5.5) */
@media (pointer: coarse) {
  .lb-btn, .btn-line, .btn-quiet, .ph-btn, .mg-tab, .fd-chip, .ac-tab, .ac-act, .fd-item, .sn-act button, .acct-card button { min-height: 44px; }
  .acct-radio input, .mg-check input, input[type="checkbox"] { min-width: 22px; min-height: 22px; }
}
.fd-item { flex-shrink: 0; }

/* the file names pick the book (George, 2026-10-02) */
.ib-plan { font-size: 14px; }
.ib-plan ul { margin: 6px 0 0; padding-left: 20px; }
.ib-names summary { cursor: pointer; color: var(--link); }
.ib-names p { margin: 6px 0 0; }
.read-banner { display: flex; flex-direction: column; gap: 4px; border-color: var(--accent); background: var(--blue-bg, var(--field)); margin-bottom: 18px; }
.intake-bar { margin: 4px 0; }   /* the PDFs being split, done of all (George, 2026-10-14) */
.sn-warn { color: var(--warn); font-weight: 600; }
.sn-hist summary { cursor: pointer; color: var(--link); margin-top: 4px; }
.sn-hist div { padding: 2px 0 2px 12px; }

/* AskJackson | AVIATION in the top bar, as on aviation.askjackson.ai (George,
   2026-10-02: "AskJackson" alone is a different site). Logbook sites only;
   kept at every width. */
.brand-rule, .brand-vertical { display: none; }
body.has-logbooks .brand { gap: 12px; }
body.has-logbooks .brand-rule { display: block; width: 2px; height: 28px; border-radius: 1px; background: var(--line); flex-shrink: 0; }
body.has-logbooks .brand-vertical { display: block; font-family: var(--label); font-weight: 700; font-size: 14px; letter-spacing: 0.18em;
                                    text-transform: uppercase; color: var(--ink); white-space: nowrap; }
@media (max-width: 420px) { body.has-logbooks .brand-vertical { font-size: 12px; letter-spacing: 0.12em; } body.has-logbooks .brand { gap: 8px; } }

/* the page buttons (George, 2026-10-02): fixed places; an end that can't go further says so */
.pg-nav .lb-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 140px; text-decoration: none; }
.pg-stop { opacity: .5; cursor: default; pointer-events: none; }
.pg-blank { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 48px 24px; color: var(--muted);
            border: 1px dashed var(--line); border-radius: 12px; }
.acct-dl { align-self: flex-start; display: inline-flex; align-items: center; text-decoration: none; }

/* help from any screen (George, 2026-10-02) */
.support-btn { background: transparent; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
               min-width: 40px; min-height: 40px; color: var(--soft, var(--ink)); }
.sp-dlg { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(640px, calc(100vw - 32px)); background: var(--field); color: var(--ink); }
.sp-dlg::backdrop { background: rgba(7, 22, 43, 0.45); }
.sp-form { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; }
.sp-form h2 { margin: 0; font-size: 20px; }
.sp-shot { width: 100%; max-height: 260px; object-fit: contain; object-position: top; border: 1px solid var(--line); border-radius: 8px; background: var(--desk); }
.sp-kinds { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-kinds legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.sp-kind { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sp-kind input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.sp-kind span { display: flex; flex-direction: column; gap: 2px; }
.sp-label { font-weight: 600; }
.sp-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; resize: vertical; }
.sp-said { min-height: 1em; margin: 0; color: var(--bad); }
.sp-row { display: flex; gap: 10px; }
.mg-tfigs input.mg-wide { width: 168px; }
.mg-tfigs input.mg-num { width: 128px; font-family: var(--mono, monospace); }
.mg-tfigs input.mg-date { width: 128px; }

/* owner's documents and "Email to" (George, 2026-10-02) */
.dc-card { display: flex; flex-direction: column; gap: 0; }
.dc-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.dc-row:first-child { border-top: 0; }
.dc-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.dc-name { display: flex; flex-direction: column; gap: 2px; }
.dc-open { font-weight: 600; }
.dc-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dc-add h2 { flex-basis: 100%; }
.dc-add select, .dc-add input { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
.dc-sent { padding: 4px 0; }
.em-box { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; max-width: 520px; flex-basis: 100%; }
.em-box input, .em-box textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
.pg-bar { flex-wrap: wrap; }

/* The Logggs logo (George, 2026-10-02): on a logbook site, in place of the
   AskJackson wordmark and "| AVIATION"; light or dark with the theme. */
body.has-logbooks .wordmark { background: var(--logggs, url(/static/brand/logggs/logggs-light-800.webp)) left center / contain no-repeat;
                              -webkit-mask: none; mask: none; height: 48px; aspect-ratio: 1600 / 295; }
/* ...then a line and the site's name, so the one you're in is never in doubt (George, 2026-10-04) */
body.has-logbooks .brand-vertical { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1360px) { body.has-logbooks .wordmark { height: 36px; } }   /* every top-bar button stays in sight */
@media (max-width: 420px) { body.has-logbooks .wordmark { height: 30px; } }

/* Photos on a squawk (George, 2026-10-03) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.sq-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 2px; }
.sq-thumb { position: relative; width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
            background: var(--tray, #EDF2F8); cursor: pointer; flex: none; }
.sq-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sq-thumb-x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(4, 29, 45, 0.78);
              color: #fff; font-size: 15px; line-height: 22px; padding: 0; cursor: pointer; }
.sq-addph { cursor: pointer; }
.sq-addph:focus-within { outline: 2px solid var(--blue, #0A6CF0); outline-offset: 2px; }
.sq-full { display: block; max-width: min(88vw, 900px); max-height: 70vh; width: auto; height: auto; border-radius: 8px; margin: 4px 0 8px; }
.sq-qr { display: flex; justify-content: center; margin: 12px 0; }
.sq-qr svg { width: 240px; height: 240px; background: #fff; border-radius: 8px; }
@media (max-width: 600px) { .sq-thumb { width: 64px; height: 64px; } }
.sq-photos { display: flex; flex-wrap: wrap; gap: 8px; }
span.sq-thumb { display: inline-block; cursor: default; }
.lb-btn:disabled, .lb-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Search from any screen (George, 2026-10-03; app/static/search.js) */
.srch-back { padding-top: 7vh; }
.lb-modal.srch { width: min(760px, 100%); padding: 16px 18px 14px; }
.srch-form { display: flex; gap: 8px; align-items: center; }
.srch-form input { flex: 1; min-width: 0; font-size: 17px; padding: 10px 12px; border: 1px solid var(--lb-edge); border-radius: 10px; background: var(--field); color: var(--ink); }
.srch-x { background: transparent; border: 0; font-size: 26px; line-height: 1; padding: 4px 8px; color: var(--muted); cursor: pointer; }
.srch-x:hover { color: var(--ink); }
.srch-out { margin-top: 12px; max-height: 68vh; overflow: auto; }
.srch-hint { color: var(--muted); font-size: 14px; margin: 6px 2px; }
.srch-problem { color: var(--caution-ink); font-size: 14px; }
.srch-summary { font-weight: 600; font-size: 15px; margin: 4px 2px 10px; }
.srch-sort { margin: 2px 2px 12px; }  /* George, 2026-11-01: an option to sort by latest */
.srch-list { list-style: none; margin: 0; padding: 0; }
.srch-item { border-top: 1px solid var(--lb-edge); }
.srch-item.partial { opacity: 0.78; }
.srch-link { display: flex; gap: 12px; padding: 10px 4px; color: var(--ink); text-decoration: none; align-items: flex-start; }
.srch-link:hover, .srch-link:focus { background: var(--lb-ground); outline: none; }
.srch-thumb { width: 52px; height: 68px; object-fit: cover; object-position: top; border: 1px solid var(--lb-edge); border-radius: 4px; flex: none; background: #fff; }
.srch-icon { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); background: var(--lb-ground); }
.srch-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.srch-top { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.srch-kind { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.srch-reg { font-weight: 700; color: var(--ink); }
.srch-title { font-size: 14.5px; }
.srch-snip { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.srch-link mark { background: var(--s1-mark, #d5dfb4); color: inherit; border-radius: 2px; padding: 0 1px; }
.srch-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; border-top: 1px solid var(--lb-edge); margin-top: 6px; padding-top: 12px; font-size: 14px; color: var(--muted); }
.srch-fbform { display: flex; gap: 8px; width: 100%; align-items: flex-end; }
.srch-fbform textarea { flex: 1; min-width: 0; font: inherit; padding: 8px; border: 1px solid var(--lb-edge); border-radius: 8px; background: var(--field); color: var(--ink); }
@media (max-width: 600px) { .srch-back { padding-top: 0; } .lb-modal.srch { border-radius: 0; min-height: 100vh; } .srch-out { max-height: none; } }

/* Removing a finding (George, 2026-10-03) */
.fd-remove { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.fd-removed { margin-top: 14px; font-size: 14px; }
.fd-removed summary { cursor: pointer; color: var(--muted); }
.fd-removed-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--lb-edge); }

/* The demo aircraft (George, 2026-10-03) */
.ac-demo { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--caution-bg, #ece5cf); color: var(--caution-ink, #6b4a00); vertical-align: middle; }
.demo-banner { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 16px; margin: 6px 0 2px;
  background: var(--caution-bg, #ece5cf); color: var(--ink); border-radius: 10px; font-size: 14px; }
.demo-banner p { margin: 0; flex: 1 1 420px; }
.demo-warn { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-warn p { flex-basis: 100%; font-weight: 600; color: var(--caution-ink, #6b4a00); }
.ac-tabs:has(.demo-banner) { flex-wrap: wrap; padding-bottom: 6px; }

/* A finding's events, each with its own pages (George, 2026-10-03) */
.fd-event { border-top: 1px solid var(--lb-edge); padding-top: 12px; margin-top: 14px; }
.fd-event-n { font: 600 12px/1 var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fd-event-text { font-weight: 600; margin: 6px 0 10px; }
.fd-says { display: block; font-size: 13px; color: var(--ink); margin: 2px 0; font-variant-numeric: tabular-nums; }

/* A visitor's hour in the live demo (George, 2026-10-03) */
.demo-clock { padding: 8px 16px; text-align: center; font-size: 14px; font-weight: 600; background: var(--caution-bg, #ece5cf); color: var(--ink); }
.demo-clock a { color: inherit; text-decoration: underline; }

/* A page full size over Findings (George, 2026-10-03) */
img.zoomable { cursor: zoom-in; }
img.zoomable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pg-zoom { position: fixed; inset: 0; z-index: 70; background: rgba(6, 12, 20, 0.82); display: flex; align-items: center; justify-content: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); cursor: zoom-out; }
.pg-zoom-box { position: relative; margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 6px; cursor: default; }
.pg-zoom-box img { max-width: 100%; max-height: calc(100vh - 90px); object-fit: contain; background: #fff; border-radius: 6px; }
.pg-zoom-box figcaption { color: #fff; font-size: 14px; text-align: center; }
.pg-zoom-x { position: absolute; top: -12px; right: -12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111;
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* The oil change interval (George, 2026-10-03) */
.mg-oil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; }
.mg-oil input[type=number] { width: 4.5em; }
.mg-oil-help { flex-basis: 100%; }

/* Confirm the reader's work (George, 2026-10-04) */
.vf-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 0 0 14px; }
.vf-bar span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.vf-card { display: flex; flex-direction: column; gap: 14px; }
.vf-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .vf-grid { grid-template-columns: 1fr; } }
.vf-page { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--desk, var(--field)); }
.vf-page img { display: block; width: 100%; height: auto; }
.vf-ring { position: absolute; border: 3px solid #d2382c; border-radius: 6px; box-shadow: 0 0 0 4px rgba(210, 56, 44, .25); pointer-events: none; }
.vf-side { display: flex; flex-direction: column; gap: 10px; }
/* one entry or two? (George, 2026-10-19): the pages, each part outlined its own way */
.jn-pages { display: flex; flex-direction: column; gap: 10px; }
.jn-tag { position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--card, var(--field)); color: var(--ink); border: 1px solid var(--line);
          border-radius: 12px; padding: 1px 9px; font-size: 12px; font-weight: 600; pointer-events: none; }
.jn-ring { position: absolute; border: 3px solid #d2382c; border-radius: 6px; pointer-events: none; }
.jn-ring.jn-b { border-style: dashed; }
.jn-ring.jn-c { border-style: dotted; }
.jn-part { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; background: var(--field); }
.jn-k { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.jn-lab { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b42318; }
.jn-work { overflow-wrap: anywhere; }
.jn-ask { font-size: 19px; font-weight: 600; margin-top: 4px; }
.jn-acts button { flex: 1 1 140px; }
.jn-moves { margin: 2px 0 4px; }
.jn-moves ul { margin: 4px 0 0; padding-left: 20px; }
.jn-help { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.jn-sup { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.jn-sup button { align-self: flex-start; }
/* the time check (George, 2026-10-08): the check list's last step */
.tc-fig { grid-template-columns: repeat(2, 1fr); }
.tc-meter .pp-seg { grid-template-columns: repeat(2, 1fr); max-width: 320px; }
.tc-meter { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.tc-fix { display: flex; flex-direction: column; gap: 6px; }
.tc-big { font-size: 34px; }
.tc-work { overflow-wrap: anywhere; }
.tc-save, .tc-blank { align-self: flex-start; }
.tc-do { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-first { color: var(--warn, var(--ink)); }
/* a dashboard box waiting for the time check, and a reading that doesn't fit */
.db-locked .v { color: var(--muted, var(--ink)); }
.db-verify { font-weight: 600; }
.db-misfit { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg, rgba(240, 180, 90, .14)); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.db-misfit .lb-btn { align-self: flex-start; max-width: 100%; white-space: normal; height: auto; min-height: 32px; text-align: left; }
.vf-label { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, var(--ink)); }
.vf-read { font-family: var(--mono, monospace); font-size: 28px; font-weight: 600; }
.vf-side input { font-family: var(--mono, monospace); font-size: 20px; padding: 8px 10px; width: 100%; box-sizing: border-box;
                 border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); }
.vf-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-btns button { min-height: 44px; }
.vf-side textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
                    background: var(--field); color: var(--ink); font: inherit; resize: vertical; }
.vf-ok { align-self: flex-start; min-height: 48px; padding: 0 22px; font-size: 17px; }
.vf-side input::placeholder { color: var(--muted, #8a97a4); font-family: var(--body, inherit); font-size: 15px; }

/* while the logs are read (George, 2026-10-04) */
.wait-choices { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* what's in each PDF, asked before it's sent (George, 2026-10-04) */
.ib-pdfask { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 8px; }
.ib-pdfask p { margin: 0; }
.ib-pdfrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ib-pdfname { flex: 1 1 180px; font-weight: 600; overflow-wrap: anywhere; }
.ib-pdfrow .ib-num, .ib-pdfrow .ib-yrs { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
.ib-pdfrow .ib-num { width: 6.5em; }
.ib-pdfrow .ib-yrs { width: 11em; }

/* sending files: a bar, then the PDFs split and checked (George, 2026-10-05) */
.ib-progress { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; width: min(100%, 40rem); }
.ib-progress progress { width: 100%; height: 12px; accent-color: var(--accent); }
.ib-after:empty { display: none; }
.ib-after { margin-top: 10px; }
.read-banner.admin-note { border-color: var(--warn, #b7791f); background: var(--field); }

/* click to zoom in on the check screen's page (George, 2026-10-05) */
.vf-zoomable { cursor: zoom-in; }
.vf-zoomable.on { cursor: zoom-out; touch-action: none; }
.vf-zoom { position: relative; }
.vf-zoomable.on .vf-zoom { position: absolute; }
.vf-zoomhint { position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 12px; pointer-events: none; }

/* Back and Forward on the check screen, and an earlier answer (George, 2026-10-05) */
.vf-nav { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.vf-nav .lb-btn:disabled { opacity: .45; cursor: default; }
.vf-answer { margin: 0; padding: 6px 10px; border-radius: 6px; background: var(--good-bg, var(--field)); font-weight: 600; font-size: 14px; }
.vf-answer.skip { background: var(--field); font-weight: 500; }

/* layout B (George, 2026-10-05): the box and its own Save, under "Yes, that's right" */
.vf-fix { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.vf-fix-label { font-weight: 600; font-size: 14px; }
.vf-fix input { min-height: 44px; font-size: 18px; }
.vf-save { align-self: flex-start; }
/* not only the number (George, 2026-10-17): the kind of an hour figure, both, or the whole entry */
.vf-more { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.vf-more-btns button { min-height: 44px; white-space: normal; height: auto; text-align: left; }
.vf-more-btns button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.vf-panel { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field, transparent); }
.vf-panel .fix { margin: 0; }
.vf-kinds { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px; }
.vf-kinds button { height: auto; min-height: 44px; padding: 6px 8px; white-space: normal; line-height: 1.2; }
.vf-kinds button:disabled { opacity: .45; cursor: default; }
.vf-other { font-family: var(--body, inherit) !important; font-size: 16px !important; }
.vf-ok:disabled, .vf-save:disabled { opacity: .4; cursor: default; box-shadow: none; }

/* one question per hour figure (George, 2026-10-27): the reader's kind and number in one bold line, the kind asked
   only when in doubt, an empty box for what the page says, the button saying what will be kept */
.vf-result { margin: 0; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--good-bg); color: var(--good); font-weight: 700; }
.vf-result.n { background: var(--field); color: var(--ink); }
.vf-where { font-size: 14px; color: var(--muted, var(--ink)); overflow-wrap: anywhere; }
.vf-where b { color: var(--ink); }
.vf-readline { display: flex; flex-direction: column; }
.vf-rl { font-size: 13.5px; font-weight: 600; color: var(--muted, var(--ink)); }
.vf-rv { font-size: 32px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vf-fq { display: flex; flex-direction: column; gap: 6px; }
.vf-lab { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.vf-k { font-family: var(--mono, monospace); font-size: 11px; color: var(--muted, var(--ink)); font-weight: 500; }
.vf-chg { font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 5px; padding: 0 7px; }
.vf-kind { width: 100%; max-width: 420px; min-height: 46px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px;
           background: var(--field); color: var(--ink); font: inherit; font-weight: 700; font-size: 16px; }
.vf-side .vf-num { width: 220px; max-width: 100%; border: 2px solid var(--muted, var(--line)); font-size: 26px; font-weight: 700; min-height: 48px; }
.vf-side .vf-num:focus { border-color: var(--accent); outline: none; }
.vf-acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.vf-pri { height: auto; min-height: 60px; min-width: 240px; padding: 8px 26px; display: inline-flex; flex-direction: column; align-items: center; gap: 1px; border-radius: 10px; }
.vf-l1 { font-weight: 700; font-size: 17px; }
.vf-l2 { font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.vf-link { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; font-size: 13.5px; padding: 4px 0;
           text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.vf-hint { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 7px; padding: 8px 12px; font-size: 14px;
           display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vf-asking { margin: 0; font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 10px; }
.vf-note summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
@media (max-width: 600px) { .vf-pri { width: 100%; min-width: 0; } .vf-side .vf-num { width: 100%; } .vf-q .vf-btns button { flex: 1; } }

/* the hours log (George, 2026-10-06): the dashboard tile, the Log hours dialog and its list */
.db-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.db-hours .db-hours-go { justify-self: start; margin-top: 4px; }
/* each meter on its own line, the same size (George, 2026-10-08) */
.db-hours .db-hours-v { display: grid; gap: 2px; }
.db-hours .db-hours-m { display: flex; align-items: baseline; gap: 10px; }
.db-hours .db-hours-k { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); min-width: 4.5em; }
.db-hours .db-hours-m.none .db-hours-n { font-size: 14px; font-weight: 500; color: var(--muted); }
/* Log hours, more than one meter (George, 2026-10-08): each a toggle with its own box under it */
.hr-seg .hr-mcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hr-seg .hr-mbox { margin: 0; }
/* Log hours (George, 2026-10-06: "looks very generic and plain"): a camera viewfinder, the two meters as
   instrument labels, and the figure in a counter window, as a Hobbs reads. The viewfinder and the counter are
   instrument faces: dark in both themes. */
.hr2-box { width: min(600px, 100%); }
.hr2-eyebrow { margin: 0 0 -6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.hr2 { display: grid; gap: 14px; min-width: 0; }
.hr2 > * { min-width: 0; }
.hr-k { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hr-vf { position: relative; aspect-ratio: 16 / 7; border-radius: 12px; background: radial-gradient(120% 140% at 50% 0%, #1A2A44 0%, #0A1322 70%);
  overflow: hidden; color: #DCE6F4; }
.hr-vf.has { aspect-ratio: 16 / 9; background: #05090F; }
.hr-corner { position: absolute; width: 22px; height: 22px; border: 0 solid #7FB2FF; z-index: 2; pointer-events: none; }
.hr-corner.tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.hr-corner.tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.hr-corner.bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.hr-corner.br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }
.hr-vf-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-align: center; padding: 16px; }
.hr-vf-body b { font-family: var(--label); font-size: 20px; font-weight: 600; letter-spacing: 0.01em; color: #F4F8FD; }
.hr-vf-body span { font-size: 13.5px; color: #9DB0C9; }
.hr-vf-body:hover b { color: #fff; }
.hr-vf input:focus-visible + .hr-vf-body, .hr-vf-body:focus-visible { outline: 2px solid #7FB2FF; outline-offset: -4px; }
.hr-cam { width: 34px; height: 34px; fill: #7FB2FF; margin-bottom: 2px; }
.hr-vf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hr-chip { position: absolute; bottom: 14px; z-index: 3; padding: 6px 12px; border-radius: 999px; background: rgba(5, 12, 24, 0.78); color: #F4F8FD !important;
  border: 1px solid rgba(127, 178, 255, 0.5); font: 600 12.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.hr-chip { left: 14px; } .hr-chip.hr-chip-x { left: auto; right: 14px; cursor: pointer; }
.hr-vf-more { display: flex; gap: 18px; justify-content: center; margin-top: -6px; }
.hr-link { background: none; border: 0; padding: 4px 2px; color: var(--accent); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hr-link.strong { text-decoration: none; padding: 8px 12px; border: 1.5px solid currentColor; border-radius: 8px; }
.hr-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hr-seg-b { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px 14px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--field); color: var(--ink); }
.hr-seg-b b { font-family: var(--label); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.hr-seg-b small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hr-seg-last { margin-top: 4px; font-family: var(--mono); font-size: 12.5px; color: var(--soft); font-variant-numeric: tabular-nums; }
.hr-seg-b[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--blue-bg, var(--field)); }
.hr-seg-b[aria-pressed="true"] b { color: var(--accent); }
.hr-counter { display: grid; gap: 6px; padding: 14px 16px 12px; border-radius: 12px; background: #0A1322; border: 1px solid #22344F; }
.hr-counter-k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8FA6C4; }
.hr2 .hr-counter input { width: 100%; box-sizing: border-box; border: 0; border-radius: 8px; padding: 8px 12px;
  background: #101C30; box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(127, 178, 255, 0.12); color: #F4F8FD;
  font: 600 46px/1.1 var(--label); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; caret-color: #7FB2FF; }
.hr2 .hr-counter input::placeholder { color: #3C5274; font-size: 30px; letter-spacing: 0.04em; }
.hr2 .hr-counter input:focus-visible { outline: 2px solid #7FB2FF; outline-offset: 1px; }
.hr-delta { margin: 0; font-family: var(--mono); font-size: 13px; color: #9DB0C9; font-variant-numeric: tabular-nums; }
.hr-delta.up { color: #7BE0A6; } .hr-delta.low { color: #FFB27A; }
.hr-when { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }
.hr2 .hr-when input { padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
.hr-asks { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 10px;
  background: var(--warn-bg); border: 1.5px solid var(--warn); }
.hr2 .hr-ann { padding: 4px 8px; border-radius: 4px; border: 1.5px solid var(--warn); background: transparent; color: var(--warn);
  font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }
.hr-asks-b { display: grid; gap: 8px; font-size: 14.5px; color: var(--ink); }
.hr-asks-b p { margin: 0; }
.hr-asks-do { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-asks .hr-link { color: var(--warn); }
.hr-foot { display: flex; align-items: stretch; gap: 12px; }
.hr-save { flex: 2 1 0; min-height: 50px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer;
  font: 700 15px/1.15 var(--label); letter-spacing: 0.04em; text-transform: uppercase; font-variant-numeric: tabular-nums; padding: 8px 14px; }
.hr-cancel { flex: 1 1 0; min-height: 50px; border: 1.5px solid var(--muted); border-radius: 10px; background: transparent;
  color: var(--ink); cursor: pointer; font: 700 15px/1 var(--label); letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 14px; }
.hr-cancel:hover, .hr-cancel:focus-visible { border-color: var(--accent); color: var(--accent); }
.hr-save:disabled { opacity: 0.6; cursor: default; }
.hr-log { display: grid; gap: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.hr-log:empty { display: none; }
.hr-log-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.hr-log-sum { font-family: var(--mono); font-size: 12px; color: var(--soft); }
.hr-row { display: grid; grid-template-columns: 6.6em 4.6em 1fr auto 40px; grid-template-areas: "d m v up ph" "who who who rm rm";
  gap: 2px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hr-row:last-child { border-bottom: 0; }
.hr-row-d { grid-area: d; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.hr-row-m { grid-area: m; justify-self: start; padding: 2px 7px; border-radius: 4px; font: 600 11px/1.3 var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--blue-bg, var(--field)); color: var(--accent); }
.hr-row-m.tach { background: var(--warn-bg); color: var(--warn); }
.hr-row-v { grid-area: v; font: 600 19px/1.1 var(--label); font-variant-numeric: tabular-nums; }
.hr-row-up { grid-area: up; font-family: var(--mono); font-size: 12.5px; color: var(--good); font-variant-numeric: tabular-nums; }
.hr-row .hr-ph { grid-area: ph; }
.hr-row-who { grid-area: who; font-size: 12.5px; color: var(--muted); }
.hr-row .hr-rm { grid-area: rm; justify-self: end; font-size: 12.5px; color: var(--muted); }
.hr-ph { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; font: 10px var(--mono); color: var(--muted); }
.hr-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-ph.none { font-size: 8.5px; letter-spacing: -0.02em; }      /* "monitor" fits the slot as "typed" does */
/* several photos (George, 2026-10-07): a strip of them under the viewfinder, each saved in turn */
.hr-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.hr-strip-b { position: relative; flex: none; width: 58px; height: 58px; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: var(--field); }
.hr-strip-b img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hr-strip-b.on { border-color: var(--accent); }
.hr-strip-b.done { cursor: default; opacity: 0.55; }
.hr-strip-ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  color: #fff; background: rgba(21, 122, 63, 0.55); }
.hr-when-from { flex-basis: 100%; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hr-flash, .hr-done-t { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--good-bg, var(--field)); border: 1.5px solid var(--good);
  color: var(--ink); font-size: 14.5px; }
.hr-done { display: grid; gap: 14px; }
.hr-waitbox { display: flex; }
.hr-waitbox .hr-link { color: var(--warn); }
.db-hours .db-hours-wait { justify-self: start; padding: 3px 0; border: 0; background: none; cursor: pointer; color: var(--warn);
  font: 600 13px/1.3 var(--mono); text-decoration: underline; text-underline-offset: 3px; }
/* a photo waiting for its hours (hoursAsk): the photo large, the question, the counter */
.hr-ask { display: grid; gap: 12px; }
.hr-ask-img { display: block; border-radius: 12px; overflow: hidden; background: #05090F; }
.hr-ask-img img { display: block; width: 100%; max-height: 46vh; object-fit: contain; }
.hr-ask-lead { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.hr-ask-f { display: grid; gap: 12px; }
.hr-ask .hr-counter input { width: 100%; box-sizing: border-box; border: 0; border-radius: 8px; padding: 8px 12px; background: #101C30;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55); color: #F4F8FD; font: 600 40px/1.1 var(--label); letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums; caret-color: #7FB2FF; }
.hr-ask .hr-counter input::placeholder { color: #3C5274; }
.hr-ask .hr-ann { padding: 4px 8px; border-radius: 4px; border: 1.5px solid var(--warn); color: var(--warn); font: 700 11px/1 var(--mono);
  letter-spacing: 0.14em; text-transform: uppercase; }
.hr-ask .hr-foot { flex-wrap: wrap; }
.hr-arrived { display: grid; gap: 4px; font-size: 14px; color: var(--good); }
.hr-arrived p { margin: 0; }
@media (pointer: coarse) { .hr2 .hr-phone { display: none; } .hr-vf { aspect-ratio: 4 / 3; } }
/* Log hours, typed first (George, 2026-10-16): a counter window per meter with its last reading, the date, then
   the photo as an optional second step */
.hr-typed { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hr-typed .hr-mbox { margin: 0; }
.hr-mtop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hr-mtop .hr-counter-k { font-size: 13px; font-weight: 700; color: #C9D8EC; }
.hr-mlast { font-family: var(--mono); font-size: 12px; color: #8FA6C4; font-variant-numeric: tabular-nums; }
.hr2 .hr-typed .hr-counter input { font-size: 38px; }
.hr2 .hr-typed .hr-counter input::placeholder { font-size: 28px; }
.hr2 .hr-addph { justify-self: start; text-decoration: none; padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--accent); }
.hr2 .hr-addph:hover { border-color: var(--accent); }
.hr-photo { display: grid; gap: 12px; }
.hr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.hr-chipb { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--field); color: var(--ink); cursor: pointer;
  font: 600 14px/1.1 var(--label); letter-spacing: 0.04em; text-transform: uppercase; }
.hr-chipb[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 520px) { .hr-typed { grid-template-columns: 1fr; } .hr2 .hr-addph { justify-self: stretch; text-align: center; } }

/* ---- maintenance settings (George, 2026-10-07): full width under the aircraft in Manage, four groups in order ---- */
.mg-plane .ms { grid-column: 1 / -1; }
/* a twin's meters and every aircraft's other meters (2026-10-07) */
.ms-where { min-height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; padding: 0 10px; max-width: 100%; }
/* a twin's row: checkbox, name, where (on the aircraft / on each engine), =, what it counts as */
.ms-line.ms-twin { grid-template-columns: 24px 74px minmax(0, 190px) 20px minmax(0, 270px) minmax(0, 1fr); }
.ms-line.ms-twin .ms-math { grid-column: 2 / -1; }
.ms-line.ms-others { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ms-others .ms-m { flex: 0 0 auto; margin-right: 4px; }
.ms-others .ms-help { flex: 1 0 100%; }
.ms-olist { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ms-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--well, transparent); font-size: 14px; }
.ms-chip-x { border: 0; background: transparent; color: var(--muted, inherit); font: inherit; font-size: 16px; line-height: 1; padding: 2px 6px; cursor: pointer; border-radius: 999px; }
.ms-chip-x:hover, .ms-chip-x:focus-visible { background: var(--line); color: var(--ink); }
.ms-oadd { flex: 0 1 14em; min-height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; padding: 0 10px; width: 12em; max-width: 100%; }
/* a twin's sides and the aircraft's logbooks (2026-10-07) */
.mg-twin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mg-twin .ms-mtr { min-height: 32px; }
.mg-booklist { list-style: none; margin: 0; padding: 0; display: grid; }
.mg-booklist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.mg-booklist li:first-child { border-top: 0; }
.mg-booklist li.mg-bside .mg-bname { color: var(--warn, #8a4b00); }
.mg-bacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mg-binput { flex: 1 1 260px; min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; padding: 0 10px; max-width: 100%; }
.ms { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.mg-plane .tb { grid-column: 1 / -1; }
.tb-rows { display: grid; gap: 2px; }
.tb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tb-row:last-child { border-bottom: 0; }
.tb-what { display: grid; gap: 2px; min-width: 0; }
.ms-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 4px; }
.ms-head h4 { margin: 0; font: 700 19px var(--label, inherit); letter-spacing: 0.05em; text-transform: uppercase; }
.ms-body { display: grid; }
.ms-grp { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-top: 1px dashed var(--line); }
.ms-grp:first-child { border-top: 0; }
.ms-gh { display: grid; gap: 3px; align-content: start; }
.ms-gh .ms-n { font: 500 11px var(--mono, monospace); letter-spacing: 0.14em; color: var(--accent); }
.ms-gh b { font: 700 18px/1.15 var(--label, inherit); letter-spacing: 0.03em; }
.ms-gh span:last-child { font-size: 13px; color: var(--muted); }
.ms-rows-wrap, .ms-rows { display: grid; gap: 10px; min-width: 0; }
.ms-line { display: grid; grid-template-columns: 24px 74px 20px minmax(0, 270px) minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.ms-line.off { opacity: 0.6; }
.ms-line input[type=checkbox], .ms-toggle input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.ms-m { font: 700 14.5px var(--mono, monospace); letter-spacing: 0.08em; text-transform: uppercase; }
.ms-eq { font: 700 17px var(--mono, monospace); color: var(--muted); text-align: center; }
.ms-line select, .ms-mtr, .ms-num { min-height: 38px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; padding: 0 10px; max-width: 100%; }
.ms-num { width: 84px; text-align: right; font-family: var(--mono, monospace); }
.ms-math { grid-column: 2 / -1; font: 12.5px var(--mono, monospace); color: var(--muted); }
.ms-err { margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-size: 13.5px; }
.ms-fixed { margin: 0; font-size: 14.5px; color: var(--soft, var(--ink)); }
.ms-ivl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; }
.ms-what { width: 130px; font-weight: 600; }
.ms-toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.ms-help { flex-basis: 100%; padding-left: 140px; font-size: 13px; color: var(--muted); }
.ms-help.ms-under { padding-left: 30px; }
.ms-tblw { overflow-x: auto; }
.ms-tbo { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.ms-tbo th { text-align: left; font: 500 10.5px var(--mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0 8px 6px 0; }
.ms-tbo td { padding: 7px 8px 7px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.ms-tbo td:first-child { font-weight: 600; white-space: nowrap; }
.ms-now { font: 13px var(--mono, monospace); color: var(--soft, var(--muted)); }
.ms-now.soon { color: var(--warn); } .ms-now.overdue { color: var(--bad); }
.ms-save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.ms-said.ok { color: var(--good); } .ms-said.bad { color: var(--bad); }
.ms-q { display: grid; gap: 16px; max-width: 760px; }
.ms-q .btn-solid { justify-self: start; }
@media (max-width: 760px) {
  .ms-grp { grid-template-columns: minmax(0, 1fr); }
  .ms-line { grid-template-columns: 24px 64px 18px minmax(0, 1fr); }
  .ms-line.ms-twin { grid-template-columns: 24px 64px minmax(0, 1fr); }
  .ms-line.ms-twin .ms-eq { display: none; }
  .ms-line.ms-twin > select:not(.ms-where) { grid-column: 2 / -1; }
  .ms-what { width: 100%; } .ms-help, .ms-help.ms-under { padding-left: 0; }
}

/* pitot-static and transponder tests, and tags (2026-10-08) */
:root { --c-pitot: #0E7490; --c-transponder: #0E7490; --c-tag: #94A3B8; }
:root[data-theme="dark"] { --c-pitot: #38BDF8; --c-transponder: #38BDF8; --c-tag: #64748B; }
.cat-pitot i, .cat-transponder i { background: var(--c-pitot); } .cat-tag i { background: var(--c-tag); }
.tl-svg .k-pitot { fill: var(--c-pitot); } .tl-legend .k-pitot { background: var(--c-pitot); }
.tl-svg .c-pitot, .tl-svg .c-transponder { fill: var(--c-pitot); stroke: var(--c-pitot); }
/* an entry's times, one row each (George, 2026-10-08): which time, the figure, remove; Add another meter */
.tm { display: grid; gap: 8px; }
.tm-rows { display: grid; gap: 6px; }
.tm-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.tm-add { justify-self: start; }
/* the dashboard's boxes (George, 2026-10-08): Customize, the chooser, a twin's pair box, a placeholder */
.db-arranging { visibility: hidden; }
.db-custom { display: flex; justify-content: flex-end; margin-bottom: -6px; }
.db-custom:empty { display: none; }
.db-drawer { display: grid; gap: 12px; }
.db-drawer[hidden] { display: none; }
.db-drawer-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.db-drawer-h h2 { margin: 0; }
.db-placeholder .v { color: var(--muted); }
.db-pairs { display: grid; gap: 8px; }
.db-pair-row { display: grid; grid-template-columns: minmax(44px, max-content) minmax(0, 1fr); gap: 3px 10px; align-items: baseline; }
.db-pair-row > b { font: 600 11px var(--mono, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.db-pair-row .pv { font: 700 22px/1 var(--label, inherit); font-variant-numeric: tabular-nums; }
.db-pair-row .pv small { font-size: 12px; font-weight: 500; color: var(--muted); }
.db-pair-row .db-bar { grid-column: 2; }
.bx { display: grid; gap: 10px; }
.bx-count { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bx-count b { font-variant-numeric: tabular-nums; }
.bx-h { font: 500 11px var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.bx-list { display: grid; gap: 6px; }
.bx-item { display: grid; grid-template-columns: 24px 22px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card, var(--field)); }
.bx-item.off { opacity: .8; }
.bx-pos { font: 600 13px var(--mono, monospace); color: var(--link); text-align: center; font-variant-numeric: tabular-nums; }
.bx-item input[type="checkbox"] { width: 20px; height: 20px; margin: 0; cursor: pointer; }
.bx-mono { font-size: 11px; text-align: center; }
.bx-what { display: grid; gap: 1px; min-width: 0; cursor: pointer; }
.bx-what b { font-weight: 600; }
.bx-what span { font-size: 13px; color: var(--muted); }
.bx-moves { display: flex; gap: 4px; }
.bx-mv { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: inherit; cursor: pointer; font-size: 15px; }
.bx-mv:disabled { opacity: .3; cursor: default; }
.bx-mv[hidden] { display: none; }
.mg-boxes { display: grid; gap: 12px; }

.db-pair-row .db-verify { font-size: 13px; line-height: 1.3; }
.sq-acts > button { height: 40px; min-height: 40px; padding-block: 0; }
/* the upload list's Delete; a read upload's line as the link it is; pages with no entries (George, 2026-10-08) */
a.ib-read { text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ib-del { color: var(--bad, #b42318); }
.lbk-bare summary { cursor: pointer; list-style: revert; }
/* the Inspection Records Packet (George, 2026-10-09) */
.pk-modal { max-width: 640px; }
.pk-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 10px 0; }
.pk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.pk-row:last-child { border-bottom: 0; }
.pk-what { display: grid; gap: 1px; min-width: 0; }
.ph-packet { margin-top: 8px; width: 100%; }
/* the ADs by part (George, 2026-10-08/09) */
.lb-card h2.ad-part-h, .ad-part-h { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.ad-chip { font: 600 10.5px var(--mono, monospace); letter-spacing: .08em; padding: 3px 7px; border-radius: 5px; }
.ad-p-airframe { color: var(--link); background: color-mix(in srgb, var(--link) 12%, transparent); }
.ad-p-engine { color: var(--cyan, #00708F); background: color-mix(in srgb, var(--cyan, #00708F) 13%, transparent); }
.ad-p-prop { color: var(--warn, #9A5200); background: color-mix(in srgb, var(--warn, #9A5200) 13%, transparent); }
.ad-p-appliance { color: #5B3FC4; background: rgba(91, 63, 196, 0.1); }
.ad-p-unknown { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }
.ib-done-list { margin-top: 12px; }
.ib-done-list summary { cursor: pointer; font-weight: 600; padding: 6px 0; }

/* ---- engine monitor flights (George, 2026-10-09; logbook.js monitorDialog, openFlight) ---- */
:root {
  --c-flight: #334155;
  --fl-c1: #0A5CD6; --fl-c2: #00869E; --fl-c3: #1E8A4C; --fl-c4: #B26200; --fl-c5: #C0322A; --fl-c6: #6A4BD0;
  --fl-c7: #8A6D3B; --fl-c8: #5B6673; --fl-c9: #B0367A; --fl-oil: #1B2533; --fl-one: #3E4C60;
  --fl-red: #B42318; --fl-red-bg: rgba(180, 35, 24, 0.08);
}
:root[data-theme="dark"] {
  --c-flight: #E2E8F0;
  --fl-c1: #5AA9FF; --fl-c2: #3FD6E8; --fl-c3: #5FDB93; --fl-c4: #FFB054; --fl-c5: #FF7A6E; --fl-c6: #B6A2FF;
  --fl-c7: #D6A36A; --fl-c8: #B9C4D3; --fl-c9: #F472B6; --fl-oil: #F2F6FB; --fl-one: #C4D1E0;
  --fl-red: #FF8A7A; --fl-red-bg: rgba(255, 90, 78, 0.14);
}
.tl-svg .mk.k-flight.ring { fill: var(--field); stroke: var(--c-flight); stroke-width: 2; }
.tl-svg .mk.k-flight.ring:hover, .tl-svg .mk.k-flight.ring:focus { stroke: var(--ink); stroke-width: 2.5; }
.tl-legend .key-ring.k-flight { background: transparent; box-shadow: inset 0 0 0 2px var(--c-flight); width: 9px; height: 9px; }
.cat-flight i { background: var(--c-flight); }

/* the file, checked before anything is added */
.lb-modal.mf-box { width: min(780px, 100%); }
.mf { display: flex; flex-direction: column; gap: 12px; }
.mf-drop { display: flex; flex-direction: column; gap: 4px; padding: 22px 18px; border: 1.5px dashed var(--lb-edge); border-radius: 12px; cursor: pointer; text-align: center; }
.mf-drop:hover, .mf-drop:focus-within { border-color: var(--accent, #087CF4); }
.mf-drop span { font-size: 13.5px; color: var(--muted); }
.mf-drop.busy { cursor: progress; }
.mf-h { font-weight: 600; font-size: 17px; margin: 0; }
.mf-key { font-size: 13.5px; margin: 0; padding-left: 18px; position: relative; }
.mf-key::before { content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 3px; background: var(--fl-red-bg); box-shadow: inset 0 0 0 1px var(--fl-red); }
.mf-list-wrap { overflow-x: auto; border: 1px solid var(--lb-edge); border-radius: 10px; }
.mf-list { min-width: 760px; max-height: 320px; overflow-y: auto; }
.mf-row { display: grid; grid-template-columns: 24px 52px 104px 52px 70px 64px 74px 70px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 12px;
  border-bottom: 1px solid var(--lb-edge); font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.mf-row:last-child { border-bottom: 0; }
.mf-row input { margin: 0; width: 16px; height: 16px; }
.mf-row .why { font-size: 12.5px; color: var(--muted); }
.mf-row.two { row-gap: 2px; } .mf-row.two .why { grid-column: 2 / -1; }
.mf-row.gr { background: var(--fl-red-bg); } .mf-row.gr .why { color: var(--fl-red); font-weight: 600; }
.mf-row.here { opacity: .6; cursor: default; }
.mf-hd { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: default; }
.mf-tick, .mf-warn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--lb-edge); border-radius: 10px; cursor: pointer; }
.mf-tick input, .mf-warn input { margin: 2px 0 0; width: 17px; height: 17px; }
.mf-tick span span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.mf-warn { border-color: var(--fl-red); background: var(--fl-red-bg); }
.mf-problem { color: var(--bad); margin: 0; }
.mf-tach-said { display: flex; flex-direction: column; gap: 6px; } .mf-tach-said p { margin: 0; }
.mf-tach-said .lb-btn { align-self: flex-start; }
.mf-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* one flight's chart */
.fl-head { align-items: flex-end; }
.fl-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-card { display: flex; flex-direction: column; gap: 14px; }
.fl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fl-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--lb-edge); background: var(--field); color: var(--ink);
  border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.fl-chip[aria-pressed="false"] { opacity: .45; }
.fl-chip i, .fl-ro i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.fl-chart-wrap { overflow-x: auto; }
.fl-chart { display: block; width: 100%; min-width: 680px; height: auto; touch-action: pan-y; }
.fl-chart:focus-visible { outline: 2px solid var(--accent, #087CF4); outline-offset: 2px; }
.fl-grid { stroke: var(--lb-edge); stroke-width: 1; opacity: .55; }
.fl-frame { stroke: var(--lb-edge); fill: none; }
.fl-lab { fill: var(--muted); font-size: 10.5px; font-family: ui-monospace, Menlo, monospace; }
.fl-ptitle { fill: var(--ink); font-size: 12px; font-weight: 600; }
.fl-ln { fill: none; stroke-width: 1.5; stroke-linejoin: round; }
.fl-ln.cht { stroke-width: 1.8; }
.fl-ln.fl-oil { stroke-width: 2.2; stroke-dasharray: 6 3; }
.fl-ln.fl-one { stroke-width: 1.8; }
.fl-ln.fl-c1 { stroke: var(--fl-c1); } .fl-ln.fl-c2 { stroke: var(--fl-c2); } .fl-ln.fl-c3 { stroke: var(--fl-c3); }
.fl-ln.fl-c4 { stroke: var(--fl-c4); } .fl-ln.fl-c5 { stroke: var(--fl-c5); } .fl-ln.fl-c6 { stroke: var(--fl-c6); }
.fl-ln.fl-c7 { stroke: var(--fl-c7); } .fl-ln.fl-c8 { stroke: var(--fl-c8); } .fl-ln.fl-c9 { stroke: var(--fl-c9); }
.fl-ln.fl-oil { stroke: var(--fl-oil); } .fl-ln.fl-one { stroke: var(--fl-one); }
i.fl-c1 { background: var(--fl-c1); } i.fl-c2 { background: var(--fl-c2); } i.fl-c3 { background: var(--fl-c3); }
i.fl-c4 { background: var(--fl-c4); } i.fl-c5 { background: var(--fl-c5); } i.fl-c6 { background: var(--fl-c6); }
i.fl-c7 { background: var(--fl-c7); } i.fl-c8 { background: var(--fl-c8); } i.fl-c9 { background: var(--fl-c9); } i.fl-oil { background: var(--fl-oil); }
.fl-cur { stroke: var(--ink); stroke-width: 1; } .fl-cur.pin { stroke: var(--accent, #087CF4); stroke-width: 1.5; }
.fl-badge rect { fill: var(--ink); } .fl-badge text { fill: var(--field); font-size: 11px; font-weight: 600; font-family: ui-monospace, Menlo, monospace; }
.fl-badge.pin rect { fill: var(--accent, #087CF4); } .fl-badge.pin text { fill: #fff; }
.fl-hit { fill: transparent; cursor: crosshair; }
.fl-readout { border: 1px solid var(--lb-edge); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.fl-ro-top { display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: baseline; }
.fl-ro-top b { font-size: 20px; font-variant-numeric: tabular-nums; } .fl-ro-top span { font-size: 13px; color: var(--muted); }
.fl-ro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px 18px; }
.fl-ro { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--lb-edge); padding: 3px 0; font-size: 14px; }
.fl-ro span { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; } .fl-ro b { font-weight: 600; font-variant-numeric: tabular-nums; }
.fl-ro-said { margin: 0; font-size: 13.5px; }

/* the Flights tab */
.ft-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }   /* one height (George, 2026-10-09) */
.ft-card > .ft-link:last-child { margin-top: auto; }       /* "Open the chart" sits at the card's foot */
.ft-card { display: flex; flex-direction: column; gap: 6px; }
.ft-card h2, .ft-readings h2, .ft-all h2 { margin: 0 0 4px; }
.ft-big { font-size: 22px; font-weight: 700; margin: 0; }
.ft-spark { display: flex; flex-direction: column; gap: 2px; }
.ft-sparksvg { width: 100%; height: 48px; display: block; }
.ft-sparksvg .fl-ln { stroke-width: 1.3; }
.ft-link { color: var(--accent, #087CF4); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-family: inherit; }
.ft-link:hover { text-decoration: underline; }
.ft-months { display: grid; gap: 6px; align-items: end; height: 96px; }
.ft-months div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.ft-months i { width: 70%; max-width: 34px; background: var(--c-flight); border-radius: 3px 3px 0 0; display: block; }
.ft-months b { font-size: 11px; font-variant-numeric: tabular-nums; } .ft-months span { font-size: 11px; color: var(--muted); }
.ft-file { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--lb-edge); }
.ft-file:first-of-type { border-top: 0; }
.ft-file-acts { display: flex; gap: 14px; flex-wrap: wrap; }
.ft-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ft-hr { border-top: 0; padding-top: 0; }
.ft-all { display: flex; flex-direction: column; }
.ft-row { display: grid; grid-template-columns: 22px 56px 110px 120px 80px 120px minmax(0, 1fr); gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--lb-edge);
  color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; font-size: 14px; align-items: center; }
.ft-row:hover { background: var(--hover, rgba(8, 124, 244, 0.06)); }
.ft-row .ft-n { font-weight: 700; }
@media (max-width: 760px) { .ft-row { grid-template-columns: 22px 48px 1fr 1fr; } .ft-row span:nth-child(n+5) { display: none; } }

/* Manage → Maintenance settings → 05 Timeline (George, 2026-10-09) */
.ms-years { display: flex; gap: 10px 18px; flex-wrap: wrap; }
.ms-year { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.ms-year .ms-num { width: 4.5em; }

/* the administrator's delete (George, 2026-10-09) */
.fix.adm-del > summary { color: var(--bad); }
.adm-del .adm-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; font-size: 14px; }
.adm-del .adm-opt input { margin-top: 3px; }
.adm-del .adm-opt .small { grid-column: 2; }
.adm-del .adm-go { background: var(--bad); }
/* "Airworthiness Directives" in full (George, 2026-10-09: "ADS looks like the word ads"): two lines in the rail */
body.rail-on header.bar .tabs a[data-tab="ads"] { white-space: normal; line-height: 1.15; height: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
body.rail-narrow header.bar .tabs a[data-tab="ads"] { font-size: 8.5px; letter-spacing: 0; min-height: 56px; }
/* a log missing for a stretch, over its engine or propeller bar (logbook.js; George, 2026-10-09) */
/* Findings fixed by a correction, and the recheck (George, 2026-10-09; engine/findingfix.py) */
.fd-recheck { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.fd-words .fd-still { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--warn); }
.fd-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; }
.fd-state > span { flex: 1 1 280px; }
.fd-state.fixed { background: var(--good-bg); color: var(--good); }
.fd-state.still, .fd-state.corrected { background: var(--warn-bg); color: var(--warn); }
.fd-mark .fd-fixed { height: 40px; }

/* a page kept with the records, not read (George, 2026-10-10) */
.pg-kept { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 14.5px; }
.pg-kept p { margin: 0; } .pg-kept .lb-btn { align-self: flex-start; }
.pg-keep { align-self: flex-start; margin-bottom: 10px; }

/* a Logggs administrator's tools on a page (George, 2026-10-10) */
.pg-admin { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; margin-bottom: 12px; border-radius: 10px; border: 1px dashed var(--warn); background: var(--warn-bg); }
.pg-admin > b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.pg-admin-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pg-admin p { margin: 0; }
/* a second copy of a page already in (George, 2026-10-10) */
.ib-copy { margin: 4px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; }
.ib-copy a { color: inherit; font-weight: 600; }
/* pages that name another aircraft (engine/wrongac.py; George, 2026-11-10): the question on the upload's card */
.ib-another { margin: 6px 0 0; padding: 10px 12px; border: 1px solid var(--warn, #9A5200); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.ib-another .uf-choices { margin-top: 2px; }

/* The ADs list (George, 2026-10-11, Backlog #71): a row of filters and a search, then one line per AD that opens in place */
.ad-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.ad-f { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, var(--field)); color: var(--ink);
  font: 600 13.5px var(--sans, inherit); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ad-f b { font: 600 12px var(--mono, monospace); color: var(--muted); }
.ad-f[aria-pressed="true"] { background: var(--link); border-color: var(--link); color: #fff; }
.ad-f[aria-pressed="true"] b { color: rgba(255, 255, 255, 0.85); }
.ad-search { margin-left: auto; height: 34px; width: 220px; max-width: 100%; border-radius: 999px; border: 1px solid var(--line);
  background: var(--field); color: var(--ink); padding: 0 14px; font: inherit; }
.ad-list { border: 1px solid var(--line); border-radius: 12px; background: var(--card, var(--field)); overflow: hidden; }
.ad-searching { padding: 8px 14px; margin: 0; }
.ad-r { border-top: 1px solid var(--line); }
.ad-r:first-child { border-top: 0; }
.ad-r.new { background: linear-gradient(90deg, var(--blue-bg, transparent), transparent 60%); }
.ad-rh { display: grid; grid-template-columns: 22px 120px 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 14px;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ad-rh:hover { background: color-mix(in srgb, var(--link) 7%, transparent); }
.ad-rh:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }
.ad-num { font-weight: 600; font-size: 14px; }
.ad-kind { font: 600 11px var(--mono, monospace); padding: 3px 7px; border-radius: 5px; justify-self: start; }
.ad-kind-rec { color: var(--warn, #9A5200); background: color-mix(in srgb, var(--warn, #9A5200) 12%, transparent); }
.ad-kind-sup { color: var(--muted); border: 1px solid var(--line); }
.ad-kind-one { color: var(--ink); border: 1px solid var(--line); }
.ad-subj { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ad-subj .ad-chip { margin-right: 4px; }
.ad-tags { display: inline-flex; gap: 6px; align-items: center; }
.ad-stand { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ad-stand-ok { color: var(--good, #157A3F); background: color-mix(in srgb, var(--good, #157A3F) 11%, transparent); }
.ad-stand-look { color: var(--bad, #B42318); background: color-mix(in srgb, var(--bad, #B42318) 10%, transparent); }
.ad-stand-due { color: var(--warn, #9A5200); background: color-mix(in srgb, var(--warn, #9A5200) 13%, transparent); }
.ad-stand-ask { color: var(--warn, #9A5200); background: color-mix(in srgb, var(--warn, #9A5200) 13%, transparent); }
.ad-stand-quiet { color: var(--muted); background: color-mix(in srgb, var(--muted) 11%, transparent); }
.ad-rb { display: flex; flex-direction: column; gap: 8px; padding: 2px 14px 16px 146px; }
.ad-rb p { margin: 0; }
.ad-facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0; font-size: 14px; }
.ad-facts dt { color: var(--muted); } .ad-facts dd { margin: 0; }
.ad-acts { margin-top: 4px; }
@media (max-width: 760px) {
  .ad-search { margin-left: 0; width: 100%; }
  .ad-rh { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .ad-rh .ad-kind-none { display: none; }
  .ad-rh .ad-subj { grid-column: 1 / -1; white-space: normal; }
  .ad-rb { padding-left: 14px; }
}
.ad-ask { padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn, #9A5200) 9%, transparent); }
.ad-said { font-style: italic; }
.ad-reading { margin: -4px 0 8px; }
/* Correct this figure, on a finding (George, 2026-10-11) */
.fd-correct { display: grid; gap: 10px; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card, var(--field)); }
.fd-correct h3 { margin: 0; font-size: 17px; }
.fd-cfix { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fd-cfix label { flex: 1 1 260px; display: flex; flex-direction: column; }
.fd-cfix input { width: 160px; max-width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
/* engine oil analysis (George, 2026-10-11): its own colour on the timeline and its upload card's date box */
:root { --c-oil: #9A6A00; }
:root[data-theme="dark"] { --c-oil: #F2C14E; }
.tl-svg .k-oil { fill: var(--c-oil); }
.tl-svg .oilmk { stroke: var(--field); stroke-width: 1.5; cursor: pointer; }
.tl-svg .oilmk:hover, .tl-svg .oilmk:focus-visible { stroke: var(--ink); stroke-width: 2; outline: none; }
.tl-legend .key.k-oil, .cat.k-oil { background: var(--c-oil); }
/* an oil change (George, 2026-11-08): its own kind and colour, the oil's own black (near-white on the dark ground), which
   no other kind resembles: not the 100-hour's green it sits level with, the oil analysis report's amber or Other's grey */
:root { --c-oil-change: #1E293B; }
:root[data-theme="dark"] { --c-oil-change: #F1F5F9; }
.tl-svg .k-oil_change { fill: var(--c-oil-change); }
.tl-legend .k-oil_change, .cat-oil_change i { background: var(--c-oil-change); }
.db-mini .k-oil_change { fill: var(--c-oil-change); stroke: var(--c-oil-change); }
.cat-oil i { background: var(--c-oil); }
.ib-oil { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.ib-oil label { flex: 1 1 100%; }
.ib-oil input { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }

/* the whole-history pass, running (George, 2026-10-07, UI backlog #4: "a different color to stand out") */
.read-banner.hist-banner { background: var(--accent); border-color: var(--accent); color: #fff; }
.read-banner.hist-banner b { font-size: 17px; }
.read-banner.hist-banner .small { color: rgba(255, 255, 255, 0.92); }
.hist-run { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.hist-run i { display: block; width: 35%; height: 100%; border-radius: 2px; background: #fff; animation: hist-run 1.6s ease-in-out infinite; }
@keyframes hist-run { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .hist-run i { animation: none; width: 100%; opacity: 0.6; } }

/* an aircraft with nothing read yet: the upload box right under the onboarding progress (UI backlog #1) */
.ib-stack { display: flex; flex-direction: column; gap: 12px; }
.ib-stack > div:empty { display: none; }
.ib-stack .setup-card, .ib-stack .read-banner, .ib-stack .lb-note.ib-lead { margin: 0; }

/* after Proceed: one bar counting down as the pages are read (UI backlog #2) */
.ib-reading { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--accent); border-radius: 12px; background: var(--card, var(--field)); margin-bottom: 12px; }
.ib-reading p { margin: 0; }
.ib-reading-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ib-reading-top b { font-size: 18px; }
.ib-reading-bar { width: 100%; height: 10px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 5px; background: var(--line, #dde3ea); overflow: hidden; }
.ib-reading-bar::-webkit-progress-bar { background: var(--line, #dde3ea); border-radius: 5px; }
.ib-reading-bar::-webkit-progress-value { background: var(--accent); border-radius: 5px; transition: width 0.6s ease; }
.ib-reading-bar::-moz-progress-bar { background: var(--accent); border-radius: 5px; }
/* the same bar on the Logbooks page while pages are read, and its end (George, 2026-10-27) */
.lbk-reading:empty { display: none; }
.lbk-reading { margin: 12px 0 0; }
.lbk-reading-card { margin: 0; padding: 12px 16px; gap: 8px; }
.lbk-reading-card .ib-reading-top b { font-size: 16px; }
.lbk-read-done { border-color: var(--good, #157A3F); }
.lbk-read-some, .lbk-reading-ask { border-color: var(--warn, #b7791f); }
.lbk-reading-q { margin: 0; }
.ph .lbk-reading { margin: 0 0 12px; }
.ib-sent > summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* an AD row opens: the arrow on its left says so, and turns down when it's open (2026-10-11) */
.ad-rh[aria-expanded="true"] .ad-chev { transform: rotate(90deg); }

/* demo.logggs.com's visitors: look-only, so nothing that downloads or sends is shown (2026-10-11; main._look_only) */
.look-only .lo-hide { display: none !important; }

/* the arrow on a row that opens (AD rows expand, flight rows open the flight): big enough to see (George, 2026-10-11) */
.row-chev { display: inline-flex; align-items: center; justify-content: center; justify-self: center; width: 22px; height: 22px;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  font-size: 18px; font-weight: 800; line-height: 1; transition: transform 0.15s ease, background 0.15s ease; }
.ft-row .row-chev { font-size: 22px; padding-bottom: 2px; }
.ft-row:hover .row-chev, .ad-rh:hover .row-chev { background: var(--accent); color: var(--on-accent, #fff); }
/* Account: light or dark, kept with the person (2026-10-11) */
.acct-theme { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.acct-theme-pick { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.acct-theme-pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* the rail's pages read as buttons (George, 2026-10-12: "There's no indication that those are clickable until you
   hover over them... put a border around each of them, like a button... a light shading" on hover), like Dark theme
   and Sign out; the page you're on stays the filled one */
body.rail-on header.bar .tabs { gap: 6px; }
body.rail-on header.bar .tabs a:not([aria-current="page"]) { border: 1px solid var(--lb-edge); background: var(--field); }
body.rail-on header.bar .tabs a:not([aria-current="page"]):hover { background: var(--blue-bg, rgba(8, 124, 244, 0.08)); border-color: var(--accent); }
body.rail-on header.bar .tabs a:not([aria-current="page"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* "Let us help with these files" (George, 2026-10-12): an upload our system can't take in goes to support */
.up-help h2 { margin: 0; }
.up-help-body { display: flex; flex-direction: column; gap: 12px; }
.up-help-body p { margin: 0; color: var(--ink); line-height: 1.5; }
.up-help-details { color: var(--soft); }
.up-help-details summary { cursor: pointer; color: var(--accent); }
.up-help-details ul { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.up-help .cred-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.up-help .up-anyway { margin-left: auto; }
.up-help-sent { padding: 10px 14px; border-radius: 10px; background: var(--desk); color: var(--good); font-weight: 600; }
@media (max-width: 600px) {
  .lb-modal.up-help { padding: 18px 16px; }
  .up-help .cred-actions > button { flex: 1 1 auto; }
  .up-help .up-anyway { margin-left: 0; }
}

/* the version this site runs, for a customer's screenshot (George, 2026-10-12; fresh.js fills it from /env): small and
   quiet, at the rail's foot (themes/deck.css) or the end of the header's menu */
.app-version { margin: 0; align-self: center; font: 500 11px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }

/* Your own demo site for an hour (George, 2026-10-12; app/demopool.py): the top bar, the "Not in the demo" box, the
   feedback panel. The bar keeps the flight-deck navy in both themes, so it reads as the demo's, not the site's. */
.pool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: #0C1628; color: #FFFFFF; border-bottom: 1px solid rgba(127, 233, 255, 0.25); font-size: 15px; }
.pool-bar .pool-k { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; letter-spacing: 0.12em; color: #7FE9FF; }
.pool-bar .pool-msg { flex: 1 1 18em; min-width: 0; }
.pool-bar-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.pool-btn { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #FFFFFF;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pool-btn:hover, .pool-btn:focus-visible { border-color: #7FE9FF; }
.pool-own { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; background: #1C7BF5; color: #FFFFFF;
  font-size: 14px; font-weight: 600; text-decoration: none; }
.pool-own:hover, .pool-own:focus-visible { background: #2E93FF; color: #FFFFFF; }
.pool-back { position: fixed; inset: 0; z-index: 80; background: rgba(10, 16, 24, 0.45); display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 16px; overflow: auto; }
.pool-box { width: min(520px, 100%); box-sizing: border-box; background: var(--field); color: var(--ink); border: 1px solid var(--lb-edge, var(--line));
  border-radius: 14px; box-shadow: 0 24px 60px rgba(16, 40, 80, 0.25); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pool-box h2 { margin: 0; font-size: 24px; }
.pool-box p { margin: 0; line-height: 1.55; color: var(--soft); }
.pool-box .pool-k { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.14em; color: #9A5200; }
:root[data-theme="dark"] .pool-box .pool-k { color: #FFB65C; }
.pool-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pool-acts .btn-solid { height: 42px; padding: 0 20px; }
.pool-acts a.lb-btn { display: inline-flex; align-items: center; height: 42px; text-decoration: none; color: var(--ink); }
.pool-fb { display: flex; flex-direction: column; gap: 10px; }
.pool-fb textarea, .pool-how input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: var(--field); color: var(--ink); }
.pool-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.pool-l { font-weight: 600; }
.pool-check { display: flex; gap: 8px; align-items: center; }
.pool-thumbs { display: flex; gap: 10px; }
.pool-thumb { display: inline-flex; align-items: center; gap: 8px; height: 40px; }
.pool-thumb[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #FFFFFF); border-color: var(--accent); }
.pool-code { padding: 10px 12px; border-radius: 10px; background: rgba(21, 122, 63, 0.1); color: var(--ink) !important; }
.pool-said { color: #B42318 !important; }
:root[data-theme="dark"] .pool-said { color: #FF8A7A !important; }
.pool-thanks { font-size: 14px; }
.pool-note { margin: 0 0 10px; }
@media (max-width: 600px) {
  .pool-bar { font-size: 14px; }
  .pool-bar-acts { margin-left: 0; }
}

/* Onboarding's reading slips (George, 2026-10-14): the wait for the history pass on the confirm card, and the banner
   over the slips in Findings */
.vf-next { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.vf-next .hist-run { width: 100%; max-width: 420px; background: var(--line); }
.vf-next .hist-run i { background: var(--accent, #1366E0); }
.fd-onb { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 10px 0 14px; padding: 12px 14px;
  border: 1px solid var(--accent, #1366E0); }

/* People: the grid and the per-aircraft editor (George, 2026-10-15, fleet portals) */
.pg-lay { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.pg-scroll { overflow-x: auto; }
.pg-table th.pg-ac { font-family: var(--mono, ui-monospace, monospace); font-size: 12px; white-space: nowrap; }
.pg-row { cursor: pointer; }
.pg-row:hover td, .pg-row:focus-visible td { background: var(--hover, rgba(19, 102, 224, 0.06)); }
.pg-row.pg-fixed { cursor: default; }
.pg-r { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.pg-account, .pg-fleet { background: var(--accent); color: var(--on-accent, #fff); }
.pg-manager, .pg-owner { background: rgba(19, 102, 224, 0.14); color: var(--accent); }
.pg-mechanic { background: rgba(0, 152, 199, 0.14); color: #007A9E; }
.pg-pilot { background: rgba(21, 122, 63, 0.13); color: #157A3F; }
.pg-read { background: rgba(217, 119, 6, 0.14); color: #9A5200; }
.pg-custom { border: 1px dashed var(--accent); color: var(--accent); }
.pg-none { color: var(--muted); font-weight: 400; }
.pg-ed { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.pg-per { display: flex; flex-direction: column; gap: 10px; }
.pg-list { display: flex; flex-direction: column; gap: 4px; }
.pg-ac-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 8px; border: 1px solid transparent; }
.pg-ac-row.on { border-color: var(--accent); background: rgba(19, 102, 224, 0.06); }
.pg-pick { text-align: left; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; padding: 4px 2px; }
.pg-ac-row select { font: inherit; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--field); color: var(--ink); }
.pg-ticks { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pg-ticks h3 { margin: 0; font-size: 16px; }
.pg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pg-grp { display: flex; flex-direction: column; gap: 4px; }
.pg-grp h4 { margin: 0 0 2px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pg-grp .pp-check { font-size: 13px; }
.pg-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1100px) { .pg-lay { grid-template-columns: minmax(0, 1fr); } .pg-ed { position: static; } }
@media (max-width: 640px) { .pg-cols { grid-template-columns: minmax(0, 1fr); } }

/* A fleet's own look (George, 2026-10-15, option A; app/brand.py): its logo and name on top, "on Logggs" under */
.co-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.co-logo { display: block; max-height: 40px; max-width: 180px; width: auto; height: auto; }
.co-logo-dark { display: none; }
:root[data-theme="dark"] .co-logo-light { display: none; }
:root[data-theme="dark"] .co-logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-logo-light { display: none; } :root:not([data-theme="light"]) .co-logo-dark { display: block; } }
.co-name { font-family: var(--label, inherit); font-size: 17px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
body.co-branded header.bar .brand-name { gap: 6px; align-items: center; opacity: 0.85; }
body.co-branded header.bar .brand-name .wordmark { height: 15px; }
.co-on { font-size: 12px; color: var(--muted); margin-right: 2px; }
body.co-branded .brand-rule, body.co-branded .brand-vertical { display: none; }
@media (max-width: 640px) { .co-name { display: none; } .co-logo { max-height: 30px; max-width: 120px; } }
/* the front door, signed out at the fleet's own address */
body.front-door-on > *:not(#front-door):not(script) { display: none !important; }
.front-door { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg, #F3F6FA); }
.fd-card { width: min(520px, 100%); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px -36px rgba(12, 22, 40, 0.5); }
.fd-top { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fd-top .co-logo { max-height: 64px; max-width: 280px; }
.fd-name { font-size: 22px; font-weight: 700; }
.fd-on { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.fd-on .fd-wm { height: 16px; display: inline-block; }
.fd-card h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.15; text-wrap: balance; }
.fd-card p { margin: 0; color: var(--soft, var(--muted)); }
.fd-go { align-self: flex-start; font-size: 16px; padding: 12px 22px; text-decoration: none; }
.fd-host { font-family: var(--mono, monospace); font-size: 12px; color: var(--muted); }
/* Manage -> Company (George, 2026-10-15) */
.cb-lay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr); gap: 16px; align-items: start; }
.cb-form, .cb-prev { display: flex; flex-direction: column; gap: 14px; }
.cb-target { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.cb-target .pp-field { max-width: 460px; }
.cb-target .btn-solid { align-self: flex-start; }
.cb-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cb-sw { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.cb-colors input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.cb-rail { width: 240px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); display: flex; flex-direction: column; gap: 10px; }
.cb-on { display: flex; align-items: center; gap: 6px; opacity: 0.85; } .cb-on .wordmark { height: 15px; display: inline-block; }
.cb-tab { align-self: stretch; padding: 8px 10px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.cb-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cb-btn { padding: 8px 16px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }
@media (max-width: 1000px) { .cb-lay { grid-template-columns: minmax(0, 1fr); } }
/* the rail is a column: the logo over the name, each on its own line; "on Logggs" small under them */
body.rail-on header.bar .co-brand, .cb-rail .co-brand { flex-direction: column; align-items: flex-start; gap: 6px; }
body.rail-on header.bar .co-brand .co-name, .cb-rail .co-name { font-size: 15px; }
.co-on + .wordmark, .cb-on .wordmark, .fd-on .fd-wm { height: 15px; width: 96px; flex: 0 0 auto; }
/* Manage -> Aircraft: one aircraft at a time, picked here or with the tabs (George, 2026-10-15) */
.mg-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 12px; }
.mg-pick-a { font-family: var(--mono, monospace); font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--field); }
.mg-pick-a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
/* The fleet control center, version 2 (George, 2026-10-15, the approved mockup; logbook.js openOps): the ramp, the
   headline numbers with their trend, then the charts. Colours from the theme's tokens, so it reads in light and dark. */
.cc { --cc-card: var(--panel); --cc-edge: var(--lb-edge); --cc-now: var(--accent-hi); --cc-prev: var(--muted); --cc-avgc: var(--warn);
      --cc-oil: var(--c-overhaul); --cc-ad: var(--c-alteration); --cc-pill-ink: var(--on-accent);
      display: flex; flex-direction: column; gap: 18px; min-width: 0; }
:root[data-theme="dark"] .cc { --cc-pill-ink: var(--ground); }
.cc-loading, .cc-problem { margin: 0; padding: 18px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.cc-problem { color: var(--bad); }
.cc-num { font-variant-numeric: tabular-nums; }
.cc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 18px; }
.cc-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-co { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cc-title { margin: 0; font-family: var(--label); font-size: 30px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.cc-meta { font-size: 14px; color: var(--muted); }
.cc-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-chip { font: 600 14px var(--label, inherit); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--lb-edge); background: var(--field); color: var(--soft); cursor: pointer; }
.cc-chip:hover { border-color: var(--accent); }
.cc-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cc-t { margin: 0; font: 500 13px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cc-card, .cc-kpi { background: var(--cc-card); border: 1px solid var(--cc-edge); border-radius: 14px; box-shadow: var(--lb-shadow);
  padding: 18px 20px; min-width: 0; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.cc-lede { margin: 2px 0 6px; color: var(--muted); font-size: 13.5px; }
.cc-lede b { color: var(--ink); }
.cc-since { margin: 4px 0; padding: 10px 12px; font-size: 13.5px; color: var(--soft); background: var(--tray); border-radius: 10px; }
.cc-since-small { padding: 6px 10px; font-size: 12.5px; }
.cc-quiet { color: var(--muted); font-size: 13.5px; list-style: none; margin: 6px 0 0; }
.cc-plot { min-width: 0; }
.cc-hscroll { overflow-x: auto; min-width: 0; }
/* the folds on a phone */
.cc-fold > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 36px; }
.cc-fold > summary::-webkit-details-marker { display: none; }
.cc-fold > summary::after { flex: 0 0 auto; white-space: nowrap; content: "Show"; font-family: var(--label); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--link); }
.cc-fold[open] > summary::after { content: "Hide"; }
.cc-foldbody { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; min-width: 0; }

/* (1) the ramp */
.cc-ramp { display: grid; grid-template-columns: repeat(var(--cc-n, 6), minmax(0, 1fr)); gap: 12px; }
.cc-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 14px; border-radius: 14px;
  border: 1px solid var(--cc-edge); background: var(--cc-card); box-shadow: var(--lb-shadow); color: var(--ink); text-decoration: none; min-width: 0; }
.cc-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--good); }
.cc-tile-due_soon::before { background: var(--warn); }
.cc-tile-down::before { background: var(--bad); }
.cc-tile-down { background: linear-gradient(180deg, var(--bad-bg), transparent 60%), var(--cc-card); border-color: var(--bad-edge); }
.cc-tile:hover { border-color: var(--accent-hi); }
.cc-tile:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.cc-tile-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 6px; }
.cc-tile-reg { font-family: var(--label); font-size: 22px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.1; }
.cc-tile-model { color: var(--muted); font-size: 12.5px; margin-top: -8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-state { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; font-weight: 500; white-space: nowrap; border: 1px solid; }
.cc-state-flying { color: var(--good); background: var(--good-bg); border-color: var(--good-edge); }
.cc-state-due_soon { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-edge); }
.cc-state-down { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-edge); }
.cc-tile-mid { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.cc-tile-why { font-size: 13px; line-height: 1.35; color: var(--soft); min-height: 2.7em; overflow-wrap: anywhere; }
.cc-tile-why b { color: var(--bad); font-weight: 600; }
.cc-tile-since { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cc-tile-quiet { color: var(--muted); }
.cc-tile-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: auto; }
.cc-tile-stat b { color: var(--ink); font-family: var(--label); font-size: 15px; white-space: nowrap; }
.cc-meter { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.cc-meter i { display: block; height: 100%; background: var(--cyan); border-radius: 3px; }
.cc-ring { flex: 0 0 auto; }
.cc-ring-track { fill: none; stroke: var(--track); stroke-width: 7; }
.cc-ring-on { fill: none; stroke: var(--good); stroke-width: 7; stroke-linecap: round; }
.cc-ring-warn .cc-ring-on { stroke: var(--warn); }
.cc-ring-bad .cc-ring-on { stroke: var(--bad); }
.cc-ring-big { fill: var(--ink); font-family: var(--label); font-size: 15px; font-weight: 700; }
.cc-ring-small { fill: var(--muted); font-family: var(--mono); font-size: 7.5px; }

/* (2) the headline numbers */
.cc-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cc-kpi { gap: 4px; }
.cc-big { font-family: var(--label); font-weight: 700; font-size: 40px; line-height: 1; color: var(--ink); }
.cc-big small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.cc-delta { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.cc-delta-good { color: var(--good); }
.cc-delta-bad { color: var(--bad); }
.cc-delta-warn { color: var(--warn); }
.cc-delta-flat { color: var(--muted); }
.cc-sparkbox { margin-top: auto; padding-top: 4px; min-height: 38px; min-width: 0; }
.cc-spark { display: block; overflow: visible; --sp: var(--cc-now); }
.cc-spark-area { fill: var(--sp); opacity: 0.13; }
.cc-spark-ln { fill: none; stroke: var(--sp); stroke-width: 2; stroke-linejoin: round; }
.cc-spark-pt { fill: var(--sp); }
.cc-spark-avg { stroke: var(--warn); stroke-width: 1; stroke-dasharray: 3 3; }
.cc-sp-good { --sp: var(--good); }
.cc-sp-now { --sp: var(--accent-hi); }
.cc-sp-cyan { --sp: var(--cyan); }
.cc-sp-violet { --sp: var(--violet); }
.cc-sp-warn { --sp: var(--warn); }
.cc-sp-ad { --sp: var(--cc-ad); }

/* the charts */
.cc-row2 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.cc-row2b { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.cc-svg { display: block; overflow: visible; }
.cc-svg text { font-family: var(--label, inherit); }
.cc-svg .cc-mono { font-family: var(--mono); }
.cc-gridline { stroke: var(--line); stroke-width: 1; }
.cc-lbl { fill: var(--muted); font-size: 11.5px; }
.cc-lbl-now { fill: var(--ink); font-weight: 700; }
.cc-lbl-avg { fill: var(--cc-avgc); font-weight: 600; }
.cc-lbl-month { fill: var(--soft); font-weight: 600; font-size: 12px; }
.cc-lbl-tiny { font-size: 9px; }
.cc-rowlbl { fill: var(--ink); font-size: 14px; font-weight: 700; }
.cc-val { fill: var(--ink); font-size: 12px; font-weight: 500; }
.cc-val-quiet { fill: var(--muted); }
.cc-val-good { fill: var(--good); }
.cc-val-bad { fill: var(--bad); }
.cc-b { opacity: 0.85; }
.cc-b:hover, .cc-hrow:hover .cc-b { opacity: 1; }
.cc-b-now { fill: var(--cc-now); opacity: 1; }
.cc-b-bad { fill: var(--bad); }
.cc-b-good { fill: var(--good); }
.cc-b-warn { fill: var(--warn); }
.cc-b-cyan { fill: var(--cyan); }
.cc-b-plain { fill: var(--sep); }
.cc-b-none { fill: var(--track); }
.cc-track { fill: var(--track); }
.cc-tick { stroke: var(--ink); stroke-width: 2; opacity: 0.4; }
.cc-target { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 5 4; }
.cc-ground { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.cc-hrow:hover .cc-rowlbl { text-decoration: underline; }
.cc-avg { stroke: var(--cc-avgc); stroke-width: 2; stroke-dasharray: 6 5; }
.cc-area { fill: var(--cc-now); opacity: 0.1; }
.cc-ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cc-ln-now { stroke: var(--cc-now); stroke-width: 3; }
.cc-ln-prev { stroke: var(--cc-prev); stroke-width: 1.6; }
.cc-pt { fill: var(--cc-now); }
.cc-hit { fill: transparent; }
.cc-hit:hover { fill: var(--track); }
/* the calendar's days */
.cc-cal { display: flex; min-width: 0; }
.cc-cal-names { flex: 0 0 auto; }
.cc-cal .cc-hscroll { flex: 1 1 auto; }
.cc-day-up { fill: var(--good); opacity: 0.75; }
.cc-day-part { fill: var(--warn); }
.cc-day-down { fill: var(--bad); }
.cc-day-none { fill: var(--track); }
.cc-day:hover { stroke: var(--ink); stroke-width: 1.5; }
/* legends */
.cc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.cc-lg { display: inline-flex; align-items: center; }
.cc-sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; background: var(--sep); }
.cc-sw-bad { background: var(--bad); }
.cc-sw-good, .cc-sw-up { background: var(--good); }
.cc-sw-now { background: var(--cc-now); }
.cc-sw-prev { background: var(--cc-prev); }
.cc-sw-avg { background: var(--warn); }
.cc-sw-warn, .cc-sw-part { background: var(--warn); }
.cc-sw-down { background: var(--bad); }
.cc-sw-none { background: var(--track); }
.cc-sw-cyan { background: var(--cyan); }
.cc-sw-ground { background: transparent; box-shadow: 0 0 0 2px var(--ink) inset; }
/* the maintenance runway */
.cc-runway-grid { display: grid; grid-template-columns: 72px repeat(8, minmax(70px, 1fr)); min-width: 632px; }
.cc-rw-h { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 0 4px 8px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.cc-rw-h.cc-rw-now { color: var(--accent-hi); font-weight: 500; }
.cc-rw-reg { font-family: var(--label); font-weight: 700; font-size: 15px; padding: 8px 0; border-top: 1px solid var(--line); display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.cc-rw-reg:hover { text-decoration: underline; }
.cc-rw-c { border-top: 1px solid var(--line); border-left: 1px dashed var(--line); padding: 5px 4px; display: flex; flex-direction: column; gap: 4px; min-height: 44px; min-width: 0; }
.cc-rw-c.cc-rw-now { background: var(--blue-bg); }
.cc-pill { font-size: 11.5px; line-height: 1.2; padding: 4px 6px; border-radius: 6px; color: var(--cc-pill-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: none; background: var(--c-other); }
.cc-pill:hover { box-shadow: 0 0 0 2px var(--ink); }
.cc-pk-annual { background: var(--c-annual); }
.cc-pk-hundred { background: var(--c-hundred); }
.cc-pk-oil { background: var(--cc-oil); }
.cc-pk-check { background: var(--c-check); }
.cc-pk-ad { background: var(--cc-ad); }
.cc-pk-other { background: var(--c-other); }
.cc-pill.cc-pill-over { background: var(--bad); }
.cc-legend .cc-pk-annual, .cc-legend .cc-pk-hundred, .cc-legend .cc-pk-oil, .cc-legend .cc-pk-check, .cc-legend .cc-pk-ad, .cc-legend .cc-pk-other { border-radius: 3px; }
/* needs attention */
.cc-att { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.cc-att-row { display: grid; grid-template-columns: 10px 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink); text-decoration: none; }
.cc-att li:first-child .cc-att-row { border-top: 0; }
.cc-att-row:hover { background: var(--track); border-radius: 6px; }
.cc-att-reg { font-family: var(--label); font-weight: 700; }
.cc-att-text { min-width: 0; overflow-wrap: anywhere; color: var(--soft); }
.cc-att-go { font-size: 12.5px; color: var(--link); font-weight: 500; white-space: nowrap; }
.cc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-hi); }
.cc-dot-bad { background: var(--bad); }
.cc-dot-warn { background: var(--warn); }
/* a fleet page with the control center above its cards: a clear break between the two */
.cc + .lb-head { padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 1280px) {
  .cc-ramp, .cc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-row2, .cc-row2b { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cc { gap: 14px; }
  .cc-ramp, .cc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cc-tile { padding: 14px 10px 12px; gap: 8px; }
  .cc-tile-reg { font-size: 19px; }
  .cc-tile-mid { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .cc-tile-why { min-height: 0; }
  .cc-card, .cc-kpi { padding: 14px; }
  .cc-big { font-size: 32px; }
  .cc-title { font-size: 26px; }
  .cc-att-row { grid-template-columns: 10px 58px minmax(0, 1fr); }
  .cc-att-go { grid-column: 3; }
}

/* Down for maintenance (George, 2026-10-15): the dashboard's banner, the grounding squawk, the DOWN marker */
.dn-banner { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 12px 16px;
  border: 1px solid var(--bad); border-left-width: 5px; border-radius: 10px; background: var(--bad-bg); color: var(--ink); }
.dn-say { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; min-width: 0; }
.dn-head { color: var(--bad); font-family: var(--label, inherit); font-size: 18px; font-weight: 700; }
.dn-why { margin: 0; padding-left: 18px; font-size: 14.5px; }
.dn-why a { color: var(--bad); text-decoration: underline; }
.dn-btn { flex: 0 0 auto; }
.dn-quiet { display: flex; justify-content: flex-end; }
.dn-mark { height: 30px; padding: 0 12px; font-size: 13px; color: var(--muted); background: transparent; cursor: pointer; }
.dn-mark:hover { color: var(--bad); border-color: var(--bad); }
.dn-form { display: flex; flex-direction: column; gap: 10px; }
.dn-form input { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--field, transparent); color: inherit; }
.dn-mark-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px; font-family: var(--mono, monospace); font-size: 10.5px;
  font-weight: 700; letter-spacing: .06em; line-height: 1.5; vertical-align: middle; background: var(--bad); color: #fff; }
:root[data-theme="dark"] .dn-mark-tag { color: #1a0a08; }
.fleet-card .reg .dn-mark-tag { font-size: 12px; vertical-align: 4px; }
.sq-ground { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px;
  border-radius: 999px; background: var(--bad); color: #fff; }
:root[data-theme="dark"] .sq-ground { color: #1a0a08; }
.sq-grounding { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.sq-form .sq-grounding input { min-height: 0; width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--bad); }
.dev-phone .dn-banner { padding: 10px 12px; }
.dev-phone .dn-btn { width: 100%; }
.ac-tab b { white-space: nowrap; }
.ac-pick .dn-mark-tag { margin-left: 4px; }
/* the DOWN label inside an aircraft tab: small, on the tail number's line, and the tab keeps room for it */
.ac-tab b { white-space: nowrap; }
.ac-tab .dn-mark-tag { font-size: 9.5px; padding: 0 4px; margin-left: 5px; vertical-align: 1px; }
.ac-tab:has(.dn-mark-tag) { flex-shrink: 0; }
/* joining (engine/joining.py, 2026-10-16): the staff's proposed joins on the Logbook screen */
.join-review { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.join-review > summary { cursor: pointer; font-weight: 600; }
.join-review .join-item { padding: 10px 0; border-top: 1px solid var(--line); }
.join-review .join-item:first-child { border-top: 0; }
.join-review .join-item ul { margin: 4px 0 8px; padding-left: 18px; }
.ib-f337-hint { margin: 4px 0 0; }

/* the CGR-30C's extra data on a flight's chart (George, 2026-10-16) */
.fl-extra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; cursor: pointer; font-weight: 600; }
.fl-extra input { width: 17px; height: 17px; margin: 0; }
.fl-extra small { font-weight: 400; }
.fl-on { fill: var(--accent, #087CF4); opacity: .8; }
.fl-extra-clock { margin: -4px 0 10px; }
.ad-fromlogs { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--desk); display: flex; flex-direction: column; gap: 4px; }
.ad-notes { margin-top: 10px; }

/* findings v2 (2026-10-18) */
.fd-mark-v2 { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.fd-mark-v2 input[type="text"] { width: 100%; max-width: 720px; }
.fd-acts { flex-wrap: wrap; }
.fd-wrong { border-color: var(--bad-edge, var(--bad)); color: var(--bad); }
.fd-stateline { font-size: 14px; color: var(--good); }
.fd-figs { font-family: var(--mono); font-size: 12px; }
.fd-resolve { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 720px; }
.fd-sure { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fd-ticket { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; }
.fd-said { color: var(--good); }
.fd-said .fd-said-go { font-weight: 600; }
.fd-own-note { margin: 0; padding: 8px 12px; border-left: 4px solid var(--good); background: var(--field); border-radius: 0 8px 8px 0; max-width: 720px; }
.fd-own-note b { display: block; font-size: 12px; color: var(--muted); }
.fd-own-note p { margin: 2px 0 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.fd-which { display: flex; flex-direction: column; gap: 2px; }
.fd-which p { margin: 0; }
.fd-words .fd-still { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--warn); }
.app-logic { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .fd-acts .btn-solid, .fd-acts .lb-btn { width: 100%; } .fd-pages, .fd-pages.n3 { grid-template-columns: minmax(0, 1fr); } }

/* THE BELL (George, 2026-10-18; engine/notices.py): notices from support, in the aircraft row beside the screen's buttons */
.nb-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 8px; align-self: center;
           flex: none; border: 1px solid var(--lb-edge); border-radius: 10px; background: var(--field, var(--lb-ground)); color: var(--soft); cursor: pointer; padding: 0; }
.nb-bell svg { width: 22px; height: 22px; }
.nb-bell:hover, .nb-bell:focus-visible { color: var(--ink); border-color: var(--accent); }
.nb-bell[hidden] { display: none; }
.nb-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--warn, #c2410c); color: #fff;
            font: 700 11.5px/20px var(--mono); text-align: center; letter-spacing: 0; }
.nb-badge[hidden] { display: none; }
.ac-tabs > .nb-bell { margin-left: auto; }
.ac-tabs .ac-actions:not(:empty) ~ .nb-bell { margin-left: 8px; }
.nb-panel { width: min(520px, 100%); gap: 12px; }
.nb-head { display: flex; align-items: center; gap: 10px; }
.nb-head h2 { margin: 0; flex: 1; }
.nb-head .lb-panel-x { align-self: center; }
.nb-list { display: flex; flex-direction: column; gap: 8px; }
.nb-row { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--lb-edge); border-radius: 10px; background: var(--field, transparent);
          color: var(--ink); font: inherit; cursor: pointer; }
.nb-row:hover, .nb-row:focus-visible { border-color: var(--accent); }
.nb-row.unread { border-left: 4px solid var(--accent); }
.nb-when { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--muted); }
.nb-text { line-height: 1.4; }
.nb-row.unread .nb-text { font-weight: 600; }
.nb-detail { white-space: pre-wrap; line-height: 1.45; font-size: 14px; color: var(--ink); padding-top: 4px; border-top: 1px solid var(--lb-edge); overflow-wrap: anywhere; }
.nb-go { font-size: 13px; color: var(--accent); }
.nb-empty { margin: 24px 0; }
/* a finding support reviewed and returned to the owner (George, 2026-10-18) */
.fd-words .fd-support { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--accent); }
.fd-support-note { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--accent); background: var(--blue-bg, transparent); border-radius: 0 8px 8px 0; line-height: 1.45; }
body.dev-phone header.bar .nb-bell { margin-left: auto; margin-right: 4px; width: 44px; height: 44px; }
body.dev-phone .nb-panel { width: 100%; }

.lbk-faa { margin: 6px 0 10px; color: var(--muted); }

/* a new scan of a page on file (George, 2026-10-19): the two side by side, and the person's choice */
.ls-item { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; }
.ls-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 10px; }
.ls-pic { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.ls-pic img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--field); }
.ls-acts button { min-height: 40px; }

/* a Form 337's back already uploaded: pick it (George, 2026-10-19) */
.fd-backs { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.fd-back-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fd-back { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.fd-back img { width: 100%; height: auto; border-radius: 4px; background: var(--field); }
.fd-back-words { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* select every open squawk to send (George, 2026-10-19) */
.sq-all { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 4px 2px; cursor: pointer; }
.sq-all input { width: 18px; height: 18px; }

/* Components: Hide removed (George, 2026-10-19) */
/* The Components table and the tracker (George, 2026-10-26; mockup ChNhsBqG1XdTW3H4aK32w4): a spreadsheet that fits a
   1920x1080 screen with no sideways scroll at the standard columns: Part, Make & model, Limit and Last entry wrap; a long
   P/N or S/N is cut short with the whole number on hover. Light and dark from the theme's own colours. */
:root { --danger: #B42318; --hilite: #FFF7DD; }
:root[data-theme="dark"] { --danger: #C4312A; --hilite: rgba(242, 182, 83, 0.12); }
.lb-wrap.ct-wide { max-width: 1760px; }
.ct, .tk { padding: 0; display: flex; flex-direction: column; min-width: 0; }
.ct-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px 10px; flex-wrap: wrap; }
.lb .ct-head h2 { font-size: 20px; }
.ct-count { font-size: 13px; color: var(--muted); }
.ct-head .ct-manage, .ct-head .tk-addbtn { margin-left: auto; }
.ct-bar { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 0 18px 12px; border-bottom: 2px solid var(--sep, var(--line)); }
.ct-search { height: 36px; min-width: 240px; padding: 0 10px; border: 1px solid var(--lb-edge, var(--line)); border-radius: 7px; background: var(--field); color: var(--ink); font: inherit; font-size: 14px; }
.ct-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; min-height: 36px; }
.ct-check input, .tk-t td.tick input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.ct-pref { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.ct-sortnote { margin-left: auto; font-size: 13px; color: var(--muted); }
.ct-said { margin: 10px 18px 0; padding: 8px 12px; border-radius: 8px; background: var(--good-bg); border: 1px solid var(--good-edge, var(--line)); font-size: 14px; }
.ct-picker { position: absolute; top: 44px; left: 260px; z-index: 20; width: 300px; display: flex; flex-direction: column; gap: 2px; padding: 10px;
             background: var(--field); border: 1px solid var(--lb-edge, var(--line)); border-radius: 10px; box-shadow: var(--lb-shadow); }
.ct-picker[hidden] { display: none; }
.ct-ph { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.ct-pick { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; padding: 4px; border-radius: 6px; font-size: 14px; }
.ct-pick:hover { background: var(--row, var(--desk)); }
.ct-pick.off label { color: var(--muted); }
.ct-mv { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 5px; background: var(--field); color: var(--ink); cursor: pointer; font-size: 12px; }
.ct-mv:disabled { opacity: 0.35; cursor: default; }
.ct-tw { overflow: auto; max-height: 78vh; }
/* Sideways scrolling made plain (George, 2026-10-27: "there is no scroll to the right to see the rest of the columns"): a
   Mac's scrollbar only shows while scrolling, so this one always shows (WebKit and Chrome by ::-webkit-scrollbar; Firefox by
   scrollbar-color), with the ‹ › buttons and a shade on the side where columns are cut off (ctScroller in logbook.js).
   The Part column stays put while the rest scroll under it. */
:root { --ct-track: #E6EBF2; --ct-thumb: #8E9BAD; --ct-thumb-hi: #5F6E84; --ct-shade: rgba(15, 27, 45, 0.16); }
:root[data-theme="dark"] { --ct-track: #0A1628; --ct-thumb: #4F6587; --ct-thumb-hi: #7690B8; --ct-shade: rgba(0, 0, 0, 0.55); }
.ct-tw::-webkit-scrollbar { width: 12px; height: 12px; }
.ct-tw::-webkit-scrollbar-track { background: var(--ct-track); }
.ct-tw::-webkit-scrollbar-thumb { background: var(--ct-thumb); border-radius: 7px; border: 2px solid var(--ct-track); min-width: 40px; }
.ct-tw::-webkit-scrollbar-thumb:hover { background: var(--ct-thumb-hi); }
.ct-tw::-webkit-scrollbar-corner { background: var(--ct-track); }
@supports not selector(::-webkit-scrollbar) { .ct-tw { scrollbar-width: auto; scrollbar-color: var(--ct-thumb) var(--ct-track); } }
.ct-tw:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ct-sx { position: relative; min-width: 0; }
.ct-shade { position: absolute; top: 0; bottom: var(--ct-hbar, 0px); width: 28px; pointer-events: none; z-index: 4; }
.ct-shade.l { left: var(--ct-stick, 0px); background: linear-gradient(to right, var(--ct-shade), transparent); }
.ct-shade.r { right: var(--ct-vbar, 0px); background: linear-gradient(to left, var(--ct-shade), transparent); }
.ct-sxb { position: absolute; top: var(--ct-by, 50%); z-index: 5; width: 40px; height: 40px; margin-top: -20px; padding: 0 0 3px; display: grid; place-items: center;
          border: 1px solid var(--lb-edge, var(--line)); border-radius: 50%; background: var(--field); color: var(--ink); box-shadow: var(--lb-shadow);
          font: 600 26px/1 var(--serif, system-ui); cursor: pointer; }
.ct-sxb.l { left: calc(var(--ct-stick, 0px) + 8px); }
.ct-sxb.r { right: calc(var(--ct-vbar, 0px) + 8px); }
.ct-sxb:hover { border-color: var(--accent); color: var(--accent); }
.ct-sxb:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ct-t th.c-part, .ct-t td.c-part { position: sticky; left: 0; }
.ct-t td.c-part { z-index: 1; background-color: var(--field); }
.ct-t th.c-part { z-index: 3; }
.ct-t tbody tr.live:nth-child(even) td.c-part { background-color: var(--row, var(--field)); }
.ct-t tbody tr.live:hover td.c-part { background: linear-gradient(var(--blue-bg), var(--blue-bg)), var(--field); }
/* the tracker: the tick and the part's name both stay put */
.tk-t td.tick, .tk-t th.tick { position: sticky; left: 0; box-sizing: border-box; min-width: 44px; max-width: 44px; padding-left: 0; padding-right: 0; }
.tk-t td.tick { z-index: 1; background-color: var(--field); }
.tk-t th.tick { z-index: 3; }
.tk-t th.c-part, .tk-t td.c-part { left: 44px; }
.tk-t tr.gone td.tick, .tk-t tr.gone td.c-part { background-color: var(--row, var(--field)); }
.tk-t tr.flash td.tick, .tk-t tr.flash td.c-part { background: linear-gradient(var(--hilite), var(--hilite)), var(--field); }
.tk-t tr.editing td.tick, .tk-t tr.editing td.c-part { background: linear-gradient(var(--blue-bg), var(--blue-bg)), var(--field); }
/* a band's name and an empty table's word stay in view while the columns scroll */
.ct-band button, .ct-band .tk-gh, .ct-empty td > * { position: sticky; left: 0; box-sizing: border-box; max-width: var(--ct-vis, 100%); }
.ct-band button { width: var(--ct-vis, 100%); }
.ct-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ct-t th { position: sticky; top: 0; z-index: 2; padding: 0; text-align: left; background: var(--row, var(--desk)); border-bottom: 2px solid var(--sep, var(--line));
           border-right: 1px solid var(--line); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tk-t th { padding: 9px 7px; white-space: nowrap; }
.ct-t th:last-child, .ct-t td:last-child { border-right: 0; }
.ct-sb { width: 100%; display: flex; gap: 6px; align-items: center; padding: 9px 7px; border: 0; background: none; color: inherit; cursor: pointer; text-align: left;
         font: inherit; letter-spacing: inherit; text-transform: inherit; }
.ct-sb:hover { color: var(--ink); }
.ct-t th.sorted .ct-sb { color: var(--accent); }
.ct-t th.r .ct-sb { justify-content: flex-end; }
.ct-arr { font-size: 10px; }
.ct-t td { padding: 6px 7px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top; }
.tk-t td { vertical-align: middle; }
.ct-t td.r, .ct-t th.r { text-align: right; white-space: nowrap; }
.ct-t td.c-pn, .ct-t td.c-sn { white-space: nowrap; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; }
.ct-t td.c-part { min-width: 120px; }
.ct-t td.c-due, .ct-t td.c-inst, .ct-t td.c-next, .ct-t td.c-status, .ct-t .nw { white-space: nowrap; }
.ct-t tbody tr.live:nth-child(even) td { background: var(--row, transparent); }
.ct-t tbody tr.live:hover td { background: var(--blue-bg); }
.ct-t tr.gone td { color: var(--muted); }
.ct-pl { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lb-edge, var(--line)); text-underline-offset: 3px; }
.ct-pl:hover { color: var(--accent); text-decoration-color: var(--accent); }
.ct-pn { font-weight: 600; }
.ct-pm { font-size: 12px; color: var(--muted); }
.ct-dash { color: var(--muted); }
.ct-neg { color: var(--bad); font-weight: 600; }
.ct-low { color: var(--warn); font-weight: 600; }
.ct-warn { color: var(--bad); font-size: 12.5px; font-weight: 600; }
.ct-src { font-family: var(--mono); font-size: 12px; }
.ct-src.mine { color: var(--accent); }
:root[data-theme="dark"] .ct-src.mine { color: var(--link); }
.ct-sd { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
.ct-sd::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.ct-sd.s-overdue { color: var(--bad); } .ct-sd.s-soon { color: var(--warn); } .ct-sd.s-ok { color: var(--good); }
.ct-sd.s-rec { color: var(--link, var(--accent)); } .ct-sd.s-none, .ct-sd.s-removed { color: var(--muted); }
.ct-band td { padding: 0; background: var(--desk); border-top: 2px solid var(--sep, var(--line)); border-bottom: 1px solid var(--lb-edge, var(--line)); }
.ct-band button { width: 100%; display: flex; gap: 14px; align-items: baseline; padding: 9px 14px; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.tk-gh { display: flex; gap: 14px; align-items: baseline; padding: 7px 12px; }
.ct-gn { font-family: var(--label); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ct-gc { font-size: 13px; color: var(--muted); }
.ct-ga { font-size: 13px; font-weight: 600; color: var(--bad); } .ct-ga.w { color: var(--warn); }
.ct-car { font-family: var(--mono); font-size: 11px; width: 14px; }
.ct-empty td { padding: 22px; text-align: center; color: var(--muted); }
/* the tracker */
.tk-note { margin: 0; padding: 0 18px 12px; font-size: 14px; color: var(--soft); border-bottom: 2px solid var(--sep, var(--line)); }
.tk-t td.tick, .tk-t th.tick { width: 44px; text-align: center; }
.tk-new { color: var(--link, var(--accent)); }
.tk-t .tact { text-align: right; white-space: nowrap; }
.tk-t .tact > * + * { margin-left: 6px; }
.tk-t tr.off td { color: var(--muted); }
.tk-t tr.off .ct-pn { font-weight: 500; }
.tk-t tr.gone td { background: var(--row, transparent); }
.tk-t tr.flash td { background: var(--hilite); }
.tk-t tr.editing td { background: var(--blue-bg); }
.tk-in, .tk-t input.tk-in[type] { width: 100%; box-sizing: border-box; height: auto; min-height: 32px; padding: 4px 6px; border: 1px solid var(--lb-edge, var(--line));
         border-radius: 5px; background: var(--field); color: var(--ink); font: inherit; font-size: 13.5px; }
.tk-in.num, .tk-t input.tk-in.num[type] { width: 6.5em; }
.ct-search[type] { height: 36px; width: auto; font-size: 14px; padding: 0 10px; }
.tk-af input[type] { height: auto; width: auto; font-size: 14px; padding: 6px 8px; }
.ct-src { white-space: nowrap; }
select.tk-in { width: auto; }
/* the Meter cell: the meter over its reading, like the Limit cell, so the row keeps its width */
.tk-mtr { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tk-mtr select { flex: none; }
.tk-mtr input[type] { width: 6.5em; min-width: 0; }
.tk-t tr.editing input.tk-in[type]:not(.num) { min-width: 5.5em; }
.tk-t tr.editing .df { min-width: 0; }
.tk-t tr.editing .df input.df-in[type] { min-width: 6.4em; }
/* the row being edited keeps the table's width: Remove completely goes under Save and Cancel */
.tk-t tr.editing .tact { width: 1%; }
.tk-t tr.editing .tact > .tk-sc { display: inline-flex; gap: 6px; white-space: nowrap; }
.tk-t tr.editing .tact > .tk-rmall { display: block; margin: 6px 0 0 auto; }
.tk-af .tk-mtr { flex-wrap: nowrap; }
.tk-af .tk-mtr input[type] { flex: 1 1 auto; width: 100%; }
/* a date box with its calendar button: app/static/datefield.css; here, only how the tracker fits it */
.tk-af .df { min-width: 0; }
.tk-af .df-cal { min-height: 34px; border-radius: 6px; }
.tk-lim { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tk-lu { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--muted); }
.tk-save { height: 32px; padding: 0 14px; font-size: 14px; }
.tk-t .lb-btn { height: 32px; }
/* Remove completely: red fill, white text, readable in light and dark (George, 2026-10-26) */
.tk-rmall { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--danger); color: #FFFFFF; font: inherit; font-size: 13px; font-weight: 700;
            cursor: pointer; white-space: nowrap; }
.tk-rmall:hover { filter: brightness(1.1); }
.tk-rmall.big { height: 40px; padding: 0 18px; font-size: 14.5px; }
.tk-rmall:disabled { opacity: 0.6; cursor: progress; }
.tk-saved td { padding: 6px 7px; background: var(--good-bg); color: var(--good); font-weight: 600; font-size: 14px; }
.tk-addf { display: flex; flex-direction: column; gap: 10px; margin: 10px 18px 0; padding: 12px 14px; border: 1px solid var(--lb-edge, var(--line)); border-radius: 10px; background: var(--row, var(--desk)); }
.tk-afg { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 12px; }
.tk-af { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); }
.tk-af input, .tk-af select { min-height: 34px; padding: 6px 8px; border: 1px solid var(--lb-edge, var(--line)); border-radius: 6px; background: var(--field); color: var(--ink); font: inherit; font-size: 14px; }
.tk-aff { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tk-veil { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(6, 11, 20, 0.45); }
.tk-ask { max-width: 460px; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; border: 1px solid var(--lb-edge, var(--line)); border-radius: 12px;
          background: var(--field); color: var(--ink); box-shadow: var(--lb-shadow); }
.tk-askq { margin: 0; font-family: var(--label); font-size: 20px; font-weight: 600; }
.tk-askd { margin: 0; color: var(--muted); }
.tk-askb { display: flex; gap: 10px; padding-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* a landscape tablet (George, 2026-10-26): fingers, not a mouse */
@media (max-width: 1180px) {
  .ct-check input, .tk-t td.tick input { width: 22px; height: 22px; }
  .tk-rmall, .tk-t .lb-btn, .tk-save { min-height: 40px; }
  .ct-picker { left: 16px; }
}
/* Manage > Preferences: each preference its own box */
.pf-box { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.pf-check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.pf-check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.pf-places { border-collapse: collapse; width: 100%; font-size: 14px; }
.pf-places th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 2px solid var(--sep, var(--line)); }
.pf-places td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.pf-yes { color: var(--good); font-weight: 600; } .pf-no { color: var(--muted); font-weight: 600; }
.ad-cleared { margin: 6px 0 0; }

/* every figure read from an entry (engine/pairs.py) */
.ent-every { margin: 6px 0 8px; font-size: 13px; }
.ent-every summary { cursor: pointer; color: var(--muted); }
.ent-every-list { display: grid; grid-template-columns: minmax(9em, max-content) 1fr; gap: 2px 12px; margin: 6px 0 0; }
.ent-every-list dt { color: var(--muted); }
.ent-every-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.ent-every-list .ent-doubt { text-decoration: underline dotted; }

/* a document from the FAA's file (engine/caresdocs.py) */
.dc-src { display: inline-block; margin: 0 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; letter-spacing: 0.04em; border: 1px solid var(--line); color: var(--muted); }
.ad-exp { margin-bottom: 12px; }

/* an upload for one job (George, 2026-10-26): the file, Send, and every step until it's done */
.tu { display: flex; flex-direction: column; gap: 14px; }
.tu h2 { margin: 0; }
.tu-where { margin: 0; }
.tu-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tu-file { font-weight: 600; }
.tu-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tu-step { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 1.05em; }
.tu-mark { display: inline-flex; width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid var(--lb-edge); align-items: center; justify-content: center; font-weight: 700; flex: none; }
.tu-now { color: var(--ink); font-weight: 600; }
.tu-now .tu-mark { border-color: var(--accent); animation: tu-pulse 1.4s ease-in-out infinite; }
.tu-ok { color: var(--ink); }
.tu-ok .tu-mark { border-color: var(--good); background: var(--good); color: #fff; }
.tu-bad { color: var(--bad); }
.tu-bad .tu-mark { border-color: var(--bad); }
.tu-said { margin: 0; font-size: 1.05em; }
.tu-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@keyframes tu-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .tu-now .tu-mark { animation: none; } }

/* the upload screen (George, 2026-10-26): choose, what is it, what's happening */
.uf .uf-box { display: flex; flex-direction: column; gap: 14px; }
.uf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.uf-head h2 { margin: 0; }
.uf-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.uf-steps li { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 99px; }
.uf-steps li i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--line); }
.uf-steps li.uf-now { color: inherit; border-color: var(--accent, #0A5CD6); }
.uf-steps li.uf-now i { background: var(--accent, #0A5CD6); color: #fff; }
.uf-steps li.uf-did i { background: var(--good, #157A3F); color: #fff; }
.uf-body { display: flex; flex-direction: column; gap: 12px; }
.uf-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.uf-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uf-keep { display: inline-flex; gap: 8px; align-items: flex-start; font-size: 14px; text-align: left; }
.uf-files { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.uf-file { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.uf-file:first-child { border-top: 0; }
.uf-name { overflow-wrap: anywhere; font-weight: 600; }
.uf-goes { grid-column: 1 / -1; font-size: 14px; }
.uf-chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; }
.uf-ok { color: var(--good, #157A3F); background: rgba(21, 122, 63, 0.1); }
.uf-ask { color: var(--warn, #9A5200); background: rgba(214, 122, 0, 0.12); }
.uf-sup { color: var(--accent, #0A5CD6); background: rgba(10, 108, 240, 0.1); }
.uf-q, .uf-qin { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.uf-qin { border-color: var(--warn, #9A5200); }
.uf-q h3, .uf-qin h3 { margin: 0; font-size: 17px; }
.uf-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.uf-choice { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; background: inherit; color: inherit; }
.uf-choice:hover:not(:disabled) { border-color: var(--accent, #0A5CD6); }
.uf-choice small { opacity: .75; }
.uf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; }
.uf-pair figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.uf-pair img { width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.uf-track { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.uf-track.uf-done { border-color: var(--good, #157A3F); }
.uf-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.uf-meter { width: 100%; }
.uf-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.uf-rail div { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; opacity: .7; }
.uf-rail div::before { content: ""; height: 5px; border-radius: 3px; background: var(--line); }
.uf-rail div.uf-did { opacity: 1; } .uf-rail div.uf-did::before { background: var(--good, #157A3F); }
.uf-rail div.uf-now { opacity: 1; font-weight: 600; }
.uf-rail div.uf-now::before { background: linear-gradient(90deg, var(--accent, #0A5CD6) var(--p, 30%), var(--line) var(--p, 30%)); }
.uf-filed { display: flex; flex-direction: column; gap: 6px; }
.uf-sup-line { color: var(--accent, #0A5CD6); }
.uf-also { margin: 6px 0 0; font-size: 16px; }
.uf-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 16px; font-size: 14px; background: rgba(10, 108, 240, 0.08); border-bottom: 1px solid rgba(10, 108, 240, 0.26); }
.uf-strip-meter { flex: 1 1 100px; max-width: 220px; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.uf-strip-meter i { display: block; height: 100%; background: var(--accent, #0A5CD6); }
@media (max-width: 560px) { .uf-rail { grid-template-columns: 1fr; } .uf-rail div { flex-direction: row; align-items: center; } .uf-rail div::before { width: 10px; height: 10px; border-radius: 50%; flex: none; } }
/* date boxes (datefield.css) where the box sits in a row: as wide as a date, not the whole row (2026-10-27) */
.hr-when .df { width: auto; flex: 0 1 15em; }
.sq-form-row .df, .dc-add .df { width: auto; flex: 0 1 12em; }
.ib-oil .df { width: auto; flex: 0 1 12em; }
.fd-cdate { display: flex; flex-direction: column; gap: 4px; flex: 0 1 16em; }

/* ---- Coming due, only what's close (George, 2026-10-26; logbook.js dueCard): the window in the card's header, a pace
   line under an hours item, the count and the full list under the list, one line for the items with no date ---- */
.cd-head { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cd-pick { font: inherit; font-family: var(--serif, inherit); font-size: 14px; font-weight: 600; color: var(--ink); background: var(--field);
  border: 1px solid var(--lb-edge, var(--line)); border-radius: 8px; padding: 5px 10px; min-height: 36px; cursor: pointer; }
.cd-pick:disabled { cursor: progress; }
.cd-said { margin: 0 0 8px; font-weight: 600; } .cd-said:empty { display: none; }
.cd-said.ok { color: var(--good); } .cd-said.bad { color: var(--bad); }
.cd-pace { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.cd-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 10px 2px 0; font-size: 14px; color: var(--soft); }
.cd-foot + .cd-foot { padding-top: 6px; }
.cd-nodate { color: var(--ink); }
.cd-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 8px 12px; margin-bottom: 8px; border-radius: 8px;
  background: var(--blue-bg, var(--desk)); font-size: 14px; color: var(--ink); }
.cd-empty { margin: 4px 0; font-size: 15px; color: var(--ink); }
.cd-empty b { font-weight: 700; }
.due-row.cd-hi { box-shadow: 0 0 0 2px var(--accent) inset; }
.cd-choices { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.cd-prefs .small { color: var(--soft); max-width: 80ch; }
.cd-prefs .acct-said { font-weight: 600; } .cd-prefs .acct-said.ok { color: var(--good); } .cd-prefs .acct-said.bad { color: var(--bad); }
@media (pointer: coarse) { .cd-pick { min-height: 44px; } }

/* an identity page: a log's cover, title or description page (George, 2026-11-09), off the timeline like a tag */
.cat-cover i { background: var(--c-tag); }
