/* I-Connect Fibermap – application stylesheet (light theme, white & professional blue). No framework dependency. */
:root {
  /* I-Connect enterprise light design tokens (1.6.0) – the only colours UI components should use. */
  --c-bg: #FFFFFF; --c-panel: #F5F8FC; --c-surface: #F8FAFC; --c-text: #334155; --c-text-2: #64748B; --c-muted: #94A3B8;
  --c-primary: #2563EB; --c-active: #1D4ED8; --c-light: #EFF6FF; --c-border: #E2E8F0; --c-divider: #F1F5F9; --c-hover: #F1F5F9;
  --c-success: #16A34A; --c-warning: #D97706; --c-danger: #DC2626; --c-info: #0284C7;
  --c-icon: #64748B; --c-icon-hover: #334155; --c-icon-active: #2563EB; --c-icon-disabled: #CBD5E1;
  /* tints for status backgrounds and darker shades of the status hues for small text on those tints (contrast ≥ 4.5:1) */
  --c-success-bg: #F0FDF4; --c-warning-bg: #FFFBEB; --c-danger-bg: #FEF2F2; --c-info-bg: #F0F9FF;
  --c-success-text: #15803D; --c-warning-text: #B45309; --c-danger-text: #B91C1C; --c-info-text: #0369A1;
  --c-focus-ring: 0 0 0 3px rgba(37, 99, 235, .16);
  /* legacy names used throughout the stylesheet and scripts, mapped onto the tokens */
  --blue-900: #1E3A8A; --blue-800: var(--c-active); --blue-700: var(--c-active); --blue-600: var(--c-primary); --blue-500: var(--c-primary); --blue-100: var(--c-light); --blue-50: var(--c-hover);
  --ink: var(--c-text); --ink-2: var(--c-text-2); --muted: var(--c-text-2); --faint: var(--c-muted); --line: var(--c-border); --line-2: var(--c-divider); --bg: var(--c-bg); --white: var(--c-bg);
  --ok: var(--c-success); --ok-bg: var(--c-success-bg); --warn: var(--c-warning-text); --warn-bg: var(--c-warning-bg); --bad: var(--c-danger); --bad-bg: var(--c-danger-bg); --info-bg: var(--c-info-bg);
  --radius: 8px; --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05); --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --shadow-float: 0 2px 10px rgba(15, 23, 42, .08);
  --sidebar: 236px; --sidebar-c: 56px; --topbar: 52px; --appbar-bg: var(--c-bg); --nav-bg: var(--c-bg); --accent: var(--c-primary);
  --icon: var(--c-icon); --icon-hover: var(--c-icon-hover);
  --font: "IC Inter", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 500 14px/1.45 var(--font); color: var(--ink); background: var(--bg); font-feature-settings: "cv11", "ss01"; text-rendering: optimizeLegibility; }
a { color: var(--blue-600); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 1.35rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; } h4 { font-size: .9rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
pre { background: var(--blue-50); border: 1px solid var(--line); border-radius: 6px; padding: 10px; overflow: auto; max-height: 360px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.muted { color: var(--muted); } .small { font-size: 12px; } .nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.hidden { display: none !important; } .grow { flex: 1; } .mono { font-family: ui-monospace, Consolas, monospace; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.nowrap { flex-wrap: nowrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ shell: app bar + compact sidebar */
body { overflow-x: hidden; }
.appbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar); background: var(--appbar-bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 6px; z-index: 50; box-shadow: 0 1px 0 rgba(16,33,64,.03); }
.ab-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--c-text); font-size: 17px; cursor: pointer; text-decoration: none !important; flex: 0 0 auto; }
.ab-btn:hover { background: var(--blue-50); color: var(--blue-700); } .ab-btn.active { background: var(--blue-100); color: var(--blue-800); }
.ab-btn:disabled { opacity: .4; cursor: default; background: transparent; }
.ab-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none !important; padding-right: 10px; margin-right: 4px; border-right: 1px solid var(--line); height: 34px; flex: 0 0 auto; }
.ab-name { line-height: 1.05; } .ab-name b { display: block; font-size: 15px; color: var(--blue-900); letter-spacing: -.01em; } .ab-name small { font-size: 11px; color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ab-search { position: relative; display: flex; align-items: center; width: min(440px, 34vw); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; height: 36px; flex: 0 1 auto; }
.ab-search:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43,116,224,.15); background: #fff; }
.ab-search select { width: auto; border: 0; background: transparent; padding: 0 4px 0 10px; height: 100%; font-size: 12.5px; font-weight: 700; color: var(--blue-700); border-right: 1px solid var(--line); border-radius: 9px 0 0 9px; }
.ab-search input { border: 0; background: transparent; height: 100%; padding: 0 30px 0 10px; } .ab-search input:focus { outline: none; }
.ab-search > .bi { position: absolute; right: 10px; color: var(--muted); pointer-events: none; }
.ab-tools { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-left: 6px; } .ab-tools::-webkit-scrollbar { display: none; }
.ab-tools .sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; flex: 0 0 auto; }
.ab-right { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: 0 0 auto; }
.ab-dot { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.ab-pop { position: relative; }
.ab-user { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 3px 6px 3px 3px; border-radius: 20px; cursor: pointer; font: inherit; color: var(--ink); }
.ab-user:hover { background: var(--blue-50); } .ab-user-n { line-height: 1.1; text-align: left; } .ab-user-n b { display: block; font-size: 12.5px; } .ab-user-n small { color: var(--muted); font-size: 11px; }
.ab-menu { position: absolute; right: 0; top: 44px; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); z-index: 90; padding: 6px; }
.ab-menu.wide { width: 360px; } .ab-menu-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.ab-menu-b { max-height: 380px; overflow: auto; }
.ab-menu a, .ab-menu button[type=submit] { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; font: inherit; color: var(--ink); border-radius: 6px; text-align: left; cursor: pointer; text-decoration: none !important; }
.ab-menu a:hover, .ab-menu button[type=submit]:hover { background: var(--blue-50); } .ab-menu form { margin: 0; }
.notif { display: block; padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none !important; border-left: 3px solid transparent; } .notif:hover { background: var(--blue-50); }
.notif.unread { border-left-color: var(--accent); background: var(--c-light); } .notif b { display: block; font-size: 13px; } .notif span { font-size: 12px; color: var(--ink-2); }
.search-results { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 420px; overflow: auto; z-index: 95; padding: 4px; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--ink); border-radius: 6px; } .search-results a:hover, .search-results a.kb { background: var(--blue-50); text-decoration: none; }
.search-results .k { flex: 0 0 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); font-size: 13px; }
.search-results .t { min-width: 0; } .search-results .t b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .search-results .t span { font-size: 11.5px; color: var(--muted); }
.search-results .grp { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 4px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--c-primary), #3fa4ff); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 11.5px; flex: 0 0 auto; }

.shell { padding-top: var(--topbar); min-height: 100vh; }
.sidenav { position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); background: var(--nav-bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; transition: width .18s ease, transform .2s; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 8px 16px; }
.nav a, .nav button { display: flex; width: 100%; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 7px; color: var(--ink); background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.nav a:hover, .nav button:hover { background: var(--c-hover); color: var(--blue-800); }
.nav i.bi { width: 20px; text-align: center; font-size: 16px; flex: 0 0 20px; color: var(--c-icon); }
.nav a.top.active, .nav .group.has-active > button { color: var(--blue-800); font-weight: 600; } .nav a.top.active { background: var(--blue-100); } .nav a.top.active i, .nav .group.has-active > button > i:first-child { color: var(--accent); }
.nav .group > button .chev { margin-left: auto; font-size: 11px; width: auto; flex: 0 0 auto; transition: transform .18s; color: var(--c-muted); }
.nav .group.open > button .chev { transform: rotate(90deg); }
.nav .sub { display: none; padding: 2px 0 6px 31px; position: relative; } .nav .sub::before { content: ""; position: absolute; left: 19px; top: 2px; bottom: 8px; width: 1px; background: var(--c-border); }
.nav .group.open > .sub { display: block; }
.nav .sub a { padding: 6px 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); } .nav .sub a.active { background: var(--blue-100); color: var(--blue-800); font-weight: 600; }
.nav-foot { padding: 8px 14px 10px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.content { margin-left: var(--sidebar); padding: 20px 22px; min-width: 0; transition: margin-left .18s ease; }
.content.flush { padding: 0; }
/* collapsed icon rail */
.nav-collapsed .sidenav { width: var(--sidebar-c); } .nav-collapsed .content { margin-left: var(--sidebar-c); }
.nav-collapsed .nav .lbl, .nav-collapsed .nav .chev, .nav-collapsed .nav .sub, .nav-collapsed .nav-foot .lbl { display: none !important; }
.nav-collapsed .nav a, .nav-collapsed .nav button { justify-content: center; padding: 9px 0; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; } .page-head h1 .bi { color: var(--accent); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; } .page-head .sub-t { color: var(--muted); font-size: 13px; width: 100%; margin-top: -8px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 8px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { border: 0; background: none; padding: 5px 12px; border-radius: 6px; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer; text-decoration: none !important; }
.seg a.active, .seg button.active { background: #fff; color: var(--blue-800); font-weight: 600; box-shadow: 0 1px 2px rgba(16,33,64,.12); }
@media (max-width: 1180px) { .ab-user-n { display: none; } .ab-search { width: min(340px, 30vw); } }
@media (max-width: 900px) {
  .sidenav { transform: translateX(-100%); width: var(--sidebar) !important; box-shadow: var(--shadow-lg); } body.nav-open .sidenav { transform: none; }
  .nav-collapsed .nav .lbl, .nav-collapsed .nav .chev { display: inline !important; } .nav-collapsed .nav .group.open > .sub { display: block !important; }
  .content, .nav-collapsed .content { margin-left: 0; } .ab-name { display: none; } .ab-search { width: auto; flex: 1; } .ab-search select { display: none; } .ab-tools { display: none; }
}

/* ------------------------------------------------------------------ components */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card-h h2, .card-h h3 { margin: 0; } .card-h .actions { margin-left: auto; display: flex; gap: 6px; }
.card-b { padding: 16px; } .card-b.flush { padding: 0; }
.kpi { padding: 14px 16px; } .kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--blue-800); } .kpi .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.kpi .s { font-size: 12px; color: var(--ink-2); margin-top: 2px; } .kpi .bi { float: right; font-size: 20px; color: var(--blue-500); opacity: .8; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 7px; border: 1px solid var(--c-border); background: var(--white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: var(--c-border); background: var(--blue-50); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--blue-600); border-color: var(--blue-600); color: #fff; } .btn.primary:hover { background: var(--blue-700); }
.btn.danger { color: var(--bad); border-color: #FECACA; } .btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 4px 9px; font-size: 12px; } .btn.icon { padding: 6px 8px; } .btn.ghost { border-color: transparent; background: transparent; }
.btn.active { background: var(--blue-100); border-color: var(--blue-500); color: var(--blue-800); }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: 6px 0 0 6px; margin: 0; } .btn-group .btn:last-child { border-radius: 0 6px 6px 0; }
input, select, textarea { font: inherit; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--c-border); border-radius: 6px; padding: 7px 10px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(43, 116, 224, .25); border-color: var(--blue-500); }
input[type=checkbox], input[type=radio] { width: auto; } input[type=color] { padding: 2px; height: 34px; }
textarea { min-height: 70px; resize: vertical; } textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; min-height: 90px; }
label { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); font-weight: 500; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid > div { grid-column: span 12; } .c3 { grid-column: span 3 !important; } .c4 { grid-column: span 4 !important; } .c6 { grid-column: span 6 !important; } .c8 { grid-column: span 8 !important; } .c2 { grid-column: span 2 !important; }
@media (max-width: 700px) { .form-grid > div { grid-column: span 12 !important; } }
.help { color: var(--muted); font-size: 11px; margin-top: 3px; } .err { color: var(--bad); font-size: 12px; margin-top: 3px; } .req::after { content: " *"; color: var(--bad); }
.inline { display: flex; gap: 6px; } .inline > * { flex: 1; } .inline > .btn { flex: 0 0 auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.info { background: var(--info-bg); color: var(--blue-700); }
.alert { padding: 10px 14px; border-radius: 6px; border: 1px solid; margin-bottom: 12px; }
.alert.ok { background: var(--ok-bg); border-color: #BBF7D0; color: var(--c-success-text); } .alert.warn { background: var(--warn-bg); border-color: #FDE68A; color: var(--c-warning-text); }
.alert.bad { background: var(--bad-bg); border-color: #FECACA; color: var(--c-danger-text); } .alert.info { background: var(--info-bg); border-color: #BFDBFE; color: var(--blue-800); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--blue-700); border-bottom-color: var(--blue-600); font-weight: 600; }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; min-width: 60px; } .progress > span { display: block; height: 100%; background: var(--blue-500); }
.progress.warn > span { background: var(--c-warning); } .progress.bad > span { background: var(--bad); }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; } .dl dt { color: var(--muted); font-size: 12px; } .dl dd { margin: 0; word-break: break-word; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); } .empty .bi { font-size: 30px; display: block; margin-bottom: 8px; color: var(--c-muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--blue-100); border-top-color: var(--blue-600); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { padding: 30px; text-align: center; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; } .list li { padding: 9px 14px; border-bottom: 1px solid var(--line-2); } .list li:last-child { border-bottom: 0; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); vertical-align: middle; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { padding: 8px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
table.t th { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; background: var(--c-surface); position: sticky; top: 0; white-space: nowrap; }
table.t th.sortable { cursor: pointer; user-select: none; } table.t th.sortable:hover { color: var(--blue-700); }
table.t tbody tr:hover { background: var(--blue-50); } table.t tr.clickable { cursor: pointer; }
table.t td.actions { white-space: nowrap; text-align: right; width: 1%; }
table.t.compact th, table.t.compact td { padding: 5px 8px; font-size: 12px; }
.toolbar { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; } .toolbar .q { flex: 1; min-width: 200px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px 16px; color: var(--muted); font-size: 12px; }

/* overlays */
.backdrop { position: fixed; inset: 0; background: rgba(12, 26, 51, .38); z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); width: min(880px, 100%); }
.modal.sm { width: min(460px, 100%); } .modal.lg { width: min(1100px, 100%); }
.modal-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; } .modal-h h2 { margin: 0; }
.modal-h .x { margin-left: auto; } .modal-b { padding: 18px; max-height: 70vh; overflow-y: auto; } .modal-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; box-shadow: var(--shadow-lg); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s; }
.drawer.open { transform: none; } .drawer .modal-b { max-height: none; flex: 1; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; border-left: 4px solid var(--blue-600); border-radius: 6px; box-shadow: var(--shadow-lg); padding: 10px 14px; min-width: 260px; max-width: 420px; animation: slidein .2s; }
.toast.ok { border-color: var(--ok); } .toast.bad { border-color: var(--bad); } .toast.warn { border-color: var(--c-warning); }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } }

/* charts */
.chart { width: 100%; } .chart text { font-size: 11px; fill: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin-top: 8px; } .legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------------ GIS workspace (full-screen map) */
.ws { position: relative; height: calc(100vh - var(--topbar)); overflow: hidden; background: var(--c-surface); }
.ws #map, .map { position: absolute; inset: 0; }
.map-box { position: relative; height: 360px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.map-banner { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 9; max-width: min(640px, calc(100% - 40px)); background: var(--c-warning-bg); color: var(--c-warning-text); border: 1px solid #FDE68A; border-radius: 10px; padding: 10px 14px; font-size: 13px; box-shadow: var(--shadow-lg); }
.map-msg { position: absolute; inset: 0; display: grid; place-items: center; background: var(--blue-50); color: var(--ink-2); text-align: center; padding: 30px; z-index: 2; }
.fpanel { position: absolute; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgba(16,33,64,.14); z-index: 6; display: flex; flex-direction: column; overflow: hidden; }
.fpanel-h { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.fpanel-h h3 { margin: 0; font-size: 13.5px; flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; } .fpanel-h h3 .bi { color: var(--accent); }
.fpanel-h .t-sub { font-weight: 400; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpanel .tabs { margin: 0; padding: 0 8px; background: #fff; } .fpanel .tabs button { padding: 9px 10px; font-size: 13px; font-weight: 600; }
.fpanel-b { flex: 1; overflow-y: auto; padding: 10px 12px; }
.icon-x { border: 0; background: none; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; color: var(--muted); display: grid; place-items: center; font-size: 15px; }
.icon-x:hover { background: var(--line-2); color: var(--ink); }
/* layer panel (left) */
.ws-layers { top: 12px; left: 12px; bottom: 42px; width: 372px; transition: transform .2s, opacity .2s; }
.ws-layers.closed { transform: translateX(calc(-100% - 20px)); opacity: 0; pointer-events: none; }
.ws-reopen { position: absolute; top: 12px; left: 12px; z-index: 5; }
.lg { margin-bottom: 6px; } .lg-h { display: flex; align-items: center; gap: 6px; padding: 6px 2px; font-size: 11px; font-weight: 700; color: var(--c-text-2); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; user-select: none; }
.lg-h .bi { font-size: 10px; transition: transform .15s; } .lg.collapsed .lg-h .bi { transform: rotate(-90deg); } .lg.collapsed .lg-b { display: none; }
.ly { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 2px; border-radius: 7px; position: relative; } .ly:hover { background: var(--blue-50); }
.ly input[type=checkbox] { margin: 0; accent-color: var(--accent); }
.ly .sym { width: 22px; height: 18px; display: grid; place-items: center; flex: 0 0 22px; }
.ly .nm { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ly.off .nm { color: var(--muted); } .ly.off .sym { opacity: .45; }
.ly .cnt { font-size: 11px; color: var(--muted); background: var(--line-2); border-radius: 10px; padding: 0 7px; min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.ly .cnt.has { background: var(--blue-100); color: var(--blue-800); font-weight: 600; }
.ly .more { border: 0; background: none; color: var(--muted); width: 22px; height: 22px; border-radius: 5px; cursor: pointer; visibility: hidden; } .ly:hover .more, .ly .more.on { visibility: visible; } .ly .more:hover { background: var(--c-hover); color: var(--ink); }
.ly .flt { color: var(--accent); font-size: 11px; }
.ly-menu { position: absolute; right: 4px; top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow-lg); z-index: 20; min-width: 210px; padding: 5px; }
.ly-menu button, .ly-menu a { display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px 9px; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--ink); text-align: left; border-radius: 6px; cursor: pointer; text-decoration: none !important; }
.ly-menu button:hover, .ly-menu a:hover { background: var(--blue-50); } .ly-menu hr { margin: 4px 0; } .ly-menu .st { padding: 4px 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.ly-menu .st label { font-weight: 400; font-size: 12px; color: var(--ink); display: flex; gap: 6px; align-items: center; margin: 0; } .ly-menu input[type=color] { width: 40px; height: 24px; padding: 0 2px; }
.basemaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.basemaps button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink-2); }
.basemaps button .pv { display: block; height: 30px; border-radius: 5px; margin-bottom: 4px; background: linear-gradient(135deg, #f4efe4, #dfe9d8 50%, #cfe0f2); }
.basemaps button[data-style=satellite] .pv { background: linear-gradient(135deg, #3b4b2d, #6b7a4a 50%, #2d3c4c); } .basemaps button[data-style=dark] .pv { background: linear-gradient(135deg, #1e2633, #2e394b); }
.basemaps button[data-style=light] .pv { background: linear-gradient(135deg, #fafbfc, #e8edf3); } .basemaps button[data-style=blank] .pv { background: repeating-linear-gradient(45deg, #eef2f7 0 6px, #e4e9f1 6px 12px); }
.basemaps button.active { border-color: var(--accent); color: var(--blue-800); font-weight: 600; box-shadow: 0 0 0 2px rgba(22,104,227,.18); }
/* floating drawing toolbar (top centre) */
.ws-draw { position: absolute; top: 12px; left: 448px; z-index: 7; transition: left .2s, max-width .2s; display: flex; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 6px 24px rgba(16,33,64,.14); padding: 3px; max-width: calc(100% - 400px); overflow-x: auto; scrollbar-width: none; }
.ws.layers-closed .ws-draw { left: 76px; max-width: calc(100% - 150px); } .ws-draw { max-width: calc(100% - 520px); } .ws.panel-open .ws-draw { max-width: calc(100% - 910px); } .ws.panel-open.layers-closed .ws-draw { max-width: calc(100% - 540px); }
.ws-draw::-webkit-scrollbar { display: none; }
.ws-draw .ab-btn { width: 34px; height: 34px; font-size: 16px; color: var(--c-text); } .ws-draw .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex: 0 0 auto; }
.ws-draw label.snap { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 0 6px; cursor: pointer; white-space: nowrap; } .ws-draw label.snap input { accent-color: var(--accent); }
/* map controls (right) */
.ws-ctrl { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; flex-direction: column; gap: 8px; transition: right .2s; }
.ws.panel-open .ws-ctrl { right: 412px; }
.ctrl-group { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px rgba(16,33,64,.12); display: flex; flex-direction: column; overflow: hidden; }
.ctrl-group .ab-btn { border-radius: 0; width: 36px; height: 34px; font-size: 16px; color: var(--c-text); } .ctrl-group .ab-btn + .ab-btn { border-top: 1px solid var(--line-2); }
.ctrl-group .compass i { display: inline-block; transition: transform .2s; }
.style-pop { position: absolute; right: 46px; top: 0; width: 280px; z-index: 9; }
/* context panel (right) */
.ws-panel { top: 12px; right: 12px; bottom: 42px; width: 390px; transform: translateX(calc(100% + 20px)); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
.ws.panel-open .ws-panel { transform: none; opacity: 1; pointer-events: auto; }
.cp-head { padding: 12px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--c-light), #fff); }
.cp-head .tt { display: flex; align-items: flex-start; gap: 10px; } .cp-head .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 38px; color: #fff; font-size: 17px; }
.cp-head h2 { margin: 0; font-size: 15px; line-height: 1.25; word-break: break-word; } .cp-head .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; } .cp-actions .btn { padding: 4px 8px; font-size: 12px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; font-size: 13px; margin: 0; } .kv dt { color: var(--muted); font-weight: 500; } .kv dd { font-weight: 600; } .kv dd { margin: 0; word-break: break-word; }
.cp-sec { margin-bottom: 14px; } .cp-sec > h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-2); font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.port-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 4px; }
.port-grid span { height: 26px; border-radius: 5px; display: grid; place-items: center; font-size: 10.5px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.port-grid span.used { background: var(--c-light); border-color: #BFDBFE; color: var(--blue-800); font-weight: 600; } .port-grid span.bad { background: var(--bad-bg); border-color: #FECACA; }
.conn-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 7px; margin-bottom: 5px; font-size: 12.5px; }
.conn-row .grow { min-width: 0; } .conn-row .grow b { display: block; } .conn-row .grow span { color: var(--muted); font-size: 11.5px; }
.tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--blue-100); } .tl li { position: relative; padding: 0 0 10px 10px; font-size: 12.5px; }
.tl li::before { content: ""; position: absolute; left: -19px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); } .tl li .when { color: var(--muted); font-size: 11.5px; }
/* status bar */
.ws-status { position: absolute; left: 0; right: 0; bottom: 0; height: 30px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 6; display: flex; align-items: center; gap: 16px; padding: 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ws-status span { white-space: nowrap; } .ws-status .bi { color: var(--muted); margin-right: 3px; } .ws-status .grow { flex: 1; }
.ws-status .maplibregl-ctrl-scale, .ws-scale { background: transparent; border-color: var(--ink-2); font-size: 11px; }
.ws .maplibregl-ctrl-bottom-right { bottom: 30px; } .ws .maplibregl-ctrl-bottom-left { bottom: 30px; }
.map-hint { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 140px); background: var(--blue-900); color: #fff; padding: 7px 14px; border-radius: 8px; font-size: 13px; z-index: 8; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.map-hint .btn { color: var(--ink); }
.layer-item { display: flex; align-items: center; gap: 8px; padding: 5px 2px; } .layer-item label { margin: 0; flex: 1; font-weight: 400; font-size: 13px; color: var(--ink); }
.section-t { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 14px 0 6px; } .section-t:first-child { margin-top: 0; }
.ws-legend-note { font-size: 11.5px; color: var(--muted); line-height: 1.4; padding: 8px 2px 2px; border-top: 1px dashed var(--line); margin-top: 8px; }
@media (max-width: 1100px) { .ws-panel { width: 340px; } .ws.panel-open .ws-ctrl { right: 362px; } .ws-layers { width: 280px; } }
@media (max-width: 800px) { .ws-draw, .ws.layers-closed .ws-draw { left: 60px; max-width: calc(100% - 120px); } .ws-panel { left: 8px; right: 8px; width: auto; top: auto; height: 55%; } .ws.panel-open .ws-ctrl { right: 12px; } }

/* topology tree */
.topo { font-size: 13px; } .topo ul { list-style: none; margin: 0; padding-left: 22px; border-left: 1px dashed var(--c-border); } .topo > ul { border: 0; padding-left: 0; }
.topo li { position: relative; padding: 3px 0; } .topo li::before { content: ""; position: absolute; left: -22px; top: 15px; width: 18px; border-top: 1px dashed var(--c-border); } .topo > ul > li::before { display: none; }
.topo .node { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.topo .node:hover { border-color: var(--blue-500); } .topo .node .tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; color: #fff; text-transform: uppercase; }
.topo .node.cable { border-style: dashed; background: var(--c-surface); } .topo .tg { border: 0; background: none; width: 18px; cursor: pointer; color: var(--muted); padding: 0; }

/* trace */
.hops { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--blue-100); margin-left: 10px; }
.hops li { position: relative; padding: 6px 0 6px 18px; } .hops li::before { content: ""; position: absolute; left: -7px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-500); }
.hops li.conn { color: var(--muted); font-size: 12px; padding: 2px 0 2px 18px; } .hops li.conn::before { width: 6px; height: 6px; left: -4px; top: 9px; border: 0; background: var(--c-muted); }
.hops li.hop-core::before { border-color: var(--c-warning); } .hops li.bad::before { border-color: var(--bad); background: var(--bad-bg); }

/* cores grid */
.cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.core { border: 1px solid var(--line); border-radius: 6px; padding: 6px; text-align: center; cursor: pointer; font-size: 12px; background: #fff; }
.core:hover { border-color: var(--blue-500); } .core.sel { outline: 2px solid var(--blue-500); }
.core .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.25); vertical-align: middle; }
.core.st-available { } .core.st-allocated { background: #eaf1fd; } .core.st-spliced { background: #e5f6ed; } .core.st-reserved { background: #fff3dc; } .core.st-damaged { background: #fde8e7; } .core.st-dark { background: #eceff4; } .core.st-disconnected { background: #f6e9f7; } .core.st-retired { background: #e9e9e9; color: #777; text-decoration: line-through; }
.tube { margin-bottom: 10px; } .tube h4 { margin-bottom: 4px; font-size: 12px; color: var(--muted); }

/* splice diagram */
.splice-svg { width: 100%; background: var(--c-surface); border: 1px solid var(--line); border-radius: 8px; }
.splice-svg text { font-size: 11px; fill: var(--ink); }

/* auth – full-bleed network map background with a centred sign-in card */
.login { min-height: 100vh; position: relative; display: grid; place-items: center; padding: 32px 16px; background: #0a2350; overflow: hidden; }
.login-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(transparent, rgba(4,16,40,.82)); z-index: 1; pointer-events: none; }
.login-card { position: relative; width: min(420px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(3,14,38,.45); padding: 34px 34px 26px; z-index: 2; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; } .login-brand img { width: 46px; height: 46px; }
.login-brand b { display: block; font-size: 21px; color: var(--blue-900); letter-spacing: -.01em; line-height: 1.1; } .login-brand small { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; }
.login-card h1 { font-size: 18px; margin: 0 0 4px; } .login-card .lead { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.login-card .fld { margin-bottom: 14px; } .login-card input[type=email], .login-card input[type=password], .login-card input[type=text] { height: 42px; font-size: 14px; border-radius: 8px; }
.login-card .pw { position: relative; } .login-card .pw button { position: absolute; right: 6px; top: 6px; height: 30px; width: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; } .login-card .pw button:hover { background: var(--line-2); }
.login-card .btn.primary { width: 100%; justify-content: center; height: 44px; font-size: 15px; border-radius: 8px; background: linear-gradient(180deg, #1d74ee, #1361d6); border-color: #1361d6; }
.login-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; }
.login-tag { position: absolute; left: 28px; bottom: 22px; color: rgba(214,231,255,.85); font-size: 12.5px; z-index: 2; max-width: 520px; } .login-tag b { color: #fff; display: block; font-size: 15px; margin-bottom: 2px; }
@media (max-width: 700px) { .login-tag { display: none; } .login-card { padding: 26px 22px; } }

/* field PWA */
.field { max-width: 720px; margin: 0 auto; min-height: 100vh; background: var(--bg); }
.field-top { background: var(--blue-800); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 10; }
.field-top .sync { margin-left: auto; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.field-top .btn { color: var(--ink); }
.dot-s { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #3ccf7f; } .dot-s.off { background: #f0b429; } .dot-s.err { background: #f06257; }
.field-body { padding: 14px; } .job { padding: 12px 14px; margin-bottom: 10px; cursor: pointer; } .job h3 { margin: 0 0 4px; font-size: 15px; }
.field-nav { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.field-nav button { background: none; border: 0; padding: 10px 4px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; } .field-nav button.active { color: var(--blue-700); font-weight: 600; }
.photo-thumbs { display: flex; gap: 6px; flex-wrap: wrap; } .photo-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

@media print { .sidenav, .appbar, .actions, .toolbar, .pager { display: none !important; } .content { margin: 0 !important; } .shell { padding: 0; } }

/* ------------------------------------------------------------------ Map Data panel (Classic layout) */
.md { border-radius: 12px; }
.md-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 16px; background: linear-gradient(100deg, var(--c-surface) 0%, #fff 55%, #e3f1ff 100%); }
.md-h h3 { margin: 0; flex: 1; font-size: 16px; font-weight: 600; color: var(--c-text); display: flex; align-items: center; gap: 9px; } .md-h h3 .bi { color: var(--c-icon); }
.md-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: #fff; }
.md-tabs button { border: 0; background: none; padding: 11px 6px 10px; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.md-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.md-view { flex: 1; overflow-y: auto; padding: 0 10px 12px; }
.md-view[data-view] > .section-t:first-child { margin-top: 12px; }
.md-theme { display: flex; align-items: center; gap: 6px; width: calc(100% + 20px); margin: 0 -10px 10px; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 13.5px; color: var(--c-text); cursor: pointer; text-align: left; }
.md-theme b { color: var(--accent); font-weight: 600; } .md-theme .md-count { color: var(--accent); font-weight: 600; } .md-theme .bi { color: var(--accent); margin-left: 2px; }
.md-theme:hover { background: var(--blue-50); }
.md-search { display: flex; gap: 6px; margin-bottom: 8px; }
.md-input { position: relative; flex: 1; display: flex; align-items: center; margin: 0; } .md-input .bi { position: absolute; left: 10px; color: var(--muted); font-size: 13px; pointer-events: none; }
.md-input input { padding: 8px 10px 8px 30px; background: var(--c-surface); border-color: var(--c-border); font-size: 13px; height: 36px; } .md-input input:focus { background: #fff; }
.md-attr-wrap { position: relative; } .md-attr { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--c-border); background: #fff; border-radius: 6px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--c-text); cursor: pointer; white-space: nowrap; }
.md-attr:hover { background: var(--blue-50); } .md-attr-menu { right: 0; left: auto; top: 40px; min-width: 240px; max-height: 360px; overflow: auto; }
.md-groups { border: 1px solid var(--c-border); border-radius: 8px; background: #fff; }
.mg { border-bottom: 1px solid var(--c-divider); } .mg:last-child { border-bottom: 0; }
.mg-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; cursor: pointer; user-select: none; position: relative; }
.mg-h:hover { background: var(--c-surface); }
.mg-h input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.mg-h .chev { font-size: 12px; color: var(--c-text); width: 14px; transition: transform .15s; } .mg.open .mg-h .chev { transform: rotate(90deg); }
.mg-h .gn { flex: 1; font-size: 14px; font-weight: 500; color: var(--c-text); } .mg-h .gc { font-size: 11px; color: var(--muted); font-weight: 600; }
.mg-h .more { border: 0; background: none; color: var(--c-icon); width: 26px; height: 24px; border-radius: 5px; cursor: pointer; font-size: 14px; } .mg-h .more:hover { background: var(--c-hover); color: var(--ink); }
.mg-b { display: none; padding: 0 6px 6px 30px; } .mg.open .mg-b { display: block; }
.mg-b .ly { padding: 4px 4px 4px 2px; } .mg-b .ly .nm { font-size: 13px; font-weight: 500; }
.md-quick { gap: 6px; margin: 10px 0 0; }
.md-back { display: flex; align-items: center; gap: 8px; width: calc(100% + 20px); margin: 0 -10px 10px; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line-2); background: #fff; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.md-back:hover { background: var(--blue-50); }
.theme-card { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; margin-bottom: 8px; cursor: pointer; text-align: left; font: inherit; }
.theme-card:hover { border-color: #BFDBFE; } .theme-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(22,104,227,.15); }
.theme-card .sw { display: grid; grid-template-columns: repeat(3, 12px); gap: 3px; padding: 6px; border-radius: 6px; flex: 0 0 auto; } .theme-card .sw i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.theme-card b { display: block; font-size: 13.5px; } .theme-card span { font-size: 12px; color: var(--muted); }
.prj { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 8px; margin-bottom: 6px; cursor: pointer; background: #fff; }
.prj:hover { border-color: #BFDBFE; } .prj.active { border-color: var(--accent); background: var(--c-light); } .prj .grow b { display: block; font-size: 13px; } .prj .grow span { font-size: 11.5px; color: var(--muted); }
/* tool rail */
.md-rail { position: absolute; top: 12px; left: 394px; z-index: 6; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px rgba(16,33,64,.12); overflow: hidden; transition: left .2s; }
.ws.layers-closed .md-rail { left: 12px; }
.md-rail .ab-btn { border-radius: 0; width: 40px; height: 40px; font-size: 16px; color: var(--c-text); } .md-rail .ab-btn + .ab-btn { border-top: 1px solid var(--c-divider); }
.md-rail .ab-btn.active { color: var(--accent); background: var(--blue-50); } .md-rail .rail-sep { height: 6px; background: var(--c-divider); }
.ws-reopen { display: none !important; }
/* attribute table */
.attr-drawer { position: absolute; left: 12px; right: 12px; bottom: 42px; height: min(42%, 380px); z-index: 8; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -6px 24px rgba(16,33,64,.16); display: flex; flex-direction: column; overflow: hidden; }
.ws:not(.layers-closed) .attr-drawer { left: 446px; } .ws.panel-open .attr-drawer { right: 414px; }
.attr-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); } .attr-h .bi-table { color: var(--accent); }
.attr-b { flex: 1; overflow: auto; } .attr-b table.t th { position: sticky; top: 0; z-index: 1; } .attr-b tr { cursor: pointer; }
/* base-map thumbnail */
.bm-thumb { position: absolute; right: 12px; bottom: 44px; z-index: 6; width: 66px; height: 66px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 4px 16px rgba(16,33,64,.25); padding: 0; cursor: pointer; overflow: hidden; background: #ddd; transition: right .2s; }
.ws.panel-open .bm-thumb { right: 414px; }
.bm-thumb .pv { position: absolute; inset: 0; background: linear-gradient(135deg, #f2eadb 0 45%, #7cbbe9 45% 60%, #f2eadb 60%); }
.bm-thumb[data-style=street] .pv { background: linear-gradient(135deg, #f4efe4, #dfe9d8 50%, #cfe0f2); } .bm-thumb[data-style=satellite] .pv { background: linear-gradient(135deg, #3b4b2d, #6b7a4a 50%, #2d3c4c); }
.bm-thumb[data-style=blank] .pv { background: repeating-linear-gradient(45deg, #eef2f7 0 6px, #e4e9f1 6px 12px); } .bm-thumb[data-style=dark] .pv { background: linear-gradient(135deg, #1e2633, #2e394b); }
.bm-thumb .lbl { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(15,27,45,.72); color: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 0; }
.ws .maplibregl-ctrl-bottom-right { right: 86px; }
.basemaps button[data-style=classic] .pv { background: linear-gradient(135deg, #f2eadb 0 45%, #7cbbe9 45% 60%, #f2eadb 60%); }
@media (max-width: 800px) { .ws-layers { width: auto; right: 60px; } .md-rail { left: auto; right: 12px; top: 200px; } .ws.layers-closed .md-rail { left: auto; } .attr-drawer, .ws:not(.layers-closed) .attr-drawer { left: 8px; right: 8px; } }
.checks{display:flex;flex-wrap:wrap;gap:6px 16px;padding:6px 0}.checks .check{font-weight:500}

/* ---------- 1.3.0: operations pages ---------- */
.kpi.warn .v { color: #b45309; } .kpi.bad .v { color: var(--c-danger); }
.kpi-btn { text-align: left; cursor: pointer; font: inherit; border: 1px solid var(--line); }
.kpi-btn:hover { border-color: var(--blue-500); }
.kpi.sev-critical { border-left: 4px solid #b91c1c; } .kpi.sev-major { border-left: 4px solid #e0452b; } .kpi.sev-minor { border-left: 4px solid #f39200; }
.kpi.sev-warning { border-left: 4px solid #eab308; } .kpi.sev-info { border-left: 4px solid #1a5fc4; }
.badge.sev-critical { background: #b91c1c; color: #fff; } .badge.sev-major { background: #fde3df; color: #9f1d0b; }
.list.timeline li { border-left: 2px solid var(--line); padding-left: 10px; margin-left: 4px; }
table.rack { border-collapse: separate; border-spacing: 2px; width: 100%; table-layout: fixed; font-size: 12px; }
table.rack th { width: 34px; color: var(--muted); font-weight: 600; text-align: right; padding-right: 6px; }
table.rack thead th { text-align: center; width: auto; } table.rack thead th:first-child { width: 34px; }
table.rack td { height: 18px; border-radius: 3px; }
table.rack td.ru-free { background: repeating-linear-gradient(90deg, #f3f5f9 0 8px, #eef1f6 8px 16px); border: 1px dashed #dfe4ec; cursor: pointer; }
table.rack td.ru-free:hover { background: #e6eefb; }
table.rack td.ru-item { color: #fff; padding: 2px 8px; cursor: pointer; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
table.rack td.ru-item b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.rack td.ru-item span { font-size: 11px; opacity: .9; }
.chart svg { display: block; max-width: 100%; }

/* ------------------------------------------------------------------ network dashboard panel and straight line diagram (1.4.0) */
.ws-dash { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 380px; z-index: 9; display: flex; flex-direction: column; }
.ws-dash .fpanel-b { overflow-y: auto; padding: 10px 14px 16px; }
.dash-note { background: var(--c-surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; color: var(--muted); margin-bottom: 10px; }
.dash-sec { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.dash-sec h4 { font-size: 13px; font-weight: 600; color: var(--c-text); margin: 0 0 8px; }
.dash-sec select[multiple] { width: 100%; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.dash-grid > div { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 8px 9px; min-width: 0; }
.dash-grid .k { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dash-grid .v { font-size: 14px; font-weight: 600; color: var(--c-text); }
.dash-st { display: grid; grid-template-columns: 110px 1fr 40px; gap: 6px; align-items: center; font-size: 12px; margin: 3px 0; }
.dash-st .bar { display: flex; height: 9px; border-radius: 3px; overflow: hidden; background: var(--line-2); } .dash-st .bar i { display: block; height: 100%; }
.sld-start { max-width: 760px; margin: 30px auto; } .sld-start h2 { display: flex; gap: 10px; align-items: center; color: var(--c-text-2); }
.sld-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
.sld-choice { display: grid; place-items: center; gap: 10px; height: 150px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--c-text-2); font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.sld-choice i { font-size: 34px; color: var(--c-text-2); } .sld-choice:hover:not(:disabled) { border-color: var(--blue-500); color: var(--blue-700); } .sld-choice:disabled { opacity: .45; cursor: default; }
.sld-canvas { overflow: auto; } td.ok { background: #e5f6ed; }
@media print { .sld-canvas svg { width: 100% !important; } }
.ws.dash-open .ws-ctrl { right: 404px; } .ws-dash { bottom: 42px; }
.sld-head .card-h h3 { display: flex; gap: 8px; align-items: center; font-size: 15px; } .sld-head .kpi .v { font-size: 20px; }
#ent-tabs { flex-wrap: wrap; row-gap: 2px; } #ent-tabs button { white-space: nowrap; }

/* ------------------------------------------------------------------ enterprise light design system (1.6.0)
   One set of rules for every module: shell, navigation, buttons, forms, tables, dialogs, dropdowns, tooltips, toasts and the
   GIS floating panels. Colours come only from the tokens in :root. */
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font: 400 14px/1.5 var(--font); color: var(--c-text); background: var(--c-bg); }
h1, h2, h3, h4 { color: var(--c-text); font-weight: 600; letter-spacing: -.005em; }
h2, h3, h4 { font-weight: 500; }
a { color: var(--c-primary); } a:hover { color: var(--c-active); }
.muted, .help, .meta, .when, .t-sub { color: var(--c-text-2); }
.help, .hint, .faint, ::placeholder { color: var(--c-muted); }
::placeholder { opacity: 1; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
::selection { background: #DBEAFE; }

/* icons: slate by default, darker on hover, blue when active, light grey when disabled */
.bi { color: inherit; }
.ab-btn, .ws-draw .ab-btn, .ctrl-group .ab-btn, .md-rail .ab-btn, .icon-x, .ly .more, .mg-h .more { color: var(--c-icon); font-size: 16px; }
.ab-btn:hover, .ws-draw .ab-btn:hover, .ctrl-group .ab-btn:hover, .md-rail .ab-btn:hover, .icon-x:hover, .ly .more:hover, .mg-h .more:hover { color: var(--c-icon-hover); background: var(--c-hover); }
.ab-btn.active, .ws-draw .ab-btn.active, .md-rail .ab-btn.active, .ctrl-group .ab-btn.active { color: var(--c-icon-active); background: var(--c-light); }
.ab-btn:disabled, .ab-btn[disabled] { color: var(--c-icon-disabled); background: transparent; opacity: 1; }
.page-head h1 .bi, .fpanel-h h3 .bi, .md-h h3 .bi, .attr-h .bi-table, .card-h .bi { color: var(--c-icon); }
.kpi .bi { color: var(--c-icon); opacity: 1; font-size: 18px; }
.empty .bi { color: var(--c-icon-disabled); }

/* app bar */
.appbar { background: var(--c-bg); border-bottom: 1px solid var(--c-border); box-shadow: none; }
.ab-brand { border-right-color: var(--c-border); }
.ab-name b { color: var(--blue-900); font-weight: 600; } .ab-name small { color: var(--c-primary); font-weight: 500; }
.ab-search { background: var(--c-surface); border-color: var(--c-border); }
.ab-search:focus-within { border-color: var(--c-primary); box-shadow: var(--c-focus-ring); background: var(--c-bg); }
.ab-search select { color: var(--c-text); font-weight: 500; border-right-color: var(--c-border); }
.ab-user { color: var(--c-text); } .ab-user:hover { background: var(--c-hover); } .ab-user-n b { font-weight: 500; } .ab-user-n small { color: var(--c-text-2); }
.avatar { background: var(--c-light); color: var(--c-primary); font-weight: 600; box-shadow: inset 0 0 0 1px #BFDBFE; }
.ab-menu, .search-results, .ly-menu { background: var(--c-bg); border-color: var(--c-border); box-shadow: var(--shadow-lg); }
.ab-menu a, .ab-menu button[type=submit], .ly-menu button, .ly-menu a { color: var(--c-text); }
.ab-menu a:hover, .ab-menu button[type=submit]:hover, .ly-menu button:hover, .ly-menu a:hover, .search-results a:hover, .search-results a.kb, .notif:hover { background: var(--c-hover); }
.ab-menu .bi, .ly-menu .bi { color: var(--c-icon); }
.search-results .k { background: var(--c-light); color: var(--c-primary); }
.search-results .grp { color: var(--c-muted); font-weight: 600; }
.notif.unread { border-left-color: var(--c-primary); background: var(--c-light); } .notif b { font-weight: 500; } .notif span { color: var(--c-text-2); }
.ab-dot { background: var(--c-danger); font-weight: 600; }

/* navigation: white, slate text and icons, light-blue active item with a blue indicator */
.sidenav { background: var(--c-bg); border-right-color: var(--c-border); }
.nav a, .nav button { color: var(--c-text-2); font-weight: 500; font-size: 13.5px; position: relative; }
.nav i.bi { color: var(--c-icon); font-size: 15px; }
.nav a:hover, .nav button:hover { background: var(--c-hover); color: var(--c-text); }
.nav a:hover i.bi, .nav button:hover i.bi { color: var(--c-icon-hover); }
.nav a.top.active, .nav .sub a.active { background: var(--c-light); color: var(--c-primary); font-weight: 500; }
.nav a.top.active i.bi, .nav .group.has-active > button > i:first-child { color: var(--c-icon-active); }
.nav .group.has-active > button { color: var(--c-text); }
.nav a.top.active::before, .nav .sub a.active::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c-primary); }
.nav .sub a.active::before { left: -10px; }
.nav .sub a { color: var(--c-text-2); font-weight: 400; font-size: 13px; }
.nav .sub::before { background: var(--c-border); }
.nav .group > button .chev { color: var(--c-muted); }
.nav .group + .group, .nav a.top + .group { border-top: 1px solid var(--c-divider); }
.nav-foot { color: var(--c-muted); border-top-color: var(--c-border); }

/* page structure */
.page-head h1 { font-weight: 600; color: var(--c-text); }
.page-head .sub-t { color: var(--c-text-2); }
.card { background: var(--c-bg); border-color: var(--c-border); box-shadow: var(--shadow); }
.card-h { border-bottom-color: var(--c-border); } .card-h h2, .card-h h3 { font-size: 14.5px; font-weight: 500; }
.kpi .v { color: var(--c-text); font-weight: 600; } .kpi .l { color: var(--c-text-2); font-weight: 500; letter-spacing: .04em; } .kpi .s { color: var(--c-text-2); }
.kpi.warn .v { color: var(--c-warning-text); } .kpi.bad .v { color: var(--c-danger-text); }
.kpi-btn:hover { border-color: #BFDBFE; background: var(--c-surface); }
.seg { background: var(--c-divider); } .seg a, .seg button { color: var(--c-text-2); }
.seg a.active, .seg button.active { background: var(--c-bg); color: var(--c-primary); font-weight: 500; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.tabs { border-bottom-color: var(--c-border); }
.tabs button { color: var(--c-text-2); font-weight: 500; } .tabs button:hover { color: var(--c-text); }
.tabs button.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 500; }
.section-t, .lg-h, .cp-sec > h4 { color: var(--c-text-2); font-weight: 600; }
.dl dt, .kv dt { color: var(--c-text-2); } .kv dd { font-weight: 500; color: var(--c-text); }
hr { border-top-color: var(--c-border); }
pre { background: var(--c-surface); border-color: var(--c-border); }

/* buttons: consistent heights (34 / 28 px) and radius */
.btn { height: 34px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); font-weight: 500; font-size: 13.5px; box-shadow: 0 1px 1px rgba(15,23,42,.03); }
.btn .bi { color: var(--c-icon); }
.btn:hover { background: var(--c-hover); border-color: #CBD5E1; color: var(--c-text); }
.btn:focus-visible { outline: none; box-shadow: var(--c-focus-ring); border-color: var(--c-primary); }
.btn:disabled, .btn[disabled] { color: var(--c-muted); background: var(--c-surface); border-color: var(--c-border); opacity: 1; box-shadow: none; }
.btn:disabled .bi { color: var(--c-icon-disabled); }
.btn.primary { background: var(--c-primary); border-color: var(--c-primary); color: #FFFFFF; }
.btn.primary .bi { color: #FFFFFF; }
.btn.primary:hover { background: var(--c-active); border-color: var(--c-active); color: #FFFFFF; }
.btn.primary:disabled { background: #93C5FD; border-color: #93C5FD; color: #FFFFFF; }
.btn.danger { color: var(--c-danger); border-color: #FECACA; background: var(--c-bg); } .btn.danger .bi { color: var(--c-danger); }
.btn.danger:hover { background: var(--c-danger); border-color: var(--c-danger); color: #FFFFFF; } .btn.danger:hover .bi { color: #FFFFFF; }
.btn.danger.solid { background: var(--c-danger); border-color: var(--c-danger); color: #FFFFFF; } .btn.danger.solid .bi { color: #FFFFFF; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; } .btn.icon { padding: 0 9px; } .btn.sm.icon { padding: 0 7px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; } .btn.ghost:hover { background: var(--c-hover); }
.btn.active { background: var(--c-light); border-color: #BFDBFE; color: var(--c-primary); } .btn.active .bi { color: var(--c-icon-active); }
.cp-actions .btn { height: 28px; padding: 0 9px; font-size: 12.5px; }

/* forms */
input, select, textarea { color: var(--c-text); background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 7px; font-weight: 400; font-size: 13.5px; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not([type=range])), :where(select) { height: 34px; }
input, select { padding: 0 10px; } input[type=checkbox], input[type=radio], input[type=file] { padding: 0; } input[type=color] { padding: 2px; }
:where(select[multiple]) { height: auto; } select[multiple] { padding: 6px; }
textarea { padding: 8px 10px; }
input:hover, select:hover, textarea:hover { border-color: #CBD5E1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--c-focus-ring); }
input:disabled, select:disabled, textarea:disabled, input[readonly] { background: var(--c-surface); color: var(--c-muted); }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--c-primary); }
label { color: var(--c-text-2); font-weight: 500; } label.check { color: var(--c-text); font-weight: 400; }
.err { color: var(--c-danger); } .req::after { color: var(--c-danger); }
.toolbar { border-bottom-color: var(--c-border); background: var(--c-bg); }
:where(.toolbar) :where(input:not([type=checkbox]):not([type=radio])), :where(.toolbar) :where(select:not([multiple])) { height: 32px; }

/* tables */
table.t th, table.t td { border-bottom-color: var(--c-divider); }
table.t td { color: var(--c-text); }
table.t th { background: var(--c-surface); color: var(--c-text-2); font-weight: 500; font-size: 11.5px; letter-spacing: .04em; border-bottom: 1px solid var(--c-border); }
table.t th.sortable:hover { color: var(--c-text); }
table.t tbody tr:hover { background: var(--c-surface); }
table.t tbody tr.selected, table.t tbody tr.sel, table.t tbody tr.active { background: var(--c-light); }
.pager { color: var(--c-text-2); }

/* badges, alerts, progress: status colours, darker shades for small text */
.badge { font-weight: 500; background: var(--c-divider); color: var(--c-text-2); }
.badge.ok { background: var(--c-success-bg); color: var(--c-success-text); box-shadow: inset 0 0 0 1px #BBF7D0; }
.badge.warn { background: var(--c-warning-bg); color: var(--c-warning-text); box-shadow: inset 0 0 0 1px #FDE68A; }
.badge.bad { background: var(--c-danger-bg); color: var(--c-danger-text); box-shadow: inset 0 0 0 1px #FECACA; }
.badge.info { background: var(--c-info-bg); color: var(--c-info-text); box-shadow: inset 0 0 0 1px #BAE6FD; }
.alert { border-radius: 8px; }
.alert.ok { background: var(--c-success-bg); border-color: #BBF7D0; color: var(--c-success-text); }
.alert.warn { background: var(--c-warning-bg); border-color: #FDE68A; color: var(--c-warning-text); }
.alert.bad { background: var(--c-danger-bg); border-color: #FECACA; color: var(--c-danger-text); }
.alert.info { background: var(--c-info-bg); border-color: #BAE6FD; color: var(--c-info-text); }
.progress { background: var(--c-divider); } .progress > span { background: var(--c-primary); }
.progress.warn > span { background: var(--c-warning); } .progress.bad > span { background: var(--c-danger); }
.spinner { border-color: var(--c-light); border-top-color: var(--c-primary); }

/* dialogs, drawers, toasts, tooltips */
.backdrop { background: rgba(15, 23, 42, .32); }
.modal, .drawer { background: var(--c-bg); border: 1px solid var(--c-border); }
.modal-h, .modal-f { border-color: var(--c-border); } .modal-h h2 { font-size: 15.5px; font-weight: 600; }
.modal-f { background: var(--c-surface); border-radius: 0 0 10px 10px; }
.toast { background: var(--c-bg); border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary); color: var(--c-text); }
.toast.ok { border-left-color: var(--c-success); } .toast.bad { border-left-color: var(--c-danger); } .toast.warn { border-left-color: var(--c-warning); }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 400; padding: 4px 8px; border-radius: 6px; z-index: 120; pointer-events: none; box-shadow: var(--shadow-float); }
.maplibregl-popup-content { color: var(--c-text); border: 1px solid var(--c-border); border-radius: 8px; box-shadow: var(--shadow-lg); }

/* GIS workspace: white floating panels and toolbars with subtle borders and shadows */
.ws { background: var(--c-surface); }
.fpanel, .ws-draw, .ctrl-group, .md-rail, .attr-drawer { background: var(--c-bg); border: 1px solid var(--c-border); box-shadow: var(--shadow-float); }
.fpanel { border-radius: 10px; }
.fpanel-h { background: var(--c-bg); border-bottom-color: var(--c-border); } .fpanel-h h3 { font-weight: 500; color: var(--c-text); }
.fpanel .tabs, .md-tabs { background: var(--c-bg); }
.md-h { background: var(--c-panel); border-bottom: 1px solid var(--c-border); } .md-h h3 { color: var(--c-text); font-weight: 500; font-size: 15px; }
.md-tabs button { color: var(--c-text-2); font-weight: 500; font-size: 12.5px; } .md-tabs button.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.md-theme, .md-back { background: var(--c-bg); color: var(--c-text); border-bottom-color: var(--c-divider); } .md-theme:hover, .md-back:hover { background: var(--c-hover); }
.md-theme b, .md-theme .md-count { color: var(--c-primary); font-weight: 500; }
.md-input input { background: var(--c-surface); border-color: var(--c-border); } .md-input input:focus { background: var(--c-bg); }
.md-attr { border-color: var(--c-border); color: var(--c-text); font-weight: 500; } .md-attr:hover { background: var(--c-hover); }
.md-groups { border-color: var(--c-border); }
.mg { border-bottom-color: var(--c-divider); } .mg-h:hover { background: var(--c-surface); }
.mg-h .gn { color: var(--c-text); font-weight: 500; font-size: 13.5px; } .mg-h .gc { color: var(--c-muted); font-weight: 500; } .mg-h .chev { color: var(--c-muted); }
.ly:hover { background: var(--c-surface); } .ly .nm { color: var(--c-text); font-weight: 400; } .ly.off .nm { color: var(--c-muted); }
.ly .cnt { background: var(--c-divider); color: var(--c-text-2); } .ly .cnt.has { background: var(--c-light); color: var(--c-primary); font-weight: 500; }
.theme-card, .prj { border-color: var(--c-border); background: var(--c-bg); } .theme-card:hover, .prj:hover { border-color: #BFDBFE; }
.theme-card.active, .prj.active { border-color: var(--c-primary); background: var(--c-light); box-shadow: none; }
.basemaps button { border-color: var(--c-border); color: var(--c-text-2); } .basemaps button.active { border-color: var(--c-primary); color: var(--c-primary); font-weight: 500; box-shadow: var(--c-focus-ring); }
.ws-draw { border-radius: 10px; } .ws-draw .ab-btn { width: 32px; height: 32px; font-size: 15px; } .ws-draw .sep { background: var(--c-border); }
.ws-draw label.snap { color: var(--c-text-2); font-weight: 500; }
.ctrl-group { border-radius: 9px; } .ctrl-group .ab-btn { width: 34px; height: 32px; font-size: 15px; } .ctrl-group .ab-btn + .ab-btn { border-top-color: var(--c-divider); }
.md-rail { border-radius: 9px; } .md-rail .ab-btn { width: 36px; height: 36px; font-size: 15px; } .md-rail .ab-btn + .ab-btn { border-top-color: var(--c-divider); } .md-rail .rail-sep { background: var(--c-surface); }
.cp-head { background: var(--c-panel); border-bottom-color: var(--c-border); } .cp-head h2 { font-weight: 600; color: var(--c-text); } .cp-head .meta { color: var(--c-text-2); }
.port-grid span { border-color: var(--c-border); color: var(--c-text-2); } .port-grid span.used { background: var(--c-light); border-color: #BFDBFE; color: var(--c-primary); font-weight: 500; }
.conn-row { border-color: var(--c-border); } .conn-row .grow span { color: var(--c-text-2); }
.tl { border-left-color: var(--c-border); } .tl li::before { border-color: var(--c-primary); } .tl li .when { color: var(--c-muted); }
.ws-status { background: rgba(255,255,255,.96); border-top-color: var(--c-border); color: var(--c-text-2); font-weight: 400; font-size: 12px; } .ws-status .bi { color: var(--c-icon); }
.map-hint { background: var(--c-text); }
.map-banner { background: var(--c-warning-bg); color: var(--c-warning-text); border-color: #FDE68A; }
.dash-note { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text-2); }
.dash-sec { border-color: var(--c-border); } .dash-sec h4 { color: var(--c-text); font-weight: 500; } .dash-grid .v { color: var(--c-text); font-weight: 500; }
.sld-start h2, .sld-choice { color: var(--c-text-2); } .sld-choice i { color: var(--c-icon); } .sld-choice:hover:not(:disabled) { border-color: var(--c-primary); color: var(--c-primary); }
.topo .node { border-color: var(--c-border); } .topo .node:hover { border-color: var(--c-primary); }
.core { border-color: var(--c-border); } .core:hover { border-color: var(--c-primary); } .core.sel { outline-color: var(--c-primary); }
.splice-svg { background: var(--c-surface); border-color: var(--c-border); } .splice-svg text, .chart text { fill: var(--c-text-2); }
.field-top { background: var(--c-bg); color: var(--c-text); border-bottom: 1px solid var(--c-border); } .field-nav button.active { color: var(--c-primary); }
.login-card .btn.primary { background: var(--c-primary); border-color: var(--c-primary); } .login-card .btn.primary:hover { background: var(--c-active); }
.login-brand b { color: var(--blue-900); font-weight: 600; } .login-brand small { color: var(--c-primary); font-weight: 600; }
.ab-search input:focus, .md-input input:focus { box-shadow: none; } .ab-search input:focus { border: 0; } .md-input input:focus { border-color: var(--c-primary); }
/* base-map previews (1.6.0) */
.basemaps button[data-style=light] .pv, .bm-thumb[data-style=light] .pv { background: linear-gradient(135deg, #F4F3EF 0 38%, #FBEDB0 38% 44%, #F4F3EF 44% 62%, #C9E0F2 62%); }
.basemaps button[data-style=hybrid] .pv, .bm-thumb[data-style=hybrid] .pv { background: linear-gradient(135deg, #3b4b2d 0 40%, #F6C392 40% 45%, #6b7a4a 45% 70%, #2d3c4c 70%); }
.basemaps button[data-style=light_raster] .pv { background: linear-gradient(135deg, #fafbfc, #e8edf3); }
.bm-thumb { border-color: #FFFFFF; box-shadow: var(--shadow-float), 0 0 0 1px var(--c-border); }
.bm-thumb .lbl { background: rgba(51, 65, 85, .78); font-weight: 500; }
