/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/* Label/tag denoting the user that shared a connection */
.jdbc-share-tag {

    background: #0095ff;
    padding: 0.25em;

    -moz-border-radius:    0.25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius:  0.25em;
    border-radius:         0.25em;

    color: white;
    font-size: 0.75em;
    font-weight: bold;

}
/* GRIDNET OmniLaunch login theme. Scoped to Guacamole's login UI only. */
:root {
  --gridnet-login-bg: #edf3fb;
  --gridnet-login-bg2: #f8fafc;
  --gridnet-login-panel: rgba(255,255,255,.94);
  --gridnet-login-text: #172033;
  --gridnet-login-muted: #5f6b86;
  --gridnet-login-line: rgba(15,23,42,.12);
  --gridnet-login-field: #ffffff;
  --gridnet-login-accent: #2563eb;
  --gridnet-login-shadow: 0 26px 80px rgba(15,23,42,.14);
  --gridnet-login-hero: radial-gradient(circle at top right,rgba(6,182,212,.20),transparent 30%),radial-gradient(circle at left,rgba(124,58,237,.18),transparent 24%),linear-gradient(135deg,#081322 0%,#10203a 48%,#132949 100%);
}

html.gridnet-login-active,
body.gridnet-login-active {
  min-width: 0 !important;
  min-height: 100% !important;
  margin: 0 !important;
  background: radial-gradient(circle at top left,rgba(37,99,235,.10),transparent 34%),radial-gradient(circle at bottom right,rgba(124,58,237,.12),transparent 28%),linear-gradient(180deg,var(--gridnet-login-bg2),var(--gridnet-login-bg)) !important;
  color: var(--gridnet-login-text) !important;
}

.gridnet-login-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

body.gridnet-login-active .login-ui {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: auto !important;
  background: transparent !important;
  color: var(--gridnet-login-text) !important;
}

.gridnet-login-shell {
  width: min(1180px,calc(100vw - 32px));
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr);
  gap: 22px;
  align-items: stretch;
  box-sizing: border-box;
}

.gridnet-login-hero,
.gridnet-login-form-card {
  border: 1px solid var(--gridnet-login-line);
  border-radius: 28px;
  box-shadow: var(--gridnet-login-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

.gridnet-login-hero {
  position: relative;
  min-height: 640px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  color: #fff;
  background: var(--gridnet-login-hero);
}

.gridnet-login-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 320px;
  height: 320px;
  z-index: -1;
  background: radial-gradient(circle,rgba(37,99,235,.30),transparent 62%);
}

.gridnet-login-brand { display:flex; align-items:center; gap:12px; margin-bottom:28px; }
.gridnet-login-mark { width:48px; height:48px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.16); border-radius:15px; background:rgba(255,255,255,.12); box-shadow:0 14px 30px rgba(0,0,0,.18); color:#fff; font-size:24px; font-weight:900; }
.gridnet-login-brand-copy strong { display:block; color:#fff; font-size:15px; letter-spacing:.08em; text-transform:uppercase; }
.gridnet-login-brand-copy span { color:rgba(255,255,255,.72); font-size:13px; }
.gridnet-login-eyebrow { display:inline-flex; width:fit-content; margin-bottom:18px; padding:8px 12px; border:1px solid rgba(255,255,255,.15); border-radius:999px; background:rgba(255,255,255,.10); color:#dbeafe; font-size:13px; font-weight:800; }
.gridnet-login-hero h1 { max-width:10ch; margin:0; color:#fff !important; font-size:clamp(2.2rem,5vw,4.4rem); line-height:.95; letter-spacing:-.06em; }
.gridnet-login-lede { max-width:66ch; margin:20px 0 0; color:rgba(255,255,255,.86) !important; font-size:1.05rem; line-height:1.75; }
.gridnet-login-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:28px; }
.gridnet-login-stat,.gridnet-login-feature { border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.10); backdrop-filter:blur(8px); }
.gridnet-login-stat { padding:14px; border-radius:18px; }
.gridnet-login-stat strong { display:block; color:#fff; font-size:1.35rem; line-height:1.1; }
.gridnet-login-stat span { display:block; margin-top:5px; color:rgba(255,255,255,.72); font-size:.82rem; font-weight:650; }
.gridnet-login-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:30px; }
.gridnet-login-feature { padding:16px; border-radius:18px; }
.gridnet-login-feature b { display:block; color:#fff; font-size:15px; }
.gridnet-login-feature p { margin:7px 0 0; color:rgba(255,255,255,.76) !important; font-size:13px; line-height:1.5; }

.gridnet-login-form-card {
  position: relative;
  min-width: 0;
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gridnet-login-panel);
  backdrop-filter: blur(16px);
}

.gridnet-login-form-card::before {
  content: "Sign in to GRIDNET";
  display:block;
  margin:0 0 10px;
  color:var(--gridnet-login-text);
  font-size:31px;
  font-weight:800;
  line-height:1;
  letter-spacing:-.04em;
}
.gridnet-login-form-card::after {
  content:"Access remote desktops, saved tools, Live Sites, News, Media, and GRIDNET workflow shortcuts.";
  order:-1;
  display:block;
  margin:0 0 24px;
  color:var(--gridnet-login-muted);
  font-size:14px;
  line-height:1.55;
}

body.gridnet-login-active .login-ui .login-dialog {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--gridnet-login-text) !important;
}

body.gridnet-login-active .login-ui .login-dialog .logo {
  width: 100% !important;
  height: 220px !important;
  margin: 0 0 22px !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-image: url('app/ext/GRIDNET/resources/images/tcg-logo_small-tagline.jpg');
}

body.gridnet-login-active .login-ui .login-dialog .login-fields label,
body.gridnet-login-active .login-ui .login-dialog .login-field label {
  color: #65738e !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

body.gridnet-login-active .login-ui input[type="text"],
body.gridnet-login-active .login-ui input[type="password"],
body.gridnet-login-active .login-ui input[type="email"] {
  width: 100% !important;
  min-height: 46px !important;
  padding: 12px 15px !important;
  border: 1px solid rgba(100,116,139,.35) !important;
  border-radius: 16px !important;
  outline: none !important;
  background: var(--gridnet-login-field) !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  caret-color: #172033 !important;
  font: inherit !important;
  box-shadow: none !important;
}
body.gridnet-login-active .login-ui input::placeholder { color:#65738e !important; -webkit-text-fill-color:#65738e !important; opacity:1 !important; }
body.gridnet-login-active .login-ui input:-webkit-autofill { -webkit-text-fill-color:#172033 !important; box-shadow:0 0 0 1000px #fff inset !important; }
body.gridnet-login-active .login-ui input:focus { border-color:rgba(37,99,235,.70) !important; box-shadow:0 0 0 4px rgba(37,99,235,.12) !important; }

body.gridnet-login-active .login-ui input[type="submit"],
body.gridnet-login-active .login-ui button[type="submit"] {
  width:100% !important;
  min-height:50px !important;
  margin-top:20px !important;
  border:0 !important;
  border-radius:16px !important;
  background:linear-gradient(135deg,#2563eb,#2f6bf2) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font:inherit !important;
  font-weight:900 !important;
  box-shadow:0 18px 34px rgba(37,99,235,.26) !important;
  cursor:pointer !important;
}

body.gridnet-login-active .login-ui .login-dialog .error-message,
body.gridnet-login-active .login-ui .login-dialog .login-error { color:#dc2626 !important; }
body.gridnet-login-active .login-ui .version { margin-top:18px !important; color:#5f6b86 !important; }
body.gridnet-login-active .login-ui .warning,
body.gridnet-login-active .login-ui .welcome,
body.gridnet-login-active .login-ui .welcome h2,
body.gridnet-login-active .login-ui .welcome p { color:#172033 !important; -webkit-text-fill-color:#172033 !important; }
body.gridnet-login-active .login-ui .welcome { width:min(1180px,calc(100vw - 32px)); margin:18px auto 28px !important; padding:18px; border:1px solid var(--gridnet-login-line); border-radius:18px; background:rgba(255,255,255,.82); text-align:center; }
body.gridnet-login-active .login-ui .welcome a { color:#0057d8 !important; }
body.gridnet-login-active .login-ui hr { border:0 !important; border-top:1px solid var(--gridnet-login-line) !important; }
.gridnet-login-sso-status { min-height:20px; margin-top:14px; color:var(--gridnet-login-muted); font-size:12px; font-weight:700; line-height:1.4; }
.gridnet-login-sso-status.is-error { color:#b45309; }

@media (max-width:980px) {
  .gridnet-login-shell { grid-template-columns:1fr; }
  .gridnet-login-hero { min-height:auto; }
}
@media (max-width:640px) {
  .gridnet-login-shell { width:min(100vw - 18px,100%); padding:9px 0 18px; }
  .gridnet-login-hero,.gridnet-login-form-card { padding:22px 18px; border-radius:22px; }
  .gridnet-login-stats,.gridnet-login-features { grid-template-columns:1fr; }
  .gridnet-login-hero h1 { font-size:clamp(2.05rem,12vw,3.2rem); }
  body.gridnet-login-active .login-ui .welcome { width:min(100vw - 18px,100%); }
}
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

@font-face {
    font-family: 'Raleway';
    font-weight: normal;
    font-style: normal;
    src: url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-Regular.woff') format('woff'),
         url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-Regular.otf') format('opentype'),
         url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-Regular.ttf') format('ttf');
}

@font-face {
    font-family: 'Raleway';
    font-weight: bold;
    font-style: normal;
    src: url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-Bold.woff') format('woff'),
         url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-Bold.otf') format('opentype'),
         url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-Bold.ttf') format('ttf');

 }
@font-face {
    font-family: 'Raleway';
    font-weight: normal;
    font-style: italic;
    src: url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-Italic.woff') format('woff'),
         url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-Italic.otf') format('opentype'),
         url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-Italic.ttf') format('ttf');
}

@font-face {
    font-family: 'Raleway';
    font-weight: bold;
    font-style: italic;
    src: url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-BoldItalic.woff') format('woff'),
         url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-BoldItalic.otf') format('opentype'),
         url('app/ext/GRIDNET/resources/fonts/raleway/Raleway-BoldItalic.ttf') format('ttf');
}
/* GRIDNET Guacamole shell viewport layout
   Drop-in replacement for gridnet-shell.css.
   No fixed 700px Live Sites height. Hero remains visible at viewport bottom. */

:root {
    --gridnet-header-h: 76px;
    --gridnet-gap: 12px;
    --gridnet-hero-h: 120px;
    /* High Contrast is the default and preserves the current GRIDNET look. */
    --gridnet-bg: #020b1f;
    --gridnet-surface: #07162c;
    --gridnet-surface-2: #0d2746;
    --gridnet-text: #f7fbff;
    --gridnet-muted: rgba(215,230,250,.72);
    --gridnet-border: rgba(120,160,230,.26);
    --gridnet-topbar: rgba(250,252,255,.98);
    --gridnet-topbar-text: #0f172a;
    --gridnet-nav-surface: #ffffff;
    --gridnet-nav-surface-2: #f7faff;
    --gridnet-nav-border: rgba(15,23,42,.12);
    --gridnet-drawer: #0b1a30;
    --gridnet-drawer-2: #050e1e;
    --gridnet-drawer-text: #f7fbff;
    --gridnet-accent: #4d82ff;
    --gridnet-shadow: rgba(0,0,0,.32);
}


/* =====================================================
   GRIDNET COLOR THEMES
   ===================================================== */
body.high-contrast-mode {
    --gridnet-bg: #020b1f;
    --gridnet-surface: #07162c;
    --gridnet-surface-2: #0d2746;
    --gridnet-text: #f7fbff;
    --gridnet-muted: rgba(215,230,250,.72);
    --gridnet-border: rgba(120,160,230,.26);
    --gridnet-topbar: rgba(250,252,255,.98);
    --gridnet-topbar-text: #0f172a;
    --gridnet-nav-surface: #ffffff;
    --gridnet-nav-surface-2: #f7faff;
    --gridnet-nav-border: rgba(15,23,42,.12);
    --gridnet-drawer: #0b1a30;
    --gridnet-drawer-2: #050e1e;
    --gridnet-drawer-text: #f7fbff;
    --gridnet-accent: #4d82ff;
    color-scheme: light;
}

body.dark-mode {
    --gridnet-bg: #050b14;
    --gridnet-surface: #0a1423;
    --gridnet-surface-2: #102038;
    --gridnet-text: #f4f7fc;
    --gridnet-muted: rgba(192,207,229,.76);
    --gridnet-border: rgba(112,143,190,.24);
    --gridnet-topbar: #0a1423;
    --gridnet-topbar-text: #f4f7fc;
    --gridnet-nav-surface: #0d1a2d;
    --gridnet-nav-surface-2: #111f34;
    --gridnet-nav-border: rgba(128,157,201,.25);
    --gridnet-drawer: #081322;
    --gridnet-drawer-2: #040a13;
    --gridnet-drawer-text: #f4f7fc;
    --gridnet-accent: #6b9cff;
    --gridnet-shadow: rgba(0,0,0,.50);
    color-scheme: dark;
}

body.light-mode {
    --gridnet-bg: #eaf0f8;
    --gridnet-surface: #ffffff;
    --gridnet-surface-2: #f4f7fb;
    --gridnet-text: #16243a;
    --gridnet-muted: rgba(55,75,105,.76);
    --gridnet-border: rgba(32,78,142,.18);
    --gridnet-topbar: rgba(255,255,255,.98);
    --gridnet-topbar-text: #16243a;
    --gridnet-nav-surface: #ffffff;
    --gridnet-nav-surface-2: #f5f8fc;
    --gridnet-nav-border: rgba(22,36,58,.13);
    --gridnet-drawer: #f8fbff;
    --gridnet-drawer-2: #eaf1f9;
    --gridnet-drawer-text: #16243a;
    --gridnet-accent: #2563eb;
    --gridnet-shadow: rgba(31,55,88,.20);
    color-scheme: light;
}

html,
body {
    width: 100%;
    height: 100%;
    min-height: 100%;
    /*overflow: hidden !important;*/
}
body {
    margin: 0;
    background: var(--gridnet-bg);
    color: var(--gridnet-text);
    transition: background-color .18s ease, color .18s ease;
}

.gridnet-shell,
.gridnet-shell * {
    box-sizing: border-box;
}

.gridnet-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    display: grid;
    grid-template-rows: var(--gridnet-header-h) minmax(0, 1fr);
    overflow: hidden;
    background: var(--gridnet-bg);
    color: var(--gridnet-text);
    font-family: "Segoe UI", system-ui, sans-serif;
}

/* Header */
.gridnet-shell .topbar {
    position: relative;
    inset: auto;
    z-index: 8000;
    min-height: 0;
    height: var(--gridnet-header-h);
    background: var(--gridnet-topbar);
    border-bottom: 1px solid var(--gridnet-nav-border);
    box-shadow: 0 4px 18px rgba(2,6,23,.15);
    overflow: visible;
}

.gridnet-shell .topbar-inner {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}

.gridnet-shell .brand-logo-account-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gridnet-shell .brand-account-pill-btn,
.gridnet-shell .ol-left-tools-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gridnet-nav-border);
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--gridnet-nav-surface);
    color: var(--gridnet-topbar-text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.gridnet-shell .ol-left-tools-toggle {
    border-radius: 12px;
    background: #111827;
    color: #fff;
    display: none;
}

.gridnet-shell .ol-account-avatar { color: #6d28d9; }
.gridnet-shell .ol-account-text { display: grid; line-height: 1.05; text-align: left; }
.gridnet-shell .ol-account-text strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.gridnet-shell .ol-account-text small { color: #64748b; font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.gridnet-shell .topbar-nav-wrap,
.gridnet-shell .header-nav-shell,
.gridnet-shell .navbar { min-width: 0; overflow: visible; }
.gridnet-shell .header-nav-shell { min-height: 50px; display: flex; align-items: center; padding: 4px 10px; border: 1px solid var(--gridnet-nav-border); border-radius: 18px; background: linear-gradient(180deg,var(--gridnet-nav-surface),var(--gridnet-nav-surface-2)); }
.gridnet-shell .navbar { width: 100%; display: flex; align-items: center; }
.gridnet-shell .navbar1-panel { display: block; width: 100%; }
.gridnet-shell .hamburger-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--gridnet-nav-border); border-radius: 12px; background: var(--gridnet-nav-surface); color: var(--gridnet-topbar-text); cursor: pointer; }

/* Main viewport */
.gridnet-main {
    min-height: 0;
    overflow: hidden;
    display: block;
}

.gridnet-shell .ol-home-panels {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: var(--gridnet-gap);
    display: block;
    overflow: hidden;
}

.gridnet-shell #olLiveSitesAccordion {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0,1fr);
    overflow: hidden;
    border: 1px solid var(--gridnet-border);
    border-radius: 16px;
    background: var(--gridnet-surface);
    box-shadow: 0 12px 34px var(--gridnet-shadow);
}

.gridnet-shell .ol-accordion-toggle {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 0;
    background: linear-gradient(
        180deg,
        var(--gridnet-nav-surface),
        var(--gridnet-nav-surface-2)
    );
    color: var(--gridnet-topbar-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.gridnet-shell .ol-accordion-title { font-size: .95rem; font-weight: 900; }
.gridnet-shell .ol-accordion-subtitle { overflow: hidden; color: var(--gridnet-muted); font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gridnet-shell .ol-accordion-chevron { transition: transform .16s; }
.gridnet-shell .ol-collapsed .ol-accordion-body { display: none; }
.gridnet-shell .ol-collapsed .ol-accordion-chevron { transform: rotate(-90deg); }

.gridnet-shell #olLiveSitesBody {
    min-height: 0;
    overflow: hidden;
    padding: 12px;
}

.gridnet-shell .ol-live-sites-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0,1fr) var(--gridnet-hero-h);
    gap: 14px;
    overflow: hidden;
}

.gridnet-shell .gridnet-geoflow-section {
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden;
    border: 1px solid var(--gridnet-border);
    border-radius: 18px;
    background: #000;
}

.gridnet-shell .gridnet-geoflow-section iframe {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    border: 0;
}

.gridnet-shell .gridnet-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--gridnet-muted);
    text-align: center;
}

.gridnet-shell .gridnet-hero-card {
    height: var(--gridnet-hero-h) !important;
    min-height: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    overflow: hidden;
    border: 1px solid var(--gridnet-border);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at top right,
            rgba(77,130,255,.15),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--gridnet-surface),
            var(--gridnet-surface-2)
        );
}
.gridnet-shell .gridnet-hero-left h2 { margin: 0; }
.gridnet-shell .gridnet-hero-left p { margin: 6px 0 0; color: var(--gridnet-muted); }
.gridnet-shell .gridnet-hero-right button { min-width: 90px; min-height: 42px; border: 1px solid var(--gridnet-border); border-radius: 999px; background: var(--gridnet-surface); color: var(--gridnet-text); cursor: pointer; }

/* Drawer */
.ol-left-tools-backdrop { position: fixed; inset: 0; z-index: 8998; background: rgba(2,6,23,.66); opacity: 0; visibility: hidden; pointer-events: none; transition: .18s; }
.ol-left-tools-open .ol-left-tools-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
.ol-left-tools-drawer { position: fixed; inset: 0 auto 0 0; z-index: 8999; width: min(480px,94vw); display: flex; flex-direction: column; background: linear-gradient(180deg,var(--gridnet-drawer),var(--gridnet-drawer-2)); color: var(--gridnet-drawer-text); border-right: 1px solid var(--gridnet-border); box-shadow: 20px 0 48px var(--gridnet-shadow); transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .22s ease,visibility .22s ease; overflow: hidden; }
.ol-left-tools-open .ol-left-tools-drawer { transform: translateX(0); visibility: visible; pointer-events: auto; }
.ol-left-tools-header { display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 12px; padding: 16px; border-bottom: 1px solid rgba(120,160,230,.2); }
.ol-left-tools-header h2 { margin: 0; font-size: 1.15rem; }
.ol-left-tools-header p { margin: 5px 0 0; color: rgba(215,230,250,.7); font-size: .78rem; }
.ol-left-tools-close { width: 44px; height: 44px; border: 1px solid rgba(140,180,235,.28); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; cursor: pointer;min-width: 0cm; }
.ol-left-tools-body {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-gutter: stable;
    padding: 12px;
}
.ol-connections-loading { padding: 12px; border-radius: 10px; background: rgba(8,22,41,.76); }

@media (max-width: 820px) {
    :root { --gridnet-header-h: 70px; --gridnet-hero-h: 104px; --gridnet-gap: 8px; }
    .gridnet-shell .topbar-inner { grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 8px; }
    .gridnet-shell .ol-left-tools-toggle span:last-child { display: none; }
    .gridnet-shell .topbar-nav-wrap { width: 44px; }
    .gridnet-shell .header-nav-shell { min-height: 44px; padding: 0; border: 0; background: transparent; }
    .gridnet-shell .hamburger-btn { display: inline-flex; align-items: center; justify-content: center; }
    .gridnet-shell .navbar1-panel { display: none; position: fixed; top: 66px; left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 78px); overflow: auto; padding: 8px; border: 1px solid rgba(120,160,230,.34); border-radius: 16px; background: rgba(8,15,28,.98); }
    .gridnet-shell .navbar1-panel.open { display: block; }
    .gridnet-shell .ol-accordion-subtitle { display: none; }
    .gridnet-shell .ol-accordion-toggle { grid-template-columns: 1fr auto; }
    .gridnet-shell .gridnet-hero-card { align-items: flex-start; padding: 14px 16px; }
}

.dropdown1 > .dropbtn{
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.dropdown1.open > .dropbtn{
    background:#1d4ed8;
    color:white;
    transform:translateY(-1px);
}

.dropdown-content{
    animation:
        navbarFade .18s ease;
}

@keyframes navbarFade{
    from{
        opacity:0;
        transform:translateY(-4px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media (max-width: 820px) {
    .topbar-inner {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: space-between;
    }
    .topbar-nav-wrap {
        flex: 0 0 auto;
        width: auto;
    }
    .header-nav-shell {
        width: auto;
    }
}

/* Theme-aware shell controls */
.gridnet-shell .topbar,
.gridnet-shell .brand-account-pill-btn,
.gridnet-shell .hamburger-btn,
.gridnet-shell .header-nav-shell {
    color: var(--gridnet-topbar-text);
}

.ol-left-tools-drawer,
.ol-left-tools-header,
.ol-left-tools-body,
.ol-left-tools-panel {
    color: var(--gridnet-drawer-text);
}

body.light-mode .ol-left-tools-header p,
body.light-mode .gridnet-settings-intro,
body.light-mode .gridnet-settings-note {
    color: var(--gridnet-muted) !important;
}

body.light-mode #olLeftToolsDrawer select,
body.light-mode #olLeftToolsDrawer input {
    background-color: #ffffff !important;
    color: #16243a !important;
    border-color: var(--gridnet-border) !important;
    color-scheme: light;
}

body.dark-mode #olLeftToolsDrawer select,
body.high-contrast-mode #olLeftToolsDrawer select {
    color-scheme: dark;
}

.gridnet-hero-right {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    height: 90px;
    min-width: 0;
}

#gridnetPulseContainer {
    width: 100%;
    min-width: 0;
    height: 90px;
}

.gridnet-hero-right {
        display: flex;
        align-items: stretch;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 110px;
    }
}

@media (max-width: 768px) {
    #gridnetPulseContainer {
        width: calc(100% - 32px);
        min-width: 0;
        height: auto;
        min-height: 110px;
        display: flex;
        align-items: stretch;
    }
}

#gridnetRefreshBtn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 8px 0 8px;
    flex: 0 0 auto;
}

.gnd-focused {
  animation: gndPulseHighlight 3s ease;
}

@keyframes gndPulseHighlight {
  0% {
    border-color: #f59e0b;
    box-shadow:
      0 0 25px rgba(245,158,11,.9),
      0 0 14px rgba(245,158,11,.6);
  }
  100% {
    border-color: rgba(120,160,230,.22);
    box-shadow: none;
  }
}

#gridnetRefreshBtn span {
    font-size: 18px;
    line-height: 1;
}

.login-ui .login-dialog .warning .welcome {
    font-style: italic;
    font-size: 0.75em;
    color: rgba(255,255,255,1.0) !important;
    --gridnet-text: #000 !important;
    --gridnet-surface: #ffffff !important;
    --gridnet-border: #ccc !important;
    --gridnet-accent: #ff6600 !important; /* your orange login button */}
/* GRIDNET Navbar1 complete behavior
   Load AFTER navbar1-only.css and BEFORE gridnet-shell.css.
   Desktop: top categories open as floating panels; groups expand downward.
   Mobile: categories and groups stack as true accordions.
*/

#navbar1Menu,
#navbar1Menu * { box-sizing: border-box; }

#navbar1Menu.navbar1 {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 2px;
  width: fit-content !important;
  max-width: 100% !important;
  overflow: visible !important;
  font-size: 10px !important;
}

#navbar1Menu .dropdown1,
#navbar1Menu .menu-group { position: relative; }

#navbar1Menu .dropdown1 { flex: 0 0 auto; display: flex; flex-direction: column; }

#navbar1Menu .dropbtn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 12px;
  background: linear-gradient(180deg,#fff,#f8fafc);
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(2,6,23,.04);
  transition: background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease,color .16s ease;
}

#navbar1Menu .dropbtn:hover,
#navbar1Menu .dropbtn:focus-visible {
  background: #f8fafc;
  border-color: rgba(37,99,235,.24);
  box-shadow: 0 5px 14px rgba(15,23,42,.09);
  outline: none;
}

#navbar1Menu .dropdown1.open > .dropbtn,
#navbar1Menu .dropdown1.mobile-open > .dropbtn {
  background: linear-gradient(180deg,#2f62df,#1d4ed8);
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(29,78,216,.24);
}

#navbar1Menu .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-width: min(92vw,480px);
  max-height: calc(100dvh - 100px);
  overflow: auto;
  padding: 10px;
  margin: 0;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(2,6,23,.18);
  z-index: 99999;
  transform-origin: top left;
  animation: olNavPanelIn .14s ease both;
}

#navbar1Menu .dropdown1.open > .dropdown-content,
#navbar1Menu .dropdown1.mobile-open > .dropdown-content {
  display: block;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#navbar1Menu .dropdown1:not(.open):not(.mobile-open) > .dropdown-content,
#navbar1Menu .dropdown1:not(.open):not(.mobile-open):hover > .dropdown-content,
#navbar1Menu .dropdown1:not(.open):not(.mobile-open):focus-within > .dropdown-content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#navbar1Menu .menu-group { width: 100%; margin: 0 0 8px; overflow: visible; }
#navbar1Menu .menu-group:last-child { margin-bottom: 0; }

#navbar1Menu .menu-group-btn {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

#navbar1Menu .menu-group-btn:hover,
#navbar1Menu .menu-group-btn:focus-visible,
#navbar1Menu .menu-group.open > .menu-group-btn {
  background: #eef4ff;
  border-color: rgba(37,99,235,.25);
  color: #1e40af;
  outline: none;
}

/* Critical OmniLaunch behavior: group contents expand DOWN, never sideways. */
#navbar1Menu .menu-group-items {
  display: none;
  position: static !important;
  inset: auto !important;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 0 0 4px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#navbar1Menu .menu-group.open > .menu-group-items {
  display: grid !important;
  gap: 7px;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: olNavItemsIn .13s ease both;
}

#navbar1Menu .menu-group:not(.open) > .menu-group-items,
#navbar1Menu .menu-group:not(.open):hover > .menu-group-items,
#navbar1Menu .menu-group:not(.open):focus-within > .menu-group-items {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#navbar1Menu .menu-group::after { content: none !important; display: none !important; }

#navbar1Menu .button,
#navbar1Menu button.button,
#navbar1Menu a.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100% !important;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15,23,42,.09);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left !important;
  text-decoration: none;
  white-space: normal !important;
  cursor: pointer;
  transition: background .13s ease,border-color .13s ease,transform .13s ease;
}

#navbar1Menu .button:hover,
#navbar1Menu .button:focus-visible {
  background: #f2f6ff;
  border-color: rgba(37,99,235,.24);
  transform: translateX(2px);
  outline: none;
}

#navbar1Menu .caret { transition: transform .16s ease; }
#navbar1Menu .menu-group.open > .menu-group-btn .caret { transform: rotate(90deg); }
#navbar1Menu .dropdown1.open > .dropbtn .caret,
#navbar1Menu .dropdown1.mobile-open > .dropbtn .caret { transform: rotate(180deg); }

@keyframes olNavPanelIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }
@keyframes olNavItemsIn { from { opacity:0; transform:translateY(-3px); } to { opacity:1; transform:translateY(0); } }

/* Dark mode */
body.ol-dark-mode #navbar1Menu .dropbtn,
body.dark-mode #navbar1Menu .dropbtn,
html[data-theme="dark"] #navbar1Menu .dropbtn,
body.ol-dark-mode #navbar1Menu .menu-group-btn,
body.dark-mode #navbar1Menu .menu-group-btn,
html[data-theme="dark"] #navbar1Menu .menu-group-btn,
body.ol-dark-mode #navbar1Menu .button,
body.dark-mode #navbar1Menu .button,
html[data-theme="dark"] #navbar1Menu .button {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(255,255,255,.13);
}
body.ol-dark-mode #navbar1Menu .dropdown-content,
body.dark-mode #navbar1Menu .dropdown-content,
html[data-theme="dark"] #navbar1Menu .dropdown-content { background:#07101f; border-color:rgba(255,255,255,.13); box-shadow:0 18px 42px rgba(0,0,0,.46); }
body.ol-dark-mode #navbar1Menu .button:hover,
body.dark-mode #navbar1Menu .button:hover,
html[data-theme="dark"] #navbar1Menu .button:hover,
body.ol-dark-mode #navbar1Menu .menu-group-btn:hover,
body.dark-mode #navbar1Menu .menu-group-btn:hover,
html[data-theme="dark"] #navbar1Menu .menu-group-btn:hover { background:#1f2937; color:#dbeafe; }

/* ============================================================
   RESPONSIVE NAVBAR1 LAYOUT

   0-640px:
     Full-width mobile overlay below the 74px header.

   641-1350px:
     Compact floating panel in the available header space.

   1351px and wider:
     Normal horizontal paNavbar1 inside the header.
   ============================================================ */

/* Shared collapsed-panel behavior for mobile and compact layouts. */
@media (max-width: 1350px) {
  .gridnet-shell .topbar-inner {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .gridnet-shell .brand-logo-account-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .gridnet-shell .topbar-nav-wrap,
  .gridnet-shell .header-nav-shell,
  .gridnet-shell .navbar {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .gridnet-shell .navbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .gridnet-shell .hamburger-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
  }

  #navbarSupportedContent.navbar1-panel {
    display: none !important;
    position: fixed !important;
    width: auto !important;
    max-height: calc(100dvh - var(--gridnet-header-h, 70px) - 16px) !important;
    margin: 8px 0 0 !important;
    padding: 8px 8px calc(18px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 1px solid rgba(120, 160, 230, .34) !important;
    border-radius: 16px !important;
    background: rgba(8, 15, 28, .98) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .48) !important;
    z-index: 99999 !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #navbarSupportedContent.navbar1-panel.open,
  #navbarSupportedContent.navbar1-panel.mobile-open {
    display: block !important;
  }

  #navbar1Menu.navbar1 {
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  #navbar1Menu .dropdown1 {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 14px;
    background: #fff;
  }

  #navbar1Menu .dropbtn {
    width: 100% !important;
    min-height: 48px;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
  }

  #navbar1Menu .dropdown-content {
    display: none !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 8px !important;
    overflow: visible !important;
    border: 0 !important;
    border-top: 1px solid rgba(15, 23, 42, .08) !important;
    border-radius: 0 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    animation: none !important;
  }

  #navbar1Menu .dropdown1.open > .dropdown-content,
  #navbar1Menu .dropdown1.mobile-open > .dropdown-content {
    display: block !important;
  }

  #navbar1Menu .menu-group {
    position: static !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    overflow: hidden !important;
    border-radius: 11px;
  }

  #navbar1Menu .menu-group:last-child {
    margin-bottom: 0 !important;
  }

  #navbar1Menu .menu-group-btn {
    min-height: 44px;
  }

  #navbar1Menu .menu-group-items {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 8px 0 0 12px !important;
  }

  #navbar1Menu .button {
    min-height: 44px;
    margin: 0 0 8px !important;
    padding: 12px 14px;
  }

  #navbar1Menu .button:last-child {
    margin-bottom: 0 !important;
  }

  body.ol-dark-mode #navbar1Menu .dropdown1,
  body.dark-mode #navbar1Menu .dropdown1,
  html[data-theme="dark"] #navbar1Menu .dropdown1 {
    background: #111827;
    border-color: rgba(255, 255, 255, .13);
  }

  body.ol-dark-mode #navbar1Menu .dropdown-content,
  body.dark-mode #navbar1Menu .dropdown-content,
  html[data-theme="dark"] #navbar1Menu .dropdown-content {
    background: #020617 !important;
    border-top-color: rgba(255, 255, 255, .13) !important;
  }
}

/* Small/mobile windows: full-width panel directly below the header. */
@media (max-width: 640px) {
  #navbarSupportedContent.navbar1-panel {
    top: 74px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
  }
}

/* Compact desktop/tablet windows: use the open space inside the header. */
@media (min-width: 641px) and (max-width: 1350px) {
  #navbarSupportedContent.navbar1-panel {
    top: 4px !important;
    left: clamp(350px, 40vw, 500px) !important;
    right: 70px !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* Touch devices use the full mobile overlay even with a wide viewport. */
@media (hover: none) and (pointer: coarse) {
  #navbarSupportedContent.navbar1-panel {
    top: 74px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px) !important;
  }
}

/* Wide desktop: horizontal paNavbar1 in the header. */
@media (min-width: 1351px) and (hover: hover) and (pointer: fine) {
  .gridnet-shell .navbar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
  }

  .gridnet-shell .hamburger-btn {
    display: none !important;
  }

  #navbarSupportedContent.navbar1-panel {
    display: block !important;
    position: static !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 300px !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: auto !important;
  }

  #navbar1Menu.navbar1 {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 0 !important;
  }
}
/* GRIDNET Settings drawer
   Load after gridnet-shell.css and navbar1-complete.css.
*/

#localSettingsPanel.gridnet-settings-panel {
  min-height: 0;
  overflow: hidden;
}

.gridnet-settings-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 2px 18px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gridnet-settings-intro {
  margin: 0 0 12px;
  color: rgba(210,225,245,.72);
  font-size: .82rem;
  line-height: 1.45;
}

.gridnet-settings-section {
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid rgba(120,160,230,.26);
  border-radius: 14px;
  background: rgba(15,23,42,.68);
}

.gridnet-settings-section-toggle {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #f8fbff;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.gridnet-settings-section-toggle:hover,
.gridnet-settings-section-toggle:focus-visible {
  background: rgba(96,165,250,.09);
  outline: none;
}

.gridnet-settings-chevron {
  transition: transform .16s ease;
}

.gridnet-settings-section.is-open .gridnet-settings-chevron {
  transform: rotate(180deg);
}

.gridnet-settings-section-body {
  display: none;
  padding: 0 12px 14px;
}

.gridnet-settings-section.is-open > .gridnet-settings-section-body {
  display: block;
}

.gridnet-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.gridnet-settings-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.gridnet-settings-field.is-wide {
  grid-column: 1 / -1;
}

.gridnet-settings-field > span,
.gridnet-settings-stat > span {
  color: rgba(210,225,245,.68);
  font-size: .72rem;
  font-weight: 700;
}

.gridnet-settings-field input,
.gridnet-settings-field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(120,160,230,.30);
  border-radius: 10px;
  background: rgba(2,6,23,.75);
  color: #f8fbff;
  font: inherit;
}

.gridnet-settings-field input:focus,
.gridnet-settings-field select:focus {
  border-color: rgba(96,165,250,.85);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  outline: none;
}

.gridnet-settings-stat-grid,
.gridnet-popup-summary {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
}

.gridnet-settings-stat,
.gridnet-popup-summary > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(120,160,230,.20);
  border-radius: 11px;
  background: rgba(255,255,255,.04);
}

.gridnet-settings-stat strong,
.gridnet-popup-summary strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: .88rem;
  word-break: break-word;
}

.gridnet-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gridnet-settings-btn {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(120,160,230,.28);
  border-radius: 10px;
  background: rgba(30,64,175,.82);
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.gridnet-settings-btn.secondary { background: rgba(30,41,59,.84); }
.gridnet-settings-btn.danger { border-color: rgba(239,68,68,.42); color: #fecaca; background: rgba(127,29,29,.28); }
.gridnet-settings-btn:disabled { opacity: .5; cursor: not-allowed; }

.gridnet-settings-status {
  min-height: 18px;
  margin-top: 9px;
  color: #bfdbfe;
  font-size: .76rem;
  line-height: 1.35;
}

.gridnet-settings-status.is-error { color: #fecaca; }
.gridnet-settings-note { margin: 9px 0 0; color: rgba(210,225,245,.65); font-size: .74rem; line-height: 1.4; }
.gridnet-settings-debug { color: rgba(210,225,245,.52) !important; }

@media (max-width: 560px) {
  .gridnet-settings-grid,
  .gridnet-settings-stat-grid,
  .gridnet-popup-summary { grid-template-columns: 1fr; }
  .gridnet-settings-actions { display: grid; grid-template-columns: 1fr; }
  .gridnet-settings-btn { width: 100%; min-height: 44px; }
}

.gmm-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
/* GRIDNET Guacamole Search
   Layered add-on. Does not replace or modify the existing shell/navbar files. */

.gridnet-header-search-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--gridnet-nav-border);
    border-radius: 999px;
    background: var(--gridnet-nav-surface);
    color: var(--gridnet-topbar-text);
    font: inherit;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.gridnet-header-search-button:hover,
.gridnet-header-search-button[aria-expanded="true"] {
    border-color: var(--gridnet-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gridnet-accent) 18%, transparent);
}

.gridnet-header-search-button:focus-visible,
.gridnet-guac-search-bar select:focus-visible,
.gridnet-guac-search-bar input:focus-visible,
.gridnet-guac-search-submit:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--gridnet-accent) 42%, transparent);
    outline-offset: 2px;
}

.gridnet-header-search-icon {
    font-size: 1rem;
    line-height: 1;
}

.gridnet-shell .ol-home-panels.gridnet-search-open {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: var(--gridnet-gap);
}

.gridnet-guac-search-panel {
    display: none;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--gridnet-border);
    border-radius: 16px;
    background: var(--gridnet-surface);
    color: var(--gridnet-text);
    box-shadow: 0 9px 24px var(--gridnet-shadow);
}

.gridnet-search-open > .gridnet-guac-search-panel {
    display: block;
}

.gridnet-guac-search-bar {
    display: grid;
    grid-template-columns: minmax(140px, 165px) minmax(180px, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.gridnet-guac-search-bar select,
.gridnet-guac-search-bar input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    border: 1px solid var(--gridnet-border);
    border-radius: 14px;
    background: var(--gridnet-bg);
    color: var(--gridnet-text);
    font: inherit;
}

.gridnet-guac-search-bar select {
    padding: 8px 36px 8px 12px;
    color-scheme: inherit;
}

.gridnet-guac-search-bar input {
    padding: 8px 14px;
}

.gridnet-guac-search-bar input::placeholder {
    color: var(--gridnet-muted);
    opacity: 1;
}

.gridnet-guac-search-submit {
    min-width: 90px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid color-mix(in srgb, var(--gridnet-accent) 70%, var(--gridnet-border));
    border-radius: 999px;
    background: var(--gridnet-surface-2);
    color: var(--gridnet-text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.gridnet-guac-search-submit:hover {
    background: var(--gridnet-accent);
    color: #fff;
}

.gridnet-guac-search-status {
    min-height: 0;
    margin-top: 7px;
    color: var(--gridnet-muted);
    font-size: .77rem;
}

.gridnet-guac-search-status:empty {
    display: none;
}

/* Fallback results overlay is only used if the Tools drawer search mount is absent. */
.gridnet-search-fallback {
    position: fixed;
    top: calc(var(--gridnet-header-h) + 10px);
    right: 10px;
    bottom: 10px;
    z-index: 9100;
    width: min(560px, calc(100vw - 20px));
    display: none;
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--gridnet-border);
    border-radius: 16px;
    background: var(--gridnet-surface);
    color: var(--gridnet-text);
    box-shadow: 0 18px 48px var(--gridnet-shadow);
}

.gridnet-search-fallback.is-open { display: block; }
.gridnet-search-fallback-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.gridnet-search-fallback-close { min-width:38px; min-height:38px; border:1px solid var(--gridnet-border); border-radius:10px; background:var(--gridnet-surface-2); color:var(--gridnet-text); cursor:pointer; }

.gridnet-search-result-list { display: grid; gap: 10px; }
.gridnet-search-result-card { padding: 12px; border: 1px solid var(--gridnet-border); border-radius: 14px; background: var(--gridnet-surface-2); }
.gridnet-search-result-title { color: var(--gridnet-accent); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.gridnet-search-result-url { margin-top: 4px; color: var(--gridnet-muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gridnet-search-result-text { margin-top: 7px; color: var(--gridnet-text); font-size: .88rem; line-height: 1.4; opacity: .9; }
.gridnet-search-message { padding: 14px; color: var(--gridnet-muted); text-align: center; }
.gridnet-search-error { color: #ef4444; }

@media (max-width: 820px) {
    .gridnet-header-search-button {
        width: 44px;
        min-width: 44px;
        padding: 0;
        border-radius: 12px;
    }
    .gridnet-header-search-label { display: none; }
    .gridnet-guac-search-bar { grid-template-columns: 1fr; }
    .gridnet-guac-search-submit { width: 100%; }
}

.gridnet-quickadd-popover {
    position: fixed;
    width: 320px;
    padding: 12px;
    border-radius: 12px;
    background: #0e1b2d;
    border: 1px solid #294464;
    z-index: 2147483000;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
.gridnet-quickadd-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}
.gridnet-quickadd-row {
    display: flex;
    gap: 8px;
}
.gridnet-quickadd-row input {
    flex: 1;
}
.gridnet-quickadd-row button {
    flex: 0 0 auto;
}

.gridnet-quickadd-popover {
    color: #e8f1ff;
}

.gridnet-quickadd-title {
    color: #e8f1ff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gridnet-quickadd-row {
    display: flex;
    gap: 10px;
}

.gridnet-quickadd-row input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    color: #ffffff;
    background: #0a1830;
    border: 1px solid #294464;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.gridnet-quickadd-row input::placeholder {
    color: rgba(200,220,255,.55);
}

.gridnet-quickadd-row input:focus {
    border-color: #4ab8ff;
    box-shadow: 0 0 0 3px rgba(74,184,255,.18);
}

.gridnet-quickadd-row button {
    flex: 0 0 auto;
    min-width: 72px;
    height: 40px;
    padding: 0 16px;
    color: #ffffff;
    font-weight: 700;
    border: 1px solid #2d77d1;
    border-radius: 8px;
    background: linear-gradient(
        180deg,
        #3388ee,
        #1f5fae
    );
    cursor: pointer;
    transition:
        background .15s ease,
        transform .15s ease;
}
.gridnet-quickadd-row button:hover {
    background: linear-gradient(
        180deg,
        #4a99f0,
        #2b74ca
    );
}
.gridnet-quickadd-row button:active {
    transform: translateY(1px);
}
/* GRIDNET olAi launcher and resizable right aside */

.gridnet-hero-card {
  position: relative;
}

.gridnet-hero-left {
  display: flex;
  flex: 0 0 76px;
  align-items: flex-end;
  justify-content: center;
  min-width: 76px;
  padding: 0 8px 10px;
}

#gridnetOlAiRoot {
  display: contents;
}

#gridnetOlAiButton {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

#gridnetOlAiButton:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
}

#gridnetOlAiButton:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 4px;
}

#gridnetOlAiButton img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  pointer-events: none;
}

#gridnetOlAiDrawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  display: flex;
  flex-direction: column;
  width: 460px;
  min-width: 340px;
  max-width: min(90vw, 1100px);
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  color: #f8fafc;
  background: #0b1220;
  border: 0;
  border-left: 1px solid rgba(120, 160, 230, 0.30);
  box-shadow: -18px 0 46px rgba(0, 0, 0, 0.48);
  transform: translateX(100%);
  transition: transform 220ms ease, visibility 0s linear 220ms;
  z-index: 2147483645;
}

#gridnetOlAiDrawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: transform 220ms ease, visibility 0s linear 0s;
}

#gridnetOlAiResizeHandle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  cursor: ew-resize;
  touch-action: none;
  z-index: 5;
}

#gridnetOlAiResizeHandle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 3px;
  height: 64px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  transform: translateY(-50%);
}

#gridnetOlAiResizeHandle:hover::after,
#gridnetOlAiResizeHandle:focus-visible::after,
body.gridnet-olai-resizing #gridnetOlAiResizeHandle::after {
  background: #60a5fa;
}

body.gridnet-olai-resizing {
  cursor: ew-resize;
  user-select: none;
}

body.gridnet-olai-resizing iframe {
  pointer-events: none;
}

.gridnet-olai-header {
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px 0 20px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gridnet-olai-title {
  font-weight: 750;
}

#gridnetOlAiClose {
  appearance: none;
  border: 0;
  padding: 2px 6px;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.gridnet-olai-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 20px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gridnet-olai-toolbar label {
  font-size: 13px;
  font-weight: 700;
}

#gridnetOlAiToolSelect {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 4px 9px;
  background: #020617;
  color: #f8fafc;
}

#gridnetOlAiFrame {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: #fff;
}

@media (max-width: 767px) {
  .gridnet-hero-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: stretch;
  }

  .gridnet-hero-left {
    flex-basis: 64px;
    min-width: 64px;
    padding: 0 6px 8px;
  }

  #gridnetOlAiButton,
  #gridnetOlAiButton img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
  }

  #gridnetOlAiDrawer {
    width: 100vw !important;
    min-width: 100vw;
    max-width: 100vw;
  }

  #gridnetOlAiResizeHandle {
    display: none;
  }
}
/* GRIDNET Media Management v2.0.0
 * Drawer-first, single-column, drill-down UI.
 * Intentionally does not modify global Settings scrolling.
 */
#localSettingsPanel .gridnet-settings-section-body[hidden],#localSettingsPanel [hidden]{display:none!important}
#localSettingsPanel .gridnet-settings-section.is-open>.gridnet-settings-section-body{display:block}
#localSettingsPanel .gmm-shell{display:grid;gap:12px;min-width:0}
#localSettingsPanel .gmm-subsection{min-width:0;border:1px solid rgba(120,158,214,.25);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.025)}
#localSettingsPanel .gmm-subtoggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;padding:10px 13px;border:0;background:rgba(120,158,214,.08);color:inherit;font:inherit;font-weight:800;text-align:left;cursor:pointer}
#localSettingsPanel .gmm-subchevron{transition:transform .18s ease}
#localSettingsPanel .gmm-subsection.gmm-open .gmm-subchevron{transform:rotate(180deg)}
#localSettingsPanel .gmm-subbody{display:none;padding:12px;min-width:0}
#localSettingsPanel .gmm-subsection.gmm-open>.gmm-subbody{display:block}
#localSettingsPanel .gmm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px}
#localSettingsPanel .gmm-button{min-height:38px;white-space:normal}
#localSettingsPanel .gmm-help{margin:8px 0 10px;font-size:.82rem;line-height:1.42;opacity:.75}
#localSettingsPanel .gmm-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:12px}
#localSettingsPanel .gmm-search-row input{min-width:0;width:100%}
#localSettingsPanel .gmm-view-label{margin:12px 0 7px;font-size:.78rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase;opacity:.68}
#localSettingsPanel .gmm-nav-list,#localSettingsPanel .gmm-track-list{display:grid;gap:8px;min-width:0}
#localSettingsPanel .gmm-nav-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;border:1px solid rgba(120,158,214,.24);border-radius:10px;background:rgba(255,255,255,.035)}
#localSettingsPanel .gmm-nav-row.is-selected{border-color:#4d8df7;background:rgba(77,141,247,.12)}
#localSettingsPanel .gmm-nav-row-button{width:100%;padding:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
#localSettingsPanel .gmm-nav-main{display:block;width:100%;min-width:0;padding:11px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
#localSettingsPanel .gmm-nav-row-button>span:first-child{display:block;min-width:0;padding:11px}
#localSettingsPanel .gmm-nav-title{display:block;font-weight:850;line-height:1.25;overflow-wrap:anywhere}
#localSettingsPanel .gmm-nav-meta{display:block;margin-top:4px;font-size:.78rem;line-height:1.35;opacity:.72;overflow-wrap:anywhere}
#localSettingsPanel .gmm-nav-arrow{padding:0 11px;font-size:1.4rem;opacity:.7}
#localSettingsPanel .gmm-icon-button{width:38px;min-width:38px;min-height:38px;padding:5px;margin-right:7px}
#localSettingsPanel .gmm-detail-header{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;margin-bottom:12px}
#localSettingsPanel .gmm-back{padding:7px 9px;min-width:0}
#localSettingsPanel .gmm-heading{margin:1px 0 4px;font-size:1.02rem;line-height:1.25;overflow-wrap:anywhere}
#localSettingsPanel .gmm-summary{font-size:.78rem;line-height:1.35;opacity:.72;overflow-wrap:anywhere}
#localSettingsPanel .gmm-form-grid{grid-template-columns:1fr}
#localSettingsPanel .gmm-field{min-width:0}
#localSettingsPanel .gmm-field input,#localSettingsPanel .gmm-field select,#localSettingsPanel .gmm-field textarea{box-sizing:border-box;width:100%;min-width:0}
#localSettingsPanel .gmm-track-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-width:0;padding:10px;border:1px solid rgba(120,158,214,.24);border-radius:10px;background:rgba(255,255,255,.035);color:inherit;text-align:left}
#localSettingsPanel .gmm-track-list>.gmm-track-row[draggable="true"]{grid-template-columns:auto minmax(0,1fr) auto}
#localSettingsPanel .gmm-track-copy{display:block;min-width:0}
#localSettingsPanel .gmm-track-title{display:block;font-weight:800;line-height:1.28;overflow-wrap:anywhere}
#localSettingsPanel .gmm-track-meta{display:block;margin-top:3px;font-size:.77rem;line-height:1.35;opacity:.72;overflow-wrap:anywhere}
#localSettingsPanel .gmm-drag{width:32px;min-height:34px;border:0;background:transparent;color:inherit;font-size:1.1rem;cursor:grab;touch-action:none}
#localSettingsPanel .gmm-track-row.gmm-dragging{opacity:.4}
#localSettingsPanel .gmm-track-row.gmm-drop-before{box-shadow:inset 0 3px #4d8df7}
#localSettingsPanel .gmm-track-row.gmm-drop-after{box-shadow:inset 0 -3px #4d8df7}
#localSettingsPanel .gmm-library-track{min-width:0;border:1px solid rgba(120,158,214,.24);border-radius:10px;overflow:hidden;background:rgba(255,255,255,.035)}
#localSettingsPanel .gmm-library-track .gmm-track-row{border:0;border-radius:0;background:transparent;cursor:pointer}
#localSettingsPanel .gmm-track-detail{padding:0 10px 10px;border-top:1px solid rgba(120,158,214,.16)}
#localSettingsPanel .gmm-track-facts{padding:9px 0;font-size:.78rem;opacity:.75}
#localSettingsPanel .gmm-temp-heading{margin-bottom:8px}
#localSettingsPanel .gmm-badge{display:inline-flex;padding:2px 7px;border-radius:999px;background:rgba(77,141,247,.18);font-size:.7rem;font-weight:850}
#localSettingsPanel .gmm-empty{padding:13px;border:1px dashed rgba(120,158,214,.3);border-radius:10px;text-align:center;font-size:.84rem;opacity:.75}
#localSettingsPanel .gmm-status{margin-top:8px;font-size:.8rem}
#localSettingsPanel .gmm-status.error{color:#ef6a5b}
#localSettingsPanel .gmm-check-list{display:grid;gap:10px}
#localSettingsPanel .gmm-check{display:flex;align-items:flex-start;gap:8px;line-height:1.35}
#localSettingsPanel .gmm-progress{height:9px;margin:9px 0;border-radius:999px;overflow:hidden;background:rgba(120,158,214,.18)}
#localSettingsPanel .gmm-progress>span{display:block;width:0;height:100%;background:linear-gradient(90deg,#377ee8,#36b66f);transition:width .2s ease}
#localSettingsPanel .gmm-analysis-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}
#localSettingsPanel .gmm-metric{padding:8px;border:1px solid rgba(120,158,214,.22);border-radius:9px;text-align:center}
#localSettingsPanel .gmm-metric strong{display:block}
@media(max-width:420px){#localSettingsPanel .gmm-actions{display:grid;grid-template-columns:1fr 1fr}#localSettingsPanel .gmm-actions .gmm-button{width:100%}#localSettingsPanel .gmm-search-row{grid-template-columns:1fr}#localSettingsPanel .gmm-detail-header{grid-template-columns:1fr}#localSettingsPanel .gmm-track-list>.gmm-track-row[draggable="true"]{grid-template-columns:auto minmax(0,1fr) auto}}
.gmm-picker {
    position: fixed;
    inset: 0;
    z-index: 50000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gmm-picker[hidden] {
    display: none !important;
}

.gmm-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
}

.gmm-picker-panel {
    position: relative;
    width: min(600px,90vw);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.gmm-playlist-add-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(13,110,253,.15);
    border: 1px solid rgba(80,160,255,.35);
    color: #7ab8ff;
}

.gmm-artist-card {
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    margin-bottom:10px;
    border-radius:12px;
    border:1px solid rgba(60,100,150,.45);
    background:rgba(14,24,42,.65);
}

.gmm-artist-main {
    flex:1;
    cursor:pointer;
}

.gmm-artist-name {
    font-size:18px;
    font-weight:600;
    color:#fff;
}

.gmm-artist-meta {
    margin-top:4px;
    color:#9fb3c8;
    font-size:13px;
}

.gmm-artist-add {
    width:28px;
    height:28px;
    min-width:28px;
    max-width:28px;
    border-radius:50%;
    border:1px solid #3b6ea3;
    background:#17304f;
    color:#fff;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
}

.gmm-artist-add:hover {
    background:#244a76;
    border-color:#6db8ff;
}

.gmm-memberships {
    margin-top:8px;
}

.gmm-picker-playlist {
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    padding:10px 14px;
    margin-bottom:8px;
    border-radius:10px;
    border:1px solid rgba(70,120,180,.45);
    background:#11223a;
    color:white;
    text-align:left;
    cursor:pointer;
}

.gmm-picker-playlist strong {
    display:block;
}

.gmm-picker-playlist small {
    display:block;
    color:#9db3c8;
}

.gmm-picker-playlist:hover {
    background:#183352;
}

.gmm-track-expand {
    width:100%;
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    text-align:left;
    color:inherit;
    padding:0;
}

.gmm-track-copy {
    background:transparent !important;
}

.gmm-library-track {
    padding:14px;
}

.gmm-library-track-row {
    display:flex;
    align-items:center;
    gap:12px;
}

.gmm-library-track-row .gmm-track-copy {
    flex:1;
}

.gmm-picker-playlist {
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    width:100% !important;
    padding:12px 14px !important;
    margin-bottom:8px !important;
    border-radius:10px !important;
    background:#132841 !important;
    border:1px solid rgba(80,140,220,.35) !important;
    text-align:left !important;
}

.gmm-picker-playlist span:first-child{
    display:flex;
    flex-direction:column;
}

.gmm-picker-playlist small{
    color:#9fb3c8;
}

/* GRIDNET Enterprise Integration polish */
.gmm-enterprise-shell .gmm-subbody {
    padding: 0;
}

.gmm-provider-form {
    gap: 14px;
    padding: 16px;
}

.gmm-provider-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.gmm-provider-field > span,
.gmm-provider-toggle > span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.gmm-provider-field input,
.gmm-provider-field select {
    width: 100%;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    color: #eaf2ff;
    background: #071225;
    border: 1px solid #294568;
    border-radius: 10px;
    outline: none;
}

.gmm-provider-field input:focus,
.gmm-provider-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}

.gmm-provider-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 28px;
    cursor: pointer;
}

.gmm-provider-toggle input[type="checkbox"] {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    opacity: 0;
    pointer-events: none;
}

.gmm-provider-toggle i {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 22px;
    border: 1px solid #3b4f6a;
    border-radius: 999px;
    background: #18263a;
    transition: background .16s ease, border-color .16s ease;
}

.gmm-provider-toggle i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: transform .16s ease, background .16s ease;
}

.gmm-provider-toggle input:checked + i {
    border-color: #3b82f6;
    background: #1d4ed8;
}

.gmm-provider-toggle input:checked + i::after {
    transform: translateX(20px);
    background: #fff;
}

.gmm-provider-toggle input:focus-visible + i {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .28);
}

.gmm-provider-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 2px;
}

.gmm-provider-actions .gmm-provider-button {
    appearance: none;
    min-height: 36px;
    padding: 8px 14px;
    color: #dbeafe;
    background: #10233f;
    border: 1px solid #315b89;
    border-radius: 9px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.gmm-provider-actions .gmm-provider-button:hover {
    color: #fff;
    background: #17345c;
    border-color: #4b8bd0;
}

.gmm-provider-actions .gmm-provider-button.is-primary {
    color: #fff;
    background: #1665c1;
    border-color: #4295ed;
}

.gmm-provider-actions .gmm-provider-button.is-primary:hover {
    background: #1d74d5;
}

.gmm-provider-note {
    margin: 0;
    padding: 10px 12px;
    color: #8294ad;
    background: rgba(7, 18, 37, .55);
    border-left: 3px solid #294568;
    border-radius: 0 8px 8px 0;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .gmm-provider-form {
        padding: 13px;
    }
    .gmm-provider-actions .gmm-provider-button {
        flex: 1 1 140px;
    }
}

/* GRIDNET Enterprise Reports v1.0.0 */

#localMyIpPanel[data-gridnet-enterprise-reports="true"] {
    padding: 0 14px 20px;
    overflow-y: auto;
}

.ger-shell,
.ger-shell * {
    box-sizing: border-box;
}

.ger-title {
    margin: 2px 0 4px;
}

.ger-intro {
    margin: 0 0 16px;
    color: var(--gridnet-muted, #9aa9bc);
    font-size: 0.82rem;
    line-height: 1.45;
}

.ger-section {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid rgba(100, 147, 204, 0.35);
    border-radius: 14px;
    background: rgba(11, 27, 51, 0.72);
}

.ger-section-toggle {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    border: 0;
    color: #f4f7fb;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    text-align: left;
}

.ger-section-toggle:hover {
    background: rgba(65, 126, 198, 0.08);
}

.ger-chevron {
    flex: 0 0 auto;
    transition: transform 160ms ease;
}

.ger-section.is-open .ger-chevron {
    transform: rotate(180deg);
}

.ger-section-body {
    padding: 0 14px 16px;
    border-top: 1px solid rgba(100, 147, 204, 0.22);
}

.ger-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding-top: 14px;
}

.ger-metric {
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid rgba(100, 147, 204, 0.25);
    border-radius: 10px;
    background: rgba(3, 15, 31, 0.58);
}

.ger-metric strong {
    display: block;
    overflow: hidden;
    color: #70c9ff;
    font-size: 1.28rem;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.ger-metric span {
    display: block;
    margin-top: 5px;
    color: #9eacbe;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.ger-metric-alerts strong {
    color: #ffbd59;
}

.ger-actions {
    display: flex;
    margin-top: 12px;
}

.ger-button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(100, 147, 204, 0.44);
    border-radius: 8px;
    color: #f7fbff;
    background: rgba(15, 39, 70, 0.9);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
}

.ger-button.is-primary {
    background: #168bd2;
    border-color: #168bd2;
}

.ger-button:disabled {
    opacity: 0.58;
    cursor: wait;
}

.ger-status,
.ger-message {
    margin-top: 12px;
    padding: 10px 11px;
    border: 1px solid rgba(100, 147, 204, 0.25);
    border-radius: 8px;
    color: #a8b6c8;
    background: rgba(3, 15, 31, 0.42);
    font-size: 0.74rem;
    line-height: 1.4;
}

.ger-status[data-kind="success"] {
    color: #76dbad;
    border-color: rgba(63, 195, 130, 0.35);
}

.ger-status[data-kind="working"],
.ger-status[data-kind="warning"] {
    color: #ffd07a;
    border-color: rgba(255, 189, 74, 0.35);
}

.ger-status[data-kind="error"] {
    color: #ff9cab;
    border-color: rgba(255, 100, 124, 0.4);
}

.ger-subsection {
    margin-top: 16px;
}

.ger-subsection h4 {
    margin: 0 0 8px;
    color: #f2f6fb;
    font-size: 0.82rem;
}

.ger-list {
    display: grid;
    gap: 7px;
}

.ger-list-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(3, 15, 31, 0.46);
}

.ger-list-row > div {
    min-width: 0;
}

.ger-list-row strong,
.ger-list-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ger-list-row strong {
    color: #edf4fb;
    font-size: 0.77rem;
}

.ger-list-row span {
    margin-top: 3px;
    color: #8799ad;
    font-size: 0.67rem;
}

.ger-list-row b {
    flex: 0 0 auto;
    color: #70c9ff;
    font-size: 0.85rem;
}

.ger-empty,
.ger-coming-soon {
    color: #8fa0b4;
    font-size: 0.76rem;
    line-height: 1.45;
}

.ger-coming-soon {
    display: grid;
    gap: 5px;
    padding-top: 14px;
}

.ger-coming-soon strong {
    color: #dce7f2;
}

@media (max-width: 480px) {
    #localMyIpPanel[data-gridnet-enterprise-reports="true"] {
        padding-inline: 10px;
    }

    .ger-section-toggle {
        min-height: 54px;
        padding-inline: 14px;
    }

    .ger-section-body {
        padding-inline: 10px;
    }
}
/* GRIDNET Mist Site Pulse Selector v1.0.0 */
#gerMistSitesList .ger-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 10px;
}

.ger-site-pulse-toggle {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 20px;
    flex: 0 0 auto;
    cursor: pointer;
}

.ger-site-pulse-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ger-site-pulse-slider {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(128, 153, 184, 0.45);
    border-radius: 999px;
    background: #263a53;
    transition: background 150ms ease, border-color 150ms ease;
}

.ger-site-pulse-slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #a8b8ca;
    transition: transform 150ms ease, background 150ms ease;
}

.ger-site-pulse-toggle input:checked + .ger-site-pulse-slider {
    border-color: #21b9ff;
    background: #087db5;
}

.ger-site-pulse-toggle input:checked + .ger-site-pulse-slider::after {
    transform: translateX(14px);
    background: #ffffff;
}

.ger-site-pulse-toggle input:focus-visible + .ger-site-pulse-slider {
    outline: 2px solid #69cfff;
    outline-offset: 2px;
}
