/* Canonical Company Handbook stylesheet. All selectors are module-scoped. */
.content:has(.handbook-page){padding:0 24px}.handbook-page{width:100%;max-width:1540px;margin:0 auto 0 0;padding:8px 0 36px;color:#173c2a}.handbook-hero{position:relative;min-height:190px;padding:32px 37px;overflow:hidden;border:1px solid #cfead9;border-radius:24px;background:linear-gradient(112deg,#087b40,#11a35a 62%,#57c783);color:#fff}.handbook-hero:after{position:absolute;top:-133px;right:-78px;width:280px;height:280px;border:42px solid #ffffff1a;border-radius:50%;content:"";pointer-events:none}.handbook-hero-copy{position:relative;z-index:1;max-width:640px}.handbook-hero-copy>span,.handbook-reading-head>div>span,.handbook-sidebar-title>span{display:block;color:#0a9450;font-size:11px;font-weight:800;letter-spacing:.11em}.handbook-hero-copy>span{color:#b9f6cf}.handbook-hero h2{margin:7px 0 8px;color:#fff;font-size:32px;line-height:1.17}.handbook-hero p{margin:0;color:#e3f9eb;line-height:1.55}.handbook-admin-tools{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.handbook-admin-tools .btn{padding:9px 13px}.handbook-admin-tools .light{border-color:#ffffff61;background:#fffffff0;color:#17683d}
.handbook-workspace{display:grid;grid-template-columns:195px minmax(0,1fr);gap:18px;margin-top:20px}.handbook-sidebar,.handbook-reading{border:1px solid #dcece2;border-radius:20px;background:#fff}.handbook-sidebar{position:sticky;top:90px;align-self:start;padding:15px;box-shadow:0 10px 26px #13482a0a}.handbook-sidebar-title{padding:7px 8px 13px}.handbook-sidebar-title>b{display:block;margin-top:5px;font-size:16px}.handbook-topic{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;margin:3px 0;padding:10px;border:0;border-radius:10px;background:transparent;color:#416150;font:700 14px/1.3 inherit;text-align:left;cursor:pointer}.handbook-topic i{display:grid;flex:0 0 19px;place-items:center;width:19px;height:19px}.handbook-topic i svg{width:18px;height:18px}.handbook-topic span{width:auto;text-align:left;overflow-wrap:anywhere}.handbook-topic:hover{background:#effaf3;color:#087b40}.handbook-topic:focus-visible{outline:3px solid #8ed5a8;outline-offset:2px}.handbook-topic.active{background:#087b40;color:#fff;box-shadow:0 5px 13px #087b4029}.handbook-reading{overflow:hidden}.handbook-reading-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px 17px;border-bottom:1px solid #e8f0eb}.handbook-reading-head h3{margin:4px 0 0;font-size:22px}.handbook-search{display:flex;align-items:center;gap:8px;min-width:245px;padding:0 12px;border:1px solid #d6e6dc;border-radius:11px;background:#fbfefc;color:#168c4e}.handbook-search input{width:100%;height:40px;border:0;outline:0;background:transparent;color:#244838}.handbook-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px}.handbook-course-card{display:block;overflow:hidden;border:1px solid #dceae1;border-radius:16px;background:#fff;text-align:left;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s}.handbook-course-card:hover{transform:translateY(-3px);border-color:#91d1a9;box-shadow:0 14px 24px #155b3017}.handbook-course-cover{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(140deg,#e8f8ef,#bde8cd)}.handbook-course-cover img{width:100%;height:100%;object-fit:cover}.handbook-course-cover i{display:grid;place-items:center;width:100%;height:100%;color:#087b40;font-style:normal}.handbook-course-cover i svg{width:45px}.handbook-course-cover em{position:absolute;bottom:10px;left:10px;padding:5px 8px;border-radius:999px;background:#0d5e38de;color:#fff;font-size:10px;font-style:normal;font-weight:800}.handbook-course-copy{display:block;padding:14px}.handbook-course-copy small,.handbook-course-copy b,.handbook-course-copy span,.handbook-course-copy strong{display:block}.handbook-course-copy small{color:#0a9450;font-size:10px;font-weight:800;letter-spacing:.07em}.handbook-course-copy b{margin-top:6px;color:#173c2a;font-size:16px;line-height:1.3}.handbook-course-copy>span{display:-webkit-box;margin-top:6px;overflow:hidden;color:#667f70;font-size:13px;line-height:1.5;-webkit-line-clamp:2;-webkit-box-orient:vertical}.handbook-course-copy strong{margin-top:11px;color:#087b40;font-size:13px}.handbook-empty,.handbook-loading{display:grid;place-items:center;gap:9px;min-height:175px;padding:28px;border:1px dashed #c8ddd0;border-radius:16px;background:#fbfefc;color:#617968;text-align:center}.handbook-loading{margin:20px}.handbook-loading span{width:22px;height:22px;border:3px solid #d5ebdc;border-top-color:#0b9550;border-radius:50%;animation:handbook-spin .8s linear infinite}@keyframes handbook-spin{to{transform:rotate(360deg)}}
.handbook-back{margin:0 0 14px;padding:0;border:0;background:transparent;color:#087b40;font-weight:800;cursor:pointer}.handbook-lesson{overflow:hidden;border:1px solid #dcece2;border-radius:22px;background:#fff;box-shadow:0 12px 26px #13482a0a}.handbook-lesson header{padding:30px 34px 23px}.handbook-lesson h2{margin:8px 0;color:#173c2a;font-size:30px}.handbook-lesson header p{margin:0;color:#617d6d;line-height:1.55}.handbook-lesson-cover{display:block;width:100%;max-height:370px;object-fit:cover}.handbook-lesson-text{padding:30px 34px;color:#345947;line-height:1.8}.handbook-lesson-intro{margin:0 0 22px;padding:17px 19px;border:1px solid #d6ecdd;border-radius:14px;background:linear-gradient(135deg,#f4fcf6,#ebf8ef)}.handbook-lesson-intro b{color:#087b40}.handbook-activity-title{display:flex;align-items:center;gap:9px;margin:30px 0 12px;color:#173c2a;font-size:20px}.handbook-activity-title:before{width:7px;height:26px;border-radius:9px;background:#18a058;content:""}.handbook-activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.handbook-activity-card{min-height:144px;padding:16px;border:1px solid #dcebe2;border-radius:16px;background:#fff}.handbook-activity-card>span{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#e6f7ed}.handbook-activity-card b{display:block;margin-top:12px;color:#173c2a}.handbook-reflection{margin-top:16px;padding:15px 17px;border-radius:13px;background:#123f2a;color:#edf9f0}.handbook-reflection b{color:#c7f4d4}.handbook-source{display:inline-block;margin:0 34px 30px;color:#087b40;font-weight:800;text-decoration:none}
.handbook-lesson-kicker{display:flex;align-items:center;gap:8px;min-width:0}.handbook-lesson-kicker>i{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;overflow:hidden;border-radius:8px;background:#e6f7ed;color:#087b40;font-style:normal}.handbook-lesson-kicker>i>svg{display:block;flex:none;width:17px;height:17px;max-width:17px;max-height:17px}.handbook-lesson-kicker>small{min-width:0;margin:0}.handbook-activity-card>span{width:40px;height:40px;overflow:hidden;border:1px solid #d6ecdd;border-radius:12px;background:#effaf3;color:#087b40;font-size:0}.handbook-activity-card>span>svg{display:block;flex:none;width:20px;height:20px;max-width:20px;max-height:20px}
/* Handbook-only modal/editor; never alters the shared modal system. */
.modal-bg:has(.handbook-editor){padding:16px}.modal-bg:has(.handbook-editor) .modal{width:min(880px,calc(100vw - 32px));max-height:calc(100dvh - 32px);display:flex;flex-direction:column}.modal-bg:has(.handbook-editor) .modal-head,.modal-bg:has(.handbook-editor) .modal-foot{flex:0 0 auto}.modal-bg:has(.handbook-editor) .modal-body{overflow:auto}.handbook-editor{max-width:820px;margin:auto}.handbook-form-heading{margin:10px 0 0;padding-top:14px;border-top:1px solid #e4eee7;color:#087b40;font-size:15px}.eco-handbook-editor{border:1px solid #cde3d4;border-radius:12px;overflow:hidden;background:#fff}.eco-handbook-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 10px;border-bottom:1px solid #dcebe2;background:#f3faf5}.eco-handbook-toolbar button,.eco-handbook-toolbar select{box-sizing:border-box;min-height:36px;margin:0;padding:6px 10px;border:1px solid #bbd9c5;border-radius:7px;background:#fff;color:#165a35;font:600 12px/1.2 inherit;cursor:pointer}.eco-handbook-toolbar button:hover,.eco-handbook-toolbar button:focus-visible,.eco-handbook-toolbar select:focus-visible{border-color:#078340;background:#e8f7ed;outline:2px solid #8ed5a8;outline-offset:1px}.eco-handbook-toolbar select{min-width:138px}.eco-handbook-editable{min-height:118px;padding:14px;outline:0;background:#fff;color:#244838;line-height:1.6;cursor:text;user-select:text}.eco-handbook-editable:focus{box-shadow:inset 0 0 0 2px #74c993}.eco-handbook-editable:empty:before{color:#91a99a;content:attr(data-placeholder)}.eco-handbook-editable p:first-child{margin-top:0}.eco-handbook-editable p:last-child{margin-bottom:0}.handbook-editor-activities{display:grid;grid-template-columns:1fr;gap:12px}.handbook-editor-activity{display:grid;gap:9px;padding:15px;border:1px solid #d8e9de;border-radius:12px;background:#fafffb}.handbook-editor-activity-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.handbook-editor-activity-head b{color:#147845}.handbook-editor-activity input{width:100%;min-height:42px;box-sizing:border-box}.handbook-editor-activity .eco-handbook-editable{min-height:92px}.handbook-cover-preview{display:none;max-width:120px;max-height:120px;margin-top:8px;border-radius:10px;object-fit:cover}.handbook-manage{display:grid;gap:14px}.handbook-manage-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.handbook-manage-list{display:grid;gap:8px;max-height:340px;overflow:auto}.handbook-manage-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid #dcebe2;border-radius:12px}.handbook-manage-row.compact{grid-template-columns:minmax(0,1fr) auto}.handbook-manage-row img{width:46px;height:46px;border-radius:9px;object-fit:cover}.handbook-manage-row b,.handbook-manage-row small{display:block}.handbook-manage-row small{margin-top:3px;color:#668072}.handbook-manage-row>div{display:flex;gap:6px}
@media(min-width:1024px){.handbook-course-detail{max-width:1240px}.handbook-lesson{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);column-gap:28px;padding:0 28px 30px}.handbook-lesson header{grid-column:1/-1;padding:28px 0 20px}.handbook-lesson-cover{grid-column:1;grid-row:2;max-height:none;border-radius:18px}.handbook-lesson-text{grid-column:2;grid-row:2;padding:0}.handbook-source{grid-column:2;grid-row:3;margin:14px 0 0}.handbook-activity-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(min-width:761px) and (max-width:1023px){.handbook-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:760px){.content:has(.handbook-page){padding:0 12px}.handbook-page{padding-bottom:24px}.handbook-hero{min-height:0;padding:22px 19px;border-radius:18px}.handbook-hero h2{font-size:24px}.handbook-workspace{display:block;margin-top:14px}.handbook-sidebar{position:static;display:flex;gap:8px;overflow-x:auto;margin:0 0 12px;padding:8px;scrollbar-width:none}.handbook-sidebar::-webkit-scrollbar{display:none}.handbook-sidebar-title{display:none}.handbook-topic{flex:0 0 auto;width:auto;min-width:max-content;min-height:44px;margin:0;padding:9px 12px;white-space:nowrap}.handbook-topic span{display:block}.handbook-topic i{width:18px;height:18px;flex-basis:18px}.handbook-reading-head{flex-direction:column;align-items:stretch;padding:18px}.handbook-search{min-width:0}.handbook-course-grid{grid-template-columns:1fr;gap:12px;padding:12px}.handbook-lesson{border-radius:16px}.handbook-lesson header,.handbook-lesson-text{padding:22px 19px}.handbook-lesson h2{font-size:25px}.handbook-lesson-cover{max-height:none}.handbook-activity-grid{grid-template-columns:1fr}.handbook-source{margin:0 19px 22px}.modal-bg:has(.handbook-editor){padding:8px}.modal-bg:has(.handbook-editor) .modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.eco-handbook-toolbar{gap:5px}.eco-handbook-toolbar button,.eco-handbook-toolbar select{min-height:40px;font-size:13px}.eco-handbook-toolbar select{min-width:126px}.eco-handbook-editable{min-height:108px;font-size:16px}.handbook-manage-row{grid-template-columns:42px minmax(0,1fr)}.handbook-manage-row.compact{grid-template-columns:minmax(0,1fr)}.handbook-manage-row>div{grid-column:1/-1;justify-content:flex-end}}
@media(min-width:1200px){.content:has(.handbook-page){padding-left:18px;padding-right:24px}.handbook-page{max-width:1540px;margin-left:0;margin-right:auto}.handbook-workspace{grid-template-columns:195px minmax(0,1fr);gap:18px}.handbook-course-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
