/* viewer-base.css */
:root {
  --ink: #203043;
  --muted: #626d8a;
  --line: #d7dff1;
  --accent: #4b8cdc;
  --soft: #e9f3ff;
  --bg: #eff6ff;
  --gold: #946120;
  --surface: #ffffff;
  --sidebar: 176px;
  --topbar: 56px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
summary {
  outline-offset: 4px;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 9px 13px;
}
button:hover {
  background: var(--soft);
  border-color: #748aa6;
}
button:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
input,
select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: #fff;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.check {
  flex-direction: row;
  align-items: center;
  font-size: 13px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 20px;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 27px;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 15px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #153154;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 5px 0;
  text-align: left;
}
.pill {
  font-size: 11px;
  background: var(--soft);
  border-radius: 4px;
  padding: 3px 7px;
  white-space: nowrap;
}
.warn {
  color: var(--gold);
  background: #fff4de;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.link-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 8px 11px;
  text-decoration: none;
  font-size: 12px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-meta {
  font-size: 12px;
  color: var(--muted);
}
.page {
  max-width: 1440px;
  margin: auto;
  padding: 22px 28px;
}
.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
}
.focus-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.focus-title h2 {
  overflow-wrap: anywhere;
}
.focus-meta {
  margin-top: 4px;
}
.focus-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filters {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  margin-bottom: 20px;
}
.filter-top {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-top label {
  flex-direction: row;
  align-items: center;
}
.filter-top select {
  padding: 6px 9px;
}
.filter-detail {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
}
.filter-detail[hidden] {
  display: none;
}
.filter-detail label {
  max-width: 220px;
}
.filter-status {
  font-size: 11px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

/* viewer-layout.css */
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  padding: 10px 13px;
  color: var(--muted);
}
.tabs button.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}
.view-heading p {
  margin-top: 5px;
  max-width: 760px;
}
.view-heading h3 {
  font-size: 18px;
}
.empty {
  padding: 28px 18px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.notice {
  border-left: 3px solid var(--gold);
  background: #dca94e0e;
  color: var(--gold);
  padding: 11px 14px;
  font-size: 12px;
  margin: 14px 0;
}
.count {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.node-name {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.proof {
  font-size: 12px;
  color: var(--accent);
  padding: 3px 0;
  border: 0;
  background: none;
  text-decoration: underline;
}
.more {
  margin-top: 10px;
  padding: 8px;
  width: 100%;
}
.scope-line {
  font-size: 11px;
  color: var(--muted);
}

.path-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.6fr) auto;
  align-items: end;
  gap: 10px;
  padding: 18px;
  background: var(--soft);
  border-radius: 9px;
  margin-bottom: 20px;
}
.path-result {
  max-width: 820px;
  margin: auto;
}
.path-node {
  padding: 15px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.path-node .step {
  color: var(--muted);
  font-size: 12px;
}
.path-link {
  margin: 0 0 0 29px;
  border-left: 2px solid #7798bd;
  padding: 12px 20px;
  position: relative;
}
.path-link .arrow {
  position: absolute;
  left: -8px;
  top: 15px;
  background: var(--bg);
  font-size: 19px;
  color: var(--accent);
}
.path-link strong {
  display: block;
  font-size: 13px;
}
.path-link p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0;
}
.group-controls {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.group-controls input {
  width: 260px;
}
.group-block {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  margin-bottom: 12px;
}
.group-block > summary {
  padding: 15px 18px;
  font-weight: 600;
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  padding: 0 18px 18px;
}
.company-grid button {
  text-align: left;
  font-size: 13px;
}
.company-grid small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}
.review details {
  margin-top: 7px;
  font-size: 12px;
}
.review pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-height: 240px;
  overflow: auto;
}
footer {
  font-size: 11px;
  color: var(--muted);
  padding: 22px 0;
  max-width: 900px;
}

dialog {
  width: min(650px, calc(100% - 28px));
  max-height: 85vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--bg);
  box-shadow: 0 25px 100px #0009;
}
dialog::backdrop {
  background: #111b2875;
}
.dialog-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
}
.dialog-head h2 {
  font-size: 19px;
}
.dialog-body {
  padding: 20px;
}
.dialog-head button {
  font-size: 12px;
}
.search-input {
  width: 100%;
  margin-bottom: 10px;
}
.search-results {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  max-height: 52vh;
  overflow: auto;
}
.search-results button {
  text-align: left;
}
.search-results small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.proof-basis {
  margin-top: 17px;
}

/* viewer-dialog.css */
.proof-basis h3 {
  margin-bottom: 7px;
}
.proof-row {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 7px;
}
.proof-row strong {
  font-size: 18px;
}
.proof-row p {
  font-size: 12px;
  margin: 4px 0;
  color: var(--muted);
}
.proof-row a {
  font-size: 12px;
}
.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.breadcrumb button {
  font-size: 11px;
  padding: 4px 8px;
}
.scope-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1000px) {
  .page {
    padding: 20px;
  }
  .relationship-map {
    grid-template-columns: minmax(0, 1fr) 27px minmax(140px, 0.66fr) 27px minmax(0, 1fr);
    padding: 18px;
  }
  .center-node {
    padding: 18px 12px;
  }
  .center-node h3 {
    font-size: 18px;
  }
  .node-top {
    gap: 5px;
  }
  .node-ratio {
    font-size: 16px;
  }
}

/* viewer-responsive.css */
@media (max-width: 760px) {
  .topbar {
    padding: 12px 16px;
  }
  .brand {
    gap: 8px;
    display: block;
  }
  .brand .eyebrow {
    display: none;
  }
  .top-meta {
    font-size: 11px;
  }
  .page {
    padding: 16px;
  }
  .focus-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 15px;
  }
  .focus-title h2 {
    font-size: 25px;
  }
  .focus-actions {
    width: 100%;
  }
  .focus-actions a {
    flex: 1;
    text-align: center;
  }
  .filters {
    margin-bottom: 12px;
  }
  .filter-top {
    padding: 10px;
    gap: 8px;
  }
  .filter-status {
    width: 100%;
    order: 3;
  }
  .filter-top #toggle-filters {
    margin-left: auto;
  }
  .filter-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .filter-detail label {
    max-width: none;
  }
  .filter-detail input {
    width: 100%;
  }
  .filter-detail input[type="checkbox"] {
    width: auto;
  }
  .tabs {
    gap: 0;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tabs button {
    padding: 9px 3px;
    font-size: 12px;
  }
  .view-heading {
    gap: 10px;
  }
  .view-heading h3 {
    font-size: 16px;
  }
  .relationship-map {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 18px;
  }
  .lane {
    width: 100%;
  }
  .connector {
    min-height: 38px;
    height: 38px;
    width: 100%;
    align-self: stretch;
  }
  .connector:before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    border-top: 0;
    border-left: 1px solid #8397af;
  }
  .connector:after {
    content: "↓";
    right: auto;
    left: calc(50% - 7px);
    top: auto;
    bottom: -4px;
    padding: 0;
    background: white;
    font-size: 20px;
  }
  .center-node {
    width: 100%;
    padding: 16px;
    align-self: stretch;
  }
  .center-node h3 {
    font-size: 23px;
    margin: 3px 0;
  }
  .center-node .center-counts {
    margin: 8px 0;
    padding: 8px 0;
  }
  .lane.out .lane-heading {
    margin-top: 12px;
  }
  .lane.in .node-list,
  .lane.out .node-list {
    border: 0;
    padding: 0;
  }
  .lane .node-card:before,
  .lane .node-card:after {
    display: none;
  }
  .node-ratio {
    font-size: 19px;
  }
  .node-card {
    padding: 12px 14px;
  }
  .node-name {
    font-size: 14px;
  }
  .node-bottom {
    margin-top: 4px;
  }
  .tree-children {
    margin-left: 8px;
    padding-left: 10px;
  }
  .tree-branch:before {
    left: -11px;
    width: 10px;
  }
  .tree-row {
    gap: 8px;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    padding: 11px 9px;
  }
  .tree-expand {
    width: 26px;
    height: 28px;
  }
  .tree-value strong {
    font-size: 16px;
  }
  .tree-entity .node-name {
    font-size: 13px;
  }
  .tree-value .proof {
    font-size: 10px;
  }
  .tree-root {
    padding: 13px;
  }
  .path-form {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }
  .path-form label:first-child {
    grid-column: 1/-1;
  }
  .path-form button {
    height: 41px;
  }
  .group-controls input {
    width: 100%;
  }
  .group-controls label {
    flex: 1;
  }
  .company-grid {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 15px;
  }
  .dialog-head {
    padding: 14px 15px;
  }
  .tree-tools {
    gap: 7px;
  }
  .tree-tools .muted {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.12s,
      border-color 0.12s;
  }
}

/* The same primary views stay visible on desktop and phones. */
body .tabs,
body.jobzoo-mode .tabs,
body.network-mode .tabs {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 4px;
}
body .tabs button,
body.jobzoo-mode .tabs button {
  white-space: normal;
  min-height: 42px;
}
.tabs .directory-link {
  align-self: center;
  padding: 10px 13px;
  margin-left: auto;
}
.brand a {
  font-size: 12px;
}

/* network.css */
/* Workspace and controls. Canvas and relationship details have separate styles. */
body.network-mode .focus-header { display: none; }
.network-workspace { position: relative; }
.net-compare { display: flex; flex-wrap: wrap; gap: 5px; }
.net-options { flex: 0 0 auto; position: relative; }
.net-options > summary {
  cursor: pointer;
  font-size: 13px;
  color: #c7d9dc;
  padding: 10px 13px;
  border: 1px solid #caddf0;
  border-radius: 10px;
  background: #ffffffae;
}
.net-options-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 9;
  display: grid;
  gap: 12px;
  width: min(430px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 36px #071b2533;
  max-height: min(70vh, 600px);
  overflow: auto;
}
.net-options-panel label { justify-content: space-between; font-size: 12px; }
.net-options-panel select { max-width: 75%; }
.net-options-panel .actions { display: flex; flex-wrap: wrap; gap: 6px; }
.net-layout-select { max-width: 120px; }
#net-clear-top {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-height: 44px;
  background: #f1f4f7;
  border-color: #a7b5c7;
  color: #16283d;
  font-size: 13px;
  box-shadow: 0 3px 12px #06101640;
}
#net-clear-top[hidden] { display: none; }
.network-controls {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.network-controls.controls-inline {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  width: auto;
  padding: 5px;
  border: 1px solid #637f89;
  border-radius: 10px;
  background: #172832ed;
  box-shadow: 0 5px 18px #06101640;
}
.network-controls button { min-height: 38px; color: #f0f4f8; border-color: #55717a; background: #233b46; font-size: 12px; }
.network-controls button:hover { background: #365660; border-color: #b3c3d6; }
.network-controls output { color: #e7ecf3; }
.network-controls button { white-space: nowrap; min-width: 30px; }
.network-controls button:disabled { opacity: .4; cursor: default; }
.net-zoom-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  width: 110px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.net-zoom-controls button { border: 0; background: transparent; }
.net-zoom-controls output {
  min-width: 34px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.network-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.network-status button { font-size: 11px; padding: 6px 9px; }
.network-cluster-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  background: #eef1f5;
  padding: 8px 12px;
  font-size: 12px;
  border-inline: 1px solid #d6dce4;
}
.network-cluster-filter[hidden] { display: none; }
.network-cluster-filter label { display: flex; align-items: center; gap: 6px; }
.network-cluster-filter select,
.network-cluster-filter button { font-size: 12px; padding: 6px 9px; }
.network-cluster-filter span { color: #485a70; }
.network-wide {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.network-wide .net-toolbar,
.network-wide .network-cluster-filter { flex-shrink: 0; }
.network-wide .network-frame { height: auto; flex: 1; min-height: 0; }
.network-wide .network-status { margin-bottom: 0; }
.network-wide .net-selected { margin: 5px 0; }
@media (max-width: 760px) {
  body.network-mode .filter-top { padding: 8px 10px; }
  body.network-mode .filter-status { display: none; }
  .network-heading { display: none; }
  .net-toolbar { min-height: 50px; padding: 3px 8px; gap: 6px; border-radius: 10px 10px 0 0; }
  .net-toolbar button { min-height: 44px; padding: 6px 8px; font-size: 12px; }
  .net-toolbar select { font-size: 11px; padding: 6px; }
  .net-search { min-width: 120px; max-width: none; }
  .net-search input { min-height: 44px; font-size: 16px; padding: 6px 8px; }
  .network-controls { flex-basis: auto; }
  .network-controls button { min-height: 44px; padding: 6px 7px; font-size: 12px; min-width: 32px; }
  .net-zoom-controls { width: 105px; }
  .network-controls.controls-inline { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .network-controls button[data-short-label] { font-size: 0; }
  .network-controls button[data-short-label]::after { content: attr(data-short-label); font-size: 12px; }
  .net-options > summary { min-height: 44px; display: flex; align-items: center; font-size: 12px; padding: 6px; }
  .network-status { font-size: 12px; }
  .network-wide { padding: 5px; }
  .net-layout-select { max-width: 90px; }
  .network-cluster-filter { font-size: 11px; }
  .network-cluster-filter label { flex-wrap: wrap; }
}

/* network-map.css */
/* Graph viewport, transient tooltip and geographic/group captions. */
.network-frame {
  position: relative;
  height: max(420px, calc(100dvh - 234px));
  background: #111d28;
  border: 1px solid #273b49;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.network-canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
  position: absolute;
  inset: 0;
}
.network-detail {
  position: absolute;
  z-index: 4;
  inset: 12px 12px 12px auto;
  width: min(340px, 34%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce2e9;
  border-radius: 12px;
  box-shadow: -8px 0 24px #07141a30;
}
.network-detail[hidden], .network-detail [hidden] { display: none !important; }
.network-detail-nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 5px 8px;
  background: #f6f8fa;
  border-bottom: 1px solid #dce2e9;
}
#network-detail-tabs { display: flex; gap: 3px; margin-right: auto; }
.network-detail-nav button {
  min-height: 38px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #47596f;
  font-size: 13px;
}
.network-detail-nav button.active { background: #16283d; color: #fff; font-weight: 700; }
#network-detail-expand { display: none; }
.network-hud {
  position: absolute;
  left: 14px;
  top: 12px;
  pointer-events: none;
  color: #d4e5ec;
  font-size: 12px;
  background: #111d28d9;
  border: 1px solid #334754;
  border-radius: 6px;
  padding: 8px 11px;
  z-index: 2;
  max-width: calc(100% - 28px);
}
.network-hud strong { display: block; font-size: 13px; color: white; }
.network-hud small { display: block; color: #9eb4c2; font-size: 10px; margin-top: 3px; }
.large-network .network-hud { display: none; }
.net-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 12px;
  width: 320px;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  overflow: hidden;
  z-index: 6;
  box-shadow: 0 4px 20px #0005;
  white-space: normal;
}
.net-tooltip[hidden] { display: none; }
.net-tooltip header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; }
.net-tooltip header strong { font-size: 15px; overflow-wrap: anywhere; }
.net-tooltip-group { color: var(--muted); font-size: 11px; }
.net-tooltip-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  color: var(--muted);
}
.net-tooltip-summary b { color: var(--ink); font-weight: 600; }
.net-tooltip-types { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 7px; }
.net-tooltip-filings { list-style: none; margin: 10px 0 0; padding: 0; }
.net-tooltip-filings li { padding: 9px 0; border-top: 1px solid var(--line); }
.net-tooltip-filings li:last-child { padding-bottom: 0; }
.net-tooltip-filing-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.net-tooltip-filing-meta time { color: var(--muted); font-size: 10px; margin-right: 2px; }
.net-tooltip .disclosure-type-badge { font-size: 10px; }
.net-tooltip-filing-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.5;
  margin-top: 4px;
}
.net-tooltip-more, .net-tooltip-status { display: block; margin-top: 8px; color: var(--muted); }
.net-tooltip-more { text-align: right; }
.network-busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d4dde8;
  background: #111d28ba;
  font-size: 14px;
  pointer-events: none;
  z-index: 4;
}
.network-busy[hidden] { display: none; }
.network-cluster-labels,
.network-group-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.network-cluster-labels button {
  position: absolute;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
  color: #e6ecf3;
  background: #111d28e8;
  border: 1px solid #476171;
  border-radius: 5px;
  padding: 4px 7px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  pointer-events: auto;
  line-height: 1.25;
  cursor: grab;
  touch-action: none;
  user-select: none;
  min-height: 30px;
}
.network-cluster-labels button:hover,
.network-cluster-labels button.selected {
  border-color: #a7c9f3;
  color: #dceafa;
  background: #193456;
}
.network-cluster-labels button.is-dragging { cursor: grabbing; }
.network-cluster-regions {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.network-cluster-regions circle {
  fill: #6b83a106;
  stroke: #7894b73b;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.network-cluster-regions circle.selected { fill: #729fd512; stroke: #9dc1ec; stroke-width: 2; }
.network-group-labels button {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 650;
  color: #d6e0ed;
  background: #19293ce8;
  border: 1px solid #66809f;
  border-radius: 4px;
  padding: 3px 6px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.network-group-labels button[hidden] { display: none; }
.network-group-labels small { font-size: 9px; font-weight: 400; color: #a9b7c8; }
.network-group-labels button:hover { background: #254061; }
.network-cluster-labels button.disclosure-inactive,
.network-group-labels button.disclosure-inactive {
  opacity: .16;
  pointer-events: none;
  cursor: default;
}
.network-cluster-regions circle.disclosure-inactive { opacity: .12; }
.network-cluster-regions circle.subgroup-region {
  fill: #82a1c808;
  stroke: #8ba0ba65;
  stroke-dasharray: 3 3;
  stroke-width: 1;
}
.network-cluster-regions circle.group-hidden { display: none; }
/* Selected relationships take priority over region captions. */
.has-selection #network-group-labels { visibility: hidden; }
.has-selection #network-cluster-regions { opacity: .18; }
.has-selection #network-cluster-labels { opacity: .4; }
.large-network.has-selection .network-hud { display: flex; background: #101d29ed; }
.large-network.has-selection .network-hud #network-count,
.large-network.has-selection .network-hud #network-hint { display: none; }
.has-selection .network-hud { top: 64px; max-width: 360px; }
.has-selection #network-selection-hint { color: #e5f5ff; line-height: 1.6; font-size: 12px; }
@media (max-width: 760px) {
  .network-frame { height: max(360px, calc(100dvh - 260px)); min-height: 360px; }
  .network-detail {
    inset: auto 0 0;
    width: 100%;
    border-radius: 14px 14px 0 0;
    height: 35dvh;
    max-height: 70dvh;
    border-left: 0;
    border-top: 1px solid #dce2e9;
    box-shadow: 0 -8px 24px #07141a30;
  }
  .network-detail.expanded { height: 70dvh; }
  #network-detail-expand { display: inline-block; }
  .large-network.has-selection .network-hud,
  .has-selection .network-hud { display: none; }
  .network-detail-nav button { min-height: 44px; }
  .network-hud { left: 10px; top: 10px; padding: 6px 8px; font-size: 10px; }
  .network-hud strong { font-size: 11px; }
  .network-hud small { font-size: 9px; }
}

/* network-inspector.css */
/* Folded legend, selected-company relationship details and the company index. */
.network-guide { font-size: 12px; color: var(--muted); margin: 8px 0; }
.network-guide > summary { cursor: pointer; width: fit-content; }
.net-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 7px;
  color: var(--ink);
  font-size: 12px;
}
.net-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  margin-right: 5px;
}
.net-selected { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.net-selected:empty { display: none; }
.net-selected .chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 30px;
  font-size: 12px;
}
.net-inspector {
  margin-top: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.net-inspector[hidden],
.net-inspector:empty { display: none; }
.network-detail .net-inspector { flex: 1; min-height: 0; margin: 0; overflow: auto; border: 0; border-radius: 0; }
.network-wide .network-detail .net-inspector:not([hidden]) { display: block; }
.net-inspector h3 { font-size: 22px; margin-bottom: 5px; }
.net-inspector p { font-size: 12px; color: var(--muted); }
.net-inspector .inspect-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.net-inspector .inspect-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.net-inspector .inspect-actions a,
.net-inspector .inspect-actions button { font-size: 12px; }
.net-table-wrap { overflow: auto; margin-top: 12px; max-height: none; }
.net-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.net-table th {
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
  position: sticky;
  top: 0;
  z-index: 1;
}
.net-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.net-table .node-name { font-size: 12px; }
.net-table td small { display: block; color: var(--muted); font-size: 12px; }
.net-table .proof { font-size: 12px; white-space: nowrap; }
.net-joint-list { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.net-joint-list button { font-size: 12px; padding: 7px 10px; }
.net-joint-targets { display: grid; gap: 6px; margin-top: 12px; }
.net-joint-targets button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 12px;
  text-align: left;
  background: var(--surface, #eef6ff);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.net-joint-targets strong { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.net-joint-targets span { grid-row: 2; font-size: 12px; color: var(--muted); }
.net-joint-targets small { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--muted); }
.net-joint-targets button:hover { border-color: var(--accent); }
.net-empty { padding: 20px; color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .net-legend { gap: 8px; font-size: 12px; padding: 8px; }
  .net-inspector { padding: 13px; }
  .net-table td,
  .net-table th { padding: 7px 5px; }
  .net-table td { font-size: 12px; }
  .net-inspector .inspect-head { gap: 9px; }
}

/* disclosures.css */
/* Filing detail panel and badges; compact map controls live in network-toolbar.css. */
.network-map-surface { position: absolute; inset: 0; }
.disclosure-panel {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #172630;
  color: #e4e9ef;
  border: 0;
  display: flex;
  flex-direction: column;
  z-index: 4;
}
.disclosure-panel[hidden] { display: none; }
.disclosure-panel header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px;
  border-bottom: 1px solid #354850;
  align-items: start;
}
.disclosure-panel h3 { font-size: 15px; overflow-wrap: anywhere; }
.disclosure-panel small { font-size: 11px; color: #a8bdc5; }
.disclosure-panel button {
  color: #d8e9ec;
  background: #223943;
  border-color: #47606b;
  padding: 5px 8px;
  font-size: 11px;
}
.disclosure-panel a {
  color: #e9eff6;
  line-height: 1.6;
  overflow-wrap: anywhere;
  font-size: 12px;
  text-decoration: none;
}
.disclosure-panel a:hover { text-decoration: underline; }
.disclosure-list {
  overflow: auto;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.disclosure-list article { padding: 12px; border-bottom: 1px solid #30444d; }
.disclosure-list article > a { display: block; margin: 7px 0; }
.disclosure-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}
.disclosure-item-meta time { font-size: 10px; color: #a8bdc5; white-space: nowrap; }
.disclosure-item-meta button {
  text-align: left;
  border: 0;
  padding: 0;
  background: none;
  font-weight: 650;
  color: #ffe6a6;
  font-size: 12px;
}
.disclosure-panel footer {
  padding: 10px 12px;
  font-size: 10px;
  border-top: 1px solid #354850;
  color: #9db4be;
  display: grid;
  gap: 6px;
}
.disclosure-panel footer a { font-size: 11px; }
.disclosure-panel footer strong { color: #ffdc91; }
.disclosure-back { margin: 8px 12px; align-self: start; }
.disclosure-empty {
  font-size: 12px;
  padding: 18px 12px;
  color: #bdd0d5;
  line-height: 1.8;
}
#disclosure-more { margin: 10px 12px; width: calc(100% - 24px); }
.disclosure-list b { font-weight: 500; color: #eecb83; }
.disclosure-item-types { display: inline-flex; flex-wrap: wrap; gap: 5px 9px; }
.disclosure-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #57718a;
  font-size: 10px;
}
.disclosure-type-badge i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--disclosure-type-color);
  border: 1px solid #40607855;
}
@media (max-width: 760px) {
  .disclosure-panel { width: 100%; height: auto; }
  .disclosure-panel header { padding: 10px 12px; }
  .disclosure-panel footer { padding: 7px 12px; }
  .disclosure-panel footer span { display: none; }
  .disclosure-panel h3 { font-size: 14px; }
}

/* jobzoo.css */
/* Readable levels of detail on the existing jobzoo palette. */
body.jobzoo-mode .focus-header,
body.jobzoo-mode .filters {
  display: none;
}
body.jobzoo-mode.jobzoo-conditions .filters {
  display: block;
}
body.jobzoo-mode .page {
  max-width: 1280px;
  padding: 14px 24px;
}
body.jobzoo-mode .topbar {
  padding: 12px 24px;
}
body.jobzoo-mode .tabs {
  flex-wrap: nowrap;
  overflow: auto;
  margin-bottom: 18px;
  gap: 3px;
}
body.jobzoo-mode .tabs button {
  white-space: nowrap;
  padding: 8px 10px;
  font-size: 12px;
}
.jobzoo h3 {
  font-size: 21px;
  letter-spacing: -0.035em;
}
.jobzoo button {
  min-height: 36px;
}
.jobzoo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.jobzoo-top h2 {
  font-size: 28px;
}
.jobzoo-dates {
  font-size: 11px;
  text-align: right;
  color: var(--muted);
  border: 0;
  background: transparent;
  padding: 0;
}
.jobzoo-dates span {
  display: block;
  color: var(--accent);
  text-decoration: underline;
  margin-top: 3px;
}
.jobzoo-picker {
  display: flex;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}
.jobzoo-picker label {
  max-width: 340px;
  flex: 1;
}
.jobzoo-picker select {
  width: 100%;
  font-size: 16px;
  font-weight: 650;
}
.jobzoo-picker > button {
  height: 43px;
}
.jobzoo-steps {
  display: flex;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 23px;
}
.jobzoo-steps button {
  flex: 1;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 8px;
  white-space: nowrap;
}
.jobzoo-steps button:last-child {
  border-right: 0;
}
.jobzoo-steps button.active {
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}
.jobzoo-steps small {
  font-size: 10px;
  opacity: 0.75;
  margin-right: 6px;
}
.jobzoo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.jobzoo-heading p,
.jobzoo-company-title > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.jobzoo-heading button {
  font-size: 12px;
  flex-shrink: 0;
}
.jobzoo-explain {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin: 9px 0 15px;
}

/* Shared live diagram wrapper. */
.jobzoo-chart-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.jobzoo-membership-empty {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 250px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.jobzoo-membership-empty h4 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}
.jobzoo-membership-empty p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.jobzoo-membership-empty .jobzoo-membership-date,
.jobzoo-membership-empty .jobzoo-membership-note {
  font-size: 12px;
}
.jobzoo-membership-alternatives {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.jobzoo-membership-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jobzoo-membership-dates button {
  padding: 8px 12px;
}

/* jobzoo-company.css */
.jobzoo-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0 25px;
}
.jobzoo-summary-line p {
  font-size: 12px;
  color: var(--muted);
}
.jobzoo-summary-line button {
  flex-shrink: 0;
  font-size: 12px;
}
.jobzoo-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.jobzoo-section-title h3 {
  font-size: 18px;
}
.jobzoo-section-title label {
  max-width: 220px;
}
.jobzoo-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 8px;
  margin-top: 14px;
}
.jobzoo-member-grid button {
  text-align: left;
  padding: 13px 15px;
}
.jobzoo-member-grid strong {
  display: block;
  font-size: 14px;
}
.jobzoo-member-grid small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.jobzoo-company-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 20px;
  margin: 16px 0 22px;
}
.jobzoo-company-title > .eyebrow,
.jobzoo-company-title > h3,
.jobzoo-company-title > p { grid-column: 1; }
.jobzoo-company-title > p { color: var(--muted); font-size: 14px; }
.jobzoo-company-title > .actions { grid-column: 2; grid-row: 1 / span 3; }
.jobzoo-company-structure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 16px;
}
.jobzoo-company-structure > div { min-width: 0; }
.jobzoo-company-structure .structure-frame { height: max(430px, calc(100dvh - 330px)); }

.jobzoo-company-title h3 {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -.05em;
  margin: 0;
}
.jobzoo-company-title .actions {
  margin-top: 0;
}
.jobzoo-company-title .actions button {
  font-size: 12px;
}
.jobzoo-company-title .primary {
  color: white;
  background: var(--accent);
}
.jobzoo-flow-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--accent);
}
.jobzoo-relations {
  display: grid;
  gap: 14px;
}
.jobzoo-relations > section {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.jobzoo-relations .jobzoo-relation-list { max-height: 340px; overflow: auto; }

.jobzoo-relations h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.jobzoo-relation-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.jobzoo-relation-list article > button {
  flex: 1;
  min-width: 0;
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
}
.jobzoo-relation-list article > button strong {
  font-size: 14px;
}
.jobzoo-relation-list small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.jobzoo-relation-list article > div {
  text-align: right;
  flex-shrink: 0;
}
.jobzoo-relation-list article > div > strong {
  display: block;
  font-size: 17px;
  color: var(--accent);
}
.jobzoo-relation-list .proof {
  font-size: 11px;
  min-height: 28px;
}
.jobzoo-group-chips {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.jobzoo-group-chips button {
  font-size: 12px;
}
.jobzoo-self {
  margin-top: 15px;
}
.jobzoo-self h3 {
  font-size: 16px;
}

@media (max-width: 1100px) {
  .jobzoo-company-structure { grid-template-columns: 1fr; }
  .jobzoo-relations { grid-template-columns: 1fr 1fr; }
  .jobzoo-company-title { display: block; }
  .jobzoo-company-title .actions { margin-top: 12px; }
}
@media (max-width: 540px) {
  .jobzoo-company-title h3 { font-size: 27px; }
  .jobzoo-company-title > p { font-size: 13px; }
  .jobzoo-relations { grid-template-columns: 1fr; }
  .jobzoo-company-structure .structure-frame { height: 440px; }
  .jobzoo-relations > section { padding: 14px; }
}

/* jobzoo-responsive.css */
@media (max-width: 820px) {
  .jobzoo-relations {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .jobzoo-heading {
    align-items: start;
  }
  .jobzoo-heading h3 {
    font-size: 21px;
  }
  .jobzoo-heading button {
    font-size: 11px;
    padding: 8px;
  }
  .jobzoo-summary-line {
    flex-wrap: wrap;
  }
}
@media (max-width: 540px) {
  body.jobzoo-mode .page {
    padding: 12px;
  }
  body.jobzoo-mode .topbar {
    padding: 10px 14px;
  }
  body.jobzoo-mode .top-meta {
    display: none;
  }
  body.jobzoo-mode .tabs {
    margin-bottom: 13px;
  }
  body.jobzoo-mode .tabs button {
    font-size: 11px;
    padding: 6px 9px;
  }
  .jobzoo-top {
    margin-bottom: 12px;
    align-items: start;
  }
  .jobzoo-top .eyebrow {
    display: none;
  }
  .jobzoo-top h2 {
    font-size: 23px;
  }
  .jobzoo-dates {
    font-size: 10px;
    max-width: 215px;
  }
  .jobzoo-picker {
    margin-bottom: 12px;
  }
  .jobzoo-picker label {
    font-size: 11px;
  }
  .jobzoo-picker select {
    font-size: 15px;
  }
  .jobzoo-steps {
    margin-bottom: 18px;
  }
  .jobzoo-steps button {
    font-size: 12px;
    padding: 9px 5px;
  }
  .jobzoo-steps small {
    margin-right: 3px;
  }
  .jobzoo-heading {
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
  }
  .jobzoo-heading p {
    font-size: 12px;
  }
  .jobzoo-heading h3 {
    font-size: 20px;
  }
  .jobzoo-heading button {
    min-height: 32px;
  }
  .jobzoo-explain {
    font-size: 11px;
  }
  .jobzoo-company-title h3 {
    font-size: 24px;
  }
  .jobzoo-company-title > p:not(.eyebrow) {
    font-size: 12px;
  }
  .jobzoo-company-title {
    margin-bottom: 18px;
  }
  .jobzoo-company-title .actions {
    gap: 6px;
  }
  .jobzoo-company-title .actions button,
  .jobzoo-company-title .actions a {
    font-size: 11px;
    padding: 7px 9px;
  }
  .jobzoo-flow-heading {
    font-size: 11px;
  }
  .jobzoo-section-title {
    flex-wrap: wrap;
  }
  .jobzoo-section-title label {
    width: 100%;
    max-width: none;
  }
  .jobzoo-member-grid {
    grid-template-columns: 1fr;
  }
  .jobzoo-directory > div {
    grid-template-columns: repeat(3, 1fr);
  }
}
body.jobzoo-mode .topbar {
  display: flex;
}
body.jobzoo-mode .tabs {
  display: flex;
}

@media (max-width: 620px) {
  .jobzoo-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .jobzoo-steps button:nth-child(2) {
    border-right: 0;
  }
  .jobzoo-steps button:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* group-structure.css */
.structure-workspace {
  background: white;
}
.structure-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.structure-caption strong {
  font-size: 16px;
}
.structure-caption p,
.structure-caption > span {
  color: var(--muted);
  font-size: 12px;
}
.structure-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
}
#structure-search-form {
  display: flex;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
  gap: 6px;
}
#structure-search {
  flex: 1;
  width: 100%;
  font-size: 12px;
}
.structure-camera-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.structure-toolbar button {
  padding: 7px 9px;
  font-size: 12px;
}
#structure-zoom {
  min-width: 42px;
  text-align: center;
  font-size: 12px;
}
.structure-legend {
  display: flex;
  gap: 8px 16px;
  padding: 4px 16px 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.structure-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.structure-legend i {
  width: 13px;
  height: 13px;
  border: 1px solid #b69265;
  border-radius: 3px;
}
.structure-member-swatch {
  background: #ffe0b3;
}
.structure-legend .structure-holder-swatch {
  background: #ddeafa;
  border-color: #8aa1bd;
}
.structure-legend .structure-related-party-swatch {
  background: #f3ead8;
  border-color: #a78a55;
}
.structure-legend .structure-external-swatch {
  background: #edf3f7;
  border-color: #94abbc;
}
.structure-frame {
  position: relative;
  height: clamp(560px, 76vh, 1000px);
  border-block: 1px solid #e1e6ec;
  overflow: hidden;
  background: #fff;
}
#group-structure-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  z-index: 1;
}
#structure-regions {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
#structure-regions rect {
  fill: #f9fafb;
  stroke: #d6dde5;
  stroke-dasharray: 8 7;
}
#structure-regions text {
  fill: #536983;
  font-family: inherit;
  font-weight: 650;
}
#structure-tooltip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: #232f3e;
  color: white;
  padding: 9px 12px;
  border-radius: 6px;
  max-width: min(300px, 80%);
  font-size: 12px;
  white-space: pre-line;
}
#structure-tooltip[hidden] {
  display: none;
}
.structure-status {
  color: var(--muted);
  font-size: 12px;
  padding: 10px 14px;
}
.structure-scope {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
}
.structure-scope p {
  margin-top: 8px;
}
.structure-inspector {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.structure-inspector[hidden] {
  display: none;
}
.structure-inspector-heading {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.structure-inspector-heading h4 {
  margin: 0;
  font-size: 18px;
}
.structure-inspector-heading p {
  color: var(--muted);
  font-size: 12px;
}
.structure-relations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.structure-relation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px;
  font-size: 12px;
}
.structure-relation > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.structure-relation button {
  flex-shrink: 0;
}
.structure-inspector .more {
  font-size: 12px;
}
@media (max-width: 760px) {
  .structure-caption {
    padding: 10px;
  }
  .structure-caption strong {
    font-size: 14px;
  }
  .structure-caption > span {
    width: 100%;
  }
  .structure-toolbar {
    padding: 8px;
    gap: 7px;
  }
  #structure-search-form {
    min-width: 0;
    max-width: none;
    flex-basis: 100%;
  }
  .structure-toolbar button {
    font-size: 11px;
    padding: 6px 8px;
  }
  .structure-legend {
    padding: 5px 10px 9px;
    gap: 5px 10px;
  }
  .structure-frame {
    height: 68vh;
    min-height: 460px;
  }
  .structure-status {
    font-size: 11px;
  }
  .structure-relations {
    grid-template-columns: 1fr;
  }
  .structure-inspector {
    padding: 10px;
  }
}

/* group-visibility.css */
.group-visibility-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.group-visibility-controls label { min-height: 44px; color: var(--ink); }
.group-visibility-controls input { width: 17px; height: 17px; }
.group-visibility-controls small { font-size: 11px; }

/* jobzoo-evidence.css */
.jobzoo-company-layout {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(300px,1fr);
  gap: 24px;
}
.jobzoo-company-layout .jobzoo-relations {
  grid-template-columns: 1fr;
  margin-top: 0;
  align-content: start;
}
.jobzoo-core-evidence {
  margin-bottom: 24px;
  font-size: 12px;
}
.jobzoo-core-evidence summary {
  color: var(--accent);
  padding: 8px 0;
}
.jobzoo-core-evidence article {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.jobzoo-core-evidence article > span {
  flex: 1;
  min-width: 160px;
}
@media (max-width: 820px) {
  .jobzoo-company-layout {
    display: block;
  }
  .jobzoo-company-layout .jobzoo-relations {
    margin-top: 20px;
  }
}
.jobzoo-company-title .jobzoo-verification {
  color: var(--ink);
  font-size: 12px;
  border-left: 3px solid #869bb5;
  padding: 7px 10px;
  background: var(--soft);
}
.jobzoo-shareholders {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.jobzoo-shareholders h3 {
  font-size: 20px;
}
.jobzoo-shareholders p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.jobzoo-scope-note {
  background: var(--soft);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
}
.jobzoo-shareholder-scroll {
  overflow: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 620px;
}
.jobzoo-shareholders table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}
.jobzoo-shareholders th {
  position: sticky;
  top: 0;
  background: var(--line);
  text-align: left;
  z-index: 1;
}
.jobzoo-shareholders th,
.jobzoo-shareholders td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.jobzoo-shareholders small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.jobzoo-shareholders .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.jobzoo-shareholders td button {
  background: none;
  padding: 0;
  border: 0;
  text-align: left;
  color: var(--accent);
}
.jobzoo-reported-relationship {
  color: var(--muted)!important;
}
.jobzoo-holding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}
.jobzoo-holding > div {
  display: grid;
  gap: 5px;
  text-align: right;
  white-space: nowrap;
}
.jobzoo-holding button {
  border: 0;
  text-align: left;
  background: none;
}
.jobzoo-identity-evidence {
  margin-top: 18px;
}
.jobzoo-identity-evidence summary {
  cursor: pointer;
}

/* jobzoo-directory.css */
.jobzoo-picker {
  flex-wrap: wrap;
}
.jobzoo-picker label {
  min-width: 160px;
  flex: 1;
}
.jobzoo-picker input,
.jobzoo-picker select {
  width: 100%;
  min-width: 0;
}
.jobzoo-group-result {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.jobzoo-group-sources {
  font-size: 12px;
  padding: 10px 14px;
  background: var(--soft);
  border-radius: 8px;
  margin: 10px 0;
}
.jobzoo-group-sources p {
  margin-top: 6px;
}
.jobzoo-group-grid {
  display: grid!important;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 8px;
}
.jobzoo-group-grid button {
  text-align: left;
  padding: 12px;
}
.jobzoo-group-grid small {
  display: block;
  color: var(--muted);
}
.jobzoo-directory h3 {
  margin-bottom: 8px;
}
details.jobzoo-directory {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
details.jobzoo-directory > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}
details.jobzoo-directory[open] > summary {
  margin-bottom: 12px;
}
#jobzoo-group-directory > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .jobzoo-picker label {
    min-width: 140px;
  }
  .jobzoo-group-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))!important;
  }
}
#jobzoo-group-directory {
  display: block;
}
.jobzoo-group-grid strong {
  overflow-wrap: anywhere;
}

/* Directory and relationship pagination share the same compact controls. */
.jobzoo-pager {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.jobzoo-pager button {
  font-size: 12px;
  padding: 5px 12px;
}
.jobzoo-directory {
  margin-top: 22px;
}
.jobzoo-directory summary {
  font-size: 13px;
  color: var(--accent);
  padding: 10px 0;
}
.jobzoo-directory > div {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
  gap: 6px;
  margin-top: 8px;
}
.jobzoo-directory button {
  text-align: left;
  font-size: 13px;
}
.jobzoo-directory small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

/* history.css */
/* A single horizontally scrollable annual table; all six years remain visible. */
.history-view .view-heading { margin-bottom: 12px; }
.history-table-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin: 6px 0;
}
.history-table-top > span { font-size: 12px; color: var(--muted); }
.history-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.history-table { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 960px; font-size: 13px; }
.history-company-column { width: 240px; }
.history-table th { font-size: 12px; background: var(--raised); white-space: nowrap; }
.history-table th, .history-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.history-table th:first-child, .history-table td:first-child {
  min-width: 240px;
  max-width: 330px;
  text-align: left;
  overflow-wrap: anywhere;
}
.history-table .node-name { max-width: 100%; overflow-wrap: anywhere; }
.history-table small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.history-table .history-relation-heading th {
  white-space: normal;
  padding-top: 14px;
  padding-bottom: 10px;
  border-left: 2px solid var(--accent);
}
.history-relation-heading small { display: inline; margin-left: 12px; font-weight: 400; }
.history-table .history-basis-row td { background: var(--surface); }
.history-table .history-basis-row td:first-child { border-left: 2px solid var(--accent); padding-left: 18px; }
.history-basis-source { color: var(--muted); font-size: 12px; }
.history-value {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.history-missing { color: var(--muted); text-decoration: none; }
.history-change { display: flex; flex-direction: column; gap: 2px; }
.history-delta { white-space: nowrap; }
.history-delta.up, .history-delta.new { color: #91c5ff; }
.history-delta.down, .history-delta.closed { color: #ffa595; }
.history-delta.unknown { color: var(--muted); font-weight: 500; }
.history-position { display: block; white-space: nowrap; }
.history-quantity { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0; }
.history-pager span { font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .history-table-top { align-items: start; flex-direction: column; gap: 6px; }
  .history-view .view-heading { flex-wrap: wrap; }
  .history-table { font-size: 12px; }
  .history-company-column { width: 170px; }
  .history-table th, .history-table td { padding: 9px 8px; }
  .history-table th:first-child, .history-table td:first-child { min-width: 170px; max-width: 220px; }
  .history-table .history-value { min-height: 44px; min-width: 44px; }
  .history-table .node-name { min-height: 44px; }
}

/* viewer-mobile.css */
.listed-map-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 12px;
}
.listed-map-summary strong {
  color: var(--accent);
}
.listed-map-summary p {
  font-size: 12px;
  color: var(--muted);
  flex-basis: 100%;
}
@media (max-width: 600px) {
  body .tabs,
  body.jobzoo-mode .tabs,
  body.network-mode .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }
  body .tabs button,
  body.network-mode .tabs button {
    font-size: 12px;
    padding: 7px 3px;
  }
  .tabs .directory-link {
    margin: 0;
    text-align: center;
    font-size: 12px;
    padding: 8px 2px;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .top-meta {
    display: none;
  }
}

/* viewer-controls.css */
/* Secondary navigation stays inside the application shell. */
.nav-more {
  position: relative;
  margin-left: auto;
  align-self: center;
}
.nav-more > summary {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 12px;
}
.nav-more > div {
  display: grid;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 16;
  min-width: 160px;
  padding: 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px #1d2a3925;
}
body .tabs .nav-more button,
body .tabs .nav-more a {
  text-align: left;
  margin: 0;
}
body.network-mode .yearbar {
  padding: 10px 14px;
  margin-bottom: 8px;
  gap: 8px 18px;
}
body.network-mode .yearbar-label span,
body.network-mode .year-change {
  display: none;
}
body.network-mode .year-coverage {
  flex-basis: auto;
  margin-left: auto;
  max-width: 470px;
}
@media (max-width: 760px) {
  body .tabs,
  body.jobzoo-mode .tabs,
  body.network-mode .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nav-more {
    margin: 0;
    text-align: center;
  }
  body.network-mode .yearbar {
    gap: 7px;
    padding: 9px 10px;
  }
  body.network-mode .yearbar-label {
    display: none;
  }
  body.network-mode .year-buttons {
    width: 100%;
    gap: 4px;
  }
  body.network-mode .year-buttons button {
    min-width: 0;
    flex: 1;
    padding: 7px 4px;
  }
  body.network-mode .year-coverage {
    font-size: 10px;
    margin: 0;
  }
}
/* Long legal names must not stretch the mobile group directory. */
.group-controls label {
  min-width: 0;
  max-width: 100%;
}
.group-controls select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 760px) {
  .group-controls label:first-child {
    flex-basis: 100%;
  }
}

.language-switch { display: flex; gap: 4px; align-items: center; }
.language-switch button { padding: 7px 12px; font-size: 13px; min-height: 36px; }
.language-switch button.active { background: var(--accent, #21426b); color: white; }
html[lang="en"] .tabs { flex-wrap: wrap; }
html[lang="en"] .filter-top label { min-width: 130px; }

.source-language-note { font-size: 12px; margin: 18px 0 6px; }
html[lang="ko"] .source-language-note { display: none; }

/* product-layout.css */
/* Compact header controls leave the full width available to each workspace. */
body .topbar,
body.jobzoo-mode .topbar,
body.network-mode .topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  min-height: var(--topbar);
  height: auto;
  padding: 6px 16px;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { min-width: 0; grid-column: 1; }
.header-year { grid-column: 2; }
.topbar .mobile-navigation { grid-column: 3; }
.topbar .global-search { grid-column: 4; }
.topbar .language-switch { grid-column: 5; }
.brand .wordmark {
  white-space: nowrap;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.065em;
  text-decoration: none;
  color: var(--ink);
}
#subtitle, .language-short { display: none; }
.topbar svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.header-year { display: flex; align-items: center; gap: 8px; min-width: 0; position: relative; }
#ownership-year {
  width: 82px;
  min-height: 44px;
  padding: 7px 9px;
  font-size: 14px;
  font-weight: 650;
  background: var(--bg);
}
#year-progress {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  width: max-content;
  max-width: 180px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f4f9ff;
  font-size: 11px;
  color: var(--muted);
}
#year-progress:empty { display: none; }
#year-progress[data-state="error"] { color: #973c29; }
.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 100%);
  justify-self: end;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  background: var(--bg);
  color: #47596e;
  font-size: 13px;
  text-align: left;
}
.global-search kbd {
  margin-left: auto;
  font: inherit;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.language-switch { flex-shrink: 0; }
.language-switch button { min-height: 44px; border: 0; padding: 7px 9px; font-size: 12px; }
.language-switch button.active { background: var(--soft); color: var(--accent); font-weight: 700; }
body .page,
body.jobzoo-mode .page,
body.network-mode .page {
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 14px 24px 24px;
}
.focus-header:empty { display: none; }
.product-footer { display: flex; justify-content: space-between; gap: 24px; max-width: none; padding: 24px 0 8px; }
.product-footer > span { font-size: 12px; letter-spacing: 0.06em; }
.product-footer details { max-width: 470px; text-align: right; }
.product-footer p { margin-top: 8px; }
#jobzoo-start, #network-workspace, .focus-header { scroll-margin-top: calc(var(--topbar) + 16px); }

/* product-surfaces.css */
/* Data surfaces: quiet controls, strong numbers, full-size diagrams. */
.jobzoo-mobile-filter {
  display: none;
}
.jobzoo-top {
  margin-bottom: 14px;
}
.jobzoo-top .eyebrow {
  display: none;
}
.jobzoo-top h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.045em;
}
.jobzoo-picker {
  display: grid;
  grid-template-columns:
    minmax(170px, 1fr) minmax(150px, 0.65fr) minmax(240px, 1.5fr)
    auto;
  gap: 10px;
  margin-bottom: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.jobzoo-picker label {
  min-width: 0;
  max-width: none;
  font-size: 12px;
}
.jobzoo-picker select,
.jobzoo-picker input {
  font-size: 13px;
  font-weight: 500;
  height: 40px;
}
.jobzoo-picker > button {
  height: 40px;
  font-size: 12px;
}
.jobzoo-group-result {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 14px;
}
.jobzoo-steps {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
  gap: 4px;
}
.jobzoo-steps button {
  flex: initial;
  padding: 9px 16px;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  color: var(--muted);
}
.jobzoo-steps button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 4px #0000;
}
.jobzoo-steps small {
  display: none;
}
.jobzoo-heading {
  margin-bottom: 12px;
}
.jobzoo-heading h3 {
  font-size: 30px;
  font-weight: 750;
}
.jobzoo-heading p {
  margin-top: 4px;
  font-size: 12px;
}
.jobzoo-group-sources {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  margin: 12px 0;
}
.jobzoo-group-sources summary {
  color: var(--muted);
}
.structure-workspace {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 18px #0000;
  overflow: hidden;
}
.structure-caption {
  padding: 12px 16px;
  background: var(--surface);
}
.structure-caption strong {
  font-size: 13px;
  font-weight: 600;
}
.structure-caption p,
.structure-caption > span {
  font-size: 12px;
}
.structure-toolbar {
  gap: 8px;
  align-items: center;
  padding: 12px 14px 8px;
}
.structure-toolbar button {
  border-color: transparent;
  padding: 7px 9px;
}
#structure-search-form button {
  border-color: var(--line);
}
.structure-camera-controls {
  gap: 2px;
}
#structure-zoom {
  color: var(--muted);
}
.structure-legend {
  padding: 6px 16px 12px;
  font-size: 12px;
}
.structure-legend i {
  border-radius: 3px;
  width: 10px;
  height: 10px;
}
.structure-member-swatch {
  background: #e5ebf3;
  border-color: #879ab2 !important;
}
.structure-legend .structure-holder-swatch {
  background: #e9eff7;
}
.structure-legend .structure-external-swatch {
  background: #f3f5f6;
}
.structure-frame {
  background: #060b12;
  border-color: var(--line);
  height: clamp(530px, 72vh, 1000px);
}
#structure-regions rect {
  fill: var(--surface);
  stroke: var(--line);
}
.structure-status {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12px;
}
.structure-inspector {
  background: var(--surface);
}
.structure-relation {
  padding: 12px;
  background: var(--surface);
}
.structure-relation button {
  color: var(--ink);
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
}
.structure-scope {
  padding: 11px 14px;
  font-size: 12px;
}
.jobzoo-relation {
  border-radius: 7px;
  box-shadow: none;
}
.jobzoo-relation .proof {
  font-variant-numeric: tabular-nums;
}

.jobzoo-picker-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.jobzoo-picker-caption .jobzoo-group-result {
  margin: 0;
}
.jobzoo-picker-caption .jobzoo-dates {
  font-size: 12px;
  padding: 0;
}
.jobzoo-picker-caption .jobzoo-dates span {
  display: inline;
  margin-left: 8px;
}
.jobzoo[data-level="group"] .structure-caption,
.jobzoo[data-level="holdings"] .structure-caption {
  display: none;
}

/* product-data.css */
/* Financial tables, proof drawers and network controls. */
.history-table th {
  background: var(--raised);
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}
.history-table td {
  border-bottom-color: var(--line);
}
.history-table tbody tr:hover td {
  background: var(--hover);
}
.history-table .proof {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
}
.history-table .compare-year {
  background: var(--surface);
}
.history-caution {
  padding: 0;
  margin: 12px 0;
  font-size: 12px;
}
dialog {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 80px #0009;
}
dialog::backdrop {
  background: #151e2855;
  backdrop-filter: none;
}
.dialog-head {
  padding: 18px 22px;
}
.dialog-head h2 {
  font-size: 19px;
  line-height: 1.5;
}
.dialog-body {
  padding: 20px 22px;
}
.dialog-body .notice {
  background: #dca94e0e;
  border-left-width: 2px;
  line-height: 1.7;
}
.proof-row {
  border-radius: 7px;
}
.proof-row > strong {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.search-results button {
  padding: 13px 14px;
  border-color: var(--line);
}
.search-results button:hover {
  background: var(--soft);
}

.ratio-status {
  font-size: 0.66em;
  color: var(--gold);
  margin-left: 2px;
}

body:has(.history-view) .focus-header {
  display: none;
}
.history-caution summary {
  cursor: pointer;
  color: var(--muted);
}
.history-caution p {
  margin: 10px 0;
  max-width: 780px;
}

/* product-responsive.css */
/* Responsive workspace without a second navigation or additional data cache. */
@media (max-width: 1100px) {
  body .page,
  body.jobzoo-mode .page,
  body.network-mode .page {
    padding: 16px 20px;
  }
  .jobzoo-picker {
    grid-template-columns: minmax(150px, 1fr) minmax(140px, 0.7fr) minmax(
        190px,
        1.3fr
      );
  }
  .jobzoo-picker > button {
    display: none;
  }
  .jobzoo-heading h3 {
    font-size: 25px;
  }
}
@media (max-width: 860px) {
  body .topbar,
  body.jobzoo-mode .topbar,
  body.network-mode .topbar { padding: 6px 12px; gap: 6px; }
  body .page,
  body.jobzoo-mode .page,
  body.network-mode .page { padding: 12px 16px 16px; }
  #jobzoo-start, #network-workspace, .focus-header { scroll-margin-top: calc(var(--topbar) + 12px); }
  .jobzoo-top {
    margin-bottom: 12px;
  }
  .jobzoo-top h2 {
    font-size: 19px;
  }
  .jobzoo-picker {
    gap: 8px;
  }
  .jobzoo-picker select,
  .jobzoo-picker input {
    height: 40px;
    font-size: 16px;
  }
  .jobzoo-steps {
    margin-bottom: 16px;
    gap: 4px;
  }
  .structure-frame {
    height: 64vh;
    min-height: 420px;
  }
  .structure-toolbar button {
    min-height: 36px;
  }
  .jobzoo-heading button {
    font-size: 11px;
  }
  .history-controls label {
    flex: 1;
    min-width: 120px;
  }
}

/* product-mobile.css */
/* Phone controls and numeric tables. */
@media (max-width: 540px) {
  body .topbar,
  body.jobzoo-mode .topbar,
  body.network-mode .topbar {
    grid-template-columns: auto auto 36px minmax(36px, 1fr) auto;
    gap: 3px;
    padding: 6px 8px;
  }
  .brand .wordmark { font-size: 20px; }
  .header-year { gap: 3px; }
  #ownership-year { width: 60px; padding: 7px 4px; }
  .mobile-navigation select { width: 36px; min-height: 40px; padding: 5px 2px; }
  #year-progress:not(:empty) {
    width: 8px;
    height: 8px;
    overflow: hidden;
    border-radius: 50%;
    background: #a16f22;
    color: transparent;
    font-size: 0;
    flex-shrink: 0;
  }
  #year-progress[data-state="error"] { background: #b44b34; }
  .global-search { flex: 0 0 44px; width: 36px; padding: 7px; margin-left: 0; }
  .global-search span, .global-search kbd, .language-full { display: none; }
  .language-short { display: inline; }
  .language-switch { gap: 0; }
  .language-switch button { width: 27px; padding: 7px 2px; font-size: 11px; }
  body .page,
  body.jobzoo-mode .page,
  body.network-mode .page { padding: 10px 12px 12px; }
  .jobzoo-top {
    margin-bottom: 12px;
    gap: 8px;
    align-items: center;
  }
  .jobzoo-top h2 {
    font-size: 21px;
  }
  .jobzoo-dates {
    font-size: 12px;
    max-width: 160px;
  }
  .jobzoo-picker {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 6px;
    padding: 10px;
  }
  .jobzoo-picker .jobzoo-group-search,
  .jobzoo-picker .jobzoo-group-type {
    display: none;
  }
  .jobzoo-picker.jobzoo-picker-expanded .jobzoo-group-search,
  .jobzoo-picker.jobzoo-picker-expanded .jobzoo-group-type {
    display: flex;
  }
  .jobzoo-picker.jobzoo-picker-expanded .jobzoo-group-search {
    grid-column: 1 / -1;
  }
  .jobzoo-picker .jobzoo-mobile-filter {
    order: -1;
    display: block;
    height: 40px;
    align-self: end;
  }
  .jobzoo-picker {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .jobzoo-picker label:last-of-type {
    order: -1;
    grid-column: auto;
  }
  .jobzoo-picker label {
    min-width: 0;
    font-size: 12px;
  }
  .jobzoo-picker select {
    font-size: 13px;
  }
  .jobzoo-picker label:last-of-type select {
    font-size: 16px;
    font-weight: 650;
  }
  .jobzoo-group-result {
    margin: 6px 0 10px;
  }
  .jobzoo-steps {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 17px;
  }
  .jobzoo-steps button,
  .jobzoo-steps button:nth-child(n + 3) {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
    border-top: 0;
  }
  .jobzoo-heading h3 {
    font-size: 23px;
  }
  .jobzoo-heading {
    gap: 9px;
  }
  .jobzoo-heading > button {
    padding: 7px 9px;
  }
  .structure-caption {
    padding: 10px 12px;
  }
  .structure-caption strong {
    font-size: 12px;
  }
  .structure-toolbar {
    padding: 8px;
  }
  #structure-search-form {
    flex-basis: 100%;
  }
  .structure-camera-controls {
    gap: 0;
  }
  .structure-toolbar button {
    font-size: 12px;
    padding: 7px;
  }
  .structure-legend {
    gap: 6px 10px;
    padding: 4px 10px 10px;
  }
  .structure-frame {
    min-height: 400px;
    height: min(60vh, 440px);
  }
  .structure-status {
    font-size: 12px;
  }
  dialog {
    width: 100%;
    max-width: none;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }
  .dialog-head {
    padding: 15px 18px;
  }
  .dialog-head h2 {
    font-size: 17px;
  }
  .dialog-body {
    padding: 16px 18px max(20px, env(safe-area-inset-bottom));
  }
  .product-footer {
    font-size: 12px;
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* financial.css */
/* Financial components share the workspace colors without changing source documents. */
.financial-root { color: var(--ink); font: 14px/1.5 -apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif; }
.financial-root *, .financial-root *::before, .financial-root *::after { box-sizing: border-box; }
.financial-root [hidden] { display: none !important; }
.financial-standalone { margin: 0; background: var(--bg); }
.financial-standalone .financial-root { max-width: 1450px; margin: auto; padding: 24px; }
.financial-workspace { min-width: 0; }
.financial-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.financial-heading h1 { font-size: clamp(23px,2.4vw,30px); line-height: 1.25; letter-spacing: -.035em; margin: 5px 0 0; }
.financial-kicker { font-size: 12px; color: var(--muted); }
.financial-root a { color: var(--accent); text-decoration: none; }
.financial-root a:hover { text-decoration: underline; }
.financial-standalone-nav { display: flex; align-items: center; gap: 14px; }
.financial-standalone-nav a { white-space: nowrap; }
.financial-toolbar {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.financial-toolbar #financial-years { min-width: 0; order: 1; }
.financial-filter { display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.financial-filter > span { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.financial-root .financial-filter select,
.financial-root .financial-filter input { flex: 1 1 0; width: 0; max-width: none; min-height: 38px; border: 0; border-radius: 0; padding: 7px 0; background: transparent; }
.financial-root .financial-filter input::placeholder { color: var(--muted); }
.financial-filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #79b7ff20; }
#scope-label { order: 2; }
#mode-label { order: 3; }
#search-label { order: 4; }
#period-label { order: 5; grid-column: 1 / -1; }
.financial-year-picker { position: relative; font-size: 13px; color: var(--ink); }
.financial-year-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); cursor: pointer; list-style: none; }
.financial-year-picker > summary::-webkit-details-marker { display: none; }
.financial-year-picker > summary::after { content: '⌄'; }
.financial-year-picker > summary span { color: var(--muted); font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.financial-year-picker > summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.financial-year-options { position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; min-width: 230px; padding: 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 10px 25px #0008; }
.financial-year-options button { min-height: 39px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.financial-year-options button[aria-pressed=true] { background: var(--accent); color: #07101d; border-color: var(--accent); }
.financial-year-presets { grid-column: 1 / -1; display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 3px; }
.financial-year-presets button { flex: 1; font-size: 11px; }
.financial-comparison-table { min-width: 100%; }
.financial-comparison-table th:not(:first-child) { text-align: right; min-width: 170px; }
.financial-comparison-table th small { display: block; font-weight: 400; margin-top: 3px; }
.financial-table .financial-comparison-account { position: sticky; left: 0; z-index: 1; min-width: 160px; max-width: 250px; background: var(--surface); border-right: 1px solid var(--line); white-space: normal; }
.financial-table th.financial-comparison-account { z-index: 2; background: var(--raised); }
.financial-comparison-account small { display: block; color: var(--muted); font-size: 10px; }
.financial-comparison-cell { text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.financial-comparison-source { font-size: 10px; color: var(--muted); text-align: left; max-width: 230px; margin-top: 4px; }
.financial-comparison-source summary { cursor: pointer; text-align: right; }
.financial-comparison-source > summary { font-size: 13px; color: var(--ink); }
.financial-comparison-table tbody .financial-comparison-account { top: auto; font-size: 13px; font-weight: 550; }
.financial-comparison-account span { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 4px; }
.financial-comparison-period { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 4px; }
.financial-comparison-unmatched { padding: 13px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.financial-comparison-unmatched > summary { cursor: pointer; }
.financial-comparison-unmatched ul { list-style: none; padding: 0; }
.financial-comparison-unmatched li { display: grid; grid-template-columns: minmax(150px,1fr) minmax(140px,1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.financial-comparison-unmatched li .financial-comparison-source { width: 100%; max-width: none; margin: 0; }
.financial-comparison-table thead [data-financial-retry] { margin-top: 5px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); color: var(--accent); font-size: 11px; cursor: pointer; }
.financial-comparison-source span, .financial-comparison-source a { display: block; white-space: normal; margin-top: 4px; }
.financial-comparison-year-status { font-size: 11px; color: var(--muted); }
.financial-comparison-retry { margin-top: 5px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); color: var(--accent); cursor: pointer; }
.financial-root select, .financial-root input { min-width: 0; width: 100%; max-width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--soft); color: var(--ink); font: inherit; font-size: 13px; line-height: 1.3; }
.financial-root select { text-overflow: ellipsis; }
.financial-root input { max-width: 210px; }
.financial-root select:focus-visible, .financial-root input:focus-visible, .financial-root button:focus-visible, .financial-root summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.financial-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 3px; border-bottom: 1px solid var(--line); }
.financial-tabs button { flex: 0 0 auto; border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; padding: 11px 13px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.financial-tabs button[aria-selected=true] { color: var(--ink); border-color: var(--accent); font-weight: 650; }
.financial-tabs button:hover { background: var(--hover); }
.financial-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 13px 0 9px; font-size: 11px; color: var(--muted); }
.financial-notice { color: var(--gold); background: #dca94e0e; border-radius: 7px; padding: 8px 12px; font-size: 12px; margin: 0 0 10px; }
.financial-notice:empty { display: none; }
.financial-table { overflow: auto; max-height: 70vh; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.financial-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.financial-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: var(--raised); font-size: 11px; font-weight: 600; }
.financial-table th, .financial-table td { padding: 11px 15px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.financial-table tr:last-child td { border-bottom: 0; }
.financial-table tr:hover td { background: var(--hover); }
.financial-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.financial-table.checkedtable th:nth-child(2), .financial-table.checkedtable th:nth-child(4) { text-align: right; }
.financial-table.checkedtable td:first-child { min-width: 190px; max-width: 310px; white-space: normal; }
.financial-row-source { font-size: 11px; color: var(--muted); }
.financial-row-source summary { cursor: pointer; }
.financial-row-source span { display: block; max-width: 280px; white-space: normal; margin-top: 5px; }
.financial-original-link { display: block; padding: 11px 15px; border-top: 1px solid var(--line); font-size: 12px; }
.financial-sources { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: 12px; }
.financial-sources > summary { cursor: pointer; color: var(--ink); }
.financial-sources p { margin: 10px 0; line-height: 1.7; }
.financial-sources #source-summary { margin: 12px 0 8px; }
.financial-sources #sources { display: grid; gap: 7px; }
.financial-sources nav { display: flex; gap: 15px; flex-wrap: wrap; }
.financial-root .empty { padding: 30px 16px; color: var(--muted); font-size: 13px; }
.financial-table.native { max-height: none; }
.financial-table iframe { width: 100%; height: 66vh; min-height: 450px; border: 0; background: white; }
.financial-table .native-link { display: inline-block; padding: 10px 15px; font-size: 12px; }
@media (max-width: 700px) {
  .financial-standalone .financial-root { padding: 16px; }
  .financial-heading { margin-bottom: 14px; align-items: start; }
  .financial-standalone-nav { align-items: end; flex-direction: column; gap: 6px; font-size: 12px; }
  .financial-toolbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .financial-filter, .financial-year-picker > summary { min-height: 44px; }
  .financial-root .financial-filter select, .financial-root .financial-filter input { min-height: 42px; }
  .financial-root input { max-width: none; }
  .financial-tabs button { min-height: 44px; padding: 10px; font-size: 12px; }
  .financial-table { max-height: 68vh; border-radius: 8px; }
  .financial-table th, .financial-table td { padding: 10px; }
  .financial-table.checkedtable td:first-child { min-width: 150px; }
  .financial-status { gap: 5px; }
}

/* financial-charts.css */
/* Annual financial charts use the same quiet surface as the company workspace. */
.financial-chart-host { container-type: inline-size; container-name: financial-charts; }
.financial-charts {
  margin: 18px 0 22px;
  min-width: 0;
}
.financial-chart-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.financial-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.financial-chart-card {
  --chart-color: #79b7ff;
  container-type: inline-size;
  container-name: financial-chart-card;
  min-width: 0;
  padding: 18px 20px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.financial-chart-revenue {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(170px, .42fr) minmax(0, 1fr);
  column-gap: 30px;
  align-items: center;
}
.financial-chart-revenue .financial-chart-values { grid-column: 1 / -1; }
.financial-chart-operatingProfit { --chart-color: #68c6bb; }
.financial-chart-operatingMargin { --chart-color: #dfb267; }
.financial-chart-assets { --chart-color: #ac9be9; }
.financial-chart-liabilities { --chart-color: #93adc8; }
.financial-chart-intro > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.financial-chart-card h3 {
  color: var(--ink);
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.financial-chart-unit { color: var(--muted); font-size: 11px; white-space: nowrap; }
.financial-chart-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 9px;
  font-variant-numeric: tabular-nums;
}
.financial-chart-headline strong { font-size: 28px; font-weight: 650; letter-spacing: -.03em; }
.financial-chart-headline > span { color: var(--muted); font-size: 11px; }
.financial-chart-svg { display: block; width: 100%; overflow: visible; }
.financial-chart-svg text { fill: var(--muted); font-family: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.financial-chart-tick line { stroke: var(--line); stroke-width: 1; }
.financial-chart-zero line { stroke: #b5d3f54a; }
.financial-chart-tick text { font-size: 14px; }
.financial-chart-bar { fill: var(--chart-color); opacity: .78; }
.financial-chart-bar.financial-chart-loss { fill: #ec9189; }
.financial-chart-point:hover .financial-chart-bar { opacity: 1; }
.financial-chart-line { fill: none; stroke: var(--chart-color); stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.financial-chart-dot { fill: var(--chart-color); stroke: var(--surface); stroke-width: 2; }
.financial-chart-svg .financial-chart-value { fill: var(--ink); font-size: 14px; }
.financial-chart-svg .financial-chart-missing { fill: var(--muted); opacity: .75; }
.financial-chart-svg .financial-chart-empty { font-size: 13px; }
.financial-chart-values { margin-top: 2px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.financial-chart-values > summary { padding: 12px 0; cursor: pointer; }
.financial-chart-values > summary:hover { color: var(--ink); }
.financial-chart-values ol { margin: 0; padding: 0; list-style: none; }
.financial-chart-values li { padding: 11px 0; border-top: 1px solid var(--line); }
.financial-chart-source-value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.financial-chart-source-value strong { color: var(--ink); font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.financial-chart-source { display: flex; flex-wrap: wrap; gap: 3px 12px; padding-top: 4px; line-height: 1.6; overflow-wrap: anywhere; }
.financial-chart-source a { white-space: nowrap; }
.financial-chart-retry { padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--ink); cursor: pointer; }
@container financial-charts (max-width: 850px) {
  .financial-charts { margin-top: 14px; }
  .financial-chart-grid { gap: 12px; }
  .financial-chart-revenue { display: block; }
  .financial-chart-card { padding: 15px 12px 0; border-radius: 10px; }
}
@container financial-charts (max-width: 420px) {
  .financial-chart-grid { gap: 8px; }
  .financial-chart-card { padding: 13px 8px 0; }
}
@container financial-chart-card (max-width: 420px) {
  .financial-chart-svg text { font-size: 22px; }
  .financial-chart-tick text { font-size: 20px; }
  .financial-chart-svg .financial-chart-value { font-size: 20px; }
  .financial-chart-svg .financial-chart-empty { font-size: 22px; }
}
@container financial-chart-card (max-width: 280px) {
  .financial-chart-intro > header { gap: 6px; flex-wrap: wrap; }
  .financial-chart-card h3 { font-size: 13px; }
  .financial-chart-headline { gap: 3px 8px; flex-wrap: wrap; }
  .financial-chart-headline strong { font-size: 23px; }
  .financial-chart-svg text { font-size: 30px; }
  .financial-chart-tick text { font-size: 26px; }
  .financial-chart-svg .financial-chart-value { font-size: 22px; }
  .financial-chart-svg .financial-chart-empty { font-size: 28px; }
}
@container financial-chart-card (max-width: 190px) {
  .financial-chart-headline strong { font-size: 20px; }
  .financial-chart-svg text { font-size: 36px; }
  .financial-chart-tick text { font-size: 30px; }
  .financial-chart-svg .financial-chart-value { font-size: 22px; }
  .financial-chart-svg .financial-chart-empty { font-size: 30px; }
}

/* network-detail-dock.css */
/* The inspector occupies its own grid track. It never covers the map. */
#network-workspace .network-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
#network-workspace.detail-open .network-frame {
  grid-template-columns: minmax(0, 1fr) var(--network-detail-width, clamp(360px, 40vw, 500px));
}
#network-workspace .network-map-surface {
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
#network-detail .network-detail-resize {
  position: absolute;
  z-index: 6;
  inset: 0 auto 0 0;
  width: 12px;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
#network-detail .network-detail-resize::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  width: 3px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: #b5d3f54a;
}
#network-detail .network-detail-resize:hover::before,
#network-detail .network-detail-resize:focus-visible::before { background: var(--accent); }
#network-detail .network-detail-resize:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
#network-workspace.detail-resizing-width,
#network-workspace.detail-resizing-width * { cursor: ew-resize !important; user-select: none; }
#network-workspace.detail-resizing-height,
#network-workspace.detail-resizing-height * { cursor: ns-resize !important; user-select: none; }
#network-workspace #network-detail {
  position: relative;
  inset: auto;
  z-index: auto;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  background: var(--surface);
  overflow: hidden;
}
#network-detail .network-detail-heading {
  flex: 0 0 auto;
  padding: 17px 18px 11px;
  border-bottom: 1px solid var(--line);
}
#network-detail .network-detail-heading h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#network-detail .network-detail-heading small { color: var(--muted); font-size: 12px; }
#network-detail .network-detail-nav {
  flex: 0 0 auto;
  min-height: 54px;
  gap: 7px;
  padding: 0 9px 0 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
#network-detail-tabs {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 0;
  gap: 2px;
}
#network-detail-tabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  padding: 10px 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
#network-detail-tabs button.active {
  border-bottom-color: var(--accent);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}
#network-detail-tabs button:hover { background: var(--raised); color: var(--ink); }
#network-detail-close, #network-detail-expand {
  flex: 0 0 40px;
  min-width: 40px;
  min-height: 44px;
  padding: 8px;
  color: var(--muted);
  font-size: 21px;
}
#network-detail-expand { display: inline-block; }
#network-detail-close:hover, #network-detail-expand:hover { background: var(--hover); }
#network-detail button:focus-visible, #network-detail a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
#network-detail .net-inspector {
  padding: 17px;
  min-width: 0;
  background: var(--surface);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#network-detail .inspect-head { align-items: start; gap: 12px; }
#network-detail .inspect-head h3 { font-size: 22px; line-height: 1.35; overflow-wrap: anywhere; }
#network-detail .inspect-head p { margin-top: 5px; line-height: 1.6; }
#network-detail .inspect-actions { gap: 6px; }
#network-detail .inspect-actions button, #network-detail .inspect-actions a {
  padding: 7px 9px;
  border-color: var(--line);
  background: var(--soft);
  font-size: 11px;
}
#network-detail .net-table-wrap { margin-top: 15px; border-top: 1px solid var(--line); }
#network-detail .net-table td { padding: 11px 6px; line-height: 1.65; }
#network-detail .net-table th { padding: 9px 6px; background: var(--raised); }
#network-detail .net-table .node-name { text-align: left; line-height: 1.5; }
#network-detail .net-table td small { margin-top: 4px; font-size: 10px; color: var(--muted); }
#network-detail .net-table .proof { font-size: 10px; padding: 5px 7px; }
#network-detail .financial-root {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 17px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#network-detail:has(.network-detail-heading) .financial-heading,
#network-detail:has(.network-detail-heading) .inspect-head h3 { display: none; }
#network-detail .financial-heading h1 { font-size: 23px; line-height: 1.35; }
#network-detail .financial-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
#network-detail .financial-toolbar label { margin: 0; max-width: none; }
#network-detail .financial-root input { max-width: none; }
#network-detail .financial-tabs button { min-height: 44px; padding: 9px 10px; font-size: 12px; }
#network-detail .financial-status { gap: 5px 10px; margin: 11px 0 8px; }
#network-detail .financial-table { max-height: none; border-radius: 7px; overflow-x: auto; overflow-y: hidden; }
#network-detail .financial-table th, #network-detail .financial-table td { padding: 10px 11px; font-size: 12px; }
#network-detail .financial-table.checkedtable td:first-child { min-width: 145px; max-width: 195px; }
#network-detail .financial-table.checkedtable th:first-child,
#network-detail .financial-table.checkedtable td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
#network-detail .financial-table.checkedtable th:first-child { z-index: 2; background: var(--raised); }
#network-detail .financial-table.native { max-height: none; }
#network-detail .financial-table iframe { height: 46dvh; min-height: 320px; }
#network-detail .financial-sources { margin-top: 14px; padding-top: 11px; font-size: 11px; }
#network-detail .disclosure-panel { background: var(--surface); color: var(--ink); z-index: auto; }
#network-detail .disclosure-panel header { padding: 17px; border-color: var(--line); }
#network-detail .disclosure-panel h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.35; }
#network-detail .disclosure-panel small { color: var(--muted); }
#network-detail .disclosure-panel button { background: var(--soft); color: var(--ink); border-color: var(--line); }
#network-detail .disclosure-panel a { color: var(--ink); font-size: 13px; }
#network-detail .disclosure-panel a:hover { color: var(--accent); }
#network-detail .disclosure-list { scrollbar-gutter: stable; }
#network-detail .disclosure-list article { padding: 14px 17px; border-color: var(--line); }
#network-detail .disclosure-item-meta button { background: none; color: var(--accent); font-size: 12px; }
#network-detail .disclosure-item-meta time { color: var(--muted); }
#network-detail .disclosure-list b { color: var(--gold); }
#network-detail .disclosure-panel footer { padding: 11px 17px; border-color: var(--line); color: var(--muted); }
#network-detail .disclosure-panel footer a { font-size: 11px; }
#network-detail .disclosure-panel footer strong { color: var(--gold); }
#network-detail .disclosure-empty { padding: 25px 17px; color: var(--muted); }
@media (max-width: 1020px) {
  #network-workspace.detail-open[data-detail-tab] .network-frame,
  body.network-mode #network-workspace.detail-open[data-detail-tab] .network-frame {
    height: max(520px, calc(100dvh - var(--topbar) - var(--navigation-safe-bottom, 0px) - 108px));
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, var(--network-detail-height, 56%));
  }
  #network-workspace #network-detail { border-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  #network-detail .network-detail-resize { inset: 0 0 auto; width: auto; height: 26px; cursor: ns-resize; }
  #network-detail .network-detail-resize::before {
    top: 8px;
    left: 50%;
    width: 44px;
    height: 3px;
    transform: translateX(-50%);
  }
  #network-workspace.network-wide.detail-open[data-detail-tab] .network-frame,
  body.network-mode #network-workspace.network-wide.detail-open[data-detail-tab] .network-frame {
    height: auto;
    min-height: 0;
  }
}
@media (max-width: 600px) {
  #network-detail .network-detail-nav { padding-left: 8px; gap: 3px; }
  #network-detail-tabs button { font-size: 12px; }
  #network-detail .net-inspector, #network-detail .financial-root { padding: 14px 12px; }
  #network-detail .inspect-head h3, #network-detail .financial-heading h1 { font-size: 21px; }
  #network-detail .financial-toolbar { gap: 8px; }
  #network-detail .financial-table.checkedtable td:first-child { min-width: 132px; }
  #network-detail .disclosure-panel header, #network-detail .disclosure-list article { padding: 14px 12px; }
}

/* navigation-dock.css */
/* The edge menu floats above the workspace and never reserves a sidebar column. */
:root { --navigation-safe-bottom: 0px; }
.nav-dock {
  position: fixed;
  z-index: 42;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.nav-dock-trigger {
  display: grid;
  place-items: center;
  width: 30px;
  height: 56px;
  padding: 4px;
  border: 0;
  border-radius: 0 8px 8px 0;
  color: #c4e0f6;
  background: transparent;
}
.nav-dock-trigger:hover { background: #b3dbff18; }
.nav-dock-trigger svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body .nav-dock .nav-dock-panel {
  position: absolute;
  inset: auto auto auto 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: max-content;
  max-width: min(240px, calc(100vw - 48px));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  gap: 4px;
  padding: 10px;
  margin: 0;
  border: 1px solid #688ba46b;
  border-radius: 13px;
  background: #102435cc;
  box-shadow: 0 12px 35px #0007;
  backdrop-filter: blur(14px);
}
body .nav-dock-panel[hidden], .nav-dock-trigger[hidden] { display: none !important; }
body .nav-dock .nav-dock-panel :is(button, a) {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  color: #d8eafa;
  background: transparent;
  text-decoration: none;
  text-align: left;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
}
.nav-dock-panel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
body .nav-dock .nav-dock-panel :is(button, a):hover { background: #8bc2ef20; }
body .nav-dock .nav-dock-panel :is(button.active, a[aria-current]) { background: #79baf233; color: #eef8ff; font-weight: 700; }
.nav-short { display: none; }
body .nav-dock-panel :is(button, a):focus-visible,
.nav-dock-trigger:focus-visible { outline: 2px solid var(--focus, #79b7ff); outline-offset: -2px; }
@media (max-width: 860px), (hover: none), (pointer: coarse) {
  :root { --navigation-safe-bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
  :root.navigation-dock-expanded {
    --navigation-safe-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
  html { scroll-padding-bottom: var(--navigation-safe-bottom); }
  .nav-dock {
    inset: auto 0 0;
    transform: none;
    height: var(--navigation-safe-bottom);
    pointer-events: none;
  }
  .nav-dock-trigger {
    position: absolute;
    bottom: env(safe-area-inset-bottom, 0px);
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 44px;
    border-radius: 8px 8px 0 0;
    pointer-events: auto;
  }
  .nav-dock-trigger svg { transform: rotate(-90deg); }
  .nav-dock.dock-open .nav-dock-trigger svg { transform: rotate(90deg); }
  body .nav-dock .nav-dock-panel {
    inset: auto auto calc(44px + env(safe-area-inset-bottom, 0px)) 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    height: 64px;
    max-width: 440px;
    max-height: none;
    overflow: visible;
    gap: 2px;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid #688ba46b;
    border-radius: 13px;
    background: #102435cc;
    pointer-events: auto;
  }
  body .nav-dock .nav-dock-panel :is(button, a) {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 44px;
    min-height: 50px;
    padding: 5px 1px;
    border-radius: 7px;
    font-size: 10.5px;
    line-height: 13px;
    text-align: center;
  }
  .nav-dock-panel .nav-text { display: none; }
  .nav-dock-panel .nav-short { display: block; }
  body > main.page, body.network-mode > main.page,
  body.jobzoo-mode > main.page, body > .nav-dock + main {
    padding-bottom: calc(24px + var(--navigation-safe-bottom));
  }
}
@media (prefers-reduced-transparency: reduce) {
  body .nav-dock .nav-dock-panel { backdrop-filter: none; background: #102435; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dock * { transition: none !important; animation: none !important; }
}

/* shareholder-total.css */
.shareholder-total {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #6db2ff09;
  color: var(--ink);
}
.shareholder-total header { font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.shareholder-total-basis + .shareholder-total-basis { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.shareholder-total-basis > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shareholder-total strong { font-size: 28px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.shareholder-total small { display: block; margin-top: 4px; color: var(--muted); }
.shareholder-total details { margin-top: 8px; font-size: 12px; }
.shareholder-total summary { cursor: pointer; }
.shareholder-total details p { margin: 8px 0; font-size: 12px; line-height: 1.6; }
.shareholder-total[aria-busy="true"] strong { opacity: .4; }

/* watchlist.css */
.watchlist-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.watchlist-star.is-saved { color: var(--accent); background: #79b7ff18; border-color: #79b7ff66; }
.watchlist-star:hover { background: var(--hover); }
.watchlist-star:focus-visible, .watchlist-panel summary:focus-visible {
  outline: 2px solid #286bc5;
  outline-offset: 2px;
}
.watchlist-result { display: flex; align-items: center; gap: 8px; }
.search-results .watchlist-result > [data-id] { flex: 1; min-width: 0; }
.watchlist-title { display: flex; align-items: center; gap: 10px; }
.watchlist-title h3 { margin: 0; }
#network-detail .network-detail-heading { position: relative; }
#network-detail .network-detail-heading:has(> .watchlist-star) h3 { padding-right: 44px; }
#network-detail .network-detail-heading > .watchlist-star { position: absolute; top: 14px; right: 16px; }
.net-toolbar > .watchlist-panel { position: relative; flex: 0 0 auto; z-index: 32; }
.watchlist-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 13px;
  border: 1px solid #caddf0;
  border-radius: 10px;
  background: #ffffffae;
  color: #315f90;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.watchlist-panel > summary::-webkit-details-marker { display: none; }
.watchlist-panel[open] > summary { border-color: #8cb7de; background: #e2f0ff; }
.watchlist-drawer {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 330px;
  max-width: calc(100vw - 48px);
  max-height: min(70vh, 570px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px;
  border: 1px solid #cbdff1;
  border-radius: 14px;
  background: #f2f8fffa;
  color: #365b82;
  box-shadow: 0 12px 30px #1e4b7833;
}
.watchlist-drawer-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.watchlist-drawer-heading span { color: #6581a0; font-size: 11px; }
.watchlist-planet { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; }
.watchlist-planet input { width: 18px; height: 18px; accent-color: #2d77c6; }
.watchlist-search-label { display: grid; gap: 6px; font-size: 12px; }
.watchlist-search-label input { width: 100%; min-width: 0; background: #ffffffbd; }
.watchlist-list { margin: 10px 0; }
.watchlist-results:empty { display: none; }
.watchlist-results { margin: 7px 0; border-bottom: 1px solid #cddfed; padding-bottom: 7px; }
.watchlist-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.watchlist-row .watchlist-company {
  display: block;
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 7px 4px;
  text-align: left;
  color: #234d78;
  font-size: 13px;
  white-space: normal;
}
.watchlist-company small { display: block; margin-top: 3px; font-size: 11px; color: #718ba6; }
.watchlist-company:disabled { opacity: .65; }
.watchlist-empty { padding: 12px 4px; color: #7890a9; font-size: 12px; }
.watchlist-file-actions { display: flex; gap: 6px; margin: 9px 0; }
.watchlist-file-actions button { flex: 1; font-size: 12px; background: #ffffffb8; }
.watchlist-drawer > small { display: block; color: #718ba6; font-size: 11px; }
.watchlist-device { margin-top: 4px; }
.watchlist-message { margin: 7px 0 0; font-size: 12px; color: #35689c; }
.watchlist-message:empty { display: none; }
#network-cluster-labels [data-cluster="watchlist:personal"] { border-color: #659acb; color: #c8e3fb; }
#network-cluster-labels [data-cluster="watchlist:personal"]::before { content: '★ '; color: #91bde8; }
#network-cluster-regions [data-cluster-region="watchlist:personal"] { stroke: #5487b5; }
#network-cluster-regions [data-cluster-region="watchlist:personal"].selected { stroke: #a2ccf3; }
@media (max-width: 680px) {
  .net-toolbar > .watchlist-panel { margin-left: auto; }
  .watchlist-panel > summary { padding: 8px 10px; font-size: 12px; }
  .watchlist-drawer { width: 300px; max-height: 58vh; }
  .watchlist-row .watchlist-star { min-width: 42px; min-height: 42px; }
}

/* market-filters.css */
.market-filters {
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #d4e4f3;
}
.market-filter-controls {
  display: grid;
  gap: 10px;
}
.net-options-panel .market-filters select, .market-filters input {
  width: 230px;
  max-width: 75%;
  min-height: 36px;
  border: 1px solid #bfd7ed;
  border-radius: 8px;
  background: rgba(247, 252, 255, .8);
  color: #254b70;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
}
.market-filters input { width: 70px; box-sizing: border-box; }
#market-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #bfd7ed;
  border-radius: 8px;
  color: #42678b;
  background: rgba(247, 252, 255, .8);
}
#market-reset:hover { background: #dceeff; }
#market-data-status { flex-shrink: 0; font-size: 12px; }
.market-empty {
  position: absolute; inset: 40% 20px auto; z-index: 3;
  text-align: center; color: #c4dbef; pointer-events: none;
}
.market-filters select:focus-visible, .market-filters input:focus-visible,
#market-reset:focus-visible { outline: 2px solid #408bdd; outline-offset: 2px; }
@media (max-width: 640px) {
  .net-options-panel .market-filters select { min-height: 44px; font-size: 16px; }
  #market-reset { min-width: 44px; height: 44px; }
}

/* workspace-theme.css */
/* One quiet dark workspace, shared by the map and every data view. */
:root {
  color-scheme: dark;
  --bg: #030508;
  --surface: #0b111b;
  --panel: #121c29e6;
  --raised: #111a27;
  --ink: #e5eef9;
  --muted: #a2b3c8;
  --line: #b5d3f526;
  --accent: #79b7ff;
  --soft: #ffffff09;
  --gold: #dfb267;
  --focus: #79b7ff;
  --hover: #182536;
  --space-panel: var(--panel);
  --space-line: var(--line);
  --space-ink: var(--ink);
  --space-muted: var(--muted);
}
body {
  background: var(--bg);
  background-image: none;
  color: var(--ink);
}
body .topbar,
body.jobzoo-mode .topbar,
body.network-mode .topbar {
  background: var(--bg);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding-block: 6px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
}
.topbar .global-search { grid-column: 3; }
.topbar .language-switch { grid-column: 4; }
.brand .wordmark { color: var(--ink); }
body .page, body.jobzoo-mode .page { background: transparent; padding-top: 8px; }
button, input, select, .link-button {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--line);
}
button:hover, .link-button:hover { background: var(--hover); border-color: #79b7ff66; }
input::placeholder { color: #889bb4; }
button.primary, .jobzoo-company-title .primary {
  color: #07101d;
  background: var(--accent);
  border-color: var(--accent);
}
button.primary:hover { background: #a2ceff; }
.global-search {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--line);
}
#ownership-year {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
#ownership-year:hover, #ownership-year:focus-visible {
  background: var(--soft);
  color: var(--ink);
}
.global-search kbd { border-color: var(--line); }
.language-switch button { background: transparent; color: var(--muted); }
.language-switch button.active { background: var(--soft); color: var(--ink); }
#year-progress { color: var(--ink); background: var(--panel); }
.empty, #view > [role="status"] { background: transparent; }
.pill { color: var(--muted); background: var(--soft); }
.warn, .notice, .dialog-body .notice { color: var(--gold); background: #dca94e0e; }
.text-button, .node-name, .proof { background: transparent; }
.jobzoo-picker, .jobzoo-steps, .filters, .path-form {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}
.jobzoo-picker { padding: 12px 0; border-inline: 0; border-radius: 0; }
.jobzoo-steps button.active { color: var(--accent); background: var(--soft); box-shadow: none; }
.jobzoo-steps button { color: var(--muted); }
.jobzoo-relations > section, .jobzoo-chart-box,
.structure-workspace, .path-node, .group-block, .review,
.jobzoo-directory-card, .jobzoo-evidence, .history-scroll {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
}
.structure-toolbar, .structure-legend { background: transparent; }
.structure-frame { background: #060b12; border-color: var(--line); }
.structure-caption, .structure-inspector { background: var(--surface); }
.structure-relation { background: var(--raised); }
.structure-relation button { color: var(--ink); }
.structure-member-swatch { background: #183354; border-color: #719dce !important; }
.structure-holder-swatch, .structure-related-party-swatch { background: #222d40; }
.structure-external-swatch { background: #131d29; }
#structure-regions rect { fill: #0a1320; stroke: #87add538; }
#structure-regions text { fill: var(--muted); }
dialog { background: var(--surface); border-color: var(--line); box-shadow: 0 22px 60px #0009; }
dialog::backdrop { background: #000b; backdrop-filter: none; }
.search-results button:hover { background: var(--hover); }
.proof-table th { background: var(--raised); }
.product-footer { flex-wrap: wrap; }
.product-contact {
  flex-basis: 100%;
  order: 1;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.product-contact a { color: inherit; white-space: nowrap; text-underline-offset: 3px; }
.product-contact a:hover { color: var(--ink); }
body .product-footer .product-contact { margin: 0; }
.financial-standalone .product-contact { margin-top: 24px; }
@media (max-width: 860px), (hover: none), (pointer: coarse) {
  .product-contact { padding-bottom: max(14px, var(--navigation-safe-bottom, 0px)); }
}
.usage-settings p { max-width: 390px; }
.usage-settings .check { justify-content: flex-end; margin-top: 10px; }
@media (max-width: 540px) {
  body .topbar, body.jobzoo-mode .topbar, body.network-mode .topbar {
    grid-template-columns: auto auto minmax(44px, 1fr) auto;
    padding-inline: 10px;
  }
  body #ownership-year { width: 72px; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --soft: #111a27; --panel: #121c29; }
}

/* network-space.css */
/* Map-only surfaces. Shared dark colors live in workspace-theme.css. */
body.network-mode .page { padding: 0; margin: 0; }
body.network-mode #network-workspace {
  background: var(--bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.network-mode #network-workspace .network-frame {
  background: var(--bg);
  border: 0;
  border-radius: 0;
}
body.network-mode .network-map-surface { background: var(--bg); }
body.network-mode .network-busy { background: #030508de; color: #c4d5e9; }
body.network-mode .network-hud,
body.network-mode .large-network.has-selection .network-hud {
  background: #0c131cd6;
  border-color: var(--line);
}
body.network-mode .network-cluster-labels button,
body.network-mode .network-group-labels button {
  color: #dce9f8;
  background: #101720bf;
  border-color: #a8c6e63d;
  box-shadow: none;
}
body.network-mode #network-workspace .network-cluster-regions circle { stroke: none; }
body.network-mode .network-cluster-regions circle { fill: #9ac9ff03; }
body.network-mode .network-cluster-regions circle.selected { fill: #9ac9ff08; }
body.network-mode .network-controls.controls-inline {
  background: #0e151edf;
  border-color: var(--line);
  box-shadow: none;
}
body.network-mode .network-controls button,
body.network-mode #net-clear-top {
  color: #d8e6f8;
  background: #ffffff09;
  border-color: var(--line);
}
body.network-mode .network-controls button:hover { background: #ffffff18; }
body.network-mode .network-controls output { color: #c3d6ef; }
body.network-mode .net-zoom-controls { border-color: var(--line); }
body.network-mode .network-status,
body.network-mode .network-guide { display: none; }
body.network-mode .product-footer { padding: 16px 24px 0; }
body.network-mode .product-footer > :not(.product-contact) { display: none; }
body.network-mode #network-workspace .net-selected {
  color: #c4d5e9;
  background: var(--bg);
}
body.network-mode #network-workspace .net-options-panel,
body.network-mode .disclosure-options-content {
  background: var(--panel);
  color: #dce8f7;
  border-color: #9ab6d53b;
  box-shadow: 0 10px 28px #0008;
}
body.network-mode .net-options-panel label,
body.network-mode .net-options-panel summary { color: #bccce0; }
body.network-mode #net-options-panel .listed-map-summary { background: transparent; }
body.network-mode .net-options-panel select,
body.network-mode .net-options-panel input,
body.network-mode .net-options-panel button,
body.network-mode #market-reset {
  background: #172332;
  color: #d2e1f5;
  border-color: #9ab6d533;
}
body.network-mode .net-options-panel .active { background: #304b70; color: #fff; }
body.network-mode .market-filters { border-color: var(--line); }
body.network-mode #network-workspace .watchlist-drawer {
  background: var(--panel);
  color: #dce8f7;
  border-color: var(--line);
  box-shadow: 0 10px 28px #0008;
}
body.network-mode .watchlist-drawer input,
body.network-mode .watchlist-drawer button {
  background: #172332;
  color: #d2e1f5;
  border-color: #9ab6d533;
}
body.network-mode .watchlist-drawer small,
body.network-mode .watchlist-empty,
body.network-mode .watchlist-drawer-heading span,
body.network-mode .watchlist-message { color: #9cabbc; }
body.network-mode #network-workspace.network-wide .network-frame { height: auto; }
@media (max-width: 1020px) {
  body.network-mode #network-workspace.detail-open .network-frame { height: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  body.network-mode .network-controls.controls-inline,
  body.network-mode .network-hud { background: #101720; }
}

/* network-toolbar.css */
/* The map has one compact instrument row beneath the shared masthead. */
#network-workspace .net-toolbar {
  --network-toolbar-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%239bb6d3' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 56px;
  padding: 8px 20px 8px 42px;
  border: 0;
  border-radius: 0;
  color: var(--space-ink, #eaf2fa);
  background: transparent;
}
#network-workspace .network-heading { display: block; flex: 0 0 auto; margin: 0 4px 0 0; }
#network-workspace .network-heading h2 { color: #d9e5f4; font-size: 17px; }
#network-workspace .network-toolbar-tools { display: contents; }
.toolbar-label-compact { display: none; }
#network-workspace .disclosure-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--space-muted, #a2b4c9);
  background: transparent;
  font-size: 12px;
}
.disclosure-bar strong { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.disclosure-dot { width: 7px; height: 7px; border-radius: 50%; background: #5eaeff; }
#network-workspace .net-toolbar select,
#network-workspace .net-toolbar button,
#network-workspace .net-toolbar summary {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  color: #cbdcf1;
  background: #ffffff08;
  border: 1px solid var(--space-line, #b5d3f526);
  border-radius: 8px;
}
#network-workspace .net-toolbar button:hover,
#network-workspace .net-toolbar summary:hover { background: #ffffff12; }
#network-workspace .net-toolbar summary { cursor: pointer; list-style: none; white-space: nowrap; }
#network-workspace .net-toolbar summary::-webkit-details-marker { display: none; }
#network-workspace .net-toolbar summary::after { content: '⌄'; padding-left: 9px; color: #9bb6d3; }
#network-workspace .net-toolbar details[open] > summary { border-color: #7faee76b; background: #8db7ee16; }
#network-workspace .net-toolbar :focus-visible { outline: 2px solid #77b7ff; outline-offset: 2px; }
/* Only the five outer instruments share this geometry; popup contents keep their layout. */
#network-workspace .network-toolbar-tools :is(
  #disclosure-period, #disclosure-open, #disclosure-types-summary,
  #watchlist-panel > summary, #net-options > summary
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: normal;
  vertical-align: middle;
  white-space: nowrap;
}
#network-workspace .network-toolbar-tools :is(
  #disclosure-types-summary, #watchlist-panel > summary, #net-options > summary
)::after {
  content: '';
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  padding: 0;
  background: var(--network-toolbar-chevron) center / 10px 10px no-repeat;
}
#network-workspace .network-toolbar-tools select#disclosure-period {
  appearance: none;
  padding-right: 26px;
  text-align: left;
  background-image: var(--network-toolbar-chevron);
  background-position: right 10px center;
  background-size: 10px 10px;
  background-repeat: no-repeat;
}
#network-workspace .disclosure-bar label { flex-direction: row; align-items: center; gap: 6px; font-size: 12px; }
.disclosure-bar label,
.disclosure-bar strong,
.disclosure-period select { white-space: nowrap; }
.disclosure-bar [hidden] { display: none !important; }
.disclosure-highlight { min-height: 34px; cursor: pointer; }
.disclosure-highlight-compact { display: none; }
.disclosure-highlight b { min-width: 23px; font-size: 10px; letter-spacing: .05em; color: #71b7ff; }
.disclosure-highlight input {
  appearance: none;
  position: relative;
  width: 30px;
  min-width: 30px;
  height: 18px;
  padding: 0;
  margin: 0;
  border: 1px solid #7289a255;
  border-radius: 12px;
  background: #35465b;
  cursor: pointer;
}
.disclosure-highlight input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eaf0f3;
}
.disclosure-highlight input:checked { background: #459bed; border-color: #459bed; }
.disclosure-highlight input:checked::after { left: 14px; background: #f8fcff; }
.disclosure-bar[data-highlight="false"] .disclosure-highlight b { color: #8494a8; }
.disclosure-bar[data-highlight="false"] .disclosure-dot { background: #738599; }
.disclosure-options { position: relative; }
.disclosure-options-content {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 36;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 290px;
  max-width: calc(100vw - 32px);
  max-height: min(70vh, 570px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border: 1px solid #9ab6d53b;
  border-radius: 12px;
  color: #dce8f7;
  background: var(--space-panel, #101720f5);
  box-shadow: 0 10px 28px #0008;
}
.disclosure-types { flex-basis: 100%; min-width: 0; padding: 0; margin: 0; border: 0; }
.disclosure-types legend { padding: 0; font-weight: 650; color: #dce8f7; }
.disclosure-type-actions { display: flex; gap: 6px; margin: 8px 0; }
.disclosure-type-actions button[aria-pressed="true"] { font-weight: 700; }
.disclosure-type-choices { display: grid; gap: 3px; }
#network-workspace .disclosure-type-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  border-color: transparent;
  border-radius: 6px;
  text-align: left;
  background: transparent;
}
.disclosure-type-choice i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--disclosure-type-color);
}
.disclosure-type-choice[aria-pressed="false"] i { opacity: .4; }
.disclosure-type-choice[aria-pressed="true"]::after { content: '✓'; margin-left: auto; color: #aecfff; }
.disclosure-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; font-size: 11px; }
#disclosure-count { color: #a8bdd4; }
#network-workspace #disclosure-widen { min-height: 30px; padding: 4px 7px; font-size: 11px; }
#network-workspace #disclosure-custom-days { gap: 6px; }
#network-workspace #disclosure-custom-input { width: 54px; min-height: 34px; padding: 6px; font-size: 12px; }
#network-workspace #disclosure-custom-error { color: #ffb7a8; }
#network-workspace .net-options { margin: 0; }
#network-workspace .watchlist-panel { position: relative; flex: 0 0 auto; z-index: 32; margin-left: 0; }
#network-workspace .network-frame { height: max(420px, calc(100dvh - var(--topbar) - var(--navigation-safe-bottom, 0px) - 64px)); }
#network-workspace.network-wide { bottom: var(--navigation-safe-bottom, 0px); }
#network-workspace.network-wide .network-frame { height: auto; }
@media (max-width: 1180px) {
  #network-workspace .net-toolbar { gap: 8px 10px; }
  #network-workspace .disclosure-bar { gap: 6px 9px; }
  #network-workspace .network-frame { height: max(420px, calc(100dvh - var(--topbar) - var(--navigation-safe-bottom, 0px) - 108px)); }
}
@media (max-width: 860px), (hover: none), (pointer: coarse) {
  #network-workspace .net-toolbar { display: block; padding: 7px 10px; }
  #network-workspace .network-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    margin: 0;
  }
  #network-workspace .network-heading h2 {
    min-width: 0;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #network-workspace .network-heading .disclosure-highlight {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 11px;
    white-space: nowrap;
  }
  #network-workspace .network-heading .disclosure-highlight input:not(:checked) ~ b { color: #8494a8; }
  #network-workspace .network-toolbar-tools {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    padding: 2px 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  #network-workspace .disclosure-bar { display: contents; }
  #network-workspace .network-toolbar-tools > *,
  #network-workspace .disclosure-bar > * { flex: 0 0 auto; }
  .disclosure-bar > strong,
  .disclosure-period > span,
  .disclosure-highlight-full { display: none; }
  .disclosure-highlight-compact { display: inline; }
  #network-workspace .net-toolbar button,
  #network-workspace .net-toolbar summary,
  #network-workspace .net-toolbar select { min-height: 40px; padding: 6px 8px; font-size: 11px; }
  #network-workspace .network-toolbar-tools :is(
    #disclosure-period, #disclosure-open, #disclosure-types-summary,
    #watchlist-panel > summary, #net-options > summary
  ) { padding: 0 8px; font-size: 11px; }
  #network-workspace .network-toolbar-tools select#disclosure-period {
    padding-right: 24px;
    background-position: right 8px center;
  }
  #network-workspace .toolbar-label-full { display: none; }
  #network-workspace .toolbar-label-compact { display: inline; }
  #network-workspace .net-toolbar summary::after { padding-left: 5px; }
  #network-workspace .network-toolbar-tools > button,
  #network-workspace .disclosure-bar > button { white-space: nowrap; }
  #network-workspace .disclosure-period select { width: 84px; }
  #network-workspace .disclosure-options { position: static; }
  #network-workspace #net-options { position: static; }
  #network-workspace .network-toolbar-tools .watchlist-panel { position: static; z-index: auto; }
  /* Fixed panels escape the instrument row's horizontal scrolling clip. */
  #network-workspace .disclosure-options-content,
  #network-workspace #net-options-panel,
  #network-workspace .watchlist-drawer {
    position: fixed;
    top: var(--network-toolbar-menu-top, calc(var(--topbar) + 108px));
    left: 10px;
    right: 10px;
    z-index: 60;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - var(--network-toolbar-menu-top, calc(var(--topbar) + 108px)) - var(--navigation-safe-bottom, 0px) - 12px);
    overflow-y: auto;
  }
  #network-workspace .network-frame {
    min-height: 0;
    height: max(120px, calc(100dvh - var(--topbar) - var(--navigation-safe-bottom, 0px) - 124px));
  }
}

/* governance-workspace.css */
/* A reading surface for every group's and company's ownership hierarchy. */
#jobzoo-start[data-level="group"] {
  max-width: 1600px;
  padding-top: 0;
}
#jobzoo-start[data-level="group"] .jobzoo-picker {
  grid-template-columns: minmax(160px, 1fr) minmax(140px, .75fr) minmax(240px, 1.5fr) auto;
  gap: 16px;
  margin-bottom: 26px;
  border-top: 0;
  padding: 12px 0 18px;
}
#jobzoo-start[data-level="group"] .jobzoo-picker label {
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
#jobzoo-start[data-level="group"] .jobzoo-heading {
  margin-bottom: 22px;
}
#jobzoo-start[data-level="group"] .jobzoo-heading h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -.04em;
}
#jobzoo-start[data-level="group"] .jobzoo-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
#group-structure-workspace {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #070c13;
}
#group-structure-workspace .structure-toolbar {
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  gap: 12px 24px;
}
#group-structure-workspace #structure-search-form {
  max-width: 360px;
  flex: 1 1 260px;
  gap: 8px;
}
#group-structure-workspace #structure-search {
  height: 38px;
  font-size: 13px;
  padding-inline: 12px;
  border-radius: 8px;
}
#group-structure-workspace #structure-search-form button {
  padding: 8px 14px;
  border-radius: 8px;
}
#group-structure-workspace .structure-legend {
  margin-left: auto;
  justify-content: flex-end;
  padding: 0;
  font-size: 11px;
  gap: 8px 20px;
}
#group-structure-workspace .structure-legend i {
  width: 18px;
  height: 0;
  border: 0;
  border-top: 2px solid #88b7e8;
  border-radius: 0;
}
#group-structure-workspace .structure-legend .structure-supplemental-swatch {
  border-top: 1px solid #63768e;
}
#group-structure-workspace .structure-frame {
  height: clamp(540px, 73vh, 1000px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #04080e;
}
#group-structure-workspace #structure-regions rect {
  fill: #0a132033;
  stroke: none;
}
#group-structure-workspace #structure-regions text {
  fill: #8196af;
  font-weight: 500;
}
#group-structure-workspace .structure-camera-controls {
  position: absolute;
  z-index: 5;
  right: 18px;
  top: 16px;
  padding: 5px;
  gap: 3px;
  border: 1px solid #b5d3f526;
  border-radius: 12px;
  background: #0d1725f5;
  box-shadow: 0 8px 28px #0006;
  flex-wrap: nowrap;
}
#group-structure-workspace .structure-camera-controls > button {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
}
#group-structure-workspace #structure-plus,
#group-structure-workspace #structure-minus {
  width: 34px;
  font-size: 18px;
}
#group-structure-workspace #structure-zoom {
  min-width: 44px;
  font-variant-numeric: tabular-nums;
}
#group-structure-workspace .structure-status {
  padding: 15px 20px 5px;
  min-height: 0;
  color: #b6c6d9;
}
.structure-layout-note {
  margin: 0;
  padding: 0 20px 15px;
  font-size: 11px;
  color: #8293aa;
  line-height: 1.6;
}
#group-structure-workspace .structure-inspector {
  padding: 22px;
  background: #0c1521;
}
#group-structure-workspace .structure-relation {
  border-radius: 9px;
  background: #0d1826;
}
@media (max-width: 760px) {
  #jobzoo-start[data-level="group"] {
    padding-inline: 12px;
  }
  #jobzoo-start[data-level="group"] .jobzoo-picker {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }
  #jobzoo-start[data-level="group"] .jobzoo-picker-expanded {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  #jobzoo-start[data-level="group"] .jobzoo-group-search,
  #jobzoo-start[data-level="group"] .jobzoo-group-type {
    grid-column: 1 / -1;
  }
  #group-structure-workspace {
    border-radius: 12px;
  }
  #group-structure-workspace .structure-toolbar {
    padding: 14px 12px;
  }
  #group-structure-workspace .structure-legend {
    padding: 0;
    gap: 7px 12px;
  }
  #group-structure-workspace .structure-frame {
    height: 66vh;
    min-height: 420px;
  }
  #group-structure-workspace .structure-camera-controls {
    right: 8px;
    left: auto;
    bottom: 10px;
    top: auto;
    justify-content: center;
    gap: 0;
    padding: 4px;
  }
  #group-structure-workspace .structure-camera-controls > button {
    font-size: 11px;
    padding-inline: 7px;
  }
  #group-structure-workspace .structure-status {
    padding: 12px 12px 5px;
  }
  .structure-layout-note {
    padding: 0 12px 12px;
  }
}

