:root{--bg:#f6f7fb;--card:#fff;--text:#172033;--muted:#6f7788;--brand:#6d4aff;--brand2:#8c6cff;--navy:#0c2748;--gold:#c99a45;--line:#e8eaf1;--danger:#b42318;--ok:#087f5b;--warn:#c66a06;--shadow:0 14px 40px rgba(38,44,71,.08)}*{box-sizing:border-box}html,body{margin:0;max-width:100%;overflow-x:hidden}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}.hidden{display:none!important}.public-shell{min-height:100dvh;display:grid;grid-template-columns:1.08fr .92fr;background:linear-gradient(135deg,#f5f1ff 0,#fff 58%)}.hero{padding:7vw;display:flex;flex-direction:column;justify-content:center}.brand{display:flex;align-items:center;gap:15px}.brand-logo{width:78px;height:64px;object-fit:contain}.brand-name{font-size:31px;font-weight:850;letter-spacing:-.03em}.brand-tagline{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#697386;margin-top:6px;font-weight:750}.hero h1{font-size:clamp(42px,5.8vw,76px);line-height:.99;margin:36px 0 18px;letter-spacing:-3px}.hero>p{font-size:19px;line-height:1.6;color:var(--muted);max-width:680px}.auth-wrap{display:grid;place-items:center;padding:28px}.auth-card{width:min(470px,100%);background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:26px;padding:32px;box-shadow:var(--shadow)}.auth-card h2{font-size:30px;margin:0 0 10px}.auth-switch{display:flex;justify-content:flex-end;margin-top:18px}.auth-switch button{border:0;background:#f3f0ff;color:#563dcc;border-radius:10px;padding:9px 12px;cursor:pointer;font-weight:750}label{display:block;font-size:13px;font-weight:750;margin:15px 0 0}input,select,textarea{width:100%;border:1px solid #dfe2ea;border-radius:11px;padding:11px 13px;background:#fff;color:var(--text);outline:none}input:focus,select:focus,textarea:focus{border-color:#a18eff;box-shadow:0 0 0 3px #eeeaff}.btn{border:1px solid var(--line);background:#fff;color:var(--text);padding:10px 14px;border-radius:11px;cursor:pointer;font-weight:750}.btn.primary{border:0;color:#fff;background:linear-gradient(135deg,var(--brand),var(--brand2))}.btn.danger{border-color:#f4b4ae;background:#fff1f0;color:#9e1c14}.btn.small{padding:6px 9px;font-size:11px}.btn.block{width:100%;margin-top:18px}.link{border:0;background:none;color:var(--brand);cursor:pointer;padding:0;font-weight:750}.forgot{float:right;margin-top:10px}.app-shell{min-height:100dvh;display:grid;grid-template-columns:252px 1fr}.sidebar{position:sticky;top:0;height:100dvh;background:#151527;color:#fff;padding:20px 17px;display:flex;flex-direction:column;z-index:50}.sidebar-brand{margin-bottom:24px}.sidebar .brand-logo{width:54px;height:46px}.sidebar .brand-name{font-size:19px;color:#fff}.sidebar .brand-tagline{font-size:8px;color:#a8a9bd;letter-spacing:.05em}.nav-group{font-size:10px;color:#8f90a8;margin:20px 10px 7px;text-transform:uppercase;letter-spacing:1px}.sidebar button{width:100%;text-align:left;border:0;background:transparent;color:#c7c8d7;padding:11px 12px;border-radius:10px;cursor:pointer;margin:2px 0}.sidebar button.active,.sidebar button:hover{background:#28283f;color:#fff}.sidebar .spacer{flex:1}.main{padding:32px;min-width:0;max-width:1580px;width:100%;margin:0 auto}.page-head{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:22px;flex-wrap:wrap}.page-head h1{font-size:32px;letter-spacing:-1px;margin:0}.page-head p{color:var(--muted);margin:5px 0 0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.stat,.card{background:var(--card);border:1px solid var(--line);border-radius:17px;box-shadow:0 6px 24px rgba(38,44,71,.04)}.stat{padding:20px;position:relative;overflow:hidden}.stat b{display:block;font-size:28px}.stat span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.stat.words{background:#eef6ff;border-color:#bdd9ff}.stat.progress-card{background:#f3efff;border-color:#d9c9ff}.stat.sections{background:#ecfdf5;border-color:#bdebd2}.stat.deadline{background:#fff7ed;border-color:#ffd5ad}.card{padding:20px;margin-bottom:18px}.card h2{margin:0 0 12px}.card-head{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.project-card{border:1px solid var(--line);background:#fff;border-radius:15px;padding:18px;text-align:left;cursor:pointer;transition:.16s}.project-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.project-card h3{font-size:18px;margin:13px 0 10px}.type-pill{display:inline-flex;padding:5px 9px;border-radius:99px;background:#eee9ff;color:#5c3bd3;font-size:11px;font-weight:850}.progress{height:7px;border-radius:99px;background:#eeeef4;overflow:hidden}.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),#a58fff)}.muted{color:var(--muted);font-size:12px}.tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:18px;scrollbar-width:thin}.tabs button{border:0;background:none;padding:10px 12px;white-space:nowrap;cursor:pointer;color:var(--muted);font-weight:750}.tabs button.active{color:var(--brand);border-bottom:2px solid var(--brand)}.health{display:grid;grid-template-columns:1fr auto auto;gap:12px;border-bottom:1px solid var(--line);padding:10px 0;align-items:center}.health em{font-style:normal;color:var(--muted);font-size:11px}.writer-layout{display:grid;grid-template-columns:210px minmax(0,1fr) 180px;gap:14px}.section-list,.editor-card,.writer-stats{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.section-list{padding:8px;height:72dvh;overflow:auto}.section-list button{width:100%;text-align:left;border:0;background:none;padding:10px;border-radius:9px;cursor:pointer}.section-list button.active{background:#f0edff;color:#5438c7}.section-list small{display:block;color:var(--muted);margin-top:3px}.editor-card{height:72dvh;display:flex;flex-direction:column}.editor-head{padding:13px 15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.editor-head h2{font-size:17px;margin:0}.editor-head small{color:var(--muted)}.editor-actions{display:flex;gap:6px;flex-wrap:wrap}.format-toolbar{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid var(--line);overflow-x:auto;white-space:nowrap}.format-toolbar button,.format-toolbar select{width:auto;flex:0 0 auto;padding:7px 9px;border-radius:8px;border:1px solid #e0e3eb;background:#fff}.rich-editor{flex:1;padding:24px;overflow:auto;font-size:17px;line-height:1.75;outline:none;min-height:300px}.rich-editor:empty:before{content:attr(data-placeholder);color:#aaa}.writer-stats{padding:16px}.metric{padding:13px 0;border-bottom:1px solid var(--line)}.metric b{display:block;font-size:23px}.metric span{font-size:11px;color:var(--muted)}.focus-mode{grid-template-columns:1fr!important}.focus-mode .section-list,.focus-mode .writer-stats{display:none}.focus-mode .editor-card{height:calc(100dvh - 145px)}.tools-hidden .format-toolbar{display:none}.outline-row{display:grid;grid-template-columns:26px 1fr 180px;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.outline-row textarea{min-height:66px}.small-input{width:100px}.phases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.phase{border:1px solid var(--line);border-radius:13px;padding:14px}.phase h3{margin:0 0 10px}.check{display:flex;gap:8px;align-items:flex-start;font-weight:500;margin:9px 0}.check input{width:auto;margin-top:3px}.note-card{border:1px solid var(--line);border-radius:13px;padding:14px;margin:10px 0}.note-card input{margin-bottom:8px}.reference-card{border:1px solid var(--line);border-radius:13px;padding:14px;margin:10px 0}.reference-meta{display:grid;grid-template-columns:1fr 180px;gap:10px}.version-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.version-row .actions{margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:700px}th,td{text-align:left;padding:11px;border-bottom:1px solid var(--line);font-size:12px;vertical-align:middle}th{white-space:nowrap}.profile-row{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}.profile-row span{color:var(--muted);font-size:12px}.profile-row b{text-align:right}.deadline-table{overflow-x:auto}.deadline-row{display:grid;grid-template-columns:minmax(230px,1fr) 116px 128px 105px;gap:7px;align-items:end;padding:8px 0;border-bottom:1px solid var(--line);min-width:620px}.deadline-row label{font-size:10px;margin:0}.deadline-row input,.deadline-row select{height:32px;padding:4px 7px;font-size:11px}.deadline-section{display:flex;gap:8px;align-items:center;min-height:32px}.deadline-section i{font-style:normal;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#eee9ff;color:#5d3ed6;font-size:10px;font-weight:850}.submission-grid{display:grid;grid-template-columns:repeat(2,320px);gap:18px;justify-content:start}.submission-grid label{max-width:230px}.submission-grid input,.submission-grid select{max-width:230px;height:34px;font-size:11px}.actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px;flex-wrap:wrap}.modal{position:fixed;inset:0;background:rgba(16,18,29,.52);display:grid;place-items:center;padding:18px;z-index:100}.modal-box{background:#fff;border-radius:18px;padding:22px;width:min(560px,100%);max-height:90dvh;overflow:auto}.toast{position:fixed;right:18px;bottom:18px;background:#1d2130;color:#fff;padding:12px 16px;border-radius:11px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.18s;z-index:200}.toast.show{opacity:1;transform:none}.toast.bad{background:#9d261f}.mobile-nav-toggle,.mobile-shade{display:none}.manuscript-table{width:100%;border-collapse:collapse;margin:14px 0;min-width:0}.manuscript-table th,.manuscript-table td{border:1px solid #aeb4bf;padding:7px;min-width:70px}.manuscript-figure{text-align:center;margin:18px auto}.manuscript-figure img{max-width:100%;height:auto;border-radius:6px}.manuscript-figure figcaption{font-size:11px;color:var(--muted);margin-top:6px;font-style:italic}@media(max-width:1100px){.stats,.project-grid{grid-template-columns:repeat(2,1fr)}.writer-layout{grid-template-columns:170px minmax(0,1fr)}.writer-stats{display:none}.grid3{grid-template-columns:1fr 1fr}}@media(max-width:820px){.public-shell{grid-template-columns:1fr}.hero{padding:42px 20px 10px;text-align:center}.hero-brand{justify-content:center}.hero h1{font-size:clamp(34px,9vw,48px);letter-spacing:-1.7px;margin:22px 0 12px}.hero>p{font-size:15px}.auth-wrap{padding:16px 16px 28px}.app-shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;transform:translateX(-105%);transition:.2s;box-shadow:8px 0 28px rgba(0,0,0,.18)}.app-shell.nav-open .sidebar{transform:translateX(0)}.mobile-nav-toggle{display:grid;place-items:center;position:fixed;left:12px;top:12px;width:42px;height:42px;border:0;border-radius:12px;background:var(--navy);color:#fff;z-index:80;font-size:20px}.mobile-shade{position:fixed;inset:0;background:rgba(12,22,38,.4);z-index:49}.app-shell.nav-open .mobile-shade{display:block}.main{padding:66px 15px 24px}.grid2,.grid3,.phases{grid-template-columns:1fr}.writer-layout{display:block}.section-list{height:auto;display:flex;gap:7px;overflow-x:auto;margin-bottom:10px}.section-list button{min-width:145px;flex:0 0 145px}.editor-card{height:66dvh}.rich-editor{font-size:16px;padding:18px}.writer-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:10px}.submission-grid{grid-template-columns:1fr}.modal{align-items:end;padding:10px}.modal-box{width:100%;border-radius:18px 18px 0 0}.profile-row{flex-direction:column;gap:4px}.profile-row b{text-align:left}}@media(max-width:520px){.stats,.project-grid{grid-template-columns:1fr}.page-head h1{font-size:27px}.writer-stats{grid-template-columns:1fr}.editor-actions{width:100%}.editor-actions .btn{flex:1}.brand-name{font-size:27px}.brand-logo{width:70px;height:58px}.deadline-row{grid-template-columns:minmax(210px,1fr) 108px 120px 98px;min-width:585px}.auth-card{padding:20px}}