:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2937;background:#f5f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#eef2f7}.auth-card{width:min(420px,100%);background:#fff;border:1px solid #e5eaf1;border-radius:8px;padding:34px;box-shadow:0 12px 40px #23365014}.brand-mark{display:flex;align-items:center;gap:9px;color:#2563eb;font-weight:750;letter-spacing:.01em}h1{margin:28px 0 8px;font-size:26px;color:#172033}h2,h3,h4,h5,p{margin-top:0}h2{margin-bottom:0;font-size:22px}h3{margin-bottom:0;font-size:19px;color:#172033}.muted{color:#748196;font-size:13px;line-height:1.6}.eyebrow{color:#7b8799;font-size:11px;font-weight:750;letter-spacing:.12em}form{margin-top:24px;display:grid;gap:15px}label{display:grid;gap:7px;color:#4b5565;font-size:13px;font-weight:650}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #dbe2ec;border-radius:5px;color:#1f2937;background:#fff;outline:none}input:focus,select:focus,textarea:focus{border-color:#4d83e8;box-shadow:0 0 0 3px #4d83e81f}textarea{resize:vertical;line-height:1.6}.captcha-row{display:grid;grid-template-columns:1fr 116px;gap:10px;align-items:end}.captcha-image{height:42px;border:1px solid #dbe2ec;border-radius:5px;background:#f8fafc;display:grid;place-items:center;overflow:hidden}.captcha-image img{width:100%;height:100%;object-fit:cover}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:5px;color:#fff;background:#2563eb;padding:11px 16px;font-weight:700}.primary:hover{background:#1d4ed8}.primary.full{width:100%}.primary.compact{padding:8px 12px;font-size:12px}.text-button{display:block;margin:18px auto 0;border:0;background:transparent;color:#2563eb;font-size:13px}.error{color:#c2414b;background:#fff1f2;border-radius:5px;padding:9px 11px;font-size:13px;line-height:1.5}.success{color:#276749;background:#edf8f1;border-radius:5px;padding:9px 11px;font-size:13px;line-height:1.5}.app-shell{min-height:100vh;display:flex}.sidebar{width:226px;flex:0 0 226px;background:#182437;color:#c7d1df;padding:24px 14px 18px;display:flex;flex-direction:column}.sidebar .brand-mark{color:#fff;padding:0 12px 30px}nav,.sidebar-bottom{display:grid;gap:4px}nav button,.sidebar-bottom button{display:flex;align-items:center;gap:11px;border:0;border-radius:5px;color:#aebbd0;background:transparent;padding:11px 12px;text-align:left;font-size:13px}nav button:hover,nav button.active,.sidebar-bottom button:hover{color:#fff;background:#26364e}.sidebar-bottom{margin-top:auto;border-top:1px solid #2a3a50;padding-top:14px}.content{min-width:0;flex:1}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:82px;padding:18px 34px;background:#fff;border-bottom:1px solid #e5eaf1}.account-strip{display:flex;align-items:center;gap:12px;color:#4b5565;font-size:13px}.workspace{padding:28px 34px 48px;max-width:1320px}.stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:22px}.step{display:flex;align-items:center;gap:8px;color:#9aa5b5;border-bottom:2px solid #e1e7ef;padding:0 0 12px;font-size:13px}.step span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#e8edf4;font-size:12px;font-weight:700}.step.current{color:#2563eb;border-color:#2563eb}.step.current span,.step.done span{color:#fff;background:#2563eb}.settings-panel{margin:34px;max-width:860px;padding:28px;background:#fff;border:1px solid #e5eaf1;border-radius:7px}.settings-grid{max-width:760px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:18px}.panel{background:#fff;border:1px solid #e5eaf1;border-radius:7px}.main-panel{min-height:450px;padding:26px}.summary-panel{align-self:start;padding:22px}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:28px}.accent{color:#2563eb}.muted-icon{color:#9aa5b5}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:720px}.wide{grid-column:1 / -1}.action{margin-top:10px;justify-self:start}.review-state{max-width:680px;display:grid;gap:16px}.review-line{display:flex;justify-content:space-between;gap:20px;padding-bottom:13px;border-bottom:1px solid #edf0f5;font-size:14px}.review-line span{color:#748196}.price{color:#2563eb}.outline-editor{max-width:720px}.outline-row{display:grid;grid-template-columns:28px minmax(0,1fr) 32px;gap:9px;align-items:center;margin-bottom:10px}.outline-index{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;color:#2563eb;background:#eaf1ff;font-size:12px;font-weight:750}.icon-button{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:5px;color:#9aa5b5;background:transparent;font-size:20px}.icon-button:hover{color:#c2414b;background:#fff1f2}.outline-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:18px}.secondary{padding:10px 13px;border:1px solid #dbe2ec;border-radius:5px;color:#475569;background:#fff;font-size:13px;font-weight:650}.secondary:hover{border-color:#9bb7ea;color:#2563eb}.secondary:disabled{cursor:not-allowed;opacity:.5}.reference-list{display:grid;gap:8px;margin-top:12px}.reference-list-heading{color:#43536a;font-size:13px;font-weight:700}.reference-item{display:grid;gap:4px;padding:11px 12px;border:1px solid #e5eaf1;border-radius:5px}.reference-item strong{color:#27364b;font-size:13px;line-height:1.5}.reference-item span,.reference-item small{color:#748196;font-size:12px;line-height:1.5}.reference-search{display:grid;gap:9px;margin-top:22px;padding-top:18px;border-top:1px solid #edf0f5}.search-row{display:grid;grid-template-columns:130px minmax(0,1fr) auto;gap:8px}.search-result>div,.selected-references .reference-item>div{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.add-reference{flex:0 0 auto;padding:4px 8px;border:1px solid #c8d8f7;border-radius:4px;color:#2563eb;background:#f5f8ff;font-size:11px;font-weight:700}.add-reference:hover{background:#eaf1ff}.remove-reference{color:#b45359;border-color:#f1cbcf;background:#fff8f8}.selected-references{margin-top:18px}.result-section{margin-bottom:18px}.result-section h5{margin-bottom:6px}.result-section p{margin-bottom:8px}.draft-editor{display:grid;gap:16px;max-width:760px}.draft-section{display:grid;gap:10px;padding:15px;border:1px solid #e5eaf1;border-radius:5px;background:#fbfcfe}.draft-paragraph{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:8px;align-items:end}.draft-paragraph .icon-button{margin-bottom:5px}.add-paragraph{justify-self:start;padding:7px 10px;font-size:12px}.quality-badge{display:inline-block;margin-bottom:14px;padding:7px 10px;border-radius:4px;color:#275a44;background:#edf8f1;font-size:12px;font-weight:700}.review-actions,.review-card,.review-card-actions{display:flex;align-items:center;gap:10px}.review-actions{flex-wrap:wrap;margin-top:20px;padding-top:14px;border-top:1px solid #edf0f5}.review-card{justify-content:space-between;padding:14px 0;border-bottom:1px solid #edf0f5}.review-card>div:first-child{display:grid;gap:4px}.review-card-actions{flex-wrap:wrap;justify-content:flex-end}.review-detail{margin-top:24px;padding-top:22px;border-top:1px solid #dfe6ef}.review-preview{max-height:680px;overflow:auto;padding-right:8px}.version-history{display:grid;gap:8px;margin-top:20px;padding-top:14px;border-top:1px solid #edf0f5}.version-history h5{margin-bottom:2px}.version-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;color:#5c6b80;font-size:12px}.summary-item{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf0f5;font-size:13px}.summary-item span{color:#748196}.summary-item strong{color:#172033}.notice{display:flex;gap:9px;margin-top:20px;padding:12px;color:#58677b;background:#f4f7fb;border-radius:5px;font-size:12px;line-height:1.55}.result-state{color:#4b5565;line-height:1.75}.result-state h4{color:#172033;font-size:20px}.result-state h5{margin-bottom:7px;color:#172033}.loading{display:flex;gap:10px;align-items:center;color:#2563eb}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-panel{margin:34px;min-height:340px;display:grid;place-content:center;justify-items:center;gap:10px;background:#fff;border:1px solid #e5eaf1;border-radius:7px;color:#748196}.empty-panel h3{color:#172033}@media(max-width:850px){.sidebar{width:70px;flex-basis:70px;padding:20px 9px}.sidebar .brand-mark{padding:0 10px 25px;font-size:0}nav button,.sidebar-bottom button{justify-content:center;font-size:0}.topbar{padding:18px}.workspace{padding:20px 18px 35px}.workspace-grid{grid-template-columns:1fr}.summary-panel{order:-1}}@media(max-width:560px){.topbar{align-items:flex-start;gap:12px;flex-direction:column}.stepper{grid-template-columns:repeat(2,1fr);row-gap:14px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.account-strip{width:100%;justify-content:space-between}}
