:root{--bg:#f3f0e5;--card:#fff;--text:#222;--muted:#666;--accent:#edca5b;--soft:#ece7d9;--line:#e5e1d7;--danger:#9f1d1d;--ok:#176a35;--purple:#e4d5f5;--purpleText:#4a1f7a;--shadow:0 8px 28px rgba(0,0,0,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,"Segoe UI",Tahoma,sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{max-width:1180px;margin:0 auto;padding:28px 24px 64px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.brand h1{font-size:1.6rem;margin:0}.brand p{margin:.3rem 0 0;color:var(--muted)}.pill-btn,.primary-btn,.ghost-btn{border:0;border-radius:999px;padding:.7rem 1.15rem;font-weight:700}.primary-btn,.pill-btn{background:var(--accent);color:#111}.ghost-btn{background:#eee;color:#333}.danger-btn{background:#f7dddd;color:#7d1111;border:0;border-radius:999px;padding:.65rem 1rem;font-weight:700}.tabs{display:flex;gap:.45rem;background:#e7e1d2;padding:.35rem;border-radius:999px;width:max-content;max-width:100%;overflow:auto;margin-bottom:22px}.tab{border:0;background:transparent;padding:.65rem 1rem;border-radius:999px;font-weight:700;white-space:nowrap}.tab.active{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08)}.panel{background:#fff;border-radius:26px;padding:24px;box-shadow:var(--shadow)}.profile-head{display:grid;grid-template-columns:1fr minmax(240px,360px);gap:24px;align-items:end;margin-bottom:22px}.identity h2{margin:0 0 .25rem;font-size:1.7rem}.meta{color:var(--muted);display:flex;flex-wrap:wrap;gap:.45rem .9rem}.progress-label{display:flex;justify-content:space-between;font-weight:700;font-size:.9rem;margin-bottom:.45rem}.progress{height:12px;background:#eee9dd;border-radius:999px;overflow:hidden}.progress>div{height:100%;background:#222;border-radius:999px;transition:width .35s ease}.task-list{display:grid;gap:12px}.task-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease}.task-card:hover{box-shadow:0 6px 20px rgba(0,0,0,.06)}.task-card.overdue{border-color:#dba4a4}.task-head{width:100%;background:none;border:0;text-align:left;padding:16px 18px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}.task-title{font-weight:800;font-size:1rem}.task-sub{margin-top:.3rem;color:var(--muted);font-size:.88rem}.status-chip{display:inline-flex;border-radius:999px;padding:.28rem .6rem;font-size:.76rem;font-weight:800;background:#eee;color:#555;margin-left:.4rem}.status-chip.overdue{background:#f9dddd;color:#8b1717}.status-chip.done{background:#dcefdc;color:#175b2a}.chev{display:inline-block;transition:transform .22s ease}.task-card.open .chev{transform:rotate(180deg)}.task-body-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows .24s ease}.task-card.open .task-body-wrap{grid-template-rows:1fr}.task-body-inner{overflow:hidden}.task-body{border-top:1px solid var(--line);padding:18px;opacity:.35;transform:translateY(-4px);transition:opacity .18s ease,transform .22s ease}.task-card.open .task-body{opacity:1;transform:none}.section{margin:0 0 18px}.section:last-child{margin-bottom:0}.eyebrow{font-size:.76rem;text-transform:uppercase;letter-spacing:.07em;font-weight:800;color:var(--muted);margin-bottom:.45rem}.rich{line-height:1.55;white-space:pre-wrap}.link-row{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.7rem}.link-pill{display:inline-block;text-decoration:none;background:var(--purple);color:var(--purpleText);font-weight:700;border-radius:999px;padding:.42rem .85rem;font-size:.84rem}.complete-box{background:#faf8f1;border-radius:14px;padding:14px}.cert-row{display:flex;gap:.6rem;align-items:flex-start;margin-bottom:.8rem}.cert-row input{margin-top:.2rem}.message{padding:12px 14px;border-radius:12px;background:#f1eee4;color:#444;margin-bottom:14px}.message.error{background:#f8dddd;color:#7d1111}.message.success{background:#dff1e4;color:#155d30}.hidden{display:none!important}.login-card{max-width:520px;margin:70px auto;background:#fff;border-radius:26px;padding:28px;box-shadow:var(--shadow)}.login-card h1{margin-top:0}.field{display:grid;gap:.35rem;margin-bottom:14px}.field label{font-size:.82rem;font-weight:800;color:#555}.field input,.field select,.field textarea{width:100%;border:1px solid #d8d5cb;border-radius:10px;padding:.72rem .8rem;background:#fff}.field textarea{min-height:110px;resize:vertical}.toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.search{min-width:250px;flex:1;max-width:420px;border:1px solid #d8d5cb;border-radius:999px;padding:.7rem 1rem}.people-list{display:grid;gap:10px}.person-row{border:1px solid var(--line);border-radius:16px;padding:15px 16px;display:grid;grid-template-columns:1.4fr .9fr .9fr auto;gap:14px;align-items:center;background:#fff}.person-row:hover{background:#fdfbf5}.person-name{font-weight:800}.small{font-size:.83rem;color:var(--muted)}.mini-progress{height:8px;background:#eee;border-radius:99px;overflow:hidden;margin-top:.35rem}.mini-progress>div{height:100%;background:#333}.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;padding:22px;z-index:50;opacity:0;pointer-events:none;transition:opacity .18s ease}.modal-backdrop.open{opacity:1;pointer-events:auto}.modal{width:min(820px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;padding:24px;transform:scale(.985) translateY(7px);transition:transform .2s ease}.modal-backdrop.open .modal{transform:none}.modal h2{margin-top:0}.modal-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:20px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.filters-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.filter-box{border:1px solid var(--line);border-radius:14px;padding:12px}.filters-grid.full-width{grid-template-columns:1fr}.removable-choice{display:inline-flex;align-items:center;gap:.35rem;padding-right:.35rem}.choice-remove{display:inline-grid;place-items:center;width:20px;height:20px;border:0;border-radius:50%;background:transparent;color:#164d23;font-weight:900;line-height:1}.choice-remove:hover,.choice-remove:focus-visible{background:#b9dfc0;outline:none}.filter-title{font-weight:800;margin-bottom:.6rem}.choices{display:flex;flex-wrap:wrap;gap:.45rem}.choice{border:1px solid #d6d2c7;background:#f4f1e9;border-radius:999px;padding:.38rem .7rem;font-size:.82rem}.choice.selected{background:#dcefdc;border-color:#97cf9f;color:#164d23}.module-grid{display:grid;gap:12px}.module-card{border:1px solid var(--line);border-radius:18px;padding:16px}.module-card h3{margin:0 0 .25rem}.module-section{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.module-section-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:.4rem}.edit-link{border:0;background:var(--accent);border-radius:999px;padding:.3rem .65rem;font-size:.75rem;font-weight:800}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.review-col{background:#faf8f1;border-radius:16px;padding:14px}.review-item{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:8px}.x-btn,.add-btn{border:0;border-radius:999px;width:28px;height:28px;font-weight:900}.x-btn{background:#f4dfdf;color:#8b1717}.add-btn{background:#dcefdc;color:#175b2a}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-box{background:#faf8f1;border-radius:16px;padding:14px}.holiday-row{display:flex;justify-content:space-between;gap:10px;padding:.5rem 0;border-bottom:1px solid #eee}.muted{color:var(--muted)}
@media(max-width:760px){.shell{padding:18px 14px 50px}.profile-head,.grid2,.filters-grid,.review-grid,.detail-grid{grid-template-columns:1fr}.person-row{grid-template-columns:1fr}.topbar{align-items:flex-start}.panel{padding:17px}.task-head{padding:14px}.modal{padding:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Sticky management modal headers keep primary actions available while scrolling. */
.modal.manage-modal{padding:0}
.manage-header{position:sticky;top:0;z-index:2;background:#fff;padding:24px 24px 16px;border-bottom:1px solid var(--line)}
.manage-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.manage-title-row h2{margin:0}
.manage-header-actions{display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.manage-header .muted{margin:18px 0 0}
.manage-body{padding:0 24px 24px}
.manage-choices{max-width:86%}
.subsection-choice{background:#dcefdc;border-color:#97cf9f;color:#164d23}
@media(max-width:760px){.modal.manage-modal{padding:0}.manage-header{padding:18px 18px 14px}.manage-title-row{align-items:flex-start;flex-direction:column}.manage-header-actions{width:100%;flex-wrap:wrap}.manage-body{padding:0 18px 18px}.manage-choices{max-width:100%}}

/* Module editor layout and controls. */
.module-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.module-applicability-grid{grid-template-columns:1fr}
.module-edit{flex:0 0 auto;padding:.25rem .6rem;font-size:.72rem}
.status-toggle-field{display:flex;align-items:center;gap:.65rem;margin-top:14px}
.field-divider{border:0;border-top:1px solid var(--line);margin:18px 0 14px}
.status-label{font-size:.82rem;font-weight:800;color:#555}
.toggle{position:relative;display:inline-flex;cursor:pointer}
.toggle input{position:absolute;inline-size:1px;block-size:1px;opacity:0}
.toggle-track{display:block;width:46px;height:26px;border-radius:999px;background:#b7b7b7;transition:background .2s ease;position:relative}
.toggle-track::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:transform .2s ease;transform:translateX(20px)}
.toggle input:checked+.toggle-track{background:#348447}
.toggle input:checked+.toggle-track::after{transform:translateX(0)}
.toggle input:focus-visible+.toggle-track{outline:3px solid rgba(52,132,71,.3);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Compact module metadata and visible/regenerable onboarder access codes. */
.module-detail{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .7rem;margin-top:12px}
.module-detail .eyebrow{margin:0;min-width:88px}
.password-display{display:flex;align-items:stretch}
.password-display input{border-radius:10px 0 0 10px;letter-spacing:.22em;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.password-toggle{border:1px solid #d8d5cb;border-left:0;border-radius:0 10px 10px 0;background:#f4f1e9;padding:0 .8rem}

/* Rich module content, link editing, and onboarder profile controls. */
.rich ul{margin:.5rem 0;padding-left:1.5rem;white-space:normal;list-style-type:disc}
.rich ul ul{list-style-type:circle;margin:.2rem 0}
.rich-toolbar{display:flex;gap:.35rem;padding:.4rem;border:1px solid #d8d5cb;border-bottom:0;border-radius:10px 10px 0 0;background:#f4f1e9}
.rich-toolbar button{min-width:34px;border:1px solid #d8d5cb;border-radius:6px;background:#fff;padding:.3rem .5rem}
.rich-editor{min-height:120px;border:1px solid #d8d5cb;border-radius:0 0 10px 10px;padding:.72rem .8rem;background:#fff;line-height:1.5}
.rich-editor:focus{outline:2px solid #7952a8;outline-offset:1px}
.external-links{border:0;padding:0;margin:20px 0}.external-links legend{font-size:.76rem;text-transform:uppercase;letter-spacing:.07em;font-weight:800;color:var(--muted);margin-bottom:10px}
.link-edit-row{margin-bottom:8px}.link-edit-row strong{display:block;margin-bottom:5px}.link-edit-row .field{margin-bottom:6px}
.detail-heading,.assignments-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.detail-heading .eyebrow,.assignments-heading .eyebrow{margin:0}
.observer-field{margin-top:14px}.observer-field input{letter-spacing:.22em;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#fff}
.assignments-heading{margin-bottom:10px}.profile-edit-actions{display:flex;justify-content:flex-end;gap:.5rem}

/* Compact module browsing controls and cards. */
.module-sortbar{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem .8rem;margin:-2px 0 16px;padding:10px 12px;border-radius:14px;background:#faf8f1}
.module-sortbar>.eyebrow{margin:0}
.module-sortbar label{display:flex;align-items:center;gap:.35rem;font-size:.76rem;font-weight:800;color:#555}
.module-sortbar select{max-width:220px;border:1px solid #d8d5cb;border-radius:999px;background:#fff;padding:.4rem 1.8rem .4rem .7rem;font-size:.78rem}
.sort-clear{border:0;background:transparent;color:#5d337f;text-decoration:underline;font-size:.78rem;font-weight:700;padding:.35rem}
.module-card{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(245px,.65fr);gap:12px 24px;padding:13px 15px}
.module-card-main{min-width:0}
.module-card-meta{position:relative;border-left:1px solid var(--line);padding-left:18px;padding-right:52px;display:flex;flex-direction:column;justify-content:center}
.module-card-meta .module-edit{position:absolute;right:0;top:0}
.module-card-meta .module-detail{margin-top:5px}
.module-card-meta .module-detail{align-items:flex-start;flex-direction:column;gap:.18rem}
.module-card-meta .module-detail .eyebrow{min-width:0;margin-bottom:0}
.module-rules{margin-top:8px}
.module-rules .choice{padding:.28rem .6rem;font-size:.76rem}

/* The module editor keeps its title and explicit close actions visible. */
.modal.module-editor-modal{padding:0}
.module-editor-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border-bottom:1px solid var(--line);padding:20px 24px}
.module-editor-header h2{margin:0}
.module-editor-actions{display:flex;gap:.6rem;flex-shrink:0}
.module-editor-body{padding:20px 24px 24px}
.submission-link{background:var(--accent);color:#222}
.topbar-actions{display:flex;align-items:center;gap:.6rem}
.help-modal{width:min(560px,96vw)}
.help-modal p{line-height:1.55}
.action-tabs{margin-bottom:18px}
.module-sortbar select:disabled{background:#eceae4;color:#999;cursor:not-allowed}

@media(max-width:760px){.module-card{grid-template-columns:1fr}.module-card-meta{border-left:0;border-top:1px solid var(--line);padding:10px 52px 0 0}.module-sortbar{align-items:stretch}.module-sortbar label{justify-content:space-between;width:100%}.module-sortbar select{flex:1}.module-editor-header{padding:16px 18px;align-items:flex-start}.module-editor-header h2{font-size:1.25rem}.module-editor-actions{gap:.35rem}.module-editor-actions .primary-btn,.module-editor-actions .ghost-btn{padding:.55rem .75rem}.module-editor-body{padding:18px}}

.assignment-tabs{margin:18px 0 14px}
.person-assignment-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}
.person-assignment-actions .danger-btn{padding:.38rem .75rem;font-size:.75rem}
.upload-heading{margin:0 0 10px}
.upload-filename,.uploaded-file-name{overflow-wrap:anywhere;margin-top:.35rem}
.disabled-pill{opacity:.45;pointer-events:none}
.upload-field{margin:0 0 12px}
.upload-field input{max-width:100%;padding:.6rem;border:1px solid var(--line);border-radius:10px;background:#fff}
.upload-field>span{font-weight:700}
.upload-field .small{font-weight:400}
.task-card.completing{opacity:0;transform:translateX(12px);pointer-events:none;transition:opacity .22s ease,transform .22s ease}
@media(max-width:760px){.person-assignment-actions{flex-direction:column;align-items:flex-end}}

/* Admin module tools share one fixed modal frame while their content scrolls. */
.modal.admin-tool-modal{height:min(720px,90vh);max-height:90vh;display:flex;flex-direction:column;overflow:hidden}
.admin-tool-modal>.manage-header,.admin-tool-modal>.module-editor-header,.admin-tool-modal>.admin-tool-header,.admin-tool-modal>.action-switcher{flex-shrink:0}
.admin-tool-modal>.manage-body,.admin-tool-modal>.module-editor-body,.admin-tool-modal>.admin-tool-content{flex:1;min-height:0;overflow-y:auto}
.admin-tool-modal>.module-editor-body{margin:0}
.admin-tool-modal>.admin-tool-content{padding:16px 24px 24px}
.admin-tool-header{padding:20px 24px 10px}
.admin-tool-header h2{margin:0}
.action-switcher{display:flex;gap:.6rem;padding:8px 24px 16px}
.action-switcher button{border:1px solid #d8d5cb;border-radius:999px;background:#f4f1e9;padding:.58rem .9rem;font-weight:700}
.action-switcher button.active{background:var(--accent);border-color:#dfb936}
.category-actions,.section-heading-actions,.order-controls{display:flex;align-items:center;gap:.35rem}
.category-remove{display:inline-grid;place-items:center;width:25px;height:25px;border:0;border-radius:50%;background:#f4dfdf;color:#8b1717;font-weight:900;line-height:1}
.category-remove:hover,.category-remove:focus-visible{background:#eac4c4;outline:none}
.order-controls{gap:.2rem}
.order-btn,.subsection-move{display:inline-grid;place-items:center;border:0;border-radius:50%;background:#e8e4da;color:#333;font-weight:900;line-height:1}
.order-btn{width:27px;height:27px}
.subsection-move{width:20px;height:20px;background:transparent;color:#164d23}
.order-btn:hover:not(:disabled),.subsection-move:hover:not(:disabled){background:#d8d2c4}
.subsection-move:hover:not(:disabled){background:#b9dfc0}
.order-btn:disabled,.subsection-move:disabled{opacity:.35;cursor:default}
.subsection-pill{gap:.22rem;padding-right:.3rem}
.subsection-pill .choice-remove{margin-left:.1rem}
.section-heading-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){.admin-tool-modal>.admin-tool-content{padding:14px 18px 18px}.admin-tool-header{padding:18px 18px 8px}.action-switcher{padding:8px 18px 14px}.section-heading-actions{justify-content:flex-start}}

/* Header logo replaces the text brand/subtitle in every topbar. */
.brand{display:flex;align-items:center}
.brand-logo{width:auto;height:auto;max-height:1in;max-width:100%;display:block}
.topbar.has-logo{align-items:center}
@media(max-width:760px){.brand-logo{max-height:.75in}.topbar.has-logo{align-items:center}.topbar.has-logo .topbar-actions{justify-content:flex-end;flex-wrap:wrap}}

/* Submission timeliness pills shown after a module has been completed. */
.status-chip.late{background:#f9dddd;color:#8b1717}
.status-chip.ontime{background:#dcefdc;color:#175b2a}

/* Completed on-time/late summary shown under the progress bar. */
.completion-summary{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.55rem;font-weight:800;font-size:.85rem}
.completion-pill{display:inline-flex;border-radius:999px;padding:.22rem .55rem;font-size:.72rem;font-weight:800}
.completion-pill.ontime{background:#dcefdc;color:#175b2a}
.completion-pill.late{background:#f9dddd;color:#8b1717}

/* Live module search box shown above the onboarding module lists. */
.module-search-bar{display:block;width:100%;max-width:none;margin:16px 0 18px}

/* Observer view: search box sits in the same row as the To Do/Completed tabs. */
.tabs-search-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:18px}
.tabs-search-row .tabs{margin-bottom:0}
.tabs-search-row .module-search-bar{flex:1;min-width:200px;max-width:320px;margin:0 0 0 auto}

/* The Modules/Uploads control uses the same independent pills as other views. */
.assignment-tabs{display:flex;overflow:visible}
#personAssignments{transition:min-height .2s ease}
.loading-card{color:var(--muted);font-weight:700}

/* Delete-onboarder confirmation styling. */
.modal .danger-note{background:#f8dddd;color:#7d1111;border-radius:12px;padding:12px 14px;margin:14px 0}

/* Standalone navigation pills are intentionally separate controls, not a segmented slider. */
.standalone-tabs{background:transparent;padding:0;gap:.7rem;overflow:visible;flex-wrap:wrap}
.standalone-tabs .tab{background:#e7e1d2;border:1px solid transparent;box-shadow:none}
.standalone-tabs .tab:hover{background:#ddd6c5}
.standalone-tabs .tab.active{background:var(--accent);border-color:#dfb936;box-shadow:none}

/* Authentication screens carry the same supplied logo as every signed-in view. */
.login-page{max-width:1180px;margin:0 auto;padding:28px 24px 64px}
.login-page>.brand{justify-content:center}
.login-page .login-card{margin-top:28px}

/* Section browser for onboardees and read-only observers. */
.onboarding-layout{display:grid;grid-template-columns:minmax(205px,250px) minmax(0,1fr);gap:22px;align-items:start}
.module-nav{position:sticky;top:18px;background:#f3f0e5;border-radius:18px;padding:16px;min-width:0}
.module-nav-title{font-size:.76rem;text-transform:uppercase;letter-spacing:.07em;font-weight:800;color:var(--muted);padding:3px 7px 12px}
.module-nav button{width:100%;border:0;display:flex;justify-content:space-between;gap:8px;text-align:left;color:var(--text)}
.module-nav-all,.module-nav-section{border-radius:12px!important;background:#fff;padding:.85rem .8rem;font-weight:800}
.module-nav-section{margin-top:10px}
.module-nav-sub{background:transparent;padding:.65rem .75rem .65rem 1.25rem;border-radius:10px!important;font-size:.84rem}
.module-nav button:hover,.module-nav button.active{background:var(--accent)}
.module-nav-group{margin-top:5px}
.onboarding-layout>.task-list,.onboarding-layout>#list{min-width:0}
.observer-module{grid-template-columns:1fr auto}
.observer-module .link-pill{margin-top:.5rem}

/* Separate the title, employee type, and start date in profile meta with bullets. */
.meta span:not(:empty)+span:not(:empty)::before{content:'•';display:inline-block;margin-right:.5rem;color:var(--muted)}

@media(max-width:760px){.login-page{padding:18px 14px 50px}.onboarding-layout{grid-template-columns:1fr}.module-nav{position:static}.module-nav-group{display:inline}.module-nav-sub{padding-left:.75rem}.observer-module{grid-template-columns:1fr}.tabs-search-row .module-search-bar{max-width:none;margin-left:0}}

/* Dashboard deadlines and broken-link workflow. */
.person-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.completion-pill.overdue-count{background:#f5d061;color:#4b3a00}
.delinquent-date{color:#a31d1d!important;font-weight:800}
.broken-links-tab{background:#f7dddd!important;color:#7d1111}
.module-card-meta{justify-content:flex-start}
.broken-report{border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px}
.broken-report-actions{display:flex;justify-content:flex-end;gap:.6rem}
.report-link-area{display:flex;justify-content:flex-end;margin-bottom:14px;position:relative}
.report-link-picker{position:absolute;right:0;top:calc(100% + 6px);z-index:4;width:min(420px,90vw);background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px;box-shadow:var(--shadow)}
.report-link-picker button{display:block;width:100%;border:0;background:#f3f1eb;border-radius:8px;padding:.6rem;text-align:left;margin:.3rem 0}
.report-link-btn{background:#eee;color:#555;border:0;border-radius:999px;padding:.42rem .8rem;font-weight:700}
.module-nav button{margin:3px 0}
.module-nav button.active{padding-top:.58rem;padding-bottom:.58rem}
.module-nav-sub.active{padding-top:.48rem;padding-bottom:.48rem}

/* Requested compact reporting, stable navigation, and transient completion notice. */
.report-link-btn{padding:.3rem .65rem;font-size:.76rem}
.module-nav button.active{padding-top:.65rem;padding-bottom:.65rem}
.module-nav-all.active,.module-nav-section.active{padding-top:.85rem;padding-bottom:.85rem}
.completion-toast{position:fixed;z-index:100;top:10px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 28px);padding:.55rem 1rem;border-radius:999px;background:#dff1e4;color:#155d30;font-size:.86rem;font-weight:800;box-shadow:var(--shadow);animation:toast-in .2s ease-out}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}

/* Preserve nested editor lists without inserting vertical gaps around body text. */
.rich p,.rich ul,.rich li,.rich-editor p,.rich-editor ul,.rich-editor li{margin-top:0;margin-bottom:0}
.rich ul,.rich-editor ul{padding-left:1.5rem}
.rich ul ul,.rich-editor ul ul{padding-left:3rem}

/* Admin list and modal refinements. */
.module-card.inactive{background:#f1f1f1;border-color:#d7d7d7}
.module-delete-row{display:flex;justify-content:flex-end;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.broken-report-fields{margin-top:12px}
.person-detail-header{position:sticky;top:-24px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-24px -24px 20px;padding:20px 24px;background:#fff;border-bottom:1px solid var(--line)}
.person-detail-header h2{margin:0}
.person-detail-actions{display:flex;align-items:center;justify-content:flex-end;gap:.6rem;flex-wrap:wrap}
@media(max-width:760px){.person-detail-header{top:-18px;margin:-18px -18px 18px;padding:16px 18px;align-items:flex-start;flex-direction:column}.person-detail-actions{justify-content:flex-start}.completion-toast{top:6px}}

/* Observer-code context and quiz authoring/completion. */
.observer-code-row{position:relative;display:flex;align-items:center;flex-wrap:wrap;margin-top:.45rem;color:var(--muted);font-size:.9rem}.observer-help{display:inline-grid;place-items:center;width:18px;height:18px;margin-left:.25rem;border-radius:50%;background:#777;color:#fff;font-size:.75rem;font-weight:400;cursor:help}.observer-tooltip{position:absolute;z-index:4;left:0;top:calc(100% + 7px);width:min(360px,80vw);padding:.65rem .8rem;border-radius:9px;background:#444;color:#fff;font-size:.78rem;line-height:1.35;box-shadow:var(--shadow);opacity:0;pointer-events:none;transform:translateY(-3px);transition:.15s}.observer-help:hover+.observer-tooltip,.observer-help:focus+.observer-tooltip{opacity:1;transform:none}
.observer-code{margin-left:.25em;font-weight:400}
.status-chip.due-soon{background:#f7edc7;color:#5c4800}
.status-chip.due-today{background:#e4b62f;color:#332700}
.status-chip.overdue{background:#7d1111;color:#fff}
.module-nav-all,.module-nav-section{box-sizing:border-box;min-height:46px;padding:.85rem .8rem!important;line-height:1.2}

/* Assignment review actions remain aligned with the title while the list scrolls. */
.modal.review-assignments-modal{padding:0}
.review-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border-bottom:1px solid var(--line);padding:20px 24px}
.review-header h2{margin:0}
.review-header-actions{display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.review-body{padding:4px 24px 24px}
@media(max-width:760px){.review-header{padding:16px 18px}.review-header h2{font-size:1.2rem}.review-header-actions{gap:.35rem}.review-header-actions .primary-btn,.review-header-actions .ghost-btn{padding:.55rem .75rem}.review-body{padding:4px 18px 18px}}
.quiz-editor{margin:18px 0}.quiz-add{position:relative}.question-types{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.5rem}.question-types button{border:1px solid var(--line);border-radius:999px;background:#f2f2f2;padding:.45rem .75rem;font-weight:700}.quiz-question-admin,.quiz-question{position:relative;border:1px solid var(--line);border-radius:14px;padding:16px;margin:0 0 12px}.quiz-question-admin legend,.quiz-question legend{font-weight:800;padding:0 .35rem}.quiz-delete{position:absolute;right:10px;top:7px;border:0;border-radius:50%;width:28px;height:28px;background:#f7dddd;color:#7d1111;font-weight:900}.quiz-options{display:grid;gap:.55rem}.quiz-options label{display:grid;grid-template-columns:auto 1fr;gap:.55rem;align-items:center}.quiz-options label>input:last-child{width:100%;border:1px solid #d8d5cb;border-radius:9px;padding:.6rem}.quiz-question>label{display:flex;align-items:center;gap:.6rem;margin:.65rem 0;padding:.65rem;border-radius:10px;background:#fff}.quiz-question>label:has(input:checked){background:#f7edc7}.quiz-submit{margin-top:.4rem}
.completion-toast.error{background:#8b1717;color:#fff}

/* Multi-select module filters and deadline overview. */
.module-sort-spacer{flex:1}
.multi-filter{position:relative}
.filter-pill{height:38px;border:1px solid #d8d5cb;border-radius:999px;background:#ececec;padding:0 .9rem;font-weight:700;color:#1d2634;white-space:nowrap}
.filter-pill{display:inline-flex;align-items:center;gap:.4rem}
.multi-filter.has-selection .filter-pill{background:#b9b9b9}
.filter-count{display:none;place-items:center;width:20px;height:20px;border-radius:50%;background:#111;color:#fff;font-size:.75rem;font-weight:400;line-height:1}
.multi-filter.has-selection .filter-count{display:inline-grid}
.multi-filter.open .filter-pill{border:2px solid #0965c8;background:#fff;padding:0 calc(.9rem - 1px)}
.multi-filter.open.has-selection .filter-pill{background:#b9b9b9}
.multi-filter.disabled{opacity:.55}
.filter-popover{display:none;position:absolute;z-index:12;top:calc(100% + 8px);left:0;width:min(360px,calc(100vw - 48px));max-height:360px;overflow:auto;background:#fff;border:1px solid #d9dde4;border-radius:18px;padding:16px;box-shadow:0 14px 34px rgba(0,0,0,.14)}
.multi-filter.open .filter-popover{display:block}
.filter-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:1rem}
.filter-popover-head>strong{font-size:1.2rem}.filter-popover-head label{font-size:.86rem!important;color:#121827!important}
.filter-options{display:grid;gap:3px}.filter-options label{display:flex!important;justify-content:flex-start!important;width:100%!important;gap:.7rem!important;padding:.55rem .25rem;font-size:.92rem!important;color:#121827!important;cursor:pointer}
.filter-options input,.filter-popover-head input{width:20px;height:20px;accent-color:#111}
.active-module-count{display:inline-grid;place-items:center;height:38px;min-width:78px;border-radius:999px;background:#111;color:#fff;padding:0 .85rem;font-size:.8rem;font-weight:800;white-space:nowrap}
.deadline-calendar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:0;border-radius:50%;background:#111;color:#fff;padding:9px}
.module-search-tools{display:flex;align-items:center;gap:10px;flex:1;justify-content:flex-end}
.module-search-tools .module-search-bar{flex:1}
.deadline-calendar svg,.rich-toolbar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.modal.deadline-calendar-modal{width:min(1180px,96vw);height:min(680px,88vh);max-height:none;overflow:hidden;display:flex;flex-direction:column;padding:0}
.deadline-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 24px;border-bottom:1px solid var(--line)}
.deadline-modal-head h2{margin:0 0 .3rem}.deadline-modal-head p{margin:0}
.deadline-scope{display:flex;align-items:center;gap:.65rem;margin-top:12px;font-size:.82rem;font-weight:800;color:#555}
.deadline-scope .toggle-track{background:#348447}
.deadline-scope .toggle-track::after{transform:translateX(0)}
.deadline-scope .toggle input:checked+.toggle-track{background:#b7b7b7}
.deadline-scope .toggle input:checked+.toggle-track::after{transform:translateX(20px)}
.deadline-columns{display:flex;gap:14px;overflow:auto;flex:1;padding:20px 24px;background:#fafafa;align-items:stretch}
.deadline-column{flex:0 0 min(280px,78vw);border:1px solid var(--line);border-radius:16px;background:#f1efe9;padding:12px;overflow:auto}
.deadline-column h3{position:sticky;top:-12px;margin:-12px -12px 12px;padding:10px 12px;background:#f1efe9;border-bottom:1px solid #d7d3c9;text-transform:capitalize;font-size:.95rem;display:flex;align-items:center;justify-content:space-between;gap:12px}
.deadline-count{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#111;color:#fff;font-size:.82rem;font-weight:400;line-height:1}
.deadline-module{display:grid;gap:.25rem;padding:12px;margin-bottom:9px;border-radius:11px;background:#fff;border:1px solid var(--line)}
.deadline-module .status-chip{justify-self:start;margin:.15rem 0 .25rem;text-transform:none}
.deadline-calendar-modal.todo-only .calendar-completed,.deadline-calendar-modal.todo-only .calendar-empty{display:none}
.deadline-module span{font-size:.78rem;color:var(--muted);text-transform:capitalize}
.rich-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:.3rem}.rich-toolbar svg{width:16px;height:16px}
/* Keep nested bullets compact: level two is exactly twice the first-level inset. */
.rich ul,.rich-editor ul{padding-left:1.25rem;list-style-type:disc}
.rich ul ul,.rich-editor ul ul{padding-left:1.25rem;list-style-type:circle}
.rich ul ul ul,.rich-editor ul ul ul{padding-left:1.25rem;list-style-type:circle}
.rich-editor,.rich-editor *{font-family:Inter,"Segoe UI",Tahoma,sans-serif!important;font-size:inherit!important}
@media(max-width:760px){.module-sort-spacer{display:none}.active-module-count{margin-left:auto}.multi-filter{flex:1 1 42%}.filter-pill{width:100%}.filter-popover{position:fixed;left:14px;right:14px;top:auto;width:auto}.deadline-modal-head{padding:17px 18px}.deadline-columns{padding:14px}.rich-toolbar{flex-wrap:wrap}.module-search-tools{width:100%}.module-search-tools .module-search-bar{min-width:0}}

/* Keep the page fixed beneath dialogs and contain scrolling within the dialog. */
body.modal-open{overflow:hidden}
.modal{overscroll-behavior:contain}

/* Only the selected module section reveals its nested sub-sections. */
.module-nav-section-meta{display:flex;align-items:center;gap:.45rem}
.module-nav-chevron{display:inline-block;font-size:1rem;transition:transform .22s ease}
.module-nav-group.open .module-nav-chevron{transform:rotate(180deg)}
.module-nav-sub-wrap{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .24s ease,opacity .18s ease}
.module-nav-sub-wrap>div{overflow:hidden}
.module-nav-group.open .module-nav-sub-wrap{grid-template-rows:1fr;opacity:1}
@media(max-width:760px){.module-nav-group{display:block}}

/* Module sorting and holiday maintenance controls. */
.sort-pill{display:inline-flex;align-items:center;gap:.4rem;height:38px;border:1px solid #d8d5cb;border-radius:999px;background:#ececec;padding:0 .75rem;font-size:.82rem;font-weight:700;white-space:nowrap}
.sort-pill select{border:0;background:transparent;color:#1d2634;font:inherit;outline:0;cursor:pointer}
.holiday-fields{margin-top:16px}.holiday-add{display:flex;justify-content:flex-end;margin:-4px 0 16px}.holiday-row.past{color:#777}
.deadline-scope>span{color:#777}.deadline-scope>span.active{color:#1d2634}
@media(max-width:760px){.sort-pill{flex:1 1 100%;justify-content:space-between}.sort-pill select{flex:1}}

/* Search fields share a vertically centered clear control that only appears with text. */
.search-wrap{position:relative;display:inline-flex;align-items:center;min-width:250px;max-width:420px;flex:1}
.search-wrap .search{width:100%;min-width:0;max-width:none;margin:0!important;padding-right:3rem}
.search-clear{position:absolute;right:.7rem;top:50%;display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:50%;background:#111;color:#fff;font-size:17px;font-weight:400;line-height:1;opacity:0;pointer-events:none;transform:translateY(-50%);transition:opacity .12s ease}
.search-clear.visible{opacity:1;pointer-events:auto}
.search-clear:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.module-search-tools .search-wrap{flex:1}
.review-col .search-wrap{width:100%;max-width:none;margin-bottom:10px}
@media(max-width:760px){.search-wrap{min-width:0}.module-search-tools .search-wrap{width:100%;max-width:none}}

.person-name-line{display:flex;align-items:center;gap:10px;justify-content:flex-start}
.person-open{border:0;background:transparent;padding:0;text-align:left;color:inherit;overflow-wrap:anywhere}
.person-row{cursor:pointer}
.compose-intro{display:grid;place-items:center;flex-shrink:0;width:19px;height:19px;padding:0;border:0;border-radius:50%;background:#eee;color:#666}
.compose-intro:hover{background:#ddd}
.compose-intro svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.compose-intro:focus-visible,.person-open:focus-visible{outline:2px solid var(--purpleText);outline-offset:3px}
.action-switcher{flex-wrap:wrap}
.merge-fields{display:flex;flex-wrap:wrap;gap:8px}
.merge-fields button{border:0}
#introBody{font-size:1rem;font-weight:400;min-height:240px}
.upload-date-group h3{margin:18px 0 10px}
.upload-date-group .review-item>div{min-width:0;overflow-wrap:anywhere}
.upload-date-group .link-pill{flex-shrink:0}

.contact-fields{grid-column:2;grid-row:1 / span 2;border:1px solid var(--border,#dad6ce);border-radius:12px;padding:12px;min-width:0}.contact-fields legend{font-size:13px;color:#666}.add-title{grid-column:1;grid-row:2}.modal{position:relative}.modal-close{position:absolute;right:20px;top:20px;border:0;background:transparent;font-size:28px;color:#666}.response-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.response-input{width:100%;min-height:130px;font:inherit}.section-name{display:flex;align-items:center;gap:10px}.circle-edit{display:inline-grid;place-items:center;width:26px;height:26px;border:0;border-radius:50%;background:#eee;color:#666;flex-shrink:0}.circle-edit svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}.subsection-pill .circle-edit{margin-left:8px}
@media(max-width:760px){.contact-fields,.add-title{grid-column:auto;grid-row:auto}}

.completion-confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:100}

@property --pulse-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.pulse-card { border:2px solid transparent; background:linear-gradient(#eee3cd,#eee3cd) padding-box,conic-gradient(from var(--pulse-angle),#cabda5 0deg 235deg,#44c0be 250deg,#f2eee2 262deg,#d84423 274deg,#f9cb36 286deg,#5a1000 298deg,#2d8185 310deg,#cd753b 322deg,#cabda5 340deg 360deg) border-box; animation:pulse-border 5s linear infinite; }
@keyframes pulse-border { to { --pulse-angle:360deg; } }
.pulse-required { padding:14px 18px 0; font-size:13px; font-weight:700; color:#5a1000; }
.pulse-question { border:0; border-bottom:1px solid #cabda5; padding:16px 0; margin:0 0 12px; }
.pulse-question legend { font-weight:600; }
.pulse-question textarea { width:100%; }
.pulse-stars { display:flex; gap:8px; padding:12px 0; }
.pulse-stars label { position:relative; display:grid; place-items:center; width:40px; height:40px; cursor:pointer; }
.pulse-stars input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.pulse-stars span[aria-hidden] { font-size:34px; line-height:1; color:#8a7552; pointer-events:none; }
.pulse-stars span.is-filled { color:#5a1000; }
.pulse-stars label:has(input:focus-visible) { outline:2px solid #5a1000; outline-offset:2px; border-radius:4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.task-card.pulse-locked { background:#f1f1f1; border-color:#ddd; color:#777; pointer-events:none; box-shadow:none; }
.task-card.pulse-locked .task-head { cursor:default; }
.task-card.pulse-locked .status-chip { background:#e5e5e5; color:#777; }
.pulse-rating-summary { display:flex; align-items:center; gap:6px; margin-top:7px; }
.pulse-rating-summary .pulse-pill { margin-top:0; }
.pulse-new { font-size:13px; font-weight:700; }
.pulse-pill { border:0; border-radius:20px; padding:4px 10px; margin-top:7px; cursor:pointer; font-size:16px; }
.pulse-rating-5 { background:#175b32; color:white; }
.pulse-rating-4 { background:#c9e8bd; color:#264f1c; }
.pulse-rating-3 { background:#fff0ac; color:#645000; }
.pulse-rating-2 { background:#f4c4be; color:#6c1c14; }
.pulse-rating-1 { background:#921f20; color:white; }
.pulse-toggle { display:flex; align-items:center; gap:12px; margin:18px 0; }
.pulse-toggle #pulseToggle { width:52px; height:28px; border:0; border-radius:20px; background:#aaa; padding:3px; cursor:pointer; }
.pulse-toggle #pulseToggle span { display:block; width:22px; height:22px; border-radius:50%; background:white; transform:translateX(24px); transition:transform .2s; }
.pulse-toggle #pulseToggle.is-active { background:#2d8185; }
.pulse-toggle #pulseToggle.is-active span { transform:translateX(0); }
.pulse-choice { display:flex; gap:8px; margin:8px 0; }
.pulse-choice input { flex:1; min-width:0; }
@media(prefers-reduced-motion:reduce) { .pulse-card { animation:none; } }

.pulse-preview-modal { max-width:85vw; max-height:85vh; min-width:0; border:0; border-radius:24px; padding:24px; overflow:auto; overscroll-behavior:contain; box-shadow:0 18px 70px rgba(0,0,0,.3); background:#fff; color:var(--text); }
.pulse-preview-modal::backdrop { background:rgba(0,0,0,.35); }
.pulse-preview-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.pulse-preview-header h2 { margin:0; }
.pulse-toggle .pulse-preview-btn { background:#eee; color:#555; }
