:root {
  --bg: #000000;
  --panel: #070a0f;
  --panel2: #0d121b;
  --text: #e9eef7;
  --muted: #8c99ad;
  --accent: #4aa3ff;
  --accent2: #f04d5e;
  --line: rgba(255,255,255,.10);
  --seeai-ui-bg: #000000;
  --seeai-ui-bg-soft: #030508;
  --seeai-ui-panel: #070a0f;
  --seeai-ui-panel-soft: #0d121b;
  --seeai-ui-text: #e9eef7;
  --seeai-ui-muted: #8c99ad;
  --seeai-ui-border: rgba(255,255,255,.10);
  --seeai-ui-input-bg: #05080d;
  --seeai-ui-button-bg: #4aa3ff;
  --seeai-ui-danger: #f04d5e;
  --seeai-ui-success: #40d6a1;
  --seeai-ui-warning: #f5c26b;
  --color-background-secondary: rgba(74,163,255,.08);
  --color-border-secondary: rgba(112,197,255,.24);
  --color-border-tertiary: rgba(255,255,255,.10);
  --color-text-primary: var(--seeai-ui-text);
  --color-text-secondary: var(--seeai-ui-muted);
  --color-text-danger: #ff9aa5;
  --color-text-warning: #ffe1a8;
  --color-text-success: #b8ffe8;
  --border-radius-lg: 8px;
}

/* IA-4B.1 — Q&A Grounded, VisualEvidenceGraph e workspace 2D independente. */
#advancedAiAnalysisContent .grounded-qa-section {
  border-color: rgba(66, 211, 146, .34);
  background: linear-gradient(180deg, rgba(24, 93, 70, .16), rgba(255, 255, 255, .018));
}
#advancedAiAnalysisContent .grounded-qa-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
#advancedAiAnalysisContent .grounded-qa-form textarea {
  width: 100%; min-height: 74px; resize: vertical; color: #eef7ff;
  border: 1px solid rgba(74, 163, 255, .32); border-radius: 10px;
  background: #07101b; padding: 9px 10px; font: inherit;
}
#advancedAiAnalysisContent .grounded-qa-history { display: grid; gap: 10px; margin-top: 12px; }
#advancedAiAnalysisContent .grounded-qa-answer-card { min-height: 0; }
#advancedAiAnalysisContent .grounded-query-answer-card { position: relative; padding-right: 38px; }
#advancedAiAnalysisContent .grounded-query-dismiss {
  position: absolute; top: 7px; right: 7px; width: 24px; height: 24px;
  display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.16);
  border-radius: 7px; background: rgba(5, 10, 16, .72); color: #b9c8d8;
  padding: 0; font: 600 17px/1 sans-serif;
}
#advancedAiAnalysisContent .grounded-query-dismiss:hover,
#advancedAiAnalysisContent .grounded-query-dismiss:focus-visible {
  border-color: rgba(240,77,94,.58); background: rgba(240,77,94,.14); color: #ffd8dd;
}
#advancedAiAnalysisContent .grounded-qa-question { margin: 5px 0 10px; font-size: 13px; color: #f0f7ff; }
#advancedAiAnalysisContent .grounded-qa-open-visual { margin: 8px 0 5px; }
#advancedAiAnalysisContent .grounded-suggested-question {
  width: 100%; border: 1px solid rgba(74, 163, 255, .24); border-radius: 9px;
  background: rgba(74, 163, 255, .08); color: #dceeff; padding: 8px 10px;
  text-align: left; cursor: default;
}
#advancedAiAnalysisContent .grounded-suggested-question:hover { background: rgba(74, 163, 255, .16); }
#advancedAiAnalysisContent .investigative-visual-evidence-shell { min-height: 420px; }
#advancedAiAnalysisContent .investigative-chart-selector { width: 100%; margin-bottom: 10px; }
#advancedAiAnalysisContent .investigative-chart-context { margin-bottom: 10px; }
#advancedAiAnalysisContent .investigative-chart-workspace {
  min-height: 360px; border: 1px solid rgba(74, 163, 255, .2); border-radius: 12px;
  background: radial-gradient(circle at 50% 20%, rgba(21, 74, 119, .2), rgba(3, 8, 14, .95)); overflow: auto;
}
.investigative-chart-canvas svg { display: block; width: 100%; min-width: 620px; height: auto; padding: 12px; }
.investigative-chart-canvas rect { fill: #2f91dc; rx: 4; cursor: default; }
.investigative-chart-canvas g:hover rect { fill: #58b7ff; }
.investigative-chart-canvas text { fill: #dcecff; font-size: 13px; }

.analysis-visual-evidence-overlay {
  position: fixed; z-index: 40; top: 62px; left: 12px; right: 472px; bottom: 52px;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(74, 163, 255, .48); border-radius: 16px;
  background: rgba(3, 8, 14, .975); box-shadow: 0 24px 90px rgba(0, 0, 0, .72);
  color: #edf7ff; overflow: hidden;
}
.analysis-visual-evidence-header,
.analysis-visual-evidence-actions { display: flex; align-items: center; gap: 9px; padding: 11px 14px; background: rgba(8, 20, 34, .98); }
.analysis-visual-evidence-header { justify-content: space-between; border-bottom: 1px solid rgba(74, 163, 255, .22); }
.analysis-visual-evidence-header h2 { margin: 0; font-size: 15px; }
.analysis-visual-evidence-badges { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.analysis-visual-evidence-actions { justify-content: center; flex-wrap: wrap; gap: 6px; border-top: 1px solid rgba(74, 163, 255, .22); }
.analysis-investigative-tool-group { display: inline-flex; min-width: 0; align-items: center; justify-content: center; gap: 5px; flex-wrap: wrap; padding: 2px 5px; border-radius: 8px; background: rgba(15, 36, 55, .44); }
.analysis-investigative-tool-group .secondary { min-height: 28px; padding: 5px 8px; white-space: nowrap; }
.analysis-investigative-tool-group .secondary[aria-pressed="true"] { border-color: rgba(95, 222, 174, .78); background: rgba(29, 116, 86, .34); color: #d9fff0; }
.analysis-investigative-tool-group .secondary:focus-visible { outline: 2px solid rgba(126, 195, 255, .86); outline-offset: 2px; }
.analysis-investigative-link-limit {
  min-height: 28px; display: inline-flex; align-items: center; padding: 4px 8px;
  border: 1px solid rgba(235, 184, 75, .38); border-radius: 999px;
  background: rgba(83, 55, 10, .5); color: #fff0bf; font-size: 11px; font-weight: 700;
}
.analysis-visual-evidence-badge { border-radius: 999px; padding: 4px 8px; background: #7a5617; color: #fff2c4; font-size: 11px; }
.analysis-visual-evidence-renderer-badge { background: #154e70; color: #d7f3ff; }
.analysis-visual-evidence-group-badge { background: #263f5a; color: #f1f8ff; border: 1px solid rgba(126, 207, 255, .38); }
.analysis-visual-evidence-workspace { position: relative; min-height: 0; overflow: hidden; touch-action: none; user-select: none; cursor: default; }
.analysis-visual-evidence-workspace:active { cursor: default; }
.analysis-investigative-render-host { position: absolute; inset: 0; min-width: 0; min-height: 0; background: radial-gradient(circle at 50% 32%, rgba(22, 78, 116, .3), rgba(2, 7, 12, .98)); }
.analysis-investigative-render-host > canvas { position: absolute; inset: 0; }
.analysis-investigative-group-label-layer { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.analysis-investigative-group-label {
  position: absolute; transform: translate(-50%, -100%); max-width: min(260px, 42%);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 5px 10px; border: 1px solid rgba(126, 207, 255, .58); border-radius: 999px;
  background: rgba(4, 20, 32, .9); box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
  color: #eef9ff; font-size: 12px; font-weight: 800; letter-spacing: .01em;
}
.analysis-investigative-details {
  position: absolute; z-index: 4; top: 12px; right: 12px; width: min(300px, calc(100% - 24px));
  display: grid; gap: 4px; padding: 10px 12px; pointer-events: none;
  border: 1px solid rgba(106, 194, 247, .32); border-radius: 10px;
  background: rgba(4, 14, 23, .88); box-shadow: 0 8px 30px rgba(0, 0, 0, .34);
  color: #e8f6ff; font-size: 11px;
}
.analysis-investigative-details:empty { display: none; }
.analysis-investigative-detail-hint { color: #9db4c8; }
.analysis-investigative-detail-row { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c7dfef; }
.analysis-mini-graph-canvas, .analysis-mini-graph-canvas svg { width: 100%; height: 100%; min-height: 360px; display: block; }
.visual-evidence-link { stroke: #5c7e9d; stroke-width: 2; opacity: .84; }
.visual-evidence-link-path { stroke: #ffbf4c; stroke-width: 3; }
.visual-evidence-node circle { fill: #176aa7; stroke: #8ed0ff; stroke-width: 2; cursor: default; }
.visual-evidence-node:active circle { cursor: default; }
.visual-evidence-node-target circle { fill: #d48c18; stroke: #fff0b0; stroke-width: 3; }
.visual-evidence-node-path_intermediate circle { fill: #7b55bb; }
.visual-evidence-node.is-locally-selected circle { stroke: #fff; stroke-width: 5; }
.visual-evidence-node.is-locally-related circle { stroke: #9de7c8; stroke-width: 3; }
.visual-evidence-link.is-locally-related { stroke: #9de7c8; stroke-width: 4; opacity: 1; }
.visual-evidence-node text { fill: #eef8ff; font-size: 12px; text-anchor: middle; paint-order: stroke; stroke: #02060a; stroke-width: 3px; stroke-linejoin: round; }
.visual-evidence-empty { fill: #9fb1c5; font-size: 14px; }
#advancedAiAnalysisContent .advanced-analysis-minigraph-action {
  align-self: flex-start; margin-top: 8px; border-color: rgba(66, 211, 146, .36);
  color: #c9ffe8; background: rgba(27, 111, 80, .18);
}
@media (max-width: 900px) {
  .analysis-visual-evidence-overlay { left: 8px; right: 8px !important; bottom: 42px; }
  .analysis-visual-evidence-actions { justify-content: flex-start; max-height: 118px; padding: 8px; overflow-y: auto; }
  .analysis-investigative-tool-group { flex: 1 1 auto; }
  #advancedAiAnalysisContent .grounded-qa-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .analysis-visual-evidence-header { align-items: flex-start; padding: 8px 10px; }
  .analysis-visual-evidence-badges { max-width: 58%; }
  .analysis-investigative-details { top: 8px; right: 8px; width: min(260px, calc(100% - 16px)); max-height: 42%; overflow: auto; }
  .analysis-investigative-tool-group { justify-content: flex-start; }
  .analysis-investigative-tool-group .secondary { padding-inline: 6px; font-size: 11px; }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Inter, Arial, sans-serif; background: #000; color: var(--text); font-size: 12px; letter-spacing: 0; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 6px; padding: 6px 10px; min-height: 30px; background: var(--accent); color: #06111f; font-weight: 700; cursor: default; }
button.secondary { background: #172033; color: var(--text); border: 1px solid var(--line); }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
button:disabled { opacity: .45; cursor: default; }
button:hover:not(:disabled) { filter: brightness(1.12); }
input, select { background: #05080d; border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 6px 8px; outline: none; min-width: 0; }
input:focus, select:focus { border-color: var(--accent); }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top, #111827, #000 70%); }
.login-card { width: min(440px, calc(100vw - 32px)); background: rgba(10,14,22,.94); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.brand-mark { width: 88px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; display: grid; place-items: center; font-weight: 900; letter-spacing: 1px; margin-bottom: 18px; }
.clean-login { text-align: center; }
.login-logo { max-width: 170px; max-height: 82px; object-fit: contain; margin: 0 auto 20px; display: block; }
.login-card h1 { margin: 0 0 8px; }
.login-card p { color: var(--muted); margin-top: 0; }
.login-form { display: grid; gap: 14px; margin: 20px 0; }
.login-form label { display: grid; gap: 6px; color: var(--muted); }
.alert { background: rgba(240,77,94,.16); border: 1px solid rgba(240,77,94,.4); border-radius: 10px; padding: 10px; color: #ffd5da; }
.topbar { height: 50px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); background: #030508; }
.brandline { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-area { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.user-name { color: #dfe8f7; font-weight: 700; font-size: 12px; }
.top-logo { width: 54px; height: 28px; object-fit: contain; }
.status-text { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.menu-bar { display: flex; gap: 6px; align-items: center; }
.menu-btn.active { border-color: rgba(74,163,255,.7); color: #bfe0ff; background: rgba(74,163,255,.08); }
.pill { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: #111827; color: var(--muted); font-size: 11px; }
.pill.warning { background: rgba(240,77,94,.16); color: #ffd5da; }
.pill.ok { background: rgba(64,214,161,.14); color: #b8ffe8; }
.dropdown-panel { display: none; border-bottom: 1px solid var(--line); background: #05070b; padding: 8px 12px; }
.dropdown-panel.active { display: block; }
.toolbar { display: grid; grid-template-columns: 190px 190px minmax(220px,1fr) auto auto 230px; gap: 8px; align-items: center; }
.filters-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-list { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; gap: 5px; align-items: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #080c12; }
.filter-chip img { width: 14px; height: 14px; object-fit: contain; }
.layout { height: calc(100vh - 101px); display: grid; grid-template-columns: 330px 1fr; }
.side-panel { overflow: auto; border-right: 1px solid var(--line); background: #05070b; padding: 10px; font-size: 10.8px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.side-panel h2, .side-panel h3 { margin: 6px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #c6d2e1; }
.graph { min-width: 0; min-height: 0; background: #000; position: relative; }
.stats { color: var(--muted); margin-bottom: 10px; font-size: 11px; }
.details { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 12px; padding: 10px; overflow: auto; }
.details .title { font-weight: 800; font-size: 12px; margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.details .title img { width: 18px; height: 18px; object-fit: contain; }
.details .sub { color: var(--muted); margin-bottom: 8px; font-size: 11px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px; padding: 3px 0; border-top: 1px solid rgba(255,255,255,.055); }
.kv b { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.kv span { overflow-wrap: anywhere; }
.actions { display: grid; gap: 6px; margin: 10px 0; }
.actions button { width: 100%; text-align: left; padding: 7px 9px; }
.legend { display: grid; gap: 6px; }
.legend-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; color: var(--muted); background: rgba(255,255,255,.015); }
.legend-left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.legend-left img { width: 15px; height: 15px; object-fit: contain; }
.log { white-space: pre-wrap; min-height: 80px; max-height: 170px; overflow: auto; background: #020304; border: 1px solid var(--line); border-radius: 10px; padding: 8px; color: var(--muted); font-size: 11px; }
.muted { color: var(--muted); }
.small-note { font-size: 11px; }
@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; height: auto; padding: 10px; }
  .menu-bar { flex-wrap: wrap; }
  .toolbar { grid-template-columns: 1fr; }
  .layout { height: auto; min-height: calc(100vh - 58px); grid-template-columns: 1fr; }
  .side-panel { order: 2; border-right: 0; border-top: 1px solid var(--line); }
  .graph { height: 66vh; }
}

.filter-help { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.mini-filter { padding: 4px 7px; font-size: 10.5px; border-radius: 999px; background: #101827; color: #cbd6e7; border: 1px solid var(--line); }
.busy-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.34); backdrop-filter: blur(2px); z-index: 50; pointer-events: none; }
.busy-overlay.active { display: flex; }
.busy-card { width: min(360px, calc(100vw - 40px)); border: 1px solid rgba(74,163,255,.35); background: rgba(5,8,13,.94); border-radius: 18px; padding: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.6); text-align: center; }
.hourglass { width: 42px; height: 42px; margin: 0 auto 12px; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy-title { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.busy-sub { color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.progress-shell { height: 7px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.progress-bar { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #89d2ff); transition: width .18s ease; }
.busy-timer { color: var(--muted); font-size: 11px; margin-top: 8px; }

/* V18 - filtros por seleção ativa de subgrafo */
.filter-help { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.filter-summary { color: #bfe0ff; background: rgba(74,163,255,.08); border: 1px solid rgba(74,163,255,.22); padding: 4px 8px; border-radius: 999px; }
.filter-block { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: start; margin: 8px 0; }
.filter-block strong { padding-top: 7px; color: #c6d2e1; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.filter-buttons { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-toggle { appearance: none; display: inline-flex; gap: 6px; align-items: center; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #d5dfef; background: #07101b; cursor: default; font-size: 11px; line-height: 1; transition: background .16s ease, border-color .16s ease, color .16s ease, transform .08s ease; }
.filter-toggle img { width: 15px; height: 15px; object-fit: contain; }
.filter-toggle:hover { border-color: rgba(74,163,255,.55); color: #ffffff; transform: translateY(-1px); }
.filter-toggle.active { background: #1468b8; border-color: #4aa3ff; color: #ffffff; box-shadow: 0 0 0 1px rgba(74,163,255,.18) inset, 0 0 16px rgba(74,163,255,.18); }
.reset-filter { background: #111827; color: #cbd6e7; border-color: rgba(255,255,255,.14); }
.reset-filter:hover { border-color: rgba(255,255,255,.32); }
@media (max-width: 980px) {
  .filter-block { grid-template-columns: 1fr; }
}

/* V19 - pesquisa múltipla por seleção e localização precisa */
.toolbar { grid-template-columns: 170px 170px minmax(180px,1fr) auto auto minmax(180px,1fr) auto auto auto auto auto; }
#searchPanel .compact-toolbar { display: flex; flex-wrap: wrap; align-items: center; }
#searchPanel .compact-toolbar > select { flex: 0 1 170px; min-width: 140px; }
#searchPanel #queryValue { flex: 1 1 240px; min-width: 180px; }
#searchPanel #queryExtraFields { display: contents; }
#searchPanel #queryExtraFields input,
#searchPanel #localSearch { flex: 1 1 210px; min-width: 180px; }
#searchPanel .compact-toolbar > button { flex: 0 0 auto; width: auto; }
.active-select-mode { background: #1468b8 !important; border-color: #4aa3ff !important; color: #fff !important; box-shadow: 0 0 16px rgba(74,163,255,.22); }
.view-mode-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 28;
  padding: 5px 9px;
  border: 1px solid rgba(112,197,255,.34);
  border-radius: 6px;
  background: rgba(4,12,24,.82);
  color: #dbeafe;
  font-size: 10.5px;
  font-weight: 700;
  pointer-events: none;
}
.selection-tray, .local-results { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 11px; }
.selection-tray { border-top: 1px solid var(--line); padding-top: 7px; }
.selected-chip, .local-result { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #07101b; color: #d9e8fa; border-radius: 999px; padding: 5px 8px; font-weight: 600; }
.selected-chip img, .local-result img { width: 15px; height: 15px; object-fit: contain; }
.local-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, max-content)); }
.local-head, .local-empty { grid-column: 1 / -1; color: #bfe0ff; padding: 3px 0; }
.local-result { border-radius: 10px; justify-content: flex-start; text-align: left; max-width: 320px; }
.local-result span { display: grid; gap: 1px; min-width: 0; }
.local-result b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-result small { color: var(--muted); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1200px) { .toolbar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) { .toolbar { grid-template-columns: 1fr; } .local-results { grid-template-columns: 1fr; } }

.details .label-fields-preference { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 4px 0 2px; color: var(--muted); }
.details .label-fields-preference span { font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.details .label-fields-preference button { padding: 3px 6px; font-size: 9.5px; }
.details .label-field-kv { grid-template-columns: 104px minmax(0,1fr); }
.details .label-field-choice { display: grid; grid-template-columns: 13px minmax(0,1fr); gap: 5px; align-items: start; min-width: 0; cursor: default; }
.details .label-field-choice input { width: 12px; height: 12px; margin: 1px 0 0; accent-color: #4aa3ff; }
.details .label-field-choice b { min-width: 0; }


/* V21 - controles de orgânico, localização e confirmação de limpeza */
button.danger { background: rgba(240,77,94,.18); border-color: rgba(240,77,94,.55); color: #ffd7dc; }
button.danger:hover { border-color: rgba(240,77,94,.9); background: rgba(240,77,94,.28); }
.confirm-modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.58); backdrop-filter: blur(3px); }
.confirm-modal.active { display: flex; }
.confirm-card { width: min(420px, calc(100vw - 36px)); background: rgba(6,10,16,.98); border: 1px solid rgba(240,77,94,.34); border-radius: 18px; padding: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.confirm-card h3 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.confirm-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.45; font-size: 12px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
#toggleOrganicBtn.active-select-mode { background: #1468b8 !important; border-color: #4aa3ff !important; color: #fff !important; }

/* V25 - labels, perfil e artefatos */
.tool-grid { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.tool-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-right: 14px; border-right: 1px solid var(--line); }
.tool-group strong { color: #c6d2e1; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-right: 2px; }
.profile-form { display: grid; grid-template-columns: repeat(6, minmax(135px, 1fr)); gap: 10px; align-items: end; }
.profile-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.profile-form input:disabled { color: #7f8a9b; background: #080b10; }
.profile-form button { align-self: end; }
#profileStatus { align-self: center; }
@media (max-width: 1120px) { .profile-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .profile-form { grid-template-columns: 1fr; } .tool-group { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; } }

/* V114P - menu Casos/Web alinhado ao Desktop */
.case-active-row {
  width: 100%;
  gap: 8px;
  align-items: center;
  border-right: 0;
  padding-right: 0;
}
.case-active-readonly {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  min-width: min(360px, 42vw);
  max-width: 520px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #060a11;
  color: #dbe7f6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.danger-soft {
  border-color: rgba(240,77,94,.42) !important;
  color: #ffd5da !important;
}
.case-open-card {
  width: min(720px, calc(100vw - 32px));
  max-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
}
.case-open-list {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  margin: 10px 0 14px;
}
.case-open-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.case-open-table th,
.case-open-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: left;
  vertical-align: middle;
}
.case-open-table th {
  color: #9fb4ca;
  font-weight: 700;
  background: rgba(74,163,255,.06);
}
.case-open-table tr { cursor: default; }
.case-open-table tr:hover { background: rgba(74,163,255,.08); }
.case-open-table td small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.confirm-card {
  border-radius: 12px;
  padding: 18px;
}
.confirm-card h3 {
  font-size: 14px;
}

#analysisPanel.dropdown-panel,
#analyticsPanel.dropdown-panel.analytics-panel {
  max-height: min(58vh, 620px) !important;
  overflow: auto !important;
}
#analyticsPanel .analytics-card {
  border-radius: 8px;
}
#analyticsPanel .analytics-section,
.details,
.log {
  border-radius: 8px;
}
.graph {
  min-height: 420px;
}
.graph-context-menu {
  max-width: min(300px, calc(100vw - 16px));
}

/* V26 - Inteligência Analítica / Dashboard determinístico */
.analytics-panel { max-height: 52vh; overflow: auto; }
.analytics-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.analytics-dashboard { display: grid; gap: 10px; }
.analytics-empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.018); }
.analytics-cards { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 8px; }
.analytics-card { border: 1px solid rgba(74,163,255,.20); border-radius: 13px; background: linear-gradient(180deg, rgba(74,163,255,.10), rgba(255,255,255,.018)); padding: 10px; min-height: 70px; }
.analytics-card span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.analytics-card b { display: block; font-size: 22px; margin-top: 4px; color: #e9f4ff; }
.analytics-card small { display: block; color: #9db6cf; margin-top: 2px; }
.analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 10px; }
.analytics-section { border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); padding: 10px; min-height: 70px; }
.analytics-section h3 { margin: 0 0 8px; font-size: 11px; color: #d7e5f7; text-transform: uppercase; letter-spacing: .08em; }
.analytics-wide { grid-column: 1 / -1; }
.analytics-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; border-top: 1px solid rgba(255,255,255,.055); padding: 7px 0; }
.analytics-item:first-of-type { border-top: 0; }
.analytics-item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.analytics-item small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.analytics-actions { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.mini-action { padding: 4px 7px; border-radius: 999px; background: #122033; color: #d8e8fb; border: 1px solid rgba(74,163,255,.20); font-size: 10px; }
.count-list { display: flex; gap: 6px; flex-wrap: wrap; }
.count-pill { display: inline-flex; gap: 5px; align-items: center; background: #07101b; border: 1px solid var(--line); color: #d7e5f7; border-radius: 999px; padding: 5px 8px; font-size: 10.5px; }
.count-pill b { color: #7ec3ff; }
@media (max-width: 1100px) {
  .analytics-cards { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
  .analytics-grid { grid-template-columns: 1fr; }
}

/* V27FIX - análise com rolagem evidente e separação visual */
.dropdown-panel.analytics-panel {
  max-height: min(70vh, 720px);
  overflow-y: scroll;
  border-bottom: 2px solid rgba(74,163,255,.22);
  box-shadow: 0 20px 60px rgba(0,0,0,.38), inset 0 -14px 18px rgba(74,163,255,.035);
  scrollbar-width: thin;
  scrollbar-color: #4aa3ff #07101b;
}
.dropdown-panel.analytics-panel::-webkit-scrollbar { width: 11px; }
.dropdown-panel.analytics-panel::-webkit-scrollbar-track { background: #07101b; border-left: 1px solid rgba(255,255,255,.06); }
.dropdown-panel.analytics-panel::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#4aa3ff,#1468b8); border-radius: 999px; border: 2px solid #07101b; }
.analytics-dashboard::after {
  content: "fim da análise";
  display: block;
  text-align: center;
  color: #7f91a8;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 12px;
  padding-top: 10px;
}
.analytics-section { border-color: rgba(74,163,255,.18); }
.graph { border-top: 1px solid rgba(74,163,255,.20); }

/* V28 - ajustes visuais finos: links, ícones e painel analítico compacto */
.mini-action.active,
.analytics-toggle.active {
  background: #1468b8 !important;
  border-color: #66bdff !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(74,163,255,.18) inset, 0 0 18px rgba(74,163,255,.26);
}

/* O painel de Análise IA passa a ser uma gaveta compacta à direita, preservando mais área do grafo. */
#analyticsPanel.dropdown-panel.analytics-panel {
  position: fixed;
  top: 58px;
  right: 12px;
  left: auto;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100vh - 78px);
  padding: 10px;
  border: 1px solid rgba(74,163,255,.28);
  border-radius: 16px;
  background: rgba(4,8,14,.96);
  z-index: 45;
  overflow-y: auto;
  box-shadow: 0 22px 80px rgba(0,0,0,.58), -8px 0 24px rgba(0,0,0,.26);
}
#analyticsPanel .analytics-toolbar {
  position: sticky;
  top: -10px;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4,8,14,.98), rgba(4,8,14,.92));
  padding: 6px 0 8px;
  border-bottom: 1px solid rgba(74,163,255,.18);
}
#analyticsPanel .analytics-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#analyticsPanel .analytics-card { min-height: 58px; padding: 8px; }
#analyticsPanel .analytics-card b { font-size: 18px; }
#analyticsPanel .analytics-grid { grid-template-columns: 1fr; gap: 8px; }
#analyticsPanel .analytics-section { padding: 8px; border-radius: 11px; }
#analyticsPanel .analytics-section h3 { font-size: 10px; margin-bottom: 6px; }
#analyticsPanel .analytics-item { padding: 6px 0; gap: 6px; }
#analyticsPanel .analytics-item b { font-size: 11px; }
#analyticsPanel .analytics-item small { font-size: 10px; }
#analyticsPanel .analytics-actions { gap: 4px; }
#analyticsPanel .mini-action { padding: 3px 6px; font-size: 9.5px; }
#analyticsPanel .count-pill { font-size: 9.8px; padding: 4px 7px; }
#analyticsPanel .analytics-empty { font-size: 11px; padding: 10px; }
#analyticsStatus { display: block; flex-basis: 100%; }

/* Linhas do grafo: padrão visual azul e discreto definido no JS; borda do canvas limpa. */
.graph { background: #000; }

/* V29 - Análise IA ainda mais compacta e ações reversíveis */
#analyticsPanel.dropdown-panel.analytics-panel {
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100vh - 86px);
}
#analyticsPanel .analytics-toolbar button { padding: 5px 8px; font-size: 10.5px; }
#analyticsPanel .analytics-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#analyticsPanel .analytics-card { min-height: 48px; padding: 7px; }
#analyticsPanel .analytics-card span { font-size: 9px; }
#analyticsPanel .analytics-card b { font-size: 16px; }
#analyticsPanel .analytics-card small { font-size: 9px; }
#analyticsPanel .analytics-section { padding: 7px; }
#analyticsPanel .analytics-item { grid-template-columns: minmax(0,1fr) auto; padding: 5px 0; }
#analyticsPanel .mini-action.active { outline: 1px solid rgba(255,255,255,.24); }
#fitGraphBtn { min-width: 96px; }

/* V30 - MAPS e ajustes de ações analíticas */
.maps-panel {
  position: fixed;
  top: 58px;
  right: 12px;
  left: auto;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 78px);
  overflow: hidden;
  border: 1px solid rgba(74,163,255,.28);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(74,163,255,.06);
}
.maps-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.map-canvas {
  width: 100%;
  height: min(62vh, 560px);
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #07101b;
  border: 1px solid rgba(255,255,255,.12);
}
.leaflet-container { background: #07101b; font-family: Inter, Segoe UI, Arial, sans-serif; }
.analytics-toggle.active { filter: saturate(1.25); }
.analytics-item:has(.analytics-toggle.active) {
  background: rgba(74,163,255,.06);
  margin-left: -6px;
  margin-right: -6px;
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 10px;
}


/* V32 - MAPS robusto com lista e fallback visual */
.map-points-list {
  margin-top: 10px;
  max-height: 190px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
}
.map-point-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 12px;
}
.map-point-row:last-child { border-bottom: 0; }
.map-point-row b { color: #eaf4ff; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-point-row small { color: var(--muted); display: block; margin-top: 2px; }
.map-point-row button { padding: 5px 8px; font-size: 11px; }
.map-fallback-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 40%, rgba(74,163,255,.18), transparent 20%),
    linear-gradient(135deg, rgba(12,35,62,.92), rgba(4,8,14,.95));
  overflow: hidden;
}
.map-fallback-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .45;
}
.map-fallback-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #4aa3ff;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 6px rgba(74,163,255,.18), 0 0 20px rgba(74,163,255,.8);
  cursor: default;
  z-index: 3;
}
.map-fallback-label {
  position: absolute;
  transform: translate(10px, -50%);
  color: #eaf4ff;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  white-space: nowrap;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
}

/* V33 - MAPS como painel/modal forçado e diagnóstico visual */
#mapsPanel.dropdown-panel.maps-panel.active,
#mapsPanel.maps-panel.maps-open {
  display: block !important;
  position: fixed !important;
  top: 58px !important;
  right: 12px !important;
  left: auto !important;
  width: min(620px, calc(100vw - 24px)) !important;
  max-height: calc(100vh - 78px) !important;
  padding: 10px !important;
  overflow: auto !important;
  z-index: 1000 !important;
  border: 1px solid rgba(74,163,255,.42) !important;
  border-radius: 16px !important;
  background: rgba(4,8,14,.985) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,.72), 0 0 0 1px rgba(74,163,255,.08) inset !important;
}
#mapsPanel .maps-toolbar {
  position: sticky;
  top: -10px;
  z-index: 2;
  padding: 8px 0 10px;
  background: linear-gradient(180deg, rgba(4,8,14,1), rgba(4,8,14,.92));
  border-bottom: 1px solid rgba(74,163,255,.18);
}
#mapsPanel .map-canvas {
  position: relative;
  z-index: 1;
  height: min(58vh, 520px) !important;
  min-height: 340px !important;
  display: block !important;
}
#mapsPanel .map-points-list { max-height: 210px; }
#mapsStatus { color: #b9d8ff; }

/* V34 - edição e mapas */
.inline-control{display:flex;align-items:center;gap:8px;font-size:12px;color:#dbeafe}
.inline-control input[type=color]{width:42px;height:28px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:#0b1220;padding:2px}
#customIconInput{max-width:210px;font-size:12px;color:#cbd5e1}
.edit-tools .tool-group{min-width:210px}
.map-point-row button{white-space:nowrap}

/* V35 - arquivo, escopo de edição e histórico */
.radio-row{display:flex;flex-wrap:wrap;gap:8px 12px;margin:5px 0 8px;font-size:11px;color:#cbd5e1}
.radio-row label{display:flex;align-items:center;gap:4px;white-space:nowrap}
.radio-row input{accent-color:#3b82f6}
.file-tools .tool-group{min-width:260px}
#undoBtn:disabled,#redoBtn:disabled{opacity:.45;cursor:default}


/* V36 - Administração de usuários e ajustes de edição */
.link-muted { color: #9fcfff; text-decoration: none; font-size: 11px; }
.link-muted:hover { text-decoration: underline; }
.ok-alert { background: rgba(64,214,161,.14); border-color: rgba(64,214,161,.45); color: #c9fff0; }
.admin-link { text-decoration: none; border-radius: 8px; padding: 6px 10px; display: inline-flex; align-items: center; }
.admin-page { min-height: 100vh; background: #000; color: var(--text); }
.admin-topbar { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: #030508; border-bottom: 1px solid var(--line); }
.admin-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.admin-brand img { width: 58px; height: 30px; object-fit: contain; }
.admin-actions { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.admin-actions a { color: #9fcfff; text-decoration: none; }
.admin-actions form { margin: 0; }
.admin-layout { display: grid; grid-template-columns: minmax(360px, 470px) 1fr; gap: 14px; padding: 14px; }
.admin-card { background: rgba(7,10,15,.96); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.admin-card h2 { margin: 0 0 12px; font-size: 14px; color: #dbe8f8; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.check-row { display: flex !important; align-items: center; gap: 7px; color: #d6e3f3 !important; }
.check-row input { width: auto; }
.connector-fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.connector-fieldset legend { color: #d6e3f3; padding: 0 6px; }
.connector-checks { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.check-pill { display: inline-flex !important; align-items: center; gap: 6px; background: #07101b; border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; color: #d6e3f3 !important; }
.check-pill input { width: auto; }
.admin-form-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.admin-status { grid-column: 1 / -1; margin-top: 10px; color: #bfe0ff; min-height: 18px; }
.admin-status.bad { color: #ffd5da; }
.users-card { overflow: auto; }
.users-table { overflow: auto; max-height: calc(100vh - 130px); }
.users-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.users-table th, .users-table td { border-bottom: 1px solid rgba(255,255,255,.07); padding: 8px; text-align: left; vertical-align: top; }
.users-table th { position: sticky; top: 0; background: #090d14; color: #cfe0f5; z-index: 1; }
.row-actions { display: flex; gap: 5px; flex-wrap: wrap; }
@media (max-width: 1100px) { .admin-layout { grid-template-columns: 1fr; } .admin-form { grid-template-columns: 1fr; } }
/* V37 - ajustes finos */
.hidden-actions{display:none!important}
.actions:empty{display:none}


/* V38 - Importador Excel/CSV */
.import-panel { max-height: 42vh; overflow-y: auto; }
.import-layout { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.import-box { background: rgba(8, 14, 24, .84); border: 1px solid rgba(112,197,255,.16); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.import-box label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #cfe8ff; }
.import-box select, .import-box input[type=file] { max-width: 100%; }
.import-preview { font-size: 12px; line-height: 1.35; max-height: 140px; overflow: auto; white-space: normal; }
.import-actions button { width: 100%; }
@media (max-width: 1200px) { .import-layout { grid-template-columns: repeat(2, minmax(220px, 1fr)); } }

/* V39 - Importador Visual */
.visual-import-panel { max-height: min(76vh, 760px); overflow: auto; }
.import-visual-shell { display: flex; flex-direction: column; gap: 12px; }
.import-top-row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr); gap: 12px; }
.import-source-box input[type="file"] { max-width: 100%; }
.button-row.wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.visual-model-area { display: grid; grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1.1fr) minmax(260px, .9fr); gap: 12px; align-items: start; }
.visual-model-column, .visual-preview-column { border: 1px solid rgba(255,255,255,.10); border-radius: 14px; padding: 10px; background: rgba(6,14,24,.72); min-height: 160px; }
.visual-model-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 8px; font-size: 12px; }
.visual-cards { display: flex; flex-direction: column; gap: 10px; }
.visual-card { border: 1px solid rgba(112,197,255,.22); background: rgba(10,22,38,.82); border-radius: 14px; padding: 10px; box-shadow: 0 8px 22px rgba(0,0,0,.20); }
.visual-card.entity-card { border-left: 3px solid rgba(112,197,255,.75); }
.visual-card.link-card { border-left: 3px solid rgba(92,170,255,.55); }
.visual-card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.visual-card-title img { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(112,197,255,.35)); }
.visual-card-title input { flex: 1; min-width: 0; background: rgba(255,255,255,.05); color: #eef6ff; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 5px 7px; }
.visual-card label { display: grid; grid-template-columns: 105px 1fr; gap: 8px; align-items: center; margin: 6px 0; font-size: 11px; color: rgba(238,246,255,.84); }
.visual-card select { width: 100%; min-width: 0; }
.visual-card-foot { display:flex; justify-content: space-between; align-items:center; gap: 8px; margin-top: 8px; }
button.tiny { font-size: 10px; padding: 4px 7px; border-radius: 8px; }
button.danger, .danger { background: rgba(255,85,85,.12); border-color: rgba(255,85,85,.35); color: #ffd0d0; }
.import-validation { margin-top: 8px; font-size: 11px; }
.validation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.validation-grid div { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 10px; padding: 8px; text-align: center; }
.validation-grid b { display: block; font-size: 18px; color: #9adcff; }
.validation-grid span { font-size: 10px; color: rgba(238,246,255,.68); }
.ok-note { color: #9be7bd; background: rgba(71,190,125,.08); border: 1px solid rgba(71,190,125,.20); padding: 8px; border-radius: 10px; }
.import-validation pre, .import-preview pre { max-height: 130px; overflow:auto; white-space: pre-wrap; }
.legacy-import-details { margin-top: 6px; color: rgba(238,246,255,.72); }
.legacy-import-details summary { cursor: default; font-size: 11px; }
.legacy-import-layout { margin-top: 8px; }
@media (max-width: 1100px) { .import-top-row, .visual-model-area { grid-template-columns: 1fr; } }

/* V41 - Importador visual dinâmico */
.visual-card.entity-card.selected {
  border-color: rgba(72, 178, 255, 0.95);
  box-shadow: 0 0 0 2px rgba(72, 178, 255, 0.22), 0 0 18px rgba(72, 178, 255, 0.22);
  background: rgba(26, 63, 95, 0.42);
}
.visual-card.entity-card { cursor: default; }
.visual-card.entity-card input,
.visual-card.entity-card select,
.visual-card.entity-card button { cursor: default; }

/* V48 admin audit modal */
.modal-overlay { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.62); z-index: 5000; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal-box { width: min(1100px, 96vw); max-height: 86vh; overflow: hidden; background: #101826; border: 1px solid rgba(112,197,255,.22); border-radius: 18px; box-shadow: 0 20px 80px rgba(0,0,0,.45); padding: 18px; color: #e8f3ff; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.audit-modal-box .users-table, .audit-user-table { max-height: 68vh; overflow: auto; margin-top: 12px; }
.audit-modal-box code { white-space: pre-wrap; word-break: break-word; }
.shadow-key-field{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:.9rem;color:#cfe8ff}
.shadow-key-field input{background:#07111d;border:1px solid rgba(112,197,255,.35);border-radius:10px;color:#fff;padding:10px 12px;min-width:420px;max-width:100%}


/* V52 - Assistente Analítico Narrativo */
.ai-narrative-panel {
  border: 1px solid rgba(74,163,255,.20);
  border-radius: 14px;
  background: rgba(3, 11, 20, .82);
  padding: 10px;
  margin-top: 10px;
  display: grid;
  gap: 9px;
}
.ai-narrative-panel h3 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #d7e5f7;
}
.ai-narrative-block {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  border-radius: 12px;
  padding: 9px;
}
.ai-narrative-block p { margin: 0; font-size: 11.5px; line-height: 1.45; color: #dceafe; }
.ai-narrative-block ul { margin: 4px 0 0 16px; padding: 0; }
.ai-narrative-block li { font-size: 11.3px; line-height: 1.45; margin: 4px 0; color: #dceafe; }
.ai-rec-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ai-rec-item:first-child { border-top: 0; }
.ai-rec-item b { display:block; font-size:11.4px; color:#eef7ff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ai-rec-item small { display:block; margin-top:2px; color:#9db6cf; font-size:10.3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ai-section-title { color:#78c5ff; font-weight:700; font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:5px; }
.ai-note { color:#91a9c2; font-size:10.5px; line-height:1.4; }

/* V53 - painel Análise IA simplificado */
.analytics-toolbar-v53 { gap: 8px; align-items: center; }
button.danger-soft { border-color: rgba(255,120,120,.45); color: #ffd7d7; }
button.danger-soft:hover { background: rgba(255,80,80,.12); }


/* V54 - Identidade SEEAI EXPLORE */
.login-logo { max-width: 260px; max-height: 310px; width: min(260px, 76vw); height: auto; margin-bottom: 24px; }
.login-card.clean-login { width: min(430px, calc(100vw - 32px)); padding-top: 24px; }
.top-logo { width: 132px; height: 40px; object-fit: contain; }
.admin-brand img { width: 132px; height: 40px; object-fit: contain; }
.user-area { gap: 12px; }
@media (max-width: 980px) { .top-logo { width: 116px; height: 36px; } }

/* V61/V62/V63 · Gestão de Casos */
.case-tools input, .case-tools select { min-width: 160px; }
.case-summary, .case-members, .case-versions { font-size: 11px; line-height: 1.45; max-width: 360px; }
.case-member-row { border-top: 1px solid rgba(255,255,255,.08); padding: 4px 0; display: grid; gap: 1px; }
.case-member-row:first-child { border-top: 0; }
.case-member-row b { color: #e8f4ff; font-size: 11px; }
.case-member-row span { color: var(--muted); font-size: 10px; }
.case-version-list { display: grid; gap: 4px; margin-top: 6px; }
.case-version-list b { color: #c6d2e1; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.case-version-btn { text-align: left; max-width: 260px; }
#casesPanel.dropdown-panel { border-bottom-color: rgba(74,163,255,.22); }


/* V64-V67 · Visualizações analíticas, multilinks, evidências e relatório por caso */
.visual-panel .visual-tools { min-width: 720px; }
.visualization-overlay { position: fixed; inset: 74px 24px 24px 360px; z-index: 52; display: none; pointer-events: auto; }
.visualization-overlay.active { display: block; }
.visualization-card { height: 100%; background: rgba(7, 12, 24, .96); border: 1px solid rgba(112,197,255,.35); border-radius: 18px; box-shadow: 0 18px 45px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; }
.visualization-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 12px 16px; border-bottom:1px solid rgba(112,197,255,.18); }
.visualization-head h3 { margin:0; font-size:15px; letter-spacing:.02em; }
.visualization-content { padding: 14px; overflow:auto; flex:1; font-size:12px; }
.viz-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.viz-card { border:1px solid rgba(112,197,255,.22); border-radius:14px; padding:10px; background:rgba(255,255,255,.035); }
.viz-card b { color:#dff4ff; }
.viz-table { width:100%; border-collapse: collapse; font-size:12px; }
.viz-table th,.viz-table td { border-bottom:1px solid rgba(255,255,255,.08); padding:6px 8px; text-align:left; vertical-align:top; }
.viz-bar { height:8px; background:rgba(112,197,255,.18); border-radius:9px; overflow:hidden; margin-top:4px; }
.viz-bar > span { display:block; height:100%; background:linear-gradient(90deg,#52c7ff,#8ee8ff); }
.matrix-wrap { overflow:auto; max-height: 68vh; }
.matrix-table { border-collapse: collapse; font-size:11px; }
.matrix-table th,.matrix-table td { border:1px solid rgba(255,255,255,.08); padding:4px; min-width:28px; text-align:center; }
.matrix-table th { background:rgba(112,197,255,.1); position:sticky; top:0; }
.matrix-table td.hit { background:rgba(82,199,255,.35); color:#fff; }
.timeline-row { display:grid; grid-template-columns: 128px 1fr; gap:10px; border-left:2px solid rgba(112,197,255,.35); padding:5px 0 5px 10px; margin-left:6px; }
.timeline-row b { color:#8ee8ff; }
.evidence-panel { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(112,197,255,.16); }
.evidence-panel h3 { margin: 0 0 8px; font-size: 13px; }
.evidence-form { display:grid; gap:6px; }
.evidence-form input,.evidence-form select,.evidence-form textarea { width:100%; font-size:12px; border-radius:9px; border:1px solid rgba(112,197,255,.18); background:rgba(0,0,0,.26); color:#eef; padding:7px; }
.evidence-form textarea { min-height:60px; resize:vertical; }
.evidence-actions { display:flex; gap:6px; flex-wrap:wrap; }
.evidence-list { margin-top:8px; display:grid; gap:6px; max-height:220px; overflow:auto; }
.evidence-item { border:1px solid rgba(112,197,255,.18); background:rgba(255,255,255,.03); border-radius:10px; padding:7px; }
.evidence-item .meta { font-size:10px; color:#9fb7c7; }
.status-chip { display:inline-block; padding:2px 7px; border-radius:99px; background:rgba(112,197,255,.14); border:1px solid rgba(112,197,255,.22); font-size:11px; margin-right:4px; }
@media (max-width: 1100px) { .visualization-overlay { inset: 120px 10px 10px 10px; } }


/* V68 fixes */
.evidence-panel:empty { display: none; }
.evidence-hidden-note { padding: 10px; border: 1px solid rgba(110,180,255,.22); border-radius: 10px; }
.viz-searchbar { margin: 0 0 12px 0; }
.viz-searchbar input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(130,180,255,.28); background: rgba(6,14,26,.92); color: #eaf4ff; }
.matrix-explain { margin-top: 14px; padding: 12px; border-top: 1px solid rgba(120,170,255,.25); line-height: 1.45; }
.compact-select { max-width: 210px; }
.case-create-group input:required { border-color: rgba(120,170,255,.35); }

.evidence-index-btn { text-align:left; max-width: 330px; white-space: normal; }
.evidence-index-btn span { color:#9fb7c7; font-size:10px; }


/* V71 · Alertas e administração avançada */
.user-chip-with-alert{display:flex;align-items:center;gap:8px}
.case-alert-bell{display:none;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:#b91c1c;color:#fff;font-size:13px;box-shadow:0 0 0 2px rgba(255,255,255,.12),0 0 14px rgba(239,68,68,.75);cursor:default}
.case-alert-bell.active{display:inline-flex}
.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px 0}
.admin-tab-btn{border:1px solid rgba(148,163,184,.25);background:rgba(15,23,42,.8);color:#dbeafe;border-radius:10px;padding:8px 10px;cursor:default}
.admin-tab-btn.active{background:#1d4ed8;color:#fff;border-color:#60a5fa}
.admin-tab-section{display:none}
.admin-tab-section.active{display:block}
.admin-mini-form{display:grid;gap:8px;margin:10px 0}
.admin-mini-form input,.admin-mini-form select,.admin-mini-form textarea{width:100%}
.schema-upload-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.case-admin-panel .users-table,.schema-admin-panel .users-table{max-height:520px;overflow:auto}

/* V72 - ajustes visuais Admin e Mapa Avançado */
.admin-tabs{display:flex;gap:8px;align-items:center;margin:12px 0 18px;flex-wrap:wrap}
.admin-tab-btn{border:1px solid rgba(91,177,255,.28);background:rgba(7,14,25,.72);color:#dcefff;border-radius:999px;padding:8px 14px;font-weight:700;cursor:default}
.admin-tab-btn.active{background:linear-gradient(135deg,#1467b7,#16a6d9);color:#fff;box-shadow:0 0 0 2px rgba(86,196,255,.16)}
.map-radius-control{display:inline-flex;align-items:center;gap:6px;color:#cfe4f7;font-size:12px}
.map-radius-control input{width:72px;padding:6px 8px;border-radius:8px;border:1px solid rgba(255,255,255,.14);background:rgba(0,0,0,.26);color:#fff}
.maps-toolbar{gap:8px;flex-wrap:wrap}

/* V73 - SEEAI Graph 3D Experimental */
.seeai-exp-modal{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:9999;display:none;padding:18px;box-sizing:border-box}.seeai-exp-modal.active{display:block}.seeai-exp-card{height:100%;background:#07111f;border:1px solid rgba(112,197,255,.28);border-radius:18px;box-shadow:0 20px 70px rgba(0,0,0,.55);display:flex;flex-direction:column;overflow:hidden}.seeai-exp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid rgba(112,197,255,.18);background:rgba(5,14,28,.92)}.seeai-exp-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.seeai-exp-actions input,.seeai-exp-actions select{background:#0b1728;color:#e7f2ff;border:1px solid rgba(112,197,255,.26);border-radius:10px;padding:8px 10px}.seeai-exp-body{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:0}.seeai-exp-canvas{min-height:0;height:100%;position:relative;background:#07111f}.seeai-exp-details{border-left:1px solid rgba(112,197,255,.18);padding:14px;overflow:auto;background:rgba(5,14,28,.86)}.seeai-exp-details h3{margin:0 0 8px}.seeai-exp-details .prop-table{margin-top:12px;width:100%;border-collapse:collapse}.seeai-exp-details .prop-table th,.seeai-exp-details .prop-table td{border-bottom:1px solid rgba(112,197,255,.12);padding:6px;text-align:left;vertical-align:top}.seeai-exp-details .prop-table th{color:#9ed0ff;width:38%;font-weight:600}@media(max-width:900px){.seeai-exp-body{grid-template-columns:1fr}.seeai-exp-details{display:none}.seeai-exp-head{align-items:flex-start;flex-direction:column}}

/* V73.3 · Ajustes SEEAI Graph 3D Experimental */
.seeai-exp-card{background:#000;border-color:rgba(112,197,255,.22)}
.seeai-exp-head{background:linear-gradient(180deg,rgba(5,14,28,.96),rgba(3,9,18,.94));border-bottom-color:rgba(112,197,255,.16)}
.seeai-exp-canvas{background:#000}
.seeai-exp-actions .seeai-exp-toggle{display:inline-flex;align-items:center;gap:6px;background:#0b1728;color:#e7f2ff;border:1px solid rgba(112,197,255,.26);border-radius:10px;padding:7px 10px;font-size:13px;user-select:none;cursor:default}
.seeai-exp-actions .seeai-exp-toggle input{accent-color:#70c5ff;margin:0}
.seeai-exp-actions .seeai-exp-toggle input:disabled+span{opacity:.55}
.seeai-exp-actions button.secondary{background:#10233f;color:#e7f2ff;border:1px solid rgba(112,197,255,.26);border-radius:10px;padding:8px 10px;cursor:default}
.seeai-exp-actions button.secondary:hover{background:#173158}

/* V74-V78 · Multi-links no motor atual, layouts auxiliares e persistência */
.multi-link-list{display:flex;flex-direction:column;gap:6px;margin:8px 0 10px 0;max-height:210px;overflow:auto}
.multi-link-item{width:100%;text-align:left;border:1px solid rgba(74,163,255,.24);background:rgba(3,10,18,.72);color:#dbeafe;border-radius:10px;padding:7px 9px;cursor:default}
.multi-link-item:hover,.multi-link-item.active{border-color:rgba(125,211,252,.88);background:rgba(14,44,72,.78)}
.multi-link-item b{display:block;font-size:12px;line-height:1.2}
.multi-link-item small{display:block;color:#93a4b8;font-size:10px;margin-top:2px}

/* V79 adjustments */
.inline-field { display:inline-flex; align-items:center; gap:6px; margin:4px 8px 4px 0; }
.inline-field select { min-width:220px; }
.analysis-output { max-height:46vh; overflow:auto; padding:10px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(6,14,24,.72); }
.analysis-table { width:100%; border-collapse:collapse; font-size:13px; }
.analysis-table th,.analysis-table td { padding:7px 8px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; }
.analysis-table th { position:sticky; top:0; background:#06101d; z-index:1; }
.admin-layout { display:grid; grid-template-columns: minmax(380px, .8fr) minmax(640px, 1.4fr); gap:16px; align-items:start; }
.admin-tabs { grid-column: 1 / -1; position:sticky; top:0; z-index:10; display:flex; gap:8px; padding:10px; background:rgba(2,7,14,.94); border-bottom:1px solid rgba(255,255,255,.09); }
.admin-tab-section:not(.active) { display:none !important; }
.users-card.active { min-height:70vh; }
.users-table { max-width:100%; overflow:auto; }
.users-table table { min-width:980px; }
.connector-fieldset .connector-checks { max-height:170px; overflow:auto; }
.schema-admin-panel.active, .case-admin-panel.active { grid-column: 1 / -1; }


/* V80 · menu contextual do grafo e ajustes do Admin */
.graph-context-menu{position:fixed;z-index:9999;display:none;min-width:250px;background:rgba(8,16,28,.98);border:1px solid rgba(124,210,255,.35);box-shadow:0 18px 50px rgba(0,0,0,.45);border-radius:14px;padding:8px;color:#eaf6ff;font-size:13px;backdrop-filter:blur(10px)}
.graph-context-menu.active{display:block}.graph-context-menu .ctx-title{padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.12);font-weight:700;color:#9fe4ff}.graph-context-menu button{display:block;width:100%;text-align:left;margin:3px 0;padding:8px 10px;border-radius:10px;background:transparent;border:0;color:#eaf6ff;cursor:default}.graph-context-menu button:hover{background:rgba(87,188,255,.16)}.graph-context-menu .ctx-sep{height:1px;background:rgba(255,255,255,.10);margin:6px 0}
.admin-layout{display:grid;grid-template-columns:minmax(280px,420px) minmax(600px,1fr);gap:14px;align-items:start}.admin-tabs{grid-column:1/-1;display:flex;gap:8px;position:sticky;top:0;z-index:20;background:rgba(5,10,18,.96);padding:10px;border-bottom:1px solid rgba(255,255,255,.08)}.admin-tab-section:not(.active){display:none!important}.users-card{min-height:70vh}.users-table{max-height:72vh;overflow:auto}.admin-card[data-admin-section="users"].active:first-of-type{grid-column:1}.users-card.active{grid-column:2}.case-admin-panel.active,.schema-admin-panel.active{grid-column:1/-1}

/* V81 · seleção por quadro no grafo */
.graph-marquee-layer{position:absolute;inset:0;z-index:30;cursor:crosshair;background:rgba(4,12,24,.08);user-select:none}
.graph-marquee-box{position:absolute;display:none;border:1px solid rgba(108,207,255,.95);background:rgba(31,154,255,.15);box-shadow:0 0 0 1px rgba(255,255,255,.18) inset,0 0 22px rgba(66,189,255,.22);border-radius:8px;pointer-events:none}
.graph-marquee-help{position:absolute;left:14px;top:14px;z-index:31;padding:8px 12px;border-radius:999px;background:rgba(7,16,31,.88);border:1px solid rgba(108,207,255,.35);color:#dff6ff;font-size:12px;box-shadow:0 10px 30px rgba(0,0,0,.35)}

/* V83 · Prévia de área de trabalho/autosave */
.workspace-recovery-card { width: min(760px, 94vw); max-height: 86vh; overflow: auto; }
.workspace-recovery-list { display: grid; gap: 10px; margin: 14px 0 18px; }
.recovery-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid rgba(120,190,255,.25); border-radius: 14px; background: rgba(6,18,32,.72); cursor: default; }
.recovery-item:hover { border-color: rgba(120,190,255,.55); background: rgba(10,32,58,.82); }
.recovery-item input { margin-top: 4px; }
.recovery-item span { display: grid; gap: 4px; }
.recovery-item small { color: rgba(220,235,255,.72); }

/* V84 — recuperação de áreas de trabalho: tela limpa antes da aplicação */
body.workspace-recovery-pending .topbar,
body.workspace-recovery-pending .dropdown-panel,
body.workspace-recovery-pending .workspace,
body.workspace-recovery-pending #graph,
body.workspace-recovery-pending #sidePanel,
body.workspace-recovery-pending .bottom-log,
body.workspace-recovery-blocking .topbar,
body.workspace-recovery-blocking .dropdown-panel,
body.workspace-recovery-blocking .workspace,
body.workspace-recovery-blocking #graph,
body.workspace-recovery-blocking #sidePanel,
body.workspace-recovery-blocking .bottom-log {
  visibility: hidden !important;
}
body.workspace-recovery-pending .confirm-modal,
body.workspace-recovery-blocking .confirm-modal,
body.workspace-recovery-pending #workspaceRecoveryModal,
body.workspace-recovery-blocking #workspaceRecoveryModal {
  visibility: visible !important;
}
body.workspace-recovery-blocking {
  background: radial-gradient(circle at 50% 35%, rgba(12, 54, 86, 0.18), #02070d 56%, #000 100%);
}
.workspace-recovery-modal.active {
  background: radial-gradient(circle at 50% 38%, rgba(21, 91, 139, 0.20), rgba(0, 0, 0, 0.92));
}
.workspace-recovery-card {
  border: 1px solid rgba(112,197,255,.28);
  box-shadow: 0 24px 80px rgba(0,0,0,.72), 0 0 42px rgba(55,161,255,.16);
}

/* V95 · Login: campo de senha com opção de visualização */
.password-field{display:flex;align-items:center;gap:6px;width:100%;}
.password-field input{flex:1;min-width:0;}
.password-toggle{width:42px;min-width:42px;padding:8px 10px;border-radius:10px;border:1px solid rgba(148,163,184,.35);background:rgba(15,23,42,.65);color:#e5e7eb;cursor:default;}
.password-toggle:hover{background:rgba(30,41,59,.85);}


/* V106 - Tema claro opcional somente para a área do grafo */
.graph.graph-theme-light,
.graph.graph-theme-light canvas {
  background: #fff !important;
}

/* V110/V112 · Rodapé operacional do grafo */
.workspace-sync-indicator{display:inline-flex;margin-left:12px;padding:2px 8px;border-radius:999px;border:1px solid rgba(112,197,255,.30);color:#bfe3ff;background:rgba(20,80,125,.24);font-weight:700}.workspace-sync-indicator[data-phase="synced"]{color:#b9f6d0;border-color:rgba(70,210,130,.35);background:rgba(30,120,75,.22)}.workspace-sync-indicator[data-phase="conflict"],.workspace-sync-indicator[data-phase="failed"]{color:#ffd2a8;border-color:rgba(255,150,65,.42);background:rgba(145,70,20,.25)}
.graph-footer-stats {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  z-index: 220;
  padding: 5px 14px;
  border-radius: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: rgba(3,10,18,.88);
  color: #dce8f2;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  box-shadow: 0 -8px 24px rgba(0,0,0,.18);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.graph-footer-info { min-width: 0; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; flex-wrap: wrap; gap: 3px; }
.restore-organic-footer-btn { pointer-events: auto; flex: 0 0 auto; min-height: 27px; padding: 4px 11px; border: 1px solid rgba(112,197,255,.42); border-radius: 7px; background: rgba(20,80,125,.42); color: #e7f5ff; font: inherit; font-weight: 700; cursor: default; }
.restore-organic-footer-btn:hover, .restore-organic-footer-btn:focus-visible { background: rgba(28,110,170,.62); border-color: rgba(130,210,255,.78); outline: 2px solid rgba(112,197,255,.34); outline-offset: 1px; }
.restore-organic-footer-btn:disabled, .restore-organic-footer-btn[hidden] { display: none; }
@media (max-width: 620px) { .graph-footer-stats { align-items: stretch; flex-wrap: wrap; gap: 5px; padding: 5px 8px; } .graph-footer-info { justify-content: flex-start; } .restore-organic-footer-btn { margin-left: auto; } }
body.graph-theme-light .graph-footer-stats,
.graph-footer-stats.graph-footer-light {
  background: rgba(255,255,255,.96);
  color: #111827;
  border-top-color: rgba(17,24,39,.16);
  box-shadow: 0 -8px 24px rgba(17,24,39,.08);
}

/* V114 · Catálogo visual interno de ícones SEEAI Standard V2 */
.seeai-icon-picker-card { width: min(920px, calc(100vw - 36px)); max-height: 88vh; display: flex; flex-direction: column; gap: 10px; }
.seeai-icon-picker-card input[type="search"] { width: 100%; }
.seeai-icon-picker-modes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.seeai-icon-picker-modes button { min-height: 26px; padding: 4px 8px; }
.seeai-icon-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); min-height: 220px; max-height: 56vh; }
.seeai-icon-choice { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 78px; padding: 8px 6px; border: 1px solid rgba(255,255,255,.10); border-radius: 10px; background: rgba(7,12,18,.85); color: var(--text); cursor: default; }
.seeai-icon-choice:hover { border-color: rgba(74,163,255,.70); background: rgba(74,163,255,.10); }
.seeai-icon-choice img { width: 32px; height: 32px; object-fit: contain; }
.seeai-icon-choice span { font-size: 10px; color: var(--muted); text-align: center; max-width: 76px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#graphEntityIconPreview img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

/* V114I/REGFIX27 · Admin layout horizontal e listas com rolagem */
.admin-layout{grid-template-columns:1fr!important;}
.admin-card[data-admin-section="users"].active:first-of-type,.users-card.active{grid-column:1/-1!important;}
.admin-form{grid-template-columns:repeat(4,minmax(180px,1fr))!important;align-items:start;}
.admin-form .connector-fieldset,.admin-form-actions,.admin-status{grid-column:1/-1!important;}
.admin-grid-two{display:grid;grid-template-columns:repeat(2,minmax(320px,1fr));gap:14px;align-items:start;}
.data-permission-checks{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center;gap:8px;}
.users-card .users-table{max-height:46vh!important;overflow:auto!important;}
@media(max-width:1100px){.admin-form,.admin-grid-two{grid-template-columns:1fr!important;}}

/* V114P final overrides */
.case-active-readonly { border-radius: 6px !important; min-height: 30px; }
.case-select-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.case-open-card { width: min(720px, calc(100vw - 32px)); max-height: min(78vh, 680px); display: flex; flex-direction: column; }
.case-open-list { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.02); margin: 10px 0 14px; }
.case-open-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.case-open-table th, .case-open-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; vertical-align: middle; }
.case-open-table th { color: #9fb4ca; font-weight: 700; background: rgba(74,163,255,.06); }
.case-open-table tr { cursor: default; }
.case-open-table tr:hover { background: rgba(74,163,255,.08); }
.case-open-table td small { display: block; color: var(--muted); margin-top: 2px; }
#analysisPanel.dropdown-panel, #analyticsPanel.dropdown-panel.analytics-panel { max-height: min(58vh, 620px) !important; overflow: auto !important; }
.graph { min-height: 420px; }
.graph-context-menu { max-width: min(300px, calc(100vw - 16px)); }

/* V114Q - equalizacao visual Web/Desktop, densidade e controles profissionais */
body.graph-page {
  font-size: 11.5px;
  background: #000;
}
.topbar {
  height: 46px;
  padding: 0 10px;
  gap: 8px;
  background: #02050a;
}
.menu-bar,
.user-area {
  gap: 6px;
}
button,
button.secondary,
button.ghost,
input,
select,
textarea {
  border-radius: 5px;
}
button {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 11.5px;
}
input,
select,
textarea {
  padding: 5px 7px;
  font-size: 11.5px;
}
.menu-btn-v99 {
  min-height: 30px;
  padding: 5px 8px;
}
.dropdown-panel {
  padding: 7px 10px;
  background: #04070c;
}
.dropdown-panel-v99 {
  border-color: rgba(112,197,255,.18);
  box-shadow: 0 16px 38px rgba(0,0,0,.42);
}
.dpanel-list {
  gap: 5px;
}
.dpanel-item {
  min-height: 28px;
  padding: 5px 7px;
  border-radius: 5px;
}
.dpanel-group-title,
.tool-group strong,
.side-panel h2,
.side-panel h3 {
  font-size: 10px;
  letter-spacing: .06em;
}
.layout {
  grid-template-columns: 310px 1fr;
}
.side-panel {
  padding: 8px;
  font-size: 10.5px;
}
.details,
.log,
.analytics-section,
.analytics-card,
.case-open-list,
.confirm-card,
.evidence-item,
.legend-item {
  border-radius: 6px !important;
}
.details {
  padding: 8px;
}
.kv {
  grid-template-columns: 82px 1fr;
  gap: 5px;
  padding: 2px 0;
}
.log {
  max-height: 140px;
  padding: 7px;
}
.confirm-card {
  padding: 16px;
  width: min(440px, calc(100vw - 32px));
}
.confirm-card h3 {
  font-size: 14px;
}
.confirm-card p {
  font-size: 11.5px;
}
#casesPanel.dropdown-panel {
  max-height: min(62vh, 620px);
  overflow: auto;
}
.case-tools {
  gap: 10px;
  align-items: stretch;
}
.case-tools .tool-group {
  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(255,255,255,.018);
}
.case-active-row {
  min-width: 100%;
}
.case-active-readonly {
  min-height: 28px;
  padding: 4px 8px;
  background: #05080d;
  font-size: 11.5px;
}
.case-open-table {
  font-size: 11px;
}
.case-open-table th,
.case-open-table td {
  padding: 6px 7px;
}
.case-summary,
.case-members,
.case-versions {
  font-size: 10.8px;
  line-height: 1.35;
}
.evidence-panel {
  margin-top: 8px;
  padding-top: 8px;
}
.evidence-form input,
.evidence-form select,
.evidence-form textarea {
  font-size: 11px;
  border-radius: 5px;
  padding: 6px;
}
.analysis-table,
.viz-table,
.matrix-table {
  font-size: 11px;
}
.analysis-table th,
.analysis-table td,
.viz-table th,
.viz-table td {
  padding: 5px 6px;
}
.password-toggle {
  width: 40px;
  min-width: 40px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  background: rgba(15,23,42,.72);
}
.password-toggle:focus-visible {
  outline: 2px solid rgba(74,163,255,.85);
  outline-offset: 2px;
}
.password-toggle .icon-eye {
  width: 19px;
  height: 19px;
}

/* V114R - ajuda/sobre, arquivamento nao destrutivo e pop-ups padronizados */
.warning-soft {
  border-color: rgba(245,158,11,.46) !important;
  color: #ffe1a8 !important;
  background: rgba(245,158,11,.10) !important;
}
.warning-soft:hover:not(:disabled) {
  background: rgba(245,158,11,.16) !important;
}
.help-link {
  min-height: 24px;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: #9fb4ca;
  border-color: rgba(255,255,255,.09);
}
.app-message-card {
  width: min(520px, calc(100vw - 32px));
}
.app-message-card.seeai-help-card {
  width: min(1200px, 94vw);
  max-height: min(900px, 88vh);
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.app-message-body {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.48;
  margin: 10px 0 14px;
}
.app-message-body p {
  margin: 0;
}
.app-message-body-rich {
  max-height: min(68vh, 620px);
  overflow: auto;
}
.seeai-help-card .app-message-body-rich {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  margin: 6px 0 10px;
}
.seeai-help-card .confirm-actions {
  flex: 0 0 auto;
  margin-top: 0;
  padding-top: 8px;
  background: rgba(6,10,16,.98);
  position: sticky;
  bottom: 0;
}
.app-message-body-rich p {
  margin: 0 0 5px;
}
.seeai-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.seeai-help-grid article {
  border: 1px solid rgba(112,197,255,.15);
  border-radius: 6px;
  padding: 10px;
  background: rgba(15,23,42,.42);
}
.seeai-help-grid h4 {
  margin: 0 0 6px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}
.seeai-help-center {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 8px;
  min-width: min(920px, calc(100vw - 64px));
  min-height: 0;
  height: min(740px, calc(88vh - 96px));
}
.seeai-help-hero {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid rgba(112,197,255,.18);
  border-radius: 6px;
  background: rgba(15,23,42,.48);
}
.seeai-help-hero h4 {
  margin: 0 0 3px;
  color: #e5f4ff;
  font-size: 13px;
}
.seeai-help-hero p {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
}
.seeai-help-count {
  white-space: nowrap;
  border: 1px solid rgba(112,197,255,.24);
  border-radius: 999px;
  padding: 4px 8px;
  color: #dbeafe;
  background: rgba(74,163,255,.12);
  font-weight: 700;
}
.seeai-help-search {
  display: grid;
  gap: 4px;
  color: #cbd5e1;
  font-weight: 700;
}
.seeai-help-search input {
  width: 100%;
  min-height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(112,197,255,.24);
  background: rgba(2,6,23,.72);
  color: #f8fafc;
  padding: 8px 10px;
}
.seeai-help-layout {
  display: grid;
  grid-template-columns: minmax(145px, 170px) minmax(230px, 310px) minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}
.seeai-help-sections {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  max-height: none;
  overflow: auto;
}
.seeai-help-sections button {
  text-align: left;
  justify-content: flex-start;
  min-height: 30px;
}
.seeai-help-sections button.active {
  background: rgba(74,163,255,.26);
  color: #fff;
  border-color: rgba(112,197,255,.46);
}
.seeai-help-results {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 6px;
}
.seeai-help-topic {
  border: 1px solid rgba(112,197,255,.16);
  border-radius: 6px;
  background: rgba(15,23,42,.46);
  overflow: hidden;
}
.seeai-help-topic-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f8fafc;
  text-align: left;
}
.seeai-help-topic-head:hover {
  background: rgba(74,163,255,.14);
}
.seeai-help-topic.active {
  border-color: rgba(112,197,255,.54);
  background: rgba(74,163,255,.16);
}
.seeai-help-topic.active .seeai-help-topic-head {
  background: rgba(74,163,255,.18);
}
.seeai-help-topic-head small {
  display: block;
  margin-top: 2px;
  color: #bfd2e5;
  font-weight: 500;
  line-height: 1.3;
}
.seeai-help-topic-body {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(112,197,255,.12);
  background: rgba(2,6,23,.32);
}
.seeai-help-topic-body dl {
  display: grid;
  gap: 6px;
  margin: 0;
}
.seeai-help-topic-body dt {
  color: #e5f4ff;
  font-weight: 800;
  margin-top: 5px;
}
.seeai-help-topic-body dd {
  margin: 0;
  color: #d7e5f5;
  line-height: 1.55;
  max-width: 92ch;
}
.seeai-help-reader {
  min-height: 0;
  overflow: auto;
  padding: 0 8px 0 0;
}
.seeai-help-reading {
  border: 1px solid rgba(112,197,255,.18);
  border-radius: 6px;
  background: rgba(2,6,23,.34);
  padding: 14px;
}
.seeai-help-reading header {
  border-bottom: 1px solid rgba(112,197,255,.14);
  margin-bottom: 12px;
  padding-bottom: 10px;
}
.seeai-help-reading header span {
  color: #93c5fd;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.seeai-help-reading h4 {
  margin: 3px 0 5px;
  color: #f8fafc;
  font-size: 16px;
}
.seeai-help-reading p {
  margin: 0;
  color: #bfd2e5;
  line-height: 1.45;
}
.seeai-help-reading dl {
  display: grid;
  gap: 7px;
  margin: 0;
}
.seeai-help-reading dt {
  color: #e5f4ff;
  font-weight: 800;
  margin-top: 6px;
}
.seeai-help-reading dd {
  margin: 0;
  color: #d7e5f5;
  line-height: 1.58;
  max-width: 96ch;
}
.seeai-help-keyword {
  display: inline-flex;
  margin: 0 4px 5px 0;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(112,197,255,.22);
  background: rgba(74,163,255,.12);
  color: #e5f4ff;
  font-size: 10.5px;
  font-weight: 700;
}
.seeai-help-empty {
  border: 1px dashed rgba(112,197,255,.26);
  border-radius: 8px;
  padding: 14px;
  color: #cbd5e1;
  background: rgba(15,23,42,.38);
}
@media (max-width: 760px) {
  .seeai-help-center {
    min-width: 0;
  }
  .seeai-help-layout {
    grid-template-columns: 1fr;
  }
  .seeai-help-sections {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 2px;
  }
  .seeai-help-sections button {
    white-space: nowrap;
  }
  .seeai-help-reader {
    min-height: 260px;
    padding-right: 0;
  }
}
.seeai-about-content {
  text-align: center;
}
.seeai-about-content img {
  display: block;
  width: min(260px, 72%);
  height: auto;
  margin: 4px auto 14px;
}
.seeai-about-content h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #e5f2ff;
}
.seeai-about-note {
  margin: 12px auto 0;
  max-width: 360px;
  padding: 10px;
  text-align: left;
  border: 1px solid rgba(112,197,255,.16);
  border-radius: 6px;
  background: rgba(15,23,42,.42);
}
.toast-host {
  position: fixed;
  right: 14px;
  bottom: 34px;
  z-index: 10000;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.seeai-toast {
  max-width: min(440px, calc(100vw - 28px));
  padding: 9px 11px;
  border: 1px solid rgba(112,197,255,.22);
  border-radius: 6px;
  background: rgba(5,10,18,.96);
  color: #dbe7f6;
  box-shadow: 0 14px 34px rgba(0,0,0,.38);
  font-size: 11.5px;
  line-height: 1.35;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}
.seeai-toast-success { border-color: rgba(34,197,94,.35); }
.seeai-toast-warning { border-color: rgba(245,158,11,.38); }
.seeai-toast-error { border-color: rgba(240,77,94,.38); }
.seeai-toast.leaving {
  opacity: 0;
  transform: translateY(6px);
}

/* V114T - legenda operacional e selecao por tipo */
.legend-action {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
}
.legend-action:hover {
  border-color: rgba(112,197,255,.26);
  background: rgba(74,163,255,.07);
}
.legend-subtitle {
  margin: 10px 0 5px;
  color: #8fa7bd;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.legend-link-dot {
  width: 16px;
  height: 3px;
  border-radius: 999px;
  background: rgba(112,197,255,.82);
  box-shadow: 0 0 8px rgba(112,197,255,.35);
}
.type-select-tools input {
  width: 100%;
  margin-bottom: 8px;
}
.type-select-list {
  display: grid;
  gap: 5px;
  max-height: min(52vh, 460px);
  overflow: auto;
}
.type-select-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  align-items: start;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  background: rgba(255,255,255,.025);
}
.type-select-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

/* V114W - listagem investigativa avancada por tipo */
.type-advanced-modal {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  width: min(94vw, 1480px);
  height: 100%;
  min-height: min(74vh, 760px);
  min-width: 0;
}
.app-message-card:has(.type-advanced-modal) {
  width: min(96vw, 1520px);
  height: min(84vh, 860px);
  max-height: min(84vh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-message-card:has(.type-advanced-modal) .app-message-body {
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.app-message-card:has(.type-advanced-modal) .app-message-body-rich {
  max-height: none;
}
.app-message-card:has(.type-advanced-modal) .confirm-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  justify-content: flex-end;
  padding-top: 10px;
  margin-top: 0;
  background: rgba(6,10,16,.98);
  border-top: 1px solid rgba(255,255,255,.08);
}
.type-advanced-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.type-advanced-toolbar input {
  flex: 1;
}
.type-table-wrap {
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-bottom: 76px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.018);
}
.type-advanced-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 10.8px;
}
.type-advanced-table th,
.type-advanced-table td {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: left;
  vertical-align: middle;
  max-width: 220px;
  min-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.type-advanced-table tr[data-type-row] {
  cursor: default;
}
.type-advanced-table tr[data-type-row].selected {
  background: rgba(255,209,102,.16);
  outline: 1px solid rgba(255,209,102,.36);
}
.type-advanced-table tr[data-type-row]:hover {
  background: rgba(74,163,255,.08);
}
.type-advanced-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #06101d;
  color: #9fb4ca;
}
.type-advanced-table th button {
  min-height: 22px;
  padding: 2px 0;
  background: transparent;
  color: inherit;
  border: 0;
  text-align: left;
}
.type-check-col {
  width: 34px;
  min-width: 34px;
  max-width: 42px;
  text-align: center !important;
}
.type-actions-cell {
  min-width: 150px !important;
  max-width: 190px !important;
  white-space: nowrap;
}
.type-actions-cell .tiny {
  margin-right: 4px;
}
.type-advanced-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 0 0;
  background: #07111f;
  border-top: 1px solid rgba(255,255,255,.07);
}
.confirm-actions .type-advanced-actions-fixed {
  position: static;
  flex: 1 1 100%;
  order: -1;
  padding: 0 0 8px;
  margin: 0 0 6px;
  background: transparent;
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.type-relation-title {
  padding: 7px 9px;
  border: 1px solid rgba(112,197,255,.18);
  border-radius: 6px;
  background: rgba(74,163,255,.07);
  color: #dbeafe;
}
.seeai-icon-picker-modal {
  z-index: 16000 !important;
}
.seeai-icon-picker-modal .seeai-icon-picker-card {
  z-index: 16001;
}

/* V114U - menu principal fixo/sticky e acoes de evidencias */
:root { --topbar-height: 46px; }
body.graph-page .topbar,
body.graph-page .topbar-v99 {
  position: sticky;
  top: 0;
  z-index: 12000;
}
body.graph-page .dropdown-panel-v99.dropdown-compact,
body.graph-page .dropdown-panel-v99.dropdown-compact-medium {
  z-index: 12010;
}
body.graph-page .dropdown-panel-v99.dropdown-full,
body.graph-page .dropdown-panel-v99.dropdown-wide {
  top: var(--topbar-height, 46px);
  z-index: 11980;
}
.app-message-modal,
.seeai-exp-modal,
.graph-context-menu {
  z-index: 13000;
}
.evidence-item-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.evidence-edit-form {
  display: grid;
  gap: 8px;
}
.evidence-edit-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
}
.evidence-edit-form textarea {
  min-height: 96px;
}
.entity-ficha{display:grid;gap:12px;max-width:760px}
.seeai-ficha-modal{z-index:15000;background:rgba(0,0,0,.46)}
.seeai-ficha-card{width:min(860px,calc(100vw - 40px));max-height:min(86vh,860px);display:flex;flex-direction:column}
.seeai-ficha-card .app-message-body-rich{max-height:none;overflow:auto}
.ficha-head{display:flex;gap:14px;align-items:center;border-bottom:1px solid rgba(120,160,190,.28);padding-bottom:10px}
.ficha-head img{width:76px;height:76px;object-fit:contain;border-radius:8px;background:rgba(255,255,255,.08);padding:8px}
.ficha-head h3{margin:0;font-size:18px}.ficha-head p{margin:4px 0 0;color:var(--muted,#8aa)}
.ficha-section{border:1px solid rgba(120,160,190,.22);border-radius:8px;padding:10px;background:rgba(255,255,255,.035)}
.ficha-section h4{margin:0 0 8px;font-size:13px;text-transform:uppercase;letter-spacing:.02em}
.ficha-related{margin:0 0 8px}.ficha-related ul{margin:6px 0 0;padding-left:18px}.ficha-related li{margin:3px 0}.ficha-related small{display:block;color:var(--muted,#8aa)}

/* V115O - Análise IA ocupa a altura útil até a base da área do grafo. */
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel {
  top: calc(var(--topbar-height, 46px) + 8px) !important;
  bottom: 10px !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
}

/* V117C3E13 - Tema centralizado da interface. Nao altera o tema do grafo. */
body.ui-theme-dark {
  --seeai-ui-bg: #000000;
  --seeai-ui-bg-soft: #030508;
  --seeai-ui-panel: #070a0f;
  --seeai-ui-panel-soft: #0d121b;
  --seeai-ui-text: #e9eef7;
  --seeai-ui-muted: #8c99ad;
  --seeai-ui-border: rgba(255,255,255,.10);
  --seeai-ui-input-bg: #05080d;
  --seeai-ui-button-bg: #4aa3ff;
  --seeai-ui-danger: #f04d5e;
  --seeai-ui-success: #40d6a1;
  --seeai-ui-warning: #f5c26b;
}
body.ui-theme-blue {
  --bg: #061522;
  --panel: #0b2137;
  --panel2: #12304a;
  --text: #f4fbff;
  --muted: #b9d4ea;
  --line: rgba(112,197,255,.24);
  --accent: #6db7e8;
  --accent2: #ff7b8a;
  --seeai-ui-bg: #061522;
  --seeai-ui-bg-soft: #071827;
  --seeai-ui-panel: #0b2137;
  --seeai-ui-panel-soft: #12304a;
  --seeai-ui-card: #14344f;
  --seeai-ui-hover: #183d5b;
  --seeai-ui-active: #1e3a54;
  --seeai-ui-selected: #214f71;
  --seeai-ui-disabled: #0f2639;
  --seeai-ui-text: #f4fbff;
  --seeai-ui-muted: #b9d4ea;
  --seeai-ui-border: rgba(112,197,255,.26);
  --seeai-ui-input-bg: #071827;
  --seeai-ui-button-bg: #245d86;
  --seeai-ui-danger: #ff7b8a;
  --seeai-ui-success: #78f0bf;
  --seeai-ui-warning: #ffe08a;
  --color-background-secondary: var(--seeai-ui-hover);
  --color-border-secondary: rgba(112,197,255,.30);
  --color-border-tertiary: rgba(112,197,255,.22);
  --color-text-primary: var(--seeai-ui-text);
  --color-text-secondary: var(--seeai-ui-muted);
  --color-text-danger: #ffe0e4;
  --color-text-warning: #fff0bd;
  --color-text-success: #d9ffef;
  background: var(--seeai-ui-bg);
  color: var(--seeai-ui-text);
}
.ui-theme-control {
  display: grid;
  gap: 5px;
}
.ui-theme-control span {
  color: var(--seeai-ui-muted);
}
.admin-ui-theme-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--seeai-ui-muted);
  white-space: nowrap;
}
.admin-ui-theme-control select {
  min-width: 128px;
}
body.ui-theme-blue button {
  background: var(--seeai-ui-button-bg);
  color: var(--seeai-ui-text);
  border: 1px solid rgba(160,210,240,.28);
}
body.ui-theme-blue button.secondary,
body.ui-theme-blue button.ghost,
body.ui-theme-blue .secondary,
body.ui-theme-blue .ghost {
  background: var(--seeai-ui-active);
  color: var(--seeai-ui-text);
  border-color: var(--seeai-ui-border);
}
body.ui-theme-blue button:hover:not(:disabled),
body.ui-theme-blue .dpanel-item:hover,
body.ui-theme-blue .legend-action:hover,
body.ui-theme-blue .filter-toggle:hover,
body.ui-theme-blue .mini-action:hover,
body.ui-theme-blue .analytics-toggle:hover,
body.ui-theme-blue .admin-tab-btn:hover,
body.ui-theme-blue .graph-context-menu button:hover {
  background: var(--seeai-ui-hover) !important;
  color: var(--seeai-ui-text) !important;
  border-color: rgba(150,215,250,.40) !important;
  filter: none;
}
body.ui-theme-blue button.danger,
body.ui-theme-blue .danger {
  background: rgba(255,88,104,.22);
  color: #fff2f4;
  border-color: rgba(255,176,186,.62);
}
body.ui-theme-blue .warning-soft,
body.ui-theme-blue button.danger-soft {
  background: rgba(126,91,22,.36) !important;
  color: #fff4ca !important;
  border-color: rgba(255,207,99,.45) !important;
}
body.ui-theme-blue input,
body.ui-theme-blue select,
body.ui-theme-blue textarea {
  background-color: var(--seeai-ui-input-bg);
  color: var(--seeai-ui-text);
  border-color: var(--seeai-ui-border);
}
body.ui-theme-blue .dropdown-panel-v99 select,
body.ui-theme-blue .dropdown-panel-v99 input,
body.ui-theme-blue .dropdown-panel-v99 textarea,
body.ui-theme-blue .dpanel-select,
body.ui-theme-blue .compact-select,
body.ui-theme-blue .case-tools input,
body.ui-theme-blue .case-tools select,
body.ui-theme-blue .import-box select,
body.ui-theme-blue .import-box input[type=file],
body.ui-theme-blue .visual-card select,
body.ui-theme-blue .analytics-toolbar select,
body.ui-theme-blue .seeai-exp-actions input,
body.ui-theme-blue .seeai-exp-actions select {
  background-color: var(--seeai-ui-input-bg) !important;
  color: var(--seeai-ui-text) !important;
  border-color: var(--seeai-ui-border) !important;
}
body.ui-theme-blue select option {
  background-color: var(--seeai-ui-input-bg);
  color: var(--seeai-ui-text);
}
body.ui-theme-blue input:focus,
body.ui-theme-blue select:focus,
body.ui-theme-blue textarea:focus {
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 0 0 2px rgba(255,255,255,.12);
}
body.ui-theme-blue .topbar,
body.ui-theme-blue .topbar-v99,
body.ui-theme-blue .admin-topbar,
body.ui-theme-blue .admin-tabs,
body.ui-theme-blue .dropdown-panel,
body.ui-theme-blue .dropdown-panel-v99,
body.ui-theme-blue .dropdown-panel-v99.dropdown-compact,
body.ui-theme-blue .dropdown-panel-v99.dropdown-compact-medium,
body.ui-theme-blue .dropdown-panel-v99.dropdown-compact-large,
body.ui-theme-blue .side-panel,
body.ui-theme-blue .admin-card,
body.ui-theme-blue .admin-mini-form,
body.ui-theme-blue .modal-box,
body.ui-theme-blue .confirm-card,
body.ui-theme-blue .busy-card,
body.ui-theme-blue .visualization-card,
body.ui-theme-blue .seeai-exp-card,
body.ui-theme-blue .seeai-exp-head,
body.ui-theme-blue .seeai-exp-details,
body.ui-theme-blue .app-message-card,
body.ui-theme-blue .seeai-ficha-card {
  background: var(--seeai-ui-panel) !important;
  color: var(--seeai-ui-text) !important;
  border-color: var(--seeai-ui-border) !important;
}
body.ui-theme-blue .admin-page,
body.ui-theme-blue .admin-layout,
body.ui-theme-blue .layout {
  background: var(--seeai-ui-bg);
  color: var(--seeai-ui-text);
}
body.ui-theme-blue .dpanel-list,
body.ui-theme-blue .tool-group,
body.ui-theme-blue .case-tools .tool-group,
body.ui-theme-blue .details,
body.ui-theme-blue .log,
body.ui-theme-blue .analytics-empty,
body.ui-theme-blue .analytics-card,
body.ui-theme-blue .analytics-section,
body.ui-theme-blue .ai-narrative-panel,
body.ui-theme-blue .ai-narrative-block,
body.ui-theme-blue .analysis-output,
body.ui-theme-blue .case-active-readonly,
body.ui-theme-blue .case-open-list,
body.ui-theme-blue .case-management-list,
body.ui-theme-blue .case-summary-field,
body.ui-theme-blue .case-summary-section,
body.ui-theme-blue .case-v117b-grid > section,
body.ui-theme-blue .case-report-body > section,
body.ui-theme-blue .case-timeline-event,
body.ui-theme-blue .case-v117b-head,
body.ui-theme-blue .case-management-head,
body.ui-theme-blue .case-management-table .case-actions,
body.ui-theme-blue .import-box,
body.ui-theme-blue .visual-model-column,
body.ui-theme-blue .visual-preview-column,
body.ui-theme-blue .visual-card,
body.ui-theme-blue .map-points-list,
body.ui-theme-blue .map-point-row,
body.ui-theme-blue .viz-card,
body.ui-theme-blue .ficha-section,
body.ui-theme-blue .recovery-item,
body.ui-theme-blue .type-table-wrap,
body.ui-theme-blue .type-select-row,
body.ui-theme-blue .seeai-icon-picker-grid,
body.ui-theme-blue .seeai-icon-choice,
body.ui-theme-blue .connector-fieldset,
body.ui-theme-blue .check-pill,
body.ui-theme-blue .legend-item,
body.ui-theme-blue .legend-action,
body.ui-theme-blue .selected-chip,
body.ui-theme-blue .local-result,
body.ui-theme-blue .count-pill,
body.ui-theme-blue .mini-action,
body.ui-theme-blue .graph-context-menu,
body.ui-theme-blue .admin-status:not(:empty),
body.ui-theme-blue #seeai-toast-v103,
body.ui-theme-blue .seeai-toast {
  background: var(--seeai-ui-card) !important;
  color: var(--seeai-ui-text) !important;
  border-color: var(--seeai-ui-border) !important;
}
body.ui-theme-blue .muted,
body.ui-theme-blue .small-note,
body.ui-theme-blue .dpanel-note,
body.ui-theme-blue .dpanel-field span,
body.ui-theme-blue .dpanel-group-title,
body.ui-theme-blue .stats,
body.ui-theme-blue .sub,
body.ui-theme-blue .kv b,
body.ui-theme-blue .admin-actions,
body.ui-theme-blue .admin-form label,
body.ui-theme-blue .admin-mini-form small,
body.ui-theme-blue .case-empty-state,
body.ui-theme-blue .case-timeline-event small,
body.ui-theme-blue .analytics-item small,
body.ui-theme-blue .analytics-card span,
body.ui-theme-blue .analytics-card small,
body.ui-theme-blue .ai-note,
body.ui-theme-blue .ai-rec-item small,
body.ui-theme-blue .map-point-row small,
body.ui-theme-blue .recovery-item small,
body.ui-theme-blue .type-select-row small,
body.ui-theme-blue .seeai-icon-choice span,
body.ui-theme-blue .app-message-body {
  color: var(--seeai-ui-muted) !important;
}
body.ui-theme-blue h1,
body.ui-theme-blue h2,
body.ui-theme-blue h3,
body.ui-theme-blue h4,
body.ui-theme-blue strong,
body.ui-theme-blue b,
body.ui-theme-blue .user-name,
body.ui-theme-blue .admin-brand,
body.ui-theme-blue .admin-card h2,
body.ui-theme-blue .panel-head h2,
body.ui-theme-blue .side-panel h2,
body.ui-theme-blue .side-panel h3,
body.ui-theme-blue .analytics-section h3,
body.ui-theme-blue .ai-section-title,
body.ui-theme-blue .confirm-card h3,
body.ui-theme-blue .modal-head h2,
body.ui-theme-blue .case-open-table th,
body.ui-theme-blue .users-table th,
body.ui-theme-blue .analysis-table th,
body.ui-theme-blue .case-management-table th,
body.ui-theme-blue .type-advanced-table th,
body.ui-theme-blue .viz-table th,
body.ui-theme-blue .matrix-table th {
  color: var(--seeai-ui-text) !important;
}
body.ui-theme-blue .users-table th,
body.ui-theme-blue .case-management-table th,
body.ui-theme-blue .analysis-table th,
body.ui-theme-blue .type-advanced-table th,
body.ui-theme-blue .viz-table th,
body.ui-theme-blue .matrix-table th {
  background: var(--seeai-ui-active) !important;
}
body.ui-theme-blue .users-table td,
body.ui-theme-blue .users-table th,
body.ui-theme-blue .case-management-table td,
body.ui-theme-blue .case-management-table th,
body.ui-theme-blue .analysis-table td,
body.ui-theme-blue .analysis-table th,
body.ui-theme-blue .type-advanced-table td,
body.ui-theme-blue .type-advanced-table th,
body.ui-theme-blue .viz-table td,
body.ui-theme-blue .viz-table th,
body.ui-theme-blue .matrix-table td,
body.ui-theme-blue .matrix-table th {
  border-color: rgba(112,197,255,.22) !important;
}
body.ui-theme-blue .menu-btn.active,
body.ui-theme-blue .menu-btn-v99.active,
body.ui-theme-blue .admin-tab-btn.active,
body.ui-theme-blue .active-select-mode,
body.ui-theme-blue .filter-toggle.active,
body.ui-theme-blue .mini-action.active,
body.ui-theme-blue .analytics-toggle.active {
  background: var(--seeai-ui-selected) !important;
  color: #ffffff !important;
  border-color: rgba(146,211,245,.52) !important;
  box-shadow: 0 0 0 1px rgba(112,197,255,.16) inset;
}
body.ui-theme-blue .filter-toggle,
body.ui-theme-blue .admin-tab-btn,
body.ui-theme-blue .dpanel-item,
body.ui-theme-blue .dpanel-field,
body.ui-theme-blue .dpanel-item-row label,
body.ui-theme-blue .inline-control,
body.ui-theme-blue .map-radius-control,
body.ui-theme-blue .radio-row,
body.ui-theme-blue .shadow-key-field,
body.ui-theme-blue .visual-card label {
  color: var(--seeai-ui-text) !important;
}
body.ui-theme-blue .analytics-item:has(.analytics-toggle.active),
body.ui-theme-blue .visual-card.entity-card.selected,
body.ui-theme-blue .type-advanced-table tr[data-type-row].selected,
body.ui-theme-blue .map-point-row.route-selected,
body.ui-theme-blue .multi-link-item:hover,
body.ui-theme-blue .multi-link-item.active,
body.ui-theme-blue .matrix-table td.hit,
body.ui-theme-blue .case-management-table tr.is-active,
body.ui-theme-blue .selected-chip,
body.ui-theme-blue .local-result,
body.ui-theme-blue .filter-summary,
body.ui-theme-blue .active-select-mode,
body.ui-theme-blue .validation-grid div,
body.ui-theme-blue .count-pill b {
  background: var(--seeai-ui-selected) !important;
  color: var(--seeai-ui-text) !important;
  border-color: rgba(146,211,245,.48) !important;
  box-shadow: none !important;
}
body.ui-theme-blue .analytics-card,
body.ui-theme-blue .analytics-section,
body.ui-theme-blue .ai-narrative-panel,
body.ui-theme-blue .ai-narrative-block,
body.ui-theme-blue .viz-card,
body.ui-theme-blue .case-summary-field,
body.ui-theme-blue .case-summary-section,
body.ui-theme-blue .visual-card,
body.ui-theme-blue .import-box,
body.ui-theme-blue .visual-model-column,
body.ui-theme-blue .visual-preview-column,
body.ui-theme-blue .seeai-help-grid article,
body.ui-theme-blue .seeai-help-hero,
body.ui-theme-blue .seeai-help-topic,
body.ui-theme-blue .seeai-help-empty,
body.ui-theme-blue .seeai-about-note,
body.ui-theme-blue .ficha-section,
body.ui-theme-blue .recovery-item,
body.ui-theme-blue .type-select-row,
body.ui-theme-blue .seeai-icon-choice {
  background: var(--seeai-ui-card) !important;
  color: var(--seeai-ui-text) !important;
}
body.ui-theme-blue .analytics-card b,
body.ui-theme-blue .count-pill b,
body.ui-theme-blue .validation-grid b,
body.ui-theme-blue .timeline-row b,
body.ui-theme-blue .map-route-help,
body.ui-theme-blue .map-route-summary,
body.ui-theme-blue .timeline-bucket {
  color: var(--seeai-ui-text) !important;
}
body.ui-theme-blue .pill,
body.ui-theme-blue .case-badge,
body.ui-theme-blue .status-chip,
body.ui-theme-blue .map-route-help,
body.ui-theme-blue .map-route-summary,
body.ui-theme-blue .timeline-bucket,
body.ui-theme-blue .type-relation-title,
body.ui-theme-blue .evidence-hidden-note {
  background: var(--seeai-ui-active) !important;
  color: var(--seeai-ui-text) !important;
  border-color: var(--seeai-ui-border) !important;
}
body.ui-theme-blue .seeai-help-search input {
  background: var(--seeai-ui-input-bg) !important;
  color: var(--seeai-ui-text) !important;
  border-color: var(--seeai-ui-border) !important;
}
body.ui-theme-blue .seeai-help-card .confirm-actions,
body.ui-theme-blue .seeai-help-topic-body,
body.ui-theme-blue .seeai-help-reading {
  background: var(--seeai-ui-panel) !important;
  color: var(--seeai-ui-text) !important;
  border-color: var(--seeai-ui-border) !important;
}
body.ui-theme-blue .seeai-help-sections button.active,
body.ui-theme-blue .seeai-help-topic-head:hover,
body.ui-theme-blue .seeai-help-keyword,
body.ui-theme-blue .seeai-help-count {
  background: var(--seeai-ui-selected) !important;
  color: var(--seeai-ui-text) !important;
  border-color: rgba(146,211,245,.48) !important;
}
body.ui-theme-blue button:disabled,
body.ui-theme-blue input:disabled,
body.ui-theme-blue select:disabled,
body.ui-theme-blue textarea:disabled,
body.ui-theme-blue .dpanel-item:disabled,
body.ui-theme-blue .dpanel-item[disabled] {
  background: var(--seeai-ui-disabled) !important;
  color: rgba(244,251,255,.56) !important;
  border-color: rgba(112,197,255,.14) !important;
  opacity: 1;
}
body.ui-theme-blue .alert,
body.ui-theme-blue .seeai-toast-error {
  background: rgba(95,35,48,.72) !important;
  color: #fff2f4 !important;
  border-color: rgba(255,176,186,.58) !important;
}
body.ui-theme-blue .ok-alert,
body.ui-theme-blue .ok-note,
body.ui-theme-blue .seeai-toast-success {
  background: rgba(23,82,62,.72) !important;
  color: #e5fff3 !important;
  border-color: rgba(160,255,207,.54) !important;
}
body.ui-theme-blue .seeai-toast-warning,
body.ui-theme-blue .pill.warning {
  background: rgba(95,71,22,.72) !important;
  color: #fff4ca !important;
  border-color: rgba(255,230,150,.54) !important;
}
body.ui-theme-blue .confirm-modal,
body.ui-theme-blue .modal-overlay,
body.ui-theme-blue .busy-overlay,
body.ui-theme-blue .app-message-modal,
body.ui-theme-blue .seeai-exp-modal,
body.ui-theme-blue .seeai-ficha-modal,
body.ui-theme-blue .workspace-recovery-modal.active {
  background: rgba(2,19,40,.72) !important;
}
body.ui-theme-blue .app-message-card:has(.type-advanced-modal) .confirm-actions,
body.ui-theme-blue .type-advanced-actions {
  background: var(--seeai-ui-panel) !important;
  border-color: var(--seeai-ui-border) !important;
}
body.ui-theme-blue .map-canvas {
  background: #07101b;
  border-color: var(--seeai-ui-border);
}
body.ui-theme-blue .leaflet-container {
  background: #07101b;
}
body.ui-theme-blue.graph-page .graph,
body.ui-theme-blue.graph-page .graph canvas,
body.ui-theme-blue.graph-page .seeai-exp-canvas {
  background: #000 !important;
}
body.ui-theme-blue.graph-page .graph.graph-theme-light,
body.ui-theme-blue.graph-page .graph.graph-theme-light canvas,
body.ui-theme-blue.graph-theme-light .graph,
body.ui-theme-blue.graph-theme-light .graph canvas {
  background: #fff !important;
}
body.ui-theme-blue .graph-footer-stats:not(.graph-footer-light) {
  background: rgba(3,10,18,.88);
  color: #dce8f2;
  border-top-color: rgba(255,255,255,.14);
}

/* IA-2A.1 - painel investigativo avançado; escopo visual isolado da Análise IA atual. */
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.advanced-analysis-open {
  right: 12px !important;
  left: auto !important;
  width: var(--advanced-analysis-panel-width, clamp(540px, 38vw, 820px)) !important;
  min-width: 520px !important;
  max-width: min(1000px, calc(100vw - 260px)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#analyticsPanel.advanced-analysis-open.is-resizing {
  user-select: none;
}
#analyticsPanel .advanced-analysis-resize-handle {
  display: none;
}
#analyticsPanel.advanced-analysis-open .advanced-analysis-resize-handle {
  position: absolute;
  display: block;
  top: 14px;
  bottom: 14px;
  left: -5px;
  width: 10px;
  z-index: 6;
  cursor: ew-resize;
  touch-action: none;
  border-radius: 999px;
}
#analyticsPanel.advanced-analysis-open .advanced-analysis-resize-handle::after {
  content: "";
  position: absolute;
  top: 44%;
  bottom: 44%;
  left: 4px;
  width: 2px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(126,195,255,.46);
  transition: background .15s ease, box-shadow .15s ease;
}
#analyticsPanel.advanced-analysis-open .advanced-analysis-resize-handle:hover::after,
#analyticsPanel.advanced-analysis-open .advanced-analysis-resize-handle:focus-visible::after {
  background: #7ec3ff;
  box-shadow: 0 0 0 3px rgba(74,163,255,.14);
}
#advancedAiAnalysisContent {
  color: #dce8f5;
  font-size: 13px;
  line-height: 1.45;
}
#advancedAiAnalysisContent > .dpanel-group-title {
  position: sticky;
  top: -10px;
  z-index: 4;
  margin: -2px -2px 0;
  padding: 10px 4px 5px;
  background: linear-gradient(180deg, rgba(4,8,14,.99) 75%, rgba(4,8,14,.90));
  color: #eef7ff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
}
#advancedAiAnalysisContent > .dpanel-note {
  margin: 2px 0 14px;
  color: #a8bad0;
  font-size: 12.75px;
  line-height: 1.5;
}
#advancedAiAnalysisContent > .analytics-dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
#advancedAiAnalysisContent .analytics-dashboard::after {
  content: none;
}
#advancedAiAnalysisContent .analytics-card {
  min-width: 0;
  min-height: 0;
  padding: 10px 11px;
  border-radius: 10px;
}
#advancedAiAnalysisContent .analytics-card span {
  text-transform: none;
  letter-spacing: normal;
}
#advancedAiAnalysisContent > .analytics-dashboard .analytics-card > span,
#advancedAiAnalysisContent .advanced-analysis-metric-label {
  color: #9eafc3;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}
#advancedAiAnalysisContent > .analytics-dashboard .analytics-card > b,
#advancedAiAnalysisContent .advanced-analysis-metric-value {
  margin-top: 3px;
  color: #eef7ff;
  font-size: 16px;
  font-weight: 700;
}
#advancedAiAnalysisContent > .analytics-section {
  margin-top: 8px;
}
#advancedAiAnalysisContent > .analytics-section > h3 {
  margin-bottom: 8px;
  color: #dce8f5;
  font-size: 14px;
  letter-spacing: .025em;
  text-transform: none;
}
#advancedAnalysisEngineResults {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
#advancedAiAnalysisContent details.advanced-analysis-section {
  display: block;
  min-height: 0;
  margin: 0;
  padding: 0 12px 12px;
  overflow: visible;
  background: rgba(255,255,255,.018);
}
#advancedAiAnalysisContent .advanced-analysis-section-summary {
  position: relative;
  margin: 0 -12px;
  padding: 11px 38px 11px 12px;
  cursor: default;
  color: #dcecff;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
}
#advancedAiAnalysisContent .advanced-analysis-section-summary::-webkit-details-marker {
  display: none;
}
#advancedAiAnalysisContent .advanced-analysis-section-summary::after {
  content: "+";
  position: absolute;
  top: 10px;
  right: 13px;
  color: #8fcaff;
  font-size: 17px;
  font-weight: 500;
}
#advancedAiAnalysisContent details[open] > .advanced-analysis-section-summary {
  margin-bottom: 9px;
  border-bottom: 1px solid rgba(126,195,255,.16);
}
#advancedAiAnalysisContent details[open] > .advanced-analysis-section-summary::after {
  content: "−";
}
#advancedAiAnalysisContent .advanced-analysis-section-summary:hover {
  background: rgba(74,163,255,.055);
}
#advancedAiAnalysisContent .advanced-analysis-section-summary:focus-visible,
#advancedAiAnalysisContent .advanced-analysis-more > summary:focus-visible,
#advancedAiAnalysisContent .dpanel-select:focus-visible,
#advancedAiAnalysisContent .advanced-analysis-primary-action:focus-visible,
#analyticsPanel.advanced-analysis-open .advanced-analysis-resize-handle:focus-visible {
  outline: 2px solid rgba(126,195,255,.92);
  outline-offset: 2px;
}
#advancedAiAnalysisContent .advanced-analysis-legacy-heading,
#advancedAiAnalysisContent .advanced-analysis-endpoint-compat {
  display: none;
}
#advancedAiAnalysisContent .advanced-analysis-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
#advancedAiAnalysisContent .advanced-analysis-quality .advanced-analysis-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#advancedAiAnalysisContent .advanced-analysis-finding-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
#advancedAiAnalysisContent .advanced-analysis-result .advanced-analysis-finding-list,
#advancedAiAnalysisContent .advanced-analysis-finding-list-more {
  grid-template-columns: 1fr;
}
#advancedAiAnalysisContent .advanced-analysis-finding {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(180deg, rgba(20,42,66,.60), rgba(7,16,27,.72));
}
#advancedAiAnalysisContent .advanced-analysis-eyebrow,
#advancedAiAnalysisContent .advanced-analysis-block-label,
#advancedAiAnalysisContent .advanced-analysis-endpoint-role {
  color: #82bff1;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
#advancedAiAnalysisContent .advanced-analysis-primary {
  margin: 0;
  color: #f0f6ff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
#advancedAiAnalysisContent .advanced-analysis-type,
#advancedAiAnalysisContent .advanced-analysis-endpoint-type {
  color: #b7c8da;
  font-size: 12px;
  line-height: 1.35;
}
#advancedAiAnalysisContent .advanced-analysis-metric,
#advancedAiAnalysisContent .advanced-analysis-result-summary {
  margin: 0;
  color: #ddecfa;
  font-size: 13px;
  font-weight: 600;
}
#advancedAiAnalysisContent .advanced-analysis-context,
#advancedAiAnalysisContent .advanced-analysis-evidence {
  margin: 0;
  color: #9fb4ca;
  font-size: 12.25px;
  line-height: 1.45;
}
#advancedAiAnalysisContent .advanced-analysis-technical,
#advancedAiAnalysisContent .advanced-analysis-selector-count,
#advancedAiAnalysisContent #advancedAnalysisStatus {
  color: #7f91a8;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.42;
  overflow-wrap: anywhere;
  word-break: break-word;
}
#advancedAiAnalysisContent .advanced-analysis-relation {
  display: grid;
  gap: 2px;
  margin: 4px 0;
  padding: 8px 9px;
  border-left: 2px solid rgba(126,195,255,.46);
  background: rgba(2,10,18,.42);
}
#advancedAiAnalysisContent .advanced-analysis-relation-type {
  color: #ddecfa;
  font-size: 12.5px;
  font-weight: 650;
}
#advancedAiAnalysisContent .advanced-analysis-relation-label {
  color: #aebed0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#advancedAiAnalysisContent .advanced-analysis-endpoints {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 3px 0;
}
#advancedAiAnalysisContent .advanced-analysis-endpoint {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(126,195,255,.14);
  border-radius: 8px;
  background: rgba(2,9,17,.38);
}
#advancedAiAnalysisContent .advanced-analysis-endpoint-name {
  color: #eaf4ff;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
#advancedAiAnalysisContent .advanced-analysis-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
#advancedAiAnalysisContent .advanced-analysis-badge {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid rgba(126,195,255,.30);
  border-radius: 999px;
  background: rgba(74,163,255,.09);
  color: #bcdfff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
}
#advancedAiAnalysisContent .advanced-analysis-configuration,
#advancedAiAnalysisContent .advanced-analysis-result {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(126,195,255,.16);
  border-radius: 10px;
  background: rgba(3,10,18,.42);
}
#advancedAiAnalysisContent .advanced-analysis-result > .advanced-analysis-block-label,
#advancedAiAnalysisContent .advanced-analysis-configuration > .advanced-analysis-block-label {
  margin-bottom: 8px;
}
#advancedAiAnalysisContent .advanced-analysis-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#advancedAiAnalysisContent .advanced-analysis-selector {
  display: grid;
  gap: 6px;
  padding: 9px;
}
#advancedAiAnalysisContent .advanced-analysis-selector-label {
  color: #dce8f5;
  font-size: 12.5px;
  font-weight: 650;
}
#advancedAiAnalysisContent .advanced-analysis-selector .dpanel-select {
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 12px;
}
#advancedAiAnalysisContent .advanced-analysis-selector select.dpanel-select {
  min-height: 118px;
  padding: 4px;
}
#advancedAiAnalysisContent .advanced-analysis-selector select.dpanel-select option {
  padding: 5px 6px;
}
#advancedAiAnalysisContent .advanced-analysis-primary-action {
  width: auto;
  min-height: 34px;
  margin-top: 9px;
  padding: 7px 13px;
  border-color: rgba(126,195,255,.34);
  font-size: 12.5px;
  font-weight: 650;
}
#advancedAiAnalysisContent .advanced-analysis-result-count {
  margin: 8px 0 0;
  font-size: 11px;
}
#advancedAiAnalysisContent .advanced-analysis-more {
  margin-top: 8px;
  border-top: 1px solid rgba(126,195,255,.13);
}
#advancedAiAnalysisContent .advanced-analysis-more > summary {
  width: fit-content;
  padding: 8px 2px;
  cursor: default;
  color: #9fd2ff;
  font-size: 11.5px;
  font-weight: 650;
}
#advancedAiAnalysisContent .advanced-analysis-composition-item {
  padding: 8px 9px;
}
#advancedAiAnalysisContent .count-pill {
  max-width: 100%;
  padding: 5px 8px;
  font-size: 11.5px;
  overflow-wrap: anywhere;
}
/* IA-UX1 - workspace modular interno; preserva o painel externo e seus controles. */
#advancedAiAnalysisContent.advanced-analysis-workspace-active > .analytics-dashboard,
#advancedAiAnalysisContent.advanced-analysis-workspace-active > .analytics-section,
#advancedAiAnalysisContent.advanced-analysis-workspace-active > #advancedAnalysisStatus {
  display: none;
}
#advancedAiAnalysisContent.advanced-analysis-workspace-active #advancedAnalysisEngineResults {
  display: block;
  margin-top: 8px;
}
#advancedAiAnalysisContent .advanced-analysis-workspace {
  container-name: advanced-analysis-workspace;
  container-type: inline-size;
  min-width: 0;
}
#advancedAiAnalysisContent .advanced-analysis-workspace-shell {
  display: grid;
  grid-template-columns: minmax(145px, 160px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
#advancedAiAnalysisContent .advanced-analysis-module-navigation {
  position: sticky;
  top: 48px;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(126,195,255,.16);
  border-radius: 10px;
  background: rgba(3,10,18,.90);
}
#advancedAiAnalysisContent .advanced-analysis-navigation-label {
  padding: 2px 7px 6px;
  color: #8298ae;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
#advancedAiAnalysisContent .advanced-analysis-module-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 35px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #b9c8d8;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: default;
}
#advancedAiAnalysisContent .advanced-analysis-module-button:hover {
  background: rgba(74,163,255,.06);
  color: #eaf4ff;
}
#advancedAiAnalysisContent .advanced-analysis-module-button.is-active {
  border-color: rgba(126,195,255,.28);
  background: rgba(74,163,255,.12);
  color: #eef7ff;
  box-shadow: inset 2px 0 0 #7ec3ff;
}
#advancedAiAnalysisContent .advanced-analysis-module-button:focus-visible,
#advancedAiAnalysisContent .advanced-analysis-overview-action:focus-visible,
#advancedAiAnalysisContent .advanced-analysis-module-select:focus-visible {
  outline: 2px solid rgba(126,195,255,.92);
  outline-offset: 2px;
}
#advancedAiAnalysisContent .advanced-analysis-module-content,
#advancedAiAnalysisContent .advanced-analysis-module {
  min-width: 0;
}
#advancedAiAnalysisContent .advanced-analysis-module[hidden] {
  display: none !important;
}
#advancedAiAnalysisContent .advanced-analysis-module-heading {
  margin: 0 0 9px;
  color: #eef7ff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
#advancedAiAnalysisContent .advanced-analysis-module {
  display: grid;
  gap: 10px;
}
#advancedAiAnalysisContent .advanced-analysis-compact-navigation {
  display: none;
}
#advancedAiAnalysisContent .advanced-analysis-overview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
#advancedAiAnalysisContent .advanced-analysis-overview-action {
  width: 100%;
  min-height: 35px;
  margin: 0;
  padding: 7px 9px;
  border-color: rgba(126,195,255,.24);
  color: #cde6fb;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}
@container advanced-analysis-workspace (max-width: 600px) {
  #advancedAiAnalysisContent .advanced-analysis-compact-navigation {
    position: sticky;
    top: 45px;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 9px;
    border: 1px solid rgba(126,195,255,.16);
    border-radius: 9px;
    background: rgba(3,10,18,.94);
  }
  #advancedAiAnalysisContent .advanced-analysis-compact-label {
    color: #aebed0;
    font-size: 12px;
    font-weight: 650;
  }
  #advancedAiAnalysisContent .advanced-analysis-module-select {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 12.5px;
  }
  #advancedAiAnalysisContent .advanced-analysis-workspace-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  #advancedAiAnalysisContent .advanced-analysis-module-navigation {
    display: none;
  }
}
@media (max-width: 899px) {
  body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.advanced-analysis-open {
    width: var(--advanced-analysis-panel-width, calc(100vw - 160px)) !important;
    min-width: 0 !important;
    max-width: calc(100vw - 160px) !important;
  }
  #advancedAiAnalysisContent .advanced-analysis-finding-list {
    grid-template-columns: 1fr;
  }
  #advancedAiAnalysisContent .advanced-analysis-quality .advanced-analysis-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.advanced-analysis-open {
    width: var(--advanced-analysis-panel-width, calc(100vw - 96px)) !important;
    max-width: calc(100vw - 96px) !important;
  }
  #advancedAiAnalysisContent .advanced-analysis-selector-grid,
  #advancedAiAnalysisContent .advanced-analysis-endpoints,
  #advancedAiAnalysisContent .advanced-analysis-quality .advanced-analysis-metric-grid {
    grid-template-columns: 1fr;
  }
}

/* SEEAI Cursor Policy V1: presentation-only arrow for application and graph controls.
   Specific selectors intentionally preserve text/edit and real resize cursors. */
body,
a[href],
button,
[role="button"],
#graph,
#graph canvas,
#graph .scene-container,
#graph .scene-container .clickable,
#graph .scene-container .grabbable,
#graph .scene-container .grabbable:active,
#seeai-timeline-topbar button,
.analysis-visual-evidence-overlay,
.analysis-visual-evidence-overlay button,
.analysis-visual-evidence-workspace,
.analysis-investigative-render-host,
.analysis-investigative-render-host canvas,
.visual-evidence-node,
.visual-evidence-link {
  cursor: default !important;
}
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
[contenteditable="true"] {
  cursor: text;
}

/* IA-4A.0 / IA-4A: controles locais do ciclo e interpretação fundamentada. */
#advancedAiAnalysisContent .advanced-analysis-refresh-toolbar {
  position: sticky;
  top: calc(var(--analytics-mode-switcher-offset, 42px) - 7px);
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -2px -2px 8px;
  padding: 6px 2px;
  background: color-mix(in srgb, var(--color-surface, #11263a) 94%, transparent);
  border-bottom: 1px solid rgba(126, 195, 255, .18);
}
#advancedAiAnalysisContent .advanced-analysis-cycle-badge {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#advancedAiAnalysisContent .advanced-analysis-refresh-button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
  white-space: nowrap;
}
#advancedAiAnalysisContent .advanced-analysis-refresh-button:disabled,
#advancedAiAnalysisContent .advanced-ai-generate-button:disabled {
  cursor: wait;
  opacity: .62;
}
.advanced-analysis-progress-popup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10020;
  width: min(380px, calc(100vw - 32px));
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(80, 184, 255, .34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 50, 76, .78), rgba(7, 27, 45, .86));
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.advanced-analysis-progress-popup[hidden] {
  display: none;
}
.advanced-analysis-progress-popup .advanced-analysis-progress-title {
  color: #dff2ff;
  font-size: 11px;
  letter-spacing: .075em;
}
.advanced-analysis-progress-popup .advanced-analysis-progress-value {
  color: #7ecbff;
  font-size: 14px;
  font-weight: 750;
}
.advanced-analysis-progress-popup progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: #4fb8ff;
}
.advanced-analysis-progress-popup .advanced-analysis-progress-phase,
.advanced-analysis-progress-popup .advanced-analysis-progress-scope {
  grid-column: 1 / -1;
  margin: 0;
}
.advanced-analysis-progress-popup .advanced-analysis-progress-phase {
  color: #cce9ff;
  font-size: 12px;
}
.advanced-analysis-progress-popup .advanced-analysis-progress-elapsed {
  grid-column: 1 / -1;
}
.advanced-analysis-progress-popup.is-complete {
  border-color: rgba(87, 214, 153, .42);
}
.advanced-analysis-progress-popup.is-complete .advanced-analysis-progress-value {
  color: #73e0aa;
}
.advanced-analysis-progress-popup.is-error {
  border-color: rgba(255, 112, 112, .48);
}
#advancedAiAnalysisContent .advanced-ai-interpretation-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
#advancedAiAnalysisContent .advanced-ai-interpretation-status {
  flex: 1 1 260px;
}
#advancedAiAnalysisContent .advanced-ai-interpretation-result {
  display: grid;
  gap: 10px;
}
#advancedAiAnalysisContent .advanced-ai-interpretation-card {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
#advancedAiAnalysisContent .advanced-ai-interpretation-text {
  margin: 4px 0;
  line-height: 1.55;
  white-space: pre-wrap;
}
#advancedAiAnalysisContent .advanced-ai-evidence-list {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}
#advancedAiAnalysisContent .advanced-ai-evidence-item {
  padding: 5px 7px;
  border: 1px solid rgba(126, 195, 255, .18);
  border-radius: 6px;
  background: rgba(12, 31, 47, .42);
}
#advancedAiAnalysisContent .advanced-ai-evidence-summary {
  cursor: default;
  color: #b9dcf8;
  font-size: 11px;
  overflow-wrap: anywhere;
}
#advancedAiAnalysisContent .advanced-ai-stale-message {
  color: #ffd166;
}

/* IA-UX2 R4 - geometria compartilhada Current/Advanced; Current R3 permanece como referência. */
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed > .dpanel-list > .analytics-mode-switcher {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed > .dpanel-list > .analytics-mode-switcher > .dpanel-group-title {
  display: none;
}
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed .analysis-window-toolbar {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed.analysis-window-docked-resized:not(.analysis-window-floating):not(.analysis-window-expanded) {
  width: var(--analysis-window-docked-width) !important;
  min-width: min(360px, max(1px, calc(100vw - 24px))) !important;
  max-width: min(1000px, max(1px, calc(100vw - 260px))) !important;
}
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed.analysis-window-floating,
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed.analysis-window-expanded {
  position: fixed !important;
  left: var(--analysis-window-left) !important;
  top: var(--analysis-window-top) !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--analysis-window-width) !important;
  height: var(--analysis-window-height) !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  transform: none !important;
}
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed:not(.analysis-window-expanded) > .analysis-panel-resize-handle {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed.analysis-window-current-active .analysis-window-current-content {
  min-width: 0;
}
@media (max-width: 899px) {
  body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed.analysis-window-docked-resized:not(.analysis-window-floating):not(.analysis-window-expanded) {
    max-width: max(1px, calc(100vw - 160px)) !important;
  }
}
@media (max-width: 639px) {
  body.graph-page #analyticsPanel.dropdown-panel.analytics-panel.analysis-window-managed.analysis-window-docked-resized:not(.analysis-window-floating):not(.analysis-window-expanded) {
    max-width: max(1px, calc(100vw - 24px)) !important;
  }
}

/* UX-FIX1 - seletor global da Análise IA permanece ortogonal ao workspace interno. */
#analyticsPanel {
  --analytics-mode-switcher-offset: 42px;
}
#analyticsPanel > .dpanel-list > .analytics-mode-switcher {
  position: sticky;
  top: -7px;
  z-index: 12;
  display: grid;
  grid-template-columns: auto repeat(2, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
  box-sizing: border-box;
  min-height: var(--analytics-mode-switcher-offset);
  padding: 5px 4px;
  border-bottom: 1px solid rgba(126,195,255,.16);
  background: linear-gradient(180deg, rgba(4,8,14,1) 82%, rgba(4,8,14,.96));
}
#analyticsPanel > .dpanel-list > .analytics-mode-switcher > .dpanel-group-title {
  padding: 0 6px;
  white-space: nowrap;
}
#analyticsPanel > .dpanel-list > .analytics-mode-switcher > .dpanel-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#advancedAiAnalysisContent > .dpanel-group-title {
  top: calc(var(--analytics-mode-switcher-offset) - 10px);
}
@media (max-width: 639px) {
  #analyticsPanel {
    --analytics-mode-switcher-offset: 70px;
  }
  #analyticsPanel > .dpanel-list > .analytics-mode-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #analyticsPanel > .dpanel-list > .analytics-mode-switcher > .dpanel-group-title {
    grid-column: 1 / -1;
  }
}

/* IA-UX2 - janela analitica compartilhada; estado exclusivamente efemero no DOM/CSS. */
#analyticsPanel.analysis-window-managed {
  box-sizing: border-box;
}
#analyticsPanel.analysis-window-managed.analysis-window-current-resized:not(.advanced-analysis-open):not(.analysis-window-floating):not(.analysis-window-expanded) {
  width: var(--current-analysis-panel-width) !important;
  min-width: min(360px, calc(100vw - 24px)) !important;
  max-width: min(1000px, calc(100vw - 96px)) !important;
}
#analyticsPanel.analysis-window-managed.analysis-window-floating,
#analyticsPanel.analysis-window-managed.analysis-window-expanded {
  position: fixed !important;
  left: var(--analysis-window-left) !important;
  top: var(--analysis-window-top) !important;
  right: auto !important;
  bottom: auto !important;
  width: var(--analysis-window-width) !important;
  height: var(--analysis-window-height) !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  z-index: 11990 !important;
  overscroll-behavior: contain;
}
#analyticsPanel.analysis-window-managed.analysis-window-expanded {
  border-radius: 12px;
  box-shadow: 0 28px 100px rgba(0,0,0,.72), 0 0 0 1px rgba(126,195,255,.14) inset;
}
#analyticsPanel.analysis-window-managed.is-dragging,
#analyticsPanel.analysis-window-managed.is-resizing {
  user-select: none;
}
#analyticsPanel.analysis-window-managed > .dpanel-list > .analytics-mode-switcher {
  grid-template-columns: auto repeat(2, minmax(0, 1fr)) auto;
}
#analyticsPanel .analysis-window-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: max-content;
}
#analyticsPanel .analysis-window-control {
  display: inline-grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(126,195,255,.18);
  border-radius: 5px;
  background: rgba(126,195,255,.055);
  color: #cfe8ff;
  font-size: 14px;
  line-height: 1;
}
#analyticsPanel .analysis-window-control:hover,
#analyticsPanel .analysis-window-control:focus-visible {
  border-color: rgba(126,195,255,.62);
  background: rgba(74,163,255,.16);
  outline: none;
}
#analyticsPanel .analysis-window-control[aria-pressed="true"] {
  border-color: #7ec3ff;
  background: rgba(74,163,255,.24);
  color: #fff;
}
#analyticsPanel .analysis-window-control:disabled {
  opacity: .42;
  cursor: default;
}
#analyticsPanel.analysis-window-floating .analysis-window-drag-region {
  cursor: move;
  touch-action: none;
}
#analyticsPanel.analysis-window-managed:not(.analysis-window-expanded) > .analysis-panel-resize-handle {
  position: absolute;
  display: block;
  top: 14px;
  bottom: 14px;
  left: -5px;
  width: 10px;
  height: auto;
  z-index: 13;
  cursor: ew-resize;
  touch-action: none;
  border-radius: 999px;
}
#analyticsPanel.analysis-window-managed:not(.analysis-window-expanded) > .analysis-panel-resize-handle::after {
  content: "";
  position: absolute;
  top: 44%;
  bottom: 44%;
  left: 4px;
  width: 2px;
  min-height: 44px;
  border-radius: 999px;
  background: rgba(126,195,255,.46);
}
#analyticsPanel.analysis-window-managed.analysis-window-floating > .analysis-panel-resize-handle {
  top: auto;
  right: -2px;
  bottom: -2px;
  left: auto;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
}
#analyticsPanel.analysis-window-managed.analysis-window-floating > .analysis-panel-resize-handle::after {
  top: auto;
  right: 3px;
  bottom: 3px;
  left: auto;
  width: 8px;
  height: 8px;
  min-height: 0;
  border-right: 2px solid rgba(126,195,255,.65);
  border-bottom: 2px solid rgba(126,195,255,.65);
  border-radius: 0;
  background: transparent;
}
#analyticsPanel.analysis-window-managed.analysis-window-expanded > .analysis-panel-resize-handle {
  display: none;
}
@media (max-width: 639px) {
  #analyticsPanel.analysis-window-managed > .dpanel-list > .analytics-mode-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #analyticsPanel.analysis-window-managed > .dpanel-list > .analytics-mode-switcher > .dpanel-group-title {
    grid-column: 1;
  }
  #analyticsPanel .analysis-window-toolbar {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}
