:root {
  --bg: #07111d;
  --panel: rgba(10, 24, 38, 0.92);
  --panel-2: #0d1d2d;
  --line: rgba(160, 188, 220, 0.2);
  --text: #f4f7fb;
  --muted: #a8b6c7;
  --red: #ef322f;
  --orange: #ff8a18;
  --yellow: #ffc533;
  --green: #42c96f;
  --blue: #63a8ff;
  --purple: #5e3ea1;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 55% 0%, rgba(42, 91, 135, 0.25), transparent 32%),
    linear-gradient(135deg, #040b13, var(--bg));
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden-by-role {
  display: none !important;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #06121e, #03101a);
}

.logo {
  margin-bottom: 28px;
}

.logo span {
  display: block;
  color: var(--red);
  font-size: 32px;
  font-weight: 900;
  line-height: 0.9;
}

.logo strong {
  font-size: 18px;
}

nav {
  display: grid;
  gap: 8px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  padding: 13px 16px;
  border-radius: 7px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

nav a.active,
nav a:hover {
  background: linear-gradient(135deg, #d7272f, #9c1825);
}

nav a.active {
  transform: translateX(2px);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #dcecff;
  font-size: 14px;
  line-height: 1;
}

.workspace {
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 30px;
}

.workspace-section-hidden {
  display: none !important;
}

.topbar,
.section-head,
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  margin-bottom: 18px;
}

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

h1 {
  margin-bottom: 6px;
  font-size: 28px;
}

h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.topbar p,
.cta-panel p,
.report-panel p,
.purple-panel p,
.panel-copy,
.home-summary p {
  color: var(--muted);
  line-height: 1.55;
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar button,
.cta-panel button,
#calculateRisk {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, #ef322f, #a91625);
  font-weight: 800;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 0 0 auto;
}

.toolbar button:first-child {
  background: rgba(255, 255, 255, 0.06);
}

.user-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 9px 12px;
  color: #dcecff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
}

.home-command,
.hero-grid {
  display: grid;
  gap: 16px;
}

.home-command {
  grid-template-columns: minmax(420px, 1.35fr) repeat(4, minmax(145px, 0.65fr));
  margin-bottom: 16px;
}

.command-main {
  grid-row: span 2;
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(239, 50, 47, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(16, 45, 72, 0.95), rgba(8, 21, 34, 0.95));
}

.command-main h2 {
  max-width: 720px;
  font-size: 32px;
  line-height: 1.08;
}

.command-main p {
  max-width: 760px;
  font-size: 16px;
}

.kicker {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.command-actions button,
.command-actions a {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 11px 15px;
  color: #fff;
  background: linear-gradient(135deg, #ef322f, #a91625);
  text-decoration: none;
  font-weight: 800;
}

.command-actions a {
  background: rgba(255, 255, 255, 0.06);
}

.market-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.market-card strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

.market-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.market-card.danger {
  border-color: rgba(239, 50, 47, 0.35);
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 50, 47, 0.16), transparent 48%),
    var(--panel);
}

.home-command .today-panel {
  grid-column: span 2;
}

.industry-pulse {
  grid-column: span 2;
}

.incident-panel {
  grid-column: span 2;
}

.command-ai {
  grid-column: span 2;
}

.pulse-row {
  display: grid;
  grid-template-columns: 120px minmax(80px, 1fr) 44px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
}

.pulse-row b {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.pulse-row strong {
  color: var(--orange);
}

.incident-list {
  display: grid;
  gap: 10px;
}

.incident-list p {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.incident-list a {
  color: #dcecff;
  text-decoration: none;
}

.incident-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.panel,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

select,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--text);
  background: #071827;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-panel label {
  gap: 5px;
  font-size: 12px;
}

.form-panel input,
.form-panel select {
  padding: 8px 10px;
}

.field-hint {
  color: #7f91a8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.map-wrap {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05101b;
}

.map-image-frame,
.map-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
}

.map-image-frame {
  width: 80.2%;
  overflow: hidden;
}

.dynamic-risk-map {
  position: relative;
  min-height: 500px;
  background: radial-gradient(circle at 45% 45%, #16304a 0, #091624 58%, #06101a 100%);
  overflow: hidden;
}

.dynamic-risk-map > p {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.dynamic-risk-map svg { width: 100%; height: 500px; display: block; }
.dynamic-risk-map path { stroke: #263d52; stroke-width: .45; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s, opacity .15s; }
.dynamic-risk-map path:hover, .dynamic-risk-map path.is-selected { stroke: #fff; stroke-width: 1.5; opacity: 1; }
.dynamic-risk-map path.no-data { cursor: default; opacity: .48; }
.dynamic-map-legend { display:flex; flex-wrap:wrap; gap:14px; padding:10px 12px; background:#081521; color:var(--muted); font-size:12px; }
.dynamic-map-legend i { display:inline-block; width:10px; height:10px; margin-right:5px; border-radius:2px; }
.dynamic-map-legend .risk-low { background:#79bd75; }
.dynamic-map-legend .risk-mid { background:#efbd4f; }
.dynamic-map-legend .risk-high { background:#e84f43; }
.dynamic-map-legend .risk-missing { background:#344455; }
.selected-region-card b small { font-size:18px; color:var(--muted); }

.map-wrap img {
  object-fit: cover;
}

.map-methodology-card {
  position: absolute;
  z-index: 2;
  top: 2.4%;
  right: 1.25%;
  bottom: 2.4%;
  width: 19.2%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.55vw, 10px);
  overflow: hidden;
  padding: clamp(10px, 0.9vw, 16px);
  border: 1px solid rgba(154, 184, 218, 0.32);
  border-radius: 8px;
  color: #edf5ff;
  background:
    linear-gradient(180deg, rgba(31, 55, 82, 0.96), rgba(7, 21, 36, 0.985)),
    #071524;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.map-methodology-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.map-methodology-head .kicker {
  margin: 0;
  color: #9fb6cf;
  font-size: clamp(7px, 0.62vw, 11px);
  line-height: 1.2;
}

.map-methodology-head > span {
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid rgba(255, 194, 68, 0.38);
  border-radius: 999px;
  color: #ffd071;
  background: rgba(255, 175, 34, 0.1);
  font-size: clamp(6px, 0.54vw, 9px);
  font-weight: 800;
  white-space: nowrap;
}

.map-methodology-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(10px, 0.9vw, 16px);
  line-height: 1.15;
}

.map-methodology-factors {
  display: grid;
  gap: clamp(3px, 0.38vw, 7px);
}

.map-methodology-factors div {
  display: grid;
  grid-template-columns: minmax(28px, 0.36fr) 1fr;
  align-items: center;
  gap: 7px;
  padding: clamp(4px, 0.42vw, 7px);
  border: 1px solid rgba(139, 174, 211, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
}

.map-methodology-factors .factor-confirmed {
  border-color: rgba(121, 189, 117, 0.46);
  background: rgba(121, 189, 117, 0.12);
}

.map-methodology-factors .factor-confirmed b {
  color: #a7e7a3;
}

.map-methodology-factors .factor-pending {
  border-color: rgba(139, 174, 211, 0.13);
  background: rgba(255, 255, 255, 0.025);
}

.map-methodology-factors .factor-pending b,
.map-methodology-factors .factor-pending span {
  color: #9aa9b9;
}

.map-methodology-factors b {
  color: #ffb12b;
  font-size: clamp(10px, 0.86vw, 15px);
}

.map-methodology-factors span,
.map-methodology-meta p {
  font-size: clamp(7px, 0.61vw, 11px);
  line-height: 1.25;
}

.map-methodology-factors span {
  color: #e5eef8;
  font-weight: 700;
}

.map-methodology-meta {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid rgba(139, 174, 211, 0.2);
}

.map-methodology-meta p {
  margin: 0;
  color: #aebed0;
}

.map-methodology-meta strong {
  color: #eaf2fb;
}

.map-methodology-card > a {
  display: block;
  padding: clamp(5px, 0.5vw, 8px);
  border: 1px solid rgba(238, 52, 48, 0.46);
  border-radius: 5px;
  color: #fff;
  background: rgba(215, 42, 43, 0.22);
  font-size: clamp(7px, 0.62vw, 11px);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.map-methodology-card > a:hover {
  background: rgba(215, 42, 43, 0.38);
}

.selected-region-card {
  display: grid;
  gap: 8px;
  border-color: rgba(99, 168, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(99, 168, 255, 0.09), transparent 62%),
    var(--panel);
}

.selected-region-card strong,
.selected-region-card span,
.selected-region-card b {
  display: block;
}

.selected-region-card strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.selected-region-card span {
  color: var(--muted);
  font-weight: 800;
}

.selected-region-card b {
  color: var(--red);
  font-size: 30px;
  line-height: 1;
}

.selected-region-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.selected-region-card .region-coverage {
  padding-top: 9px;
  border-top: 1px solid rgba(99, 168, 255, 0.2);
  color: #9fc5eb;
  font-size: 12px;
  font-weight: 700;
}

.selected-region-card .region-digital {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(84, 185, 255, 0.3);
  border-radius: 10px;
  color: #c7e9ff;
  background: rgba(41, 130, 194, 0.1);
  font-size: 13px;
  line-height: 1.45;
}

.selected-region-card .region-economic {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(244, 190, 73, 0.3);
  border-radius: 10px;
  color: #ffe4a1;
  background: rgba(170, 113, 17, 0.1);
  font-size: 13px;
  line-height: 1.45;
}

.right-column {
  display: grid;
  gap: 16px;
}

.today-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.today-row strong {
  font-size: 30px;
}

.today-row span {
  color: var(--muted);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 26px;
}

.rank-list li {
  color: var(--muted);
}

.rank-list b {
  float: right;
  color: var(--orange);
}

.purple-panel {
  background: linear-gradient(145deg, rgba(94, 62, 161, 0.9), rgba(11, 48, 77, 0.92));
}

.cta-panel {
  margin: 16px 0;
  padding: 20px;
}

.cta-panel h2 {
  margin-bottom: 7px;
}

.calc-grid,
.lower-grid,
.risk-story-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

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

.report-grid {
  margin-bottom: 16px;
}

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

.form-head h2 {
  margin: 0 0 6px;
}

.form-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.protection-widget {
  --score: 0deg;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #101c2b 0 56%, transparent 57%),
    conic-gradient(var(--green) var(--score), rgba(255, 255, 255, 0.09) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.protection-widget[data-tone="medium"] {
  background:
    radial-gradient(circle at center, #101c2b 0 56%, transparent 57%),
    conic-gradient(var(--yellow) var(--score), rgba(255, 255, 255, 0.09) 0);
}

.protection-widget[data-tone="weak"] {
  background:
    radial-gradient(circle at center, #101c2b 0 56%, transparent 57%),
    conic-gradient(var(--red) var(--score), rgba(255, 255, 255, 0.09) 0);
}

.protection-widget strong {
  margin-top: 9px;
  color: #fff;
  font-size: 25px;
  line-height: 0.9;
}

.protection-widget span {
  margin-top: -13px;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.protection-widget small {
  margin-top: -8px;
  color: #dcecff;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.client-form-sections {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(260px, 0.85fr) minmax(360px, 1.15fr);
  gap: 12px;
  align-items: start;
}

.client-form-block {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
}

.identity-block {
  background:
    linear-gradient(180deg, rgba(99, 168, 255, 0.07), transparent 55%),
    rgba(255, 255, 255, 0.035);
}

.it-block {
  grid-column: auto;
}

.form-block-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.form-block-head > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #07111d;
  background: #dcecff;
  font-size: 12px;
  font-weight: 900;
}

.form-block-head h3 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 16px;
}

.form-block-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.form-mode-note {
  align-self: start;
  padding: 6px 9px;
  border: 1px solid rgba(97, 209, 132, 0.28);
  border-radius: 6px;
  color: #dfffe8;
  background: rgba(97, 209, 132, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.it-block .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commercial-inputs {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.commercial-inputs summary {
  cursor: pointer;
  color: #dcecff;
  font-size: 13px;
  font-weight: 800;
}

.commercial-inputs .field-grid {
  margin-top: 10px;
}

.assessment-details {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.assessment-details summary {
  cursor: pointer;
  color: #dcecff;
  font-size: 13px;
  font-weight: 800;
}

.assessment-details > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.assessment-details .field-grid,
.assessment-details .identity-grid {
  margin-top: 10px;
}

.identity-details {
  grid-column: 1 / -1;
}

.identity-details .detail-fields label:last-child {
  grid-column: 1 / -1;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.identity-grid label:nth-child(2) {
  grid-column: auto;
}

#companyStatus {
  color: #dcecff;
  background: rgba(255, 255, 255, 0.035);
}

#companyStatus[data-tone="good"] {
  border-color: rgba(97, 209, 132, 0.34);
  color: #dfffe8;
  background: rgba(97, 209, 132, 0.08);
}

#companyStatus[data-tone="warn"] {
  border-color: rgba(255, 197, 51, 0.4);
  color: #fff4c7;
  background: rgba(255, 197, 51, 0.09);
}

#companyStatus[data-tone="bad"] {
  border-color: rgba(239, 50, 47, 0.48);
  color: #ffd6d6;
  background: rgba(239, 50, 47, 0.12);
}

.company-lookup {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.company-lookup > .assessment-details {
  grid-column: 1 / -1;
}

.company-lookup > .client-intake-panel {
  grid-column: 1 / -1;
}

.client-intake-panel {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(97, 209, 132, 0.32);
  border-radius: 7px;
  background: rgba(97, 209, 132, 0.07);
}

.client-intake-panel > div { display: flex; justify-content: space-between; gap: 10px; color: #dfffe8; font-size: 13px; }
.client-intake-panel p { margin: 0; color: #c7d5e5; font-size: 12px; line-height: 1.4; }

.company-lookup button {
  max-width: 100%;
  white-space: normal;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(135deg, #d7272f, #9c1825);
  font-weight: 900;
}

.company-lookup span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.company-links {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 7px;
}

.company-lookup > #assessmentSaveStatus,
.company-lookup > #publicDataNotice,
.company-lookup > .company-links,
.company-lookup > .data-provenance {
  grid-column: 1 / -1;
  min-width: 0;
}

.company-lookup > #newCase {
  justify-self: start;
}

.company-links a {
  border: 1px solid rgba(99, 168, 255, 0.28);
  border-radius: 999px;
  padding: 6px 9px;
  color: #dcecff;
  background: rgba(99, 168, 255, 0.1);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
}

.data-provenance .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.data-provenance table {
  min-width: 760px;
  table-layout: auto;
}

.data-provenance th,
.data-provenance td {
  min-width: 110px;
  overflow-wrap: normal;
  word-break: normal;
}

.data-provenance td:nth-child(4),
.data-provenance td:nth-child(5) {
  min-width: 190px;
  white-space: normal;
}

.form-panel {
  display: grid;
  gap: 12px;
}

.hero-grid > .map-panel,
.hero-grid > .right-column,
.calc-grid > .panel,
.lower-grid > .panel,
.risk-story-grid > .panel {
  position: sticky;
  top: 22px;
  align-self: start;
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.report-metrics div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.report-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.report-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.story-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.story-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.story-list dt {
  color: #fff;
  line-height: 1.25;
}

.story-list dd {
  margin: 0;
  color: #fff;
  font-weight: 900;
}

.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.reason-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(99, 168, 255, 0.22);
  font-weight: 700;
}

.reason-list span.high {
  background: rgba(239, 50, 47, 0.25);
}

.reason-list span.money {
  background: rgba(255, 138, 24, 0.23);
}

#riskBadge {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.attack-chain,
.script-list {
  display: grid;
  gap: 10px;
}

.attack-chain {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.attack-chain span,
.script-list div,
.partner-card,
.question-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.confidence-jump {
  margin: 0 0 14px;
  border: 1px solid rgba(255, 197, 51, 0.38);
  border-radius: 7px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 138, 24, 0.95), rgba(239, 50, 47, 0.88));
  font-weight: 900;
}

.confidence-panel {
  margin-bottom: 16px;
  border-color: rgba(255, 197, 51, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 197, 51, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(18, 44, 68, 0.96), rgba(8, 21, 34, 0.96));
}

.confidence-panel .section-head > span {
  border: 1px solid rgba(66, 201, 111, 0.38);
  border-radius: 999px;
  padding: 8px 12px;
  color: #dfffea;
  background: rgba(66, 201, 111, 0.12);
  font-weight: 900;
}

.confidence-lead {
  max-width: 980px;
  color: #dcecff;
  font-size: 16px;
  line-height: 1.55;
}

.confidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.confidence-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.confidence-grid h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 16px;
}

.confidence-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.42;
}

.attack-chain span {
  padding: 11px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 560px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.partner-filters,
.partner-relation-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.export-link {
  display: inline-block;
  margin-top: 4px;
  color: #ffe9a8;
  font-size: 13px;
  font-weight: 800;
}

.partner-relation-form {
  margin-top: 10px;
}

.partner-relation-form input,
.partner-relation-form select {
  min-width: 130px;
  flex: 1 1 145px;
}

.partner-relation-form button {
  flex: 0 0 auto;
}

.partner-card {
  padding: 14px;
}

.partner-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.partner-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.partner-crm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.partner-crm span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
  color: #dcecff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  line-height: 1.3;
}

.partner-score {
  color: var(--green);
  font-weight: 900;
}

.top-partners-panel {
  align-self: start;
}

.top-partners-list {
  display: grid;
  gap: 10px;
}

.top-partner-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.top-partner-row.hot {
  border-color: rgba(239, 50, 47, 0.34);
  background:
    linear-gradient(90deg, rgba(239, 50, 47, 0.13), transparent 54%),
    rgba(255, 255, 255, 0.04);
}

.top-partner-row.warm {
  border-color: rgba(255, 138, 24, 0.28);
}

.top-partner-rank {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #07111d;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.top-partner-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.top-partner-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.top-partner-head strong {
  color: var(--green);
  white-space: nowrap;
}

.top-partner-bar {
  overflow: hidden;
  height: 5px;
  margin: 8px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.top-partner-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow));
}

.top-partner-body p,
.top-partner-body small,
.top-partner-body b {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.top-partner-body small {
  margin-top: 5px;
  color: #dcecff;
}

.top-partner-body b {
  margin-top: 5px;
  color: var(--orange);
  font-weight: 800;
}

.script-list div {
  padding: 14px;
}

.script-list h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.script-list p,
.sources-panel p {
  color: var(--muted);
  line-height: 1.45;
}

.questions-panel {
  margin-bottom: 16px;
  max-width: 1220px;
}

.readiness-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.readiness-route,
.readiness-overview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.readiness-route h3,
.readiness-overview h3,
.compact-subhead {
  margin: 0;
  font-size: 16px;
}

.readiness-route-grid,
.readiness-commercial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.questions-panel label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.questions-panel textarea {
  min-height: 62px;
  resize: vertical;
}

.readiness-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.readiness-actions button,
.questions-panel > .readiness-details button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 8px 11px;
  color: #fff;
  background: linear-gradient(135deg, #d7272f, #9c1825);
  font-weight: 800;
}

.readiness-actions p,
.readiness-overview > p,
.questions-panel > .readiness-details > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.workflow-gate {
  margin: 0;
  padding: 8px 10px;
  font-size: 12px;
}

.readiness-details {
  margin-top: 12px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.readiness-details summary {
  cursor: pointer;
  color: #dcecff;
  font-size: 13px;
  font-weight: 800;
}

.readiness-details[open] {
  display: grid;
  gap: 10px;
}

.client-invite-details {
  max-width: 760px;
}

.client-invite-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.client-invite-actions label {
  width: min(220px, 100%);
}

#clientInviteLink {
  font-size: 12px;
}

.client-invite-register {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.client-invite-register .section-head { margin: 0 0 8px; }
.client-invite-register .section-head strong { font-size: 13px; }
.client-invite-register .section-head button { padding: 6px 9px; font-size: 12px; }
.client-invite-register th,
.client-invite-register td { padding: 7px 8px; font-size: 12px; }
.client-invite-register button { padding: 6px 8px; font-size: 12px; }

.readiness-table-wrap table {
  min-width: 560px;
}

.readiness-overview th,
.readiness-overview td,
.readiness-details th,
.readiness-details td {
  padding: 8px 9px;
  font-size: 12px;
}

.funnel-filters {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr 0.8fr;
  gap: 8px;
  align-items: end;
}

.funnel-filters label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.funnel-priority-list {
  gap: 10px;
  margin: 8px 0 12px;
}

.funnel-priority {
  padding: 10px;
}

.funnel-priority h4 {
  font-size: 14px;
}

.funnel-priority p,
.funnel-priority ul {
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .readiness-layout,
  .funnel-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .readiness-layout,
  .readiness-route-grid,
  .readiness-commercial-grid,
  .funnel-filters {
    grid-template-columns: 1fr;
  }
}

.recovery-panel {
  margin-bottom: 16px;
}

.recovery-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.recovery-summary div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.recovery-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.recovery-summary strong {
  display: block;
  margin-top: 7px;
  font-size: 20px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #dcecff;
  font-size: 13px;
}

td {
  color: var(--muted);
  line-height: 1.38;
}

td strong {
  color: #fff;
}

.cost-cell {
  color: #fff;
  font-weight: 900;
}

.questions-panel .section-head span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.question-list {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
}

.question-group {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.question-group:first-child {
  grid-row: span 2;
}

.question-group-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
}

.question-group-head span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(99, 168, 255, 0.35);
  border-radius: 7px;
  color: #dcecff;
  background: rgba(99, 168, 255, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.question-group h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.question-group p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.question-buttons {
  display: grid;
  gap: 8px;
}

.question-list button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  max-width: 100%;
  min-height: 58px;
  padding: 10px 11px;
  color: #fff;
  text-align: left;
  line-height: 1.35;
}

.question-list button b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  border-radius: 6px;
  color: #07111d;
  background: #dcecff;
  font-size: 12px;
}

.question-list button span {
  min-width: 0;
}

.question-list button small {
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.question-list button.hot-question {
  border-color: rgba(239, 50, 47, 0.48);
  background: rgba(239, 50, 47, 0.18);
}

.question-list button.hot-question b {
  color: #fff;
  background: var(--red);
}

.question-list button.money-question {
  border-color: rgba(255, 138, 24, 0.5);
  background: rgba(255, 138, 24, 0.16);
}

.question-list button.money-question b {
  background: var(--yellow);
}

.sources-panel {
  margin-top: 16px;
}

.sources-panel a {
  color: #dcecff;
  text-decoration: none;
}

.sources-panel a:hover {
  color: #fff;
  text-decoration: underline;
}

.source-group {
  margin-top: 16px;
}

.source-group h3,
.sources-panel h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
}

.source-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.source-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.source-card strong {
  color: #fff;
  line-height: 1.35;
}

.source-card span,
.source-news span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.source-news {
  display: grid;
  gap: 8px;
}

.source-news p {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(7, 18, 30, 0.94), rgba(18, 34, 49, 0.96)),
    #081522;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 4px 0 12px;
  color: #fff;
  font-size: 28px;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-form label,
.user-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.auth-form input,
.user-form input,
.user-form select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.auth-form button,
.user-form button,
.user-actions button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 11px 14px;
  color: #fff;
  background: linear-gradient(135deg, #d7272f, #9c1825);
  font-weight: 900;
}

#loginMessage,
.admin-message {
  min-height: 20px;
  color: #ffc533;
  font-size: 13px;
}

.users-panel {
  margin-top: 16px;
}

.user-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.users-panel h3 {
  margin: 22px 0 10px;
  color: #fff;
}

.users-panel td span {
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.active {
  color: #dfffea;
  background: rgba(66, 201, 111, 0.18);
}

.status-pill.pending {
  color: #ffe9a8;
  background: rgba(255, 197, 51, 0.16);
}

.status-pill.disabled {
  color: #ffd9d9;
  background: rgba(239, 50, 47, 0.16);
}

.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-actions button {
  padding: 7px 10px;
  font-size: 12px;
}

.workflow-gate {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 197, 51, 0.35);
  background: rgba(255, 197, 51, 0.08);
  color: #ffe9a8;
  font-size: 13px;
  line-height: 1.45;
}

.methodology-panel,
.insurance-panel {
  margin-bottom: 16px;
}

.methodology-panel .section-head > span,
.insurance-panel .section-head > span {
  border: 1px solid rgba(255, 197, 51, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffe9a8;
  background: rgba(255, 197, 51, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.method-grid article,
.method-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.method-grid article {
  padding: 14px;
}

.method-grid h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
}

.method-grid p,
.method-grid li,
.method-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.method-grid ul {
  margin: 0;
  padding-left: 18px;
}

.method-note {
  margin: 12px 0 14px;
  padding: 10px 12px;
}

@media (max-width: 1180px) {
  .app,
  .home-command,
  .hero-grid,
  .calc-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    overflow: visible;
  }

  .hero-grid > .map-panel,
  .hero-grid > .right-column,
  .calc-grid > .panel,
  .lower-grid > .panel,
  .risk-story-grid > .panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .command-main,
  .home-command .today-panel,
  .industry-pulse,
  .incident-panel,
  .command-ai {
    grid-column: auto;
    grid-row: auto;
  }

  .client-form-sections {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  }

  .it-block {
    grid-column: 1 / -1;
  }

  .identity-block {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .map-wrap {
    min-height: 0;
    overflow: visible;
  }

  .map-image-frame {
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 7px;
  }

  .map-wrap img {
    width: 125%;
    max-width: none;
    height: auto;
    min-height: 0;
    object-fit: contain;
    object-position: left top;
  }

  .map-methodology-card {
    position: relative;
    inset: auto;
    width: auto;
    margin-top: 10px;
    padding: 14px;
    overflow: visible;
  }

  .map-methodology-card h3 {
    font-size: 16px;
  }

  .map-methodology-head .kicker,
  .map-methodology-factors span,
  .map-methodology-meta p,
  .map-methodology-card > a {
    font-size: 11px;
  }

  .map-methodology-head > span {
    font-size: 9px;
  }

  .map-methodology-factors b {
    font-size: 15px;
  }

  .workspace,
  .sidebar {
    padding: 16px;
  }

  .topbar,
  .section-head,
  .cta-panel {
    display: grid;
  }

  .report-metrics,
  .partner-list,
  .attack-chain,
  .field-grid,
  .recovery-summary,
  .risk-story-grid,
  .story-list div,
  .source-group > div,
  .confidence-grid {
    grid-template-columns: 1fr;
  }

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

  .partner-crm {
    grid-template-columns: 1fr;
  }

  .user-form {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: space-between;
  }

  .protection-widget {
    width: 86px;
    height: 86px;
  }

  .protection-widget strong {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  .identity-grid,
  .company-lookup,
  .question-list,
  .client-form-sections {
    grid-template-columns: 1fr;
  }

  .it-block {
    grid-column: auto;
  }

  .it-block .field-grid {
    grid-template-columns: 1fr;
  }

  .identity-grid label:nth-child(2) {
    grid-column: auto;
  }

  .question-group:first-child {
    grid-row: auto;
  }

  .question-list button {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .question-list button small {
    grid-column: 2;
    justify-self: start;
  }
}

@media print {
  html, body, .app, .workspace, #report { height: auto !important; max-height: none !important; overflow: visible !important; }
  #report h3, #report summary { break-after: avoid; }
  #report .meeting-table-wrap { overflow: visible !important; }
  #report .meeting-table { font-size: 10pt; }
  @page { size: A4; margin: 14mm; }
  .workspace > :not(#report) { display: none !important; }
  #report { display: block !important; }
  #report button, #report .attack-chain { display: none !important; }
  #report .report-panel { break-inside: auto; }
  #report table { font-size: 10pt; }
  #report tr { break-inside: avoid; }
  #report thead { display: table-header-group; }
  #report strong, #report td, #report th, #report li, #report summary { color: #111 !important; }
  body {
    background: #fff;
    color: #111;
  }

  .sidebar,
  .topbar,
  .cta-panel,
  .form-panel,
  .right-column,
  .home-command,
  .lower-grid,
  .questions-panel,
  .toolbar {
    display: none;
  }

  .app,
  .hero-grid,
  .calc-grid {
    display: block;
  }

  .panel {
    color: #111;
    background: #fff;
    box-shadow: none;
    break-inside: avoid;
  }

  .workspace {
    padding: 0;
    overflow: visible;
  }

  .report-panel::before {
    content: "Executive report: Cyber Executive AI / Альфа Кибер Риски";
    display: block;
    margin-bottom: 14px;
    color: #111;
    font-size: 20px;
    font-weight: 900;
  }

  .report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid,
  .confidence-grid {
    grid-template-columns: 1fr;
  }

  .report-metrics div,
  .method-grid article,
  .method-note,
  .confidence-grid article,
  .source-card {
    border-color: #ddd;
    background: #fff;
  }

  .panel h2,
  .panel h3,
  .source-card strong,
  .source-group h3,
  .sources-panel h3 {
    color: #111;
  }

  .panel p,
  .method-grid p,
  .method-grid li,
  .method-note,
  .source-card span,
  .source-news span {
    color: #333;
  }
}

.meeting-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.meeting-table th, .meeting-table td { text-align: left; border-bottom: 1px solid #78818b; padding: 8px; overflow-wrap: anywhere; vertical-align: top; }
.meeting-table-wrap { max-width: 100%; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

.funnel-priority-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.funnel-priority { border: 1px solid var(--line, #334155); padding: 10px; min-width: 0; }
.funnel-priority h4 { margin: 0 0 6px; }
.funnel-priority p, .funnel-priority ul { margin: 6px 0; overflow-wrap: anywhere; }
@media (max-width: 900px) { .funnel-priority-list { grid-template-columns: 1fr; } }
