.mwrap:has(.staff-demo) { grid-template-columns: minmax(0, 1fr); }
.mwrap:has(.staff-demo) .cc, .mwrap:has(.staff-demo) ~ .ccfab { display: none; }
.staff-demo { max-width: 1240px; margin: 0 auto; color: #241e18; }
.staff-demo h2, .staff-demo h3 { margin: 0; line-height: 1; }
.staff-demo h3 { font-size: 1.65rem; }
.staff-demo p { margin: .45rem 0; }
.staff-demo small, .staff-muted { color: #655b4e; }
.staff-hero { background: #231e18; color: #fff8ed; border-radius: 18px; padding: clamp(18px, 4vw, 36px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.staff-hero h2 { font-size: clamp(40px, 7vw, 66px); }
.staff-hero p { max-width: 62ch; color: #e4dace; }
.staff-kicker { color: #c1df55; font-size: .78rem; letter-spacing: .09em; font-weight: 700; text-transform: uppercase; }
.staff-control, .staff-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.staff-control button, .staff-tabs button, .staff-panel button { font: inherit; font-weight: 600; cursor: pointer; border: 1px solid #b9aa96; border-radius: 9px; color: #211b17; background: #fffdf7; padding: 9px 13px; }
.staff-demo button:disabled { opacity: .62; cursor: wait; }
.staff-demo :focus-visible { outline: 3px solid #00536b; outline-offset: 3px; }
.staff-hero :focus-visible { outline-color: #e4fc91; }
.staff-demo button.staff-primary, .staff-tabs button[aria-pressed=true] { border-color: #acc342; background: #b6d640; color: #201a15; }
.staff-tabs { padding-top: 16px; }
.staff-status { min-height: 1.7em; padding: 7px 0; font-size: .9rem; }
.staff-panel { padding: clamp(14px, 2.5vw, 24px); border: 1px solid #d6c7b1; border-radius: 15px; background: #fffdf7; margin-bottom: 14px; min-width: 0; }
.staff-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.staff-panel-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.staff-stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 170px),1fr)); gap: 10px; margin: 12px 0; }
.staff-stat { padding: 12px; border-radius: 10px; background: #f3ebdd; }
.staff-stat strong { display: block; font-size: 1.32rem; }
.staff-card { border: 1px solid #ded2c0; border-radius: 10px; padding: 11px 13px; margin: 8px 0; overflow-wrap: anywhere; }
.staff-card h4 { margin: 0; font-size: 1rem; }
.staff-callout { border-left: 5px solid #a34725; background: #faedde; }
.staff-ok { border-left: 5px solid #658422; background: #eff4dd; }
.staff-hold { border-left: 5px solid #a34725; background: #faedde; }
.staff-table { overflow-x: auto; margin-top: 10px; }
.staff-table table { border-collapse: collapse; width: 100%; text-align: left; font-size: .86rem; }
.staff-table caption { text-align: left; color: #655b4e; padding: 0 0 .4rem; }
.staff-table th, .staff-table td { padding: 8px; border-bottom: 1px solid #ded2c0; vertical-align: top; }
.staff-table th { background: #f3ebdd; }
.staff-panel select { width: auto; max-width: 100%; margin: 0; padding: 7px 9px; font: inherit; }
.staff-panel summary { cursor: pointer; font-weight: 600; }
.staff-panel fieldset { margin: 12px 0; border: 1px solid #ded2c0; border-radius: 9px; padding: 10px; }
.staff-panel legend { font-size: .88rem; font-weight: 700; }
.staff-panel input[type=checkbox] { width: auto; margin: 0 4px 0 0; accent-color: #658422; }
.staff-panel fieldset label { display: inline-flex; align-items: center; padding: 4px 8px; font-size: .85rem; }
.staff-scenario { margin-top: 16px; font-size: .86rem; }
.staff-scenario > div { margin-top: 9px; }
.staff-scenario select { min-height: 40px; font: inherit; }
@media(max-width: 810px) { .staff-split { grid-template-columns: minmax(0, 1fr); } }
