:root {
      --graphite-950: #101412;
      --graphite-900: #17201d;
      --graphite-800: #21302b;
      --graphite-700: #2e423b;
      --graphite-500: #66746e;
      --graphite-300: #aab3ae;
      --graphite-200: #cdd4d0;
      --paper: #eef3f2;
      --paper-2: #e2eaea;
      --paper-3: #cbd8d8;
      --blue: #2f6f9f;
      --blue-2: #dcebf3;
      --green: #2f7d62;
      --green-2: #dfeee8;
      --copper: #a96032;
      --copper-2: #e7edf1;
      --parcel: #4d6574;
      --parcel-2: #e4ebef;
      --red: #a84237;
      --line: rgba(16, 20, 18, 0.13);
      --line-strong: rgba(16, 20, 18, 0.24);
      --shadow: 0 22px 80px rgba(16, 20, 18, 0.12);
      --radius: 6px;
      --font-body: "Source Sans 3", "Segoe UI", sans-serif;
      --font-display: "IBM Plex Serif", Georgia, serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      min-height: 100%;
      color: var(--graphite-950);
      background: var(--paper);
      font-family: var(--font-body);
      letter-spacing: 0;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      min-height: 100svh;
      margin: 0;
      overflow-x: hidden;
      background:
        linear-gradient(90deg, rgba(16, 20, 18, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(16, 20, 18, 0.035) 1px, transparent 1px),
        var(--paper);
      background-size: 56px 56px;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button,
    input {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    .app {
      min-height: 100svh;
      display: grid;
      grid-template-columns: 272px minmax(0, 1fr);
    }

    .sidebar {
      position: sticky;
      top: 0;
      height: 100svh;
      display: flex;
      flex-direction: column;
      gap: 30px;
      padding: 26px 20px;
      color: rgba(239, 246, 244, 0.84);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
        var(--graphite-950);
      border-right: 1px solid rgba(239, 246, 244, 0.1);
      z-index: 10;
    }

    .brand {
      display: grid;
      gap: 4px;
      padding-bottom: 21px;
      border-bottom: 1px solid rgba(239, 246, 244, 0.12);
    }

    .brand-name {
      color: #ffffff;
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 600;
      line-height: 1;
    }

    .brand-caption {
      color: rgba(239, 246, 244, 0.58);
      font-size: 12px;
      letter-spacing: 0.09em;
      text-transform: uppercase;
    }

    .nav {
      display: grid;
      gap: 6px;
    }

    .nav-button,
    .mobile-nav-button {
      display: grid;
      grid-template-columns: 20px minmax(0, 1fr);
      align-items: center;
      gap: 11px;
      min-height: 42px;
      padding: 0 12px;
      border: 1px solid transparent;
      border-radius: var(--radius);
      color: rgba(239, 246, 244, 0.68);
      background: transparent;
      text-align: left;
      transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    }

    .nav-button:hover,
    .nav-button.active {
      color: #f8fbfa;
      background: rgba(239, 246, 244, 0.075);
      border-color: rgba(239, 246, 244, 0.12);
    }

    .nav-button svg,
    .mobile-nav-button svg {
      width: 17px;
      height: 17px;
      stroke-width: 1.8;
    }

    .nav-button span,
    .mobile-nav-button span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 15px;
      font-weight: 600;
    }

    .sidebar-card {
      margin-top: auto;
      display: grid;
      gap: 14px;
      padding: 16px;
      border: 1px solid rgba(239, 246, 244, 0.12);
      border-radius: var(--radius);
      background: rgba(239, 246, 244, 0.06);
    }

    .sidebar-card strong {
      color: #f8fbfa;
      font-size: 14px;
    }

    .sidebar-card p {
      margin: 0;
      color: rgba(239, 246, 244, 0.62);
      font-size: 13px;
      line-height: 1.35;
    }

    .micro-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border: 1px solid rgba(239, 246, 244, 0.12);
    }

    .micro-stat {
      padding: 10px;
    }

    .micro-stat + .micro-stat {
      border-left: 1px solid rgba(239, 246, 244, 0.12);
    }

    .micro-stat b {
      display: block;
      color: #f8fbfa;
      font-size: 16px;
      line-height: 1.1;
    }

    .micro-stat span {
      color: rgba(239, 246, 244, 0.5);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .main {
      min-width: 0;
    }

    .topbar {
      position: sticky;
      top: 0;
      min-height: 76px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 17px clamp(18px, 3vw, 42px);
      border-bottom: 1px solid var(--line);
      background: rgba(238, 243, 242, 0.9);
      backdrop-filter: blur(18px);
      z-index: 9;
    }

    .crumb {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      color: var(--graphite-500);
      font-size: 14px;
      font-weight: 600;
    }

    .crumb strong {
      color: var(--graphite-950);
      white-space: nowrap;
    }

    .crumb span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .top-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      min-width: 0;
    }

    .source-pill,
    .status-pill,
    .tag,
    .tiny-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 31px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.34);
      color: var(--graphite-700);
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

    .source-pill svg,
    .status-pill svg,
    .tag svg,
    .tiny-pill svg {
      width: 14px;
      height: 14px;
      stroke-width: 2;
    }

    .status-pill {
      color: var(--green);
      background: var(--green-2);
      border-color: rgba(47, 125, 98, 0.2);
    }

    .screen {
      display: none;
      min-height: calc(100svh - 76px);
      padding: clamp(22px, 4vw, 52px);
    }

    .screen.active {
      display: block;
      animation: reveal 0.32s ease both;
    }

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

    .home-grid {
      display: grid;
      grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
      gap: clamp(28px, 5vw, 72px);
      align-items: center;
      min-height: calc(100svh - 180px);
    }

    .home-copy {
      display: grid;
      gap: 26px;
      align-content: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      width: fit-content;
      color: var(--copper);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 36px;
      height: 1px;
      background: currentColor;
    }

    h1,
    h2,
    h3,
    p {
      margin: 0;
    }

    h1 {
      max-width: 900px;
      color: var(--graphite-950);
      font-family: var(--font-display);
      font-size: clamp(40px, 4.3vw, 64px);
      font-weight: 600;
      line-height: 0.96;
    }

    .lead {
      max-width: 640px;
      color: var(--graphite-700);
      font-size: clamp(18px, 2vw, 22px);
      line-height: 1.35;
    }

    .search-module {
      display: grid;
      gap: 12px;
      padding: 10px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.42);
      box-shadow: var(--shadow);
    }

    .search-row {
      display: grid;
      grid-template-columns: 1fr auto;
      min-height: 64px;
      border: 1px solid var(--line);
      background: #f9fbfa;
    }

    .address-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(86px, 0.42fr) minmax(0, 1fr);
      gap: 8px;
    }

    .address-field {
      display: grid;
      gap: 5px;
      min-width: 0;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: rgba(249, 251, 250, 0.78);
    }

    .address-field label {
      color: var(--graphite-500);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.08em;
      line-height: 1;
      text-transform: uppercase;
    }

    .address-field input {
      width: 100%;
      min-width: 0;
      border: 0;
      outline: 0;
      color: var(--graphite-950);
      background: transparent;
      font-size: 16px;
      font-weight: 800;
    }

    .search-input-wrap {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
      padding: 0 18px;
    }

    .search-input-wrap svg {
      flex: 0 0 auto;
      width: 22px;
      height: 22px;
      color: var(--graphite-500);
      stroke-width: 1.8;
    }

    .search-input {
      width: 100%;
      min-width: 0;
      border: 0;
      outline: 0;
      color: var(--graphite-950);
      background: transparent;
      font-size: 22px;
      font-weight: 600;
    }

    .search-input::placeholder {
      color: rgba(16, 20, 18, 0.42);
    }

    .primary-button,
    .secondary-button,
    .icon-button,
    .text-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 42px;
      border: 1px solid var(--graphite-950);
      border-radius: var(--radius);
      font-weight: 800;
      white-space: nowrap;
      transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
    }

    .primary-button {
      padding: 0 18px;
      color: #f8fbfa;
      background: var(--graphite-950);
    }

    .primary-button:hover,
    .secondary-button:hover,
    .icon-button:hover,
    .text-button:hover {
      transform: translateY(-1px);
    }

    .secondary-button {
      padding: 0 15px;
      color: var(--graphite-950);
      background: transparent;
      border-color: var(--line-strong);
    }

    .icon-button {
      width: 42px;
      padding: 0;
      color: var(--graphite-950);
      background: transparent;
      border-color: var(--line);
    }

    .text-button {
      min-height: 34px;
      padding: 0 10px;
      color: var(--blue);
      background: transparent;
      border-color: transparent;
      font-size: 13px;
    }

    .primary-button svg,
    .secondary-button svg,
    .icon-button svg,
    .text-button svg {
      width: 17px;
      height: 17px;
      stroke-width: 2;
    }

    .segment {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 5px;
      padding: 5px;
      border: 1px solid var(--line);
      background: var(--paper-2);
    }

    .segment button {
      min-height: 36px;
      border: 1px solid transparent;
      border-radius: 4px;
      color: var(--graphite-700);
      background: transparent;
      font-weight: 800;
    }

    .segment button.active {
      color: var(--graphite-950);
      background: #f9fbfa;
      border-color: var(--line);
      box-shadow: 0 8px 24px rgba(16, 20, 18, 0.08);
    }

    .data-hints {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .trust-note {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      max-width: 660px;
      color: var(--graphite-500);
      font-size: 14px;
      line-height: 1.45;
    }

    .trust-note svg {
      flex: 0 0 auto;
      width: 17px;
      height: 17px;
      margin-top: 2px;
      color: var(--green);
      stroke-width: 2;
    }

    .network-visual {
      position: relative;
      min-height: 620px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
      overflow: hidden;
      background:
        linear-gradient(90deg, rgba(16, 20, 18, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(16, 20, 18, 0.04) 1px, transparent 1px),
        #f9fbfa;
      background-size: 38px 38px;
      box-shadow: var(--shadow);
    }

    .visual-header {
      position: absolute;
      z-index: 2;
      left: 18px;
      top: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .visual-note {
      position: absolute;
      z-index: 2;
      right: 18px;
      bottom: 18px;
      max-width: 230px;
      padding: 12px;
      border: 1px solid var(--line);
      background: rgba(249, 251, 250, 0.88);
      color: var(--graphite-700);
      font-size: 13px;
      line-height: 1.35;
      backdrop-filter: blur(10px);
    }

    .graph-svg {
      width: 100%;
      height: 620px;
      display: block;
    }

    .graph-line {
      stroke: rgba(16, 20, 18, 0.24);
      stroke-width: 2;
    }

    .graph-line.strong {
      stroke: rgba(47, 111, 159, 0.56);
      stroke-width: 3;
    }

    .graph-line.copper {
      stroke: rgba(169, 96, 50, 0.58);
      stroke-width: 2.5;
    }

    .graph-label {
      fill: var(--graphite-700);
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 800;
    }

    .node-label {
      fill: var(--graphite-950);
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 800;
    }

    .node-sub {
      fill: var(--graphite-500);
      font-family: var(--font-body);
      font-size: 11px;
      font-weight: 700;
    }

    .page-head {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 22px;
    }

    .page-title {
      display: grid;
      gap: 7px;
    }

    .page-title h2 {
      color: var(--graphite-950);
      font-family: var(--font-display);
      font-size: clamp(31px, 4vw, 50px);
      font-weight: 600;
      line-height: 1.02;
    }

    .page-title p {
      max-width: 720px;
      color: var(--graphite-500);
      font-size: 16px;
      line-height: 1.35;
    }

    .results-layout {
      display: grid;
      grid-template-columns: 280px minmax(0, 1fr);
      gap: 22px;
    }

    .filter-panel {
      position: sticky;
      top: 98px;
      height: fit-content;
      display: grid;
      gap: 18px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.36);
    }

    .filter-group {
      display: grid;
      gap: 9px;
    }

    .filter-group label {
      color: var(--graphite-500);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .check-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 31px;
      color: var(--graphite-700);
      font-size: 14px;
      font-weight: 700;
    }

    .check-row input {
      width: 16px;
      height: 16px;
      accent-color: var(--graphite-950);
    }

    .result-stack {
      display: grid;
      gap: 10px;
    }

    .result-item,
    .choice-card,
    .profile-block,
    .event-row,
    .empty-state,
    .loading-state,
    .error-state {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.46);
    }

    .result-item {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.52fr) minmax(170px, 0.6fr) auto;
      align-items: center;
      gap: 16px;
      min-height: 92px;
      padding: 16px;
      transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
    }

    .result-item:hover {
      border-color: var(--line-strong);
      background: rgba(255, 255, 255, 0.68);
      transform: translateY(-1px);
    }

    .entity {
      display: flex;
      align-items: center;
      gap: 13px;
      min-width: 0;
    }

    .entity-mark {
      flex: 0 0 auto;
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #f8fbfa;
      background: var(--graphite-950);
    }

    .entity-mark.company {
      border-radius: 4px;
      background: var(--blue);
    }

    .entity-mark.person {
      background: var(--green);
    }

    .entity-mark.property {
      border-radius: 4px;
      background: var(--parcel);
    }

    .entity-mark svg {
      width: 19px;
      height: 19px;
      stroke-width: 2;
    }

    .entity-text {
      min-width: 0;
    }

    .entity-text strong {
      display: block;
      overflow: hidden;
      color: var(--graphite-950);
      font-size: 18px;
      font-weight: 800;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .entity-text span,
    .muted {
      color: var(--graphite-500);
      font-size: 14px;
      font-weight: 600;
    }

    .meta-cell {
      display: grid;
      gap: 3px;
      min-width: 0;
    }

    .meta-cell b {
      overflow: hidden;
      color: var(--graphite-950);
      font-size: 14px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .meta-cell span {
      overflow: hidden;
      color: var(--graphite-500);
      font-size: 13px;
      font-weight: 600;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .choice-layout {
      display: grid;
      grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
      gap: 24px;
      align-items: start;
    }

    .selected-entity {
      display: grid;
      gap: 20px;
      padding: 24px;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
      background: #f9fbfa;
      box-shadow: var(--shadow);
    }

    .selected-top {
      display: flex;
      align-items: center;
      gap: 16px;
      min-width: 0;
    }

    .selected-top .entity-mark {
      width: 56px;
      height: 56px;
    }

    .selected-title {
      min-width: 0;
    }

    .selected-title h2 {
      overflow-wrap: anywhere;
      font-family: var(--font-display);
      font-size: clamp(30px, 4vw, 46px);
      line-height: 1.04;
    }

    .selected-title p {
      color: var(--graphite-500);
      font-size: 15px;
      font-weight: 700;
    }

    .fact-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      border: 1px solid var(--line);
    }

    .fact {
      min-width: 0;
      padding: 14px;
      border-bottom: 1px solid var(--line);
    }

    .fact:nth-child(odd) {
      border-right: 1px solid var(--line);
    }

    .fact:nth-last-child(-n+2) {
      border-bottom: 0;
    }

    .fact span {
      display: block;
      color: var(--graphite-500);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .fact b {
      display: block;
      margin-top: 4px;
      overflow-wrap: anywhere;
      color: var(--graphite-950);
      font-size: 16px;
    }

    .choice-grid {
      display: grid;
      gap: 14px;
    }

    .choice-card {
      display: grid;
      grid-template-columns: 50px minmax(0, 1fr) auto;
      gap: 16px;
      align-items: center;
      padding: 20px;
      background: rgba(249, 251, 250, 0.88);
      transition: transform 0.18s ease, border-color 0.18s ease;
    }

    .choice-card:hover {
      transform: translateY(-2px);
      border-color: var(--line-strong);
    }

    .choice-icon {
      width: 50px;
      height: 50px;
      display: grid;
      place-items: center;
      border-radius: 4px;
      color: var(--blue);
      background: var(--blue-2);
    }

    .choice-card:nth-child(2) .choice-icon {
      color: var(--copper);
      background: var(--copper-2);
    }

    .choice-card:nth-child(3) .choice-icon {
      color: var(--parcel);
      background: var(--parcel-2);
    }

    .choice-icon svg {
      width: 24px;
      height: 24px;
      stroke-width: 1.9;
    }

    .choice-copy {
      min-width: 0;
    }

    .choice-copy h3 {
      color: var(--graphite-950);
      font-size: 23px;
      line-height: 1.1;
    }

    .choice-copy p {
      margin-top: 6px;
      color: var(--graphite-500);
      font-size: 15px;
      line-height: 1.32;
    }

    .structure-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 340px;
      gap: 20px;
      align-items: stretch;
    }

    .workspace-panel {
      min-width: 0;
      border: 1px solid var(--line-strong);
      border-radius: var(--radius);
      overflow: hidden;
      background: #f9fbfa;
      box-shadow: var(--shadow);
    }

    .workspace-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 62px;
      padding: 10px 14px;
      border-bottom: 1px solid var(--line);
      background: rgba(226, 234, 234, 0.7);
    }

    .toolbar-left,
    .toolbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .mini-search {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 220px;
      min-height: 38px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #f9fbfa;
      color: var(--graphite-500);
      font-size: 14px;
      font-weight: 600;
    }

    .mini-search svg {
      width: 15px;
      height: 15px;
    }

    .detail-panel {
      display: grid;
      align-content: start;
      gap: 14px;
      min-width: 0;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.44);
    }

    .detail-panel h3 {
      font-family: var(--font-display);
      font-size: 26px;
      line-height: 1.06;
    }

    .detail-list {
      display: grid;
      border: 1px solid var(--line);
    }

    .detail-row {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr);
      gap: 12px;
      padding: 11px 12px;
      border-bottom: 1px solid var(--line);
      font-size: 14px;
    }

    .detail-row:last-child {
      border-bottom: 0;
    }

    .detail-row span {
      color: var(--graphite-500);
      font-weight: 800;
    }

    .detail-row b {
      overflow-wrap: anywhere;
      color: var(--graphite-950);
    }

    .legend {
      display: grid;
      gap: 8px;
    }

    .legend-row {
      display: flex;
      align-items: center;
      gap: 9px;
      color: var(--graphite-700);
      font-size: 14px;
      font-weight: 700;
    }

    .swatch {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--green);
    }

    .swatch.company {
      border-radius: 2px;
      background: var(--blue);
    }

    .swatch.holding {
      border-radius: 2px;
      background: var(--copper);
    }

    .profile-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.9fr);
      gap: 20px;
      align-items: start;
    }

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

    .kpi {
      min-width: 0;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, 0.5);
    }

    .kpi span {
      display: block;
      color: var(--graphite-500);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .kpi b {
      display: block;
      margin-top: 8px;
      overflow-wrap: anywhere;
      color: var(--graphite-950);
      font-size: 23px;
      line-height: 1;
    }

    .profile-block {
      display: grid;
      gap: 14px;
      min-width: 0;
      padding: 18px;
      background: rgba(249, 251, 250, 0.76);
    }

    .profile-block + .profile-block {
      margin-top: 14px;
    }

    .block-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      min-width: 0;
    }

    .block-head h3 {
      min-width: 0;
      font-size: 21px;
      overflow-wrap: anywhere;
    }

    .data-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
    }

    .table-scroll {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow-x: auto;
    }

    .data-table th,
    .data-table td {
      padding: 11px 10px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
      overflow-wrap: anywhere;
    }

    .data-table th {
      color: var(--graphite-500);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.07em;
      text-transform: uppercase;
    }

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

    .data-table td {
      color: var(--graphite-800);
      font-weight: 650;
    }

    .timeline {
      display: grid;
      gap: 9px;
    }

    .event-row {
      display: grid;
      grid-template-columns: 88px minmax(0, 1fr);
      gap: 14px;
      padding: 13px;
      background: rgba(255, 255, 255, 0.38);
    }

    .event-row time {
      color: var(--copper);
      font-weight: 900;
    }

    .event-row strong {
      display: block;
      color: var(--graphite-950);
    }

    .event-row span {
      color: var(--graphite-500);
      font-size: 13px;
      font-weight: 650;
    }

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

    .empty-state,
    .loading-state,
    .error-state {
      display: grid;
      gap: 13px;
      align-content: start;
      min-height: 210px;
      padding: 18px;
      background: rgba(249, 251, 250, 0.82);
    }

    .state-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 4px;
      color: var(--blue);
      background: var(--blue-2);
    }

    .loading-state .state-icon {
      color: var(--green);
      background: var(--green-2);
    }

    .error-state .state-icon {
      color: var(--red);
      background: #f4dbd8;
    }

    .state-icon svg {
      width: 21px;
      height: 21px;
    }

    .empty-state h3,
    .loading-state h3,
    .error-state h3 {
      font-size: 20px;
    }

    .empty-state p,
    .loading-state p,
    .error-state p {
      color: var(--graphite-500);
      font-size: 15px;
      line-height: 1.35;
    }

    .progress {
      height: 6px;
      overflow: hidden;
      border-radius: 999px;
      background: var(--paper-3);
    }

    .progress::before {
      content: "";
      display: block;
      width: 62%;
      height: 100%;
      background: var(--green);
      animation: loadingBar 1.4s ease-in-out infinite alternate;
    }

    @keyframes loadingBar {
      from { transform: translateX(-18%); }
      to { transform: translateX(78%); }
    }

    .mobile-bar {
      display: none;
      position: sticky;
      bottom: 0;
      z-index: 20;
      grid-template-columns: repeat(5, 1fr);
      border-top: 1px solid rgba(239, 246, 244, 0.12);
      background: var(--graphite-950);
    }

    .mobile-nav-button {
      grid-template-columns: 1fr;
      justify-items: center;
      gap: 3px;
      min-height: 60px;
      border-radius: 0;
      padding: 6px 4px;
      text-align: center;
    }

    .mobile-nav-button span {
      font-size: 11px;
    }

    .mobile-nav-button.active {
      color: #f8fbfa;
      background: rgba(239, 246, 244, 0.08);
    }

    @media (max-width: 1180px) {
      .app {
        grid-template-columns: 232px minmax(0, 1fr);
      }

      .home-grid,
      .choice-layout,
      .profile-grid {
        grid-template-columns: 1fr;
      }

      .home-grid > *,
      .choice-layout > *,
      .profile-grid > *,
      .results-layout > * {
        min-width: 0;
      }

      .network-visual {
        min-height: 500px;
      }

      .graph-svg {
        height: 500px;
      }

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

      .detail-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      }

      .detail-panel h3,
      .detail-panel > .tag {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 900px) {
      body {
        background-size: 42px 42px;
      }

      .app {
        display: block;
        padding-bottom: 60px;
      }

      .sidebar {
        display: none;
      }

      .mobile-bar {
        display: grid;
      }

      .topbar {
        min-height: 66px;
        padding: 12px 16px;
      }

      .source-pill {
        display: none;
      }

      .screen {
        min-height: calc(100svh - 126px);
        padding: 22px 16px;
      }

      .home-grid {
        min-height: auto;
        gap: 24px;
      }

      h1 {
        font-size: clamp(39px, 10.5vw, 52px);
      }

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

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

      .primary-button {
        min-height: 50px;
      }

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

      .filter-panel {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

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

      .result-item > .primary-button {
        width: 100%;
      }

      .choice-card {
        grid-template-columns: 44px minmax(0, 1fr);
      }

      .choice-card .primary-button {
        grid-column: 1 / -1;
      }

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

      .workspace-toolbar,
      .toolbar-left,
      .toolbar-right {
        align-items: stretch;
        flex-direction: column;
      }

      .mini-search {
        min-width: 0;
      }

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

    @media (max-width: 580px) {
      .page-head {
        align-items: flex-start;
        flex-direction: column;
      }

      .top-actions .secondary-button {
        display: none;
      }

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

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

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

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

      .fact,
      .fact:nth-child(odd) {
        border-right: 0;
      }

      .fact:nth-last-child(2) {
        border-bottom: 1px solid var(--line);
      }

      .detail-row,
      .event-row {
        grid-template-columns: 1fr;
      }

      .data-table {
        min-width: 0;
        table-layout: auto;
      }

      .data-table th,
      .data-table td {
        padding: 10px 6px;
      }

    }

/* ===================================================================
   wemgehörtwas.at — Ergänzungen (Guthaben, Paywall, Graph-Details)
   im Mockup-Designsystem (Graphit/Papier)
   =================================================================== */

/* Guthaben-Karte in der Sidebar */
.wallet-card { margin-top: auto; display: grid; gap: 10px; padding: 16px;
  border: 1px solid rgba(239,246,244,0.12); border-radius: var(--radius);
  background: rgba(239,246,244,0.06); }
.wallet-card .wc-label { color: rgba(239,246,244,0.5); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; }
.wallet-card .wc-bal { color: #f8fbfa; font-family: var(--font-display);
  font-size: 26px; line-height: 1; }
.wallet-card a { display: inline-flex; align-items: center; gap: 7px;
  color: rgba(239,246,244,0.82); font-size: 13px; font-weight: 700; }
.wallet-card a svg { width: 15px; height: 15px; }

/* Wallet-Pill in der Topbar */
.wallet-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 31px;
  padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.34); color: var(--graphite-950);
  font-size: 13px; font-weight: 800; white-space: nowrap; }
.wallet-pill svg { width: 14px; height: 14px; stroke-width: 2; color: var(--green); }

/* Trefferliste-Links */
.result-item.link { color: inherit; }

/* Paywall / Sperrbereich (auf der Struktur-Seite) */
.paywall { display: grid; gap: 14px; place-items: start; max-width: 640px;
  margin: 0 auto; padding: 30px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(231,237,241,0.6); box-shadow: var(--shadow); }
.paywall .pw-icon { width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 6px; color: var(--copper); background: var(--copper-2); }
.paywall .pw-icon svg { width: 24px; height: 24px; }
.paywall h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.05; }
.paywall p { color: var(--graphite-700); font-size: 16px; line-height: 1.4; max-width: 540px; }
.paywall .pw-price { color: var(--graphite-950); font-weight: 800; }
.paywall .pw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.form-error { color: var(--red); font-weight: 800; font-size: 14px; }
.form-inline { display: inline; }

/* Wallet-Seite */
.wallet-wrap { display: grid; gap: 22px; max-width: 720px; }
.balance-card { display: grid; gap: 6px; padding: 24px; border: 1px solid var(--line-strong);
  border-radius: var(--radius); background: #f9fbfa; box-shadow: var(--shadow); }
.balance-card span { color: var(--graphite-500); font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; }
.balance-card b { font-family: var(--font-display); font-size: 46px; line-height: 1;
  color: var(--graphite-950); }
.topups { display: flex; gap: 10px; flex-wrap: wrap; }
.flash { display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  border: 1px solid rgba(47,125,98,0.22); border-radius: var(--radius);
  background: var(--green-2); color: var(--green); font-weight: 700; }
.flash svg { width: 17px; height: 17px; }
.modehint { color: var(--graphite-500); font-size: 13px; }
.txn-amount.plus { color: var(--green); font-weight: 800; }
.txn-amount.minus { color: var(--red); font-weight: 800; }

/* Beteiligungs-Liste (Detailtext unter dem Graphen) */
.edges { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.edges .edge-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line);
  font-size: 14px; }
.edges .edge-row:last-child { border-bottom: 0; }
.edges .edge-pct { color: var(--blue); font-weight: 900; white-space: nowrap; }
.edges .edge-role { color: var(--graphite-500); font-style: italic; font-weight: 700; }
.edges b { color: var(--graphite-950); font-weight: 800; }

/* maskierte Anteile (Feature-b-Teaser) */
.masked .mask-pct { color: var(--copper); font-weight: 900; letter-spacing: 1px; }

/* Hinweis / Alert */
.note-line { display: flex; align-items: flex-start; gap: 9px; color: var(--graphite-500);
  font-size: 13px; line-height: 1.4; }
.note-line svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; }
.alert-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid rgba(168,66,55,0.28); border-radius: var(--radius);
  background: #f4dbd8; color: var(--red); font-weight: 700; }

/* generischer Empty */
.empty-block { display: grid; gap: 8px; place-items: start; padding: 28px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: rgba(249,251,250,0.7); color: var(--graphite-500); }
