:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #101114;
  --line: rgba(255, 255, 255, 0.09);
  --red: #ff1a1a;
  --flow-gain: #4ade80;
  --flow-loss: #f87171;
}
.workspace {
  background: #090909;
}
.workspace .content {
  max-width: 1600px;
}
.tree-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  margin-bottom: 32px;
  font-family: "Bai Jamjuree", sans-serif;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0.4px;
}
.tree-sidebar .brand img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}
.tree-sidebar .brand span {
  display: block;
  font-size: 12px;
  letter-spacing: 1.2px;
  opacity: 1;
  font-weight: 600;
  margin-top: 3px;
}
.workspace button,
.workspace .panel,
.workspace .metric,
.workspace input,
.dropdown-trigger {
}
.workspace button:focus-visible,
.dropdown-trigger:focus-visible,
.dropdown-option:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.workspace .panel,
.workspace .metric {
  background: #101010;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.workspace .topbar {
  margin-bottom: 24px;
}
.workspace .topbar h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
}
.workspace .topbar p {
  font-size: 13px;
  line-height: 1.7;
}
.workspace .toolbar {
  padding: 14px;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 10px;
}
.workspace input {
  background: #0c0c0c;
}
.workspace .metrics {
  margin-top: 22px;
}
.workspace table th {
  background: #141414;
  font-size: 11px;
  font-weight: 600;
  padding: 16px;
}
.workspace table td {
  padding: 16px;
  border-bottom-color: rgba(255, 255, 255, 0.055);
}
.workspace tbody tr {
}
.workspace tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}
.workspace .panel-title {
  padding: 20px 22px;
}
.workspace .panel-title p {
  margin: 5px 0 0;
  font-size: 11px;
  opacity: 0.65;
  line-height: 1.6;
}
.page-transition {
}
.dropdown-trigger {
  min-width: 145px;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 11px 13px;
  border-radius: 8px;
  background: #111;
}
.dropdown-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-trigger svg {
  flex-shrink: 0;
}
.dropdown-trigger .rotated {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: fixed;
  z-index: 1500;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-shadow: 0 16px 60px #0009;
  outline: none;
}
.dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  gap: 18px;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
}
.dropdown-option.focused,
.dropdown-option:hover {
  background: rgba(255, 255, 255, 0.07);
}
.dropdown-option[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.09);
}
.domain-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 18px;
  gap: 18px;
  margin: 24px 0;
}
.workspace .domain-card {
  display: block;
  text-align: left;
  background: linear-gradient(135deg, #161616, #0d0d0d);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 26px;
}
.workspace .domain-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: #151515;
}
.domain-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.domain-title > svg {
  margin-left: auto;
  opacity: 0.6;
}
.domain-icon,
.modal-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}
.domain-title h2 {
  font-size: 18px;
  margin: 7px 0 0;
}
.domain-card > p {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.7;
  margin: 18px 0;
}
.domain-counts {
  display: flex;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.domain-counts span {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 400;
  gap: 6px;
}
.domain-counts strong {
  font-size: 28px;
  font-weight: 600;
}
.domain-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
}
.dashboard-graphs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0;
}
.section-intro h2 {
  margin: 8px 0 0;
  font-size: 19px;
}
.chart-panel {
  overflow: hidden;
  margin: 0;
}
.chart-panel .panel-title {
  border: 0;
  padding-bottom: 10px;
}
.chart-unit {
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0 24px 12px;
  font-size: 11px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.chart-frame {
  position: relative;
  padding: 0 14px;
}
.chart-frame > svg {
  display: block;
  width: 100%;
  max-height: 250px;
  overflow: visible;
}
.chart-frame rect:focus {
  outline: none;
  stroke: #fff;
  stroke-width: 0.5;
}
.chart-tooltip {
  position: absolute;
  right: 30px;
  top: 8px;
  min-width: 190px;
  padding: 13px 16px;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 12px 24px #0006;
  pointer-events: none;
  font-size: 11px;
}
.chart-tooltip strong {
  display: block;
  margin-bottom: 10px;
}
.chart-tooltip span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 7px;
}
.chart-hint,
.chart-empty {
  font-size: 10px;
  padding: 0 24px 16px;
  margin: 0;
  opacity: 0.6;
}
.chart-empty {
  text-align: center;
  opacity: 1;
}
.finance-heading,
.finance-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.finance-heading h2 {
  font-size: 18px;
}
.finance-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 16px;
  gap: 16px;
}
.finance-metrics .metric {
  margin: 0;
}
.finance-metrics small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  opacity: 0.5;
}
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 18px;
  gap: 18px;
}
.breakdown-panel {
  padding-bottom: 20px;
  margin: 0;
}
.breakdown-row {
  padding: 8px 22px;
}
.breakdown-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 9px;
}
.bar-track {
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.bar-track i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #752323, #ff4545);
  border-radius: 4px;
}
.graph-skeleton {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  margin: 24px 0;
}
.graph-skeleton span {
  height: 180px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #101010, #191919, #101010);
  background-size: 200% 100%;
  border-radius: 16px;
}
.modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
}
.modal-backdrop .modal {
  background: #101010;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.13);
  outline: none;
  max-height: 90vh;
}
.modal-backdrop .modal > header {
  background: #101010;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.modal-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.modal-heading h2 {
  margin: 7px 0 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.modal-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.modal .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.modal .form,
.transaction-detail {
  padding: 26px;
}
.modal .form label {
  font-size: 12px;
  gap: 9px;
}
.modal .form input,
.modal .form .dropdown-trigger {
  min-height: 44px;
  border-radius: 10px;
  background: #0b0b0b;
}
.modal .form > button {
  min-height: 42px;
  border-radius: 9px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal-actions button {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 9px;
}
.remove-member-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: #171717;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.remove-member-card .avatar {
  width: 45px;
  height: 45px;
}
.remove-member-card strong,
.remove-member-card small {
  display: block;
}
.remove-member-card small {
  font-size: 11px;
  opacity: 0.6;
  margin: 5px 0 8px;
}
.transaction-highlight {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 12px;
  padding: 25px;
  background: #151515;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.transaction-highlight > span,
.transaction-highlight small {
  font-size: 12px;
}
.transaction-highlight strong {
  font-size: 34px;
  letter-spacing: -1px;
}
.transaction-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 0 8px;
  font-size: 12px;
}
.transaction-flow span {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.copy-detail {
  width: 100%;
  margin: 14px 0 6px;
}
.resource-tag {
  display: inline-block;
  font-size: 11px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}
.flow-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.flow-tag:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}
.flow-tag.outgoing:before {
  background: #ff4545;
}
.detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0;
  gap: 0;
}
.detail-fields > div {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  min-width: 0;
}
.detail-fields dt {
  font-size: 10px;
  margin-bottom: 7px;
}
.detail-fields dd {
  font-size: 12px;
  line-height: 1.5;
}
.detail-note {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
}
.raw-details {
  margin-top: 20px;
  font-size: 11px;
}
.raw-details summary {
  cursor: pointer;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.raw-details pre {
  overflow: auto;
  max-height: 240px;
  padding: 14px;
  background: #080808;
  white-space: pre-wrap;
}
.modal-backdrop.closing {
}
.modal-backdrop.closing .modal {
}
@media (max-width: 800px) {
  .domain-cards,
  .breakdown-grid {
    grid-template-columns: 1fr;
  }
  .finance-metrics {
    gap: 10px;
  }
  .finance-metrics .metric {
    padding: 16px 12px;
  }
  .finance-metrics .metric strong {
    font-size: 23px;
  }
  .finance-heading {
    flex-wrap: wrap;
  }
  .workspace .content {
    padding: 22px 16px;
  }
  .tree-sidebar .brand {
    margin-bottom: 0;
  }
  .chart-tooltip {
    right: 15px;
    top: 0;
  }
}
@media (max-width: 480px) {
  .finance-metrics {
    grid-template-columns: 1fr;
  }
  .finance-metrics .metric {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .finance-metrics .metric small {
    display: none;
  }
  .detail-fields {
    grid-template-columns: 1fr;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal-backdrop .modal > header,
  .modal .form,
  .transaction-detail {
    padding: 20px;
  }
  .modal-emblem {
    width: 36px;
    height: 36px;
  }
  .domain-card {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workspace *,
  .modal-backdrop,
  .modal-backdrop *,
  .dropdown-menu {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font:
    14px "Bai Jamjuree",
    Arial,
    sans-serif;
}
button,
input,
select,
textarea,
a {
  font: inherit;
  color: #fff;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.65);
}
button:active,
.button:active {
  background: rgba(255, 255, 255, 0.24);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
.neutral {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}
.neutral:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}
input,
select,
textarea {
  background: #121317;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 1px solid rgba(255, 255, 255, 0.55);
}
:focus-visible {
  outline: 2px solid #ff4c4c;
  outline-offset: 3px;
}
input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
select {
  font-size: 12px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  line-height: 1.7;
}
small {
  display: block;
  font-size: 11px;
  opacity: 0.65;
  line-height: 1.7;
}
strong {
  font-weight: 600;
}
a {
  color: inherit;
}
.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
}
.brand {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.brand span {
  font-size: 14px;
  letter-spacing: -0.3px;
  font-weight: 400;
  opacity: 0.45;
}
.eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  opacity: 0.5;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
aside {
  position: fixed;
  width: 230px;
  inset: 0 auto 0 0;
  padding: 34px 19px 20px;
  border-right: 1px solid var(--line);
  background: #0b0c0e;
  display: flex;
  flex-direction: column;
}
aside .brand {
  padding-left: 12px;
}
aside > .eyebrow {
  margin: 44px 12px 12px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav-btn {
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  font-weight: 500;
  font-size: 12px;
  padding: 12px;
}
.nav-btn.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}
.nav-btn.active svg {
  color: #ff4545;
}
.tiny {
  font-size: 8px;
  opacity: 0.5;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 8px 0;
}
.sidebar-bottom > p {
  font-size: 10px;
  opacity: 0.45;
  margin-bottom: 20px;
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
}
.account a {
  margin-left: auto;
  opacity: 0.65;
}
.avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.initials {
  display: grid;
  place-items: center;
  background: #25262a;
  font-size: 11px;
  font-weight: 700;
}
.account strong {
  font-size: 11px;
}
.account small {
  font-size: 8px;
}
.content {
  margin-left: 230px;
  padding: 34px 38px 20px;
  width: calc(100% - 230px);
  max-width: 1900px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 29px;
}
.topbar h1 {
  margin: 9px 0 6px;
}
.topbar p {
  font-size: 12px;
  opacity: 0.55;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 23px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #101114;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding-left: 12px;
  flex: 1 1;
  min-width: 220px;
}
.search svg {
  opacity: 0.45;
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 12px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 15px;
  gap: 15px;
  margin-bottom: 24px;
}
.metric {
  padding: 20px 21px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 9px;
}
.metric > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.metric span {
  font-size: 11px;
  opacity: 0.6;
}
.metric svg {
  opacity: 0.35;
}
.metric strong {
  display: block;
  font-size: 30px;
  margin-top: 14px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.panel-title > span {
  font-size: 10px;
  opacity: 0.5;
}
.panel-title p {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 9px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-gap: 20px;
  gap: 20px;
}
.explain {
  padding: 24px;
}
.explain h2 {
  font-size: 21px;
  margin: 12px 0;
}
.explain p {
  font-size: 12px;
  opacity: 0.65;
  margin-bottom: 19px;
}
.explain > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.queue-row {
  display: flex;
  justify-content: space-between;
  width: calc(100% - 34px);
  margin: 10px 17px;
  padding: 12px 13px;
  text-align: left;
}
.queue-row > span:nth-child(2) {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.65;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.5;
  background: #0d0e10;
  padding: 12px 20px;
}
td {
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}
td small {
  font-size: 10px;
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}
td > button {
  font-size: 10px;
  padding: 7px 10px;
}
.badge {
  font-size: 9px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 5px;
  display: inline-block;
  white-space: nowrap;
  color: #fff;
}
.badge.review,
.badge.escalated {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}
.badge.normal,
.badge.cleared {
  border-color: rgba(255, 255, 255, 0.2);
}
.badge.insufficient {
  opacity: 0.65;
}
.empty {
  padding: 45px 18px;
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin: 18px 0;
}
.pagination > span {
  font-size: 10px;
  opacity: 0.55;
  margin-right: 12px;
}
.icon-btn {
  padding: 8px;
  min-width: 31px;
}
.page-footer {
  margin-top: 28px;
  font-size: 11px;
  opacity: 0.35;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.page-footer span {
  font-size: 9px;
}
.team-panel {
  max-width: 1000px;
  padding-bottom: 14px;
  background: #0c0d0f;
}
.team-panel .panel-title {
  border: 0;
  padding-bottom: 10px;
}
.count {
  font-size: 10px;
  padding: 3px 7px;
  background: #252629;
  border-radius: 20px;
  margin-left: 7px;
}
.member {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 23px;
  padding: 14px 0;
  min-height: 75px;
}
.member-name {
  flex: 1 1;
  min-width: 0;
}
.member-name strong {
  display: block;
  font-size: 12px;
}
.member select {
  font-size: 9px;
  min-width: 91px;
  padding: 7px 9px;
}
.role {
  font-size: 9px;
  font-weight: 700;
  background: #252629;
  border-radius: 16px;
  padding: 3px 8px;
}
.team-note {
  font-size: 10px;
  opacity: 0.45;
  margin: 20px 23px 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.history-detail {
  display: block;
  max-width: 260px;
  white-space: normal;
  word-break: break-word;
  font-size: 10px;
  opacity: 0.65;
}
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  grid-gap: 18px;
  gap: 18px;
  padding: 22px;
}
.clip-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  min-width: 0;
}
.clip-art {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #181a1f, #0a0b0e);
  border-radius: 5px;
  margin-bottom: 15px;
  position: relative;
}
.clip-art svg {
  opacity: 0.3;
}
.clip-art span {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
}
.clip-card > strong {
  display: block;
  overflow-wrap: anywhere;
}
.clip-card > small {
  margin-top: 4px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
dl {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr);
  grid-gap: 9px 16px;
  gap: 9px 16px;
  font-size: 11px;
  margin: 18px 0;
}
dt {
  opacity: 0.5;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  margin-bottom: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.error {
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
.toast {
  position: fixed;
  z-index: 100;
  right: 25px;
  bottom: 25px;
  background: #1e2025;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 15px 60px #0008;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000b;
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal {
  width: min(510px, 100%);
  max-height: 94vh;
  overflow-y: auto;
  background: #101114;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  box-shadow: 0 30px 140px #000;
}
.modal.wide {
  width: min(1150px, 100%);
}
.modal > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 23px;
  border-bottom: 1px solid var(--line);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #101114;
  z-index: 2;
}
.detail-body {
  padding: 23px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}
.detail-heading > .actions {
  flex-shrink: 0;
}
.detail-heading .mono {
  opacity: 0.5;
}
.detail-heading h2 {
  font-size: 22px;
  margin: 8px 0;
}
.detail-heading h2 span {
  opacity: 0.35;
  margin: 0 7px;
}
.detail-heading p {
  font-size: 11px;
  opacity: 0.55;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 18px;
}
.detail-stats > div {
  padding: 15px;
  background: #15161a;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.detail-stats small {
  font-size: 10px;
  opacity: 0.5;
}
.detail-stats strong {
  display: block;
  font-size: 12px;
  margin-top: 7px;
}
.evidence-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-gap: 15px;
  gap: 15px;
}
.subpanel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
}
.subpanel .panel-title {
  padding: 0 0 13px;
  border: 0;
}
.hint {
  font-size: 10px;
  opacity: 0.5;
  line-height: 1.8;
  margin: 10px 0;
}
.reason-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.reason-list li {
  display: flex;
  gap: 10px;
  font-size: 11px;
  line-height: 1.8;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.reason-dot {
  width: 4px;
  height: 4px;
  margin-top: 8px;
  background: #ff4545;
  border-radius: 50%;
  flex-shrink: 0;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  font-size: 12px;
  margin: 13px 0;
}
.holo-placeholder {
  height: 300px;
  border-radius: 6px;
  background: #090a0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  text-align: center;
  font-size: 11px;
  color: #fff;
}
.holo-placeholder svg {
  opacity: 0.3;
}
.holo {
  position: relative;
  height: 330px;
  background: #08090b;
  border-radius: 6px;
  overflow: hidden;
}
.holo canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.holo-legend {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px;
  pointer-events: none;
  font-size: 9px;
  opacity: 0.65;
}
.holo-label {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 10px;
  pointer-events: none;
}
.holo-label b {
  color: #ff4545;
}
.raw {
  font-size: 11px;
}
.raw summary {
  cursor: pointer;
  opacity: 0.65;
}
pre {
  font:
    10px/1.6 ui-monospace,
    Consolas,
    monospace;
  background: #090a0c;
  border-radius: 6px;
  padding: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 350px;
  overflow: auto;
}
.form {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.form > button {
  align-self: flex-start;
}
.form .hint {
  margin: 0;
}
.video-shell {
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  border-radius: 7px;
  overflow: hidden;
}
.video-shell > div {
  width: 100%;
  height: 100%;
  position: relative;
}
.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-shell video + div:not(:last-child) {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000a;
}
.video-shell > div > div:last-child {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #000c;
  font-size: 11px;
}
.video-shell input[type="range"] {
  flex: 1 1;
  min-width: 0;
  padding: 0;
  accent-color: white;
}
.video-shell button {
  font-size: 10px;
  padding: 5px 9px;
}
.clip-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 17px;
}
.clip-bottom > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11px;
}
.spin {
}
.tree-sidebar {
  background: #070707;
}
.citizen-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101010;
  color: #fff;
  font-size: 10px;
  text-decoration: none;
}
.citizen-link:hover {
  background: #202020;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.verify-mobile {
  display: none;
}
.tree-sidebar nav {
  gap: 5px;
  margin-top: 30px;
}
.tree-sidebar .nav-btn,
.nav-group-toggle,
.subnav-btn {
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
  font-weight: 400;
}
.tree-sidebar .nav-btn.active,
.subnav-btn.active {
  background: #232323;
  color: #fff;
}
.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  width: 100%;
  text-align: left;
  border-radius: 7px;
  font-size: 12px;
}
.nav-group-toggle:hover,
.subnav-btn:hover {
  background: #181818;
}
.nav-group-toggle svg {
  opacity: 0.65;
}
.nav-group-toggle svg:last-child {
  margin-left: auto;
  transform: rotate(-90deg);
}
.nav-group-toggle svg.expanded {
  transform: none;
}
.subnav {
  margin: 3px 0 8px 19px;
  padding-left: 8px;
  border-left: 1px solid #242424;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.subnav-btn {
  text-align: left;
  justify-content: flex-start;
  padding: 9px 12px;
  font-size: 11px;
  border-radius: 6px;
}
.economy-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 23px;
  border: 1px solid var(--line);
  background: #0d0d0f;
  border-radius: 12px;
  margin: 20px 0;
}
.economy-summary > div:first-child {
  flex: 1 1;
  min-width: 200px;
}
.economy-summary h2 {
  font-size: 16px;
  margin: 8px 0;
}
.economy-summary p {
  font-size: 11px;
  opacity: 0.65;
  line-height: 1.7;
}
.economy-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.economy-counts small {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin-bottom: 8px;
}
.economy-counts strong {
  font-size: 21px;
}
.history-detail {
  display: inline-block;
  max-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 11px;
}
@media (max-width: 1150px) {
  aside {
    width: 190px;
  }
  .content {
    margin-left: 190px;
    width: calc(100% - 190px);
    padding: 28px 24px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px 15px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .evidence-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .citizen-link {
    display: none;
  }
  .topbar-actions {
    flex-direction: column;
    align-items: flex-end;
  }
  .verify-mobile {
    display: inline-flex;
    font-size: 10px;
    padding: 8px;
  }
  .tree-sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    margin-top: 15px;
    grid-gap: 3px;
    gap: 3px;
    align-items: start;
  }
  .tree-sidebar .nav-btn,
  .nav-group-toggle {
    font-size: 10px;
    gap: 5px;
    padding: 9px 5px;
  }
  .nav-group-toggle svg {
    width: 12px;
  }
  .nav-group-toggle svg:last-child {
    width: 9px;
  }
  .subnav {
    margin-left: 6px;
    padding-left: 4px;
  }
  .subnav-btn {
    font-size: 9px;
    padding: 7px 3px;
    white-space: normal;
  }
  .economy-summary {
    padding: 17px;
    gap: 16px;
  }
  .economy-counts {
    gap: 17px;
  }
  .workspace {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    padding: 17px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside > .eyebrow,
  .sidebar-bottom > p {
    display: none;
  }
  aside .brand {
    padding-left: 0;
    font-size: 23px;
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    margin-top: 14px;
  }
  .nav-btn {
    font-size: 10px;
    white-space: nowrap;
    padding: 9px;
  }
  .nav-btn svg {
    width: 14px;
  }
  .tiny {
    display: none;
  }
  .sidebar-bottom {
    padding: 0;
    position: absolute;
    right: 16px;
    top: 17px;
  }
  .account .avatar {
    width: 28px;
    height: 28px;
  }
  .account strong {
    max-width: 80px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .account small {
    display: none;
  }
  .content {
    margin: 0;
    width: 100%;
    padding: 23px 16px;
  }
  .topbar h1 {
    font-size: 24px;
  }
  .topbar p {
    font-size: 10px;
  }
  .topbar > button {
    font-size: 10px;
    padding: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .metric strong {
    font-size: 26px;
  }
  .metric span {
    font-size: 10px;
  }
  .panel-title {
    padding: 17px;
  }
  .panel-title h2 {
    font-size: 13px;
  }
  .panel-title > span {
    max-width: 140px;
    font-size: 9px;
  }
  .page-footer span {
    display: none;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    max-height: 96vh;
  }
  .detail-body {
    padding: 15px;
  }
  .detail-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .detail-heading h2 {
    font-size: 18px;
  }
  .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .detail-stats > div {
    padding: 12px;
  }
  .clip-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .member {
    gap: 10px;
    margin: 0 16px;
  }
  .member .avatar {
    width: 32px;
    height: 32px;
  }
  .member-name small {
    font-size: 9px;
  }
  .member select {
    min-width: 77px;
  }
  .team-note {
    margin: 15px 16px;
  }
}

html {
  scroll-behavior: auto;
}
.domain-icon,
.modal-emblem {
  display: none;
}
.workspace input:focus,
.workspace textarea:focus,
.modal input:focus,
.modal textarea:focus {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
  outline: none;
}
.workspace button:active,
.modal button:active {
  transform: none;
}
.icon-btn,
.modal header .icon-btn {
  width: auto;
  min-width: 34px;
  padding: 8px 12px;
  font-size: 12px;
}
.separated-domains {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.economy-explorer {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.explorer-intro h2 {
  margin: 0;
  font-size: 22px;
}
.explorer-intro p,
.explorer-context span {
  font-size: 12px;
  line-height: 1.7;
  color: #aaa;
}
.explorer-filters {
  margin: 0;
  padding: 20px;
}
.explorer-preset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
}
.explorer-preset > span:last-child {
  margin-left: auto;
  color: #888;
}
.explorer-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
}
.explorer-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  min-width: 0;
}
.explorer-filter-grid input,
.explorer-filter-grid .dropdown-trigger {
  width: 100%;
  min-width: 0;
  height: 42px;
}
.explorer-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.explorer-filter-actions small {
  flex: 1 1;
  min-width: 180px;
  color: #888;
  font-size: 11px;
  line-height: 1.6;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chips:empty {
  display: none;
}
.filter-chips button {
  font-size: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.explorer-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.workspace .explorer-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  grid-gap: 12px;
  gap: 12px;
}
.explorer-metrics .metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  min-width: 0;
}
.explorer-metrics .metric strong {
  font-size: 25px;
  overflow-wrap: anywhere;
}
.explorer-metrics .metric small {
  color: #888;
  font-size: 10px;
}
.explorer-chart {
  margin: 0;
}
.economy-rankings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  align-items: flex-start;
}
.rank-panel {
  margin: 0;
  min-width: 0;
}
.rank-panel .panel-title {
  padding: 18px;
  align-items: flex-start;
}
.rank-panel .panel-title h2 {
  font-size: 14px;
}
.rank-panel .panel-title > span {
  font-size: 10px;
  white-space: nowrap;
  color: #888;
}
.ranking-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-block: 1px solid var(--line);
  font-size: 10px;
  color: #888;
  gap: 10px;
}
.workspace .ranking-row {
  display: flex;
  width: 100%;
  align-items: flex-start;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 14px;
  gap: 10px;
  font-weight: 400;
}
.workspace .ranking-row:hover {
  background: #191919;
}
.rank-position {
  color: #888;
  font-size: 11px;
  width: 20px;
  flex-shrink: 0;
}
.rank-identity {
  flex: 1 1;
  min-width: 0;
}
.rank-identity strong {
  font-size: 12px;
  display: block;
  overflow-wrap: anywhere;
}
.rank-identity small {
  display: block;
  font-size: 10px;
  color: #888;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.ranking-row > strong {
  font-size: 12px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ranking-meter {
  display: block;
  height: 3px;
  background: #262626;
  margin-top: 10px;
}
.ranking-meter i {
  display: block;
  height: 100%;
  background: #ccc;
}
.workspace .text-button {
  display: inline;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  overflow-wrap: anywhere;
}
.workspace .text-button:hover {
  text-decoration: underline;
}
.explorer-ledger {
  margin: 0;
}
.explorer-ledger .pagination {
  padding: 16px;
}
@media (max-width: 1150px) {
  .explorer-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace .explorer-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .economy-rankings {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .separated-domains {
    grid-template-columns: 1fr;
  }
  .explorer-context {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .explorer-filter-grid {
    grid-template-columns: 1fr;
  }
  .workspace .explorer-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .explorer-filters {
    padding: 16px;
  }
  .explorer-ledger .panel-title {
    flex-wrap: wrap;
  }
}

.content > [hidden] {
  display: none;
}
.tree-sidebar nav {
  margin-top: 16px;
  gap: 6px;
}
.sidebar-context {
  padding: 18px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-context strong {
  color: #eee;
  font-size: 11px;
}
.sidebar-context span {
  color: #999;
  font-size: 10px;
  line-height: 1.6;
}
.tree-sidebar .nav-btn,
.tree-sidebar .nav-group-toggle,
.tree-sidebar .subnav-btn {
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  min-height: 38px;
}
.tree-sidebar .nav-group-toggle {
  color: #aaa;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
}
.nav-group-toggle small {
  margin-left: auto;
  font-size: 9px;
  color: #777;
}
.tree-sidebar .subnav {
  margin: 2px 0 2px 12px;
  padding-left: 10px;
  gap: 4px;
}
.tree-sidebar .subnav-btn {
  padding: 10px 12px;
  font-size: 12px;
}
.explorer-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.explorer-tabs button.active {
  background: #292929;
  border-color: #555;
}
.explorer-tabs > span {
  margin-left: auto;
  font-size: 11px;
  color: #aaa;
}
.economy-rankings {
  align-items: stretch;
}
.rank-panel {
  height: 470px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rank-panel .panel-title {
  height: 94px;
  flex-shrink: 0;
}
.rank-panel .ranking-head {
  min-height: 44px;
  flex-shrink: 0;
  align-items: center;
}
.ranking-list {
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.ranking-entry {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
.ranking-entry > input {
  margin: 18px 0 0 12px;
  flex-shrink: 0;
}
.workspace .ranking-row {
  min-height: 92px;
  min-width: 0;
  flex: 1 1;
}
.rank-identity {
  min-width: 0;
}
.selection-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px;
  background: #111;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.selection-tray > div {
  flex: 1 1;
  min-width: 210px;
}
.selection-tray strong {
  font-size: 12px;
}
.selection-tray small {
  display: block;
  color: #999;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 6px;
}
.selection-tray > span {
  color: #ddd;
  font-size: 11px;
}
.workspace input[type="checkbox"] {
  accent-color: #eee;
  width: 15px;
  height: 15px;
  min-width: 15px;
  cursor: pointer;
  padding: 0;
}
.screening-panel {
  margin: 0;
}
.investigation-summary {
  margin: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.investigation-summary > div {
  flex: 1 1;
  min-width: 200px;
}
.investigation-summary h3 {
  margin: 0;
  font-size: 14px;
}
.investigation-summary p {
  color: #aaa;
  font-size: 11px;
  line-height: 1.8;
}
.explorer-ledger[hidden] {
  display: none;
}
.quick-filter-heading,
.compact-filter-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.quick-filter-heading strong {
  font-size: 13px;
}
.quick-period,
.account-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.account-switch {
  margin-top: 16px;
}
.account-switch .active {
  background: rgba(255, 255, 255, 0.1);
  border-color: #555;
}
.quick-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  grid-gap: 16px;
  gap: 16px;
  align-items: end;
  margin-top: 18px;
}
.quick-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
}
.quick-filter-grid input {
  width: 100%;
  height: 42px;
  min-width: 0;
}
.quick-filter-grid button {
  height: 42px;
  padding-inline: 24px;
}
.advanced-filters {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.advanced-filters summary {
  cursor: pointer;
  color: #aaa;
  font-size: 11px;
}
.advanced-filters .explorer-filter-grid {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.compact-filter-footer {
  margin-top: 18px;
  color: #999;
  font-size: 10px;
}
.detection-inbox {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tree-sidebar button[aria-current="page"] {
  background: #232323;
  color: #fff;
  font-weight: 600;
}
.detection-intro {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: space-between;
}
.detection-intro h2 {
  margin: 0;
  font-size: 22px;
}
.detection-intro p {
  color: #aaa;
  line-height: 1.8;
  font-size: 12px;
}
.detection-intro small {
  color: #aaa;
  font-size: 10px;
  white-space: nowrap;
}
.detection-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}
.detection-categories button {
  padding: 18px;
  justify-content: space-between;
  font-size: 12px;
}
.detection-categories strong {
  font-size: 22px;
}
.detection-categories .active {
  background: rgba(255, 255, 255, 0.08);
  border-color: #666;
}
.detection-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.detection-tools input {
  flex: 1 1;
  min-width: 200px;
}
.detection-tools > span {
  font-size: 11px;
  color: #aaa;
}
.case-list {
  margin: 0;
}
.case-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr) auto;
  grid-gap: 24px;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.case-row:last-child {
  border-bottom: 0;
}
.case-row h3 {
  margin: 8px 0;
  font-size: 14px;
}
.case-row p {
  font-size: 12px;
  line-height: 1.8;
  color: #ccc;
}
.case-row small,
.case-domain {
  color: #999;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.case-explanation strong {
  font-size: 12px;
}
.case-explanation p {
  white-space: pre-line;
  margin: 8px 0;
}
.case-summary {
  white-space: pre-line;
  line-height: 1.9;
  font-size: 13px;
}
.workspace button:not(.ranking-row):not(.text-button):hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}
@media (max-width: 900px) {
  .detection-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .detection-intro {
    flex-direction: column;
    gap: 6px;
  }
  .advanced-filters .explorer-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .quick-filter-grid {
    grid-template-columns: 1fr;
  }
  .advanced-filters .explorer-filter-grid {
    grid-template-columns: 1fr;
  }
  .detection-categories button {
    padding: 14px;
    font-size: 11px;
  }
}
.screening-panel > .hint {
  padding: 0 20px;
  line-height: 1.8;
}
.risk-score {
  display: inline-block;
  padding: 5px 8px;
  background: #252525;
  border-radius: 5px;
  white-space: nowrap;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.screening-panel td small {
  color: #aaa;
  line-height: 1.7;
}
.ai-review {
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #101010;
}
.ai-review h3 {
  margin: 0;
  font-size: 14px;
}
.ai-review .hint,
.ai-review .error {
  padding: 0 18px;
}
.ai-review .panel-title {
  gap: 14px;
  flex-wrap: wrap;
}
.ai-result {
  padding: 0 18px 18px;
}
.ai-result p {
  white-space: pre-wrap;
  line-height: 1.9;
  font-size: 12px;
  color: #ddd;
}
.ai-result small {
  color: #999;
  font-size: 10px;
}
.workspace button,
.modal button {
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease !important;
}
@media (prefers-reduced-motion: reduce) {
  .workspace button,
  .modal button {
    transition: none !important;
  }
}
@media (max-width: 800px) {
  .sidebar-context {
    display: none;
  }
  .tree-sidebar .nav-group-toggle {
    margin-top: 0;
  }
  .tree-sidebar .subnav {
    margin-left: 0;
    padding-left: 0;
  }
  .explorer-tabs > span {
    margin-left: 0;
    width: 100%;
  }
}

.scoped-rankings {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: stretch;
}
@media (min-width: 721px) {
  .tree-sidebar nav {
    flex: 1 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .tree-sidebar .brand,
  .tree-sidebar .sidebar-context,
  .tree-sidebar .sidebar-bottom {
    flex-shrink: 0;
  }
}
.scoped-rankings:empty {
  display: none;
}
.scoped-rankings .rank-panel {
  height: auto;
  overflow: visible;
}
.scoped-rankings .ranking-list {
  overflow: visible;
  scrollbar-gutter: auto;
}
.scoped-rankings .ranking-row {
  min-height: 82px;
}
.economy-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
}
.workspace .economy-entry {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-height: 200px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101010;
}
.economy-entry small {
  color: #999;
  letter-spacing: 1.5px;
  font-size: 10px;
}
.economy-entry h2 {
  margin: 18px 0 8px;
  font-size: 22px;
}
.economy-entry p,
.section-description {
  color: #aaa;
  font-size: 13px;
  line-height: 1.9;
}
.economy-entry span {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
}
.directory-search {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
}
.directory-search .account-switch {
  margin: 0;
  align-self: center;
}
.directory-search label {
  display: flex;
  flex: 1 1;
  min-width: 180px;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
.directory-search input {
  width: 100%;
  height: 42px;
}
.directory-search > button {
  height: 42px;
}
.motion-enter,
.economy-view:not([hidden]) > .economy-explorer,
.detection-inbox,
.modal {
  animation: workspace-reveal 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes workspace-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.workspace .panel,
.workspace .metric,
.workspace .ranking-row {
  transition:
    background-color 220ms ease,
    border-color 220ms ease;
}
.dropdown-menu {
  animation: menu-reveal 180ms ease-out;
  transform-origin: top;
}
@keyframes menu-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 700px) {
  .economy-entry-grid {
    grid-template-columns: 1fr;
  }
  .workspace .economy-entry {
    min-height: 175px;
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.flow-gain {
  color: var(--flow-gain);
}
.flow-loss {
  color: var(--flow-loss);
}
.economy-inspection {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-gap: 16px;
  gap: 16px;
  align-items: start;
}
.inspection-summary {
  min-width: 0;
}
.economy-inspection .explorer-context {
  margin: 0 0 12px;
  flex-wrap: wrap;
  font-size: 10px;
}
.economy-inspection .explorer-context strong {
  font-size: 13px;
}
.workspace .economy-inspection .explorer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 16px;
  padding: 12px 0;
  border-block: 1px solid var(--line);
}
.economy-inspection .explorer-metrics .metric {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.economy-inspection .explorer-metrics .metric span {
  font-size: 10px;
}
.economy-inspection .explorer-metrics .metric strong {
  font-size: 17px;
  margin-top: 5px;
}
.economy-inspection .explorer-metrics .metric small {
  display: none;
}
.economy-inspection .panel {
  border-radius: 10px;
}
.economy-inspection .panel-title {
  padding: 12px 14px;
}
.economy-inspection .panel-title h2 {
  font-size: 12px;
}
.economy-inspection .panel-title p {
  font-size: 10px;
}
.economy-inspection .rank-panel .panel-title {
  height: auto;
}
.economy-inspection .rank-panel .ranking-head {
  min-height: 30px;
}
.economy-inspection .scoped-rankings {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.economy-inspection .scoped-rankings .ranking-row {
  min-height: 48px;
  padding: 8px 10px;
  gap: 8px;
}
.economy-inspection .rank-identity strong,
.economy-inspection .ranking-row > strong {
  font-size: 11px;
}
.economy-inspection .rank-identity small {
  margin-top: 3px;
  font-size: 9px;
}
.economy-inspection .ranking-meter {
  margin-top: 5px;
  height: 2px;
}
.economy-inspection .ranking-head {
  padding: 8px 10px;
  font-size: 9px;
}
.economy-inspection .explorer-ledger {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.economy-inspection .selection-tray {
  grid-column: 1 / -1;
  margin: 0;
}
.economy-inspection .selection-tray[hidden],
.economy-inspection .explorer-ledger[hidden] {
  display: none;
}
.economy-inspection[data-catalog="true"],
.economy-inspection[data-view="ledger"] {
  grid-template-columns: minmax(0, 1fr);
}
.economy-inspection[data-view="ledger"] .explorer-ledger {
  grid-column: 1;
  grid-row: auto;
}
.economy-inspection[data-view="overview"] .explorer-ledger table {
  table-layout: fixed;
  min-width: 0;
}
.economy-inspection[data-view="overview"] .explorer-ledger :is(th, td) {
  padding: 9px 6px;
  font-size: 10px;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.economy-inspection[data-view="overview"] .explorer-ledger :is(th, td):nth-child(1) {
  width: 25px;
}
.economy-inspection[data-view="overview"] .explorer-ledger :is(th, td):nth-child(2) {
  width: 85px;
}
.economy-inspection[data-view="overview"] .explorer-ledger :is(th, td):nth-child(6) {
  width: 75px;
}
.economy-inspection[data-view="overview"] .explorer-ledger :is(th, td):nth-child(9) {
  width: 74px;
}
.economy-inspection[data-view="overview"]
  .explorer-ledger
  :is(th, td):is(:nth-child(4), :nth-child(5), :nth-child(7), :nth-child(8)) {
  display: none;
}
.economy-inspection[data-view="overview"] .explorer-ledger .text-button {
  font-size: 10px;
}
.economy-inspection[data-view="overview"] .explorer-ledger td small {
  font-size: 9px;
  margin-top: 3px;
}
.economy-inspection[data-view="overview"] .explorer-ledger td:nth-child(9) button {
  padding: 5px;
  font-size: 9px;
  min-height: 0;
}
.explorer-ledger tbody tr[data-flow="gain"] td:first-child {
  border-left: 2px solid var(--flow-gain);
}
.explorer-ledger tbody tr[data-flow="loss"] td:first-child {
  border-left: 2px solid var(--flow-loss);
}
.explorer-ledger td.flow-gain small,
.explorer-ledger td.flow-loss small {
  color: inherit;
}
.log-context {
  margin-top: 4px;
  color: #aaa;
}
.economy-inspection[data-view="overview"] .log-identifier {
  display: none;
}
.economy-inspection[data-view="overview"] .explorer-ledger :is(th, td):nth-child(2) {
  width: 60px;
}
.explorer-ledger .pagination {
  flex-wrap: wrap;
  gap: 8px;
}
.explorer-ledger .pagination .dropdown-trigger {
  min-width: 95px;
  padding: 7px 10px;
  font-size: 10px;
}
.economy-inspection[data-view="ledger"] .log-context {
  display: none;
}
.explorer-intro p {
  display: none;
}
.economy-explorer .explorer-intro {
  display: none;
}
.search-drawer > summary {
  cursor: pointer;
  font-size: 11px;
  padding: 10px 0 0;
  color: #ddd;
}
.search-drawer[open] > summary {
  margin-bottom: 12px;
}
.economy-explorer {
  gap: 12px;
}
.compact-filter .quick-filter-heading {
  margin-bottom: 0;
}
.compact-filter .account-switch {
  margin: 12px 0 0;
}
.explorer-intro h2 {
  font-size: 16px;
  margin: 0 0 12px;
}
.explorer-filters.compact-filter {
  padding: 12px 14px;
  border-radius: 10px;
}
.compact-filter-footer {
  display: none;
}
@media (max-width: 1100px) {
  .economy-inspection {
    grid-template-columns: minmax(0, 1fr);
  }
  .economy-inspection .explorer-ledger {
    grid-column: 1;
    grid-row: auto;
  }
}
@media (max-width: 600px) {
  .economy-inspection[data-view="overview"] .explorer-ledger {
    display: none;
  }
  .economy-inspection .explorer-metrics {
    gap: 12px;
  }
}
.filter-workbench {
  position: relative;
  z-index: 5;
}
.filter-command-bar {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-block: 12px;
  border-block: 1px solid var(--line);
}
.filter-command-bar > .dropdown-trigger {
  margin-left: auto;
  flex-shrink: 0;
  min-width: 125px;
}
.filter-command-bar > .add-filter {
  flex-shrink: 0;
  min-height: 39px;
  padding: 10px 14px;
}
.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.workspace .filter-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  min-height: 39px;
  max-width: 100%;
}
.filter-tag > span:first-child {
  color: #999;
  font-size: 10px;
}
.filter-tag strong {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.filter-picker {
  position: fixed;
  z-index: 1400;
  overflow-y: auto;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px;
  background: #121212;
  box-shadow: 0 18px 50px #0009;
}
.filter-picker-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}
.filter-picker-heading button {
  padding: 5px 9px;
  font-size: 10px;
}
.filter-picker > .dropdown-trigger,
.filter-picker > input {
  width: 100%;
  margin-bottom: 10px;
}
.filter-picker > input {
  font-size: 11px;
  min-height: 38px;
}
.filter-picker input {
  background: #0c0c0c;
}
.filter-picker :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.filter-picker input:focus {
  border-color: #555;
  box-shadow: none;
}
.filter-choice-list {
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.filter-choice-list > label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.filter-choice-list input {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.filter-choice-list strong {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.filter-choice-list small {
  font-size: 10px;
  color: #999;
}
.filter-choice-list > label > small {
  margin-left: auto;
}
.filter-choice-list > p {
  padding: 12px;
  font-size: 11px;
}
.filter-picker-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.filter-picker-actions > span {
  margin-right: auto;
  font-size: 10px;
  color: #aaa;
}
.filter-picker-actions button {
  font-size: 11px;
}
.filter-static-options {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}
.filter-static-options button {
  justify-content: flex-start;
  font-size: 11px;
}
.filter-date-range {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}
.filter-date-range label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  font-size: 11px;
}
.filter-date-range input {
  width: 100%;
}
@media (max-width: 600px) {
  .filter-command-bar {
    flex-wrap: wrap;
  }
  .active-filter-tags {
    order: 3;
    width: 100%;
  }
  .filter-picker {
    width: 100%;
  }
}
.economy-inspection .dense-rank-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.economy-inspection .dense-rank-panel .panel-title {
  padding: 12px 0 8px;
  border: 0;
}
.economy-inspection .dense-rank-panel .panel-title h2 {
  font-size: 12px;
}
.economy-inspection .dense-ranking-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 75px 75px;
  padding: 8px 4px;
  min-height: 0;
  border-top: 0;
}
.dense-ranking-head > span:not(:first-child) {
  text-align: right;
}
.economy-inspection .scoped-rankings .dense-ranking-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 75px 75px;
  align-items: center;
  min-height: 29px;
  grid-gap: 4px;
  gap: 4px;
  padding: 6px 4px;
}
.dense-ranking-row .rank-identity strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.dense-ranking-row .rank-position {
  font-size: 9px;
  color: #777;
}
.dense-ranking-row .rank-gain,
.dense-ranking-row .rank-loss {
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.dense-rank-panel .ranking-entry > input {
  width: 12px;
  height: 12px;
  margin: 0 6px 0 0;
}
.dense-rank-panel .ranking-entry {
  align-items: center;
}
.economy-inspection .explorer-ledger {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.economy-inspection .explorer-ledger .panel-title {
  padding: 0 0 10px;
}
.economy-inspection .explorer-ledger .panel-title p {
  margin: 3px 0 0;
}
.economy-inspection .explorer-ledger .pagination {
  padding: 12px 0;
}
.economy-inspection .explorer-ledger .log-table {
  width: 100%;
  table-layout: auto;
  min-width: 0;
}
.economy-inspection .explorer-ledger .log-table :is(th, td) {
  padding: 0;
  width: auto;
  background: transparent;
  opacity: 1;
}
.log-line {
  display: grid;
  grid-template-columns: 16px 55px minmax(110px, 0.9fr) minmax(120px, 1fr) minmax(80px, 0.7fr) 70px;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  min-width: 510px;
  font-size: 11px;
}
.log-line input {
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
}
.log-column-head {
  padding-block: 9px;
  color: #888;
  font-size: 10px;
  font-weight: 400;
}
.workspace .log-line .text-button {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.workspace .log-line .log-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}
.log-line .log-value {
  text-align: right;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
}
.log-line .log-resource,
.log-line .log-name {
  color: #b7b7b7;
}
@media (min-width: 1101px) and (max-width: 1399px) {
  .economy-inspection {
    grid-template-columns: minmax(0, 1fr);
  }
  .economy-inspection .explorer-ledger {
    grid-column: 1;
    grid-row: auto;
  }
}
.reference-economy-workspace .content {
  padding: 24px 24px 18px;
}
.reference-economy-workspace .topbar {
  margin-bottom: 12px;
}
.reference-economy-workspace .topbar .eyebrow,
.reference-economy-workspace .topbar p {
  display: none;
}
.reference-economy-workspace .topbar h1 {
  margin: 0;
  font-size: 20px;
}
.reference-economy-workspace .economy-explorer {
  gap: 0;
  position: relative;
}
.reference-economy-workspace .explorer-tabs {
  position: absolute;
  top: -39px;
  right: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.reference-economy-workspace .explorer-tabs button {
  padding: 7px 10px;
  font-size: 10px;
}
.reference-economy-workspace .explorer-tabs > span {
  font-size: 9px;
}
.reference-economy-workspace .filter-command-bar {
  border-top: 0;
  padding: 10px 0 14px;
  align-items: center;
}
.reference-economy-workspace .filter-command-bar > .add-filter,
.reference-economy-workspace .filter-tag {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 4px;
}
.reference-economy-workspace .filter-command-bar > .dropdown-trigger {
  min-width: 110px;
  min-height: 34px;
  padding: 8px 10px;
}
.reference-economy-workspace .economy-inspection {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
  padding-top: 14px;
  align-items: start;
}
.reference-economy-workspace .inspection-summary {
  padding-right: 18px;
}
.reference-economy-workspace .explorer-context {
  gap: 5px;
}
.reference-economy-workspace .explorer-context > strong {
  font-size: 11px;
}
.reference-economy-workspace .explorer-context > span {
  font-size: 9px;
}
.reference-economy-workspace .explorer-metrics {
  display: flex;
  flex-wrap: wrap;
  padding: 8px 0 12px;
  margin: 0;
  border: 0;
  gap: 12px;
}
.reference-economy-workspace .explorer-metrics .metric {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
.reference-economy-workspace .explorer-metrics .metric strong {
  font-size: 11px;
  margin: 0;
}
.reference-economy-workspace .explorer-metrics .metric span {
  font-size: 9px;
}
.reference-economy-workspace .reference-flow-chart {
  border: 0;
  background: transparent;
  margin: 0 0 12px;
  padding: 0;
}
.reference-flow-chart .chart-frame {
  padding: 0;
  min-height: 0;
}
.reference-flow-chart svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: "JetBrains Mono", monospace;
}
.reference-economy-workspace .scoped-rankings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.reference-economy-workspace .dense-rank-panel .panel-title {
  padding: 6px 0 4px;
}
.reference-economy-workspace .dense-rank-panel .panel-title h2 {
  font-size: 11px;
}
.reference-economy-workspace .dense-rank-panel .panel-title > span {
  color: #999;
  font-size: 9px;
}
.reference-economy-workspace .dense-ranking-head {
  grid-template-columns: minmax(0, 1fr) 64px 64px;
  padding: 4px 0;
  font-size: 8px;
  border: 0;
}
.reference-economy-workspace .scoped-rankings .dense-ranking-row {
  grid-template-columns: minmax(0, 1fr) 64px 64px;
  min-height: 22px;
  padding: 3px 0;
  gap: 2px;
  border: 0;
  border-radius: 0;
}
.reference-economy-workspace .dense-ranking-row .rank-position {
  display: none;
}
.reference-economy-workspace .dense-ranking-row .rank-identity {
  position: relative;
  min-width: 0;
  padding: 1px 3px;
}
.rank-background {
  position: absolute;
  inset: 0 auto 0 0;
  background: #222;
  pointer-events: none;
}
.reference-economy-workspace .rank-identity strong {
  position: relative;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #bfc0c5;
  line-height: 16px;
}
.reference-economy-workspace .dense-ranking-row .rank-gain,
.reference-economy-workspace .dense-ranking-row .rank-loss {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.reference-economy-workspace .ranking-entry > input {
  width: 10px;
  height: 10px;
  margin-right: 4px;
}
.reference-economy-workspace .explorer-ledger {
  border-left: 1px solid #303033;
  padding-left: 14px;
}
.reference-economy-workspace .explorer-ledger .panel-title {
  padding-bottom: 5px;
}
.reference-economy-workspace .explorer-ledger .panel-title h2 {
  font-size: 11px;
}
.reference-economy-workspace .explorer-ledger .panel-title p {
  display: none;
}
.reference-economy-workspace .log-line {
  grid-template-columns: 12px 122px minmax(90px, 1fr) minmax(90px, 1fr) minmax(70px, 0.8fr) 66px;
  min-width: 490px;
  gap: 4px;
  padding: 3px 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 17px;
}
.reference-economy-workspace .log-column-head {
  font-size: 9px;
  padding-block: 4px;
}
.reference-economy-workspace .log-line input {
  width: 10px;
  height: 10px;
}
.reference-economy-workspace .explorer-ledger .log-line .text-button {
  font-family: inherit;
  font-size: 10px;
  font-weight: 400;
  line-height: 17px;
}
.reference-economy-workspace .explorer-ledger .log-line .log-time {
  font-size: 9px;
  white-space: nowrap;
  text-overflow: clip;
}
.reference-economy-workspace .log-line .log-value {
  font-size: 10px;
}
.reference-economy-workspace .explorer-ledger tbody td {
  border-bottom: 2px solid #090909;
}
.reference-economy-workspace .explorer-ledger .pagination {
  padding: 12px 0 0;
}
.reference-economy-workspace .explorer-ledger .pagination button {
  min-height: 28px;
  padding: 6px 9px;
  font-size: 10px;
}
.log-field-prefix {
  color: #75757e;
}
.reference-economy-workspace .hint {
  font-size: 9px;
  margin: 8px 0;
}
.reference-economy-workspace .economy-inspection[data-catalog="true"],
.reference-economy-workspace .economy-inspection[data-view="ledger"] {
  grid-template-columns: minmax(0, 1fr);
}
.reference-economy-workspace .economy-inspection[data-view="ledger"] .inspection-summary {
  padding-right: 0;
}
.reference-economy-workspace .economy-inspection[data-view="ledger"] .explorer-ledger {
  border: 0;
  padding-left: 0;
}
@media (max-width: 1100px) {
  .reference-economy-workspace .economy-inspection {
    grid-template-columns: minmax(0, 1fr);
  }
  .reference-economy-workspace .inspection-summary {
    padding-right: 0;
  }
  .reference-economy-workspace .explorer-ledger {
    border: 0;
    border-top: 1px solid #303033;
    margin-top: 12px;
    padding: 12px 0 0;
  }
}
@media (max-width: 600px) {
  .reference-economy-workspace .content {
    padding: 20px 16px;
  }
  .reference-economy-workspace .scoped-rankings {
    grid-template-columns: minmax(0, 1fr);
  }
  .reference-economy-workspace .explorer-tabs {
    position: static;
    padding-bottom: 8px;
  }
  .reference-economy-workspace .log-line {
    min-width: 550px;
  }
  .reference-economy-workspace .rank-identity strong {
    font-size: 11px;
  }
}
.reference-economy-workspace .log-line {
  grid-template-columns: 28px 122px minmax(145px, 1fr) minmax(90px, 1fr) minmax(70px, 0.8fr) 66px;
  min-width: 550px;
}
.reference-economy-workspace .scoped-rankings:has([data-rank-kind="player"]) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.8fr);
}
.reference-economy-workspace
  .scoped-rankings:has([data-rank-kind="player"]):not(:has([data-rank-kind="resource"])) {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr);
}
.reference-economy-workspace .scoped-rankings:not(:has([data-rank-kind="player"])) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.workspace .steam-copy {
  flex-shrink: 0;
  min-height: 22px;
  width: 60px;
  padding: 3px 4px;
  font-size: 8px;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  border-radius: 3px;
  line-height: 14px;
}
.ranking-entry > .steam-copy {
  margin-right: 4px;
}
.reference-economy-workspace [data-rank-kind="player"] .rank-identity strong {
  font-size: 9px;
  font-weight: 400;
  white-space: nowrap;
}
.reference-economy-workspace .explorer-ledger .log-line .log-player {
  font-size: 9px;
}
@media (max-width: 600px) {
  .reference-economy-workspace .scoped-rankings:has([data-rank-kind="player"]),
  .reference-economy-workspace
    .scoped-rankings:has([data-rank-kind="player"]):not(:has([data-rank-kind="resource"])) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .economy-inspection .scoped-rankings {
    grid-template-columns: 1fr;
  }
}

.workspace .steam-copy {
  width: 22px;
  min-height: 20px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.holo-container {
  border: 1px solid #2a2a2d;
  border-radius: 12px;
  overflow: hidden;
  background: #101011;
}
.holo-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}
.holo-summary strong {
  font-size: 14px;
}
.holo-summary p {
  font-size: 11px;
  color: #939397;
  margin: 5px 0 0;
}
.holo-selection {
  margin-top: 14px;
  padding: 12px;
  border-left: 2px solid #e4bc68;
  background: #202022;
}
.holo-selection small {
  color: #aaa;
  font-size: 10px;
}
.holo-verdict button {
  margin-top: 12px;
}
.holo-verdict .holo-vitals {
  grid-template-columns: minmax(80px, 1fr) minmax(0, 1.3fr);
}
.holo-clip > div {
  height: 100%;
}
.holo-clip video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.holo-clip select {
  background: #242427;
  color: #eee;
  border: 1px solid #444;
  border-radius: 5px;
  padding: 5px;
}
.holo-clip .absolute.bottom-0 {
  flex-wrap: wrap;
}
.holo-clip input[type="range"] {
  min-width: 100px;
}
.holo-container button,
.holo-dialog button {
  background: #1b1b1e;
  border: 1px solid #343438;
  color: #ececee;
  border-radius: 7px;
  font-size: 11px;
  padding: 9px 12px;
  cursor: pointer;
}
.holo-dialog button:hover,
.holo-container button:hover {
  background: #29292c;
}
.holo-dialog button:focus-visible,
.holo-container button:focus-visible,
.holo-details summary:focus-visible {
  outline: 2px solid #ddd;
  outline-offset: 3px;
}
.holo-dialog button:disabled,
.holo-container button:disabled {
  opacity: 0.4;
  cursor: default;
}
.holo-stage {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: #0b0b0c;
}
.holo-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.holo-stage-badge {
  position: absolute;
  left: 22px;
  top: 22px;
  pointer-events: none;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #b3b3b7;
}
.holo-stage-badge small {
  display: block;
  margin-top: 9px;
  color: #74747b;
  letter-spacing: 0;
  font-size: 10px;
}
.holo-live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #e3e3e5;
  border-radius: 50%;
  margin-right: 7px;
}
.holo-stage-impact {
  position: absolute;
  top: 22px;
  right: 22px;
  text-align: right;
  pointer-events: none;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}
.holo-stage-impact span {
  font-size: 9px;
  color: #ff4444;
  font-weight: 700;
  letter-spacing: 1.8px;
}
.holo-stage-impact strong {
  font-size: 20px;
  color: #f2f2f3;
}
.holo-stage-impact small {
  font-size: 10px;
  color: #77777d;
}
.holo-stage-help {
  position: absolute;
  bottom: 16px;
  left: 22px;
  pointer-events: none;
  font-size: 10px;
  color: #77777d;
}
.holo-placeholder {
  padding: 60px 25px;
  color: #aaa;
  font-size: 13px;
}
.holo-transport {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #252528;
  padding: 14px 20px;
  background: #111112;
  flex-shrink: 0;
}
.holo-transport .holo-play {
  background: #eeeef0;
  color: #111;
  border-color: #eeeef0;
  min-width: 114px;
  font-weight: 600;
}
.holo-transport .holo-play:hover {
  background: #fff;
}
.holo-mode {
  display: flex;
  margin-left: 0;
  padding: 3px;
  border: 1px solid #28282c;
  border-radius: 8px;
  gap: 3px;
}
.holo-mode button {
  border: 0;
  background: transparent;
  color: #88888e;
  padding: 7px 10px;
}
.holo-mode button[aria-pressed="true"] {
  background: #29292c;
  color: #eee;
}
.holo-caption {
  padding: 0 20px 13px;
  color: #828289;
  font-size: 10px;
  line-height: 1.7;
  background: #111112;
  flex-shrink: 0;
}
.holo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.94);
  padding: 20px;
  display: flex;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.holo-dialog {
  width: 100%;
  height: 100%;
  background: #101011;
  border: 1px solid #303034;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: none;
  color: #ededee;
}
.holo-dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  border-bottom: 1px solid #28282b;
  flex-shrink: 0;
}
.holo-dialog .eyebrow {
  font-size: 9px;
  color: #76767d;
  letter-spacing: 1.6px;
}
.holo-dialog h2 {
  font-size: 21px;
  margin: 7px 0;
}
.holo-dialog header p {
  margin: 0;
  font-size: 10px;
  color: #696970;
  font-family: monospace;
}
.holo-large {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  min-height: 0;
  flex: 1 1;
}
.holo-main {
  min-width: 0;
}
.holo-large .holo-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.holo-large .holo-stage {
  height: auto;
  flex: 1 1;
  min-height: 280px;
}
.holo-inspector {
  overflow-y: auto;
  padding: 24px 20px;
  background: #121213;
  border-left: 1px solid #28282b;
  overscroll-behavior: contain;
}
.holo-inspector section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #2a2a2d;
}
.holo-inspector h3 {
  font-size: 20px;
  margin: 9px 0 22px;
}
.holo-inspector h4 {
  font-size: 12px;
  margin: 0 0 10px;
}
.holo-inspector p {
  font-size: 11px;
  color: #8d8d93;
  line-height: 1.9;
  margin: 10px 0 0;
}
.holo-actors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.holo-actors div {
  min-width: 0;
}
.holo-actors small,
.holo-metrics small {
  display: block;
  color: #85858b;
  font-size: 10px;
  margin-bottom: 6px;
}
.holo-actors strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.holo-actors > span {
  color: #666;
}
.holo-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  padding: 20px 0;
}
.holo-metrics strong {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -1px;
}
.holo-metrics > div:last-child strong {
  font-size: 20px;
  letter-spacing: 0;
}
.holo-inspector dl {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 5px;
  gap: 5px;
  margin: 14px 0;
}
.holo-inspector dt {
  color: #77777d;
  font-size: 10px;
}
.holo-inspector dd {
  font-size: 12px;
  overflow-wrap: anywhere;
  margin: 0 0 10px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.holo-inspector .holo-vitals {
  grid-template-columns: 48px 1fr;
  gap: 10px;
}
.holo-vitals dd {
  margin: 0;
  font-size: 11px;
}
.holo-inspector .holo-verdict {
  padding: 15px;
  border: 1px solid #303034;
  border-radius: 9px;
  background: #18181a;
}
.holo-verdict strong {
  font-size: 12px;
  color: #ccc;
}
.holo-details {
  border-bottom: 1px solid #2a2a2d;
  margin: 0 0 16px;
  padding-bottom: 16px;
}
.holo-details summary {
  font-size: 11px;
  color: #babac0;
  cursor: pointer;
  padding: 3px 0;
}
.holo-details section {
  margin-top: 18px;
  margin-bottom: 12px;
}
.holo-status {
  padding: 9px 10px;
  border: 1px solid #333338;
  border-radius: 6px;
  font-size: 10px;
  background: #202023;
  color: #aaa;
}
.holo-status.larger {
  color: #ff7373;
  border-color: #663b3b;
  background: #281b1b;
}
@media (min-width: 1700px) {
  .holo-large {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .holo-inspector {
    padding: 26px;
  }
}
@media (max-width: 850px) {
  .holo-backdrop {
    padding: 5px;
  }
  .holo-dialog {
    border-radius: 10px;
  }
  .holo-dialog > header {
    padding: 14px;
  }
  .holo-dialog h2 {
    font-size: 17px;
  }
  .holo-large {
    display: block;
    overflow-y: auto;
  }
  .holo-large .holo-stage {
    height: 58vh;
    min-height: 350px;
  }
  .holo-inspector {
    overflow: visible;
    border-left: 0;
    border-top: 1px solid #28282b;
  }
  .holo-transport {
    padding: 12px;
    flex-wrap: wrap;
  }
  .holo-mode {
    margin-left: 0;
  }
  .holo-stage {
    height: 380px;
  }
  .holo-stage-badge {
    left: 14px;
    top: 16px;
    font-size: 8px;
  }
  .holo-stage-impact {
    right: 14px;
    top: 16px;
  }
  .holo-stage-impact strong {
    font-size: 16px;
  }
}

.admin-sidebar-section { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-sidebar-section .subnav-btn { width: 100%; }
.admin-announcement-layout, .admin-player-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 24px; gap: 24px; align-items: start; }
.admin-template-select { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.admin-template-select select { width: 100%; }
.admin-tools > [role="status"] { margin-bottom: 16px; }
@media(max-width: 1000px) { .admin-announcement-layout, .admin-player-grid { grid-template-columns: 1fr; } }

.announcement-dropdown-trigger { width: 100%; min-height: 44px; justify-content: space-between; padding: 11px 14px; border-radius: 12px; background: #111214; border: 1px solid rgba(255,255,255,.14); text-align: left; }
.announcement-dropdown-trigger::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid #aaa; border-bottom: 1.5px solid #aaa; transform: rotate(45deg); margin: -4px 4px 0 12px; }
.announcement-dropdown-trigger[aria-expanded="true"] { border-color: rgba(255,255,255,.4); background: #161719; }
.announcement-dropdown-trigger[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 4px; }
.announcement-dropdown-menu { max-height: min(300px, 70vh); padding: 7px; border-radius: 12px; background: #121315; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 16px 44px rgba(0,0,0,.6); overflow-y: auto; }
.dropdown-group-label { padding: 10px 10px 6px; color: #8c8f96; font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.announcement-dropdown-menu .dropdown-option { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 36px; padding: 8px 11px; border-radius: 7px; border: 1px solid transparent; font-size: 12px; text-align: left; }
.announcement-dropdown-menu .dropdown-option[aria-selected="true"] { background: rgba(255,255,255,.09); color: #fff; }
.announcement-dropdown-menu .dropdown-option.focused { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.1); }
