.ob-page {
    --sky: #75dcff; --mint: #74f3e6; --amber: #ffc57d; --text: #eef5fd; --mute: #a3b7c9;
    --line: #284155; --panel: #101e2d; --digits: "Bahnschrift", "Segoe UI", sans-serif;
    display: block; color-scheme: dark; color: var(--text); width: min(100%, 1880px); margin-inline: auto;
    min-height: calc(100dvh - var(--header) - var(--safe-top));
    padding: clamp(16px, 2.5vh, 32px) clamp(16px, 2.3vw, 44px);
    background: radial-gradient(ellipse at 40% 36%, #14283966, transparent 66%), #0b1521;
}
#view:has(> .ob-page) { background: #0b1521; }
.ob-page:is(:fullscreen, .ob-expanded) {
    max-width: none; width: 100%; height: 100%; margin: 0; overflow: auto; overscroll-behavior: contain;
    padding: clamp(16px, 3.2vh, 46px) clamp(16px, 3.7vw, 82px);
}
.ob-expanded { position: fixed; z-index: 20; inset: 0; }
.ob-page a { color: inherit; }
.ob-page :focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; z-index: 2; }
.ob-header, .ob-tools, .ob-section-heading, .ob-metric-title, .ob-focus h3 a, .ob-network-foot, .ob-network-foot a { display: flex; align-items: center; }
.ob-header { justify-content: space-between; gap: 10px; margin-bottom: clamp(14px, 1.9vh, 25px); }
.ob-header h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.1vw, 42px); line-height: 1.26; letter-spacing: .035em; }
.ob-header h1::before { content: ""; width: 8px; height: .85em; background: var(--mint); transform: skewX(-17deg); box-shadow: 5px 0 0 #286779; }
.ob-tools { gap: 8px; }
.ob-tools .button, .ob-motion { background: #162737; color: var(--text); border: 1px solid #385467; border-radius: 4px; min-height: 32px; padding: 4px 10px; }
.ob-tools .button:hover, .ob-motion:hover:enabled { color: var(--mint); background: #1d3647; border-color: #50818e; }
.ob-stamp, .ob-network-foot, .ob-foot, .ob-section-heading > span { color: var(--mute); font-size: 12px; }
.ob-stamp { font-variant-numeric: tabular-nums; margin-right: 6px; }
.ob-trial-stamp { display: none; }
.ob-page:is(:fullscreen,.ob-expanded) .ob-trial-stamp { display: inline; }
.ob-stamp::before,.ob-motion::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--mint); }
.ob-stale::before { background: var(--amber); }
.ob-body { display: grid; gap: clamp(11px, 1.65vh, 20px); }
.ob-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); background: #122538; }
.ob-network, .ob-priorities, .ob-stages {
    border: 1px solid var(--line); border-radius: 5px; background: var(--panel); min-width: 0;
}
.ob-metric { --tint: #86bdff; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 5px 4px; min-height: 39px; }
.ob-metric + .ob-metric { border-left: 1px solid var(--line); }
.ob-metric:nth-child(2) { --tint: var(--mint); }
.ob-metric:nth-child(3) { --tint: #aab8ff; }
.ob-metric:nth-child(4) { --tint: var(--amber); }
.ob-metric-title { gap: 4px; font-size: 12px; white-space: nowrap; color: #c4d7e5; }
.ob-metric-title svg { width: 14px; height: 14px; color: var(--tint); }
.ob-value,.ob-node-count,.ob-focus-stats strong,.ob-stage strong { font-family: var(--digits); font-variant-numeric: tabular-nums; }
.ob-value { color: var(--tint); font-size: clamp(19px,1.35vw,26px); line-height: 1; white-space: nowrap; font-weight: 600; }
.ob-value small { margin-left: 3px; font: 400 11px/1 sans-serif; color: var(--mute); }
.ob-metric:hover, .ob-stage:hover { background: #1a3347; text-decoration: none; }
.ob-main { display: grid; grid-template-columns: minmax(0,1.68fr) minmax(280px,1fr); gap: 12px; }
.ob-section-heading { justify-content: space-between; gap: 10px; min-height: 30px; }
.ob-section-heading h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #e3eff8; font-size: clamp(16px,1.15vw,23px); }
.ob-section-heading h2 svg { color: var(--sky); }
.ob-network { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; container-type: inline-size;
    background: radial-gradient(ellipse at 50% 50%,#112f43 0%,#0d2032 45%,#101d2d 87%); }
.ob-network::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .7;
    background-image: radial-gradient(circle,#65829d52 .7px,transparent 1px),linear-gradient(#3551661f 1px,transparent 1px),linear-gradient(90deg,#3551661f 1px,transparent 1px);
    background-size: 16px 16px,80px 80px,80px 80px; }
.ob-network .ob-section-heading, .ob-priorities > .ob-section-heading { padding: 10px 15px; border-bottom: 1px solid #30475b96; }
.ob-network .ob-section-heading { background: #101e2dcc; }
.ob-motion { padding: 2px 9px; min-height: 25px; font-size: 12px; color: #b6cddd; }
.ob-motion[aria-pressed=false]::before { background: #778fa2; }
.ob-orbit { position: relative; display: grid; grid-template-columns: 1fr 1fr; flex: 1; min-height: clamp(208px,25vh,320px); }
.ob-orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ob-bank { position: relative; z-index: 1; display: grid; align-items: center; grid-auto-rows: 1fr; justify-items: start;
    padding: clamp(14px,2vh,32px) 0 clamp(14px,2vh,32px) clamp(9px,1.05vw,22px); pointer-events: none; }
.ob-bank-right { justify-items: end; padding-inline: 0 clamp(9px,1.05vw,22px); }
.ob-node { --node: #96b9ff; display: grid; align-content: center; gap: 1px; width: clamp(93px,7.9vw,150px); min-height: 43px;
    padding: 4px 8px; border: 1px solid #37516c; border-left: 2px solid var(--node); border-radius: 2px;
    background: linear-gradient(100deg,#1b3046ed,#102335ed); font-size: clamp(12px,.9vw,17px); line-height: 1.3; pointer-events: auto; }
.ob-node[data-line=pqc] { --node: var(--mint); border-color: #367d82; background: linear-gradient(90deg,#174148,#122b3c); }
.ob-node[data-line=ai] { --node: var(--amber); border-color: #92744e; background: linear-gradient(90deg,#38332f,#202b38); }
.ob-node:hover,.ob-node:focus-visible { color: #fff; border-color: var(--node); text-decoration: none; box-shadow: 0 0 14px #79c6e42b; }
.ob-node-name { font-weight: 650; }
.ob-node-count { color: var(--node); font-size: 15px; }
.ob-node-count small { font: 400 11px/1 sans-serif; color: #bed0de; }
.ob-node-customers { display: inline-block; margin-left: 5px; padding-left: 5px; border-left: 1px solid #638094; font: 400 11px/1.1 sans-serif; color: #bdccda; }
.ob-core-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; gap: 3px;
    text-align: center; pointer-events: none; line-height: 1; color: #e8ffff; text-shadow: 0 1px 6px #092331; }
.ob-core-label b { font: 600 clamp(19px,1.7vw,38px)/1 var(--digits); }
.ob-core-label small { color: #a4c5d6; font-size: .6em; }
.ob-core-label > span { font-size: clamp(10px,.75vw,16px); color: #bbdbdf; }
.ob-network-foot { flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0 15px; padding: 3px 0 5px; }
.ob-network-foot a { gap: 5px; color: var(--sky); }
.ob-departments .ob-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ob-dept-node { font-family:inherit; color:#e6f4ff; text-align:left; cursor:pointer; width:clamp(110px,9vw,170px); }
.ob-dept-node[data-line=trust] { --node:#73eee1; }
.ob-dept-node[data-line=gateway] { --node:#ffc277; }
.ob-dept-node[data-line=data] { --node:#b59aff; }
.ob-dept-node[aria-pressed=true] { border-color:var(--node); background:#19394c; box-shadow:0 0 13px #36bdbb2e; }
.department-phase-panel,.department-charts,.department-rank-panel { min-width:0; }
.dept-phases { height:100%; }
.dept-phase-list { padding:9px 15px; margin:0; display:grid; align-content:space-evenly; gap:8px; flex:1; list-style:none; }
.dept-phase-list li { display:grid; grid-template-columns:minmax(7em,auto) minmax(20px,1fr) 1.8em auto; gap:6px;
    align-items:center; font-size:12px; color:var(--mute); }
.dept-phase-list li>span { color:var(--text); }
.dept-phase-list li>strong { font:600 17px var(--digits); color:var(--sky); text-align:right; }
.dept-phase-list meter { appearance:none; width:100%; height:5px; background:#20364a; border:none; }
.dept-phase-list meter::-webkit-meter-bar { border:0; border-radius:0; height:5px; background:#20364a; }
.dept-phase-list meter::-webkit-meter-optimum-value { background:linear-gradient(90deg,#326284,#75dcff); }
.dept-phase-list meter::-moz-meter-bar { background:#75dcff; }
.department-charts { display:grid; gap:9px; }
.department-rank-tools,.department-filters { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.department-rank-tools { justify-content:space-between; gap:8px; padding:0 0 9px; }
.dept-tab,.department-search { min-height:32px; border:1px solid #364e62; border-radius:3px;
    background:#112131; color:#d0deeb; padding:5px 10px; font:inherit; font-size:13px; }
.dept-tab { cursor:pointer; }
.dept-tab:hover { border-color:#7fa8bf; }
.dept-tab[aria-pressed=true] { color:#acf9ee; border-color:#498d93; background:#17383e; }
input.department-search { width:min(100%,180px); background:#101f2e; color:var(--text); border-color:var(--line); }
.department-search::placeholder { color:#9cb1c4; }
@media(max-width:560px) {
    .ob-departments .ob-dept-node { width:clamp(99px,27.5vw,123px); }
    .department-filters { flex-wrap:nowrap; overflow-x:auto; max-width:100%; padding-bottom:3px; }
    .dept-tab { flex:none; }
    .department-rank-tools { align-items:stretch; }
}
.ob-priorities { display: flex; flex-direction: column; }
.ob-focus-grid { display: grid; grid-template-rows: repeat(2,1fr); flex: 1; }
.ob-focus { --focus: var(--mint); min-width: 0; padding: 11px 15px; background: linear-gradient(105deg,#17343c96,transparent 76%); }
.ob-ai { --focus: var(--amber); background: linear-gradient(105deg,#40342a6b,transparent 76%); border-top: 1px solid var(--line); }
.ob-focus h3 { margin: 0; color: var(--focus); line-height: 1.25; font-size: clamp(18px,1.2vw,25px); }
.ob-focus h3 a { gap: 8px; }
.ob-focus h3 svg:last-child { margin-left: auto; }
.ob-focus-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 8px 0; }
.ob-focus-stats a { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; }
.ob-focus-stats strong { font-size: clamp(20px,1.45vw,31px); line-height: 1.05; font-weight: 600; }
.ob-focus-stats span, .ob-caption { font-size: 12px; color: var(--mute); }
.ob-latest { display: grid; gap: 3px; }
.ob-caption { color: #9bb1c3; }
.ob-case { font-size: 14px; line-height: 1.45; color: #e8f2fb; }
.ob-case svg { margin-left: 4px; color: var(--focus); }
.ob-next { font-size: 12px; line-height: 1.5; color: #c4d5df; }
.ob-next span:first-child { color: var(--focus); }
.ob-next span + span::before { content: " / "; color: #7893a0; }
.ob-stages { padding: 8px 15px 11px; }
.ob-stage-list { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin-top: 4px; }
.ob-stage { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; padding: 6px 9px;
    background: #142536; border: 1px solid #2a4054; border-radius: 2px; }
.ob-stage > span { color: #c2d4e2; font-size: 13px; }
.ob-stage strong { grid-row: 1; grid-column: 2; font-size: 21px; line-height: 1.1; font-weight: 500; }
.ob-stage svg { display: none; }
.ob-stage meter { grid-row: 2; grid-column: 1/-1; appearance: none; width: 100%; height: 4px; background: #2c4152; border: 0; }
.ob-stage meter::-webkit-meter-bar { height: 4px; background: #2c4152; border: 0; border-radius: 0; }
.ob-stage meter::-webkit-meter-optimum-value { background: #65d5dd; }
.ob-stage meter::-moz-meter-bar { background: #65d5dd; }
.ob-foot { margin: 0; line-height: 1.4; }
@media (min-width:1200px) {
    .ob-page:is(:fullscreen,.ob-expanded) .ob-orbit { min-height: clamp(235px,28vh,420px); }
    .ob-page:is(:fullscreen,.ob-expanded) .ob-node { min-height: clamp(50px,5.4vh,90px); }
    .ob-page:is(:fullscreen,.ob-expanded) .ob-focus { padding: clamp(12px,1.3vh,24px) clamp(16px,1.4vw,34px); }
    .ob-page:is(:fullscreen,.ob-expanded) :is(.ob-case,.ob-node-name) { font-size: clamp(16px,1.08vw,27px); }
    .ob-page:is(:fullscreen,.ob-expanded) :is(.ob-focus-stats span,.ob-next,.ob-stage > span,.ob-node-count) { font-size: clamp(14px,.98vw,22px); }
    .ob-page:is(:fullscreen,.ob-expanded) .ob-focus-stats { margin-block: clamp(10px,1.6vh,24px); }
}
@media (max-width:1100px) {
    .ob-main { grid-template-columns: minmax(0,1.38fr) minmax(260px,1fr); }
    .ob-focus-stats a { gap: 2px 4px; }
    .ob-stage-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width:800px) {
    .ob-main { grid-template-columns: 1fr; }
    .ob-focus-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; }
    .ob-ai { border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width:560px) {
    .ob-page { padding: 13px 12px 22px; }
    .ob-header { align-items: center; }
    .ob-header h1 { gap: 8px; font-size: 22px; }
    .ob-tools { display: grid; grid-template-columns: repeat(2,max-content); justify-content: end; gap: 4px; }
    .ob-stamp { grid-column: 1/-1; margin: 0; text-align: right; }
    .ob-tools .button,.ob-motion { min-height: 36px; }
    .ob-orbit { min-height: 210px; }
    .ob-bank { padding-inline: 7px 0; padding-block: 10px; }
    .ob-bank-right { padding-inline: 0 7px; }
    .ob-node { width: clamp(70px,20vw,100px); min-height: 44px; padding-inline: 6px; }
    .ob-core-label { gap: 1px; }
    .ob-core-label b { font-size: 16px; }
    .ob-focus-grid { grid-template-columns: 1fr; }
    .ob-focus-stats a { display: flex; }
    .ob-ai { border-top: 1px solid var(--line); border-left: 0; }
    .ob-stage-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ob-stage { min-height: 45px; }
}

.stage-map { min-width: 0; border: 1px solid #345165; border-radius: 5px; background: #101f2e; overflow: hidden; }
.stage-heading, .stage-heading-title, .stage-actions, .stage-directory { display: flex; align-items: center; }
.stage-heading { gap: 12px; justify-content: space-between; flex-wrap: wrap; padding: 13px 16px; cursor: pointer;
    border-bottom: 1px solid var(--line); background: linear-gradient(100deg,#192f40,#101f2e 72%); }
.stage-heading-title { gap: 9px; flex-wrap: wrap; }
.stage-heading-title svg { color: var(--sky); }
.stage-heading h2 { margin: 0; color: var(--text); font-size: 18px; }
.stage-heading-title > span { color: #bacbda; font-size: 12px; }
.stage-actions { gap: 14px; }
.stage-guide { display: grid; gap: 12px; margin: 0; }
.stage-guide dt { font-weight: 700; color: #184990; }
.stage-guide dd { margin: 3px 0 0; }
.stage-sort { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #c6d9e8; }
.stage-sort select { width: auto; min-height: 28px; padding: 2px 4px; color: #e3eff8; background: #162c40; border: 1px solid #496278; }
.stage-activity { display: none; flex: none; font-size: 11px; color: #bdcede; font-variant-numeric: tabular-nums; }
.stage-show-dates .stage-activity { display: inline; }
.stage-directory { gap: 5px; font-size: 13px; }
.stage-motion, .stage-guide-button { color: #b7c9d8; border: 0; padding: 4px; font: inherit; font-size: 12px; background: transparent; }
.stage-directory:hover, .stage-motion:hover, .stage-guide-button:hover { color: var(--sky); text-decoration: underline; }
stage-viewport { display: block; position: relative; }
stage-viewport.more-below::after { position: absolute; pointer-events: none; z-index: 5; content: ""; inset: auto 0 0;
    height: 32px; background: linear-gradient(transparent,#101f2eea); }
.stage-scroll { overflow: auto; max-height: clamp(244px, 34vh, 380px); scrollbar-color: #436178 #101f2e;
    scrollbar-width: thin; scroll-padding-block: 36px 28px; }
.stage-grid { min-width: 610px; --label-width: clamp(148px,22%,360px); }
.stage-columns { display: grid; grid-template-columns: var(--label-width) minmax(0,1fr); }
.stage-axis { position: sticky; top: 0; z-index: 4; align-items: stretch; min-height: 33px; color: #c6d9e8;
    font-size: 12px; border-bottom: 1px solid #315063; background: #182b3c; }
.stage-axis-label, .stage-row-label { position: sticky; left: 0; display: flex; align-items: center; padding-inline: 14px 8px; }
.stage-axis-label { z-index: 2; background: #182b3c; }
.stage-axis-steps { display: grid; grid-template-columns: repeat(var(--stage-count), minmax(0,1fr)); align-items: center; text-align: center; }
.stage-row { position: relative; isolation: isolate; align-items: stretch; min-height: 35px; border-bottom: 1px solid #243746; }
.stage-group:last-child .stage-row:last-child { border-bottom-color: transparent; }
.stage-row-label { z-index: 2; gap: 8px; background: #102030; pointer-events: none; min-width: 0; }
.stage-row:has(.stage-dossier:hover), .stage-row:has(.stage-bar:hover), .stage-row:focus-within { background: #192f40; }
.stage-row:has(.stage-dossier:hover) .stage-name { text-decoration: underline; text-underline-offset: 3px; }
.stage-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 600; }
.stage-row-label small { flex: none; font-size: 11px; color: #aec1d1; font-variant-numeric: tabular-nums; }
.stage-disclosure, .stage-key { width: 21px; flex: 0 0 21px; }
.stage-key::after { content: ""; display: block; margin: auto; width: 7px; height: 7px; border-radius: 2px; background: var(--stage-color); }
.stage-disclosure { pointer-events: auto; align-self: stretch; background: transparent; border: 0; border-radius: 3px;
    padding: 0; display: grid; place-content: center; color: var(--stage-color); cursor: pointer; }
.stage-disclosure:hover { background: #2b4254; }
.stage-disclosure[aria-expanded="true"] svg { transform: rotate(90deg); }
.stage-child { min-height: 31px; background: #0c1a28; }
.stage-child .stage-row-label { padding-left: 26px; background: #0d1d2c; }
.stage-child .stage-name { font-weight: 400; font-size: 12px; color: #c4d3df; }
.stage-child .stage-key::after { width: 9px; height: 7px; border-radius: 0; background: transparent;
    border-left: 1px solid var(--stage-color); border-bottom: 1px solid var(--stage-color); opacity: .7; }
.stage-dossier { position: absolute; inset: 0; z-index: 0; }
.stage-dossier:focus-visible { outline-offset: -3px; }
.stage-lane { position: relative; display: flex; align-items: center; pointer-events: none;
    background: linear-gradient(to right,transparent calc(50% - .5px),#395366 50%,transparent calc(50% + 1px)) 0 0 / calc(100% / var(--stage-count)) 100% repeat-x; }
.stage-lane::before { content: ""; position: absolute; inset-inline: 0 calc(50% / var(--stage-count)); top: 50%; height: 1px; background: #2c4454; }
.stage-bar { display: flex; align-items: center; z-index: 1; position: relative; align-self: stretch; pointer-events: auto; cursor: pointer; }
.stage-fill { width: 100%; height: 8px; overflow: hidden; position: relative; border-radius: 1px;
    background: linear-gradient(90deg,color-mix(in srgb,var(--stage-color) 36%,#132838),var(--stage-color));
    box-shadow: 0 0 7px color-mix(in srgb,var(--stage-color) 20%,transparent); }
.stage-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 28%,#ffffff0a 43%,#ffffff57 64%,transparent 69%);
    animation: stage-sweep 5.8s linear infinite; animation-delay: var(--stage-delay); }
@keyframes stage-sweep { 0% { transform: translateX(-100%); } 73%,100% { transform: translateX(105%); } }
.stage-static .stage-fill::after { animation: none; opacity: 0; }
.stage-tip { position: absolute; right: 0; top: 50%; height: 12px; width: 4px; border-radius: 1px; transform: translate(50%,-50%);
    background: color-mix(in srgb,var(--stage-color) 68%,white); box-shadow: 0 0 9px color-mix(in srgb,var(--stage-color) 50%,transparent); }
.stage-child .stage-fill { height: 5px; }
.stage-child .stage-tip { height: 9px; }
.stage-uncontacted .stage-fill { visibility: hidden; }
.stage-uncontacted .stage-tip { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #a7bbc9; background: #1f3545; box-shadow: none; }
.stage-bar:hover .stage-fill, .stage-bar:focus-visible .stage-fill { filter: brightness(1.15); }
.stage-unknown { position: relative; z-index: 1; pointer-events: auto; background: #142434; color: #c5d2dc; padding: 4px 7px; font-size: 12px; }
.stage-empty { margin: 16px; color: var(--mute); }
.manager-week { padding: 10px 16px; }
.manager-week-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; font-size: 12px; color: var(--mute); }
.manager-week-tools a { display: inline-flex; align-items: center; gap: 4px; color: var(--sky); }
.manager-week-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 6px 18px; }
.manager-week-grid article { border-top: 1px solid var(--line); padding: 8px 0; min-width: 0; }
.manager-week-grid article > a { display: inline-flex; gap: 6px; align-items: center; color: var(--sky); }
.manager-week dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 10px; margin: 7px 0 0; font-size: 12px; }
.manager-week dt { color: var(--mute); }
.manager-week dd { display: flex; gap: 2px 10px; flex-wrap: wrap; margin: 0; }
@container (max-width: 640px) {
    .ob-metric-title svg { display: none; }
}
@container (max-width: 480px) {
    .ob-metric { flex-direction: column; gap: 2px; min-height: 44px; padding-block: 3px; }
    .ob-metric-title { line-height: 1.25; }
    .ob-value { font-size: 18px; }
}
.perm-editor,.perm-groups { padding: 16px; }
.perm-editor { display: grid; gap: 12px; max-width: 760px; }
.perm-editor > div > .button { margin-top: 12px; }
.perm-columns { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); gap: 12px; }
.perm-checklist { border: 1px solid #cbd8e8; padding: 10px; min-width: 0; }
.perm-checklist legend { font-weight: 650; padding-inline: 4px; }
.perm-checklist input[type=search] { width: 100%; }
.perm-options { max-height: 275px; overflow: auto; margin-top: 8px; }
.perm-option { display: flex; gap: 7px; align-items: center; padding: 6px 2px; }
.perm-option[hidden] { display: none; }
.perm-option small { margin-left: auto; color: #40628a; }
.perm-group { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 10px; border-bottom: 1px solid #dbe3ec; }
.stage-mini { display: inline-grid; gap: 4px; width: 85px; max-width: 100%; vertical-align: middle; font-size: 12px; line-height: 1.35; }
.stage-mini-label { color: #203952; font-weight: 600; }
.stage-mini-scale { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 2px; }
.stage-mini-scale i { height: 5px; background: #d8e3ee; border-radius: 1px; }
.stage-mini-scale i.reached { background: #306bcc; }
.stage-mini-button { border: 0; background: transparent; text-align: left; padding: 4px 0; cursor: pointer; }
a.stage-mini:hover .stage-mini-label, .stage-mini-button:hover .stage-mini-label { text-decoration: underline; }
@media (max-width: 650px) {
    .stage-heading { gap: 4px 12px; padding: 10px; }
    .stage-heading h2 { font-size: 16px; }
    .stage-heading-title { gap: 5px; }
    .stage-heading-title > span { font-size: 11px; }
    .stage-actions { gap: 6px; }
    .stage-grid { --label-width: 140px; }
    .stage-row-label, .stage-axis-label { padding-left: 6px; }
    .stage-row-label { gap: 3px; }
}
@media (pointer: coarse) {
    .stage-row { min-height: 44px; }
    .stage-disclosure { min-width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .stage-fill::after { animation: none; opacity: 0; }
    .stage-motion { display: none; }
}
