:root {
  --ink: #17221d;
  --muted: #627069;
  --line: #d9e1dc;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --canvas: #edf2ef;
  --brand: #126544;
  --brand-strong: #084a31;
  --brand-soft: #e1f1e9;
  --accent: #d7a62a;
  --danger: #b52d34;
  --danger-soft: #fce8e9;
  --success: #18623f;
  --shadow: 0 16px 40px rgba(23, 34, 29, 0.08);
  --radius: 16px;
  --radius-small: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #f8faf9 0, var(--canvas) 28rem); }
a { color: var(--brand); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.shell { width: min(100% - 2rem, 1240px); margin-inline: auto; }
.page { flex: 1; padding-block: 1.5rem 4rem; }
.narrow-page { width: min(100% - 2rem, 960px); }
.skip-link { position: fixed; z-index: 100; top: 0.5rem; left: 0.5rem; padding: 0.7rem 1rem; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { border-bottom: 1px solid rgba(217, 225, 220, 0.9); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: white; font-size: 1.35rem; font-weight: 800; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.brand strong, .brand small, .account-copy strong, .account-copy small { display: block; }
.brand strong { letter-spacing: -0.02em; }
.brand small, .account-copy small { margin-top: 0.08rem; color: var(--muted); font-size: 0.76rem; }
.account { display: flex; align-items: center; gap: 1rem; }
.account-copy { text-align: right; }
.account form { margin: 0; }
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(255,255,255,.65); color: var(--muted); font-size: 0.82rem; }
.footer-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

h1, h2 { margin: 0; letter-spacing: -0.035em; line-height: 1.12; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: 1.15rem; }
.eyebrow { margin-bottom: 0.5rem; color: var(--brand); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.lede { max-width: 64ch; margin: 0.75rem 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.page-heading { margin: 1.25rem 0 1.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.dashboard-heading { margin-top: 2.75rem; align-items: center; }
.list-heading, .detail-heading { align-items: center; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; color: var(--muted); font-size: 0.85rem; }
.breadcrumbs a { color: var(--muted); }

.dashboard-search-panel { margin-bottom: 1rem; padding: 1rem; }
.dashboard-search { display: grid; gap: 0.45rem; }
.dashboard-search > label { font-size: 0.84rem; font-weight: 750; }
.dashboard-search-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.65rem; }
.dashboard-search input { min-height: 46px; width: 100%; padding: 0.7rem 0.8rem; border: 1px solid #bfcac4; border-radius: 9px; background: white; color: var(--ink); }
.dashboard-search-results { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.search-results-heading, .search-result-group > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.search-results-heading h2 { font-size: 1.35rem; }
.search-results-heading p { margin: 0.3rem 0 0; color: var(--muted); }
.search-result-groups { margin-top: 1rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.search-result-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-small); }
.search-result-group > header { padding: 0.7rem 0.8rem; background: var(--surface-soft); }
.search-result-group h3 { margin: 0; font-size: 1rem; }
.search-result-group > header span { color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.search-result-group ul { margin: 0; padding: 0; list-style: none; }
.search-result-group li + li { border-top: 1px solid #e8edea; }
.search-result-group li a { min-height: 58px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.55rem 0.8rem; color: var(--ink); text-decoration: none; }
.search-result-group li a:hover { background: var(--surface-soft); color: var(--brand); }
.search-result-thumbnail { width: 64px; height: 40px; display: grid; place-items: center; }
.search-result-thumbnail img { width: 64px; height: 40px; display: block; object-fit: contain; }
.search-result-copy { min-width: 0; display: grid; gap: 0.2rem; }
.search-result-copy strong { overflow-wrap: anywhere; }
.search-result-copy small { display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem; color: var(--muted); font-size: 0.76rem; font-weight: 500; }
.search-result-more, .empty-search { margin: 0; padding: 0.75rem 0.8rem; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.65rem 1rem; border: 1px solid transparent; border-radius: 10px; cursor: pointer; text-decoration: none; font-weight: 750; line-height: 1; transition: transform 100ms ease, box-shadow 100ms ease, background 100ms ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(215,166,42,.5); outline-offset: 2px; }
.button-primary { background: var(--brand); color: white; box-shadow: 0 6px 16px rgba(18,101,68,.18); }
.button-primary:hover { background: var(--brand-strong); color: white; }
.button-secondary { border-color: var(--line); background: white; color: var(--ink); }
.button-secondary:hover, .button-quiet:hover { border-color: #b9c8c0; background: var(--surface-soft); color: var(--ink); }
.button-quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button-danger { background: var(--danger); color: white; }
.button-danger:hover { background: #8f1d24; color: white; }
.button-small { min-height: 36px; padding: 0.45rem 0.7rem; font-size: 0.82rem; }
.button-wide { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.65rem; }

.notice { margin: 1rem 0; padding: 0.9rem 1rem; border: 1px solid; border-radius: var(--radius-small); line-height: 1.45; }
.notice-success { border-color: #b7dbc8; background: #ebf7f0; color: var(--success); }
.notice-error { border-color: #efb7ba; background: var(--danger-soft); color: #811b21; }

.menu-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.menu-section { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: 0 8px 24px rgba(23,34,29,.04); }
.menu-section h2 { margin: 0 0 0.8rem; padding-inline: 0.15rem; font-size: 1.25rem; }
.main-menu { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.menu-item { min-height: 78px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 0.65rem; padding: 0.8rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface); color: var(--ink); text-decoration: none; }
.menu-item:hover { border-color: #afc6ba; background: var(--surface-soft); color: var(--ink); }
.menu-item:focus-visible { outline-offset: -3px; }
.menu-copy strong, .menu-copy small { display: block; }
.menu-copy strong { font-size: 1rem; }
.menu-copy small { margin-top: 0.18rem; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.count-badge { min-width: 2rem; display: inline-grid; place-items: center; padding: 0.3rem 0.55rem; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.menu-arrow { color: var(--brand); font-size: 1.15rem; }

.filter-list { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-chip { display: inline-flex; gap: 0.5rem; padding: 0.45rem 0.65rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 0.8rem; text-decoration: none; }
.clear-filters { margin-left: 0.2rem; font-size: 0.8rem; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.table-more { padding: 0.85rem 0.9rem; border-top: 1px solid var(--line); background: var(--surface-soft); text-align: center; font-weight: 750; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 0.8rem 0.9rem; border-bottom: 1px solid #e8edea; vertical-align: top; line-height: 1.45; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfb; }
.record-row { position: relative; }
.row-detail-link::after { position: absolute; z-index: 1; inset: 0; content: ""; cursor: default; }
.row-detail-link:focus-visible { outline: none; }
.row-detail-link:focus-visible::after { outline: 3px solid rgba(215,166,42,.65); outline-offset: -3px; }
.record-row a:not(.row-detail-link), .record-row button, .record-row input, .record-row select { position: relative; z-index: 2; }
.record-row a, .record-row button, .record-row label { cursor: pointer; }
.action-heading { width: 1%; }
.row-action-buttons { width: max-content; margin-left: auto; display: flex; gap: 0.25rem; }
.icon-button { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-weight: 800; text-decoration: none; }
.icon-button:hover { border-color: #aec0b6; background: var(--surface-soft); color: var(--brand); }
.icon-danger { color: var(--danger); }
.relation-link { white-space: nowrap; }
.image-heading { width: 1%; }
.image-cell { width: 1%; padding-block: 0.3rem !important; vertical-align: middle !important; }
.pointer-image-cell { width: 1%; padding-block: 0.3rem !important; vertical-align: middle !important; }
.pointer-image-link { display: block; width: max-content; }
.table-image { display: block; width: 72px; max-width: none; height: 36px; object-fit: contain; border: 0; border-radius: 0; background: transparent; }
.pointer-value { min-width: 0; display: inline-flex; align-items: center; gap: 0.55rem; }
.pointer-value span { min-width: 0; overflow-wrap: anywhere; }
.pointer-thumbnail { flex: 0 0 auto; display: block; object-fit: contain; border: 0; border-radius: 0; background: transparent; }
.detail-pointer-value { gap: 0.7rem; }
.detail-pointer-thumbnail { width: 72px; height: 48px; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.empty-cell { height: 180px; text-align: center; color: var(--muted); }
.empty-cell strong, .empty-cell span { display: block; }
.empty-cell strong { margin-bottom: 0.3rem; color: var(--ink); }

.detail-panel { padding: 1.25rem; }
.detail-list { margin: 1rem 0 0; }
.detail-row { display: grid; grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.8fr); gap: 1rem; padding: 0.9rem 0; border-top: 1px solid #e8edea; }
.detail-row dt { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.detail-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.external-search-link { display: block; width: max-content; max-width: 100%; margin-bottom: 0.4rem; font-size: 0.82rem; }
.empty-value { color: #87938d; font-style: italic; }
.record-image { display: block; width: auto; max-width: 240px; max-height: 240px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: white; }
.relation-section { margin-top: 3rem; }
.relation-heading { margin: 0 0 1rem; }
.relation-heading h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.relation-count { margin-top: 0.4rem; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.edit-form { padding: clamp(1rem, 3vw, 1.75rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.contact-form-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.contact-form-grid .contact-field-name { grid-column: 1 / -1; }
.contact-form-grid .contact-field-street { grid-column: span 9; }
.contact-form-grid .contact-field-number { grid-column: span 3; }
.contact-form-grid .contact-field-postcode { grid-column: span 3; }
.contact-form-grid .contact-field-city { grid-column: span 6; }
.contact-form-grid .contact-field-country { grid-column: span 3; }
.contact-form-grid .contact-field-channel { grid-column: span 6; }
.contact-form-grid .field-wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.42rem; }
.field-wide { grid-column: 1 / -1; }
.field > label, .field > span:first-child { color: var(--ink); font-size: 0.84rem; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; padding: 0.66rem 0.75rem; border: 1px solid #bfcac4; border-radius: 9px; background: white; color: var(--ink); }
.field textarea { resize: vertical; line-height: 1.5; }
.searchable-select { display: grid; gap: 0.5rem; }
.article-picker-combobox { position: relative; }
.article-picker-combobox .select-search { padding-right: 2.8rem; }
.article-picker-combobox.has-selected-thumbnail .select-search { padding-left: 3.25rem; }
.article-picker-selected-thumbnail[hidden], .article-picker-clear[hidden], .article-picker-results[hidden], .select-search-status[hidden] { display: none !important; }
.article-picker-selected-thumbnail { position: absolute; z-index: 2; top: 6px; left: 7px; width: 32px; height: 32px; display: block; object-fit: contain; pointer-events: none; }
.article-picker-clear { position: absolute; z-index: 2; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.15rem; line-height: 1; }
.article-picker-clear:hover { background: var(--surface-soft); color: var(--ink); }
.article-picker-results { position: absolute; z-index: 20; top: calc(100% + 0.3rem); right: 0; left: 0; max-height: 330px; overflow-y: auto; scrollbar-gutter: stable; border: 1px solid #bfcac4; border-radius: 9px; background: white; box-shadow: 0 14px 30px rgba(23, 34, 29, 0.16); }
.article-picker-option { width: 100%; display: grid; gap: 0.18rem; padding: 0.65rem 0.75rem; border: 0; border-bottom: 1px solid #e8edea; background: white; color: var(--ink); cursor: pointer; text-align: left; }
.article-picker-option.has-thumbnail { grid-template-columns: 56px minmax(0, 1fr); gap: 0.65rem; align-items: center; padding-block: 0.45rem; }
.article-picker-option:last-child { border-bottom: 0; }
.article-picker-option:hover, .article-picker-option.is-active { background: var(--brand-soft); }
.article-picker-option-copy { min-width: 0; display: grid; gap: 0.18rem; }
.article-picker-option-copy small { color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.article-picker-option-copy strong { overflow-wrap: anywhere; font-size: 0.84rem; line-height: 1.35; }
.article-picker-thumbnail-slot { width: 56px; height: 38px; display: grid; place-items: center; }
.article-picker-thumbnail { display: block; width: 56px; height: 38px; object-fit: contain; border: 0; background: transparent; }
.article-picker-empty { margin: 0; padding: 0.8rem 0.75rem; color: var(--muted); font-size: 0.82rem; }
.field small, .image-editor small { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.image-editor { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start; }
.image-preview-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); transition: border-color 120ms ease, box-shadow 120ms ease; }
.image-preview-card:focus-visible { outline: 3px solid rgba(20, 111, 75, 0.2); outline-offset: 2px; border-color: var(--brand); }
.image-preview-card.is-drag-over { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20, 111, 75, 0.14); }
.image-preview-card.is-drag-over .image-preview-frame { background: var(--brand-soft); }
.image-preview-frame { aspect-ratio: 4 / 3; display: grid; place-items: center; background: white; }
.image-editor-preview { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; border-radius: 0; object-fit: contain; }
.image-preview-card figcaption { padding: 0.65rem 0.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; line-height: 1.35; overflow-wrap: anywhere; }
.image-editor-controls { display: flex; flex-direction: column; gap: 0.75rem; }
.image-upload { display: flex; flex-direction: column; gap: 0.42rem; }
.image-file-input { padding: 0.45rem !important; cursor: pointer; }
.image-file-input::file-selector-button { min-height: 36px; margin-right: 0.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-soft); color: var(--ink); cursor: pointer; font-weight: 700; }
.image-file-input:hover::file-selector-button { border-color: #aec0b6; background: var(--brand-soft); color: var(--brand-strong); }
.image-upload-error { color: var(--danger) !important; font-weight: 700; }
.image-clear-option { width: max-content; display: inline-flex; gap: 0.5rem; align-items: center; color: var(--muted); cursor: pointer; font-size: 0.82rem; }
.image-clear-option input { width: auto; min-height: auto; margin: 0; accent-color: var(--danger); }
.form-actions { margin-top: 1.5rem; padding-top: 1.25rem; display: flex; justify-content: flex-end; gap: 0.65rem; border-top: 1px solid var(--line); }

.login-layout, .confirm-layout, .error-layout { flex: 1; display: grid; place-items: center; padding-block: 3rem 5rem; }
.login-card, .confirm-card, .error-card { width: min(100%, 500px); padding: clamp(1.4rem, 5vw, 2.5rem); }
.login-card .stack, .confirm-card .stack { margin-top: 1.5rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.totp-input { font: 700 1.2rem/1 ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: 0.3em; }
.confirm-card { text-align: center; }
.confirm-card .lede { margin-inline: auto; }
.confirm-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 1.5rem; font-weight: 850; }
.confirm-danger .confirm-symbol { background: var(--danger-soft); color: var(--danger); }
.impact-list { margin: 1.4rem 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; list-style: none; text-align: left; }
.impact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.85rem; }
.impact-list li + li { border-top: 1px solid var(--line); }
.confirm-card .field { text-align: left; }
.error-card { text-align: center; }
.error-code { margin-bottom: 0.4rem; color: var(--brand); font-size: 4rem; font-weight: 900; letter-spacing: -0.06em; }
.error-card .lede { margin-inline: auto; }
.error-card .button { margin-top: 1.5rem; }

@media (max-width: 820px) {
  .menu-sections, .search-result-groups { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .button-row { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .shell, .narrow-page { width: min(100% - 1rem, 1240px); }
  .header-row { min-height: 66px; }
  .brand-mark { width: 38px; height: 38px; }
  .account-copy { display: none; }
  .dashboard-heading { margin-top: 1.5rem; }
  .dashboard-search-controls { grid-template-columns: 1fr; }
  .dashboard-search-controls .button { width: 100%; }
  .menu-sections { gap: 0.75rem; }
  .menu-section { padding: 0.8rem; }
  .main-menu { gap: 0.6rem; }
  .menu-item { min-height: 68px; padding: 0.75rem 0.85rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .contact-form-grid .field { grid-column: 1 / -1; }
  .image-editor { grid-template-columns: 1fr; }
  .image-preview-card { width: min(100%, 240px); }
  .data-table, .data-table thead, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .data-table tr { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table td { display: grid; grid-template-columns: minmax(105px, .75fr) minmax(0, 1.25fr); gap: 0.75rem; padding: 0.45rem 0; border: 0; }
  .data-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.72rem; font-weight: 750; text-transform: uppercase; }
  .data-table .row-actions { min-width: 0; }
  .data-table .record-row.has-thumbnail { padding-right: 6.5rem; }
  .data-table .image-cell { display: block; width: 0; height: 0; padding: 0 !important; border: 0; }
  .data-table .image-cell::before { content: none; }
  .data-table .image-cell .table-image { position: absolute; top: 0.7rem; right: 0.9rem; }
  .data-table .pointer-image-cell { width: auto; padding: 0.45rem 0 !important; }
  .data-table .pointer-image-empty { display: block; width: 0; height: 0; padding: 0 !important; border: 0; }
  .data-table .pointer-image-empty::before { content: none; }
  .data-table .empty-cell { display: block; height: auto; padding: 2rem 0; }
  .data-table .empty-cell::before { content: none; }
  .detail-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .button { flex: 1 1 auto; }
  .footer-row { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
