.demo {
    min-width: 0;
    background: #fff;
    border: 1px solid #cdd7cd;
    border-radius: 15px;
    box-shadow: 0 16px 48px #2d443b12;
    overflow: hidden;
}
.demo-toolbar, .step-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 15px;
    min-height: 59px;
    padding: 8px clamp(12px, 2vw, 22px);
    border-bottom: 1px solid #dbe3db;
    background: #f5f7f1;
}
.demo-label { display: inline-flex; align-items: center; gap: 7px; color: #314c3d; font-size: .75rem; font-weight: 750; }
.demo-label .signal { background: #4f8767; }
.small-label { color: #50645b; font: .65rem var(--mono); }
.segment { display: flex; flex-wrap: wrap; gap: 3px; }
.segment button, .step-toolbar button {
    min-height: 40px;
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #3f584b;
    font-size: .76rem;
    font-weight: 700;
}
.segment button:hover, .step-toolbar button:hover { background: #e5ece0; }
.segment button[aria-pressed="true"], .step-toolbar button[aria-pressed="true"] {
    border-color: #b2c5ae;
    background: #e7edda;
    color: #203c2e;
}
.step-toolbar { justify-content: flex-start; gap: 5px; min-height: 52px; background: #fff; }
.step-toolbar button > span { margin-right: 4px; font: .62rem var(--mono); }
.demo-content { min-width: 0; padding: clamp(16px, 2.8vw, 31px); }
.screen-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px 17px; flex-wrap: wrap; margin-bottom: 21px; }
.screen-title h3 { margin: 4px 0 5px; font-size: clamp(1.4rem, 2.5vw, 2.2rem); line-height: 1.1; letter-spacing: -.048em; }
.screen-title p { max-width: 635px; color: #50645b; font-size: .85rem; }
.screen-title > .badge { margin-top: 5px; }
.screen-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.screen-grid-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.panel, .participant-card {
    min-width: 0;
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 11px;
    border: 1px solid #d9e2d9;
    border-radius: 10px;
    padding: clamp(15px, 2vw, 23px);
    background: #fff;
}
.panel h4, .participant-card h4 { margin: 0; color: inherit; font-size: .99rem; line-height: 1.3; letter-spacing: -.018em; }
.panel p, .participant-card p { color: #455c51; font-size: .84rem; }
.panel .micro { color: #517158; }
.panel .subtle, .subtle { color: #52655d; font-size: .74rem; }
.decision-panel { background: #f3f6e8; }
.decision-panel blockquote { margin: 0; border-left: 3px solid #95ae72; padding: 8px 0 8px 13px; font-size: .95rem; font-weight: 650; }
.badge { display: inline-flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; padding: 4px 8px; border: 1px solid transparent; border-radius: 100px; font-size: .68rem; line-height: 1.22; font-weight: 720; text-align: center; }
.badge-neutral { background: #edf0ed; border-color: #d9e0d9; color: #3e5348; }
.badge-good { background: #e5f0df; color: #25533b; border-color: #cadec6; }
.badge-warn { background: #fbefce; color: #704a17; border-color: #ecdbac; }
.badge-info { background: #e7eef8; color: #2c5176; border-color: #d4e0ee; }
.notice { align-self: start; width: 100%; margin-top: 4px; border-left: 3px solid #527daa; border-radius: 5px; padding: 10px 12px; background: #edf3fa; color: #2b5076; font-size: .79rem; }
.notice p { margin-top: 3px; color: inherit; }
.notice-warn { background: #faf0d8; border-color: #bd8c37; color: #6b471d; }
.notice-good { background: #e9f2e3; border-color: #5a9166; color: #295b43; }
#release-screen > .notice { margin-top: 12px; }
.button-small { min-height: 37px; font-size: .71rem; padding: 5px 10px; }
.button-outline { border: 1px solid #8a9f92; background: transparent; color: #29483a; }
.button-outline:hover { background: #edf3e9; }
.button:disabled { border-color: #d8ddd7; background: #eaede9; color: #57655d; }
.text-button { min-height: 36px; border: 0; padding: 4px 0; background: transparent; color: inherit; font-size: .76rem; font-weight: 720; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.document-list, .status-list { width: 100%; margin: 0; }
.document-row, .status-list > div { display: flex; align-items: center; gap: 8px; min-height: 49px; padding-block: 7px; border-top: 1px solid #e0e7df; }
.document-row > div { flex: 1; min-width: 0; }
.document-row strong, .action-row strong { display: block; font-size: .81rem; line-height: 1.35; }
.document-row small, .action-row small { display: block; margin-top: 3px; color: #4e6156; font-size: .71rem; }
.tile-icon { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 6px; background: #eaf0e6; color: #38594a; font: .72rem var(--mono); }
.status-list > div { justify-content: space-between; min-height: 40px; font-size: .83rem; }
.status-list dd { flex: 0 1 auto; margin: 0; text-align: right; }
.code-panel { overflow: hidden; min-width: 0; border-radius: 9px; background: #172e27; color: #edf6ee; }
.code-title { display: flex; align-items: center; gap: 13px; min-height: 38px; padding: 8px 12px; border-bottom: 1px solid #55786b; color: #c1d8cc; font: .67rem var(--mono); overflow-wrap: anywhere; }
.code-panel pre { margin: 0; padding: 16px; overflow-x: auto; font: .73rem/1.7 var(--mono); }
.code-panel code { font: inherit; }
.code-key { color: #cbb9ef; }
.code-string { color: #e8ef9d; }
.code-number { color: #ffd5aa; }
.check-list { margin: 0; padding-left: 17px; color: #3b5547; font-size: .84rem; }
.check-list li { padding-bottom: 6px; }
.design-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.design-swatch { padding: 20px; border: 1px solid #c7d3c5; border-radius: 10px; }
.design-swatch h4 { margin: 8px 0; font: 400 clamp(1.36rem, 2.5vw, 2.2rem)/1 var(--serif); letter-spacing: -.04em; }
.design-swatch p { font-size: .83rem; }
.design-swatch a { font-size: .75rem; text-underline-offset: 3px; }
.young-swatch { background: #eeefd8; }
.eeg-swatch { background: #eaf1fa; }
.palette { display: flex; gap: 4px; margin: 14px 0; }
.palette i { display: block; width: 30px; height: 21px; border: 1px solid #738172; border-radius: 4px; }
.palette-young i:nth-child(1) { background: #344020; }
.palette-young i:nth-child(2) { background: #f9de8b; }
.palette-young i:nth-child(3) { background: #d5c7ed; }
.palette-eeg i:nth-child(1) { background: #234773; }
.palette-eeg i:nth-child(2) { background: #6895c2; }
.palette-eeg i:nth-child(3) { background: #d8e8fb; }
.screen-footnote { margin-top: 12px; color: #476052; font-size: .75rem; }

.participant-view { color: var(--study-ink); background: var(--study-base); }
.theme-young { --study-ink: #313b24; --study-base: #f9f8ec; --study-soft: #eeefd7; --study-accent: #3d542d; --study-line: #cfd3b5; }
.theme-eeg { --study-ink: #183859; --study-base: #f6faff; --study-soft: #e7f0fc; --study-accent: #234873; --study-line: #c5d6e9; }
.participant-top, .participant-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 16px; padding: 10px clamp(15px, 2.8vw, 30px); border-bottom: 1px solid var(--study-line); }
.participant-top strong { font-size: .83rem; }
.participant-top > span, .participant-foot { font: .67rem/1.4 var(--mono); }
.participant-foot { border-top: 1px solid var(--study-line); border-bottom: 0; }
.participant-inner { min-height: 220px; padding: clamp(16px, 3vw, 32px); }
.participant-inner .screen-title h3 { color: var(--study-ink); }
.participant-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.participant-hero h3 { color: var(--study-ink); margin: 8px 0 11px; font: 400 clamp(2.25rem, 4.4vw, 4.25rem)/1.02 var(--serif); letter-spacing: -.053em; }
.participant-hero p { color: var(--study-ink); max-width: 390px; font-size: .93rem; }
.participant-tags { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; margin: 14px 0; }
.participant-tags li { padding: 3px 8px; border: 1px solid var(--study-line); border-radius: 100px; background: var(--study-soft); font-size: .68rem; }
.study-illustration { display: grid; justify-items: center; align-items: center; min-width: 0; }
.study-illustration svg { max-height: 245px; width: 100%; }
.participant-button { justify-self: start; background: var(--study-accent); color: #fff; }
.participant-button:not(:disabled):hover { filter: brightness(1.15); }
.participant-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 17px; }
.participant-facts article { padding: 13px; border: 1px solid var(--study-line); border-radius: 8px; background: var(--study-soft); }
.participant-facts h4 { margin: 4px 0 2px; font-size: .88rem; }
.participant-facts p { font-size: .75rem; }
.theme-eeg .participant-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.theme-eeg .participant-facts article { border: 0; border-top: 2px solid #8baaca; border-radius: 0; background: transparent; }
.theme-eeg .participant-facts article + article { border-left: 1px solid var(--study-line); }
.age-control { display: flex; align-items: center; gap: 15px; margin: 0 0 12px; font-weight: 650; font-size: .82rem; }
.guardian-tabs { margin-bottom: 10px; }
.guardian-document { max-width: 660px; background: #fff; }
.participant-card { border-color: var(--study-line); }
.participant-card small { font-size: .72rem; }
.participant-inner > .participant-button { margin-top: 13px; }
.participant-task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.participant-task-grid .participant-card > div { display: grid; justify-items: start; gap: 3px; }
.participant-progress { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-bottom: 11px; padding: 11px 13px; border-radius: 7px; background: var(--study-soft); font-size: .79rem; }
.participant-progress small { display: block; margin-top: 3px; }
.guide-grid { align-items: center; }
.guide-steps { margin: 0; padding-left: 31px; }
.guide-steps li { margin-block: 7px; padding-left: 5px; }
.guide-illustration svg { max-height: 175px; }
.survey-card > div:last-child { display: flex; gap: 12px; flex-wrap: wrap; }

.staff-shell { display: grid; grid-template-columns: minmax(145px, 18%) minmax(0, 1fr); }
.staff-nav { display: flex; align-items: stretch; flex-direction: column; gap: 3px; padding: 17px 11px; background: #edf3ee; border-right: 1px solid #d6e1d8; }
.staff-nav .micro { margin: 3px 10px 7px; }
.staff-nav button { min-height: 39px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #345347; text-align: left; padding: 5px 9px; font-size: .78rem; }
.staff-nav button[aria-pressed="true"], .staff-nav button:hover { border-color: #bdcfc3; background: #dce9df; color: #1e4636; font-weight: 740; }
.staff-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.staff-metrics > div { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px; border: 1px solid #d9e4db; border-radius: 8px; background: #f6f8f4; }
.staff-metrics span { color: #526a5e; font: .62rem/1.35 var(--mono); }
.staff-metrics strong { font: 400 1.75rem/1.06 var(--serif); color: #213d31; }
.staff-metrics strong.word { font-size: 1.04rem; padding-top: 4px; }
.action-list { gap: 0; padding-top: 4px; padding-bottom: 4px; }
.action-row { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 53px; gap: 10px; padding: 7px 0; border: 0; background: #fff; color: var(--ink); text-align: left; }
.action-row + .action-row { border-top: 1px solid #e0e6df; }
.action-row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.action-row > span:last-child { color: #426b55; }
.portfolio-study { background: #f4f7ee; }
.table-wrap { display: block; max-width: 100%; overflow: auto; }
.demo-table { border-collapse: collapse; white-space: nowrap; font: .72rem/1.45 var(--mono); }
.demo-table caption { margin-bottom: 6px; color: #4d6257; text-align: left; font: .71rem var(--sans); }
.demo-table th, .demo-table td { padding: 8px; border-bottom: 1px solid #dce5dd; text-align: left; }
.demo-table th { background: #edf2ed; font-weight: 700; }

.release-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.release-stage { min-width: 0; padding: 13px; border: 1px solid #d8e2d9; border-radius: 9px; background: #f6f8f3; }
.release-stage.current { border-color: #829c6d; background: #ebf2da; }
.release-stage h4 { margin: 5px 0; font-size: .9rem; }
.release-stage code { color: #40594b; font: .69rem var(--mono); overflow-wrap: anywhere; }
.rehearsal-list { display: grid; gap: 4px; }
.rehearsal-list label { display: flex; align-items: flex-start; gap: 6px; min-height: 33px; font-size: .79rem; cursor: pointer; }
.rehearsal-list input { margin-top: 4px; accent-color: #3a6c51; }

@media (max-width: 780px) {
    .staff-shell { grid-template-columns: 1fr; }
    .staff-nav { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 8px 11px; border-right: 0; border-bottom: 1px solid #d6e1d8; }
    .staff-nav .micro { display: none; }
    .staff-nav button { min-height: 36px; }
}

@media (max-width: 590px) {
    .screen-grid, .screen-grid-wide, .participant-hero, .design-pair { grid-template-columns: 1fr; }
    .participant-hero .study-illustration svg { max-height: 155px; }
    .participant-task-grid { grid-template-columns: 1fr; }
    .participant-task-grid .participant-card { gap: 8px; }
    .theme-eeg .participant-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .theme-eeg .participant-facts article:nth-child(odd) { border-left: 0; }
    .segment button, .step-toolbar button { min-height: 39px; padding-inline: 7px; }
    .staff-metrics > div { padding: 7px; }
    .staff-metrics span { font-size: .54rem; }
    .staff-metrics strong.word { font-size: .78rem; }
    .release-stage { padding: 8px; }
    .release-stage .micro, .release-stage code { font-size: .56rem; }
    .release-stage h4 { font-size: .74rem; }
}

/* Fit the main interaction on a typical projector while keeping the scrollable reading mode spacious. */
@media (min-width: 741px) {
    .presenting .section { padding-top: clamp(20px, 3.8vh, 50px); }
    .presenting .section-heading { gap: 11px; margin-bottom: 21px; }
    .presenting .section-heading h2 { font-size: clamp(2.65rem, 3.7vw, 4.15rem); }
    .presenting .demo-caption { margin-top: 9px; }
    .presenting .participant-inner { padding-block: 17px; }
    .presenting .participant-hero h3 { font-size: clamp(2rem, 3vw, 3.4rem); }
    .presenting .participant-hero .study-illustration svg { max-height: 180px; }
    .presenting .participant-facts { margin-top: 10px; }
}
