/* New shell, scoped to /next.html. Classic selectors and source files stay intact. */
#next-document{--bg:#080e12;--panel:#111b22;--line:#293840;--ink:#eef4f6;--muted:#a6b6c0;--accent:#30c2df;--green:#8cdbb6;--amber:#edc486;--next-surface:#121d25;--next-hover:#1c303b;--next-border:#2c3d47;color-scheme:dark;height:100%;overflow:hidden;scroll-behavior:auto}
#next-app{height:100dvh;overflow:hidden;background:var(--bg);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
#next-app *{box-sizing:border-box}
#next-app main{width:100%;max-width:none;height:100dvh;min-height:0;padding:0 16px 14px;display:flex;flex-direction:column}
#next-app .topbar{display:flex!important;flex:none;align-items:center;justify-content:space-between;gap:16px;height:64px!important;min-height:64px!important;padding:0 6px!important;border-bottom:1px solid #ffffff0c}
#next-app .brand{font-size:14px;letter-spacing:1.5px;gap:8px}
#next-app .brand-icon{font-size:27px;color:var(--accent)}
#next-app .brand small{font-size:8px;letter-spacing:1.6px}
#next-app .top-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
#next-app .connection{font-size:11px;margin-left:8px;white-space:nowrap}
#next-app .quiet{width:34px;height:34px;border-radius:50%;background:transparent;border-color:var(--next-border)}
#next-app .next-nav{display:flex;align-items:center;gap:6px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;white-space:nowrap}
#next-app .next-nav a{display:inline-flex;align-items:center;justify-content:center;padding:8px 15px;border:1px solid transparent;background:transparent;color:#b5c3ca;text-decoration:none;font-size:13px;border-radius:10px;transition:background .16s,color .16s,border-color .16s}
#next-app .next-nav a:hover{background:#14252e;border-color:#2c414e;color:var(--ink)}
#next-app .next-nav a.is-active{background:#16313b;border-color:#365b69;color:#b0edf5;box-shadow:none}
#next-app .console{display:block!important;flex:1;min-height:0;padding:0;gap:0}
#next-app .layout{display:block!important;height:100%;min-height:0}
#next-app .workspace-views{height:100%;min-width:0;min-height:0}
#next-app .tool-rail,#next-app .equipment-sidebar{display:none!important}
#next-app .workspace-views>section{height:100%;min-height:0!important;display:flex;flex-direction:column;border:0;border-radius:0;background:transparent;overflow:auto}
#next-app .workspace-views>section[hidden]{display:none!important}
#next-app .heading{padding:16px 12px 12px;background:transparent;border:0;flex:none;gap:10px;flex-wrap:wrap;justify-content:flex-start}
#next-app .heading h1{font-size:22px;line-height:1.25;letter-spacing:-.5px;font-weight:600}
#next-app .heading .eyebrow{font-size:10px;letter-spacing:1.6px;margin-bottom:4px}
#next-app .heading .subtitle{display:block;font-size:12px}
#next-app h2{font-size:18px;font-weight:600;letter-spacing:-.2px}
#next-app h3{font-size:15px;font-weight:600}
#next-app .note{font-size:12px;line-height:1.65;color:var(--muted)}
#next-app .phase,#next-app .small-tag{border:1px solid var(--next-border);border-radius:999px;background:#18242c;font-size:10px;line-height:1.3;padding:6px 10px;letter-spacing:.1px;white-space:normal}
#next-app .phase.live{color:var(--green);background:#8cdbb608;border-color:#8cdbb630}
#next-app .next-stage-actions{display:flex;gap:8px;align-items:center;margin-left:auto;flex-wrap:wrap}
#next-app .next-button,#next-app .action-button,#next-app .text-button,#next-app .settings-nav a,#next-app .next-link{border:1px solid var(--next-border);border-radius:11px;background:#16262f;color:var(--ink);font-size:13px;font-weight:500;padding:7px 11px;line-height:1.35;min-height:34px;text-decoration:none;transition:background .16s,border-color .16s}
#next-app .next-button:hover:not(:disabled),#next-app .action-button:hover:not(:disabled),#next-app .text-button:hover:not(:disabled),#next-app .next-link:hover{background:var(--next-hover);border-color:#4f6977}
#next-app .next-primary,#next-app .action-button.primary,#next-app .settings-save{background:#a9e5ed;color:#082430;border-color:transparent;box-shadow:none}
#next-app .next-primary:hover:not(:disabled),#next-app .action-button.primary:hover:not(:disabled),#next-app .settings-save:hover:not(:disabled){background:#cdf4f7;color:#082430}
#next-app .next-stop,#next-app .action-button.danger{color:#f3b0ad;background:#3e2529;border-color:#795058}
#next-app button:disabled{opacity:.42;cursor:default}
#next-app button:focus-visible,#next-app a:focus-visible,#next-app input:focus-visible,#next-app select:focus-visible,#next-app summary:focus-visible{outline:2px solid #a4e8f1;outline-offset:3px}
#next-app input,#next-app select,#next-app textarea{font:inherit;color:var(--ink);accent-color:var(--accent)}
#next-app .field{font-size:12px;gap:5px;color:var(--muted);margin-bottom:8px}
#next-app .field input,#next-app .field select{font-size:14px;padding:7px 10px;background:#0d171d;border:1px solid var(--next-border);border-radius:9px;min-height:34px}
#next-app .field-grid{gap:10px}
#next-app .coordinate-grid{grid-template-columns:1fr 1fr!important;gap:12px}
#next-app .control-message{font-size:13px;line-height:1.5}
#next-app .panel{border-color:var(--next-border);border-radius:12px;background:var(--next-surface);padding:14px}
#next-app .image-panel{overflow:hidden!important;background:transparent;border:0}
#next-app #image-workspace>.heading{padding:12px 8px;flex-wrap:nowrap;min-height:72px}
#next-app #image-workspace>.heading .subtitle,#next-app #image-object-summary{display:none!important}
#next-app #image-workspace>.heading h1{font-size:25px}
#next-app #image-workspace>.heading .eyebrow{font-size:9px;margin-bottom:6px}
#next-app .capture-stage{display:grid!important;grid-template-columns:var(--next-camera-width,clamp(240px,30vw,520px)) minmax(0,var(--next-image-width,1fr)) minmax(0,1fr);gap:12px;flex:1;position:relative;min-height:0;padding:0!important;overflow:hidden;background:transparent;border:0;border-radius:0}
#next-app .image-navigation{display:flex!important;grid-column:2;grid-row:1;width:100%;height:100%!important;min-height:0;min-width:0;margin:0;padding:0!important;overflow:hidden;border:1px solid #ffffff0b;border-radius:17px}
#next-app .capture-stage .movement-panel{grid-column:2;grid-row:1;position:relative;align-self:center;justify-self:center;left:auto;top:auto;transform:none;width:min(510px,calc(100% - 32px));z-index:2}
#next-app .capture-stage .image-stage{display:flex!important;position:relative;flex:1;width:100%!important;height:100%!important;min-width:0;min-height:0!important;max-height:none;padding:0!important;border:0;border-radius:0;background:#020405;overflow:hidden}
#next-app .image-stage img,#next-app .image-stage canvas{width:100%;height:100%;object-fit:contain;image-rendering:auto}
#next-app .image-bottom{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:52px;padding:8px 8px 2px;border:0;background:transparent;gap:12px}
#next-app #image-caption{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:30%;color:#9aacb6}
#next-app .image-view-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
#next-app .image-view-tools .text-button,#next-app .image-view-tools .next-button{background:transparent;padding:8px 12px;min-height:36px;font-size:12px;border-color:transparent}
#next-app .image-view-tools .text-button[aria-pressed=true]{background:#17313a;color:#a6e5e9;border-color:#39626c}
#next-app #main-capture-live[aria-pressed=true]{background:#153128;color:#b0e6cd;border-color:#365847}
#next-app .image-stage .empty{max-width:500px}
#next-app .image-stage .empty .orbit{color:#5b8a98;font-size:55px}
#next-app .movement-panel{border-radius:20px;background:#111f29f2;border-color:#3b5b6a;backdrop-filter:blur(12px)}
#next-app .alert{border-radius:12px;font-size:12px;margin:8px 0;padding:10px 14px;max-height:108px;overflow:auto}
#next-app main>footer{display:none}
#next-app .viewer-ticker{height:32px;min-height:32px;margin:4px 0!important;padding:0 8px;background:transparent;border:0;color:var(--muted);font-size:12px}
#next-app .viewer-ticker-copy{font-size:12px;font-weight:500;gap:8px}
#next-app .viewer-ticker-copy::before{width:5px;height:5px}
#next-app .viewer-ticker button{width:28px;height:28px;font-size:12px}
/* One presentation manager; no copied form or command handlers. */
#next-sheet{position:fixed;inset:76px 16px 16px auto;width:min(420px,calc(100vw - 32px));height:calc(100dvh - 92px);max-height:none;max-width:none;margin:0;padding:0;border:1px solid #40535c;border-radius:var(--glass-radius,23px);background:rgba(17,29,37,.97);color:var(--ink);box-shadow:0 26px 90px #0008;overflow:hidden;backdrop-filter:blur(min(var(--glass-blur,12px),18px))}
#next-sheet[open]{display:flex;flex-direction:column}
#next-sheet::backdrop{background:#02070c38}
#next-app .next-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 18px;border-bottom:1px solid #ffffff0c;flex:none}
#next-app .next-sheet-head h2{font-size:17px;font-weight:600;letter-spacing:-.4px}
#next-app .next-close{font:inherit;font-size:12px;min-height:34px;padding:7px 10px;border:1px solid #536773;border-radius:999px;background:transparent;color:#d3e0e6}
#next-app .next-sheet-body{padding:16px 18px 20px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin;scrollbar-color:#577482 transparent}
#next-app .next-intro{font-size:13px;line-height:1.65;color:#b6c6ce;margin:0 0 14px}
#next-app .next-panel .panel,#next-app .next-panel .control-panel{display:block!important;overflow:visible;padding:0;border:0;background:transparent;height:auto;max-height:none}
#next-app .next-panel .section-title{margin:0 0 12px}
#next-app .next-panel .section-title h2{font-size:16px}
#next-app .next-panel .control-panel .field{font-size:12px!important}
#next-app .next-panel .control-panel .field input,#next-app .next-panel .control-panel .field select{padding:8px 10px!important;font-size:14px!important}
#next-app .next-panel .control-panel .action-button{padding:10px 12px!important;font-size:13px!important}
#next-app .target-observation-actions{padding-top:18px;margin:20px 0;border-top:1px solid var(--next-border)}
#next-app .target-observation-actions h3{margin:0}
#next-app .target-preview{background:#12302c;border-color:#305a51;border-radius:12px;padding:14px;margin-top:18px;gap:7px}
#next-app .target-preview strong{font-size:16px}
#next-app .target-preview small{font-size:12px}
#next-app .target-preview span{font-size:13px}
#next-app .control-bottom{display:flex;flex-direction:column;gap:10px;margin-top:12px}
#next-app .stellarium-import{margin:16px 0}
#next-app .visible-targets{display:block!important;margin-top:22px;padding-top:16px;border-top:1px solid var(--next-border)}
#next-app .visible-targets>summary{font-size:14px}
#next-app #visible-targets-list,#next-app #sky-identify-list{max-height:none;overflow:visible}
#next-app #visible-targets-list button,#next-app #sky-identify-list button{padding:12px;border-radius:12px;background:#17272f;border-color:#2b424e}
#next-app .plan-target-add{padding-top:20px;border-top:1px solid var(--next-border);margin-top:20px}
#next-app #next-panel-data .image-facts{position:static!important;display:grid!important;grid-template-columns:1fr 1fr;gap:12px;width:auto;max-height:none;pointer-events:auto;margin-bottom:14px}
#next-app #next-panel-data .image-facts>section{grid-column:1/-1}
#next-app .info-tile{border:1px solid #2b404b;border-radius:14px;background:#14232c;padding:10px 12px!important;gap:5px}
#next-app .info-tile>span:first-child{font-size:12px}
#next-app .info-tile>strong{font-size:18px!important}
#next-app .image-stack-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#next-app .image-stack-summary>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#next-app .image-stack-summary strong{font-size:18px!important}
#next-app .image-stack-summary span{font-size:12px}
#next-app .webcam-tile h2{font-size:14px}
#next-app .info-tile small{font-size:11px}
#next-app .webcam-thumb{height:155px;min-height:0;border-radius:10px}
#next-app .live-sight-compass{max-height:185px;margin:auto}
#next-app .image-journal{padding:12px;border-radius:12px;background:#14232c;border:1px solid #2b404b}
#next-app .image-journal-tiles{max-height:none}
#next-app .image-journal-tiles button{padding:12px;border-radius:10px}
#next-app #next-panel-data .observation{padding:16px;margin-top:14px}
#next-app #next-panel-data .update-note{margin-top:16px}
#next-app #next-panel-data dl dt,#next-app #next-panel-data dl dd{font-size:13px}
#next-app #next-panel-menu{display:flex;flex-direction:column;gap:10px}
#next-app #next-panel-menu .next-link{display:block;padding:13px 15px}
#next-app #next-panel-menu .access-badge{align-self:flex-start;font-size:10px;margin-bottom:6px}
#next-app #next-panel-menu .language-switch{display:flex;align-self:flex-start;padding:4px;border-radius:999px;background:#14232c;margin:4px 0 10px}
#next-app #next-panel-menu .language-switch button{font-size:13px;padding:8px 16px;border-radius:999px}
#next-app #next-panel-menu .rail-audio{display:flex;width:100%;margin:0 0 8px;padding:12px;gap:8px;font-size:13px;background:#14232c;border:1px solid var(--next-border);border-radius:12px;color:var(--ink)}
#next-app .next-classic{margin-top:12px!important;background:transparent!important}
#next-app .next-preview{font-size:11px;color:#839ca9;margin:12px 0 0}
/* Camera previews sit beside the photograph, using the original live image nodes. */
#next-app .next-camera-rail{display:flex;flex-direction:column;gap:10px;grid-column:1;grid-row:1;align-self:stretch;min-height:0;min-width:0;overflow:hidden;padding-right:2px}
#next-app .next-right-rail{display:flex;flex-direction:column;justify-content:flex-start;gap:10px;grid-column:3;grid-row:1;min-width:0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#425864 transparent}
#next-app .next-right-rail>*{flex:none;min-width:0}
#next-app .next-right-rail [hidden]{display:none!important}
#next-app .next-camera-rail>*{min-width:0;grid-column:auto!important;flex:none}
#next-app .next-camera-rail .next-camera-scroll{display:flex;flex-direction:column;gap:10px;flex:1 1 0;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#425864 transparent}
#next-app .next-camera-scroll>*{flex:none;min-width:0}
#next-app .next-current-object{flex:none;min-width:0;padding:9px 10px;border:1px solid #263740;border-radius:11px;background:#101a21}
#next-app .next-current-object-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
#next-app .next-current-object-head h2{font-size:11px;line-height:1.4;color:var(--muted);font-weight:500;margin:0}
#next-app .next-current-object-head strong{font-size:14px;line-height:1.4;font-weight:600;overflow-wrap:anywhere;text-align:right}
#next-app .next-current-object-summary{font-size:12px;line-height:1.45;margin:5px 0 0;color:#a4d5df}
#next-app .next-current-object-description{font-size:11px;line-height:1.45;margin:5px 0 0;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#next-app .next-camera-rail [hidden]{display:none!important}
#next-app .next-camera-rail .webcam-tile{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:6px;padding:8px!important;border:1px solid #263740;border-radius:11px;background:#101a21;text-align:left}
#next-app .next-camera-rail .webcam-tile h2{font-size:12px;line-height:1.4;margin:0}
#next-app .next-camera-rail .webcam-thumb{height:auto;min-height:0;aspect-ratio:16/9;flex:none;border-radius:6px}
#next-app .next-camera-rail .webcam-tile small{font-size:10px!important;line-height:1.4;overflow-wrap:anywhere}
#next-app .next-right-rail .image-pointing-tile{display:grid;grid-template-columns:112px repeat(2,minmax(0,1fr));gap:5px 10px;align-items:start;flex:none;margin-top:0;padding:10px!important;text-align:left;border-radius:11px;background:#101a21}
#next-app .next-right-rail .image-pointing-tile h2{grid-column:1/-1;grid-row:1;font-size:12px;line-height:1.4;margin:0 0 4px}
#next-app .next-right-rail .image-pointing-tile .live-sight-compass{grid-column:1;grid-row:2/6;width:100%;height:auto;max-width:112px;max-height:112px;align-self:center;margin:auto}
#next-app .next-right-rail .live-sight-cardinal{font-size:32px}
#next-app .next-right-rail .image-pointing-tile>.live-sight-distance{grid-column:2/-1;grid-row:4;padding-bottom:4px}
#next-app .next-right-rail .image-pointing-tile>.live-sight-status{grid-column:2/-1;grid-row:3;font-size:11px;line-height:1.4;margin:0}
#next-app .next-right-rail .image-pointing-tile>div:has(#image-azimuth){grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
#next-app .next-right-rail .image-pointing-tile>div:has(#image-altitude){grid-column:3;grid-row:2;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
#next-app .next-right-rail .image-pointing-tile>small{grid-column:2/-1;grid-row:5;font-size:10px!important;line-height:1.4}
#next-app .next-right-rail .image-pointing-tile>div>span{font-size:11px}
#next-app .next-right-rail .image-pointing-tile>div>strong{font-size:16px}
#next-app #next-panel-conditions .sky-status{display:flex!important;flex-direction:column!important;gap:16px!important;width:auto!important;align-items:stretch}
@media(min-width:801px){#next-app .capture-stage.next-image-zoomed{grid-template-columns:var(--next-camera-width,clamp(240px,30vw,520px)) minmax(0,1fr)}#next-app .next-image-zoomed .next-right-rail{display:none!important}}
#next-app.next-image-only .next-camera-rail,#next-app.next-image-only .next-right-rail{display:none!important}
#next-app.next-image-only .capture-stage{grid-template-columns:minmax(0,1fr);gap:0}
#next-app.next-image-only .image-navigation,#next-app.next-image-only .capture-stage .movement-panel{grid-column:1}
@media(max-width:800px){
 #next-app .capture-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:8px}
 #next-app .image-navigation,#next-app .capture-stage .movement-panel{grid-column:1;grid-row:1}
 #next-app .next-camera-rail{grid-column:1;grid-row:2;display:block;max-height:220px;overflow:auto;padding-right:0}
 #next-app .next-camera-rail .next-camera-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}
 #next-app .next-right-rail{grid-column:1;grid-row:3;display:flex;max-height:180px;justify-content:flex-start}
 #next-app .next-current-object,#next-app .next-right-rail .image-pointing-tile{margin-top:0}
 #next-app .next-camera-rail .webcam-tile{gap:4px;padding:6px!important}

 #next-app .next-camera-rail .webcam-tile h2{font-size:11px}
 #next-app .next-camera-rail .webcam-tile small{font-size:9px!important}
 #next-app.next-image-only .capture-stage{grid-template-rows:minmax(0,1fr)}
}
#next-app #next-panel-conditions .sky-item{display:flex;align-items:flex-start;gap:14px;border:0;padding:0}
#next-app #next-panel-conditions .sky-item svg{width:24px;height:24px;color:#86c6d4;flex:none}
#next-app #next-panel-conditions .sky-item>div{display:flex;flex-direction:column;gap:5px}
#next-app #next-panel-conditions .sky-label{font-size:12px;color:var(--muted)}
#next-app #next-panel-conditions .sky-item strong{font-size:15px!important}
#next-app #next-panel-conditions .sky-item small{font-size:12px!important}
#next-app .next-panel .image-slider{position:static!important;display:flex!important;flex-direction:column!important;writing-mode:horizontal-tb;align-items:stretch;gap:14px;width:100%;height:auto;min-height:0;padding:16px;border:1px solid var(--next-border);border-radius:14px;background:#14232c;color:var(--ink);margin-bottom:18px}
#next-app .next-panel .image-slider>span{writing-mode:horizontal-tb!important;transform:none!important;position:static;align-self:flex-start;font-size:13px}
#next-app .next-panel .image-slider input[type=range]{writing-mode:horizontal-tb!important;direction:ltr;appearance:auto;-webkit-appearance:auto;transform:none!important;width:100%!important;height:32px!important;min-height:0;margin:0;flex:none}
#next-app .next-panel .image-slider output{font-size:13px;text-align:left}
#next-app .next-panel .image-slider button{height:36px;width:40px;align-self:flex-end;border-radius:10px}
#next-app .next-zoom-modes{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
#next-app .next-zoom-modes [aria-pressed=true]{background:#325460}
#next-app .next-panel .main-capture-controls{display:flex;position:static;padding:16px 0;gap:16px;border:0;background:transparent}
#next-app .next-panel .capture-player-transport{flex-wrap:wrap}
#next-app .next-panel .capture-player-transport button,#next-app .next-panel .capture-player-transport select{padding:10px;border-radius:9px;min-height:38px}
/* Content-driven workspaces share one type scale and spacing rhythm. */
#next-app .heading>div:first-child{margin-right:auto}
#next-app .planning-content,#next-app .journal-content,#next-app .archive-content,#next-app .object-content,#next-app .settings-group{padding:8px 12px 20px;max-width:none;width:100%;margin:0;min-height:0;overflow:visible}
#next-app .planning-content,#next-app .journal-content,#next-app .archive-content{display:block;flex:none;height:auto;max-height:none}
#next-app .plan-entry,#next-app .plan-automation,#next-app .plan-results,#next-app .archive-card,#next-app .object-facts>div,#next-app .object-coordinates,#next-app .sensor-grid>div{border:1px solid var(--next-border);border-radius:10px;background:var(--next-surface)}
#next-app .plan-scope{padding:0;background:transparent;border:0;font-size:12px;line-height:1.5;margin:0 0 10px;color:var(--muted)}
#next-app .plan-fields{grid-template-columns:minmax(0,1.4fr) minmax(200px,1fr);gap:12px;max-width:900px}
#next-app .plan-summary{margin:14px 0 8px}
#next-app .plan-summary h2,#next-app .plan-automation h2{font-size:16px}
#next-app .plan-entry{grid-template-columns:56px minmax(0,1fr) 112px 112px 28px;padding:10px 12px;margin:0 0 8px;gap:12px}
#next-app .plan-entry .field{margin:0}
#next-app .plan-entry .field input{width:100%;min-width:0;font-size:14px;padding:6px 8px;min-height:32px}
#next-app .plan-entry strong{font-size:14px}
#next-app .plan-entry small,#next-app .plan-entry .note,#next-app .plan-entry-check{font-size:12px;line-height:1.4}
#next-app .plan-thumbnail,#next-app .plan-entry-target,#next-app .plan-remove{grid-column:auto;grid-row:auto}
#next-app .plan-thumbnail{width:56px;height:56px;border-radius:8px;border-color:#3d6776}
#next-app .plan-automation,#next-app .plan-results{padding:12px 14px;margin-top:14px}
#next-app .plan-results .plan-summary{margin:0 0 6px}
#next-app .plan-visibility-card{padding:12px;margin-top:8px;border-radius:10px;background:var(--next-surface)}
#next-app .plan-empty{padding:14px;font-size:13px;line-height:1.5}
#next-app .plan-actions,#next-app .settings-actions{gap:8px;flex-wrap:wrap;margin-top:10px}
#next-app .plan-actions .action-button,#next-app .settings-actions .action-button{font-size:13px;padding:7px 11px}
#next-app .plan-rules,#next-app .plan-run-log,#next-app .plan-curves{font-size:12px}
/* Journal: overview first, exact timestamps and technical values on demand. */
#next-app .journal-content{max-width:1440px}
#next-app .journal-toolbar,#next-app .archive-toolbar{align-items:center;gap:12px;margin:0 0 8px}
#next-app .journal-toolbar .field,#next-app .archive-toolbar .field{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;min-width:0;font-size:12px}
#next-app .journal-toolbar .field>span,#next-app .archive-toolbar .field>span{white-space:nowrap}
#next-app .journal-toolbar select{width:300px;max-width:100%;min-height:34px;font-size:14px;padding:6px 10px;border:1px solid var(--next-border);border-radius:8px;background:#0d171d}
#next-app .journal-toolbar .note,#next-app .archive-toolbar .note{max-width:none;margin:0;font-size:12px}
#next-app .journal-content>.note,#next-app .archive-content>.note{font-size:12px;line-height:1.5;margin:6px 0 10px}
#next-app .journal-summary,#next-app .archive-summary{display:flex;flex-wrap:wrap;gap:0;margin:10px 0 12px;padding:10px 0;border-top:1px solid var(--next-border);border-bottom:1px solid var(--next-border)}
#next-app .journal-summary>div,#next-app .archive-summary>div{display:flex;align-items:baseline;gap:10px;padding:0 24px;border:0;border-right:1px solid var(--next-border);border-radius:0;background:transparent}
#next-app .journal-summary>div:first-child,#next-app .archive-summary>div:first-child{padding-left:0}
#next-app .journal-summary>div:last-child,#next-app .archive-summary>div:last-child{border:0}
#next-app .journal-summary span,#next-app .archive-summary span{display:inline;font-size:12px;color:var(--muted);margin:0}
#next-app .journal-summary strong,#next-app .archive-summary strong{display:inline;font-size:17px;font-weight:600;line-height:1.4;margin:0;font-variant-numeric:tabular-nums}
#next-app #journal-message,#next-app #archive-message{font-size:12px;line-height:1.5;margin:8px 0}
#next-app .journal-entry{display:grid;grid-template-columns:62px minmax(0,1fr);gap:12px;margin:0 0 10px;padding:0;border:0;border-radius:0;background:transparent}
#next-app .journal-clock{padding:10px 10px 0 0;border-right:1px solid #714d47;color:#eaa398}
#next-app .journal-clock:after{right:-4px;top:16px;width:7px;height:7px}
#next-app .journal-clock time{font-size:15px;font-weight:500}
#next-app .journal-clock small{font-size:11px;margin-top:3px}
#next-app .journal-card{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:8px 20px;padding:12px 14px;border:1px solid var(--next-border);border-radius:10px;background:var(--next-surface);align-items:start}
#next-app .next-journal-main{min-width:0}
#next-app .journal-card-head{display:flex;gap:10px;justify-content:flex-start;flex-wrap:wrap}
#next-app .journal-card h2{font-size:16px;font-weight:600;line-height:1.3;margin:0}
#next-app .journal-state{font-size:11px;padding:3px 8px;line-height:1.3}
#next-app .journal-facts{display:grid;grid-template-columns:110px 145px 80px 80px;gap:8px 22px;margin:10px 0}
#next-app .journal-facts>div{display:block;padding:0;border:0;border-radius:0;background:transparent;min-width:0}
#next-app .journal-facts dt{font-size:11px;line-height:1.4;margin:0 0 2px;color:var(--muted)}
#next-app .journal-facts dd{font-size:14px;line-height:1.4;margin:0;text-align:left;font-variant-numeric:tabular-nums}
#next-app .journal-player-open{display:inline-flex;align-items:center;min-height:30px;font-size:12px;padding:5px 10px;margin:0;border:1px solid var(--next-border);border-radius:7px;background:#1c2b34;color:var(--ink);cursor:pointer}
#next-app .journal-error{font-size:12px;line-height:1.4;overflow-wrap:anywhere;margin:6px 0}
#next-app .journal-overview{grid-column:auto;grid-row:auto;max-width:none;width:100%;align-self:start}
#next-app .journal-overview .journal-image{display:flex;align-items:start;gap:10px}
#next-app .journal-overview .journal-preview{flex:none;width:104px;height:104px;border-radius:8px;border-color:var(--next-border)}
#next-app .journal-preview span{font-size:11px;line-height:1.4;padding:8px}
#next-app .journal-image figcaption{gap:3px;padding:2px 0;font-size:11px;line-height:1.45;min-width:0;overflow-wrap:anywhere}
#next-app .journal-image figcaption strong{font-size:12px;color:var(--ink)}
#next-app .journal-image figcaption small{font-size:11px}
#next-app .next-journal-folds{grid-column:1/-1;display:flex;align-items:start;flex-wrap:wrap;gap:0 20px;border-top:1px solid #ffffff0c}
#next-app .next-journal-folds>details{margin:0;padding:0;border:0;min-width:0}
#next-app .next-journal-folds>details[open]{flex-basis:100%}
#next-app .next-journal-folds summary{font-size:12px;line-height:1.5;padding:6px 0 0;color:#a5cedb;cursor:pointer;min-height:26px}
#next-app .journal-events{display:flex;gap:12px 24px;margin:12px 0;grid-column:auto;grid-row:auto}
#next-app .journal-events li{gap:2px}
#next-app .journal-events time{font-size:13px}
#next-app .journal-events span{font-size:11px}
#next-app .next-journal-technical{grid-template-columns:100px 140px minmax(0,1fr) minmax(0,1fr);gap:12px 16px;margin:12px 0}
#next-app .journal-relative{font-size:12px!important;line-height:1.5;margin:8px 0}
#next-app .journal-gallery{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-top:12px}
#next-app .journal-gallery .journal-preview{height:140px;border-radius:8px}
/* Archive previews are thumbnails; original images and downloads retain their own actions. */
#next-app .archive-toolbar{margin:12px 0}
#next-app .archive-toolbar input{font-size:14px;min-height:34px;width:280px}
#next-app .archive-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,520px),1fr));gap:12px}
#next-app .archive-card{display:grid;grid-template-columns:104px minmax(0,1fr);padding:12px;gap:12px;overflow:hidden;align-items:start}
#next-app .archive-preview{width:104px;height:104px;border-radius:8px;border:1px solid var(--next-border)}
#next-app .archive-placeholder{padding:8px;font-size:12px}
#next-app .archive-card-body{padding:0;min-width:0}
#next-app .archive-card h2{font-size:16px;line-height:1.3;margin:6px 0 4px}
#next-app .archive-card .small-tag{display:inline-flex;font-size:10px;padding:3px 7px}
#next-app .archive-date,#next-app .archive-counts{font-size:12px;line-height:1.5;margin:4px 0}
#next-app .archive-size{font-size:16px;font-variant-numeric:tabular-nums}
#next-app .archive-downloads{gap:6px;margin:8px 0}
#next-app .archive-download{font-size:12px;min-height:30px;padding:5px 8px;border-radius:7px}
#next-app .archive-files-button{width:auto;min-height:30px;font-size:12px;padding:5px 9px}
#next-app .archive-files-header{padding:14px 18px}
#next-app .archive-files-header h2{font-size:18px}
#next-app .archive-files-header p{font-size:13px;margin-top:4px}
#next-app .archive-files-body{padding:14px 18px}
#next-app .archive-files-body .field{font-size:12px}
#next-app .archive-files-body select{font-size:14px;min-height:34px}
#next-app .archive-file-row{gap:12px;padding:8px 0}
#next-app .archive-file-row>span{font-size:13px}
#next-app .archive-file-row small{font-size:12px}
#next-app #archive-files-more{font-size:13px}
/* Object, telemetry and device controls use readable, content-sized facts. */
#next-app .object-content{max-width:1100px}
#next-app .object-type{color:#8ed4e4;font-size:15px;margin:0 0 8px}
#next-app .object-description{font-size:14px;line-height:1.6;color:#c4d2d9;margin:8px 0 16px}
#next-app .object-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
#next-app .object-facts>div{padding:10px 12px}
#next-app .object-facts dt{font-size:12px;margin:0 0 4px}
#next-app .object-facts dd{font-size:16px;margin:0;text-align:left;overflow-wrap:anywhere}
#next-app .object-coordinates{padding:12px;margin:12px 0}
#next-app .object-coordinates h2{font-size:14px;margin:0 0 6px}
#next-app .object-coordinates span{font-size:14px}
#next-app #telescope-panel{max-width:1100px;width:100%;margin:0;padding:18px 12px;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 24px;border:0}
#next-app #telescope-panel>.section-title{grid-column:1/-1;margin:0 0 8px}
#next-app #telescope-panel .section-title h2{font-size:22px}
#next-app #pointing-status{grid-column:1;grid-row:2/span 4;margin:0;padding:0;border:0}
#next-app #pointing-heading{font-size:14px}
#next-app .sensor-grid{gap:10px;margin:8px 0}
#next-app .sensor-grid>div{padding:10px 12px}
#next-app .sensor-grid span,#next-app .sensor-grid small{font-size:12px;line-height:1.5;margin-top:4px}
#next-app .sensor-grid strong{font-size:18px;margin-top:4px}
#next-app #pointing-updated{font-size:12px;line-height:1.5}
#next-app #telescope-panel>.battery-head,#next-app #telescope-panel>progress,#next-app #telescope-panel>#power,#next-app #telescope-panel>.sensor-grid{grid-column:2;margin:0}
#next-app .battery-head{font-size:13px}
#next-app .battery-head strong{font-size:18px}
#next-app #telescope-panel>progress{height:6px}
#next-app #telescope-panel>.compact{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-top:12px;max-width:none}
#next-app #telescope-panel .compact>div{display:flex;flex-direction:column;align-items:flex-start;padding:8px 0;gap:4px}
#next-app #telescope-panel .compact dt{font-size:12px;line-height:1.5}
#next-app #telescope-panel .compact dd{font-size:15px;line-height:1.5;margin:0}
#next-app .telescope-card{max-width:1100px;width:100%;grid-template-columns:180px minmax(0,1fr);align-items:start;gap:24px;padding:8px 12px 20px;margin:0}
#next-app .telescope-illustration{background:#111b21;border-color:#283a46;border-radius:12px;padding:12px}
#next-app .telescope-art{max-width:140px}
#next-app .telescope-illustration>strong{font-size:15px;line-height:1.4}
#next-app .telescope-device-controls{align-self:start}
#next-app .telescope-device-controls h2{font-size:18px;margin-bottom:12px}
#next-app .telescope-device-facts{gap:24px;margin-bottom:14px}
#next-app .telescope-device-facts strong{font-size:16px;margin-top:3px}
#next-app .telescope-main-actions,#next-app .telescope-role-actions{display:flex;flex-wrap:wrap;gap:8px}
#next-app .telescope-main-actions .action-button,#next-app .telescope-role-actions .action-button{font-size:13px;min-height:36px;padding:8px 12px}
#next-app .telescope-role-actions{margin-top:14px;padding-top:12px}
#next-app .telescope-connection{padding:10px 12px;border-radius:10px;background:#14272a;border-color:#375351;margin-bottom:12px}
#next-app .telescope-connection strong{font-size:17px}
#next-app #next-panel-device .telescope-card{display:flex;flex-direction:column;padding:0;gap:12px}
#next-app #next-panel-device .telescope-illustration{padding:0;background:transparent;border:0;gap:4px}
#next-app #next-panel-device .telescope-art{display:none}
#next-app #next-panel-device .telescope-illustration>strong{font-size:15px}
#next-app #next-panel-device .telescope-device-controls{width:100%}
#next-app #next-panel-device .telescope-device-controls h2{font-size:17px}
#next-app #next-panel-device .telescope-main-actions{display:grid;grid-template-columns:1fr 1fr}
#next-app #next-panel-device .telescope-main-actions .action-button{min-width:0;font-size:12px;padding:8px}
#next-app #next-panel-object .object-content{padding:0}
#next-app #next-panel-object .object-facts{grid-template-columns:1fr 1fr;gap:8px}
#next-app #next-panel-sky .sky-identify{height:auto;border:0;background:transparent;border-radius:0;overflow:visible}
#next-app #next-panel-sky .sky-identify-head{padding:0 0 12px;display:flex;flex-direction:column;align-items:stretch}
#next-app #next-panel-sky .sky-identify-content{display:block;overflow:visible;padding:0}
#next-app #next-panel-sky .sky-identify-detail{padding:12px 0;border:0}
#next-app #next-panel-sky .sky-notes{padding:0;margin-top:14px;border:0;background:transparent;font-size:12px;line-height:1.6}
#next-app .settings-nav{display:flex;gap:6px;padding:0 12px 12px;flex:none;border:0;background:transparent;flex-wrap:wrap}
#next-app .settings-nav a{display:inline-flex;background:transparent}
#next-app .settings-nav a[aria-current=page]{background:#29414c;color:#a5eafa;border-color:#45616e}
#next-app .settings-group{flex:none!important;height:auto!important;max-width:1100px;border:0;border-radius:0}
#next-app .settings-group h2{font-size:16px;margin-bottom:4px}
#next-app .settings-group-header{margin-bottom:14px}
#next-app .appearance-layout,#next-app .horizon-layout{padding:0;gap:24px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#next-app .appearance-controls{gap:14px}
#next-app .appearance-preview{min-height:220px;border-radius:12px;padding:18px}
#next-app .horizon-figure{position:static;padding:12px;border-radius:12px;background:var(--next-surface)}
#next-app #horizon-compass{max-height:280px;width:100%}
#next-app .horizon-figure figcaption{font-size:12px;margin-top:8px}
#next-app .horizon-editor h2{font-size:16px}
#next-app .horizon-toggle{font-size:13px;margin-bottom:12px;gap:8px}
#next-app .horizon-row{padding:10px;gap:8px;margin-bottom:8px;border-color:var(--next-border);border-radius:10px;background:var(--next-surface)}
#next-app .horizon-row-title{font-size:12px}
#next-app .horizon-row .field{margin:0;font-size:12px}
#next-app .horizon-row input{font-size:14px}
#next-app .horizon-editor .note,#next-app .horizon-figure .note{font-size:12px;line-height:1.5}
#next-app .sky-workspace .heading{padding:16px 8px;gap:10px}
#next-app .sky-workspace .heading h1{font-size:25px}
#next-app .sky-stage{flex:1;min-height:260px;height:auto;margin:0;border-radius:18px;overflow:hidden;border:1px solid #263b47}
#next-app .sky-selection{min-height:62px;flex:none;background:transparent;border:0;padding:12px 8px;gap:16px}
#next-app .sky-selection h2{font-size:16px}
#next-app .sky-selection .eyebrow{font-size:9px;margin-bottom:4px}
#next-app .sky-selection p{font-size:11px}
#next-app .sky-toolbar,#next-app .sky-layers,#next-app .sky-view-readout{border-radius:var(--glass-radius,14px);border-color:#57727e;background:rgba(18,32,42,var(--glass-opacity,.88));backdrop-filter:blur(var(--glass-blur,12px))}
#next-app .sky-toolbar{padding:6px;gap:4px}
#next-app .sky-toolbar button{border-radius:10px;width:38px;height:38px}
#next-app .sky-survey-label select{font-size:13px;border-radius:10px;background:#12232d;border:1px solid #334f60;padding:8px}
/* Shared, compact dialog chrome; image previews keep a square, unpadded stage. */
#next-app dialog:not(#next-sheet){margin:auto;padding:0;border:1px solid #354650;border-radius:16px;background:#101a22;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);box-shadow:0 24px 80px #0009}
#next-app dialog:not(#next-sheet)::backdrop{background:#02070bd1;backdrop-filter:blur(6px)}
#next-app .viewer-head{height:44px;min-height:44px;gap:12px;padding:6px 12px;border-bottom:1px solid #ffffff0a;background:#101a22}
#next-app .viewer-head>:is(strong,span,h2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:0}
#next-app :is(.viewer-head>button,#archive-files-close,#audio-close,#next-sheet-close){position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:1px solid #ffffff0a;border-radius:50%;background:#ffffff08;color:#b8c9d2;font-size:0;line-height:1;cursor:pointer;transition:background .15s,color .15s}
#next-app :is(.viewer-head>button,#archive-files-close,#audio-close,#next-sheet-close)::before,#next-app :is(.viewer-head>button,#archive-files-close,#audio-close,#next-sheet-close)::after{content:'';position:absolute;left:50%;top:50%;width:12px;height:1.5px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none}
#next-app :is(.viewer-head>button,#archive-files-close,#audio-close,#next-sheet-close)::after{transform:translate(-50%,-50%) rotate(-45deg)}
#next-app :is(.viewer-head>button,#archive-files-close,#audio-close,#next-sheet-close):hover{background:#ffffff14;color:#eef4f6}
#next-app :is(.viewer-head>button,#archive-files-close,#audio-close,#next-sheet-close):focus-visible{outline:2px solid #a4e8f1;outline-offset:3px}
#next-app .next-sheet-head{min-height:48px;gap:12px;padding:8px 14px}
#next-app .next-sheet-head h2{font-size:15px;line-height:1.4}
#next-app #plan-image-dialog{width:min(800px,calc(100vw - 32px),calc(100dvh - 128px));height:fit-content;overflow:hidden;backdrop-filter:none}
#next-app .plan-image-area{flex:0 1 auto;aspect-ratio:1;min-height:0;background:#030608;overflow:hidden}
#next-app #plan-image-large{position:absolute;inset:0;width:100%;height:100%;padding:0;object-fit:contain}
#next-app #plan-image-status{font-size:12px;line-height:1.5;padding:16px;margin:0}
#next-app #plan-image-caption{padding:8px 12px;font-size:11px;line-height:1.5;color:#9aadb8;text-align:center;overflow-wrap:anywhere}
#next-app :is(#viewer,#capture-player){overflow:hidden;background:#080e12}
#next-app .capture-player-controls{padding:10px 14px;background:#101a22;border-color:#ffffff0a}
#next-app .capture-player-facts{font-size:12px}
#next-app :is(.archive-files-header,.audio-header){gap:12px;padding:12px 14px;border-color:#ffffff0a}
#next-app :is(.archive-files-header,.audio-header)>div{min-width:0}
#next-app :is(.archive-files-header,.audio-header) h2{font-size:15px;line-height:1.4}
#next-app .audio-header .eyebrow{font-size:9px;line-height:1.4;margin:0 0 3px}
#next-app .audio-body{padding:14px}
#next-app .audio-intro{font-size:13px;line-height:1.6;margin:0 0 14px}
@media(pointer:coarse){
 #next-app :is(.viewer-head>button,#archive-files-close,#audio-close,#next-sheet-close){flex-basis:44px;width:44px;height:44px;min-width:44px;min-height:44px}
 #next-app .viewer-head{height:56px;min-height:56px}
}
#next-app .next-hidden{display:none!important}
#next-app.viewer-mode .next-operator{display:none!important}
#next-app .next-exit-focus{position:fixed;right:24px;top:20px;z-index:20;background:#172831e8;border-color:#7894a3;backdrop-filter:blur(12px)}
#next-app.next-image-only #image-workspace>.heading,#next-app.next-image-only .image-bottom{display:none!important}
#next-app.next-image-only main{padding:0}
#next-app.next-image-only .console{padding:0}
@media(max-width:1240px){#next-app .topbar{gap:12px}#next-app .brand{font-size:12px}#next-app .brand small{display:none}#next-app .next-nav a{padding:8px 11px}#next-app .top-actions{gap:5px}#next-app .top-actions .next-button{padding:9px 11px;font-size:12px}#next-app .connection{font-size:10px;max-width:145px}}
@media(max-width:1050px){#next-app .top-actions>.next-button[data-next-panel=conditions]{display:none}#next-app .connection{max-width:120px}#next-app .next-nav a{padding:8px 10px}#next-app .telescope-card{gap:24px}#next-app .heading h1{font-size:22px}}
@media(max-width:800px){
 #next-app main{padding:0 12px 10px}#next-app .topbar{height:auto!important;min-height:106px!important;padding:10px 2px!important;gap:9px;flex-wrap:wrap;align-content:center}
 #next-app .brand{font-size:13px;flex:1}#next-app .brand small{display:block;font-size:7px}#next-app .next-nav{order:3;justify-content:center;width:100%;gap:6px;padding:0}#next-app .next-nav a{flex:1;font-size:12px;padding:8px 6px}
 #next-app .top-actions{margin:0;gap:5px}#next-app .top-actions>.next-button[data-next-panel=device]{display:none}#next-app .top-actions>.next-button[data-next-panel=conditions]{display:none}#next-app .connection{max-width:115px;font-size:10px;margin:0}#next-app .quiet{width:30px;height:30px}
 #next-app .heading{padding:18px 8px 14px;gap:12px}#next-app #image-workspace>.heading{padding:12px 4px;min-height:99px;flex-wrap:wrap;gap:9px}#next-app #image-workspace>.heading h1{font-size:22px}#next-app .next-stage-actions{gap:6px}#next-app .next-stage-actions .next-button{padding:9px 10px;font-size:12px}
 #next-app #image-workspace>.heading .phase{font-size:9px;max-width:42%;margin-left:auto}#next-app .next-stage-actions{flex-basis:100%;margin:0}#next-app .next-stage-actions .next-button{flex:1}
 #next-app .image-bottom{min-height:93px;flex-wrap:wrap;gap:4px;padding:8px 2px 0}#next-app #image-caption{max-width:100%;flex-basis:100%;font-size:10px}#next-app .image-view-tools{width:100%;justify-content:space-between;gap:2px}#next-app .image-view-tools .text-button,#next-app .image-view-tools .next-button{font-size:11px;padding:8px 6px;min-height:36px}#next-app #fullscreen{display:none}#next-app #next-focus{padding:8px}
 #next-sheet{inset:auto 8px 8px;width:calc(100vw - 16px);height:min(80dvh,850px);max-height:calc(100dvh - 16px);border-radius:24px}
 #next-app .next-sheet-head{padding:18px 20px}#next-app .next-sheet-body{padding:20px}#next-app .next-close{min-height:40px;padding:10px 14px}
 #next-app .planning-content,#next-app .journal-content,#next-app .archive-content,#next-app .object-content,#next-app .settings-group{padding:16px 8px}#next-app .telescope-card{display:flex;flex-direction:column;padding:16px 8px;gap:22px}#next-app .telescope-illustration{padding:14px}#next-app .telescope-art{max-width:125px}#next-app .telescope-device-controls{width:100%}#next-app .telescope-device-facts{margin-bottom:16px}
 #next-app .appearance-layout,#next-app .horizon-layout{grid-template-columns:1fr;gap:24px}#next-app .appearance-preview{min-height:200px}#next-app .settings-nav{padding:6px 8px}#next-app .plan-entry{padding:10px;gap:10px}#next-app .plan-entry>.field input{font-size:14px!important;padding:8px!important}#next-app .plan-automation,#next-app .plan-results{padding:12px}#next-app .object-facts{grid-template-columns:1fr}
 #next-app .sky-workspace .heading{padding:12px 4px;flex-wrap:wrap}#next-app .sky-workspace .heading h1{font-size:21px}#next-app .sky-survey-label{margin-left:auto}#next-app .sky-stage{min-height:220px}#next-app .sky-selection{flex-wrap:wrap;padding:10px 4px;gap:8px}#next-app .sky-selection .action-button{font-size:11px}#next-app .sky-view-readout{max-width:65%;font-size:10px}#next-app #next-panel-menu .next-link{min-height:44px}
}
@media(max-width:800px){#next-app .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:40px 44px!important;height:106px!important;gap:6px 9px!important}#next-app .topbar .brand{grid-column:1!important;grid-row:1!important;min-width:0}#next-app .topbar .top-actions{grid-column:2!important;grid-row:1!important;flex:none}#next-app .topbar .next-nav{grid-column:1/-1!important;grid-row:2!important;width:100%;min-width:0}#next-app .next-nav a{min-width:0}}
@media(max-width:400px){#next-app .brand small{display:none}#next-app .brand{font-size:11px;gap:6px}#next-app .brand-icon{font-size:22px}#next-app .connection{font-size:9px;max-width:100px}#next-app .top-actions .next-button{padding:8px 9px}#next-app .quiet{display:none}#next-app .next-nav a{font-size:11px}#next-app .image-view-tools{flex-wrap:wrap;justify-content:flex-start;gap:3px}#next-app #next-focus{margin-left:auto}#next-app .image-bottom{min-height:102px}#next-app .next-stage-actions .next-button{font-size:11px;padding:9px 5px}#next-app .coordinate-grid{grid-template-columns:1fr!important}}
@media(pointer:coarse){#next-app .viewer-ticker{height:44px;min-height:44px}#next-app .viewer-ticker button{width:40px;height:40px}#next-app .next-button,#next-app .action-button,#next-app .next-link,#next-app .text-button,#next-app .next-nav a{min-height:44px}#next-app input,#next-app select,#next-app .field input,#next-app .field select{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){#next-app *,#next-app *::before,#next-app *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(prefers-reduced-transparency:reduce){#next-sheet,#next-app .sky-toolbar,#next-app .sky-layers,#next-app .sky-view-readout{background:#12212b;backdrop-filter:none}}
@supports not (backdrop-filter:blur(1px)){#next-sheet{background:#111d25}}
/* Responsive density: retain comfortable touch targets and natural text wrapping. */
@media(max-width:1100px){
 #next-app .journal-card{grid-template-columns:minmax(0,1fr) 250px;gap:8px 14px}
 #next-app .journal-overview .journal-preview{width:88px;height:88px}
 #next-app .journal-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px}
 #next-app .next-journal-technical{grid-template-columns:repeat(2,minmax(0,1fr))}
 #next-app .archive-summary>div{padding:0 14px}
}
@media(max-width:1000px){#next-app .journal-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 #next-app .heading h1{font-size:21px}
 #next-app .planning-content,#next-app .journal-content,#next-app .archive-content,#next-app .object-content,#next-app .settings-group{padding:4px 8px 16px}
 #next-app .journal-toolbar,#next-app .archive-toolbar{align-items:stretch;gap:8px}
 #next-app .journal-toolbar .field,#next-app .archive-toolbar .field{width:100%;flex-wrap:wrap}
 #next-app .journal-toolbar select,#next-app .archive-toolbar input{width:100%;min-width:0}
 #next-app .journal-summary,#next-app .archive-summary{gap:8px 18px}
 #next-app .journal-summary>div,#next-app .archive-summary>div{padding:0;border:0;gap:6px}
 #next-app .journal-summary strong,#next-app .archive-summary strong{font-size:15px}
 #next-app .journal-entry{grid-template-columns:1fr;gap:5px}
 #next-app .journal-clock{display:flex;align-items:baseline;gap:8px;padding:0;border:0}
 #next-app .journal-clock small{margin:0}
 #next-app .journal-card{grid-template-columns:minmax(0,1fr) 220px;padding:10px;gap:8px 12px}
 #next-app .journal-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #next-app .journal-events{gap:10px 18px}
 #next-app .plan-fields{grid-template-columns:1fr}
 #next-app .plan-entry{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr) 24px}
 #next-app .plan-thumbnail{grid-column:1;grid-row:1/span 2;width:48px;height:48px}
 #next-app .plan-entry-target{grid-column:2/span 2}
 #next-app .plan-remove{grid-column:4;grid-row:1/span 2}
 #next-app .object-facts{grid-template-columns:1fr 1fr}
 #next-app #telescope-panel{padding:14px 8px;gap:12px;grid-template-columns:1fr}
 #next-app #pointing-status,#next-app #telescope-panel>.battery-head,#next-app #telescope-panel>progress,#next-app #telescope-panel>#power,#next-app #telescope-panel>.sensor-grid{grid-column:1;grid-row:auto}
 #next-app .telescope-card{padding:4px 8px 16px;gap:14px}
 #next-app .telescope-illustration{align-self:stretch;flex-direction:row;gap:12px;padding:10px}
 #next-app .telescope-art{max-width:72px}
}
@media(max-width:560px){
 #next-app .journal-card{grid-template-columns:1fr}
 #next-app .journal-overview .journal-preview{width:80px;height:80px}
 #next-app .journal-overview .journal-image{gap:12px}
 #next-app .journal-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
 #next-app .journal-facts dt{font-size:11px}
 #next-app .journal-facts dd{font-size:13px}
 #next-app .next-journal-technical{grid-template-columns:1fr 1fr}
 #next-app .archive-grid{grid-template-columns:1fr}
 #next-app .archive-card{grid-template-columns:80px minmax(0,1fr);padding:10px}
 #next-app .archive-preview{width:80px;height:80px}
 #next-app .journal-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 #next-app .journal-gallery .journal-preview{height:120px}
 #next-app .archive-file-row{grid-template-columns:minmax(0,1fr) auto;gap:6px}
 #next-app .archive-file-row>span{grid-column:1/-1}
}

/* One-step target intake and a reversible night proposal. */
#next-app .next-plan-selection{border:1px solid var(--next-border);border-radius:10px;background:#14252d;padding:12px;margin:12px 0}
#next-app .next-plan-selection>.note{margin:0 0 10px}
#next-app .next-plan-selection .field{max-width:180px}
#next-app .next-plan-proposal{font-size:13px;line-height:1.55;margin:8px 0 12px;color:var(--muted)}
#next-app .next-plan-proposal[data-state=ready]{color:#a8dfc5}
#next-app .next-plan-proposal[data-state=blocked]{color:#edc486}
#next-app .next-plan-selection button{margin:0 6px 0 0}
#next-app .next-direct-controls{margin:14px 0;border-top:1px solid var(--next-border);padding-top:10px}
#next-app .next-direct-controls>summary{cursor:pointer;font-size:12px;color:var(--muted)}
#next-app .next-direct-controls .target-observation-actions{margin:10px 0;padding:0;border:0}
#next-app #plan-date+button{justify-self:start;margin-top:3px;min-height:28px;font-size:12px;padding:4px 8px}
#next-app #next-plan-map-note{font-size:12px;line-height:1.45;color:#b8d9df;max-width:1000px;margin-top:4px}

#next-app .next-plan-selection .target-preview{padding:0;margin:0 0 8px;border:0;border-radius:0;background:transparent;gap:4px}
#next-app .next-plan-selection .target-preview h3{display:none}
#next-app .next-plan-selection .target-preview>strong{font-size:16px}
#next-app .next-plan-selection .target-preview summary{font-size:12px;padding:2px 0}
#next-app .next-plan-selection .field{display:flex;flex-direction:row;align-items:center;justify-content:space-between;max-width:none;gap:12px}
#next-app .next-plan-selection .field input{width:90px;min-width:0}
#next-app .next-stellarium-import{margin:12px 0;font-size:12px;color:var(--muted)}
#next-app .next-stellarium-import>summary{cursor:pointer;padding:6px 0}
#next-app .next-stellarium-import .stellarium-import{border:0;margin:4px 0;padding:0}
#next-app #plan-date+button{align-self:flex-start}

#next-app .next-night-guidance{font-size:12px;line-height:1.5;color:var(--amber);margin:4px 0 10px}

/* Edge graduations exist only inside maps enhanced by the new shell. */
#next-sky-rulers{position:absolute;inset:0;width:100%;height:100%;z-index:5;pointer-events:none}
.next-map-rulers #sky-object-label{right:54px;bottom:46px}
.next-map-rulers .aladin-logo-container{right:54px!important}
#next-app .next-ruler-active .sky-view-readout{bottom:44px;max-width:calc(100% - 108px)}
@media(max-width:620px){.next-map-rulers #sky-object-label{left:10px;right:54px;bottom:190px;max-width:none}}

#next-app .next-sky-source{color:#d5bd92;font-size:10px;line-height:1.4}

#next-app .next-ruler-active .sky-layers{right:54px}
.next-map-rulers .horizontal-coordinate:not(.compass-direction){display:none}

/* Half-transparent obstruction shade; map interactions and edge scales stay above/through it. */
#next-sky-range-mask{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}

/* Separate current sky geometry from the observing site's fixed restrictions. */
#next-app .sky-layers[open]{width:282px;max-width:calc(100% - 66px);max-height:calc(100% - 76px);overflow-y:auto;box-sizing:border-box}
#next-app .next-overlay-group{border:0;border-top:1px solid #ffffff12;padding:6px 0 3px;margin:0 10px;min-width:0}
#next-app .next-overlay-group legend{padding:0 6px;color:#a9bdc8;font-size:10px;font-weight:650;letter-spacing:.04em}
#next-app .next-overlay-group label{margin:0;padding:3px 4px;font-size:12px;line-height:16px}
#next-app .next-overlay-group .next-overlay-note{margin:2px 4px 4px;color:#8fa4b0;font-size:10px;line-height:1.4}

#next-app .sky-toolbar .sky-horizon-button{width:auto;white-space:nowrap;flex-shrink:0}
@media(pointer:coarse){#next-app .next-overlay-group label{min-height:36px;box-sizing:border-box}}

/* Map time is a compact overlay, with an explicit preview badge and one-click return to live. */
#next-app #next-map-time-open.is-preview{border-color:#a78750;color:#efcda8}
#next-app .next-map-preview,#next-app .next-map-comet-time{color:#efcda8}
#next-app .next-map-comet-time{font-size:10px;line-height:1.4}
#next-app .next-map-now{align-self:start;justify-self:start;width:auto;padding:3px 8px!important;font-size:10px;border:1px solid #a78750;border-radius:7px;background:transparent;color:#efcda8}
#next-app .next-map-time-preview{border-color:#7e6746}
#next-sheet[data-panel="time"]{width:min(380px,calc(100vw - 32px));height:fit-content}
#next-sheet .next-map-time-form{display:grid;gap:10px}
#next-sheet .next-map-time-form .field{display:grid;gap:6px;font-size:12px}
#next-sheet .next-map-time-form input{width:100%;box-sizing:border-box;font-size:15px;padding:9px 10px;border-radius:10px;background:#0c181f;border:1px solid #36505e;color:var(--ink);color-scheme:dark}
#next-sheet .next-map-time-form .note{font-size:12px;line-height:1.45;margin:0}
#next-sheet .next-map-time-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:4px}
#next-sheet .next-map-time-error{font-size:12px;line-height:1.45;color:#efcda8;margin:0}

/* Catalogue results stay compact even when an entire night includes thousands of objects. */
#next-app .next-visible-page{margin:6px 0;font-size:11px;color:var(--muted)}
#next-app #next-visible-more,#next-app #next-visible-retry{width:auto;margin:4px 0 8px;padding:7px 11px;font-size:12px}
#next-app #visible-targets-status,#next-app #visible-targets-period{font-size:11px;line-height:1.45}
#next-app #visible-targets-category{min-width:0;width:100%;max-width:100%}

/* Keep catalogue totals and night context within reach for long result sets. */
#next-app #visible-targets-list{max-height:min(40vh,340px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#next-app #visible-targets-list li+li{margin-top:4px;border-top:0}
#next-app #visible-targets-list button{padding:8px 10px;border-radius:8px;gap:2px}

#next-app .next-sky-orientations{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding-top:10px;border-top:1px solid var(--next-border)}
#next-app .next-sky-orientations button{width:100%;font-size:11px;padding:7px 9px;text-align:left}
#next-app #sky-horizon-view[aria-pressed="true"]{color:var(--next-accent);background:#18313b}

/* Live telemetry: compact instrument panel, with motion tied to verified live state. */
#next-app .next-live{--live-accent:#87e3e6;--live-progress:0;position:relative;isolation:isolate;display:flex;flex-direction:column;flex:1 0 auto;overflow:hidden;padding:12px;border:1px solid #31505c;border-radius:14px;background:radial-gradient(ellipse at 8% 0%,#17444d66,transparent 66%),linear-gradient(145deg,#13242c,#0c161e);box-shadow:inset 0 1px 0 #b5faff0d,0 6px 24px #0002;font-variant-numeric:tabular-nums}
#next-app .next-live::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(110deg,transparent 25%,#71f9f008 45%,transparent 65%);transform:translateX(-110%);pointer-events:none}
#next-app .next-live[data-state=live]::before,#next-app .next-live[data-state=moving]::before,#next-app .next-live[data-state=aligning]::before{animation:next-live-scan 7s linear infinite}
#next-app .next-live-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;margin-bottom:9px}
#next-app .next-live h2{margin:0!important;color:#d8f6f6;font-size:11px!important;line-height:1.4;letter-spacing:.07em;text-transform:uppercase;font-weight:600}
#next-app .next-live-status{display:flex;align-items:center;gap:5px;font-size:10px;line-height:1.4;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
#next-app .next-live-dot{width:5px;height:5px;flex:none;border-radius:50%;background:#62747d}
#next-app .next-live[data-state=live] .next-live-dot{background:var(--live-accent);box-shadow:0 0 9px #87e3e680;animation:next-live-beacon 2s ease-in-out infinite}
#next-app .next-live-clock{text-align:right;white-space:nowrap}
#next-app .next-live-clock>span{display:block;color:#8da5b1;font-size:9px;line-height:1.3}
#next-app .next-live-clock time{display:block;margin-top:2px;font-size:19px;line-height:1.1;font-weight:500;color:#e6f9fb;letter-spacing:.025em}
#next-app .next-live-main{display:grid;grid-template-columns:minmax(72px,.8fr) minmax(0,1.6fr);flex:1;align-items:center;align-content:center;gap:12px;min-width:0;min-height:96px}
#next-app .next-live-orbit{position:relative;justify-self:center;width:100%;max-width:144px;aspect-ratio:1;height:auto;border-radius:50%;background:radial-gradient(circle,#2d80801c 0%,transparent 65%)}
#next-app .next-live-orbit svg{position:absolute;inset:0;display:block;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
#next-app .next-live-track{stroke:#304651;stroke-width:2;stroke-dasharray:1 3}
#next-app .next-live-arc{stroke:var(--live-accent);stroke-width:3;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--live-progress));transition:stroke-dashoffset .22s linear;filter:drop-shadow(0 0 3px #87e3e650)}
#next-app .next-live-orbit-text{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:9px;gap:4px;pointer-events:none}
#next-app .next-live-orbit-text strong{font-size:22px;line-height:1;color:#d3f9f6;font-weight:500;white-space:nowrap}
#next-app .next-live-orbit-text span{font-size:9px;line-height:1.25;color:#8daeb7;max-width:90px}
#next-app .next-live-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 10px;margin:0!important;min-width:0}
#next-app .next-live-facts>div{display:flex!important;flex-direction:column;align-items:flex-start;gap:0;min-width:0;padding:0!important;border:0!important;background:none!important}
#next-app .next-live-facts dt{font-size:10px;line-height:1.2;color:#8da5b1;white-space:nowrap}
#next-app .next-live-facts dd{font-size:16px;line-height:1.15;color:#dceef3;margin:4px 0 0;white-space:nowrap;font-weight:500;letter-spacing:.01em}
#next-app .next-live-sessions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:9px;padding-top:8px;border-top:1px solid #a3e8e514}
#next-app .next-live-sessions>div{min-width:0}
#next-app .next-live-sessions span{display:block;color:#8da5b1;font-size:10px;line-height:1.2}
#next-app .next-live-sessions strong{display:block;margin-top:4px;font-size:17px;line-height:1.1;font-weight:500;letter-spacing:.025em;color:#dceef3;white-space:nowrap}
#next-app .next-live-note{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px;line-height:1.25;margin:8px 0 0!important;color:#718f9c}
#next-app .next-live[data-state=delayed],#next-app .next-live[data-state=moving],#next-app .next-live[data-state=aligning]{--live-accent:#e5bc7c;border-color:#7c633d66}
#next-app .next-live[data-state=delayed] .next-live-dot,#next-app .next-live[data-state=moving] .next-live-dot,#next-app .next-live[data-state=aligning] .next-live-dot{background:var(--live-accent)}
#next-app .next-live[data-state=offline]{--live-accent:#697f8b;border-color:#33434e;background:#101a21}
#next-app .next-live[data-state=idle] .next-live-arc,#next-app .next-live[data-state=waiting] .next-live-arc,#next-app .next-live[data-state=moving] .next-live-arc,#next-app .next-live[data-state=aligning] .next-live-arc,#next-app .next-live[data-state=offline] .next-live-arc{opacity:0}
@keyframes next-live-scan{to{transform:translateX(110%)}}
@keyframes next-live-beacon{50%{box-shadow:0 0 0 4px #87e3e610,0 0 12px #87e3e630}}
@media(prefers-reduced-motion:reduce){#next-app .next-live::before,#next-app .next-live-dot{animation:none!important}#next-app .next-live-arc{transition:none!important}}

@media(max-height:800px){
 #next-app .next-live{padding:9px}
 #next-app .next-live-head{margin-bottom:6px}
 #next-app .next-live-status{margin-top:2px}
 #next-app .next-live-main{gap:10px;min-height:82px}
 #next-app .next-live-orbit-text{padding:7px;gap:3px}
 #next-app .next-live-orbit-text strong{font-size:20px}
 #next-app .next-live-facts{gap:7px 10px}
 #next-app .next-live-facts dd{font-size:15px;margin-top:3px}
 #next-app .next-live-sessions{margin-top:6px;padding-top:6px}
 #next-app .next-live-sessions strong{font-size:16px;margin-top:3px}
 #next-app .next-live-note{margin-top:5px!important}
}

/* Catalogue auto planner: compact options and a reviewable, editable night proposal. */
#next-app #next-sheet[data-panel=autoplan]{width:min(860px,calc(100vw - 32px))}
#next-app .next-auto-intro{font-size:13px;line-height:1.5;color:var(--muted);margin:0 0 12px}
#next-app .next-auto-form{display:grid;grid-template-columns:170px minmax(180px,1fr) auto;align-items:end;gap:12px;margin:0}
#next-app .next-auto-form .field{margin:0;gap:6px}
#next-app .next-auto-form .field>span{font-size:11px}
#next-app .next-auto-form input,#next-app .next-auto-form select{font-size:14px;height:38px;min-height:38px;padding:7px 10px}
#next-app .next-auto-form button{min-height:38px;max-width:240px}
#next-app .next-auto-scope{font-size:11px;line-height:1.45;color:var(--muted);margin:6px 0}
#next-app .next-auto-status{font-size:12px;line-height:1.5;margin:12px 0;color:#9fb7c1}
#next-app .next-auto-status[data-state=error],#next-app .next-auto-warning{color:#edc38a}
#next-app .next-auto-status[data-state=busy]{color:#a9e8ec;animation:next-auto-pulse 1.6s ease-in-out infinite}
#next-app .next-auto-results{border-top:1px solid #2d424c;padding-top:10px;margin-top:10px}
#next-app .next-auto-results h3{font-size:16px;line-height:1.3;margin:0}
#next-app .next-auto-night{font-size:12px;line-height:1.5;margin:4px 0 10px;color:#a1bcc6}
#next-app .next-auto-timeline{height:5px;display:flex;gap:3px;margin:0 0 12px;border-radius:4px;overflow:hidden}
#next-app .next-auto-timeline span{flex-basis:0;background:#79cdd5;border-radius:3px;min-width:2px}
#next-app .next-auto-timeline span:nth-child(3n+2){background:#8ca9e1}#next-app .next-auto-timeline span:nth-child(3n){background:#85c5ad}
#next-app .next-auto-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
#next-app .next-auto-list>li{display:grid;grid-template-columns:minmax(0,1fr) 130px 160px;align-items:center;gap:14px;padding:9px 12px;border:1px solid #293d47;border-radius:10px;background:#14232b}
#next-app .next-auto-list>li>div{min-width:0;display:flex;flex-direction:column;gap:4px}
#next-app .next-auto-list strong{font-size:13px;line-height:1.3;font-weight:600;overflow-wrap:anywhere}
#next-app .next-auto-list span{font-size:11px;line-height:1.35;color:#91a8b5}
#next-app .next-auto-time,#next-app .next-auto-altitude{font-variant-numeric:tabular-nums}
#next-app .next-auto-altitude strong{color:#a1d8df}
#next-app .next-auto-warning{font-size:12px;line-height:1.5;margin:12px 0}
#next-app .next-auto-actions{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#101d25f5;border-top:1px solid #2b404a;padding:12px 0 0;margin-top:12px}
#next-app .next-auto-actions>p{flex-basis:100%;margin:0}#next-app .next-auto-actions>.next-auto-scope{flex:1 1 250px}
#next-app .next-auto-replace{font-size:12px;line-height:1.5;color:#e7c58d}
#next-app .next-auto-actions>button{margin-left:auto}
@keyframes next-auto-pulse{50%{opacity:.55}}
@media(max-width:650px){#next-app .next-auto-form{grid-template-columns:1fr 1fr}#next-app .next-auto-form button{grid-column:1/-1;max-width:none}#next-app .next-auto-list>li{grid-template-columns:minmax(0,1fr) 120px;gap:8px}#next-app .next-auto-altitude{grid-column:1/-1;flex-direction:row!important;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){#next-app .next-auto-status[data-state=busy]{animation:none}}

/* Durable night outcomes: failures stay visible outside technical disclosures. */
#next-app .next-journal-log{padding:10px 12px;margin:0 0 14px;border:1px solid #554331;border-radius:10px;background:#1c1c1b}
#next-app .next-journal-log h2{font-size:14px;margin:0 0 8px}
#next-app .next-journal-events{list-style:none;padding:0;margin:0;display:grid;gap:7px}
#next-app .next-journal-events li{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;font-size:12px;line-height:1.4}
#next-app .next-journal-events time{font-variant-numeric:tabular-nums;color:#c5a67c}
#next-app .next-journal-events strong{font-weight:550;color:#e9d6bc}
#next-app .next-journal-events span,#next-app .next-journal-events small{display:block;color:#b5bdc1}
#next-app .next-journal-events small{font-size:10px;color:#929da5;overflow-wrap:anywhere}
#next-app .next-journal-log details{margin:8px 0 0;border-top:1px solid #ffffff12;padding-top:6px}
#next-app .next-journal-log summary{font-size:11px;color:#b7c6ce;cursor:pointer;margin-bottom:5px}
#next-app .next-journal-reason{font-size:12px;line-height:1.45;margin:7px 0 0;color:#efb6a8}
#next-app .next-journal-reason strong{font-weight:500}
#next-app .next-journal-reason small{display:block;font-size:10px;color:#b49d98;overflow-wrap:anywhere}
#next-app .next-journal-clock-note{font-size:10px;line-height:1.4;margin:6px 0 0;color:#c9ae80}

#next-app .next-journal-events li>div{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,1.4fr);column-gap:12px;min-width:0}
#next-app .next-journal-events strong{grid-column:1;overflow-wrap:anywhere}
#next-app .next-journal-events span,#next-app .next-journal-events small{grid-column:2}
#next-app .next-journal-source{font-size:10px;line-height:1.4;color:#929da5;margin:6px 0 0}
@media(max-width:700px){#next-app .next-journal-events li>div{grid-template-columns:minmax(0,1fr)}#next-app .next-journal-events span,#next-app .next-journal-events small{grid-column:1}}

/* A previous-image notice does not describe the selected historical night. */
#next-app:has(#journal-workspace:not([hidden])) #alert.informational{display:none!important}

/* Glass labels sit above the existing 100–400% image transform in image-only mode. */
#next-app .next-photo-hud{display:none}
#next-app.next-image-only .image-navigation{position:relative}
#next-app.next-image-only .next-photo-hud{display:block;position:absolute;inset:0;z-index:6;pointer-events:none;color:#f1f6f3;text-shadow:0 1px 8px #0008}
#next-app .next-photo-hud[hidden],#next-app .next-photo-hud [hidden]{display:none!important}
#next-app .next-hud-glass{background:linear-gradient(135deg,#23352f38,#0b151e70);border:1px solid #e0f5e52e;box-shadow:inset 0 1px 0 #ffffff10,0 8px 28px #0002;backdrop-filter:blur(12px) saturate(125%);-webkit-backdrop-filter:blur(12px) saturate(125%);border-radius:18px}
#next-app .next-hud-plan{position:absolute;left:22px;top:24px;bottom:24px;width:clamp(186px,18vw,250px);display:flex;flex-direction:column;gap:12px;pointer-events:auto;min-height:0}
#next-app .next-hud-plan-head{flex:none;display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;padding:13px 16px}
#next-app .next-hud-plan-head>strong{font-size:11px;letter-spacing:1.6px;text-transform:uppercase;font-weight:600}
#next-app .next-hud-plan-head>span{margin-left:auto;font-size:11px;color:#d5e1dc}
#next-app .next-hud-plan-head>small{width:100%;font-size:9px;color:#b9c7c0}
#next-app .next-hud-timeline{list-style:none;padding:0 3px 8px 0;margin:0;display:flex;flex-direction:column;gap:10px;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#d9f6e24a transparent}
#next-app .next-hud-plan-item{position:relative;padding:13px 16px;flex:none;transition:background .2s,border-color .2s}
#next-app .next-hud-plan-top{display:flex;align-items:baseline;gap:10px;min-width:0}
#next-app .next-hud-plan-top>strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#next-app .next-hud-number{font-size:9px;letter-spacing:1px;color:#becbc4;font-variant-numeric:tabular-nums}
#next-app .next-hud-times{display:flex;align-items:center;gap:9px;margin:5px 0 2px 25px;font-size:13px;font-variant-numeric:tabular-nums;letter-spacing:.3px}
#next-app .next-hud-time-dash{color:#b8c9bf8a}
#next-app .next-hud-next-day{font-size:9px;color:#c4d4cc}
#next-app .next-hud-state{display:block;margin-left:25px;font-size:10px;color:#b8c8c1}
#next-app .next-hud-plan-item.is-active{background:linear-gradient(135deg,#a4f7b940,#8cddaf26);border-color:#bcffce8a;box-shadow:inset 0 1px 0 #edfff426,0 5px 28px #94f8ad12}
#next-app .next-hud-plan-item.is-active :is(strong,time,.next-hud-state){color:#d9ffe3}
#next-app .next-hud-plan-item.is-active .next-hud-state::before{content:"";display:inline-block;width:5px;height:5px;margin-right:6px;vertical-align:1px;background:#beffd0;border-radius:50%;box-shadow:0 0 8px #abffc67a}
#next-app .next-hud-empty{font-size:12px;padding:14px 16px;margin:0}
#next-app .next-hud-images{position:absolute;right:22px;top:80px;bottom:24px;width:142px;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:12px;pointer-events:auto;min-height:0}
#next-app .next-hud-counter{flex:none;display:flex;align-items:center;flex-direction:column;text-align:center;padding:14px 10px 12px}
#next-app .next-hud-eyebrow{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;letter-spacing:1px;color:#d4e3db}
#next-app .next-hud-count{font-size:32px;line-height:1.2;font-weight:500;letter-spacing:-1px;font-variant-numeric:tabular-nums;margin:5px 0 2px}
#next-app .next-hud-caption{font-size:10px;color:#c0d0c7}
#next-app .next-hud-filename{font-size:9px;color:#adbbb3;margin-top:6px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#next-app .next-hud-browser{display:flex;flex-direction:column;align-items:center;padding:14px 9px 12px;min-height:160px;max-height:390px;flex:1;position:relative}
#next-app .next-hud-position{font-size:10px;color:#d4e3db;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;flex:none}
#next-app input.next-hud-range{writing-mode:vertical-lr;direction:rtl;width:36px;min-height:65px;height:100%;flex:1;margin:16px 0 13px;cursor:ns-resize;accent-color:#bef4cd;background:transparent;padding:0;border:0;touch-action:none}
#next-app .next-hud-range:focus-visible{outline:2px solid #d4ffe0;outline-offset:5px;border-radius:20px}
#next-app .next-hud-range:disabled{opacity:.35;cursor:default}
#next-app .next-hud-range-ends{position:absolute;right:13px;top:49px;bottom:64px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none;font-size:8px;color:#c0d2c8}
#next-app .next-hud-live{font:inherit;font-size:11px;min-height:32px;padding:5px 10px;border-radius:12px;border:1px solid #d6fce140;background:#c3f8d214;color:#e0ffeb;text-shadow:0 1px 6px #0008;white-space:nowrap}
#next-app .next-hud-live[aria-pressed=true]{background:#b7f2c52a;border-color:#cbffdb70;color:#d4ffe1}
#next-app .next-hud-live:focus-visible{outline:2px solid #d4ffe0;outline-offset:3px}
#next-app .next-hud-notice{font-size:9px;color:#e2e9db;text-align:center;margin-top:7px;line-height:1.3}
#next-app .image-stage.main-capture-active.next-hud-loading>#image{display:block!important}
#next-app .image-stage.next-hud-loading>#main-capture-empty{display:none!important}
@media(max-height:640px){#next-app .next-hud-plan{top:16px;bottom:16px;gap:8px}#next-app .next-hud-timeline{gap:7px}#next-app .next-hud-plan-item{padding:9px 13px}#next-app .next-hud-plan-head{padding:10px 13px}#next-app .next-hud-images{top:66px;bottom:16px;gap:8px}#next-app .next-hud-counter{padding:9px}#next-app .next-hud-count{font-size:25px}}
@media(max-width:600px){#next-app .next-hud-plan{left:10px;top:12px;width:154px}#next-app .next-hud-plan-item{padding:10px}#next-app .next-hud-plan-head{padding:10px}#next-app .next-hud-plan-head>strong{font-size:9px}#next-app .next-hud-plan-top>strong{font-size:12px}#next-app .next-hud-times{font-size:11px;gap:5px;margin-left:22px}#next-app .next-hud-state{font-size:9px;margin-left:22px}#next-app .next-hud-images{right:10px;width:106px;top:64px;bottom:12px}#next-app .next-hud-position{font-size:9px}#next-app .next-hud-caption{font-size:9px}}
@media(prefers-reduced-transparency:reduce){#next-app .next-hud-glass{background:#14231ee8;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){#next-app .next-hud-plan-item{transition:none}}

/* The focus image extends to the viewport; the glass controls remain above it. */
#next-app.next-image-only .image-navigation{border:0;border-radius:0}
#next-app.next-image-only .next-hud-glass{background:linear-gradient(135deg,#23352f2a,#0b151e50)}
#next-app.next-image-only .next-hud-plan-item.is-active{background:linear-gradient(135deg,#a4f7b934,#8cddaf20)}
@media(prefers-reduced-transparency:reduce){#next-app.next-image-only .next-hud-glass{background:#14231e}#next-app.next-image-only .next-hud-plan-item.is-active{background:#355442}}

#next-app .next-hud-exposure{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:4px 8px;border:1px solid #d6fce135;border-radius:10px;background:#b7f2c51a;color:#e0f6e6;font-size:10px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}

/* The battery fills with an estimated image cadence, not an inferred shutter start. */
#next-app .next-hud-exposure{position:relative;border-radius:12px;background:linear-gradient(to right,#a7f4bc70 0 var(--exposure-progress,0%),#b7f2c51a var(--exposure-progress,0%) 100%);transition:background .2s linear}
#next-app .next-hud-exposure-note{font-size:9px;line-height:1.25;margin-top:4px;color:#c5dacd}
#next-app .next-hud-exposure-note[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){#next-app .next-hud-exposure{transition:none}}

/* The battery icon shows only the actual reported telescope charge level. */
#next-app .next-hud-battery{display:flex;align-items:center;justify-content:center;gap:10px;flex:none;min-height:49px;padding:8px 12px}
#next-app .next-hud-battery-icon{position:relative;display:block;width:32px;height:16px;padding:2px;border:1px solid #d6fce190;border-radius:4px;flex:none}
#next-app .next-hud-battery-icon::after{content:'';position:absolute;right:-4px;top:4px;width:3px;height:6px;border-radius:0 2px 2px 0;background:#d6fce190}
#next-app .next-hud-battery-fill{display:block;width:var(--battery-level,0%);height:100%;border-radius:2px;background:#b6f1c7;max-width:100%}
#next-app .next-hud-battery[data-fresh=false] .next-hud-battery-fill{background:#aabdb2}
#next-app .next-hud-battery-info{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:0 5px}
#next-app .next-hud-battery-label{font-size:10px;color:#c0d0c7}
#next-app .next-hud-battery-value{font-size:12px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
#next-app .next-hud-battery-state{grid-column:1 / -1;font-size:9px;color:#c1d8ca}
#next-app .next-hud-battery-state[hidden]{display:none!important}
@media(max-width:600px){#next-app .next-hud-battery{gap:7px;padding:7px}#next-app .next-hud-battery-icon{width:25px}}

/* A bolt inside the charge gauge is shown only while charging is confirmed. */
#next-app .next-hud-battery-bolt{position:absolute;left:50%;top:50%;width:8px;height:12px;transform:translate(-50%,-50%);background:#123b28;clip-path:polygon(56% 0,5% 55%,41% 55%,28% 100%,95% 39%,59% 39%,75% 0);filter:drop-shadow(1px 0 0 #f2fff4) drop-shadow(-1px 0 0 #f2fff4)}
#next-app .next-hud-battery-bolt[hidden]{display:none!important}

/* Keep the two existing camera tiles on top of the photograph in focus mode. */
#next-app.next-image-only{--focus-camera-height:clamp(190px,38vh,330px)}
#next-app.next-image-only .capture-stage .next-camera-rail{display:block!important;position:absolute;left:22px;bottom:20px;width:clamp(186px,18vw,250px);height:var(--focus-camera-height);max-height:none;overflow:hidden;padding:0;z-index:8;transition:transform .38s ease,opacity .3s ease}
#next-app.next-image-only .next-camera-rail .next-camera-scroll{display:flex!important;flex-direction:column;gap:8px;height:100%;overflow:hidden}
#next-app.next-image-only .next-camera-scroll>:not([hidden]){flex:1 1 0;min-height:0;overflow:hidden}
#next-app.next-image-only .next-camera-rail .webcam-tile{height:100%;min-height:0;gap:4px;padding:6px!important;background:#101a21bf;border-color:#e0f5e52e;border-radius:13px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
#next-app.next-image-only .next-camera-rail .webcam-tile h2{font-size:10px;line-height:1.25}
#next-app.next-image-only .next-camera-rail .webcam-thumb{height:auto;min-height:0;aspect-ratio:auto;flex:1 1 0}
#next-app.next-image-only .next-camera-rail .webcam-tile small{font-size:9px!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#next-app.next-image-only .next-camera-rail .webcam-tile small a{color:inherit}
#next-app.next-image-only .next-hud-plan{bottom:calc(var(--focus-camera-height) + 32px)}
#next-app.next-image-only .next-hud-plan-head{padding:10px 13px}
#next-app.next-image-only .next-hud-timeline{gap:7px}
#next-app.next-image-only .next-hud-plan-item{padding:7px 12px}
#next-app.next-image-only .next-hud-times{margin-top:2px;margin-bottom:0}
#next-app.next-image-only .next-hud-plan,#next-app.next-image-only .next-hud-images,#next-app.next-image-only .next-exit-focus{transition:transform .38s ease,opacity .3s ease}
#next-app.next-image-only.next-overlays-hidden .next-hud-plan,#next-app.next-image-only.next-overlays-hidden .capture-stage .next-camera-rail{transform:translateX(calc(-100% - 32px));opacity:0;pointer-events:none}
#next-app.next-image-only.next-overlays-hidden .next-hud-images{transform:translateX(calc(100% + 32px));opacity:0;pointer-events:none}
#next-app.next-image-only.next-overlays-hidden .next-exit-focus{transform:translateY(calc(-100% - 32px));opacity:0;pointer-events:none}
@media(max-width:600px){#next-app.next-image-only .capture-stage .next-camera-rail{left:10px;bottom:12px;width:154px}#next-app.next-image-only .next-hud-plan{bottom:calc(var(--focus-camera-height) + 24px)}}
@media(prefers-reduced-motion:reduce){#next-app.next-image-only .next-hud-plan,#next-app.next-image-only .next-hud-images,#next-app.next-image-only .next-exit-focus,#next-app.next-image-only .capture-stage .next-camera-rail{transition:none}}

/* In focus view, the camera image itself fills the rounded glass tile. */
#next-app.next-image-only .next-camera-rail .webcam-tile{position:relative;padding:0!important;gap:0;border-radius:14px;overflow:hidden}
#next-app.next-image-only .next-camera-rail .webcam-thumb{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;aspect-ratio:auto;background:#05090b}
#next-app.next-image-only .next-camera-rail .webcam-thumb img{width:100%;height:100%;object-fit:cover}
#next-app.next-image-only .next-camera-rail .webcam-tile h2{position:absolute;z-index:2;left:0;right:0;top:0;padding:8px 32px 16px 10px;margin:0;background:linear-gradient(#07110fe0,transparent);color:#f2f8f4;font-size:11px;font-weight:600;text-shadow:0 1px 4px #000;pointer-events:none}
#next-app.next-image-only .next-camera-rail .webcam-tile>small{position:absolute;z-index:2;left:8px;bottom:7px;max-width:calc(100% - 16px);padding:3px 6px;border-radius:7px;background:#08110bc7;color:#e7f2eb;line-height:1.2;text-shadow:0 1px 3px #000;pointer-events:none}
#next-app.next-image-only .next-camera-rail #overview-tile>small:last-child{left:auto;right:6px;top:5px;bottom:auto;max-width:none;padding:0;background:transparent;pointer-events:auto}
#next-app.next-image-only .next-camera-rail #overview-tile>small:last-child a{display:inline-flex;width:23px;height:23px;align-items:center;justify-content:center;border-radius:8px;background:#08110bb8;font-size:0;text-decoration:none}
#next-app.next-image-only .next-camera-rail #overview-tile>small:last-child a::after{content:'↗';font-size:13px;line-height:1;color:#e7f2eb}
#next-app.next-image-only .next-camera-rail .webcam-thumb span{color:#c5d4cc;background:#05090b;font-size:11px;text-align:center}

/* Compact, telemetry-only orientation indicator; compass north is up. */
#next-app .next-hud-pointing{flex:none;padding:10px 12px;display:flex;flex-direction:column;gap:7px}
#next-app .next-hud-pointing[hidden],#next-app .next-hud-pointing [hidden]{display:none!important}
#next-app .next-hud-pointing-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 4px}
#next-app .next-hud-pointing-head>strong{font-size:10px;letter-spacing:.8px;text-transform:uppercase;font-weight:600}
#next-app .next-hud-pointing-head>small{font-size:9px;color:#b9e7c9;white-space:nowrap}
#next-app .next-hud-pointing-row{display:flex;align-items:center;gap:10px}
#next-app .next-hud-point-compass,#next-app .next-hud-point-altitude{position:relative;display:block;width:35px;height:35px;flex:none;border:1px solid #dcf6e65c;border-radius:50%;background:#0b1717a6}
#next-app .next-hud-point-north{position:absolute;left:50%;top:1px;transform:translateX(-50%);font-size:7px;line-height:1;color:#e4f5e8}
#next-app .next-hud-point-az-needle{position:absolute;left:50%;top:50%;width:3px;height:12px;border-radius:3px;background:#c0f8d0;transform-origin:50% 100%;transform:translate(-50%,-100%) rotate(var(--point-az,0deg))}
#next-app .next-hud-point-az-needle::before{content:'';position:absolute;left:-2px;top:-3px;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-bottom:5px solid #c0f8d0}
#next-app .next-hud-point-altitude::before{content:'';position:absolute;left:3px;right:3px;top:50%;height:1px;background:#d8ece061}
#next-app .next-hud-point-alt-needle{position:absolute;left:50%;top:50%;width:13px;height:3px;border-radius:3px;background:#c0f8d0;transform-origin:0 50%;transform:translateY(-50%) rotate(var(--point-alt,0deg))}
#next-app .next-hud-point-alt-needle::after{content:'';position:absolute;right:-1px;top:-2px;width:6px;height:6px;border-radius:50%;background:#e2ffea}
#next-app .next-hud-pointing-info{display:flex;flex-direction:column;min-width:0;line-height:1.25}
#next-app .next-hud-pointing-info>small{font-size:9px;color:#c0d0c7}
#next-app .next-hud-pointing-info>strong{font-size:14px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
#next-app .next-hud-pointing[data-state=pointLast] .next-hud-pointing-head>small,#next-app .next-hud-pointing[data-state=pointUncalibrated] .next-hud-pointing-head>small{color:#f2d09a}
#next-app .next-hud-pointing[data-state=pointLast] :is(.next-hud-point-az-needle,.next-hud-point-alt-needle){opacity:.55}
#next-app .next-hud-pointing[data-state=pointMissing] .next-hud-pointing-head>small{color:#b5c7bd}
@media(max-height:650px){#next-app .next-hud-pointing{padding:7px 9px;gap:4px}#next-app .next-hud-point-compass,#next-app .next-hud-point-altitude{width:29px;height:29px}#next-app .next-hud-browser{min-height:90px}}
@media(max-width:600px){#next-app .next-hud-pointing{padding:8px}#next-app .next-hud-pointing-row{gap:6px}#next-app .next-hud-pointing-info>strong{font-size:12px}}

/* Reuse the real live-sight diagram in the focus overlay. */
#next-app.next-image-only .next-reference-pointing .next-hud-pointing{display:none!important}
#next-app.next-image-only .next-hud-images .image-pointing-tile{align-self:flex-end;display:grid;grid-template-columns:88px minmax(0,1fr) minmax(0,1fr);gap:4px 9px;align-items:start;flex:none;width:clamp(240px,23vw,300px);max-width:calc(100vw - 40px);padding:10px!important;text-align:left;border:1px solid #e0f5e53d;border-radius:16px;background:linear-gradient(135deg,#23352f38,#0b151eaa);box-shadow:inset 0 1px 0 #ffffff10,0 8px 28px #0002;backdrop-filter:blur(12px) saturate(125%);-webkit-backdrop-filter:blur(12px) saturate(125%)}
#next-app.next-image-only .next-hud-images .image-pointing-tile h2{grid-column:1/-1;grid-row:1;font-size:11px;line-height:1.3;margin:0 0 3px}
#next-app.next-image-only .next-hud-images .image-pointing-tile .live-sight-compass{grid-column:1;grid-row:2/6;width:100%;height:auto;max-width:88px;max-height:88px;align-self:center;margin:auto}
#next-app.next-image-only .next-hud-images .live-sight-cardinal{font-size:32px}
#next-app.next-image-only .next-hud-images .image-pointing-tile>.live-sight-distance{grid-column:2/-1;grid-row:4;display:flex;justify-content:space-between;align-items:baseline;gap:5px;padding-bottom:3px;border-bottom:1px solid #ffffff1c}
#next-app.next-image-only .next-hud-images .image-pointing-tile>.live-sight-distance span{font-size:9px;line-height:1.25}
#next-app.next-image-only .next-hud-images .image-pointing-tile>.live-sight-distance strong{font-size:14px;white-space:nowrap}
#next-app.next-image-only .next-hud-images .image-pointing-tile>.live-sight-status{grid-column:2/-1;grid-row:3;font-size:10px;line-height:1.25;margin:0}
#next-app.next-image-only .next-hud-images .image-pointing-tile>div:has(#image-azimuth){grid-column:2;grid-row:2;display:flex;flex-direction:column;align-items:flex-start}
#next-app.next-image-only .next-hud-images .image-pointing-tile>div:has(#image-altitude){grid-column:3;grid-row:2;display:flex;flex-direction:column;align-items:flex-start}
#next-app.next-image-only .next-hud-images .image-pointing-tile>div>span{font-size:9px;line-height:1.3}
#next-app.next-image-only .next-hud-images .image-pointing-tile>div>strong{font-size:14px;line-height:1.3}
#next-app.next-image-only .next-hud-images .image-pointing-tile>small{grid-column:2/-1;grid-row:5;font-size:9px!important;line-height:1.2}
@media(max-height:650px){#next-app.next-image-only .next-hud-images .image-pointing-tile{padding:7px!important;gap:2px 7px;grid-template-columns:68px minmax(0,1fr) minmax(0,1fr)}#next-app.next-image-only .next-hud-images .image-pointing-tile .live-sight-compass{max-width:68px;max-height:68px}}
@media(prefers-reduced-transparency:reduce){#next-app.next-image-only .next-hud-images .image-pointing-tile{background:#14231e;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Two live pointing schematics, aligned with the camera tiles. */
#next-app.next-image-only{--focus-camera-height:clamp(330px,58vh,510px)}
#next-app.next-image-only .next-camera-scroll>.image-pointing-tile{display:grid;grid-template-columns:72px minmax(0,1fr);grid-template-rows:72px 72px;align-items:center;gap:4px 16px;flex:0 0 auto;min-height:0;width:100%;padding:10px 16px!important;border:1px solid #e0f5e53d;border-radius:14px;background:linear-gradient(135deg,#23352f38,#0b151eaa);box-shadow:inset 0 1px 0 #ffffff10,0 8px 28px #0002;backdrop-filter:blur(12px) saturate(125%);-webkit-backdrop-filter:blur(12px) saturate(125%)}
#next-app.next-image-only .next-camera-scroll>.image-pointing-tile>h2,#next-app.next-image-only .next-camera-scroll>.image-pointing-tile>.live-sight-distance,#next-app.next-image-only .next-camera-scroll>.image-pointing-tile>.live-sight-status,#next-app.next-image-only .next-camera-scroll>.image-pointing-tile>div:has(#image-azimuth),#next-app.next-image-only .next-camera-scroll>.image-pointing-tile>div:has(#image-altitude),#next-app.next-image-only .next-camera-scroll>.image-pointing-tile>small{display:none}
#next-app.next-image-only .next-camera-scroll .image-pointing-tile>.live-sight-compass{grid-column:1;grid-row:1;width:72px;height:72px;margin:0}
#next-app.next-image-only .next-camera-scroll .live-sight-cardinal{font-size:32px}
#next-app.next-image-only .next-camera-scroll .next-hud-pointing,#next-app.next-image-only .next-camera-scroll .next-hud-pointing-row{display:contents}
#next-app.next-image-only .next-camera-scroll .next-hud-pointing-head,#next-app.next-image-only .next-camera-scroll .next-hud-point-compass{display:none}
#next-app.next-image-only .next-camera-scroll .next-hud-pointing-row:nth-child(2) .next-hud-pointing-info{grid-column:2;grid-row:1}
#next-app.next-image-only .next-camera-scroll .next-hud-pointing-row:last-of-type .next-hud-pointing-info{grid-column:2;grid-row:2}
#next-app.next-image-only .next-camera-scroll .next-hud-point-altitude{grid-column:1;grid-row:2;width:72px;height:72px}
#next-app.next-image-only .next-camera-scroll .next-hud-point-altitude::before{left:7px;right:7px}
#next-app.next-image-only .next-camera-scroll .next-hud-point-alt-needle{width:27px;height:3px}
#next-app.next-image-only .next-camera-scroll .next-hud-pointing-info>small{font-size:11px}
#next-app.next-image-only .next-camera-scroll .next-hud-pointing-info>strong{font-size:19px}
@media(max-height:650px){#next-app.next-image-only{--focus-camera-height:clamp(250px,58vh,380px)}#next-app.next-image-only .next-camera-scroll>.image-pointing-tile{grid-template-columns:52px minmax(0,1fr);grid-template-rows:52px 52px;padding:7px 12px!important}#next-app.next-image-only .next-camera-scroll .image-pointing-tile>.live-sight-compass,#next-app.next-image-only .next-camera-scroll .next-hud-point-altitude{width:52px;height:52px}#next-app.next-image-only .next-camera-scroll .next-hud-point-alt-needle{width:19px}}
@media(prefers-reduced-transparency:reduce){#next-app.next-image-only .next-camera-scroll>.image-pointing-tile{background:#14231e;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Leave room for the complete plan above the camera and pointing rail. */
#next-app.next-image-only{--focus-camera-height:clamp(260px,42vh,380px)}
#next-app.next-image-only .next-camera-scroll>.image-pointing-tile{grid-template-columns:52px minmax(0,1fr);grid-template-rows:52px 52px;padding:7px 12px!important}
#next-app.next-image-only .next-camera-scroll .image-pointing-tile>.live-sight-compass,#next-app.next-image-only .next-camera-scroll .next-hud-point-altitude{width:52px;height:52px}
#next-app.next-image-only .next-camera-scroll .next-hud-point-alt-needle{width:19px}
@media(max-height:800px){#next-app.next-image-only .next-hud-plan-item{padding:5px 12px}#next-app.next-image-only .next-hud-plan-head{padding:7px 13px}}

/* Keep the old layout from flashing before visitor image mode is ready. */
#next-app.viewer-mode:not(.next-visitor-ready){visibility:hidden}
#next-app.viewer-mode.next-image-only .next-camera-scroll #image-pointing{display:grid!important}

/* Live, conditions and telescope share the full-bleed photograph and glass surface. */
#next-app .next-glass-pages[hidden],#next-app .next-glass-pages [hidden]{display:none!important}
#next-app .next-glass-pages{position:fixed;z-index:9;right:22px;top:78px;bottom:24px;width:clamp(330px,29vw,440px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7e6d54a transparent;color:#f1f6f3;transition:transform .38s ease,opacity .3s ease;text-shadow:0 1px 8px #0008;padding:0 3px 3px}
#next-app .next-glass-heading{padding:20px 22px;margin-bottom:12px}
#next-app .next-glass-heading small{font-size:9px;letter-spacing:1.8px;color:#b9cdc2}
#next-app .next-glass-heading h1{font-size:29px;line-height:1.2;letter-spacing:-.7px;font-weight:500;margin:8px 0 0}
#next-app .next-glass-conditions .sky-status{display:flex!important;flex-direction:column;align-items:stretch;gap:12px;width:100%!important}
#next-app .next-glass-conditions .sky-item,#next-app .next-glass-telescope>#telescope-panel,#next-app .next-glass-controls{background:linear-gradient(135deg,#23352f38,#0b151e70);border:1px solid #e0f5e52e;box-shadow:inset 0 1px 0 #ffffff10,0 8px 28px #0002;backdrop-filter:blur(12px) saturate(125%);-webkit-backdrop-filter:blur(12px) saturate(125%);border-radius:18px}
#next-app .next-glass-conditions .sky-item{display:flex;gap:16px;align-items:flex-start;padding:20px 22px;width:100%;min-width:0;margin:0}
#next-app .next-glass-conditions .sky-item>svg{width:25px;height:25px;flex:none;color:#c1dfce;margin-top:2px}
#next-app .next-glass-conditions .sky-item>div{display:flex;flex-direction:column;gap:7px;min-width:0}
#next-app .next-glass-conditions .sky-label{font-size:11px;color:#b9cdc2}
#next-app .next-glass-conditions .sky-item strong{font-size:20px;line-height:1.3;font-weight:500;white-space:normal}
#next-app .next-glass-conditions .sky-item small{font-size:12px;line-height:1.6;color:#c0d0c7;white-space:normal}
#next-app .next-glass-conditions a{color:inherit}
#next-app .next-glass-telescope>#telescope-panel{padding:20px 22px;margin:0 0 12px}
#next-app .next-glass-telescope .section-title h2{font-size:15px;letter-spacing:.5px}
#next-app .next-glass-telescope h3{font-size:11px;font-weight:500;color:#b9cdc2;margin:15px 0 10px}
#next-app .next-glass-telescope .sensor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
#next-app .next-glass-telescope .sensor-grid>div{background:#d2ebdc08;border:1px solid #d2ebdc15;border-radius:12px;padding:12px;min-width:0}
#next-app .next-glass-telescope .sensor-grid span{font-size:11px;color:#b9cdc2}
#next-app .next-glass-telescope .sensor-grid strong{font-size:25px;font-weight:500;line-height:1.4}
#next-app .next-glass-telescope .battery-head{font-size:12px;margin-top:16px}
#next-app .next-glass-telescope .battery-head strong{font-size:22px}
#next-app .next-glass-telescope .compact{margin:12px 0 0;font-size:12px}
#next-app .next-glass-telescope .compact>div{padding:9px 0;border-color:#d2ebdc1a;gap:15px}
#next-app .next-glass-telescope .compact dt{color:#b9cdc2}
#next-app .next-glass-telescope .compact dd{color:#f1f6f3;text-align:right;overflow-wrap:anywhere}
#next-app .next-glass-telescope .note{font-size:11px;line-height:1.5;color:#b9cdc2}
#next-app .next-glass-controls{padding:16px 20px}
#next-app .next-glass-controls summary{font-size:13px;cursor:pointer;color:#d7eee0}
#next-app .next-glass-controls .telescope-card{display:flex;flex-direction:column;background:transparent;border:0;padding:16px 0 0;gap:14px;box-shadow:none}
#next-app .next-glass-controls .telescope-illustration{display:none}
#next-app .next-glass-controls .telescope-device-controls{padding:0;min-width:0}
#next-app .next-glass-controls .telescope-main-actions{display:flex;flex-wrap:wrap}
#next-app.next-image-only:not([data-glass-view=live]) .next-hud-images{display:none!important}
#next-app.next-image-only.next-overlays-hidden .next-glass-pages{transform:translateX(calc(100% + 32px));opacity:0;pointer-events:none}
#next-sheet[data-panel=menu]{height:auto;max-height:calc(100dvh - 100px)}
#next-app.next-image-only #next-sheet{background:linear-gradient(135deg,#23352f78,#0b151e99);border-color:#e0f5e53d;backdrop-filter:blur(20px) saturate(125%);-webkit-backdrop-filter:blur(20px) saturate(125%);border-radius:20px}
#next-app.next-image-only #next-sheet::backdrop{background:#02070c16}
#next-app .next-glass-menu{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
#next-app .next-glass-menu-item{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:16px 18px;width:100%;border:1px solid #e0f5e52e;border-radius:13px;background:#d4f1df08;color:#eff8f2;text-align:left;cursor:pointer}
#next-app .next-glass-menu-item strong{font-size:18px;font-weight:500}
#next-app .next-glass-menu-item small{font-size:11px;color:#b9cdc2}
#next-app .next-glass-menu-item:hover{background:#d4f1df1c}
#next-app .next-glass-menu-item[aria-current=page]{background:#b7f2c52a;border-color:#cbffdb70}
#next-app .next-glass-menu-item:focus-visible{outline:2px solid #c4ffdb;outline-offset:2px}
#next-app .next-exit-focus{max-width:calc(100vw - 32px)}
@media(max-width:700px){#next-app .next-glass-pages{right:10px;top:68px;bottom:12px;width:min(360px,calc(100vw - 20px))}#next-app.next-image-only:not([data-glass-view=live]) :is(.next-hud-plan,.capture-stage .next-camera-rail){display:none!important}#next-app .next-glass-heading{padding:16px 18px}#next-app .next-glass-heading h1{font-size:25px}#next-sheet[data-panel=menu]{max-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){#next-app .next-glass-pages{transition:none}}
@media(prefers-reduced-transparency:reduce){#next-app .next-glass-conditions .sky-item,#next-app .next-glass-telescope>#telescope-panel,#next-app .next-glass-controls,#next-app.next-image-only #next-sheet{background:#14231e;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Give telemetry the full panel width, independent of the old two-column status page. */
#next-app .next-glass-telescope>#telescope-panel{display:block}
#next-app .next-glass-telescope #telescope-panel .section-title h2{font-size:15px}
#next-app .next-glass-telescope #telescope-panel>.sensor-grid{margin:16px 0}
#next-app .next-glass-telescope #telescope-panel>.battery-head{margin:18px 0 7px}
#next-app .next-glass-telescope #telescope-panel>.compact{gap:0 18px;margin-top:16px}
#next-app .next-glass-telescope #telescope-panel>.compact>div{border-bottom:1px solid #d2ebdc1a;padding:10px 0}
#next-app .next-glass-telescope #telescope-panel .sensor-grid strong{white-space:nowrap}
#next-app.next-image-only #next-panel-menu>:is(.next-link,.next-preview,[data-next-panel=conditions]){display:none}

/* Actual operating state and the last confirmed plan image live above the camera rail. */
#next-app .next-hud-plan-head>strong{font-size:12px;letter-spacing:1.2px}
#next-app .next-hud-plan-head>small{line-height:1.5;min-height:12px}
#next-app .next-hud-plan-head[data-mode=modePlan]{border-color:#b6f4c868;background:linear-gradient(135deg,#89dca129,#0b151e70)}
#next-app .next-hud-plan-head[data-mode=modeSingle]{border-color:#b6e5f468}
#next-app .next-hud-plan-head[data-mode=modeOffline]{border-color:#edcb8359}
#next-app .next-hud-timeline-label{font-size:9px;letter-spacing:.6px;color:#b9cdc2;padding:0 12px;margin-bottom:-5px}
#next-app .next-hud-last-plan{flex:none;padding:12px;display:grid;grid-template-columns:62px minmax(0,1fr);gap:4px 10px;min-width:0}
#next-app .next-hud-last-plan>.next-hud-eyebrow{grid-column:1/-1;letter-spacing:.7px;font-size:9px;margin-bottom:5px}
#next-app .next-hud-last-plan-thumb{grid-column:1;grid-row:2/5;width:62px;height:64px;object-fit:cover;border-radius:8px}
#next-app .next-hud-last-plan>strong{grid-column:2;font-size:13px;font-weight:500;overflow-wrap:anywhere;line-height:1.3}
#next-app .next-hud-last-plan>p{grid-column:2;margin:0;font-size:10px;color:#c2d3c9;line-height:1.4}
#next-app .next-hud-last-plan .next-hud-last-plan-description{grid-column:1/-1;font-size:10px;margin-top:4px}
#next-app .next-hud-last-plan .next-hud-last-plan-meta{grid-column:1/-1;font-size:8px;color:#a9bdb1;margin-top:3px;overflow-wrap:anywhere}
#next-app .next-hud-last-plan:has(.next-hud-last-plan-thumb[hidden])>strong{grid-column:1/-1;font-size:11px;color:#c2d3c9}
#next-app .next-glass-mode-menu{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
#next-app .next-glass-mode-menu>h3{grid-column:1/-1;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:500;color:#b9cdc2;margin:0 0 2px}
#next-app .next-glass-mode-menu>.note{grid-column:1/-1;font-size:10px;line-height:1.5;color:#b9cdc2;margin:2px 0 0}
#next-app .next-glass-mode-menu .next-glass-menu-item{padding:13px 12px}
#next-app .next-glass-mode-menu .next-glass-menu-item strong{font-size:14px}
#next-app .next-glass-mode-menu .next-glass-menu-item small{font-size:10px;line-height:1.4}
#next-app.next-image-only:is([data-glass-view=plan],[data-glass-view=single]) .next-glass-pages{width:min(560px,calc(100vw - 320px))}
#next-app .next-glass-intro,#next-app .next-glass-single>.control-panel,#next-app .next-glass-plan>#planning-workspace{padding:18px 20px;background:linear-gradient(135deg,#23352f38,#0b151e70);border:1px solid #e0f5e52e;border-radius:18px;backdrop-filter:blur(12px) saturate(125%);-webkit-backdrop-filter:blur(12px) saturate(125%);box-shadow:inset 0 1px 0 #ffffff10,0 8px 28px #0002;color:#eff6f1;min-height:0;min-width:0}
#next-app .next-glass-intro{font-size:12px;line-height:1.6;margin:0 0 12px}
#next-app .next-glass-plan>#planning-workspace{display:block}
#next-app .next-glass-plan #planning-workspace>.heading{padding:0 0 14px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:transparent;border:0}
#next-app .next-glass-plan #planning-workspace>.heading>div:first-child{display:none}
#next-app .next-glass-plan .planning-content{padding:0;max-width:none}
#next-app .next-glass-plan .plan-fields{grid-template-columns:1fr 1fr}
#next-app .next-glass-plan .plan-entry{display:flex;flex-wrap:wrap;gap:9px;padding:12px;background:#c6e7d709;border-color:#c6e7d721;border-radius:12px}
#next-app .next-glass-plan .plan-entry>.plan-entry-target{width:100%}
#next-app .next-glass-plan .plan-entry .field{min-width:90px;flex:1}
#next-app .next-glass-plan .plan-automation,#next-app .next-glass-plan .plan-results{padding:14px 0 0;margin-top:14px;border-top:1px solid #d0e9db26}
#next-app .next-glass-plan .plan-scope,#next-app .next-glass-plan .note{font-size:11px;line-height:1.5;color:#b9cdc2}
#next-app .next-glass-plan .plan-actions{flex-wrap:wrap;gap:8px}
#next-app :is(.next-glass-plan,.next-glass-single) .action-button{min-height:34px;font-size:11px;padding:7px 10px;border-radius:9px}
#next-app :is(.next-glass-plan,.next-glass-single) :is(input,select){min-width:0;max-width:100%;border-color:#d0e9db2b;border-radius:8px;background:#0a171b9c;color:#eff6f1}
#next-app .next-glass-single .control-panel{max-width:none;width:100%}
#next-app .next-glass-single .control-panel .section-title{margin-bottom:12px}
#next-app .next-glass-single .control-panel h2{font-size:16px}
#next-app .next-glass-single .field-grid{grid-template-columns:1fr;gap:12px}
#next-app .next-glass-single .field>span{font-size:11px;color:#bed2c5}
#next-app .next-glass-single #next-plan-selection{margin:12px 0;padding:12px;border-color:#d0e9db26;background:#c6e7d709}
#next-app .next-glass-single #next-plan-selection>:not(#target-preview){display:none!important}
#next-app .next-glass-single .next-direct-controls{border:0;margin:14px 0;padding:0;background:transparent}
#next-app .next-glass-single .next-direct-controls>summary{display:none}
#next-app .next-glass-single .target-observation-actions{padding:12px 0 0;border-top:1px solid #d0e9db26}
#next-app .next-glass-single .control-bottom{display:flex;flex-wrap:wrap;gap:8px}
#next-app .next-glass-single .control-bottom .note{width:100%}
#next-app .next-glass-single .visible-targets{margin-top:16px}
#next-app .next-glass-single .note{color:#b9cdc2;font-size:11px;line-height:1.5}
#next-app.next-image-only[data-glass-view=plan] #next-panel-target .next-direct-controls{display:none}
@media(max-width:800px){#next-app.next-image-only:is([data-glass-view=plan],[data-glass-view=single]) .next-glass-pages{width:calc(100vw - 20px);right:10px}#next-app.next-image-only:is([data-glass-view=plan],[data-glass-view=single]) :is(.next-hud-plan,.capture-stage .next-camera-rail){display:none!important}}
@media(max-width:600px){#next-app .next-hud-plan-head>strong{font-size:10px}#next-app .next-hud-last-plan{grid-template-columns:42px minmax(0,1fr);gap:4px 6px;padding:9px}#next-app .next-hud-last-plan-thumb{width:42px;height:50px}#next-app .next-hud-last-plan>strong{font-size:11px}#next-app .next-hud-last-plan>p{font-size:9px}#next-app .next-hud-last-plan-description{display:none}#next-app .next-glass-plan .plan-fields{grid-template-columns:1fr}}
@media(prefers-reduced-transparency:reduce){#next-app .next-glass-intro,#next-app .next-glass-single>.control-panel,#next-app .next-glass-plan>#planning-workspace{background:#14231e;backdrop-filter:none;-webkit-backdrop-filter:none}}

#next-app .next-compact-mode{display:none}
@media(max-width:800px){#next-app.next-image-only:not([data-glass-view=live]) .next-compact-mode{display:block;position:fixed;top:20px;left:10px;z-index:10;max-width:130px;padding:8px 10px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#eff6f1}#next-app.next-image-only .next-exit-focus{max-width:calc(100vw - 160px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#next-app.next-image-only.next-overlays-hidden .next-compact-mode{display:none}}

/* Official SAT24/Infoplaza satellite animation, within the shared glass surface. */
#next-app .next-satellite-card{padding:16px;margin-bottom:12px;overflow:hidden}
#next-app .next-satellite-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#next-app .next-satellite-head h2{margin:0;font-size:16px;font-weight:500;letter-spacing:-.2px;color:#eff6f1}
#next-app .next-satellite-reload{font-size:10px;padding:6px 9px;min-height:29px;border-radius:9px;white-space:nowrap}
#next-app .next-satellite-region{font-size:11px;color:#b9cdc2;margin:7px 0 12px}
#next-app .next-satellite-media{position:relative;width:100%;max-width:100%;aspect-ratio:4/3;min-height:280px;border-radius:12px;overflow:hidden;background:#101d23;border:1px solid #d0e9db26}
#next-app .next-satellite-frame{position:absolute;inset:0;width:600px;height:450px;transform-origin:0 0;border:0;background:#101d23}
#next-app .next-satellite-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;padding:24px;text-align:center;color:#c1d6c8;background:linear-gradient(135deg,#23352f,#0b151e);font-size:12px;pointer-events:none}
#next-app .next-satellite-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:10px;line-height:1.5}
#next-app .next-satellite-foot small{font-size:9px;color:#b9cdc2}
#next-app .next-satellite-foot a{font-size:10px;color:#d4ecde;text-underline-offset:3px}
#next-app .next-satellite-foot a:focus-visible{outline:2px solid #c4ffdb;outline-offset:3px;border-radius:3px}
@media(max-width:700px){#next-app .next-satellite-card{padding:13px}#next-app .next-satellite-head h2{font-size:15px}#next-app .next-satellite-media{min-height:290px;aspect-ratio:1}}

/* Darken only the official widget's 41px heading and 13px padding, not cloud pixels. */
#next-app .next-satellite-chrome{position:absolute;inset:0;pointer-events:none;--satellite-chrome-filter:invert(1) hue-rotate(180deg)}
#next-app .next-satellite-chrome>span{position:absolute;display:block;backdrop-filter:var(--satellite-chrome-filter);-webkit-backdrop-filter:var(--satellite-chrome-filter);pointer-events:none}
#next-app .next-satellite-chrome-top{top:0;left:0;right:0;height:var(--satellite-heading,41px)}
#next-app .next-satellite-chrome-bottom{bottom:0;left:0;right:0;height:var(--satellite-edge,13px)}
#next-app .next-satellite-chrome-left,#next-app .next-satellite-chrome-right{top:var(--satellite-heading,41px);bottom:var(--satellite-edge,13px);width:var(--satellite-edge,13px)}
#next-app .next-satellite-chrome-left{left:0}
#next-app .next-satellite-chrome-right{right:0}
#next-app .next-satellite-media{border-color:#79938740;background:#080e12}

#next-app .next-satellite-media::after{content:'';position:absolute;inset:0;border:1px solid #102019;border-radius:inherit;box-shadow:inset 0 0 0 1px #102019;pointer-events:none}

/* Blend the complete widget (including its dark chrome) as one translucent surface. */
#next-app .next-satellite-viewport{position:absolute;inset:0;opacity:.5;isolation:isolate}
#next-app .next-satellite-media{background:transparent}
#next-app.next-image-only .next-satellite-card{background:linear-gradient(135deg,#17261e24,#09101840);backdrop-filter:blur(4px) saturate(110%);-webkit-backdrop-filter:blur(4px) saturate(110%)}

/* Grouped main navigation, capture summary and gallery (14.11.2026). */
#next-app .next-exit-focus,#next-app .topbar>.next-nav,#next-app .top-actions>[data-next-panel],#next-app #next-panel-menu>.next-glass-menu,#next-app #next-panel-menu>.next-glass-mode-menu{display:none!important}
#next-app .next-main-nav{display:flex;align-items:center;gap:6px;padding:5px;border-radius:16px;white-space:nowrap;max-width:100%;min-width:0;overflow-x:auto;scrollbar-width:none;color:#eef5f1}
#next-app .next-main-nav::-webkit-scrollbar{display:none}
#next-app.next-image-only>.next-main-nav{position:fixed;z-index:20;top:16px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);background:linear-gradient(135deg,#1c2b2ab8,#0b151ed1);transition:transform .38s ease,opacity .3s ease}
#next-app.next-image-only.next-overlays-hidden>.next-main-nav{transform:translate(-50%,calc(-100% - 32px));opacity:0;pointer-events:none}
#next-app .topbar>.next-main-nav{flex:0 1 auto;background:#101b22;border-color:#2c3d47;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
#next-app .next-main-nav-group{display:flex;align-items:center;gap:2px;padding:0 4px 0 8px;border-left:1px solid #e0f5e524}
#next-app .next-main-nav-group:first-child{border-left:0;padding-left:4px}
#next-app .next-main-nav-label{font-size:8.5px;letter-spacing:1.5px;text-transform:uppercase;color:#a9bfb4;margin-right:5px;text-shadow:none}
#next-app .next-main-nav-item{appearance:none;border:1px solid transparent;border-radius:11px;background:transparent;color:#e3ece7;font:inherit;font-size:13px;font-weight:500;line-height:1.3;padding:7px 11px;min-height:34px;cursor:pointer;text-shadow:none;transition:background .16s,border-color .16s,color .16s}
#next-app .next-main-nav-item:hover{background:#ffffff14;border-color:#e0f5e52e}
#next-app .next-main-nav-item:focus-visible{outline:2px solid #d4ffe0;outline-offset:1px}
#next-app .next-main-nav-item[aria-current=page],#next-app .next-main-nav-more.is-current{background:#bdf3cb2b;border-color:#c9f7d67a;color:#f2fff5}
#next-app .next-main-nav-more{margin-left:2px;border-color:#e0f5e52e}
#next-app .next-main-nav-more::before{content:'☰';margin-right:6px;font-size:11px}
@media(max-width:1180px){#next-app .next-main-nav-label{display:none}#next-app .next-main-nav-group{padding:0 3px 0 5px}#next-app .next-main-nav-item{padding:7px 9px;font-size:12px}}
@media(max-width:800px){#next-app.next-image-only>.next-main-nav{top:10px;left:10px;right:10px;transform:none;max-width:none}#next-app.next-image-only.next-overlays-hidden>.next-main-nav{transform:translateY(calc(-100% - 24px))}#next-app .topbar>.next-main-nav{order:3;width:100%}#next-app .next-main-nav-item{min-height:40px}}
#next-app.next-image-only .next-hud-plan{top:78px}
#next-app .next-more-group{margin:0 0 18px}
#next-app .next-more-group h3{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:var(--muted);font-weight:600;margin:0 0 8px}
#next-app .next-more-items{display:flex;flex-direction:column;align-items:stretch;gap:8px}
#next-app .next-more-items>.next-link,#next-app .next-more-items>.next-button{display:flex;align-items:center;justify-content:flex-start;text-align:left;min-height:40px;padding:9px 13px}
#next-app .next-more-items>.language-switch,#next-app .next-more-items>.access-badge,#next-app .next-more-items>.next-preview{align-self:flex-start}
/* Capture summary */
#next-app .next-hud-capture{position:absolute;left:calc(22px + clamp(186px,18vw,250px) + 16px);right:180px;bottom:24px;display:flex;align-items:center;gap:8px 22px;padding:11px 18px 13px;pointer-events:auto;overflow:hidden;min-width:0;transition:transform .38s ease,opacity .3s ease;background:linear-gradient(135deg,#1c2b2a9e,#0b151ebd)!important}
#next-app.next-image-only:not([data-glass-view=live]) .next-hud-capture{display:none!important}
#next-app.next-image-only.next-overlays-hidden .next-hud-capture{transform:translateY(calc(100% + 32px));opacity:0;pointer-events:none}
#next-app .next-hud-capture-lead{display:flex;flex-direction:column;gap:2px;min-width:0;flex:0 1 250px}
#next-app .next-hud-capture-state{display:inline-flex;align-items:center;gap:6px;font-size:9px;letter-spacing:1.4px;text-transform:uppercase;color:#bcd0c5}
#next-app .next-hud-capture-state i{width:7px;height:7px;border-radius:50%;background:#8fa39a;flex:none}
#next-app .next-hud-capture[data-state=live] .next-hud-capture-state{color:#c4f7d1}
#next-app .next-hud-capture[data-state=live] .next-hud-capture-state i{background:#8df0a8;box-shadow:0 0 0 0 #8df0a880;animation:next-capture-pulse 2s infinite}
#next-app .next-hud-capture:is([data-state=moving],[data-state=aligning],[data-state=waiting]) .next-hud-capture-state i{background:#edc486}
#next-app .next-hud-capture:is([data-state=delayed],[data-state=offline]) .next-hud-capture-state i{background:#f0a08a}
@keyframes next-capture-pulse{70%{box-shadow:0 0 0 7px #8df0a800}100%{box-shadow:0 0 0 0 #8df0a800}}
#next-app .next-hud-capture-lead strong{font-size:17px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#next-app .next-hud-capture-lead small{font-size:10px;line-height:1.3;color:#c5d6cc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#next-app .next-hud-capture-facts{display:flex;flex:1 1 auto;justify-content:space-between;gap:6px 18px;margin:0;min-width:0;flex-wrap:wrap;max-height:44px;overflow:hidden}
#next-app .next-hud-capture-facts>div{display:flex;flex-direction:column;gap:2px;min-width:0}
#next-app .next-hud-capture-facts dt{font-size:9px;letter-spacing:.9px;text-transform:uppercase;color:#b3c8bd;white-space:nowrap}
#next-app .next-hud-capture-facts dd{margin:0;font-size:16px;font-weight:600;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap;display:flex;align-items:baseline;gap:5px}
#next-app .next-hud-capture-facts dd small{font-size:10px;font-weight:500;color:#c5d6cc}
#next-app .next-hud-capture-progress{position:absolute;left:0;bottom:0;height:3px;width:var(--capture-progress,0%);background:linear-gradient(to right,#8df0a866,#bff7cd);transition:width .2s linear}
#next-app.next-image-only .next-hud-counter{display:none}
#next-app.next-image-only .next-hud-images{top:78px;justify-content:flex-end}
#next-app .next-hud-browser[data-empty=true]{flex:none;min-height:0}
#next-app .next-hud-browser[data-empty=true] :is(.next-hud-range,.next-hud-range-ends){display:none}
@media(max-width:1100px){#next-app .next-hud-capture-facts>[data-fact=rejected],#next-app .next-hud-capture-facts>[data-fact=object]{display:none}}
@media(max-width:800px){#next-app .next-hud-capture{left:10px;right:10px;bottom:10px;padding:9px 12px 11px;gap:6px 14px}#next-app .next-hud-capture-lead{flex-basis:130px}#next-app .next-hud-capture-lead strong{font-size:13px}#next-app .next-hud-capture-facts dd{font-size:13px}#next-app .next-hud-capture-facts>[data-fact=exposure],#next-app .next-hud-capture-facts>[data-fact=window]{display:none}}
@media(prefers-reduced-motion:reduce){#next-app .next-hud-capture,#next-app .next-main-nav,#next-app .next-hud-capture-progress{transition:none}#next-app .next-hud-capture[data-state=live] .next-hud-capture-state i{animation:none}}
/* Gallery */
#next-app.next-image-only[data-glass-view=gallery] .next-glass-pages{left:22px;width:auto}
#next-app.next-image-only[data-glass-view=gallery] .next-glass-heading{display:none}
#next-app .next-gallery-bar{display:flex;align-items:center;justify-content:space-between;gap:10px 16px;flex-wrap:wrap;padding:12px 16px;margin-bottom:14px;background:linear-gradient(135deg,#1c2b2ad9,#0b151ee6)!important;position:sticky;top:0;z-index:2}
#next-app .next-gallery-summary{margin:0;font-size:14px;font-weight:500}
#next-app .next-gallery-actions{display:flex;gap:8px;flex-wrap:wrap}
#next-app .next-gallery-night{margin:0 0 20px}
#next-app .next-gallery-night h2{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;font-weight:600;color:#d5e4db;margin:0 0 9px 4px}
#next-app .next-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,350px),1fr));gap:12px;align-items:start}
#next-app .next-gallery-card{appearance:none;display:flex;flex-direction:column;align-items:stretch;padding:0;overflow:hidden;color:inherit;font:inherit;text-align:left;border-radius:16px;background:linear-gradient(135deg,#1c2b2ad9,#0b151ee6)!important;min-width:0}
#next-app button.next-gallery-card{cursor:pointer;transition:border-color .16s,transform .16s}
#next-app button.next-gallery-card:hover{border-color:#c9f7d6a6;transform:translateY(-2px)}
#next-app button.next-gallery-card:focus-visible{outline:2px solid #d4ffe0;outline-offset:2px}
#next-app .next-gallery-picture{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:#05090b;overflow:hidden}
#next-app .next-gallery-card[data-status=saved] .next-gallery-picture{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;align-items:stretch;aspect-ratio:auto}
#next-app .next-gallery-panel{min-width:0;display:flex;flex-direction:column}
#next-app .next-gallery-caption{padding:5px 8px;font-size:11px;color:#d6e4dc;background:#15201e}
#next-app .next-gallery-media{aspect-ratio:1;display:grid;place-items:center;min-width:0;overflow:hidden}
#next-app .next-gallery-media img{width:100%;height:100%;object-fit:contain;display:block}
#next-app .next-gallery-missing{font-size:11px;color:#9fb2a8;text-align:center;padding:10px;text-shadow:none}
#next-app .next-gallery-card[data-status=missing] .next-gallery-picture,#next-app .next-gallery-card[data-status=pending] .next-gallery-picture{aspect-ratio:3/1;background:#0a12168c}
#next-app .next-gallery-text{display:flex;flex-direction:column;gap:2px;padding:10px 12px 12px;min-width:0}
#next-app .next-gallery-text strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#next-app .next-gallery-text small{font-size:10.5px;line-height:1.4;color:#c5d6cc}
@media(max-width:700px){#next-app.next-image-only[data-glass-view=gallery] .next-glass-pages{left:10px}#next-app .next-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:9px}}
@media(prefers-reduced-transparency:reduce){#next-app.next-image-only>.next-main-nav,#next-app .next-hud-capture,#next-app .next-gallery-bar,#next-app .next-gallery-card{background:#14231e!important;backdrop-filter:none;-webkit-backdrop-filter:none}}
#next-app.next-image-only[data-glass-view=gallery] :is(.next-hud-plan,.capture-stage .next-camera-rail){display:none!important}
/* Phone layout of bar and capture summary (14.11.2026): nothing overlaps, every entry is visible. */
#next-app.next-image-only .next-hud-plan,#next-app.next-image-only .next-hud-images{top:calc(var(--next-nav-height,46px) + 32px)}
#next-app.next-image-only .next-glass-pages{top:calc(var(--next-nav-height,46px) + 32px)}
@media(max-width:800px){
#next-app.next-image-only>.next-main-nav{flex-wrap:wrap;justify-content:center;overflow:visible;gap:3px 4px;padding:4px}
#next-app.next-image-only>.next-main-nav .next-main-nav-group{padding:0 2px;border-left:0}
#next-app.next-image-only>.next-main-nav .next-main-nav-group:first-child{padding-left:2px}
#next-app.next-image-only>.next-main-nav .next-main-nav-item{min-height:36px;padding:6px 9px;font-size:12.5px}
#next-app.next-image-only .next-hud-plan,#next-app.next-image-only .next-hud-images,#next-app.next-image-only .next-glass-pages{top:calc(var(--next-nav-height,84px) + 20px)}
#next-app.next-image-only .next-hud-images{bottom:calc(var(--next-capture-height,0px) + 20px)}
#next-app.next-image-only .capture-stage .next-camera-rail{bottom:calc(var(--next-capture-height,0px) + 20px)}
#next-app.next-image-only .next-hud-plan{bottom:calc(var(--focus-camera-height) + var(--next-capture-height,0px) + 32px)}
#next-app.next-image-only .next-compact-mode{display:none!important}
#next-app .next-hud-capture{flex-wrap:wrap}
#next-app .next-hud-capture-lead{flex:1 1 100%}
#next-app .next-hud-capture-facts{justify-content:flex-start;gap:6px 20px}
}
@media(max-width:600px){
#next-app.next-image-only .next-hud-last-plan{display:none!important}
#next-app.next-image-only .next-hud-plan:has(.next-hud-plan-head:not([data-mode=modePlan])) :is(.next-hud-timeline,.next-hud-timeline-label){display:none!important}
}
/* Console header on narrow windows: the bar gets its own full-width row and wraps; the header grows with it. */
@media(max-width:800px){
#next-app .topbar{height:auto!important;min-height:0!important;grid-template-rows:40px auto!important}
#next-app .topbar>.next-main-nav{grid-column:1/-1;grid-row:2;width:100%;flex-wrap:wrap;justify-content:center;overflow:visible;gap:3px 4px;padding:4px}
#next-app .topbar>.next-main-nav .next-main-nav-group{padding:0 2px;border-left:0}
#next-app .topbar>.next-main-nav .next-main-nav-item{min-height:36px;padding:6px 9px;font-size:12.5px}
}
/* Status notice above the photo (e.g. "Eine Aufnahme läuft …"): never covered by the bar. */
#next-app.next-image-only>.next-main-nav{top:calc(16px + var(--next-alert-height,0px))}
#next-app.next-image-only .next-glass-pages{top:calc(var(--next-nav-height,46px) + 32px + var(--next-alert-height,0px))}
#next-app.next-image-only .alert{margin:8px 16px}
@media(max-width:800px){#next-app.next-image-only>.next-main-nav{top:calc(10px + var(--next-alert-height,0px))}#next-app.next-image-only .next-glass-pages{top:calc(var(--next-nav-height,84px) + 20px + var(--next-alert-height,0px))}#next-app.next-image-only .alert{margin:8px 10px}}

/* Header as the main menu in every view: brand, menu, connection and the status ticker stay above the full photo too. */
#next-app.operator-mode .viewer-ticker:not([hidden]){display:flex!important}
#next-app.next-image-only .topbar{padding:0 18px!important}
#next-app.next-image-only .viewer-ticker{margin:4px 18px!important}
#next-app.next-image-only .next-hud-plan,#next-app.next-image-only .next-hud-images{top:16px}
#next-app.next-image-only .next-glass-pages{top:calc(var(--next-head-height,112px) + 16px)}
@media(max-width:800px){#next-app.next-image-only .topbar{padding:10px 10px!important}#next-app.next-image-only .viewer-ticker{margin:2px 10px!important}#next-app.next-image-only .next-hud-plan,#next-app.next-image-only .next-hud-images{top:10px}#next-app.next-image-only .next-glass-pages{top:calc(var(--next-head-height,170px) + 10px)}}
/* The photo is shorter by the header; the camera column follows the remaining height, not the whole window. */
#next-app.next-image-only{--focus-camera-height:clamp(220px,calc((100vh - var(--next-head-height,104px))*.42),380px)}
/* Main menu centred in the header: brand left, status right, equal side columns.
   Where the menu does not fit between them it gets its own centred row. Phones keep their two-row grid. */
@media(min-width:801px){
#next-app .topbar{display:grid!important;grid-template-columns:1fr minmax(0,auto) 1fr!important;align-items:center}
#next-app .topbar>.brand{grid-column:1!important;grid-row:1!important;justify-self:start}
#next-app .topbar>.next-main-nav{grid-column:2!important;grid-row:1!important;justify-self:center;order:0;width:auto}
#next-app .topbar>.top-actions{grid-column:3!important;grid-row:1!important;justify-self:end}
}
@media(min-width:801px) and (max-width:1340px){
#next-app .topbar{grid-template-columns:1fr auto!important;height:auto!important;min-height:0!important;padding-top:8px!important;padding-bottom:8px!important;gap:6px 12px}
#next-app .topbar>.next-main-nav{grid-column:1/-1!important;grid-row:2!important}
#next-app .topbar>.top-actions{grid-column:2!important}
}
#next-app .next-gallery-card[data-status=saved] .next-gallery-picture{display:block;aspect-ratio:16/10;background:#05090b}
.next-gallery-picture>img{width:100%;height:100%;display:block;object-fit:contain}
#next-app:has(.next-glass-gallery:not([hidden])) .next-glass-pages{background:#0a1116}
.gallery-view-tools{display:none}
#capture-player[data-variant] .gallery-view-tools{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap;padding:.35rem .9rem;background:#101a22;border-bottom:1px solid #ffffff0a;font-size:12px;color:#b8c9d2}
.gallery-view-tools label{display:flex;align-items:center;gap:.5rem}
#capture-player[data-variant] #capture-player-dbe,#capture-player[data-variant=gx] .capture-compare-panel:first-child,#capture-player[data-variant]:not([data-variant=gx],[data-variant=both]) #capture-player-correction{display:none}
#capture-player[data-variant] .capture-compare-media{overflow:hidden}
#capture-player[data-variant] .capture-player-stage{touch-action:none;user-select:none}
#capture-player[data-variant] .capture-compare-media :is(img,canvas){transform:var(--gallery-transform);pointer-events:none}
#next-app #capture-player.gallery-expanded{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border:0;border-radius:0;background:#000}
#gallery-full[aria-pressed=true]{background:#1f3a44;color:#eef4f6}
/* Gallery cover and dialog layout (28.11.2026): the picture gets the room. */
.gallery-variants{display:inline-flex;min-width:0;border:1px solid #ffffff1f;border-radius:9px;overflow:hidden}
.gallery-variants button,#gallery-full{padding:6px 14px;border:0;border-radius:0;background:#0b1217;color:#b8c9d2;font:inherit;font-size:12px;line-height:1.4;cursor:pointer}
.gallery-variants button+button{border-left:1px solid #ffffff14}
.gallery-variants button:disabled{opacity:.4;cursor:default}
.gallery-variants [aria-pressed=true]{background:#1f3a44;color:#eef4f6}
.gallery-variants button:not(:disabled):hover,#gallery-full:hover{background:#ffffff14;color:#eef4f6}
.gallery-variants button:focus-visible,#gallery-full:focus-visible{outline:2px solid #a4e8f1;outline-offset:-2px}
#gallery-full{margin-left:auto;border:1px solid #ffffff1f;border-radius:9px}
#gallery-zoom{accent-color:var(--accent,#41c6de)}
#capture-player[data-variant]{height:96vh}
#capture-player[data-variant] .capture-player-stage{padding:6px}
#capture-player[data-variant] .capture-compare-panel{position:relative}
#capture-player[data-variant] .capture-compare-panel figcaption{position:absolute;left:8px;top:8px;z-index:1;padding:3px 10px;border-radius:999px;background:#05090bcc;color:#d6e4dc;font-size:11px;pointer-events:none}
#capture-player[data-variant] .capture-player-controls{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 14px;padding:8px 14px}
#capture-player[data-variant] .capture-player-facts{grid-column:1/-1}
#capture-player[data-variant] .capture-player-transport{grid-column:1;grid-row:2}
#capture-player[data-variant] .capture-player-range{grid-column:2;grid-row:2;margin:0}
#capture-player[data-variant] .capture-player-range>span{display:none}
#capture-player[data-variant] :is(#capture-player-status,#capture-player-note){grid-column:1/-1;margin:0;min-height:0}
#capture-player[data-variant] #capture-player-status:empty{display:none}
/* Nights with few captures share a row instead of leaving it empty. */
#next-app .next-gallery-list{display:flex;flex-wrap:wrap;align-items:flex-start;gap:18px 24px}
#next-app .next-gallery-night{margin:0;min-width:0;max-width:100%}
#next-app .next-gallery-night h2{white-space:nowrap}
#next-app .next-gallery-grid{display:flex;flex-wrap:wrap;gap:12px}
#next-app .next-gallery-card{width:210px}
#next-app .next-gallery-card[data-status=saved] .next-gallery-picture{position:relative;aspect-ratio:1}
#next-app .next-gallery-picture>img{object-fit:cover}
.next-gallery-badge{position:absolute;right:8px;top:8px;padding:2px 8px;border-radius:999px;border:1px solid #ffffff2e;background:#05090bcc;color:#d9ebe0;font-size:10px;font-weight:600;letter-spacing:.6px}
@media(max-width:740px){
 #next-app .next-gallery-night{flex:1 1 100%}
 #next-app .next-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr))}
 #next-app .next-gallery-card{width:auto}
 #capture-player[data-variant] .capture-player-controls{grid-template-columns:minmax(0,1fr)}
 #capture-player[data-variant] :is(.capture-player-transport,.capture-player-range){grid-column:1;grid-row:auto}
}
@media(orientation:portrait){#capture-player[data-variant=both] .capture-player-stage{flex-direction:column}}
/* Full view (28.11.2026): only the picture. The tool row appears while the pointer or a key moves. */
#capture-player.gallery-expanded :is(.viewer-head,.capture-player-controls){display:none}
#capture-player.gallery-expanded .capture-player-stage{padding:0;background:#000}
#capture-player.gallery-expanded .gallery-view-tools{position:absolute;left:0;right:0;top:0;z-index:2;border-bottom:0;background:#05090bd9;opacity:0;pointer-events:none;transition:opacity .25s}
#capture-player.gallery-expanded .capture-compare-panel figcaption{top:auto;bottom:10px;opacity:0;transition:opacity .25s}
#capture-player.gallery-expanded.gallery-tools .gallery-view-tools{opacity:1;pointer-events:auto}
#capture-player.gallery-expanded.gallery-tools .capture-compare-panel figcaption{opacity:1}
#capture-player.gallery-expanded:not(.gallery-tools) .capture-player-stage{cursor:none}
@media(prefers-reduced-motion:reduce){#capture-player.gallery-expanded :is(.gallery-view-tools,figcaption){transition:none}}

/* Map selection: add to the draft, or save the blue frame centre as a single capture. */
#next-app .next-sky-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch;flex:none}
#next-app #next-frame-note[data-state="ready"]{color:var(--green)}#next-app #next-frame-note[data-state="blocked"]{color:var(--amber)}
