/* Component styles from the IHK Ostwürttemberg Kurzstudie. */

:root {
  --surface-base: #eef3f8;
  --surface-card: #fff;
  --surface-intro: #f8fbfd;
  --surface-border: #dce5ed;
  --surface-shadow: 0 2px 6px #17334d05, 0 10px 24px #17334d08;
  --accent-fill: #dbeaf6;
  --accent-border: #bed4e5;
  --accent-ink: #2c5879;
  --accent-tint: #edf5fb;
  --accent-hover: #e0edf7;
  --focus-ring: #507aa0;

  font-family: Avenir Next,Segoe UI,sans-serif;
  line-height: 1.45;
  font-weight: 400;
  color: #1d2939;
  background: var(--surface-base);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

html,
body,
#root {
  min-height: 100%;
  width: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-base);
  color: #1d2939;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

code {
  font-family: SFMono-Regular,Menlo,monospace;
  background: #0b263814;
  padding: .1rem .32rem;
  border-radius: .35rem;
}

.dashboard-shell {
  position: relative;
  min-height: 100vh;
  padding: 20px 28px;
  box-sizing: border-box;
  overflow: hidden;
}

.dashboard-header-slim {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 12px 20px;
  border-radius: 18px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
}

.dashboard-kicker,
.panel-kicker,
.data-card-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  white-space: nowrap;
}

.dashboard-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--accent-ink);
  cursor: pointer;
  padding: 0;
  opacity: .5;
  transition: opacity .16s ease;
}

.info-icon-btn:hover {
  opacity: 1;
}

.tab-strip-inline {
  display: flex;
  gap: 8px;
  margin-left: auto;
  justify-content: flex-end;
}

.tab-pill-slim {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  color: #475467;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease,background .16s ease;
}

.tab-pill-slim:hover {
  transform: translateY(-1px);
}

.tab-pill-slim-active {
  background: #183750;
  color: #fff;
  border-color: transparent;
}

.dashboard-main {
  position: relative;
  z-index: 1;
}

.section-stack {
  display: grid;
  gap: 16px;
}

.mini-tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-tab {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  color: #475467;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: transform .16s ease,background .16s ease;
}

.mini-tab:hover {
  transform: translateY(-1px);
}

.mini-tab-active {
  background: var(--accent-fill);
  color: var(--accent-ink);
  border-color: var(--accent-border);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(360px,1fr));
  gap: 12px;
}

.signal-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  box-shadow: var(--surface-shadow);
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease,box-shadow .16s ease;
}

.signal-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f1728;
  margin-bottom: 8px;
  line-height: 1.3;
}

.signal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.signal-id {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.signal-card-keywords {
  margin: 0;
  font-size: 12px;
  color: #667085;
  line-height: 1.5;
}

.status-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.status-card .signal-card-name {
  margin: 0 0 8px;
}

.status-field-heading {
  margin: 12px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
}

.status-facts {
  margin: 0;
  padding-left: 17px;
  font-size: 13px;
  color: #344054;
}

.status-fact + .status-fact {
  margin-top: 6px;
}

.status-source {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  vertical-align: middle;
  color: var(--accent-ink);
  text-decoration: none;
}

.status-source span {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.status-source:hover { background: var(--accent-hover); }

.status-explanation,
.status-note {
  margin: 4px 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #667085;
}

#opportunity-cards:empty {
  display: none;
}

#opportunity-cards .signal-card-name {
  margin-top: 0;
}

.opportunity-derivation {
  margin-top: 8px;
}

.opportunity-derivation summary {
  cursor: pointer;
}

.opportunity-derivation p {
  margin-top: 4px;
  white-space: pre-line;
}

.methodik-container {
  display: grid;
  gap: 28px;
}

.methodik-intro {
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--surface-intro);
  border: 1px solid var(--surface-border);
}

.methodik-lead {
  font-size: 15px;
  line-height: 1.7;
  color: #1d2939;
  margin: 0;
}

.methodik-section {
  display: grid;
  gap: 14px;
}

.methodik-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.methodik-step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-fill);
  color: #0f1728;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.methodik-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f1728;
}

.methodik-section-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: #667085;
}

.methodik-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
}

.methodik-card-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0f1728;
}

.desktop-source-heading {
  margin-top: 16px;
}

.methodik-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.65;
  color: #344054;
}

.methodik-text:last-child {
  margin-bottom: 0;
}

.methodik-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #667085;
}

.methodik-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.methodik-stat {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0b26380a;
  text-align: center;
}

.methodik-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #0b2638;
  letter-spacing: -.02em;
}

.methodik-stat-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.methodik-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(340px,1fr));
  gap: 10px;
}

.methodik-theme-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11,38,56,.06);
  background: #f8fafccc;
}

.methodik-theme-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}

.methodik-theme-id {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: .06em;
  min-width: 20px;
}

.methodik-theme-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f1728;
  line-height: 1.3;
}

.methodik-theme-details {
  margin: 0 0 6px;
  font-size: 12px;
  color: #475467;
  line-height: 1.55;
}

.methodik-theme-codes {
  font-size: 11px;
  color: #94a3b8;
  font-family: SF Mono,Fira Code,monospace;
  word-break: break-all;
}

.methodik-cluster-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.methodik-cluster-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  align-items: center;
}

.methodik-cluster:nth-child(odd) > summary,
.methodik-subcluster-list .methodik-cluster-row:nth-child(odd) {
  background: #f8fafcb3;
}

.methodik-cluster-id {
  font-size: 14px;
  font-weight: 800;
  color: #0b2638;
  text-align: center;
}

.methodik-cluster-name {
  font-size: 13px;
  font-weight: 600;
  color: #1d2939;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.methodik-cluster-count {
  font-size: 12px;
  color: #667085;
  text-align: right;
  white-space: nowrap;
}

.methodik-cluster summary, .methodik-field-header {
  cursor: pointer;
  list-style: none;
}

.methodik-cluster summary::-webkit-details-marker,
.methodik-field-header::-webkit-details-marker {
  display: none;
}

.methodik-cluster summary .methodik-cluster-id::before {
  content: "+ ";
  color: #667085;
}

.methodik-cluster[open] summary .methodik-cluster-id::before {
  content: "− ";
}

.methodik-subcluster-list {
  margin: 0 0 8px 18px;
  border-left: 1px solid rgba(11,38,56,.08);
}

.methodik-subcluster-list .methodik-cluster-id {
  font-size: 11px;
}

.impact-perspective {
  margin-bottom: 12px;
}

.impact-matrix-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scatter-container {
  position: relative;
}

.scatter-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 700px;
  border-radius: 14px;
  background: #fafbfc;
}

.impact-gridline {
  stroke: #e2e8f0;
  stroke-dasharray: 6 4;
}

.impact-axis {
  fill: #475467;
  font-size: 13px;
  font-weight: 600;
}

.impact-quadrant {
  fill: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.scatter-dot {
  cursor: pointer;
  transition: r .12s ease;
}

.scatter-dot:hover, .scatter-dot:focus {
  r: 7px;
}

.scatter-tooltip {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(92%,500px);
  padding: 8px 14px;
  border-radius: 12px;
  background: #fffffff5;
  border: 1px solid rgba(11,38,56,.1);
  box-shadow: 0 8px 24px #1d29391f;
  font-size: 13px;
  color: #1d2939;
  text-align: center;
  pointer-events: none;
  z-index: 1;
}

.scatter-tooltip-cluster {
  color: #667085;
  font-size: 12px;
}

.impact-matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 8px 4px;
  line-height: 1.6;
}

.scatter-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #475467;
  white-space: nowrap;
}

.scatter-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.impact-legend-detail {
  margin-top: 4px;
}

.impact-legend-toggle,
.query-info-toggle {
  display: inline-block;
  list-style: none;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #344054;
  cursor: pointer;
}

.impact-legend-toggle::-webkit-details-marker,
.query-info-toggle::-webkit-details-marker {
  display: none;
}

.impact-legend-toggle:hover,
.query-info-toggle:hover {
  background: #f2f4f7;
}

.impact-open,
details[open] > summary .impact-closed {
  display: none;
}

details[open] > summary .impact-open {
  display: inline;
}

.impact-legend-body {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(280px,100%),1fr));
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e4e7ec;
}

.impact-legend-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #1d2939;
}

.impact-legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.impact-legend-list li {
  font-size: 11px;
  color: #475467;
  line-height: 1.55;
  padding: 1px 0;
}

.impact-keyword-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.impact-keyword-link:hover {
  text-decoration: underline;
}

.impact-legend-id {
  font-weight: 700;
  color: #344054;
  margin-right: 3px;
}

.query-info-wrapper,
.impact-main-clusters {
  margin-top: 14px;
}

.query-info-body {
  margin-top: 10px;
  padding: 14px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e4e7ec;
}

.query-info-pre {
  margin: 8px 0 0;
  padding: 12px 14px;
  font: 11.5px/1.55 SF Mono,Fira Code,Consolas,monospace;
  color: #1d2939;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.methodik-fields-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.methodik-field-card {
  border-radius: 12px;
  border: 1px solid rgba(11,38,56,.08);
}

.methodik-field-card[open] {
  box-shadow: 0 8px 24px #1d293914;
}

#sp500-topic-heading,
#sp500-topics .methodik-field-card {
  scroll-margin-top: 24px;
}

.methodik-field-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafccc;
}

.methodik-field-header:hover {
  background: #f0f4f8;
}

.methodik-field-header::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: #667085;
}

.methodik-field-card[open] .methodik-field-header::after {
  content: "−";
}

.methodik-field-id {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  min-width: 22px;
}

.methodik-field-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #0f1728;
}

.methodik-field-body {
  padding: 14px 16px;
  border-top: 1px solid rgba(11,38,56,.06);
}

.sp500-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 30%);
  align-items: start;
  gap: 16px;
}

.sp500-cluster-marker {
  cursor: pointer;
}

.sp500-cluster-marker-label {
  fill: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sp500-legend-panel {
  padding: 12px 14px;
  border: 1px solid rgba(11,38,56,.08);
  border-radius: 12px;
  background: #f8fafccc;
}

.sp500-legend-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  padding-right: 8px;
}

.sp500-legend-heading .methodik-card-title {
  margin: 0;
}

.sp500-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 570px;
  overflow: auto;
}

.sp500-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sp500-legend-item:hover {
  background: #0b26380f;
}

.sp500-legend-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #101828;
  line-height: 1.3;
}

.sp500-cluster-count {
  font-size: 12px;
  color: #667085;
  white-space: nowrap;
}

.sp500-table-scroll {
  overflow-x: auto;
}

.sp500-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(11,38,56,.08);
  border-radius: 12px;
  font-size: 13px;
  color: #344054;
}

.sp500-table th {
  background: #0b26380d;
  color: #667085;
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sp500-table th, .sp500-table td {
  padding: 8px 12px;
  vertical-align: top;
}

.sp500-table td {
  border-top: 1px solid rgba(11,38,56,.06);
}

.sp500-table td:first-child {
  font-weight: 700;
  color: var(--accent-ink);
}

.sp500-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sp500-table tr:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
  background: var(--accent-tint);
}

.methodik-source-table,
.methodik-signal-table {
  display: grid;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(11,38,56,.08);
  margin-top: 10px;
}

.methodik-source-header-row,
.methodik-signal-header-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 80px;
  gap: 12px;
  padding: 10px 14px;
  background: #0b26380d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #667085;
}

.methodik-source-row,
.methodik-signal-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr 80px;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(11,38,56,.06);
  font-size: 13px;
  color: #344054;
  align-items: start;
}

.methodik-source-name,
.methodik-signal-source {
  font-weight: 600;
  color: #0f1728;
}

.methodik-source-content,
.methodik-signal-text {
  line-height: 1.5;
}

.methodik-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.methodik-link:hover {
  text-decoration: underline;
}

.methodik-subsection-title {
  margin: 18px 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: #0b263814;
  color: #0f1728;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.info-overlay {
  width: min(720px,94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11,38,56,.08);
  box-shadow: 0 24px 60px #0f172a38;
}

.info-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(11,38,56,.08);
  background: var(--surface-intro);
}

.info-overlay-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f1728;
}

.info-overlay-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #667085;
}

.info-overlay-body {
  padding: 20px 24px 28px;
  overflow: auto;
}

.info-overlay-intro {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: #344054;
}

.info-steps {
  display: grid;
  gap: 16px;
}

.info-step {
  display: flex;
  gap: 14px;
  align-items: start;
}

.info-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-fill);
  color: #0f1728;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-step-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0f1728;
}

.info-step-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #475467;
}

/* Workshop views and narrow-screen layout. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.skip { position: absolute; z-index: 3; left: 12px; top: 8px; padding: 8px 12px; border-radius: 8px; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }
.dashboard-main:focus { outline: none; }
.dashboard-main section { min-width: 0; }
.dashboard-kicker { white-space: normal; }
.info-icon-btn { flex: 0 0 22px; }
.tab-pill-slim, .mini-tab, .report-download-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.tab-pill-slim { white-space: nowrap; }
.methodik-intro h1 { margin-bottom: 6px; }
.methodik-stats-row { margin: 0; }
.methodik-stat { display: grid; }
.methodik-stat dd { grid-row: 1; margin: 0; }
.signal-card { cursor: default; min-width: 0; }
.methodik-source-content cite, .info-technical code { overflow-wrap: anywhere; }
.dashboard-footer { padding: 18px 4px 2px; color: #667085; font-size: 11px; text-align: right; position: relative; }

.agenda { border-top: 1px solid rgba(11,38,56,.08); }
.agenda article { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(11,38,56,.08); font-size: 13px; }
.agenda h3 { margin: 0 0 3px; color: #0f1728; font-size: 14px; }
.agenda p { margin: 0; color: #344054; }
.agenda a { color: var(--accent-ink); text-underline-offset: 3px; }
.agenda-steps { margin: 6px 0 0; padding-left: 19px; color: #475467; }
.agenda-steps li + li { margin-top: 3px; }
.agenda time { color: var(--accent-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.agenda .lunch { background: var(--accent-tint); }

.documents { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.document { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(11,38,56,.08); background: #ffffffe0; }
.document { display: flex; flex-direction: column; align-items: start; gap: 6px; }
.document h3 { margin: 0; color: #0f1728; font-size: 14px; }
.document p { margin: 0; color: #344054; font-size: 13px; line-height: 1.65; }
.document .report-download-button { margin-top: auto; }
.file-type { color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.report-download-button { min-height: 36px; border: 1px solid #0b2638; border-radius: 8px; padding: 7px 12px; background: #0b2638; color: #fff; font-size: 12px; font-weight: 700; }
.report-download-button:hover { background: #15405c; }
.team-note { margin: 0; font-size: 12px; color: #667085; }

.matrix-scroll { overflow-x: auto; }
.matrix { width: 100%; table-layout: fixed; border-spacing: 3px; min-width: 570px; }
.matrix th { padding: 8px 10px; text-align: left; line-height: 1.35; color: #0b2638; font-size: 13px; background: #0b26380d; }
.matrix thead small { display: block; color: #475467; font-weight: 500; font-size: 12px; }
.matrix tbody th { background: #f8fafccc; }
.matrix td { padding: 0; }
.matrix-label-short { display: none; }
.matrix .matrix-cell { display: block; background: #0b26380a; border: 0; border-radius: 4px; text-align: left; width: 100%; min-height: 44px; padding: 8px 10px; line-height: 1.32; color: #0b2638; font-size: 13px; font-weight: 700; cursor: pointer; }
.matrix .matrix-cell:hover { background: var(--accent-hover); }
.matrix .matrix-cell[aria-pressed="true"] { background: var(--accent-fill); color: #0f1728; }
.matrix-detail { margin-top: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(11,38,56,.08); background: #f8fafccc; font-size: 13px; }
.matrix-detail strong { color: #0b2638; }
.matrix-detail p { margin: 3px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#project-info, #impact-keywords-dialog { width: fit-content; max-width: calc(100vw - 24px); max-height: 90vh; padding: 0; margin: auto; border: 0; border-radius: 22px; overflow: visible; background: transparent; color: inherit; }
#project-info::backdrop, #impact-keywords-dialog::backdrop { background: #0f172a6b; backdrop-filter: blur(4px); }
#project-info .info-overlay, #impact-keywords-dialog .info-overlay { max-width: 100%; }
#impact-keywords-dialog .info-overlay { width: min(560px, calc(100vw - 24px)); }
#impact-keywords-dialog .info-overlay-subtitle { margin: 0 0 4px; }
.info-overlay-header { flex-shrink: 0; }
.info-technical { margin: 16px 0 0 44px; font-size: 13px; }
.info-technical summary { cursor: pointer; color: #0b2638; font-weight: 700; }
.info-technical p { margin: 6px 0; }
.info-technical dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; margin: 0; }
.info-technical dd { margin: 0; }

@media (max-width: 1200px) {
  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-strip-inline { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .dashboard-shell { padding: 14px; }
  .dashboard-header-slim { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tab-strip-inline { justify-content: flex-start; margin-left: 0; }
  .sp500-map-layout { grid-template-columns: 1fr; }
  .sp500-legend { max-height: 248px; }
}
@media (max-width: 680px) {
  .tab-strip-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tab-pill-slim { min-height: 40px; padding: 6px 8px; }
  .tab-strip-inline .tab-pill-slim { white-space: normal; }
  .documents, .signal-grid, .methodik-theme-grid { grid-template-columns: 1fr; }
  .methodik-intro, .methodik-card { padding: 14px; }
  .methodik-stats-row { gap: 8px; }
  .methodik-stat { min-width: min(112px, 100%); padding: 8px; }
  .methodik-source-row, .methodik-source-header-row,
  .methodik-signal-row, .methodik-signal-header-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) auto; gap: 6px; padding: 8px 7px; }
  .methodik-signal-source, .methodik-signal-text { overflow-wrap: anywhere; }
  .methodik-source-name, .methodik-link { overflow-wrap: anywhere; }
  .sp500-cluster-marker-label { font-size: 19px; }
  .methodik-field-header { gap: 7px; padding: 8px 10px; }
  .methodik-field-header .sp500-cluster-count { white-space: normal; text-align: right; }
  .sp500-table-scroll { padding: 8px; }
  .agenda article { grid-template-columns: 1fr; gap: 3px; padding: 8px 6px; }
  .matrix { min-width: 0; border-spacing: 2px; }
  .matrix th { padding: 5px 3px; }
  .matrix th:first-child { width: 30%; }
  .matrix thead small { display: none; }
  .matrix .matrix-cell { padding: 4px 2px; text-align: center; font-size: 12px; }
  .matrix-label-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .matrix-label-short { display: inline; }
  .info-overlay-header, .info-overlay-body { padding-inline: 16px; }
  .info-technical { margin-left: 0; }
  .info-technical dl { grid-template-columns: 1fr; }
}

/* Company workspaces */
#workshop-access { position: relative; z-index: 1; margin-bottom: 16px; }
#workshop-notice { position: relative; z-index: 2; padding: 8px 12px; margin: 0 0 16px; background: var(--surface-card); border-radius: 8px; }
#workshop-notice.workshop-error, #workshop-login-error { color: #9c2b34; }
.company-tabs { margin-bottom: 2px; }
.workshop-company-profile { margin-top: 12px; }
.workshop-profile-question {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--accent-border);
  border-radius: 0 6px 6px 0;
  background: var(--accent-tint);
  color: #344054;
  font-size: 14px;
  line-height: 1.55;
}
.workshop-drop { display: block; width: 100%; padding: 10px 12px; border: 1px dashed var(--accent-border); border-radius: 9px; color: var(--accent-ink); background: var(--surface-intro); font-size: 13px; font-weight: 600; cursor: pointer; }
.workshop-drop:hover, .workshop-drop.workshop-dragging { background: var(--accent-fill); }
.workshop-drop:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
#potential-result, #potential-result > .methodik-card { min-width: 0; }
.workshop-marked { display: block; margin-top: 4px; color: var(--accent-ink); font-weight: 600; }
.workshop-demo { color: #714908; }
.vp-company .methodik-section-title { margin-bottom: 8px; }
.vp-company .matrix-scroll { border-radius: 12px; }
.vp-horizons summary { margin: 0 0 0 4px; color: var(--accent-ink); font-size: 14px; font-weight: 650; cursor: pointer; }
.vp-horizons .methodik-theme-grid { margin-top: 9px; }
.vp-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; padding: 14px; margin: 16px 0; border: 1px solid var(--surface-border); border-radius: 12px; background: var(--surface-card); }
.vp-filter-section { min-width: 0; }
.vp-filter-section h3 { margin: 0 0 7px; color: #344054; font-size: 14px; }
.vp-filter-group { display: inline-flex; flex-wrap: wrap; overflow: hidden; border: 1px solid var(--surface-border); border-radius: 14px; }
.vp-filter-option { min-height: 36px; border: 0; padding: 6px 11px; background: #fff; color: #344054; font-size: 14px; cursor: pointer; }
.vp-filter-option + .vp-filter-option { border-left: 1px solid var(--surface-border); }
.vp-filter-option:hover { background: var(--accent-hover); }
.vp-filter-option[aria-pressed="true"] { background: #0b3854; color: #fff; }
.vp-filter-option:focus-visible { outline-offset: -3px; }
.vp-reset { margin-left: auto; }
.vp-reset:disabled { opacity: .5; cursor: default; }
.vp-view-bar, .vp-views, .vp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.vp-view-bar { justify-content: space-between; margin-bottom: 13px; }
.vp-views .mini-tab-active { background: #0b2638; color: #fff; border-color: #0b2638; }
.vp-matrix { width: 100%; min-width: 660px; table-layout: fixed; border-spacing: 5px; }
.vp-path-column { width: 20%; }
.vp-matrix th { text-align: left; vertical-align: top; padding: 13px; background: #e7eff6; color: #142b3d; border-radius: 8px; font-size: 15px; }
.vp-matrix th[scope="row"] { background: #f0f5f9; }
.vp-matrix td { vertical-align: top; padding: 9px; background: #f6f8fa; border: 1px solid #e6ecf2; border-radius: 9px; }
.vp-slot-count { margin: 2px 3px 8px; color: #496579; font-size: 13px; font-weight: 700; }
.vp-matrix-idea, .vp-list-idea { display: block; width: 100%; border: 1px solid #dce5ed; border-radius: 8px; background: #fff; color: #0b2638; text-align: left; cursor: pointer; }
.vp-matrix-idea { min-height: 54px; margin-top: 5px; padding: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.vp-matrix-idea:hover, .vp-list-idea:hover, .vp-marked { border-color: var(--accent-border); background: var(--accent-tint); }
.vp-idea-title { display: block; font-size: 14px; font-weight: 750; }
.vp-list, .vp-field-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 315px), 1fr)); gap: 10px; }
.vp-field-group { grid-column: 1 / -1; border: 1px solid var(--surface-border); border-radius: 12px; padding: 13px; }
.vp-field-group h3 { grid-column: 1 / -1; margin: 0; }
.vp-list-idea { align-self: stretch; padding: 13px; }
.vp-list-idea .vp-idea-title { margin: 8px 0 5px; font-size: 16px; }
.vp-idea-summary { color: #344054; font-size: 14px; line-height: 1.5; }
.vp-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.vp-badge { border: 1px solid #d4dfe8; border-radius: 999px; padding: 3px 9px; background: #fff; color: #344054; font-size: 13px; font-weight: 650; }
.vp-badge-primary { background: #edf4f9; color: #113650; }
#vp-dialog { width: min(1050px, calc(100vw - 28px)); max-width: none; max-height: 92vh; margin: auto; }
#vp-dialog::backdrop { backdrop-filter: blur(4px); }
#vp-dialog .info-overlay { background: #f5f8fb; }
#vp-dialog .info-overlay-header { background: #edf4fa; }
#vp-dialog .info-overlay-title { font-size: clamp(18px, 2.4vw, 25px); }
#vp-dialog-footer { flex-shrink: 0; border-top: 1px solid #e2e8ee; background: #fff; padding: 12px 24px; }
.vp-details { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 3fr); gap: 11px 22px; background: #fff; border: 1px solid #e2e8ee; border-radius: 13px; padding: 17px; margin: 0; }
.vp-details dt { font-weight: 750; color: #496579; font-size: 14px; align-self: start; }
.vp-details dd { margin: 0; color: #1c3448; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.vp-dialog-feedback:empty { display: none; }
@media (max-width: 680px) {
  .vp-filters { gap: 12px; }
  .vp-filter-option { font-size: 13px; padding-inline: 8px; }
  .vp-reset { margin-left: 0; }
  #vp-dialog-footer { padding-inline: 16px; }
  .vp-details { grid-template-columns: 1fr; gap: 4px; padding: 13px; }
  .vp-details dd { margin-bottom: 9px; }
}
.workshop-dialog { width: min(460px, calc(100vw - 28px)); padding: 0; background: transparent; border: 0; }
.workshop-dialog .info-overlay { width: 100%; }
.workshop-dialog::backdrop { background: #0f172a6b; }
.workshop-login { display: grid; gap: 12px; }
.workshop-login label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.workshop-login input, .workshop-controls select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--surface-border); background: #fff; color: #1d2939; }
.workshop-login button { justify-self: start; }
.workshop-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.workshop-choice { display: inline-flex; gap: 6px; align-items: center; }
.workshop-controls button:disabled { opacity: .6; cursor: wait; }
