
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-400-800-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-400-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rust-100: oklch(0.94 0.025 52);
  --rust-600: oklch(0.55 0.145 43);
  --rust-700: oklch(0.48 0.12 41);
  --charcoal-950: oklch(0.22 0.01 55);
  --charcoal-600: oklch(0.44 0.018 55);
  --neutral-0: oklch(0.995 0.002 70);
  --neutral-50: oklch(0.97 0.004 70);
  --neutral-100: oklch(0.945 0.006 70);
  --neutral-200: oklch(0.88 0.01 70);
  --bg: var(--neutral-50);
  --surface: var(--neutral-0);
  --surface-subtle: var(--neutral-100);
  --surface-muted: var(--neutral-100);
  --surface-panel: var(--neutral-50);
  --text: var(--charcoal-950);
  --muted: var(--charcoal-600);
  --line: var(--neutral-200);
  --accent: var(--rust-600);
  --accent-dark: var(--rust-700);
  --accent-soft: var(--rust-100);
  --edge-accent-soft: color-mix(in oklch, var(--accent) 28%, var(--line));
  --on-accent: oklch(0.98 0.006 70);
  --focus: oklch(0.5 0.08 220);
  --success: oklch(0.46 0.08 158);
  --success-bg: oklch(0.95 0.025 158);
  --success-line: oklch(0.78 0.055 158);
  --warning: oklch(0.45 0.095 75);
  --warning-bg: oklch(0.96 0.035 75);
  --warning-line: oklch(0.8 0.075 75);
  --danger: oklch(0.48 0.13 27);
  --danger-bg: oklch(0.96 0.025 27);
  --danger-line: oklch(0.8 0.06 27);
  --info: oklch(0.45 0.07 220);
  --info-bg: oklch(0.95 0.025 220);
  --info-line: oklch(0.78 0.05 220);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 96px;
  --radius-control: 6px;
  --radius-panel: 10px;
  --shadow-overlay: 0 8px 8px rgba(28, 25, 22, 0.12);
  --z-dropdown: 20;
  --z-sticky: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-toast: 60;
  --z-tooltip: 70;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:is(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--surface);
}
.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-tooltip);
  translate: 0 -180%;
  border-radius: var(--radius-control);
  background: var(--text);
  color: var(--surface);
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { translate: 0; }
.app-shell {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) 148px;
}
.topbar {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: var(--space-2) 0 var(--space-5);
}
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  margin: var(--space-5) 0 0;
}
.legal-footer-text-link {
  color: var(--muted);
  font-weight: 700;
}
.legal-footer-text-link:hover { color: var(--accent-dark); }
.cookie-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: var(--z-toast);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  width: min(520px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  padding: var(--space-4);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice strong { display: block; margin-bottom: var(--space-1); }
.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.cookie-notice button { align-self: center; white-space: nowrap; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-1);
}
.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}
.main-nav a,
.mobile-nav nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius-control);
  color: var(--text);
  font-size: 14px;
  padding: 8px 11px;
  text-decoration: none;
}
.main-nav a:hover,
.mobile-nav nav a:hover { background: var(--surface-subtle); }
.main-nav a[aria-current="page"],
.mobile-nav nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "↓"; margin-left: 8px; }
.mobile-nav[open] summary::after { content: "↑"; }
.mobile-nav nav {
  position: absolute;
  top: calc(100% + 8px);
  right: auto;
  left: 0;
  z-index: var(--z-dropdown);
  display: grid;
  width: min(280px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  padding: var(--space-2);
}
.topbar-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-session-form { margin: 0; }
.topbar-login:hover { background: var(--accent-dark); color: var(--on-accent); }
.page {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: var(--space-5);
}
.page--brand {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.page--product { border-color: var(--edge-accent-soft); }
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
}
.section-label {
  display: inline-block;
  margin-bottom: var(--space-2);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.page-header p { margin: 10px 0 0; color: var(--muted); max-width: 68ch; }
form {
  display: grid;
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 0 var(--space-5);
}
.search-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-subtle);
  padding: var(--space-4);
}
.launch-board {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-subtle);
  padding: var(--space-5);
  margin: 0 0 var(--space-5);
}
.launch-board h2 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; }
.launch-board p { margin: 8px 0 0; max-width: 68ch; color: var(--muted); }
.page--product .search-panel,
.page--product .launch-board { border-color: var(--edge-accent-soft); }
.button-row {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}
button:hover,
.button:hover { background: var(--accent-dark); color: var(--on-accent); }
button:active,
.button:active { background: var(--accent-dark); }
button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}
button.button-secondary,
.button.button-secondary,
.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}
button.button-secondary:hover,
.button.button-secondary:hover,
.button-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.button-on-accent {
  background: var(--surface);
  color: var(--accent-dark);
}
.button-on-accent:hover { background: var(--accent-soft); color: var(--accent-dark); }
.button-quiet-on-accent {
  border: 1px solid color-mix(in oklch, var(--on-accent) 52%, transparent);
  background: transparent;
  color: var(--on-accent);
}
.button-quiet-on-accent:hover {
  border-color: var(--on-accent);
  background: color-mix(in oklch, var(--on-accent) 10%, transparent);
}
.button-row .button {
  white-space: nowrap;
}
.account-nav-links,
.account-scenario-links {
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.account-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--edge-accent-soft);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
}
.account-nav-back {
  border-color: var(--line);
  background: var(--surface-panel);
}
.account-nav-link:hover {
  border-color: var(--accent);
  background: var(--surface-muted);
  color: var(--accent-dark);
}
.account-nav-link[aria-current="page"] {
  border-color: var(--accent-dark);
  background: var(--accent);
  color: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 249, 0.28);
}
.document-pack-preview {
  display: grid;
  gap: 8px;
  margin: 14px 0 18px;
  border: 1px dashed var(--edge-accent-soft);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px 16px;
}
.document-pack-preview p {
  margin: 0;
}
.document-pack-preview ol,
.document-pack-preview ul {
  margin: 0;
  padding-left: 20px;
}
.document-pack-preview li {
  margin: 4px 0;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  margin: 0 0 24px;
}
.workflow-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 24px;
}
.workflow-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.workflow-column-header {
  border-top: 3px solid var(--accent);
  padding-top: 12px;
}
.workflow-column-header span {
  display: block;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.workflow-column-header h3 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
}
.workflow-column-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.workflow-links {
  display: grid;
  gap: 10px;
}
.feature-tile,
.result-item {
  display: grid;
  gap: 6px;
  min-height: 92px;
  border: 1px solid var(--edge-accent-soft);
  border-radius: var(--radius-panel);
  background: var(--surface);
  color: var(--text);
  padding: var(--space-4);
  text-decoration: none;
}
.feature-tile strong,
.result-item strong {
  font-weight: 800;
}
.feature-tile:hover,
.result-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.result-item {
  content-visibility: auto;
  contain-intrinsic-size: auto 92px;
  transition:
    opacity 100ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}
.result-item-enter {
  opacity: 0;
  will-change: opacity;
}
.feature-tile span,
.result-item span {
  color: var(--muted);
  font-size: 14px;
}
.result-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.infinite-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  padding: 14px;
  text-align: center;
}
.infinite-load-more {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.infinite-load-more:hover,
.infinite-load-more:focus {
  background: var(--surface);
  color: var(--text);
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.summary-strip > div,
.summary-strip > a {
  border: 1px solid var(--edge-accent-soft);
  border-radius: var(--radius-panel);
  background: var(--surface-panel);
  padding: 13px 14px;
}
.summary-strip > .status-ok {
  border-color: var(--success-line);
  background: var(--success-bg);
}
.summary-strip > .status-warn {
  border-color: var(--warning-line);
  background: var(--warning-bg);
}
.summary-strip > .status-blocked,
.summary-strip > .status-error {
  border-color: var(--danger-line);
  background: var(--danger-bg);
}
.summary-strip small a {
  color: var(--accent-dark);
  font-weight: 800;
}
.summary-strip > a {
  color: inherit;
  text-decoration: none;
}
.summary-strip > a:hover {
  border-color: var(--accent);
}
.summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.summary-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
}
.admin-runtime-strip strong,
.admin-monitoring-strip strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.summary-strip small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  padding: clamp(32px, 6vw, 72px);
}
.home-hero-copy { min-width: 0; }
.home-kicker {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: 14px;
  font-weight: 800;
}
.home-hero h1 {
  max-width: 10ch;
  font-family: var(--font-heading);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.home-hero-lead {
  max-width: 58ch;
  margin: var(--space-5) 0 0;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.home-hero-caveat {
  max-width: 62ch;
  margin: var(--space-5) 0 0;
  color: var(--on-accent);
  font-size: 13px;
}
.calculation-preview {
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: 0 8px 8px rgba(28, 25, 22, 0.16);
  color: var(--text);
  overflow: hidden;
}
.calculation-preview-header,
.calculation-preview footer {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
}
.calculation-preview-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}
.calculation-preview-header span,
.calculation-preview footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.calculation-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) var(--space-5);
}
.calculation-preview-row div { display: grid; gap: var(--space-1); min-width: 0; }
.calculation-preview-row span { color: var(--muted); font-size: 12px; }
.calculation-preview-row b { flex: none; color: var(--accent-dark); }
.calculation-preview footer { background: var(--text); color: var(--surface); }
.calculation-preview footer span { color: color-mix(in oklch, var(--surface) 72%, transparent); }
.norm-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-4) 0 0;
  border-radius: var(--radius-panel);
  background: var(--text);
  color: var(--surface);
  padding: var(--space-4) var(--space-5);
  font-size: 13px;
}
.norm-strip strong { color: var(--on-accent); }
.home-workflow {
  padding: clamp(56px, 8vw, 96px) clamp(0px, 2vw, 24px);
}
.section-intro {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-intro h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section-intro p { max-width: 62ch; margin: var(--space-4) 0 0; color: var(--muted); }
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
.workflow-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: var(--space-4);
  border-top: 3px solid var(--accent);
  padding-top: var(--space-5);
}
.workflow-step-number {
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 700;
  line-height: 0.8;
}
.workflow-step-content { min-width: 0; }
.workflow-step h3 { margin: 0; font-size: 27px; line-height: 1.1; }
.workflow-step-content > p { margin: var(--space-3) 0 var(--space-5); color: var(--muted); }
.workflow-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-dark);
  font-weight: 800;
}
.workflow-link-list { margin-top: var(--space-4); border-top: 1px solid var(--line); }
.workflow-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px var(--space-3);
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: var(--space-3) 0;
  text-decoration: none;
}
.workflow-link::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent-dark);
  font-weight: 800;
}
.workflow-link span { color: var(--muted); font-size: 12px; }
.workflow-link:hover strong { color: var(--accent-dark); }
.home-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  border-radius: 12px;
  background: var(--accent-dark);
  color: var(--on-accent);
  padding: clamp(28px, 5vw, 52px);
}
.home-final-cta h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; }
.home-final-cta p { max-width: 64ch; margin: var(--space-3) 0 0; }
.home-final-cta .button { flex: none; background: var(--surface); color: var(--accent-dark); }
.home-final-cta .button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.reference-map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.reference-map-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: var(--space-4);
  min-height: 132px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: var(--space-5) var(--space-4);
  text-decoration: none;
}
.reference-map-item:nth-child(odd) { border-right: 1px solid var(--line); }
.reference-map-item > span {
  color: var(--accent-dark);
  font-family: var(--font-body);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}
.reference-map-item strong { font-size: 20px; }
.reference-map-item p { margin: var(--space-2) 0 0; color: var(--muted); }
.reference-map-item:hover { background: var(--accent-soft); }
.reference-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-6);
  border-radius: var(--radius-panel);
  background: var(--surface-subtle);
  padding: var(--space-5);
}
.reference-actions h2 { margin: 0; font-size: 26px; }
.reference-actions p { margin: var(--space-2) 0 0; color: var(--muted); }
.reference-actions .actions-row { flex: none; margin: 0; }
@media (max-width: 860px) {
  .workflow-columns {
    grid-template-columns: 1fr;
  }
  .home-hero {
    grid-template-columns: 1fr;
  }
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .home-hero {
    gap: var(--space-6);
    padding: var(--space-5);
  }
  .home-hero h1 { font-size: clamp(46px, 15vw, 64px); }
  .home-hero-actions,
  .home-hero-actions .button { width: 100%; }
  .calculation-preview-row { align-items: flex-start; padding: var(--space-4); }
  .calculation-preview-header,
  .calculation-preview footer { padding: var(--space-4); }
  .norm-strip { display: grid; gap: var(--space-2); }
  .workflow-step { grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); }
  .workflow-step-number { font-size: 46px; }
  .home-final-cta,
  .reference-actions { align-items: stretch; flex-direction: column; }
  .home-final-cta .button,
  .reference-actions .actions-row,
  .reference-actions .button { width: 100%; }
  .reference-map-list { grid-template-columns: 1fr; }
  .reference-map-item:nth-child(odd) { border-right: 0; }
  .reference-map-item { min-height: 0; padding-inline: 0; }
}
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 18px;
  color: var(--muted);
}
.selection-form {
  max-width: none;
  width: 100%;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  display: grid;
  gap: 10px;
  padding: 14px;
}
legend {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  padding: 0 12px;
}
legend::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.reference-picker {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  min-width: 0;
  padding: 0;
}
.reference-picker > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  font-weight: 800;
  list-style-position: inside;
  padding: 12px 14px;
  white-space: normal;
}
.reference-picker-summary-hint {
  color: var(--muted);
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.reference-picker-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 0 12px 12px;
}
.checkbox-row {
  align-items: start;
  display: flex;
  gap: 10px;
  line-height: 1.35;
}
.checkbox-row input {
  margin-top: 4px;
  width: auto;
}
.consent-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.consent-note a {
  color: var(--accent-dark);
  font-weight: 700;
}
.legal-text {
  display: grid;
  gap: 16px;
  max-width: 940px;
}
.legal-text section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}
.legal-text h2 {
  margin: 0 0 8px;
  font-size: 24px;
}
.legal-text p {
  color: var(--muted);
  margin: 0 0 10px;
}
.legal-text p:last-child {
  margin-bottom: 0;
}
.legal-text li {
  color: var(--muted);
}
.hazard-option {
  display: grid;
  gap: 4px;
}
.hazard-option strong {
  font-weight: 700;
}
.hazard-option small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.hazard-reference-option {
  padding: 6px 0 10px;
}
.hazard-reference-option + .hazard-reference-option {
  border-top: 1px solid var(--line);
}
.hazard-event-heading {
  padding-left: 28px;
}
.hazard-norm-details {
  margin: 4px 0 0 28px;
}
.hazard-group .hazard-norm-details > summary {
  min-height: 44px;
  margin: 0;
  padding: 10px 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}
.hazard-norm-choices {
  display: grid;
  gap: 10px;
  padding: 2px 0 6px;
}
.hazard-norm-choice {
  padding: 8px 0;
}
.hazard-group {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.hazard-group:first-of-type {
  border-top: 0;
}
.hazard-group summary {
  display: list-item;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}
.hazard-group summary span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin-left: 6px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .result-item-enter {
    opacity: 1;
  }
}
.calculation-preview {
  margin-top: 18px;
}
.calculation-preview[aria-busy="true"] {
  opacity: 0.72;
}
.calculation-table-wrap {
  width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.calculation-table {
  min-width: 980px;
  margin: 0;
  border: 0;
  table-layout: fixed;
}
.calculation-table th,
.calculation-table td {
  vertical-align: top;
}
.procurement-table {
  min-width: 1032px;
  table-layout: fixed;
}
.procurement-table th,
.procurement-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}
.procurement-table th {
  line-height: 1.25;
}
.procurement-table td:nth-child(2),
.procurement-table td:nth-child(5),
.procurement-table td:nth-child(6) {
  text-align: right;
  white-space: nowrap;
}
.procurement-table td:nth-child(8),
.procurement-table td:nth-child(9) {
  line-height: 1.45;
}
.procurement-table .inline-form,
.procurement-table select {
  max-width: 100%;
}
.procurement-col-item {
  width: 180px;
}
.procurement-col-quantity {
  width: 70px;
}
.procurement-col-period {
  width: 70px;
}
.procurement-col-supplier {
  width: 120px;
}
.procurement-col-price {
  width: 70px;
}
.procurement-col-total {
  width: 78px;
}
.procurement-col-status {
  width: 100px;
}
.procurement-col-supply {
  width: 140px;
}
.procurement-col-context {
  width: 204px;
}
.procurement-supply-cell,
.procurement-context-cell {
  display: grid;
  gap: 5px;
}
.procurement-technical-details {
  margin-top: 4px;
}
.procurement-technical-details summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.procurement-context-part strong {
  color: var(--text);
}
.calculation-col-type {
  width: 18%;
}
.calculation-col-item {
  width: 26%;
}
.calculation-col-norm {
  width: 10%;
}
.calculation-col-source {
  width: 25%;
}
.calculation-col-match {
  width: 13%;
}
.calculation-col-total {
  width: 8%;
}
.bulk-calculation-col-type {
  width: 16%;
}
.bulk-calculation-col-item {
  width: 20%;
}
.bulk-calculation-col-quantity {
  width: 9%;
}
.bulk-calculation-col-norm {
  width: 10%;
}
.bulk-calculation-col-professions {
  width: 16%;
}
.bulk-calculation-col-match {
  width: 17%;
}
.bulk-calculation-col-total {
  width: 12%;
}
.calculation-table-item,
.calculation-table-source,
.calculation-table-professions {
  line-height: 1.45;
}
.calculation-table-norm strong,
.calculation-table-quantity strong,
.calculation-table-match strong,
.calculation-table-total strong {
  display: block;
}
.calculation-table-norm,
.calculation-table-quantity,
.calculation-table-match,
.calculation-table-total {
  white-space: normal;
}
.source-badge {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
  padding: 4px 8px;
}
.source-badge-hazard {
  border-color: var(--warning-line);
  background: var(--warning-bg);
}
.source-badge-dermatological {
  border-color: var(--success-line);
  background: var(--success-bg);
}
.source-badge-merged {
  border-color: var(--info-line);
  background: var(--info-bg);
}
td small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}
.review-note {
  margin-top: 6px;
}
.protection-workspace {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
}
.protection-workspace form {
  max-width: none;
  width: 100%;
}
.protection-workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.protection-workspace h2,
.protection-workspace h3,
.protection-workspace p {
  margin-top: 0;
}
.protection-workspace-header p,
.protection-panel-heading p {
  color: var(--muted);
}
.protection-master-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: var(--space-5);
  align-items: start;
}
.protection-master.calculation-table-wrap {
  margin: 0;
}
.protection-master .calculation-table {
  min-width: 680px;
}
.protection-master th:last-child,
.protection-master td:last-child {
  width: 104px;
}
.protection-row-button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.protection-detail {
  position: sticky;
  top: var(--space-5);
  min-width: 0;
  border-left: 3px solid var(--accent);
  background: var(--surface-muted);
  padding: var(--space-5);
}
.protection-panel-heading {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.protection-panel-heading h3 {
  margin-bottom: var(--space-2);
}
.protection-candidates {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  border: 0;
  padding: 0;
}
.protection-candidates legend {
  margin-bottom: var(--space-3);
  font-weight: 800;
}
.protection-candidate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--space-4);
  cursor: pointer;
}
.protection-candidate:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.protection-candidate input {
  margin-top: 3px;
}
.protection-candidate-body {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}
.protection-candidate-body > span:not(.protection-status) {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.protection-status {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 800;
}
.protection-status-OK {
  border-color: var(--success-line);
  background: var(--success-bg);
}
.protection-status-partial,
.protection-status-needs_review {
  border-color: var(--warning-line);
  background: var(--warning-bg);
}
.protection-status-missing {
  border-color: var(--danger-line);
  background: var(--danger-bg);
}
@media (max-width: 900px) {
  .protection-master-detail {
    grid-template-columns: 1fr;
  }
  .protection-detail {
    position: static;
    border-top: 3px solid var(--accent);
    border-left: 0;
  }
}
@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-actions {
    justify-content: flex-start;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .main-nav {
    display: none;
  }
  .mobile-nav { display: block; }
}
@media (max-width: 760px) {
  .button-row {
    align-items: flex-start;
    width: 100%;
  }
  .cookie-notice {
    position: static;
    width: auto;
    margin: 18px 14px 14px;
    grid-template-columns: 1fr;
  }
}
input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}
input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 160px; resize: vertical; }
form > label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.supplier-checkbox-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.supplier-checkbox-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}
.supplier-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}
.supplier-checkbox-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  padding: 6px 8px;
}
.supplier-checkbox-option input {
  width: 15px;
  min-width: 15px;
  height: 15px;
  min-height: 15px;
  accent-color: var(--accent);
  margin: 0;
  padding: 0;
}
.supplier-checkbox-option span {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.supplier-property-option span {
  display: grid;
  gap: 2px;
}
.supplier-property-option strong {
  font-size: 14px;
  line-height: 1.2;
}
.supplier-property-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}
.supplier-protection-section {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.supplier-selected-properties {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
}
.supplier-selected-properties span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 10px;
}
.supplier-selected-properties small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.supplier-selected-properties .supplier-selected-empty {
  color: var(--muted);
  font-weight: 600;
}
.supplier-protection-groups {
  display: grid;
  gap: 8px;
}
.supplier-protection-group {
  border: 1px solid var(--edge-accent-soft);
  border-radius: var(--radius-panel);
  background: var(--surface);
  overflow: hidden;
}
.supplier-protection-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  list-style: none;
  padding: 10px 12px;
}
.supplier-protection-group summary::-webkit-details-marker {
  display: none;
}
.supplier-protection-group summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.supplier-protection-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.supplier-property-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 10px;
}
.supplier-property-row--with-indicator {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
}
.supplier-property-row + .supplier-property-row {
  border-top: 1px solid var(--line);
}
.supplier-property-row[hidden] {
  display: none;
}
.supplier-property-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  min-width: 0;
}
.supplier-property-check input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--accent);
  margin: 2px 0 0;
  padding: 0;
}
.supplier-property-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.supplier-property-heading {
  display: grid;
  grid-template-columns: minmax(76px, max-content) minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  min-width: 0;
}
.supplier-property-code {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}
.supplier-property-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}
.supplier-property-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
  min-width: 0;
}
.supplier-property-categories span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
}
.supplier-property-indicator {
  min-height: 44px;
  padding: 7px 9px;
}
.supplier-property-indicator-select {
  display: grid;
  gap: 4px;
  padding: 0;
}
.supplier-property-indicator-select span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.supplier-property-indicator-select select {
  min-height: 44px;
  padding: 7px 9px;
}
.supplier-en388-indicator,
.supplier-en511-indicator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}
.supplier-cold-indicator {
  display: grid;
  gap: 10px;
  padding: 0;
}
.supplier-property-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.supplier-property-choice-group legend {
  flex: 0 0 100%;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 0;
}
.supplier-property-choice-group legend::before {
  display: none;
}
.supplier-property-choice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}
.supplier-property-choice input {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  accent-color: var(--accent);
  margin: 0;
}
.supplier-en388-indicator label,
.supplier-en511-indicator label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}
.supplier-en388-indicator select,
.supplier-en511-indicator select {
  min-height: 44px;
  padding: 7px 9px;
}
.supplier-property-indicator[hidden] {
  display: none;
}
.supplier-file-upload {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.supplier-file-title {
  color: var(--text);
  font-weight: 800;
}
.supplier-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 12px;
}
.supplier-file-button:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--surface);
}
.supplier-file-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.supplier-file-upload small {
  color: var(--muted);
  font-size: 13px;
}
.supplier-url-upload {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.supplier-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.supplier-url-row button {
  min-height: 44px;
  padding: 8px 12px;
  white-space: nowrap;
}
.supplier-url-upload textarea[readonly] {
  min-height: 72px;
}
.supplier-url-upload small {
  color: var(--muted);
  font-size: 13px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--surface);
  border-color: var(--focus);
}
.inline-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.suggestion-list {
  display: grid;
  gap: 4px;
  width: min(100%, 720px);
  max-height: 420px;
  margin-top: -8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.suggestion-list[hidden] {
  display: none;
}
.suggestion-list button {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  font-weight: 700;
}
.suggestion-list button:hover,
.suggestion-list button:focus,
.suggestion-list button[aria-selected="true"] {
  background: var(--surface-panel);
  color: var(--text);
}
.bulk-profession-picker {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.bulk-profession-picker > label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.bulk-preview-page .bulk-profession-picker > label {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}
.bulk-preview-page .bulk-profession-picker input[type="search"] {
  min-height: 48px;
  border-color: var(--line);
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  padding-inline: 12px 56px;
}
.bulk-profession-control {
  position: relative;
}
.bulk-profession-clear {
  position: absolute;
  top: 50%;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transform: translateY(-50%);
}
.bulk-profession-clear:hover,
.bulk-profession-clear:focus {
  border-color: var(--accent);
  background: var(--surface-muted);
  color: var(--text);
}
.bulk-profession-picker-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.bulk-preview-page .bulk-profession-picker-meta {
  color: var(--muted);
  font-size: 13px;
}
.bulk-profession-panel {
  position: absolute;
  right: auto;
  left: 0;
  top: calc(100% + 8px);
  z-index: var(--z-dropdown);
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 0;
}
.bulk-profession-panel button {
  min-height: 44px;
  padding-block: 8px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.row-summary-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
}
.row-summary-grid > label {
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.bulk-preview-page .row-summary-grid > label {
  color: var(--text);
}
.bulk-preview-page .row-summary-grid select {
  min-height: 48px;
  border-color: var(--line);
  color: var(--text);
}
.row-picker-stack {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 0;
}
.row-picker-stack > details {
  min-width: 0;
  min-height: 0;
}
.row-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  margin: 0 0 0 auto;
  width: max-content;
  padding: 0;
}
.bulk-preview-page {
  background: transparent;
  padding: 0;
}
.bulk-preview-page > h3 {
  margin: 0 0 16px;
  max-width: none;
  color: var(--text);
  font-size: 22px;
}
.bulk-preview-page > .empty-state {
  max-width: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  padding: 0;
}
.bulk-preview-form {
  max-width: none;
  width: 100%;
}
.bulk-selection-list {
  display: grid;
  gap: 24px;
  max-width: 100%;
  overflow-x: visible;
}
.bulk-row-form {
  display: grid;
  gap: 24px;
  min-width: 0;
  width: 100%;
  padding: 16px;
}
.bulk-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.bulk-row-header > div:first-child {
  min-width: 0;
}
.bulk-row-header > div:first-child > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.bulk-row-header h4 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.bulk-row-fields {
  display: grid;
  gap: 16px;
}
.bulk-row-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.bulk-row-action {
  min-height: 44px;
  padding: 8px 12px;
  white-space: nowrap;
}
.bulk-preview-page input[type="number"] {
  max-width: none;
  min-height: 48px;
  text-align: left;
}
.bulk-preview-page .reference-picker {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
}
.bulk-preview-page .reference-picker > summary {
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.35;
}
.bulk-preview-page .reference-picker-body {
  gap: 8px;
  max-height: min(520px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 16px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.bulk-preview-page .reference-picker-body > .empty-state {
  margin: 12px 0 4px;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.bulk-preview-page .hazard-group {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}
.bulk-preview-page .hazard-group > summary {
  cursor: pointer;
  display: list-item;
  color: var(--text);
  margin-bottom: 0;
  min-height: 44px;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}
.bulk-preview-page .hazard-group > summary span {
  color: var(--muted);
  font-size: 14px;
  margin-left: 8px;
}
.bulk-preview-page .checkbox-row {
  border-top: 1px solid var(--line);
  padding: 12px 8px;
}
.bulk-preview-page .checkbox-row input {
  accent-color: var(--accent);
  margin-top: 3px;
}
.bulk-preview-page .checkbox-row span {
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.bulk-preview-page .hazard-option {
  gap: 4px;
  min-width: 0;
}
.bulk-preview-page .hazard-option strong {
  font-size: 15px;
  line-height: 1.35;
}
.bulk-preview-page .hazard-option small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: break-word;
  white-space: normal;
}
.bulk-preview-page .actions-row {
  margin-top: 24px;
}
.bulk-preview-page .actions-row button {
  min-height: 48px;
  border-radius: 8px;
  background: var(--accent);
  box-shadow: none;
  padding-inline: 24px;
  font-size: 16px;
}
.bulk-edit-panel {
  margin-top: 32px;
}
.bulk-edit-panel > summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}
.bulk-edit-panel .bulk-preview-form {
  margin-top: 12px;
}
@media (max-width: 1180px) {
  .legal-document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .bulk-row-header {
    align-items: center;
    flex-wrap: wrap;
  }
  .row-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
    width: 100%;
  }
  .bulk-preview-page .bulk-profession-panel {
    right: auto;
    left: 0;
    width: 100%;
    max-width: 100%;
  }
  .bulk-preview-page .reference-picker > summary {
    align-items: flex-start;
  }
}
.button-icon {
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}
.profession-document {
  max-width: none;
  width: 100%;
}
.profession-document h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
}
.norms-table {
  margin-top: 0;
  box-shadow: none;
}
.norms-table th {
  font-size: 16px;
  line-height: 1.35;
}
.norms-table td {
  font-size: 17px;
  line-height: 1.55;
}
.quality-notice {
  border: 1px solid var(--warning-line);
  border-radius: var(--radius-panel);
  background: var(--warning-bg);
  color: var(--warning);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 12px 14px;
}
.norms-table th:first-child,
.norms-table td:first-child {
  width: 46%;
}
.norms-table th:nth-child(2),
.norms-table td:nth-child(2) {
  width: 28%;
}
.norms-table th:nth-child(3),
.norms-table td:nth-child(3),
.norms-table th:nth-child(4),
.norms-table td:nth-child(4) {
  width: 13%;
}
.reference-table th,
.reference-table td {
  width: auto;
  vertical-align: top;
}
.reference-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.hazard-reference-table {
  table-layout: fixed;
}
.hazard-reference-table th,
.hazard-reference-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}
.hazard-reference-table small,
.hazard-reference-table strong {
  display: block;
}
.hazard-reference-table small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  margin-top: 4px;
}
.hazard-reference-col-clause {
  width: 5%;
}
.hazard-reference-col-hazard {
  width: 15%;
}
.hazard-reference-col-event {
  width: 16%;
}
.hazard-reference-col-type {
  width: 16%;
}
.hazard-reference-col-construction {
  width: 20%;
}
.hazard-reference-col-quantity {
  width: 9%;
}
.hazard-reference-col-additional {
  width: 19%;
}
.document-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin: 26px 0 30px;
}
.document-pack {
  display: grid;
  gap: 16px;
}
.document-section {
  border: 1px solid var(--edge-accent-soft);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 18px 20px;
}
.document-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}
.legal-document-group-title {
  margin: 16px 0 10px;
  font-size: 16px;
}
.document-section h2 + .legal-document-group-title {
  margin-top: 0;
}
.legal-document-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.legal-document-grid .feature-tile {
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}
.legal-document-grid a.feature-tile {
  font-weight: inherit;
}
.legal-document-grid .tile-link {
  align-self: end;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}
.document-section ol {
  margin: 0;
  padding-left: 24px;
}
.document-section li {
  margin: 6px 0;
  color: var(--muted);
  line-height: 1.45;
}
.document-section a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.document-section a:hover {
  color: var(--accent-dark);
}
.document-section a.button:not(.button-secondary),
.document-section a.button:not(.button-secondary):hover {
  color: var(--surface);
}
.document-fields {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-width: none;
}
.print-form {
  border: 1px solid var(--edge-accent-soft);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 22px;
  margin: 0 0 20px;
}
.print-form h2 {
  margin: 0 0 16px;
  font-size: 24px;
}
.signature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}
.normative-box {
  border-radius: 8px;
  background: var(--surface-panel);
  padding: 22px 24px;
  margin: 0 0 28px;
}
.normative-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.normative-box p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.back-link {
  display: inline-flex;
  margin: 6px 0 28px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover {
  color: var(--accent-dark);
}
.calculation-panel {
  max-width: none;
  width: 100%;
  margin-top: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  overflow: hidden;
  border: 1px solid var(--edge-accent-soft);
  border-radius: var(--radius-panel);
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--surface-muted); color: var(--muted); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
ul { padding-left: 20px; }
li { margin: 8px 0; }
pre {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 14px;
}
[role="alert"] {
  border: 1px solid var(--danger-line);
  background: var(--danger-bg);
  padding: 12px 14px;
  border-radius: 8px;
}
code {
  background: var(--surface-muted);
  border-radius: 6px;
  padding: 2px 6px;
}
@media (max-width: 900px) {
  .supplier-property-row--with-indicator {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .app-shell { padding: 14px; }
  h1 { font-size: 30px; }
  .launch-board { flex-direction: column; }
  .page { padding: 18px; }
  .page--brand { padding: 0; }
  .page-header { display: block; }
  .legal-document-grid { grid-template-columns: 1fr; }
  .supplier-property-row {
    grid-template-columns: 1fr;
  }
  .supplier-property-row--with-indicator {
    grid-template-columns: 1fr;
  }
  .supplier-property-check {
    grid-template-columns: 18px minmax(0, 1fr);
  }
  .supplier-property-heading {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }
  .supplier-property-categories {
    justify-content: flex-start;
  }
  .supplier-en388-indicator,
  .supplier-en511-indicator {
    grid-template-columns: 1fr;
  }
  table { display: block; overflow-x: auto; }
  .cookie-notice { grid-template-columns: 1fr; }
}
