/* A mobile shell for the existing PILOT app. Desktop and other portals keep their layout. */
#pm-navigation,#pm-header-more,#pm-selected-task,#pm-execution-dock,#pm-airspace-expand,#pm-network-status { display:none; }
#pm-more:not([open]) { display:none; }

@media (max-width:999px), (pointer:coarse) and (min-width:1000px) {
  html.pm-enabled[data-os-portal=pilot] { --pm-bottom:calc(66px + env(safe-area-inset-bottom,0px)); }
  html.pm-enabled #pilot-app[hidden],html.pm-enabled [hidden] { display:none!important; }
  html.pm-enabled,html.pm-enabled body { width:100%;height:100%;overflow:hidden;overscroll-behavior:none; }
  html.pm-enabled #pilot-app {
    display:flex!important;flex-direction:column;height:var(--pm-viewport-height,100dvh)!important;
    min-height:0!important;padding-bottom:var(--pm-bottom);overflow:hidden!important;
    background:var(--os-canvas,var(--bg));color:var(--os-ink,var(--text));
  }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-header {
    display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;
    flex:0 0 auto!important;height:calc(60px + env(safe-area-inset-top,0px))!important;
    min-height:60px!important;padding:calc(6px + env(safe-area-inset-top,0px)) 16px 6px!important;
    gap:12px!important;z-index:1100;box-shadow:none;grid-template-rows:none!important;
  }
  html.pm-enabled #pilot-brand { min-width:0;gap:12px!important; }
  html.pm-enabled #pilot-brand .os-brand-mark,html.pm-enabled #pilot-header-logo { width:68px!important;height:38px!important;object-fit:contain; }
  html.pm-enabled #pilot-header-title { display:block!important;font-size:15px!important;font-weight:700!important; }
  html.pm-enabled #pm-header-more {
    display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--os-line,var(--line));
    border-radius:14px;background:var(--os-soft,var(--surface-2));color:var(--os-ink,var(--text));
  }
  html.pm-enabled #pm-header-more span { display:none; }
  html.pm-enabled #pm-header-more svg { width:23px;height:23px; }
  html.pm-enabled #pilot-header>.os-account-host,html.pm-enabled #pilot-header>#pilot-header-actions { display:none!important; }
  html.pm-enabled #pm-network-status { display:block;flex:none;margin:0;padding:9px 16px;background:var(--os-soft,var(--surface-2));color:var(--os-ink,var(--text));font-size:12px;line-height:1.6;border-bottom:1px solid var(--os-line,var(--line)); }

  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-workspace {
    display:flex!important;flex-direction:column;flex:1 1 0%!important;min-height:0!important;
    height:auto!important;grid-template-columns:none!important;grid-template-rows:none!important;overflow:hidden!important;position:relative;
  }
  html.pm-enabled #pilot-workspace>.os-pilot-splitter { display:none!important; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-map-column,
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-panel {
    flex:1 1 0%;min-width:0;min-height:0;width:100%!important;max-height:none!important;
    grid-column:auto!important;grid-row:auto!important;overflow:hidden;
  }
  html.pm-enabled[data-pm-screen=map] #pilot-panel,
  html.pm-enabled:not([data-pm-screen=tasks]) #pilot-workload-summary { display:none!important; }
  /* Leaflet must retain a measurable viewport while the task form is open. */
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-map-column { display:flex!important;position:absolute;inset:0;visibility:hidden;pointer-events:none; }
  html.pm-enabled[data-pm-screen=map] #pilot-map-column { visibility:visible!important;pointer-events:auto!important; }
  html.pm-enabled[data-pm-screen=workforce] #pilot-workspace { display:none!important; }
  html.pm-enabled[data-pm-screen=workforce] #pilot-workforce-workspace { min-height:0!important; }
  html.pm-enabled #pilot-list-view,html.pm-enabled #pilot-ticket-view { height:100%;min-height:0;overflow:hidden; }
  html.pm-enabled #pilot-workload-summary { padding:12px 16px 4px!important;border:0!important;background:var(--os-canvas,var(--bg)); }
  html.pm-enabled #pilot-workload-summary dl {
    display:grid;grid-template-columns:repeat(4,minmax(142px,1fr));gap:10px;overflow-x:auto;
    padding:0 0 8px;scroll-snap-type:x proximity;scrollbar-width:thin;overscroll-behavior-x:contain;
  }
  html.pm-enabled #pilot-workload-summary dl>div {
    scroll-snap-align:start;padding:12px 14px;border:1px solid var(--os-line,var(--line));
    border-radius:14px;background:var(--os-paper,var(--surface));min-width:0;
  }
  html.pm-enabled #pilot-workload-summary dt { font-size:12px;line-height:1.5; }
  html.pm-enabled #pilot-workload-summary dd { margin:5px 0;font-size:21px;line-height:1.3;white-space:nowrap; }
  html.pm-enabled #pilot-workload-summary small { font-size:11px;line-height:1.45; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] .os-pilot-list-heading { padding:14px 16px 8px; }
  html.pm-enabled .os-pilot-list-heading h1 { font-size:22px!important;color:var(--os-ink)!important; }
  html.pm-enabled .os-pilot-list-heading p { font-size:12px!important; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-list-toolbar { display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px;padding:8px 16px 12px!important; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-search-label { width:100%;min-height:48px;height:48px;flex:auto;border-radius:13px; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-search-input { min-height:46px;font-size:16px; }
  html.pm-enabled #pilot-sort-actions { gap:8px!important; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-sort-actions button { min-width:44px;min-height:44px;flex:1;border-radius:10px; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-ticket-list { padding:8px 16px 20px;gap:12px;scroll-padding-block:12px; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-ticket-list>.ticket-card {
    display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;min-height:132px;
    padding:14px 12px;margin:0;border-radius:16px;border-inline-end-width:1px;border-inline-start-width:4px;
  }
  html.pm-enabled .ticket-check { width:32px;min-height:44px;margin:0!important; }
  html.pm-enabled .ticket-check { position:relative; }
  html.pm-enabled .ticket-check::after { content:'';position:absolute;inset:-6px; }
  html.pm-enabled .ticket-check input { width:22px;height:22px; }
  html.pm-enabled .ticket-copy { grid-column:2!important;grid-row:1!important; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] .ticket-title { font-size:16px!important;line-height:1.5;white-space:normal;overflow-wrap:anywhere; }
  html.pm-enabled .ticket-number { display:inline-block;font-size:12px!important; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] .ticket-meta { font-size:13px!important;white-space:normal;line-height:1.5; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] .ticket-downloads { grid-column:2!important;grid-row:2!important;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:8px; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] .ticket-downloads :is(a,button) { width:auto;min-width:48px;min-height:44px;padding:8px 12px;font:inherit;font-size:12px;border-radius:10px; }
  html.pm-enabled #pilot-empty-state { font-size:15px;line-height:1.7; }

  html.pm-enabled #pilot-ticket-view { display:flex;flex-direction:column; }
  html.pm-enabled.os-studio #pilot-ticket-header { flex:none;min-height:108px;padding:16px!important;align-items:flex-start;gap:12px; }
  html.pm-enabled #pilot-ticket-heading { grid-template-columns:auto minmax(0,1fr);gap:8px!important; }
  html.pm-enabled #pilot-ticket-identity { font-size:18px!important;line-height:1.5!important;font-weight:700!important; }
  html.pm-enabled #pilot-ticket-date-label,html.pm-enabled #pilot-ticket-date { font-size:12px!important;line-height:1.5; }
  html.pm-enabled.os-studio #pilot-ticket-back { order:2;flex:none;width:44px;height:44px;margin:0;border-radius:12px; }
  html.pm-enabled.os-studio #pilot-ticket-tabs { flex:none; }
  html.pm-enabled.os-studio #pilot-ticket-tabs button { min-height:50px;height:auto;font-size:13px;padding:12px 6px; }
  html.pm-enabled #pilot-tab-panels { flex:1 1 0%;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-block:16px; }
  html.pm-enabled.os-studio #pilot-execution-panel { display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px;padding:20px 16px 24px!important; }
  html.pm-enabled.os-studio #pilot-execution-panel>* { grid-column:1!important;grid-row:auto!important;margin-top:0!important;min-width:0; }
  html.pm-enabled.os-studio #pilot-execution-panel label { font-size:14px;line-height:1.6;margin-top:10px!important; }
  html.pm-enabled.os-studio #pilot-execution-panel :is(select,textarea) { min-height:52px;padding:12px;font-size:16px;border-radius:12px; }
  html.pm-enabled.os-studio #pilot-notes-input { min-height:128px;height:128px; }
  html.pm-enabled #pilot-execution-panel .os-pilot-materials { display:none!important; }
  html.pm-enabled #pm-execution-dock { display:grid;flex:none;gap:6px;padding:12px 16px;background:var(--os-paper,var(--surface));border-top:1px solid var(--os-line,var(--line)); }
  html.pm-enabled #pm-execution-dock #pilot-save-execution { width:100%;min-height:50px;height:auto;margin:0;padding:13px;font-size:15px;border-radius:13px; }
  html.pm-enabled #pm-execution-dock #pilot-execution-status { min-height:0;text-align:start;font-size:12px;line-height:1.5; }
  html.pm-enabled #pm-execution-dock #pilot-execution-status:empty { display:none; }
  html.pm-enabled #pilot-technical-panel,html.pm-enabled #pilot-navigation-panel { padding:20px 16px; }
  html.pm-enabled .technical-grid { gap:10px; }
  html.pm-enabled .technical-grid>div { padding:14px;border-radius:12px; }
  html.pm-enabled .technical-grid dt { font-size:12px;line-height:1.5; }
  html.pm-enabled .technical-grid dd { font-size:15px!important;line-height:1.5;overflow-wrap:anywhere; }
  html.pm-enabled .notes-box { padding:16px;border-radius:12px; }
  html.pm-enabled .notes-box h2 { font-size:14px; }
  html.pm-enabled .notes-box p { font-size:14px;line-height:1.75; }
  html.pm-enabled #pilot-navigation-actions { grid-template-columns:minmax(0,1fr);gap:12px; }
  html.pm-enabled #pilot-navigation-actions a { min-height:54px;padding:14px;font-size:15px;border-radius:13px; }
  html.pm-enabled .od-multi-ticket { padding:14px!important;margin:0 0 16px!important; }
  html.pm-enabled .od-multi-ticket h3 { font-size:16px!important; }
  html.pm-enabled .od-multi-ticket article { gap:12px!important;padding:14px 0!important; }
  html.pm-enabled .od-multi-ticket article>div { min-width:0!important;flex-basis:100%!important;line-height:1.6; }
  html.pm-enabled .od-multi-ticket article a,html.pm-enabled .od-multi-ticket article label { min-height:44px;display:flex;align-items:center;font-size:14px; }

  html.pm-enabled #pm-navigation {
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset-inline:0;
    bottom:0;height:var(--pm-bottom);padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));
    background:var(--os-paper,var(--surface));border-top:1px solid var(--os-line,var(--line));z-index:1200;
  }
  html.pm-enabled #pm-navigation button { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;min-width:0;padding:5px 4px;border:0;border-radius:12px;background:transparent;color:var(--os-muted,var(--muted));font:inherit;font-size:11px;line-height:1.2; }
  html.pm-enabled #pm-navigation svg { width:22px;height:22px; }
  html.pm-enabled #pm-navigation [aria-current=page] { color:var(--os-purple,var(--purple));background:var(--os-purple-soft,var(--surface-2));font-weight:700; }
  html.pm-enabled #pm-nav-upload { color:var(--os-purple,var(--purple)); }
  html.pm-enabled.pm-keyboard { --pm-bottom:0px; }
  html.pm-enabled.pm-keyboard #pm-navigation { display:none!important; }

  html.pm-enabled #pm-more { inset:auto 0 0;width:100%;max-width:560px;max-height:calc(var(--pm-viewport-height,100dvh) - 40px);margin:auto auto 0;padding:0;border:1px solid var(--os-line,var(--line));border-bottom:0;border-radius:24px 24px 0 0;background:var(--os-paper,var(--surface));color:var(--os-ink,var(--text));box-shadow:0 -16px 60px #0004;overflow:hidden; }
  html.pm-enabled #pm-more[open] { display:flex;flex-direction:column; }
  html.pm-enabled #pm-more::backdrop { background:#080d18a3; }
  html.pm-enabled #pm-more>header { display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:16px 20px;border-bottom:1px solid var(--os-line,var(--line)); }
  html.pm-enabled #pm-more h2 { margin:0;font-size:20px;line-height:1.5; }
  html.pm-enabled #pm-more-close { display:flex;align-items:center;gap:5px;min-width:44px;min-height:44px;padding:8px;border:0;border-radius:12px;background:var(--os-soft,var(--surface-2));color:inherit;font:inherit;font-size:12px; }
  html.pm-enabled #pm-more-close svg { width:20px;height:20px; }
  html.pm-enabled .pm-more-body { min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px)); }
  html.pm-enabled .pm-more-body>section:empty { display:none; }
  html.pm-enabled #pm-more #pilot-header-actions { display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important;width:100%;padding:14px 0!important;overflow:visible; }
  html.pm-enabled #pm-more #pilot-header-actions>:is(button,label) { display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-width:0!important;width:100%!important;max-width:none!important;height:auto;min-height:56px;padding:12px!important;font:inherit;font-size:14px!important;white-space:normal!important;border:1px solid var(--os-line,var(--line));border-radius:14px;background:var(--os-soft,var(--surface-2));color:var(--os-ink,var(--text)); }
  html.pm-enabled #pm-more #pilot-header-actions small { display:block;font-size:13px!important;white-space:normal!important;line-height:1.5; }
  html.pm-enabled #pm-more #pilot-header-actions svg { width:22px;height:22px;flex:none; }
  html.pm-enabled #pm-more #pilot-workforce-back { display:none!important; }
  html.pm-enabled #pm-more #pilot-account-button { display:none!important; }
  html.pm-enabled #pm-more .os-account-host,html.pm-enabled #pm-more #oa-account-slot { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;position:static!important;width:100%;margin:0!important; }
  html.pm-enabled #pm-more #pilot-theme-button,html.pm-enabled #pm-more #oa-account-button,html.pm-enabled #pm-more .os-system-toggle { min-height:44px;font-size:14px; }
  html.pm-enabled #pm-more .os-system-menu { width:100%; }
  html.pm-enabled #pm-more .os-system-toggle { display:flex;align-items:center;gap:10px;padding:12px 4px;cursor:pointer; }
  html.pm-enabled #pm-more #oa-portals { position:static!important;display:grid!important;grid-template-columns:1fr;gap:8px;width:100%;max-width:none;min-width:0!important;padding:10px 0!important;box-shadow:none!important; }
  html.pm-enabled #pm-more .os-system-menu:not([open]) #oa-portals { display:none!important; }
  html.pm-enabled #pm-more #oa-portals :is(a,button) { min-height:48px;font-size:14px;justify-content:flex-start; }
  html.pm-enabled #pm-more #pilot-admin-context { margin:12px 0 0;padding:16px;border-radius:14px; }
  html.pm-enabled #pm-more #pilot-admin-context strong { font-size:14px; }
  html.pm-enabled #pm-more #pilot-admin-context>div { display:grid;grid-template-columns:1fr;gap:10px; }
  html.pm-enabled #pm-more #pilot-admin-context :is(select,button) { width:100%;min-height:48px;font-size:16px; }

  html.pm-enabled #pilot-map { min-height:0!important; }
  html.pm-enabled.os-studio #pilot-map-footer { flex:none;height:auto;min-height:44px;display:flex;flex-wrap:wrap;gap:6px 14px;padding:10px 16px;white-space:normal;font-size:12px; }
  html.pm-enabled #pilot-summary-flight-time,html.pm-enabled #pilot-summary-time,html.pm-enabled #pilot-summary-status { display:none!important; }
  html.pm-enabled #pilot-map-footer .od-airspace-footer-warning { position:static;order:-1;flex-basis:100%;padding:0 0 4px;text-align:start;border:0;background:transparent;color:var(--os-purple,var(--purple));font-size:12px;line-height:1.5; }
  html.pm-enabled #pm-selected-task { display:flex;align-items:center;justify-content:space-between;gap:12px;position:absolute;inset-inline:12px;bottom:84px;z-index:700;padding:14px;border:1px solid var(--os-line,var(--line));border-radius:18px;background:var(--os-paper,var(--surface));box-shadow:0 4px 20px #0003; }
  html.pm-enabled #pm-selected-task>div { display:grid;gap:6px;min-width:0; }
  html.pm-enabled #pm-selected-task strong { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.5; }
  html.pm-enabled #pm-selected-task>div>span { font-size:12px;color:var(--os-muted,var(--muted)); }
  html.pm-enabled #pm-selected-open { display:flex;align-items:center;justify-content:center;gap:4px;flex:none;min-height:44px;padding:8px 12px;border:0;border-radius:12px;background:var(--os-action,var(--purple));color:var(--os-action-text,#fff);font:inherit;font-size:12px; }
  html.pm-enabled #pm-selected-open svg { width:18px;height:18px; }
  html.pm-enabled #pilot-map .leaflet-control-zoom { display:none; }
  html.pm-enabled #pilot-map-column .orion-map-tools { gap:10px; }
  html.pm-enabled #pilot-map-column .orion-map-tools button,html.pm-enabled #pilot-airspace-toolbar .od-map-tool { width:46px!important;height:46px!important;min-height:46px;border-radius:13px!important; }
  html.pm-enabled #pilot-airspace-toolbar { top:12px;left:12px;gap:10px; }
  html.pm-enabled #pilot-map .leaflet-control-layers { margin:12px;border-radius:13px; }
  html.pm-enabled #pilot-map .leaflet-control-layers-toggle { width:44px;height:44px; }
  html.pm-enabled #pilot-map-column .od-airspace-banner { inset:12px 68px auto;max-height:100px;font-size:12px;border-radius:12px; }
  html.pm-enabled #pilot-map-column .od-airspace-point-box { inset:12px 68px auto 12px;max-height:45%;width:auto;border-radius:15px; }
  html.pm-enabled #pilot-map-column .od-airspace-point-header { min-height:52px;gap:6px;padding:5px 8px; }
  html.pm-enabled #pilot-map-column .od-airspace-point-header>small { display:none; }
  html.pm-enabled #pilot-map-column .od-airspace-point-header>strong { flex:1;min-width:0;font-size:12px; }
  html.pm-enabled #pm-airspace-expand { display:flex;align-items:center;gap:4px;min-height:40px;padding:6px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:12px; }
  html.pm-enabled #pm-airspace-expand svg { width:16px;height:16px; }
  html.pm-enabled #pilot-map-column .od-airspace-point-box:not(.pm-point-expanded) .od-airspace-point-rows { display:none; }
  html.pm-enabled #pilot-map-column .od-airspace-close { min-width:40px;min-height:40px;font-size:22px; }
  html.pm-enabled #pilot-map-column .od-airspace-point-rows { overflow:auto; }
  html.pm-enabled #pilot-map-column .od-airspace-point-row { padding:12px;font-size:13px; }
  html.pm-enabled #pilot-map-column .od-airspace-point-line { display:flex;flex-wrap:wrap;gap:8px; }
  html.pm-enabled #pilot-map-column .od-airspace-point-box a,html.pm-enabled #pilot-map-column .od-airspace-point-expand>summary { display:inline-flex;align-items:center;min-height:44px;font-size:13px; }
  html.pm-enabled #pilot-map-column .od-airspace-panel { inset:12px 12px auto;width:auto;max-height:calc(100% - 24px);border-radius:16px; }
  html.pm-enabled #pilot-map-column .od-airspace-panel button { min-height:44px; }
  html.pm-enabled .orion-gcp-legend { max-width:220px;white-space:normal;line-height:1.5;border-radius:10px; }
  html.pm-enabled .toast-host { inset-inline:16px;bottom:calc(var(--pm-bottom) + 12px); }
  html.pm-enabled .toast { max-width:none;font-size:14px;line-height:1.6; }
  html.pm-enabled.orion-map-expanded #pm-navigation { display:none!important; }
  html.pm-enabled :is(button,a,summary,select,input,textarea):focus-visible { outline:3px solid var(--os-turquoise,var(--turquoise))!important;outline-offset:3px; }
}
@media (max-width:359px) {
  html.pm-enabled #pm-selected-task { align-items:stretch;flex-direction:column; }
  html.pm-enabled .technical-grid { grid-template-columns:minmax(0,1fr); }
  html.pm-enabled #pilot-ticket-tabs button { font-size:12px!important; }
}
@media (max-width:999px) and (max-height:600px) {
  html.pm-enabled { --pm-bottom:calc(58px + env(safe-area-inset-bottom,0px)); }
  html.pm-enabled #pilot-workload-summary { display:none!important; }
  html.pm-enabled.os-studio.os-enhanced[data-os-portal=pilot] #pilot-header { min-height:52px!important;height:calc(52px + env(safe-area-inset-top,0px))!important;padding:calc(4px + env(safe-area-inset-top,0px)) 12px 4px!important; }
  html.pm-enabled.os-studio #pilot-ticket-header { min-height:80px;padding:10px 12px!important; }
  html.pm-enabled #pilot-ticket-identity { font-size:16px!important; }
  html.pm-enabled.os-studio #pilot-ticket-tabs button { min-height:44px;padding:8px 4px; }
  html.pm-enabled #pm-navigation button { min-height:44px;gap:3px; }
  html.pm-enabled #pm-execution-dock { padding:8px 12px; }
  html.pm-enabled #pm-execution-dock #pilot-save-execution { min-height:44px;padding:10px; }
}
@media (prefers-reduced-motion:reduce) {
  html.pm-enabled * { scroll-behavior:auto!important;animation:none!important;transition:none!important; }
}

/* RC Pro 2 landscape: map and task details remain visible together. The rail
   switches to a full map when the operator needs maximum map area. */
html.pm-enabled.pm-controller-landscape[data-os-portal=pilot] {
  --pm-bottom:0px;
  --pm-rail:74px;
}
html.pm-enabled.pm-controller-landscape #pilot-app {
  padding:0 var(--pm-rail) 0 0!important;
}
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-header {
  height:54px!important;min-height:54px!important;padding:5px 14px!important;
}
html.pm-enabled.pm-controller-landscape #pilot-header-title { font-size:16px!important; }
html.pm-enabled.pm-controller-landscape #pm-header-more { display:none!important; }
html.pm-enabled.pm-controller-landscape #pm-navigation {
  inset:0 0 0 auto;width:var(--pm-rail);height:100dvh;
  padding:8px 5px calc(8px + env(safe-area-inset-bottom,0px));
  grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(66px,1fr));
  border:0;border-left:1px solid var(--os-line,var(--line));
  box-shadow:-6px 0 24px #0002;
}
html.pm-enabled.pm-controller-landscape #pm-navigation button {
  min-height:62px;gap:6px;padding:8px 2px;font-size:12px;
}
html.pm-enabled.pm-controller-landscape #pm-navigation svg { width:25px;height:25px; }
html.pm-enabled.pm-controller-landscape #pilot-workload-summary {
  display:block!important;flex:none;padding:6px 12px!important;
}
html.pm-enabled.pm-controller-landscape #pilot-workload-summary dl {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;
  padding:0;overflow:visible;
}
html.pm-enabled.pm-controller-landscape #pilot-workload-summary dl>div {
  padding:6px 10px;border-radius:10px;min-height:49px;
}
html.pm-enabled.pm-controller-landscape #pilot-workload-summary dt,
html.pm-enabled.pm-controller-landscape #pilot-workload-summary small {
  font-size:10px;line-height:1.25;
}
html.pm-enabled.pm-controller-landscape #pilot-workload-summary dd {
  margin:1px 0;font-size:16px;line-height:1.2;
}
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-workspace {
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(320px,41%)!important;
  grid-template-rows:minmax(0,1fr)!important;direction:ltr;gap:0;
}
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-map-column {
  grid-column:1;grid-row:1;position:relative;inset:auto;display:flex!important;
  width:100%!important;height:100%!important;min-height:0;
  visibility:visible!important;pointer-events:auto!important;direction:rtl;
}
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-panel {
  grid-column:2;grid-row:1;display:flex!important;flex-direction:column;
  width:100%!important;height:100%!important;min-width:0;
  border-left:1px solid var(--os-line,var(--line));direction:rtl;
  background:var(--os-canvas,var(--bg));
}
html.pm-enabled.pm-controller-landscape[data-pm-screen=map] #pilot-workload-summary { display:none!important; }
html.pm-enabled.pm-controller-landscape[data-pm-screen=map] #pilot-workspace { grid-template-columns:minmax(0,1fr)!important; }
html.pm-enabled.pm-controller-landscape[data-pm-screen=map] #pilot-map-column { grid-column:1/-1!important; }
html.pm-enabled.pm-controller-landscape[data-pm-screen=map] #pilot-panel { display:none!important; }
html.pm-enabled.pm-controller-landscape[data-pm-screen=workforce] #pilot-workload-summary { display:none!important; }
html.pm-enabled.pm-controller-landscape #pilot-list-view,
html.pm-enabled.pm-controller-landscape #pilot-ticket-view { flex:1 1 0%;min-height:0; }
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] .os-pilot-list-heading {
  padding:8px 12px 4px;
}
html.pm-enabled.pm-controller-landscape .os-pilot-list-heading h1 { font-size:17px!important; }
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-list-toolbar {
  padding:5px 10px 7px!important;gap:5px;
}
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-search-label,
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-search-input {
  min-height:42px;height:42px;
}
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-sort-actions button {
  min-height:42px;height:42px;
}
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-ticket-list {
  padding:5px 10px 14px;gap:8px;
}
html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-ticket-list>.ticket-card {
  min-height:96px;padding:10px;gap:7px;border-radius:12px;
}
html.pm-enabled.pm-controller-landscape .ticket-title { font-size:14px!important;line-height:1.35!important; }
html.pm-enabled.pm-controller-landscape .ticket-meta { font-size:12px!important; }
html.pm-enabled.pm-controller-landscape #pilot-ticket-header { min-height:73px!important;padding:8px 12px!important; }
html.pm-enabled.pm-controller-landscape #pilot-ticket-identity { font-size:15px!important;line-height:1.35!important; }
html.pm-enabled.pm-controller-landscape #pilot-ticket-date-label,
html.pm-enabled.pm-controller-landscape #pilot-ticket-date { font-size:11px!important; }
html.pm-enabled.pm-controller-landscape #pilot-ticket-tabs button { min-height:44px;padding:8px 2px;font-size:12px; }
html.pm-enabled.pm-controller-landscape #pilot-technical-panel,
html.pm-enabled.pm-controller-landscape #pilot-navigation-panel { padding:10px; }
html.pm-enabled.pm-controller-landscape .technical-grid { gap:7px; }
html.pm-enabled.pm-controller-landscape .technical-grid>div { padding:10px;border-radius:10px; }
html.pm-enabled.pm-controller-landscape .technical-grid dt { font-size:11px; }
html.pm-enabled.pm-controller-landscape .technical-grid dd { font-size:14px!important; }
html.pm-enabled.pm-controller-landscape #pilot-execution-panel { padding:10px!important;gap:6px; }
html.pm-enabled.pm-controller-landscape #pilot-execution-panel label { margin-top:4px!important;font-size:12px; }
html.pm-enabled.pm-controller-landscape #pilot-execution-panel :is(select,textarea) { min-height:44px;font-size:15px; }
html.pm-enabled.pm-controller-landscape #pilot-notes-input { min-height:68px;height:68px; }
html.pm-enabled.pm-controller-landscape #pm-execution-dock { padding:7px 10px; }
html.pm-enabled.pm-controller-landscape #pm-execution-dock #pilot-save-execution { min-height:44px;padding:9px; }
html.pm-enabled.pm-controller-landscape #pilot-map-footer { min-height:39px;padding:5px 10px;font-size:11px; }
html.pm-enabled.pm-controller-landscape #pilot-summary-time { display:inline!important; }
html.pm-enabled.pm-controller-landscape #pilot-summary-flight-time { display:inline!important; }
html.pm-enabled.pm-controller-landscape #pilot-summary-status { display:none!important; }
html.pm-enabled.pm-controller-landscape #pm-selected-task { bottom:12px;inset-inline:12px;max-width:410px; }
html.pm-enabled.pm-controller-landscape:not([data-pm-screen=map]) #pm-selected-task { display:none!important; }
html.pm-enabled.pm-controller-landscape #pm-more {
  margin:auto;width:min(600px,calc(100vw - var(--pm-rail) - 30px));
  max-height:calc(100dvh - 30px);border:1px solid var(--os-line,var(--line));
  border-radius:18px;
}
html.pm-enabled.pm-controller-landscape #pm-more .pm-more-body { padding:10px 14px; }
html.pm-enabled.pm-controller-landscape #pm-more #pilot-header-actions { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important; }
html.pm-enabled.pm-controller-landscape #pm-more #pilot-header-actions>:is(button,label) { min-height:48px;padding:8px!important; }
html.pm-enabled.pm-controller-landscape #pm-more #pilot-admin-context { padding:10px; }
html.pm-enabled.pm-controller-landscape #pilot-map-column .od-airspace-banner {
  max-height:75px;overflow:auto;line-height:1.35;
}
html.pm-enabled.pm-controller-landscape #pilot-map-column .od-airspace-point-box { max-height:52%; }
html.pm-enabled.pm-controller-landscape #pilot-map-column :is(.orion-map-tools button,.od-map-tool) {
  min-width:48px;min-height:48px;
}
html.pm-enabled.pm-controller-landscape #pm-network-status { padding:5px 12px;font-size:11px; }
html.pm-enabled.pm-controller-landscape .toast-host { right:calc(var(--pm-rail) + 10px);left:10px;bottom:10px; }

/* RC display scaling can expose fewer CSS pixels than its native resolution. */
@media (max-width:820px) and (orientation:landscape) {
  html.pm-enabled.pm-controller-landscape { --pm-rail:64px; }
  html.pm-enabled.pm-controller-landscape.os-studio.os-enhanced[data-os-portal=pilot] #pilot-workspace {
    grid-template-columns:minmax(0,1fr) minmax(292px,44%)!important;
  }
  html.pm-enabled.pm-controller-landscape #pilot-workload-summary { display:none!important; }
  html.pm-enabled.pm-controller-landscape #pilot-header-title { font-size:14px!important; }
}
