.sector-shell {
  min-height: 100vh;
}

.sector-brand {
  color: inherit;
  text-decoration: none;
}

.sector-sidebar-note {
  margin-top: 26px;
  padding: 14px;
  border: 1px solid rgba(120, 169, 255, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(120, 169, 255, 0.08), transparent 62%),
    rgba(7, 14, 22, 0.74);
}

.sector-sidebar-note span,
.sector-sidebar-note strong {
  display: block;
}

.sector-sidebar-note span {
  color: #6f879b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sector-sidebar-note strong {
  margin-top: 5px;
  color: #f5b84b;
  font-size: 14px;
}

.sector-sidebar-note p {
  margin: 8px 0 0;
  color: #8da2b5;
  font-size: 11px;
  line-height: 1.55;
}

.sector-workspace {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sector-topbar {
  margin-bottom: 0;
}

.sector-back-link {
  align-self: center;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid rgba(120, 169, 255, 0.22);
  border-radius: 5px;
  color: #9fc0ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.sector-back-link:hover,
.sector-back-link:focus-visible {
  border-color: rgba(50, 245, 200, 0.54);
  color: #dffff7;
  outline: none;
}

.sector-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.65fr);
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(50, 245, 200, 0.22);
  border-radius: 6px;
  background:
    radial-gradient(circle at 8% 50%, rgba(50, 245, 200, 0.12), transparent 42%),
    linear-gradient(120deg, rgba(12, 31, 39, 0.92), rgba(7, 13, 21, 0.96) 60%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.sector-command::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(50, 245, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 245, 200, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.sector-command-copy,
.sector-command-action {
  position: relative;
  z-index: 1;
}

.sector-command-copy {
  display: grid;
  align-content: center;
  padding: 28px 32px;
}

.sector-eyebrow,
.sector-section-label {
  color: #65dfc5;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sector-command-copy h2 {
  max-width: 900px;
  margin: 10px 0 0;
  color: #f3fcff;
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.sector-command-copy p {
  max-width: 920px;
  margin: 12px 0 0;
  color: #9db3c4;
  font-size: 13px;
  line-height: 1.65;
}

.sector-command-action {
  display: grid;
  align-content: center;
  padding: 24px 28px;
  border-left: 1px solid rgba(50, 245, 200, 0.14);
  background:
    linear-gradient(145deg, rgba(50, 245, 200, 0.10), transparent 58%),
    rgba(7, 14, 21, 0.74);
}

.sector-command-action span {
  color: #7e95a8;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sector-command-action strong {
  margin-top: 9px;
  color: #f4fbff;
  font-size: 23px;
  line-height: 1.25;
}

.sector-command-action small {
  margin-top: 9px;
  color: #9bb0c0;
  font-size: 12px;
  line-height: 1.55;
}

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

.sector-kpi {
  position: relative;
  min-width: 0;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid rgba(50, 245, 200, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.034), transparent),
    rgba(9, 16, 24, 0.82);
}

.sector-kpi::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(50, 245, 200, 0.12);
  border-radius: 50%;
}

.sector-kpi span,
.sector-kpi strong,
.sector-kpi small {
  display: block;
}

.sector-kpi span {
  color: #768da0;
  font-size: 10px;
  font-weight: 800;
}

.sector-kpi strong {
  margin-top: 7px;
  color: #f1faff;
  font-size: 23px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.sector-kpi small {
  margin-top: 5px;
  color: #829aac;
  font-size: 11px;
}

.leader-kpi {
  border-color: rgba(50, 245, 200, 0.30);
  background:
    linear-gradient(135deg, rgba(50, 245, 200, 0.10), transparent 58%),
    rgba(9, 18, 25, 0.9);
}

.warning-kpi {
  border-color: rgba(245, 184, 75, 0.24);
}

.warning-kpi strong {
  color: #f5c669;
}

.sector-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.sector-panel {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(50, 245, 200, 0.15);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent),
    rgba(9, 16, 24, 0.84);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.sector-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--accent), transparent 66%) top left / 92px 1px no-repeat,
    linear-gradient(180deg, var(--accent), transparent 66%) top left / 1px 42px no-repeat,
    linear-gradient(270deg, rgba(120, 169, 255, 0.72), transparent 66%) bottom right / 92px 1px no-repeat,
    linear-gradient(0deg, rgba(120, 169, 255, 0.72), transparent 66%) bottom right / 1px 42px no-repeat;
  opacity: 0.5;
}

.quadrant-panel,
.ranking-panel,
.method-card {
  padding: 18px;
}

.sector-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.sector-panel-head h2,
.method-card h2 {
  margin: 4px 0 0;
  color: #eefaff;
  font-size: 18px;
  line-height: 1.25;
}

.sector-panel-head p,
.method-card p {
  margin: 6px 0 0;
  color: #8398aa;
  font-size: 11px;
  line-height: 1.55;
}

.window-control,
.sector-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.window-control button,
.sector-filter button {
  min-height: 31px;
  padding: 0 11px;
  border-color: rgba(120, 169, 255, 0.18);
  background: rgba(6, 12, 18, 0.72);
  color: #7890a4;
  font-size: 11px;
}

.window-control button.active,
.sector-filter button.active {
  border-color: rgba(50, 245, 200, 0.55);
  background: rgba(50, 245, 200, 0.11);
  color: #dffff7;
  box-shadow: 0 0 18px rgba(50, 245, 200, 0.09);
}

.sector-quadrant {
  position: relative;
  z-index: 1;
  height: 430px;
  overflow: hidden;
  border: 1px solid rgba(120, 169, 255, 0.15);
  border-radius: 5px;
  background:
    linear-gradient(rgba(120, 169, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 169, 255, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(50, 245, 200, 0.035), rgba(120, 169, 255, 0.025));
  background-size: 44px 44px, 44px 44px, auto;
}

.quadrant-zone {
  position: absolute;
  width: 50%;
  height: 50%;
  padding: 14px;
  color: rgba(176, 198, 214, 0.32);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quadrant-zone.top-left { top: 0; left: 0; background: rgba(120, 169, 255, 0.025); }
.quadrant-zone.top-right { top: 0; right: 0; text-align: right; background: rgba(50, 245, 200, 0.035); }
.quadrant-zone.bottom-left { bottom: 0; left: 0; display: flex; align-items: flex-end; background: rgba(255, 77, 94, 0.025); }
.quadrant-zone.bottom-right { right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: flex-end; background: rgba(245, 184, 75, 0.025); }

.quadrant-axis-x,
.quadrant-axis-y,
.quadrant-zero-line {
  position: absolute;
  pointer-events: none;
}

.quadrant-axis-x {
  top: 50%;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(169, 195, 216, 0.16);
}

.quadrant-axis-y {
  top: 0;
  left: 50%;
  height: 100%;
  border-left: 1px solid rgba(169, 195, 216, 0.16);
}

.quadrant-zero-line {
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgba(245, 184, 75, 0.32);
}

.quadrant-axis-label {
  position: absolute;
  color: #657d91;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.quadrant-axis-label.x-negative { left: 12px; top: calc(50% + 8px); }
.quadrant-axis-label.x-positive { right: 12px; top: calc(50% + 8px); }
.quadrant-axis-label.y-positive { left: calc(50% + 8px); top: 10px; }
.quadrant-axis-label.y-negative { left: calc(50% + 8px); bottom: 10px; }

.sector-point {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 4px;
  transform: translate(-50%, -50%);
  color: #9fb5c6;
  background: rgba(7, 13, 20, 0.91);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.32);
}

.sector-point:hover,
.sector-point:focus-visible,
.sector-point.selected {
  z-index: 5;
  transform: translate(-50%, -50%) scale(1.08);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 0 24px currentColor;
}

.sector-point.leader { color: #32f5c8; }
.sector-point.improving { color: #78a9ff; }
.sector-point.neutral { color: #d3a74f; }
.sector-point.laggard { color: #ff6876; }

.sector-point.industry-overlay {
  gap: 4px;
  grid-auto-flow: column;
  border-style: dashed;
  box-shadow: inset 0 0 0 1px rgba(245, 184, 75, 0.3), 0 7px 18px rgba(0, 0, 0, 0.32);
}

.sector-point.industry-overlay span {
  color: #f5b84b;
  font-size: 8px;
}

.sector-point.industry-overlay:hover,
.sector-point.industry-overlay:focus-visible,
.sector-point.industry-overlay.selected {
  box-shadow: inset 0 0 0 1px rgba(245, 184, 75, 0.46), 0 0 0 2px rgba(255, 255, 255, 0.08), 0 0 24px currentColor;
}

.quadrant-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  color: #8398aa;
  font-size: 10px;
  font-weight: 750;
}

.quadrant-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quadrant-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.leader-dot { background: #32f5c8; box-shadow: 0 0 8px rgba(50, 245, 200, 0.7); }
.improving-dot { background: #78a9ff; }
.neutral-dot { background: #d3a74f; }
.laggard-dot { background: #ff6876; }

.sector-detail {
  padding: 22px;
  overflow: hidden;
}

.sector-detail-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sector-detail-symbol {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sector-detail-ticker {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(50, 245, 200, 0.35);
  border-radius: 5px;
  color: #dffff7;
  background: rgba(50, 245, 200, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.sector-detail h2,
.sector-detail h3,
.sector-detail p {
  margin: 0;
}

.sector-detail h2 {
  color: #effbff;
  font-size: 20px;
}

.sector-detail-head p {
  margin-top: 3px;
  color: #7f96a9;
  font-size: 11px;
}

.sector-score-block {
  text-align: right;
}

.sector-score-block strong {
  display: block;
  color: #effbff;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sector-score-block span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
}

.sector-score-block .leader { color: #32f5c8; }
.sector-score-block .improving { color: #78a9ff; }
.sector-score-block .neutral { color: #d3a74f; }
.sector-score-block .laggard { color: #ff6876; }

.detail-budget {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(120, 169, 255, 0.18);
  border-radius: 5px;
  background: rgba(6, 12, 18, 0.62);
}

.detail-budget span {
  color: #7890a4;
  font-size: 10px;
  font-weight: 800;
}

.detail-budget p {
  margin-top: 5px;
  color: #b6c7d3;
  font-size: 11px;
}

.detail-budget strong {
  color: #9fc0ff;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
}

.detail-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.detail-metrics div {
  padding: 11px;
  border: 1px solid rgba(50, 245, 200, 0.10);
  border-radius: 5px;
  background: rgba(7, 13, 20, 0.58);
}

.detail-metrics span,
.detail-metrics strong {
  display: block;
}

.detail-metrics span {
  color: #6f879a;
  font-size: 9px;
  font-weight: 800;
}

.detail-metrics strong {
  margin-top: 4px;
  color: #dcebf3;
  font-size: 14px;
}

.detail-note {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(50, 245, 200, 0.12);
}

.detail-note h3 {
  color: #9eeedd;
  font-size: 12px;
}

.detail-note p {
  margin-top: 7px;
  color: #9cafbd;
  font-size: 12px;
  line-height: 1.62;
}

.detail-missing {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.detail-missing span {
  padding: 4px 7px;
  border: 1px dashed rgba(245, 184, 75, 0.28);
  border-radius: 4px;
  color: #c7a45f;
  font-size: 9px;
  font-weight: 750;
}

.ranking-panel {
  overflow: hidden;
}

.ranking-head {
  align-items: center;
}

.sector-table-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  border: 1px solid rgba(120, 169, 255, 0.12);
  border-radius: 5px;
}

.sector-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  color: #bdced9;
  font-size: 11px;
}

.sector-table th,
.sector-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(120, 169, 255, 0.09);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sector-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #71899c;
  background: #081019;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sector-table th:first-child,
.sector-table th:nth-child(2),
.sector-table th:nth-child(3),
.sector-table td:first-child,
.sector-table td:nth-child(2),
.sector-table td:nth-child(3) {
  text-align: left;
}

.sector-table tbody tr {
  cursor: pointer;
  transition: background 0.18s ease;
}

.sector-table tbody tr:hover,
.sector-table tbody tr.selected {
  background: rgba(50, 245, 200, 0.055);
}

.sector-table tbody tr:last-child td {
  border-bottom: 0;
}

.sector-name-cell strong,
.sector-name-cell small {
  display: block;
}

.sector-name-cell strong {
  color: #edf8fc;
  font-size: 12px;
}

.entity-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px dashed rgba(245, 184, 75, 0.52);
  border-radius: 3px;
  color: #f5b84b;
  font-size: 8px;
  font-weight: 900;
  vertical-align: 1px;
}

.sector-name-cell small {
  margin-top: 2px;
  color: #688094;
  font-size: 9px;
}

.signal-pill,
.fundamental-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 850;
}

.signal-pill.leader { color: #32f5c8; background: rgba(50, 245, 200, 0.07); }
.signal-pill.improving { color: #78a9ff; background: rgba(120, 169, 255, 0.07); }
.signal-pill.neutral { color: #d3a74f; background: rgba(211, 167, 79, 0.07); }
.signal-pill.laggard { color: #ff6876; background: rgba(255, 104, 118, 0.07); }
.fundamental-pill { color: #8b9dad; border-style: dashed; }

.value-positive { color: #52e3bf; }
.value-negative { color: #ff7b87; }
.value-neutral { color: #9fb2c0; }
.budget-value { color: #9fc0ff; font-weight: 850; }

.sector-empty-row td {
  padding: 28px;
  color: #71889a;
  text-align: center !important;
}

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

.method-card p,
.method-card li {
  color: #94a8b8;
  font-size: 11px;
  line-height: 1.65;
}

.method-card ul {
  margin: 9px 0 0;
  padding-left: 18px;
}

.method-card li + li {
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .sector-main-grid {
    grid-template-columns: 1fr;
  }

  .sector-detail {
    min-height: 0;
  }

}

@media (max-width: 900px) {
  .sector-command {
    grid-template-columns: 1fr;
  }

  .sector-command-action {
    border-top: 1px solid rgba(50, 245, 200, 0.14);
    border-left: 0;
  }

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

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

}

@media (max-width: 640px) {
  .sector-shell {
    display: block;
  }

  .sector-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 14px;
  }

  .sector-sidebar .nav,
  .sector-sidebar-note {
    display: none;
  }

  .sector-brand {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .sector-workspace {
    padding: 12px;
  }

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

  .sector-topbar > div {
    min-width: 0;
  }

  .sector-back-link {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: center;
  }

  .sector-command-copy,
  .sector-command-action {
    padding: 20px;
  }

  .sector-command-copy h2 {
    font-size: 25px;
  }

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

  .sector-kpi {
    padding: 14px;
  }

  .sector-kpi strong {
    font-size: 19px;
  }

  .quadrant-panel,
  .ranking-panel,
  .method-card,
  .sector-detail {
    padding: 14px;
  }

  .sector-panel-head,
  .ranking-head {
    display: grid;
  }

  .sector-quadrant {
    height: 380px;
  }

  .sector-point {
    min-width: 41px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 10px;
  }

  .sector-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
}
