/* Kommandovisning (operation-command-bar.mjs): the open operation as one compact bar over the work
   area. Everything here sits under .command-view on the detail panel, which is only set when the flag
   is on (commandViewEnabled), so the old layout in organization-operation-detail.css is untouched with
   the flag off. Colours only from portal-shell.css; status colour on the chips is repeated in text. */

/* The bar: back, title and meta, key figures and weather, actions. Solid background (no glass). */
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:12px 16px;padding:12px 20px;backdrop-filter:none;background:var(--panel)}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.operation-detail-title{flex:1 1 260px;gap:2px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-bar .operation-detail-title-row h2{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-bar .operation-detail-title-row{flex-wrap:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-bar .operation-detail-title-row>h2{min-width:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-bar .operation-detail-title-row>.pill{flex:0 0 auto}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-bar button.command-back{margin:0;flex:0 0 40px}

/* Meta line: Type · Sted · Startet … · Pågått … */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta{flex-wrap:nowrap;gap:0;min-width:0;font-size:13px;white-space:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta>*{flex:none}
/* The meta line gives way before the chips: first "Pågått …" (also in the status badge's tooltip), then
   the start time; the place gives way last, so it stays whole as long as anything else can shrink. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta>.command-meta-elapsed{flex:0 100000 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta>.command-meta-started{flex:0 0.1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta>.operation-detail-address{flex:0 0.01 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;display:block}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta>*{font-size:13px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta .operation-detail-address{gap:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta .operation-detail-address::before{content:"·";flex:none;width:auto;height:auto;margin:0 6px;background:none;-webkit-mask:none;mask:none;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta>*+*:not(.operation-detail-address,.command-place-warning)::before{content:"·";margin:0 6px;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta>[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta-elapsed{font-variant-numeric:tabular-nums}

/* No place: a small warning mark by it (the text is its tooltip); #171717 on --warning as on Enheter. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta>.command-place-warning{flex:none;display:inline-grid;place-items:center;width:15px;height:15px;margin-left:6px;vertical-align:-2px;border-radius:50%;background:var(--warning);color:#171717;font-size:10px;font-weight:700;line-height:1;cursor:help}

/* Key figures as chips: the same list and texts as the old cards, only smaller. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-chips{display:flex;align-items:stretch;gap:8px;flex:0 1 auto;min-width:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-chips .operation-metrics.command-figures{display:flex;gap:8px;margin:0;padding:0;border:0;background:none;min-width:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi:nth-child(n){grid-column:auto;display:grid;grid-template-columns:auto minmax(0,auto) minmax(0,1fr);grid-template-areas:"icon label label" "icon value note";align-items:center;gap:0 8px;min-width:0;margin:0;padding:6px 12px 6px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi::before{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi.is-warning{border-color:var(--warning-border);background:var(--warning-soft)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi.is-critical{border-color:var(--error-border);background:var(--error-soft)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi .operational-kpi-icon{width:24px;height:24px;border-radius:6px;background:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi .operational-kpi-icon svg{width:16px;height:16px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi .operational-kpi-label{font-size:12px;line-height:1.3;white-space:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi dd.operational-kpi-value{margin:0;font-size:16px;line-height:1.3;white-space:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi.is-warning dd.operational-kpi-value,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi.is-warning .operational-kpi-icon{color:var(--warning-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi.is-critical dd.operational-kpi-value,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi.is-critical .operational-kpi-icon{color:var(--error-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi dd.operational-kpi-note{grid-area:note;grid-column:auto;margin:0;max-width:90px;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi.is-warning dd.operational-kpi-note,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi.is-critical dd.operational-kpi-note{color:var(--ink)}

/* Weather chip: tone, label and time on top, the API's status text under it. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-wrap{position:relative;display:flex;min-width:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-wrap[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-weather{display:flex;align-items:center;gap:8px;flex:none;min-width:max-content;max-width:none;min-height:40px;margin:0;padding:6px 10px;justify-content:flex-start;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--ink);font-family:Archivo,Arial,sans-serif;text-align:left;cursor:pointer}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-weather:hover{border-color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-weather:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-weather[data-tone="success"]{border-color:var(--success-border)}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-weather[data-tone="warning"]{border-color:var(--warning-border);background:var(--warning-soft)}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-weather[data-tone="error"]{border-color:var(--error-border);background:var(--error-soft)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-icon{display:grid;flex:0 0 20px;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather[data-tone="success"] .command-weather-icon{color:var(--success-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather[data-tone="warning"] .command-weather-icon{color:var(--warning-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather[data-tone="error"] .command-weather-icon{color:var(--error-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-text{display:grid;min-width:max-content}
/* Risk level and gust now are the reason for the chip: one line, never cut or wrapped (the bar gives
   way elsewhere first). */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-label{display:flex;align-items:baseline;gap:0;color:var(--muted);font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-level{font-size:11px;letter-spacing:.04em;text-transform:uppercase}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-gust{color:var(--ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-gust::before{content:"·";margin:0 6px;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-gust[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather[data-tone="success"] .command-weather-label{color:var(--success-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather[data-tone="warning"] .command-weather-label{color:var(--warning-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather[data-tone="error"] .command-weather-label{color:var(--error-ink)}
/* Second line: the time (or the panel's message while there is no data). It never widens the chip. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-status{width:0;min-width:100%;overflow:hidden;color:var(--muted);font-size:12px;font-weight:500;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-chevron{display:grid;flex:0 0 16px;margin-left:auto;color:var(--muted);transition:transform .15s ease}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-chevron svg{width:16px;height:16px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather[aria-expanded="true"] .command-weather-chevron{transform:rotate(180deg)}

/* Dropdowns under the chip and ⋯. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:30;box-sizing:border-box;max-height:calc(100dvh - 180px);overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 16px 40px rgb(0 0 0 / .45)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-popover[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-panel{width:min(760px,calc(100vw - 32px));padding:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-panel .flight-conditions{border-radius:0;background:var(--panel)}
/* The bar's button rules must not reach the panel's own refresh button. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-panel button.flight-conditions-refresh{justify-content:center;padding:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-panel button.flight-conditions-refresh svg{flex:none;width:20px;height:20px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu{display:grid;gap:4px;width:280px;padding:6px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu-group{display:grid;gap:6px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu-group[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu-danger:not(:empty){margin-top:2px;padding:8px 6px 4px;border-top:1px solid var(--line)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu button.command-menu-item{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;margin:0;padding:8px 10px;border:0;border-radius:8px;background:none;color:var(--ink);font-family:Sora,Arial,sans-serif;font-size:14px;font-weight:600;text-align:left}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu button.command-menu-item:hover{background:color-mix(in srgb,var(--ink) 8%,transparent)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu button.command-menu-item.danger-button{background:var(--error);color:#fff}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu button:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu .command-menu-status,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu .operation-help,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu-danger>p{margin:0;padding:0 10px;color:var(--muted);font-size:13px;line-height:1.4}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu .command-menu-status:empty,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu-danger>p:empty{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu .operation-danger-actions{display:grid;gap:6px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu .operation-danger-actions button{width:100%;min-height:40px;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu .operation-danger-actions button.danger-button:disabled{border:1px solid var(--line);background:none;color:var(--muted);cursor:not-allowed}

/* Actions: NOTAM, edit, ⋯. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-actions{position:relative;display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-more-wrap{position:relative}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-bar>p{flex:1 0 100%}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar{flex-wrap:wrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.command-back{order:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.operation-detail-title{order:1}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.command-chips{order:2}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.command-actions{order:3}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>p{order:4}
/* Only the battery chip has a note: the level ("21 % · Lavt"); the drone is in the chip's title. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi:not(:first-child) dd.operational-kpi-note{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi dd.operational-kpi-note::before{content:"· "}

/* Oppdragsinformasjon in its dialog: always open, no summary to fold it. */
#organization-overview-page.operations-view .command-info-dialog .command-info-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
#organization-overview-page.operations-view .command-info-dialog .command-info-head h2{margin:0;font-family:Sora,Arial,sans-serif;font-size:20px;font-weight:600}
#organization-overview-page.operations-view .command-info-dialog .command-info-head button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:8px;background:none;color:var(--muted)}
#organization-overview-page.operations-view .command-info-dialog .command-info-head .operation-map-tool-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#organization-overview-page.operations-view .command-info-dialog .command-info-head svg{width:18px;height:18px}
#organization-overview-page.operations-view .command-info-dialog details.command-info>summary{display:none}


/* Below 1440 px the figures and weather chip get their own row under the title, so the chip never has to give way. */
@media(max-width:1439.98px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.command-chips{order:3;flex:1 0 100%}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-chips .operation-metrics.command-figures{flex:0 1 auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.command-actions{order:2}
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>p{order:4}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-wrap{flex:0 0 auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view button.command-weather{flex:1 0 auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-panel{left:0;right:auto}
}
/* Low screens (≤820 px high) from 1280 px wide: the figures and the weather chip go compact, on one line
   each (icon, figure and unit; the label is read out and shown as the chip's title), on the title row
   instead of a row of their own; NOTAM-utkast becomes an icon (its name stays its aria-label). */
@media(min-width:1280px) and (max-height:820px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar{padding-top:8px;padding-bottom:8px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.command-chips{order:2;flex:0 1 auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.command-actions{order:3}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi:nth-child(n){grid-template-columns:auto auto auto;grid-template-areas:"icon value note";gap:0 6px;padding:4px 10px 4px 6px}
 /* The label is read out and is in the chip's title; the icon and the unit say what the figure is. */
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi .operational-kpi-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi dd.operational-kpi-value{font-size:14px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view button.command-weather{min-height:36px;padding:4px 10px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-status{display:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-actions a.operation-detail-notam{flex:0 0 auto;padding:0;width:40px;min-width:40px;font-size:0;gap:0;justify-content:center}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-actions a.operation-detail-notam::before{flex-basis:18px;width:18px;height:18px}
}
/* Phones: title row with back and the actions, then the three figures as a row of equal chips and
   the weather chip in full width. Nothing scrolls sideways; touch targets are 44 px. */
@media(max-width:767.98px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar{gap:10px;padding:12px 16px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.operation-detail-title{flex:1 0 100%;order:3}
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.command-back{order:0}
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar>.command-actions{order:2;width:auto;margin-left:auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-actions a.operation-detail-notam{flex:0 0 auto;padding:0;width:44px;min-width:44px;font-size:0;gap:0}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-actions a.operation-detail-notam::before{flex-basis:18px;width:18px;height:18px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-chips{flex-wrap:wrap;order:4}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-meta{flex-wrap:wrap;white-space:normal}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi:first-child dd.operational-kpi-note{display:block}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-bar .operation-detail-title-row h2{white-space:normal;overflow-wrap:anywhere}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-chips .operation-metrics.command-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1 0 100%}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi:nth-child(n){grid-template-columns:minmax(0,1fr);grid-template-areas:"label" "value" "note";padding:6px 8px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi .operational-kpi-icon{display:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi .operational-kpi-label{overflow:hidden;text-overflow:ellipsis}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi dd.operational-kpi-note{max-width:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-figures .operational-kpi dd.operational-kpi-note::before{content:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-wrap{flex:1 0 100%;position:static}
 #organization-overview-page.operations-view .operation-detail-panel.command-view button.command-weather{min-height:44px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-popover{left:16px;right:16px;width:auto;top:auto;margin-top:8px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar{position:relative;top:auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-more-wrap,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-actions{position:static}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu{top:auto;margin-top:8px;width:auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-menu button.command-menu-item{min-height:44px}
}
@media(prefers-reduced-motion:reduce){#organization-overview-page.operations-view .operation-detail-panel.command-view .command-weather-chevron{transition:none}}

/* ---- Work area (del 2): three columns under the bar that fill the rest of the window. ----
   The split view's stage (display:contents until fullscreen) is the grid: video and map are placed
   where they were mounted, the side columns come after them, and only CSS decides where they show.
   In fullscreen the split view's own rules apply again and the side columns are hidden. */
#organization-overview-page.operations-view .operation-detail-panel.command-view{display:flex;flex-direction:column;align-items:stretch;gap:0;height:calc(100dvh - var(--topbar-height,92px) - 24px);min-height:620px;padding:0;overflow:hidden}
#organization-overview-page.operations-view .operation-detail-panel.command-view>*{flex:none;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-bar{position:relative;top:auto;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.operation-detail-toast{position:absolute;right:16px;bottom:16px;z-index:40}
#organization-overview-page.operations-view .operation-detail-panel.command-view>.command-workspace{flex:1 1 auto;display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);min-height:0;padding:12px;border:0;background:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-workspace>.operation-split-shell:not(:fullscreen)>.operation-split-stage{--command-left:300px;--command-right:350px;display:grid;grid-template-columns:var(--command-left) minmax(0,1fr) var(--command-right);grid-template-rows:max-content minmax(0,1fr);align-items:stretch;gap:12px;min-height:0;min-width:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel{grid-column:3;grid-row:1}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.organization-map-workspace{grid-column:2;grid-row:1/-1}
/* The hide buttons lie on the top right corner of their panel (no extra row, so nothing is pushed down). */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>:is(.command-left-head,.command-right-head){z-index:3;align-self:start;justify-self:end;margin:6px 6px 0 0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-left-head{grid-column:1;grid-row:1}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-left{grid-column:1;grid-row:1/-1}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-right-head{grid-column:3;grid-row:1}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-right{grid-column:3;grid-row:2}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-strip-left{grid-column:1;grid-row:1/-1}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-strip-right{grid-column:3;grid-row:1/-1}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:fullscreen :is(.command-column,.command-column-head,.command-strip,.command-map-focus){display:none}
/* Without video access the right column starts at the top. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage:not(:has(>.live-video-panel))>.command-right{grid-row:1/-1;padding-top:44px}

/* Side columns: panels as cards; the left one scrolls on its own when it is too long. */
/* position:relative keeps visually hidden labels (absolute) inside the scrolling column, so they do
   not make the page taller. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-column{position:relative;display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0}
/* The left panel: its head stays put, only the body scrolls (with a stable gutter), so the scroll bar
   never lies along the head or covers the hide button. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-left{overflow:hidden;gap:8px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-left>.command-left-head{flex:none;align-items:center;justify-content:space-between;margin:0;padding:0 0 0 4px;background:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-left-body{display:flex;flex:1 1 auto;flex-direction:column;gap:12px;min-height:0;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-gutter:stable}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-column-label{color:var(--muted);font-family:Sora,Arial,sans-serif;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-left-body>section,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-left-body>.command-slot>section,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-photos-panel,#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-stage>.live-video-panel{box-sizing:border-box;margin:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-slot:empty{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-panel-title,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-heading h3,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .organization-photo-heading h3{margin:0;color:var(--muted);font-family:Sora,Arial,sans-serif;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-objects>.command-panel-title{margin:0 0 8px}

/* Drone cards. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-count{min-width:0;padding:1px 8px;font-size:12px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-card{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-title{display:flex;align-items:center;gap:6px;min-width:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-name{overflow:hidden;color:var(--ink);font-family:Sora,Arial,sans-serif;font-size:14px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-battery{flex:none;color:var(--ink);font-family:Sora,Arial,sans-serif;font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-battery[data-level="low"]{color:var(--warning-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-battery[data-level="critical"]{color:var(--error-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-status{display:flex;align-items:center;gap:6px;margin:-4px 0 0;color:var(--muted);font-size:12px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-status .operation-drone-status-dot{flex:none;width:8px;height:8px;border:1.5px solid var(--muted);border-radius:50%;background:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-status.is-online .operation-drone-status-dot{border-color:var(--success);background:var(--success)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-meter{display:block;height:6px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--ink) 12%,transparent)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-meter>span{display:block;height:100%;border-radius:inherit;background:var(--success)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-meter[data-level="low"]>span{background:var(--warning)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-meter[data-level="critical"]>span{background:var(--error)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-facts dt{color:var(--muted);font-size:11px;line-height:1.3}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-facts dd{margin:0;color:var(--ink);font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-drone-follow{width:100%;min-height:36px;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-drone-follow:disabled{border:1px solid var(--line);background:none;color:var(--muted);cursor:not-allowed}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-follow-hint{margin-top:-4px;color:var(--muted);font-size:12px;text-align:center}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-drone-follow-hint[hidden]{display:none}

/* Map objects: the existing list and tabs, made to fit the column. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-objects .organization-map-sidebar{max-height:none;overflow:visible;border:0;border-radius:0;background:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-objects .organization-map-library-context{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-objects .map-element-card{padding:6px 8px}
/* The name takes the room left by the checkbox and the edit button, and breaks between words: a long
   imported name (GPX, GeoJSON, KML) is not split in the middle of a word. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-objects .organization-map-element-copy{flex:1 1 0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-objects .organization-map-element-copy :is(strong,small){overflow-wrap:break-word}

/* Notes: shown, edited in the operation dialog. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-notes-text{margin:0;color:var(--ink);font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-notes-text.is-empty{color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-notes .command-panel-head button.operation-heading-icon{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:1px solid var(--line);border-radius:8px;background:none;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-notes .command-panel-head svg{width:16px;height:16px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-notes .operation-map-tool-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The map fills its column; the existing toolbar and status float on it. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .organization-map-workspace{position:relative;display:block;align-self:stretch;height:auto;min-height:0;min-width:0;margin:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .organization-map-workspace>h3,#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .organization-map-workspace>p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .organization-map-canvas{position:absolute;inset:0;--operation-map-height:100%;border-radius:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-surface{height:100%;min-height:0}
/* One row next to the rails: lagbrytere (Flyspor, Kameravisning, Laserpunkt) and the drone selector. */
/* The right rail starts under the toolbar, so the toolbar has the map's width right of the left rail. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .organization-map-canvas .operation-map-rail-right{margin-top:52px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar{position:absolute;top:10px;left:84px;right:12px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:0;pointer-events:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar :is(.operation-map-camera-tools,.operation-map-drone-tools,.operation-map-aircraft-tools,.operation-aircraft-controls,.operation-camera-control){display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar .operation-map-drone-tools{flex:1 1 150px;max-width:280px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar :is(.operation-map-aircraft-tools,.operation-aircraft-controls){flex:1 1 auto;width:auto;max-width:100%}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar .operation-map-track-tools:not(:has(button:not([hidden]))){display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar :is(.operation-map-camera-tools,.operation-map-track-tools)>button,#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar .operation-camera-control>button{min-height:36px;margin:0;padding:6px 12px;font-size:13px;white-space:nowrap}
/* The drone selector keeps its whole text ("Ingen fersk posisjon"; the full text is its title): it is never
   squeezed, and its right padding leaves room for the arrow (drawn 10 px from the edge, 16 px wide). */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar .operation-aircraft-controls select{flex:0 0 auto;width:auto;min-width:max-content;max-width:260px;min-height:36px;padding-right:32px;font-size:13px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar .operation-aircraft-controls button{flex:none;width:36px;height:36px;min-height:36px;margin:0;padding:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar>*{pointer-events:auto}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-overlay-details{position:absolute;left:10px;right:84px;bottom:10px;z-index:5;display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px;pointer-events:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-overlay-details>*{pointer-events:auto;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-overlay-details :is(p,div):empty{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-overlay-details :is(.operation-aircraft-status,.operation-track-details>p,.operation-camera-status):not(:empty){display:inline-flex;align-items:center;min-height:28px;margin:0;padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink);font-size:12px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-overlay-details .operation-track-details{display:flex;flex-wrap:wrap;gap:6px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-overlay-details .operation-track-details[hidden]{display:none}

/* Live video: 16:9 at the top of the right column. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel{display:flex;flex-direction:column;gap:8px;align-self:stretch;height:auto;max-height:100%;min-width:0;min-height:0;overflow:hidden}
/* Keep the full-width picture and controls at their natural size; the log below scrolls. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel>*{flex:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel[data-sources="available"]>.live-video-stage{flex:none;min-height:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-head .eyebrow{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-head h3{margin:0;color:var(--muted);font-family:Sora,Arial,sans-serif;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
/* 16:9 only when there is a source; without one the slim empty state from the old layout is kept. */
/* The picture stays full width and 16:9, including on short desktop viewports. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel[data-sources="available"] .live-video-stage{width:100%;box-sizing:border-box;max-width:100%;align-self:stretch;max-height:none;aspect-ratio:16/9;min-height:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-head{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-head-actions:empty{display:none}
/* Drone | Kamera | settings on one row; Kvalitet and Kameravisning open under it. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-source-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;align-items:end;gap:6px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-advanced{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;align-items:start;padding:8px;border:1px solid var(--line);border-radius:8px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-advanced[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-compact-settings{display:grid;grid-template-columns:minmax(0,1fr);justify-items:stretch;gap:6px;width:100%;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-head,#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-head *{text-align:left;justify-content:flex-start}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-source-row{width:100%}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-compact-settings label{display:grid;gap:2px;min-width:0;margin:0;color:var(--muted);font-size:12px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-compact-settings select{width:100%;min-width:0;min-height:34px;padding-top:4px;padding-bottom:4px;font-size:13px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-compact-settings p{margin:2px 0 0;font-size:12px;line-height:1.3}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel button.live-video-settings-toggle{display:grid;place-items:center;width:36px;min-width:36px;height:34px;min-height:34px;margin:0;padding:0;border:1px solid var(--line);border-radius:8px;background:none;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel button.live-video-settings-toggle[aria-expanded="true"]{border-color:var(--primary);color:var(--ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls:not(.live-video-compact-settings){display:flex;flex-wrap:wrap;gap:6px;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls:not(.live-video-compact-settings) button{flex:1 1 auto;min-height:36px;margin:0;padding:6px 10px;font-size:13px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls button[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-placeholder{font-size:13px}

/* På kartet: Velg alle and one Eksporter button with a menu of the formats, on one row. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-kml-export{flex-wrap:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-export-menu-wrap{position:relative;flex:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-kml-export button.operation-export-menu-button{display:inline-flex;align-items:center;gap:8px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-kml-export button.operation-export-menu-button::after{content:"";width:6px;height:6px;margin-top:-3px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-kml-export button.operation-export-menu-button[aria-expanded="true"]::after{margin-top:3px;transform:rotate(225deg)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-export-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:20;display:grid;min-width:180px;padding:4px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 8px 24px rgb(0 0 0 / .45)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-export-menu[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-export-menu>button.operation-export-menu-item{display:block;width:100%;min-height:36px;margin:0;padding:6px 10px;border:0;border-radius:6px;background:none;color:var(--ink);font-size:13px;font-weight:600;text-align:left}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-export-menu>button.operation-export-menu-item:hover,#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-export-menu>button.operation-export-menu-item:focus-visible{background:color-mix(in srgb,var(--ink) 8%,transparent);outline:none}

/* Log and photos scroll together below the full-width video. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right{overflow:auto;overscroll-behavior:contain;overflow-anchor:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-log-slot{display:flex;flex:none;min-height:0}
/* Keep log content intact; the right column provides scrolling to the input and photos. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal{display:flex;flex:1 1 auto;flex-direction:column;gap:6px;min-height:0;min-width:0;overflow:hidden}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>*{flex:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-heading button{min-height:28px;margin:0;padding:2px 10px;font-size:12px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-heading{order:0;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0}
/* The entire log remains reachable through the surrounding column scroll. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-list{order:1;flex:none;min-height:0;margin:0;padding:0;overflow:visible;overscroll-behavior:contain;border-bottom:1px solid var(--line)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>p[role="status"]:empty{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>p[role="status"]{margin:0;color:var(--muted);font-size:13px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>button{order:2}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form{order:3;display:flex;align-items:flex-end;gap:8px;margin:auto 0 0}
/* An empty log says so at the top of the list area, not just above the input. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-list:empty{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>p[role="status"]{order:1}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>label{flex:1 1 auto;min-width:0;margin:0;font-size:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form textarea{box-sizing:border-box;width:100%;min-height:40px;height:40px;padding-top:9px;padding-bottom:9px;resize:none;font-size:14px;line-height:1.4}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form button.operation-journal-send{display:grid;flex:none;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;margin:0;padding:0;border-radius:10px}

/* Log (del 4): quick buttons over the input, and per entry a dot, the sender, the kind and the time.
   The dot repeats the kind, which is always written: green Avgang, blue Landing, yellow Observasjon,
   a filled grey dot for notes and a hollow one for system events. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick{display:flex;flex:none;gap:4px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:36px;min-width:36px;height:40px;min-height:40px;margin:0;padding:0;border-radius:10px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick>button[aria-pressed="true"]{border-color:var(--warning-border);background:var(--warning-soft);color:var(--warning-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick .operation-journal-quick-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal .operation-journal-quick-icon{display:grid;place-items:center;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal .operation-journal-quick-icon[data-tone="success"]{color:var(--success-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal .operation-journal-quick-icon[data-tone="primary"]{color:var(--link)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal .operation-journal-quick-icon[data-tone="warning"]{color:var(--warning-ink)}
/* While Observasjon is on: "Observasjon:" over the field, which gets the warning border. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>label{display:grid;gap:2px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>label>.operation-journal-observing{color:var(--warning-ink);font-size:12px;font-weight:600;line-height:1.2}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>label>.operation-journal-observing[hidden]{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form[data-observing="true"] textarea{border-color:var(--warning-border)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal .operation-journal-dot{flex:none;width:8px;height:8px;border-radius:50%;box-sizing:border-box;background:var(--tertiary)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal .operation-journal-dot[data-tone="success"]{background:var(--success)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal .operation-journal-dot[data-tone="primary"]{background:var(--primary)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal .operation-journal-dot[data-tone="warning"]{background:var(--warning)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal .operation-journal-dot[data-tone="system"]{background:none;border:1.5px solid var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-list li{padding:6px 0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-list li .operation-journal-text{line-height:1.35}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-list li .operation-journal-by{margin:1px 0 0;padding-left:14px;color:var(--muted);font-size:12px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-meta{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;min-width:0;margin:0 0 2px;font-size:12px;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-meta>.operation-journal-author{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:600}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-meta>.operation-journal-kind{flex:none;color:var(--ink);font-weight:600}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-meta>.operation-journal-kind::before{content:"·";margin-right:6px;color:var(--muted);font-weight:400}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-meta>time{flex:none;margin-left:auto;font-variant-numeric:tabular-nums}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-list li[data-kind="system"] .operation-journal-text,#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-list li[data-kind="system"] .operation-journal-author{color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal-list li .operation-journal-text{padding-left:14px}

/* Video (del 4): one Start/Stopp sending button; the sending state as a badge in the head (AV / ● SENDER). */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-head-actions{display:flex;align-items:center;gap:6px;flex:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-send-badge{min-height:0;padding:2px 8px;border:1px solid var(--line);border-radius:999px;font-size:11px;letter-spacing:.04em;font-variant-numeric:tabular-nums}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-send-badge[data-state="off"]::before{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls:not(.live-video-compact-settings) button.live-video-send-toggle{flex:1 1 auto;white-space:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls>button.live-video-icon-button{display:grid;flex:0 0 40px;place-items:center;width:40px;min-width:40px;padding:0;border-radius:10px;background:none;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls>button.live-video-icon-button:hover:not(:disabled){color:var(--ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls>button.live-video-icon-button:disabled{opacity:.45}
/* While sending, the button stops: it is then not the panel's filled primary action. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls>button.live-video-send-toggle.secondary:not(:disabled){border-color:var(--line);background:var(--panel);color:var(--ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls>button.live-video-send-toggle.secondary:hover:not(:disabled){border-color:var(--primary);background:var(--primary-soft)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel button.live-video-pip-toggle{display:grid;place-items:center;width:32px;min-width:32px;height:32px;min-height:32px;margin:0;padding:0;border:1px solid transparent;border-radius:8px;background:none;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel button.live-video-pip-toggle:hover{border-color:var(--line);color:var(--ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel button.live-video-pip-toggle[aria-pressed="true"]{border-color:var(--primary);color:var(--ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel[data-sources="none"] button.live-video-pip-toggle{display:none}

/* Photos: a compact card with the upload zone and the organisation's storage line. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-photos-slot{display:flex;flex:none;min-height:0;max-height:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-photos-panel{display:grid;align-content:start;gap:8px;flex:1 1 auto;min-height:0;overflow:visible;overscroll-behavior:auto;overflow-anchor:none}
/* Bilder: count, "+ Last opp" and the organisation's storage on a compact row; the list and upload zone under it. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .organization-photo-heading{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .organization-photo-heading>button{margin:0 0 0 auto;min-height:32px;padding:4px 10px;font-size:13px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .organization-photo-heading>.operation-storage-status{flex:1 0 100%;order:5;display:flex;align-items:center;gap:6px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .organization-photo-heading .operation-storage-bar{flex:0 0 48px;height:4px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-photos-panel .operation-list-empty{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-photos-panel>div:empty{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-storage-status{margin:0;color:var(--muted);font-size:12px}

/* ---- Folding (del 3): data-left/data-right on the shell (the user's choice) and data-focus (Kartfokus).
   A folded side becomes a 52 px strip; its panel only gets display:none, so it stays mounted (video
   keeps playing, the log keeps its state). From 1024 px; below that the columns stack and do not fold. */
@media(min-width:1024px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-workspace>.operation-split-shell:not(:fullscreen):is([data-left="collapsed"],[data-focus="true"])>.operation-split-stage{--command-left:52px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-workspace>.operation-split-shell:not(:fullscreen):is([data-right="collapsed"],[data-focus="true"])>.operation-split-stage{--command-right:52px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen):is([data-left="collapsed"],[data-focus="true"])>.operation-split-stage>:is(.command-left-head,.command-left){display:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen):is([data-right="collapsed"],[data-focus="true"])>.operation-split-stage>:is(.command-right-head,.command-right,.live-video-panel,.operation-split-unavailable){display:none}
}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-strip:not([data-shown="true"]){display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-strip{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:0;padding:6px 0;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--panel2)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-column-head{display:flex;padding:0;border-radius:8px;background:var(--panel2)}
/* Room for the hide button in the first heading of each panel. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-head{padding-right:36px}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-panel-button{position:relative;display:grid;place-items:center;width:40px;min-width:40px;height:40px;min-height:40px;margin:0;padding:0;border:1px solid transparent;border-radius:8px;background:none;color:var(--muted)}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-panel-button:hover{border-color:var(--line);background:color-mix(in srgb,var(--ink) 8%,transparent);color:var(--ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-panel-button:focus-visible{outline:2px solid var(--primary);outline-offset:1px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-column-head button.command-panel-toggle{width:32px;min-width:32px;height:32px;min-height:32px}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-panel-button svg{width:18px;height:18px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-panel-button .operation-map-tool-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-strip-open{color:var(--ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-strip-battery{width:44px;font-family:Sora,Arial,sans-serif;font-size:12px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-strip-battery[data-level="low"]{border-color:var(--warning-border);background:var(--warning-soft);color:var(--warning-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view button.command-strip-battery[data-level="critical"]{border-color:var(--error-border);background:var(--error-soft);color:var(--error-ink)}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-strip-badge{position:absolute;top:2px;right:0;min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:var(--primary);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;font-variant-numeric:tabular-nums}
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-strip-badge[hidden]{display:none}
/* Kartfokus at the top of the map's right rail. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .command-map-focus[aria-pressed="true"]{border-color:var(--primary);background:var(--primary-soft);color:var(--ink)}

/* An open operation fills the page: the page header and the list are hidden until Tilbake. */
/* Tilbake puts the detail aside (hidden, still mounted); the author display above must not show it. */
#organization-overview-page.operations-view .operation-detail-panel.command-view[hidden]{display:none}
#organization-overview-page.operations-view.command-view-open>:is(.operational-hero,.operation-list-panel){display:none}

/* While an operation is put aside with Tilbake: a line over the list (which operation, video sending,
   Gå tilbake, Stopp video) and "Åpent nå" on its card. Colours from the portal palette. */
#organization-overview-page.operations-view>.command-parked-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 16px;padding:12px 16px;border:1px solid var(--primary);border-radius:12px;background:var(--primary-soft);color:var(--ink)}
#organization-overview-page.operations-view>.command-parked-line[hidden]{display:none}
#organization-overview-page.operations-view>.command-parked-line>.command-parked-text{margin:0;color:var(--ink);font-size:15px;line-height:1.4}
#organization-overview-page.operations-view>.command-parked-line>.command-parked-text strong{font-family:Sora,Arial,sans-serif;font-weight:600}
#organization-overview-page.operations-view>.command-parked-line>.command-parked-video[hidden]{display:none}
#organization-overview-page.operations-view>.command-parked-line>.command-parked-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
#organization-overview-page.operations-view>.command-parked-line>.command-parked-actions button{min-height:40px;margin:0}
#organization-overview-page.operations-view>.command-parked-line>.command-parked-actions button[hidden]{display:none}
#organization-overview-page.operations-view>.command-parked-line>.command-parked-status{flex:1 0 100%;margin:0;color:var(--muted);font-size:13px}
#organization-overview-page.operations-view>.command-parked-line>.command-parked-status:empty{display:none}
#organization-overview-page.operations-view .operation-card>.command-open-badge{justify-self:start;align-self:start;width:fit-content;margin-top:8px;font-size:12px}
#organization-overview-page.operations-view .operation-card>.command-open-badge[hidden]{display:none}
@media(max-width:767.98px){
 #organization-overview-page.operations-view>.command-parked-line>.command-parked-actions{width:100%;margin-left:0}
 #organization-overview-page.operations-view>.command-parked-line>.command-parked-actions button{flex:1 1 0;min-height:44px}
}

/* Bilde-i-bilde (del 4), from 1024 px: the video panel floats in the map's lower right corner, left of the map's right rail (zoom stays free), also
   while the right panel is folded or under Kartfokus. Only its place changes: the video element, its
   stream and the map stay as they are. The right column then starts at the top. */
@media(min-width:1024px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel[data-pip="true"],#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen):is([data-right],[data-focus])>.operation-split-stage>.live-video-panel[data-pip="true"]{display:flex;grid-column:2;grid-row:1/-1;z-index:4;align-self:end;justify-self:end;width:clamp(270px,34%,380px);max-height:none;margin:0 72px 56px 0;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:0 8px 24px rgb(0 0 0 / .45)}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel[data-pip="true"]>:is(.live-video-compact-settings,.live-video-controls,fieldset){display:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel[data-pip="true"] .live-video-head{flex-wrap:nowrap;padding-right:0}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel[data-pip="true"] .live-video-head>*{flex:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage:has(>.live-video-panel[data-pip="true"])>.command-right{grid-row:1/-1;padding-top:44px}
}
@media(max-width:1023.98px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form{flex-wrap:wrap}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick{flex:1 0 100%}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick>button{flex:1 1 auto;width:auto;height:44px;min-height:44px;padding:0 8px;font-size:13px;white-space:nowrap}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick .operation-journal-quick-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel button.live-video-pip-toggle{display:none}
}

/* Hurtigknappene med tekst: from 1440 px when the screen is not low, they get their own row over the
   field ("Avgang", "Landing", "Observasjon" by their icons); the right column keeps room for it. On low
   screens they stay icons on the field's row (the name is the tooltip and aria-label). */
@media(min-width:1440px) and (min-height:820.02px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form{flex-wrap:wrap;row-gap:6px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick{flex:1 0 100%}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick>button{flex:1 1 auto;width:auto;height:36px;min-height:36px;padding:0 8px;font-size:13px;white-space:nowrap}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form>.operation-journal-quick .operation-journal-quick-label{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
}
/* Compact controls on low desktop screens; never shrink the video picture. */
@media(min-width:1024px) and (max-height:820px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal{gap:4px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .organization-photo-heading>.operation-storage-status{display:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel{gap:6px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-compact-settings label{font-size:0;gap:0}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel[data-sources="available"]>.live-video-stage{min-height:0}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel:is([data-video-state="live"],[data-video-state="watching"]):not([data-pip="true"]) button.live-video-pip-toggle{border-color:var(--primary);background:var(--primary-soft);color:var(--ink)}
}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal{gap:4px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .organization-photo-heading>.operation-storage-status{display:none}
}

/* From 1700 px the side columns get more room. */
@media(min-width:1700px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-workspace>.operation-split-shell:not(:fullscreen)>.operation-split-stage{--command-left:340px;--command-right:400px}
}
/* 1024–1365 px: narrower side columns. */
@media(max-width:1365.98px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-workspace>.operation-split-shell:not(:fullscreen)>.operation-split-stage{--command-left:260px;--command-right:300px}
}
/* Below 1024 px the columns stack: map, video and log, then drones and map objects. The page scrolls. */
@media(max-width:1023.98px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view{height:auto;min-height:0;overflow:visible}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-workspace>.operation-split-shell:not(:fullscreen)>.operation-split-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto;align-items:start}
 /* Stacked: map, video, log and photos, then drones and map objects. Folding does not apply. */
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>:is(.organization-map-workspace,.live-video-panel,.operation-split-unavailable,.command-right,.command-left){grid-column:1;grid-row:auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage:not(:has(>.live-video-panel))>.command-right{grid-row:auto;padding-top:0}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.organization-map-workspace{order:1}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.live-video-panel{order:2}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-right{order:3}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-left{order:4}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>:is(.command-column-head,.command-strip){display:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen)>.operation-split-stage>.command-column{display:flex}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-map-focus{display:none}

 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .organization-map-workspace{height:max(360px,60dvh)}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-left{overflow:visible}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-left>.command-left-head{display:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-left-body{overflow:visible}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right{overflow:visible}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-log-slot{flex:none;min-height:0}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal{max-height:none;min-height:220px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-photos-slot{max-height:none}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-photos-panel{max-height:none}
}
@media(max-width:767.98px){
 #organization-overview-page.operations-view .operation-detail-panel.command-view>.command-workspace{padding:8px}
 /* Phones: the map toolbar and status sit above and below the map instead of on it. */
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .organization-map-workspace{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;height:auto;padding:8px;overflow:visible}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .organization-map-canvas{position:relative;inset:auto;height:max(320px,55dvh);border-radius:8px;overflow:hidden}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-topbar{position:static;grid-row:1;pointer-events:auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .organization-map-canvas{grid-row:2}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .operation-map-overlay-details{position:static;grid-row:3;pointer-events:auto}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form button.operation-journal-send{width:44px;min-width:44px;height:44px;min-height:44px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-export-menu>button.operation-export-menu-item{min-height:44px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view button.command-drone-follow{min-height:44px}
 #organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal>form textarea{min-height:44px;height:44px}

 #organization-overview-page.operations-view .operation-detail-panel.command-view .operation-split-shell:not(:fullscreen) .live-video-panel .live-video-controls:not(.live-video-compact-settings) button{min-height:44px}
}

/* Compact export controls aligned with the object selection column. */
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-kml-export{padding-left:9px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-select-all-wrap{width:36px;flex:0 0 36px}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-kml-export button.operation-export-menu-button{width:40px;min-height:40px;padding:8px;justify-content:center}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-export-menu-button::after{display:none}
#organization-overview-page.operations-view .operation-detail-panel.command-view .operation-export-menu-button svg{width:18px;height:18px}


/* Compact journal action must not reduce the number of visible entries on desktop. */
@media(min-width:1024px){#organization-overview-page.operations-view .operation-detail-panel.command-view .command-right .operation-journal button.operation-journal-edit{width:24px;height:20px;min-height:20px;padding:2px;margin-left:0;flex:none}}
