/* Flight Ops Cockpit — app shell components (3.1.24). Layout of the header and tab bar per screen
   width is decided in responsive.css, which stays the last stylesheet. Theme tokens only. */

/* ---- header flight line ------------------------------------------------------------------- */
.shell-flight { display: flex; align-items: center; gap: 16px; min-width: 0; }
.shell-flight #headerUtc { flex: 0 0 auto; }
.shell-flight-text { display: grid; gap: 2px; min-width: 0; }
.shell-flight-l1, .shell-flight-l2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.shell-flight-l1 { font-size: 16px; font-weight: 900; letter-spacing: .04em; color: #fff; }
.shell-flight-l2 { font-size: 14px; font-weight: 800; letter-spacing: .03em; color: #e9e3d3; }
.shell-flight-l1 span, .shell-flight-l2 span { color: #a9a39a; font-weight: 700; }
.shell-flight-text.empty .shell-flight-l1 { color: #a9a39a; }
.shell-flight-l2 b { font-weight: 800; color: #e9e3d3 !important; }
.shell-when::before { content: " · "; }

/* ---- MORE sheet --------------------------------------------------------------------------- */
.shell-more-sheet { display: none; }
#nav.shell-sheet-open .shell-more-sheet {
  display: block; position: absolute; right: 8px; bottom: calc(100% + 8px); z-index: 40;
  width: min(360px, calc(100vw - 16px)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--card, #fff); box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}
.shell-more-status { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: #07090a; }
.shell-more-status > * { margin: 0 !important; }
.shell-more-list { display: grid; padding: 6px; gap: 4px; }
#nav .shell-more-list > button {
  display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important;
  gap: 12px !important; width: 100% !important; min-width: 0 !important; min-height: 52px !important; padding: 8px 14px !important;
  position: relative !important; text-align: left !important; border-radius: 12px !important;
}
#nav .shell-more-list > button .nav-label { font-size: 14px !important; }
#nav .shell-more-list > button .nav-state { position: static !important; margin-left: auto !important; }
.shell-more-btn::before {
  content: ""; display: block; width: 22px; height: 22px; background: center / contain no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111820'%3E%3Ccircle cx='5' cy='12' r='1.8'/%3E%3Ccircle cx='12' cy='12' r='1.8'/%3E%3Ccircle cx='19' cy='12' r='1.8'/%3E%3C/svg%3E");
}
body.night-mode .shell-more-btn::before { filter: invert(1); }
#nav:has(.shell-more-list > button.active) .shell-more-btn,
#nav.shell-sheet-open .shell-more-btn { border-color: var(--gold, #b7923f) !important; box-shadow: inset 0 0 0 1px var(--gold, #b7923f); }
body.night-mode #nav.shell-sheet-open .shell-more-sheet { background: #0d1115; border-color: #2b3034; }

/* the selected tab's icon reads on the dark active tab */
body.shell-on #nav button.active::before { filter: invert(1) sepia(1) saturate(2.6) hue-rotate(2deg) brightness(.92) !important; }

/* ---- Log: SAVE and REVIEW & CERTIFY ------------------------------------------------------- */
.shell-log-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-panel, 14px); background: var(--card, #fff); }
.shell-log-text { display: grid; gap: 2px; min-width: 0; }
.shell-log-text small { font-size: 10px; font-weight: 900; letter-spacing: .1em; color: var(--muted); }
.shell-log-text span { font-size: 13px; color: var(--muted); }
.shell-log-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.shell-log-buttons .btn { min-height: 48px; padding: 10px 18px; font-weight: 900; }
.shell-log-buttons #certBtn { flex: 0 0 auto; }
body.night-mode .shell-log-actions { background: #0d1115; border-color: #2b3034; }

/* ---- WX/NOTAM section menu ---------------------------------------------------------------- */
.shell-off { display: none !important; }
.shell-side-menu { display: flex; gap: 6px; }
.shell-side-menu > button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); color: inherit;
  font-weight: 800; font-size: 14px; text-align: left; cursor: pointer; white-space: nowrap;
}
.shell-side-menu > button.sel { border-color: var(--gold, #b7923f); box-shadow: inset 0 0 0 1px var(--gold, #b7923f); background: rgba(183, 146, 63, .1); }
.shell-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--gold, #b7923f); color: #111; font-size: 12px; font-weight: 900; }
#briefing[data-shell-sec="weather"] .briefing-two-col, #briefing[data-shell-sec="notams"] .briefing-two-col { grid-template-columns: minmax(0, 1fr); }
body.night-mode .shell-side-menu > button { background: #0d1115; border-color: #2b3034; }
body.night-mode .shell-side-menu > button.sel { border-color: var(--gold, #b7923f); }

@media (min-width: 900px) {
  #briefing.shell-split.screen.active { display: grid !important; grid-template-columns: 200px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  /* the static "FLIGHT SUMMARY" help panel (an ::after since 3.0) gives its column to the section menu */
  #briefing.shell-split::after { display: none !important; content: none !important; }
  #briefing.shell-split > #shellBriefMenu { grid-column: 1; grid-row: 1 / span 30; flex-direction: column; position: sticky; top: 12px; }
  #briefing.shell-split > :not(#shellBriefMenu) { grid-column: 2; min-width: 0; }
}
@media (max-width: 899px) {
  .shell-side-menu { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; padding-bottom: 2px; }
  .shell-side-menu > button { flex: 0 0 auto; border-radius: 999px; min-height: 44px; }
}
@media (max-width: 699px) {
  .shell-flight-l1 span { display: none; }
  /* phone: the whole route shows (it wraps if it must) and the date and times take their own line */
  .shell-flight-l2 { white-space: normal; overflow: visible; }
  .shell-when { display: block; }
  .shell-when::before { content: none; }
  .shell-log-buttons { width: 100%; }
  .shell-log-buttons #saveBtn { flex: 0 0 auto; }
  .shell-log-buttons #certBtn { flex: 1 1 auto; }
}

/* ---- paste or drop a flight plan (plan-paste.js) ------------------------------------------- */
.plan-paste-box { margin-top: 10px; min-height: 64px; padding: 14px; border: 2px dashed var(--gold, #b7923f); border-radius: 12px;
  background: rgba(183, 146, 63, .06); color: var(--muted); font-weight: 800; font-size: 14px; outline: none; -webkit-user-select: text; user-select: text; }
.plan-paste-box:empty::before { content: attr(data-placeholder); }
.plan-paste-box.hidden { display: none !important; }
.avplan-import-card.plan-drop { outline: 2px dashed var(--gold, #b7923f); outline-offset: 4px; }
.import-panel-feedback.warn { color: var(--warn, #b56d0a); font-weight: 800; }
/* the briefing PDF card is gone (weather and NOTAMs come from NAIPS): the flight plan takes the row */
.planning-support-grid > .avplan-import-card { grid-column: 1 / -1; }

/* ---- 3.1.29 compact flight-plan and nearest-METAR cards ------------------------------------- */
/* the fold bar already says "Flight plan" */
#today .planning-support-heading { display: none !important; }
.planning-support-grid > .avplan-import-card { min-height: 0 !important; padding: 12px 14px !important; }
.avplan-import-card .section-title { margin-bottom: 8px !important; }
.avplan-import-card .section-kicker, .live-wx-card .section-kicker { display: none !important; }
.avplan-import-card h2, .live-wx-card h2 { font-size: 16px !important; margin: 0 !important; }
/* the PDF: a thumbnail beside its name, not a page-sized preview */
#flightPlanPdfPanel { min-height: 0 !important; display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 8px 10px !important; border-radius: 12px !important; margin-bottom: 10px; }
#flightPlanPdfPanel .pdf-preview-head { grid-column: 2; grid-row: 1; border: 0 !important; padding: 0 !important; background: none !important; min-width: 0; }
#flightPlanPdfPanel #flightPlanPdfName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#flightPlanPdfPanel.empty { grid-template-columns: minmax(0, 1fr); }
#flightPlanPdfPanel.empty #flightPlanPdfPreview { display: none !important; }
#flightPlanPdfPreview { grid-column: 1; grid-row: 1; width: 72px; min-height: 0 !important; height: auto !important; padding: 0 !important; background: none !important; flex: none !important; }
#flightPlanPdfPreview .pdf-preview-open, #flightPlanPdfPreview .pdf-first-page-stage { min-height: 0 !important; padding: 0 !important; background: none !important; flex: none !important; }
#flightPlanPdfPreview .pdf-first-page-sheet { width: 72px !important; box-shadow: 0 2px 8px rgba(16, 20, 24, .25), 0 0 0 1px rgba(16, 20, 24, .12) !important; }
.avplan-import-card .import-panel-actions { margin: 0 !important; display: flex !important; gap: 8px; }
.avplan-import-card .import-panel-actions .btn { min-height: 44px !important; }
.avplan-import-card .import-panel-feedback { margin-top: 6px !important; font-size: 12px !important; }
/* nearest METAR: station, distance and the raw report — the button sits in the title row */
.live-wx-card { padding: 12px 14px !important; }
.live-wx-card .section-title { align-items: center !important; margin-bottom: 8px !important; gap: 8px; }
.live-wx-card .shell-wx-head { display: flex; align-items: center; gap: 8px; }
#liveWxRefresh.shell-wx-refresh { min-height: 36px !important; padding: 6px 12px !important; font-size: 11px !important; }
#liveWxSummary, .live-wx-card > .mini:last-child, .live-wx-card > .toolbar:empty { display: none !important; }
#liveWxDashboard > .mini:first-child { font-size: 11px; margin-bottom: 6px !important; }
.live-wx-card .live-wx-station { padding: 8px 10px !important; }
.live-wx-card .live-wx-station-head { margin-bottom: 4px !important; }
.live-wx-card .live-wx-station h3 { font-size: 15px !important; }
.live-wx-card .live-wx-product { margin-top: 4px !important; }
.live-wx-card .live-wx-label { display: none !important; }
.live-wx-card .live-wx-raw { font-size: 13px !important; padding: 6px 8px !important; }
/* the thumbnail opens the PDF itself; its caption badges are too big for it */
#flightPlanPdfPreview .pdf-preview-open-cue, #flightPlanPdfPreview .pdf-first-page-render::after, #flightPlanPdfPreview .pdf-first-page-sheet > :not(.pdf-first-page-render) { display: none !important; }
#flightPlanPdfPreview .pdf-first-page-render > :not(canvas):not(img) { display: none !important; }
#flightPlanPdfPreview *::before, #flightPlanPdfPreview *::after { content: none !important; display: none !important; }

/* ---- 3.1.30: HOME compressed ------------------------------------------------------------------
   Before a flight is loaded (body.shell-noflight, set by day-flow.js): the flight card takes the plan
   import and + SECTOR; the empty Flight Overview and active-sector card are not shown. Always: a
   shorter calendar, slimmer status tiles and a smaller Duty card. */
body.shell-noflight #flightOverview,
body.shell-noflight #today .v6-left > .active-sector:not(#flightOverview),
body.shell-noflight #today .avplan-import-card,
body.shell-noflight #heroFdp,
body.shell-noflight #heroSub,
body.shell-noflight #today .v6hero #heroOpRef { display: none !important; }
body.shell-noflight #today .planning-support-grid { grid-template-columns: minmax(0, 1fr) !important; }
body.shell-noflight #heroRoute { font-size: 15px !important; letter-spacing: .06em !important; margin: 2px 0 0 !important; opacity: .7; }
body.shell-noflight #heroGreeting { font-size: 16px !important; margin: 2px 0 !important; }
.hero.v6hero.plan-drop { outline: 3px dashed #b79143; outline-offset: -6px; }
.shell-hero-import { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.shell-hero-import .import-panel-actions { display: flex; gap: 8px; margin: 0 !important; }
.shell-hero-import .import-panel-actions .btn { min-height: 42px; }
.shell-hero-import #avplanImportStatus { flex: 1 1 220px; margin: 0 !important; font-size: 11px; line-height: 1.35; color: inherit; opacity: .75; background: none !important; border: 0 !important; padding: 0 !important; }
.shell-hero-import .plan-paste-box { flex: 1 1 100%; }
.shell-hero-import + .hero-actions { margin-top: 8px !important; }

/* calendar: shorter days */
#today .cms-cal-day { min-height: 50px !important; padding: 4px 5px !important; }
#today .cms-cal-num { margin-bottom: 2px !important; }
#today .cms-cal-chip { padding: 2px 4px !important; margin: 1px 0 !important; }
#today .cms-calendar-head { padding: 5px 8px !important; margin-bottom: 6px !important; }
#today .cms-calendar-weekdays div { padding: 2px 0 !important; }
#today .cms-cal-legend { margin-top: 6px !important; }
@media (max-width: 900px) { #today .cms-cal-day { min-height: 40px !important; padding: 3px !important; } }

/* status tiles */
#today .v6-status .compliance-tile { padding: 7px 10px !important; }
#today .v6-status .compliance-tile .value { font-size: 14px !important; margin-top: 2px !important; }

/* Duty card */
#today .cockpit-duty .cockpit-time { font-size: 20px !important; min-height: 42px !important; height: 42px !important; padding: 4px 8px !important; }
#today .cockpit-duty .fdp-simple-strip > div { padding: 6px 8px !important; min-height: 0 !important; }
#today .cockpit-duty .fdp-simple-strip b { font-size: 16px !important; }
#today .cockpit-duty > div[style] { margin-bottom: 8px !important; }

/* Flight details: two fields a row */
#today .operation-details .flight-details-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px 10px !important; }
#today .operation-details .flight-details-grid > div { grid-column: auto !important; min-width: 0; }
#today .operation-details .flight-details-grid > .hidden { display: none !important; }
#today .operation-details select, #today .operation-details input { min-height: 38px !important; height: 38px !important; padding-top: 4px !important; padding-bottom: 4px !important; font-size: 14px !important; }
#today .operation-details .flight-details-grid label { margin-bottom: 2px !important; min-height: 0 !important; }
#today .operation-details .flight-details-grid select { width: 100% !important; }
#crewSourceNote { font-size: 9px !important; line-height: 1.3 !important; margin-top: 2px !important; }
#today .cockpit-duty select { min-height: 38px !important; height: 38px !important; }
#today .cockpit-duty .fdp-simple-strip small { font-size: 9px !important; }
#today .cockpit-duty .fdp-simple-strip { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
.nav-plan-table tr.nav-alt-row td{color:var(--muted);font-style:italic;border-top:2px dashed var(--line)}.nav-plan-table tr.nav-alt-row td:first-child{font-style:normal;font-weight:900}
/* 3.1.44: SIGWX charts on BRIEFING → Products */
.sigwx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.sigwx-item{margin:0;border:1px solid var(--line);border-radius:10px;padding:8px;background:var(--panel)}
.sigwx-item img{width:100%;height:auto;display:block;border-radius:6px;cursor:zoom-in;background:#fff}
.sigwx-item figcaption{font-size:11px;font-weight:700;margin-top:6px}
/* 3.1.46: NEW DUTY */
.shell-nd-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99980;display:flex;align-items:center;justify-content:center;padding:16px}
.shell-nd{width:min(460px,100%);background:var(--panel,#fff);color:var(--text,#15191c);border-radius:14px;padding:18px;box-shadow:0 18px 60px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:10px}
.shell-nd h3{margin:0 0 4px;font-size:18px}
.shell-nd label{display:flex;flex-direction:column;gap:4px;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.shell-nd select,.shell-nd input{min-height:42px;font-size:15px;text-transform:none;letter-spacing:0}
.shell-nd-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shell-nd-keep{color:#7d6222;font-weight:700}
.shell-nd-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
body.shell-nonflying #today .v6-left > .active-sector:not(#flightOverview), body.shell-nonflying #flightOverview, body.shell-nonflying #today .planning-support-heading, body.shell-nonflying #shellHeroImport{display:none!important}
/* 3.1.47: SPFIB full text and SIGMETs */
.spfib-sigmet{border-left:4px solid #a53d35;background:#fbefed;white-space:pre-wrap;margin:6px 0}
body.night-mode .spfib-sigmet{background:#3a1f1c}
.spfib-bulletin{border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin:6px 0;background:var(--panel)}
.spfib-bulletin pre{white-space:pre-wrap;max-height:70vh;overflow:auto;margin-top:8px}
/* 3.1.59: charts tab */
.chart-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.chart-group{margin-bottom:14px}
.sigwx-item[data-chart]{cursor:zoom-in}

/* 3.1.69 — RESET FLIGHT on the top bar; the host's "Powered by Netlify" badge is not shown */
.shell-reset-btn { flex: 0 0 auto; padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(214, 90, 74, .55); background: rgba(214, 90, 74, .12); color: #f0b4aa; font: inherit; font-size: 12px; font-weight: 900; letter-spacing: .06em; cursor: pointer; white-space: nowrap; }
.shell-reset-btn:hover { background: rgba(214, 90, 74, .22); }
.shell-rf-check { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 10px; font-weight: 800; margin: 12px 0 4px; text-align: left !important; cursor: pointer; }
.shell-rf-check input { width: 20px !important; height: 20px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; flex: 0 0 20px !important; appearance: auto !important; -webkit-appearance: checkbox !important; accent-color: #b8483a; }
@media (max-width: 700px) { .shell-reset-btn { padding: 6px 8px; font-size: 11px; } }
#nl-badge-frame, iframe[id^="nl-badge"] { display: none !important; }
.shell-rf-go { background: #b8483a !important; border-color: #b8483a !important; color: #fff !important; }

/* 3.1.71 — nearest METAR (raw) in the NEXT tile, between the step and its button */
.shell-next-metar { flex: 1 1 280px; min-width: 0; display: grid; gap: 3px; padding: 6px 12px; border-left: 2px solid var(--line, #ddd); cursor: pointer; }
.shell-next-metar small { font-size: 10px; font-weight: 900; letter-spacing: .1em; color: var(--muted, #888); }
.shell-next-metar code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; line-height: 1.35; white-space: normal; word-break: break-word; color: inherit; background: none; padding: 0; }
@media (max-width: 700px) { .shell-next-metar { order: 2; flex-basis: 100%; border-left: 0; border-top: 1px solid var(--line, #ddd); padding: 8px 0 0; } .df-next-actions { order: 3; } }

/* 3.1.76 — SPFIB laid out like the printed bulletin (NAIPS layout, as AvPlan prints it) */
.spfib-doc{margin-top:10px;display:grid;grid-template-columns:1fr;gap:4px 34px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.45;color:var(--ink,#1d1b16)}
.spfib-head{padding:2px 0 6px;font-weight:700}
.spfib-sec{min-width:0}
.spfib-sec h4{margin:12px 0 6px;text-align:center;font:inherit;font-weight:800;letter-spacing:.06em;text-decoration:underline;text-underline-offset:4px}
.spfib-grp{margin:0 0 8px;break-inside:avoid}
.spfib-loc{font-weight:800;margin:6px 0 2px}
.spfib-grp .spfib-l,.spfib-grp .spfib-notam{padding-left:2.2ch}
.spfib-l{white-space:pre-wrap;word-break:break-word}
.spfib-gap{margin-top:7px}
.spfib-notam{border-top:1px dashed var(--line,#ddd);padding:3px 0 5px;break-inside:avoid}
.spfib-notam .spfib-l{padding-left:0}
.spfib-nfirst{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.spfib-nfirst .spfib-l{padding-left:0;min-width:0}
.spfib-nid{display:flex;justify-content:flex-end;gap:10px;font-weight:800;flex:0 0 auto;white-space:nowrap}
.spfib-wind-wrap{overflow-x:auto;max-width:100%}
.spfib-nid span{font-weight:600;color:var(--muted,#777)}
.spfib-grp-note{margin-top:10px;border-top:1px solid var(--line,#ddd);padding-top:6px}
.spfib-grp-note .spfib-l{padding-left:0}
.spfib-list{display:flex;flex-wrap:wrap;gap:3px 18px;padding:4px 0 0 2.2ch}
.spfib-wind{border-collapse:collapse;font:inherit;width:auto;margin:2px 0 8px}
.spfib-wind th{font-weight:700;color:var(--muted,#777);text-align:right;padding:2px 7px;border-bottom:1px solid var(--line,#ddd);white-space:nowrap}
.spfib-wind td{text-align:right;padding:1px 7px;white-space:nowrap}
.spfib-wind th:nth-child(-n+2),.spfib-wind td:nth-child(-n+2){text-align:left}
.spfib-wind tr.spfib-wind-leg td{border-top:1px solid var(--line,#ddd);font-weight:700}
.spfib-sec-charts .spfib-l{padding-left:0}
@media (min-width:1100px){
  .spfib-doc{grid-template-columns:1fr 1fr}
  .spfib-head,.spfib-sec-flight,.spfib-sec-notam{grid-column:1 / -1}
  .spfib-sec-notam > div{display:block}
  .spfib-sec-notam{column-count:2;column-gap:34px}
  .spfib-sec-notam h4{column-span:all}
  .spfib-sec-notam .spfib-grp{break-inside:auto}
  .spfib-sec-notam .spfib-loc{break-after:avoid}
  .spfib-sec-wind{grid-row:span 3}
}

/* 3.1.77 — acknowledge the SPFIB */
.spfib-ack{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 12px;margin:4px 0 8px;border-radius:10px;border:1px solid #d9a53b;background:rgba(217,165,59,.12);font-weight:700}
.spfib-ack .btn{min-height:44px}
.spfib-ack.done{border-color:#2f8a57;background:rgba(47,138,87,.10);color:#2f6b47;justify-content:flex-start}

/* 3.1.80 — fuel receipt photos */
.rc-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.rc-take{cursor:pointer;white-space:nowrap}
.rc-thumbs{display:flex;gap:6px;flex-wrap:wrap}
.rc-thumb{position:relative;display:inline-block}
.rc-thumb img{width:44px;height:44px;object-fit:cover;border-radius:6px;border:1px solid var(--line,#ddd);cursor:zoom-in;display:block}
.rc-thumb button{position:absolute;top:-7px;right:-7px;width:20px;height:20px;border-radius:50%;border:0;background:#a53d35;color:#fff;font-weight:900;line-height:20px;padding:0;cursor:pointer}

/* 3.1.82 — the step row is gone (the tabs carry it); the NEXT tile stays. Tab marks: ✓ done, ● next, ! problem. */
#dayFlow .df-steps{display:none !important}
#dayFlow .df-next{border-top:0 !important}
#nav button .nav-state.next{color:#fff !important;background:#b7923f !important;border-color:#b7923f !important;font-size:8px}
#nav button .nav-state.bad{color:#fff !important;background:#b8483a !important;border-color:#b8483a !important}
#nav button.active .nav-state.next{color:#1d1b16 !important;background:#e3c47d !important}

/* 3.1.84 — a log figure filled from the flight plan (planned, not yet confirmed) */
#sectorList input.from-plan{background:rgba(217,165,59,.10) !important;border-color:#d9a53b !important;font-style:italic}
.from-plan-note{color:#9a6a12 !important;margin-top:3px}

/* 3.1.89 — a tighter tab bar: shorter buttons and labels so every screen fits on an iPad.
   html-qualified so it outranks responsive.css (loaded after this file). */
html body.shell-on #nav { gap: 4px !important; padding-top: 4px !important; padding-bottom: calc(4px + env(safe-area-inset-bottom)) !important; }
html body.shell-on #nav > button { min-height: 46px !important; padding: 4px 1px !important; gap: 2px !important; }
html body.shell-on #nav > button .nav-label { font-size: 10px !important; letter-spacing: .01em !important; }
html body.shell-on #nav > button::before { width: 15px !important; height: 15px !important; flex-basis: 15px !important; }
html body.shell-on #nav > button.shell-home { margin-right: 4px !important; }
html body.shell-on #nav > button.shell-home::after { right: -5px; }
html body.shell-on #nav > button.shell-more-slim { padding: 4px 0 !important; }
html body.shell-on #nav > button.shell-more-slim::before { display: none !important; }
html body.shell-on #nav > button.shell-more-slim .nav-label { font-size: 20px !important; line-height: 1 !important; letter-spacing: 0 !important; }
html body.shell-on main { padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
html:has(body.shell-on) { scroll-padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
@media (max-width: 699px) {
  html body.shell-on #nav > button { min-height: 48px !important; }
  html body.shell-on #nav > button .nav-label { font-size: 9.5px !important; }
}
