:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #163440;
    background: #f4f8fa;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #f4f8fa; }
button, input, select, textarea { font: inherit; }
a { color: #139bb0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.03; letter-spacing: -.04em; }
h2 { margin-bottom: 8px; }
h3 { margin-bottom: 12px; }
p { color: #607784; line-height: 1.55; }
code { font-family: "Cascadia Code", Consolas, monospace; }

.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.page-heading p { max-width: 720px; margin-bottom: 0; }
.page-heading.compact h1 { font-size: 2.5rem; }
.eyebrow { display: block; margin-bottom: 8px; color: #139bb0; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card, .card { background: white; border: 1px solid #dce8ec; border-radius: 16px; box-shadow: 0 8px 32px rgba(20, 87, 110, .07); }
.feature-card { position: relative; padding: 28px; min-height: 210px; }
.feature-card small { color: #82969f; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.feature-card h2 { margin-top: 34px; }
.feature-card.ready { border-color: #8dddea; }
.feature-card.warning { border-color: #e8d4a7; }
.status-dot { position: absolute; right: 24px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: #17bbd5; box-shadow: 0 0 0 6px #e5f9fc; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; cursor: pointer; font-weight: 700; transition: .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button.primary { color: white; background: #107e90; }
.button.primary:hover { background: #139bb0; }
.button.secondary { color: #107e90; background: #e8f9fc; border-color: #bdeaf0; }
.button.ghost { color: #506a77; background: transparent; border-color: #d7e4e9; }
.button.danger { color: white; background: #a43c3c; }
.button.danger-outline { color: #9a3030; background: white; border-color: #e3b7b7; }
.button.small { min-height: 31px; padding: 5px 10px; font-size: .82rem; }
.button.full { width: 100%; }
.icon-button { border: 0; background: transparent; color: #6b818c; font-size: 1.6rem; cursor: pointer; }

.toolbar-card { padding: 18px; display: flex; align-items: end; gap: 14px; margin-bottom: 18px; }
.processing-bar { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin: -8px 0 18px; color: #843838; font-size: .85rem; }
.catalog-control-panel { margin-bottom: 10px; overflow: hidden; }
.catalog-control-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 12px 7px 16px; }
.catalog-title-inline { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.catalog-title-inline .eyebrow { margin: 0; white-space: nowrap; }
.catalog-title-inline h1 { margin: 0; font-size: 1.45rem; letter-spacing: -.025em; }
.catalog-context { overflow: hidden; color: #607784; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.catalog-filter-line { display: flex; align-items: end; gap: 10px; padding: 10px 14px 12px; border-top: 1px solid #dce8ec; background: #f7fbfd; }
.catalog-filter-line > label { min-width: 135px; }
.compact-filters { flex-wrap: nowrap; min-height: 38px; }
.compact-filters label { font-size: .76rem; }
.catalog-alert { position: fixed; z-index: 1900; top: 16px; right: 20px; max-width: min(560px, calc(100vw - 40px)); box-shadow: 0 12px 35px rgba(0, 0, 0, .16); }
label { display: grid; gap: 6px; color: #506a77; font-size: .82rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cadbe2; border-radius: 8px; background: white; color: #163440; padding: 10px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #17bbd5; box-shadow: 0 0 0 3px rgba(23, 187, 213, .14); }
textarea { resize: vertical; }
.grow { flex: 1; min-width: 180px; }
.filter-checks { display: flex; align-items: center; gap: 12px; min-height: 42px; flex-wrap: wrap; }
.checkbox-line { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.checkbox-line input { width: auto; }

.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
.group-list-card, .detail-card { overflow: hidden; }
.section-title { min-height: 70px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #e3edf1; }
.section-title h2, .section-title h3 { margin-bottom: 2px; }
.section-title span:not(.eyebrow) { color: #738791; font-size: .82rem; }
.detail-heading { align-items: start; }
.table-scroll { overflow: auto; }
.group-scroll { max-height: 38vh; min-height: 250px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th { position: sticky; top: 0; z-index: 1; background: #f6fafc; color: #6b808a; text-align: left; padding: 10px 12px; border-bottom: 1px solid #dce8ec; white-space: nowrap; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid #eaf1f4; vertical-align: top; }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover, .data-table tr.selected { background: #eaf8fb; }
.category-row td { background: #f0f5f7; color: #4b6571; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.groups-table td:nth-child(2) { max-width: 230px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.child-table td:nth-child(3) { max-width: 430px; }
.json-preview { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #405b67; }
.variant-row td { transition: background-color .15s ease; }
.variant-row.selected td { border-bottom-color: #a9e3ec; }
.edit-hint { color: #139bb0; font-size: .75rem; font-weight: 800; }
.variant-editor-row > td { padding: 0; background: #f5fbfd; }
.variant-editor-row:hover > td { background: #f5fbfd; }
.desktop-groups-table { min-width: 1380px; }
.desktop-groups-table td:nth-child(4), .desktop-groups-table td:nth-child(5), .desktop-groups-table td:nth-child(6) { max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legacy-function-panel { overflow: hidden; }
.selected-group-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-bottom: 1px solid #dce8ec; background: #f7fbfd; }
.selected-group-bar .eyebrow { margin-bottom: 3px; }
.desktop-catalog-layout { height: calc(100dvh - 146px); min-height: 530px; grid-template-rows: minmax(180px, 30%) 43px minmax(0, 1fr); align-items: stretch; row-gap: 8px; overflow: hidden; }
.desktop-catalog-layout.filters-open { height: calc(100dvh - 226px); min-height: 450px; }
.desktop-groups-panel, .desktop-detail-panel { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.desktop-groups-panel .section-title, .desktop-detail-panel .section-title { min-height: 46px; padding: 8px 14px; }
.desktop-groups-panel .section-title h2, .desktop-detail-panel .section-title h2 { font-size: 1.05rem; margin-bottom: 0; }
.desktop-groups-panel .group-scroll, .desktop-detail-panel .child-grid-scroll { flex: 1; min-height: 0; max-height: none; }
.legacy-function-toolbar { height: 100%; display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; padding: 5px 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.legacy-function-toolbar .button { white-space: nowrap; }
.legacy-function-toolbar .tool-button { min-height: 29px; padding: 4px 8px; border-radius: 7px; font-size: .7rem; }
.no-group-function { justify-content: center; color: #738791; font-size: .76rem; font-weight: 700; }
.no-group-detail { flex: 1; min-height: 0; display: grid; place-items: center; color: #82969f; font-size: .84rem; }
.toolbar-divider { align-self: stretch; width: 1px; flex: 0 0 1px; margin: 1px 2px; background: #cadbe2; }
.tool-target { margin-left: auto; padding: 3px 7px; border-radius: 999px; background: #e8f9fc; color: #107e90; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.legacy-selection-note { margin: 0; padding: 0 18px 13px; color: #738791; font-size: .78rem; }
.child-grid-scroll { max-height: 45vh; min-height: 280px; }
.desktop-child-table { min-width: 1450px; table-layout: fixed; }
.desktop-child-table th:nth-child(1) { width: 42px; }
.desktop-child-table th:nth-child(2) { width: 95px; }
.desktop-child-table th:nth-child(3) { width: 90px; }
.desktop-child-table th:nth-child(4) { width: 180px; }
.desktop-child-table th:nth-child(5), .desktop-child-table th:nth-child(6) { width: 480px; }
.desktop-child-table th:nth-child(7) { width: 90px; }
.desktop-child-table td:nth-child(3) { max-width: none; }
.grid-json-value { display: block; max-height: 5.8em; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #405b67; font-size: .78rem; line-height: 1.4; }
.replacement-cell { position: relative; }
.variant-picture-preview { position: fixed; z-index: 2200; right: 22px; bottom: 22px; width: 302px; max-width: calc(100vw - 44px); display: none; padding: 6px; border: 1px solid #9fdce6; border-radius: 10px; background: white; box-shadow: 0 18px 55px rgba(5, 27, 35, .3); pointer-events: none; }
.replacement-cell:hover .variant-picture-preview { display: grid; gap: 5px; }
.variant-picture-preview img { display: block; width: 100%; height: 290px; object-fit: contain; border-radius: 6px; background: #f4f8fa; }
.variant-picture-preview small { overflow: hidden; color: #506a77; font-size: .7rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.dialog-target { padding: 10px 12px; border-radius: 8px; background: #e8f9fc; color: #107e90; font-weight: 750; }
.all-attributes-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; background: rgba(5, 27, 35, .58); backdrop-filter: blur(3px); }
.modal-window { width: min(100%, 760px); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #b9dfe6; border-radius: 16px; background: white; box-shadow: 0 28px 90px rgba(0, 0, 0, .3); }
.modal-small { width: min(100%, 520px); }
.modal-medium { width: min(100%, 760px); }
.modal-large { width: min(100%, 1120px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #dce8ec; background: #f7fbfd; }
.modal-header h2 { margin: 0; }
.modal-body { overflow: auto; padding: 22px; }
.modal-body > label { margin-bottom: 14px; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid #dce8ec; background: #f7fbfd; }
.modal-footer-spread { justify-content: space-between; }
.modal-footer > div { display: flex; align-items: center; gap: 8px; }
.context-action-list { display: grid; gap: 9px; }
.context-action-list .button { justify-content: flex-start; }
.context-menu-layer { position: fixed; inset: 0; z-index: 2050; background: transparent; }
.group-context-menu { position: fixed; left: clamp(8px, var(--context-menu-x), calc(100vw - 278px)); top: clamp(8px, var(--context-menu-y), calc(100vh - 274px)); width: 270px; display: grid; gap: 2px; padding: 6px; border: 1px solid #b9dfe6; border-radius: 10px; background: white; box-shadow: 0 16px 48px rgba(5, 27, 35, .25); }
.context-menu-title { padding: 7px 9px 8px; overflow: hidden; border-bottom: 1px solid #e3edf1; color: #139bb0; font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.group-context-menu button { width: 100%; min-height: 32px; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: #163440; text-align: left; cursor: pointer; }
.group-context-menu button:hover, .group-context-menu button:focus-visible { background: #e8f9fc; color: #107e90; outline: none; }
.group-context-menu button:disabled { opacity: .45; cursor: not-allowed; }
.detail-context-menu { top: clamp(8px, var(--context-menu-y), calc(100vh - 116px)); }
.popup-workspace-marker { display: none; }
body:has(.popup-workspace-marker) .app-shell { grid-template-columns: minmax(0, 1fr); }
body:has(.popup-workspace-marker) .sidebar { display: none; }
body:has(.popup-workspace-marker) .main-content { padding: 14px; }
body:has(.popup-workspace-marker) .page-heading { margin-bottom: 12px; }
body:has(.popup-workspace-marker) .page-heading.compact h1 { margin-bottom: 2px; font-size: 1.65rem; }
body:has(.popup-workspace-marker) .page-heading p { display: none; }
body:has(.popup-workspace-marker) .workspace-tabs { margin-bottom: .65rem; }
body:has(.popup-workspace-marker) .workspace-card { padding: .9rem; }
body:has(.popup-workspace-marker) .workspace-card > .section-title { margin: -.9rem -.9rem .75rem; }
.badge, .status-pill { display: inline-flex; border-radius: 999px; padding: 3px 8px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.badge.good, .status-pill.valid { color: #0e7182; background: #def6fa; }
.badge.bad, .status-pill.invalid { color: #9b3434; background: #f9e2e2; }
.media-count { white-space: nowrap; color: #6b808a; }

.editor-panel { padding: 20px; background: #fbfdfe; border-top: 1px solid #dce8ec; }
.translation-editor { border-top: 2px solid #17bbd5; }
.translation-editor > label { margin-bottom: 14px; }
.translation-editor .section-title { margin: -20px -20px 18px; background: white; }
.editor-navigation { display: flex; align-items: center; gap: 7px; }
.editor-actions { position: sticky; bottom: 0; z-index: 2; margin: 18px -20px -20px; padding: 12px 20px; border-top: 1px solid #dce8ec; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); }
.code-editor { font-family: "Cascadia Code", Consolas, monospace; font-size: .8rem; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.span-2 { grid-column: span 2; }
.button-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.button-row.spread { justify-content: space-between; }
.button-row.spread > div { display: flex; gap: 8px; }
.confirm-inline { display: flex; align-items: center; gap: 8px; color: #8c3434; font-size: .82rem; font-weight: 700; }
.json-tools { display: flex; flex-wrap: wrap; gap: 7px; margin: -7px 0 14px; }
.bulk-panel { margin: .8rem; padding: .75rem 1rem; border: 1px solid #dbe8ed; border-radius: 10px; background: #f7fbfd; }
.bulk-panel summary { cursor: pointer; color: #3e5c69; font-weight: 800; }
.bulk-panel summary span { color: #738791; font-size: .8rem; font-weight: 600; }
.bulk-selection { display: flex; gap: .5rem; margin: .9rem 0; }
.bulk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; align-items: end; }
.confirm-copy { color: #843838; font-size: .86rem; font-weight: 750; }
.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; }

.back-link { display: inline-block; margin-bottom: .75rem; color: #607784; text-decoration: none; }
.back-link:hover { color: #163440; }
.workspace-tabs { display: flex; gap: .35rem; margin: 0 0 1rem; overflow-x: auto; }
.workspace-tabs button { border: 1px solid #d4e2e8; border-radius: 999px; background: white; color: #607784; padding: .65rem 1rem; white-space: nowrap; cursor: pointer; }
.workspace-tabs button.active { border-color: #17bbd5; background: #e8f9fc; color: #107e90; }
.workspace-tabs span { display: inline-flex; min-width: 1.35rem; height: 1.35rem; margin-left: .3rem; align-items: center; justify-content: center; border-radius: 999px; background: rgba(0, 0, 0, .07); font-size: .75rem; }
.workspace-card { padding: 1.25rem; }
.workspace-card > .section-title { margin: -1.25rem -1.25rem 1rem; }
.content-form { margin: 1rem 0; }
.field-count { float: right; color: #738791; font-size: .75rem; }
.muted { color: #738791; }
.category-manager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 1fr); gap: 2rem; margin-top: 1rem; }
.category-picker { display: grid; gap: .8rem; }
.category-picker select { min-height: 18rem; }
.assignment-list, .media-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.assignment-list li, .media-list li { display: flex; align-items: center; gap: .7rem; padding: .7rem 0; border-bottom: 1px solid #e1ebef; }
.assignment-list li span:first-child { flex: 1; }
.inline-add { display: flex; align-items: end; gap: .75rem; margin: 1rem 0; }
.video-add label:first-child { width: 12rem; }
.order-number { width: 1.8rem; color: #738791; text-align: right; }
.picture-list small { display: block; color: #738791; overflow-wrap: anywhere; }
.media-url { overflow-wrap: anywhere; }
.notice { margin-top: 1rem; color: #738791; font-size: .86rem; }
.upload-panel { display: grid; grid-template-columns: minmax(16rem, .65fr) minmax(28rem, 1.35fr); gap: 1.5rem; align-items: start; padding: 1rem; border: 1px dashed #b8d9e2; border-radius: 12px; background: #f5fbfd; }
.file-picker { min-height: 8rem; place-items: center; align-content: center; padding: 1rem; border-radius: 9px; background: white; text-align: center; cursor: pointer; }
.file-picker input { margin-top: .7rem; }
.upload-panel small { display: block; margin-top: .5rem; color: #738791; text-align: center; }
.processing-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.advanced-panel { margin-top: .8rem; color: #607784; }
.advanced-panel summary { cursor: pointer; font-size: .85rem; font-weight: 700; }
.picture-thumb { width: 68px; height: 68px; flex: 0 0 68px; object-fit: contain; border: 1px solid #dce8ec; border-radius: 8px; background: white; }
.replace-file { display: inline-flex; color: #107e90; font-size: .82rem; }
.replace-file input { display: none; }
.web-picker { margin-top: 1rem; }
.web-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: .75rem; margin-top: 1rem; }
.web-image-grid article { display: grid; gap: .5rem; padding: .6rem; border: 1px solid #dce8ec; border-radius: 9px; background: white; }
.web-image-grid img { width: 100%; height: 130px; object-fit: contain; background: #f4f8fa; }
.web-image-grid small { height: 2.5rem; overflow: hidden; color: #607784; overflow-wrap: anywhere; }
.suggestion-list { list-style: none; margin: .75rem 0 1rem; padding: .7rem 1rem; border-radius: 10px; background: #f2f8fa; }
.suggestion-list li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; }
.suggestion-list small { display: block; color: #738791; overflow-wrap: anywhere; }
.groups-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.groups-column { padding: 1rem; }
.groups-column > .section-title { margin: -1rem -1rem 1rem; }
.compact-add { align-items: center; margin: 0 0 .75rem; }
.list-filter { margin-bottom: .5rem; }
.select-list { list-style: none; max-height: calc(100vh - 390px); min-height: 18rem; overflow: auto; padding: 0; margin: 0 0 1rem; border: 1px solid #dce8ec; border-radius: 9px; }
.select-list li { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem .8rem; border-bottom: 1px solid #eaf1f4; cursor: pointer; }
.select-list li:hover, .select-list li.selected { background: #e8f9fc; }
.select-list li span { color: #738791; }
.move-row { display: flex; align-items: end; gap: .6rem; }
.unsaved { color: #748994; font-size: .8rem; }
.unsaved.visible { color: #a16a13; font-weight: 750; }

.alert { padding: 13px 16px; margin-bottom: 18px; border-radius: 10px; font-weight: 650; }
.alert.success { color: #0e7182; background: #e3f7fa; border: 1px solid #b9e6ed; }
.alert.danger { color: #8d3030; background: #fae7e7; border: 1px solid #efc3c3; }
.loading-panel, .empty-state { display: grid; place-items: center; text-align: center; min-height: 330px; }
.empty-state.small { min-height: 180px; padding: 30px; }
.spinner { width: 22px; height: 22px; border: 3px solid #b9dfe6; border-top-color: #17bbd5; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 20% 10%, rgba(23, 187, 213, .28), transparent 34%), #092d38; }
.login-card { width: min(440px, 100%); padding: 34px; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.login-brand { display: flex; align-items: center; gap: 11px; color: #163440; margin-bottom: 38px; }
.login-brand small { display: block; color: #81949e; }
.form-stack { display: grid; gap: 16px; }

#blazor-error-ui { color-scheme: light; background: #fff4ca; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); box-sizing: border-box; display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

@media (max-width: 1250px) {
    .catalog-layout { grid-template-columns: 1fr; }
    .group-scroll { max-height: 500px; }
}
@media (max-width: 820px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .page-heading, .toolbar-card { align-items: stretch; flex-direction: column; }
    .filter-checks { display: grid; grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .category-manager { grid-template-columns: 1fr; }
    .inline-add { align-items: stretch; flex-direction: column; }
    .video-add label:first-child { width: auto; }
    .upload-panel { grid-template-columns: 1fr; }
    .processing-options { grid-template-columns: 1fr; }
    .bulk-grid { grid-template-columns: 1fr; }
    .groups-editor { grid-template-columns: 1fr; }
    .move-row { align-items: stretch; flex-direction: column; }
    .catalog-control-heading, .catalog-title-inline, .catalog-filter-line { align-items: stretch; flex-direction: column; }
    .catalog-title-inline { gap: 4px; }
    .compact-filters { display: grid; }
    .desktop-catalog-layout, .desktop-catalog-layout.filters-open { height: auto; min-height: 0; grid-template-rows: none; overflow: visible; }
    .group-scroll, .child-grid-scroll { max-height: 430px !important; }
    .selected-group-bar, .modal-footer-spread { align-items: stretch; flex-direction: column; }
    .modal-backdrop { padding: 8px; }
    .modal-window { max-height: calc(100vh - 16px); }
    .modal-footer, .modal-footer > div { align-items: stretch; flex-direction: column; }
}
