:root {
  color-scheme: light;
  --red: #e60012;
  --red-dark: #c80717;
  --blue: #1769e0;
  --navy: #102546;
  --ink: #172b3a;
  --muted: #667789;
  --line: #d7e2eb;
  --canvas: #ffffff;
  --soft-blue: #eef6fb;
  --pale-blue: #edf7ff;
}
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: #fff; color: #101f3d; font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loading-shell { min-height: 100vh; display: grid; place-content: center; gap: 7px; color: var(--muted); }
.loading-shell small { text-align: center; }

.app-shell { width: 100%; max-width: none; min-height: 100vh; padding: 0 32px 56px; }
.app-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 -32px; padding: 0 32px; border-bottom: 1px solid #e2e9f1; background: #fff; box-shadow: 0 2px 10px rgba(18,42,70,.05); }
.brand-lockup { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 10px; background: transparent; }
.brand-lockup:hover { border-color: #bfd3e5; background: linear-gradient(145deg,#f8fbfe,#fff4f5); }
.brand-mark { width: 38px; height: 38px; overflow: visible; }
.brand-page { stroke: #12395e; stroke-width: 2.15; }
.brand-fold { stroke: #315a7c; stroke-width: 1.35; opacity: .72; }
.brand-route { stroke: #e60012; stroke-width: 2.2; }
.brand-terminal { fill: #fff; stroke: #e60012; stroke-width: 2.2; }
.header-actions { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.region-label { color: #12213f; font-size: 14px; font-weight: 600; white-space: nowrap; }
.region-label > span { color: #4d6680; font-size: 10px; }
.search-entry, .feedback-entry { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #dae4ef; border-radius: 7px; background: #fff; color: #0e2144; box-shadow: 0 3px 10px rgba(17,41,73,.07); }
.search-entry:hover, .feedback-entry:hover { border-color: #a9c7de; background: #f7fbfe; color: #1769b0; }
.feedback-entry .icon { width: 19px; height: 19px; }
.employee-access { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #c8d9e6; border-radius: 6px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; white-space: nowrap; }
.language-switch { min-height: 38px; display: flex; align-items: center; gap: 5px; border: 1px solid #d6e1ea; border-radius: 7px; padding: 0 5px; background: #fff; }
.language-switch button { position: relative; min-width: 42px; min-height: 36px; border: 0; background: transparent; color: #66778b; font-size: 13px; }
.language-switch button.selected { color: var(--red-dark); font-weight: 800; }
.language-switch button.selected::after { content: ""; position: absolute; right: 5px; bottom: -1px; left: 5px; height: 2px; background: var(--red); }
.language-switch i { width: 1px; height: 15px; background: #d7e0e8; }

.hero-banner { min-height: 146px; margin: 0 -32px; border: 0; background: #edf5fb url("/documentation-banner.png") center / cover no-repeat; }
.hero-copy { height: 146px; display: grid; align-content: center; padding: 0 4%; }
.hero-copy span { color: var(--red-dark); font-size: 15px; font-weight: 800; }
.hero-copy h1 { margin: 7px 0 0; max-width: 72%; color: #0d1d3a; font-size: clamp(30px,3vw,46px); line-height: 1.08; letter-spacing: -1.6px; white-space: normal; }
.board-switch { min-height: 58px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 -32px; padding: 0 32px; border-bottom: 1px solid #dfe7ef; background: #fff; }
.board-tab { position: relative; min-height: 58px; border: 0; background: transparent; color: #647384; font-size: 15px; font-weight: 600; }
.board-tab::after { content: ""; position: absolute; right: 10%; bottom: 0; left: 10%; height: 2px; background: transparent; }
.board-tab.selected { color: #075fa9; }
.board-tab.selected::after { background: #1769e0; }

.board { padding-top: 28px; }
.section-heading { max-width: 1390px; display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 auto 18px; }
.section-heading h2 { margin: 0 0 5px; color: #102546; font-size: 25px; letter-spacing: -.5px; }
.section-heading p { margin: 0; color: #64748a; font-size: 13px; }
.secondary { min-height: 38px; border: 1px solid #b8c8d3; border-radius: 7px; background: #fff; color: #17304e; padding: 8px 12px; }
.secondary:hover { border-color: #1769b0; color: #1769b0; }

.employee-collection { max-width: 1390px; display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 12px; align-items: stretch; margin: 0 auto 18px; padding: 11px; border: 1px solid #dbe5ed; border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(25,48,76,.045); }
.employee-collection-title { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-right: 1px solid #e0e8ee; }
.employee-collection-title > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: #eaf4fb; color: #1769b0; }
.employee-collection-title h2 { margin: 0; color: #102546; font-size: 19px; }
.employee-collection-title p { margin: 0; color: #74859a; font-size: 11px; line-height: 1.35; }
.employee-collection-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.collection-capability { margin-top: 4px; margin-bottom: 0; }
.collection-capability .employee-collection-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
.collection-capability .collection-dataset-grid,
.collection-capability .executive-group-column:last-child .collection-dataset-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.executive-group-column { min-width: 0; display: grid; grid-template-rows: 42px minmax(52px,auto); gap: 2px; }
.collection-group-title { border: 0; background: #dbeaf7; color: #d00918; font-size: 14px; font-weight: 800; text-align: center; }
.collection-group-title:hover { background: #cde2f3; }
.collection-dataset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; }
.executive-group-column:last-child .collection-dataset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.collection-dataset-cell, .capability-dataset-cell { min-width: 0; min-height: 52px; border: 0; background: #f7f9fb; color: #086fc0; padding: 8px; font-size: 12px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.collection-dataset-cell:hover, .capability-dataset-cell:hover { background: #eaf4fb; color: #075fa5; }
.capability-dataset-cell { min-height: 64px; border: 1px solid #e0e8ef; border-radius: 6px; color: #173a62; font-size: 14px; font-weight: 400; }

.matrix-scroll { max-width: 1390px; margin: 0 auto; padding: 0 0 14px; overflow: visible; }
.matrix-shell { width: 100%; min-width: 0; display: grid; grid-template-columns: 76px 122px repeat(var(--scenario-count),minmax(0,1fr)); gap: 12px; }
.matrix-mobile { display: none; }
.scenario-axis, .matrix-corner, .scenario-head, .role-cell, .scenario-role-block { border: 1px solid #dbe5ed; border-radius: 8px; background: #fff; box-shadow: 0 3px 12px rgba(25,48,76,.045); }
.scenario-axis { grid-column: 1; grid-row: 1 / span 5; display: grid; place-items: center; padding: 16px 8px; background: #dcebfa; color: #102546; text-align: center; }
.scenario-axis strong { font-size: 19px; line-height: 1.25; font-weight: 800; writing-mode: vertical-rl; letter-spacing: 2px; }
.matrix-corner { min-height: 164px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 20px; background: #f7f9fb; color: #102546; }
.matrix-corner span { font-size: 20px; font-weight: 800; }
.matrix-corner small { color: #74859a; font-size: 12px; }
.scenario-head { min-width: 0; min-height: 164px; display: grid; grid-template-columns: 37% 63%; align-items: center; padding: 18px 20px; border-color: #bfd5ea; background: #dcebfa; overflow: hidden; }
.scenario-copy { display: grid; align-content: center; gap: 9px; min-width: 0; }
.scenario-head strong { color: #0d2042; font-size: 26px; letter-spacing: -.5px; }
.scenario-copy em { color: #718096; font-size: 14px; font-style: normal; }
.scenario-products { position: relative; min-width: 0; height: 124px; }
.scenario-products img { width: 100%; height: 124px; object-fit: contain; filter: drop-shadow(0 6px 7px rgba(29,50,73,.12)); }
.role-cell { min-height: 82px; display: flex; align-items: center; gap: 8px; padding: 10px 8px; color: #102546; }
.role-copy { display: grid; gap: 4px; }
.role-copy strong { font-size: 15px; line-height: 1.25; }
.role-copy em { color: #718096; font-size: 11px; font-style: normal; font-weight: 600; }
.role-glyph { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.role-glyph svg { width: 23px; height: 23px; fill: currentColor; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.role-glyph .icon-cut { fill: rgba(184,0,16,.95); stroke: none; }
.role-glyph-sales { background: #eb4f59; } .role-glyph-solution { background: #347fdf; }
.role-glyph-mkt { background: #7359cf; } .role-glyph-service { background: #3da15c; }
.scenario-role-block { min-width: 0; min-height: 82px; padding: 11px 12px 13px; }
.empty-role-block { background: #f7f9fb; }
.section-bar { min-height: 24px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.section-title { color: #cf0716; font-size: 16px; font-weight: 800; text-align: center; }
.cell-grid { display: grid; grid-template-columns: repeat(var(--cell-cols),minmax(0,1fr)); grid-auto-rows: minmax(34px,auto); gap: 5px; background: transparent; }
.nav-cell { min-width: 0; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; background: #edf1f4; color: #183457; padding: 6px 8px; font-size: 12px; text-align: center; }
.nav-cell .cell-label { width: 100%; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.nav-cell .cell-text { overflow-wrap: anywhere; }
.nav-cell.has-documents { background: #edf2f6; }
.nav-cell.has-documents:hover { background: #e2e9ef; }
.nav-cell.has-documents::after { content: none; }
.nav-cell.no-documents, .nav-cell:disabled { background: #e6eaed; color: #929da7; }
.nav-cell.style-blue-head { background: transparent; color: #1762a4; font-weight: 700; }
.nav-cell.style-highlight-red { color: #b80b18; font-weight: 750; }

@media (max-width: 1100px) and (min-width: 600px) {
  .matrix-shell { grid-template-columns: 48px 96px repeat(var(--scenario-count),minmax(0,1fr)); gap: 6px; }
  .scenario-axis { padding: 10px 4px; }
  .matrix-corner, .scenario-head { min-height: 118px; }
  .matrix-corner { padding: 10px; }
  .matrix-corner span { font-size: 17px; }
  .matrix-corner small { font-size: 10px; }
  .scenario-head { grid-template-columns: 43% 57%; padding: 10px; }
  .scenario-head strong { font-size: 19px; }
  .scenario-copy em { font-size: 11px; }
  .scenario-products, .scenario-products img { height: 92px; }
  .role-cell { gap: 5px; padding: 7px 5px; }
  .role-glyph { width: 32px; height: 32px; flex-basis: 32px; }
  .role-glyph svg { width: 18px; height: 18px; }
  .role-copy strong { font-size: 12px; }
  .role-copy em { font-size: 9px; }
  .scenario-role-block { padding: 8px 7px 9px; }
  .section-title { font-size: 14px; }
  .cell-grid { grid-auto-rows: minmax(44px,auto); gap: 4px; }
  .nav-cell { min-height: 44px; padding: 5px 3px; font-size: 10px; line-height: 1.2; }
}

.detail-board { max-width: 1390px; margin: 0 auto; }
.detail-board > h2 { margin: 0 0 18px; color: #102546; font-size: 25px; }
.detail-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 0 0 14px; }
.detail-hierarchy-filter { min-width: 132px; min-height: 38px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #172b3a; padding: 8px 10px; font-size: 12px; }
.material-select, .product-select { min-width: 158px; max-width: 210px; }
.status-filter-dropdown { position: relative; min-width: 190px; }
.status-filter-trigger { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #172b3a; padding: 8px 10px; font-size: 12px; text-align: left; }
.status-filter-trigger.active { border-color: #1769aa; color: #075fa5; }
.status-filter-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-filter-trigger b { color: #d00918; font-size: 16px; }
.status-filter-popover { position: absolute; top: calc(100% + 5px); right: 0; z-index: 45; display: grid; width: max(100%,210px); padding: 7px; border: 1px solid #cbd9e3; border-radius: 7px; background: #fff; box-shadow: 0 14px 34px rgba(20,44,67,.18); }
.status-filter-popover label { display: flex; min-height: 38px; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 5px; color: #172b3a; cursor: pointer; }
.status-filter-popover label:hover { background: #eef5fa; }
.scope-switch { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.scope-button { min-height: 37px; border: 0; border-right: 1px solid var(--line); background: #fff; color: #5a6d7d; padding: 0 11px; font-size: 12px; font-weight: 800; }
.scope-button:last-child { border-right: 0; }
.scope-button.selected { background: #123f5b; color: #fff; }
.scope-button:disabled { color: #a5afb7; }
.detail-search-wrap { min-width: 220px; min-height: 38px; flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 10px; color: #64778a; }
.detail-search-wrap .icon { width: 18px; height: 18px; }
.detail-search { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #172b3a; font-size: 12px; }
.library-workspace { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 14px; align-items: start; }
.bookmark-rail { position: sticky; top: 10px; overflow: hidden; border: 1px solid #d7e2eb; border-radius: 8px; background: #f9fbfc; box-shadow: 0 4px 14px rgba(20,44,67,.05); }
.bookmark-rail-head { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border-bottom: 1px solid #dce6ed; color: #102546; }
.bookmark-rail-head span { display: grid; color: #d00918; }
.bookmark-rail-head .icon { width: 20px; height: 20px; }
.bookmark-tree { min-height: 360px; max-height: calc(100vh - 340px); overflow: auto; padding: 8px 0; }
.bookmark-node { position: relative; }
.bookmark-branch-row { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: stretch; margin-left: var(--bookmark-indent,0); }
.bookmark-chevron-button { width: 30px; min-height: 44px; border: 0; background: transparent; color: #37729d; font-size: 17px; }
.bookmark-scope-button { min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: transparent; color: #17304e; text-align: left; }
.bookmark-scope-button:hover { background: #edf6fc; }
.bookmark-scope-button.selected { background: #e9f2f9; color: #075fa5; }
.bookmark-scope-button strong { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.bookmark-scope-button small { color: #74859a; font-size: 10px; }
.bookmark-children { position: relative; }
.bookmark-children::before { content: ""; position: absolute; top: 0; bottom: 4px; left: calc(22px + var(--bookmark-indent,0px)); width: 1px; background: #e0e8ee; }
.bookmark-material { position: relative; width: calc(100% - 10px - var(--bookmark-indent,0px)); min-height: 40px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto auto; align-items: center; gap: 7px; margin: 2px 5px 2px calc(5px + var(--bookmark-indent,0px)); padding: 6px 9px; border: 0; border-radius: 0 6px 6px 0; background: transparent; color: #17304e; text-align: left; }
.bookmark-material:hover { background: #eef4f8; }
.bookmark-material > span { display: grid; color: #1769aa; }
.bookmark-material .icon { width: 16px; height: 16px; }
.bookmark-material strong { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.bookmark-material small { color: #74859a; font-size: 9px; }
.bookmark-statuses { display: inline-flex !important; align-items: center; justify-content: center; gap: 3px; color: inherit !important; }
.bookmark-statuses:empty { display: none !important; }
.bookmark-statuses .important-mark { width: 14px; height: 14px; flex-basis: 14px; }
.bookmark-statuses .status-mark { font-size: 9px; }
.bookmark-material.selected { background: #e9f2f9; color: #075fa5; }
.bookmark-material.selected::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; background: #e60012; }
.library-content { min-width: 0; min-height: 510px; padding: 16px; border: 1px solid #d7e2eb; border-radius: 8px; background: #fff; }
.material-content-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.material-heading { min-width: 0; flex: 1; }
.material-title-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.material-title-line h3 { min-width: 0; }
.material-title-line p { flex: 0 0 auto; text-align: right; }
.material-content-head small, .material-parent-head small { color: #1769aa; font-size: 11px; }
.material-content-head h3, .material-parent-head h3 { margin: 5px 0 2px; color: #102546; font-size: 22px; }
.material-content-head p, .material-parent-head p { margin: 0; color: #74859a; font-size: 12px; }
.detail-tree-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: #102546; }
.detail-tree-summary span { font-size: 18px; font-weight: 800; }
.detail-tree-summary em { color: #74859a; font-size: 12px; font-style: normal; }
.material-parent-result { margin-bottom: 22px; }
.material-parent-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px solid #e0e8ee; }
.material-parent-head h3 { font-size: 17px; }
.material-result-set + .material-result-set { margin-top: 18px; }
.detail-group { overflow: hidden; margin-bottom: 10px; border: 1px solid #d9e5ec; border-radius: 8px; background: #fff; }
.group-head { display: flex; align-items: stretch; background: #f5f8fa; }
.group-toggle { flex: 1; display: grid; grid-template-columns: 26px 1fr 34px; align-items: center; gap: 8px; min-height: 44px; border: 0; background: transparent; color: #172b3a; padding: 9px 14px; text-align: left; }
.group-toggle span { color: #e60012; font-size: 20px; text-align: center; }
.group-toggle strong { font-size: 15px; }
.group-toggle em { color: #667789; font-size: 12px; font-style: normal; text-align: right; }
.detail-group ul { margin: 0; padding: 0; list-style: none; }
.detail-link-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-top: 1px solid #e8eff3; }
.document-link { min-width: 0; flex: 1; display: inline-flex; align-items: center; gap: 6px; color: #086fc0; font-size: 13px; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.document-link > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.document-link:hover { text-decoration: underline; }
.document-meta { flex: 0 0 min(20%,130px); color: #667789; font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.important-mark { display: inline-flex; width: 15px; height: 15px; flex: 0 0 15px; align-items: center; justify-content: center; color: #c80716; }
.important-mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status-mark { margin-left: 1px; padding: 0; border: 0; background: transparent; font-size: .86em; font-style: italic; font-weight: 600; white-space: nowrap; }
.status-new { color: #cf0a2c; }
.status-update { color: #e17a17; }
.empty-state { min-height: 190px; display: grid; place-content: center; justify-items: center; gap: 9px; padding: 20px; border: 1px dashed #c5d4df; border-radius: 7px; background: #f8fbfd; color: #74859a; text-align: center; }
.empty-state p { margin: 0; }

.utility-board { max-width: 1200px; margin: 0 auto; }
.release-filters { display: flex; gap: 6px; margin: 4px 0 14px; }
.release-filters button { min-width: 74px; min-height: 38px; border: 1px solid #c8d8e4; border-radius: 6px; background: #fff; color: #123f5b; padding: 8px 12px; }
.release-filters button.selected { border-color: #1769e0; background: #1769e0; color: #fff; }
.release-list { display: grid; border-top: 1px solid #dce5ef; }
.release-row { min-height: 78px; display: grid; grid-template-columns: 110px minmax(280px,1fr) 1fr; align-items: center; gap: 18px; padding: 12px 6px; border: 0; border-bottom: 1px solid #dce5ef; background: #fff; color: #102241; text-align: left; }
.release-row:hover { background: #f7fbfe; }
.release-row > span { display: flex; gap: 5px; }
.release-row strong { font-size: 15px; overflow-wrap: anywhere; }
.release-row em { color: #66778b; font-size: 12px; font-style: normal; overflow-wrap: anywhere; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(20,44,67,.38); }
.modal { width: min(520px,94vw); border: 1px solid #cfdae1; border-radius: 8px; background: #fff; box-shadow: 0 22px 56px rgba(10,28,44,.28); }
.modal > header { min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #e1e9ee; }
.modal h2 { margin: 0; color: #102546; font-size: 20px; }
.modal header button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; color: #d00918; }
.modal-body { padding: 20px; }
.modal-body p { margin: 0 0 18px; color: #667789; line-height: 1.6; }
.modal-body dl { display: grid; grid-template-columns: 76px 1fr; gap: 8px; margin: 0 0 18px; }
.modal-body dt { color: #74859a; }
.modal-body dd { margin: 0; color: #102546; font-weight: 700; }
.read-only-badge { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 9px; border: 1px solid #c8dce9; border-radius: 999px; background: #f4f9fc; color: #41637e; font-size: 10px; font-weight: 700; }

@media (max-width: 780px) {
  .app-shell { padding: 0 14px 34px; }
  .app-header { min-height: 64px; margin: 0 -14px; padding: 0 14px; gap: 8px; flex-wrap: nowrap; }
  .brand-lockup { width: 44px; height: 44px; flex-basis: 44px; }
  .brand-mark { width: 38px; height: 38px; }
  .header-actions { margin-left: auto; gap: 6px; }
  .region-label { font-size: 11px; }
  .search-entry, .feedback-entry { width: 44px; height: 44px; }
  .employee-access { display: none; }
  .language-switch { min-height: 44px; }
  .language-switch button { min-width: 44px; min-height: 44px; font-size: 11px; }
  .hero-banner { min-height: 112px; margin: 0 -14px; background-position: 61% center; }
  .hero-copy { height: 112px; padding: 0 18px; }
  .hero-copy span { font-size: 11px; }
  .hero-copy h1 { max-width: 74%; margin-top: 5px; font-size: 20px; line-height: 1.15; letter-spacing: -.5px; }
  .board-switch { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0 -14px; padding: 0 14px; overflow: hidden; }
  .board-tab { min-height: 48px; font-size: 12px; white-space: nowrap; }
  .board { padding-top: 25px; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 12px; }
  .section-heading h2 { font-size: 22px; }
  .employee-collection { grid-template-columns: 1fr; gap: 9px; padding: 9px; }
  .employee-collection-title { border-right: 0; border-bottom: 1px solid #e0e8ee; padding: 7px; }
  .employee-collection-groups { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; overflow: visible; }
  .collection-capability .employee-collection-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .executive-group-column { min-width: 0; }
  .collection-group-title { min-height: 44px; font-size: 12px; }
  .collection-dataset-cell, .capability-dataset-cell { min-height: 44px; padding: 5px 3px; font-size: 10px; line-height: 1.2; }
  .matrix-scroll { margin: 0; padding: 0 0 12px; }
  .scenario-products { display: none; }
  .scenario-head { grid-template-columns: 1fr; }
  .detail-board > h2 { font-size: 22px; }
  .detail-tools { align-items: stretch; flex-direction: column; }
  .detail-tools > .secondary, .scope-switch, .detail-hierarchy-filter, .status-filter-dropdown, .detail-search-wrap { width: 100%; max-width: none; min-height: 44px; }
  .status-filter-trigger { min-height: 44px; }
  .status-filter-popover { right: auto; left: 0; width: 100%; }
  .scope-button { flex: 1; min-height: 44px; }
  .detail-search { min-height: 42px; }
  .library-workspace { grid-template-columns: 1fr; }
  .bookmark-rail { position: static; }
  .bookmark-tree { min-height: 0; max-height: 300px; }
  .library-content { padding: 10px; }
  .material-content-head, .material-parent-head { align-items: flex-start; flex-direction: column; }
  .material-title-line { width: 100%; align-items: flex-start; flex-direction: column; gap: 3px; }
  .material-title-line p { text-align: left; }
  .detail-link-row { flex-wrap: wrap; padding: 8px 10px; }
  .document-meta { flex-basis: 86px; }
  .release-filters { width: 100%; overflow-x: auto; }
  .release-filters button { flex: 1; min-width: 82px; min-height: 44px; }
  .release-row { grid-template-columns: 86px 1fr; gap: 6px 12px; padding: 14px 4px; }
  .release-row em { grid-column: 2; }
}

@media (max-width: 599px) {
  .matrix-desktop { display: none; }
  .matrix-mobile { max-width: 100%; display: grid; gap: 12px; margin: 0 auto 14px; }
  .mobile-scenario-axis { min-height: 52px; display: grid; place-items: center; border: 1px solid #bfd5ea; border-radius: 8px; background: #dcebfa; color: #102546; font-size: 19px; font-weight: 800; }
  .scenario-stack-card { min-width: 0; display: grid; gap: 7px; padding: 7px; border: 1px solid #dbe5ed; border-radius: 9px; background: #f8fbfd; }
  .scenario-stack-card > .scenario-head { min-height: 92px; padding: 14px; }
  .scenario-stack-card .scenario-head strong { font-size: 23px; }
  .scenario-stack-card .scenario-copy em { font-size: 12px; }
  .mobile-role-row { min-width: 0; display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 7px; align-items: stretch; }
  .mobile-role-row .role-cell, .mobile-role-row .scenario-role-block { min-height: 76px; }
  .mobile-role-row .role-cell { gap: 6px; padding: 8px 6px; }
  .mobile-role-row .role-glyph { width: 34px; height: 34px; flex-basis: 34px; }
  .mobile-role-row .role-glyph svg { width: 19px; height: 19px; }
  .mobile-role-row .role-copy strong { font-size: 12px; }
  .mobile-role-row .role-copy em { font-size: 9px; }
  .mobile-role-row .scenario-role-block { padding: 9px 8px 10px; }
  .mobile-role-row .cell-grid { grid-auto-rows: minmax(44px,auto); gap: 4px; }
  .mobile-role-row .nav-cell { min-height: 44px; padding: 5px 4px; font-size: 10px; line-height: 1.2; }
  .employee-collection-groups, .collection-capability .employee-collection-groups { grid-template-columns: 1fr; }
  .collection-group-title { min-height: 44px; }
  .collection-dataset-cell, .capability-dataset-cell { font-size: 11px; }
  .collection-capability .collection-dataset-grid,
  .collection-capability .executive-group-column:last-child .collection-dataset-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}

@media (max-width: 470px) {
  .region-label { display: none; }
  .header-actions { gap: 5px; }
  .language-switch button { min-width: 44px; }
  .employee-collection { padding: 8px; }
  .employee-collection-title h2 { font-size: 18px; }
}

.access-selector select,
.admin-entry,
.admin-tools button {
  min-height: 44px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #fff;
  color: #0b294b;
  font: 700 14px/1.2 inherit;
  padding: 0 14px;
}
.access-selector select { min-width: 142px; cursor: pointer; }
.admin-entry { color: #c8102e; cursor: pointer; }
.admin-tools { display: flex; align-items: center; gap: 6px; }
.admin-tools button { min-height: 36px; padding: 0 10px; cursor: pointer; }
.admin-tools button:disabled { color: #9aa9b7; background: #f3f6f8; cursor: default; }
.admin-tools button[data-action="admin-publish"] { color: #fff; background: #0d6ecf; border-color: #0d6ecf; }
.admin-state { color: #5f7489; font-size: 12px; white-space: nowrap; }
.document-edit { flex: 0 0 auto; min-height: 32px; border: 1px solid #b7d1e9; border-radius: 6px; background: #fff; color: #0873c8; font: 700 12px/1 inherit; padding: 0 10px; cursor: pointer; }
.admin-modal-wide { width: min(1080px, calc(100vw - 32px)); }
.admin-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-height: min(72vh, 720px); }
.admin-workspace section { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.admin-workspace h3 { margin: 0; color: #0b294b; font-size: 18px; }
.admin-workspace input,
.admin-form input,
.admin-form select { width: 100%; min-height: 44px; box-sizing: border-box; border: 1px solid #c8d9e8; border-radius: 7px; background: #fff; color: #102f51; font: 400 15px/1.35 inherit; padding: 9px 11px; }
.admin-result-list { overflow: auto; border: 1px solid #d5e2ed; border-radius: 8px; background: #f8fbfd; }
.admin-result-list button { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 48px; border: 0; border-bottom: 1px solid #e1eaf2; background: #fff; color: #0873c8; text-align: left; padding: 8px 12px; cursor: pointer; }
.admin-result-list button:last-child { border-bottom: 0; }
.admin-result-list button:hover { background: #edf6fd; }
.admin-result-list small { color: #6f8295; text-align: right; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; color: #324e69; font-size: 13px; font-weight: 700; }
.admin-form .full { grid-column: 1 / -1; }
.admin-form .checkbox { flex-direction: row; align-items: center; align-self: end; min-height: 44px; }
.admin-form .checkbox input { width: 20px; min-height: 20px; }
.admin-form .form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.admin-record-id { grid-column: 1 / -1; margin: 0; color: #6f8295; }

@media (max-width: 980px) {
  .app-header { height: auto; min-height: 72px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; padding-block: 8px; }
  .admin-tools { order: 3; width: 100%; justify-content: flex-end; }
}
@media (max-width: 600px) {
  .access-selector select { min-width: 128px; max-width: 150px; }
  .admin-workspace, .admin-form { grid-template-columns: 1fr; }
  .admin-form .full, .admin-record-id { grid-column: 1; }
  .admin-workspace { max-height: 76vh; overflow: auto; }
  .admin-tools { overflow-x: auto; justify-content: flex-start; }
  .admin-state { display: none; }
  .document-meta { max-width: 92px; }
}
