/* SPDX-License-Identifier: LicenseRef-Airbus-Proprietary */
/* alis:need NEED-3 */
/* shell.css: the metaop frame of GeoShare.
   Part 1 copies, unchanged, the first copy of each rule of the design
   reference's metaop.css (the file is concatenated twice) for .topbar, .rail,
   .rail-*, .rf-rolepill, .rf-sev, .rf-mob-only, .rf-hide-m and .rf-shell-*, with
   their 900 and 640 px media blocks. Part 2 is GeoShare's own: the layout of
   the page, rail and tab bar links drawn as the metaop buttons, and popovers
   that take the .rf-shell-pop position. The 760 px rule of gs.css is not kept. */

.topbar{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;padding:0 10px 0 16px;height:56px;background:var(--grad);color:var(--bg);flex:none;position:relative;z-index:50;box-shadow:0 1px 0 rgba(var(--ink-rgb),.08);min-width:0}
.topbar .tb-sp{flex:1;min-width:4px}
.topbar .logo{display:inline-flex;flex:none}
.topbar .logo svg{width:20px;height:20px;display:block}
.topbar .name{font-weight:800;font-size:1.05rem;line-height:1;letter-spacing:-.02em;flex:none}
.topbar .byairbus{font-size:.6rem;margin-left:4px;flex:none}
.topbar .airbuslogo svg{height:12px}
.rail{width:64px;flex:none;display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0;background:var(--bg);border-right:1px solid var(--line);z-index:7;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.rail button{flex:none;width:52px;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;border:0;background:transparent;color:var(--muted);border-radius:6px;font:inherit;transition:background .12s,color .12s}
.rail button .ic{width:19px;height:19px}
.rail-sec{display:block;width:100%;text-align:center;font-size:.5rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);opacity:.7;margin:2px 0 3px}
.rail-admin,.rail-group{flex:none;display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}
.rail button span{font-size:.58rem;font-weight:700;letter-spacing:.02em}
.rail button:hover{background:var(--navy-50);color:var(--navy)}
.rail button.on{background:var(--navy);color:var(--bg)}
.rail button.on::before{content:"";position:absolute;left:-6px;top:9px;bottom:9px;width:3px;border-radius:0 2px 2px 0;background:var(--accent)}
.rail button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.rail button{position:relative}
.rail-n{position:absolute;top:4px;right:6px;min-width:15px;height:15px;padding:0 3px;border-radius:999px;background:var(--red-500);color:var(--bg);font-size:.56rem;font-weight:800;line-height:15px;text-align:center}
.rf-sev{width:9px;height:9px;border-radius:50%;flex:none;display:inline-block;background:var(--blue-400)}
.rf-sev.up{background:var(--ok)}
.rf-sev.warn{background:var(--amber-375)}
.rf-sev.bad{background:var(--red-500)}
.rf-sev.blue{background:var(--blue-575)}
.rf-sev.grey{background:var(--blue-400)}
.rf-rolepill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:999px;font-size:.78rem;font-weight:800;white-space:nowrap;flex:none}
.rf-rolepill .ic{width:15px;height:15px}
.rf-rolepill.adm{background:var(--amber-225);color:var(--amber-950)}
.rf-rolepill.op{background:var(--amber-425);color:var(--amber-950)}
.rf-mob-only{display:none}
.rf-shell-brand{display:flex;align-items:center;gap:8px;flex:none;white-space:nowrap}
.rf-shell-mark{width:28px;height:28px;border-radius:6px;background:var(--blue-500);color:var(--bg);display:flex;align-items:center;justify-content:center;flex:none}
.rf-shell-by{display:inline-flex;align-items:center;opacity:.8}
.rf-shell-vsep{width:1px;height:24px;background:rgba(var(--bg-rgb),.22);flex:none;margin:0 4px}
.topbar.rf-shell-op{box-shadow:0 3px 0 var(--amber-425)}
.rf-shell-hbtn{height:40px;min-width:40px;border-radius:6px;border:0;background:transparent;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 10px;cursor:pointer;font-family:var(--font);font-size:.82rem;position:relative;flex:none}
.rf-shell-hbtn:hover,.rf-shell-hbtn.on{background:rgba(var(--bg-rgb),.12)}
.rf-shell-hbtn:focus-visible{outline:2px solid rgba(var(--bg-rgb),.8);outline-offset:1px}
.rf-shell-hbtn .ic{width:18px;height:18px}
.rf-shell-lbl{font-weight:700;font-size:.82rem;white-space:nowrap}
.rf-shell-ctxbtn{flex:0 1 auto;min-width:0;max-width:340px;justify-content:flex-start;padding:0 8px}
.rf-shell-ctxbtn .ic{width:15px;height:15px;opacity:.8}
.rf-shell-ctx{display:flex;flex-direction:column;align-items:flex-start;line-height:1.2;text-align:left;min-width:0}
.rf-shell-ctx b{font-size:.84rem;font-weight:800;max-width:100%}
.rf-shell-ctx2{display:flex;align-items:center;gap:6px;font-size:.72rem;opacity:.78;max-width:100%;min-width:0}
.rf-shell-ctx2 .rf-sev{width:8px;height:8px}
.rf-shell-role{flex:none}
.rf-shell-badge{position:absolute;top:3px;right:1px;min-width:17px;height:17px;border-radius:999px;background:var(--red-500);color:var(--bg);font-size:.64rem;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 4px}
.rf-shell-lbl+.rf-shell-badge{position:static}
.rf-shell-inbox.is-zero .ic{opacity:.7}
.rf-shell-me{padding:0 6px}
.rf-shell-ava{width:32px;height:32px;border-radius:50%;background:var(--blue-500);color:var(--bg);font-weight:800;font-size:.78rem;display:flex;align-items:center;justify-content:center;flex:none}
.rf-shell-ava .ic{width:16px;height:16px}
.rf-shell-signin{color:var(--bg);font-weight:700;font-size:.82rem;border:1px solid rgba(var(--bg-rgb),.45);border-radius:6px;padding:8px 12px;text-decoration:none;flex:none}
.rf-shell-signin:hover{background:rgba(var(--bg-rgb),.14)}
.rf-shell-pop{position:fixed;top:60px;right:12px;width:380px;max-width:calc(100vw - 24px);background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 20px 50px rgba(var(--ink-rgb),.18);z-index:60;display:flex;flex-direction:column;max-height:min(620px,calc(100vh - 76px));overflow:hidden;font-size:.86rem;line-height:1.4}
.rf-shell-pop[hidden],.rf-shell-side[hidden],.rf-shell-veil[hidden]{display:none}
.rf-shell-mepop{width:320px}
.rf-shell-poph{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line);flex:none}
.rf-shell-poph b{color:var(--ink)}
.rf-shell-popb{overflow-y:auto;min-height:0;flex:1}
.rf-shell-popsearch{padding:10px 16px;border-bottom:1px solid var(--line);flex:none}
.rf-shell-popsearch .rf-search input{border:0;background:transparent;box-shadow:none;padding:0;min-height:0}
.rf-shell-ctxpop{overflow-y:auto}
.rf-shell-sech{display:flex;align-items:baseline;gap:8px;padding:14px 16px 6px}
.rf-shell-sech .rf-quiet{margin-left:auto}
.rf-shell-sep{border-top:1px solid var(--line)}
.rf-shell-mi{display:flex;align-items:center;gap:10px;padding:10px 16px;border:0;background:var(--bg);width:100%;text-align:left;font-family:var(--font);font-size:.86rem;cursor:pointer;color:var(--ink);text-decoration:none;min-height:44px}
.rf-shell-mi:hover{background:var(--navy-50)}
.rf-shell-mi:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.rf-shell-mi.on{font-weight:800}
.rf-shell-mi .rf-quiet{font-weight:400}
.rf-shell-mi:disabled{opacity:.55;cursor:progress}
.rf-shell-mi .ic{width:17px;height:17px;color:var(--muted)}
.rf-shell-link{color:var(--accent);font-weight:700}
.rf-shell-grow{flex:1;min-width:0}
.rf-shell-check{display:inline-flex;color:var(--accent)}
.rf-shell-check .ic{width:16px;height:16px;color:var(--accent)}
.rf-shell-gsub{display:flex;align-items:center;gap:8px;margin-top:4px}
.rf-shell-gauge{width:120px;height:4px;flex:none}
.rf-shell-gauge i{width:0}
.rf-shell-none{padding:14px 16px;color:var(--muted)}
.rf-shell-err{margin:8px 16px 12px;padding:8px 10px;border-radius:6px;background:var(--red-25);color:var(--red-950);font-size:.82rem}
.rf-shell-themes{display:flex;flex-wrap:wrap;gap:6px;padding:4px 16px 12px}
.rf-shell-themes button{border:1px solid var(--line);background:var(--bg);border-radius:999px;padding:5px 10px;font-family:var(--font);font-size:var(--ctl-fs);font-weight:700;color:var(--muted);cursor:pointer;min-height:32px}
.rf-shell-themes button[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:var(--bg)}
.rf-shell-meta{display:flex;gap:12px;padding:10px 16px;color:var(--muted);font-size:.78rem;font-variant-numeric:tabular-nums}
.rf-shell-out{font-weight:700}
.rf-shell-leaving{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:rgba(var(--bg-rgb),.86);color:var(--navy);font-weight:700;font-size:1rem}
.rf-shell-item{display:flex;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);align-items:flex-start}
.rf-shell-item:last-child{border-bottom:0}
.rf-shell-item>.rf-sev{margin-top:6px}
.rf-shell-item.unread{background:var(--bg-soft)}
.rf-shell-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:.84rem;text-align:left}
.rf-shell-open{border:0;background:none;padding:0;font-family:var(--font);color:var(--ink);cursor:pointer}
.rf-shell-open:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.rf-shell-word{font-size:.75rem;font-weight:700;color:var(--muted);white-space:nowrap}
.rf-shell-word.warn{color:var(--amber-750)}
.rf-shell-word.bad{color:var(--danger)}
.rf-shell-word.blue{color:var(--blue-675)}
.rf-shell-ico{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:none}
.rf-shell-ico .ic{width:16px;height:16px}
.rf-shell-ico.act{background:var(--amber-75);color:var(--warn)}
.rf-shell-ico.ok{background:var(--green-100);color:var(--green-625)}
.rf-shell-ico.bad{background:var(--red-25);color:var(--red-950)}
.rf-shell-ico.plat{background:var(--blue-25);color:var(--blue-675)}
.rf-shell-ico.grey{background:var(--navy-50);color:var(--muted)}
.rf-shell-meta2{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:3px}
.rf-shell-meta2 time{font-size:.75rem;color:var(--muted);font-weight:700}
.rf-shell-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);flex:none;margin-top:6px}
.rf-shell-scope{display:inline-flex;align-items:center;font-size:.7rem;font-weight:700;border-radius:999px;padding:1px 8px;white-space:nowrap}
.rf-shell-sc-me{background:var(--blue-25);color:var(--blue-675)}
.rf-shell-sc-grp{background:var(--green-100);color:var(--green-825)}
.rf-shell-sc-cust{background:var(--violet-150);color:var(--violet-825)}
.rf-shell-sc-plat{background:var(--navy-50);color:var(--muted)}
.rf-shell-veil{position:fixed;top:56px;left:0;right:0;bottom:0;background:rgba(var(--ink-rgb),.14);z-index:59}
.rf-shell-side{position:fixed;top:56px;right:0;bottom:0;width:420px;max-width:100%;background:var(--bg);color:var(--ink);border-left:1px solid var(--line);box-shadow:-16px 0 40px rgba(var(--ink-rgb),.12);z-index:60;display:flex;flex-direction:column;font-size:.86rem;line-height:1.4}
.rf-shell-sideh{font-size:1.05rem;color:var(--navy)}
.rf-shell-side .rf-seg{display:flex;flex-wrap:wrap}
.rf-shell-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:45;background:var(--bg);border-top:1px solid var(--line);justify-content:space-around;padding:0 4px env(safe-area-inset-bottom)}
.rf-shell-tabbar button{flex:1;min-width:0;min-height:58px;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-family:var(--font);font-size:.68rem;font-weight:700;cursor:pointer;position:relative}
.rf-shell-tabbar button .ic{width:20px;height:20px}
.rf-shell-tabbar button.on{color:var(--navy)}
.rf-shell-tabbar button.on::before{content:"";position:absolute;top:0;left:28%;right:28%;height:3px;border-radius:0 0 2px 2px;background:var(--accent)}
.rf-shell-moreb{display:flex;flex-direction:column;padding:6px 0}
.rf-shell-moreb .rf-shell-mi{min-height:48px}
.rf-shell-moreb .rail-n{position:static;margin-left:auto}
.rf-shell-tabbar .rail-n{right:auto;left:calc(50% + 4px)}
@media (max-width:900px){
  .rf-hide-m{display:none !important}
  .rf-shell-ctxbtn{max-width:220px}
}
@media (max-width:640px){
  .rf-mob-only{display:flex}
  .topbar{padding:0 6px 0 10px;gap:4px}
  .topbar .name,.rf-shell-by,.rf-shell-vsep{display:none}
  .rf-shell-role{padding:0 7px}
  .rf-shell-rolew{display:none}
  .rf-shell-ctxbtn{max-width:36vw;padding:0 4px}
  .rf-shell-ctx2{display:none}
  .rf-shell-hbtn{min-width:40px;padding:0 8px}
  .rf-shell-lbl{display:none}
  .rf-shell-lbl+.rf-shell-badge{position:absolute}
  .rf-shell-pop{left:12px;right:12px;width:auto}
  .rf-shell-side{top:0;width:100%;border-left:0}
  .rf-shell-veil{display:none}
  .hub .rail{display:none}
}

/* ---- GeoShare layout ---- */
/* The page fills the window: a column whose main area grows, so that a short
   page leaves no band under its last element. Menus are native popovers. */
body.hub{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg-soft);font-family:var(--font);color:var(--ink)}
body.hub>.topbar{position:sticky;top:0}
.hubbody{display:flex;flex:1;min-width:0}
body.hub .rail{position:sticky;top:56px;align-self:flex-start;height:calc(100vh - 56px)}
.gs-side{flex:1;min-width:0;display:block;background:var(--bg-soft);padding:18px 22px 40px}
.gs-side h1{margin:0 0 10px;color:var(--navy)}
.skip{position:absolute;left:8px;top:-60px;z-index:100;background:var(--bg);color:var(--navy);padding:10px 14px;border-radius:6px;font-weight:700}
.skip:focus{top:8px}
body.pub{margin:0;min-height:100vh;display:flex;flex-direction:column}
body.pub>main{flex:1}
.rf-shell-brand{color:inherit;text-decoration:none}
body.bare{margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg-soft);font-family:var(--font);color:var(--ink);padding:16px}
.bare-card{max-width:440px;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:28px 32px;box-shadow:0 20px 50px rgba(var(--ink-rgb),.12)}
.bare-card h1{margin:0 0 10px;color:var(--navy);font-size:1.4rem}
.rf-shell-ctxbtn .rf-ell{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rf-shell-pop .rf-shell-ctx2{display:block;opacity:.7}
.rf-shell-pop[popover]{left:auto;bottom:auto;margin:0;padding:0;overflow:hidden}
.rf-shell-pop[popover]:not(:popover-open){display:none}
.rf-shell-moreb[popover]{top:auto;bottom:calc(58px + env(safe-area-inset-bottom) + 8px)}
.rf-shell-mepop form{margin:0}
.rf-shell-srname{display:none}
.rf-shell-ava{background:var(--accent)}
.rail-sec{color:var(--muted);opacity:1}
.rf-shell-email{color:var(--muted);font-size:.78rem;overflow-wrap:anywhere}
.rail a{flex:none;width:52px;height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;border:0;background:transparent;color:var(--muted);border-radius:6px;font:inherit;transition:background .12s,color .12s}
.rail a .ic{width:19px;height:19px}
.rail a span{font-size:.58rem;font-weight:700;letter-spacing:.02em}
.rail a:hover{background:var(--navy-50);color:var(--navy)}
.rail a.on{background:var(--navy);color:var(--bg)}
.rail a:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.rail a{position:relative}
.rf-shell-tabbar a{flex:1;min-width:0;min-height:58px;border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-family:var(--font);font-size:.68rem;font-weight:700;cursor:pointer;position:relative}
.rf-shell-tabbar a .ic{width:20px;height:20px}
.rf-shell-tabbar a.on{color:var(--navy)}
.rf-shell-tabbar a.on::before{content:"";position:absolute;top:0;left:28%;right:28%;height:3px;border-radius:0 0 2px 2px;background:var(--accent)}
.rail a{text-decoration:none}
.rf-shell-tabbar a{text-decoration:none}
.rf-shell-tabbar a:focus-visible,.rf-shell-tabbar button:focus-visible,.rail a:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media (max-width:640px){
  .rf-shell-srname{display:block;position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .rf-shell-pop[popover]{left:12px}
  .gs-side{padding-bottom:calc(58px + env(safe-area-inset-bottom) + 16px)}
}
/* The Services popover: one row per service, listed on every page (NEED-4). */
.rf-shell-svcpop{width:340px}
.rf-shell-svclist{list-style:none;margin:0;padding:6px 0;overflow:auto}
.rf-shell-svclist li{display:flex;align-items:center;gap:10px;padding:8px 16px;font-size:13px}
.rf-shell-svcname{flex:1;min-width:0;font-weight:700;overflow-wrap:anywhere}
.rf-shell-svcword{color:var(--muted);font-weight:700;white-space:nowrap}
.rf-shell-svcfoot{padding:10px 16px;border-top:1px solid var(--line);font-size:12px}
.rf-shell-svcpop .rf-status-dot{width:10px;height:10px;border-radius:50%;flex:none;display:inline-block;background:var(--blue-400)}
.rf-shell-svcpop .rf-status-dot.up{background:var(--ok)}
.rf-shell-svcpop .rf-status-dot.warn{background:var(--amber-375)}
.rf-shell-svcpop .rf-status-dot.down{background:var(--red-500)}
.rf-shell-svcpop .rf-status-dot.maint{background:var(--blue-575)}
