: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;
}

.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;
}

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

.map-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.region-popover {
  position: absolute;
  right: 18px;
  top: 86px;
  width: 260px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(6, 18, 30, 0.88);
  backdrop-filter: blur(10px);
}

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

.region-popover span {
  margin: 8px 0;
  color: var(--muted);
}

.region-popover b {
  color: var(--red);
  font-size: 28px;
}

.region-popover p {
  color: var(--muted);
  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);
}

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

.identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 12px;
}

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

.company-lookup button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 10px 13px;
  color: #fff;
  background: linear-gradient(135deg, #d7272f, #9c1825);
  font-weight: 900;
}

.company-lookup span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

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

.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-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;
}

.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: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.question-group h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
}

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

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

.question-list button {
  max-width: 100%;
  padding: 10px 13px;
  color: #fff;
  text-align: left;
  line-height: 1.35;
}

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

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

.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;
}

.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;
  }
}

@media (max-width: 760px) {
  .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;
  }

  .region-popover {
    position: static;
    width: auto;
    margin: 12px;
  }

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

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

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

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

@media print {
  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;
  }
}
