:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #1a1d21;
  --muted: #5c6570;
  --border: #d9dee3;
  --primary: #1e3a5f;
  --primary-hover: #152a45;
  --danger: #8b2942;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow-card {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  flex-shrink: 0;
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.brand {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.report-pdf-actions {
  margin: 0 0 0.75rem;
}

.report-pdf-actions .btn {
  display: inline-block;
}

.tagline {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.main {
  padding: 2rem 0 3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.8rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card.success {
  border-left: 4px solid var(--primary);
}

.card.error {
  border-left: 4px solid var(--danger);
}

h1 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.lead {
  font-size: 1rem;
  color: var(--muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack label span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

label.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-hover);
}

.btn.secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn.tertiary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
}

.report-action-banner {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #eef2f7;
  border-radius: var(--radius);
}

code {
  font-size: 0.9rem;
}

.report-action-banner .dev-url-code {
  display: inline-block;
  max-width: 100%;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* --- Private report shell (/r/{token}) --- */
.report-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.report-disclaimer {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  background: #f0f2f5;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.report-shell h1 {
  font-size: 1.35rem;
  margin-top: 0.5rem;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0;
}

.meta-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 0.35rem 1rem 0.35rem 0;
  width: 12rem;
  vertical-align: top;
}

.meta-table td {
  padding: 0.35rem 0;
  word-break: break-word;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: none;
}

.badge-neutral {
  background: #e8ecf1;
  color: var(--text);
}

.badge-progress {
  background: #e3ecf8;
  color: var(--primary);
}

.badge-ok {
  background: #e6f4ea;
  color: #1e6f3e;
}

.sev-critical {
  background: #fde8e8;
  color: #8b1538;
}

.sev-high {
  background: #fff0e5;
  color: #a34c00;
}

.sev-medium {
  background: #fff8e6;
  color: #8a6d00;
}

.sev-low {
  background: #eef6ff;
  color: var(--primary);
}

.sev-info {
  background: #f0f2f5;
  color: var(--muted);
}

.prelim-risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.finding-title {
  font-size: 1rem;
}

.evidence-pre {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  overflow-x: auto;
  max-height: 14rem;
  overflow-y: auto;
}

.evidence-pre code {
  font-size: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stack-gap {
  margin-top: 1.5rem;
}

.empty-state {
  padding: 1rem 0;
  border-top: 1px dashed var(--border);
  margin-top: 1rem;
}

.muted-area {
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.h2-small {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.report-summary-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.dev-technical pre {
  margin-top: 0.35rem;
}

/* --- Submit status / PR10 --- */
.progress-section {
  margin: 1.5rem 0;
}

.progress-bar-outer {
  height: 10px;
  border-radius: 6px;
  background: #e8ecf1;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #3d6aa5);
  border-radius: 6px;
  transition: width 0.35s ease;
}

.progress-label {
  margin: 0.65rem 0 0;
  font-weight: 500;
}

.stepper {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stepper .step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border: 1px dashed transparent;
  color: var(--muted);
  font-size: 0.95rem;
}

.stepper .step.done {
  color: var(--text);
  border-color: var(--border);
  background: #fafbfc;
}

.stepper .step.current {
  border-color: var(--primary);
  background: #f0f5fb;
  color: var(--primary);
}

.stepper.stepper--warn .step.done {
  border-color: #e8c9d2;
  background: #fdf5f7;
}

.step-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
}

.stepper .step.done .step-idx {
  background: var(--primary);
  color: #fff;
}

.btn.is-disabled,
a.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Client report / PR11 --- */
.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;
}

.report-h1 {
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
  font-weight: 650;
}

.report-status-line {
  margin: 0 0 1rem;
}

.report-client-lead {
  margin-bottom: 1.25rem;
}

.h2-section {
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  font-weight: 600;
}

.report-section-accent {
  border-left: 4px solid var(--primary);
  background: linear-gradient(180deg, #fafcfe 0%, var(--surface) 100%);
}

.executive-summary .executive-para {
  margin: 0 0 0.75rem;
  line-height: 1.55;
  font-size: 0.98rem;
}

.executive-summary .executive-para:last-child {
  margin-bottom: 0;
}

.severity-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.5rem;
}

.severity-strip__card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.severity-strip__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.severity-strip__num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.sev-strip-critical { border-top: 3px solid #8b1538; }
.sev-strip-high { border-top: 3px solid #c45c00; }
.sev-strip-medium { border-top: 3px solid #b8860b; }
.sev-strip-low { border-top: 3px solid var(--primary); }
.sev-strip-info { border-top: 3px solid #9aa3ad; }

.prelim-risk-intro {
  margin-bottom: 1rem;
}

.h3-prelim-risk-group {
  font-size: 1rem;
  margin: 1.35rem 0 0.65rem;
  font-weight: 600;
  color: var(--primary);
}

.prelim-risk-severity-block:first-child .h3-prelim-risk-group {
  margin-top: 0.35rem;
}

.risk-sign-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  background: #fafbfc;
}

.risk-sign-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.risk-sign-card__title {
  font-weight: 600;
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
}

.badge-category {
  background: #eef1f5;
  color: var(--muted);
  font-weight: 500;
}

.badge-review {
  background: #fff4e5;
  color: #8a5a00;
}

.risk-sign-dl {
  margin: 0;
  font-size: 0.92rem;
}

.risk-sign-dl dt {
  font-weight: 600;
  margin-top: 0.55rem;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.risk-sign-dl dt:first-child {
  margin-top: 0;
}

.risk-sign-dl dd {
  margin: 0 0 0.15rem;
  line-height: 1.45;
}

.risk-sign-loc-list {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.report-next-steps .next-steps-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.report-next-steps .next-steps-list li {
  margin-bottom: 0.35rem;
}

.report-technical {
  margin-top: 1.5rem;
}

.report-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  background: var(--surface);
}

.report-details__summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-weight: 600;
  list-style: none;
}

.report-details__summary::-webkit-details-marker {
  display: none;
}

.report-details__summary::before {
  content: "▸ ";
  color: var(--muted);
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.15s ease;
}

.report-details[open] .report-details__summary::before {
  transform: rotate(90deg);
}

.report-details__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.url-cell {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 22rem;
}

.hosts-list {
  overflow-wrap: anywhere;
}

/* PR18 — индекс предварительного риска */
.risk-index-card {
  margin: 1.2rem 0;
}

.risk-index-score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
}

.risk-score-big {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.risk-score-denom {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted);
}

.risk-score-bar-outer {
  height: 10px;
  background: #e8ecf0;
  border-radius: 6px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}

.risk-score-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #2d6a4f, #52b788);
  border-radius: 6px;
  min-width: 0;
}

.risk-level-badge.risk-level-low {
  background: #d8f3dc;
  color: #1b4332;
}
.risk-level-badge.risk-level-moderate {
  background: #fff3cd;
  color: #856404;
}
.risk-level-badge.risk-level-elevated {
  background: #fde8d4;
  color: #a34a00;
}
.risk-level-badge.risk-level-high {
  background: #f8d7da;
  color: #721c24;
}

.h3-risk-sub {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

.risk-factors-list {
  margin: 0.25rem 0 0 1.1rem;
  padding: 0;
}

.risk-factors-list--positive li {
  margin-bottom: 0.35rem;
}

.formula-version {
  margin-top: 1rem;
}

.report-hero {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #fff8f4 100%);
}

.report-hero__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.report-hero__logo {
  height: 42px;
  width: auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0.65rem 0 0.35rem;
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
  background: #fff;
}

.metric-card__label {
  font-size: 0.86rem;
  color: var(--muted);
}

.metric-card__value {
  margin-top: 0.2rem;
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--primary);
}

.metric-card--attention {
  border-color: #f0c7a7;
}

.metric-card--manual {
  border-color: #bfd2ea;
}

.observation-list {
  margin: 0.4rem 0 0 1rem;
}

.observation-list__item {
  margin-bottom: 0.35rem;
}

.observation-list__item--attention::marker {
  color: #c45c26;
}

.observation-list__item--ok::marker {
  color: #2d6a4f;
}

.status-badge--ok {
  background: #e6f4ea;
  color: #1f5132;
}
.status-badge--attention {
  background: #fff3e0;
  color: #a35a00;
}
.status-badge--manual {
  background: #e8eef7;
  color: #1e3a5f;
}
.status-badge--not_checked {
  background: #eef2f6;
  color: #51606f;
}
.status-badge--not_applicable {
  background: #f2f5f8;
  color: #6a7785;
}

.check-matrix-group {
  margin-top: 1rem;
}

.report-section,
.report-v2-section,
.report-prelim-risk,
.report-check-matrix,
.report-technical-details {
  margin-top: 1.15rem;
  margin-bottom: 1.15rem;
}

.priority-actions .priority-high::marker {
  color: #c45c26;
}

/* PR17 — матрица проверок */
.check-matrix-table th:first-child,
.check-matrix-table td:first-child {
  min-width: 12rem;
}

.check-status-badge.check-status-ok {
  background: #e3f2e6;
  color: #1b4332;
}
.check-status-badge.check-status-attention {
  background: #fff4e0;
  color: #b45309;
}
.check-status-badge.check-status-manual_review {
  background: #e8eef7;
  color: #1e3a5f;
}
.check-status-badge.check-status-not_checked {
  background: #eef2f6;
  color: #475569;
}
.check-status-badge.check-status-not_applicable {
  background: #f1f5f9;
  color: #64748b;
}

.admin-shell {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.admin-card {
  margin-bottom: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.6rem;
  vertical-align: top;
  text-align: left;
}

.admin-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #eef2f6;
}

.admin-muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-login-page {
  min-height: 100vh;
}

.admin-login-page .container {
  max-width: 480px;
  padding-top: 8vh;
  padding-bottom: 2rem;
}

.admin-login-card {
  margin: 0 auto;
  width: 100%;
}

.admin-login-brand h1 {
  margin-bottom: 0.25rem;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1rem 0 0.8rem;
}

.admin-login-form label {
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-login-submit {
  margin-top: 0.35rem;
  width: 100%;
}

.admin-login-error {
  border: 1px solid #ebc2cb;
  background: #fff3f6;
  color: #8b2942;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
}

.admin-login-muted {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.admin-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
}

.admin-nav-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.admin-nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.admin-topbar-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.admin-nav {
  display: flex;
  gap: 0.5rem;
}

.admin-nav-link {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.admin-nav-link:hover {
  background: #eef2f6;
}

.admin-user {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 52vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-logout-form {
  margin: 0;
}

.admin-logout {
  white-space: nowrap;
}

.admin-filters {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfc;
}

.admin-filters-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
}

.admin-filter-grid label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.admin-filter-grid input,
.admin-filter-grid select {
  width: 100%;
}

.admin-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.admin-page-link {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-page-link.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.admin-page-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.admin-empty-state {
  padding: 1rem 0;
  color: var(--muted);
}

.admin-alert {
  margin-bottom: 1rem;
}

.admin-alert-success {
  border-left: 4px solid var(--primary);
}

.admin-actions-cell {
  white-space: normal;
  min-width: 11rem;
}

.btn-compact {
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
}

.admin-danger-zone {
  border-left: 4px solid var(--danger);
}

.admin-delete-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 420px;
}

.admin-delete-form input[type="text"] {
  width: 100%;
  max-width: 320px;
}

.admin-delete-submit {
  background: var(--danger);
  color: #fff;
  border: none;
}

.admin-delete-submit:hover {
  filter: brightness(1.05);
}

/* PR29 — user-facing 404 / error card */
.error-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0.5rem 0 1.5rem;
}

.error-page--embedded {
  padding: 0;
}

.error-card {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2.25rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
  text-align: center;
}

.error-brand {
  margin-bottom: 1.25rem;
}

.error-brand img {
  display: block;
  margin: 0 auto;
  max-width: 140px;
  height: auto;
}

.error-code {
  font-size: clamp(3.5rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: #3d5a80;
  letter-spacing: 0.04em;
  margin: 0.25rem 0 1rem;
  opacity: 0.9;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.35;
}

.error-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.error-hint {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.55;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.report-shell .error-page {
  padding: 0;
}

.report-shell .error-card {
  box-shadow: 0 2px 16px rgba(30, 58, 95, 0.06);
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .error-card {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .error-code {
    font-size: 3rem;
  }

  .severity-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* PR34/PR35 — hero accent, risk badge, ответственность */
.report-hero--pr34,
.report-hero--pr35 {
  position: relative;
  overflow: hidden;
  padding-left: 1.25rem;
}

.report-hero--pr35 > :not(.report-hero-accent) {
  position: relative;
  z-index: 1;
}

.report-hero-accent {
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e3a5f, #52b788);
  pointer-events: none;
  z-index: 0;
}
.risk-level-badge {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 700;
}
.responsibility-sub {
  margin-top: 0.25rem;
}
.responsibility-intro {
  margin: 0.75rem 0;
}
.responsibility-cards {
  display: grid;
  gap: 0.85rem;
  margin: 0.75rem 0 1rem;
}
.responsibility-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: #fafbfc;
}
.responsibility-reference {
  margin-top: 0.5rem;
}
.next-steps-main .compliance-scope-disclaimer {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background: #fafbfc;
}

.next-steps-main .next-steps-list--numbered {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0;
}

.next-step-card {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fafbfc;
}

.next-step-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.4rem;
}

.next-step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  background: var(--surface);
}

.next-step-title {
  flex: 1 1 12rem;
  font-size: 1rem;
}

.next-step-card-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}
.policy-llm-table {
  width: 100%;
  margin-top: 0.75rem;
}
.policy-llm-table th,
.policy-llm-table td {
  vertical-align: top;
}

/* Admin — виджет: режимы домена (PR30 hotfix) */
.is-hidden {
  display: none !important;
}
.admin-widget-mode-hint {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.admin-widget-fixed-domain-block {
  margin-top: 0.75rem;
}
