.app-body{min-height:100vh;background:#f6f7fb;display:grid;grid-template-columns:248px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);padding:24px 16px;display:flex;flex-direction:column}.sidebar>.brand{padding:0 10px 27px}.sidebar nav{display:grid;gap:5px}.side-link{display:flex;gap:13px;align-items:center;border:0;background:transparent;color:#667188;padding:12px 13px;border-radius:10px;text-align:left;font-weight:600}.side-link.active{background:#f0edff;color:var(--purple)}.side-plan{margin-top:auto;background:#f6f3ff;border-radius:14px;padding:15px;display:grid;gap:7px}.side-plan small{color:#806ceb;font-weight:800;font-size:9px}.side-plan b{font-size:13px}.side-plan span{font-size:10px;color:var(--muted)}.side-plan>div{height:5px;background:#e0dbf7;border-radius:4px}.side-plan i{display:block;width:53%;height:100%;background:var(--purple);border-radius:4px}.side-plan a{font-size:11px;color:var(--purple);font-weight:700}.profile{border:0;background:transparent;border-top:1px solid var(--line);display:flex;align-items:center;gap:9px;margin-top:18px;padding:17px 5px 0;text-align:left}.profile>span{width:34px;height:34px;display:grid;place-items:center;background:#e9e4ff;color:var(--purple);border-radius:50%;font-weight:800}.profile b,.profile small{display:block}.profile b{font-size:12px}.profile small{font-size:10px;color:var(--muted);margin-top:2px}.app-main{min-width:0}.app-top{height:96px;padding:0 34px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px}.app-top h1{font:800 23px Manrope;margin:0}.app-top p{margin:5px 0 0;color:var(--muted);font-size:12px}.top-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.saved{font-size:11px;color:var(--green);font-weight:700}.menu-btn{display:none;border:0;background:none;font-size:20px}.app-view{display:none;padding:30px 34px;max-width:1400px;margin:auto}.app-view.active{display:block}.notice{border:1px solid #d9d2ff;background:#f5f2ff;border-radius:14px;padding:13px 16px;display:flex;align-items:center;gap:13px;color:#6554ac}.notice>div{width:35px;height:35px;background:#e8e1ff;border-radius:10px;display:grid;place-items:center}.notice p{margin:0;font-size:12px;line-height:1.5}.notice b{color:#453780}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.metric-grid article,.project-summary,.next-steps,.form-card,.checklist-card,.editor-card,.chapter-nav,.export-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px}.metric-grid span,.project-summary small{font-size:9px;color:var(--muted);font-weight:800;letter-spacing:.08em}.metric-grid b{display:block;font:800 24px Manrope;margin:12px 0 4px}.metric-grid small{font-size:10px;color:var(--muted)}.orange{color:#d8812d;font-size:17px!important}.mini-progress{height:5px;background:#eeeef4;border-radius:5px}.mini-progress i{display:block;height:100%;background:var(--purple);border-radius:5px}.dashboard-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:17px}.card-head{display:flex;justify-content:space-between;gap:15px;align-items:start}.card-head h2{font:700 19px/1.4 Manrope;margin:7px 0 0}.card-head>span{font-size:10px;background:#eeebff;color:var(--purple);padding:6px 8px;border-radius:13px;font-weight:700}.project-meta{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding:17px 0;margin:20px 0}.project-meta small,.project-meta b{display:block}.project-meta small{color:var(--muted);font-size:9px}.project-meta b{font-size:12px;margin-top:5px}.next-steps h3{font:700 17px Manrope;margin:0}.next-steps .card-head>b{font-size:10px;color:#c77523;background:#fff3df;padding:6px 8px;border-radius:12px}.next-steps label{display:flex;grid-template-columns:auto 1fr;align-items:start;border-top:1px solid var(--line);padding:14px 0}.next-steps label:first-of-type{margin-top:15px}.next-steps input{accent-color:var(--green)}.next-steps b,.next-steps small{display:block}.next-steps b{font-size:12px}.next-steps small{font-size:10px;color:var(--muted);margin-top:4px}.workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:18px}.form-card h2{font:700 21px Manrope;margin:0}.form-card>p,.card-head p{color:var(--muted);font-size:12px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.checklist-card{height:max-content}.checklist-card h3{font:700 16px Manrope;margin:0}.readiness{display:flex;align-items:center;gap:12px;margin:20px 0}.readiness b{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#efebff;color:var(--purple);font:800 16px Manrope}.readiness span{font-size:11px;color:var(--muted)}.checklist-card ul{list-style:none;padding:0;margin:0}.checklist-card li{padding:10px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.checklist-card li:before{content:'○';margin-right:9px}.checklist-card li.ok{color:var(--green)}.checklist-card li.ok:before{content:'✓'}.empty-workspace{background:#fff;border:1px solid var(--line);border-radius:17px;min-height:560px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px}.upload-icon{width:65px;height:65px;border-radius:18px;background:#eeeaff;color:var(--purple);display:grid;place-items:center;font-size:27px}.empty-workspace h2{font:700 23px Manrope;margin:20px 0 6px}.empty-workspace>p{color:var(--muted);font-size:13px;max-width:520px;line-height:1.6}.upload-box{width:min(550px,100%);padding:30px;border:2px dashed #c9c0f3;border-radius:14px;margin:22px 0;display:grid;place-items:center;background:#fbfaff;color:var(--purple);cursor:pointer}.upload-box input{display:none}.upload-box span{font-size:10px;color:var(--muted);margin-top:7px}.guard-list{display:flex;gap:18px;flex-wrap:wrap;font-size:10px;color:var(--green);font-weight:700}.file-result{font-size:12px;color:var(--muted)}.chapter-workspace{display:grid;grid-template-columns:235px minmax(0,1fr);gap:17px}.chapter-nav{padding:13px;height:max-content}.chapter-nav h3{padding:8px 8px 13px;margin:0;font:700 14px Manrope}.chapter-nav button{width:100%;border:0;background:none;border-radius:10px;padding:10px;display:grid;grid-template-columns:30px 1fr;gap:9px;text-align:left;color:var(--ink)}.chapter-nav button>span{width:28px;height:28px;border-radius:8px;background:#eff0f4;display:grid;place-items:center;font-size:10px;font-weight:800}.chapter-nav b,.chapter-nav small{display:block}.chapter-nav b{font-size:11px}.chapter-nav small{font-size:9px;color:var(--muted);margin-top:3px}.chapter-nav button.selected{background:#f1edff;color:var(--purple)}.chapter-nav button.selected>span{background:var(--purple);color:#fff}.chapter-nav button.locked{opacity:.55}.editor-card{padding:0;overflow:hidden}.editor-head{display:flex;justify-content:space-between;padding:19px 21px;border-bottom:1px solid var(--line)}.editor-head small{font-size:9px;color:var(--purple);font-weight:800}.editor-head h2{font:700 20px Manrope;margin:4px 0 0}.editor-toolbar{height:48px;padding:0 15px;display:flex;align-items:center;gap:5px;border-bottom:1px solid var(--line)}.editor-toolbar button{border:0;background:#f3f4f7;border-radius:6px;height:29px;padding:0 10px;color:#576177}.editor-toolbar span{width:1px;height:20px;background:var(--line);margin:0 5px}.editor{display:block;width:100%;min-height:460px;border:0;border-radius:0;padding:28px;font:14px/1.8 'DM Sans';resize:vertical}.editor:focus{box-shadow:none}.editor-footer{border-top:1px solid var(--line);padding:10px 20px;display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}.reference-search{display:grid;grid-template-columns:1fr 150px auto;gap:9px;margin:22px 0}.reference-list article{display:grid;grid-template-columns:30px 1fr auto;gap:12px;align-items:center;border-top:1px solid var(--line);padding:14px 0}.reference-list span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-weight:800}.reference-list .verified{background:#e4f8f0;color:var(--green)}.reference-list .pending{background:#fff1dc;color:#d58027}.reference-list b{font-size:12px}.reference-list p{font-size:10px;color:var(--muted);margin:4px 0 0}.reference-list button{border:0;background:none}.export-grid{display:grid;grid-template-columns:1fr 300px;gap:18px}.review-list{margin-top:20px}.review-list>div{display:grid;grid-template-columns:35px 1fr;gap:12px;border-top:1px solid var(--line);padding:15px 0}.review-list span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:800}.review-list .pass span{background:#e3f8f0;color:var(--green)}.review-list .warn span{background:#fff1dc;color:#d58027}.review-list b,.review-list small{display:block}.review-list b{font-size:12px}.review-list small{font-size:10px;color:var(--muted);margin-top:3px}.export-card{height:max-content}.export-card h3{font:700 17px Manrope;margin:0}.export-card p,.export-card small{font-size:10px;color:var(--muted);line-height:1.5}.export-card button{margin:6px 0}.export-card button:disabled{opacity:.55}.toast{display:block}
@media(max-width:900px){.app-body{grid-template-columns:1fr}.sidebar{position:fixed;z-index:30;transform:translateX(-100%);transition:.2s;width:248px}.sidebar.open{transform:translateX(0)}.menu-btn{display:block}.metric-grid{grid-template-columns:1fr 1fr}.dashboard-grid,.workspace-layout,.chapter-workspace,.export-grid{grid-template-columns:1fr}.chapter-nav{display:flex;overflow:auto}.chapter-nav h3{display:none}.chapter-nav button{min-width:160px}.app-top{padding:0 18px}.app-view{padding:22px 18px}}
@media(max-width:600px){.metric-grid{grid-template-columns:1fr}.top-actions .saved{display:none}.app-top h1{font-size:18px}.app-top p{display:none}.form-grid{grid-template-columns:1fr}.project-meta{grid-template-columns:1fr;gap:13px}.reference-search{grid-template-columns:1fr}.form-actions{display:grid}.guard-list{display:grid}.chapter-workspace{display:block}.chapter-nav{margin-bottom:12px}}
.account-menu{display:none;position:absolute;left:16px;right:16px;bottom:86px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 12px 35px #17233b22;z-index:20}.account-menu.open{display:grid}.account-menu a,.account-menu button{padding:10px 12px;border:0;background:transparent;text-align:left;color:var(--ink);font:600 13px DM Sans;text-decoration:none;border-radius:8px}.account-menu a:hover,.account-menu button:hover{background:#f4f1ff}

.rich-editor{outline:0;overflow:auto;max-height:650px;white-space:normal}.rich-editor:empty:before{content:attr(data-placeholder);color:#9299a8}.rich-editor h2{font:800 20px/1.4 Manrope;margin:18px 0 13px;color:var(--ink)}.rich-editor h3{font:700 16px/1.45 Manrope;margin:17px 0 9px;color:var(--ink)}.rich-editor h4{font:700 14px/1.45 Manrope;margin:15px 0 8px}.rich-editor p{margin:0 0 12px;text-align:justify}.rich-editor ul{margin:7px 0 15px;padding-left:24px}.rich-editor li{margin:5px 0}.rich-editor hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.projects-head{display:flex;justify-content:space-between;gap:18px;align-items:center}.projects-head h2{font:700 21px Manrope;margin:0}.projects-head p{color:var(--muted);font-size:12px;margin:6px 0 0}.projects-head input{width:min(340px,100%)}.projects-list{display:grid;gap:12px;margin-top:20px}.project-row{border:1px solid var(--line);border-radius:13px;padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}.project-row h3{font:700 15px/1.4 Manrope;margin:0}.project-row p{font-size:11px;color:var(--muted);margin:7px 0 0}.current-project{display:inline-block;margin-left:8px;background:#e6f8f1;color:var(--green);font-size:9px;padding:4px 7px;border-radius:10px;vertical-align:middle}.projects-empty{text-align:center;color:var(--muted);padding:45px 15px;font-size:13px}.projects-empty[hidden]{display:none}@media(max-width:900px){.projects-head{align-items:stretch;flex-direction:column}.project-row{grid-template-columns:1fr}.project-row button{width:100%}}
