@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg-0: #eef3f2;
  --bg-1: #dfe9e5;
  --bg-accent-1: #d7f0e6;
  --bg-accent-2: #dbe7f5;
  --panel: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f3f8f6;
  --panel-soft: #fcfffd;
  --line: #c9dbd2;
  --line-strong: #b6cdc2;
  --text: #10211f;
  --muted: #4d6662;
  --brand: #0f8c6d;
  --brand-2: #1b5ea7;
  --brand-soft: #daf3ea;
  --focus: #0b83ff;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #027a48;
  --shadow-sm: 0 8px 18px rgba(22, 36, 30, 0.06);
  --shadow-md: 0 18px 36px rgba(16, 28, 24, 0.1);
  --font-body: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --font-display: "Sora", "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(1200px 560px at -8% -12%, var(--bg-accent-1) 0%, transparent 58%),
    radial-gradient(980px 500px at 106% -8%, var(--bg-accent-2) 0%, transparent 56%),
    linear-gradient(110deg, rgba(15, 140, 109, 0.06), rgba(27, 94, 167, 0.03) 45%, transparent 72%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 48%);
}

html[data-theme="dark"] {
  --bg-0: #0d171e;
  --bg-1: #0a1218;
  --bg-accent-1: #113328;
  --bg-accent-2: #152d49;
  --panel: #121f2a;
  --surface-1: #152534;
  --surface-2: #1a2c3c;
  --panel-soft: #132637;
  --line: #2a4458;
  --line-strong: #3b5971;
  --text: #e8f0f8;
  --muted: #a4b8c8;
  --brand: #25c997;
  --brand-2: #6aafff;
  --brand-soft: rgba(37, 201, 151, 0.14);
  --focus: #5cb4ff;
  --shadow-sm: 0 10px 22px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 22px 44px rgba(0, 0, 0, 0.44);
}

*::selection {
  background: rgba(27, 94, 167, 0.22);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 18px 44px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.control-select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 8px 10px;
  background: var(--surface-1);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.raw-controls {
  display: grid;
  gap: 8px;
  margin: 10px 0 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 95, 138, 0.06), rgba(18, 95, 138, 0));
}

.raw-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.raw-label {
  min-width: 84px;
  font-weight: 700;
  color: var(--muted);
}

.raw-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.raw-control .meta {
  white-space: nowrap;
}

.raw-input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 8px 10px;
  background: var(--surface-1);
  color: var(--text);
  min-width: 140px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.raw-input:focus,
.raw-input:focus-visible,
.control-select:focus,
.control-select:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(27, 94, 167, 0.14);
}

.raw-check {
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(11, 143, 101, 0.08);
  border: 1px solid rgba(11, 143, 101, 0.18);
}

.raw-btn {
  padding: 7px 10px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
}

.expand-icon {
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  transition: transform 0.16s ease;
}

tr.expanded .expand-icon {
  transform: rotate(90deg);
}

.details-row {
  display: none;
}

.details-row.open {
  display: table-row;
}

.details-cell {
  padding: 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.details-wrap {
  padding: 12px;
}

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

.details-grid .span-2 {
  grid-column: span 2;
}

.detail-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--panel);
}

.detail-box h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--brand-2);
}

.detail-list {
  max-height: 360px;
  overflow: auto;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(41, 65, 84, 0.25);
  font-size: 12px;
}

.detail-item:last-child {
  border-bottom: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.status-pill.ok {
  border-color: rgba(2, 122, 72, 0.35);
  background: rgba(2, 122, 72, 0.12);
  color: var(--ok);
}

.status-pill.fail {
  border-color: rgba(180, 35, 24, 0.35);
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.status-pill.pending {
  border-color: rgba(181, 71, 8, 0.35);
  background: rgba(181, 71, 8, 0.12);
  color: var(--warn);
}

@media (max-width: 920px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
  .details-grid .span-2 {
    grid-column: auto;
  }
}

.title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.title-row-sm {
  margin-bottom: 8px;
}

.term-help {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--brand-2);
  cursor: help;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.term-help::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 30;
  pointer-events: none;
}

.term-help::before {
  content: "";
  position: absolute;
  top: calc(100% + 4px);
  right: 8px;
  border: 6px solid transparent;
  border-bottom-color: var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 31;
}

.term-help:hover::after,
.term-help:hover::before,
.term-help:focus::after,
.term-help:focus::before,
.term-help:focus-visible::after,
.term-help:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 15px;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 920px;
  font-size: 14px;
  line-height: 1.65;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(128%) blur(1px);
  position: relative;
  overflow: clip;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(27, 94, 167, 0.3) 35%, rgba(15, 140, 109, 0.34) 70%, transparent 100%);
  pointer-events: none;
}

.main-nav {
  margin: 12px 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-soft) 0%, rgba(255, 255, 255, 0.75) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  position: sticky;
  top: 12px;
  z-index: 40;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.nav-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(15, 140, 109, 0.18), rgba(27, 94, 167, 0.18));
  border-color: rgba(27, 94, 167, 0.32);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 6px 16px rgba(15, 140, 109, 0.16);
}

.dash-page {
  display: grid;
  gap: 16px;
}

.narrow {
  max-width: 430px;
}

.command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.command-actions {
  min-width: min(100%, 480px);
  display: grid;
  gap: 8px;
}

.intel-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.intel-left {
  display: grid;
  gap: 10px;
}

.radar-deck {
  display: grid;
  gap: 10px;
}

.radar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: linear-gradient(150deg, rgba(15, 140, 109, 0.1), rgba(27, 94, 167, 0.05) 72%);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.radar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.radar-card.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(15, 140, 109, 0.4), 0 8px 18px rgba(15, 140, 109, 0.14);
}

.radar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.radar-name {
  font-weight: 700;
  font-size: 14px;
}

.radar-stats {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.radar-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  background: var(--surface-1);
}

.radar-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.radar-open {
  margin-top: 8px;
  width: 100%;
}

.insight-board {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--surface-1);
  min-height: 540px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.insight-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.intel-tabs {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.intel-tab-btn {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  min-height: 38px;
  padding: 7px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.intel-tab-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.intel-tab-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--text);
  box-shadow: 0 6px 16px rgba(15, 140, 109, 0.16);
}

.entity-subtabs {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.entity-subtab-btn {
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.entity-subtab-btn:hover {
  border-color: var(--line-strong);
}

.entity-subtab-btn.active {
  border-color: var(--brand-2);
  background: rgba(27, 94, 167, 0.14);
  color: var(--text);
}

.entity-tab-pane {
  display: none;
  margin-top: 10px;
}

.entity-tab-pane.active {
  display: block;
}

.tab-pane {
  display: none;
  margin-top: 12px;
}

.tab-pane.active {
  display: block;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.score-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  background: linear-gradient(180deg, rgba(18, 95, 138, 0.05), rgba(18, 95, 138, 0));
}

.card .k,
.score-card .k {
  font-size: 12px;
  color: var(--muted);
}

.card .v,
.score-card .v {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
}

.insight-section {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--panel-soft);
}

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

.intel-pack-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-1);
}

.intel-pack-box.full {
  grid-column: 1 / -1;
}

.intel-pack-box h5 {
  margin: 0 0 8px;
  font-size: 13px;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

.brief-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.timeline-bars {
  display: grid;
  gap: 7px;
}

.bar-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 55px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.bar-day,
.bar-value {
  color: var(--muted);
}

.bar-track {
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 12px;
  background: #eff5f2;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  background:
    linear-gradient(160deg, rgba(15, 140, 109, 0.11), rgba(27, 94, 167, 0.06) 62%, rgba(255, 255, 255, 0.18) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

form {
  display: grid;
  gap: 8px;
}

label {
  display: grid;
  gap: 5px;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 9px 10px;
  font-size: 14px;
  background: var(--surface-1);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

button {
  border: 1px solid var(--brand);
  background: linear-gradient(145deg, var(--brand) 0%, #0d7f63 100%);
  color: #fff;
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

button:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.ghost {
  background: var(--surface-1);
  color: var(--brand);
  border-color: var(--line-strong);
}

button.ghost:hover {
  background: var(--brand-soft);
  border-color: rgba(27, 94, 167, 0.38);
  color: var(--text);
}

button.mini {
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 999px;
  border-color: var(--line);
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  flex: 1;
}

.quick-list {
  display: grid;
  gap: 6px;
}

.quick-item {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 9px;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid rgba(201, 219, 210, 0.75);
  text-align: left;
  padding: 9px 8px;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 700;
  background: linear-gradient(180deg, rgba(27, 94, 167, 0.07), rgba(15, 140, 109, 0.03));
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:nth-child(even) {
  background: rgba(27, 94, 167, 0.035);
}

tbody tr:hover {
  background: rgba(15, 140, 109, 0.1);
}

html[data-density="compact"] .panel {
  padding: 12px;
}

html[data-density="compact"] table {
  font-size: 12px;
}

html[data-density="compact"] th,
html[data-density="compact"] td {
  padding: 6px 6px;
}

html[data-density="compact"] .signal-deep-controls {
  gap: 6px;
}

html[data-density="compact"] .raw-input,
html[data-density="compact"] .control-select,
html[data-density="compact"] input,
html[data-density="compact"] button {
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}

html[data-density="compact"] .cards {
  gap: 9px;
}

.meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.error {
  color: var(--danger);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.alert-list {
  display: grid;
  gap: 10px;
}

.alert-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.alert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.alert-title,
.evidence-title {
  font-weight: 700;
}

.alert-summary {
  margin-top: 6px;
  font-size: 13px;
}

.alert-action {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.severity-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 8px;
  font-weight: 700;
}

.severity-high {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.severity-medium {
  border: 1px solid #fed7aa;
  color: #9a3412;
  background: #fff7ed;
}

.severity-low {
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  background: #eff6ff;
}

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

.evidence-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: linear-gradient(132deg, rgba(15, 140, 109, 0.09), rgba(27, 94, 167, 0.04));
}

.evidence-headline {
  font-size: 13px;
  margin-top: 6px;
}

.evidence-context {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.evidence-meta {
  margin-top: 6px;
  font-size: 12px;
}

.evidence-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.evidence-kind {
  display: inline-block;
  min-width: 60px;
  font-size: 11px;
  color: var(--brand-2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

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

.signal-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.signal-box h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.signal-action-btn {
  padding: 5px 8px;
  font-size: 12px;
}

.signal-entity-cell {
  display: grid;
  gap: 4px;
}

.signal-entity-sub {
  font-size: 11px;
  color: var(--muted);
}

.signal-deep-box {
  margin-top: 10px;
  background: linear-gradient(140deg, rgba(11, 143, 101, 0.08), rgba(18, 95, 138, 0.04));
}

.signal-deep-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.signal-deep-controls {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.signal-deep-controls select {
  min-width: 260px;
}

#pageAsset .panel {
  background:
    linear-gradient(175deg, rgba(15, 140, 109, 0.08), transparent 34%),
    linear-gradient(0deg, var(--panel) 0%, var(--panel) 100%);
}

#pageAsset .asset-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#pageAsset .asset-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}

#pageAsset .asset-main {
  display: grid;
  gap: 12px;
}

#pageAsset .asset-control-panel .section-head,
#pageAsset .asset-output-panel .section-head {
  margin-bottom: 4px;
}

#pageAsset .asset-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: stretch;
}

#pageAsset .asset-control-grid > .raw-input,
#pageAsset .asset-control-grid > .control-select,
#pageAsset .asset-control-grid > button {
  width: 100%;
}

#pageAsset .asset-control-grid > button {
  justify-self: stretch;
}

#assetWorkbenchBody .insight-section {
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(27, 94, 167, 0.03), rgba(15, 140, 109, 0.03)),
    var(--panel-soft);
}

#assetSummaryCards .card,
#megaSummaryCards .card,
#summaryCards .card {
  min-height: 104px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-page .panel {
  animation: riseIn 0.32s ease both;
}

.dash-page .panel:nth-child(2) {
  animation-delay: 0.04s;
}

.dash-page .panel:nth-child(3) {
  animation-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.signal-deep-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.signal-kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: var(--surface-1);
}

.signal-kpi .k {
  font-size: 11px;
  color: var(--muted);
}

.signal-kpi .v {
  margin-top: 4px;
  font-weight: 700;
  font-size: 15px;
}

.signal-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-1);
}

.signal-panel h4 {
  margin: 0 0 8px;
}

.signal-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 13px;
}

.signal-band {
  display: inline-block;
  margin-right: 6px;
}

.deep-signal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 8px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 95, 138, 0.06), rgba(18, 95, 138, 0));
}

.deep-signal-controls-label {
  min-width: 84px;
  font-weight: 700;
  color: var(--muted);
}

.deep-signal-controls-count {
  margin-left: auto;
}

.deep-signal-search .raw-input {
  min-width: 260px;
}

.deep-signal-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.deep-signal-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(140deg, rgba(11, 143, 101, 0.08), rgba(18, 95, 138, 0.04));
}

.product-intel-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-intel-tabs {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
}

.product-intel-tab-btn {
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 11px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.product-intel-tab-btn:hover {
  border-color: var(--line-strong);
  background: rgba(37, 99, 235, 0.08);
}

.product-intel-tab-btn.active {
  border-color: var(--brand-2);
  background: rgba(37, 99, 235, 0.14);
  color: var(--text);
}

.product-intel-pane {
  display: none;
  margin-top: 10px;
}

.product-intel-pane.active {
  display: block;
}

.product-intel-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(140deg, rgba(27, 94, 167, 0.08), rgba(15, 140, 109, 0.05));
  color: var(--text);
}

.product-intel-card h5 {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.product-intel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-intel-head .severity-badge {
  margin-left: auto;
}

.product-intel-card .meta {
  color: var(--muted);
}

.product-intel-card .brief-list,
.product-intel-card .brief-list li {
  color: var(--text);
}

.product-intel-quick-note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: linear-gradient(130deg, rgba(11, 143, 101, 0.08), rgba(37, 99, 235, 0.05));
}

.product-intel-quick-note .meta {
  color: var(--text);
}

.deep-signal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.deep-signal-head h4 {
  margin: 0;
}

.deep-signal-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.deep-signal-split {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 920px) {
  .deep-signal-split {
    grid-template-columns: 1fr;
  }

  .product-intel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1160px) {
  .intel-layout {
    grid-template-columns: 1fr;
  }

  .score-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #pageAsset .asset-shell {
    grid-template-columns: 1fr;
  }

  #pageAsset .asset-rail {
    position: static;
  }
}

@media (max-width: 920px) {
  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav-btn {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .inline-control {
    width: 100%;
    justify-content: space-between;
  }

  .inline-control .control-select {
    min-width: 150px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .score-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inline-form {
    flex-direction: column;
  }

  .bar-row {
    grid-template-columns: 72px minmax(0, 1fr) 42px;
  }

  .intel-pack-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .signal-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-deep-grid {
    grid-template-columns: 1fr;
  }

  #pageAsset .asset-control-grid {
    grid-template-columns: 1fr;
  }
}

/* UI clarity pass v3: professional visual system + stronger readability */
:root {
  --bg-0: #f5f8fc;
  --bg-1: #eef3fb;
  --bg-accent-1: #dceff0;
  --bg-accent-2: #dce8ff;
  --panel: #ffffff;
  --surface-1: #ffffff;
  --surface-2: #f5f8fe;
  --panel-soft: #f9fbff;
  --line: #d5dfeb;
  --line-strong: #b8c8dc;
  --text: #0f1f33;
  --muted: #51627b;
  --brand: #0f766e;
  --brand-2: #2563eb;
  --brand-soft: #e2f3ef;
  --focus: #0b78ff;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #0f8a56;
  --shadow-sm: 0 10px 24px rgba(15, 31, 51, 0.08);
  --shadow-md: 0 22px 50px rgba(15, 31, 51, 0.13);
  --font-body: "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
  --font-display: "Outfit", "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

html[data-theme="dark"] {
  --bg-0: #09121f;
  --bg-1: #0c1727;
  --bg-accent-1: #10322f;
  --bg-accent-2: #102e52;
  --panel: #111f33;
  --surface-1: #14263b;
  --surface-2: #172d45;
  --panel-soft: #12273e;
  --line: #2c4563;
  --line-strong: #3b5a7e;
  --text: #e8f0fb;
  --muted: #adc0d7;
  --brand: #2ac6b0;
  --brand-2: #6ea9ff;
  --brand-soft: rgba(42, 198, 176, 0.16);
  --focus: #7cb7ff;
  --shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 24px 52px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(1300px 620px at -8% -18%, rgba(42, 198, 176, 0.16), transparent 56%),
    radial-gradient(1100px 580px at 108% -20%, rgba(37, 99, 235, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 52%);
}

.page {
  max-width: 1480px;
  padding: 22px 18px 44px;
}

.topbar {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.86));
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .topbar {
  background: linear-gradient(180deg, rgba(18, 39, 62, 0.92), rgba(14, 31, 50, 0.88));
}

h1 {
  font-size: clamp(28px, 2.4vw, 34px);
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(19px, 1.45vw, 23px);
}

.subtitle {
  max-width: 980px;
  font-size: 14px;
  line-height: 1.68;
}

.main-nav {
  margin: 12px 0 18px;
  padding: 8px;
  gap: 8px;
  border-radius: 14px;
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(252, 254, 255, 0.94), rgba(241, 247, 255, 0.9));
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .main-nav {
  background: linear-gradient(180deg, rgba(20, 42, 68, 0.9), rgba(16, 35, 57, 0.9));
}

.nav-btn {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.01em;
}

.nav-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.nav-btn.active {
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.48);
  background: linear-gradient(125deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.panel {
  padding: 18px;
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .panel {
  background: linear-gradient(180deg, rgba(19, 37, 58, 0.96), rgba(16, 31, 49, 0.94));
}

.panel::before {
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0) 0%, rgba(15, 118, 110, 0.54) 40%, rgba(37, 99, 235, 0.56) 78%, rgba(37, 99, 235, 0) 100%);
}

.insight-section,
.signal-box,
.signal-panel,
.detail-box,
.deep-signal-card,
.alert-item,
.evidence-card {
  border-color: var(--line);
  background: var(--surface-1);
}

.cards {
  gap: 14px;
}

.card {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--surface-1), var(--surface-2));
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.card .v,
.score-card .v {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.2;
  color: var(--text);
}

.score-card {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08));
}

html[data-theme="dark"] .product-intel-card {
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.2), rgba(15, 118, 110, 0.2));
}

button {
  border-color: rgba(15, 118, 110, 0.92);
  background: linear-gradient(135deg, #0f766e 0%, #1b8a7f 48%, #1f66e3 100%);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.24);
}

button:hover {
  filter: brightness(1.035);
}

button.ghost {
  background: var(--surface-1);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

button.ghost:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.36);
  color: var(--text);
}

input,
.raw-input,
.control-select {
  border-color: var(--line);
  background: var(--surface-1);
}

table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-1);
}

th {
  font-size: 12px;
  letter-spacing: 0.01em;
  color: #2b4767;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), rgba(15, 118, 110, 0.09));
  border-bottom-color: var(--line);
}

html[data-theme="dark"] th {
  color: #d8e6f8;
}

th,
td {
  padding: 10px 9px;
  border-bottom-color: rgba(181, 201, 223, 0.62);
}

tbody tr:nth-child(even) {
  background: rgba(37, 99, 235, 0.03);
}

tbody tr:hover {
  background: rgba(15, 118, 110, 0.12);
}

.meta {
  color: var(--muted);
  font-size: 12.5px;
}

@media (max-width: 920px) {
  .topbar {
    padding: 12px;
  }

  .panel {
    padding: 14px;
  }

  .nav-btn.active {
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
  }
}

/* IA phase 2: grouped navigation + workflow coach */
.main-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
}

.nav-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 255, 0.7));
}

html[data-theme="dark"] .nav-group {
  background: linear-gradient(180deg, rgba(22, 45, 71, 0.86), rgba(18, 38, 61, 0.84));
}

.nav-group-label {
  display: block;
  margin: 0 0 6px;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workflow-coach {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-color: var(--line-strong);
  background:
    radial-gradient(700px 220px at 8% -35%, rgba(15, 118, 110, 0.22), transparent 60%),
    radial-gradient(700px 220px at 92% -35%, rgba(37, 99, 235, 0.2), transparent 62%),
    var(--panel);
}

.workflow-coach-main {
  min-width: 0;
}

.workflow-coach-label {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--brand-2);
}

#workflowCoachTitle {
  margin: 0;
  font-size: 20px;
}

#workflowCoachText {
  margin-top: 8px;
  font-size: 13px;
  max-width: 1000px;
}

.workflow-coach-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#workflowCoachActionBtn {
  min-width: 180px;
}

@media (max-width: 1160px) {
  .main-nav {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 920px) {
  .main-nav {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .workflow-coach {
    flex-direction: column;
    align-items: flex-start;
  }

  #workflowCoachActionBtn {
    width: 100%;
    min-width: 0;
  }
}

/* Phase 3: page-specialized layouts + focus strip */
.page-focus-strip {
  margin-bottom: 14px;
}

.page-focus-cards {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.page-focus-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px;
  background: var(--surface-1);
}

.page-focus-card .k {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-focus-card .v {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 800;
}

.page-focus-card.tone-alert {
  border-color: rgba(180, 35, 24, 0.34);
  background: rgba(180, 35, 24, 0.08);
}

.page-focus-card.tone-opportunity {
  border-color: rgba(15, 118, 110, 0.34);
  background: rgba(15, 118, 110, 0.08);
}

.page-focus-card.tone-neutral {
  border-color: var(--line-strong);
}

#pageEntities .intel-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

#pageEntities .intel-left {
  position: sticky;
  top: 168px;
  max-height: calc(100vh - 188px);
  overflow: auto;
  padding-right: 4px;
}

#pageEntities .insight-board {
  min-height: 680px;
}

#pageSignals .signal-lab-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

#pageSignals .signal-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#pageSignals .signal-ops-grid .signal-deep-box {
  grid-column: 1 / -1;
}

#signalEventAlertsTable,
#signalPriorityQueueTable,
#signalEscalationTable {
  max-height: 360px;
  overflow: auto;
}

#pageGuide .guide-step-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

#pageGuide .guide-step-rail {
  position: sticky;
  top: 168px;
}

#pageGuide .guide-step-rail h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

#pageGuide .guide-step-list {
  display: grid;
  gap: 8px;
}

#pageGuide .guide-progress {
  margin-bottom: 10px;
}

#pageGuide .guide-progress-track {
  margin-top: 6px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

#pageGuide .guide-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.22s ease;
}

#pageGuide .guide-step-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text);
  box-shadow: none;
  font-weight: 700;
  min-height: 44px;
}

#pageGuide .guide-step-link:hover {
  border-color: var(--line-strong);
  background: rgba(37, 99, 235, 0.08);
}

#pageGuide .guide-step-link.active {
  border-color: rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(37, 99, 235, 0.16));
}

#pageGuide .guide-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-2);
  background: var(--surface-2);
}

#pageGuide .guide-step-content {
  display: grid;
  gap: 12px;
}

#pageGuide .guide-step-panel {
  scroll-margin-top: 156px;
  opacity: 0.9;
  transition: opacity 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#pageGuide #guideModulesBody .insight-section {
  border-left: 3px solid rgba(37, 99, 235, 0.45);
}

#pageGuide .guide-step-panel.active {
  opacity: 1;
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

@media (max-width: 1280px) {
  .page-focus-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #pageSignals .signal-lab-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1160px) {
  #pageEntities .intel-layout {
    grid-template-columns: 1fr;
  }

  #pageEntities .intel-left {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  #pageGuide .guide-step-shell {
    grid-template-columns: 1fr;
  }

  #pageGuide .guide-step-rail {
    position: static;
  }
}

@media (max-width: 920px) {
  .page-focus-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #pageSignals .signal-ops-grid {
    grid-template-columns: 1fr;
  }
}

/* Final polish: heavy-data usability */
.table-shell {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.table-shell table {
  min-width: 760px;
  border: 0;
  border-radius: 0;
  margin: 0;
}

.table-shell table th,
.table-shell table td {
  white-space: nowrap;
}

.table-shell table td:last-child,
.table-shell table th:last-child {
  position: sticky;
  right: 0;
  background: var(--surface-1);
}

.table-shell table td[data-col-key] {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-shell table td.num,
.table-shell table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-shell::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.table-shell::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.entity-quick {
  max-height: 220px;
  overflow: auto;
  border-radius: 10px;
}

.entity-quick .quick-item {
  align-items: center;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.signal-deep-controls > .raw-input,
.signal-deep-controls > .control-select {
  flex: 1 1 220px;
}

@media (max-width: 920px) {
  .table-shell table {
    min-width: 620px;
  }
}

.floating-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(37, 99, 235, 0.94));
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
