.normative-view {
  --normative-navy: #17324d;
  --normative-cyan: #0b7189;
  --normative-green: #237a48;
  --normative-amber: #9c650f;
  --normative-red: #a63a32;
}

@media print {
  body * {
    visibility: hidden;
  }

  #normativeDocumentDetail,
  #normativeDocumentDetail * {
    visibility: visible;
  }

  #normativeDocumentDetail {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    overflow: visible;
    padding: 0;
    background: #fff;
  }

  .normative-detail-actions {
    display: none;
  }

  .normative-detail-section,
  .normative-analysis-item,
  .normative-version-row,
  .normative-source-row {
    break-inside: avoid;
  }
}

.normative-section-head {
  align-items: center;
}

.normative-engine-badge,
.normative-status,
.normative-quality,
.normative-force {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #b9d1c3;
  border-radius: 6px;
  color: #175d38;
  background: #eff8f2;
  font-size: 12px;
  font-weight: 700;
}

.normative-engine-badge svg {
  width: 16px;
  height: 16px;
}

.normative-admin-summary {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.normative-metric {
  min-width: 0;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
}

.normative-metric:last-child {
  border-right: 0;
}

.normative-metric small,
.normative-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.normative-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--normative-navy);
  font-size: 24px;
  line-height: 1;
}

.normative-tabs {
  margin-top: 18px;
}

.normative-type-strip {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.normative-type-all {
  padding-bottom: 6px;
}

.normative-type-group {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.normative-type-group > span {
  padding-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.normative-type-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.normative-type-option {
  min-height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #4b5f70;
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.normative-type-option:hover,
.normative-type-option.is-active {
  border-color: #55758a;
  color: #fff;
  background: #203344;
}

.normative-type-option svg {
  width: 16px;
  height: 16px;
}

.normative-type-option strong {
  min-width: 20px;
  padding-left: 6px;
  border-left: 1px solid currentColor;
  font-size: 11px;
  text-align: right;
}

.normative-subject-strip {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #b9cbd5;
  border-radius: 6px;
  background: #f4f8fa;
}

.normative-subject-heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}

.normative-subject-heading > div {
  display: grid;
  gap: 2px;
}

.normative-subject-heading strong {
  color: var(--normative-navy);
  font-size: 13px;
}

.normative-subject-heading span,
.normative-subject-heading > div > span {
  color: var(--muted);
  font-size: 11px;
}

.normative-subject-options {
  display: grid;
  gap: 6px;
}

.normative-subject-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.normative-subject-group > span {
  padding-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.normative-subject-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.normative-subject-option {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #c7d5dc;
  border-radius: 5px;
  color: #415768;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.normative-subject-option:hover,
.normative-subject-option.is-active {
  border-color: #3d687e;
  color: #fff;
  background: #294c5d;
}

.normative-subject-option strong {
  padding-left: 6px;
  border-left: 1px solid currentColor;
  font-size: 11px;
}

.normative-tabs .tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.normative-tabs .tab svg {
  width: 16px;
  height: 16px;
}

.normative-panel {
  display: none;
  margin-top: 14px;
}

.normative-panel.is-active {
  display: block;
}

.normative-search-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 190px 220px auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.normative-search-field {
  min-height: 44px;
}

.compact-field span {
  font-size: 11px;
}

.normative-browser {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(430px, 1.4fr);
  min-height: 560px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.normative-directory {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.normative-document-row {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
  text-align: left;
}

.normative-document-row:hover,
.normative-document-row.is-active {
  background: #eef5f7;
}

.normative-document-row.is-active {
  box-shadow: inset 3px 0 0 var(--normative-cyan);
}

.normative-document-open {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.normative-document-open > svg {
  width: 17px;
  height: 17px;
  margin-top: 12px;
  color: var(--muted);
}

.normative-document-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding-left: 53px;
}

.normative-document-action,
.normative-detail-download {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #b8c8d1;
  border-radius: 5px;
  color: #294c5d;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.normative-document-action:hover,
.normative-detail-download:hover {
  border-color: #3d687e;
  color: #fff;
  background: #294c5d;
}

.normative-document-action.is-disabled,
.normative-detail-download.is-disabled {
  cursor: default;
  color: #68777b;
  border-color: #d7e0e2;
  background: #f3f6f6;
  box-shadow: none;
}

.normative-document-action.is-source,
.normative-detail-download.is-source {
  color: #17324d;
  border-color: #b9cccf;
  background: #fff;
}

.normative-original-access {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #cfe0dd;
  border-left: 4px solid #168575;
  background: #f3faf8;
}

.normative-original-access.is-source_only {
  border-left-color: #2f6fbb;
  background: #f3f7fc;
}

.normative-original-access.is-unavailable {
  border-left-color: #b77718;
  background: #fff8e8;
}

.normative-original-access > svg {
  width: 24px;
  height: 24px;
  color: #168575;
}

.normative-original-access div,
.normative-original-access p {
  min-width: 0;
  margin: 0;
}

.normative-original-access strong,
.normative-original-access small {
  display: block;
}

.normative-original-access p {
  margin-top: 3px;
  color: #3d5157;
}

.normative-original-access small {
  margin-top: 6px;
  color: #68777b;
}

.normative-source-unavailable {
  color: #8a5d17;
  font-weight: 700;
}

.normative-document-action.is-download,
.normative-detail-download.is-download {
  border-color: #0b7189;
  color: #fff;
  background: #0b7189;
}

.normative-document-action.is-download:hover,
.normative-detail-download.is-download:hover {
  background: #075e72;
}

.normative-document-action svg,
.normative-detail-download svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.normative-detail-download {
  min-height: 40px;
  padding-inline: 13px;
}

.normative-document-row.is-professional {
  background: #f8fbfc;
}

.normative-document-row.is-draft {
  background: #fafbfc;
}

.normative-document-row.is-professional .normative-document-icon {
  border-color: #87aebc;
  color: #0d4e61;
  background: #e9f4f6;
}

.normative-document-row.is-draft .normative-document-icon {
  border-color: #aebdca;
  color: #39566d;
  background: #eef3f6;
}

.normative-document-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d6df;
  border-radius: 6px;
  color: var(--normative-navy);
  background: #f4f7f9;
}

.normative-document-icon svg {
  width: 20px;
  height: 20px;
}

.normative-document-copy {
  min-width: 0;
}

.normative-document-copy strong {
  display: block;
  color: var(--normative-navy);
  overflow-wrap: anywhere;
}

.normative-document-copy span,
.normative-document-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.normative-document-copy span {
  font-size: 13px;
}

.normative-document-copy small {
  font-size: 11px;
}

.normative-content-profile {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 3px 6px;
  border: 1px solid #d2dce2;
  border-radius: 4px;
  color: #52616a;
  background: #f5f7f8;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.normative-content-profile.is-professional {
  border-color: #9ec4cf;
  color: #0d4e61;
  background: #e9f4f6;
}

.normative-content-profile.is-editorial {
  border-color: #bca76d;
  color: #674f13;
  background: #fff8e4;
}

.normative-content-profile.is-draft {
  border-color: #b9c8d3;
  color: #39566d;
  background: #eef3f6;
}

.normative-content-profile svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.normative-document-review {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.normative-review-stage {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid #c5d1d7;
  border-radius: 5px;
  color: #4b5f70;
  background: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.normative-review-stage.is-professional {
  border-color: #b9d1c3;
  color: #175d38;
  background: #eff8f2;
}

.normative-detail-profile {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid #d2dce2;
  border-radius: 4px;
  color: #52616a;
  background: #f5f7f8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.normative-detail-profile.is-professional {
  border-color: #86b5c2;
  color: #0d4e61;
  background: #e9f4f6;
}

.normative-detail-profile.is-editorial {
  border-color: #bca76d;
  color: #674f13;
  background: #fff8e4;
}

.normative-detail-profile.is-draft {
  border-color: #aebfcb;
  color: #334f65;
  background: #eef3f6;
}

.normative-analysis-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid #6c879a;
  background: #f1f5f7;
  color: #334f65;
  font-size: 12px;
  line-height: 1.45;
}

.normative-analysis-notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.normative-analysis-notice p,
.normative-analysis-notice strong,
.normative-analysis-notice span {
  display: block;
  margin: 0;
}

.normative-analysis-notice p,
.normative-analysis-item > div,
.normative-analysis-head > div,
.normative-detail-head > div:first-child {
  min-width: 0;
}

.normative-analysis-notice span,
.normative-analysis-item p,
.normative-analysis-head h4,
.normative-detail-head h3,
.normative-detail-head p {
  overflow-wrap: anywhere;
}

.normative-detail-section,
.normative-status-basis,
.normative-timeline-row,
.normative-timeline-row > div,
.normative-timeline-row p {
  min-width: 0;
}

.normative-status-basis,
.normative-timeline-row p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.normative-analysis-notice.is-editorial {
  border-left-color: #a17b19;
  color: #674f13;
  background: #fff9e9;
}

.normative-analysis-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.normative-analysis-workflow > div {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid var(--line);
}

.normative-analysis-workflow > div:last-child {
  border-right: 0;
}

.normative-analysis-workflow span,
.normative-analysis-workflow strong {
  display: block;
  overflow-wrap: anywhere;
}

.normative-analysis-workflow span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
}

.normative-analysis-workflow strong {
  color: var(--normative-navy);
  font-size: 11px;
  line-height: 1.4;
}

.normative-analysis-origin {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--normative-cyan);
  background: #eef7f8;
  color: #164e5f;
  font-size: 12px;
  font-weight: 700;
}

.normative-analysis-origin.is-draft {
  border-left-color: #6c879a;
  color: #334f65;
  background: #f1f5f7;
}

.normative-analysis-workflow-admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.normative-analysis-workflow-admin span,
.normative-analysis-workflow-admin strong,
.normative-analysis-workflow-admin small {
  display: block;
}

.normative-analysis-workflow-admin span,
.normative-analysis-workflow-admin small {
  color: var(--muted);
  font-size: 11px;
}

.normative-analysis-workflow-admin strong {
  margin: 2px 0;
  color: var(--normative-navy);
  font-size: 13px;
}

.normative-analysis-workflow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.normative-analysis-workflow-actions button {
  min-height: 34px;
}

.normative-detail-profile svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.normative-analysis-jump {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid #86a9b5;
  border-radius: 4px;
  color: #143f4c;
  background: #edf6f7;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.normative-analysis-jump svg {
  width: 16px;
  height: 16px;
}

.normative-document-row > svg {
  width: 17px;
  height: 17px;
  margin-top: 12px;
  color: var(--muted);
}

.normative-detail {
  min-width: 0;
  padding: 20px;
}

.normative-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.normative-detail-head h3 {
  margin: 4px 0 7px;
  color: var(--normative-navy);
  font-size: 21px;
}

.normative-detail-head p,
.normative-detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.normative-detail-actions {
  display: flex;
  gap: 8px;
}

.normative-detail-section {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.normative-engineering-analysis {
  padding-left: 18px;
  border-left: 3px solid #237487;
  background: #fbfdfe;
  scroll-margin-top: 88px;
}

.normative-engineering-analysis .normative-analysis-head h4 {
  margin-top: 3px;
  color: #123f4c;
  font-size: 20px;
  line-height: 1.25;
}

.normative-analysis-audit {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.normative-analysis-audit summary {
  padding: 12px 0 4px;
  color: #38515d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.normative-detail-section:last-child {
  border-bottom: 0;
}

.normative-detail-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.normative-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.normative-status.is-withdrawn,
.normative-status.is-replaced,
.normative-status.is-not_effective_in_russia,
.normative-status.is-suspended,
.normative-quality.is-disputed {
  border-color: #e3bbb7;
  color: var(--normative-red);
  background: #fbefee;
}

.normative-status.is-unknown,
.normative-quality.is-not_reviewed,
.normative-quality.is-stale {
  border-color: #dccb9f;
  color: var(--normative-amber);
  background: #fff8e7;
}

.normative-status.is-officially_published {
  border-color: #b8cbd7;
  color: #294c5d;
  background: #eef5f8;
}

.normative-status-notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 9px 10px;
  border-left: 3px solid #5f8497;
  background: #f4f8fa;
  color: #43545d;
  font-size: 12px;
  line-height: 1.45;
}

.normative-status-notice svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.normative-timeline,
.normative-version-list,
.normative-relation-list,
.normative-source-list {
  display: grid;
  gap: 0;
}

.normative-timeline-row,
.normative-version-row,
.normative-relation-row,
.normative-source-row {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #edf0f3;
  font-size: 13px;
}

.normative-timeline-row:first-child,
.normative-version-row:first-child,
.normative-relation-row:first-child,
.normative-source-row:first-child {
  border-top: 0;
}

.normative-timeline-row time,
.normative-version-row > span,
.normative-relation-row > span,
.normative-source-row > span {
  color: var(--muted);
  font-size: 12px;
}

.normative-source-row a,
.normative-relation-row button {
  color: var(--normative-cyan);
  overflow-wrap: anywhere;
}

.normative-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.normative-pagination span {
  color: var(--muted);
  font-size: 13px;
}

.normative-wizard {
  border: 1px solid var(--line);
  background: var(--surface);
}

.normative-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.normative-form-head h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.normative-form-head > span {
  color: var(--normative-cyan);
  font-size: 13px;
  font-weight: 700;
}

.normative-form-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.normative-form-section h4 {
  margin: 0 0 13px;
  color: var(--normative-navy);
  font-size: 14px;
}

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

.normative-check {
  min-height: 44px;
  align-self: end;
}

.normative-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 20px;
}

.normative-evaluation {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.normative-result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}

.normative-result-summary > div {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.normative-result-summary > div:last-child {
  border-right: 0;
}

.normative-result-summary small,
.normative-result-summary strong {
  display: block;
}

.normative-result-summary small {
  color: var(--muted);
}

.normative-result-summary strong {
  margin-top: 4px;
  font-size: 20px;
}

.normative-result-row {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  background: var(--surface);
}

.normative-result-row.is-applicable {
  border-left-color: var(--normative-green);
}

.normative-result-row.is-conditional {
  border-left-color: var(--normative-amber);
}

.normative-result-row.is-indeterminate,
.normative-result-row.is-not_applicable {
  border-left-color: var(--muted);
}

.normative-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.normative-result-head h4 {
  margin: 3px 0 4px;
  color: var(--normative-navy);
  font-size: 16px;
}

.normative-result-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.normative-result-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.normative-trace {
  margin: 12px 0 0;
  padding: 11px 0 0;
  border-top: 1px solid var(--line);
}

.normative-trace summary {
  color: var(--normative-cyan);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.normative-trace-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.normative-trace-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  font-size: 12px;
}

.normative-trace-row svg {
  width: 16px;
  height: 16px;
}

.normative-trace-row.is-true { color: var(--normative-green); }
.normative-trace-row.is-false { color: var(--normative-red); }
.normative-trace-row.is-unknown { color: var(--normative-amber); }

.normative-profile-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.normative-profile-head {
  margin-bottom: 14px;
}

.normative-profile-head > span {
  color: var(--muted);
  font-size: 12px;
}

.normative-profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
}

.normative-profile-row strong,
.normative-profile-row span {
  display: block;
}

.normative-profile-copy,
.normative-profile-title {
  min-width: 0;
}

.normative-profile-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.normative-profile-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.normative-dossier-status,
.normative-readiness,
.normative-audit-state {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1.2;
}

.normative-dossier-status.is-approved,
.normative-readiness.is-approved,
.normative-audit-state.is-valid {
  border-color: #8cc7aa;
  color: #17633e;
  background: #eef9f3;
}

.normative-dossier-status.is-expert_review,
.normative-readiness.is-ready_for_review {
  border-color: #77b9c1;
  color: #0d5962;
  background: #eefbfc;
}

.normative-dossier-status.is-changes_requested,
.normative-audit-state.is-invalid {
  border-color: #e7a4a4;
  color: #8c2626;
  background: #fff3f3;
}

.normative-profile-dossier {
  margin-top: 18px;
  scroll-margin-top: 24px;
}

.normative-dossier-shell {
  border: 1px solid var(--line);
  background: var(--surface);
}

.normative-dossier-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.normative-dossier-head h3,
.normative-dossier-head p {
  margin: 0;
}

.normative-dossier-head h3 {
  margin-top: 4px;
  font-size: 21px;
}

.normative-dossier-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.normative-dossier-head-status {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-direction: column;
}

.normative-dossier-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.normative-dossier-metrics > div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.normative-dossier-metrics > div:last-child {
  border-right: 0;
}

.normative-dossier-metrics small,
.normative-dossier-metrics strong {
  display: block;
}

.normative-dossier-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.normative-dossier-metrics strong {
  margin-top: 3px;
  font-size: 21px;
}

.normative-dossier-blockers,
.normative-dossier-ready {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.normative-dossier-blockers {
  background: #fff9ed;
}

.normative-dossier-blockers > strong {
  display: block;
  margin-bottom: 8px;
}

.normative-dossier-blockers > div,
.normative-dossier-ready,
.normative-impact-row,
.normative-dossier-events > div {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.normative-dossier-blockers > div + div {
  margin-top: 5px;
}

.normative-dossier-blockers svg,
.normative-dossier-ready svg,
.normative-impact-row svg,
.normative-dossier-events svg,
.normative-audit-state svg {
  width: 16px;
  height: 16px;
}

.normative-dossier-ready {
  color: #17633e;
  background: #eef9f3;
}

.normative-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  border-bottom: 1px solid var(--line);
}

.normative-dossier-grid .normative-dossier-section {
  border-bottom: 0;
}

.normative-dossier-grid .normative-dossier-section:first-child {
  border-right: 1px solid var(--line);
}

.normative-dossier-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.normative-dossier-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.normative-dossier-section-head h4 {
  margin: 3px 0 0;
  font-size: 16px;
}

.normative-dossier-section-head > span {
  color: var(--muted);
  font-size: 12px;
}

.normative-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.normative-context-grid > div {
  min-width: 0;
  padding: 10px;
  background: var(--surface);
}

.normative-context-grid small,
.normative-context-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.normative-context-grid small {
  color: var(--muted);
  font-size: 10px;
}

.normative-context-grid strong {
  margin-top: 3px;
  font-size: 12px;
}

.normative-impact-metrics,
.normative-project-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.normative-impact-metrics > div,
.normative-project-strip > div {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
}

.normative-impact-metrics > div:last-child,
.normative-project-strip > div:last-child {
  border-right: 0;
}

.normative-impact-metrics strong,
.normative-impact-metrics span,
.normative-project-strip strong,
.normative-project-strip span {
  display: block;
}

.normative-impact-metrics span,
.normative-project-strip span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.normative-impact-row {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.normative-impact-row strong,
.normative-impact-row small {
  display: block;
}

.normative-impact-row small {
  margin-top: 2px;
  color: var(--muted);
}

.normative-project-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.normative-project-members span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
}

.normative-dossier-documents {
  border: 1px solid var(--line);
}

.normative-dossier-document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.normative-dossier-document + .normative-dossier-document {
  border-top: 1px solid var(--line);
}

.normative-dossier-document strong,
.normative-dossier-document span,
.normative-dossier-document small {
  display: block;
  overflow-wrap: anywhere;
}

.normative-dossier-document span,
.normative-dossier-document small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.normative-dossier-document-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.normative-dossier-document-actions select,
.normative-dossier-picker select {
  min-width: 230px;
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.normative-dossier-events {
  display: grid;
  gap: 8px;
}

.normative-dossier-events strong,
.normative-dossier-events small {
  display: block;
}

.normative-dossier-events small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.normative-dossier-review-comment {
  display: grid;
  gap: 4px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fb;
}

.normative-dossier-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
}

.normative-add-to-dossier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f6f8fb;
}

.normative-add-to-dossier strong,
.normative-add-to-dossier span {
  display: block;
}

.normative-add-to-dossier span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.normative-dossier-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.normative-profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.normative-export-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.normative-export-actions > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.normative-detail-actions .icon-button.is-active,
.normative-profile-actions .icon-button.is-active {
  border-color: var(--normative-cyan);
  color: var(--normative-cyan);
  background: #eefbfc;
}

.normative-profile-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.normative-compare-grid {
  --compare-columns: 2;
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) repeat(var(--compare-columns), minmax(250px, 1fr));
  min-width: 720px;
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.normative-comparison {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.normative-compare-label,
.normative-compare-head,
.normative-compare-value {
  min-width: 0;
  padding: 14px;
  background: var(--surface);
  line-height: 1.5;
  white-space: pre-line;
}

.normative-compare-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.normative-compare-head {
  color: var(--ink);
  font-size: 14px;
}

.normative-compare-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.normative-compare-value {
  color: var(--ink);
  font-size: 13px;
}

.normative-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--normative-amber);
  color: #62420f;
  background: #fff8e8;
  font-size: 12px;
  line-height: 1.5;
}

.normative-disclaimer svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.normative-admin {
  display: none;
}

.normative-admin.is-active {
  display: block;
}

.normative-admin-control-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(360px, 0.9fr);
  gap: 14px;
  margin-top: 14px;
}

.normative-coverage-list {
  display: grid;
  gap: 12px;
}

.normative-coverage-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(160px, 1fr) 58px;
  align-items: center;
  gap: 12px;
}

.normative-coverage-row > div:first-child {
  min-width: 0;
}

.normative-coverage-row strong,
.normative-coverage-row span {
  display: block;
}

.normative-coverage-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.normative-coverage-row > b {
  color: var(--normative-navy);
  font-size: 12px;
  text-align: right;
}

.normative-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e5eaed;
}

.normative-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--normative-cyan);
}

.normative-quality-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.normative-quality-chip {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: #f7f9fa;
  font-size: 11px;
}

.normative-quality-chip.is-ok {
  border-color: #b9d1c3;
  color: #175d38;
  background: #eff8f2;
}

.normative-acceptance-panel {
  margin-top: 14px;
}

.normative-review-workspace {
  margin-top: 14px;
}

.normative-review-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fa;
}

.normative-review-summary span {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.normative-review-summary span:last-child {
  border-right: 0;
}

.normative-review-summary strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 17px;
}

.normative-review-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 190px 160px auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.normative-review-list {
  min-height: 180px;
}

.normative-review-task {
  padding-left: 10px;
  border-left: 3px solid #9ea9af;
}

.normative-review-task.is-priority-critical {
  border-left-color: #b4473d;
}

.normative-review-task.is-priority-pilot {
  border-left-color: #b17716;
}

.normative-review-task-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.normative-review-task-heading .normative-quality {
  display: inline-flex;
  margin: 0;
  padding: 3px 6px;
  white-space: nowrap;
}

.normative-acceptance-panel .panel-title {
  justify-content: flex-start;
}

.normative-acceptance-verdict {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: #f5f7f8;
  font-size: 11px;
  font-weight: 800;
}

.normative-acceptance-verdict.is-passed {
  border-color: #9fc5ad;
  color: #175d38;
  background: #eff8f2;
}

.normative-acceptance-verdict.is-blocked {
  border-color: #dec486;
  color: #6d490f;
  background: #fff8e8;
}

.normative-acceptance-verdict.is-failed {
  border-color: #dda9a5;
  color: #7a2923;
  background: #fff2f1;
}

.normative-acceptance-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.normative-acceptance-metrics > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}

.normative-acceptance-metrics > div:last-child {
  border-right: 0;
}

.normative-acceptance-metrics strong,
.normative-acceptance-metrics span {
  display: block;
  overflow-wrap: anywhere;
}

.normative-acceptance-metrics strong {
  color: var(--normative-navy);
  font-size: 16px;
}

.normative-acceptance-metrics span,
.normative-acceptance-meta {
  color: var(--muted);
  font-size: 11px;
}

.normative-acceptance-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
}

.normative-acceptance-blockers {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.normative-acceptance-blockers > strong {
  display: block;
  padding: 12px 0 6px;
  color: #6d490f;
  font-size: 12px;
}

.normative-acceptance-blockers > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
}

.normative-acceptance-blockers svg,
.normative-acceptance-clear svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.normative-acceptance-blockers svg {
  color: var(--normative-amber);
}

.normative-acceptance-blockers b,
.normative-acceptance-blockers small {
  display: block;
}

.normative-acceptance-blockers b {
  font-size: 12px;
}

.normative-acceptance-blockers small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.4;
}

.normative-acceptance-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #175d38;
  font-size: 12px;
  font-weight: 800;
}

.normative-admin-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.normative-import-actions {
  flex-wrap: wrap;
}

.normative-import-result {
  margin-top: 12px;
}

.normative-import-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 10px;
  border-left: 3px solid var(--normative-cyan);
  background: #eef7f8;
  font-size: 12px;
  font-weight: 700;
}

.normative-import-status.is-valid {
  border-left-color: var(--normative-green);
  color: #175d38;
  background: #eff8f2;
}

.normative-import-status.is-error {
  border-left-color: var(--normative-red);
  color: #7a2923;
  background: #fff2f1;
}

.normative-import-status svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.normative-import-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.normative-import-stats span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
}

.normative-import-issues {
  max-height: 220px;
  overflow-y: auto;
  margin-top: 9px;
  border: 1px solid var(--line);
}

.normative-import-issues > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1.3fr);
  gap: 10px;
  padding: 8px 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.normative-import-issues > div:first-child {
  border-top: 0;
}

.normative-import-issues > div.is-error {
  color: #7a2923;
}

.normative-import-issues > div.is-warning {
  color: #6d490f;
}

.normative-import-issues code {
  overflow-wrap: anywhere;
}

.normative-admin-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.normative-admin-details summary {
  margin-bottom: 10px;
  color: var(--normative-navy);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.normative-admin-details .field + .field {
  margin-top: 9px;
}

.normative-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  margin-top: 10px;
}

.normative-admin-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}

.normative-admin-register {
  min-width: 0;
}

.normative-admin-list {
  display: grid;
  gap: 0;
}

.normative-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.normative-admin-row:first-child {
  border-top: 0;
}

.normative-admin-row strong,
.normative-admin-row span,
.normative-admin-row small {
  display: block;
}

.normative-admin-row span,
.normative-admin-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.normative-admin-actions {
  display: flex;
  gap: 6px;
}

.normative-version-editor {
  margin-top: 14px;
}

.normative-admin-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.normative-source-monitor {
  margin-top: 14px;
}

.normative-queue-list {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}

.normative-publication-row a {
  color: var(--normative-cyan);
}

.normative-admin-actions > svg {
  width: 20px;
  height: 20px;
  color: var(--normative-green);
}

.normative-import-history {
  margin-top: 14px;
}

.normative-source-row a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.normative-rule-editor {
  margin-top: 14px;
}

.normative-condition-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.normative-condition-builder {
  display: grid;
  gap: 8px;
}

.normative-condition-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 150px 120px minmax(150px, 1fr) 44px;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #f7f9fa;
}

.normative-condition-row .icon-button {
  width: 44px;
  height: 44px;
}

.normative-advanced-editor {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.normative-advanced-editor summary {
  cursor: pointer;
  font-weight: 800;
}

.normative-advanced-editor .field {
  margin-top: 12px;
}

.normative-admin-actions .icon-button.is-danger {
  color: #b42318;
  border-color: #f2b8b5;
  background: #fff7f6;
}

.normative-admin-actions .icon-button.is-danger:hover {
  border-color: #b42318;
  background: #ffebe9;
}

.normative-evidence-editor {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1320px) {
  .normative-admin-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .normative-metric:nth-child(3) {
    border-right: 0;
  }

  .normative-search-toolbar {
    grid-template-columns: minmax(260px, 1fr) 160px;
  }

  .normative-browser {
    grid-template-columns: minmax(290px, 0.8fr) minmax(390px, 1.2fr);
  }

  .normative-admin-layout {
    grid-template-columns: 1fr;
  }

  .normative-admin-control-grid {
    grid-template-columns: 1fr;
  }

  .normative-review-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .normative-review-summary span:nth-child(3) {
    border-right: 0;
  }

  .normative-review-summary span:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .normative-review-toolbar {
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(150px, 0.5fr));
  }

  .normative-review-toolbar > :nth-child(4),
  .normative-review-toolbar > :nth-child(5) {
    grid-row: 2;
  }

  .normative-condition-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .normative-dossier-grid {
    grid-template-columns: 1fr;
  }

  .normative-dossier-grid .normative-dossier-section:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .normative-dossier-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .normative-dossier-metrics > div:nth-child(3) {
    border-right: 0;
  }

  .normative-dossier-metrics > div:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

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

  .normative-dossier-document {
    grid-template-columns: 1fr;
  }

  .normative-dossier-document-actions {
    justify-content: flex-end;
  }

  .normative-engine-badge {
    display: none;
  }

  .normative-admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .normative-metric,
  .normative-metric:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .normative-metric:nth-child(even) {
    border-right: 0;
  }

  .normative-search-toolbar {
    grid-template-columns: 1fr;
  }

  .normative-review-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .normative-review-toolbar .search-field {
    grid-column: 1 / -1;
  }

  .normative-review-toolbar > :nth-child(4),
  .normative-review-toolbar > :nth-child(5) {
    grid-row: auto;
  }

  .normative-review-toolbar .secondary-button {
    justify-content: center;
  }

  .normative-browser {
    display: block;
    min-height: 0;
  }

  .normative-directory {
    border-right: 0;
  }

  .normative-detail {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    overflow-y: auto;
    padding: 18px;
    background: var(--surface);
  }

  .normative-detail.is-open {
    display: block;
  }

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

  .normative-result-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .normative-analysis-workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .normative-analysis-workflow > div:nth-child(2) {
    border-right: 0;
  }

  .normative-analysis-workflow > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .normative-analysis-workflow-admin {
    grid-template-columns: 1fr;
  }

  .normative-analysis-workflow-actions {
    justify-content: flex-start;
  }

  .normative-result-summary > div:nth-child(2) {
    border-right: 0;
  }

  .normative-result-summary > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .normative-acceptance-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .normative-acceptance-metrics > div:nth-child(3) {
    border-right: 0;
  }

  .normative-acceptance-metrics > div:nth-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .normative-view,
  .normative-panel,
  .normative-search-toolbar,
  .normative-search-toolbar > *,
  .normative-browser {
    min-width: 0;
    max-width: 100%;
  }

  .normative-metric {
    padding: 14px 12px;
  }

  .normative-metric span {
    overflow-wrap: anywhere;
  }

  .normative-type-strip {
    padding: 8px;
  }

  .normative-type-group {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .normative-type-group > span {
    padding-top: 2px;
  }

  .normative-type-group > div {
    flex-wrap: nowrap;
    padding-bottom: 3px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .normative-type-option span {
    white-space: nowrap;
  }

  .normative-subject-strip {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .normative-subject-options {
    gap: 8px;
  }

  .normative-subject-group {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .normative-subject-group > span {
    padding-top: 0;
  }

  .normative-subject-group > div {
    flex-wrap: nowrap;
    padding-bottom: 3px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .normative-subject-option {
    flex: 0 0 auto;
  }

  .normative-tabs {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .normative-tabs .tab {
    justify-content: flex-start;
    width: 100%;
  }

  .normative-form-grid,
  .normative-result-summary {
    grid-template-columns: 1fr;
  }

  .normative-dossier-head,
  .normative-dossier-section-head,
  .normative-add-to-dossier {
    align-items: stretch;
    flex-direction: column;
  }

  .normative-dossier-head-status {
    align-items: flex-start;
  }

  .normative-dossier-metrics,
  .normative-context-grid,
  .normative-impact-metrics,
  .normative-project-strip {
    grid-template-columns: 1fr;
  }

  .normative-dossier-metrics > div,
  .normative-dossier-metrics > div:nth-child(3),
  .normative-impact-metrics > div,
  .normative-project-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .normative-dossier-metrics > div:last-child,
  .normative-impact-metrics > div:last-child,
  .normative-project-strip > div:last-child {
    border-bottom: 0;
  }

  .normative-dossier-document-actions,
  .normative-dossier-picker,
  .normative-dossier-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .normative-dossier-document-actions select,
  .normative-dossier-picker select {
    width: 100%;
    min-width: 0;
  }

  .normative-dossier-document-actions .icon-button {
    align-self: flex-end;
  }

  .normative-analysis-workflow {
    grid-template-columns: 1fr;
  }

  .normative-analysis-workflow > div,
  .normative-analysis-workflow > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .normative-analysis-workflow > div:last-child {
    border-bottom: 0;
  }

  .normative-detail {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .normative-detail-head,
  .normative-analysis-head {
    flex-direction: column;
    align-items: stretch;
  }

  .normative-detail-actions {
    width: 100%;
    align-self: stretch;
    justify-content: flex-end;
  }

  .normative-analysis-head .normative-quality {
    align-self: flex-start;
  }

  .normative-analysis-notice {
    width: 100%;
    max-width: calc(100vw - 36px);
    box-sizing: border-box;
  }

  .normative-analysis-notice p,
  .normative-analysis-item > div {
    flex: 1 1 0;
    width: 0;
  }

  .normative-result-summary > div,
  .normative-result-summary > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .normative-result-summary > div:last-child {
    border-bottom: 0;
  }

  .normative-form-actions,
  .normative-result-head,
  .normative-profile-row {
    align-items: stretch;
    flex-direction: column;
  }

  .normative-profile-row {
    display: flex;
  }

  .normative-profile-actions {
    justify-content: space-between;
  }

  .normative-export-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .normative-export-actions > span {
    grid-column: 1 / -1;
  }

  .normative-export-actions .secondary-button {
    justify-content: center;
    min-width: 0;
  }

  .normative-form-actions {
    display: grid;
  }

  .normative-result-badges {
    justify-content: flex-start;
  }

  .normative-admin-layout {
    display: block;
  }

  .normative-admin-workflow-grid,
  .normative-condition-row {
    grid-template-columns: 1fr;
  }

  .normative-coverage-row {
    grid-template-columns: minmax(130px, 0.8fr) minmax(120px, 1fr) 50px;
  }

  .normative-admin-register {
    margin-top: 12px;
  }

  .normative-admin-control-grid {
    display: block;
  }

  .normative-admin-control-grid > .panel + .panel {
    margin-top: 12px;
  }

  .normative-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .normative-review-summary span,
  .normative-review-summary span:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .normative-review-summary span:nth-child(even) {
    border-right: 0;
  }

  .normative-review-summary span:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .normative-review-task {
    grid-template-columns: 1fr;
  }

  .normative-review-task .normative-admin-actions {
    justify-content: flex-end;
  }

  .normative-rights-grid,
  .normative-import-issues > div {
    grid-template-columns: 1fr;
  }

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

  .normative-acceptance-metrics > div {
    border-bottom: 1px solid var(--line);
  }

  .normative-acceptance-metrics > div:nth-child(even) {
    border-right: 0;
  }

  .normative-acceptance-metrics > div:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .normative-acceptance-metrics > div:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}
.normative-analysis-head,
.normative-analysis-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.normative-analysis-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.normative-analysis-head h4,
.normative-analysis-item h5 {
  margin: 0;
}

.normative-analysis-item {
  padding: 14px 0;
  border-top: 1px solid var(--line, #dfe3e6);
}

.normative-analysis-item > svg {
  width: 20px;
  min-width: 20px;
  color: #b63b24;
}

.normative-analysis-item p,
.normative-analysis-review {
  margin: 5px 0 0;
  line-height: 1.55;
}

.normative-analysis-review {
  color: var(--muted, #667078);
  font-size: 13px;
}

/* v168: compact catalogue navigation and separated review layers */
.normative-catalog-nav {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.normative-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.normative-catalog-head > div {
  display: grid;
  gap: 2px;
}

.normative-catalog-head strong {
  color: var(--normative-navy);
  font-size: 14px;
}

.normative-catalog-head div span,
.normative-catalog-head > span {
  color: var(--muted);
  font-size: 12px;
}

.normative-catalog-head > span {
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid #c7d5dc;
  border-radius: 5px;
  color: #315469;
  background: #f5f8fa;
  font-weight: 700;
}

.normative-type-strip {
  display: block;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
}

.normative-family-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.normative-family-option {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #cad5db;
  border-radius: 6px;
  color: #365064;
  background: #fff;
  text-align: left;
}

.normative-family-option:hover,
.normative-family-option.is-active {
  border-color: #315469;
  color: #fff;
  background: #253d50;
}

.normative-family-option svg {
  width: 20px;
  height: 20px;
}

.normative-family-option span {
  min-width: 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.normative-family-option strong {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.normative-type-context {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.normative-type-context > span {
  padding-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.normative-type-context > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.normative-source-strip {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 0 12px 10px;
  background: var(--surface);
}

.normative-source-strip > span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 17px;
  color: var(--normative-navy);
  font-size: 11px;
  line-height: 1.25;
}

.normative-source-strip > span svg {
  width: 16px;
  min-width: 16px;
}

.normative-source-strip > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.normative-source-option {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #c7d5dc;
  border-radius: 5px;
  color: #315469;
  background: #f7fafb;
  font-size: 12px;
  font-weight: 750;
}

.normative-source-option:hover,
.normative-source-option.is-active {
  border-color: #315469;
  color: #fff;
  background: #315469;
}

.normative-source-option strong {
  padding-left: 7px;
  border-left: 1px solid currentColor;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.normative-subject-strip {
  display: block;
  margin: 0;
  padding: 0 12px 12px;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}

.normative-subject-select {
  display: grid;
  grid-template-columns: 150px minmax(220px, 420px);
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.normative-subject-select > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--normative-navy);
  font-size: 12px;
}

.normative-subject-select svg {
  width: 16px;
  height: 16px;
}

.normative-subject-select select {
  width: 100%;
  min-height: 38px;
}

.normative-search-toolbar {
  grid-template-columns: minmax(280px, 1fr) 180px auto;
}

.normative-editorial-review {
  border-left: 4px solid #376d83;
  background: #f5f9fb;
}

.normative-editorial-review.is-confirmed {
  border-left-color: #237a48;
  background: #f4faf6;
}

.normative-editorial-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.normative-editorial-head h4 {
  margin: 2px 0 0;
  color: var(--normative-navy);
  font-size: 18px;
}

.normative-editorial-status {
  max-width: 310px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #b9cbd5;
  border-radius: 5px;
  color: #315469;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}

.normative-editorial-status.is-confirmed {
  border-color: #b9d1c3;
  color: #175d38;
}

.normative-editorial-status svg {
  width: 17px;
  min-width: 17px;
}

.normative-review-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  border-block: 1px solid #d5e1e6;
}

.normative-review-facts > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-right: 1px solid #d5e1e6;
}

.normative-review-facts > div:last-child {
  border-right: 0;
}

.normative-review-facts svg {
  width: 19px;
  min-width: 19px;
  color: #376d83;
}

.normative-review-facts span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.normative-review-facts small {
  color: var(--muted);
  font-size: 10px;
}

.normative-review-facts strong {
  color: var(--normative-navy);
  font-size: 12px;
  line-height: 1.3;
}

.normative-editorial-review > p {
  margin: 12px 0 0;
  color: #536675;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .normative-family-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .normative-catalog-head,
  .normative-editorial-head {
    align-items: stretch;
    flex-direction: column;
  }

  .normative-catalog-head > span,
  .normative-editorial-status {
    width: 100%;
    max-width: none;
  }

  .normative-family-row {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .normative-family-option {
    min-width: 168px;
  }

  .normative-type-context,
  .normative-source-strip,
  .normative-subject-select {
    grid-template-columns: 1fr;
  }

  .normative-type-context > span {
    padding-top: 0;
  }

  .normative-source-strip > span {
    padding-top: 8px;
  }

  .normative-search-toolbar {
    grid-template-columns: 1fr 160px;
  }

  .normative-search-toolbar .primary-button {
    grid-column: 1 / -1;
  }

  .normative-review-facts {
    grid-template-columns: 1fr;
  }

  .normative-review-facts > div {
    border-right: 0;
    border-bottom: 1px solid #d5e1e6;
  }

  .normative-review-facts > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .normative-document-actions {
    padding-left: 0;
  }

  .normative-detail-download {
    flex: 1 1 auto;
  }

  .normative-search-toolbar {
    grid-template-columns: 1fr;
  }

  .normative-search-toolbar .primary-button {
    grid-column: auto;
  }
}
