/* Shared presentation only: data, routing and permission decisions stay with each module. */
:root{--ux-bg:#081510;--ux-surface:#10221b;--ux-raised:#182e25;--ux-line:#355247;--ux-text:#edf1e8;--ux-muted:#b0c3b8;--ux-accent:#a7d7bb;--ux-gold:#dcc894;--ux-radius:14px;--ux-sans:"Avenir Next","Segoe UI",sans-serif;color-scheme:dark}
body.scientific-space,.projects-admin,.project-dialog,.pe-scope-scientifique,.roster-scientifique{--ux-bg:#081525;--ux-surface:#10243a;--ux-raised:#19334d;--ux-line:#365672;--ux-muted:#b1c5d9;--ux-accent:#a0cbef}
body.psychology-space,.psy-records,.psy-dialog,.psy-alert,.pe-scope-psychologie,.roster-psychologie{--ux-bg:#151222;--ux-surface:#231e35;--ux-raised:#302941;--ux-line:#544869;--ux-muted:#c3b8d2;--ux-accent:#d1b7ed}
body.shared-space,.central-roster-page,.pe-users-page,.pe-users-v2{--ux-bg:#111317;--ux-surface:#1b2026;--ux-raised:#292f37;--ux-line:#4a535d;--ux-muted:#c0c8d0;--ux-accent:#d7dfe7}
body.shared-space{background:var(--ux-bg);color:var(--ux-text)}
body.shared-space .site-main{background:var(--ux-bg)}
body.shared-space .world-backdrop{display:none}
body.shared-space .hero-media img{filter:grayscale(1) brightness(.8)}
body.shared-space :is(.demo-banner,.page-heading,.breadcrumb,.global-search-empty){border-color:var(--ux-line)}
body.shared-space .demo-banner{background:var(--ux-surface)}
body.shared-space .nav-list a[aria-current=page]{background:var(--ux-raised);border-color:var(--ux-line);box-shadow:none}
/* The content's pole controls the card palette, including both faces. */
body .flashcard{background:var(--ux-bg);border-color:var(--ux-line);box-shadow:0 12px 30px #0005}
body .flashcard-art::after{background:linear-gradient(180deg,color-mix(in srgb,var(--ux-bg) 50%,transparent),transparent 35%,var(--ux-bg))}
body .flashcard-label{color:var(--ux-text);background:linear-gradient(0deg,var(--ux-bg) 70%,transparent)}
body .flashcard[open]{border-color:var(--ux-accent);box-shadow:0 16px 36px #0006}
body .flashcard[open] .flashcard-label{background:linear-gradient(105deg,var(--ux-raised),var(--ux-surface));border-color:var(--ux-line)}
body .flashcard-copy{background:linear-gradient(140deg,var(--ux-surface),var(--ux-bg));color:var(--ux-text)}
body .flashcard-scroll{scrollbar-color:var(--ux-line) var(--ux-surface)}
body .flashcard-scroll :is(p,li,dd){color:var(--ux-text)}
body .flashcard-scroll dt,body .flashcard-prompt,body .flashcard-footer a{color:var(--ux-accent)}
body .flashcard-number,body .flashcard-topline>span:last-child,body .flashcard[open] .flashcard-close{background:var(--ux-surface);border-color:var(--ux-line);color:var(--ux-text)}
body .flashcard-footer{background:var(--ux-surface);border-color:var(--ux-line);color:var(--ux-muted)}
body .flashcard-prompt,body .flashcard-scroll .fields>div{border-color:var(--ux-line)}
body.shared-space :is(.global-search-form,.transverse-grid article,.global-search-card){background:var(--ux-surface);border-color:var(--ux-line);color:var(--ux-text)}
body.shared-space :is(.global-search-form input,.global-search-form select,.transverse-filters button){background:var(--ux-raised);border-color:var(--ux-line);color:var(--ux-text)}
@media print{body .flashcard,body .flashcard-label,body .flashcard[open] .flashcard-label,body .flashcard-copy,body .flashcard-footer{background:#fff;color:#111;border-color:#bbb}body .flashcard-scroll :is(p,li,dd,dt){color:#111}}
body{font-family:var(--ux-sans);text-rendering:optimizeLegibility}
body.editor-app{background:var(--ux-bg);color:var(--ux-text)}
:is(button,a,input,textarea,select,summary,[role=combobox]):focus-visible{outline:3px solid var(--ux-accent);outline-offset:4px}
:is(input,textarea,select){font-family:var(--ux-sans);font-size:1rem}
:is(button,[role=button],summary){touch-action:manipulation}
:is(button,[role=button]):disabled{cursor:not-allowed;opacity:.55}
:is(h1,h2,h3){text-wrap:balance}p{overflow-wrap:break-word}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

body .projects-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:end}
.projects-extra-filters{grid-column:1/-1;border-top:1px solid var(--ux-line);padding-top:.5rem}
.projects-extra-filters summary{cursor:pointer;padding:.6rem 0;color:var(--ux-accent);font-size:.875rem}
.projects-extra-filters>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;padding:.5rem 0}
@media(max-width:640px){.projects-extra-filters>div{grid-template-columns:1fr}}

/* Reading surfaces: quieter framing, stronger orientation and legible pages. */
body .site-main .page{max-width:1440px}
body .top-utility{font-size:.8rem;letter-spacing:.055em;padding-block:.8rem}
body .breadcrumb{font: .875rem/1.6 var(--ux-sans);padding-block:1rem;gap:.6rem;flex-wrap:wrap}
body .page-heading{min-height:230px;border-radius:var(--ux-radius);margin-bottom:1.75rem}
body .page-heading h1{font-size:clamp(2rem,3.7vw,3.5rem);line-height:1.13;max-width:24ch}
body .page-heading.home-heading{min-height:370px}
body .page-heading .heading-copy{padding:clamp(1.4rem,3vw,2.8rem)}
body .page-heading .lede{font-size:1.05rem;line-height:1.7;max-width:62ch}
body .hero-overlay{background:linear-gradient(90deg,var(--ux-bg) 0%,color-mix(in srgb,var(--ux-bg) 90%,transparent) 28%,color-mix(in srgb,var(--ux-bg) 24%,transparent) 100%)}
body .hero-cta,body .read-link{font-family:var(--ux-sans);font-size:.9375rem;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:.6rem}
body .hero-cta{background:var(--ux-raised);border-color:var(--ux-line);color:var(--ux-text);box-shadow:none}
body .hero-cta:hover{background:var(--ux-surface);border-color:var(--ux-accent)}
body .chapter-seal{opacity:.65}
body .panel,body .course-entry{background:var(--ux-surface);color:var(--ux-text);border-color:var(--ux-line);border-radius:var(--ux-radius);box-shadow:none}
body .panel :is(h2,h3),body .course-entry h2{color:var(--ux-text)}
body .panel :is(p,li),body .course-entry p{color:var(--ux-muted);font-size:1rem;line-height:1.85}
body .content :is(.text-block,.panel)>:is(p,ul,ol){max-width:78ch}
body .content h2{line-height:1.3}body .notice{border-radius:10px;font-size:.9375rem;line-height:1.75}
body .category-grid{gap:1.25rem}
.pole-quick-actions{display:flex;flex-wrap:wrap;gap:1rem;margin:0 0 1.7rem}
.pole-quick-actions a{flex:1 1 230px;background:var(--ux-surface);border:1px solid var(--ux-line);border-radius:12px;padding:1.1rem 1.3rem;text-decoration:none}
.pole-quick-actions a:hover{background:var(--ux-raised);border-color:var(--ux-accent)}
.pole-quick-actions strong{display:flex;align-items:center;justify-content:space-between;color:var(--ux-text);font:600 1rem/1.5 var(--ux-sans)}
.pole-quick-actions small{display:block;color:var(--ux-muted);font:.875rem/1.6 var(--ux-sans);margin-top:.35rem}
body .category{background:var(--ux-surface);border:1px solid var(--ux-line);border-radius:var(--ux-radius);box-shadow:0 8px 26px #0002;transition:border-color .16s,transform .16s}
body .category:hover{border-color:var(--ux-accent);transform:translateY(-2px)}
body .category-content{padding:1.4rem}
body .category-content h2{font-size:1.6rem;line-height:1.3;margin:.5rem 0 .75rem}
body .category-content p{font:1rem/1.7 var(--ux-sans);color:var(--ux-muted)}
body .category-content li a{padding:.5rem 0;min-height:40px;font:.9375rem/1.5 var(--ux-sans)}
body .category-more{margin-top:.7rem;border-top:1px solid var(--ux-line);padding-top:.6rem}
body .category-more summary{font:.875rem/1.5 var(--ux-sans);color:var(--ux-accent);cursor:pointer;padding:.5rem 0}
body .category-more ul{margin-top:.5rem}
body .sidebar{background:color-mix(in srgb,var(--ux-bg) 97%,transparent);border-right:1px solid var(--ux-line);font-family:var(--ux-sans)}
body .sidebar .brand{padding-bottom:1.1rem}
body .sidebar .brand-text{font-size:1.25rem}
body .sidebar .brand-text small{font:.75rem/1.5 var(--ux-sans);margin-top:.4rem;letter-spacing:.05em}
body .brigade-switcher{padding:.8rem 0}
body .brigade-switcher a{min-height:44px;border-radius:8px;font:.875rem/1.5 var(--ux-sans)}
body .brigade-switcher a[aria-current]{background:var(--ux-raised);color:var(--ux-text);border-color:var(--ux-accent)}
.context-edit{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.55rem;margin:-.65rem 0 1.25rem}
.context-edit a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.55rem 1rem;border:1px solid var(--ux-line);border-radius:8px;background:var(--ux-raised);color:var(--ux-text);font:600 .875rem/1.4 var(--ux-sans);text-decoration:none}
.context-edit a:hover{border-color:var(--ux-accent)}
.flashcard-edit{display:block;flex-shrink:0;padding:.65rem 1.35rem;background:var(--ux-surface);border-top:1px solid var(--ux-line);color:var(--ux-accent);font:600 .875rem/1.4 var(--ux-sans);text-align:right}
.flashcard-edit:hover,.flashcard-edit:focus-visible{color:var(--ux-text)}
body .sidebar :is(.nav-list a,.account-nav a){font-size:.875rem;line-height:1.5;padding-block:.55rem}
body .nav-list a[aria-current=page]{background:var(--ux-raised);color:var(--ux-text);border-left:3px solid var(--ux-accent);border-radius:0 8px 8px 0}
body .sidebar-search input{font-size:.9375rem;background:var(--ux-surface);color:var(--ux-text);min-height:44px}
body .sidebar-note{font-size:.8125rem;line-height:1.6}
body .mobile-nav{background:var(--ux-bg);border-bottom:1px solid var(--ux-line);position:sticky;top:0;z-index:45}
body .mobile-nav summary{min-height:44px;padding:.6rem 0;font:.9375rem/1.5 var(--ux-sans)}
body .mobile-nav>details[open]{max-height:calc(100dvh - 80px);overflow:auto;overscroll-behavior:contain}
body .mobile-nav .brigade-switcher{display:flex;flex-wrap:wrap;gap:.45rem;padding:1rem}
body .mobile-nav .brigade-switcher>span{flex:1 1 100%;color:var(--ux-muted);font:.75rem/1.4 var(--ux-sans)}
body .mobile-nav .brigade-switcher a{flex:1 1 130px;justify-content:center;background:var(--ux-surface);border:1px solid var(--ux-line)}
body .mobile-nav .nav-list a{min-height:44px;align-items:center}
body .course-part-tabs{display:flex;gap:.6rem;padding:.6rem;background:var(--ux-bg);border:1px solid var(--ux-line);border-radius:12px;position:sticky;top:12px;z-index:20;margin:1.4rem 0}
body .course-part-tabs a{flex:1;display:grid;gap:.25rem;padding:.85rem 1rem;min-width:0;border-radius:8px;color:var(--ux-muted);font:1rem/1.35 var(--ux-sans)}
body .course-part-tabs a small{font-size:.8125rem;line-height:1.5}
body .course-part-tabs a[aria-current]{background:var(--ux-raised);color:var(--ux-text);box-shadow:inset 0 -3px var(--ux-accent)}
body .course-part-intro{margin:1.5rem 0}.course-part-intro>p:last-child{color:var(--ux-muted)}
body .course-part-intro{background:var(--ux-surface);border-color:var(--ux-accent);border-radius:0 10px 10px 0}
body .page-heading,body:is(.scientific-space,.psychology-space) .page-heading{background:var(--ux-surface)}
body:is(.scientific-space,.psychology-space) .hero-overlay{background:linear-gradient(90deg,var(--ux-bg),color-mix(in srgb,var(--ux-bg) 65%,transparent),transparent)}
body .sidebar-search button{background:var(--ux-raised);border-color:var(--ux-line);color:var(--ux-accent);min-width:44px}
body.ux-course .editable-text{font:1rem/1.85 var(--ux-sans);max-width:80ch;padding-block:1rem}
body.ux-course .editable-text + .editable-text{border-top:1px solid var(--ux-line)}
body.ux-course .content>.panel{padding:clamp(1.3rem,3vw,2.5rem);margin-block:1.25rem}
body.ux-course .content>.panel h2{font-size:1.65rem;margin-bottom:1rem}
body.ux-course .content>.panel h3{font-size:1.25rem;margin:1.75rem 0 .75rem}
body.ux-course .local-toc{background:var(--ux-surface);border-color:var(--ux-line)}
body .course-entry .read-link{color:var(--ux-accent)}
body .content-tag{font: .75rem/1.5 var(--ux-sans);padding:.2rem .55rem}
body .flashcard-copy{color:var(--ux-text);background:var(--ux-surface)}
body .flashcard-scroll{font:1rem/1.8 var(--ux-sans)}

/* Tool workspaces share a compact, touch-friendly navigation and type scale. */
body :is(.projects-admin-nav,.psy-records-nav,.med-nav,.duty-nav,.roster-site-nav,.recruitment-topnav){min-height:76px;padding:1rem clamp(1rem,3vw,2.5rem);gap:1.25rem;background:var(--ux-bg);border-bottom:1px solid var(--ux-line);font-family:var(--ux-sans);flex-wrap:wrap}
body :is(.projects-admin-nav,.psy-records-nav,.med-nav,.duty-nav,.roster-site-nav,.recruitment-topnav) a{min-height:40px;display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;line-height:1.4;border-radius:8px}
body :is(.projects-admin-nav,.psy-records-nav,.med-nav,.duty-nav,.roster-site-nav,.recruitment-topnav)>div{display:flex;gap:.4rem;flex-wrap:wrap}
body :is(.projects-admin-nav,.psy-records-nav,.med-nav,.duty-nav,.roster-site-nav,.recruitment-topnav)>div>a{padding:.55rem .75rem}
body :is(.projects-admin-nav,.psy-records-nav,.med-nav,.duty-nav,.roster-site-nav,.recruitment-topnav)>div>a:hover{background:var(--ux-raised)}
body :is(.projects-admin-heading,.psy-records-header,.med-header,.duty-hero,.roster-page-heading,.recruitment-hero) h1{font:400 clamp(2rem,3.2vw,3rem)/1.15 Georgia,serif;letter-spacing:-.025em;margin:.6rem 0 1rem}
body :is(.projects-admin-inner,.psy-records-shell,.med-shell,.recruitment-shell){max-width:1380px;margin-inline:auto;padding:clamp(1rem,3vw,2.4rem)}
body :is(.projects-admin-heading,.psy-records-header,.med-header,.duty-hero){margin-bottom:1.8rem;gap:1.5rem}
body :is(.projects-summary,.psy-summary,.duty-metrics){gap:.75rem;margin-block:1.5rem}
body :is(.projects-summary>div,.psy-summary>article,.duty-metrics>article){background:var(--ux-surface);border-color:var(--ux-line);border-radius:10px;padding:1rem;box-shadow:none}
body :is(.projects-summary,.psy-summary,.duty-metrics) strong{font-variant-numeric:tabular-nums;font-size:1.7rem}
body :is(.projects-filters,.psy-list-panel,.psy-detail-panel,.med-list,.med-detail,.recruitment-empty){background:var(--ux-surface);border:1px solid var(--ux-line);border-radius:var(--ux-radius)}
body :is(.projects-search,.psy-search){position:relative}
body :is(.projects-search,.psy-search) input{padding-left:2.6rem!important}
body :is(.projects-search,.psy-search)>svg{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);width:1rem;pointer-events:none;color:var(--ux-muted)}
body :is(.projects-admin,.psy-records,.medical-registry,.duty-page,.central-roster-page,.recruitment-page) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--ux-bg);color:var(--ux-text);border-color:var(--ux-line);border-radius:8px;min-height:44px;font-size:1rem;max-width:100%}
body :is(.projects-admin,.psy-records,.medical-registry,.duty-page,.central-roster-page,.recruitment-page) :is(input,textarea)::placeholder{color:var(--ux-muted);opacity:.8}
body :is(.projects-empty,.psy-empty-state,.recruitment-empty){text-align:center;padding:2.5rem 1.5rem}
body :is(.projects-empty,.psy-empty-state,.recruitment-empty)>svg{margin:0 auto 1rem;opacity:.75}
body :is(.projects-empty,.psy-empty-state,.recruitment-empty) p{max-width:50ch;margin:1rem auto;color:var(--ux-muted)}
body .project-admin-card{border-radius:var(--ux-radius);border-color:var(--ux-line);background:var(--ux-surface)}
body .project-admin-card h2{font-size:1.5rem;line-height:1.35}
body .project-card-actions{gap:.5rem;border-top:1px solid var(--ux-line);padding-top:1rem}
body .project-card-actions>button:first-child{background:var(--ux-raised);color:var(--ux-text);border-color:var(--ux-accent)}
body :is(.psy-patient-list,.med-patient-list)>button{padding:1rem;min-height:88px;border-radius:8px;border:1px solid transparent;text-align:left}
body :is(.psy-patient-list,.med-patient-list)>button.active{background:var(--ux-raised);border-color:var(--ux-accent)}
body .psy-patient-list em{font-style:normal;font-size:.8125rem}
body .psy-detail-meta article{background:var(--ux-bg);border:1px solid var(--ux-line);border-radius:9px}
body .psy-detail-panel{scroll-margin-top:1rem}
body .psy-detail-panel:focus{outline:none}
body .psy-workspace.ux-detail-open .psy-mobile-back{display:none}
.psy-mobile-back{display:none}
.med-mobile-back{display:none}
body .med-detail-panel{scroll-margin-top:1rem}
body .med-detail-panel:focus{outline:none}

/* Dialogs are working surfaces, with a visible heading and comfortable controls. */
body.editor-app :is([data-slot=dialog-content],[data-slot=alert-dialog-content]){max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:16px;border-color:var(--ux-line);background:var(--ux-surface);color:var(--ux-text);padding:1.5rem}
body.editor-app :is([data-slot=dialog-description],[data-slot=alert-dialog-description]){font-size:.9375rem;line-height:1.65;color:var(--ux-muted)}
body.editor-app [data-slot=dialog-title]{font:1.7rem/1.25 Georgia,serif}
body.editor-app [data-slot=dialog-footer]{padding-top:1rem;border-top:1px solid var(--ux-line);gap:.6rem}
body.editor-app [data-slot=button]{min-height:42px;font:600 .875rem/1.4 var(--ux-sans);white-space:normal;height:auto;gap:.5rem}
body.editor-app :is(.project-dialog,.psy-dialog) :is(input,textarea,select){font-size:1rem;min-height:44px;background:var(--ux-bg);border-color:var(--ux-line);color:var(--ux-text)}
body .lab-tabs{height:auto;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:.4rem;background:var(--ux-bg);border:1px solid var(--ux-line);border-radius:12px;gap:.4rem}
body .lab-tabs button{display:grid;gap:.3rem;min-height:70px;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:.75rem;font-size:1rem;text-align:left;border-radius:8px}
body .lab-tabs button small{font-size:.75rem;font-weight:400;color:var(--ux-muted)}
body .lab-tabs button[aria-selected=true]{background:var(--ux-raised);box-shadow:inset 0 -3px var(--ux-accent)}
body .lab-journal{border-left:2px solid var(--ux-line);margin-left:.6rem;padding-left:1.4rem}
body .lab-journal>li{position:relative;border:1px solid var(--ux-line);background:var(--ux-bg);border-radius:12px;padding:1.5rem;margin-bottom:1.2rem}
body .lab-journal>li::before{content:'';position:absolute;left:-1.86rem;top:1.8rem;width:.75rem;height:.75rem;border-radius:50%;background:var(--ux-accent);border:3px solid var(--ux-surface)}
body .lab-journal-head h3{font-size:1.4rem}body .lab-detail p{white-space:pre-wrap;line-height:1.8}
body .lab-toolbar{flex-wrap:wrap;gap:.7rem}
body .lab-toolbar>div:first-child{display:flex;flex-wrap:wrap;gap:.5rem}
body .lab-form-actions{position:sticky;bottom:-1.5rem;background:var(--ux-surface);padding:1rem 0;z-index:3;border-top:1px solid var(--ux-line)}

/* Editor: navigation on the left, the selected document in the work area. */
body .pe-shell{font-family:var(--ux-sans)}
body .pe-topbar{background:var(--ux-bg);border-color:var(--ux-line);padding:1rem 1.5rem}
body .pe-topbar h1{font:1.45rem/1.25 Georgia,serif}
body .pe-topbar [role=status]{font-size:.8125rem;line-height:1.7;color:var(--ux-muted)}
body .pe-sidebar [data-slot=sidebar-content]{padding:.5rem .6rem}
body .pe-sidebar [data-slot=sidebar-menu-button]{font:.875rem/1.5 var(--ux-sans);min-height:42px;height:auto;padding:.65rem .75rem;white-space:normal}
body .pe-sidebar [data-active=true]{background:var(--ux-raised);color:var(--ux-text);border-left:3px solid var(--ux-accent)}
body .pe-brigade-label{font:.75rem/1.5 var(--ux-sans);text-transform:uppercase;letter-spacing:.08em;color:var(--ux-muted);padding:1rem .75rem .4rem}
.pe-sidebar-modes{display:flex;gap:.35rem;padding:.3rem .5rem .7rem}
.pe-sidebar-modes button{flex:1;padding:.6rem .4rem;border-radius:8px;border:1px solid var(--ux-line);background:transparent;color:var(--ux-muted);font:.875rem var(--ux-sans);cursor:pointer}
.pe-sidebar-modes button[aria-pressed=true]{background:var(--ux-raised);color:var(--ux-text);border-color:var(--ux-accent)}
.pe-tree-search{padding:.5rem}.pe-tree-search input{width:100%;min-height:44px;background:var(--ux-bg);border:1px solid var(--ux-line);border-radius:8px;padding:.65rem;color:var(--ux-text)}
.pe-tree-node>summary{display:flex;align-items:center;gap:.5rem;cursor:pointer;padding-right:.4rem}
.pe-tree-node>summary::after{content:'+';color:var(--ux-muted)}.pe-tree-node[open]>summary::after{content:'−'}
.pe-tree-node>summary>[data-slot=sidebar-menu-button]{flex:1}
body .pe-tree-children{margin-left:.7rem;padding-left:.65rem;border-left:1px solid var(--ux-line)}
.pe-selection-path{font-size:.8125rem;color:var(--ux-muted);line-height:1.7;margin:.5rem 0}
body .pe-page-heading h2{font:2rem/1.2 Georgia,serif;margin:.4rem 0}
body .pe-panel{background:var(--ux-surface);border-color:var(--ux-line);box-shadow:none}
.pe-page-settings{border:1px solid var(--ux-line);border-radius:12px;background:var(--ux-surface);margin:1rem 0 1.75rem}
.pe-page-settings>summary{cursor:pointer;padding:1rem 1.2rem;font-weight:600;font-size:.9375rem;color:var(--ux-text)}
.pe-page-settings>summary small{display:block;margin:.3rem 0 0 1rem;font-size:.8125rem;font-weight:400;color:var(--ux-muted)}
.pe-page-settings>.pe-panel{border:0;margin:0;background:transparent}
body .pe-panel details>summary{cursor:pointer;min-height:44px;padding-block:.6rem;color:var(--ux-accent)}
body .pe-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-block:1.5rem}
body .pe-dashboard-grid>:is(button,a){min-height:100px;padding:1.25rem;align-items:flex-start;justify-content:center;flex-direction:column;border:1px solid var(--ux-line);border-radius:12px;background:var(--ux-bg);color:var(--ux-text);font-size:1rem;text-align:left}
body .pe-dashboard-grid>:is(button,a):hover{border-color:var(--ux-accent);background:var(--ux-raised)}
body .pe-dashboard-grid small{display:block;font-size:.8125rem;color:var(--ux-muted);font-weight:400;margin-top:.4rem}
body .pe-catalog-list article{padding:1.15rem;background:var(--ux-bg);border-radius:10px;border-color:var(--ux-line)}
body .pe-catalog-list article h3{font:1.3rem/1.4 Georgia,serif}
body .pe-catalog-list article small{font-size:.8125rem;line-height:1.6}
body .pe-catalog-list article p{font-size:.875rem;color:var(--ux-muted)}
body .pe-catalog-filters label{font-size:.875rem;line-height:1.7}
body .pe-tabs{padding:1rem 1.5rem}.pe-tabs [data-slot=tabs-list]{gap:.4rem}
body .pe-block{background:var(--ux-surface);border-color:var(--ux-line)!important}
body .pe-block-top small{font-size:.8125rem;color:var(--ux-muted)}
body .pe-block-top strong{color:var(--ux-text)}
body .pe-preview iframe{border-color:var(--ux-line)}
body .pe-backup{font-size:.875rem}
body .training-ledger{line-height:1.7}
body.ux-guest .page-heading{min-height:0;padding:0;margin-bottom:1rem}
body.ux-guest .page-heading .heading-copy{padding:1.25rem}
body.ux-guest .page-heading h1{font-size:clamp(1.8rem,3vw,2.5rem)}
body.ux-guest .page-heading .eyebrow{display:none}
body.ux-guest .top-utility{padding-block:.45rem}
body .auth-entry{padding:1.3rem 1.5rem}
body .auth-entry>p:first-child{line-height:1.6;margin:0}
body .auth-public-link{font:600 .9375rem/1.5 var(--ux-sans);color:var(--ux-accent);min-height:44px;align-content:center}
body .auth-entry .account-form{margin-top:.5rem;gap:1rem}
body .med-stats>article{border-radius:10px;background:var(--ux-surface);border-color:var(--ux-line)}
body .med-search input{padding-left:2.6rem!important}
body .effects-toggle{background:var(--ux-surface);border-color:var(--ux-line);color:var(--ux-accent)}
.ux-optional-media{border:1px solid var(--ux-line);border-radius:10px;padding:1rem;margin:1rem 0}
.ux-optional-media>summary{cursor:pointer;min-height:44px;display:list-item;align-content:center}

@media(max-width:1000px){
 body .course-part-tabs{top:0}
 body :is(.projects-admin-nav,.psy-records-nav,.med-nav,.duty-nav,.roster-site-nav,.recruitment-topnav)>div{width:100%;border-top:1px solid var(--ux-line);padding-top:.6rem}
 body .pe-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .psy-workspace{grid-template-columns:1fr}
 body .med-workspace{grid-template-columns:1fr}
 body .med-workspace.ux-detail-open>.med-directory{display:none}
 body .med-workspace:not(.ux-detail-open)>.med-detail-panel{display:none}
 body .med-workspace.ux-detail-open .med-mobile-back{display:inline-flex;margin-bottom:1rem}
 body .psy-workspace.ux-detail-open>.psy-list-panel{display:none}
 body .psy-workspace:not(.ux-detail-open)>.psy-detail-panel{display:none}
 body .psy-workspace.ux-detail-open .psy-mobile-back{display:inline-flex;margin-bottom:1rem}
 body .projects-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .projects-filters>label:first-child{grid-column:1/-1}
 body .pe-workspace{padding:0 1rem 2rem}
}
@media(max-width:640px){
 body .med-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
 body .duty-metrics>article{grid-column:auto}
 body .med-stats>article{padding:.85rem;display:block;min-width:0}
 body .med-stats>article>svg{display:none}
 body .med-stats span{font-size:.875rem}
 body .med-stats small{font-size:.8125rem;line-height:1.5}
 body .site-main .page{padding:1rem}
 body .page-heading,body .page-heading.home-heading{min-height:260px}
 body .page-heading h1{font-size:2.2rem}
 body .page-heading .heading-copy{padding:1.4rem}
 body .hero-meta,body .chapter-seal{display:none}
 body .hero-overlay{background:linear-gradient(90deg,color-mix(in srgb,var(--ux-bg) 90%,transparent),color-mix(in srgb,var(--ux-bg) 60%,transparent))}
 body .top-utility>span{font-size:.7rem;max-width:65%;line-height:1.5}
 body .category-content{padding:1.15rem}
 body .category-content h2{font-size:1.4rem}
 body .course-part-tabs{gap:.25rem;padding:.25rem;position:static}
 body .course-part-tabs a{font-size:.875rem;padding:.75rem .5rem;text-align:center}
 body .course-part-tabs a small{display:none}
 body .course-part-intro h2{font-size:1.6rem}
 body :is(.projects-admin-nav,.psy-records-nav,.med-nav,.duty-nav,.roster-site-nav,.recruitment-topnav){gap:.5rem;padding:1rem}
 body :is(.projects-admin-nav,.psy-records-nav,.med-nav,.duty-nav,.roster-site-nav,.recruitment-topnav)>div{gap:.25rem}
 body :is(.projects-admin-nav,.psy-records-nav,.med-nav,.duty-nav,.roster-site-nav,.recruitment-topnav)>div>a{padding:.55rem .6rem;font-size:.8125rem;background:var(--ux-surface)}
 body :is(.projects-summary,.psy-summary,.duty-metrics){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 body :is(.projects-summary>div,.psy-summary>article,.duty-metrics>article){min-width:0;padding:.85rem;gap:.4rem}
 body :is(.projects-summary,.psy-summary,.duty-metrics) :is(span,small){font-size:.8125rem;line-height:1.5}
 body :is(.projects-admin-heading,.psy-records-header,.med-header){display:flex;flex-direction:column;align-items:stretch}
 body :is(.projects-admin-heading,.psy-records-header,.med-header)>button{width:100%}
 body .projects-admin-heading>div:last-child{display:flex;gap:.5rem;flex-wrap:wrap}
 body .projects-admin-heading>div:last-child button{flex:1}
 body .projects-filters{gap:.8rem;padding:1rem}
 body .project-card-actions>button{flex:1 1 45%;min-width:0}
 body.editor-app :is([data-slot=dialog-content],[data-slot=alert-dialog-content]){max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 24px);padding:1rem;border-radius:12px}
 body.editor-app [data-slot=dialog-footer]{flex-direction:column-reverse}
 body.editor-app [data-slot=dialog-footer]>button{width:100%;min-height:46px}
 body .lab-tabs button{min-height:54px;font-size:.875rem;padding:.6rem;text-align:center}
 body .lab-tabs small{display:none}
 body .lab-journal{margin-left:.35rem;padding-left:1rem}
 body .lab-journal>li{padding:1rem}.lab-journal>li::before{left:-1.46rem!important}
 body .lab-journal-head{flex-wrap:wrap;gap:.65rem}
 body .lab-toolbar>div{width:100%;flex-wrap:wrap}
 body .pe-dashboard-grid{grid-template-columns:1fr}
 body .pe-dashboard-grid>:is(button,a){min-height:82px}
 body .pe-top-actions{gap:.5rem;flex-wrap:wrap}
 body .pe-top-actions>[data-slot=button]{flex:1 1 40%}
 body .pe-page-heading h2{font-size:1.7rem}
 body .pe-page-actions{display:flex;flex-wrap:wrap;gap:.4rem}
 body .pe-block-top{flex-wrap:wrap}.pe-block-top>[data-slot=accordion-header]{flex:1 1 65%}
 body .pe-block-top>div:last-child:not([data-slot=accordion-header]){padding-bottom:.6rem;flex-wrap:wrap}
 body .pe-catalog-list article{display:block}.pe-catalog-list article>div:last-child{margin-top:.9rem}
 body.editor-app [data-slot=button],body :is(.duty-page,.recruitment-page) button{min-height:44px}
 body .pe-tabs{padding:1rem}
}
