:root{
  --bg:#f5f7fb;--panel:#fff;--text:#172033;--muted:#738096;--line:#e5eaf2;
  --primary:#1769ff;--primary-2:#0d53d6;--soft:#edf4ff;--success:#1f9d61;--warn:#d88b14;--danger:#d84a4a;
  --shadow:0 12px 34px rgba(28,50,88,.08);--radius:18px;--radius-sm:12px;
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg)}
button,input,textarea,select{font:inherit}button{cursor:pointer}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.brand{display:flex;gap:12px;align-items:center;cursor:pointer}.brand-mark{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,#1769ff,#6b9cff);color:#fff;display:grid;place-items:center;font-weight:800}.brand strong{display:block;font-size:17px}.brand span{display:block;font-size:12px;color:var(--muted);margin-top:2px}.top-actions{display:flex;gap:10px}.shell{max-width:1480px;margin:0 auto;padding:28px}.btn{border:1px solid transparent;border-radius:11px;padding:10px 16px;font-weight:700;transition:.18s;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-2)}.btn.ghost{background:#fff;border-color:var(--line);color:var(--text)}.btn.soft{background:var(--soft);color:var(--primary)}.btn.danger{background:#fff0f0;color:var(--danger)}.btn.small{padding:7px 11px;font-size:13px}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}
.hero{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px}.hero h1{font-size:30px;margin:0 0 8px}.hero p{margin:0;color:var(--muted)}.metric-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:24px}.metric{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.metric b{font-size:26px;display:block;margin-bottom:5px}.metric span{font-size:13px;color:var(--muted)}
.filter-bar{display:flex;align-items:center;gap:12px;margin:-4px 0 18px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:14px}.filter-bar label{font-size:13px;font-weight:700}.filter-bar select{min-width:220px;border:1px solid #d9e0eb;border-radius:10px;padding:9px 34px 9px 11px;background:#fff}.filter-bar span{margin-left:auto;color:var(--muted);font-size:13px}
.topic-filter-panel,.topic-list-panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.consultant-batch-panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:18px;margin:0 0 14px}.consultant-batch-head h2{font-size:17px;margin:0 0 4px}.consultant-batch-head p{font-size:12px;color:var(--muted);margin:0 0 12px}.consultant-batch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;max-height:340px;overflow:auto;padding-right:4px}.consultant-batch-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px}.consultant-batch-card>div:first-child{min-width:0;flex:1}.consultant-batch-actions{display:flex;align-items:center;gap:6px;flex:none}.consultant-batch-card strong,.consultant-batch-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.consultant-batch-card small{margin-top:4px;color:var(--muted);font-size:12px}.topic-filter-panel{padding:15px;margin-bottom:14px}.topic-filters{display:grid;grid-template-columns:2fr repeat(3,minmax(150px,1fr)) auto;gap:10px;align-items:end}.filter-field span{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:6px}.filter-field input,.filter-field select{width:100%;border:1px solid #d9e0eb;border-radius:10px;padding:9px 11px;background:#fff}.filter-actions{display:flex;gap:7px}.filter-summary{margin-top:10px;color:var(--muted);font-size:12px}.topic-table-wrap{overflow:auto}.topic-table{width:100%;min-width:1160px;border-collapse:collapse}.topic-table th{padding:11px 12px;background:#f7f9fc;color:var(--muted);font-size:12px;text-align:left;white-space:nowrap;border-bottom:1px solid var(--line)}.topic-table td{padding:13px 12px;border-bottom:1px solid #edf0f5;font-size:13px;vertical-align:middle}.topic-table tbody tr:hover{background:#f8faff}.topic-table tbody tr:last-child td{border-bottom:0}.topic-table td strong,.topic-table td small{display:block}.topic-table td small{margin-top:4px;color:var(--muted);font-size:11px}.topic-title-cell{min-width:230px;max-width:320px}.topic-title-cell strong,.topic-title-cell small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goal-cell{max-width:200px}.list-progress{min-width:92px}.list-progress span{font-size:12px}.list-progress>i{display:block;width:86px;height:5px;background:#edf0f5;border-radius:99px;overflow:hidden;margin-top:6px}.list-progress em{display:block;height:100%;background:var(--primary)}.push-state{display:inline-flex!important;width:max-content;border-radius:999px;padding:4px 8px;font-size:11px!important;font-weight:700}.push-state.pushed{background:#e9f8f0;color:var(--success)}.push-state.unpushed{background:#f1f3f6;color:#687489}.updated-cell{white-space:nowrap;color:var(--muted)}.row-actions{display:flex;gap:6px;white-space:nowrap}.empty.compact{padding:50px 24px}
.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.topic-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);transition:.18s}.topic-card:hover{transform:translateY(-2px);border-color:#c8d8f7}.topic-head{display:flex;justify-content:space-between;gap:14px}.topic-card h3{font-size:18px;margin:0 0 9px;line-height:1.4}.meta{font-size:13px;color:var(--muted);display:flex;gap:12px;flex-wrap:wrap}.status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;background:#eef2f7;color:#526176}.status.completed{background:#e9f8f0;color:var(--success)}.status.failed,.status.images_attention{background:#fff0f0;color:var(--danger)}.status.images_generating,.status.images_queued{background:#fff7e8;color:var(--warn)}.progress{height:7px;background:#edf0f5;border-radius:10px;overflow:hidden;margin:18px 0 8px}.progress>i{display:block;height:100%;background:linear-gradient(90deg,#1769ff,#6e9cff)}.card-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}.card-actions,.panel-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.empty{border:1px dashed #cdd6e4;background:#fff;border-radius:20px;text-align:center;padding:72px 24px}.empty .icon{font-size:48px}.empty h3{font-size:21px;margin:14px 0 6px}.empty p{color:var(--muted);margin:0 0 20px}
.workspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px}.sidebar{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;height:fit-content;position:sticky;top:96px}.side-title{padding:10px 10px 16px;border-bottom:1px solid var(--line);margin-bottom:8px}.side-title strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-title span{font-size:12px;color:var(--muted)}.step{width:100%;border:0;background:transparent;border-radius:11px;text-align:left;padding:12px;margin:3px 0;color:#58657a;font-weight:700}.step.active{background:var(--soft);color:var(--primary)}.step.done:after{content:'✓';float:right;color:var(--success)}.workspace-main{min-width:0}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;margin-bottom:18px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.panel h2{font-size:22px;margin:0 0 6px}.panel h3{margin:0}.panel p.help{margin:0;color:var(--muted);font-size:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:block}.field.full{grid-column:1/-1}.field>span{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.field input,.field textarea,.field select{width:100%;border:1px solid #d9e0eb;border-radius:11px;padding:11px 12px;background:#fff;color:var(--text);outline:none}.field textarea{min-height:120px;resize:vertical;line-height:1.65}.field input:focus,.field textarea:focus,.field select:focus{border-color:#8cb3ff;box-shadow:0 0 0 3px #1769ff14}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.hint{background:#f7f9fc;border:1px solid var(--line);border-radius:12px;padding:13px 14px;color:#59667a;font-size:13px;line-height:1.65}
.field-help{display:block;margin-top:7px;color:var(--muted);font-size:12px;line-height:1.5}.source-files{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.source-files-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.source-files-head h3{font-size:17px;margin:0 0 5px}.upload-row{display:flex;align-items:center;gap:10px;padding:12px;background:#f7f9fc;border:1px dashed #cbd6e7;border-radius:13px;margin-bottom:12px}.upload-row small{color:var(--muted);margin-left:auto}.file-picker{display:flex;align-items:center;gap:10px;min-width:0}.file-picker>span{font-size:13px;font-weight:700;white-space:nowrap}.file-picker input{max-width:330px}.attachment-list{display:grid;gap:8px}.attachment-row{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:12px;padding:10px 12px}.file-type{width:46px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:var(--soft);color:var(--primary);font-size:10px;font-weight:800}.attachment-info{min-width:0;flex:1}.attachment-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.attachment-info span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.attachment-actions{display:flex;gap:7px}.attachment-actions a{text-decoration:none}.attachment-empty{text-align:center;color:var(--muted);padding:18px;border:1px dashed var(--line);border-radius:12px;font-size:13px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #1769ff35;outline-offset:2px}
.analysis-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.analysis-card{padding:16px;border:1px solid var(--line);border-radius:14px;background:#fafbfe}.analysis-card small{color:var(--muted)}.analysis-card b{display:block;font-size:16px;margin-top:6px}.tag-list{display:flex;flex-wrap:wrap;gap:7px}.tag{padding:5px 9px;border-radius:999px;background:#eef3fb;font-size:12px}.outline-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.outline-card{border:1px solid var(--line);border-radius:16px;padding:18px;background:#fff}.outline-card.selected{border:2px solid var(--primary);background:#f7faff}.outline-card h3{display:flex;align-items:center;gap:8px}.outline-card .badge{width:28px;height:28px;border-radius:9px;background:var(--soft);color:var(--primary);display:grid;place-items:center}.outline-pages{margin:14px 0;padding:0;list-style:none}.outline-pages li{font-size:13px;color:#59667a;border-top:1px dashed var(--line);padding:8px 0}.outline-pages li:first-child{border-top:0}
.editor-layout{display:grid;grid-template-columns:270px minmax(360px,1fr) 370px;gap:16px;align-items:start}.page-list{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;max-height:calc(100vh - 150px);overflow:auto;position:sticky;top:96px}.page-item{display:flex;gap:10px;padding:10px;border-radius:12px;cursor:pointer;border:1px solid transparent;margin-bottom:7px}.page-item:hover{background:#f7f9fd}.page-item.active{background:var(--soft);border-color:#bcd2ff}.thumb{width:52px;height:68px;border-radius:8px;background:#edf1f7;overflow:hidden;flex:0 0 auto;display:grid;place-items:center;color:#8792a5;font-size:12px}.thumb img{width:100%;height:100%;object-fit:cover}.page-item b{display:block;font-size:13px;margin-bottom:5px}.page-item span{display:block;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.preview-panel{background:#202735;border-radius:18px;padding:22px;min-height:660px;display:flex;flex-direction:column}.preview-stage{flex:1;display:grid;place-items:center}.image-frame{width:min(100%,480px);aspect-ratio:3/4;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 20px 60px #0006;display:grid;place-items:center}.image-frame img{width:100%;height:100%;object-fit:contain}.image-empty{text-align:center;color:#8792a5;padding:30px}.image-empty strong{display:block;color:#445065;font-size:18px;margin-bottom:8px}.versions{display:flex;gap:9px;overflow:auto;padding-top:14px}.version{width:62px;height:82px;border:2px solid transparent;border-radius:9px;overflow:hidden;flex:0 0 auto;background:#fff;cursor:pointer;position:relative}.version.active{border-color:#4d90ff}.version img{width:100%;height:100%;object-fit:cover}.version em{position:absolute;bottom:3px;right:3px;background:#0009;color:#fff;font-size:10px;padding:2px 4px;border-radius:4px;font-style:normal}.edit-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;position:sticky;top:96px;max-height:calc(100vh - 120px);overflow:auto}.tabs{display:flex;gap:5px;background:#f1f4f8;border-radius:10px;padding:4px;margin-bottom:15px}.tab{flex:1;border:0;border-radius:8px;background:transparent;padding:8px;font-size:13px;font-weight:700}.tab.active{background:#fff;box-shadow:0 2px 8px #1a355d12;color:var(--primary)}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.quick{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px;font-size:12px;text-align:left}.quick:hover{border-color:#9cbcff;color:var(--primary)}.prompt-box{min-height:260px!important;font-size:12px!important;line-height:1.55!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace!important}
.ai-table-card{border:1px solid #bcd2ff;background:linear-gradient(145deg,#f5f9ff,#eef5ff);border-radius:14px;padding:16px;margin-bottom:16px}.ai-table-card h3{margin:10px 0 7px;font-size:17px}.ai-table-card p{margin:0;color:#59667a;font-size:13px;line-height:1.7}.ai-table-badge{display:inline-flex;border-radius:999px;background:#dff5e9;color:#237a4d;padding:5px 9px;font-size:11px;font-weight:800}.ai-table-form{border:1px dashed #cbd6e7;border-radius:13px;padding:14px}.ai-table-form .form-actions{justify-content:flex-start;margin-top:14px}.ai-table-note{margin-top:14px}
.jobs-table{width:100%;border-collapse:collapse}.jobs-table th,.jobs-table td{text-align:left;border-bottom:1px solid var(--line);padding:12px 10px;font-size:13px}.jobs-table th{color:var(--muted);font-size:12px}.error-text{color:var(--danger);max-width:360px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.settings-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.brand-list{display:grid;gap:10px}.brand-card{border:1px solid var(--line);border-radius:13px;padding:14px;display:flex;justify-content:space-between;gap:12px}.brand-card small{color:var(--muted)}
.check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}.check-row{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;padding:11px 12px;font-size:13px}.check-row>span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-weight:800}.check-row.pass{background:#f3fbf7;color:#237a4d}.check-row.pass>span{background:#dff5e9}.check-row.fail{background:#fff7f7;color:#a53b3b}.check-row.fail>span{background:#ffe5e5}
.modal-backdrop{position:fixed;inset:0;background:#0e1728aa;display:grid;place-items:center;z-index:100;padding:20px}.modal{width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;padding:24px;box-shadow:0 30px 90px #0005}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.modal-head h2{margin:0}.modal-head p{margin:5px 0 0;color:var(--muted);font-size:13px}.brand-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.batch-choice-list{max-height:280px;overflow-y:auto;overscroll-behavior:contain;padding:2px 8px 2px 2px;align-content:start}.batch-consultant-list{max-height:210px}.batch-choice-list .brand-choice input[type=checkbox]{width:18px;min-width:18px;max-width:18px;height:18px;padding:0;margin:2px 0 0;flex:0 0 18px;accent-color:var(--primary)}.batch-choice-list .brand-choice>span{display:block;flex:1;min-width:0;width:auto;text-align:left}.brand-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:12px;padding:13px;cursor:pointer}.brand-choice:has(input:checked){border-color:#8cb3ff;background:var(--soft)}.brand-choice input{margin-top:3px}.brand-choice strong,.brand-choice small{display:block}.brand-choice small{color:var(--muted);margin-top:4px}.icon-btn{border:0;background:#f2f4f8;width:34px;height:34px;border-radius:10px;font-size:19px}.toast{position:fixed;right:24px;bottom:24px;background:#192235;color:#fff;padding:13px 17px;border-radius:12px;box-shadow:0 14px 40px #0003;z-index:200}.toast.error{background:#a62929}.loading-panel{display:grid;place-items:center;min-height:60vh;color:var(--muted)}.spinner{width:30px;height:30px;border:3px solid #dce5f4;border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

.btn.pushed{background:#e9f8f0;border-color:#bfe8d2;color:var(--success)}
.batch-review-body{overflow:auto;min-height:0;padding-right:4px}.batch-review-loading{display:flex;justify-content:center;align-items:center;gap:12px;min-height:220px;color:var(--muted)}.batch-review-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:8px 0 12px}.batch-review-section-head h3{margin:0 0 4px;font-size:16px}.batch-review-section-head p{margin:0;color:var(--muted);font-size:12px}.batch-review-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.batch-review-children{display:grid;gap:12px}.batch-review-child{border:1px solid var(--line);border-radius:14px;padding:14px;background:#fff}.batch-review-child>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.batch-review-child>header strong,.batch-review-child>header small{display:block}.batch-review-child>header small{margin-top:4px;color:var(--muted);font-size:12px}.batch-review-title{margin:10px 0 4px;font-weight:800}.batch-review-pages{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px;margin-top:10px}.batch-review-page{border:1px solid #edf0f5;border-radius:10px;padding:10px;min-width:0}.batch-review-page b,.batch-review-page span{display:block}.batch-review-page b{font-size:12px}.batch-review-page span{margin-top:5px;color:#5d687b;font-size:12px;line-height:1.5;max-height:56px;overflow:auto;white-space:pre-wrap}.batch-review-confirm{display:flex;align-items:center;gap:9px;margin-top:12px;padding:10px 12px;border-radius:10px;background:#f3f7ff;color:#254f91;font-size:13px;font-weight:700}.batch-review-confirm input,.batch-review-image input{width:18px;height:18px;accent-color:var(--primary)}.batch-review-thumbs{display:flex;gap:8px;overflow:auto;margin-top:10px}.batch-review-image{position:relative;display:block;flex:0 0 116px;border:2px solid transparent;border-radius:9px;padding:4px;background:#f7f9fc;cursor:pointer}.batch-review-image.is-selected{border-color:#43a475}.batch-review-image img{display:block;width:100%;height:132px;object-fit:cover;border-radius:6px}.batch-review-image span{display:block;font-size:10px;color:var(--muted);padding:4px 2px 1px}.batch-review-image input{position:absolute;right:7px;top:7px;width:20px;height:20px}.batch-review-empty{padding:18px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:var(--muted);font-size:13px}
.batch-copy-pending{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;margin:0 0 14px;border:1px solid #f0d59a;border-radius:12px;background:#fff9e9}.batch-copy-pending strong{font-size:14px}.batch-copy-pending p{margin:5px 0 0;color:#75613a;font-size:12px;line-height:1.5}
.batch-revariant-panel{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;margin:0 0 14px;border:1px solid #c8d9f5;border-radius:12px;background:#f4f8ff}.batch-revariant-panel strong{font-size:14px;color:#264e88}.batch-revariant-panel p{margin:5px 0 0;color:#5c6f8e;font-size:12px;line-height:1.5}
.consultant-parent-row td{padding:8px 12px!important;background:#f2f6fd;border-bottom:0!important}.consultant-parent-content{display:flex;align-items:center;gap:11px;min-height:42px}.consultant-parent-mark{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:7px;background:#dfeaff;color:#275aa5;font-weight:800}.consultant-parent-label{min-width:0;flex:1}.consultant-parent-label strong,.consultant-parent-label small{display:block}.consultant-parent-label strong{font-size:13px;color:#1d3459}.consultant-parent-label small{margin-top:3px;color:var(--muted);font-size:11px}.consultant-child-row td{background:#fcfdff}.consultant-child-row .child-topic-title{padding-left:30px!important;border-left:3px solid #d8e5fb}.consultant-child-row .child-topic-title strong{color:#315b94}.consultant-child-row .child-topic-title small{padding-left:15px}
[hidden]{display:none!important}
.login-shell{min-height:calc(100vh - 128px);display:grid;place-items:center;padding:32px 0}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:34px;box-shadow:0 24px 70px rgba(28,50,88,.12)}.login-logo{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,#1769ff,#6b9cff);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:800;margin-bottom:22px}.login-card h1{margin:0 0 8px;font-size:28px}.login-card>p{margin:0 0 24px;color:var(--muted)}.login-submit{width:100%;margin-top:18px;padding:12px 16px}
.user-badge{display:inline-flex;align-items:center;white-space:nowrap;padding:7px 11px;border-radius:999px;background:#eef4ff;color:#2458a6;font-size:12px;font-weight:700}.user-panel{margin-top:18px}.user-list{display:grid;gap:10px;margin-top:14px}.user-card{border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px}.user-title{display:flex;align-items:center;gap:8px;margin-bottom:5px}.user-card small{color:var(--muted)}.user-actions{display:flex;gap:8px;flex-shrink:0}.role-badge{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#edf2f8;color:#526275}.role-badge.admin{background:#fff0d8;color:#9a5d00}.role-badge.disabled{background:#f8e9ea;color:#a33b45}
@media(max-width:1180px){.topic-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-actions{grid-column:1/-1}.topic-grid{grid-template-columns:repeat(2,1fr)}.editor-layout{grid-template-columns:220px 1fr}.edit-panel{grid-column:1/-1;position:static;max-height:none}.settings-grid{grid-template-columns:1fr}}
@media(max-width:760px){.topic-filters{grid-template-columns:1fr}.filter-actions{grid-column:auto}.metric-row{grid-template-columns:repeat(2,1fr)}.brand-choice-list{grid-template-columns:1fr}.topbar{padding:0 14px}.brand span,.top-actions .ghost,.user-badge{display:none}.hero>.btn[data-action="new-topic"]{display:none}.shell{padding:16px}.topic-grid,.analysis-grid,.outline-grid,.form-grid{grid-template-columns:1fr}.filter-bar{align-items:stretch;flex-direction:column}.filter-bar select{width:100%;min-width:0}.filter-bar span{margin-left:0}.upload-row{align-items:stretch;flex-direction:column}.upload-row small{margin-left:0}.file-picker{align-items:stretch;flex-direction:column}.file-picker input{max-width:100%}.attachment-row{align-items:flex-start;flex-wrap:wrap}.attachment-info{min-width:calc(100% - 60px)}.attachment-actions{width:100%;justify-content:flex-end}.workspace{grid-template-columns:1fr}.sidebar{position:static;display:flex;overflow:auto}.side-title{display:none}.step{white-space:nowrap;width:auto}.editor-layout{grid-template-columns:1fr}.page-list,.edit-panel{position:static;max-height:none}.page-list{display:flex;overflow:auto}.page-item{min-width:190px}.preview-panel{min-height:500px}.hero{align-items:flex-start;gap:16px}.hero h1{font-size:24px}.check-list{grid-template-columns:1fr}.login-shell{min-height:calc(100vh - 104px);padding:16px 0}.login-card{padding:26px 22px;border-radius:20px}.user-card{align-items:flex-start;flex-direction:column}.user-actions{width:100%;justify-content:flex-end}}


.hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.modal-wide{width:min(1180px,calc(100vw - 36px));max-width:1180px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden}
.import-loading{min-height:280px;display:grid;place-items:center;text-align:center;align-content:center;gap:8px}.import-loading h3,.import-loading p{margin:0}.import-loading p{color:var(--muted)}
.import-result{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #b8e2c8;background:#effaf3;color:#246a41;border-radius:12px;padding:11px 14px;margin-bottom:14px}.import-result.has-error{border-color:#f0c1c1;background:#fff4f4;color:#983939}
.import-filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:12px}.import-filter-grid .filter-actions{align-self:end}
.import-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7f9fc;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:10px}.import-selection-bar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.import-selection-bar span{font-size:12px;color:var(--muted)}
.feishu-import-table-wrap{min-height:280px;max-height:55vh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}
.feishu-import-table{width:100%;border-collapse:separate;border-spacing:0;min-width:980px}.feishu-import-table th,.feishu-import-table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.feishu-import-table th{position:sticky;top:0;z-index:2;background:#f6f8fc;font-size:12px;color:#566074}.feishu-import-table tbody tr:last-child td{border-bottom:0}.feishu-import-row:hover{background:#f8fbff}.feishu-import-row.not-selectable{background:#fbfbfc;color:#7d8797}.select-cell{width:36px}.select-cell input{width:17px;height:17px;accent-color:var(--primary)}
.import-topic-cell{min-width:320px;max-width:480px}.import-topic-cell strong,.import-topic-cell small,.feishu-import-table td>strong,.feishu-import-table td>small{display:block}.import-topic-cell small,.feishu-import-table td>small{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:480px}
.import-status{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}.import-status.available{background:#e6f8ee;color:#237a4d}.import-status.imported{background:#eef1f5;color:#5c6675}.import-status.updated{background:#fff3d8;color:#93610a}.import-status.brand_unmatched{background:#fff0e1;color:#a85013}.import-status.incomplete,.import-status.failed{background:#ffe8e8;color:#a93636}.import-status-message{max-width:250px!important}.import-category{display:inline-flex;max-width:150px;border-radius:999px;padding:5px 9px;background:#eef5ff;color:#315f9d;font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.import-empty{text-align:center!important;color:var(--muted);padding:48px!important}.import-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px}.import-modal-footer p{margin:0;color:var(--muted);font-size:13px}.import-modal-footer>div{display:flex;gap:10px;flex:none}
.settings-section-title{border-top:1px solid var(--line);padding-top:16px;margin-top:4px}.settings-section-title:first-of-type{border-top:0;padding-top:0}
.error-hint{background:#fff1f1;border-color:#efcaca;color:#9b3434}
.photo-base-list{display:grid;gap:8px;margin-top:8px}.photo-base-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fafafa}.photo-base-choice{margin:14px 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#fcfcfd}.photo-base-choice .field{margin:0}.photo-base-choice .field-help{display:block;margin-top:6px}
@media(max-width:760px){.hero-actions{width:100%}.hero-actions .btn{flex:1}.modal-wide{width:calc(100vw - 16px);max-height:96vh;padding:18px}.import-filter-grid{grid-template-columns:1fr 1fr}.import-filter-grid .filter-field:first-child{grid-column:1/-1}.import-selection-bar,.import-modal-footer{align-items:stretch;flex-direction:column}.import-selection-bar>div:last-child,.import-modal-footer>div{display:grid;grid-template-columns:1fr 1fr}.import-selection-bar>div:last-child .btn:last-child{grid-column:1/-1}.import-modal-footer .btn{width:100%}.feishu-import-table-wrap{max-height:52vh}}
@media(max-width:760px){.batch-review-section-head{align-items:flex-start;flex-direction:column}.batch-review-section-head .btn{width:100%}.batch-review-pages{grid-template-columns:1fr}}
@media(max-width:760px){.batch-copy-pending{align-items:stretch;flex-direction:column}.batch-copy-pending .btn{width:100%}}
@media(max-width:760px){.batch-revariant-panel{align-items:stretch;flex-direction:column}.batch-revariant-panel .btn{width:100%}}
@media(max-width:760px){.consultant-batch-card{align-items:stretch;flex-direction:column}.consultant-batch-actions{width:100%}.consultant-batch-actions .btn{flex:1}}
@media(max-width:760px){.consultant-parent-content{align-items:flex-start}.consultant-parent-content .btn{flex:none}.consultant-child-row .child-topic-title{padding-left:18px!important}}
