*{box-sizing:border-box}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#172033;background:#f4f6fa;font-synthesis:none;text-rendering:optimizeLegibility}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}.research-app{min-height:100vh}.topbar{position:sticky;top:0;z-index:20;height:72px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;background:#fffffff0;border-bottom:1px solid #e5e9f0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#172033;color:#fff}.brand strong,.brand span{display:block}.brand span{margin-top:2px;color:#7b8496;font-size:12px}.template-badge{display:flex;align-items:center;gap:7px;color:#59657a;font-size:13px}.content{width:min(1060px,calc(100% - 36px));margin:auto;padding:50px 0 100px}.page-intro{margin-bottom:28px}.eyebrow{margin:0 0 8px;color:#5d72b8;font-size:12px;font-weight:800;letter-spacing:.12em}.page-intro h1{margin:0;font-size:clamp(32px,5vw,48px);line-height:1.1;letter-spacing:-.03em}.page-intro p:last-child{max-width:760px;margin:14px 0 0;color:#69758a;line-height:1.7}.notice{margin-bottom:20px;padding:14px 16px;border:1px solid #cddaf6;border-radius:12px;background:#f1f5ff;color:#31518f}.section-card{margin-bottom:20px;padding:28px;border:1px solid #e0e5ed;border-radius:18px;background:#fff;box-shadow:0 8px 35px #1720330b}.section-header{margin-bottom:24px}.section-header h2{margin:0;font-size:19px}.section-header p{margin:6px 0 0;color:#7b8496;font-size:13px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid label,.author-card label,.reference-card label,.custom-section-card label,.textarea-field{display:flex;flex-direction:column;gap:7px;color:#39455b;font-size:13px;font-weight:700}.span-2{grid-column:1/-1}input,textarea,select{width:100%;border:1px solid #d9dfe8;border-radius:10px;outline:none;background:#fff;color:#172033;transition:.15s ease}input,select{height:44px;padding:0 13px}textarea{padding:12px 13px;resize:vertical;line-height:1.6}input:focus,textarea:focus,select:focus{border-color:#6d83cc;box-shadow:0 0 0 3px #6d83cc1f}.textarea-field span b{color:#bd4242}.content-stack{display:grid;gap:24px}.author-list,.reference-list{display:grid;gap:14px;margin-bottom:16px}.author-card,.reference-card,.custom-section-card{padding:18px;border:1px solid #e0e5ed;border-radius:13px;background:#fafbfd}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.icon-button{width:34px;height:34px;display:grid;place-items:center;padding:0;border:1px solid #dce1e9;border-radius:9px;background:#fff;color:#5c687b}.icon-button.danger{color:#b44b4b}.secondary-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border-radius:10px;font-weight:750}.secondary-button{border:1px solid #d6dce6;background:#fff;color:#354158}.primary-button{border:0;background:#172033;color:#fff;box-shadow:0 8px 18px #17203329}.keyword-input{display:flex;gap:8px}.keyword-input input{flex:1}.keyword-input button{width:44px;border:1px solid #d9dfe8;border-radius:10px;background:#fff}.keyword-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.keyword-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#edf2ff;color:#40568d;font-size:12px;font-weight:700}.keyword-chip button{display:grid;place-items:center;padding:0;border:0;background:transparent;color:inherit}.helper-text{display:block;margin-top:7px;color:#8992a2;font-size:12px;font-weight:400}.helper-panel,.empty-state{padding:15px;border-radius:10px;background:#f6f8fb;color:#717c90;line-height:1.6;margin-bottom:16px}.upload-box{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1.5px dashed #c9d0dc;border-radius:14px;background:#fafbfd;color:#68748a;text-align:center}.upload-box strong{color:#354158}.upload-box span{font-size:12px}.upload-box input{display:none}.figure-card{display:grid;grid-template-columns:100px 1fr auto;align-items:center;gap:14px;padding:12px;margin-top:14px;border:1px solid #e0e5ed;border-radius:12px}.figure-card img{width:100px;height:76px;object-fit:cover;border-radius:8px;background:#edf0f4}.figure-info{display:flex;flex-direction:column;gap:5px}.figure-info span{color:#8a94a5;font-size:12px}.custom-section-card{margin-bottom:14px}.custom-section-card .textarea-field{margin-top:15px}.generate-bar{position:sticky;bottom:18px;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px;padding:18px 20px;border:1px solid #dce2eb;border-radius:16px;background:#fffffff5;box-shadow:0 15px 45px #17203321;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.generate-bar strong,.generate-bar span{display:block}.generate-bar span{margin-top:4px;color:#7b8496;font-size:12px}@media(max-width:720px){.topbar{padding:0 18px}.template-badge{display:none}.content{width:calc(100% - 24px);padding-top:30px}.section-card{padding:20px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.generate-bar{align-items:stretch;flex-direction:column}.primary-button{width:100%}.figure-card{grid-template-columns:70px 1fr}.figure-card img{width:70px;height:60px}.figure-card .icon-button{grid-column:2;justify-self:end}}.error-notice{margin-bottom:20px;padding:14px 16px;border:1px solid #f0caca;border-radius:12px;background:#fff3f3;color:#a53c3c;line-height:1.5}.primary-button:disabled{opacity:.65;cursor:not-allowed}.spin{animation:spin 1s linear infinite}.generated-card{margin-top:30px;padding:28px;border:1px solid #dfe4ec;border-radius:18px;background:#fff;box-shadow:0 8px 35px #1720330b}.generated-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.generated-header h2{margin:0;font-size:22px}.generated-header .eyebrow{margin-bottom:6px}.status-pill{padding:6px 10px;border-radius:999px;background:#eef4ea;color:#477044;font-size:12px;font-weight:800}.paper-preview{max-width:850px;color:#263248;line-height:1.75}.paper-preview h3{margin:25px 0 8px;font-size:15px;letter-spacing:.02em}.paper-preview p{white-space:pre-wrap;margin:0;color:#4b576b}.primary-button:disabled{opacity:.65;cursor:wait;transform:none}.preview-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.notice.success{border-color:#b7e4c7;background:#f1fff6}.primary-button:disabled,.secondary-button:disabled{opacity:.6;cursor:not-allowed}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.paper-preview-layout{display:grid;grid-template-columns:250px minmax(0,850px);gap:24px;align-items:start;justify-content:center}.review-panel{position:sticky;top:20px;border:1px solid #e4e7ec;background:#fff;border-radius:14px;padding:18px;box-shadow:0 6px 24px #1018280f}.review-panel-title{font-weight:700;display:flex;gap:8px;align-items:center;margin-bottom:16px}.review-stat{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eef0f3;font-size:14px}.review-panel p{font-size:12px;line-height:1.6;color:#667085;margin:16px 0 0}.paper-preview{background:#fff;border:1px solid #e2e5e9;border-radius:8px;box-shadow:0 8px 30px #10182812;padding:58px 64px;font-family:Georgia,Times New Roman,serif;color:#202124;line-height:1.65}.paper-kicker{text-align:center;font-size:11px;letter-spacing:1.4px;color:#667085;margin-bottom:18px;font-family:Arial,sans-serif}.paper-preview>h2{text-align:center;font-size:24px;line-height:1.25;margin:0 auto 18px;font-weight:700}.paper-authors{text-align:center;font-size:14px;margin-bottom:34px}.paper-authors sup{font-size:9px;margin-left:1px}.preview-section{margin-top:28px}.preview-section h3{font-family:Arial,sans-serif;font-size:14px;letter-spacing:.3px;margin:0 0 10px;text-transform:uppercase}.preview-section p{font-size:14px;margin:0 0 12px;text-align:justify}.preview-keywords{display:flex;gap:10px;flex-direction:column;font-size:13px;margin:12px 0 28px}.preview-keywords strong{font-family:Arial,sans-serif;font-size:13px}.preview-keywords span{font-style:italic}.preview-figure{margin:20px auto;text-align:center}.preview-figure img{max-width:100%;max-height:430px;object-fit:contain;border:1px solid #eee}.preview-figure figcaption{font-family:Arial,sans-serif;font-size:12px;margin-top:7px;color:#555}.reference-preview{font-size:13px;padding-left:24px}.reference-preview li{margin-bottom:8px}.muted{color:#98a2b3!important;font-style:italic}@media(max-width:900px){.paper-preview-layout{grid-template-columns:1fr}.review-panel{position:static}.paper-preview{padding:36px 28px}}.object-card{border:1px solid #e4e7ec;border-radius:10px;padding:14px;margin-bottom:12px;background:#fff}.object-card input,.object-card textarea{width:100%;box-sizing:border-box;margin:6px 0;padding:9px;border:1px solid #d0d5dd;border-radius:7px}.object-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.structured-panel{margin-top:24px;padding:18px;border:1px solid #dfe4ea;border-radius:12px;background:#f8fafc}.structured-section{padding:12px 0;border-top:1px solid #e4e7ec}.block-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.block-chip{display:flex;align-items:center;gap:6px;border:1px solid #d0d5dd;background:#fff;border-radius:8px;padding:7px 9px;font:11px Arial,sans-serif}.block-chip code{color:#667085}.block-chip em{font-style:normal;color:#475467;max-width:300px}.figure-info textarea{width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:7px;padding:8px;margin-top:6px}.preview-table{margin:20px 0}.preview-table figcaption{font-family:Arial,sans-serif;font-size:12px;font-weight:700;margin-bottom:7px}.preview-table-scroll{overflow-x:auto}.preview-table table{width:100%;border-collapse:collapse;font-family:Arial,sans-serif;font-size:12px}.preview-table th,.preview-table td{border:1px solid #98a2b3;padding:8px 10px;text-align:left;vertical-align:middle}.preview-table th{background:#d9eaf7;font-weight:700}.table-builder-create-actions{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:14px}.excel-import-control{display:grid;gap:5px}.excel-import-button{position:relative;overflow:hidden}.excel-import-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.excel-import-button.loading{cursor:wait}.excel-import-feedback,.excel-import-error{max-width:520px;font-size:11px;font-weight:500}.excel-import-feedback{color:#477044}.excel-import-error{color:#a53c3c}.table-object-card{padding:18px}.table-caption-input{margin:0!important}.table-builder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px 0 10px}.table-builder-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.table-builder-toolbar span{color:#7b8496;font-size:12px}.table-editor-scroll{overflow:auto;max-width:100%;border:1px solid #d8dee8;border-radius:10px;background:#fff}.table-editor-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.table-editor-grid th,.table-editor-grid td{min-width:170px;padding:6px;border-right:1px solid #e1e6ed;border-bottom:1px solid #e1e6ed;background:#fff}.table-editor-grid thead th{position:sticky;top:0;z-index:2;background:#edf3f8}.table-editor-grid tr:last-child th,.table-editor-grid tr:last-child td{border-bottom:0}.table-editor-grid th:last-child,.table-editor-grid td:last-child{border-right:0}.table-editor-grid input{height:38px;margin:0!important;padding:0 10px!important;border-radius:7px!important}.table-column-header{display:flex;align-items:center;gap:5px}.table-column-header input{font-weight:700}.table-column-header button,.table-row-control button{flex:0 0 29px;width:29px;height:29px;display:grid;place-items:center;padding:0;border:1px solid #d5dce6;border-radius:7px;background:#fff;color:#a64747}.table-column-header button:disabled{opacity:.35;cursor:not-allowed}.table-editor-grid .table-row-control{position:sticky;left:0;z-index:1;min-width:72px;width:72px;background:#f6f8fb;text-align:center}.table-editor-grid thead .table-row-control{z-index:3;background:#e6edf5}.table-row-control span{display:block;margin-bottom:4px;color:#667085;font-size:11px}.table-row-control button{margin:auto}.table-builder-bottom-actions{display:flex;justify-content:flex-start;margin-top:10px}@media(max-width:720px){.table-builder-create-actions{align-items:stretch;flex-direction:column}.table-builder-create-actions>.secondary-button,.excel-import-button{width:100%}.table-builder-toolbar{align-items:flex-start;flex-direction:column}.table-builder-toolbar>div{width:100%}.table-builder-toolbar .secondary-button{flex:1}.table-object-card{padding:14px}}.math-input-field{gap:8px}.math-input-field>label{font-weight:700}.math-tools{overflow:hidden;border:1px solid #dfe5ec;border-radius:12px;background:#f8fafc}.math-toolbar{display:flex;align-items:center;gap:8px;padding:9px 10px;border-bottom:1px solid #e5e9ef;background:#fff}.math-toolbar small{margin-left:auto;color:#7b8496;font-weight:400}.math-tool-button{min-height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 11px;border:1px solid #d5dce6;border-radius:8px;background:#fff;color:#354158;font-size:12px;font-weight:750}.math-tool-button:hover,.math-tool-button.active{border-color:#7188c9;background:#eef3ff;color:#324d8f}.symbol-palette{display:flex;flex-wrap:wrap;gap:6px;padding:11px}.symbol-palette button{width:34px;height:34px;border:1px solid #d6dde7;border-radius:8px;background:#fff;color:#24324a;font-family:"Cambria Math",Times New Roman,serif;font-size:18px}.symbol-palette button:hover{border-color:#6d83cc;background:#edf2ff}.equation-list{display:grid;gap:8px;padding:10px}.equation-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid #dfe4eb;border-radius:9px;background:#fff}.equation-item>div:first-child{min-width:0;display:grid;gap:3px}.equation-preview{overflow-wrap:anywhere;color:#18243a;font-family:"Cambria Math",Times New Roman,serif;font-size:17px;font-weight:500}.equation-item small{color:#7c8799;font-weight:400}.equation-actions{display:flex;gap:6px}.equation-actions button{width:31px;height:31px;display:grid;place-items:center;border:1px solid #d9dfe8;border-radius:7px;background:#fff;color:#57647a}.equation-actions button:last-child{color:#ad4444}.equation-composer{display:grid;gap:12px;padding:15px;border-top:1px solid #dfe5ec;background:#f7f9fc}.equation-composer-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.equation-composer-head strong{color:#26334a}.equation-composer-head span{color:#7b8496;font-size:12px;font-weight:400}.equation-template-row{display:flex;flex-wrap:wrap;gap:6px}.equation-template-row button{padding:6px 9px;border:1px solid #d2dbe8;border-radius:999px;background:#fff;color:#496080;font-size:11px;font-weight:700}.equation-composer label{display:grid;gap:6px;color:#445169;font-size:12px}.equation-live-preview{min-height:56px;display:flex;align-items:center;gap:18px;padding:10px 13px;border:1px dashed #bdc9db;border-radius:9px;background:#fff}.equation-live-preview span{color:#8791a2;font-size:11px;text-transform:uppercase;letter-spacing:.06em}.equation-live-preview strong{overflow-wrap:anywhere;color:#19263d;font-family:"Cambria Math",Times New Roman,serif;font-size:20px;font-weight:500}.equation-meta-grid{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px}.equation-composer-actions{display:flex;justify-content:flex-end;gap:8px}.equation-composer-actions .primary-button:disabled{cursor:not-allowed}.preview-equation{margin:20px 0;text-align:center}.preview-equation>div{display:flex;justify-content:center;gap:24px;font-family:"Cambria Math",Times New Roman,serif;font-size:19px}.preview-equation figcaption{margin-top:6px;color:#667085;font:11px Arial,sans-serif}@media(max-width:720px){.math-toolbar{align-items:flex-start;flex-wrap:wrap}.math-toolbar small{width:100%;margin-left:0}.equation-meta-grid{grid-template-columns:1fr}.equation-composer-head{align-items:flex-start;flex-direction:column}.equation-composer-actions{align-items:stretch;flex-direction:column-reverse}.equation-composer-actions .secondary-button,.equation-composer-actions .primary-button{width:100%}}
