:root {
  --ds-space-1: 4px; --ds-space-2: 8px; --ds-space-3: 12px; --ds-space-4: 16px; --ds-space-6: 24px;
  --ds-ink: #17243a; --ds-muted: #586b83; --ds-accent: #1764dc; --ds-bg: #f5f8fc;
  --ds-surface: #fff; --ds-border: #dce5f0; --ds-line: #e8eef5; --ds-soft: #edf4ff;
  --ds-work-bg: #eaf0f7; --ds-panel-tint: #e9f1fc; --ds-filter-tint: #f4f8fe;
  --ds-title: #244c7b; --ds-selected: #e2edff; --ds-row-alt: #f8fafd;
  --ds-positive-soft: #eaf5f4; --ds-positive-ink: #1b6c66;
  --ds-warning-soft: #fff4e3; --ds-warning-ink: #876027;
  --ds-doc-state-muted: #64748b; --ds-doc-state-posted: #15803d; --ds-doc-state-deletion: #dc2626;
  --ds-table-row-hover: #eff6ff; --ds-table-row-selected: #e8f0fe; --ds-table-focus-ring: #2563eb;
  --ds-radius: 8px; --ds-control-height: 38px; --ds-font: 14px; --ds-table-font: 13px;
}
.ds-page.page-shell { width: 100%; max-width: none; min-width: 0; padding: 18px 24px 28px; box-sizing: border-box; }
.ds-page { color: var(--ds-ink); font-size: var(--ds-font); line-height: 1.4; }
.ds-page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 16px; }
.ds-page-header > div { min-width: 0; }
.ds-page-header h1 { margin: 0; font-size: 28px; line-height: 1.25; letter-spacing: -.025em; }
.ds-eyebrow { margin: 0 0 4px; color: var(--ds-muted); font-size: 12px; }
.ds-header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ds-panel { min-width: 0; max-width: 100%; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-surface); box-shadow: 0 2px 6px rgb(23 36 58 / 3%); }
.ds-filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 0 0 16px; min-width: 0; }
.ds-filter-bar--documents { display: grid; grid-template-columns: minmax(220px,1fr) 160px 160px auto auto; }
.ds-field { display: grid; gap: 4px; min-width: 0; }
.ds-field > span { color: var(--ds-muted); font-size: 12px; font-weight: 600; }
.ds-field--search { flex: 1 1 260px; }
:is(.ds-page,.ds-touch,.ds-controls) .ds-input, :is(.ds-page,.ds-touch,.ds-controls) .ds-select, :is(.ds-page,.ds-touch,.ds-controls) .ds-textarea {
  box-sizing: border-box; min-width: 0; max-width: 100%; min-height: var(--ds-control-height); height: var(--ds-control-height);
  border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-surface); color: var(--ds-ink); font: inherit; padding: 8px 10px;
}
.ds-field :is(.ds-input,.ds-select) { width: 100%; }
.ds-page .ds-textarea { height: auto; min-height: 96px; resize: vertical; }
:is(.ds-page,.ds-touch,.ds-controls) .ds-button.ds-button {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ds-control-height);
  border: 1px solid var(--ds-accent); border-radius: var(--ds-radius); background: var(--ds-accent); color: #fff;
  font: inherit; font-weight: 600; line-height: 1.2; padding: 8px 14px; white-space: normal; max-width: 100%; text-align: center; text-decoration: none; cursor: pointer;
}
:is(.ds-page,.ds-touch,.ds-controls) .ds-button.ds-button--secondary { border-color: var(--ds-border); background: var(--ds-surface); color: var(--ds-accent); }
:is(.ds-page,.ds-touch,.ds-controls) .ds-button.ds-button--compact { min-height: 28px; padding: 4px 8px; font-size: 12px; }
:is(.ds-page,.ds-touch,.ds-controls) .ds-button.ds-button--icon { width: var(--ds-control-height); padding: 4px; }
.ds-button:disabled, .ds-input:disabled, .ds-select:disabled { opacity: .6; cursor: not-allowed; }
.ds-status { display: inline-flex; align-items: center; max-width: 100%; gap: 4px; padding: 4px 8px; border-radius: 16px; background: var(--ds-soft); color: var(--ds-accent); font-size: 12px; }
.ds-page .ds-tabs:not(.ds-tabs--native-layout) { display: flex; }
.ds-page .ds-tabs { flex-wrap: wrap; align-items: center; gap: 4px; width: auto; max-width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--ds-border); border-radius: 0; background: transparent; box-shadow: none; }
.ds-page .ds-tabs :is(a,button), .ds-page .ds-tab { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; min-width: 0; padding: 8px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--ds-muted); font: inherit; font-weight: 600; text-decoration: none; box-shadow: none; cursor: pointer; }
.ds-page .ds-tabs :is(a,button):is(:hover,:focus-visible), .ds-page .ds-tab:is(:hover,:focus-visible) { background: var(--ds-soft); color: var(--ds-ink); }
.ds-page .ds-tabs :is(.is-active,.active,[aria-current="page"],[aria-current="step"],[aria-selected="true"]), .ds-page .ds-tab:is(.is-active,.active,[aria-current="page"],[aria-current="step"],[aria-selected="true"],[aria-pressed="true"]) { background: var(--ds-soft); border-bottom-color: var(--ds-accent); color: var(--ds-accent); }
.ds-page .ds-tabs :disabled, .ds-page .ds-tab:disabled { opacity: .6; cursor: not-allowed; }
.ds-page .ds-table-scroll { box-sizing: border-box; display: block; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: thin; overscroll-behavior-x: contain; margin: 0; }
.ds-page .ds-table { width: 100%; border-collapse: collapse; table-layout: auto; margin: 0; }
.ds-page .ds-table :is(th,td) { padding: 8px 10px; border-bottom: 1px solid var(--ds-line); vertical-align: top; font-size: var(--ds-table-font); line-height: 1.35; overflow-wrap: normal; word-break: normal; }
.ds-page .ds-table th { color: var(--ds-muted); background: #f7f9fc; text-transform: none; font-weight: 600; letter-spacing: normal; }
.ds-table tbody tr:hover { background: #f7faff; }

.ds-table .ds-col-date { min-width: 132px; white-space: nowrap; }
.ds-table .ds-col-id { min-width: 110px; white-space: nowrap; }
.ds-table .ds-col-number { min-width: 100px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds-table .ds-col-name { min-width: 120px; width: 140px; }
.ds-table .ds-col-status { min-width: 70px; }
.ds-table .ds-col-action { min-width: 86px; white-space: nowrap; }
.ds-page .ds-table--documents { min-width: 1240px; table-layout: fixed; }
.ds-table--documents .ds-col-date { width: 118px; min-width: 0; }
.ds-table--documents.ds-table--invoices .ds-col-date { width: 174px; }
.ds-page .ds-table--invoices { min-width: 1388px; }
.ds-table--documents .ds-col-id { width: 160px; min-width: 0; }
.ds-table--documents .ds-col-number { width: 136px; min-width: 0; }
.ds-table--documents .ds-col-name { width: auto; min-width: 0; }
.ds-table--documents .ds-col-status { width: 100px; min-width: 0; }
.ds-table--documents .ds-col-action { width: 100px; min-width: 0; }
.ds-table--documents .ds-text, .ds-table--documents .ds-text[open] { width: 100%; }

.ds-text { width: 140px; max-width: 100%; }
.ds-text summary { display: flex; align-items: start; gap: 4px; list-style: none; cursor: pointer; color: inherit; }
.ds-text summary::-webkit-details-marker { display: none; }
.ds-text summary::after { content: "⌄"; flex: 0 0 auto; color: var(--ds-muted); }
.ds-text summary > span { min-width: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ds-text[open] { width: 220px; }
.ds-text[open] summary > span { display: none; }
.ds-text > div { padding-top: 4px; white-space: normal; overflow-wrap: anywhere; }
.ds-text-value { display: block; max-width: 180px; overflow-wrap: anywhere; }
.ds-page :focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
@media (max-width: 900px) {
  .ds-filter-bar--documents { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .ds-field--search { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ds-page.page-shell { padding: 14px 12px 24px; }
  .ds-page-header h1 { font-size: 24px; }
  .ds-filter-bar { gap: 8px; }
  .ds-page .ds-table-scroll { touch-action: pan-x pan-y; }
}

.ds-page.auth-page-shell { padding: 0; }

/* Native hidden state must outrank visual display variants. */
:is(.ds-page,.ds-touch,.ds-controls) [hidden] { display: none !important; }

.ds-page .ds-select[size]:not([size="1"]), .ds-page .ds-select[multiple] { height: auto; }
:is(.ds-page,.ds-touch,.ds-controls) .ds-button.ds-button--danger { color: #fff; background: #b42318; border-color: #b42318; }

.ds-page .ds-filter-bar:not(.ds-filter-bar--documents):not(.ds-filter-bar--native-layout) { display: flex; flex-wrap: wrap; gap: 12px; }
.ds-page .ds-filter-bar > label { min-width: 0; max-width: 100%; }
.ds-modal { box-sizing: border-box; width: min(720px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 16px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); color: var(--ds-ink); background: var(--ds-surface); }
.ds-modal::backdrop { background: rgb(23 36 58 / 42%); }
.ds-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-modal h2 { margin: 0; font-size: 18px; }
.ds-modal :focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }

.ds-touch { --ds-control-height: 44px; }
.ds-touch .ds-button--touch { min-height: 44px; }
.ds-touch :is(.ds-input,.ds-select,.ds-button):focus-visible { outline: 2px solid var(--ds-accent); outline-offset: 2px; }
.ds-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(200px,100%),1fr)); gap: 12px; }
.ds-number, .ds-page .metric-card .ds-number { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ds-link-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 220px; overflow-wrap: anywhere; }

.ds-touch .ds-native-header { color: var(--ds-ink); }
.ds-touch :is(.ds-native-nav,.ds-native-filter) { font-size: var(--ds-font); }
.ds-touch .ds-button--secondary[aria-pressed="true"], .ds-touch .ds-native-nav .ds-button.active { background: var(--ds-soft); border-color: var(--ds-accent); color: var(--ds-accent); }

.ds-panel--padded { padding: var(--ds-space-4); margin: var(--ds-space-4) 0; }

:is(.ds-page,.ds-touch,.ds-controls) .ds-button.ds-button:is(:hover,:focus-visible) { background: #124fae; border-color: #124fae; color: #fff; }
:is(.ds-page,.ds-touch,.ds-controls) .ds-button.ds-button--secondary:is(:hover,:focus-visible) { background: var(--ds-soft); border-color: var(--ds-accent); color: #124fae; }
.ds-page .ds-entity-link { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #124fae; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: normal; }
.ds-page .ds-entity-link:is(:visited,:hover,:focus-visible,:active) { background: transparent; color: #124fae; }
.ds-page .ds-entity-link:is(:hover,:focus-visible) { text-decoration: underline; }
.ds-page .ds-metric-action { color: var(--ds-ink); background: var(--ds-surface); font: inherit; text-decoration: none; }
.ds-page .ds-metric-action:is(:hover,:focus-visible) { background: var(--ds-soft); }
.ds-page .ds-metric-action :is(small,.muted) { color: var(--ds-muted); }
.ds-page .ds-section-links { margin: 16px 0; }
.ds-choice { display: flex; flex-wrap: wrap; gap: 4px; }
.ds-choice label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--ds-border); border-radius: var(--ds-radius); background: var(--ds-surface); color: var(--ds-ink); cursor: pointer; }
.ds-choice label:has(input:checked) { color: #124fae; background: var(--ds-soft); border-color: var(--ds-accent); }
.ds-choice label:has(input:focus-visible) { outline: 2px solid var(--ds-accent); outline-offset: 2px; }

:is(.ds-page,.ds-touch,.ds-controls) .ds-button.ds-button--wrap { max-width: 100%; white-space: normal; text-align: left; }

.ds-table--orders .ds-col-status, .ds-table--purchases .ds-col-status { width: 148px; }

.ds-page .ds-tabs :is(a,button) :is(span,small) { opacity: 1; color: inherit; }

.ds-page .ds-page-header :is(.eyebrow,p:not(.ds-eyebrow)) { color: var(--ds-muted); }

.ds-page .detail-sections > * { min-width: 0; }
.ds-page :is(small,span,p).ds-caption.ds-caption { color: var(--ds-muted); opacity: 1; }

:is(.ds-page,.ds-touch,.ds-controls) .ds-button :is(small,span):not(.logistics-availability-pill):not(.ds-count):not(.ds-status) { color: inherit; opacity: 1; }
.ds-page :is(.ds-button,.ds-tabs) .ds-count.ds-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; padding: 2px 6px; border-radius: 12px; background: var(--ds-soft); color: #124fae; opacity: 1; }

.ds-page .ds-button .ds-caption.ds-caption { color: inherit; }

.ds-page .metric-grid.ds-metrics { grid-template-columns: repeat(auto-fit,minmax(min(200px,100%),1fr)); }
.ds-page :is(.ds-metrics, .metric-grid) > .metric-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ds-page .portal-stats { grid-template-columns: repeat(auto-fit,minmax(min(200px,100%),1fr)); }
.ds-page .portal-stat strong { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.ds-page .warehouse-demand-toolbar .warehouse-demand-category-select { flex-basis: auto; width: 250px; }
.ds-page .manager-motivation-preview-detail-card dl > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.ds-page .manager-motivation-preview-detail-card :is(dt,dd) { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .ds-page .ds-filter-bar:not(.ds-filter-bar--documents):not(.ds-filter-bar--native-layout) > :is(input,select,label) { flex-basis: auto; }
  .ds-page .manager-motivation-mobile-save { flex-wrap: wrap; height: auto; }
  .ds-page .manager-motivation-mobile-save > div { flex: 1 1 100%; }
  .ds-page .manager-motivation-mobile-save strong { white-space: normal; }
  .ds-page .manager-motivation-mobile-save :is(a,button) { flex: 1 1 auto; }
}

.ds-page .logistics-destructive-action button.ds-button--danger { color: #fff; background: #b42318; border-color: #b42318; }
.ds-page .logistics-destructive-action button.ds-button--danger:is(:hover,:focus-visible) { background: #8c1c13; border-color: #8c1c13; }
.ds-page .work-chat-row.is-active { background: #0f766e; color: #fff; }
.ds-page .work-chat-row.is-active :is(.work-chat-preview,.work-chat-line time) { color: #fff; opacity: 1; }
.ds-page .work-message-bubble time { color: #52665e; }
.ds-page .reserve-selected-line small, .ds-page .manager-motivation-tier-limit { color: var(--ds-muted); opacity: 1; }

.ds-page .abcxyz-matrix { overflow-x: auto; grid-template-columns: 60px repeat(3,minmax(120px,1fr)); }
.ds-page .abcxyz-matrix-cell { display: grid; white-space: normal; }

/* Process geometry stays with its owner; these roles share surfaces and hierarchy. */
.ds-page .ds-panel .ds-panel-heading.ds-panel-heading { background: var(--ds-panel-tint); color: var(--ds-title); border-bottom-color: var(--ds-border); box-shadow: inset 3px 0 var(--ds-accent); }
.ds-page .ds-panel-heading :is(h2,h3,strong,span) { color: var(--ds-title); font-weight: 600; }
.ds-page .ds-filter-bar { background: var(--ds-filter-tint); border-color: var(--ds-border); }
.ds-page .ds-metric { background: var(--ds-soft); color: var(--ds-muted); box-shadow: inset 0 2px #8bafe4; }
.ds-page .ds-metric strong { color: var(--ds-title); font-weight: 600; }
.ds-page .ds-metric--neutral { background: var(--ds-filter-tint); box-shadow: inset 0 2px #b2c4dd; }
.ds-page .ds-metric--positive { background: var(--ds-positive-soft); box-shadow: inset 0 2px #79b6b0; }
.ds-page .ds-metric--positive strong { color: var(--ds-positive-ink); }
.ds-page .ds-metric--warning { background: var(--ds-warning-soft); color: var(--ds-warning-ink); box-shadow: inset 0 2px #dcad5e; }
.ds-page .ds-metric--warning strong { color: var(--ds-warning-ink); }
.ds-page .ds-work-row { border-radius: 0; border-color: var(--ds-line); background: var(--ds-surface); color: var(--ds-ink); font-weight: 400; }
.ds-page .ds-work-row:nth-child(even) { background: var(--ds-row-alt); }
.ds-page .ds-work-row:has(input:checked) { background: var(--ds-positive-soft); box-shadow: inset 3px 0 #258a6a; }
.ds-page .ds-work-row :is(small,.ds-caption) { color: var(--ds-muted); font-weight: 400; }
.ds-page .ds-work-row :is(strong,b) { font-weight: 500; }
.ds-page .ds-button.ds-button--secondary { font-weight: 400; }
.ds-page .ds-button.ds-button--ghost { border-color: transparent; background: transparent; color: var(--ds-accent); font-weight: 400; }
.ds-page .ds-button.ds-button--ghost:is(:hover,:focus-visible) { border-color: transparent; background: var(--ds-soft); color: #124fae; }
.ds-page .ds-button.ds-button--ghost:disabled { background: transparent; color: var(--ds-muted); }
.ds-work-list--dense { --ds-control-height: 44px; }
@media (min-width: 901px) {
  .ds-work-list--dense { --ds-control-height: 32px; }
  .ds-page.ds-work-list--dense :is(.ds-button,.ds-tab) { min-height: 32px; padding: 4px 8px; font-size: 13px; }
  .ds-page.ds-work-list--dense .ds-input { min-height: 32px; padding: 4px 8px; }
}

.ds-page .ds-panel-heading .ds-count { background: var(--ds-selected); color: var(--ds-title); font-weight: 600; }
@media (max-width: 900px) {
  .ds-page .ds-button.ds-button--ghost { min-height: 44px; }
}

/* Журнал документов (K01 + design-tables / design-document-states) */
.ds-page .ds-document-journal { gap: var(--ds-space-3); }
.ds-page .ds-filter-bar.ds-filter-bar--journal {
  display: grid;
  grid-template-columns: 150px 150px minmax(140px, 180px) minmax(140px, 1fr) minmax(140px, 1fr);
  gap: var(--ds-space-3);
  align-items: end;
  margin: 0;
  padding: var(--ds-space-3) var(--ds-space-4);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-filter-tint);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 65%);
}
.ds-page .ds-document-journal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
  padding: var(--ds-space-2) var(--ds-space-3);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  background: var(--ds-filter-tint);
}
.ds-page .ds-document-journal__panel.ds-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  border-color: var(--ds-border);
  background: var(--ds-surface);
  box-shadow: 0 2px 6px rgb(23 36 58 / 4%);
}
.ds-page .ds-table--journal { font-size: 0.875rem; line-height: 1.25rem; }
.ds-page .document-journal__head .ds-table--journal thead th {
  position: static;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--ds-border);
  background: var(--ds-panel-tint);
  color: var(--ds-title);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  box-shadow: inset 0 -1px var(--ds-line);
}
.ds-page .ds-table--journal tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom-color: var(--ds-line);
  white-space: nowrap;
  vertical-align: middle;
}
.ds-page .ds-table--journal tbody tr { min-height: 2.5rem; background: var(--ds-surface); }
.ds-page .ds-table--journal tbody tr:nth-child(even) { background: var(--ds-row-alt); }
.ds-page .ds-table--journal tbody tr:hover { background: var(--ds-table-row-hover); }
.ds-page .ds-table--journal th.ds-sortable:hover { background: var(--ds-selected); color: var(--ds-accent); }
.ds-page .ds-table--journal th .ds-sort-mark { color: var(--ds-accent); }
.ds-page .ds-table--journal .ds-col-state { text-align: center; width: 2.5rem; }
.ds-page .ds-doc-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: var(--ds-doc-state-muted);
}
.ds-page .ds-doc-state--posted { color: var(--ds-doc-state-posted); }
.ds-page .ds-doc-state--deletion { color: var(--ds-doc-state-deletion); }
.ds-page .ds-doc-state svg { width: 1rem; height: 1rem; display: block; }
.ds-page .ds-button--journal-nav.ds-button--icon {
  width: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  height: 1.75rem;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  background: var(--ds-surface);
  border-color: var(--ds-border);
  color: var(--ds-accent);
}
.ds-page .ds-journal-cell {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.ds-page .ds-journal-cell--link .table-link,
.ds-page .ds-journal-cell--link .ds-entity-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.ds-page .ds-table--journal tbody tr.is-selected {
  background: var(--ds-table-row-selected);
  box-shadow: inset 0.25rem 0 0 var(--ds-table-focus-ring);
}
.ds-page .ds-table--journal tbody tr.is-selected:hover { background: var(--ds-table-row-selected); }
.ds-page .ds-table--journal tbody tr { cursor: pointer; }
html:has(.document-journal-page),
body:has(.document-journal-page) {
  height: 100%;
  overflow: hidden;
}
.a01-shell:has(.document-journal-page) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
.a01-shell:has(.document-journal-page) main.page-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 6px 12px 4px;
}
.a01-shell:has(.document-journal-page) main.page-shell > :only-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.a01-shell:has(.document-journal-page) .platform-footer { display: none; }
.a01-shell:has(.document-journal-page) .app-header { flex-shrink: 0; }
@media (max-width: 900px) {
  .ds-page .ds-filter-bar.ds-filter-bar--journal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
