:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view {
  min-height: calc(100vh - 3.5rem);
  background: var(--color-base-200);
  color: var(--color-base-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-shell {
  max-width: 1500px;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view :where(.card, .stats) {
  border-color: var(--color-base-300);
  border-radius: .625rem;
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-hero {
  overflow: visible;
  border: 1px solid var(--color-base-300);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--color-primary) 4%, transparent), transparent 42%),
    var(--color-base-100);
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-hero .card-body {
  padding: 1.15rem 1.25rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.08;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-hero .badge {
  min-height: 1.45rem;
  border-radius: .3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .62rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-search-slot {
  max-width: 46rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-search-slot .input {
  height: 3rem;
  border-color: var(--color-base-300);
  border-radius: .375rem 0 0 .375rem;
  background: var(--color-base-100);
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-search-slot .input:focus {
  border-color: var(--color-primary);
  outline: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-search-slot .btn {
  width: 3.25rem;
  height: 3rem;
  min-height: 3rem;
  border-radius: 0 .375rem .375rem 0;
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-search-dd,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-mini-dd {
  border-color: var(--color-base-300);
  background: var(--color-base-100);
  color: var(--color-base-content);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .1);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-dd-item {
  min-height: 3.15rem;
  border-bottom: 1px solid var(--color-base-300);
  background: var(--color-base-100);
  color: var(--color-base-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-dd-item:hover,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-dd-item:focus {
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-base-100));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-kpis {
  border-radius: .5rem;
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-kpis .stat {
  padding: .75rem 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-kpis .stat-title,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-kpis .stat-desc {
  font-size: .64rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-kpis .stat-value {
  margin-top: .15rem;
  font-size: 1.2rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-workspace-grid {
  gap: 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-sidebar,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-workspace {
  gap: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-sidebar > .card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-workspace > .card {
  margin: 0;
  border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-sidebar > .card .card-body {
  padding: .9rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-filter-card {
  position: relative;
  z-index: 4;
  background: var(--color-base-100);
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings {
  margin: 0 0 .75rem;
  border-color: var(--color-base-300);
  border-radius: .65rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__summary {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: center;
  min-height: 3.5rem;
  gap: .65rem;
  padding: .65rem 2.8rem .65rem .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__summary::after {
  inset-inline-end: 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .5rem;
  background: var(--color-base-200);
  color: var(--color-primary);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .08rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__copy strong {
  font-size: .82rem;
  line-height: 1.2;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__copy small {
  overflow: hidden;
  color: color-mix(in srgb, var(--color-base-content) 58%, transparent);
  font-size: .68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__badge {
  margin-inline-end: .35rem;
  color: color-mix(in srgb, var(--color-base-content) 68%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__content {
  padding: .2rem .8rem .8rem;
  border-top: 1px solid var(--color-base-300);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings > input:not(:checked) ~ .pg-graph-settings__content {
  border-top-color: transparent;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-filter-card .fieldset-legend {
  margin-bottom: .25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .62rem;
}

@media (max-width: 640px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__summary {
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-graph-settings__badge {
    display: none;
  }
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-public .pg-filterbar:first-of-type .pg-fb-group:nth-child(n+3) {
  display: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-filterbar {
  gap: .45rem .85rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-filterbar .btn,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-graph-card .btn {
  border-radius: .35rem;
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-debt-source-filter {
  border-radius: .45rem;
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-graph-card {
  border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-graph-card > .card-body {
  padding: .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #graf {
  height: min(70vh, 720px);
  min-height: 520px;
  border: 1px solid var(--color-base-300);
  border-radius: .45rem;
  background-color: var(--color-base-100);
  background-image:
    linear-gradient(rgba(23, 33, 43, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 43, .025) 1px, transparent 1px);
  background-size: 28px 28px;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-detail-float {
  border-color: var(--color-base-300);
  background: var(--color-base-100);
  color: var(--color-base-content);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-report {
  border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-report .tabs-box {
  overflow-x: auto;
  border: 1px solid var(--color-base-300);
  border-radius: .4rem;
  background: var(--color-base-200);
  scrollbar-width: thin;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-tip::after,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-float-tip,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-net-tip {
  border-color: #303c48;
  background: #151a21;
  color: #f3f6f8;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

@media (min-width: 1024px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-public .pg-workspace-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-public .pg-workspace {
    grid-column: 1;
    grid-row: 1;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-public .pg-sidebar {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 1023px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-public .pg-workspace {
    grid-row: 1;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-public .pg-sidebar {
    grid-row: 2;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #graf {
    height: min(62dvh, 560px);
    min-height: 400px;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-filterbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .35rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-filterbar .pg-fb-group {
    flex: 0 0 auto;
  }
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-hero .card-body {
    padding: .9rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-hero .card-body > div:first-child > div:last-child {
    width: 100%;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-hero .card-body > div:first-child > div:last-child .btn {
    min-height: 2.75rem;
    flex: 1;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-graph-card > .card-body > .flex:first-child {
    flex-wrap: wrap;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-graph-card > .card-body > .flex:first-child > .ml-auto {
    width: 100%;
    overflow-x: auto;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-zoom-btn {
    min-width: 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
  }
}

/* History is a standalone portal view: the page, not the timeline card, owns scrolling. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-history-slot #pg-timeline-card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-history-slot #pg-timeline-card > .card-body,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal #pg-history-slot #pg-timeline-content {
  height: auto;
  max-height: none;
  overflow: visible;
}

/* Compact persistent company profile -------------------------------------- */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view {
  background-color: var(--color-base-200);
  background-image: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-shell {
  grid-template-columns: 13.75rem minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 1480px;
  margin-inline: auto;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-main > .pg-hero {
  position: relative;
  z-index: 38;
  margin: 0 0 .85rem;
  overflow: visible;
  border: 1px solid var(--color-base-300);
  border-radius: .625rem;
  background: var(--color-base-100);
  background-image: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-main > .pg-hero .card-body {
  gap: .7rem;
  padding: 1rem 1.1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identity-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .45rem 1rem;
  align-items: start;
  min-height: 7.1rem;
  overflow: visible;
  border-radius: .45rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identity-row > :not(.pg-company-map) {
  position: relative;
  z-index: 2;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-map {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: min(54%, 46rem);
  overflow: hidden;
  background: var(--color-base-200);
  opacity: .92;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-map::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--color-base-100) 0%, var(--color-base-100) 24%, color-mix(in srgb, var(--color-base-100) 78%, transparent) 41%, color-mix(in srgb, var(--color-base-100) 12%, transparent) 57%, transparent 63%),
    linear-gradient(0deg, color-mix(in srgb, var(--color-base-100) 14%, transparent), transparent 28%);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-map iframe {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  border: 0;
  filter: saturate(.9) contrast(.96);
  pointer-events: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-map > a {
  position: absolute;
  z-index: 3;
  right: .35rem;
  bottom: .25rem;
  padding: .12rem .3rem;
  border-radius: .25rem;
  color: color-mix(in srgb, var(--color-base-content) 72%, transparent);
  background: color-mix(in srgb, var(--color-base-100) 86%, transparent);
  font-size: .55rem;
  line-height: 1.2;
  text-decoration: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-heading {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: .8rem;
  align-items: center;
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-indicator {
  display: grid;
  width: 3.6rem;
  min-height: 3.6rem;
  place-items: center;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-details {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-avatar {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  margin-top: .1rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, var(--color-base-300));
  border-radius: .5rem;
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-base-100));
  color: var(--color-primary);
  font-size: 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-avatar.hidden {
  display: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identity {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: color-mix(in srgb, var(--color-base-content) 48%, transparent);
  font-size: .65rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-breadcrumb i {
  font-size: .48rem;
  opacity: .55;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .6rem;
  margin-top: .15rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-title-line h1 {
  min-width: 0;
  overflow: hidden;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-activity {
  max-width: 54rem;
  margin-top: .25rem;
  overflow: hidden;
  color: color-mix(in srgb, var(--color-base-content) 60%, transparent);
  font-size: .72rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: .55rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identifiers > :is(span, button) {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-copy-identifier {
  position: relative;
  display: grid;
  gap: .08rem;
  min-width: 5.5rem;
  padding: .25rem .38rem;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view button.pg-copy-identifier {
  cursor: copy;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view button.pg-copy-identifier:hover,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view button.pg-copy-identifier:focus-visible {
  background: var(--color-base-200);
  box-shadow: inset 0 0 0 1px var(--color-base-300);
  outline: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view button.pg-copy-identifier.is-copied {
  background: color-mix(in srgb, var(--color-success) 10%, var(--color-base-100));
  color: color-mix(in srgb, var(--color-success) 72%, var(--color-base-content));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-success) 38%, var(--color-base-300));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view button.pg-copy-identifier.is-copied::after {
  position: absolute;
  z-index: 4;
  bottom: calc(100% + .35rem);
  left: 50%;
  padding: .24rem .4rem;
  border-radius: .3rem;
  background: var(--color-base-content);
  color: var(--color-base-100);
  content: attr(data-copy-feedback);
  font-size: .6rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-copy-identifier__value {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .35rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-copy-identifier__icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  place-items: center;
  color: color-mix(in srgb, var(--color-base-content) 40%, transparent);
  font-size: .58rem;
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view button.pg-copy-identifier:hover .pg-copy-identifier__icon,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view button.pg-copy-identifier:focus-visible .pg-copy-identifier__icon,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view button.pg-copy-identifier.is-copied .pg-copy-identifier__icon {
  opacity: 1;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view button.pg-copy-identifier.is-copied .pg-copy-identifier__icon {
  color: var(--color-success);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identifiers small {
  color: color-mix(in srgb, var(--color-base-content) 46%, transparent);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identifiers b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-actions {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: .55rem;
  align-items: start;
  justify-items: end;
}

@media (min-width: 721px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-actions {
    padding: .45rem .55rem 0 0;
  }
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  justify-content: flex-end;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-actions .btn {
  min-height: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--color-base-content) 24%, var(--color-base-300));
  border-radius: .4rem;
  background: color-mix(in srgb, var(--color-base-100) 94%, transparent);
  color: var(--color-base-content);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--color-base-content) 10%, transparent);
  font-size: .7rem;
  backdrop-filter: blur(6px);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-actions .btn:hover {
  border-color: color-mix(in srgb, var(--color-primary) 48%, var(--color-base-300));
  background: var(--color-base-100);
  color: var(--color-primary);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-summary {
  --pg-company-risk-tone: color-mix(in srgb, var(--color-base-content) 38%, transparent);
  display: grid;
  gap: .18rem;
  width: 3.6rem;
  justify-items: center;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-summary.hidden {
  display: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-summary.is-low {
  --pg-company-risk-tone: var(--color-success);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-summary.is-medium {
  --pg-company-risk-tone: var(--color-warning);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-summary.is-high {
  --pg-company-risk-tone: color-mix(in srgb, var(--color-warning) 52%, var(--color-error));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-summary.is-critical {
  --pg-company-risk-tone: var(--color-error);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-track {
  position: relative;
  display: inline-grid;
  width: var(--size);
  height: var(--size);
  place-items: center;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--pg-company-risk-tone) 9%, var(--color-base-200));
  isolation: isolate;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-track::before {
  content: "";
  position: absolute;
  z-index: 0;
  box-sizing: border-box;
  inset: 0;
  border: var(--thickness) solid color-mix(in srgb, var(--color-base-content) 15%, var(--color-base-300));
  border-radius: inherit;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-dial {
  z-index: 1;
  color: var(--pg-company-risk-tone);
  background-color: transparent;
  font-variant-numeric: tabular-nums;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-track.is-empty .pg-company-risk-dial::before,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-track.is-empty .pg-company-risk-dial::after {
  opacity: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-dial > span {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-dial b {
  font-size: 1rem;
  font-weight: 850;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-dial small {
  font-size: .55rem;
  font-weight: 750;
  opacity: .72;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-level {
  overflow: hidden;
  max-width: 3.6rem;
  color: var(--pg-company-risk-tone);
  font-size: .58rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-search-panel {
  position: absolute;
  top: 4.2rem;
  right: 1rem;
  z-index: 90;
  width: min(31rem, calc(100% - 2rem));
  padding: .55rem;
  border: 1px solid var(--color-base-300);
  border-radius: .55rem;
  background: var(--color-base-100);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-search-slot > .card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-search-slot > .card > .card-body {
  padding: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-search-slot .input {
  height: 2.65rem;
  font-size: .85rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-search-slot .btn {
  width: 2.9rem;
  height: 2.65rem;
  min-height: 2.65rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-base-300);
  border-radius: .45rem;
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .05rem .4rem;
  padding: .55rem .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi + .pg-persistent-kpi {
  border-left: 1px solid var(--color-base-300);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi > span {
  color: color-mix(in srgb, var(--color-base-content) 50%, transparent);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi > strong {
  grid-column: 1;
  overflow: hidden;
  font-size: .95rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi > small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: color-mix(in srgb, var(--color-base-content) 50%, transparent);
  font-size: .58rem;
  text-align: right;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi.is-negative > strong,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi.is-negative > small {
  color: var(--color-error);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpis__empty {
  grid-column: 1 / -1;
  padding: .65rem .75rem;
  color: color-mix(in srgb, var(--color-base-content) 52%, transparent);
  font-size: .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav {
  top: 4.25rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav__head {
  padding: .85rem .85rem .6rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu {
  gap: .12rem;
  padding: .5rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button {
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .42rem .55rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button > i {
  width: 1.55rem;
  height: 1.55rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button b {
  font-size: .78rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header {
  min-height: 3.85rem;
  margin-bottom: .65rem;
  padding: .2rem .15rem .6rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header h2 {
  font-size: 1.25rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header p {
  margin-top: .08rem;
  font-size: .72rem;
}

/* Company profile v2: synchronized navigation and evidence-backed finance. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .tab > i {
  display: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-tab-meta {
  color: color-mix(in srgb, var(--color-base-content) 42%, transparent);
  font-size: .62rem;
  font-weight: 500;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-tabs .tab.tab-active .pg-company-tab-meta {
  color: color-mix(in srgb, var(--color-primary) 62%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) [data-company-sidebar-menu] > li > button {
  width: 100%;
}

:is([data-theme="prism"], [data-theme="graphite"]) [data-company-sidebar-menu] .pg-company-menu-meta {
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-analysis {
  margin-top: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-analysis-grid,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .85fr);
  gap: .75rem;
  margin-bottom: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-chart-card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-key-metrics-card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-card {
  min-width: 0;
  margin: 0;
  border-color: var(--color-base-300);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-chart-card > .card-body,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-key-metrics-card > .card-body,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-card > .card-body {
  padding: 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-scroll {
  width: 100%;
  min-width: 0;
  margin-top: .6rem;
  overflow-x: auto;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-canvas-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 18rem;
  margin-top: .45rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-analysis-grid .pg-chart-canvas-wrap {
  height: 17rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-canvas-wrap > canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-finance-svg {
  display: block;
  width: 100%;
  min-width: 34rem;
  height: auto;
  overflow: visible;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-grid {
  stroke: var(--color-base-300);
  stroke-width: 1;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-axis,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-year {
  fill: color-mix(in srgb, var(--color-base-content) 48%, transparent);
  font-size: .56rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-revenue { fill: var(--color-neutral); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-assets { fill: var(--color-neutral); opacity: .82; }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-equity { fill: var(--color-primary); opacity: .8; }

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-profit {
  fill: none;
  stroke: var(--color-success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-profit-dot {
  fill: var(--color-base-100);
  stroke: var(--color-success);
  stroke-width: 3;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  color: color-mix(in srgb, var(--color-base-content) 58%, transparent);
  font-size: .6rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-legend-box {
  width: .55rem;
  height: .55rem;
  border-radius: .12rem;
  background: var(--color-neutral);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-legend-box.is-assets { opacity: .82; }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-legend-box.is-equity { background: var(--color-primary); opacity: .8; }

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-legend-line {
  width: .85rem;
  height: 2px;
  background: var(--color-success);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-key-metrics {
  display: grid;
  gap: 0;
  margin-top: .65rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-key-metrics > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.15rem;
  border-top: 1px solid var(--color-base-300);
  font-size: .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-key-metrics strong {
  color: var(--color-success);
  font-size: .78rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-section {
  margin-bottom: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .7rem;
  margin-bottom: .55rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-head > div {
  display: flex;
  flex-direction: column;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-head span:first-child {
  color: color-mix(in srgb, var(--color-base-content) 52%, transparent);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-head strong {
  font-size: 2rem;
  line-height: 1;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-head strong small {
  margin-left: .18rem;
  color: color-mix(in srgb, var(--color-base-content) 48%, transparent);
  font-size: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-components {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-components > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .08rem;
  padding: .55rem;
  border: 1px solid var(--color-base-300);
  border-radius: .4rem;
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-components b {
  overflow: hidden;
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-components small,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-card p,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-section p {
  color: color-mix(in srgb, var(--color-base-content) 52%, transparent);
  font-size: .61rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-card p,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-section p {
  margin-top: .65rem;
  line-height: 1.45;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-layout {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-donut {
  display: grid;
  width: 9rem;
  height: 9rem;
  margin-inline: auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--color-success) 0 var(--pg-equity-share), var(--color-error) var(--pg-equity-share) 100%);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-donut > div {
  display: flex;
  width: 6rem;
  height: 6rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 50%;
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-donut strong { font-size: 1.2rem; }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-donut span { color: color-mix(in srgb, var(--color-base-content) 50%, transparent); font-size: .58rem; }

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-values > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .12rem;
  padding: .7rem;
  border: 1px solid var(--color-base-300);
  border-radius: .4rem;
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-values small {
  color: color-mix(in srgb, var(--color-base-content) 50%, transparent);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-values b {
  overflow: hidden;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-analysis-grid,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-components,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-values,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metrics {
    grid-template-columns: 1fr;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-layout {
    grid-template-columns: 1fr;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-finance-svg {
    min-width: 31rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-canvas-wrap,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-analysis-grid .pg-chart-canvas-wrap {
    height: 15rem;
  }
}

/* Current portal treatment for the public-records workspace. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-box);
  box-shadow: 0 .35rem 1rem color-mix(in srgb, var(--color-base-content) 4%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card > .card-body {
  display: block;
  min-width: 0;
  padding: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-head {
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--color-base-300);
  background: linear-gradient(105deg, var(--color-base-100) 0%, color-mix(in srgb, var(--color-base-200) 74%, var(--color-base-100)) 100%);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-head__copy {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-head__copy > span {
  display: block;
  color: color-mix(in srgb, var(--color-base-content) 54%, transparent);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-head__copy h3 {
  margin: .15rem 0 0;
  font-size: 1rem;
  line-height: 1.25;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-head__copy p {
  margin: .2rem 0 0;
  color: color-mix(in srgb, var(--color-base-content) 58%, transparent);
  font-size: .68rem;
  line-height: 1.4;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-content {
  min-width: 0;
  max-width: 100%;
  padding: .85rem 1rem 1rem;
  overflow: hidden;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card #pg-rep-tabbar {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0 0 .9rem;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--color-base-300);
  background: transparent;
  scrollbar-width: thin;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-rep-tabbar .tab {
  flex: 1 0 auto;
  min-height: 2.75rem;
  gap: .35rem;
  padding: .55rem .75rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: color-mix(in srgb, var(--color-base-content) 62%, transparent);
  font-size: .7rem;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-rep-tabbar .tab:hover {
  background: var(--color-base-200);
  color: var(--color-base-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-rep-tabbar .tab.tab-active {
  border-bottom-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 7%, var(--color-base-100));
  color: var(--color-primary);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-source-count {
  min-width: 1.25rem;
  border-color: var(--color-base-300);
  background: var(--color-base-100);
  color: inherit;
  font-variant-numeric: tabular-nums;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-content [data-rep-pane],
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-content .overflow-x-auto {
  min-width: 0;
  max-width: 100%;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-content table {
  border: 1px solid var(--color-base-300);
  border-radius: var(--radius-field);
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-content thead {
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-content th,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-content td {
  border-bottom-color: var(--color-base-300);
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-head {
    align-items: flex-start;
    padding: .85rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-content {
    padding: .7rem .75rem .8rem;
  }
}

/* Portal company profile: the portal drawer is the primary sidebar. The
   horizontal tabs intentionally mirror it and stay below the company header. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-shell {
  display: block;
  max-width: none;
  margin: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-nav {
  display: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs {
  position: sticky;
  top: 4rem;
  z-index: 25;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
  margin: 0 0 .85rem;
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid var(--color-base-300);
  border-radius: 0;
  background: color-mix(in srgb, var(--color-base-100) 96%, transparent);
  box-shadow: none;
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .tab {
  flex: 0 0 auto;
  gap: .4rem;
  min-height: 2.8rem;
  padding-inline: .8rem;
  border-bottom: 2px solid transparent;
  color: color-mix(in srgb, var(--color-base-content) 67%, transparent);
  font-size: .72rem;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .tab:hover {
  color: var(--color-base-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .tab.tab-active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero {
  margin-bottom: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-risks-grid {
  grid-template-columns: minmax(0, 1fr);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-grid.is-single .pg-source-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

:is([data-theme="prism"], [data-theme="graphite"]) [data-company-sidebar-menu] > li > :where(button, a) {
  min-height: 1.8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) [data-company-sidebar-menu] > li > button.menu-active {
  color: var(--color-neutral-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) [data-company-sidebar-menu] > li > button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs {
    top: 4rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .tab {
    min-height: 2.7rem;
    padding-inline: .72rem;
  }
}

@media (max-width: 1199px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-grid.is-single .pg-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-grid.is-single .pg-source-grid {
    grid-template-columns: 1fr;
  }
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-relationship-kpis .pg-kpis {
  width: 100%;
  margin-bottom: .7rem;
  border-radius: .45rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-relationship-kpis .pg-kpis .stat {
  padding: .55rem .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-relationship-kpis .pg-kpis .stat-title,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-relationship-kpis .pg-kpis .stat-desc {
  font-size: .58rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-relationship-kpis .pg-kpis .stat-value {
  font-size: 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-brief > .card-body {
  padding: .95rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-insight {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  min-width: 0;
  padding: .65rem;
  border: 1px solid var(--color-base-300);
  border-radius: .4rem;
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-insight > i {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: .35rem;
  background: color-mix(in srgb, var(--color-primary) 9%, var(--color-base-100));
  color: var(--color-primary);
  font-size: .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-insight div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .12rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-insight b {
  font-size: .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-insight span {
  color: color-mix(in srgb, var(--color-base-content) 55%, transparent);
  font-size: .63rem;
  line-height: 1.4;
}

@media (max-width: 1023px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-main > .pg-hero {
    margin-bottom: .55rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-tabs {
    top: 3.35rem;
  }
}

@media (max-width: 720px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-main > .pg-hero .card-body {
    padding: .8rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identity-row {
    grid-template-columns: minmax(0, 1fr);
    gap: .6rem;
    min-height: 0;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-map {
    display: none;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-heading {
    grid-template-columns: 3.35rem minmax(0, 1fr);
    gap: .6rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-indicator,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-risk-summary {
    width: 3.35rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-details {
    grid-column: 1;
    grid-row: auto;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-avatar {
    width: 2.25rem;
    height: 2.25rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-actions {
    grid-column: 1;
    grid-row: auto;
    display: block;
    width: 100%;
    padding-top: .45rem;
    border-top: 1px solid var(--color-base-300);
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-action-buttons {
    justify-content: flex-start;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-actions .btn {
    width: 2.5rem;
    min-width: 2.5rem;
    padding-inline: 0;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-actions .btn > span {
    display: none;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-title-line {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .3rem .45rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-title-line h1 {
    width: 100%;
    font-size: 1.35rem;
    white-space: normal;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-activity {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identifiers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem .65rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-copy-identifier {
    width: 100%;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpis {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi {
    flex: 0 0 9.4rem;
    scroll-snap-align: start;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi + .pg-persistent-kpi {
    border-left: 1px solid var(--color-base-300);
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-search-panel {
    top: auto;
    right: .65rem;
    bottom: 3.55rem;
    width: calc(100% - 1.3rem);
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-insights {
    grid-template-columns: 1fr;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-relationship-kpis .pg-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Company profile workspace ------------------------------------------------ */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-shell {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav {
  position: sticky;
  top: 4.5rem;
  overflow: hidden;
  border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav__head {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1rem 1rem .65rem;
  border-bottom: 1px solid var(--color-base-300);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav__head > span,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-view-eyebrow,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-card-heading span,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-section__head span,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-head span {
  color: color-mix(in srgb, var(--color-base-content) 58%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav__head small {
  color: color-mix(in srgb, var(--color-base-content) 50%, transparent);
  font-size: .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu {
  width: 100%;
  gap: .2rem;
  padding: .65rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button {
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 3.35rem;
  padding: .55rem .65rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  color: color-mix(in srgb, var(--color-base-content) 78%, transparent);
  text-align: left;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button > i {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: .35rem;
  background: var(--color-base-200);
  color: color-mix(in srgb, var(--color-base-content) 56%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .05rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button b {
  font-size: .82rem;
  line-height: 1.15;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button small {
  overflow: hidden;
  color: color-mix(in srgb, var(--color-base-content) 48%, transparent);
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button:hover {
  border-color: var(--color-base-300);
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button.active {
  border-color: color-mix(in srgb, var(--color-primary) 25%, var(--color-base-300));
  background: color-mix(in srgb, var(--color-primary) 9%, var(--color-base-100));
  color: var(--color-primary);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button.active > i {
  background: var(--color-primary);
  color: var(--color-primary-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav__sources {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: .2rem .75rem .75rem;
  padding: .7rem;
  border: 1px solid var(--color-base-300);
  border-radius: .45rem;
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav__sources span {
  font-size: .7rem;
  font-weight: 700;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav__sources small {
  color: color-mix(in srgb, var(--color-base-content) 57%, transparent);
  font-size: .65rem;
  line-height: 1.45;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-main {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-tabs {
  display: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view[hidden] {
  display: none !important;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view {
  min-width: 0;
  animation: pg-view-in .16s ease-out;
}

@keyframes pg-view-in {
  from { opacity: .4; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header {
  display: flex;
  min-height: 4.7rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  padding: .35rem .15rem .75rem;
  border-bottom: 1px solid var(--color-base-300);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header h2 {
  margin-top: .12rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header p {
  max-width: 48rem;
  margin-top: .18rem;
  color: color-mix(in srgb, var(--color-base-content) 60%, transparent);
  font-size: .78rem;
  line-height: 1.5;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-kpis .card {
  border: 1px solid var(--color-base-300);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-kpis .card-body {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: .1rem .55rem;
  padding: .85rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-metric-icon {
  display: grid;
  grid-row: 1 / span 3;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .4rem;
  background: color-mix(in srgb, var(--color-primary) 9%, var(--color-base-100));
  color: var(--color-primary);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-kpis span {
  color: color-mix(in srgb, var(--color-base-content) 58%, transparent);
  font-size: .68rem;
  font-weight: 700;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-kpis strong {
  overflow: hidden;
  font-size: 1.15rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-kpis small {
  color: color-mix(in srgb, var(--color-base-content) 52%, transparent);
  font-size: .62rem;
  line-height: 1.3;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-callout,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-method-note,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-limit {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-top: .65rem;
  padding: .7rem .8rem;
  border: 1px solid color-mix(in srgb, var(--color-info) 24%, var(--color-base-300));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--color-info) 5%, var(--color-base-100));
  color: color-mix(in srgb, var(--color-base-content) 68%, transparent);
  font-size: .7rem;
  line-height: 1.45;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-callout > i,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-method-note > i,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-limit > i {
  margin-top: .1rem;
  color: var(--color-info);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, .75fr);
  gap: .75rem;
  margin-top: .75rem;
  align-items: start;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-company-grid {
  display: grid;
  grid-template-columns: minmax(17rem, .9fr) minmax(0, 1.25fr);
  gap: .75rem;
  align-items: stretch;
  margin-bottom: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-company-slot,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-finance-summary {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-company-slot > #pg-root-card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-finance-summary > .card {
  height: 100%;
  margin: 0;
  border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-company-slot > #pg-root-card > .card-body,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-card > .card-body {
  padding: 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: .75rem;
  overflow: hidden;
  border: 1px solid var(--color-base-300);
  border-radius: .45rem;
  background: var(--color-base-100);
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats .stat {
  min-width: 0;
  padding: .65rem .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats .stat:nth-child(even) {
  border-left: 1px solid var(--color-base-300);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats .stat:nth-child(n + 3) {
  border-top: 1px solid var(--color-base-300);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats .stat-title,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats .stat-desc {
  overflow: hidden;
  color: color-mix(in srgb, var(--color-base-content) 54%, transparent);
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats .stat-value {
  overflow: hidden;
  margin-block: .12rem;
  color: var(--color-base-content);
  font-size: 1.05rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-grid > .card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-access-slot > .card {
  margin: 0;
  border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-grid .card-body {
  padding: 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-card-heading,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-section__head,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-card-heading h3,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-section__head h3,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-public-records-head h3 {
  margin-top: .12rem;
  font-size: 1rem;
  font-weight: 800;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-source-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .55rem;
  padding: .55rem;
  border: 1px solid var(--color-base-300);
  border-radius: .4rem;
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-source-item > i {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: .35rem;
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-base-100));
  color: var(--color-primary);
  font-size: .72rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-source-item div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-source-item b {
  overflow: hidden;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-source-item small,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-source-note {
  color: color-mix(in srgb, var(--color-base-content) 51%, transparent);
  font-size: .62rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-source-note {
  margin-top: .7rem;
  line-height: 1.45;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-empty-state {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  min-height: 5rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-empty-state > i {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: .45rem;
  background: var(--color-base-200);
  color: var(--color-primary);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-empty-state div {
  display: flex;
  flex-direction: column;
  gap: .12rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-empty-state span {
  color: color-mix(in srgb, var(--color-base-content) 55%, transparent);
  font-size: .72rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-section {
  margin-bottom: .75rem;
  padding: 1rem;
  border: 1px solid var(--color-base-300);
  border-radius: .625rem;
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric {
  display: flex;
  min-width: 0;
  min-height: 7.4rem;
  flex-direction: column;
  justify-content: space-between;
  gap: .35rem;
  padding: .75rem;
  border: 1px solid var(--color-base-300);
  border-top: 3px solid var(--color-success);
  border-radius: .45rem;
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric.is-negative { border-top-color: var(--color-error); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric.is-warning { border-top-color: var(--color-warning); }

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric div {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric span {
  color: color-mix(in srgb, var(--color-base-content) 57%, transparent);
  font-size: .67rem;
  font-weight: 700;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric strong {
  font-size: 1.18rem;
  line-height: 1.2;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric code,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-forecast-card code {
  overflow: hidden;
  color: var(--color-primary);
  font-size: .62rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric small,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-forecast-card small {
  color: color-mix(in srgb, var(--color-base-content) 53%, transparent);
  font-size: .6rem;
  line-height: 1.35;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-forecast-card {
  display: flex;
  min-height: 8.2rem;
  flex-direction: column;
  gap: .35rem;
  padding: .9rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 24%, var(--color-base-300));
  border-radius: .5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 7%, var(--color-base-100)), var(--color-base-100));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-forecast-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-forecast-card__top > span:first-child,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-forecast-card--empty > span {
  color: color-mix(in srgb, var(--color-base-content) 60%, transparent);
  font-size: .68rem;
  font-weight: 700;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-forecast-card > strong {
  margin-top: .1rem;
  font-size: 1.55rem;
  line-height: 1.15;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-method-note b,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-limit b {
  display: block;
  margin-bottom: .12rem;
  color: var(--color-base-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-limit {
  margin-bottom: .75rem;
  border-color: color-mix(in srgb, var(--color-warning) 24%, var(--color-base-300));
  background: color-mix(in srgb, var(--color-warning) 5%, var(--color-base-100));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-limit > i { color: var(--color-warning); }

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-finance-slot > #pg-report,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-data-slot > #pg-public-records-card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-history-slot > .card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-risks-slot > .card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-relationships-controls > .card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-relationships-graph > .card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-relationships-details > .card {
  margin: 0 0 .75rem;
  border: 1px solid var(--color-base-300);
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-report > .card-body,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card > .card-body {
  padding: 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card #pg-rep-tabbar {
  margin-top: .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-details-grid,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risks-grid {
  display: grid;
  gap: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-details-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risks-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-details-grid > .card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risks-grid > .card {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-details-grid #pg-summary-card {
  grid-column: 1 / -1;
}

@media (max-width: 1199px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-company-grid {
    grid-template-columns: 1fr;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-shell {
    display: block;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav {
    display: none;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-tabs {
    position: sticky;
    top: 3.5rem;
    z-index: 35;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: .75rem;
    overflow-x: auto;
    border: 1px solid var(--color-base-300);
    border-radius: .5rem;
    background: color-mix(in srgb, var(--color-base-100) 96%, transparent);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-tabs .tab {
    flex: 0 0 auto;
    gap: .35rem;
    min-height: 2.8rem;
    white-space: nowrap;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-grid {
    grid-template-columns: 1fr;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header {
    min-height: 0;
    flex-direction: column;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header h2 {
    font-size: 1.25rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-kpis,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-source-grid,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metrics,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-forecast-grid,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-details-grid,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risks-grid {
    grid-template-columns: 1fr;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats .stat:nth-child(even) {
    border-left: 0;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-finance-stats .stat + .stat {
    border-top: 1px solid var(--color-base-300);
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-details-grid #pg-summary-card {
    grid-column: auto;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-tabs .tab {
    min-height: 3rem;
    padding-inline: .8rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-section,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-report > .card-body,
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card > .card-body {
    padding: .8rem;
  }
}

/* Final density pass: keep the persistent profile ahead of legacy workspace rules. */
@media (min-width: 1024px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-shell {
    grid-template-columns: 13.75rem minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 1480px;
    margin-inline: auto;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav {
    top: 4.25rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-nav__head {
    padding: .85rem .85rem .6rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu {
    gap: .12rem;
    padding: .5rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button {
    grid-template-columns: 1.55rem minmax(0, 1fr) auto;
    gap: .5rem;
    min-height: 2.75rem;
    padding: .42rem .55rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button > i {
    width: 1.55rem;
    height: 1.55rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-menu li > button b {
    font-size: .78rem;
  }
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header {
  min-height: 3.85rem;
  margin-bottom: .65rem;
  padding: .2rem .15rem .6rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header h2 {
  font-size: 1.25rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-view__header p {
  margin-top: .08rem;
  font-size: .72rem;
}

@media (min-width: 1200px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Company profile v3: reliable header, compact navigation and global search. */
:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot {
  position: relative;
  z-index: 55;
  flex: 0 1 23rem;
  width: clamp(12rem, 26vw, 23rem);
  min-width: 10rem;
  margin-right: .2rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot:not(.is-ready) {
  display: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-card > .card-body {
  display: block;
  padding: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-card label,
:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-card p {
  display: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap,
:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap > .join {
  width: 100%;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-ico {
  min-width: 0;
  height: 2.35rem;
  border-color: var(--color-base-300);
  background: var(--color-base-200);
  font-size: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-show {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.35rem;
  min-height: 2.35rem;
  padding-inline: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-dd {
  right: 0;
  left: auto;
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(24rem, calc(100vh - 5rem));
}

:is([data-theme="prism"], [data-theme="graphite"]) [data-company-sidebar-menu] {
  width: calc(100% - .75rem);
  margin-inline-start: .75rem !important;
  padding-inline-start: .5rem !important;
}

:is([data-theme="prism"], [data-theme="graphite"]) [data-company-sidebar-menu] > li > :where(button, a) {
  min-height: 1.8rem;
  padding: .25rem .45rem;
  font-size: .73rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-address {
  margin-top: .22rem;
  color: color-mix(in srgb, var(--color-base-content) 72%, transparent);
  font-size: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-activity {
  margin-top: .18rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identifiers {
  gap: .55rem 1.35rem;
  margin-top: .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identifiers > :is(span, button) {
  display: grid;
  gap: .08rem;
  min-width: 5.5rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identifiers b {
  font-size: .78rem;
}

@media (max-width: 1100px) {
  html[data-portal-company="1"] .navbar-end > .items-center {
    display: none;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot {
    width: clamp(10rem, 30vw, 18rem);
  }
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot {
    flex: 1 1 auto;
    width: auto;
    min-width: 7rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-ico {
    font-size: .7rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-identifiers > span {
    min-width: 0;
  }
}

/* Company profile v4: shared portal header, denser charts and transparent tabs. */
:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header {
  z-index: 110;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header > :where(.navbar-start, .navbar-center, .navbar-end) {
  width: auto;
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header > .navbar-start {
  display: flex;
  justify-self: stretch;
}
:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header > .navbar-center {
  align-self: center;
  justify-self: stretch;
  align-items: center;
}
:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header > .navbar-end { justify-self: end; }

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-center,
:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot {
  width: 100%;
  max-width: 52rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot {
  z-index: 120;
  flex: 1 1 52rem;
  margin: 0;
  align-self: center;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-card > .card-body > #pg-search-wrap {
  margin-block: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-empty-state {
  min-height: max(24rem, calc(100dvh - 11rem));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-empty-state .hero-content {
  max-width: 28rem;
  padding: 2rem 1rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-ico {
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-right: 3rem;
  height: 2.55rem;
  font-size: .82rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-show {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.55rem;
  min-height: 2.55rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-dd {
  z-index: 125;
  width: min(38rem, calc(100vw - 2rem));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs {
  margin: .8rem 0 1rem;
  border: 0;
  border-radius: 0;
  background: var(--color-primary);
  color: var(--color-primary-content);
  box-shadow: none;
  backdrop-filter: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .tab {
  border-bottom-width: 3px;
  border-radius: 0;
  color: color-mix(in srgb, var(--color-primary-content) 76%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .tab:hover {
  background: color-mix(in srgb, var(--color-primary-content) 10%, transparent);
  color: var(--color-primary-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .tab.tab-active {
  border-bottom-color: var(--color-primary-content);
  border-bottom-width: 3px;
  background: transparent;
  color: var(--color-primary-content);
  font-weight: 800;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .pg-company-tab-meta,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs .tab.tab-active .pg-company-tab-meta {
  color: color-mix(in srgb, var(--color-primary-content) 70%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-scroll {
  overflow-x: hidden;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-finance-svg {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric > .pg-fin-metric__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.6rem, 7.25rem);
  gap: .55rem;
  align-items: end;
  flex-direction: initial;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric > .pg-fin-metric__top > div {
  align-items: flex-start;
  text-align: left;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-sparkline {
  display: block;
  width: 100%;
  height: 2.4rem;
  color: var(--color-success);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric.is-negative .pg-fin-sparkline { color: var(--color-error); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric.is-warning .pg-fin-sparkline { color: var(--color-warning); }

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-sparkline polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-sparkline circle {
  fill: var(--color-base-100);
  stroke: currentColor;
  stroke-width: 2;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-sparkline.is-empty {
  display: block;
  height: 2.4rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-values > span em {
  color: color-mix(in srgb, var(--color-base-content) 55%, transparent);
  font-size: .62rem;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 1280px) {
  html[data-portal-company="1"] .navbar-end > .items-center {
    display: none;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 900px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header .navbar-start > div:last-child {
    display: none;
  }
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header {
    grid-template-columns: auto minmax(0, 1fr);
    padding-inline: .35rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header > .navbar-end {
    display: none;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header > .portal-company-search-center,
  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-center > .portal-company-search-slot {
    width: calc(100vw - 6rem);
    max-width: calc(100vw - 6rem);
    min-width: 0;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-header #portal-width-toggle {
    display: none;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-ico {
    width: 100%;
    padding-right: 3rem;
    font-size: .72rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap {
    position: relative;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-show {
    position: absolute;
    top: 0;
    right: 2.5rem;
    z-index: 125;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs {
    margin-top: .65rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric > .pg-fin-metric__top {
    grid-template-columns: minmax(0, 1fr) 7rem;
  }
}

/* Company finance v5: readable chart axes and semantic iconography. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-grid {
  stroke: color-mix(in srgb, var(--color-base-content) 18%, transparent);
  stroke-width: 1.2;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-axis {
  fill: color-mix(in srgb, var(--color-base-content) 76%, transparent);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-axis.is-profit-axis {
  fill: color-mix(in srgb, var(--color-success) 90%, var(--color-base-content));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-year {
  fill: color-mix(in srgb, var(--color-base-content) 86%, transparent);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-legend {
  color: color-mix(in srgb, var(--color-base-content) 72%, transparent);
  font-size: .68rem;
  font-weight: 750;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-card-heading h3,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-section__head h3 {
  display: flex;
  align-items: center;
  gap: .45rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-heading-icon {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 1.65rem;
  place-items: center;
  border-radius: var(--radius-field);
  background: color-mix(in srgb, var(--color-primary) 11%, var(--color-base-100));
  color: var(--color-primary);
  font-size: .76rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric__label {
  display: flex;
  align-items: center;
  gap: .35rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric__label > i {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  place-items: center;
  border-radius: var(--radius-field);
  background: color-mix(in srgb, var(--color-success) 12%, var(--color-base-100));
  color: var(--color-success);
  font-size: .63rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric.is-warning .pg-fin-metric__label > i {
  background: color-mix(in srgb, var(--color-warning) 14%, var(--color-base-100));
  color: color-mix(in srgb, var(--color-warning) 82%, var(--color-base-content));
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-fin-metric.is-negative .pg-fin-metric__label > i {
  background: color-mix(in srgb, var(--color-error) 12%, var(--color-base-100));
  color: var(--color-error);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi > span,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-values small,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-key-metrics b,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-components b {
  display: flex;
  align-items: center;
  gap: .32rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi > span > i,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-capital-values small > i,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-key-metrics b > i,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-components b > i {
  flex: 0 0 auto;
  color: var(--color-primary);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-persistent-kpi > span > i {
  font-size: .68rem;
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-axis { font-size: 16px; }
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-chart-year { font-size: 17px; }
}

/* Company risk: compact primary score and a visually related network subsection. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card {
  --pg-risk-tone: color-mix(in srgb, var(--color-base-content) 42%, transparent);
  display: grid;
  gap: .75rem;
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card.is-low { --pg-risk-tone: var(--color-success); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card.is-medium { --pg-risk-tone: var(--color-warning); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card.is-high { --pg-risk-tone: color-mix(in srgb, var(--color-warning) 45%, var(--color-error)); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card.is-critical { --pg-risk-tone: var(--color-error); }

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__overview {
  display: grid;
  grid-template-columns: 4.15rem minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__score {
  display: flex;
  width: 4.15rem;
  aspect-ratio: 1;
  align-items: baseline;
  justify-content: center;
  padding-top: 1.1rem;
  border: 1px solid color-mix(in srgb, var(--pg-risk-tone) 30%, var(--color-base-300));
  border-radius: .5rem;
  background: color-mix(in srgb, var(--pg-risk-tone) 8%, var(--color-base-100));
  color: var(--pg-risk-tone);
  font-variant-numeric: tabular-nums;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__score strong {
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__score small {
  margin-left: .08rem;
  font-size: .62rem;
  font-weight: 750;
  opacity: .7;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__content {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__eyebrow {
  display: block;
  color: color-mix(in srgb, var(--color-base-content) 52%, transparent);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__title {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .5rem;
  margin-top: .12rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__title > strong {
  font-size: .95rem;
  line-height: 1.25;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__title > span {
  color: color-mix(in srgb, var(--color-base-content) 54%, transparent);
  font-size: .62rem;
  font-weight: 650;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-factor-list {
  display: grid;
  gap: .26rem;
  margin: .52rem 0 0;
  padding: 0;
  list-style: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-factor-list li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: .3rem;
  align-items: start;
  color: color-mix(in srgb, var(--color-base-content) 82%, transparent);
  font-size: .69rem;
  line-height: 1.35;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-factor-icon {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  color: var(--pg-risk-tone);
  font-size: .55rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-factor-list li.is-clear .pg-risk-factor-icon {
  color: var(--color-success);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__method {
  display: flex;
  align-items: flex-start;
  gap: .38rem;
  margin: 0;
  color: color-mix(in srgb, var(--color-base-content) 50%, transparent);
  font-size: .61rem;
  line-height: 1.4;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__method i {
  margin-top: .12rem;
  color: color-mix(in srgb, var(--color-base-content) 38%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__empty {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem;
  border: 1px solid var(--color-base-300);
  border-radius: .45rem;
  color: color-mix(in srgb, var(--color-base-content) 60%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__empty > i {
  color: var(--pg-risk-tone);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__empty span,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__empty b {
  display: block;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__empty span {
  font-size: .6rem;
  font-weight: 750;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-card__empty b {
  margin-top: .08rem;
  font-size: .76rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card {
  --pg-network-tone: var(--color-info);
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-base-300);
  border-left: 3px solid var(--pg-network-tone);
  border-radius: .45rem;
  background: color-mix(in srgb, var(--color-base-200) 58%, var(--color-base-100));
  color: var(--color-base-content);
  text-decoration: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card.is-low { --pg-network-tone: var(--color-success); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card.is-medium { --pg-network-tone: var(--color-warning); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card:is(.is-high, .is-critical) { --pg-network-tone: var(--color-error); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card:is(.is-unknown, .is-loading) { --pg-network-tone: color-mix(in srgb, var(--color-base-content) 35%, transparent); }

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card > .pg-risk-network-card__body {
  display: grid;
  gap: .55rem;
  padding: .78rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .6rem;
  align-items: center;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__icon {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: var(--radius-field);
  background: color-mix(in srgb, var(--pg-network-tone) 12%, var(--color-base-100));
  color: var(--pg-network-tone);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__head > div {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__head > div > span {
  display: block;
  color: color-mix(in srgb, var(--color-base-content) 52%, transparent);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__head b {
  display: block;
  overflow: hidden;
  margin-top: .08rem;
  font-size: .78rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__head > strong {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__head > strong small {
  margin-left: .08rem;
  color: color-mix(in srgb, var(--color-base-content) 46%, transparent);
  font-size: .62rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card > .pg-risk-network-card__body > p {
  margin: 0;
  color: color-mix(in srgb, var(--color-base-content) 62%, transparent);
  font-size: .67rem;
  line-height: 1.4;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: .38rem;
  color: color-mix(in srgb, var(--color-base-content) 58%, transparent);
  font-size: .63rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__list {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-base-300);
  border-radius: var(--radius-field);
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .55rem;
  padding: .55rem .6rem;
  border-bottom: 1px solid var(--color-base-300);
  border-radius: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row:last-child {
  border-bottom: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row-icon {
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: var(--radius-field);
  background: var(--color-base-200);
  color: var(--pg-network-tone);
  font-size: .68rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row b,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row span,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row em {
  display: block;
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row b {
  overflow: hidden;
  font-size: .68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row b small {
  color: color-mix(in srgb, var(--color-base-content) 48%, transparent);
  font-size: .58rem;
  font-weight: 600;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row span,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row em {
  margin-top: .12rem;
  color: color-mix(in srgb, var(--color-base-content) 55%, transparent);
  font-size: .58rem;
  font-style: normal;
  line-height: 1.35;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row em {
  color: color-mix(in srgb, var(--color-base-content) 72%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__row > strong {
  align-self: center;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__empty {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem;
  border: 1px solid var(--color-base-300);
  border-radius: var(--radius-field);
  color: color-mix(in srgb, var(--color-base-content) 62%, transparent);
  font-size: .63rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-risk-network-card__empty i {
  color: var(--color-success);
}

/* Company profile search: same daisyUI input/button composition as static portal pages. */
:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap > .portal-global-company-search-input {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 2.55rem;
  padding-right: 3rem;
  border-color: var(--color-base-300);
  background: var(--color-base-200);
  font-size: .82rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap #pg-ico {
  width: 100%;
  min-width: 0 !important;
  max-width: none !important;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

:is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap #pg-show {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.55rem;
  min-height: 2.55rem;
  padding-inline: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap > .portal-global-company-search-input {
    padding-inline: .7rem 2.75rem;
    font-size: .72rem;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap > .portal-global-company-search-input > i {
    display: none;
  }

  :is([data-theme="prism"], [data-theme="graphite"]) .portal-company-search-slot #pg-search-wrap #pg-show {
    right: 0;
    width: 2.55rem;
    min-width: 2.55rem;
  }
}

/* Company profile tabs v6: one active rule inside a full-width portal band. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band {
  --pg-profile-pane-width: 100vw;
  --pg-profile-pane-offset: calc(50% - 50vw);
  --pg-profile-main-gutter: 1rem;
  position: sticky;
  top: 4rem;
  z-index: 25;
  width: var(--pg-profile-pane-width-live, var(--pg-profile-pane-width));
  margin: .8rem 0 1rem var(--pg-profile-pane-offset-live, var(--pg-profile-pane-offset));
  background: var(--color-primary);
  color: var(--color-primary-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band .pg-company-tabs {
  position: static;
  z-index: auto;
  display: flex;
  width: min(1500px, calc(var(--pg-profile-pane-width) - var(--pg-profile-main-gutter) - var(--pg-profile-main-gutter)));
  margin: 0 auto;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  backdrop-filter: none;
  scrollbar-width: thin;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band .pg-company-tabs .tab {
  flex: 0 0 auto;
  gap: .4rem;
  min-height: 2.8rem;
  padding-inline: .8rem;
  border: 0 solid transparent;
  border-bottom-width: 3px;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--color-primary-content) 76%, transparent);
  font-size: .72rem;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band .pg-company-tabs .tab::before {
  display: none;
  content: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band .pg-company-tabs .tab:hover {
  background: color-mix(in srgb, var(--color-primary-content) 10%, transparent);
  color: var(--color-primary-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band .pg-company-tabs .tab.tab-active {
  border-bottom-color: var(--color-primary-content);
  background: transparent;
  color: var(--color-primary-content);
  font-weight: 800;
}

@media (min-width: 640px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band {
    --pg-profile-main-gutter: 1.5rem;
  }
}

@media (min-width: 1024px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band {
    --pg-profile-pane-width: calc(100vw - 18rem);
    --pg-profile-pane-offset: calc(50% - 50vw + 9rem);
  }
}

@media (min-width: 1280px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band {
    --pg-profile-main-gutter: 2rem;
  }
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band .pg-company-tabs .tab {
    min-height: 3rem;
    padding-inline: .8rem;
  }
}

/* Company profile header v7: continue the card surface across the portal pane. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero {
  --pg-profile-header-pane-width: 100vw;
  --pg-profile-header-pane-offset: calc(50% - 50vw);
  --pg-profile-header-gutter: 1rem;
  isolation: isolate;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(0rem - var(--pg-profile-header-gutter));
  bottom: -.8rem;
  left: var(--pg-profile-pane-offset-live, var(--pg-profile-header-pane-offset));
  width: var(--pg-profile-pane-width-live, var(--pg-profile-header-pane-width));
  background: var(--color-base-100);
}

@media (min-width: 640px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero {
    --pg-profile-header-gutter: 1.5rem;
  }
}

@media (min-width: 1024px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero {
    --pg-profile-header-pane-width: calc(100vw - 18rem);
    --pg-profile-header-pane-offset: calc(50% - 50vw + 9rem);
  }
}

@media (min-width: 1280px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero {
    --pg-profile-header-gutter: 2rem;
  }
}

@media (max-width: 430px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-company-action-buttons {
    justify-content: center;
  }
}

/* Company profile v8: contain full-pane bands and separate the three overview cards. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band {
  box-sizing: border-box;
  max-width: var(--pg-profile-pane-width-live, var(--pg-profile-pane-width));
  overflow-x: clip;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band .pg-company-tabs {
  box-sizing: border-box;
  max-width: 100%;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-company-grid {
  grid-template-columns: minmax(17rem, .82fr) minmax(18rem, 1fr) minmax(22rem, 1.25fr);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-company-slot,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-network-risk,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-finance-summary {
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-network-risk > .pg-risk-network-card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-company-slot > #pg-root-card,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-finance-summary > .card {
  height: 100%;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-overview-network-risk > .pg-risk-network-card {
  margin: 0;
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-summary {
  margin-top: .85rem;
  padding-top: .8rem;
  border-top: 1px solid var(--color-base-300);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-card .pg-health-lead,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-section .pg-health-lead {
  margin: 0;
  color: var(--color-base-content);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.5;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-findings-title {
  margin-top: .8rem;
  color: color-mix(in srgb, var(--color-base-content) 60%, transparent);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-findings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding {
  --pg-health-tone: var(--color-info);
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: .55rem;
  min-width: 0;
  padding: .65rem;
  border: 1px solid var(--color-base-300);
  border-left: 3px solid var(--pg-health-tone);
  border-radius: var(--radius-field);
  background: var(--color-base-100);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding.is-success { --pg-health-tone: var(--color-success); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding.is-warning { --pg-health-tone: var(--color-warning); }
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding.is-error { --pg-health-tone: var(--color-error); }

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding > i {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: var(--radius-field);
  background: color-mix(in srgb, var(--pg-health-tone) 12%, var(--color-base-100));
  color: var(--pg-health-tone);
  font-size: .68rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding div,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding b,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding span {
  display: block;
  min-width: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding b {
  font-size: .7rem;
  line-height: 1.25;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-finding span {
  margin-top: .16rem;
  color: color-mix(in srgb, var(--color-base-content) 62%, transparent);
  font-size: .64rem;
  line-height: 1.4;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-method {
  min-height: 0;
  margin-top: .8rem;
  border-radius: var(--radius-field);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-method > .collapse-title {
  min-height: 2.65rem;
  padding: .72rem 2.5rem .72rem .8rem;
  font-size: .7rem;
  font-weight: 750;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-method > .collapse-content {
  padding-inline: .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-card .pg-health-method p,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-section .pg-health-method p {
  margin: 0 0 .65rem;
  color: color-mix(in srgb, var(--color-base-content) 68%, transparent);
  font-size: .66rem;
  line-height: 1.5;
}

@media (max-width: 1199px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-overview-company-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-health-findings {
    grid-template-columns: 1fr;
  }
}

/* Opt-in extended RÚZ statement: contained so it cannot widen the page. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-finance {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  width: 100%;
  max-width: 100%;
  margin-top: .8rem;
  overflow: hidden;
  border: 1px solid var(--color-base-300);
  border-radius: var(--radius-box);
  background: var(--color-base-100);
  box-shadow: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-stats .stat {
  min-width: 0;
  padding: .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-stats .stat-value {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-stats .stat-title,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-stats .stat-desc {
  overflow: hidden;
  font-size: .62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-financial-overview-table {
  width: 100%;
  max-width: 100%;
  margin-top: .8rem;
  border: 1px solid var(--color-base-300);
  border-radius: var(--radius-field);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-financial-overview-table table {
  min-width: 42rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-financial-overview-table th,
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-financial-overview-table td {
  font-size: .68rem;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-financial-overview-table thead {
  color: color-mix(in srgb, var(--color-base-content) 62%, transparent);
  background: var(--color-base-200);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-method {
  min-height: 0;
  margin-top: .8rem;
  border-radius: var(--radius-field);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-method > .collapse-title {
  min-height: 2.65rem;
  padding: .72rem 2.5rem .72rem .8rem;
  font-size: .7rem;
  font-weight: 750;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-method > .collapse-content {
  padding-inline: .8rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-method p {
  margin: 0 0 .65rem;
  color: color-mix(in srgb, var(--color-base-content) 68%, transparent);
  font-size: .66rem;
  line-height: 1.5;
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-extended-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Keep the modern records card flush after the earlier legacy workspace overrides. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card > .card-body {
  padding: 0;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card #pg-rep-tabbar {
  margin: 0 0 .9rem;
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card > .card-body {
    padding: 0;
  }
}

/* Document total lives in the section title; source switches use portal-style tiles. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-view-title-dokumenty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-view-title-dokumenty > .badge {
  min-width: 1.65rem;
  font-size: .62rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card #pg-rep-tabbar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .45rem;
  width: 100%;
  max-width: 100%;
  margin: 0 0 .9rem;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-rep-tabbar .tab {
  display: flex;
  grid-row: auto;
  grid-column: auto;
  width: auto;
  min-width: 0;
  min-height: 2.75rem;
  height: auto;
  align-items: center;
  justify-content: flex-start;
  gap: .35rem;
  padding: .55rem .65rem;
  border: 1px solid var(--color-base-300);
  border-radius: var(--radius-field);
  background: var(--color-base-100);
  box-shadow: none;
  color: color-mix(in srgb, var(--color-base-content) 68%, transparent);
  font-size: .68rem;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-rep-tabbar .tab:hover {
  border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-base-300));
  background: color-mix(in srgb, var(--color-primary) 4%, var(--color-base-100));
  color: var(--color-base-content);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-rep-tabbar .tab.tab-active {
  border-color: color-mix(in srgb, var(--color-primary) 52%, var(--color-base-300));
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-base-100));
  box-shadow: inset 3px 0 0 var(--color-primary);
  color: var(--color-primary);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-rep-tabbar .pg-public-source-count {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1099px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card #pg-rep-tabbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view #pg-public-records-card #pg-rep-tabbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }
}

/* Full-bleed profile surfaces without viewport-width elements or negative margins. */
html[data-portal-company="1"],
html[data-portal-company="1"] body {
  max-width: 100%;
  overflow-x: clip;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band {
  position: sticky;
  top: 4rem;
  z-index: 25;
  width: 100%;
  max-width: 100%;
  margin: .8rem 0 1rem;
  overflow: visible;
  background: var(--color-primary);
  box-shadow: 0 0 0 100vmax var(--color-primary);
  clip-path: inset(0 -100vmax);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band .pg-company-tabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band .pg-company-tabs::-webkit-scrollbar {
  display: none;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-main > .pg-hero::before {
  right: 0;
  left: 0;
  width: auto;
  background: var(--color-base-100);
  box-shadow: 0 0 0 100vmax var(--color-base-100);
  clip-path: inset(0 -100vmax);
}

@media (max-width: 1023px) {
  :is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view.pg-portal .pg-company-tabs-band {
    top: 3.5rem;
  }
}

/* Rich, immediately readable details for the compact TOP 5 counterparty chips. */
:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-contract-counterparty {
  position: relative;
  overflow: visible;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-contract-counterparty-tooltip {
  --tt-bg: var(--color-neutral);
  z-index: 100;
  display: block;
  width: min(18rem, calc(100vw - 2rem));
  max-width: min(18rem, calc(100vw - 2rem));
  padding: .75rem;
  border: 1px solid color-mix(in srgb, var(--color-neutral-content) 18%, transparent);
  border-radius: var(--radius-box);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--color-neutral) 38%, transparent);
  text-align: left;
  white-space: normal;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-contract-tooltip-name {
  display: block;
  padding-bottom: .55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-neutral-content) 18%, transparent);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-contract-tooltip-details {
  display: grid;
  gap: .3rem;
  padding-block: .55rem;
  font-size: .7rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-contract-tooltip-details > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-contract-tooltip-details > span > span {
  color: color-mix(in srgb, var(--color-neutral-content) 66%, transparent);
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-contract-tooltip-details strong {
  color: var(--color-neutral-content);
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

:is([data-theme="prism"], [data-theme="graphite"]) .pg-workspace-view .pg-contract-tooltip-action {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-top: .5rem;
  border-top: 1px solid color-mix(in srgb, var(--color-neutral-content) 18%, transparent);
  color: color-mix(in srgb, var(--color-neutral-content) 78%, transparent);
  font-size: .66rem;
  font-weight: 650;
  line-height: 1.35;
}

/* Keep the standalone map action beside the profile section heading. */
.pg-workspace-view [data-company-view="mapa"] .pg-company-view__header > div { min-width:0;flex:1; }
#pg-profile-map-external { flex-shrink:0;margin-left:auto;max-width:100%; }

/* The guest notice already separates the header from the navbar. Keep the
   full-width hero background from painting over its lower padding. */
html[data-portal-guest="1"] .pg-workspace-view.pg-portal .pg-company-main > .pg-hero::before {
  top: 0;
}
