:root{--red: #ff2442;--red-dark: #cf1f34;--ink: #22201f;--muted: #77716e;--soft: #f7f3ef;--paper: #fffdf9;--line: #e8dfd8;--green: #1fb66a;--blue: #2f80ed;--shadow: 0 18px 50px rgba(54, 39, 30, .11)}#section-viral .viral-workbench,#section-viral .viral-analysis-column{display:block}#section-viral .standalone-advanced-panel,#section-viral .library-workbench-slots,#section-viral .library-compatibility,#section-viral .cover-template-import-bar,#section-viral .viral-compose-column{display:none!important}#section-viral .viral-library-workspace{padding:0 0 20px}#section-viral .viral-panel-head{align-items:center;padding:4px 0 16px}#section-viral .library-shelf{margin-top:0;padding-top:18px;border-top:0}#section-viral .library-shelf-head{margin-bottom:14px}#section-viral .library-shelf-head strong{font-size:14px}#section-viral .library-card-grid,#section-viral .topic-package-grid,#section-viral .visual-template-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}#section-viral .visual-template-grid{width:100%;min-width:0;align-items:stretch}#section-viral .library-item-card{position:relative;border-color:#e8e2dc;border-radius:8px;box-shadow:0 4px 16px #2d27230d;transition:border-color .24s cubic-bezier(.22,1,.36,1),box-shadow .28s cubic-bezier(.22,1,.36,1),transform .28s cubic-bezier(.22,1,.36,1)}#section-viral .library-item-card[data-select-library-item]{cursor:pointer}#section-viral .library-item-card:hover{border-color:#f3a3ae;box-shadow:0 8px 24px #2d272317;transform:translateY(-2px)}#section-viral .library-item-card.selected{border-color:var(--red);background:#fff;box-shadow:0 0 0 3px #ff24421a}#section-viral .visual-template-card .library-item-select{padding:0}#section-viral .visual-template-card .library-item-visual{min-height:0;border:0;border-bottom:1px solid #ece7e2;border-radius:0;aspect-ratio:3 / 4;background:#f5f4f2}#section-viral .visual-template-card{width:100%;min-width:0;overflow:hidden;border-radius:12px;box-shadow:0 5px 18px #2d272312;cursor:pointer;height:100%}#section-viral .visual-template-card .library-item-visual img{object-fit:contain}#section-viral .visual-template-card .library-item-select>strong,#section-viral .visual-template-card .library-item-select>small,#section-viral .visual-template-card .library-item-select>em,#section-viral .visual-template-card .library-select-state{margin-left:12px;margin-right:12px}#section-viral .visual-template-card .library-item-select>strong{margin-top:11px}#section-viral .visual-template-card .library-select-state{margin-bottom:11px}#section-viral .visual-template-card .visual-template-card-preview{position:relative;min-height:0;width:calc(100% - 16px);max-width:calc(100% - 16px);margin:8px 8px 0;padding:0;overflow:hidden;aspect-ratio:3 / 4;border:1px solid color-mix(in srgb,var(--library-accent) 18%,white);border-radius:9px;background:var(--library-tint)}#section-viral .visual-template-card-preview .visual-template-carousel{width:100%;min-width:0;padding:4px 4px 5px}#section-viral .visual-template-card-preview .visual-template-page{width:100%;min-width:0;max-width:100%;overflow:hidden}#section-viral .visual-template-card-preview .visual-template-carousel img{min-height:0}#section-viral .visual-template-card-copy{display:grid;gap:5px;padding:10px 11px 12px;background:#fff}#section-viral .visual-template-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:17.4px;min-width:0}#section-viral .visual-template-card-head>strong{min-width:0;overflow:hidden;font-size:12px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}#section-viral .visual-template-card-copy>small{color:var(--library-ink);font-size:10px}#section-viral .visual-template-card-copy .library-select-state{flex:0 0 auto;width:auto;margin:0;border:1px solid color-mix(in srgb,var(--library-accent) 32%,white);border-radius:999px;padding:5px 9px;color:var(--library-ink);background:var(--library-chip);font-size:10px;font-weight:800;line-height:1;cursor:pointer}#section-viral .visual-template-card-head>strong{cursor:pointer}#section-viral .visual-template-kind-badge{position:absolute;z-index:4;top:8px;left:8px;border-radius:4px;padding:4px 6px;color:#fff;background:#1e1b19b8;font-size:10px;font-style:normal;font-weight:800;line-height:1;pointer-events:none;transition:background-color .16s ease}#section-viral .visual-template-card.selected .visual-template-kind-badge{background:var(--red)}#section-viral .visual-template-card.selected{border-color:var(--red)}#section-viral .visual-library-empty{min-height:130px;display:grid;place-items:center;border:1px dashed color-mix(in srgb,var(--red) 25%,var(--line));border-radius:10px;color:var(--muted);background:#fffdfa;font-size:12px}#section-viral .visual-template-grid .library-add-card{min-height:0;height:100%}#section-viral .library-card-details{display:none}#section-viral .library-template-actions{padding:0 12px 12px}.library-add-card{display:grid;min-width:0;min-height:420px;place-content:center;justify-items:center;gap:8px;border:1px dashed #d9d1ca;border-radius:8px;padding:24px;color:#6f6863;background:#fbfaf8;text-align:center}.topic-package-grid .text-library-add-card{min-height:218px;height:100%}.library-add-card:hover,.library-add-card:focus-visible{border-color:#ff8798;color:#ff2442;background:#fff7f8}.library-add-icon{display:grid;width:38px;height:38px;place-items:center;border:1px solid #ffc0c9;border-radius:50%;color:#ff2442;background:#fff;font-size:24px;font-weight:400;line-height:1}.library-add-card strong{font-size:13px}.library-add-card small{max-width:170px;color:#9a928c;font-size:11px;line-height:1.5}.library-add-card.is-loading,.image-template-add-card.is-loading{cursor:wait;border-color:#ffb7c2;color:var(--red-dark);background:#fff7f8;opacity:1}.template-import-spinner{width:34px;height:34px;display:block;border:3px solid #ffd7dd;border-right-color:var(--red);border-radius:50%;animation:template-import-spin .8s linear infinite}.template-import-file{width:100%;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-composition{--context-topic: #c99524;--context-title: #6579c7;--context-cover: #df7467;--context-inner: #47977a;width:100%;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:8px;min-width:0}.rewrite-context-summary{display:flex;align-items:center;gap:9px;min-width:0}.rewrite-context-icon{display:grid;width:30px;height:30px;flex:0 0 auto;place-items:center;border-radius:6px;color:#fff;background:#20242b}.rewrite-context-icon svg{width:15px;height:15px}.rewrite-context-summary-copy strong,.rewrite-context-summary-copy span{display:block;white-space:nowrap}.rewrite-context-summary-copy strong{color:#2d3036;font-size:13px;line-height:1.35}.rewrite-context-summary-copy span{margin-top:2px;color:#8d8781;font-size:10px}.rewrite-context-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;width:54px;margin-left:auto}.rewrite-context-progress span{height:3px;border-radius:3px;background:#e7e3df}.rewrite-context-progress .topic.ready{background:var(--context-topic)}.rewrite-context-progress .title.ready{background:var(--context-title)}.rewrite-context-progress .cover.ready{background:var(--context-cover)}.rewrite-context-progress .inner.ready{background:var(--context-inner)}.preview-composition .rewrite-context-roles{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-height:0;min-width:0}.rewrite-context-role{--role-color: #888;position:relative;display:flex;align-items:center;gap:8px;min-width:0;border-top:0;border-right:0;border-bottom:0;min-height:44px;padding:4px 9px 4px 7px;border-left:2px solid var(--role-color);border-radius:0 5px 5px 0;background:color-mix(in srgb,var(--role-color) 5%,#fff);font:inherit;text-align:left;cursor:pointer}.rewrite-context-role.topic{--role-color: var(--context-topic)}.rewrite-context-role.title{--role-color: var(--context-title)}.rewrite-context-role.cover{--role-color: var(--context-cover)}.rewrite-context-role.inner{--role-color: var(--context-inner)}.rewrite-context-role.empty{opacity:.68;background:#faf9f8}.rewrite-context-role.selected:hover,.rewrite-context-role.selected:focus-visible,.rewrite-context-role.empty:hover,.rewrite-context-role.empty:focus-visible{opacity:1;background:color-mix(in srgb,var(--role-color) 9%,#fff);outline:2px solid color-mix(in srgb,var(--role-color) 25%,transparent);outline-offset:-2px}.rewrite-context-glyph,.rewrite-context-placeholder,.rewrite-context-thumb{width:32px;height:33px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border:1px solid color-mix(in srgb,var(--role-color) 22%,#e6e1dd);border-radius:4px;padding:0;color:var(--role-color);background:#fff}.rewrite-context-glyph svg,.rewrite-context-placeholder svg{width:14px;height:14px}.rewrite-context-thumb{cursor:inherit}.rewrite-context-thumb img{width:100%;height:100%;object-fit:cover}.rewrite-context-thumb>svg{display:none;width:14px;height:14px}.rewrite-context-thumb.is-missing>svg{display:block}.rewrite-context-role-copy{min-width:0}.rewrite-context-role-copy span,.rewrite-context-role-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rewrite-context-role-copy span{color:var(--role-color);font-size:10px;font-weight:800}.rewrite-context-role-copy em{margin-left:3px;color:#aaa39d;font-style:normal;font-weight:600}.rewrite-context-role-copy strong{margin-top:2px;color:#3b3937;font-size:11px;line-height:1.35}.modal-card.rewrite-template-detail-card{width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 32px);display:flex;flex-direction:column;padding:0;overflow:hidden;text-align:left}.rewrite-template-detail-head{flex:0 0 auto;padding:22px 24px 18px;border-bottom:1px solid #ebe7e3}.rewrite-template-detail-head>span{color:var(--red);font-size:10px;font-weight:800}.rewrite-template-detail-head h2{margin:6px 44px 0 0;font-size:20px;line-height:1.45}.rewrite-template-detail-head p{max-width:680px;margin:7px 0 0;color:#77716c;font-size:12px;line-height:1.65}.rewrite-template-detail-body{min-height:0;flex:1 1 auto;padding:20px 24px;overflow-y:auto}.rewrite-template-detail-actions{flex:0 0 auto;display:flex;justify-content:flex-end;gap:8px;padding:14px 24px;border-top:1px solid #ebe7e3;background:#faf9f8}.rewrite-template-detail-actions button{min-height:36px}.rewrite-template-detail-actions svg{width:14px;height:14px}.rewrite-template-detail-body .rewrite-text-library-preview{display:grid;gap:14px}.rewrite-template-detail-body .rewrite-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8a837d;font-size:11px;font-weight:800}.rewrite-template-detail-body .rewrite-card-meta em{font-style:normal}.rewrite-template-detail-body .rewrite-card-name{color:#24272d;font-size:16px;line-height:1.5}.rewrite-template-detail-body .rewrite-card-summary,.rewrite-template-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}.rewrite-template-detail-body .rewrite-card-summary>div,.rewrite-template-detail-facts>div{min-width:0;display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid #eeeae6}.rewrite-template-detail-body dt,.rewrite-template-detail-body dd{min-width:0;margin:0;font-size:12px;line-height:1.6}.rewrite-template-detail-body dt{color:#8b857f;font-weight:800}.rewrite-template-detail-body dd{color:#403c39}.rewrite-template-detail-body .rewrite-card-pills{display:flex;flex-wrap:wrap;gap:6px}.rewrite-template-detail-body .rewrite-card-pills span,.rewrite-template-detail-body .topic-fact-status{border-radius:5px;padding:6px 8px;color:#5d5651;background:#f1eeeb;font-size:11px}.rewrite-template-detail-body .topic-fact-status{justify-self:start;color:#26755d;background:#edf7f3}.rewrite-template-detail-visual{display:grid;gap:18px}.rewrite-template-detail-visual .selected-template-gallery{height:min(42vh,390px);padding-bottom:6px}.rewrite-template-detail-visual .selected-template-gallery img{min-height:0}.modal-card.inner-page-picker-card{width:min(960px,calc(100vw - 32px));height:min(760px,calc(100vh - 32px));max-height:calc(100vh - 32px);min-height:0;display:flex;flex-direction:column;padding:0;overflow:hidden;text-align:left}.inner-page-picker-head{flex:0 0 auto;padding:22px 24px 18px;border-bottom:1px solid #ebe7e3}.inner-page-picker-head h2{margin:6px 44px 0 0;font-size:20px;line-height:1.45}#innerPagePickerSummary{max-width:680px;margin:7px 0 0;color:#77716c;font-size:12px;line-height:1.65}.image-picker-source-tabs{width:fit-content;display:flex;align-items:stretch;gap:16px;margin-top:14px}.image-picker-source-group{position:relative;display:grid;grid-template-columns:repeat(2,minmax(104px,1fr));gap:3px;padding:3px;border:1px solid #e4e0dd;border-radius:8px;background:#f5f3f1}.image-picker-body-source{grid-template-columns:minmax(118px,1fr)}.image-picker-placeholder-sources:before{content:"";position:absolute;top:5px;bottom:5px;left:-9px;width:1px;background:#d8d3cf}.image-picker-source-group-label{grid-column:1 / -1;min-height:24px;display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:3px 6px 5px;border-bottom:1px solid #e4e0dd}.image-picker-source-group-label strong{color:#4a4541;font-size:10px}.image-picker-source-group-label small{color:#918983;font-size:9px;white-space:nowrap}.inner-page-picker-card.is-replica-picker .image-picker-source-tabs{display:grid;grid-template-columns:repeat(3,minmax(104px,1fr));gap:3px;padding:3px;border:1px solid #e4e0dd;border-radius:8px;background:#f5f3f1}.inner-page-picker-card.is-replica-picker .image-picker-source-group{display:contents}.inner-page-picker-card.is-replica-picker .image-picker-source-group-label,.inner-page-picker-card.is-replica-picker .image-picker-placeholder-sources:before{display:none}.inner-page-picker-card.is-replica-picker [data-image-picker-source=upload]{order:1}.inner-page-picker-card.is-replica-picker [data-image-picker-source=cover]{order:2}.inner-page-picker-card.is-replica-picker [data-image-picker-source=inner]{order:3}.image-picker-source-tabs button{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:6px;padding:7px 12px;color:#77716c;background:transparent;font-size:12px;font-weight:800;cursor:pointer}.image-picker-source-tabs button:hover,.image-picker-source-tabs button:focus-visible{color:var(--red-dark);outline:none;background:#fff}.image-picker-source-tabs button.active{color:var(--red-dark);background:#fff;box-shadow:0 1px 5px #2d26231a}.image-picker-source-tabs .lucide{width:15px;height:15px}.inner-page-picker-body{min-height:0;flex:1 1 auto;display:grid;grid-template-columns:178px minmax(0,1fr);gap:18px;padding:16px 24px 20px;overflow:hidden}.inner-page-template-library{min-height:0;display:flex;flex-direction:column;border-right:1px solid #ebe7e3;padding-right:14px}.inner-page-template-library-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0 2px 10px;color:#423d39;font-size:12px}.inner-page-template-library-head span{color:#9a928c;font-size:10px}.inner-page-template-library-list{min-height:0;overflow-x:hidden;overflow-y:auto;display:grid;align-content:start;gap:9px;padding:2px 2px 6px;scrollbar-width:thin}.inner-page-template-library-item{display:grid;grid-template-columns:54px minmax(0,1fr);gap:8px;align-items:center;width:100%;min-width:0;min-height:84px;overflow:hidden;border:1px solid #e3dfdc;border-radius:8px;padding:6px;color:var(--ink);background:#fff;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.inner-page-template-library-item:hover,.inner-page-template-library-item:focus-visible{border-color:#ff8b99;outline:none}.inner-page-template-library-item.selected{border-color:var(--red);background:#fff5f6;box-shadow:0 0 0 2px #ff24421a}.inner-page-template-library-item img,.inner-page-template-library-item>.inner-page-template-library-empty{display:block;width:54px;height:auto;aspect-ratio:3 / 4;border-radius:5px;object-fit:contain;background:#f1f2f4}.inner-page-template-library-empty{display:grid;place-items:center;padding:8px;color:#a59d96;font-size:10px;text-align:center}.inner-page-template-library-copy{min-width:0;display:grid;gap:4px}.inner-page-template-library-copy strong,.inner-page-template-library-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inner-page-template-library-copy strong{color:#383431;font-size:11px}.inner-page-template-library-copy small{color:#9a928c;font-size:10px}.inner-page-picker-content{min-width:0;min-height:0;overflow-y:auto;scrollbar-gutter:stable}.inner-page-picker-body.is-cover-gallery{grid-template-columns:minmax(0,1fr)}.inner-page-picker-body.is-cover-gallery .inner-page-template-library{display:none}.inner-page-picker-body.is-cover-gallery .inner-page-picker-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.image-picker-upload-panel{min-height:0;flex:1 1 auto;display:grid;grid-template-rows:auto minmax(0,1fr);gap:16px;padding:18px 24px 22px;overflow:hidden;background:#f8f7f6}.image-picker-upload-control{position:relative;min-height:112px;display:grid;place-items:center;align-content:center;gap:5px;border:1px dashed #ff8292;border-radius:8px;color:var(--red-dark);background:#fffafb;cursor:pointer;transition:border-color .16s ease,background .16s ease}.image-picker-upload-control:hover,.image-picker-upload-control:focus-within{border-color:var(--red);background:#fff3f5}.image-picker-upload-control .lucide{width:25px;height:25px}.image-picker-upload-control strong{font-size:13px}.image-picker-upload-control span{color:#927a7e;font-size:11px}.image-picker-upload-control input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.image-picker-upload-grid{min-height:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:12px;overflow-y:auto;scrollbar-gutter:stable}.image-picker-upload-item{position:relative;min-width:0;overflow:hidden;border:1px solid #e3dfdc;border-radius:8px;background:#fff}.image-picker-upload-item img{display:block;width:100%;aspect-ratio:3 / 4;object-fit:contain;background:#f1f2f4}.image-picker-upload-item>span{display:block;overflow:hidden;padding:8px 9px;color:#56504c;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.image-picker-upload-item>button{position:absolute;top:7px;right:7px;width:26px;height:26px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.9);border-radius:50%;color:#fff;background:#1c19189e;cursor:pointer}.image-picker-upload-item>button:hover,.image-picker-upload-item>button:focus-visible{outline:none;background:var(--red-dark)}.image-picker-upload-item>button .lucide{width:14px;height:14px}.image-picker-upload-empty{grid-column:1 / -1;min-height:220px;display:grid;place-items:center;align-content:center;gap:6px;color:#948c86;text-align:center}.image-picker-upload-empty .lucide{width:30px;height:30px;margin-bottom:3px}.image-picker-upload-empty strong{color:#514b47;font-size:13px}.image-picker-upload-empty span{font-size:11px}.inner-page-picker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:#817a74;font-size:12px}.inner-page-picker-toolbar span:last-child{color:var(--red);font-weight:800}.inner-page-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:12px}.inner-page-picker-item{position:relative;min-width:0;border:1px solid #e3dfdc;border-radius:8px;padding:7px;color:var(--ink);background:#fff;text-align:left;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.inner-page-picker-item:hover,.inner-page-picker-item:focus-visible{border-color:#ff8b99;outline:none;transform:translateY(-2px)}.inner-page-picker-item.selected{border-color:var(--red);box-shadow:0 0 0 2px #ff24421f}.inner-page-picker-item img,.inner-page-picker-item>.inner-page-picker-empty{display:block;width:100%;aspect-ratio:3 / 4;border-radius:5px;object-fit:contain;background:#f1f2f4}.inner-page-picker-empty{display:grid;place-items:center;padding:16px;color:#a59d96;font-size:11px;text-align:center}.inner-page-picker-item-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 2px 3px}.inner-page-picker-item-meta strong{min-width:0;overflow:hidden;color:#383431;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.inner-page-picker-item-meta span{flex:0 0 auto;color:#9a928c;font-size:10px}.inner-page-picker-check{position:absolute;top:13px;right:13px;display:grid;place-items:center;width:22px;height:22px;border:1px solid rgba(255,255,255,.94);border-radius:50%;color:#fff;background:#231f1e61;box-shadow:0 2px 8px #14121133}.inner-page-picker-item.selected .inner-page-picker-check{border-color:var(--red);background:var(--red)}.inner-page-picker-check .lucide{width:13px;height:13px}.inner-page-picker-actions{flex:0 0 auto;display:flex;justify-content:flex-end;gap:8px;padding:14px 24px;border-top:1px solid #ebe7e3;background:#faf9f8}.inner-page-picker-actions button{min-height:36px}.inner-page-picker-actions svg{width:14px;height:14px}@media(max-width:680px){.image-picker-source-tabs{width:100%;flex-direction:column;gap:8px}.image-picker-source-group{width:100%}.image-picker-placeholder-sources:before{display:none}.image-picker-source-tabs button{min-width:0;padding-inline:6px}.inner-page-picker-body{grid-template-columns:1fr;gap:12px;overflow-y:auto}.modal-card.inner-page-picker-card{height:calc(100vh - 24px)}.inner-page-template-library{border-right:0;border-bottom:1px solid #ebe7e3;padding:0 0 10px}.inner-page-template-library-list{grid-auto-flow:column;grid-auto-columns:minmax(160px,1fr);grid-template-rows:84px;overflow-x:auto;overflow-y:hidden}.inner-page-picker-content{overflow:visible}.inner-page-picker-grid,.inner-page-picker-body.is-cover-gallery .inner-page-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.image-picker-upload-panel{overflow-y:auto;padding:14px 18px 18px}.image-picker-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.rewrite-template-detail-head{padding:18px 18px 14px}.rewrite-template-detail-head h2{font-size:17px}.rewrite-template-detail-body{padding:16px 18px}.rewrite-template-detail-body .rewrite-card-summary,.rewrite-template-detail-facts{grid-template-columns:1fr}.rewrite-template-detail-actions{padding:12px 18px}.rewrite-template-detail-actions button{flex:1 1 0}}#section-rewrite .ai-generate-row{grid-template-columns:auto minmax(220px,1fr)}#section-rewrite .ai-generate-row.standard-rewrite{grid-template-columns:minmax(0,1fr)}.viral-prompt-action{border-color:#ff9aa8;color:#ff2442;background:#fff7f8}#composeViralRewriteBtn[hidden]{display:none!important}.viral-prompt-action.is-loading,#composeViralBtn.is-loading{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:wait}.viral-prompt-action.is-loading:before,#composeViralBtn.is-loading:before{content:"";width:13px;height:13px;flex:0 0 13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:template-import-spin .7s linear infinite}.viral-prompt-action.is-loading.is-cancel-action,#composeViralBtn.is-loading.is-cancel-action{cursor:pointer}.template-intake-entry{grid-column:1 / -1;min-height:170px}.template-intake-entry .entry-body{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px}.template-intake-entry .entry-body button{min-width:220px}@media(max-width:1180px){#section-viral .library-card-grid,#section-viral .topic-package-grid,#section-viral .visual-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){#section-viral .library-card-grid,#section-viral .topic-package-grid,#section-viral .visual-template-grid,.ai-generate-row{grid-template-columns:1fr}.library-add-card{min-height:320px}.template-intake-entry .entry-body{grid-template-columns:1fr}.template-intake-entry .entry-body button{width:100%}}*{box-sizing:border-box}body{margin:0;min-width:320px;height:100vh;overflow:hidden;color:var(--ink);background:#f7f4ef;font-family:Microsoft YaHei,PingFang SC,Arial,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);height:100vh;min-height:100vh;overflow:hidden}.sidebar{position:sticky;top:0;height:100vh;padding:22px 18px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:18px}.brand{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}.brand-mark{width:42px;height:42px;border-radius:8px;display:grid;place-items:center;color:#fff;background:var(--red);font-weight:800}.brand-mark img{display:block;width:100%;height:100%;border-radius:inherit}.brand strong,.brand span{display:block}.brand span{margin-top:3px;color:var(--muted);font-size:12px}.nav{display:grid;gap:8px}.nav-item{border:0;border-radius:8px;padding:12px;background:transparent;color:#554f4c;display:flex;align-items:center;gap:10px;text-align:left}.nav-subgroup{display:grid;gap:4px;margin:-2px 0 8px 18px;max-height:180px;padding-left:10px;overflow:hidden;border-left:1px solid var(--line);opacity:1;transform:translateY(0);visibility:visible;transition:max-height .22s cubic-bezier(.22,1,.36,1),margin-bottom .22s cubic-bezier(.22,1,.36,1),opacity .15s ease,transform .22s cubic-bezier(.22,1,.36,1),visibility 0s linear 0s}.nav-subgroup.is-collapsed{max-height:0;margin-bottom:0;opacity:0;transform:translateY(-5px);visibility:hidden;pointer-events:none;transition-delay:0s,0s,0s,0s,.22s}.nav-chevron{margin-left:auto;font-size:20px;line-height:1;transition:transform .16s ease}.nav-group-toggle[aria-expanded=true] .nav-chevron{transform:rotate(90deg)}.nav-item.nav-subitem{min-height:34px;padding:7px 10px;font-size:12px}.nav-item.nav-subitem .nav-icon{width:24px;min-width:24px;height:22px;font-size:10px}.nav-item.active,.nav-item:hover{color:var(--red);background:#fff0f2}.nav-icon{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;background:#f3eee9;color:var(--red);font-size:12px;font-weight:700}.side-metric{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:8px;padding:12px;color:var(--muted);background:#fffdfa}.side-metric strong{color:var(--ink);font-size:22px}.workspace{min-width:0;height:100vh;min-height:0;padding:26px 32px 32px;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;min-height:0}.eyebrow{margin:0 0 7px;color:var(--red);font-size:13px;font-weight:700}h1,h2,h3,p{margin-top:0}h1{margin-bottom:0;max-width:760px;font-size:clamp(28px,3.1vw,44px);letter-spacing:0;word-break:keep-all}h2{margin-bottom:8px;font-size:28px;letter-spacing:0}h3{margin-bottom:8px;font-size:19px}p{color:var(--muted);line-height:1.65}.top-actions,.plugin-actions,.publish-toolbar,.form-actions,.control-row,.upload-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.primary-btn,.ghost-btn,.mini-btn,.file-btn{min-height:42px;border-radius:8px;border:1px solid transparent;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;white-space:nowrap}.primary-btn:disabled,.ghost-btn:disabled,.mini-btn:disabled{cursor:not-allowed;opacity:.55;box-shadow:none}.primary-btn{color:#fff;background:var(--red);box-shadow:0 10px 24px #ff244238}.primary-btn:hover{background:var(--red-dark)}.ghost-btn,.file-btn{color:var(--ink);background:#fff;border-color:var(--line)}.mini-btn{min-height:32px;padding:0 10px;color:var(--red);background:#fff4f5;border-color:#ffd6dd}.full{width:100%}.section{display:none;min-height:0;overflow:hidden}.section.active{display:block;height:100%;overflow-x:hidden;overflow-y:auto;padding-right:8px;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-behavior:smooth}.section.active::-webkit-scrollbar{width:10px}.section.active::-webkit-scrollbar-track{background:transparent}.section.active::-webkit-scrollbar-thumb{border:3px solid #f7f4ef;border-radius:999px;background:#dbcfc7}.section.active::-webkit-scrollbar-thumb:hover{background:#c8b9ae}.workflow-strip{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow);margin-bottom:28px}.workflow-note{position:absolute;left:22px;bottom:22px;padding:12px 16px;display:flex;align-items:center;gap:12px;border-radius:8px;background:#ffffffeb;border:1px solid #ffd5db}.workflow-note span{color:var(--muted)}.workflow-diagram{min-height:360px;padding:42px 34px 82px;display:grid;grid-template-columns:210px 72px minmax(300px,1fr) 72px 190px;gap:10px;align-items:center;background:linear-gradient(135deg,rgba(255,36,66,.06),transparent 34%),linear-gradient(315deg,rgba(47,128,237,.08),transparent 38%),#fffdf9}.flow-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.flow-column.small{grid-template-columns:1fr}.flow-label{grid-column:1 / -1;justify-self:center;min-height:32px;border-radius:8px;padding:6px 18px;color:#fff;background:var(--red);font-weight:800}.flow-card{min-height:96px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;gap:6px;text-align:center;background:#fff;font-weight:800}.flow-card span{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;color:var(--red);background:#fff0f2;font-size:12px}.flow-arrow{color:var(--red);font-size:46px;font-weight:800;text-align:center}.flow-editor-card{min-height:230px;border:1px solid var(--line);border-radius:8px;padding:20px;display:grid;grid-template-columns:minmax(120px,.85fr) minmax(160px,1fr);gap:18px;align-items:center;background:#fff;box-shadow:0 18px 45px #ff244214}.flow-editor-card .flow-label{grid-column:1 / -1}.editor-wire{display:grid;gap:12px}.editor-wire div{height:58px;border-radius:8px;background:linear-gradient(90deg,#fff0f2,#f8f3ef);position:relative}.editor-wire div:after{content:"";position:absolute;left:18px;right:28px;top:18px;height:8px;border-radius:999px;background:#22201f29;box-shadow:0 18px #22201f1c}.flow-editor-card ul{margin:0;padding:0;list-style:none;display:grid;gap:10px}.flow-editor-card li{min-height:38px;border:1px solid var(--line);border-radius:8px;padding:9px 12px;color:#4b4541;background:#fffefa;font-weight:700}.section-heading{margin:18px 0}.section-heading.split{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:end}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.entry-card{overflow:hidden;min-height:460px;display:grid;grid-template-rows:210px minmax(0,1fr);background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.entry-card.compact{min-height:230px;grid-template-rows:auto}.entry-card.action-card{min-height:auto;grid-template-rows:auto}.entry-card.action-card .entry-body{min-height:100%;display:flex;flex-direction:column;gap:12px}.entry-card.action-card .full{margin-top:auto}.entry-visual{overflow:hidden;background:#f4efe9}.entry-body{padding:18px}.route-banner{margin-bottom:28px;padding:22px;border:1px solid #ffd1d8;border-radius:8px;display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,rgba(255,36,66,.08),transparent 42%),#fff;box-shadow:var(--shadow)}.route-banner h2{margin-top:8px}.mock-screen{height:100%;padding:28px;display:grid;align-content:center;gap:14px;background:radial-gradient(circle at 20% 20%,rgba(255,36,66,.12),transparent 28%),linear-gradient(135deg,#fffdf9,#f4eee9)}.mock-tabs{display:flex;gap:12px}.mock-tabs span{width:96px;height:10px;border-radius:999px;background:#f2d8d9}.mock-tabs span:first-child{background:var(--red)}.mock-textarea,.mock-alert,.mock-count,.mock-progress,.mock-strip i{border-radius:8px;border:1px solid var(--line);background:#ffffffc7}.mock-textarea{min-height:92px;padding:16px;display:grid;gap:12px}.mock-textarea i{height:10px;border-radius:999px;background:#cfc7c1}.mock-textarea i:nth-child(2){width:74%}.mock-textarea i:nth-child(3){width:48%}.mock-alert,.mock-count{min-height:40px;padding:10px 12px;color:var(--red);font-weight:800}.mock-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.mock-strip i{aspect-ratio:3 / 4;background:linear-gradient(145deg,#fff,#ffe9ed)}.mock-strip i:nth-child(2n){background:linear-gradient(145deg,#eef7ff,#fff)}.mock-progress{height:10px;overflow:hidden}.mock-progress:before{content:"";display:block;width:66%;height:100%;background:var(--red)}.entry-kicker,.status-pill{display:inline-flex;align-items:center;min-height:26px;border-radius:999px;padding:0 10px;color:var(--red);background:#fff0f2;font-size:12px;font-weight:700}textarea,input,select{width:100%;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fffefa;outline:none}textarea,input{padding:12px}select{min-height:42px;padding:0 12px}textarea:focus,input:focus,select:focus{border-color:#ff9ba9;box-shadow:0 0 0 3px #ff24421a}.file-btn{position:relative}.file-btn input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.file-btn.small{min-width:88px}.upload-preview,.phone-images{display:flex;gap:8px;overflow-x:auto;padding:8px 0}.image-board{display:grid;grid-auto-flow:column;grid-auto-columns:180px;gap:12px;min-height:252px;overflow-x:auto;padding:10px 2px 14px;align-items:start}.image-board-add-card{width:180px;height:228px;min-height:228px;box-sizing:border-box;border:1px dashed #ff6b7d;border-radius:8px;color:var(--red);background:#fffafb;display:grid;place-items:center;align-content:center;gap:8px;padding:16px;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}.image-board-add-card:hover,.image-board-add-card:focus-visible{border-color:var(--red);background:#fff2f4;outline:none;transform:translateY(-2px)}.image-board-add-card .lucide{width:28px;height:28px;stroke-width:1.8}.image-board-add-card strong{font-size:13px}.image-board-add-card span{color:#9b7479;font-size:11px}.template-output-section{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}.template-output-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}.template-output-head strong{font-size:14px}.template-output-head span{color:var(--muted);font-size:12px}.template-output-board{min-height:220px}.template-field-editor{margin-top:12px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.template-field-head{padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.template-field-head strong,.template-field-head span{display:block}.template-field-head span{margin-top:3px;color:var(--muted);font-size:12px}.poster-theme-row,.poster-canvas-shell,.poster-region-inspector{margin:12px;border:1px solid var(--line);border-radius:8px;background:#fffaf7}.poster-theme-row{padding:12px;display:grid;grid-template-columns:minmax(150px,.35fr) minmax(0,1fr);gap:12px;align-items:center}.poster-theme-row strong,.poster-theme-row span,.poster-canvas-toolbar strong,.poster-canvas-toolbar span,.poster-region-inspector-head strong,.poster-region-inspector-head span{display:block}.poster-theme-row span,.poster-canvas-toolbar span,.poster-region-inspector-head span{margin-top:3px;color:var(--muted);font-size:12px}.poster-theme-list{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.poster-theme-swatch{min-height:34px;border:1px solid var(--line);border-radius:8px;padding:6px 8px;background:#fff;display:inline-flex;align-items:center;gap:5px;color:#504845;font-size:12px;font-weight:700}.poster-theme-swatch i{width:14px;height:14px;border-radius:50%;border:1px solid rgba(34,32,31,.12)}.poster-theme-swatch.active{border-color:var(--red);box-shadow:0 0 0 3px #ff24421a;color:var(--red)}.poster-canvas-shell{padding:12px}.poster-canvas-toolbar{margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.poster-canvas-stage{position:relative;width:min(100%,520px);margin:0 auto;overflow:hidden;border:1px solid #d8d0ca;border-radius:8px;background:#eee7df;touch-action:none}.poster-canvas-bg,.poster-canvas-empty{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.poster-canvas-bg{object-fit:cover;-webkit-user-select:none;user-select:none;pointer-events:none}.poster-canvas-empty{display:grid;place-items:center;color:var(--muted);font-size:13px}.poster-region-box{position:absolute;min-width:28px;min-height:22px;border:2px solid rgba(255,36,66,.8);border-radius:6px;background:#fff3;display:grid;align-content:start;gap:4px;padding:5px;color:#1f1718;overflow:hidden;cursor:move;-webkit-user-select:none;user-select:none;box-shadow:0 4px 16px #22201f29}.poster-region-box.image{border-color:#2f80edd9}.poster-region-box.active{border-color:#ff2442;background:#ffffff57;box-shadow:0 0 0 3px #ff24422e,0 8px 24px #22201f2e}.poster-region-box img{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:4px;pointer-events:none}.poster-region-box b{overflow:hidden;color:currentColor;font-size:clamp(10px,2.2vw,15px);line-height:1.25;text-shadow:0 1px 0 rgba(255,255,255,.7)}.poster-region-label{width:max-content;max-width:100%;padding:2px 5px;border-radius:5px;background:#ff2442eb;color:#fff;font-size:10px;font-weight:800;line-height:1.2}.poster-region-box.image .poster-region-label{background:#2f80edeb}.poster-resize-handle{position:absolute;right:0;bottom:0;width:16px;height:16px;border-left:2px solid #fff;border-top:2px solid #fff;background:var(--red);cursor:nwse-resize}.poster-region-inspector{padding:12px;display:grid;gap:10px}.poster-region-inspector-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.poster-region-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.poster-region-controls label{display:grid;gap:5px;color:var(--muted);font-size:12px;font-weight:700}.poster-region-controls input{width:100%;height:34px;border:1px solid var(--line);border-radius:8px;padding:0 8px;background:#fff}.poster-region-controls input[type=color]{padding:3px}.poster-text-inspector{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:10px}.poster-text-inspector label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700}.poster-text-inspector textarea{min-height:96px;resize:vertical}.template-title-fields{padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-title-fields label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700}.template-title-fields input,.toc-field-row input,.toc-field-row select{height:36px;border:1px solid var(--line);border-radius:8px;padding:0 10px;background:#fffaf7;font:inherit}.template-image-field{margin:0 12px 12px;padding:12px;border:1px dashed #ffd0d8;border-radius:8px;background:#fff8f9;display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:center}.template-image-preview{width:120px;aspect-ratio:3 / 4;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;display:grid;place-items:center;color:var(--muted);font-size:12px}.template-image-preview img{width:100%;height:100%;object-fit:cover}.template-image-preview.small{width:76px;aspect-ratio:1 / 1}.template-image-controls{display:grid;justify-items:start;gap:8px}.template-image-controls strong,.template-image-controls span{display:block}.template-image-controls span{color:var(--muted);font-size:12px;line-height:1.5}.toc-field-list{max-height:360px;overflow:auto;display:grid;gap:8px;padding:0 12px 12px}.toc-field-row{display:grid;grid-template-columns:minmax(220px,1fr) 72px 88px 72px 86px;gap:8px;align-items:center}.toc-check{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:#4b4541;white-space:nowrap}.poster-region-list{padding:12px;display:grid;gap:10px}.poster-region-row{border:1px solid var(--line);border-radius:8px;padding:10px;background:#fffaf7;display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,1fr);gap:10px;align-items:center}.poster-region-row.active{border-color:var(--red);box-shadow:0 0 0 3px #ff244214;background:#fff5f6}.poster-region-row[data-poster-kind=image]{grid-template-columns:minmax(150px,.7fr) 76px auto}.poster-region-row.text textarea{min-height:74px;border:1px solid var(--line);border-radius:8px;padding:10px;resize:vertical;background:#fff;font:inherit}.poster-region-meta strong,.poster-region-meta span{display:block}.poster-region-meta span{margin-top:4px;color:var(--muted);font-size:12px}.layered-editor-grid{display:grid;grid-template-columns:230px minmax(280px,1fr) minmax(260px,.72fr);gap:12px;padding:12px;align-items:start}.layer-tree-panel,.layer-content-panel{border:1px solid var(--line);border-radius:8px;background:#fffaf7;overflow:hidden}.layer-tree-panel{max-height:720px;overflow-y:auto}.layer-group{border-bottom:1px solid var(--line)}.layer-group:last-child{border-bottom:0}.layer-group-head{padding:10px 10px 8px;background:#fff}.layer-group-head strong,.layer-group-head span{display:block}.layer-group-head span{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}.layer-row{min-height:38px;padding:7px 10px;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;border-top:1px solid rgba(34,32,31,.06);cursor:pointer}.layer-row.active{background:#fff0f2;color:var(--red)}.layer-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:800}.layer-row em{color:var(--muted);font-size:10px;font-style:normal;text-transform:uppercase}.layer-content-panel{padding:10px;display:grid;gap:9px;max-height:720px;overflow-y:auto}.layer-content-panel label{display:grid;gap:6px}.layer-content-panel span{color:var(--muted);font-size:12px;font-weight:800}.layer-content-panel input,.layer-content-panel textarea,.layered-inspector select,.layered-inspector input{border:1px solid var(--line);border-radius:8px;background:#fff;font:inherit}.layer-content-panel input{height:34px;padding:0 9px}.layer-content-panel textarea{min-height:68px;padding:9px;resize:vertical}.layered-canvas-shell,.layered-inspector{margin:0 0 12px}.layered-canvas-stage{width:min(100%,420px);background:#f4f8f1}.layered-canvas-bg{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,rgba(31,122,90,.05) 1px,transparent 1px),linear-gradient(180deg,rgba(31,122,90,.05) 1px,transparent 1px),#f4f8f1;background-size:28px 28px}.layered-layer-box{border-color:#1f7a5ab8}.layered-layer-box.text{border-color:#ff2442cc}.layered-layer-box.shape,.layered-layer-box.background,.layered-layer-box.sticker{border-color:#2f80edd1}.template-region-empty{margin:12px;padding:18px;border:1px dashed #dfd5cf;border-radius:8px;color:var(--muted);background:#fffaf7}.thumb{flex:0 0 68px;width:68px;height:84px;border-radius:8px;border:1px solid var(--line);object-fit:cover;background:#f1ece6}.image-compare-card{min-height:210px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fffaf7;display:grid;grid-template-rows:minmax(150px,1fr) auto}.draft-image-item{position:relative;width:180px;height:228px;min-width:0;min-height:0;display:grid;grid-template-rows:158px 70px;align-self:start}.draft-image-item.is-draggable-image{transition:box-shadow .16s ease,transform .16s ease}.draft-image-item.is-draggable-image.is-dragging{position:absolute;visibility:hidden;pointer-events:none}.image-board.is-sorting,.image-board.is-sorting .draft-image-card-footer.is-drag-handle{cursor:grabbing;-webkit-user-select:none;user-select:none}.draft-image-card-footer{min-width:0;height:70px;min-height:70px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:24px 24px;grid-template-areas:"label state" "watermark watermark";align-items:center;align-content:center;gap:4px 6px;overflow:hidden;padding:7px 8px;box-sizing:border-box;border:1px solid var(--line);border-radius:0 0 8px 8px;color:var(--muted);background:#fff}.draft-image-card-footer.is-drag-handle{cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.draft-image-card-footer.is-drag-handle:hover{border-color:#ff244261;background:#fffafb;box-shadow:0 5px 14px #ff244214}.draft-image-card-label{grid-area:label;min-width:0;display:inline-flex;align-items:center;gap:5px;overflow:hidden;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.draft-image-card-label .lucide{width:14px;height:14px;flex:0 0 14px;color:#8f8781}.draft-image-card-footer>strong{grid-area:state;flex:0 0 auto;display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 8px;color:var(--red);background:#fff0f2;font-size:12px;white-space:nowrap}.draft-image-drag-preview{position:fixed;left:-10000px;top:0;z-index:9999;overflow:hidden;border-radius:8px;background:#fff;box-shadow:0 22px 50px #22201f3d,0 6px 16px #22201f29;transform:rotate(1.5deg) scale(1.02);pointer-events:none}.draft-image-drag-preview .draft-image-actions{opacity:0}.draft-image-drag-preview .draft-image-card-footer{border-color:#ff24424d;background:#fffafb}.draft-image-drop-slot{position:relative;width:180px;height:228px;min-width:0;min-height:228px;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(255,36,66,.42);border-radius:8px;color:var(--red);background:#ff24420e;box-shadow:inset 0 0 0 3px #ff24420f;animation:inner-page-drop-slot-in .16s cubic-bezier(.2,.8,.2,1) both}.draft-image-drop-slot:before,.draft-image-drop-slot:after{content:"";position:absolute;top:16px;bottom:16px;width:2px;border-radius:2px;background:#ff244247}.draft-image-drop-slot:before{left:10px}.draft-image-drop-slot:after{right:10px}.draft-image-drop-slot .lucide{width:22px;height:22px;padding:6px;box-sizing:content-box;border:1px solid rgba(255,36,66,.22);border-radius:50%;background:#fff;box-shadow:0 5px 14px #ff24421f}@keyframes inner-page-drop-slot-in{0%{opacity:0;transform:scaleX(.72)}to{opacity:1;transform:scaleX(1)}}.draft-image-item .image-compare-card{height:158px;min-height:0;border-radius:8px 8px 0 0;border-bottom:0;grid-template-rows:158px}.draft-image-item .image-compare-card img{height:158px;min-height:0;object-fit:contain;object-position:center}.draft-image-item.missing{display:block}.image-generation-error{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:10px 12px;border:1px solid rgba(255,36,66,.28);border-radius:7px;background:#fff4f5}.image-generation-error>div{min-width:0;display:grid;gap:2px}.image-generation-error strong{color:#a91f35;font-size:12px;line-height:1.45}.image-generation-error span{color:var(--muted);font-size:11px}.image-generation-error .ghost-btn{flex:0 0 auto;min-height:34px}@media(max-width:640px){.image-generation-error .ghost-btn{width:100%}}.draft-image-missing{height:228px;min-height:228px;box-sizing:border-box;display:grid;place-items:center;align-content:center;gap:8px;border:1px dashed #d8a5aa;border-radius:8px;padding:18px;text-align:center;background:#fff7f7}.draft-image-missing span{color:var(--red);font-size:11px;font-weight:800}.draft-image-missing strong{color:var(--ink);font-size:14px}.draft-image-missing small{color:var(--muted);font-size:11px;line-height:1.5}.draft-image-missing .ghost-btn{min-height:36px;margin-top:4px;padding:0 12px}.draft-image-actions{position:absolute;top:8px;left:8px;right:8px;display:flex;justify-content:flex-end;gap:4px;opacity:0;transform:translateY(-3px);pointer-events:none;transition:opacity .15s ease,transform .15s ease;z-index:2}.local-topic-library-entry{min-height:32px;gap:6px;padding-inline:10px;border-color:#b9d5cc;color:#176b57;background:#f3faf7}.local-topic-library-entry:hover{border-color:#78ad9d;background:#eaf6f1}.local-topic-library-entry .lucide{width:14px;height:14px}.topic-library-source-actions{display:inline-flex;align-items:center;justify-content:flex-end}.modal-card.local-topic-generator-card{--topic-evidence: #176b57;--topic-evidence-soft: #edf7f3;--topic-ink: #242322;--topic-muted: #716d69;--topic-line: #e5e1dd;display:flex;width:min(900px,calc(100vw - 32px));max-height:min(780px,calc(100dvh - 32px));flex-direction:column;padding:0;overflow:hidden;background:#fff}.local-topic-generator-head{display:flex;min-height:82px;align-items:center;gap:12px;padding:18px 58px 16px 22px;border-bottom:1px solid var(--topic-line)}.local-topic-generator-head h2{margin:2px 0 0;font-size:20px;line-height:1.3}.local-topic-generator-head .eyebrow{margin:0;color:var(--topic-evidence);font-size:10px}.local-topic-generator-mark{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border-radius:7px;color:var(--topic-evidence);background:var(--topic-evidence-soft)}.local-topic-generator-mark .lucide{width:18px;height:18px}.reverse-topic-source-tabs{display:flex;gap:4px;padding:8px 22px 0;border-bottom:1px solid var(--topic-line);background:#fff}.reverse-topic-source-tabs button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 12px;border:0;border-bottom:2px solid transparent;color:var(--topic-muted);background:transparent;font-size:11px;font-weight:800;cursor:pointer}.reverse-topic-source-tabs button.active{border-bottom-color:var(--red);color:var(--red-dark)}.reverse-topic-source-tabs button:disabled{cursor:wait;opacity:.6}.reverse-topic-source-tabs .lucide{width:15px;height:15px}.reverse-topic-source-tabs button em{color:var(--topic-evidence);font-size:9px;font-style:normal;font-weight:800}.local-topic-generator-body{display:grid;min-height:0;flex:1 1 auto;grid-template-columns:minmax(0,1fr) 240px;overflow:hidden}.local-topic-source{min-width:0;padding:18px 18px 20px 22px;overflow-y:auto}.local-topic-source-head,.local-topic-source-head>div,.local-topic-mode-head{display:flex;align-items:center}.local-topic-source-head{justify-content:space-between;gap:14px;margin-bottom:10px}.local-topic-source-head>div{min-width:0;gap:8px}.local-topic-source-head strong{color:var(--topic-ink);font-size:13px}.local-topic-source-index{padding-right:8px;border-right:2px solid var(--topic-evidence);color:var(--topic-evidence);font-size:10px;font-weight:800}.local-topic-source-head>div>span:last-child{color:var(--topic-muted);font-size:10px;font-variant-numeric:tabular-nums}.local-topic-source-head .ghost-btn{min-height:34px;padding-inline:11px}.local-topic-source-list{display:grid;min-height:300px;gap:8px;padding:10px;border:1px solid var(--topic-line);border-radius:7px;background:#fafbfa}.local-topic-source-list:has(.local-reference-upload-row){align-content:start}.local-topic-source-list .local-upload-empty{min-height:278px;border-color:#a9cbbf;border-radius:5px;background:#f7fbf9}.local-topic-source-list .local-upload-empty:hover,.local-topic-source-list.is-dragging .local-upload-empty{border-color:var(--topic-evidence);background:var(--topic-evidence-soft)}.local-topic-source-list .local-upload-empty-icon{color:var(--topic-evidence);background:#dfeee8}.local-topic-source-list .local-reference-upload-row{border-color:#dfe8e4;box-shadow:none}.local-topic-source-list .local-file-icon{color:var(--topic-evidence);background:var(--topic-evidence-soft)}.reverse-topic-cloud-list{display:grid;min-height:300px;max-height:430px;gap:7px;padding:10px;overflow-y:auto;border:1px solid var(--topic-line);border-radius:7px;background:#fafbfa}.reverse-topic-cloud-item{display:grid;grid-template-columns:18px 22px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:58px;padding:8px 10px;border:1px solid #dfe8e4;border-radius:6px;color:var(--topic-ink);background:#fff;cursor:pointer}.reverse-topic-cloud-item:hover,.reverse-topic-cloud-item.selected{border-color:#8fc3b1;background:#f4fbf8}.reverse-topic-cloud-item>input{width:16px;height:16px;accent-color:var(--topic-evidence)}.reverse-topic-cloud-check{display:grid;place-items:center;color:#a4ada8}.reverse-topic-cloud-item.selected .reverse-topic-cloud-check{color:var(--topic-evidence)}.reverse-topic-cloud-check .lucide{width:18px;height:18px}.reverse-topic-cloud-copy{min-width:0}.reverse-topic-cloud-copy strong,.reverse-topic-cloud-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reverse-topic-cloud-copy strong{font-size:12px}.reverse-topic-cloud-copy small{margin-top:4px;color:var(--topic-muted);font-size:10px}.reverse-topic-cloud-state{padding:3px 6px;border-radius:4px;color:#23745f;background:#e7f5ef;font-size:9px;font-weight:800}.reverse-topic-cloud-empty{display:grid;min-height:260px;place-items:center;align-content:center;gap:7px;color:var(--topic-muted);text-align:center}.reverse-topic-cloud-empty .lucide{width:26px;height:26px;color:var(--topic-evidence)}.reverse-topic-cloud-empty strong{color:var(--topic-ink);font-size:13px}.reverse-topic-cloud-empty span{font-size:10px}.local-topic-mode{padding:20px 18px;border-left:1px solid var(--topic-line);background:#faf9f8}.local-topic-mode-head{align-items:flex-start;flex-direction:column;gap:4px;margin-bottom:12px}.local-topic-mode-head strong{color:var(--topic-ink);font-size:13px}.local-topic-mode-head span{color:var(--topic-muted);font-size:10px}.local-topic-mode-switch{display:grid;gap:8px}.local-topic-mode-switch button{display:grid;min-height:74px;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:9px;padding:11px;border:1px solid var(--topic-line);border-radius:7px;color:#55514e;background:#fff;text-align:left;cursor:pointer}.local-topic-mode-switch button:hover{border-color:#b8aaa4}.local-topic-mode-switch button.active{border-color:var(--red);color:var(--red-dark);background:#fff7f8;box-shadow:0 0 0 2px #ff244212}.local-topic-mode-switch button:focus-visible{outline:2px solid var(--red);outline-offset:2px}.local-topic-mode-switch .lucide{width:19px;height:19px}.local-topic-mode-switch button>span{display:grid;min-width:0;gap:4px}.local-topic-mode-switch strong{color:inherit;font-size:12px}.local-topic-mode-switch small{color:var(--topic-muted);font-size:9px;line-height:1.45}.local-topic-generator-actions{display:grid;min-height:62px;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:11px 18px 11px 22px;border-top:1px solid var(--topic-line);background:#fff}.local-topic-generator-actions button{min-height:38px}.local-topic-generation-status{overflow:hidden;color:var(--topic-evidence);font-size:10px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.local-topic-generator-actions .is-loading .lucide{animation:template-import-spin .9s linear infinite}@media(max-width:720px){.modal-card.local-topic-generator-card{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.local-topic-generator-head{min-height:72px;padding:14px 50px 13px 14px}.local-topic-generator-head h2{font-size:17px}.reverse-topic-source-tabs{padding-inline:14px}.local-topic-generator-body{display:block;overflow-y:auto}.local-topic-source{padding:14px;overflow:visible}.local-topic-source-head{align-items:flex-start}.local-topic-source-head>div{align-items:flex-start;flex-wrap:wrap}.local-topic-source-list{min-height:240px;padding:8px}.local-topic-source-list .local-upload-empty{min-height:218px}.reverse-topic-cloud-list{min-height:240px;max-height:none;padding:8px}.reverse-topic-cloud-item{grid-template-columns:18px 20px minmax(0,1fr)}.reverse-topic-cloud-state{display:none}.local-topic-mode{padding:14px;border-top:1px solid var(--topic-line);border-left:0}.local-topic-mode-switch{grid-template-columns:1fr 1fr}.local-topic-mode-switch button{min-height:82px;grid-template-columns:1fr;align-content:center}.local-topic-generator-actions{grid-template-columns:auto 1fr auto;padding:10px 12px}.local-topic-generation-status{grid-column:1 / -1;grid-row:1}.local-topic-generator-actions #clearLocalTopicSourcesBtn{grid-column:1;grid-row:2}.local-topic-generator-actions #cancelLocalTopicGeneratorBtn{display:none}.local-topic-generator-actions #generateReverseTopicBtn{grid-column:3;grid-row:2}}.local-file-remove-action{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;padding:0;border:1px solid #d8c9cd;border-radius:7px;background:#fbf8f8;color:#9c7f87;font:400 20px/1 Arial,sans-serif;cursor:pointer}.local-file-remove-action:hover{border-color:#ee9cac;background:#fff0f3;color:#c93653}.local-page-add-row{display:flex;justify-content:flex-end;min-height:30px}.draft-image-item:hover .draft-image-actions,.draft-image-item:focus-within .draft-image-actions{opacity:1;transform:translateY(0);pointer-events:auto}.image-action-btn{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;gap:4px;border:1px solid #ffd0d8;border-radius:7px;padding:0;color:#c62f49;background:#ffeef2f5;box-shadow:0 3px 12px #9d374a1f;font-size:18px;font-weight:800;line-height:1}.image-action-btn.single-image-ai-action,.image-action-btn.single-image-edit-action{width:auto;min-width:0;height:30px;padding:0 6px;font-size:11px;white-space:nowrap}.image-action-btn:hover,.image-action-btn:focus-visible{border-color:#ff9cad;color:#ad1733;background:#ffe1e7;outline:none}.image-action-btn.danger:hover,.image-action-btn.danger:focus-visible{border-color:#ff9baa;color:var(--red)}.image-action-btn:disabled{cursor:wait;opacity:.65}.image-action-btn.is-active{border-color:#ff9cad;color:#ad1733;background:#ffe1e7}button.image-compare-card{width:100%;padding:0;color:inherit;cursor:zoom-in;text-align:left;font:inherit}button.image-compare-card:hover,button.image-compare-card:focus-visible{border-color:#ff9baa;box-shadow:0 0 0 3px #ff24421a;outline:none}.template-output-card{background:#fff}.template-output-card.active{border-color:var(--red);box-shadow:0 0 0 2px #ff24422e}.image-compare-card img{width:100%;height:158px;object-fit:cover;background:#f1ece6}.image-compare-card div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-top:1px solid var(--line)}.image-compare-card span{color:var(--muted);font-size:12px;font-weight:700}.image-compare-card strong{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 8px;background:#fff0f2;color:var(--red);font-size:12px}.image-compare-card em{margin-left:auto;padding:4px 7px;border-radius:999px;background:#f7f2ec;color:#4b4541;font-size:12px;font-style:normal;font-weight:800}.rewrite-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"draft" "editor";gap:18px;align-items:start;padding-right:420px}.draft-rail,.editor-panel,.preview-panel,.generator-panel,.publish-list,.plugin-copy{background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.draft-rail{grid-area:draft;min-height:126px;max-height:170px;overflow:hidden;display:grid;grid-template-columns:minmax(160px,190px) minmax(0,1fr)}.rail-head{display:flex;justify-content:space-between;gap:14px;padding:16px;border-bottom:1px solid var(--line)}.draft-rail .rail-head{border-right:1px solid var(--line);border-bottom:0;align-items:flex-start}.rail-actions{display:grid;gap:8px;justify-items:end}.rail-head span,.rail-head strong{display:block}.rail-head span{color:var(--muted);font-size:13px}.draft-list{max-height:none;overflow-x:auto;overflow-y:hidden;padding:10px;display:flex;gap:10px;align-items:stretch}.draft-item{flex:0 0 clamp(220px,24vw,340px);border:1px solid transparent;border-radius:8px;padding:12px;background:transparent;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:12px;justify-content:space-between;min-height:92px}.draft-item.active,.draft-item:hover{border-color:#ffd0d8;background:#fff5f6}.draft-item:focus-visible{outline:3px solid rgba(255,36,66,.18);outline-offset:2px}.draft-item-copy{min-width:0}.draft-item strong,.draft-item span{display:block}.draft-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draft-item span{margin-top:5px;color:var(--muted);font-size:12px}.draft-delete-btn{align-self:flex-end}.editor-panel{grid-area:editor;width:100%;min-height:680px}.editor-form{padding:18px;display:grid;gap:16px}.edit-block{display:grid;gap:10px}.edit-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.edit-block-head label,.edit-block-head>label{color:var(--red);font-weight:700}.edit-block-actions{display:inline-flex;align-items:center;gap:8px;flex-shrink:0}.mini-status{display:inline-flex;align-items:center;min-height:26px;border-radius:999px;padding:0 10px;background:#f3fbf2;border:1px solid #cfeacf;color:#298548;font-size:12px;font-weight:800}.mini-ai-btn{width:auto;min-width:104px;height:32px;border:1px solid #ffc4ce;border-radius:6px;padding:0 11px;background:#ffe9ee;color:var(--red);display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:11px;line-height:1;white-space:nowrap}.mini-ai-btn:hover{border-color:#ff9faf;background:#ffdce4}.mini-ai-btn.active{border-color:var(--red);background:var(--red);color:#fff;box-shadow:0 0 0 3px #ff24421a}.mini-ai-btn.ai-ready:not(.active){border-color:#ffb4c1;background:#ffe9ee}.mini-ai-btn.ai-built:not(.active){box-shadow:0 0 #ff244247;animation:ai-built-breathe 1.9s ease-in-out infinite}@keyframes ai-built-breathe{0%,to{box-shadow:0 0 #ff244238}50%{box-shadow:0 0 0 7px #ff244200}}.block-ai-panel{display:grid;gap:10px;padding:12px;border:1px solid #ffc4cd;border-left:3px solid var(--red);border-radius:6px;background:#fffafb;box-shadow:0 8px 22px #572f3412}.block-ai-panel-head,.block-ai-panel-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.block-ai-panel-head strong{color:var(--ink);font-size:13px}.block-ai-panel-head span{color:var(--muted);font-size:11px}.block-ai-panel textarea{width:100%;min-height:104px;border:1px solid #e7c9cd;border-radius:5px;padding:10px 11px;color:var(--ink);background:#fff;font:inherit;font-size:12px;line-height:1.6;resize:vertical}.block-ai-panel textarea:focus{border-color:var(--red);outline:3px solid rgba(255,36,66,.08)}.block-ai-panel-actions{justify-content:flex-end}.block-ai-panel-actions .primary-btn,.image-block-prompt-grid .primary-btn{min-height:34px;padding:0 16px}.image-block-prompt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.image-block-prompt-grid>label{display:grid;align-content:start;gap:7px;min-width:0}.image-block-prompt-grid>label>span{color:var(--ink);font-size:12px;font-weight:700}.image-block-prompt-grid .primary-btn{justify-self:end}@media(max-width:859px){.image-block-prompt-grid{grid-template-columns:1fr}.block-ai-panel-head{align-items:flex-start;flex-direction:column;gap:3px}}.empty-state{min-height:460px;display:grid;place-content:center;justify-items:center;text-align:center;gap:12px;padding:28px}.empty-state span{color:var(--muted)}.hidden{display:none!important}.viral-heading,.viral-heading-actions,.viral-panel-head,.viral-score-head,.viral-atom-meta,.viral-compose-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.viral-heading{align-items:flex-end}.viral-heading-actions,.viral-compose-actions{justify-content:flex-start;flex-wrap:wrap}.viral-workbench{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,.75fr);gap:16px;align-items:start}.performance-form label{min-width:0;color:var(--muted);font-size:12px;font-weight:700}.viral-atom-tools input,.viral-atom-tools select,.performance-form input{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:7px;padding:8px 9px;color:var(--ink);background:#fffdfa}.viral-analysis-column,.viral-compose-column{min-width:0;display:grid;gap:16px}.viral-panel{padding:18px;border:1px solid var(--line);border-radius:8px;background:#fff}.viral-panel-head{align-items:flex-start;padding-bottom:14px;border-bottom:1px solid var(--line)}.viral-panel-head h3{margin:4px 0 0}.viral-analysis-panel>summary{cursor:pointer;list-style:none}.viral-analysis-panel>summary::-webkit-details-marker{display:none}.viral-analysis-panel>summary:after{content:"⌄";margin-left:8px;color:var(--muted);font-size:20px;line-height:1;transition:transform .16s ease}.viral-analysis-panel[open]>summary:after{transform:rotate(180deg)}.viral-analysis-panel:not([open])>summary{padding-bottom:0;border-bottom:0}.viral-empty{padding:22px 4px 8px;color:var(--muted);line-height:1.7}.viral-summary{margin:16px 0;padding-left:12px;border-left:3px solid var(--red);color:var(--ink);line-height:1.7}.viral-analysis-facts{display:grid;gap:5px;margin-bottom:14px;color:var(--muted);font-size:12px;line-height:1.55}.viral-visual-result{margin-top:16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f8faf8}.viral-visual-head,.viral-visual-label,.viral-visual-template-status{display:flex;align-items:center;justify-content:space-between;gap:12px}.viral-visual-head{padding:14px;border-bottom:1px solid var(--line)}.viral-visual-head strong,.viral-visual-label strong{display:block;margin-top:3px}.viral-visual-block{padding:14px}.viral-visual-block+.viral-visual-block{border-top:1px solid var(--line)}.viral-visual-label span,.viral-visual-template-status>span:not(.template-source-badge){color:var(--muted);font-size:12px;line-height:1.5}.viral-visual-strip{display:grid;grid-auto-flow:column;grid-auto-columns:112px;gap:10px;margin-top:12px;overflow-x:auto;padding-bottom:4px}.viral-visual-strip button{width:112px;padding:0;border:1px solid var(--line);background:#fff;cursor:zoom-in}.viral-visual-strip img{display:block;width:100%;aspect-ratio:3 / 4;object-fit:cover}.viral-visual-strip.rendered img{object-fit:contain}.viral-visual-template-status{margin-top:12px}.viral-visual-empty{color:var(--muted);font-size:12px}.viral-template-ai-editor{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.viral-template-ai-editor label{display:grid;gap:7px;color:#4d4642;font-size:13px;font-weight:700}.viral-template-ai-editor textarea{min-height:130px;resize:vertical}.viral-template-schema-summary{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:7px;background:#fff}.viral-template-schema-pages{display:grid;gap:8px}.viral-template-schema-pages article{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px;align-items:start}.viral-template-schema-pages article>span{color:var(--muted);font-size:12px;font-weight:800}.viral-template-schema-pages article>div{display:flex;flex-wrap:wrap;gap:5px}.viral-template-schema-pages em{padding:4px 6px;border-radius:5px;color:#5f5650;background:#f4f1ed;font-size:11px;font-style:normal}.viral-template-ai-grid{display:grid;grid-template-columns:minmax(120px,180px) minmax(150px,220px) minmax(180px,1fr);gap:10px;align-items:end}.viral-template-ai-checkbox{display:flex!important;align-items:center;gap:8px!important;min-height:44px}.viral-template-ai-checkbox input{width:18px;height:18px}.viral-score-grid{display:grid;grid-template-columns:repeat(5,minmax(92px,1fr));gap:8px}.viral-score{min-width:0;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fffdfa}.viral-score-head span,.viral-atom-meta,.viral-evidence,.viral-unknowns{color:var(--muted);font-size:12px}.viral-score-head strong{font-size:20px}.viral-score-track{height:5px;margin-top:8px;overflow:hidden;border-radius:3px;background:#eee7e1}.viral-score-track span{display:block;height:100%;background:var(--red)}.viral-reason-list,.viral-unknowns{display:grid;gap:8px;margin-top:14px}.viral-reason{padding:12px;border-top:1px solid var(--line)}.viral-reason:first-child{border-top:0}.viral-reason strong,.viral-reason span,.viral-evidence{display:block}.viral-reason span{margin-top:5px;color:var(--muted);font-size:13px}.viral-atom-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:14px}.viral-workbench-tabs{display:flex;gap:0;margin-bottom:16px;border-bottom:1px solid var(--line)}.viral-workbench-tabs button{min-height:46px;border:0;border-bottom:3px solid transparent;padding:0 20px;color:var(--muted);background:transparent;font-size:14px;font-weight:700}.viral-workbench-tabs button.active{border-bottom-color:var(--red);color:var(--ink)}.viral-library-workspace{min-width:0;padding:2px 0 12px}.four-library-flow{display:grid;grid-template-columns:repeat(2,minmax(145px,1fr));margin-top:14px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fffdfa}.visual-library-slot-flow{grid-template-columns:minmax(0,1fr)}.cover-template-import-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px;padding:12px;border:1px dashed var(--line);border-radius:7px;background:#fffaf8;color:var(--muted);font-size:12px}.compose-hint{margin:14px 0;padding:12px;border-left:3px solid var(--red);background:#fff6f6;color:var(--muted);font-size:13px;line-height:1.6}.library-slot{position:relative;display:grid;grid-template-rows:auto 108px minmax(118px,1fr) auto;min-width:0;min-height:300px;padding:12px;border-right:1px solid var(--line)}.library-slot:last-child{border-right:0}.library-slot.filled{background:#fff}.library-slot-index{color:var(--red);font-size:12px;font-weight:800}.library-slot-preview,.library-item-visual{display:grid;place-items:center;min-width:0;overflow:hidden;border:1px solid #ebe3dc;border-radius:7px;background:#f6f4f1}.library-slot-preview{height:108px;margin:8px 0 10px}.visual-library-slot{grid-template-rows:auto minmax(250px,320px) auto auto;min-height:430px}.visual-library-slot .library-slot-preview.full-preview{height:auto;min-height:250px;margin:8px 0 12px;padding:8px;background:#f3f1ee}.selected-template-gallery{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(180px,230px);gap:10px;width:100%;height:100%;overflow-x:auto;padding-bottom:4px}.selected-template-gallery.single{grid-auto-columns:minmax(0,1fr)}.selected-template-gallery button{min-width:0;height:100%;padding:0;border:1px solid #e5ded7;border-radius:6px;background:#fff;cursor:zoom-in}.selected-template-image-fallback{display:none;height:100%;place-content:center;justify-items:center;gap:8px;color:#918b85;background:#f5f3f1}.selected-template-image-fallback svg{width:24px;height:24px}.selected-template-image-fallback em{font-size:11px;font-style:normal}.selected-template-gallery button.is-missing{cursor:default}.selected-template-gallery button.is-missing .selected-template-image-fallback{display:grid}.selected-template-gallery img{display:block;width:100%;height:100%;min-height:230px;object-fit:contain}.visual-template-carousel{position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:4px;width:100%;height:100%;min-height:0;overflow:hidden;padding:6px}.visual-template-carousel.single{grid-template-rows:minmax(0,1fr)}.visual-template-carousel>button[data-library-preview-image]{display:none;min-width:0;height:100%;padding:0;border:1px solid #e5ded7;border-radius:6px;background:#fff;cursor:pointer}.visual-template-carousel>button[data-library-preview-image].active{display:block}.visual-template-carousel img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}.library-slot-preview img,.library-item-visual img{width:100%;height:100%;object-fit:cover}.library-text-preview{display:-webkit-box;overflow:hidden;padding:10px;color:#4f4b48;font-size:12px;line-height:1.55;text-align:left;-webkit-box-orient:vertical;-webkit-line-clamp:4}.library-slot-copy{min-width:0}.library-slot-copy span,.library-slot-copy strong,.library-slot-copy small,.library-slot-copy em{display:block}.library-slot-copy span{color:var(--muted);font-size:11px;font-weight:800}.library-slot-copy strong{min-height:40px;margin-top:5px;overflow:hidden;font-size:14px;line-height:1.45}.library-slot-copy small{min-height:34px;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.5}.library-slot-copy em,.library-item-card em{margin-top:6px;color:#7a746f;font-size:10px;font-style:normal}.library-slot-actions{display:grid;grid-template-columns:1fr;gap:6px;width:100%;margin-top:10px}.library-slot-actions:has([data-clear-library-kind]){grid-template-columns:1fr 1fr}.library-combination-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding-top:12px}.library-compatibility{display:grid;gap:6px;padding-top:12px}.library-compatibility span{padding:8px 10px;border-left:3px solid #c9bfae;background:#f7f5f2;color:#5c5752;font-size:12px;line-height:1.5}.library-compatibility .success{border-left-color:#25845f;background:#eff8f3;color:#23694f}.library-compatibility .warning{border-left-color:#d69a24;background:#fff8e8;color:#775818}.status-pill.warning{color:#775818;background:#fff2cc}.library-shelf{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.library-shelf-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.library-shelf-head span{color:var(--muted);font-size:12px}.library-shelf-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.library-manage-btn{padding:5px 8px;border-radius:6px;color:#6b625c;background:#fff}#section-viral .library-shelf-head.is-editing{align-items:flex-start}.visual-library-edit-toolbar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.visual-library-select-all{min-height:32px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border:1px solid var(--line);border-radius:6px;color:#625b56;background:#fff;font-size:11px;font-weight:700;cursor:pointer}.visual-library-select-all input,.visual-template-check input{width:15px;height:15px;margin:0;accent-color:var(--red)}.visual-library-select-all:has(input:disabled){opacity:.5;cursor:not-allowed}.visual-library-selected-count{min-width:64px;color:var(--muted);font-size:11px;font-weight:700;text-align:center}.visual-library-edit-final-actions{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.library-edit-done-btn{color:#fff;border-color:var(--ink);background:var(--ink)}#section-viral .visual-template-card.is-editing{cursor:pointer}#section-viral .visual-template-card.is-editing:hover{transform:none}#section-viral .visual-template-card.is-batch-selected{border-color:var(--red);box-shadow:0 0 0 2px #ff24422e,0 8px 22px #2d27231a}#section-viral .visual-template-card.is-editing .visual-template-card-preview{pointer-events:none}.visual-template-edit-controls{position:absolute;z-index:4;top:16px;right:16px;left:16px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.visual-template-check,.visual-template-delete-btn,.visual-template-item-actions{pointer-events:auto}.visual-template-check{min-height:30px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border:1px solid rgba(255,255,255,.9);border-radius:6px;color:#312c29;background:#fffffff0;box-shadow:0 3px 12px #2d272324;font-size:11px;font-weight:800}.visual-template-item-actions{display:inline-flex;align-items:center;gap:6px}.visual-template-edit-btn,.visual-template-delete-btn{min-height:30px;background:#fffffff5;box-shadow:0 3px 12px #2d27231f}.visual-template-delete-btn{background:#fff7f8f5}@media(max-width:680px){#section-viral .library-shelf-head.is-editing{align-items:stretch;flex-direction:column}.visual-library-edit-toolbar{justify-content:flex-start}}#section-intake,#section-original,#section-viral,#section-image,#section-publish{--work-surface: #ffffff;--work-subtle: #f8f9fb;--work-line: #e1e4e9;--work-line-strong: #d3d7de;--work-ink-soft: #555b66}#section-intake .entry-grid,#section-original .entry-grid{min-height:100%;gap:12px}#section-intake .entry-card,#section-original .entry-card{position:relative;overflow:hidden;border:1px solid var(--work-line);background:var(--work-surface);box-shadow:0 5px 18px #17191e0b}#section-intake .entry-card:before,#section-original .entry-card:before{content:"";position:absolute;inset:0 0 auto;z-index:1;height:3px;background:var(--entry-accent, var(--red))}#section-intake .entry-card:nth-child(1){--entry-accent: var(--red);--entry-accent-soft: #fff2f4;--entry-accent-ink: #c51e39}#section-intake .entry-card:nth-child(2){--entry-accent: #3976d3;--entry-accent-soft: #f1f6fd;--entry-accent-ink: #285fae}#section-intake .entry-card:nth-child(3){--entry-accent: #168a64;--entry-accent-soft: #eff8f5;--entry-accent-ink: #116d50}#section-intake .entry-card:hover,#section-original .entry-card:hover{border-color:var(--work-line-strong);box-shadow:0 14px 34px #17191e14}#section-intake .entry-card-icon,#section-original .entry-card-icon{border-color:color-mix(in srgb,var(--entry-accent) 20%,white);color:var(--entry-accent-ink);background:var(--entry-accent-soft)}#section-intake .entry-kicker,#section-original .entry-kicker{color:var(--entry-accent-ink)}#section-intake .entry-card-head h3,#section-original .entry-card-head h3{font-size:17px;letter-spacing:0}#section-intake .entry-meta,#section-original .entry-meta{min-height:18px;color:#747984;font-size:11px}#section-intake textarea,#section-original textarea{border-color:var(--work-line);background:#fbfcfd}#section-intake .upload-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#section-intake .upload-row .file-btn{min-width:0;padding-inline:9px}#section-intake .entry-card:not(.entry-card-primary) .primary-btn,#section-intake .entry-card:not(.entry-card-primary) .ghost-btn{box-shadow:none}#section-viral .viral-library-workspace{min-height:100%}#section-viral .library-shelf{margin:0;padding:0 0 20px}#section-viral .library-shelf-head{min-height:48px;margin:0 0 10px;padding:8px 10px 8px 12px;border:1px solid var(--work-line);border-radius:7px;background:var(--work-surface);box-shadow:0 3px 12px #17191e09}#section-viral .library-shelf-head strong{position:relative;padding-left:12px;color:#282b31;font-size:13px}#section-viral .library-shelf-head strong:before{content:"";position:absolute;left:0;top:50%;width:3px;height:16px;border-radius:2px;background:var(--red);transform:translateY(-50%)}#section-viral .topic-library-tools{grid-template-columns:minmax(260px,1fr) minmax(142px,170px) minmax(142px,170px) auto;gap:7px;margin:0 0 12px;padding:10px;border:1px solid var(--work-line);border-radius:7px;background:var(--work-subtle)}#section-viral .topic-library-tools input,#section-viral .topic-library-tools select{min-height:38px;border-color:var(--work-line-strong);background:#fff}#section-viral .topic-filter-status{min-height:38px;padding-inline:4px}#section-viral .library-card-grid,#section-viral .topic-package-grid,#section-viral .visual-template-grid{gap:12px}#section-viral .library-item-card,#section-viral .visual-template-card{border:1px solid var(--work-line);border-top:3px solid var(--library-accent, #aeb3bd);background:#fff;box-shadow:0 4px 14px #17191e0b}#section-viral .library-item-card:hover,#section-viral .visual-template-card:hover{border-color:color-mix(in srgb,var(--library-accent, var(--red)) 54%,#d7dae0);border-top-color:var(--library-accent, var(--red));box-shadow:0 12px 28px #17191e16}#section-viral .topic-package-main{padding:13px 13px 10px}#section-viral .topic-package-main>strong{margin-top:9px;color:#26292f;font-size:14px}#section-viral .topic-card-focus{margin-top:10px;padding-top:10px;border-top:1px solid #eef0f3}#section-viral .topic-package-actions{padding:9px 12px 12px;border-top-color:#e7e9ed;background:#fbfcfd}#section-viral .topic-package-actions .primary-btn{min-height:34px;box-shadow:none}#section-viral .visual-template-card-copy{border-top:1px solid #eaecf0;background:#fff}#section-viral .visual-template-card-preview{background:#f3f5f7}#section-viral .visual-library-empty,#section-viral .topic-filter-empty{min-height:280px;border:1px dashed #cfd3da;border-radius:7px;background:#fafbfc}#section-image .image-studio{gap:14px}#section-image .generator-panel,#section-image .generated-section,#section-image .image-template-shelf{overflow:hidden;border:1px solid var(--work-line);border-radius:8px;background:var(--work-surface);box-shadow:0 5px 18px #17191e0b}#section-image .generator-panel{padding:0}#section-image .image-template-selection,#section-image .image-generation-mode{margin:0;border:0;border-bottom:1px solid var(--work-line);border-radius:0;background:#fafbfc}#section-image .image-template-selection{min-height:76px;padding:12px 16px}#section-image .image-generation-mode{padding:10px 16px}#section-image .image-composer-fields{gap:0;border-bottom:1px solid var(--work-line)}#section-image .image-task-fields,#section-image .image-composer-fields>.image-visual-field{padding:14px 16px 16px}#section-image .image-composer-fields>.image-visual-field{border-left:1px solid var(--work-line)}#section-image .image-studio-controls{margin:0;padding:10px 14px;background:#fafbfc}#section-image .image-generation-actions{margin-left:auto}#section-image #generateImageBtn{min-width:132px;box-shadow:0 7px 16px #ff2b4e26}#section-image .generated-section,#section-image .image-template-shelf{padding:0}#section-image .generated-section-head,#section-image .image-template-shelf-head{min-height:54px;margin:0;padding:10px 14px;border-bottom:1px solid var(--work-line);background:#fafbfc}#section-image .generated-grid,#section-image .style-template-grid{padding:14px}#section-image .generated-grid:has(.generated-empty){padding:14px}#section-image .generated-empty{min-height:210px;border:1px dashed #cfd3da;border-radius:7px;background:#fafbfc}#section-image .image-template-card,#section-image .generated-card{border-color:var(--work-line);border-radius:7px;box-shadow:0 3px 12px #17191e0b}#section-image .image-template-card:hover,#section-image .generated-card:hover{border-color:var(--work-line-strong);box-shadow:0 12px 26px #17191e14}#section-publish.active{display:grid;grid-template-rows:auto minmax(0,1fr);align-content:start}#section-publish .publish-toolbar{min-height:56px;margin:0 0 12px;padding:8px 10px;border:1px solid var(--work-line);border-radius:7px;background:#fff;box-shadow:0 3px 12px #17191e09}#section-publish .publish-toolbar .danger-btn{min-height:36px;margin-left:auto;border-color:#f1ccd2;background:#fff7f8}#section-publish .publish-list{min-height:0;grid-auto-rows:max-content;align-content:start;overflow-y:auto}#section-publish #publishList>.empty-state{min-height:min(470px,56vh);border:1px dashed #cfd3da;border-radius:8px;background:#fafbfc}#section-publish #publishList>.empty-state:before{content:"";width:42px;height:42px;border:1px solid #f0c8cf;border-radius:8px;background:#fff2f4;box-shadow:inset 0 0 0 11px #fff}#section-publish #publishList>.empty-state strong{margin-top:2px;color:#2a2d33;font-size:15px}#section-publish .publish-item{border-color:var(--work-line);background:#fff}#section-publish .publish-item:hover{border-color:var(--work-line-strong);box-shadow:0 10px 24px #17191e12}@media(max-width:1280px){#section-viral .topic-library-tools{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(132px,160px))}#section-viral .topic-filter-status{grid-column:1 / -1;justify-content:flex-end}}@media(max-width:820px){#section-intake .entry-grid{min-height:auto}#section-intake .upload-row,#section-image .image-composer-fields,#section-viral .topic-library-tools{grid-template-columns:1fr}#section-viral .topic-filter-status{grid-column:auto;justify-content:flex-start}#section-viral .library-card-grid,#section-viral .topic-package-grid,#section-viral .visual-template-grid,#section-image .style-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#section-image .image-composer-fields>.image-visual-field{border-top:1px solid var(--work-line);border-left:0}#section-publish .publish-toolbar{align-items:stretch}#section-publish .publish-toolbar .primary-btn,#section-publish .publish-toolbar .danger-btn{min-width:0;flex:1 1 0;margin-left:0}.modal{padding:10px}.modal-card,.ai-config-card{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.ai-config-card{width:calc(100vw - 20px);height:calc(100dvh - 20px)}.ai-config-title,.ai-config-main,.ai-config-actions{padding-inline:16px}.ai-config-status-tabs{grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:0}.ai-config-status-tabs button:nth-child(3){border-left:0;border-top:1px solid #e6e8ec}.ai-config-status-tabs button:nth-child(4){border-top:1px solid #e6e8ec}.model-config-grid{grid-template-columns:1fr}}.topic-package-editor-card,.compact-template-editor-card{display:grid;grid-template-rows:auto auto minmax(0,1fr)}.topic-package-editor-card{height:min(860px,calc(100dvh - 48px))}.compact-template-editor-card:not(.image-template-editor-card){height:min(640px,calc(100dvh - 48px))}.image-template-editor-card{height:min(820px,calc(100dvh - 48px))}.topic-package-editor-card>form,.compact-template-editor-card>form{height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;padding:0;overflow:hidden;background:#f8f9fb}.topic-package-form>.modal-form-scroll,.compact-template-editor-form>.modal-form-scroll{min-height:0;overflow-x:hidden;overflow-y:auto;padding:18px 26px 22px;scrollbar-gutter:stable}.topic-package-form>.modal-form-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-template-editor-form>.modal-form-scroll{display:grid;gap:12px}.image-template-editor-form>.modal-form-scroll{display:block}.topic-package-editor-card .topic-package-editor-actions,.compact-template-editor-card .compact-template-editor-actions{position:static;margin:0;padding:12px 26px}@media(max-width:820px){.topic-package-editor-card,.compact-template-editor-card,.image-template-editor-card{height:calc(100dvh - 20px)}.topic-package-form>.modal-form-scroll{grid-template-columns:1fr}}@media(max-width:540px){#section-viral .library-card-grid,#section-viral .topic-package-grid,#section-viral .visual-template-grid,#section-image .style-template-grid{grid-template-columns:1fr}}.library-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.visual-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.visual-template-card .library-item-select{padding:8px}.visual-template-card{border-radius:10px}.visual-template-card .library-item-visual{min-height:176px;aspect-ratio:4 / 5;border-radius:7px;background:#f3f1ee;overflow:hidden}.visual-template-card .library-item-select>strong{margin-top:7px;font-size:13px}.visual-template-card .library-item-select>small{margin-top:4px;color:var(--library-ink)}.visual-template-card .library-select-state{margin-top:7px;border-top:0;padding-top:0;color:var(--library-ink);text-align:left}.topic-library-tools{display:grid;grid-template-columns:minmax(220px,1fr) minmax(132px,160px) minmax(132px,160px) auto;align-items:center;gap:8px;margin-bottom:10px}.topic-library-tools input,.topic-library-tools select{min-width:0;border:1px solid var(--line);border-radius:7px;padding:9px 10px;color:var(--ink);background:#fff}.selected-template-gallery-nav{position:absolute;top:50%;right:6px;left:6px;z-index:2;display:flex;align-items:center;justify-content:space-between;transform:translateY(-50%);pointer-events:none}.gallery-arrow,.image-viewer-nav{width:28px;height:28px;border:1px solid rgba(117,105,96,.32);border-radius:50%;color:var(--ink);background:#ffffffad;box-shadow:0 2px 8px #2d27231f;font-size:20px;line-height:1;cursor:pointer}.selected-template-gallery-nav .gallery-arrow{pointer-events:auto;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.gallery-arrow:hover,.image-viewer-nav:hover{border-color:#b9aaa0;background:#faf7f4}.selected-template-gallery-dots,.image-viewer-dots{display:flex;justify-content:center;gap:5px}.gallery-dot,.image-viewer-dot{width:6px;height:6px;padding:0;border:0;border-radius:50%;background:#d8d2cc;cursor:pointer}.gallery-dot.active,.image-viewer-dot.active{background:#ef5b72;transform:scale(1.25)}.topic-package-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(218px,auto);align-items:stretch}#section-viral .topic-package-card{min-height:218px;display:flex;flex-direction:column;overflow:visible;background:#fff}.topic-package-main{flex:1 1 auto;padding:14px 14px 10px}.topic-package-heading,.topic-package-actions{display:flex;align-items:center;gap:6px}.topic-package-heading{justify-content:space-between}.topic-package-heading span,.topic-package-heading em{color:var(--library-ink, var(--muted));font-size:10px;font-style:normal;font-weight:800}.topic-package-heading-labels>span{max-width:calc(100% - 58px);overflow:hidden;padding:4px 6px;border-radius:4px;background:var(--library-chip, #f3f1ee);text-overflow:ellipsis;white-space:nowrap}.library-manage-actions,.image-template-manage-actions{display:inline-flex;align-items:center;gap:8px}.topic-package-heading-labels{display:flex;min-width:0;align-items:center;gap:6px}.topic-package-heading-labels>span{flex:0 1 auto}.topic-package-heading .reverse-topic-mode-badge{display:inline-flex;min-height:22px;flex:0 0 auto;align-items:center;gap:4px;padding:3px 6px;border:1px solid transparent;border-radius:4px;font-size:9px;line-height:1;white-space:nowrap}.topic-package-heading .reverse-topic-mode-badge.focused{border-color:#b9d5cc;color:#176b57;background:#edf7f3}.topic-package-heading .reverse-topic-mode-badge.broad{border-color:#e3cf9a;color:#72530c;background:#fff8e5}.reverse-topic-mode-badge .lucide{width:11px;height:11px}.reverse-topic-source-ledger{margin-top:10px;border-top:1px solid #e3ebe7;border-bottom:1px solid #e3ebe7;background:#fbfdfc}.reverse-topic-source-ledger-head,.reverse-topic-source-line{display:flex;min-width:0;align-items:center}.reverse-topic-source-ledger-head{justify-content:space-between;gap:8px;padding:6px 8px 5px;color:#477065;font-size:9px;font-weight:800}.reverse-topic-source-ledger-head em{color:#81918c;font-size:9px;font-style:normal;font-weight:700}.reverse-topic-source-lines{max-height:76px;overflow:auto;scrollbar-width:thin;scrollbar-color:#bdd1ca transparent}.reverse-topic-source-line{display:grid;grid-template-columns:14px minmax(0,1fr) auto;gap:5px;min-height:25px;padding:4px 8px;border-top:1px solid #edf1ef;color:#4d5955}.reverse-topic-source-line .lucide{width:12px;height:12px;color:#39816c}.reverse-topic-source-line span{overflow:hidden;font-size:9px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.reverse-topic-source-line em{color:#737e7a;font-size:9px;font-style:normal;white-space:nowrap}.reverse-topic-source-line.is-empty{grid-template-columns:14px minmax(0,1fr);color:#8a817d}.topic-package-heading .library-card-selected-badge{flex:0 0 auto;color:var(--red-dark)}#section-viral .library-card-selected-badge{flex:0 0 auto;border:1px solid #ff7d92;border-radius:999px;padding:5px 10px;color:#aa102b;background:#ffe0e6;box-shadow:0 2px 7px #aa102b29;font-size:12px;font-style:normal;font-weight:900;line-height:1}.topic-package-main>strong{min-height:42px;display:-webkit-box;overflow:hidden;margin-top:10px;color:#24262b;font-size:15px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.topic-card-focus{display:grid;gap:8px;margin-top:12px}.topic-card-focus>div{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:8px}.topic-card-focus span,.topic-card-focus p{margin:0;font-size:11px;line-height:1.5}.topic-card-focus span{color:#969ba4;font-weight:800}.topic-card-focus p{display:-webkit-box;overflow:hidden;color:#5e626b;-webkit-box-orient:vertical;-webkit-line-clamp:2}.topic-card-focus>.primary p{color:#30333a;font-weight:700}.topic-fact-status{display:inline-block;margin-top:10px;font-weight:800}.topic-fact-status.ready{color:#23694f;background:#eff8f3}.topic-fact-status.missing{color:#775818;background:#fff8e8}.topic-package-actions{position:relative;flex:0 0 auto;flex-wrap:nowrap;padding:10px 14px 14px;border-top:1px solid #eceef1;background:#fff}.topic-package-actions .primary-btn{min-height:36px;flex:1 1 auto}.topic-card-more{position:relative;flex:0 0 auto}.topic-card-more>summary{width:36px;height:36px;display:grid;place-items:center;border:1px solid #e1e3e8;border-radius:6px;color:#666b74;background:#fff;font-size:16px;font-weight:800;line-height:1;list-style:none;cursor:pointer}.topic-card-more>summary::-webkit-details-marker{display:none}.topic-card-more>summary:hover,.topic-card-more[open]>summary{border-color:#cfd2d8;background:#f7f8fa}.topic-card-more[open]{z-index:20}.topic-card-menu{position:absolute;right:0;bottom:calc(100% + 6px);width:104px;display:grid;gap:2px;padding:5px;border:1px solid #dfe1e6;border-radius:6px;background:#fff;box-shadow:0 12px 28px #17191e29}.topic-card-menu .mini-btn{width:100%;min-height:32px;justify-content:flex-start;border:0;padding:0 9px;color:#454a53;background:transparent;box-shadow:none;text-align:left}.topic-card-menu .mini-btn:hover{background:#f5f6f8}.topic-card-menu .danger-btn{color:#b22a3e}.library-template-actions{display:flex;justify-content:flex-end;padding:0 9px 9px;background:#fff}.library-template-actions .danger-btn{width:100%}.modal-card.topic-package-editor-card{width:min(1180px,calc(100vw - 56px));max-height:none;padding:30px 32px 32px;overflow:visible;text-align:left}.topic-package-editor-card h2{margin:3px 0 0;padding-bottom:18px;border-bottom:1px solid var(--line);font-size:22px;text-align:left}.topic-package-editor-card>.eyebrow{text-align:left}.topic-package-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin-top:22px}.topic-package-form label{min-width:0;color:var(--ink);font-size:12px;font-weight:800}.topic-package-form .wide{grid-column:1 / -1}.topic-package-form input,.topic-package-form select,.topic-package-form textarea{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:7px;padding:11px 12px;color:var(--ink);background:#fffdfa;resize:vertical}.topic-package-form input,.topic-package-form select{min-height:44px}.topic-package-form textarea[rows="2"]{min-height:92px}.topic-package-form textarea[rows="3"]{min-height:118px}.topic-package-form textarea[rows="4"]{min-height:152px}#topicPackageModal{place-items:start center;padding-block:28px}.topic-package-editor-actions{display:flex;justify-content:flex-end;gap:8px}.compact-template-editor-card{width:min(620px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;text-align:left}.compact-template-editor-card>.eyebrow,.compact-template-editor-card>h2{text-align:center}.compact-template-editor-card>h2{margin:0 0 16px}.compact-template-editor-form{display:grid;gap:12px}.compact-template-editor-form label{min-width:0;color:var(--ink);font-size:12px;font-weight:800}.compact-template-editor-form input,.compact-template-editor-form select,.compact-template-editor-form textarea{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:7px;padding:9px 10px;color:var(--ink);background:#fffdfa;resize:vertical}.compact-template-editor-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.library-item-card{min-width:0;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fff;overflow:hidden}#section-viral .library-item-card.topic-library-card{--library-accent: #e1a72d;--library-tint: #fffdf6;--library-chip: #f8edc9;--library-ink: #755612;border-top:3px solid var(--library-accent)}#section-viral .library-item-card.title-library-card{--library-accent: #6c83d8;--library-tint: #f9fbff;--library-chip: #e8edff;--library-ink: #465a9a;border-top:3px solid var(--library-accent)}#section-viral .library-item-card.cover-library-card{--library-accent: #ef8b7c;--library-tint: #fff8f7;--library-chip: #ffe4df;--library-ink: #9a4c40;border-top:3px solid var(--library-accent)}#section-viral .library-item-card.inner-library-card{--library-accent: #58a989;--library-tint: #f4fbf7;--library-chip: #dff2e8;--library-ink: #38765c;border-top:3px solid var(--library-accent)}#section-viral .library-item-card[class*=-library-card] .library-item-select,#section-viral .library-item-card[class*=-library-card] .topic-package-main{background:var(--library-tint)}#section-viral .library-item-card[class*=-library-card] .library-select-state{border-top-color:color-mix(in srgb,var(--library-accent) 30%,transparent);color:var(--library-ink)}#section-viral .library-item-card[class*=-library-card] .topic-package-pillars span,#section-viral .library-item-card[class*=-library-card] .library-item-select>em{display:inline-block;width:fit-content;border-radius:5px;padding:4px 6px;color:var(--library-ink);background:var(--library-chip)}#section-viral .library-item-card[class*=-library-card]:hover,#section-viral .library-item-card[class*=-library-card].selected{border-color:color-mix(in srgb,var(--library-accent) 72%,white);border-top-color:var(--library-accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--library-accent) 20%,transparent)}.library-item-card:hover,.library-item-card.selected{border-color:#ff8c9c;box-shadow:inset 0 0 0 1px #ffccd4}.library-item-select{display:grid;width:100%;min-width:0;border:0;padding:9px;color:var(--ink);background:#fff;text-align:left}.library-item-card.selected .library-item-select{background:#fff7f8}.library-item-card .library-item-visual{width:100%;height:auto;aspect-ratio:3 / 4}.library-item-card .library-item-visual img{object-fit:contain}.library-item-select>strong{margin-top:8px;overflow:hidden;font-size:13px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.library-item-select>small{display:-webkit-box;overflow:hidden;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}.library-select-state{margin-top:9px;border-top:1px solid var(--line);padding-top:8px;color:var(--red);font-size:11px;font-weight:800;text-align:center}.library-card-details{border-top:1px solid var(--line);background:#fffdfa}.library-card-details>summary{padding:10px;cursor:pointer;color:#5f5954;font-size:11px;font-weight:800;text-align:center}.library-card-detail-body{display:grid;gap:12px;padding:0 10px 12px}.library-card-metadata{display:grid;gap:8px;margin:0}.library-card-metadata div,.library-stored-section{min-width:0}.library-card-metadata dt,.library-original-preview>strong,.library-stored-section>strong{color:#817a74;font-size:10px;font-weight:800}.library-card-metadata dd,.library-stored-section p{margin:3px 0 0;overflow-wrap:anywhere;color:#4f4a46;font-size:10px;line-height:1.55}.library-original-preview>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:7px}.library-original-preview button{min-width:0;border:1px solid var(--line);border-radius:5px;padding:3px;background:#f4f1ed}.library-original-preview img{display:block;width:100%;aspect-ratio:3 / 4;object-fit:contain}.library-stored-section pre{max-height:180px;margin:6px 0 0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#4f4a46;font-family:inherit;font-size:10px;line-height:1.55}.viral-advanced-panel{margin-top:14px;border-top:1px solid var(--line)}.standalone-advanced-panel{margin-top:0;border-top:0}.viral-advanced-panel summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 0;cursor:pointer;font-weight:800}.standalone-advanced-panel summary{padding-top:0}.viral-combination-tray{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8faf8}.viral-combination-tray strong{display:block;margin-top:3px}.viral-atom-tools{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:8px;padding-top:12px}.viral-atom{position:relative;min-width:0;padding:13px 13px 13px 40px;border:1px solid var(--line);border-radius:7px;background:#fffdfa}.viral-atom-actions{display:flex;gap:6px;margin-top:9px}.viral-atom-actions button{min-height:28px;border:1px solid var(--line);border-radius:6px;padding:0 9px;color:var(--muted);background:#fff;font-size:12px}.viral-atom.favorite{border-color:#e0b43c;box-shadow:inset 3px 0 #e0b43c}.viral-atom:has(input:checked){border-color:#ff8c9c;background:#fff5f6}.viral-atom input{position:absolute;top:16px;left:14px}.viral-atom strong,.viral-atom-pattern{display:block}.viral-atom-pattern{margin:7px 0;color:var(--ink);font-size:13px;line-height:1.55}.viral-atom-meta{justify-content:flex-start}.viral-evidence{margin-top:7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sticky-compose{position:sticky;top:0}.viral-brief-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:14px}.viral-brief-form label{min-width:0;color:var(--ink);font-size:13px;font-weight:700}.viral-brief-form label.wide,.viral-brief-form button{grid-column:1 / -1}.viral-brief-form input,.viral-brief-form textarea{width:100%;margin-top:6px;border:1px solid var(--line);border-radius:7px;padding:10px 11px;color:var(--ink);background:#fffdfa;resize:vertical}.viral-compose-result{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.viral-plan-ready{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #cfe4d7;border-radius:8px;background:#f2f8f4}.viral-plan-ready>div,.viral-plan-ready strong{display:block}.viral-plan-ready strong{margin-top:4px}.viral-draft-plan{display:grid;gap:12px;padding:14px;border:1px solid #cfe4d7;border-radius:8px;background:#f2f8f4}.viral-visual-prompts{display:grid;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.viral-visual-prompts .visual-prompt-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.viral-visual-prompts .visual-prompt-head span{color:var(--ink);font-size:13px;font-weight:700}.viral-visual-prompts .visual-prompt-head small{color:var(--muted);font-size:11px}.visual-copy-plan{display:grid;gap:12px;padding:12px;border:1px solid #cfe4d7;border-radius:8px;background:#f5faf7}.visual-copy-plan-head,.visual-copy-page-head,.visual-copy-page label>span{display:flex;align-items:center;justify-content:space-between;gap:10px}.visual-copy-plan-head>div,.visual-copy-plan-head strong,.visual-copy-plan-head small{display:block}.visual-copy-plan-head strong{color:var(--ink);font-size:13px}.visual-copy-plan-head small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.5}.visual-copy-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.visual-copy-page{min-width:0;padding:10px;border:1px solid #d7e8dd;border-radius:6px;background:#fff}.visual-copy-page-head{margin-bottom:9px}.visual-copy-page-head strong{color:#315541;font-size:12px}.visual-copy-page-head>div{min-width:0}.visual-copy-page-head small{display:block;max-width:260px;margin-top:2px;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.visual-copy-page-head span,.visual-copy-page label>span,.visual-copy-page label em{color:var(--muted);font-size:11px;font-style:normal}.visual-copy-page label{display:grid;gap:5px;margin-top:8px}.visual-copy-slots{display:grid;gap:8px}.visual-copy-page input,.visual-copy-page textarea{width:100%;padding:8px 9px;border:1px solid #cbded2;border-radius:5px;color:var(--ink);background:#fff;font:inherit;font-size:12px;line-height:1.5;resize:vertical}.viral-visual-prompts>label{display:grid;gap:6px}.viral-visual-prompts>label>span{color:var(--muted);font-size:12px;font-weight:700}.viral-visual-prompts .visual-prompt-label{display:flex;align-items:center;justify-content:space-between;gap:8px}.viral-visual-prompts .visual-prompt-label .mini-ai-btn{width:26px;height:26px;font-size:12px}.viral-visual-prompts textarea{width:100%;min-height:120px;padding:10px 11px;border:1px solid #e6b7b7;border-radius:6px;color:var(--ink);background:snow;resize:vertical;line-height:1.55}@media(min-width:860px){.viral-visual-prompts{grid-template-columns:repeat(2,minmax(0,1fr))}.viral-visual-prompts .visual-prompt-head,.visual-copy-plan{grid-column:1 / -1}}@media(max-width:859px){.visual-copy-pages{grid-template-columns:1fr}.visual-copy-plan-head{align-items:flex-start}}.viral-draft-plan-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.viral-draft-plan-head>div,.viral-draft-plan-head strong{display:block}.viral-draft-plan-head strong{margin-top:4px}.viral-draft-selection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #d7e8dd;border-bottom:1px solid #d7e8dd}.viral-draft-selection-grid>div{min-width:0;padding:10px;border-right:1px solid #d7e8dd}.viral-draft-selection-grid>div:last-child{border-right:0}.viral-draft-selection-grid span,.viral-draft-selection-grid strong{display:block}.viral-draft-selection-grid span{color:var(--muted);font-size:11px}.viral-draft-selection-grid strong{margin-top:4px;overflow-wrap:anywhere;font-size:12px;line-height:1.45}.viral-draft-plan-stats{display:flex;flex-wrap:wrap;gap:7px}.viral-draft-plan-stats span{padding:5px 8px;border:1px solid #d7e8dd;border-radius:6px;color:#426352;background:#fff;font-size:11px}.viral-plan-error{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid #efb9b9;border-radius:6px;color:#8d2525;background:#fff5f5;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.viral-plan-error span{min-width:0}.viral-plan-error .mini-btn{flex:0 0 auto;border-color:#d98b8b;color:#7b2020;background:#fff}.viral-draft-reference-strip{display:grid;grid-auto-flow:column;grid-auto-columns:64px;gap:8px;overflow-x:auto}.viral-draft-reference-strip img{width:64px;height:84px;border:1px solid #d7e8dd;border-radius:6px;object-fit:cover}.viral-draft-prompts{border-top:1px solid #d7e8dd}.viral-draft-prompts summary{padding-top:10px;cursor:pointer;font-size:12px;font-weight:700}.viral-draft-prompts>label{display:block;padding:10px 0;border-bottom:1px solid #d7e8dd}.viral-draft-prompts textarea{width:100%;margin:6px 0 0;border:1px solid #cbded2;border-radius:6px;padding:9px;color:var(--muted);background:#fff;font-family:inherit;font-size:11px;line-height:1.6;resize:vertical}.planned-reference strong{color:#426352}.viral-variant-list{display:grid;gap:10px}.viral-variant{padding:12px;border:1px solid var(--line);border-radius:7px;background:#fffdfa}.viral-variant-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.viral-variant .viral-generated-copy{max-height:180px}.execution-plan-panel{display:grid;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.execution-plan-head,.execution-instruction-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.execution-plan-head>div,.execution-plan-head strong{display:block}.execution-plan-head strong{margin-top:4px}.execution-instruction{min-width:0;padding:12px;border:1px solid var(--line);border-radius:7px;background:#fffdfa}.execution-instruction pre{max-height:240px;margin:9px 0 0;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);font-family:inherit;font-size:12px;line-height:1.65}.execution-instruction pre.code{font-family:Consolas,Courier New,monospace;font-size:11px}.execution-trace{display:flex;flex-wrap:wrap;gap:6px;color:var(--muted);font-size:12px}.execution-trace span{padding:5px 7px;border:1px solid var(--line);border-radius:6px;background:#fff}.knowledge-plan-summary{gap:14px}.knowledge-scope-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:7px}.knowledge-scope-list span{min-width:0;padding:8px 9px;border-left:3px solid #2f765d;background:#f4f7f5;color:#29483c;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.knowledge-series-plan{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.knowledge-series-plan article{display:grid;gap:8px;padding:11px 0}.knowledge-series-plan article+article{border-top:1px solid var(--line)}.knowledge-series-plan .execution-plan-head{align-items:flex-start}.knowledge-series-plan .execution-plan-head strong{margin-top:0;font-size:13px;line-height:1.45}.knowledge-series-plan .execution-trace{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.knowledge-series-plan .execution-trace span{min-width:0;overflow-wrap:anywhere}.performance-form{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:8px;grid-column:1 / -1;padding-top:10px;border-top:1px solid var(--line)}.performance-form button,.performance-summary{align-self:end}.performance-summary{color:var(--muted);font-size:12px}.viral-generated-copy{margin:10px 0;max-height:260px;overflow:auto;white-space:pre-wrap;color:var(--ink);line-height:1.7}.tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tool-btn{min-height:92px;border:1px solid var(--line);border-radius:8px;background:#fffaf7;text-align:left;padding:14px}.tool-btn strong,.tool-btn span{display:block}.ai-generate-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;margin-top:2px}.template-import-btn{min-height:44px}.ai-generate-btn{min-height:44px;box-shadow:0 12px 24px #ff24422e}.ai-generate-btn.is-loading{cursor:wait;background:linear-gradient(90deg,#ff2442,#ff6b7e,#ff2442);background-size:220% 100%;animation:generation-progress 1.4s ease-in-out infinite}.generation-status{color:var(--muted);font-size:12px;line-height:1.5;min-height:18px}.generation-progress-head,.generation-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.generation-progress-head strong{color:var(--ink);font-size:13px}.generation-progress-head span,.generation-progress-meta span{color:var(--muted)}.generation-progress-track{height:8px;margin:8px 0 5px;overflow:hidden;border-radius:4px;background:#eee9e5}.generation-progress-track>span{display:block;width:0;height:100%;border-radius:inherit;background:var(--red);transition:width .25s ease}.generation-progress-track.indeterminate>span{width:38%;animation:generation-indeterminate 1.3s ease-in-out infinite}.generation-progress-meta b{color:var(--ink);font-size:11px}@keyframes generation-progress{0%{background-position:100% 0}to{background-position:-100% 0}}@keyframes generation-indeterminate{0%{transform:translate(-110%)}to{transform:translate(300%)}}.compact-actions{justify-content:flex-start}.modal-card.image-template-editor-card{width:min(620px,calc(100vw - 32px));max-height:min(calc(100dvh - 32px),900px);padding:26px 30px 22px}.image-template-editor-form{gap:18px}.image-template-editor-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:stretch}.image-template-editor-basics{display:grid;align-content:start;gap:12px;min-width:0}@media(max-width:760px){.modal-card.image-template-editor-card{width:min(620px,calc(100vw - 20px));padding:22px 18px 18px}.image-template-editor-layout{grid-template-columns:1fr}}.viral-prompt-task{display:flex;align-items:center;gap:9px;margin:8px 0 4px;color:var(--muted);font-size:12px}.viral-prompt-task.is-error strong{color:var(--red)}.viral-prompt-task-indicator{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px #ff24421a;animation:viral-prompt-task-pulse 1.2s ease-in-out infinite}.viral-prompt-task.is-complete .viral-prompt-task-indicator{background:#20865a;box-shadow:none;animation:none}.viral-prompt-task.is-error .viral-prompt-task-indicator{animation:none}.viral-prompt-task strong{min-width:0;color:var(--ink);font-size:13px;font-weight:650;overflow-wrap:anywhere}.viral-prompt-pure-ai{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;margin-left:auto;padding:5px 9px;color:var(--red);border-color:#ff244247;white-space:nowrap}.viral-prompt-pure-ai:hover{color:var(--red);background:#ff244212;border-color:#ff244273}.viral-prompt-pure-ai svg{width:14px;height:14px}@media(max-width:640px){.viral-prompt-task{align-items:flex-start;flex-wrap:wrap}.viral-prompt-task strong{flex:1 1 calc(100% - 25px)}.viral-prompt-pure-ai{margin-left:17px}}.global-brand{-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;border:0;border-radius:0;color:inherit;background:transparent;cursor:pointer}.global-brand:hover strong{color:var(--red-dark)}.global-brand:focus-visible{outline:3px solid rgba(255,43,78,.18);outline-offset:3px}.app-shell.home-mode{grid-template-columns:minmax(0,1fr)}.app-shell.home-mode .sidebar{display:none}.app-shell.home-mode .workspace{grid-column:1;padding:0}.app-shell.home-mode #workspaceQuickAction{display:none}#section-home.section.active{overflow-y:auto;padding:0;background:#f6f7f9;scrollbar-gutter:stable}.home-dashboard{width:min(1240px,calc(100% - 56px));margin:0 auto;padding:34px 0 42px}.ops-banner{width:min(1240px,calc(100% - 56px));margin:18px auto 0;display:flex;align-items:center;gap:10px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);font-size:13px}.ops-banner.hidden{display:none}.ops-banner--info{border-color:#f0c5ce;background:#fff7f8;color:var(--red-dark)}.ops-banner--warn{border-color:#f0dcb4;background:#fff8e9;color:#6f5014}.ops-banner i{width:15px;height:15px;flex:0 0 auto}.ops-banner-link{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.ops-banner-link:hover{text-decoration:underline}.home-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:48px;padding:4px 2px 30px;border-bottom:1px solid #dfe2e7}.home-kicker{display:inline-flex;align-items:center;gap:7px;color:var(--red-dark);font-size:11px;font-weight:800}.home-kicker .lucide{width:14px;height:14px}.home-intro h2{margin:11px 0 8px;color:#1d2026;font-size:30px;line-height:1.22}.home-intro p{max-width:620px;margin:0;color:#6f747d;font-size:13px;line-height:1.7}.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(86px,1fr));min-width:330px;margin:0}.home-metrics div{padding:2px 20px;border-left:1px solid #dfe2e7}.home-metrics dt{color:#878c95;font-size:10px;font-weight:700}.home-metrics dd{margin:7px 0 0;color:#24272d;font-family:Cascadia Mono,Consolas,monospace;font-size:25px;font-weight:750;line-height:1}.home-extension-callout{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:16px;margin-top:26px;padding:18px 20px;overflow:hidden;border:1px solid #f3b7c0;border-left:4px solid var(--red);border-radius:8px;background:#fff;box-shadow:0 10px 24px #d9163a14}.home-extension-icon{display:grid;width:46px;height:46px;place-items:center;border-radius:7px;color:#fff;background:var(--red)}.home-extension-icon .lucide{width:22px;height:22px}.home-extension-copy{min-width:0}.home-extension-label{display:inline-block;margin-bottom:4px;color:var(--red-dark);font-size:10px;font-weight:800}.home-extension-copy h3{margin:0;color:#24272d;font-size:16px}.home-extension-copy p{margin:5px 0 7px;color:#69707a;font-size:11px;line-height:1.55}.home-extension-meta{display:inline-flex;align-items:center;gap:5px;color:#777d86;font-size:10px;font-weight:700}.home-extension-meta .lucide{width:13px;height:13px;color:#386a8c}.home-extension-meta b{color:#c9cdd3}.home-extension-actions{display:flex;align-items:center;gap:12px}.home-extension-download,.home-extension-tutorial{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border-radius:6px;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}.home-extension-download{padding:0 14px;color:#fff;background:var(--red)}.home-extension-download:hover{color:#fff;transform:translateY(-1px);box-shadow:0 8px 18px #d9163a33}.home-extension-tutorial{padding:0;border:0;color:#626872;background:transparent}.home-extension-tutorial:hover{color:var(--red-dark)}.home-extension-actions .lucide{width:15px;height:15px}.home-paths{padding:28px 0 30px;border-bottom:1px solid #dfe2e7}.home-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:14px}.home-section-head span{display:block;margin-bottom:3px;color:#9a6670;font-size:9px;font-weight:800}.home-section-head h3{margin:0;color:#272a30;font-size:16px}.home-section-head>small{color:#8a8f98;font-size:10px}.home-path-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.home-path{position:relative;display:grid;grid-template-rows:auto 1fr auto auto;gap:19px;min-height:296px;padding:22px;overflow:hidden;border:1px solid #dfe2e7;border-radius:8px;background:#fff;box-shadow:0 8px 22px #17191e0b}.home-path:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--red)}.home-path-original:before{background:#30343b}.home-path-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.home-path-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:7px;color:#fff;background:var(--red)}.home-path-original .home-path-icon{background:#30343b}.home-path-icon .lucide{width:18px;height:18px}.home-path-tag{padding:5px 8px;border:1px solid #ffd6dc;border-radius:5px;color:var(--red-dark);background:#fff5f6;font-size:9px;font-weight:800}.home-path-original .home-path-tag{border-color:#dfe1e5;color:#565b64;background:#f6f7f8}.home-path h3{margin:0 0 7px;color:#22252b;font-size:20px}.home-path p{max-width:510px;margin:0;color:#737881;font-size:12px;line-height:1.7}.home-path-steps{display:grid;grid-template-columns:repeat(3,1fr);margin:0;padding:12px 0;border-top:1px solid #eceef1;border-bottom:1px solid #eceef1;list-style:none}.home-path-steps li{position:relative;display:flex;align-items:center;gap:7px;color:#737881;font-size:10px;font-weight:700;white-space:nowrap}.home-path-steps li:not(:last-child):after{content:"";position:absolute;right:11px;width:18px;height:1px;background:#d9dce1}.home-path-steps span{display:grid;width:20px;height:20px;place-items:center;border:1px solid #d9dce1;border-radius:50%;color:#777c85;background:#fff;font-size:9px}.home-path-action{display:inline-flex;align-items:center;justify-content:space-between;min-height:40px;padding:0 13px;border:0;border-radius:6px;color:#fff;background:var(--red);font-size:11px;font-weight:800}.home-path-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-path-actions .home-path-action{min-width:0}.home-path-action-image{color:#2f343b;background:#eef1f4}.home-path-action-image:hover{box-shadow:0 8px 18px #2f343b1f}.home-path-original .home-path-action{background:#30343b}.home-path-action:hover{transform:translateY(-1px);box-shadow:0 8px 18px #d9163a29}.home-path-original .home-path-action:hover{box-shadow:0 8px 18px #17191e29}.home-path-action .lucide{width:15px;height:15px}.home-lower-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:32px;padding-top:28px}.home-recent,.home-tools{min-width:0}.home-text-action{display:inline-flex;align-items:center;gap:5px;padding:5px 0;border:0;color:#747983;background:transparent;font-size:10px;font-weight:700}.home-text-action:hover{color:var(--red-dark)}.home-text-action .lucide{width:13px;height:13px}.home-recent-list{border-top:1px solid #dfe2e7}.home-recent-item{display:grid;grid-template-columns:32px minmax(0,1fr) auto 16px;align-items:center;gap:11px;width:100%;min-height:62px;padding:9px 4px;border:0;border-bottom:1px solid #e2e4e8;color:#25282e;background:transparent;text-align:left}.home-recent-item:hover{padding-inline:9px;background:#fff}.home-recent-icon{display:grid;width:32px;height:32px;place-items:center;border-radius:6px;color:var(--red-dark);background:#fff0f2}.home-recent-icon .lucide{width:15px;height:15px}.home-recent-copy{min-width:0}.home-recent-copy strong,.home-recent-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-recent-copy strong{font-size:11px}.home-recent-copy small{margin-top:4px;color:#858a93;font-size:9px}.home-recent-status{padding:4px 7px;border-radius:4px;color:#777c85;background:#e9ebee;font-size:8px;font-weight:800}.home-recent-status.status-active{color:#0f7658;background:#e5f5ef}.home-recent-status.status-queued{color:#9b5c12;background:#fff1dc}.home-recent-item>.lucide{width:14px;height:14px;color:#a1a5ad}.home-recent-empty{display:flex;align-items:center;gap:12px;min-height:126px;padding:18px 4px;color:#717680}.home-recent-empty>span{display:grid;width:38px;height:38px;place-items:center;border:1px dashed #cdd0d6;border-radius:7px}.home-recent-empty strong,.home-recent-empty small{display:block}.home-recent-empty strong{color:#474b53;font-size:11px}.home-recent-empty small{margin-top:5px;font-size:9px}.home-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.home-tool-grid button{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:10px;min-height:70px;padding:10px;border:1px solid #dfe2e7;border-radius:7px;color:#25282e;background:#fff;text-align:left;box-shadow:none}.home-tool-grid button:hover{border-color:#c8ccd2;transform:translateY(-1px);box-shadow:0 7px 16px #17191e0f}.home-tool-grid button>span{grid-row:1 / 3;display:grid;width:32px;height:32px;place-items:center;border-radius:6px;color:#2f6d9a;background:#eaf3f8}.home-tool-grid button:nth-child(2)>span{color:#137157;background:#e7f4ef}.home-tool-grid button:nth-child(3)>span{color:#a44d22;background:#f9ede7}.home-tool-grid button:nth-child(4)>span{color:#76549d;background:#f0eaf7}.home-tool-grid .lucide{width:15px;height:15px}.home-tool-grid strong{align-self:end;font-size:10px}.home-tool-grid small{align-self:start;margin-top:3px;color:#858a93;font-size:8px}.extension-tutorial-card{width:min(820px,calc(100vw - 48px));padding:30px}.extension-tutorial-head{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding-bottom:24px;border-bottom:1px solid #e4e6ea}.extension-tutorial-head h2{margin:8px 0 7px;color:#202329;font-size:24px}.extension-tutorial-head p:not(.eyebrow){margin:0;color:#69707a;font-size:13px;line-height:1.6}.extension-tutorial-download{flex:0 0 auto;margin-top:8px;text-decoration:none}.extension-tutorial-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:28px 0 24px;list-style:none}.extension-tutorial-steps li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:13px;padding:0 22px}.extension-tutorial-steps li:first-child{padding-left:0}.extension-tutorial-steps li:last-child{padding-right:0}.extension-tutorial-steps li:not(:last-child){border-right:1px solid #e4e6ea}.extension-tutorial-steps b{display:grid;width:38px;height:38px;place-items:center;border-radius:50%;color:#fff;background:#30343b;font-family:Cascadia Mono,Consolas,monospace;font-size:11px}.extension-tutorial-steps strong{display:block;margin:3px 0 9px;color:#25282e;font-size:16px;line-height:1.3}.extension-tutorial-steps p{margin:0;color:#69707a;font-size:13px;line-height:1.7}.extension-tutorial-steps code{padding:2px 4px;border-radius:3px;color:#454b54;background:#f0f2f4;font-family:Cascadia Mono,Consolas,monospace;font-size:11px}.extension-tutorial-note{display:flex;align-items:center;gap:8px;padding:13px 15px;border-radius:6px;color:#626872;background:#f6f7f8;font-size:12px;font-weight:700}.extension-tutorial-note .lucide{width:15px;height:15px;color:var(--red-dark)}#extensionTutorialModal .extension-tutorial-card{width:min(820px,calc(100vw - 48px));padding:30px;text-align:left}@media(max-width:720px){#extensionTutorialModal .extension-tutorial-card{width:calc(100vw - 28px);padding:22px 18px}.extension-tutorial-head{display:block;padding-bottom:19px}.extension-tutorial-head h2{font-size:22px}.extension-tutorial-download{width:100%;margin-top:18px}.extension-tutorial-steps{grid-template-columns:1fr;gap:0;padding:12px 0 18px}.extension-tutorial-steps li,.extension-tutorial-steps li:first-child,.extension-tutorial-steps li:last-child{padding:17px 0;border-right:0;border-bottom:1px solid #e4e6ea}.extension-tutorial-steps li:last-child{border-bottom:0}.extension-tutorial-steps strong{font-size:16px}.extension-tutorial-steps p{font-size:13px}}@media(max-width:980px){.home-intro{grid-template-columns:1fr;align-items:start;gap:24px}.home-metrics{width:100%;min-width:0}.home-metrics div:first-child{padding-left:0;border-left:0}.home-extension-callout{grid-template-columns:46px minmax(0,1fr)}.home-extension-actions{grid-column:2}.home-lower-grid{grid-template-columns:1fr}}@media(max-width:720px){.home-dashboard{width:min(100% - 28px,1240px);padding-top:22px}.home-intro h2{font-size:24px}.home-path-grid{grid-template-columns:1fr}.home-section-head{align-items:flex-start;flex-direction:column;gap:5px}.home-extension-callout{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:16px}.home-extension-icon{width:40px;height:40px}.home-extension-copy h3{font-size:14px}.home-extension-actions{grid-column:1 / -1;width:100%}.home-extension-download{flex:1}.home-path{min-height:280px;padding:18px}.home-path-steps li:not(:last-child):after{display:none}.home-tool-grid{grid-template-columns:1fr}}.nav-section-label{margin:16px 12px 7px;color:#9a9390;font-size:10px;font-weight:800;line-height:1;text-transform:uppercase}.nav-section-label:first-child{margin-top:4px}.nav-tools-label{margin-top:18px;padding-top:18px;border-top:2px solid #dddfe4}.core-nav-group{margin-bottom:9px;padding:5px;border:1px solid #e1e3e7;border-radius:7px;background:#fff;box-shadow:0 2px 8px #17191e09}.core-nav-group.active{border-color:#ffc4ce;box-shadow:0 0 0 2px #ff2b4e0f}.core-nav-group .nav-core-heading{min-height:54px;align-items:center;color:#282b31;background:transparent}.core-nav-group .nav-core-heading>span:nth-child(2){min-width:0}.core-nav-group .nav-core-heading strong,.core-nav-group .nav-core-heading small{display:block;letter-spacing:0}.core-nav-group .nav-core-heading strong{font-size:14px;font-weight:800}.core-nav-group .nav-core-heading small{margin-top:3px;color:#8a8e97;font-size:9px;font-weight:600}.core-nav-group .core-nav-links{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:2px}.core-nav-original .core-nav-links{grid-template-columns:1fr 1fr}.core-nav-group .nav-subitem{justify-content:center;min-width:0;min-height:34px;padding:6px 5px;border:1px solid transparent;font-size:10px;white-space:nowrap}.core-nav-group .nav-subitem:last-child:nth-child(3){grid-column:1 / -1}.core-nav-group .nav-subitem .nav-icon{width:15px;height:15px}.core-nav-group .nav-subitem .lucide{width:13px;height:13px}.core-nav-group .nav-subitem.active{border-color:#ffd1d8;background:#fff1f3;color:#d9163a}.core-nav-group .nav-core-heading.active{background:#fff5f6;color:#d9163a}.nav-tools-label~.nav-item{min-height:38px;margin-left:5px;color:#6f737b}.nav-tools-label~.nav-item .nav-icon{color:#858a93;background:#f0f1f3}.sidebar>.brand{display:none}.sidebar{padding-top:80px}.sidebar-subnav{display:grid;gap:5px}.sidebar-subnav-note{margin:-3px 10px 10px;color:#90949c;font-size:10px;line-height:1.45}.sidebar-subnav .nav-item{min-height:42px}.sidebar-subnav .nav-item.active:before{left:-14px}.topbar{position:fixed;top:0;left:0;right:0;z-index:8;align-items:center;gap:18px;min-height:58px;margin:0;padding:0 22px;background:#fffffff5;box-shadow:0 1px #e7e8eb,0 4px 16px #17191e09;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.topbar:after{left:0;bottom:-1px;width:100%;height:2px;background:#f1f2f4}.global-brand{display:flex;align-items:center;gap:8px;flex:0 0 auto}.global-brand .brand-mark{width:30px;height:30px;border-radius:6px;box-shadow:none}.global-brand .brand-mark img{width:19px;height:19px}.global-brand strong{color:#22252b;font-size:14px;font-weight:850;white-space:nowrap}.global-nav{display:flex;align-self:stretch;align-items:stretch;gap:2px;min-width:0}.global-nav-item{position:relative;display:inline-flex;align-items:center;gap:7px;min-width:0;padding:0 14px;border:0;border-radius:0;color:#777b84;background:transparent;font-size:12px;font-weight:750;white-space:nowrap}.global-nav-item:hover{color:#2c3037;background:#f7f7f8}.global-nav-item.active{color:var(--red-dark);background:#fff3f5}.global-nav-item.active:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;background:var(--red)}.global-nav-item .lucide{width:15px;height:15px}.topbar .top-actions{flex:0 0 auto;margin-left:auto}.workspace{padding-top:80px}.nav-caret{width:13px!important;height:13px!important;opacity:.55}.global-nav-dropdown,.account-menu{position:relative;display:flex;align-self:stretch}.account-menu{align-self:center}.global-nav-menu,.account-menu-panel{position:fixed;top:0;left:0;z-index:12;display:grid;gap:2px;min-width:208px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 18px 40px #36271e24}.global-nav-menu>button,.account-menu-panel>button{display:grid;justify-items:start;gap:2px;width:100%;padding:9px 12px;border:0;border-radius:7px;color:var(--ink);background:transparent;text-align:left;font-size:13px;font-weight:700;cursor:pointer}.global-nav-menu>button small{color:var(--muted);font-size:11px;font-weight:600}.global-nav-menu>button:hover,.account-menu-panel>button:hover{background:var(--soft);color:var(--red-dark)}.account-menu-panel>button{grid-auto-flow:column;justify-content:start;align-items:center;justify-items:center;gap:8px}.account-menu-meta{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:700}.account-menu-meta code{overflow:hidden;color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.account-menu-meta .icon-btn{width:24px;height:24px}#authOrganizationSelect{width:var(--org-select-width, 168px);min-width:var(--org-select-width, 168px);text-overflow:ellipsis}.topbar .top-actions>*{flex:0 0 auto}.topbar .top-actions .icon-text-btn,.topbar .top-actions .billing-pill{white-space:nowrap}@media(max-width:820px){#authOrganizationSelect{width:auto;min-width:0}}.workflow-intro{display:grid;justify-items:center;gap:18px;max-width:1080px;margin:0 auto;padding:26px 20px 14px;text-align:center}.workflow-intro h2{margin:8px 0 7px;color:#211e1c;font-size:26px;line-height:1.25;letter-spacing:0}.workflow-intro p{max-width:620px;margin:0 auto;color:#77706c;font-size:13px;line-height:1.7}.workflow-step{color:#ff2442;font-size:11px;font-weight:800}.workflow-route{display:flex;align-items:center;justify-content:center;gap:0;margin:0;padding:0;list-style:none}.workflow-route li{position:relative;display:flex;align-items:center;gap:7px;min-width:116px;color:#8e8783;font-size:11px;font-weight:700}.workflow-route li:not(:last-child):after{content:"";width:30px;height:1px;margin:0 12px;background:#ded8d4}.workflow-route span{display:grid;place-items:center;width:23px;height:23px;border:1px solid #d8d2ce;border-radius:50%;background:#fff;color:#837c78}.workflow-route .active{color:#2b2725}.workflow-route .active span{border-color:#ff2442;background:#ff2442;color:#fff}#section-intake .replica-entry-grid,#section-original .original-entry-grid{display:grid;grid-template-columns:minmax(0,760px);justify-content:center;align-items:stretch;max-width:980px;margin:22px auto 0}#section-intake .replica-link-card,#section-original .original-link-card{min-height:0}#section-intake .replica-link-card textarea,#section-original .original-link-card textarea{min-height:150px}.replica-boundary-note,.original-boundary-note{display:grid;grid-template-columns:34px minmax(0,1fr);align-content:center;gap:13px;padding:28px;border-left:3px solid #ff2442;background:#f8f7f6}.original-boundary-note{border-left-color:#26211f}.replica-boundary-note>.lucide,.original-boundary-note>.lucide{width:24px;height:24px;color:#ff2442}.original-boundary-note>.lucide{color:#26211f}.replica-boundary-note strong,.replica-boundary-note span,.original-boundary-note strong,.original-boundary-note span{display:block}.replica-boundary-note strong,.original-boundary-note strong{color:#292522;font-size:14px}.replica-boundary-note span,.original-boundary-note span{margin-top:8px;color:#746d69;font-size:12px;line-height:1.75}.original-boundary-note .ghost-btn{grid-column:1 / -1;justify-content:center;margin-top:8px}.original-intro .workflow-step{color:#2c2927}.original-intro .workflow-route .active span{border-color:#2c2927;background:#2c2927}#section-intake .replica-entry-grid,#section-original .original-entry-grid{position:relative}#section-intake .replica-link-card,#section-original .original-link-card{width:min(760px,calc(100vw - 96px));border-radius:10px}#section-intake .replica-link-card .entry-body,#section-original .original-link-card .entry-body{padding:26px 30px 24px}#section-intake .replica-link-card .entry-card-head,#section-original .original-link-card .entry-card-head{justify-content:center;text-align:left}#section-intake .replica-link-card .entry-meta,#section-original .original-link-card .entry-meta{text-align:center}#section-intake .replica-link-card textarea,#section-original .original-link-card textarea{min-height:138px;padding:17px 18px;border-color:#ece7e4;border-radius:7px;background:#fffdfb}#section-intake .replica-link-card .primary-btn,#section-original .original-link-card .primary-btn{width:auto;min-width:190px;margin:13px 0 0 auto}#section-intake .replica-boundary-note,#section-original .original-boundary-note{grid-template-columns:25px minmax(0,1fr) auto;width:min(760px,calc(100vw - 96px));margin:12px auto 0;padding:14px 16px;border:1px solid #ece8e5;border-left:3px solid #ff2442;background:transparent}#section-original .original-boundary-note{border-left-color:#26211f}#section-intake .replica-boundary-note>.lucide,#section-original .original-boundary-note>.lucide{width:18px;height:18px}#section-intake .replica-boundary-note span,#section-original .original-boundary-note span{margin-top:2px;font-size:11px}#section-original .original-boundary-note .ghost-btn{grid-column:auto;margin:0}.replica-inline-prompt{display:grid;gap:0}.replica-inline-prompt .block-ai-panel-head{margin-bottom:12px}.replica-inline-prompt textarea{width:100%;min-height:112px;resize:vertical;background:#fff;line-height:1.65}#section-rewrite:not(.replica-mode) .replica-inline-prompt{display:none}#section-rewrite.replica-mode .knowledge-evidence,#section-rewrite.replica-mode .viral-draft-plan,#section-rewrite.replica-mode #rewriteLibrarySelections,#section-rewrite.replica-mode .image-block-ai-panel>.block-ai-panel-head,#section-rewrite.replica-mode .image-block-prompt-grid,#section-rewrite.replica-mode .visual-copy-plan,#section-rewrite.replica-mode #composeViralRewriteBtn,#section-rewrite.replica-mode #importToViralFactoryBtn,#section-rewrite.replica-mode #templateImportCurrentTask,#section-rewrite.replica-mode #templateImportProgress,#section-rewrite.replica-mode .template-import-progress{display:none!important}#section-rewrite.replica-mode .ai-generate-row{grid-template-columns:1fr}.original-import-strip{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(420px,1.28fr);align-items:center;gap:28px;margin-bottom:22px;padding:18px 20px;border:1px solid #dedbd8;border-left:3px solid #26211f;background:#fff}.original-import-copy span,.original-import-copy strong{display:block}.original-import-copy span{color:#8e8681;font-size:10px;font-weight:800}.original-import-copy strong{margin-top:4px;color:#2d2927;font-size:13px}.original-import-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.original-import-control input{width:100%;min-width:0}@media(max-width:980px){.workflow-intro{justify-items:center}.original-import-strip{grid-template-columns:1fr}}@media(max-width:640px){.workflow-route{width:100%;overflow-x:auto}.workflow-route li{min-width:max-content}.workflow-route li:not(:last-child):after{width:18px;margin:0 8px}#section-intake .replica-link-card,#section-original .original-link-card,#section-intake .replica-boundary-note,#section-original .original-boundary-note{width:calc(100vw - 36px)}#section-intake .replica-link-card .entry-body,#section-original .original-link-card .entry-body{padding:20px 16px}#section-intake .replica-link-card .primary-btn,#section-original .original-link-card .primary-btn{width:100%;margin-left:0}#section-intake .replica-boundary-note,#section-original .original-boundary-note{grid-template-columns:22px minmax(0,1fr)}#section-original .original-boundary-note .ghost-btn{grid-column:1 / -1}.original-import-control{grid-template-columns:1fr}.original-import-control .primary-btn{width:100%}}@keyframes viral-prompt-task-pulse{0%,to{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.template-import-current-task{min-width:0;min-height:36px;flex:1 1 320px;display:flex;align-items:center;justify-content:center;padding:0 18px;color:#4f4a46;font-size:12px;font-weight:700;line-height:1.45;text-align:center;overflow-wrap:anywhere}.template-import-current-task.is-active{color:#302d2b}.template-import-current-task.is-complete{color:#2f765b}.template-import-current-task.is-error{color:#b33145}#section-rewrite #importToViralFactoryBtn{margin-left:auto;min-height:36px}#section-rewrite #importToViralFactoryBtn.is-loading{display:inline-flex;align-items:center;gap:7px;opacity:1;cursor:wait}#section-rewrite #importToViralFactoryBtn.is-loading:before{content:"";width:13px;height:13px;flex:0 0 13px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:template-import-spin .7s linear infinite}.template-import-progress{display:grid;gap:10px;margin-top:12px;padding:14px 15px;border:1px solid #dedbd7;border-radius:7px;background:#fff}.template-import-progress.is-error{border-color:#d7a3aa;background:snow}.template-import-progress.is-fallback{border-color:#d5b45d;background:#fffdf6}.template-import-progress-detail{max-height:58px;overflow:auto;padding-top:8px;border-top:1px solid #ebe7e3;color:#6d5048;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.template-import-page-statuses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 14px}@media(max-width:720px){.template-import-current-task{order:3;flex-basis:100%;min-height:28px;justify-content:flex-start;padding:0;text-align:left}}.template-import-page-status{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr) auto 8px;align-items:center;gap:8px}.template-import-page-status input{width:15px;height:15px;margin:0;accent-color:var(--red)}.template-import-page-thumb{width:32px;height:42px;overflow:hidden;border:1px solid #ded9d4;border-radius:3px;background:#f5f3f1}.template-import-page-thumb img{width:100%;height:100%;display:block;object-fit:cover}.template-import-page-copy{min-width:0}.template-import-page-copy strong,.template-import-page-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-import-page-copy strong{color:var(--ink);font-size:11px}.template-import-page-copy small{margin-top:2px;color:var(--muted);font-size:10px}.template-import-page-status>i{width:8px;height:8px;border-radius:50%;background:#aaa39d}.template-import-page-status.is-analyzing>i,.template-import-page-status.is-retrying>i{background:#c88718;box-shadow:0 0 0 3px #c8871821}.template-import-page-status.is-success>i{background:#2f7a57}.template-import-page-status.is-failed>i{background:#bd3548}.template-import-page-status.is-failed .template-import-page-copy small{color:#a6283a;font-weight:700;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35}.template-import-cancel-actions{display:flex;justify-content:flex-end}.template-import-cancel-actions .ghost-btn{min-height:32px;padding:6px 12px}.template-import-retry-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.template-import-retry-actions label{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.template-import-retry-actions input{width:15px;height:15px;margin:0;accent-color:var(--red)}.template-import-retry-actions .ghost-btn{min-height:32px;padding:6px 12px}@media(max-width:520px){.template-import-page-statuses{grid-template-columns:minmax(0,1fr)}}@keyframes template-import-spin{to{transform:rotate(360deg)}}.tool-btn span{margin-top:7px;color:var(--muted);font-size:12px;line-height:1.5}.preview-panel{grid-area:preview;width:390px;min-height:0;padding:0;position:fixed;top:50%;right:30px;z-index:20;transform:translateY(-50%);display:grid;place-items:center;overflow:visible;background:transparent;border:0;box-shadow:none;pointer-events:none}.phone-preview{width:clamp(310px,20vw,370px);max-width:100%;aspect-ratio:9 / 19.5;min-height:0;margin:0 auto;border:1px solid rgba(34,32,31,.08);border-radius:22px;background:#fff;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 24px 70px #211d1c2e;pointer-events:auto}.phone-status{flex:0 0 42px;padding:10px 18px 4px;display:flex;align-items:center;justify-content:space-between;color:#252323;background:#fff;font-size:15px;font-weight:800;letter-spacing:0}.phone-signal{font-size:12px;letter-spacing:.02em}.phone-author{flex:0 0 58px;padding:8px 14px 10px;border-bottom:1px solid #f1eeee;display:grid;grid-template-columns:24px 38px minmax(0,1fr) auto 24px;gap:10px;align-items:center;background:#fff}.phone-back,.phone-share{color:#282525;font-size:32px;line-height:1}.phone-share{font-size:25px;transform:rotate(-8deg)}.phone-avatar{width:38px;height:38px;border-radius:50%;background:radial-gradient(circle at 42% 38%,rgba(255,255,255,.9) 0 18%,transparent 19%),linear-gradient(145deg,#62a7d9,#eff7ff 58%,#d7e9f6)}.phone-author-name{min-width:0;color:#3a3634;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phone-follow{min-width:62px;min-height:34px;border:1px solid #e6a7b4;border-radius:999px;color:#e63757;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:700}.phone-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;background:#fff;scrollbar-width:none;-ms-overflow-style:none}.phone-scroll::-webkit-scrollbar,.phone-images::-webkit-scrollbar{width:0;height:0;display:none}.phone-images{flex:none;width:100%;aspect-ratio:1 / 1.34;min-height:0;padding:0;background:#f1f1ef;display:flex;gap:0;overflow:hidden;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:pan-y}.phone-images img{flex:0 0 100%;width:100%;min-width:0;height:100%;border-radius:0;object-fit:contain;object-position:center;background:#f1f1ef;pointer-events:none;transition:transform .22s ease;transform:translate(calc(var(--preview-index, 0) * -100%))}.phone-dots{height:34px;display:flex;align-items:center;justify-content:center;gap:6px;background:#fff}.phone-dots i{width:7px;height:7px;border-radius:50%;background:#d8d8d8}.phone-dots i:first-child{background:#d8d8d8}.phone-dots i.active{background:var(--red)}.phone-copy{padding:0 18px 18px}.phone-copy strong{display:block;margin-bottom:12px;color:#2c2928;font-size:23px;line-height:1.45;font-weight:500;letter-spacing:0}.phone-copy p{margin-bottom:12px;color:#34302f;font-size:15px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}.phone-copy span{display:block;margin-bottom:16px;color:#214364;font-size:17px;line-height:1.65;overflow-wrap:anywhere}.phone-topic{min-height:42px;border:1px solid #eee5e5;border-radius:8px;padding:10px 12px;color:#4b4541;background:#fff;font-size:15px;line-height:1.4}.phone-actions{flex:0 0 58px;border-top:1px solid #eee;padding:8px 13px;display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:12px;align-items:center;background:#fff;color:#282525;font-size:19px}.phone-actions span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.phone-actions b{font-size:16px;font-weight:700}.phone-comment{min-width:0;height:38px;border-radius:999px;padding:0 14px;background:#f5f5f5;color:#8c8886;font-size:14px}.image-studio{display:grid;gap:18px}.studio-preview{min-height:230px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.studio-card{border-radius:8px;border:1px solid var(--line);background:linear-gradient(160deg,rgba(255,36,66,.12),transparent 42%),linear-gradient(20deg,#fffdf9,#e8f3ff);position:relative;overflow:hidden}.studio-card:after{content:"";position:absolute;left:18px;right:18px;bottom:22px;height:12px;border-radius:999px;background:#22201f33;box-shadow:0 -24px #22201f1f}.studio-card.quote{background:linear-gradient(135deg,#d7f3ff,#fff 58%)}.studio-card.photo{background:linear-gradient(140deg,#e9f6e5,#fff 44%,#ffe8ed)}.generator-panel{padding:18px}.control-row{margin-top:12px}.segmented{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.segmented button{min-width:44px;min-height:40px;border:0;background:transparent}.segmented button.active{color:var(--red);background:#fff0f2;font-weight:700}.style-template-grid,.generated-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.template-card,.generated-card{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff}.template-card{min-height:250px;cursor:pointer}.template-card.active{border-color:var(--red);box-shadow:0 0 0 3px #ff24421f}.template-art{height:170px;background-size:cover;background-position:center}.template-card div:last-child,.generated-card>div{padding:12px}.template-card strong,.template-card span,.generated-card>div>strong,.generated-card>div>span{display:block}.template-card span,.generated-card>div>span{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.5}.generated-preview{position:relative;width:100%;aspect-ratio:3 / 4;display:grid;place-items:center;overflow:hidden;border:0;padding:0;background:#f5f5f4;cursor:zoom-in}.generated-preview img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;object-position:center;display:block}.generated-card-remove{position:absolute;top:10px;right:10px;z-index:3;width:32px;height:32px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.5);border-radius:50%;padding:0;color:#fff;background:#181a1f7a;box-shadow:0 3px 10px #14161b2e;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .15s ease}.generated-card-remove span{display:block;font-family:Arial,sans-serif;font-size:22px;font-weight:400;line-height:1;transform:translateY(-1px)}.generated-card-remove:hover,.generated-card-remove:focus-visible{border-color:#ffffffc7;background:#c6223be0;transform:scale(1.05)}.generated-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}.generated-card-actions.has-delete{grid-template-columns:minmax(0,1fr) 36px}.saved-generated-card>.generated-card-actions{margin-top:0}.generated-card-actions .primary-btn,.generated-card-actions .ghost-btn{width:100%;min-width:0;gap:6px;padding-inline:8px}.generated-card-actions .primary-btn .lucide,.generated-card-actions .ghost-btn .lucide,.generated-delete-btn .lucide{width:14px;height:14px}.generated-delete-btn{width:36px;height:36px;display:grid;place-items:center;border:1px solid #e1e3e7;border-radius:6px;padding:0;color:#8b9099;background:#fff;cursor:pointer}.generated-delete-btn:hover,.generated-delete-btn:focus-visible{border-color:#ffd3da;color:#c72a40;background:#fff5f7}.watermark-status{display:inline-flex!important;width:fit-content;max-width:100%;min-height:24px;align-items:center;margin-top:8px!important;border:1px solid #b9d9cc;border-radius:6px;padding:3px 7px;color:#245c4d!important;background:#edf6f2;font-size:11px!important;font-weight:800!important;line-height:1.35!important}.draft-image-card-footer>.watermark-status{grid-area:watermark;display:block!important;width:max-content;max-width:100%;min-width:0;min-height:24px;margin:0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-compare-card .watermark-status{flex-basis:100%;margin-top:0!important}.watermark-status.neutral{border-color:#d8d2cc;color:#5e5752!important;background:#f7f4f1}.watermark-status.error{border-color:#efb7bd;color:#a12636!important;background:#fff1f2}#section-image{--studio-green: #2f6b5f;--studio-green-soft: #edf6f2;--studio-gold: #c58b2a;--studio-surface: #fffdfa}#section-image .image-studio{gap:22px}.image-studio-heading,.image-template-shelf-head,.generated-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.image-studio-heading h2{margin:3px 0 5px;font-size:32px;letter-spacing:0}.image-studio-heading>div>p:last-child,.image-template-shelf-head span,.generated-section-head span{color:var(--muted);font-size:12px}.image-studio-steps{display:flex;align-items:center;gap:4px;flex:0 0 auto}.image-studio-steps span{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 10px;color:#817872;font-size:12px;font-weight:700}.image-studio-steps b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;color:#716963;background:#eee9e4;font-size:10px}.image-studio-steps span.active{color:var(--studio-green)}.image-studio-steps span.active b{color:#fff;background:var(--studio-green)}#section-image .generator-panel{overflow:hidden;padding:0;background:var(--studio-surface);box-shadow:0 14px 34px #3c302717}.image-template-selection{min-height:78px;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:#f8f6f3}.image-template-selection img,.image-template-selection-placeholder{width:52px;height:52px;border-radius:6px;object-fit:cover}.image-template-selection-placeholder{display:grid;place-items:center;border:1px dashed #cfc6be;color:#928981;background:#fff;font-size:22px}.image-template-selection>div,.image-template-selection strong,.image-template-selection span,.image-template-selection small{min-width:0;display:block}.image-template-selection span{margin-bottom:3px;color:var(--studio-green);font-size:10px;font-weight:800}.image-template-selection strong{overflow:hidden;color:var(--ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}.image-template-selection small{margin-top:3px;overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.image-composer-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:0;align-items:stretch}.image-generation-mode{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid var(--line);background:#faf8f5}.image-generation-mode>span{color:var(--ink);font-size:12px;font-weight:800}.image-generation-mode .segmented{flex-wrap:wrap}.image-generation-mode .segmented button{min-width:92px}.image-task-fields{min-width:0;padding:16px}.image-task-fields>.image-content-field,.image-composer-fields>.image-visual-field{min-width:0;display:grid;grid-template-rows:auto 132px;align-content:start;gap:7px}.image-composer-fields>.image-visual-field{padding:16px;border-left:1px solid var(--line)}.image-task-fields>.image-content-field>span,.image-composer-fields>.image-visual-field>span,.image-replacement-grid label>span,.image-control-group>span,.image-control-select>span{color:var(--ink);font-size:12px;font-weight:800}.image-task-fields>.image-content-field textarea,.image-composer-fields>.image-visual-field textarea{width:100%;min-height:132px;border:1px solid #ddd5ce;border-radius:7px;padding:12px;color:var(--ink);background:#fff;font:inherit;font-size:13px;line-height:1.65;resize:vertical}.image-replacement-fields{display:grid;align-content:start;gap:14px}.image-template-reference-preview{position:relative;width:52px;height:52px;display:block}.image-template-reference-preview b,.reference-preview-index{position:absolute;left:4px;bottom:4px;z-index:1;min-width:28px;min-height:18px;display:inline-grid;place-items:center;border:1px solid rgba(255,255,255,.82);border-radius:4px;padding:1px 5px;color:#fff;background:#1f2227e6;box-shadow:0 2px 5px #1114182e;font-size:10px;font-weight:800;line-height:1}.image-replacement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}.image-replacement-grid label{min-width:0;display:grid;align-content:start;gap:7px}.image-replacement-grid textarea{width:100%;height:132px;min-height:132px;border:1px solid #ddd5ce;border-radius:7px;padding:10px 11px;color:var(--ink);background:#fff;font:inherit;font-size:13px;line-height:1.55;resize:none}.replacement-reference-row{display:flex;align-items:stretch;gap:10px;min-width:0}.replacement-reference-preview{min-width:0;flex:1;display:grid;gap:8px;padding:8px 10px;border:1px solid #cfe2da;border-radius:7px;background:var(--studio-green-soft)}.image-preserve-options{min-width:0;display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin:0;border:0;padding:0}.image-preserve-options legend{width:100%;margin-bottom:1px;color:var(--ink);font-size:12px;font-weight:800}.image-preserve-options label{display:inline-flex;align-items:center;gap:6px;color:#514a45;font-size:12px}.image-preserve-options input{width:15px;height:15px;margin:0;accent-color:var(--studio-green)}.image-content-field textarea:focus{border-color:#72a996;box-shadow:0 0 0 3px #2f6b5f1c}.image-visual-field textarea{height:132px;min-height:132px;color:#514a45;background:#faf8f5;resize:none}.image-reference-preview{display:grid;gap:8px;margin:0 16px 12px;padding:10px;border:1px solid #cfe2da;border-radius:7px;background:var(--studio-green-soft)}.reference-preview-summary{min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:10px}.reference-preview-summary strong{font-size:12px}.reference-preview-summary span{color:var(--studio-green);font-size:10px;text-align:right}.reference-preview-strip{display:flex;gap:8px;min-width:0;overflow-x:auto;overflow-y:hidden;padding:5px 3px 3px;scrollbar-width:thin}.reference-preview-item{position:relative;display:block;flex:0 0 52px;width:52px;height:52px}.reference-preview-item img{display:block;width:52px;height:52px;border:1px solid rgba(47,107,95,.2);border-radius:5px;object-fit:cover}.reference-preview-item button{position:absolute;top:-5px;right:-5px;width:20px;height:20px;display:grid;place-items:center;padding:0;border:1px solid #fff;border-radius:50%;color:#fff;background:var(--ink);box-shadow:0 2px 6px #17191e38;font-size:15px;line-height:1;cursor:pointer}.reference-preview-item button:hover,.reference-preview-item button:focus-visible{background:var(--red-dark);outline:none}.image-reference-mention-menu{position:fixed;z-index:70;max-height:286px;display:grid;gap:2px;overflow-x:hidden;overflow-y:auto;border:1px solid #d9dcdf;border-radius:7px;padding:5px;background:#fff;box-shadow:0 14px 34px #14181c2e;scrollbar-width:thin}.image-reference-mention-menu button{min-width:0;min-height:46px;display:grid;grid-template-columns:36px 38px minmax(0,1fr);align-items:center;gap:8px;border:0;border-radius:5px;padding:5px 7px;color:var(--ink);background:transparent;text-align:left;cursor:pointer}.image-reference-mention-menu button:hover,.image-reference-mention-menu button:focus-visible,.image-reference-mention-menu button[aria-selected=true]{outline:none;background:#eef6f3}.image-reference-mention-menu img{width:36px;height:36px;border:1px solid #d8dfdc;border-radius:4px;object-fit:cover}.image-reference-mention-menu strong{color:#1f252a;font-size:12px}.image-reference-mention-menu span{min-width:0;overflow:hidden;color:#697179;font-size:11px;text-overflow:ellipsis;white-space:nowrap}#section-image .image-studio-controls{margin:0;padding:12px 16px;border-top:1px solid var(--line);background:#fff}.image-control-group,.image-control-select{display:flex;align-items:center;gap:7px}.image-control-select select{min-height:40px;border:1px solid var(--line);border-radius:7px;padding:0 30px 0 10px;color:var(--ink);background:#fff}#section-image .image-generation-actions{display:flex;align-items:center;gap:8px;margin-left:auto}#section-image #generateImageBtn{min-width:132px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.image-generation-spinner{width:15px;height:15px;flex:0 0 15px;border:2px solid rgba(255,255,255,.5);border-right-color:#fff;border-radius:50%;animation:template-import-spin .72s linear infinite}#section-image .image-generation-stop{min-width:88px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-color:#ff9aaa;color:var(--red-dark);background:#fff7f8}#section-image .image-generation-stop:hover,#section-image .image-generation-stop:focus-visible{border-color:var(--red);color:#fff;background:var(--red)}#section-image .image-generation-stop:disabled{color:#a66b74;background:#fff1f3}#section-image .image-generation-stop .lucide{width:14px;height:14px}#section-image.is-image-generating textarea:disabled,#section-image.is-image-generating select:disabled{color:#777d86;border-color:#dfe2e6;background:#f3f4f6;cursor:not-allowed;opacity:1}#section-image.is-image-generating .file-btn:has(input:disabled),#section-image.is-image-generating .image-template-shelf button:disabled,#section-image.is-image-generating .image-template-selection button:disabled{cursor:not-allowed;opacity:.55}#section-image.is-image-generating .image-template-card:disabled:hover{transform:none}.image-template-shelf,.generated-section{display:grid;gap:12px}.generated-section-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px}.saved-library-trigger{min-height:36px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.saved-library-trigger .lucide{width:15px;height:15px}.saved-library-trigger span{margin:0}.saved-library-trigger b{min-width:20px;border-radius:999px;padding:2px 6px;color:#177458;background:#eaf6f1;font-size:10px;line-height:1.4;text-align:center}.image-template-shelf-head strong,.generated-section-head strong{display:block;color:var(--ink);font-size:15px}.image-template-shelf-head span,.generated-section-head span{display:block;margin-top:3px}.image-template-tabs button{min-width:96px}.image-template-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 14px 14px;padding:0;border:0;border-radius:0;background:transparent;overflow:visible}.segmented.image-template-mode-switch.has-motion-indicator:before{display:none}.image-template-mode-switch button{position:relative;min-width:0;min-height:70px;display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;border:1px solid #e1ddd8;border-radius:8px;padding:10px 12px;color:#5d5752;background:#fff;text-align:left;box-shadow:0 5px 16px #1f22280d}.image-template-mode-switch button:after{content:"";position:absolute;right:12px;bottom:0;left:58px;height:3px;border-radius:3px 3px 0 0;background:transparent}.image-template-mode-switch button>.lucide{width:36px;height:36px;padding:8px;border-radius:8px;color:#8a7468;background:#f4f0ed}.image-template-mode-switch button span,.image-template-mode-switch button strong,.image-template-mode-switch button small{display:block;min-width:0}.image-template-mode-switch button strong{color:#2f2b28;font-size:13px;line-height:1.3}.image-template-mode-switch button small{margin-top:5px;color:#8d8781;font-size:11px;font-weight:700;line-height:1.25}.image-template-mode-switch button:hover,.image-template-mode-switch button:focus-visible{border-color:#cdbeb5;box-shadow:0 8px 22px #1f222814}.image-template-mode-switch button.active{border-color:#ff2442bd;color:#2a2523;background:#fff8f9;box-shadow:inset 0 0 0 1px #ff24425c,0 9px 24px #91223321}.segmented.image-template-mode-switch.has-motion-indicator button.active{background:#fff8f9;box-shadow:inset 0 0 0 1px #ff24425c,0 9px 24px #91223321}.image-template-mode-switch button.active:after{background:var(--red)}.image-template-mode-switch button.active>.lucide{color:#fff;background:var(--red)}.image-template-mode-switch button.active small{color:var(--red-dark)}.image-template-shelf-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}#imageTemplateManageControls{min-width:0}.image-template-manage-actions .mini-btn{white-space:nowrap}.image-template-edit-toolbar{justify-content:flex-end}#section-image .style-template-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.image-template-card{position:relative;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;padding:0;color:var(--ink);background:#fff;cursor:pointer;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.image-template-card:hover{border-color:#b9aaa0;transform:translateY(-2px)}.image-template-card.active{border-color:var(--red);box-shadow:inset 0 0 0 1px #ff2442b8,0 0 0 3px #ff244229,0 12px 28px #91223329}.image-template-card.active:after{content:"";position:absolute;z-index:3;top:0;right:0;bottom:0;left:0;border:2px solid var(--red);border-radius:inherit;pointer-events:none}.image-template-card.is-editing{cursor:pointer}.image-template-card.is-editing:hover{transform:none}.image-template-card.is-batch-selected{border-color:var(--red);box-shadow:0 0 0 2px #ff24422e,0 8px 22px #2d27231a}.image-template-visual{position:relative;display:block;aspect-ratio:4 / 5;overflow:hidden;background:#eeeae6}.image-template-visual img{width:100%;height:100%;display:block;object-fit:cover}.image-template-visual em{position:absolute;top:8px;left:8px;border-radius:4px;padding:4px 6px;color:#fff;background:#1e1b19b8;font-size:10px;font-style:normal;font-weight:800}.image-template-card-manage-controls{position:absolute;z-index:2;top:8px;right:8px;left:8px;display:flex;align-items:center;justify-content:space-between;gap:6px;pointer-events:none}.image-template-card-actions{display:flex;align-items:center;gap:5px;pointer-events:auto}.image-template-check{min-height:30px;display:inline-flex;align-items:center;gap:5px;padding:0 8px;border:1px solid rgba(255,255,255,.9);border-radius:6px;color:#312c29;background:#fffffff2;box-shadow:0 3px 12px #2d272324;font-size:10px;font-weight:800;pointer-events:auto}.image-template-check input{width:14px;height:14px;margin:0;accent-color:var(--red)}.image-template-card.is-editing .image-template-visual em{top:46px}.image-template-card-actions .mini-btn{min-height:30px;padding-inline:10px;border-color:#ffffffe6;background:#fffffff2;box-shadow:0 3px 12px #2d272324}.image-template-card-actions .danger-btn{border-color:#ffb4bff2;color:var(--red-dark);background:#fff7f8f7}@media(max-width:520px){.image-template-card-manage-controls{top:6px;right:6px;left:6px}.image-template-card-actions{gap:4px}.image-template-card-actions .mini-btn{min-height:28px;padding-inline:8px;font-size:10px}.image-template-check{min-height:28px;padding-inline:6px}.image-template-card.is-editing .image-template-visual em{top:42px}}.image-template-add-card .image-template-visual{display:grid;place-items:center;border-bottom:1px dashed #d8d0c8;background:#faf8f5}.image-template-add-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid #ff9aaa;border-radius:50%;color:var(--red);background:#fff;font-size:24px;line-height:1}.image-template-add-card:hover .image-template-add-icon{color:#fff;background:var(--red)}.image-template-add-card.is-loading .image-template-visual{border-bottom-color:#ffd7dd;background:#fff7f8}.image-template-add-card .template-import-copy{min-width:0}.image-template-add-card .template-import-file{max-width:100%}.image-template-card.active .image-template-visual em{background:var(--red)}.image-template-selected-mark{position:absolute;z-index:4;top:8px;right:8px;display:grid;width:28px;height:28px;place-items:center;border:2px solid #fff;border-radius:50%;color:#fff;background:var(--red);box-shadow:0 5px 14px #91223342;pointer-events:none}.image-template-selected-mark .lucide{width:15px;height:15px;stroke-width:3}.image-template-copy{min-height:70px;display:block;padding:10px}.image-template-copy strong,.image-template-copy small{display:block}.image-template-copy strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.image-template-copy small{min-height:32px;margin-top:4px;overflow:hidden;color:var(--muted);font-size:11px;line-height:1.45}.image-template-no-preview,.generated-empty{display:grid;place-items:center;color:var(--muted);font-size:12px}#section-image .generated-grid:has(.generated-empty){grid-template-columns:1fr}.generated-empty{min-height:150px;align-content:center;gap:4px;border:1px dashed #d8d0c8;border-radius:8px;background:#faf8f5}.generated-empty strong,.generated-empty span{display:block}.generated-empty strong{color:var(--ink);font-size:13px}.generated-empty span{color:var(--muted);font-size:11px}@media(max-width:980px){.image-studio-heading{align-items:flex-start;flex-direction:column}.image-composer-fields{grid-template-columns:1fr}.image-composer-fields>.image-visual-field{border-top:1px solid var(--line);border-left:0}#section-image .style-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:680px){.image-generation-mode{align-items:stretch;flex-direction:column;gap:8px}.image-generation-mode .segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.image-generation-mode .segmented button{min-width:0;padding:0 8px}.image-replacement-grid{grid-template-columns:1fr}.replacement-reference-row{flex-direction:column}.image-studio-heading h2{font-size:26px}.image-studio-steps{width:100%;justify-content:space-between}.image-studio-steps span{padding:0}.generated-section-head-actions{width:100%;align-items:stretch;flex-direction:column}.saved-library-trigger{justify-content:center}.image-template-shelf-head,.generated-section-head{align-items:stretch;flex-direction:column}.image-template-tabs{width:100%}.image-template-shelf-actions{width:100%;align-items:stretch;flex-direction:column}.image-template-edit-toolbar{justify-content:flex-start}.image-template-tabs button{flex:1}#section-image .style-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#section-image .image-studio-controls,.image-control-group,.image-control-select{align-items:stretch}#section-image .image-studio-controls{display:grid;grid-template-columns:1fr 1fr}#section-image .image-generation-actions{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) auto;margin-left:0}.image-control-group{grid-column:1 / -1;flex-direction:column}.image-control-select{flex-direction:column}.image-control-select select,#section-image .file-btn,#section-image #optimizePromptBtn,#section-image #generateImageBtn{width:100%;margin-left:0}#section-image #generateImageBtn{grid-column:1 / -1}}.template-library-head{display:flex;justify-content:space-between;gap:18px;align-items:end}.template-library-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px;align-items:start}.template-library-list,.template-library-detail,.template-preview-panel,.template-params-box{border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.template-library-list{padding:10px;max-height:calc(100vh - 150px);overflow-y:auto}.layout-template-item{width:100%;display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center;border:1px solid transparent;border-radius:8px;padding:10px;background:transparent;text-align:left}.layout-template-item.active,.layout-template-item:hover{border-color:#ffd0d8;background:#fff5f6}.layout-template-item img{width:72px;height:96px;border-radius:8px;object-fit:cover;background:#f1ece6}.layout-template-item strong,.layout-template-item small{display:block}.layout-template-item small{margin-top:6px;color:var(--muted);line-height:1.45}.template-source-badge{width:fit-content;margin-top:7px;min-height:22px;padding:3px 8px;border-radius:999px;background:#f2eee9;color:#625a55;display:inline-flex;align-items:center;font-size:11px;font-style:normal;font-weight:800;line-height:1.2}.template-source-badge.success{background:#e8f7ef;color:#13784a}.template-source-badge.warning{background:#fff3cf;color:#9a5a00}.template-source-badge.error{background:#ffe6ea;color:var(--red-dark)}.template-field-head .template-source-badge,.template-source-line .template-source-badge{margin-top:0;margin-right:8px;vertical-align:middle}.template-source-line{margin-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:13px}.template-library-detail{min-height:680px;padding:18px;display:grid;gap:16px}.template-detail-head{display:flex;justify-content:space-between;gap:18px;align-items:start}.template-detail-head p{color:var(--muted)}.template-detail-actions{display:inline-flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.template-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.template-meta-grid article{min-height:86px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fffaf7}.template-meta-grid span,.template-meta-grid strong{display:block}.template-meta-grid span{color:var(--muted);font-size:12px}.template-meta-grid strong{margin-top:8px;color:#332f2c;line-height:1.35}.template-preview-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.template-preview-panel{overflow:hidden}.template-preview-title{padding:14px;display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.template-preview-title span{color:var(--muted);font-size:12px}.template-preview-strip{min-height:330px;padding:14px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(170px,210px);gap:12px;overflow-x:auto;align-items:start;background:#f7f2ec}.template-preview-thumb{width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;text-align:left}.template-preview-thumb img,.template-preview-strip>img{width:100%;aspect-ratio:3 / 4;border:1px solid var(--line);border-radius:8px;object-fit:cover;background:#fff;display:block}.template-preview-strip.rendered img{object-fit:contain}.template-empty-preview{min-height:260px;display:grid;place-items:center;color:var(--muted);border:1px dashed #dfd5cf;border-radius:8px;background:#fff}.template-params-box{padding:16px;display:grid;gap:8px}.template-params-box p{color:#4b4541}.template-params-box span{color:var(--muted);font-size:13px}.template-ai-editor{margin-top:14px;padding:16px;border:1px solid #f1c8c4;border-radius:8px;background:#fffaf8;display:grid;gap:12px}.template-ai-editor>label{display:grid;gap:8px;color:#4d4642;font-weight:700}.template-ai-editor textarea{min-height:150px;resize:vertical}.template-ai-editor-grid{display:grid;grid-template-columns:minmax(120px,180px) minmax(150px,220px) minmax(180px,1fr);gap:12px;align-items:end}.template-ai-editor-grid label{display:grid;gap:8px;color:#4d4642;font-weight:700}.template-ai-checkbox{display:flex!important;align-items:center;gap:8px!important;min-height:48px}.template-ai-checkbox input{width:18px;height:18px}.template-ai-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.template-ai-editor-actions span{color:var(--muted);font-size:12px}.empty-state.compact{min-height:220px}.plugin-layout{display:grid;grid-template-columns:minmax(330px,.88fr) minmax(0,1.12fr);gap:18px;align-items:start}.plugin-workbench{display:grid;grid-template-columns:minmax(330px,.85fr) minmax(0,1.15fr);gap:18px;align-items:start}.plugin-copy{padding:22px}.plugin-feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.plugin-feature-list article{min-height:150px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.plugin-feature-list strong,.plugin-feature-list span{display:block}.plugin-feature-list span{margin-top:10px;color:var(--muted);line-height:1.6}.low-fan-workbench{display:grid;gap:18px;padding:4px 0 24px}.low-fan-heading,.low-fan-run-head,.low-fan-results-head,.low-fan-run-actions,.low-fan-counts,.low-fan-form-actions,.low-fan-risk-note{display:flex;align-items:center}.low-fan-heading,.low-fan-run-head,.low-fan-results-head{justify-content:space-between;gap:18px}.low-fan-heading h2{margin:3px 0 7px}.low-fan-heading p:last-child{margin:0;color:var(--muted)}.low-fan-risk-note{gap:7px;flex:0 0 auto;color:#8a5b12;font-size:12px}.low-fan-risk-note .lucide{width:16px;height:16px}.low-fan-config-row{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);gap:18px;align-items:start;border-top:1px solid var(--line);padding-top:18px}.low-fan-config,.low-fan-run-panel{display:grid;gap:13px}.low-fan-config{padding-right:18px;border-right:1px solid var(--line)}.low-fan-config label:not(.low-fan-check){display:grid;gap:7px;color:var(--ink);font-size:12px;font-weight:700}.low-fan-config input[type=search],.low-fan-config input[type=number]{width:100%;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit}.low-fan-config input[type=number]{min-height:38px;padding:0 10px}.low-fan-seed-control{position:relative;display:block}.low-fan-seed-control>.lucide{position:absolute;top:50%;left:12px;z-index:1;width:15px;height:15px;color:#7b878d;transform:translateY(-50%);pointer-events:none}.low-fan-config .low-fan-seed-control input[type=search]{min-height:42px;padding:0 36px}.low-fan-config .low-fan-seed-control input[type=search]:focus{border-color:#9ba5aa;outline:0;box-shadow:0 0 0 3px #222a2e0f}.low-fan-suffix-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:7px;min-height:28px}.low-fan-suffix-label{padding-top:6px;color:var(--ink);font-size:12px;font-weight:700;white-space:nowrap}.low-fan-suffix-items{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}.low-fan-ai-suffix-btn{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:28px;border:0;border-radius:6px;padding:0 7px;background:transparent;color:#e31837;cursor:pointer;font:inherit;font-size:11px;font-weight:700}.low-fan-ai-suffix-btn:hover{background:#ffe4e8;color:#bd1230}.low-fan-ai-suffix-btn:disabled{cursor:wait;opacity:.68}.low-fan-ai-suffix-btn .lucide{width:14px;height:14px}.low-fan-ai-suffix-btn span{white-space:nowrap}.low-fan-ai-suffix-btn .lucide-loader-circle{animation:low-fan-spin .8s linear infinite}.low-fan-suffix-list{display:contents}.low-fan-suffix-chip{display:inline-flex;align-items:center;gap:3px;max-width:100%;min-height:26px;border-radius:999px;padding:0 5px 0 10px;background:#fff0f2;color:#d91635;font-size:10px;font-weight:700}.low-fan-suffix-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.low-fan-suffix-chip button{display:grid;place-items:center;width:18px;height:18px;border:0;border-radius:50%;padding:0;background:transparent;color:#d91635;cursor:pointer}.low-fan-suffix-chip button:hover{background:#ffdce2}.low-fan-suffix-chip button:focus-visible,.low-fan-ai-suffix-btn:focus-visible,.low-fan-suffix-add button:focus-visible{outline:2px solid #e31837;outline-offset:2px}.low-fan-suffix-chip .lucide{width:12px;height:12px}.low-fan-suffix-add{display:inline-flex;align-items:center;width:28px;min-width:28px;min-height:26px;overflow:hidden;border-radius:999px;background:#fff0f2;transition:width .16s ease}.low-fan-suffix-add.is-open{width:126px}.low-fan-suffix-add input{width:0;min-width:0;min-height:26px;border:0;padding:0;background:transparent;color:var(--ink);font:inherit;font-size:10px;outline:0;opacity:0;pointer-events:none}.low-fan-suffix-add.is-open input{width:98px;padding-left:10px;opacity:1;pointer-events:auto}.low-fan-suffix-add button{display:grid;place-items:center;width:28px;min-width:28px;height:26px;border:0;border-radius:999px;padding:0;background:#fff0f2;color:#d91635;cursor:pointer}.low-fan-suffix-add button:hover{background:#ffdce2}.low-fan-suffix-add .lucide{width:14px;height:14px}@keyframes low-fan-spin{to{transform:rotate(360deg)}}.low-fan-inline-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.low-fan-check{display:flex;align-items:flex-start;gap:9px;cursor:pointer}.low-fan-check input{width:14px;min-width:14px;height:14px;margin-top:3px;flex:0 0 14px}.low-fan-check span,.low-fan-check strong,.low-fan-check small{display:block}.low-fan-check strong{color:var(--ink);font-size:12px}.low-fan-check small{margin-top:3px;color:var(--muted);font-size:10px;line-height:1.45}.low-fan-form-actions{gap:8px;padding-top:4px}.low-fan-run-panel{min-height:238px;padding:4px 0}.low-fan-run-head>div:first-child{min-width:0}.low-fan-run-head strong,.low-fan-run-head span{display:block}.low-fan-run-head strong{color:var(--ink);font-size:16px}.low-fan-run-head span{margin-top:4px;color:var(--muted);font-size:11px}.low-fan-run-actions{gap:7px}.low-fan-progress-track{height:7px;overflow:hidden;border-radius:4px;background:#e8edf0}.low-fan-progress-track span{display:block;width:0;height:100%;background:#258268;transition:width .22s ease}.low-fan-progress-message{min-height:38px;margin:0;color:#55646c;font-size:12px;line-height:1.55}.low-fan-counts{gap:24px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.low-fan-counts b{margin-left:5px;color:var(--ink);font-size:19px}.low-fan-results-panel{border-top:1px solid var(--line);padding-top:17px}.low-fan-results-head strong,.low-fan-results-head span{display:block}.low-fan-results-head strong{color:var(--ink);font-size:14px}.low-fan-results-head span{margin-top:3px;color:var(--muted);font-size:11px}.low-fan-result-filters{display:inline-flex;border:1px solid var(--line);border-radius:6px;overflow:hidden}.low-fan-result-filters button{min-height:32px;border:0;border-right:1px solid var(--line);padding:0 11px;background:#fff;color:var(--muted);cursor:pointer}.low-fan-result-filters button:last-child{border-right:0}.low-fan-result-filters button.active{background:#222a2e;color:#fff}.low-fan-table-wrap{position:relative;min-height:220px;margin-top:12px;overflow-x:auto;border:1px solid var(--line);border-radius:6px;background:#fff}.low-fan-table{width:100%;min-width:980px;border-collapse:collapse;table-layout:fixed}.low-fan-table th{height:40px;padding:0 10px;border-bottom:1px solid var(--line);color:#68747b;font-size:10px;text-align:left}.low-fan-table td{height:58px;padding:8px 10px;border-bottom:1px solid #edf0f2;color:#47545b;font-size:11px;vertical-align:middle}.low-fan-table tbody tr:last-child td{border-bottom:0}.low-fan-table tbody tr:hover{background:#fafcfc}.low-fan-table th:nth-child(1){width:22%}.low-fan-table th:nth-child(2){width:10%}.low-fan-table th:nth-child(3){width:8%}.low-fan-table th:nth-child(4){width:10%}.low-fan-table th:nth-child(5){width:15%}.low-fan-table th:nth-child(6){width:10%}.low-fan-table th:nth-child(7){width:14%}.low-fan-table th:nth-child(8){width:11%}.low-fan-table td strong,.low-fan-table td small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.low-fan-table td strong{color:var(--ink);font-size:11px}.low-fan-table td small{margin-top:4px;color:#89939a;font-size:9px}.low-fan-table a{color:#24715f;text-decoration:none}.low-fan-link-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.low-fan-copy-btn{display:inline-flex;align-items:center;gap:3px;min-height:26px;padding:0 5px;border:0;color:#24715f;background:transparent;cursor:pointer;font:inherit}.low-fan-copy-btn:hover{color:#174f43;background:#edf7f4}.low-fan-copy-btn:disabled{cursor:default;opacity:.75}.low-fan-copy-btn .lucide{width:13px;height:13px}.low-fan-quality{display:inline-block;color:#a43b43;font-size:10px;font-weight:700}.low-fan-quality.complete{color:#187353}.low-fan-quality.excluded{color:#a43b43}.low-fan-empty{position:absolute;top:41px;right:0;bottom:0;left:0;display:grid;place-items:center;background:#fff;color:var(--muted);font-size:12px}@media(max-width:900px){.low-fan-heading,.low-fan-run-head,.low-fan-results-head{align-items:flex-start;flex-direction:column}.low-fan-config-row{grid-template-columns:1fr}.low-fan-config{padding-right:0;padding-bottom:18px;border-right:0;border-bottom:1px solid var(--line)}.low-fan-inline-fields{grid-template-columns:1fr}.low-fan-run-actions{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.low-fan-ai-suffix-btn .lucide-loader-circle{animation:none}}#section-plugin .low-fan-workbench{--collector-ink: #20272b;--collector-muted: #6e797e;--collector-line: #dfe6e5;--collector-mint: #e9f5f0;--collector-teal: #207a64;max-width:1480px;gap:16px;padding:22px 24px 28px;border-color:#dfe5e3;background:#fbfcfb}#section-plugin .low-fan-heading{align-items:flex-start;padding-bottom:2px}#section-plugin .low-fan-heading h2{margin:5px 0 8px;color:var(--collector-ink);font-size:30px;letter-spacing:0}#section-plugin .low-fan-heading p:last-child{max-width:640px;color:var(--collector-muted);font-size:13px;line-height:1.6}#section-plugin .low-fan-heading .eyebrow{color:var(--collector-teal)}#section-plugin .low-fan-risk-note{margin-top:4px;border:1px solid #efd8a7;border-radius:999px;padding:7px 11px;color:#8c641f;background:#fff9ed;font-size:11px}#section-plugin .low-fan-crawl-risk{display:flex;align-items:flex-start;gap:9px;margin:0;padding:11px 13px;border:1px solid #f0d9a8;border-left:3px solid #d9a12c;border-radius:8px;color:#7a5a16;background:#fffaf0;font-size:12px;line-height:1.65}#section-plugin .low-fan-crawl-risk .lucide{flex:0 0 auto;width:15px;height:15px;margin-top:2px;color:#b8860b}.low-fan-visual-search{display:grid;grid-template-columns:minmax(250px,1fr) 180px minmax(180px,.8fr) auto;align-items:center;gap:14px;padding:14px;border:1px solid #e7d9c3;border-radius:8px;background:#fffaf1}.low-fan-visual-search-copy{display:flex;align-items:center;gap:10px;min-width:0}.low-fan-visual-search-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:7px;color:#9a6b25;background:#f7e8c9}.low-fan-visual-search-icon .lucide{width:18px;height:18px}.low-fan-visual-search-copy h3{margin:0;color:#2a2926;font-size:13px}.low-fan-visual-search-copy p{margin:4px 0 0;color:#857866;font-size:11px;line-height:1.45}.low-fan-visual-drop-wrap{position:relative;width:100%;height:132px;min-width:0}.low-fan-visual-drop{position:relative;display:grid;place-items:center;width:100%;height:100%;min-height:0;overflow:hidden;border:1px dashed #d7be91;border-radius:7px;color:#997036;background:#fffdf9;cursor:pointer}.low-fan-visual-drop input{position:absolute;width:1px;height:1px;opacity:0}.low-fan-visual-placeholder{display:grid;justify-items:center;gap:4px}.low-fan-visual-drop [hidden]{display:none!important}.low-fan-visual-placeholder .lucide{width:19px;height:19px}.low-fan-visual-placeholder b{font-size:11px}.low-fan-visual-placeholder small{color:#aa987d;font-size:9px}.low-fan-visual-drop img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;background:#f5f1e9}.low-fan-visual-clear{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:24px;height:24px;border:0;border-radius:50%;color:#fff;background:#211f1bb8;cursor:pointer}.low-fan-visual-clear:hover{background:#211f1be6}.low-fan-visual-clear .lucide{width:14px;height:14px}.low-fan-visual-search-result{min-width:0;padding:3px 0}.low-fan-visual-search-result>div{display:flex;align-items:baseline;gap:7px}.low-fan-visual-search-result span{color:#9d8e78;font-size:10px}.low-fan-visual-search-result strong{overflow:hidden;color:#2a2926;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.low-fan-visual-search-result p{margin:7px 0 0;color:#806d54;font-size:10px;line-height:1.5}.low-fan-visual-search-btn{min-height:38px;white-space:nowrap}.low-fan-visual-search-btn[aria-busy=true] .lucide-loader-circle{animation:low-fan-spin .8s linear infinite}#section-plugin .low-fan-replicate-btn{display:inline-flex;align-items:center;gap:3px;min-height:26px;padding:0 6px;border:1px solid #c5e0d5;border-radius:5px;color:#176a55;background:#eff9f5;cursor:pointer;font:inherit;font-size:10px;font-weight:700}#section-plugin .low-fan-replicate-btn:hover{border-color:#8dcbb7;background:#e3f5ed}#section-plugin .low-fan-replicate-btn .lucide{width:12px;height:12px}.low-fan-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 0 2px;border-top:1px solid var(--collector-line)}.low-fan-principles span{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 10px;border:1px solid #dbe9e4;border-radius:6px;color:var(--collector-muted);background:var(--collector-mint);font-size:11px}.low-fan-principles b{color:var(--collector-ink)}.low-fan-principles .lucide{width:15px;height:15px;color:var(--collector-teal)}#section-plugin .low-fan-config-row{grid-template-columns:minmax(330px,.82fr) minmax(0,1.18fr);gap:24px;border-top:0;padding-top:4px}#section-plugin .low-fan-config{gap:15px;padding:18px;border:1px solid var(--collector-line);border-radius:8px;background:#fff}#section-plugin .low-fan-config label:not(.low-fan-check){color:var(--collector-ink)}#section-plugin .low-fan-config input[type=search],#section-plugin .low-fan-config input[type=number]{border-color:#d4dfdd}#section-plugin .low-fan-config input[type=number]{min-height:40px}#section-plugin .low-fan-suffix-label{color:var(--collector-ink)}#section-plugin .low-fan-suffix-chip,#section-plugin .low-fan-suffix-add,#section-plugin .low-fan-suffix-add button{background:#edf7f3;color:var(--collector-teal)}#section-plugin .low-fan-ai-suffix-btn{color:var(--red)}#section-plugin .low-fan-check{padding-top:1px}#section-plugin .low-fan-check strong{color:var(--collector-ink)}#section-plugin .low-fan-form-actions{padding-top:3px}#section-plugin .low-fan-form-actions .primary-btn{min-height:40px}#section-plugin .low-fan-run-panel{min-height:0;align-content:start;gap:10px;padding:0 0 2px}#section-plugin .low-fan-run-panel .low-fan-visual-search{grid-template-columns:minmax(0,1fr) 132px;gap:10px;padding:10px}#section-plugin .low-fan-run-panel .low-fan-visual-search-btn{grid-column:1 / -1;justify-self:stretch;min-height:34px}#section-plugin .low-fan-run-head{align-items:flex-start}#section-plugin .low-fan-run-head>div:first-child{display:grid;gap:7px}#section-plugin .low-fan-run-head strong{color:var(--collector-ink)}#section-plugin #lowFanJobMeta{color:var(--collector-muted)}.low-fan-status-badge{display:inline-flex!important;align-items:center;gap:7px;width:fit-content;border:1px solid #d4dfdd;border-radius:999px;padding:6px 10px;color:var(--collector-ink)!important;background:#f2f5f4;font-size:13px!important;font-weight:800}.low-fan-status-badge .lucide{width:15px;height:15px}.low-fan-status-badge>span{color:inherit!important;margin-top:0!important}.low-fan-status-badge[data-status=running]{border-color:#b8e1d2;color:#176a55!important;background:#e9f7f1}.low-fan-status-badge[data-status=running] .lucide{animation:low-fan-spin .9s linear infinite}.low-fan-status-badge[data-status=completed]{border-color:#b8e1d2;color:#176a55!important;background:#e9f7f1}.low-fan-status-badge[data-status=needs_login],.low-fan-status-badge[data-status=needs_verification]{border-color:#efd8a7;color:#8c641f!important;background:#fff9ed}.low-fan-status-badge[data-status=failed]{border-color:#f0c8ce;color:#a33d4b!important;background:#fff1f3}.low-fan-progress-meta{display:flex;justify-content:space-between;align-items:center;color:var(--collector-muted);font-size:11px}.low-fan-progress-meta b{color:var(--collector-ink);font-size:13px}#section-plugin .low-fan-progress-track{height:9px;border-radius:5px;background:#e4ece9}#section-plugin .low-fan-progress-track span{background:var(--collector-teal)}#section-plugin .low-fan-progress-message{min-height:24px;color:var(--collector-muted)}#section-plugin .low-fan-progress-message[data-stalled="1"]{color:#c2410c;font-weight:600}#section-plugin .low-fan-counts{gap:0;justify-content:space-between;padding-top:10px;border-top-color:var(--collector-line)}#section-plugin .low-fan-counts span{display:inline-flex;align-items:center;gap:5px;color:var(--collector-muted)}#section-plugin .low-fan-counts .lucide{width:14px;height:14px;color:var(--collector-teal)}#section-plugin .low-fan-counts b{color:var(--collector-ink)}#section-plugin .low-fan-results-panel{padding-top:20px;border-top-color:var(--collector-line)}#section-plugin .low-fan-results-head strong{color:var(--collector-ink);font-size:16px}#section-plugin .low-fan-results-head span{color:var(--collector-muted)}.low-fan-result-toolbar{display:flex;align-items:center;gap:9px}#section-plugin .low-fan-result-filters{border-color:#d4dfdd}#section-plugin .low-fan-result-filters button{min-height:34px;color:var(--collector-muted)}#section-plugin .low-fan-result-filters button.active{background:var(--collector-ink)}#section-plugin .low-fan-table-wrap{margin-top:14px;border-color:var(--collector-line);border-radius:8px;box-shadow:0 5px 20px #2037300a}#section-plugin .low-fan-table th{height:42px;background:#f5f8f7;color:#63716f}#section-plugin .low-fan-table td{height:64px}#section-plugin .low-fan-table tbody tr:hover{background:#f6fbf9}#section-plugin .low-fan-quality{border-radius:999px;padding:4px 8px;background:#fff1f3}#section-plugin .low-fan-quality.complete{background:#e9f7f1}#section-plugin .low-fan-empty{color:var(--collector-muted);background:#fff}@media(max-width:900px){.low-fan-principles{grid-template-columns:1fr}.low-fan-visual-search{grid-template-columns:minmax(220px,1fr) 150px minmax(160px,1fr)}.low-fan-visual-search-btn{grid-column:1 / -1;justify-self:start}#section-plugin .low-fan-run-panel .low-fan-visual-search{grid-template-columns:minmax(0,1fr) 132px}#section-plugin .low-fan-config-row{grid-template-columns:1fr;gap:10px}#section-plugin .low-fan-run-panel{padding-top:4px}}@media(max-width:640px){#section-plugin .low-fan-workbench{padding:16px 12px 22px}#section-plugin .low-fan-heading h2{font-size:24px}#section-plugin .low-fan-config{padding:14px}.low-fan-visual-search,#section-plugin .low-fan-run-panel .low-fan-visual-search{grid-template-columns:1fr}.low-fan-visual-drop-wrap{height:180px}.low-fan-visual-drop img{min-height:0}.low-fan-visual-search-btn{width:100%}.low-fan-result-toolbar{width:100%;justify-content:space-between}}.plugin-gallery{display:grid;gap:14px}.plugin-shot{min-height:220px;border-radius:8px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);overflow:hidden;position:relative}.note-shot{display:grid;grid-template-columns:1fr 260px;background:#171515}.shot-page{margin:16px;border-radius:8px;background:linear-gradient(90deg,transparent,rgba(255,36,66,.12)),repeating-linear-gradient(0deg,#fff,#fff 22px,#f3e8e8 23px,#fff 42px)}.shot-panel{padding:18px;display:grid;align-content:start;gap:10px;color:#fff}.shot-panel:before{content:"采集面板";font-weight:800}.shot-panel button{min-height:34px;border:0;border-radius:8px;color:#fff;background:var(--red)}.collect-shot,.search-shot{padding:18px;display:grid;gap:12px;align-content:start;background:#fffdf9}.shot-form,.shot-field,.shot-progress,.shot-list i,.shot-grid i{border-radius:8px;border:1px solid var(--line);background:#fff}.shot-form{height:74px}.shot-progress{height:42px;background:linear-gradient(90deg,var(--red) 62%,#fff 62%)}.shot-list,.shot-grid{display:grid;gap:10px}.shot-list i{height:42px}.shot-field{height:74px}.shot-grid{grid-template-columns:repeat(2,1fr)}.shot-grid i{height:58px;background:linear-gradient(135deg,#fff0f2,#fff)}.tutorial-hero{margin-bottom:18px;padding:22px;border:1px solid var(--line);border-radius:8px;display:flex;justify-content:space-between;gap:18px;align-items:center;background:#fff;box-shadow:var(--shadow)}.tutorial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tutorial-card{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.tutorial-card.wide{grid-column:span 2}.tutorial-card img{width:100%;aspect-ratio:16 / 9;display:block;object-fit:cover;background:#f4efe9;border-bottom:1px solid var(--line)}.tutorial-card div{padding:16px}.tutorial-card span{color:var(--red);font-size:12px;font-weight:800}.tutorial-card h3{margin-top:8px}.tutorial-card.plugin-install-guide{grid-column:1 / -1;display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.8fr);overflow:visible;border-color:#f0b5be;border-left:4px solid var(--red)}.plugin-install-guide .plugin-install-heading{padding:22px;border-right:1px solid #f0d9dd;background:#fff8f9}.plugin-install-heading h3{margin:8px 0;color:#24272d;font-size:18px}.plugin-install-heading p{margin:0;color:#6d727a;font-size:11px;line-height:1.65}.plugin-install-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:20px 10px;list-style:none}.plugin-install-steps li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:2px 14px}.plugin-install-steps li:not(:last-child){border-right:1px solid #eceef1}.plugin-install-steps b{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;color:#fff;background:#30343b;font-family:Cascadia Mono,Consolas,monospace;font-size:9px}.plugin-install-steps strong,.plugin-install-steps small{display:block}.plugin-install-steps strong{margin:5px 0 7px;color:#2b2e34;font-size:11px}.plugin-install-steps small{color:#777d86;font-size:9px;line-height:1.65}.plugin-install-footer{grid-column:1 / -1;display:flex;align-items:center;gap:7px;padding:10px 16px;border-top:1px solid #eceef1;color:#6d727a;background:#f7f8f9;font-size:9px;font-weight:700}.plugin-install-footer .lucide{width:13px;height:13px;color:var(--red-dark)}@media(max-width:900px){.tutorial-card.plugin-install-guide{grid-template-columns:1fr}.plugin-install-guide .plugin-install-heading{border-right:0;border-bottom:1px solid #f0d9dd}.plugin-install-steps{grid-template-columns:1fr;padding:8px 16px}.plugin-install-steps li{padding:14px 4px}.plugin-install-steps li:not(:last-child){border-right:0;border-bottom:1px solid #eceef1}}.publish-toolbar{margin-bottom:12px;display:flex;gap:8px;align-items:center}.publish-list{padding:10px;display:grid;gap:10px}.publish-item{display:grid;grid-template-columns:26px 82px minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fffefa}.publish-item img{width:82px;height:102px;object-fit:cover;border-radius:8px;background:#f2ede8}.publish-item p{margin-bottom:4px}.publish-actions{display:flex;gap:8px;align-items:center}.publish-status{color:var(--green);font-size:13px;font-weight:700}.publish-status.opened{color:#9a6a1c}.publish-status.published{color:#2f6b5f}.publish-status.failed{color:#b23b3b;border-color:#f3cdcd;background:#fff5f5}.publish-error{display:block;margin-top:4px;color:#b23b3b;font-size:12px;line-height:1.5}.publish-actions .retry-btn{border-color:#f0c9c9;color:#b23b3b}.toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%) translateY(80px);opacity:0;min-width:240px;width:max-content;max-width:min(680px,calc(100vw - 32px));padding:12px 16px;color:#fff;background:#211d1c;border-radius:8px;line-height:1.55;overflow-wrap:anywhere;text-align:center;transition:.2s ease;z-index:10}.toast.error{border:1px solid #8f555b;background:#3d2426}.toast.show{opacity:1;transform:translate(-50%) translateY(0)}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#16121059;display:grid;place-items:center;padding:16px;overflow:auto;z-index:20}.modal-card{position:relative;width:min(420px,calc(100vw - 32px));padding:24px;border-radius:8px;background:#fff;box-shadow:var(--shadow);text-align:center}.saved-image-library-card{width:min(1440px,calc(100vw - 48px));height:min(88vh,920px);max-height:calc(100dvh - 32px);display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px;padding:24px;overflow:hidden;text-align:left}.single-image-reference-add{min-height:32px;display:inline-flex;align-items:center;gap:6px;border:1px solid #ffd0d8;border-radius:6px;padding:0 10px;color:#b92540;background:#fff0f3;font-size:12px;font-weight:800;cursor:pointer}@media(max-width:640px){.single-image-editor-card{height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);padding:20px 16px}.single-image-editor-form{grid-template-columns:1fr}.single-image-current-stage{width:min(220px,100%);margin:0 auto}.single-image-editor-actions{position:sticky;bottom:0;background:#fff}}.saved-image-library-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding-right:38px}.saved-image-library-head h2{margin:3px 0 0;font-size:24px}.saved-image-library-head>span{min-width:72px;border-radius:999px;padding:6px 10px;color:#177458;background:#eaf6f1;font-size:11px;font-weight:800;text-align:center}.saved-image-library-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:max-content;align-items:start;align-content:start;min-height:0;overflow-x:hidden;overflow-y:auto;padding-right:6px;scrollbar-width:thin;scrollbar-color:#c5c9d0 transparent}.saved-image-library-grid .saved-generated-card{min-width:0;display:grid;grid-template-rows:auto auto;align-self:start}.saved-image-library-grid .generated-preview{overflow:hidden;border-bottom:1px solid var(--line);background:linear-gradient(45deg,#f0f1f3 25%,transparent 25%) 0 0 / 16px 16px,linear-gradient(-45deg,#f0f1f3 25%,transparent 25%) 0 8px / 16px 16px,linear-gradient(45deg,transparent 75%,#f0f1f3 75%) 8px -8px / 16px 16px,linear-gradient(-45deg,transparent 75%,#f0f1f3 75%) -8px 0 / 16px 16px,#fafafa}.saved-image-library-grid .generated-preview img{object-fit:cover}.saved-image-library-grid .saved-generated-card>.generated-card-actions{position:relative;z-index:1;min-height:60px;display:grid;align-items:center;margin:0;padding:12px;background:#fff;grid-template-columns:minmax(0,1fr) 36px;gap:6px}.saved-image-library-grid .saved-generated-card>.generated-card-actions .primary-btn,.saved-image-library-grid .saved-generated-card>.generated-card-actions .ghost-btn{min-width:0;padding-inline:8px;white-space:nowrap}.saved-image-library-grid:has(.generated-empty){grid-template-columns:minmax(0,1fr)}.saved-image-library-grid .generated-empty{min-height:280px}.template-role-card{width:min(760px,calc(100vw - 32px));max-height:min(calc(100vh - 32px),860px);overflow:hidden}.template-role-card h2{margin:0}.template-role-hint{margin:8px 0 18px;color:var(--muted);font-size:13px}.template-role-tools{display:flex;justify-content:flex-end;gap:6px;margin-bottom:10px}.template-role-pages{max-height:min(55vh,520px);overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:2px}.template-role-page{min-width:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fffdfa;text-align:left}.template-role-page img{display:block;width:100%;aspect-ratio:3 / 4;border-radius:6px;background:#f4f3f1;object-fit:contain}.template-role-page>strong{display:block;margin:7px 0;font-size:12px}.template-role-toggle{display:grid;grid-template-columns:1fr 1fr;gap:4px}.template-role-toggle label{position:relative;display:block;min-width:0}.template-role-toggle input{position:absolute;inset:0 auto auto 0;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}.template-role-toggle span{display:block;min-height:32px;padding:7px 5px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:#fff;text-align:center;font-size:12px;font-weight:700;cursor:pointer}.template-role-toggle input:checked+span{border-color:#ff7181;color:#c81f3c;background:#fff0f2}.template-role-toggle input:focus-visible+span{outline:2px solid #c81f3c;outline-offset:2px}.template-role-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.template-delete-card{width:min(560px,calc(100vw - 32px));text-align:left}.template-delete-card h2{margin:0 0 16px}.template-delete-summary{padding:13px 14px;border:1px solid var(--line);border-radius:8px;background:#fffdfa}.template-delete-summary span,.template-delete-summary strong{display:block}.template-delete-summary span{color:var(--muted);font-size:11px;font-weight:800}.template-delete-summary strong{margin-top:5px;color:var(--ink);font-size:15px;line-height:1.45}.template-delete-impact,.template-delete-warning{margin:12px 0 0;font-size:13px;line-height:1.6}.template-delete-impact{color:#5f5954}.template-delete-warning{padding:10px 12px;border-left:3px solid var(--red);color:#8f2434;background:#fff5f6}.template-delete-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:18px}#imageModelTestConfirmModal{z-index:45}#imageViewerModal{z-index:50}.image-model-test-confirm-card{width:min(500px,calc(100vw - 32px));text-align:left}.image-model-test-confirm-card h2{margin:0 0 18px}.image-model-test-spec{min-height:64px;display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.image-model-test-spec>.lucide{width:22px;height:22px;flex:0 0 22px;color:var(--red)}.image-model-test-spec span{min-width:0;display:grid;gap:3px}.image-model-test-spec strong{font-size:14px}.image-model-test-spec small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.image-model-test-cost-note{margin:14px 0 0;padding:10px 12px;border-left:3px solid #d99a22;color:#755317;background:#fff9ed;font-size:12px;line-height:1.6}.image-model-test-confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.danger-action{color:#fff;background:#c8243f;box-shadow:none}.danger-action:hover{background:#a91831}@media(max-width:620px){.template-role-pages{grid-template-columns:repeat(2,minmax(0,1fr))}}.image-viewer-card{width:min(980px,calc(100vw - 32px));height:min(92vh,1120px);padding:16px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}.image-viewer-title{min-height:34px;padding-right:42px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}.image-viewer-title strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-viewer-tools{display:flex;align-items:center;gap:5px;flex:0 0 auto}.image-viewer-tools button{min-width:32px;height:30px;padding:0 8px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:#fff;font-weight:800;cursor:pointer}.image-viewer-tools button:hover,.image-viewer-tools button.active{border-color:#b9aaa0;background:#faf7f4}.image-viewer-tools button:disabled{opacity:.4;cursor:default}.image-viewer-tools .image-viewer-regenerate{min-width:104px;border-color:#f0a7b3;color:var(--red)}.image-viewer-tools .image-viewer-regenerate:hover{border-color:var(--red);background:#fff2f4}.image-viewer-stage{min-height:0;display:grid;grid-template-columns:36px minmax(0,1fr) 36px;grid-template-rows:minmax(0,1fr);align-items:center;gap:10px}.image-viewer-canvas{grid-column:2;grid-row:1;width:100%;height:100%;min-width:0;min-height:0;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#f6f3f0}.image-viewer-canvas img{display:block;height:auto;max-width:none;max-height:none;margin:auto;border:0;border-radius:0;object-fit:contain;background:#fff}.image-viewer-canvas img.is-fit{width:100%;height:100%}.image-viewer-nav{justify-self:center}.image-viewer-prev{grid-column:1;grid-row:1}.image-viewer-next{grid-column:3;grid-row:1}.image-viewer-dots{min-height:12px;align-items:center}@media(max-width:620px){.image-viewer-card{width:calc(100vw - 20px);height:calc(100vh - 20px);padding:10px;gap:8px}.image-viewer-title{min-height:70px;padding-right:38px;align-items:flex-start;flex-direction:column;gap:6px}.image-viewer-tools{width:100%}.image-viewer-tools button{flex:1}.image-viewer-stage{grid-template-columns:30px minmax(0,1fr) 30px;gap:4px}}.ai-config-card{width:min(1180px,calc(100vw - 32px));height:min(730px,calc(100vh - 16px));max-height:calc(100vh - 16px);padding:0;overflow:hidden;text-align:left;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}.ai-config-title{min-height:96px;padding:22px 32px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}.ai-config-title h2{margin-bottom:0}.ai-config-title>span{color:var(--muted);font-size:13px;font-weight:700}.ai-config-title-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.ai-config-title-actions>span{color:var(--muted);font-size:13px;font-weight:700}.ai-config-status-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:0 32px;border-bottom:1px solid var(--line);background:#fafbfc}.ai-config-status-tabs button{position:relative;min-width:0;min-height:68px;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:10px;border:0;padding:10px 16px;color:#727781;background:transparent;text-align:left;cursor:pointer}.ai-config-status-tabs button:after{content:"";position:absolute;inset:auto 16px -1px;height:2px;background:transparent}.ai-config-status-tabs button+button{border-left:1px solid #eceef1}.ai-config-status-tabs button:hover,.ai-config-status-tabs button:focus-visible{color:var(--ink);background:#fff}.generated-card{position:relative}.topic-filter-status{min-width:102px;display:flex;align-items:center;justify-content:flex-end;gap:7px;color:var(--muted);font-size:11px;white-space:nowrap}.topic-filter-clear{border:0;padding:3px 0;color:var(--red-dark);background:transparent;font-size:11px;font-weight:700}.topic-filter-clear:hover,.topic-filter-clear:focus-visible{color:var(--red)}.topic-filter-empty{min-height:174px;display:grid;place-items:center;align-content:center;gap:6px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted);text-align:center}.topic-filter-empty strong{color:var(--ink);font-size:14px}.topic-filter-empty span{font-size:12px}.topic-filter-empty .ghost-btn{min-height:32px;margin-top:5px;padding-inline:12px}.ai-config-status-tabs button.active{color:var(--ink);background:#fff}.ai-config-status-tabs button.active:after{background:var(--red)}.ai-config-status-tabs .lucide{width:19px;height:19px;color:#8a909a}.ai-config-status-tabs button.active .lucide{color:var(--red)}.ai-config-status-tabs strong,.ai-config-status-tabs small{display:block}.ai-config-status-tabs strong{font-size:13px}.ai-config-status-tabs small{margin-top:3px;overflow:hidden;color:#969ba4;font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.ai-config-body,.ai-config-view{min-height:0;overflow:hidden}.ai-config-view{height:100%}.ai-config-view>.ai-config-main{height:100%}.ai-config-layout{display:grid;grid-template-columns:260px minmax(0,1fr);height:100%;min-height:0;overflow:hidden}.template-sidebar{padding:18px;border-right:1px solid var(--line);background:#f7f4ef;overflow-y:auto}.template-label{display:block;margin-bottom:10px;color:var(--muted);font-size:13px;font-weight:700}.template-list{display:grid;gap:10px;margin-bottom:14px}#addAiTemplateBtn{margin-bottom:10px}.danger-btn{color:var(--red);border-color:#ffd6dd;background:#fff7f8}button.is-cancel-action,.library-add-card.is-loading.is-cancel-action,.image-template-add-card.is-loading.is-cancel-action{cursor:pointer;border-color:#ff9aaa;color:var(--red-dark);background:#fff7f8}.ai-generate-btn.is-loading.is-cancel-action{color:var(--red-dark);background:#fff7f8;box-shadow:none;animation:none}button.is-cancel-action:hover,button.is-cancel-action:focus-visible{border-color:var(--red);color:#fff;background:var(--red)}.template-item{width:100%;border:1px solid transparent;border-radius:8px;padding:13px;color:var(--ink);background:transparent;text-align:left}.template-item.active,.template-item:hover{border-color:var(--line);background:#fff;box-shadow:0 8px 22px #36271e14}.template-item strong,.template-item span{display:block}.template-item span{margin-top:6px;color:var(--muted);font-size:12px}.template-item strong:before{content:"";width:8px;height:8px;margin-right:8px;border-radius:50%;display:inline-block;background:var(--red);vertical-align:middle}.ai-config-main{padding:22px 32px 24px;overflow-y:auto}.model-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}.model-config-panel{border:1px solid var(--line);border-radius:8px;padding:16px;background:#fffefa}.model-config-panel h3{margin-bottom:12px}.template-kind-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 14px}.template-kind-options label{display:flex;min-width:0;min-height:64px;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#fffdfa;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.template-kind-options label:has(input:checked){border-color:#ef9bad;background:#fff5f7;box-shadow:inset 0 0 0 1px #ef9bad}.template-kind-options label:hover{border-color:#ff24426b;transform:translateY(-1px)}.template-kind-options input{width:16px;height:16px;margin:2px 0 0;accent-color:#ff2442}.template-kind-options label>span{display:grid;grid-template-columns:17px minmax(0,1fr);align-items:center;min-width:0;gap:6px}.template-kind-options .lucide{width:16px;height:16px;color:#9d5363}.template-kind-options strong{color:var(--ink);font-size:12px;line-height:1.25;white-space:nowrap}.api-key-control{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.api-key-control .api-key-confirm-btn,.api-key-control .api-key-edit-btn{min-width:64px;padding-inline:12px}.text-model-config-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin-top:12px}.model-config-panel .text-model-config-row>label+label{margin-top:0}.sensitive-key-field{font-family:Cascadia Mono,Consolas,monospace;letter-spacing:0;user-select:none;-webkit-user-select:none}.sensitive-key-field[readonly]{border-color:#d9dde4;color:#4e5662;background:#f4f6f8;caret-color:transparent;cursor:default}.api-key-security-note{color:#8b9099;font-size:10px;font-weight:500;line-height:1.45}.image-model-test-result{min-height:76px;display:grid;grid-template-columns:64px minmax(0,1fr) 34px;align-items:center;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.image-model-test-result img{width:64px;height:64px;display:block;border:1px solid var(--line);border-radius:6px;object-fit:cover;background:#f4f5f7}.image-model-test-result>span{min-width:0;display:grid;gap:4px}.image-model-test-result strong{font-size:13px}.image-model-test-result small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.image-model-test-open{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;color:#60656f;background:#fff;cursor:pointer}.image-model-test-open:hover,.image-model-test-open:focus-visible{border-color:#ffabb8;color:var(--red);background:#fff6f7}.image-model-test-open .lucide{width:15px;height:15px}.model-fetch-status{display:block;margin-top:10px;color:var(--muted);font-size:12px;line-height:1.5}.model-fetch-status.success{color:var(--green)}.model-fetch-status.warning{color:#a26000}.model-fetch-status.error{color:var(--red)}.model-select{min-height:48px;padding:0 14px;border-color:#2f73ff;background:#fff;box-shadow:0 0 0 3px #2f73ff1f;font-weight:700}.image-assignment-card{width:min(560px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 32px));overflow:auto;text-align:left}.image-assignment-card>h2{margin:3px 42px 6px 0;font-size:24px}.image-assignment-hint{margin:0 42px 16px 0;color:#747982;font-size:12px;line-height:1.55}.image-assignment-preview{display:flex;align-items:center;gap:12px;min-height:68px;margin-bottom:16px;padding:8px 10px;border:1px solid #e3e5e9;border-radius:7px;background:#f7f8fa}.image-assignment-preview img{width:50px;height:50px;flex:0 0 50px;object-fit:contain;border:1px solid #e0e2e6;border-radius:5px;background:#fff}.image-assignment-preview span{min-width:0;overflow:hidden;color:#3d424b;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.image-assignment-workflow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}.image-assignment-workflow button{min-height:38px;border:1px solid #dfe2e7;border-radius:6px;color:#626873;background:#fff;font-size:12px;font-weight:800;cursor:pointer}.image-assignment-workflow button:hover,.image-assignment-workflow button.active{border-color:#ff9cad;color:#c7193d;background:#fff1f3}.image-assignment-tasks{display:grid;gap:7px;max-height:230px;overflow-y:auto;padding:2px}.image-assignment-task{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:9px;min-height:52px;padding:8px 10px;border:1px solid #e1e4e8;border-radius:6px;color:#343840;background:#fff;text-align:left;cursor:pointer}.image-assignment-task:hover,.image-assignment-task.selected{border-color:#ffabb9;background:#fff8f9}.image-assignment-task-radio{color:#a0a5ad}.image-assignment-task.selected .image-assignment-task-radio{color:var(--red)}.image-assignment-task-radio .lucide{width:18px;height:18px}.image-assignment-task strong,.image-assignment-task small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-assignment-task strong{font-size:12px}.image-assignment-task small{margin-top:3px;color:#8b9099;font-size:10px}.image-assignment-empty{display:grid;justify-items:center;gap:6px;padding:24px 16px;border:1px dashed #d9dde3;border-radius:6px;color:#8b9099;text-align:center}.image-assignment-empty .lucide{width:22px;height:22px;color:#c0c4ca}.image-assignment-empty strong{color:#555b65;font-size:12px}.image-assignment-empty span{font-size:11px}.image-assignment-role{margin:16px 0 0;padding:16px 0 0;border:0;border-top:1px solid #eceef1}.image-assignment-role legend{margin-bottom:10px;color:#343840;font-size:12px;font-weight:800}.image-assignment-role-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.image-assignment-role-option{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:10px;min-height:76px;padding:12px;border:1px solid #dfe2e7;border-radius:8px;color:#4c525d;background:#fff;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.image-assignment-role-option:hover{border-color:#ff9cad;background:#fffafb}.image-assignment-role-option:focus-within{outline:2px solid rgba(255,36,66,.28);outline-offset:2px}.image-assignment-role-option.selected{border-color:#ff6f88;background:#fff4f6;box-shadow:0 0 0 3px #ff244214}.image-assignment-role-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.image-assignment-role-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;color:#777e89;background:#f1f3f6}.image-assignment-role-option.selected .image-assignment-role-icon{color:#d91f45;background:#ffe1e6}.image-assignment-role-icon .lucide{width:18px;height:18px}.image-assignment-role-copy{min-width:0}.image-assignment-role-copy strong,.image-assignment-role-copy small{display:block}.image-assignment-role-copy strong{color:#343840;font-size:12px;line-height:1.35}.image-assignment-role-copy small{margin-top:4px;color:#858b95;font-size:10px;line-height:1.4}.image-assignment-role-check{display:grid;place-items:center;width:18px;height:18px;border:1px solid #d6d9df;border-radius:50%;color:transparent;background:#fff}.image-assignment-role-option.selected .image-assignment-role-check{border-color:var(--red);color:#fff;background:var(--red)}.image-assignment-role-check .lucide{width:12px;height:12px;stroke-width:2.5}.image-assignment-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}@media(max-width:560px){.image-assignment-card{padding:18px}.image-assignment-role-options{grid-template-columns:1fr}.image-assignment-actions{position:sticky;bottom:-18px;padding-top:12px;background:#fff}}.model-combobox{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 40px;min-width:0}.model-combobox>input{min-width:0;border-radius:6px 0 0 6px}.model-suggestion-trigger{display:grid;min-width:40px;min-height:42px;place-items:center;border:1px solid var(--line);border-left:0;border-radius:0 6px 6px 0;color:#5c5550;background:#faf9f7;cursor:pointer}.model-suggestion-trigger:hover,.model-suggestion-trigger[aria-expanded=true]{color:var(--red-dark);background:#fff4f5}.model-suggestion-trigger:focus-visible,.model-suggestion-option:focus-visible{outline:2px solid var(--red);outline-offset:-2px}.model-suggestion-trigger .lucide{width:17px;height:17px}.model-suggestion-menu{position:absolute;z-index:25;top:calc(100% + 5px);right:0;left:0;max-height:220px;overflow-y:auto;padding:4px;border:1px solid #d9d4cf;border-radius:6px;background:#fff;box-shadow:0 10px 22px #30272224}.model-suggestion-option{display:block;width:100%;min-height:36px;overflow:hidden;padding:7px 9px;border:0;border-radius:4px;color:#39332f;background:transparent;font:inherit;font-size:12px;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.model-suggestion-option:hover{color:#ae1f36;background:#fff1f3}.model-suggestion-empty{margin:0;padding:9px;color:var(--muted);font-size:11px;line-height:1.45}.model-action-row{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}.model-action-row .ghost-btn{flex:1;min-width:118px}@media(max-width:620px){.template-kind-options{grid-template-columns:repeat(2,minmax(0,1fr))}.text-model-config-row{grid-template-columns:1fr}}.watermark-config-panel{padding:6px 0 18px}.asset-storage-panel{display:grid;gap:18px;padding:6px 0 18px}.asset-storage-heading,.asset-storage-actions{display:flex;align-items:center;justify-content:space-between;gap:18px}.asset-storage-heading h3,.asset-storage-actions strong{margin:0}.asset-storage-heading p,.asset-storage-actions span{max-width:720px;margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.asset-storage-heading .ghost-btn,.asset-storage-actions .primary-btn{flex:0 0 auto}.asset-storage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.asset-storage-grid article{min-width:0;min-height:118px;display:grid;align-content:center;gap:6px;padding:18px;border-left:3px solid #8b929d}.asset-storage-grid article+article{border-top:0;border-left-width:1px;border-left-color:var(--line)}.asset-storage-grid article.is-protected{box-shadow:inset 3px 0 #168a64}.asset-storage-grid article.is-reclaimable{box-shadow:inset 3px 0 #d92b46}.asset-storage-grid article.is-template{box-shadow:inset 3px 0 #a76b13}.asset-storage-grid span,.asset-storage-grid small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.asset-storage-grid strong{overflow:hidden;color:var(--ink);font-size:24px;text-overflow:ellipsis;white-space:nowrap}.asset-storage-actions{border-top:1px solid var(--line);padding-top:16px}.watermark-config-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.watermark-config-heading h3{margin:0}.watermark-config-heading .model-fetch-status{margin-top:5px}.watermark-option-grid{margin-top:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.settings-toggle{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#4d4642;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;cursor:pointer}.settings-toggle input{width:17px;height:17px;margin:0;accent-color:var(--red)}.settings-toggle:has(input:checked){border-color:#ffc4ce;background:#fff7f8}.primary-toggle{min-width:92px;justify-content:center}.model-config-panel label,.template-editor label{display:grid;gap:8px;color:#4d4642;font-weight:700}.model-config-panel label+label,.template-editor label+label{margin-top:12px}.template-editor{display:grid;gap:12px;padding-bottom:4px}.template-edit-hint{margin:-2px 0 2px;color:var(--muted);font-size:13px}.template-name-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}.template-name-block{min-width:0}.template-name-summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 0}.template-name-summary>div{min-width:0}.template-name-label,.template-name-editor>label{display:block;margin-bottom:5px;color:var(--muted);font-size:12px;font-weight:700}.template-name-summary h3{margin:0;overflow:hidden;font-size:20px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.template-name-icon-btn{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;color:#656b75;background:#fff}.template-name-icon-btn:hover,.template-name-icon-btn:focus-visible{border-color:#ffabb8;color:var(--red);background:#fff6f7}.template-name-icon-btn.confirm{border-color:var(--red);color:#fff;background:var(--red)}.template-name-icon-btn .lucide{width:16px;height:16px}.template-name-editor>label{display:block}.template-name-edit-control{display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;gap:8px}.template-name-edit-control input{min-width:0;min-height:42px}.prompt-mode-tabs{min-height:42px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#fff;display:flex;gap:4px}.prompt-mode-tabs button{min-width:92px;border:0;border-radius:7px;padding:0 12px;color:var(--muted);background:transparent;font-weight:700}.prompt-mode-tabs button.active{color:#fff;background:var(--red)}.template-editor textarea{min-height:120px;resize:vertical}.ai-config-actions{padding:16px 32px 20px;border-top:1px solid var(--line);background:#fffdf9;display:flex;align-items:center;justify-content:space-between;gap:12px}.ai-config-actions>div{display:flex;gap:10px;flex-wrap:wrap}.modal-close{position:absolute;right:12px;top:12px;width:32px;height:32px;border:1px solid var(--line);border-radius:8px;background:#fff}.fake-qr{width:190px;height:190px;margin:18px auto;display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:14px;border:1px solid var(--line);border-radius:8px}.fake-qr span{border-radius:4px;background:#211d1c}.fake-qr span:nth-child(2n),.fake-qr span:nth-child(7),.fake-qr span:nth-child(14),.fake-qr span:nth-child(21){background:#fff0f2}@media(max-width:1320px){.topbar{display:grid;align-items:start}.top-actions{justify-content:flex-start}.rewrite-top-row{display:contents}.rewrite-layout{grid-template-columns:minmax(0,1fr);padding-right:400px}}@media(max-width:1280px){.viral-workbench{grid-template-columns:1fr}.sticky-compose{position:static}.library-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.rewrite-layout,.plugin-workbench,.plugin-layout,.section-heading.split,.template-library-layout,.template-preview-columns{grid-template-columns:1fr}.rewrite-layout{grid-template-areas:"draft" "preview" "editor";padding-right:0}.rewrite-top-row{display:contents}.draft-rail{display:grid;grid-template-columns:minmax(150px,180px) minmax(0,1fr)}.preview-panel{width:100%;position:static;transform:none;min-height:360px;padding:16px;background:transparent}.workflow-diagram{grid-template-columns:1fr}.flow-arrow{transform:rotate(90deg)}.style-template-grid,.generated-grid,.tutorial-grid,.template-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-config-layout,.model-config-grid,.template-name-row{grid-template-columns:1fr}.ai-config-layout{height:100%;max-height:none;overflow-y:auto}.template-config-layout .template-sidebar,.template-config-layout .template-config-main{overflow:visible}.template-sidebar{border-right:0;border-bottom:1px solid var(--line)}}@media(max-width:820px){.viral-draft-plan-head{display:grid}.viral-draft-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.viral-draft-selection-grid>div:nth-child(2){border-right:0}.viral-draft-selection-grid>div:nth-child(-n+2){border-bottom:1px solid #d7e8dd}.viral-workbench-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.viral-workbench-tabs button{min-width:0;padding:0 8px}.viral-heading,.viral-panel-head{align-items:stretch;display:grid}.viral-score-grid,.viral-atom-library,.viral-brief-form,.performance-form,.viral-atom-tools{grid-template-columns:1fr}.four-library-flow,.library-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-package-form{grid-template-columns:1fr}.modal-card.topic-package-editor-card{width:100%;max-width:100%;padding:22px 16px 24px}#topicPackageModal{padding:10px}.topic-library-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-library-tools input,.topic-filter-status{grid-column:1 / -1}.topic-package-grid{grid-template-columns:1fr}.topic-package-form .wide{grid-column:auto}.library-workbench-slots{grid-template-columns:1fr}.library-workbench-slots .library-slot{border-right:0}.library-workbench-slots .library-slot:first-child{border-bottom:1px solid var(--line)}.ai-generate-row{grid-template-columns:1fr}.viral-combination-tray,.viral-visual-head,.viral-visual-label,.viral-visual-template-status{align-items:stretch;display:grid}.viral-visual-template-status .primary-btn,.viral-visual-template-status .ghost-btn{width:100%}.viral-template-ai-grid{grid-template-columns:1fr}.viral-brief-form label.wide,.viral-brief-form button{grid-column:auto}.modal{align-items:start;padding:10px}.ai-config-card{width:calc(100vw - 20px);height:calc(100vh - 20px);max-height:calc(100vh - 20px)}.app-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.sidebar{position:static;height:auto;max-height:34vh;overflow-y:auto}.workspace{height:100%;padding:18px}h1{word-break:normal}.topbar,.workflow-note,.route-banner,.tutorial-hero,.template-library-head,.template-detail-head{position:static;display:grid}.workflow-diagram{padding:24px 16px}.flow-column,.flow-editor-card,.note-shot,.studio-preview,.entry-grid,.tool-grid,.style-template-grid,.generated-grid,.plugin-feature-list,.tutorial-grid,.template-meta-grid,.template-ai-editor-grid{grid-template-columns:1fr}.template-library-detail{padding:14px}.template-detail-actions{justify-content:flex-start}.template-preview-strip{grid-auto-columns:minmax(150px,180px)}.poster-theme-row,.poster-region-inspector-head{grid-template-columns:1fr;display:grid}.poster-theme-list{justify-content:flex-start}.poster-region-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.poster-canvas-stage{width:100%}.layered-editor-grid{grid-template-columns:1fr}.layer-tree-panel,.layer-content-panel{max-height:none}.tutorial-card.wide{grid-column:auto}.entry-card{min-height:auto}.draft-rail{max-height:none;grid-template-columns:1fr}.draft-rail .rail-head{border-right:0;border-bottom:1px solid var(--line)}.publish-item{grid-template-columns:24px 68px minmax(0,1fr)}.publish-item .publish-actions{grid-column:1 / -1}.ai-config-title,.ai-config-actions{display:grid;padding-left:18px;padding-right:18px}.ai-config-status-tabs{padding:0 10px}.ai-config-status-tabs button{min-height:66px;grid-template-columns:minmax(0,1fr);justify-items:center;gap:4px;padding:8px 5px;text-align:center}.ai-config-status-tabs button:after{inset-inline:6px}.ai-config-status-tabs small{display:none}.ai-config-status-tabs .lucide{width:17px;height:17px}.ai-config-main{padding:18px}.watermark-config-heading,.watermark-option-grid,.asset-storage-grid{grid-template-columns:1fr}.watermark-config-heading,.asset-storage-heading,.asset-storage-actions{display:grid}.asset-storage-heading .ghost-btn,.asset-storage-actions .primary-btn{width:100%}.asset-storage-grid article+article{border-top:1px solid var(--line);border-left:3px solid transparent}.primary-toggle,.prompt-mode-tabs{width:100%}.template-name-summary h3{white-space:normal}.prompt-mode-tabs button{flex:1;min-width:0}}#section-plugin .low-fan-workbench{--collector-radius: 14px;--collector-border: #e4ecea;gap:20px;padding:26px 28px 30px;border:1px solid var(--collector-border);border-radius:16px;background:radial-gradient(120% 130% at 0% 0%,#f2f9f6,#fff 46%),#fff;box-shadow:0 12px 34px #0f2c260f}#section-plugin .low-fan-heading{gap:20px;padding-bottom:0}#section-plugin .low-fan-heading .eyebrow{font-size:11px;font-weight:800;letter-spacing:1.3px}#section-plugin .low-fan-heading h2{margin:6px 0 8px;font-size:32px;line-height:1.15;letter-spacing:.2px}#section-plugin .low-fan-heading p:last-child{max-width:720px;font-size:13.5px;line-height:1.7}#section-plugin .low-fan-risk-note{margin-top:6px;padding:8px 13px;font-size:11.5px;font-weight:700;box-shadow:0 2px 6px #8c641f14}#section-plugin .low-fan-config-row{gap:20px;align-items:stretch}#section-plugin .low-fan-config,#section-plugin .low-fan-run-panel{display:flex;flex-direction:column;border:1px solid var(--collector-border);border-radius:var(--collector-radius);background:#fff;box-shadow:0 2px 10px #0f2c260a}#section-plugin .low-fan-config{gap:16px;padding:20px 20px 22px;border-right:0}#section-plugin .low-fan-run-panel{gap:14px;padding:20px}#section-plugin .low-fan-config label:not(.low-fan-check){gap:8px;color:#42504e;font-size:12px;font-weight:700;letter-spacing:.2px}#section-plugin .low-fan-config input[type=search],#section-plugin .low-fan-config input[type=number]{border:1px solid #dbe5e3;border-radius:10px;background:#fbfdfd;color:var(--collector-ink);font-variant-numeric:tabular-nums;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}#section-plugin .low-fan-config input[type=search]:focus,#section-plugin .low-fan-config input[type=number]:focus{border-color:#7fc3ae;background:#fff;outline:0;box-shadow:0 0 0 3px #207a6421}#section-plugin .low-fan-config .low-fan-seed-control input[type=search]{min-height:46px;padding:0 40px;font-size:14px}#section-plugin .low-fan-seed-control>.lucide{left:14px;width:16px;height:16px;color:#8aa19c}#section-plugin .low-fan-config input[type=number]{min-height:42px;padding:0 12px;font-size:13.5px}#section-plugin .low-fan-inline-fields{gap:12px}#section-plugin .low-fan-suffix-label{padding-top:8px;color:#42504e;font-size:12px;font-weight:700}#section-plugin .low-fan-suffix-items{gap:8px}#section-plugin .low-fan-suffix-chip{border:1px solid #cfe7de;border-radius:999px;padding:4px 4px 4px 11px;background:#eef8f3;color:#1c6b58;font-size:12px;font-weight:600}#section-plugin .low-fan-suffix-chip button{width:19px;height:19px;border-radius:999px;background:#1c6b581a;color:#1c6b58}#section-plugin .low-fan-suffix-chip button:hover{background:#ffdce2;color:#bd1230}#section-plugin .low-fan-suffix-add{border:1px dashed #b9d8ce;border-radius:999px;background:#f7fbfa}#section-plugin .low-fan-suffix-add button{color:#1c6b58}#section-plugin .low-fan-check{gap:11px;padding:11px 13px;border:1px solid var(--collector-border);border-radius:11px;background:#fbfdfd;transition:border-color .14s ease,background .14s ease}#section-plugin .low-fan-check:hover{border-color:#cfe3dd;background:#fff}#section-plugin .low-fan-check input{width:16px;min-width:16px;height:16px;margin-top:2px;accent-color:#207a64;cursor:pointer}#section-plugin .low-fan-check strong{font-size:12.5px;letter-spacing:.2px}#section-plugin .low-fan-check small{margin-top:4px;color:#7c8a88;font-size:11px;line-height:1.5}#section-plugin .low-fan-form-actions{margin-top:auto;padding-top:6px}#section-plugin .low-fan-form-actions .primary-btn{width:100%;min-height:44px;border-radius:11px;font-size:14px;font-weight:700;letter-spacing:.3px;box-shadow:0 4px 12px #ff244229}#section-plugin .low-fan-form-actions .primary-btn:hover{box-shadow:0 9px 22px #ff244242}#section-plugin .low-fan-visual-search{gap:12px;padding:16px;border:1px solid #d9ece5;border-radius:var(--collector-radius);background:linear-gradient(135deg,#f1faf6,#fdfefe 62%)}#section-plugin .low-fan-visual-search-icon{width:38px;height:38px;flex:0 0 38px;border-radius:11px;color:var(--collector-teal);background:#e2f3ec}#section-plugin .low-fan-visual-search-icon .lucide{width:19px;height:19px}#section-plugin .low-fan-visual-search-copy h3{color:var(--collector-ink);font-size:14.5px}#section-plugin .low-fan-visual-search-copy p{margin-top:5px;color:#6e797e;font-size:11.5px;line-height:1.6}#section-plugin .low-fan-visual-drop{border:1.5px dashed #b7d9cd;border-radius:12px;color:#4f7d70;background:#fbfefd;transition:border-color .14s ease,background .14s ease}#section-plugin .low-fan-visual-drop:hover{border-color:#7fc3ae;background:#f4fbf8}#section-plugin .low-fan-visual-drop.has-image{border-style:solid;border-color:#cfe7de}#section-plugin .low-fan-visual-placeholder .lucide{width:22px;height:22px;color:#6fb59d}#section-plugin .low-fan-visual-placeholder b{color:#2a4d43;font-size:12px}#section-plugin .low-fan-visual-placeholder small{color:#8aa19c;font-size:10.5px}#section-plugin .low-fan-visual-search-result span{color:#7c8a88;font-size:11px}#section-plugin .low-fan-visual-search-result strong{color:var(--collector-ink);font-size:15px}#section-plugin .low-fan-visual-search-result p{color:#5f6f6c;font-size:11.5px}#section-plugin .low-fan-visual-search-btn{min-height:44px;border-radius:11px;border-color:var(--collector-teal);color:#fff;background:var(--collector-teal);font-size:13.5px;font-weight:700;box-shadow:0 6px 14px #207a642e}#section-plugin .low-fan-visual-search-btn:not(:disabled):hover{border-color:#1b6a57;background:#1b6a57}#section-plugin .low-fan-visual-search-btn:disabled{border-color:#dfeae6;color:#7f9791;background:#e7f0ed;box-shadow:none}#section-plugin .low-fan-run-head{gap:12px}#section-plugin .low-fan-status-badge{padding:7px 12px;font-size:12.5px!important}#section-plugin #lowFanJobMeta{font-size:11.5px}#section-plugin .low-fan-run-actions .mini-btn{min-height:34px;border:1px solid var(--collector-border);border-radius:9px;padding:0 12px;background:#fff;font-weight:600}#section-plugin .low-fan-run-actions .mini-btn:not(:disabled):hover{border-color:#cfe3dd;background:#f4faf8}#section-plugin .low-fan-progress-meta{font-size:11.5px;font-weight:600;letter-spacing:.3px}#section-plugin .low-fan-progress-meta b{font-size:15px;font-variant-numeric:tabular-nums}#section-plugin .low-fan-progress-track{height:10px;border-radius:999px;background:#e8efed;box-shadow:inset 0 1px 2px #0f2c2612}#section-plugin .low-fan-progress-track span{border-radius:999px;background:linear-gradient(90deg,#35a184,#207a64)}#section-plugin .low-fan-progress-message{min-height:20px;font-size:12px}#section-plugin .low-fan-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:auto;padding-top:0;border-top:0}#section-plugin .low-fan-counts span{display:flex;align-items:center;gap:8px;padding:11px 12px;border:1px solid var(--collector-border);border-radius:11px;background:#fbfdfd;color:#6e797e;font-size:11px;font-weight:600}#section-plugin .low-fan-counts b{margin-left:auto;color:var(--collector-ink);font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}#section-plugin .low-fan-counts span:nth-child(1) .lucide{color:#1f9a72}#section-plugin .low-fan-counts span:nth-child(2) .lucide{color:#c9922a}#section-plugin .low-fan-counts span:nth-child(3) .lucide{color:#4a7fb5}#section-plugin .low-fan-results-panel{padding-top:22px;border-top:1px solid var(--collector-border)}#section-plugin .low-fan-results-head strong{font-size:17px;letter-spacing:.2px}#section-plugin .low-fan-results-head span{margin-top:5px;font-size:12px;line-height:1.6}#section-plugin .low-fan-result-filters{gap:2px;padding:3px;border:0;border-radius:10px;background:#eef3f2}#section-plugin .low-fan-result-filters button{min-height:30px;border:0;border-right:0;border-radius:8px;padding:0 14px;background:transparent;color:#6b7a78;font-size:12px;font-weight:600}#section-plugin .low-fan-result-filters button.active{background:#fff;color:#1c6b58;box-shadow:0 1px 3px #0f2c2624}#section-plugin .low-fan-result-toolbar .mini-btn{min-height:36px;border-radius:9px}#section-plugin .low-fan-table-wrap{margin-top:16px;border-color:var(--collector-border);border-radius:12px;box-shadow:0 2px 10px #0f2c260a}#section-plugin .low-fan-table th{position:sticky;top:0;z-index:1;height:46px;padding:0 14px;border-bottom:1px solid var(--collector-border);background:#f4f8f7;color:#5c6b69;font-size:11.5px;font-weight:700;letter-spacing:.4px}#section-plugin .low-fan-table td{height:64px;padding:10px 14px;color:#4a5a58;font-size:12.5px}#section-plugin .low-fan-table tbody tr:hover{background:#f7fbfa}#section-plugin .low-fan-table td strong{font-size:13px}#section-plugin .low-fan-table td small{margin-top:5px;color:#8b9795;font-size:10.5px}#section-plugin .low-fan-table th:nth-child(1){width:24%}#section-plugin .low-fan-table th:nth-child(2){width:9%}#section-plugin .low-fan-table th:nth-child(3){width:7%}#section-plugin .low-fan-table th:nth-child(4){width:9%}#section-plugin .low-fan-table th:nth-child(5){width:13%}#section-plugin .low-fan-table th:nth-child(6){width:9%}#section-plugin .low-fan-table th:nth-child(7){width:13%}#section-plugin .low-fan-table th:nth-child(8){width:16%}#section-plugin .low-fan-link-actions{flex-wrap:nowrap;gap:6px}#section-plugin .low-fan-link-actions a{font-weight:600}#section-plugin .low-fan-copy-btn{min-height:28px;padding:0 7px;border-radius:7px;font-size:11.5px}#section-plugin .low-fan-replicate-btn{min-height:28px;padding:0 9px;border-radius:7px;font-size:11px}#section-plugin .low-fan-quality{border-radius:999px;padding:4px 10px;background:#fdeef1;font-size:11px;font-weight:700}#section-plugin .low-fan-quality.complete{background:#e8f7f0}#section-plugin .low-fan-empty{top:47px;right:0;bottom:0;left:0;display:grid;align-content:center;justify-items:center;gap:8px;padding:28px;text-align:center}#section-plugin .low-fan-empty-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:var(--collector-teal);background:#eef7f4}#section-plugin .low-fan-empty-icon .lucide{width:22px;height:22px}#section-plugin .low-fan-empty strong{color:var(--collector-ink);font-size:13.5px}#section-plugin .low-fan-empty small{max-width:380px;color:#7c8a88;font-size:11.5px;line-height:1.6}@media(max-width:900px){#section-plugin .low-fan-workbench{gap:16px;padding:18px 14px 22px}#section-plugin .low-fan-heading h2{font-size:26px}#section-plugin .low-fan-config,#section-plugin .low-fan-run-panel{padding:16px}#section-plugin .low-fan-inline-fields,#section-plugin .low-fan-counts{grid-template-columns:1fr}}:root{--red: #ff2b4e;--red-dark: #d9163a;--ink: #17191e;--muted: #70747d;--soft: #f5f6f8;--paper: #ffffff;--line: #e5e7eb;--green: #168a64;--blue: #3976d3;--amber: #b96c18;--shadow: 0 10px 28px rgba(23, 25, 30, .07);--shadow-hover: 0 16px 36px rgba(23, 25, 30, .11)}html{color-scheme:light}body{color:var(--ink);background:var(--soft);font-family:MiSans,HarmonyOS Sans SC,PingFang SC,Microsoft YaHei,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea,select{letter-spacing:0}button{transition:color .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}button:focus-visible,label.file-btn:has(input:focus-visible),input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid rgba(255,43,78,.18);outline-offset:2px}.lucide{width:18px;height:18px;flex:0 0 auto;stroke-width:1.8}.app-shell{grid-template-columns:216px minmax(0,1fr);background:var(--soft)}.sidebar{position:relative;z-index:4;gap:14px;padding:18px 14px 14px;border-right:1px solid var(--line);background:#fbfbfc}.brand{min-height:52px;gap:10px;padding:0 6px 14px}.brand-mark{width:38px;height:38px;border-radius:7px;background:var(--red);box-shadow:0 7px 18px #ff2b4e33}.brand-mark .lucide{width:19px;height:19px}.brand strong{font-size:15px;font-weight:800}.brand span{margin-top:2px;font-size:10px}.nav{gap:4px}.nav-item{position:relative;min-height:42px;gap:9px;border-radius:6px;padding:7px 10px;color:#565b65;font-size:13px;font-weight:650}.nav-item:hover{color:var(--ink);background:#f0f1f4}.nav-item.active{color:var(--red-dark);background:#fff0f3}.nav-item.active:before{content:"";position:absolute;left:-14px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--red)}.nav-icon,.nav-item.nav-subitem .nav-icon{width:28px;min-width:28px;height:28px;border-radius:6px;color:#737782;background:transparent}.nav-item.active .nav-icon{color:var(--red);background:#fff;box-shadow:0 2px 8px #d9163a14}.nav-icon .lucide{width:16px;height:16px}.nav-chevron{width:15px;height:15px;margin-left:auto}.nav-subgroup{gap:2px;margin:0 0 5px 19px;padding-left:8px;border-left-color:#d7d9de}.nav-item.nav-subitem{min-height:34px;padding:4px 8px;color:#696e78;font-size:11px}.nav-item.nav-subitem.active:before{display:none}.sidebar-stats{display:grid;grid-template-columns:1fr 1fr;margin-top:auto;border:1px solid var(--line);border-radius:7px;background:#fff}.side-metric{min-width:0;display:grid;gap:4px;justify-items:start;border:0;border-radius:0;padding:10px 11px;background:transparent}.side-metric+.side-metric{border-left:1px solid var(--line)}.side-metric span{font-size:10px;white-space:nowrap}.side-metric strong{font-family:Cascadia Mono,Consolas,monospace;font-size:18px;line-height:1}.workspace{--page-enter-offset: 10px;--page-exit-offset: -6px;position:relative;padding:20px 28px 26px}.workspace.section-transition-backward{--page-enter-offset: -10px;--page-exit-offset: 6px}.topbar{position:relative;display:flex;min-height:58px;margin-bottom:16px;padding:0 0 14px;border-bottom:1px solid var(--line)}.topbar:after{content:"";position:absolute;left:0;bottom:-1px;width:72px;height:2px;background:var(--red)}.eyebrow{margin-bottom:4px;color:#8a505a;font-size:10px;font-weight:800;letter-spacing:0}h1{max-width:none;margin:0;font-size:24px;font-weight:800;line-height:1.25}h2{margin-bottom:5px;font-size:22px;line-height:1.35}h3{margin-bottom:5px;font-size:17px;line-height:1.4}p{line-height:1.6}.top-actions{flex-wrap:nowrap;gap:7px}.primary-btn,.ghost-btn,.mini-btn,.file-btn{min-height:38px;border-radius:6px;padding:0 13px;font-size:12px;font-weight:700}.primary-btn{background:var(--red);box-shadow:0 7px 16px #ff2b4e29}.primary-btn:hover{background:var(--red-dark);box-shadow:0 9px 20px #d9163a33;transform:translateY(-1px)}.ghost-btn,.file-btn{border-color:#dfe1e6;color:#30343b;background:#fff;box-shadow:0 2px 5px #17191e08}.ghost-btn:hover,.file-btn:hover{border-color:#c9cbd2;background:#f8f8fa}.mini-btn{min-height:30px;border-color:#ffd3db;color:var(--red-dark);background:#fff4f6}.danger-btn{color:#b22a3e}.section{grid-column:1;grid-row:2}.section.active,.section.is-leaving{padding-right:6px}.section.active{position:relative;z-index:1}.section.active.is-entering{animation:workspace-section-enter .26s cubic-bezier(.22,1,.36,1) both;will-change:opacity,top}.section.is-leaving{position:relative;z-index:0;display:block;height:100%;overflow:hidden;pointer-events:none;animation:workspace-section-exit .18s cubic-bezier(.4,0,1,1) both;will-change:opacity,top}#section-rewrite.section.active{--rewrite-preview-reserve: 440px;--rewrite-editor-width: min(calc(100% - var(--rewrite-preview-reserve)), 1280px);--rewrite-editor-offset: max(0px, calc((100% - var(--rewrite-preview-reserve) - var(--rewrite-editor-width)) / 2));overflow-x:hidden;overflow-y:hidden}.section.active::-webkit-scrollbar-thumb{border-color:var(--soft);background:#cfd2d8}.section-heading{margin:12px 0 14px}.section-heading>p:last-child{max-width:720px;margin-bottom:0;font-size:13px}.entry-grid{min-height:calc(100% - 66px);grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);grid-template-rows:minmax(250px,1fr) minmax(176px,.62fr);gap:14px}.entry-card{min-height:0;border-color:var(--line);border-radius:7px;box-shadow:0 5px 18px #17191e0e}.entry-card:hover{border-color:#d5d7dc;box-shadow:var(--shadow-hover);transform:translateY(-2px)}.entry-card-primary{grid-row:1 / 3}.entry-card.action-card .entry-body{gap:11px;padding:20px}.entry-card-head{display:flex;align-items:center;gap:12px}.entry-card-icon{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:1px solid #f0d8dd;border-radius:7px;color:var(--red-dark);background:#fff5f7}.entry-card-icon .lucide{width:18px;height:18px}.entry-kicker{color:#9b626b;font-size:9px;font-weight:800}.entry-card-head h3{margin:1px 0 0}.entry-meta{margin:0;color:var(--muted);font-size:11px}.entry-card-primary textarea{min-height:180px;flex:1 1 auto;resize:none}.entry-card:not(.entry-card-primary) .upload-preview:empty{display:none}textarea,input[type=text],input[type=url],input[type=search],input[type=number],input[type=password],select{border-color:#dfe1e6;border-radius:6px;color:var(--ink);background:#fff}textarea:hover,input[type=text]:hover,input[type=search]:hover,input[type=number]:hover,input[type=password]:hover,select:hover{border-color:#c8cbd1}.draft-rail,.editor-panel,.preview-panel,.generator-panel,.plugin-copy{border-color:var(--line);border-radius:7px;box-shadow:0 5px 18px #17191e0d}.rewrite-layout{width:var(--rewrite-editor-width);min-width:0;max-width:none;min-height:100%;height:100%;grid-template-columns:minmax(0,1fr);grid-template-areas:"draft" "editor";grid-template-rows:80px minmax(0,1fr);gap:14px;padding-right:0;margin-left:var(--rewrite-editor-offset);margin-right:0;overflow:hidden;align-content:stretch}.rewrite-layout::-webkit-scrollbar{width:10px}.rewrite-layout::-webkit-scrollbar-track{background:transparent}.rewrite-layout::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#c5c9d0;background-clip:padding-box}.rewrite-top-row{display:contents}.draft-rail{position:sticky;top:0;z-index:12;align-self:start;height:80px;min-height:80px;max-height:80px;grid-template-columns:138px minmax(0,1fr) 104px;grid-template-areas:"summary tasks bulk";border-color:#e1e3e7;border-radius:14px;background:#fff;box-shadow:0 5px 16px #17191e0e}.rail-head{padding:14px 16px}.draft-rail .rail-head{position:relative;grid-area:summary;align-items:center;justify-content:center;gap:0;padding:10px 12px;border-right:1px solid #eceef1;border-bottom:0}.rail-summary{min-width:0;display:flex;align-items:baseline;justify-content:center;gap:5px;transform:translate(-8px)}.rail-summary span{color:#8a8f98;font-size:10px;font-weight:700}.rail-summary strong{color:#292c32;font-size:14px;line-height:1.1;white-space:nowrap}.draft-new-btn,.draft-delete-btn{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border:1px solid #e1e3e7;border-radius:6px;padding:0;color:#656a73;background:#fff;cursor:pointer}.draft-new-btn{position:absolute;top:50%;right:10px;transform:translateY(-50%)}.draft-new-btn:hover,.draft-new-btn:focus-visible{border-color:#ffb3bf;color:var(--red);background:#fff7f8}.draft-new-btn .lucide,.draft-delete-btn .lucide{width:14px;height:14px}.draft-list{grid-area:tasks;padding:8px;gap:8px;scrollbar-width:thin;scrollbar-color:#d7dae0 transparent}.draft-item{position:relative;flex:0 0 270px;min-height:62px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;border-color:#e4e6ea;border-radius:6px;padding:6px 7px 6px 9px;background:#fff}.draft-item:before{content:"";position:absolute;inset:8px auto 8px 0;width:2px;border-radius:0 2px 2px 0;background:transparent}.draft-item strong{color:#30333a;font-size:13px;line-height:1.3}.draft-item .draft-item-meta{position:relative;display:block;overflow:hidden;margin-top:3px;padding-left:10px;color:#8a8f98;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.draft-item .draft-item-meta:before{content:"";position:absolute;left:0;top:50%;width:5px;height:5px;border-radius:50%;background:#aeb3bc;transform:translateY(-50%)}.draft-item.status-active .draft-item-meta:before{background:var(--red)}.draft-item.status-queued .draft-item-meta:before{background:#168a64}.draft-item-identity{width:38px;height:42px;display:grid;place-items:center;overflow:hidden;margin-top:0;border:1px solid color-mix(in srgb,var(--draft-source, #7d838d) 18%,white);border-radius:5px;color:var(--draft-source, #6e747e);background:var(--draft-source-soft, #f3f4f6)}.draft-item-identity img{width:100%;height:100%;display:block;object-fit:cover}.draft-item-identity .lucide{width:16px;height:16px}.draft-item.source-link{--draft-source: #2f80ed;--draft-source-soft: #edf5ff}.draft-item.source-upload{--draft-source: #168a64;--draft-source-soft: #edf8f4}.draft-item.source-image{--draft-source: #a76b13;--draft-source-soft: #fff7e6}.draft-item.source-plugin{--draft-source: #6f5ab5;--draft-source-soft: #f4f1fb}.draft-item.source-viral{--draft-source: #d92b46;--draft-source-soft: #fff0f3}.draft-item.source-blank{--draft-source: #69717d;--draft-source-soft: #f1f3f5}.draft-item-side{min-width:30px;display:grid;align-content:center;justify-items:center;gap:1px}.draft-item .draft-item-number{display:block;margin:0;color:#3f444d;font-family:Cascadia Mono,Consolas,monospace;font-size:11px;font-weight:700;line-height:1}.draft-item-side .draft-delete-btn{width:26px;height:26px;flex-basis:26px}.draft-delete-btn{border-color:transparent;color:#a2a6ae;background:transparent}.draft-delete-btn:hover,.draft-delete-btn:focus-visible{border-color:#ffd3da;color:#c72a40;background:#fff5f7}.draft-item.active,.draft-item:hover{border-color:#d9dce2;background:#fafbfc;box-shadow:0 2px 8px #17191e0b}.draft-item.active:before{background:var(--red)}.draft-rail-end-actions{grid-area:bulk;display:grid;place-items:center;border-left:1px solid #eceef1;background:#fcfcfd}.draft-delete-all-btn{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:6px;padding:0 9px;color:#b22a3e;background:transparent;font-size:10px;font-weight:700;cursor:pointer}.draft-delete-all-btn:hover,.draft-delete-all-btn:focus-visible{background:#fff1f4}.draft-delete-all-btn:disabled{color:#b8bbc2;background:transparent;cursor:not-allowed}.draft-delete-all-btn .lucide{width:14px;height:14px}.editor-panel{min-width:0;max-width:none;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-color:#e9eaed;border-radius:18px;box-shadow:0 8px 28px #17191e0e}.editor-panel>.empty-state{flex:1 1 auto;min-height:0}#section-rewrite.original-mode #emptyEditor [data-new-draft],#section-rewrite.original-mode #emptyEditor [data-workflow-intake]{display:none}#section-rewrite.original-mode #emptyEditor [data-workflow-template-library]{display:inline-flex;color:#fff}#section-rewrite.original-mode #emptyEditor [data-workflow-template-library]>span{color:inherit}#emptyEditor [data-workflow-template-library]{display:none}.editor-form{flex:1 1 auto;min-height:0;gap:0;padding:0 30px 24px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#c5c9d0 transparent}.editor-form::-webkit-scrollbar{width:10px}.editor-form::-webkit-scrollbar-track{background:transparent}.editor-form::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#c5c9d0;background-clip:padding-box}.ai-generate-row{margin:16px -30px 12px;padding:14px 30px;background:#fafbfc}.edit-block{gap:9px;padding:18px 0;border-bottom:1px solid #f0f1f3}.visual-mode-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px;border:1px solid #e9eaed;border-radius:8px;background:#fafbfc}.visual-mode-control{min-width:0;display:grid;gap:6px}.visual-mode-control>span{color:#696e78;font-size:11px;font-weight:700}.visual-mode-control .segmented{width:100%;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.visual-mode-control .segmented button{min-width:0;min-height:32px;padding-inline:8px;white-space:nowrap}.visual-copy-blocks{display:grid;gap:8px}.visual-copy-blocks label{display:grid;gap:5px}.visual-copy-blocks label>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.visual-copy-blocks label>span b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:760px){.visual-mode-controls{grid-template-columns:1fr}}.editor-form>.edit-block:focus-within>.edit-block-head label{color:var(--red-dark)}#editorForm #draftTitle,#editorForm #draftBody,#editorForm #draftTags{width:100%;border:0;border-radius:0;padding:4px 0 10px;color:var(--ink);background:transparent;box-shadow:none}#editorForm #draftTitle,#editorForm #draftBody{overflow-y:hidden}#editorForm #draftTitle:hover,#editorForm #draftBody:hover,#editorForm #draftTags:hover,#editorForm #draftTitle:focus,#editorForm #draftBody:focus,#editorForm #draftTags:focus{border-color:transparent;outline:0;background:transparent;box-shadow:none}#editorForm #draftTitle{height:38px;min-height:0;font-size:18px;font-weight:650;line-height:1.65;resize:none}#editorForm #draftBody{height:48px;min-height:0;font-size:15px;line-height:1.9;resize:none}#editorForm #draftTags{min-height:42px;color:#135fb5;line-height:1.6}#editorForm #draftTitle::placeholder,#editorForm #draftBody::placeholder,#editorForm #draftTags::placeholder{color:#b6bac2}.mini-status,.status-pill,.publish-status{border-radius:999px;border-color:#cfe4dc;color:#177458;background:#f0f8f5}.mini-ai-btn{width:auto;min-width:104px;height:30px;border-radius:6px}.block-ai-panel{border:1px solid #f1cbd2;border-left:3px solid var(--red);border-radius:14px;background:#fff8f9;box-shadow:none}.preview-panel{position:absolute;top:0;left:calc(var(--rewrite-editor-offset) + var(--rewrite-editor-width) + 6px);right:0;bottom:auto;z-index:10;grid-area:preview;align-self:auto;width:auto;min-width:0;max-width:none;height:calc(100dvh - 127px);max-height:calc(100dvh - 127px);min-height:0;--preview-fixed-width: 420px;--preview-fixed-height: 1206px;--preview-content-height: 1206px;--preview-phone-height: 910px;--preview-gap: 18px;--preview-composition-height: 278px;--preview-scale: 1;display:flex;align-items:flex-start;justify-content:center;border:0;border-radius:8px;padding:0 12px;transform:none;overflow:hidden;background:transparent;box-shadow:none;pointer-events:auto}.preview-sticky-content{position:static;flex:0 0 var(--preview-fixed-width);width:var(--preview-fixed-width);min-width:var(--preview-fixed-width);max-width:none;height:var(--preview-content-height);min-height:var(--preview-content-height);display:flex;flex-direction:column;align-items:center;gap:var(--preview-gap);transform:scale(var(--preview-scale));transform-origin:top center;margin-inline:auto}.phone-preview{flex:0 0 auto;width:100%;max-width:none;height:var(--preview-phone-height);aspect-ratio:auto;box-shadow:0 12px 28px #17191e1f}.preview-composition{flex:0 0 var(--preview-composition-height);width:100%;height:var(--preview-composition-height);min-height:var(--preview-composition-height);margin:0;padding:12px 2px 2px;border-top:1px solid #d9dce2}#section-intake .entry-card.entry-card{--entry-accent: var(--red);--entry-accent-soft: #fff2f4;--entry-accent-ink: #c51e39;border-color:#f0d7dc;box-shadow:0 5px 18px #9122330e}#section-intake .entry-card.entry-card:hover{border-color:#e8b5be;box-shadow:0 14px 34px #9122331a}.viral-heading,.image-studio-heading{padding-bottom:14px;border-bottom:1px solid var(--line)}.viral-heading h2,.image-studio-heading h2{margin-top:0;font-size:22px}.viral-panel,.viral-library-workspace,.image-template-shelf,.generated-section{border-radius:7px}#section-viral .library-item-card,#section-viral .visual-template-card,.template-card,.generated-card,.topic-package-card{border-radius:7px;box-shadow:0 3px 12px #17191e0d}#section-viral .library-item-card,#section-viral .visual-template-card,#section-viral .topic-package-card{border-radius:16px;overflow:hidden;box-shadow:0 3px 7px #17191e1a,0 14px 30px #17191e21}#section-viral .library-item-card:hover,.template-card:hover,.generated-card:hover{box-shadow:var(--shadow-hover)}#section-viral .library-card-grid,#section-viral .topic-package-grid,#section-viral .visual-template-grid{gap:20px;padding:4px 3px 8px}#section-viral .library-item-card:hover{box-shadow:0 5px 10px #17191e1f,0 22px 44px #17191e2e}#section-viral .visual-template-card .visual-template-card-preview{border:0;border-radius:12px}#section-viral .visual-template-card-preview .visual-template-carousel>button[data-library-preview-image]{border-radius:10px;overflow:hidden}#section-viral .inner-library-card .selected-template-gallery-nav .gallery-arrow{opacity:0;pointer-events:none;transform:scale(.88);transition:opacity .18s ease,transform .18s ease}#section-viral .inner-library-card:hover .selected-template-gallery-nav .gallery-arrow,#section-viral .inner-library-card:focus-within .selected-template-gallery-nav .gallery-arrow{opacity:1;pointer-events:auto;transform:scale(1)}#section-viral .library-item-card[data-select-library-item]:focus-visible{outline:3px solid color-mix(in srgb,var(--red) 28%,transparent);outline-offset:3px}#section-viral .library-item-card[class*=-library-card].selected{border-color:var(--red);border-top-color:var(--red);transform:translateY(-2px);box-shadow:inset 0 0 0 1px #ff2442b8,0 0 0 3px #ff24422e,0 20px 42px #91223340}#section-viral .library-item-card.visual-template-card.selected:after{content:"✓";position:absolute;z-index:6;top:10px;right:10px;display:grid;width:26px;height:26px;place-items:center;border:2px solid #fff;border-radius:50%;color:#fff;background:var(--red);box-shadow:0 4px 12px #91223347;font-size:15px;font-weight:900;line-height:1;pointer-events:none}@media(max-width:1180px){#section-viral .library-card-grid,#section-viral .topic-package-grid,#section-viral .visual-template-grid{gap:18px}}@media(max-width:680px){#section-viral .library-card-grid,#section-viral .topic-package-grid,#section-viral .visual-template-grid{gap:16px;padding-inline:2px}}#section-viral .topic-package-grid.is-topic-library-grid{grid-auto-rows:354px;align-items:stretch}#section-viral .topic-package-grid>.topic-library-card{height:354px;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 58px auto;border:1px solid #e5e7eb;border-top:3px solid var(--library-accent, #e1a72d);border-radius:10px;background:#fff;box-shadow:0 5px 16px #1f23290f;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}#section-viral .topic-package-grid>.topic-library-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px #1f23291a}#section-viral .topic-package-grid>.topic-library-card.selected{border-color:var(--red);border-top-color:var(--red);box-shadow:inset 0 0 0 1px #ff2442b8,0 0 0 3px #ff244229,0 12px 26px #9122332e}#section-viral .topic-library-card .topic-package-main{min-height:0;overflow:hidden;padding:14px 15px 11px;background:linear-gradient(180deg,var(--library-tint, #fffdf6),#fff 78%)}#section-viral .topic-library-card .topic-package-heading{min-height:25px}#section-viral .topic-library-card .topic-package-heading-labels>span{max-width:140px;padding:5px 7px;border:1px solid color-mix(in srgb,var(--library-accent, #e1a72d) 20%,#fff);border-radius:5px;color:var(--library-ink, #755612);background:var(--library-chip, #f8edc9);font-size:10px;letter-spacing:0}#section-viral .topic-library-card .topic-package-heading .reverse-topic-mode-badge{min-height:24px;padding:4px 7px}#section-viral .topic-library-card .topic-package-main>strong{height:45px;min-height:45px;margin-top:12px;color:#20242a;font-size:16px;font-weight:800;line-height:1.42;letter-spacing:0}#section-viral .topic-library-card .reverse-topic-source-ledger{height:54px;max-height:54px;margin-top:9px;overflow:hidden;border-color:#e8eeeb;background:#ffffffc7}#section-viral .topic-library-card .reverse-topic-source-ledger-head{min-height:25px;padding:5px 8px;line-height:1.4}#section-viral .topic-library-card .reverse-topic-source-lines{height:29px;max-height:29px;overflow-y:auto;overflow-x:hidden}#section-viral .topic-library-card .reverse-topic-source-line{height:29px;min-height:29px;padding:5px 8px;line-height:1.4}#section-viral .topic-library-card .reverse-topic-source-line span,#section-viral .topic-library-card .reverse-topic-source-line em{line-height:1.4}#section-viral .topic-library-card .topic-card-focus{height:76px;margin-top:10px;gap:7px;padding-top:10px;border-top:1px solid #eef0f3}#section-viral .topic-library-card .topic-card-focus>div{grid-template-columns:30px minmax(0,1fr);gap:8px}#section-viral .topic-library-card .topic-card-focus p{-webkit-line-clamp:2;color:#5b626c;font-size:11px;line-height:1.45}#section-viral .topic-library-card .topic-card-focus>.primary p{color:#303741;font-weight:750}#section-viral .topic-library-card .topic-package-actions{min-height:58px;align-self:stretch;padding:10px 14px 12px;border-top:1px solid #e8eaee;background:#fff}#section-viral .topic-library-card .topic-package-actions .primary-btn{min-height:36px;border-radius:6px;font-size:12px;font-weight:800}#section-viral .topic-library-card .topic-package-actions .primary-btn.is-selected{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--red);color:#fff;background:var(--red)}#section-viral .topic-library-card .topic-package-actions .primary-btn.is-selected .lucide{width:15px;height:15px;stroke-width:2.6}#section-viral .topic-library-card .topic-card-more>summary{width:36px;height:36px;border-color:#e1e4e8;color:#737982;font-size:0}#section-viral .topic-library-card .topic-card-more>summary .lucide{width:17px;height:17px}#section-viral .topic-library-card .library-card-details{min-height:36px;overflow:hidden}#section-viral .topic-library-card .library-card-details>summary{height:36px;display:grid;place-items:center;padding:0 10px;color:#737982;font-size:10px}#section-viral .topic-library-card .library-card-details[open]{height:auto;max-height:320px;overflow:auto}#section-viral .topic-library-card:has(.library-card-details[open]){height:auto;min-height:354px}@media(max-width:680px){#section-viral .topic-package-grid.is-topic-library-grid{grid-auto-rows:342px}#section-viral .topic-package-grid>.topic-library-card{height:342px}#section-viral .topic-library-card .topic-package-main{padding-inline:13px}}#section-image{--studio-green: var(--green);--studio-green-soft: #eff8f4;--studio-gold: var(--amber);--studio-surface: #ffffff}#section-image .image-studio{gap:16px}#section-image .generator-panel{box-shadow:0 6px 20px #17191e0f}.image-template-selection,.image-generation-mode{background:#fafbfc}.segmented{border-radius:6px;padding:3px;gap:2px;background:#f1f2f5}.segmented button{min-height:34px;border-radius:4px;color:#656a74;font-size:11px}.segmented button.active{color:var(--ink);background:#fff;box-shadow:0 2px 7px #17191e14}.segmented.has-motion-indicator,.prompt-mode-tabs.has-motion-indicator{--segment-active-bg: #fff;--segment-inset: 3px;position:relative;isolation:isolate}.prompt-mode-tabs.has-motion-indicator{--segment-active-bg: var(--red);--segment-inset: 4px}.segmented.has-motion-indicator:before,.prompt-mode-tabs.has-motion-indicator:before{content:"";position:absolute;top:var(--segment-inset);bottom:var(--segment-inset);left:0;z-index:0;width:var(--segment-width, 0);border-radius:4px;background:var(--segment-active-bg);box-shadow:0 2px 7px #17191e14;transform:translate(var(--segment-x, 0));transition:width .22s cubic-bezier(.22,1,.36,1),transform .22s cubic-bezier(.22,1,.36,1)}.prompt-mode-tabs.has-motion-indicator:before{border-radius:7px;box-shadow:0 5px 12px #d9163a2e}.segmented.has-motion-indicator.no-segment-motion:before,.prompt-mode-tabs.has-motion-indicator.no-segment-motion:before{transition:none}.segmented.has-motion-indicator button,.prompt-mode-tabs.has-motion-indicator button{position:relative;z-index:1}.segmented.has-motion-indicator button.active,.prompt-mode-tabs.has-motion-indicator button.active{background:transparent;box-shadow:none}.ui-view-enter{animation:ui-view-enter .24s cubic-bezier(.22,1,.36,1) both}.ui-content-enter{animation:ui-content-enter .22s cubic-bezier(.22,1,.36,1) both}.ui-choice-pop{animation:ui-choice-pop .18s cubic-bezier(.22,1,.36,1) both}.plugin-workbench{gap:14px}.plugin-feature-list{gap:10px}.plugin-feature-list article{min-height:128px;border-radius:7px;box-shadow:0 3px 12px #17191e0b}.tutorial-hero{border-radius:7px;box-shadow:none}.tutorial-grid{gap:12px}.tutorial-card{border-radius:7px;box-shadow:0 3px 12px #17191e0d}.publish-list{padding:0;border:0;background:transparent;box-shadow:none}.publish-item{border-radius:7px;background:#fff;box-shadow:0 3px 12px #17191e0b}.publish-item img{border-radius:6px}.toast{border-radius:6px;background:#252830;box-shadow:0 14px 38px #17191e47}.modal{background:#12141970;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.modal.is-opening{animation:modal-backdrop-in .18s ease-out both}.modal.is-opening .modal-card{animation:modal-card-in .26s cubic-bezier(.22,1,.36,1) both}.modal.is-closing{pointer-events:none;animation:modal-backdrop-out .18s ease-in both}.modal.is-closing .modal-card{animation:modal-card-out .18s cubic-bezier(.4,0,1,1) both}.modal-card,.ai-config-card{border:1px solid rgba(255,255,255,.42);border-radius:8px;box-shadow:0 24px 72px #0c0e123d}.modal-close{display:grid;place-items:center;border-radius:6px}.modal-close .lucide,.image-viewer-tools .lucide{width:15px;height:15px}.image-viewer-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.ai-config-title,.ai-config-actions{background:#fafbfc}.auth-login-card{width:min(430px,calc(100vw - 32px));max-height:min(680px,calc(100vh - 32px));padding:30px 30px 28px;overflow:hidden;background:#fff}.billing-pill{gap:7px;color:var(--ink);background:#fff;border-color:var(--line)}.billing-pill strong{color:var(--red);font-size:13px}.billing-modal-card{width:min(620px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 32px));padding:26px;overflow:hidden;background:#fff}.billing-modal-content{display:grid;gap:16px;min-height:0;max-height:min(640px,calc(100vh - 180px));overflow-y:auto;padding-right:4px}.billing-section-title{margin:0 0 8px;color:var(--muted);font-size:12px;font-weight:700}.billing-rate-list,.billing-ledger{display:grid;gap:6px;margin:0;padding:0;list-style:none}.billing-rate-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--soft);font-size:12px}.billing-rate-list li strong{color:var(--ink);font-weight:700}.billing-ledger-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}.billing-ledger-main{display:grid;gap:2px;min-width:0}.billing-ledger-main strong{font-size:13px;font-weight:700;color:var(--ink)}.billing-ledger-main small{color:var(--muted);font-size:11px}.billing-ledger-side{display:grid;gap:2px;justify-items:end}.billing-ledger-side small{color:var(--muted);font-size:11px}.billing-ledger-credits{font-size:13px;font-weight:700}.billing-ledger-credits.is-plus{color:#18704c}.billing-ledger-credits.is-minus{color:var(--red-dark)}.billing-ledger-credits.is-zero{color:var(--muted)}.billing-note-warn{color:#9a6a1c;font-weight:600}.account-settings-card{width:min(620px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 32px));padding:26px;overflow:auto;background:#fff}.account-settings-body{display:grid;gap:18px}.account-settings-block{display:grid;gap:10px}.account-settings-block h3{margin:0;font-size:15px;color:#1f2329}.account-settings-form{display:grid;gap:10px}.account-settings-form label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.account-settings-form input{height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:14px;color:#1f2329}.account-settings-form input[readonly]{background:#f6f7f9;color:#6b7280}.account-settings-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.account-settings-hint{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.account-settings-sessions{width:100%;border-collapse:collapse;font-size:13px}.account-settings-sessions th,.account-settings-sessions td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.account-settings-sessions th{color:var(--muted);font-weight:500}.account-settings-sessions td strong{display:block;font-weight:600}.account-settings-sessions td small{display:block;color:var(--muted);font-size:12px}.account-session-current{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;background:#f0f8f5;color:#177458;font-size:11px}.billing-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fbfcfd}.billing-stat{display:grid;gap:4px;min-width:0}.billing-label{color:var(--muted);font-size:12px}.billing-balance-value{color:var(--ink);font-size:34px;font-weight:800;line-height:1.1}.billing-membership-value{font-size:16px;font-weight:700;line-height:1.5}.billing-membership-value.is-active{color:var(--green)}.billing-membership-value.is-inactive{color:var(--muted)}.billing-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.billing-product{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#fbfcfd}.billing-product-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.billing-product-name{color:var(--ink);font-size:14px;font-weight:700}.billing-product-price{color:var(--red);font-size:22px;font-weight:800}.billing-product-detail{flex:1;margin:0;color:var(--muted);font-size:13px;line-height:1.5}.billing-product .primary-btn,.billing-product .ghost-btn{width:100%}.billing-state{display:grid;gap:12px;justify-items:center;padding:28px 20px;border:1px solid var(--line);border-radius:12px;background:#fbfcfd;text-align:center}.billing-state p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.billing-state-error p{color:var(--red-dark)}.billing-note{margin:0;padding:10px 12px;border-radius:8px;background:var(--soft);color:var(--muted);font-size:12px;line-height:1.5}.billing-hint{margin:0;color:#9a7a1f;font-size:12px;line-height:1.5}@media(max-width:640px){.billing-overview,.billing-products{grid-template-columns:1fr}}.auth-login-heading{padding-right:28px;margin-bottom:18px}.auth-login-heading h2{margin:4px 0 6px;color:#252830;font-size:22px}.auth-login-heading p{margin:0;color:#747983;font-size:13px}.auth-login-form{display:grid;gap:16px}.auth-login-field{display:grid;gap:7px;color:#3f434b;font-size:13px;font-weight:700;text-align:left}.auth-login-field input{width:100%;min-height:44px;box-sizing:border-box;padding:0 13px;border:1px solid #dfe2e7;border-radius:7px;background:#fff;color:#252830;font:inherit;font-weight:500;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.auth-login-field input:focus{border-color:var(--red);box-shadow:0 0 0 3px #ff24421f}.auth-login-submit{width:100%;min-height:44px;justify-content:center;margin-top:2px}.auth-login-submit.is-loading{opacity:.7;cursor:wait}.auth-login-error{min-height:18px;margin:-2px 0 -4px;color:#d8263f;font-size:12px}.auth-login-switch{justify-self:center;border:0;padding:2px 4px;color:var(--red);background:transparent;font:inherit;font-size:12px;cursor:pointer}.auth-login-switch:hover{color:var(--red-dark);text-decoration:underline}@media(max-width:560px){.auth-login-card{padding:22px 20px 20px}}@keyframes workspace-section-enter{0%{opacity:.28;top:var(--page-enter-offset)}to{opacity:1;top:0}}@keyframes workspace-section-exit{0%{opacity:1;top:0}to{opacity:0;top:var(--page-exit-offset)}}@keyframes ui-view-enter{0%{opacity:.24;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes ui-content-enter{0%{opacity:.42;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes ui-choice-pop{0%{transform:scale(.96)}to{transform:scale(1)}}@keyframes modal-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes modal-backdrop-out{0%{opacity:1}to{opacity:0}}@keyframes modal-card-in{0%{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes modal-card-out{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(7px) scale(.99)}}@media(max-width:820px){#section-rewrite.section.active{overflow-y:auto}.rewrite-layout{width:100%;height:auto;grid-template-columns:minmax(0,1fr);grid-template-areas:"draft" "preview" "editor";grid-template-rows:auto;padding-right:0;margin-left:0;margin-right:0;overflow:visible;scrollbar-gutter:auto}.draft-rail{position:static;height:80px;min-height:80px;max-height:80px}.editor-panel{height:auto;min-height:620px;display:block}.editor-form{min-height:auto;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto}.preview-panel{position:static;left:auto;right:auto;width:100%;max-width:100%;height:auto;max-height:none;min-height:0}.preview-sticky-content{position:static;flex-basis:auto;width:100%;min-width:0;max-width:100%;height:auto;min-height:0;grid-template-columns:minmax(260px,300px) minmax(0,1fr);grid-template-rows:auto;display:grid;align-items:start;transform:none}.phone-preview{width:min(100%,300px);max-width:300px;height:auto;aspect-ratio:9 / 19.5}.preview-composition{align-self:stretch;margin:0;padding:2px 0 0 14px;border-top:0;border-left:1px solid var(--line)}.entry-grid{grid-template-columns:minmax(0,1.05fr) minmax(280px,.8fr)}}@media(max-width:820px){body{height:100dvh}.modal{z-index:40}.app-shell{display:block;height:100dvh;min-height:100dvh}.sidebar{position:fixed;inset:auto 0 0 0;z-index:30;width:100%;height:68px;max-height:none;padding:7px 8px max(7px,env(safe-area-inset-bottom));overflow:visible;border-top:1px solid var(--line);border-right:0;background:#fffffff5;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.brand,.sidebar-stats,.nav-subgroup,.nav-chevron{display:none!important}.nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.nav-item,.nav-item.nav-subitem{min-width:0;min-height:52px;flex-direction:column;justify-content:center;gap:2px;padding:3px 2px;font-size:10px;text-align:center}.nav-item.active:before{inset:-7px 24% auto;width:auto;height:2px;border-radius:0 0 3px 3px}.nav-icon{width:24px;min-width:24px;height:24px}.workspace{height:calc(100dvh - 68px);padding:14px 14px 12px}.topbar{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:10px;padding-bottom:10px}h1{font-size:20px}h2,.image-studio-heading h2,.viral-heading h2{font-size:19px}.top-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.top-actions .primary-btn,.top-actions .ghost-btn{min-width:0;min-height:34px;padding:0 7px;font-size:10px}.top-actions .lucide{width:14px;height:14px}.section-heading{margin:10px 0 12px}.entry-grid{min-height:auto;grid-template-columns:1fr;grid-template-rows:auto}.entry-card-primary{grid-row:auto}.entry-card.action-card .entry-body{padding:16px}.entry-card-primary textarea{min-height:136px}.entry-card:hover{transform:none}.draft-rail{height:auto;min-height:0;max-height:none;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"summary bulk" "tasks tasks"}.draft-rail .rail-head{border-right:0;border-bottom:1px solid var(--line)}.draft-rail-end-actions{border-bottom:1px solid var(--line)}.draft-list{min-height:80px;max-height:80px}.preview-panel{min-height:0}.preview-sticky-content{display:flex}.preview-composition{margin-top:0;padding:12px 2px 2px;border-top:1px solid var(--line);border-left:0}.editor-form{padding-inline:14px}.ai-generate-row{margin-inline:-14px;padding-inline:14px}.viral-heading,.image-studio-heading{display:grid;gap:12px}.plugin-workbench,.plugin-feature-list{grid-template-columns:1fr}.plugin-feature-list article{min-height:0}.publish-item{grid-template-columns:24px 62px minmax(0,1fr)}.publish-item img{width:62px;height:78px}}@media(prefers-reduced-motion:reduce){.section.active.is-entering,.section.is-leaving,.ui-view-enter,.ui-content-enter,.ui-choice-pop,.modal.is-opening,.modal.is-opening .modal-card,.modal.is-closing,.modal.is-closing .modal-card,.draft-image-drop-slot{animation:none!important}*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.mini-status,.status-pill{white-space:nowrap}.modal .topic-package-editor-card{width:min(860px,calc(100vw - 48px));height:min(780px,calc(100dvh - 48px))}.topic-package-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:14px;border-bottom:1px solid #e4e7eb}.topic-package-section-head>div{display:grid;gap:4px}.topic-package-section-head strong{font-size:15px}.topic-package-section-head>div span,.topic-package-advanced summary small{color:var(--muted);font-size:12px;font-weight:500}.topic-package-auto-badge{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;color:#8d2639;font-size:12px;font-weight:750}.topic-package-auto-badge svg,.topic-package-advanced summary svg{width:16px;height:16px}.topic-package-basics-grid,.topic-package-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding-top:16px}.topic-package-basics-grid .wide,.topic-package-advanced-grid .wide{grid-column:1 / -1}.field-required,.field-optional{margin-left:5px;font-size:11px;font-weight:650}.field-required{color:var(--red-dark)}.field-optional{color:var(--muted)}.topic-package-advanced{margin-top:8px;border-top:1px solid #dfe2e7}.topic-package-advanced summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 2px 4px;cursor:pointer;list-style:none}.topic-package-advanced summary::-webkit-details-marker{display:none}.topic-package-advanced summary>span{display:inline-flex;align-items:center;gap:8px}.topic-package-advanced summary:after{content:"+";margin-left:auto;color:#717680;font-size:20px;font-weight:400;line-height:1}.topic-package-advanced[open] summary:after{content:"−"}.topic-package-advanced[open] summary{padding-bottom:12px;border-bottom:1px solid #e4e7eb}@media(max-width:640px){.topic-package-basics-grid,.topic-package-advanced-grid{grid-template-columns:1fr}.topic-package-basics-grid .wide,.topic-package-advanced-grid .wide{grid-column:auto}.topic-package-section-head{gap:10px}.topic-package-advanced summary{align-items:flex-start;flex-wrap:wrap}.topic-package-advanced summary small{width:calc(100% - 32px)}}.modal .topic-package-editor-card,.modal .compact-template-editor-card{display:grid;grid-template-rows:auto auto minmax(0,1fr)}.modal .topic-package-editor-card{height:min(860px,calc(100dvh - 48px))}.modal .compact-template-editor-card:not(.image-template-editor-card){height:min(640px,calc(100dvh - 48px))}.modal .image-template-editor-card{height:min(820px,calc(100dvh - 48px))}.modal .topic-package-editor-card>form,.modal .compact-template-editor-card>form{height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:0;padding:0;overflow:hidden;background:#f8f9fb}.modal .topic-package-form>.modal-form-scroll,.modal .compact-template-editor-form>.modal-form-scroll{min-height:0;overflow-x:hidden;overflow-y:auto;padding:18px 26px 22px;scrollbar-gutter:stable}.modal .topic-package-form>.modal-form-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.modal .compact-template-editor-form>.modal-form-scroll{display:grid;gap:12px}.modal .image-template-editor-form>.modal-form-scroll{display:block}.modal .topic-package-editor-card .topic-package-editor-actions,.modal .compact-template-editor-card .compact-template-editor-actions{position:static;margin:0;padding:12px 26px}.modal{padding:24px;overflow:hidden;background:#12141980;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.modal-card{max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);border:1px solid #dfe2e7;background:#fff;box-shadow:0 28px 80px #0c0e1247}.modal-card h2{color:#202329;letter-spacing:0}.modal-card input,.modal-card textarea,.modal-card select{border-color:#d9dde4;background:#fbfcfd}.modal-card input:focus,.modal-card textarea:focus,.modal-card select:focus{border-color:#ff8da0;background:#fff;box-shadow:0 0 0 3px #ff2b4e1a}.modal-close{z-index:5;top:14px;right:14px;border-color:#dfe2e7;color:#636974;background:#fff;box-shadow:0 2px 7px #17191e0d}.modal-close:hover,.modal-close:focus-visible{border-color:#f1b6c0;color:var(--red-dark);background:#fff5f7}.ai-config-card{width:min(1180px,calc(100vw - 48px));height:min(680px,calc(100dvh - 48px));max-height:calc(100dvh - 48px)}.ai-config-title{min-height:84px;padding:18px 28px;background:#fff}.ai-config-status-tabs{padding-inline:28px;background:#f7f8fa}.ai-config-status-tabs button{min-height:64px}.ai-config-status-tabs button.active{background:#fff}.ai-config-body{background:#f7f8fa}.ai-config-main{padding:18px 28px 22px}.model-config-grid{gap:12px}.model-config-panel{border-color:#dfe2e7;border-radius:7px;background:#fff;box-shadow:0 3px 12px #17191e09}.model-config-panel h3{padding-bottom:10px;border-bottom:1px solid #eceef1;font-size:16px}.ai-config-actions{padding:12px 28px;background:#fff}.topic-package-editor-card,.compact-template-editor-card{padding:0;overflow:hidden;text-align:left}.topic-package-editor-card>.eyebrow,.compact-template-editor-card>.eyebrow{margin:0;padding:20px 26px 4px}.topic-package-editor-card>h2,.compact-template-editor-card>h2{margin:0;padding:0 58px 17px 26px;border-bottom:1px solid #e6e8ec}.topic-package-editor-card>form,.compact-template-editor-card>form{min-height:0;padding:18px 26px 0;overflow-y:auto;background:#f8f9fb}.topic-package-editor-card .topic-package-editor-actions,.compact-template-editor-card .compact-template-editor-actions{position:sticky;z-index:2;bottom:0;margin:18px -26px 0;padding:12px 26px;border-top:1px solid #e1e4e9;background:#fff}.template-delete-card,.template-role-card,.image-model-test-confirm-card{border-top:3px solid var(--red);text-align:left}.template-delete-card h2,.template-role-card h2,.image-model-test-confirm-card h2{padding-right:40px}.template-delete-actions,.template-role-actions,.image-model-test-confirm-actions{padding-top:14px;border-top:1px solid #e6e8ec}.rewrite-template-detail-head,.inner-page-picker-head,.saved-image-library-head,.image-viewer-title{border-bottom-color:#e1e4e9;background:#fff}.rewrite-template-detail-actions,.inner-page-picker-actions{border-top-color:#e1e4e9;background:#fff}.rewrite-template-detail-body,.inner-page-picker-body,.saved-image-library-grid,.image-viewer-stage{background:#f7f8fa}@media(max-width:820px){.modal .topic-package-editor-card,.modal .compact-template-editor-card,.modal .image-template-editor-card{height:calc(100dvh - 20px)}.modal .topic-package-form>.modal-form-scroll{grid-template-columns:1fr}.modal{padding:10px}.modal-card,.ai-config-card{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.ai-config-card{width:calc(100vw - 20px);height:calc(100dvh - 20px)}.ai-config-title,.ai-config-main,.ai-config-actions{padding-inline:16px}.ai-config-status-tabs{grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:0}.ai-config-status-tabs button:nth-child(3){border-top:1px solid #e6e8ec;border-left:0}.ai-config-status-tabs button:nth-child(4){border-top:1px solid #e6e8ec}.model-config-grid{grid-template-columns:1fr}}.billing-checkout{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}.billing-checkout-eyebrow{margin:0;font-size:12px;letter-spacing:1px;color:#999}.billing-checkout-title{margin:0;font-size:20px;font-weight:700}.billing-checkout-amount-row{display:flex;align-items:baseline;gap:10px;font-size:14px;color:#666}.billing-checkout-amount{font-size:24px;color:#ff2442}.billing-qr-wrap{width:220px;height:220px;border:1px solid #eee;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#fff}.billing-qr{width:200px;height:200px;object-fit:contain}.billing-qr-placeholder{margin:0;color:#999;font-size:13px}.billing-checkout-hint{margin:0;color:#666;font-size:13px}.billing-checkout-status{margin:0;font-size:14px;font-weight:600}.billing-checkout-actions{margin-top:4px}.billing-success{gap:16px;padding:12px 8px}.billing-success-icon{display:flex;align-items:center;justify-content:center}.billing-success-title{margin:0;font-size:20px;font-weight:700;color:#16a34a}.billing-success-balance{display:flex;flex-direction:column;gap:4px;background:#f6faf7;border:1px solid #d8efde;border-radius:10px;padding:14px 28px}.billing-success-balance .billing-balance-value{font-size:28px;color:#ff2442}.billing-success-member{margin:0;font-size:13px;color:#666}.billing-success-done{min-width:160px;margin-top:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.knowledge-workspace{min-width:0;padding:0 0 28px}.knowledge-workspace .icon-btn{display:grid;place-items:center;padding:0;line-height:1}#section-original .entry-card.entry-card{--entry-accent: #26211f;--entry-accent-soft: #f1f2f4;--entry-accent-ink: #302c2a;border-color:#d9dadd;box-shadow:0 5px 18px #17191e0e}#section-original .entry-card.entry-card:hover{border-color:#bfc1c6;box-shadow:0 14px 34px #17191e1a}.knowledge-workspace .icon-btn .lucide{display:block;margin:0}.local-file-icon{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:6px;color:#236c55;background:#eaf5f0}.local-file-icon .lucide{width:15px;height:15px}.draft-image-item.expansion-placeholder{display:grid;place-items:stretch}.draft-image-expansion-placeholder{height:228px;min-height:228px;box-sizing:border-box;display:grid;grid-template-rows:158px 70px;gap:0;position:relative;overflow:hidden;border:1px dashed rgba(255,36,66,.56);border-radius:8px;color:var(--red);text-align:center;background:#ff24420f}.draft-image-expansion-thumb{width:100%;height:158px;min-height:0;display:grid;place-items:center;overflow:hidden;border-radius:7px 7px 0 0;background:#ffffff9e}.draft-image-expansion-thumb img{width:100%;height:158px;object-fit:contain;object-position:center;display:block;opacity:.72}.draft-image-expansion-placeholder-empty{display:grid;place-items:center;gap:5px;color:var(--muted);font-size:11px}.draft-image-expansion-placeholder-empty .lucide{width:22px;height:22px}.draft-image-expansion-copy{height:70px;min-width:0;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border-top:1px dashed rgba(255,36,66,.32);background:#ffffffdb;text-align:left}.draft-image-expansion-placeholder strong{font-size:13px}.draft-image-expansion-placeholder small{color:var(--muted);font-size:11px;line-height:1.35}.draft-image-expansion-placeholder .draft-image-actions{position:absolute;top:8px;right:8px;margin:0}.page-expansion-review{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:12px 14px;border:1px dashed rgba(255,36,66,.46);border-radius:8px;background:#ff24420b}.page-expansion-review-copy{display:grid;gap:4px;min-width:0}.page-expansion-review-copy strong{color:var(--ink);font-size:13px}.page-expansion-review-copy span{color:var(--muted);font-size:12px;line-height:1.45}.page-expansion-review-controls{display:flex;align-items:center;gap:8px;flex:0 0 auto;flex-wrap:wrap}.page-expansion-review-controls label{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;white-space:nowrap}.page-expansion-review-controls input{width:64px;height:34px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink)}@media(max-width:700px){.page-expansion-review{align-items:stretch;flex-direction:column}.page-expansion-review-controls{justify-content:space-between}}.local-file-picker-card{width:min(960px,calc(100vw - 40px));height:min(720px,calc(100dvh - 40px));padding:22px;overflow:hidden;text-align:left}.local-file-picker-head{justify-content:space-between;padding-right:38px}.local-file-picker-head h2{margin:2px 0 0;font-size:20px}.local-file-picker-head>span{color:#236c55;font-size:12px;font-weight:800}.local-file-picker-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:15px}.local-file-picker-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:10px;height:calc(100% - 170px);margin-top:10px}.local-file-picker-layout>aside,.local-file-picker-results{overflow-y:auto;border:1px solid var(--line);border-radius:6px}.local-file-picker-layout>aside{padding:8px}.local-file-picker-results{padding:2px 12px}.local-file-picker-row{display:grid;grid-template-columns:22px 31px minmax(140px,1fr) minmax(190px,.82fr) auto;align-items:center;gap:8px;min-height:54px;border-bottom:1px solid #f0ece9}.local-file-picker-row input{width:16px;height:16px;accent-color:#236c55}.local-file-picker-row>div,.local-file-picker-copy{min-width:0}.local-file-picker-row strong,.local-file-picker-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.local-file-picker-row strong{color:var(--ink);font-size:12px}.local-file-picker-row small{color:var(--muted);font-size:10px}.local-file-picker-row>span{color:#7a746f;font-size:10px}.local-file-reference-pages{min-width:0;color:inherit!important}.local-file-reference-pages .local-page-scope{min-width:170px}@media(max-width:760px){.reverse-topic-bar{align-items:stretch;flex-direction:column}.reverse-topic-actions{justify-content:flex-start;flex-wrap:wrap}.reverse-topic-actions>span{width:100%}.reverse-topic-actions button{flex:1 1 auto;justify-content:center}.reverse-topic-selection-grid{grid-template-columns:1fr}.local-files-header{align-items:flex-start;flex-direction:column}.local-file-picker-layout{grid-template-columns:1fr}.local-source-panel{max-height:230px;overflow-y:auto}.local-file-picker-layout{height:calc(100% - 185px);grid-template-rows:130px minmax(0,1fr)}.local-file-picker-tools{grid-template-columns:1fr}.local-file-picker-row{grid-template-columns:22px 31px minmax(0,1fr) auto}.local-file-picker-row .local-file-reference-pages{grid-column:3 / -1}}.knowledge-status-band{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:76px;padding:16px 20px;border:1px solid var(--line);border-radius:7px;background:#fff}.knowledge-status-copy,.knowledge-status-copy>div,.knowledge-counts,.knowledge-toolbar,.knowledge-row-actions,.knowledge-review-head,.knowledge-result-meta,.knowledge-config-heading{display:flex;align-items:center}.knowledge-status-copy{gap:12px;min-width:0}.knowledge-status-copy>div{align-items:flex-start;flex-direction:column;min-width:0}.knowledge-status-copy strong{font-size:15px;color:var(--ink)}.knowledge-status-copy span{margin-top:3px;color:var(--muted);font-size:12px}.knowledge-status-mark{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:7px;color:#276f9f;background:#eaf5fc}.knowledge-status-mark .lucide{width:19px;height:19px}.knowledge-counts{gap:20px;flex:0 0 auto}.knowledge-counts span{color:var(--muted);font-size:12px}.knowledge-counts strong{margin-right:3px;color:var(--ink);font-size:19px}.knowledge-security-warning,.knowledge-config-warning{display:flex;align-items:center;gap:9px;margin-top:10px;padding:10px 12px;border:1px solid #efc96f;border-radius:6px;color:#775512;background:#fff9e7;font-size:12px}.knowledge-security-warning .lucide,.knowledge-config-warning .lucide{width:16px;height:16px;flex:0 0 16px}.knowledge-toolbar{gap:9px;margin:16px 0 10px;flex-wrap:wrap}.knowledge-search-control{position:relative;flex:1 1 320px;min-width:200px}.knowledge-search-control .lucide{position:absolute;left:11px;top:50%;width:16px;height:16px;color:#85817e;transform:translateY(-50%)}.knowledge-search-control input,.knowledge-toolbar select{width:100%;height:38px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:#fff}.knowledge-search-control input{padding:0 12px 0 35px}.knowledge-toolbar select{width:126px;padding:0 28px 0 10px}.knowledge-upload-btn{position:relative;cursor:pointer}.knowledge-upload-btn.is-disabled{opacity:.48;cursor:not-allowed;pointer-events:none}.knowledge-upload-btn input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.knowledge-upload-progress{margin:10px 0;padding:13px 14px;border:1px solid #cfe2ee;border-left:3px solid var(--blue);border-radius:6px;color:#315f80;background:#f6fbfe;font-size:12px}.knowledge-upload-progress-head,.knowledge-upload-progress-head>div,.knowledge-upload-progress-actions,.knowledge-upload-progress-item{display:flex;align-items:center}.knowledge-upload-progress-head{justify-content:space-between;gap:12px}.knowledge-upload-progress-head>div{min-width:0;gap:9px}.knowledge-upload-progress-head strong{color:var(--ink);font-size:13px}.knowledge-upload-progress-head span{color:#66757f;font-size:11px}#knowledgeUploadProgressPercent{flex:0 0 auto;color:#266e9d;font-weight:800}.knowledge-upload-progress-track{height:5px;margin-top:9px;overflow:hidden;border-radius:999px;background:#dfeaf0}.knowledge-upload-progress-track>span{display:block;width:0;height:100%;border-radius:inherit;background:#2f80b7;transition:width .18s ease}.knowledge-upload-progress-list{display:grid;gap:4px;max-height:118px;margin-top:8px;overflow-y:auto}.knowledge-upload-progress-item{gap:7px;min-height:24px;color:#5f6d75}.knowledge-upload-progress-item .lucide{width:14px;height:14px;flex:0 0 14px}.knowledge-upload-progress-item strong{min-width:0;overflow:hidden;color:#4f5a60;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.knowledge-upload-progress-item span{margin-left:auto;flex:0 0 auto;color:#77848b;font-size:10px}.knowledge-upload-progress-item.completed .lucide{color:#168154}.knowledge-upload-progress-item.failed .lucide{color:#b1263d}.knowledge-upload-progress-item.skipped .lucide{color:#9a6c14}.knowledge-upload-progress-actions{justify-content:flex-end;gap:7px;margin-top:8px}.knowledge-upload-progress-actions .icon-btn{width:30px;height:30px;min-width:30px}.knowledge-retention-note{display:flex;align-items:center;gap:8px;margin:-1px 0 10px;color:#5f696f;font-size:11px}.knowledge-retention-note .lucide{width:15px;height:15px;flex:0 0 15px;color:#2f739f}.knowledge-table-wrap{position:relative;min-height:220px;overflow-x:auto;border:1px solid var(--line);border-radius:7px;background:#fff}.knowledge-browser{display:grid;grid-template-columns:208px minmax(0,1fr);gap:10px;align-items:stretch}.knowledge-folder-panel{display:flex;min-height:220px;flex-direction:column;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff}.knowledge-folder-head{display:flex;align-items:center;justify-content:space-between;padding:1px 2px 8px 8px;border-bottom:1px solid #eee9e5}.knowledge-folder-head strong{color:var(--ink);font-size:12px}.knowledge-folder-head .icon-btn{width:29px;height:29px;min-width:29px;color:#2f739f}.knowledge-folder-root,.knowledge-folder-select{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:7px;width:100%;min-height:34px;padding:0 7px;border:0;border-radius:5px;color:#625c58;background:transparent;text-align:left;cursor:pointer}.knowledge-folder-root.active,.knowledge-folder-row.active>.knowledge-folder-select{color:#bd2441;background:#fff0f3}.knowledge-folder-root .lucide,.knowledge-folder-select .lucide{width:15px;height:15px}.knowledge-folder-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;padding-left:calc(var(--folder-depth) * 13px)}.knowledge-folder-select span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650}.knowledge-folder-select em{color:#99918c;font-size:9px;font-style:normal}.knowledge-folder-toggle,.knowledge-folder-toggle-spacer{width:22px;height:30px}.knowledge-folder-toggle{display:grid;place-items:center;padding:0;border:0;border-radius:4px;color:#8d8782;background:transparent;cursor:pointer}.knowledge-folder-toggle:hover{color:#2f739f;background:#eef6fa}.knowledge-folder-toggle:focus-visible{outline:2px solid #78aeca;outline-offset:-2px}.knowledge-folder-toggle .lucide{width:13px;height:13px}.knowledge-folder-actions{display:none;gap:1px}.knowledge-folder-row:hover>.knowledge-folder-actions,.knowledge-folder-row:focus-within>.knowledge-folder-actions{display:flex}.knowledge-folder-row .icon-btn{width:25px;height:25px;min-width:25px}.knowledge-folder-empty{margin:14px 8px;color:var(--muted);font-size:11px}.knowledge-folder-sync{width:100%;justify-content:center;margin-top:auto}.knowledge-directory-error{display:block;margin-top:3px;color:#b1263d;font-size:9px}.knowledge-table{width:100%;min-width:820px;border-collapse:collapse;table-layout:fixed}.knowledge-table th{height:42px;padding:0 14px;border-bottom:1px solid var(--line);color:var(--muted);background:#faf9f7;text-align:left;font-size:11px;font-weight:700}.knowledge-table th:nth-child(1){width:31%}.knowledge-table th:nth-child(2){width:24%}.knowledge-table th:nth-child(3){width:8%}.knowledge-table th:nth-child(4){width:8%}.knowledge-table th:nth-child(5){width:11%}.knowledge-table th:nth-child(6){width:18%}.knowledge-table td{height:62px;padding:8px 14px;border-bottom:1px solid #f0ebe7;color:#57514e;font-size:12px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis}.knowledge-table tbody tr:last-child td{border-bottom:0}.knowledge-table tbody tr:hover{background:#fffdfb}.knowledge-table td:first-child{display:flex;align-items:center;gap:10px;min-width:0}.knowledge-table td:first-child>div{min-width:0}.knowledge-table td strong,.knowledge-table td small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knowledge-table td strong{color:var(--ink);font-size:13px}.knowledge-table td small{margin-top:3px;color:#908a86;font-size:10px}.knowledge-document-kind{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:6px;color:#2f80ed;background:#eef5fe}.knowledge-document-kind .lucide{width:15px;height:15px}.knowledge-state{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:700}.knowledge-state.success{color:#167c4d;background:#e9f8f0}.knowledge-state.processing{color:#315f80;background:#eaf5fc}.knowledge-state.error{color:#ad253a;background:#fff0f2}.knowledge-state.neutral{color:#6e6966;background:#f1efed}.knowledge-row-actions{justify-content:flex-end;gap:5px}.knowledge-row-actions .icon-btn{width:30px;height:30px;min-width:30px}.knowledge-row-actions .danger-btn{color:#b1263d}.knowledge-empty{position:absolute;top:43px;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;color:var(--muted);background:#fff;text-align:center}.knowledge-empty .lucide{width:25px;height:25px;color:#a59e99}.knowledge-empty strong{color:var(--ink);font-size:14px}.knowledge-empty span{font-size:12px}.knowledge-evidence{position:relative;display:block;align-self:start;min-width:0;margin:18px 0 20px;padding:0;overflow:visible;border:1px solid #f1c4cb;border-top:3px solid var(--red);border-radius:10px;background:#fff}.knowledge-evidence.is-grounded{border-top-color:var(--red)}.knowledge-evidence.is-stale{border-top-color:#c28a1a}.knowledge-evidence-head,.knowledge-evidence-title,.knowledge-evidence-panel-head,.knowledge-evidence-local-actions,.knowledge-evidence-cloud-status,.knowledge-evidence-file-head,.knowledge-evidence-state{display:flex;align-items:center}.knowledge-evidence-head{align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:6px 9px 6px 7px}.knowledge-evidence-toggle{display:flex;flex:1 1 auto;align-items:center;gap:9px;min-width:0;padding:2px 5px;border:0;border-radius:8px;color:inherit;background:transparent;text-align:left;cursor:pointer}.knowledge-evidence-toggle:hover{background:#fff5f7}.knowledge-evidence-toggle:focus-visible{outline:2px solid var(--red);outline-offset:1px}.knowledge-evidence-collapse-btn{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;padding:0;border:0;border-radius:8px;color:#74696c;background:transparent;cursor:pointer}.knowledge-evidence-collapse-btn:hover{color:var(--red-dark);background:#fff5f7}.knowledge-evidence-collapse-btn:focus-visible{outline:2px solid var(--red);outline-offset:1px}.knowledge-channel-switch{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;min-height:28px;padding:3px 7px;border:1px solid #ffb8c2;border-radius:8px;color:var(--red-dark);background:#fff5f7;font-size:10px;font-weight:800;cursor:pointer}.knowledge-channel-switch:hover{border-color:#ff8292;background:#ffecef}.knowledge-channel-switch:focus-visible{outline:2px solid var(--red);outline-offset:1px}.knowledge-channel-switch.is-pure-ai{border-color:#d7c6bb;color:#6e5c50;background:#faf6f3}.knowledge-channel-switch.is-pure-ai:hover{border-color:#bda797;background:#f4ede8}.knowledge-channel-switch-track{position:relative;display:block;width:27px;height:16px;flex:0 0 27px;border-radius:999px;background:var(--red)}.knowledge-channel-switch-track>span{position:absolute;top:3px;left:14px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #8b12243d;transition:left .15s ease}.knowledge-channel-switch.is-pure-ai .knowledge-channel-switch-track{background:#b7aaa2}.knowledge-channel-switch.is-pure-ai .knowledge-channel-switch-track>span{left:3px;box-shadow:0 1px 2px #48372c33}.knowledge-evidence-title{min-width:0;align-items:center;gap:9px}.knowledge-evidence-title>span:last-child{min-width:0}.knowledge-evidence-title strong{display:block;color:var(--ink);font-size:14px}.knowledge-evidence-title p{margin:3px 0 0;color:#716b67;font-size:11px;line-height:1.55}.knowledge-evidence-summary{display:block;margin-top:3px;color:#716b67;font-size:11px;line-height:1.45}.knowledge-evidence-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:8px;color:var(--red-dark);background:#fff0f3}.knowledge-evidence-icon .lucide{width:17px;height:17px}.knowledge-evidence-chevron{width:17px;height:17px;flex:0 0 17px;color:#617168;transition:transform .16s ease}.knowledge-evidence.is-expanded .knowledge-evidence-chevron{transform:rotate(180deg)}.knowledge-evidence-body[hidden]{display:none}.knowledge-evidence-source-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid #ebe8e5;border-bottom:1px solid #dedad6;background:#f7f6f4}.knowledge-evidence-source-tabs button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:39px;padding:0 12px;border:0;border-right:1px solid #e6e2de;color:#77716d;background:transparent;font-size:11px;font-weight:780;cursor:pointer}.knowledge-evidence-source-tabs button:last-child{border-right:0}.knowledge-evidence-source-tabs button.active{color:var(--red-dark);background:#fff;box-shadow:inset 0 -2px var(--red)}.knowledge-evidence-source-tabs button:focus-visible{outline:2px solid var(--red);outline-offset:-2px}.knowledge-evidence-source-tabs .lucide{width:14px;height:14px}.knowledge-evidence-source-tabs em{padding:2px 4px;border-radius:3px;color:var(--red-dark);background:#fff0f3;font-size:8px;font-style:normal}.knowledge-evidence-panel{min-width:0;padding:12px 14px 13px}.knowledge-evidence-panel-head{justify-content:space-between;gap:12px;margin-bottom:9px}.knowledge-evidence-panel-head>div{min-width:0}.knowledge-evidence-panel-head strong,.knowledge-evidence-panel-head span{display:block}.knowledge-evidence-panel-head strong{color:#3d3835;font-size:12px}.knowledge-evidence-panel-head>div>span{margin-top:2px;color:#817a75;font-size:10px;line-height:1.45}.knowledge-evidence-count{flex:0 0 auto;color:var(--red-dark);font-size:10px;font-weight:800}.knowledge-evidence-local-browser{display:block;min-height:0;overflow:visible;border:0;background:transparent}.knowledge-evidence-local-files{min-width:0}.knowledge-evidence-file-head{justify-content:space-between;gap:10px;min-height:37px;padding:0 10px;border-bottom:1px solid #ece8e4;background:#fcfbfa}.knowledge-evidence-file-head strong{min-width:0;overflow:hidden;color:#4e4945;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.knowledge-evidence-file-head span{flex:0 0 auto;color:#96908b;font-size:9px}#knowledgeEvidenceLocalFiles{max-height:225px;overflow-y:auto}.knowledge-evidence-file-row{display:grid;grid-template-columns:17px 30px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:49px;padding:5px 9px;border-bottom:1px solid #f0ece9;cursor:pointer}.knowledge-evidence-file-row:last-child{border-bottom:0}.knowledge-evidence-file-row:hover{background:#fffbfc}.knowledge-evidence-file-row.selected{background:#fff5f7}.knowledge-evidence-file-row.is-disabled{cursor:not-allowed;opacity:.55}.knowledge-evidence-file-row input{width:15px;height:15px;margin:0;accent-color:var(--red)}.knowledge-evidence-file-row .local-file-icon{width:29px;height:29px}.knowledge-evidence-file-copy{min-width:0}.knowledge-evidence-file-copy strong,.knowledge-evidence-file-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knowledge-evidence-file-copy strong{color:#393532;font-size:11px}.knowledge-evidence-file-copy small{margin-top:2px;color:#8a837e;font-size:9px}.knowledge-evidence-file-size{color:#817a75;font-size:9px;white-space:nowrap}.knowledge-evidence-local-empty{display:flex;min-height:182px;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:16px;color:#8d8782;text-align:center}.knowledge-evidence-local-empty .lucide{width:22px;height:22px;color:#d96878}.knowledge-evidence-local-empty strong{color:#55504c;font-size:11px}.knowledge-evidence-local-empty span{max-width:260px;font-size:9px;line-height:1.5}.knowledge-evidence-local-actions{justify-content:flex-end;margin-top:8px}.knowledge-evidence-local-actions .primary-btn{flex:0 0 auto;min-height:33px}.knowledge-evidence-state{flex:0 0 auto;gap:4px;padding:4px 6px;border-radius:4px;font-size:9px;font-weight:800}.knowledge-evidence-state .lucide{width:11px;height:11px}.knowledge-evidence-state.grounded{color:var(--red-dark);background:#fff0f3}.knowledge-evidence-state.stale{color:#8a6114;background:#fff2cf}.knowledge-evidence-state.disabled,.knowledge-evidence-state.fallback{color:#706a66;background:#efedeb}.knowledge-evidence-state.pending{color:#326c91;background:#eaf4fa}.knowledge-evidence-cloud-status{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;min-height:76px;padding:11px;border:1px solid #dce5ea;border-left:3px solid #6b97b4;border-radius:6px;background:#f9fcfe}.knowledge-evidence-cloud-status.grounded{border-color:#f1c4cb;border-left-color:var(--red);background:#fffafb}.knowledge-evidence-cloud-status.stale{border-color:#edd696;border-left-color:#c28a1a;background:#fffaf0}.knowledge-evidence-cloud-status.disabled,.knowledge-evidence-cloud-status.fallback{border-color:#e1ddd9;border-left-color:#a69d97;background:#fbfaf9}.knowledge-evidence-status-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;color:#326f96;background:#e7f2f9}.knowledge-evidence-cloud-status.grounded .knowledge-evidence-status-icon{color:var(--red-dark);background:#fff0f3}.knowledge-evidence-cloud-status.stale .knowledge-evidence-status-icon{color:#8a6114;background:#fff0c8}.knowledge-evidence-cloud-status.disabled .knowledge-evidence-status-icon,.knowledge-evidence-cloud-status.fallback .knowledge-evidence-status-icon{color:#716a66;background:#efedeb}.knowledge-evidence-status-icon .lucide{width:16px;height:16px}.knowledge-evidence-cloud-status>div{min-width:0}.knowledge-evidence-cloud-status strong,.knowledge-evidence-cloud-status>div>span{display:block}.knowledge-evidence-cloud-status strong{color:#3d3835;font-size:11px}.knowledge-evidence-cloud-status>div>span{margin-top:3px;overflow:hidden;color:#77716d;font-size:9px;line-height:1.55;text-overflow:ellipsis;white-space:nowrap}.knowledge-evidence-cloud-status>button{align-self:center}.knowledge-review-inline{display:grid;gap:8px;padding-top:3px}.knowledge-review-inline .knowledge-review-search{margin-top:0}.knowledge-review-results-inline{height:auto;max-height:360px;overflow-y:auto;padding-right:2px}.knowledge-review-actions-inline{padding-top:9px}.knowledge-review-actions-inline button{min-height:34px}.knowledge-review-results-inline .knowledge-result{border-radius:7px}.knowledge-review-results-inline .knowledge-result textarea{min-height:72px}.knowledge-evidence-cloud-panel{background:#fcfdfe}.knowledge-evidence-source-tabs button[data-knowledge-source=cloud]{position:relative}.knowledge-evidence-source-tabs button[data-knowledge-source=cloud]:after{content:"需选择";margin-left:2px;padding:2px 4px;border-radius:3px;color:#356b8d;background:#e8f3fa;font-size:8px;font-style:normal}@media(max-width:680px){.knowledge-review-results-inline{max-height:300px}.knowledge-review-actions-inline{flex-direction:column}.knowledge-review-actions-inline button{width:100%}}.knowledge-review-card{width:min(920px,calc(100vw - 40px));height:min(760px,calc(100dvh - 40px));padding:22px;overflow:hidden;text-align:left}.knowledge-review-head{justify-content:space-between;padding-right:40px}.knowledge-review-head h2,.knowledge-note-card h2,.knowledge-chunks-card h2{margin:2px 0 0;font-size:20px}.knowledge-review-head>span{color:#167c4d;font-size:12px;font-weight:700}.knowledge-review-search{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:16px;padding:5px 6px 5px 11px;border:1px solid var(--line);border-radius:6px;background:#fff}.knowledge-review-search .lucide{width:16px;height:16px;color:#85817e}.knowledge-review-search input{min-width:0;height:34px;padding:0;border:0;box-shadow:none}.knowledge-review-search input:focus{box-shadow:none}.knowledge-review-status{min-height:32px;padding:9px 2px 5px;color:var(--muted);font-size:11px}.knowledge-review-results{height:calc(100% - 174px);overflow-y:auto;scrollbar-gutter:stable}.knowledge-result{display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px;padding:12px 4px;border-top:1px solid #ece7e3}.knowledge-result:first-child{border-top:0}.knowledge-result.selected{background:#f7fcf9}.knowledge-result.is-weak{opacity:.72}.knowledge-result-select{padding-top:3px}.knowledge-result-select input{width:16px;height:16px;accent-color:#1f9d68}.knowledge-result-body{min-width:0}.knowledge-result-meta{gap:8px;min-width:0}.knowledge-result-meta strong{overflow:hidden;color:var(--ink);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.knowledge-result-meta span{overflow:hidden;color:#2f739f;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.knowledge-result-meta em{margin-left:auto;flex:0 0 auto;color:#167c4d;font-size:10px;font-style:normal;font-weight:700}.knowledge-result textarea{width:100%;min-height:82px;margin-top:8px;resize:vertical;border-color:#d9e7de;background:#fff;font-size:12px;line-height:1.6}.knowledge-result textarea:disabled{height:62px;min-height:62px;resize:none;color:#6d6763;border-color:transparent;background:#f8f6f4}.knowledge-review-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:190px;color:var(--muted);text-align:center}.knowledge-review-empty .lucide{width:24px;height:24px}.knowledge-review-empty strong{color:var(--ink);font-size:14px}.knowledge-review-empty span{font-size:12px}.knowledge-weak-results{border-top:1px solid #ece7e3}.knowledge-weak-results>summary{padding:12px 4px;color:#746d68;cursor:pointer;font-size:12px;font-weight:700}.knowledge-weak-results[open]>summary{color:#315f80}.knowledge-review-actions{display:flex;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid var(--line)}.knowledge-note-card{width:min(720px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:24px;overflow-y:auto;text-align:left}.knowledge-folder-card{width:min(480px,calc(100vw - 40px));padding:24px;text-align:left}.knowledge-folder-card h2{margin:2px 0 0;font-size:20px}.knowledge-folder-fields{display:grid;gap:12px;margin-top:16px}.knowledge-folder-fields label{display:grid;gap:6px;color:#4d4845;font-size:12px;font-weight:700}.knowledge-folder-fields input,.knowledge-folder-fields select{width:100%;height:40px}.knowledge-note-fields{display:grid;gap:12px;margin-top:16px}.knowledge-note-fields label{display:grid;gap:6px;color:#4d4845;font-size:12px;font-weight:700}.knowledge-note-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px}.knowledge-note-fields input,.knowledge-note-fields textarea{width:100%}.knowledge-note-fields textarea{resize:vertical;line-height:1.65}.modal-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.knowledge-upload-card{width:min(780px,calc(100vw - 40px));max-height:min(760px,calc(100dvh - 36px));padding:24px;overflow-y:auto;text-align:left}.knowledge-upload-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-right:35px}.knowledge-upload-heading h2{margin:2px 0 0;font-size:20px}.knowledge-upload-heading>span{color:#657079;font-size:11px;font-weight:700}.knowledge-upload-dropzone{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:108px;margin-top:17px;padding:16px;border:1px dashed #aabdc8;border-radius:7px;background:#f8fbfd;outline:0;transition:border-color .15s ease,background .15s ease}.knowledge-upload-dropzone.is-dragging,.knowledge-upload-dropzone:focus-visible{border-color:#2f80b7;background:#eef8fd}.knowledge-upload-dropzone>.lucide{width:26px;height:26px;color:#2f739f}.knowledge-upload-dropzone strong,.knowledge-upload-dropzone span{display:block}.knowledge-upload-dropzone strong{color:var(--ink);font-size:13px}.knowledge-upload-dropzone span{margin-top:4px;color:var(--muted);font-size:11px}.knowledge-upload-pickers{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.knowledge-upload-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.knowledge-upload-options label{display:grid;gap:6px;color:#4d4845;font-size:11px;font-weight:700}.knowledge-upload-options select,.knowledge-upload-options input{width:100%;height:38px}.knowledge-upload-dedupe-note{display:flex;align-items:center;gap:7px;margin-top:9px;color:#4f6f63;font-size:10px}.knowledge-upload-dedupe-note .lucide{width:14px;height:14px;flex:0 0 14px;color:#168154}.knowledge-upload-queue{min-height:112px;max-height:280px;margin-top:12px;overflow-y:auto;border:1px solid var(--line);border-radius:7px;background:#fff}.knowledge-upload-queue-empty{display:grid;place-items:center;min-height:110px;color:var(--muted);font-size:12px}.knowledge-upload-queue-item{display:grid;grid-template-columns:28px minmax(0,1fr) auto 30px;align-items:center;gap:9px;min-height:52px;padding:7px 10px;border-bottom:1px solid #f0ebe7}.knowledge-upload-queue-item:last-child{border-bottom:0}.knowledge-upload-queue-item>.lucide{width:17px;height:17px;color:#2f739f}.knowledge-upload-queue-item>div{min-width:0}.knowledge-upload-queue-item strong,.knowledge-upload-queue-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.knowledge-upload-queue-item strong{color:var(--ink);font-size:12px}.knowledge-upload-queue-item small{margin-top:3px;color:#918a85;font-size:9px}.knowledge-upload-queue-item>span{color:#6f797e;font-size:10px}.knowledge-upload-queue-item .icon-btn{width:28px;height:28px;min-width:28px}.knowledge-upload-modal-actions{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center}@media(max-width:920px){.knowledge-browser{grid-template-columns:1fr}.knowledge-folder-panel{min-height:auto}.knowledge-folder-tree{max-height:180px;overflow-y:auto}.knowledge-upload-dropzone{grid-template-columns:34px minmax(0,1fr)}.knowledge-upload-pickers{grid-column:1 / -1;justify-content:flex-start}}@media(max-width:620px){.knowledge-upload-options{grid-template-columns:1fr}.knowledge-upload-modal-actions{grid-template-columns:1fr 1fr}.knowledge-upload-modal-actions>span{display:none}.knowledge-upload-queue-item{grid-template-columns:24px minmax(0,1fr) 28px}.knowledge-upload-queue-item>span{display:none}}.knowledge-chunks-card{width:min(820px,calc(100vw - 40px));height:min(740px,calc(100dvh - 40px));padding:24px;overflow:hidden;text-align:left}.knowledge-chunk-list{height:calc(100% - 54px);margin-top:14px;overflow-y:auto;scrollbar-gutter:stable}.knowledge-chunk-list article{padding:13px 3px;border-top:1px solid var(--line)}.knowledge-chunk-list article:first-child{border-top:0}.knowledge-chunk-list article>span{color:#2f739f;font-size:10px;font-weight:700}.knowledge-chunk-list article>strong{display:block;margin-top:3px;color:var(--ink);font-size:13px}.knowledge-chunk-list article>p{margin:7px 0 0;color:#5f5955;font-size:12px;line-height:1.7;white-space:pre-wrap}.knowledge-config-panel{height:100%;overflow-y:auto}.knowledge-config-heading{justify-content:space-between;gap:16px}.knowledge-config-heading>div{display:grid;gap:4px}.knowledge-config-heading h3{margin:0;font-size:16px}.knowledge-config-heading span{color:var(--muted);font-size:11px}.knowledge-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.knowledge-config-grid label{display:grid;gap:6px;color:#4d4845;font-size:11px;font-weight:700}.knowledge-config-grid input,.knowledge-config-grid select{width:100%;height:38px}.knowledge-config-wide{grid-column:span 2}.knowledge-config-divider{display:flex;align-items:center;gap:10px;margin-top:18px;color:#77716e;font-size:10px;font-weight:800;text-transform:uppercase}.knowledge-config-divider:after{content:"";height:1px;flex:1;background:#e6e1dd}.knowledge-config-actions{justify-content:flex-end;margin-top:16px}@media(max-width:900px){.knowledge-toolbar{flex-wrap:wrap}.knowledge-search-control{flex-basis:100%}.knowledge-config-grid{grid-template-columns:1fr 1fr}.knowledge-config-wide{grid-column:span 2}.ai-config-status-tabs{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto}.ai-config-status-tabs button{min-width:150px}.ai-config-status-tabs button:nth-child(3),.ai-config-status-tabs button:nth-child(4){border-top:0}.ai-config-status-tabs button:nth-child(3){border-left:1px solid #eceef1}}@media(max-width:640px){.knowledge-status-band{align-items:flex-start;flex-direction:column;gap:12px}.knowledge-counts{width:100%;justify-content:space-between}.knowledge-toolbar>button,.knowledge-toolbar>label{flex:1 1 calc(50% - 6px);justify-content:center}.knowledge-toolbar select{flex:1 1 100%;width:100%}.knowledge-browser{grid-template-columns:1fr}.knowledge-folder-panel{min-height:auto;max-height:230px;overflow-y:auto}.knowledge-folder-actions{display:flex}.knowledge-folder-sync{margin-top:8px}.knowledge-evidence-head{flex-wrap:wrap}.knowledge-evidence-toggle{flex-basis:calc(100% - 124px)}.knowledge-evidence-local-actions{align-items:stretch;flex-direction:column}.knowledge-evidence-local-actions .primary-btn{width:100%}.knowledge-evidence-cloud-status{grid-template-columns:32px minmax(0,1fr)}.knowledge-evidence-cloud-status>button{grid-column:1 / -1;width:100%}.knowledge-review-card,.knowledge-note-card,.knowledge-chunks-card{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:18px 14px}.knowledge-folder-card{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:18px 14px;overflow-y:auto}.knowledge-review-head{align-items:flex-start;flex-direction:column;gap:6px}.knowledge-result-meta{align-items:flex-start;flex-wrap:wrap}.knowledge-result-meta em{margin-left:0}.knowledge-note-meta,.knowledge-config-grid{grid-template-columns:1fr}.knowledge-config-wide{grid-column:span 1}.knowledge-review-actions{flex-direction:column-reverse}.knowledge-review-actions button{width:100%}}@media(max-width:900px){.global-nav-item{padding-inline:9px;font-size:11px}.global-nav-item span{display:none}.global-nav-item .lucide{width:17px;height:17px}}@media(max-width:640px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.workspace{padding:74px 14px 20px}.topbar{margin:0;padding:0 14px;gap:9px}.global-brand strong{display:none}.global-nav{flex:1;justify-content:space-between}.global-nav-item{padding-inline:7px}.topbar>div:nth-of-type(2),.topbar .top-actions{display:none}}.app-shell{grid-template-columns:216px minmax(0,1fr);grid-template-rows:58px minmax(0,1fr)}.topbar{position:relative;top:auto;left:auto;right:auto;grid-column:1 / -1;grid-row:1;width:100%;min-height:58px}.sidebar{grid-column:1;grid-row:2;height:auto;min-height:0;padding-top:22px}.workspace{grid-column:2;grid-row:2;height:auto;padding-top:20px}.global-nav{gap:14px}.global-nav-group{display:flex;align-items:stretch;gap:2px}.global-nav-core{padding:0 4px;background:#fff7f8}.global-nav-divider{align-self:center;width:1px;height:26px;background:#d9dce2}.global-nav-tools{gap:5px}.global-nav-tools .global-nav-item{color:#777c86}.global-nav-tools .global-nav-item:hover{color:#30343a;background:#f4f5f6}#section-intake .replica-entry-grid,#section-original .original-entry-grid{min-height:0;grid-template-columns:minmax(0,620px);grid-template-rows:auto auto;align-content:start}#section-intake .replica-link-card,#section-original .original-link-card{grid-row:auto;align-self:start;width:min(620px,calc(100vw - 96px));min-height:0}#section-intake .replica-link-card .entry-body,#section-original .original-link-card .entry-body{min-height:0;padding:20px 24px 18px}#section-intake .replica-link-card textarea,#section-original .original-link-card textarea{flex:0 0 108px;width:100%;height:108px;min-height:108px;max-height:108px;resize:none}#section-intake .replica-boundary-note,#section-original .original-boundary-note{width:min(620px,calc(100vw - 96px))}@media(max-width:900px){.global-nav{gap:8px}.global-nav-divider{height:22px}}@media(max-width:640px){.app-shell{grid-template-columns:1fr;grid-template-rows:58px minmax(0,1fr)}.workspace{grid-column:1;grid-row:2;padding:16px 14px 20px}.topbar{grid-column:1;grid-row:1}.global-nav-divider{margin-inline:2px}#section-intake .replica-link-card,#section-original .original-link-card,#section-intake .replica-boundary-note,#section-original .original-boundary-note{width:calc(100vw - 36px)}}.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:stretch;gap:0;padding:0 18px}.global-brand{align-self:center;gap:9px;height:36px;padding-right:18px;border-right:1px solid #e2e4e8}.global-brand .brand-mark{width:28px;height:28px}.global-brand strong{font-size:14px}.global-nav{align-self:stretch;gap:18px;padding-left:10px;overflow:hidden}.global-nav-group{gap:2px}.global-nav-core{padding:0;background:transparent}.global-nav-divider{flex:0 0 1px;margin-inline:1px;background:#dfe1e5}.global-nav-tools{gap:2px}.global-nav-item{height:100%;padding-inline:14px}.global-nav-core .global-nav-item{font-weight:800}.global-nav-core .global-nav-item.active{background:#fff2f4}.global-nav-tools .global-nav-item{font-weight:650}.top-actions{align-self:center}.sidebar{padding:18px 12px 12px;border-right-color:#e0e2e6;background:#fafbfc}.sidebar .nav{gap:0}.sidebar-subnav{gap:4px}.sidebar-workspace-head{display:grid;grid-template-columns:36px minmax(0,1fr);align-items:center;gap:10px;min-height:58px;margin:0 2px 14px;padding:10px;border:1px solid #e3e5e9;border-radius:7px;background:#fff}.sidebar-workspace-head>span{display:grid;place-items:center;width:36px;height:36px;border-radius:6px;color:#fff;background:var(--red)}.sidebar-workspace-head .lucide{width:17px;height:17px}.sidebar-workspace-head strong,.sidebar-workspace-head small{display:block}.sidebar-workspace-head strong{color:#24272d;font-size:13px;font-weight:800}.sidebar-workspace-head small{margin-top:3px;color:#8a8e97;font-size:9px;line-height:1.35}.sidebar-group-label{margin:8px 10px 5px;color:#9a9ea6;font-size:9px;font-weight:800}.sidebar-library-label{margin-top:18px;padding-top:14px;border-top:1px solid #e1e3e7}.sidebar-subnav>.nav-item{min-height:40px;margin:0 2px;padding:7px 9px;border:1px solid transparent;border-radius:6px;color:#5f646e;font-size:11px}.sidebar-subnav>.nav-item.active{border-color:#ffd6dc;color:#d9163a;background:#fff0f2}.sidebar-subnav>.nav-item.active:before{display:none}.sidebar-subnav>.nav-item .nav-icon{width:26px;min-width:26px;height:26px}.sidebar-library-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0 2px}.sidebar-library-grid .nav-item{display:grid;justify-items:center;gap:5px;min-width:0;min-height:64px;padding:8px 4px;border:1px solid #e2e4e8;border-radius:6px;color:#626771;background:#fff;text-align:center}.sidebar-library-grid .nav-item:hover{border-color:#f2bfc7;color:#d9163a;background:#fff7f8}.sidebar-library-grid .nav-item.active{border-color:#ffb9c5;color:#d9163a;background:#fff0f2;box-shadow:inset 0 0 0 1px #ff2b4e0d}.sidebar-library-grid .nav-item.active:before{display:none}.sidebar-library-grid .nav-icon{width:25px;min-width:25px;height:25px}.sidebar-library-grid .lucide{width:15px;height:15px}.sidebar-template-import{justify-content:center;min-height:38px!important;margin-top:10px!important;border-color:#e2e4e8!important;color:#626771!important;background:#fff!important}.sidebar-template-import:hover,.sidebar-template-import.active{border-color:#ffb9c5!important;color:#d9163a!important;background:#fff0f2!important}.sidebar-template-import .nav-icon{width:24px!important;min-width:24px!important;height:24px!important}.sidebar-template-import .lucide{width:14px;height:14px}.sidebar-stats{margin-inline:2px;border-color:#e1e3e7;box-shadow:none}#section-intake .replica-entry-grid,#section-original .original-entry-grid{grid-template-columns:minmax(0,680px)}#section-intake .replica-link-card,#section-original .original-link-card{width:min(680px,calc(100vw - 96px));border:1px solid #e1e3e7;border-radius:8px;box-shadow:0 12px 28px #17191e14}#section-intake .replica-link-card:before,#section-original .original-link-card:before{display:none}.link-import-shell{display:grid;grid-template-rows:44px auto 58px;min-height:0;background:#fff}.link-import-tabs{display:flex;align-items:stretch;gap:4px;padding:0 14px;border-bottom:1px solid #e7e2df}.link-import-tabs span{position:relative;display:flex;align-items:center;gap:6px;padding:0 10px;color:#8a847f;font-size:10px;font-weight:700}.link-import-tabs span.active{color:#d9163a}.link-import-tabs span.active:after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:var(--red)}.link-import-tabs .lucide{width:14px;height:14px}.link-import-editor{padding:14px 16px 10px}#section-intake .link-import-editor textarea,#section-original .link-import-editor textarea{flex:none;width:100%;height:96px;min-height:96px;max-height:96px;padding:14px 15px;border:0;border-radius:5px;resize:none;color:#3f3a37;background:#fbfaf8;box-shadow:none;font-size:12px;line-height:1.65}#section-intake .link-import-editor textarea:focus,#section-original .link-import-editor textarea:focus{outline:2px solid rgba(255,43,78,.14);background:#fff}.link-import-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 16px 12px}.link-import-footer small{display:flex;align-items:center;gap:5px;color:#a19a94;font-size:9px}.link-import-footer small .lucide{width:12px;height:12px}#section-intake .link-import-footer .primary-btn,#section-original .link-import-footer .primary-btn{width:auto;min-width:138px;height:36px;margin:0;padding-inline:14px;box-shadow:0 7px 16px #d9163a2e}#section-intake .replica-boundary-note,#section-original .original-boundary-note{width:min(680px,calc(100vw - 96px))}@media(max-width:760px){.sidebar-library-grid{grid-template-columns:1fr}.link-import-footer{align-items:stretch;flex-direction:column}#section-intake .link-import-footer .primary-btn,#section-original .link-import-footer .primary-btn{width:100%}}#section-intake.section.active,#section-intake.section.is-leaving,#section-original.section.active,#section-original.section.is-leaving{display:grid;align-content:center;min-height:100%;padding-top:28px;padding-bottom:28px}#section-intake .workflow-intro,#section-original .workflow-intro{width:100%}#section-intake .replica-entry-grid,#section-original .original-entry-grid{grid-template-columns:minmax(0,760px);width:100%}#section-intake .replica-link-card,#section-original .original-link-card,#section-intake .replica-boundary-note,#section-original .original-boundary-note{width:min(760px,calc(100vw - 96px))}.link-import-shell{grid-template-rows:46px auto 62px}#section-intake .link-import-editor textarea,#section-original .link-import-editor textarea{height:132px;min-height:132px;max-height:132px;padding:16px 17px;font-size:13px}@media(max-height:720px)and (min-width:641px){#section-intake.section.active,#section-intake.section.is-leaving,#section-original.section.active,#section-original.section.is-leaving{align-content:start}}@media(max-width:640px){#section-intake.section.active,#section-intake.section.is-leaving,#section-original.section.active,#section-original.section.is-leaving{align-content:start;padding-block:20px}#section-intake .replica-link-card,#section-original .original-link-card,#section-intake .replica-boundary-note,#section-original .original-boundary-note{width:calc(100vw - 36px)}}.topbar:after{display:none}.global-brand.active:after{content:"";position:absolute;right:18px;bottom:-11px;left:0;height:3px;background:var(--red)}.global-nav-item.active:after{bottom:0;z-index:2}.app-shell.tools-mode{grid-template-columns:minmax(0,1fr)}.app-shell.tools-mode .sidebar{display:none}.app-shell.tools-mode .workspace{grid-column:1}.tool-workbench-card{width:min(100%,1900px);min-width:0;margin-inline:auto;padding:16px;border:1px solid #e1e4e9;border-radius:8px;background:#fff;box-shadow:0 8px 24px #17191e0e}#section-knowledge .knowledge-workspace.tool-workbench-card,#section-plugin .low-fan-workbench.tool-workbench-card{padding:16px}#section-publish.active{display:block}#section-publish .publish-workbench{display:grid;grid-template-rows:auto minmax(0,1fr);align-content:start;min-height:100%}@media(max-width:640px){.tool-workbench-card{padding:10px;border-radius:7px}}.link-import-tab{position:relative;display:flex;align-items:center;gap:6px;height:100%;padding:0 10px;border:0;color:#8a847f;background:transparent;font:inherit;font-size:10px;font-weight:700;cursor:pointer}.link-import-tab:hover{color:#4b4642}.link-import-tab.active{color:#d9163a}.link-import-tab.active:after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:var(--red)}.link-import-tab .lucide{width:14px;height:14px}.link-import-tab>span{position:static;display:inline;padding:0;color:inherit;font-size:inherit;font-weight:inherit}.link-import-shell{grid-template-rows:46px auto}.link-import-panel{min-width:0;min-height:0;display:grid;grid-template-rows:174px 62px}.link-import-panel[hidden]{display:none}.link-import-panel .link-import-editor{min-height:0}.image-import-body{display:flex;flex:1 1 auto;min-height:0;flex-direction:column;gap:9px;padding:16px}.image-import-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.image-import-actions .file-btn{min-width:0;width:100%;padding-inline:9px}.image-import-hint{margin:0;color:#99918b;font-size:10px;line-height:1.5}.image-import-panel .upload-preview{min-height:54px;margin-top:auto;padding:4px 2px 0;overflow-y:hidden}.image-import-panel .upload-preview:empty:before{content:"选择图片后将在这里预览";color:#b4ada8;font-size:10px}.image-import-panel .upload-preview-item{position:relative;flex:0 0 50px;width:50px;height:50px;margin:0}.image-import-panel .thumb{display:block;width:50px;height:50px;border-radius:4px;object-fit:cover;border:1px solid #ebe7e4}.image-import-panel .upload-preview-remove{position:absolute;top:2px;right:2px;width:20px;height:20px;padding:0;display:grid;place-items:center;border:1px solid #ffc3cd;border-radius:50%;color:#d9163a;background:#ffe8ed;box-shadow:0 1px 4px #7a1c2d2e;cursor:pointer}.image-import-panel .upload-preview-remove:hover{color:#fff;border-color:#ff2442;background:#ff2442}.image-import-panel .upload-preview-remove:focus-visible{outline:2px solid rgba(255,36,66,.3);outline-offset:2px}.image-import-panel .upload-preview-remove .lucide{width:12px;height:12px}.image-import-panel .link-import-footer{flex:0 0 auto}@media(max-width:640px){.image-import-actions{grid-template-columns:1fr}.image-import-body{padding:14px}.link-import-panel{grid-template-rows:auto auto}}#section-intake .replica-link-card,#section-original .original-link-card{overflow:hidden;border-radius:15px}#section-intake .replica-link-card .link-import-shell,#section-original .original-link-card .link-import-shell{overflow:hidden;border-radius:inherit}#section-intake .link-import-panel[data-link-import-panel=link],#section-original .link-import-panel[data-link-import-panel=link]{grid-template-rows:minmax(194px,auto) 58px}#section-intake .link-import-panel[data-link-import-panel=link] .link-import-editor,#section-original .link-import-panel[data-link-import-panel=link] .link-import-editor{padding:14px 16px 8px}#section-intake .link-import-panel[data-link-import-panel=link] textarea,#section-original .link-import-panel[data-link-import-panel=link] textarea{height:172px;min-height:172px;max-height:172px;border-radius:10px}#section-intake .link-import-tabs{align-items:stretch;gap:24px;padding:0 18px;background:#fff}#section-intake .link-import-tab{flex:0 0 auto;justify-content:flex-start;height:100%;padding:0 4px;border:0;border-radius:0;color:#756f6a;background:transparent;font-size:12px;font-weight:700;transition:color .18s ease,background .18s ease}#section-intake .link-import-tab:hover{color:#c7193d;background:transparent}#section-intake .link-import-tab.active{color:#d9163a;background:transparent;box-shadow:none}#section-intake .link-import-tab.active:after{display:block;right:2px;left:2px;bottom:-1px;height:3px;border-radius:2px 2px 0 0}#section-intake .link-import-tab .lucide{width:16px;height:16px}#section-intake .link-import-panel[data-link-import-panel=link],#section-intake .link-import-panel[data-link-import-panel=image]{grid-template-rows:194px 58px}@media(max-width:640px){#section-intake .link-import-tabs{gap:16px;padding-inline:14px}#section-intake .link-import-tab{padding-inline:2px;font-size:11px}#section-intake .link-import-panel[data-link-import-panel=link],#section-intake .link-import-panel[data-link-import-panel=image]{grid-template-rows:160px 58px}}@media(max-width:640px){#section-intake .link-import-panel[data-link-import-panel=link],#section-original .link-import-panel[data-link-import-panel=link]{grid-template-rows:minmax(160px,auto) 58px}#section-intake .link-import-panel[data-link-import-panel=link] textarea,#section-original .link-import-panel[data-link-import-panel=link] textarea{height:138px;min-height:138px;max-height:138px}}.local-upload-guide{display:flex;gap:18px;flex-wrap:wrap;margin:14px 0 10px;color:#6d665f;font-size:12px}.local-upload-guide span{display:inline-flex;align-items:center;gap:6px}.local-upload-guide svg{width:14px;height:14px;color:#b35d3b}.local-reference-upload-list{display:grid;gap:8px}.local-reference-upload-row{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(220px,280px) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e7e0d8;background:#fffdf9;border-radius:8px}.local-reference-upload-copy{display:grid;gap:3px;min-width:0}.local-reference-upload-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.local-reference-upload-copy small{color:#8b8177;font-size:11px}.local-page-range-field{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;color:#71675f;font-size:11px}.local-page-range-field input{min-width:0;height:34px;padding:0 10px;border:1px solid #dcd3c9;border-radius:6px;background:#fff;font:inherit;color:#2f2925}.local-page-range-field input:disabled{background:#f3efe9;color:#a49b92}.knowledge-evidence-local-browser .knowledge-evidence-local-files{width:100%}@media(max-width:700px){.local-reference-upload-row{grid-template-columns:auto minmax(0,1fr) auto}.local-page-range-field{grid-column:2 / -1;grid-template-columns:70px 1fr}.local-page-range-field input{width:100%}}.local-reference-upload-copy{align-self:center;min-width:0}.local-page-control{justify-self:stretch;width:100%}.local-page-scope{width:100%}.local-page-fields{display:grid;gap:6px;width:100%}.local-page-range-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) 28px;align-items:center;gap:5px;width:100%}.local-page-range-row label{min-width:0;display:flex;align-items:center;gap:4px;white-space:nowrap}.local-page-range-row input{width:100%;min-width:0;box-sizing:border-box}.local-page-add{justify-self:end;width:28px;height:28px;color:#ee4967;border:1px solid #f0c5ce;background:#fff7f8}.local-page-remove{width:28px;height:28px;color:#9b848a}.knowledge-evidence{border:1px solid #efd0d5;border-top:3px solid #ee4967;border-radius:12px;box-shadow:0 8px 24px #39262b0d}.knowledge-evidence-head{min-height:58px;padding:8px 12px 8px 10px}.knowledge-evidence-icon{width:34px;height:34px;border-radius:10px;color:#d53c5a;background:#fff1f3}.knowledge-evidence-title strong{font-size:13px;letter-spacing:0}.knowledge-evidence-summary{margin-top:2px;color:#8a7478;font-size:10px}.knowledge-evidence-source-tabs{border-top:1px solid #eee5e5;border-bottom:1px solid #e8dcde;background:#fbf8f8}.knowledge-evidence-source-tabs button{min-height:42px;color:#7b7274;font-size:11px}.knowledge-evidence-source-tabs button.active{color:#c93653;background:#fff;box-shadow:inset 0 -2px #ee4967}.knowledge-evidence-panel{padding:15px 16px 16px}.knowledge-evidence-panel-head{align-items:flex-start;margin-bottom:12px}.knowledge-evidence-panel-head strong{color:#352e30;font-size:13px}.knowledge-evidence-panel-head>div>span{max-width:560px;margin-top:4px;color:#887b7e;font-size:10px;line-height:1.55}.knowledge-evidence-count{padding:4px 8px;border:1px solid #f4c5cd;border-radius:999px;color:#c93653;background:#fff5f6;font-size:10px}.knowledge-evidence-local-files{overflow:hidden;border:1px solid #e6dfe0;border-radius:10px;background:#fff;box-shadow:0 2px 8px #38242908}.knowledge-evidence-file-head{min-height:48px;padding:0 12px;border-bottom:1px solid #eee7e8;background:#fdfbfb}.knowledge-evidence-file-head strong{color:#4b4144;font-size:11px}.knowledge-evidence-file-head .ghost-btn{min-height:30px;padding:0 10px;border-color:#e7c1c8;border-radius:7px;color:#c93653;background:#fff7f8;font-size:10px}.knowledge-evidence-file-head .ghost-btn:hover{border-color:#ee4967;background:#fff0f2}#knowledgeEvidenceLocalFiles,.local-reference-upload-list{max-height:none;overflow:visible}#knowledgeEvidenceCloudFiles{max-height:280px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}.local-upload-empty{display:flex;width:100%;min-height:168px;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:24px 18px;border:1px dashed #d8c3c7;border-radius:0;color:#6f6266;background:linear-gradient(180deg,#fff,#fffafb);text-align:center;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}.local-upload-empty:hover,.local-upload-empty:focus-visible,.local-upload-empty.is-dragging{border-color:#ee4967;background:#fff3f5}.local-upload-empty:focus-visible{outline:2px solid #ee4967;outline-offset:-4px}.local-upload-empty-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:2px;border:1px solid #f0c5cc;border-radius:12px;color:#d24662;background:#fff0f3}.local-upload-empty-icon .lucide{width:21px;height:21px}.local-upload-empty strong{color:#3d3437;font-size:12px}.local-upload-empty>span:not(.local-upload-empty-icon){color:#897b7f;font-size:10px;line-height:1.5}.local-upload-empty-hint{color:#b05f6f!important}.local-reference-upload-list{display:grid;gap:8px;padding:10px;background:#fffafb}.local-reference-upload-row{grid-template-columns:34px minmax(0,1fr) minmax(220px,.75fr) 30px;min-height:58px;padding:9px 10px;border:1px solid #eee2e4;border-radius:8px;background:#fff;box-shadow:0 1px 3px #3c232a08}.local-reference-upload-row:hover{border-color:#e9bbc4;box-shadow:0 4px 12px #3c232a0f}.local-reference-upload-copy strong{color:#42383b;font-size:11px}.local-reference-upload-copy small{color:#95868b;font-size:10px}.local-reference-upload-row .local-file-icon{width:32px;height:32px;border-radius:9px;color:#c93653;background:#fff0f3}.local-page-range-field{grid-template-columns:auto minmax(0,1fr);color:#75666a;font-size:10px}.local-page-range-field input{height:32px;border-color:#dfd2d5;border-radius:7px;font-size:11px}.local-page-range-field input:focus{border-color:#ee4967;box-shadow:0 0 0 3px #ee49671f}.local-reference-upload-row .icon-btn{width:28px;height:28px;min-width:28px;border-radius:7px;color:#a98d93}.local-reference-upload-row .icon-btn:hover{color:#c93653;background:#fff0f3}.local-page-control{min-width:0}.local-page-scope{display:grid;gap:6px}.local-page-scope-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#75666a;font-size:10px}.local-page-count{color:#a4888f;font-variant-numeric:tabular-nums}.local-page-modes{display:inline-grid;grid-template-columns:repeat(2,minmax(64px,1fr));width:min(170px,100%);padding:2px;border:1px solid #e5d6d9;border-radius:7px;background:#fbf7f8}.local-page-modes button{min-height:26px;padding:0 8px;border:0;border-radius:5px;color:#897b80;background:transparent;font-size:10px;cursor:pointer}.local-page-modes button.active{color:#c93653;background:#fff;box-shadow:0 1px 4px #4a27301a;font-weight:800}.local-page-modes button:focus-visible{outline:2px solid #ee4967;outline-offset:1px}.local-page-fields{display:flex;align-items:center;gap:5px;color:#88797e;font-size:10px;white-space:nowrap}.local-page-fields label{display:inline-flex;align-items:center;gap:4px}.local-page-fields input{width:58px;height:28px;padding:0 6px;border:1px solid #dfd2d5;border-radius:6px;color:#44393d;background:#fff;font-size:11px;font-variant-numeric:tabular-nums;text-align:center}.local-page-fields input:focus{border-color:#ee4967;box-shadow:0 0 0 3px #ee49671f;outline:0}.local-page-fulltext{display:inline-flex;min-height:27px;align-items:center;padding:0 9px;border:1px solid #e4dadd;border-radius:7px;color:#88797e;background:#fbf7f8;font-size:10px}.local-page-loading{display:inline-flex;align-items:center;gap:5px;color:#a1848b;font-size:10px}.local-page-loading .lucide{width:13px;height:13px;animation:local-page-spin .9s linear infinite}@keyframes local-page-spin{to{transform:rotate(360deg)}}.knowledge-evidence-local-empty{min-height:155px}.knowledge-evidence-local-actions{margin-top:12px}.knowledge-evidence-local-actions .primary-btn{min-height:36px;padding:0 15px;border-radius:8px;background:#ee4967;box-shadow:0 5px 12px #ee49672e}.knowledge-evidence-local-actions .primary-btn:hover{background:#d83d5a}@media(max-width:900px){.local-reference-upload-row{grid-template-columns:34px minmax(0,1fr) 30px}.local-page-control{grid-column:2 / -1}}@media(max-width:640px){.knowledge-evidence-head{min-height:54px;padding-inline:8px}.knowledge-evidence-panel{padding:12px 10px 13px}.knowledge-evidence-panel-head{gap:8px}.knowledge-evidence-panel-head>div>span{max-width:none}.knowledge-evidence-file-head{min-height:46px;padding-inline:9px}.knowledge-evidence-file-head .ghost-btn span{display:none}.local-reference-upload-row{grid-template-columns:32px minmax(0,1fr) 28px;gap:9px;padding:9px}.local-page-modes{width:100%}.local-page-fields{justify-content:flex-start}.local-reference-upload-list{padding:8px}.local-upload-empty{min-height:150px;padding-inline:10px}}.local-reference-upload-row{grid-template-columns:34px minmax(180px,1fr) minmax(270px,360px) 30px;width:100%;box-sizing:border-box}.local-page-control,.local-page-scope{justify-self:stretch;width:100%}.local-page-fields{display:flex!important;flex-direction:column;align-items:stretch;gap:6px;width:100%}.local-page-range-row{display:grid!important;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 30px!important;align-items:center;width:100%;min-height:30px;gap:5px}.local-page-bound{display:flex!important;align-items:center;min-width:0;gap:4px;white-space:nowrap}.local-page-bound input{flex:1 1 auto;width:1px!important;min-width:0;height:30px;box-sizing:border-box}.local-page-between{width:18px;text-align:center}.local-range-actions{display:flex;align-items:center;justify-content:center;width:30px;height:30px}.local-range-action{display:inline-flex!important;align-items:center;justify-content:center;width:28px!important;height:28px!important;min-width:28px!important;padding:0!important;border:1px solid #f0c5ce!important;border-radius:7px!important;background:#fff8f9!important;color:#d94d67!important;font:700 18px/1 Arial,sans-serif!important;text-align:center;cursor:pointer}.local-range-action:hover{background:#fff0f3!important;border-color:#ee9cac!important}.local-page-remove{color:#9c7f87!important;border-color:#d8c9cd!important;background:#fbf8f8!important}.local-page-fields{position:static;padding-right:0}.local-page-range-row{grid-template-columns:auto 18px auto 66px!important;justify-content:start}.local-page-bound{width:auto}.local-page-bound input{flex:0 0 58px;width:58px!important;min-width:58px;max-width:58px}.local-range-actions{display:grid;grid-template-columns:30px 30px;align-items:center;justify-items:start;width:66px}.local-range-remove-slot,.local-range-add-slot{display:flex;align-items:center;justify-content:flex-start;width:30px;height:30px}.local-page-scope{width:188px;max-width:100%;box-sizing:border-box}.local-page-modes,.local-page-fields{width:188px!important;min-width:0;box-sizing:border-box}.local-page-fields{overflow:visible}.local-page-range-row{width:max-content}@media(max-width:820px){.local-page-scope,.local-page-modes,.local-page-fields{width:min(188px,100%)!important}}@media(max-width:820px){.local-reference-upload-row{grid-template-columns:34px minmax(0,1fr) 30px}.local-page-control{grid-column:2 / -1}}#extensionTutorialModal .extension-tutorial-card{width:min(860px,calc(100vw - 40px));max-height:min(760px,calc(100dvh - 40px));padding:34px;overflow-y:auto}#extensionTutorialModal .extension-tutorial-head h2{margin-top:10px;font-size:28px;line-height:1.25}#extensionTutorialModal .extension-tutorial-head p:not(.eyebrow){font-size:16px;line-height:1.7}#extensionTutorialModal .extension-tutorial-steps{padding:30px 0 28px}#extensionTutorialModal .extension-tutorial-steps strong{margin-top:2px;margin-bottom:10px;font-size:18px;line-height:1.4}#extensionTutorialModal .extension-tutorial-steps p{color:#4f5660;font-size:15px;line-height:1.8}#extensionTutorialModal .extension-tutorial-steps code{font-size:13px}#extensionTutorialModal .extension-tutorial-note{padding:15px 17px;color:#4f5660;font-size:14px;line-height:1.6}@media(max-width:720px){#extensionTutorialModal .extension-tutorial-card{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:24px 20px}#extensionTutorialModal .extension-tutorial-head h2{font-size:25px}#extensionTutorialModal .extension-tutorial-head p:not(.eyebrow),#extensionTutorialModal .extension-tutorial-steps p{font-size:15px}#extensionTutorialModal .extension-tutorial-steps strong{font-size:18px}}.local-reference-upload-list{display:grid;gap:8px;min-width:0}.local-upload-empty{display:flex;width:100%;min-height:150px;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:22px 16px;border:1px dashed #d6c8c4;border-radius:8px;color:#6f6661;background:#fffdfb;text-align:center;cursor:pointer;transition:border-color .15s ease,background .15s ease}.local-upload-empty:hover,.local-upload-empty:focus-visible,.local-reference-upload-list.is-dragging .local-upload-empty{border-color:var(--red);background:#fff5f6}.local-upload-empty:focus-visible{outline:2px solid var(--red);outline-offset:-3px}.local-upload-empty-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid #f0c8ce;border-radius:10px;color:var(--red);background:#fff0f2}.local-upload-empty-icon .lucide{width:20px;height:20px}.local-upload-empty strong{color:var(--ink);font-size:12px}.local-upload-empty>span:not(.local-upload-empty-icon){color:var(--muted);font-size:10px;line-height:1.5}.local-upload-empty-hint{color:#ad5a6b!important}.local-reference-upload-row{display:grid;grid-template-columns:34px minmax(0,1fr) minmax(220px,.78fr) 30px;align-items:center;gap:10px;min-width:0;min-height:58px;padding:9px 10px;box-sizing:border-box;border:1px solid #eadfe0;border-radius:8px;background:#fff}.local-reference-upload-row:hover{border-color:#e1b5bd;box-shadow:0 4px 12px #3c232a0f}.local-reference-upload-row .local-file-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;color:var(--red);background:#fff0f2}.local-reference-upload-row .local-file-icon .lucide{width:16px;height:16px}.local-reference-upload-copy{min-width:0;display:grid;gap:3px}.local-reference-upload-copy strong,.local-reference-upload-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.local-reference-upload-copy strong{color:var(--ink);font-size:11px}.local-reference-upload-copy small{color:var(--muted);font-size:10px}.local-page-control{min-width:0;width:100%}.local-page-scope{display:grid;gap:6px;min-width:0}.local-page-scope-top{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}.local-page-count{color:#9b858b;font-variant-numeric:tabular-nums}.local-page-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;padding:2px;border:1px solid #e6d7da;border-radius:6px;background:#fbf7f8}.local-page-modes button{min-height:26px;padding:0 7px;border:0;border-radius:4px;color:var(--muted);background:transparent;font:inherit;font-size:10px;cursor:pointer}.local-page-modes button.active{color:var(--red);background:#fff;box-shadow:0 1px 4px #4a27301a;font-weight:800}.local-page-modes button:focus-visible{outline:2px solid var(--red);outline-offset:1px}.local-page-fields{display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--muted);font-size:10px}.local-page-range-row{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 60px;align-items:center;gap:5px;min-width:0}.local-page-bound{display:flex;align-items:center;gap:4px;min-width:0;white-space:nowrap}.local-page-bound input{width:1px;min-width:0;flex:1 1 auto;height:28px;box-sizing:border-box;padding:0 5px;border:1px solid #dfd2d5;border-radius:6px;color:var(--ink);background:#fff;font:inherit;font-size:11px;text-align:center}.local-page-bound input:focus{border-color:var(--red);box-shadow:0 0 0 3px #ee49671f;outline:0}.local-page-between{width:18px;color:#9b858b;text-align:center}.local-range-actions{display:grid;grid-template-columns:28px 28px;align-items:center;gap:4px}.local-range-remove-slot,.local-range-add-slot{display:flex;align-items:center;justify-content:center;width:28px;height:28px}.local-range-action,.local-file-remove-action{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;padding:0;border:1px solid #dfd0d4;border-radius:6px;color:#9a7e86;background:#fbf8f8;font:700 16px/1 Arial,sans-serif;cursor:pointer}.local-range-action:hover,.local-file-remove-action:hover{border-color:#ee9cac;color:var(--red);background:#fff0f3}.local-page-fulltext{display:inline-flex;min-height:27px;align-items:center;padding:0 8px;border:1px solid #e4dadd;border-radius:6px;color:var(--muted);background:#fbf7f8;font-size:10px}.local-page-loading{display:inline-flex;align-items:center;gap:5px;color:#9b858b;font-size:10px}.draft-image-item.is-generating{pointer-events:none;opacity:.78}.draft-image-actions{left:8px;right:8px;justify-content:flex-end;gap:4px}.image-action-btn.single-image-ai-action,.image-action-btn.single-image-edit-action{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:auto;min-width:0;height:30px;padding:0 6px;color:#c62f49;background:#ffeef2f5;font-size:10px;white-space:nowrap}.image-action-btn.single-image-ai-action .lucide,.image-action-btn.single-image-edit-action .lucide,.image-action-btn.danger .lucide{width:13px;height:13px;flex:0 0 13px}.single-image-editor-card{width:min(780px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 32px));display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px;padding:24px;overflow:hidden;text-align:left}.single-image-editor-head{padding-right:42px}.single-image-editor-head h2{margin:3px 0 6px;font-size:24px}.single-image-editor-head>p:last-child{margin:0;color:#747982;font-size:13px}.single-image-editor-form{min-height:0;display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:20px;overflow:auto}.single-image-current,.single-image-editor-controls{min-width:0}.single-image-current>span,.single-image-prompt-field>span{display:block;margin-bottom:8px;color:#343840;font-size:12px;font-weight:800}.single-image-current-stage{width:100%;aspect-ratio:3 / 4;display:grid;place-items:center;overflow:hidden;border:1px solid #e2e4e8;border-radius:7px;background:#f5f6f8}.single-image-current-stage img{width:100%;height:100%;display:block;object-fit:contain}.single-image-editor-controls{display:flex;flex-direction:column;gap:14px}.single-image-prompt-field textarea{width:100%;min-height:178px;resize:vertical;line-height:1.65}.single-image-reference-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:2px}.single-image-reference-head>div{min-width:0;display:flex;align-items:baseline;gap:8px}.single-image-reference-head strong{color:#343840;font-size:12px}.single-image-reference-head>div>span{color:#8a8f98;font-size:11px}.single-image-reference-add{position:relative;min-height:32px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid #ffd0d8;border-radius:6px;color:#b92540;background:#fff0f3;font-size:12px;font-weight:800;cursor:pointer}.single-image-reference-add:hover{border-color:#ff9cad;background:#ffe3e8}.single-image-reference-add .lucide{width:15px;height:15px}.single-image-reference-add input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.single-image-reference-list{min-height:72px;display:flex;align-items:center;gap:8px;overflow-x:auto;border-top:1px solid #eceef1;padding-top:10px}.single-image-reference-empty{color:#9a9ea6;font-size:12px}.single-image-reference-item{position:relative;width:58px;height:68px;flex:0 0 58px;overflow:visible}.single-image-reference-item img{width:100%;height:100%;display:block;border:1px solid #e0e3e7;border-radius:6px;object-fit:cover}.single-image-reference-item button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;display:grid;place-items:center;border:1px solid #ffd0d8;border-radius:50%;padding:0;color:#b92540;background:#fff0f3;box-shadow:0 2px 8px #501d2724}.single-image-reference-item button .lucide{width:12px;height:12px}.single-image-editor-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #eceef1;padding-top:16px}.single-image-editor-actions .primary-btn,.single-image-editor-actions .ghost-btn{min-height:38px}.auth-management-workbench{max-width:1360px;margin:0 auto;padding:28px 32px 48px}.auth-management-workbench .section-heading{margin-bottom:18px}.auth-management-notice{min-height:24px;margin:0 0 12px;padding:0 12px;color:#68707c;font-size:13px}.auth-management-notice:empty{display:none}.auth-management-notice.is-error,.auth-management-notice.is-success{min-height:38px;display:flex;align-items:center;border-radius:6px}.auth-management-notice.is-error{color:#a3263f;background:#fff0f3;border:1px solid #ffd0d8}.auth-management-notice.is-success{color:#176b4a;background:#edf9f2;border:1px solid #b9e8cc}.auth-management-tabs{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid #e6e8ec}.auth-management-tabs>button{min-height:42px;display:inline-flex;align-items:center;gap:7px;padding:0 14px;border:0;border-bottom:2px solid transparent;color:#777e89;background:transparent;font-weight:700;white-space:nowrap;cursor:pointer}.auth-management-tabs>button:hover{color:#343840;background:#f7f8fa}.auth-management-tabs>button.active{color:#b92540;border-bottom-color:#d83c58}.auth-management-tabs .lucide{width:16px;height:16px}.auth-management-tab-panel{padding-top:20px}.auth-management-grid{display:grid;grid-template-columns:minmax(240px,.36fr) minmax(0,1fr);gap:18px;align-items:start}.auth-management-panel{min-width:0;border:1px solid #e5e7eb;border-radius:8px;background:#fff;box-shadow:0 5px 18px #232a340a}.auth-management-form{display:grid;gap:14px;padding:20px}.auth-management-form>label,.auth-management-form fieldset{display:grid;gap:6px;color:#505762;font-size:12px;font-weight:700}.auth-management-form input,.auth-management-form select{width:100%;min-height:38px;box-sizing:border-box;padding:0 10px;border:1px solid #dfe2e7;border-radius:6px;color:#2f343b;background:#fff;font:inherit;font-weight:500}.auth-management-form input:focus,.auth-management-form select:focus{outline:2px solid rgba(216,60,88,.16);border-color:#d83c58}.auth-management-form fieldset{margin:0;padding:10px;border:1px solid #eceef1;border-radius:6px}.auth-management-form legend{padding:0 4px;color:#777e89;font-size:11px}.auth-check{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px!important;font-weight:600!important}.auth-check input{width:15px;min-height:15px;accent-color:#d83c58}.auth-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid #eef0f2}.auth-panel-heading>div{min-width:0}.auth-panel-heading span{display:block;margin-bottom:4px;color:#9a9ea6;font-size:11px;font-weight:700}.auth-panel-heading h3{margin:0;color:#343840;font-size:17px}.auth-panel-heading>strong{color:#b92540;font-size:18px}.auth-panel-heading>.lucide{width:20px;height:20px;color:#d83c58}.auth-management-list{overflow:hidden}.auth-table-wrap{overflow-x:auto}.auth-table{width:100%;border-collapse:collapse;min-width:560px}.auth-table th,.auth-table td{padding:12px 16px;border-bottom:1px solid #f0f1f3;text-align:left;vertical-align:middle;font-size:13px}.auth-table th{color:#8a8f98;background:#fafbfc;font-size:11px;font-weight:800;white-space:nowrap}.auth-table td strong,.auth-table td small{display:block}.auth-table td strong{color:#343840}.auth-table td small{margin-top:3px;color:#9a9ea6;font-size:11px}.auth-table td select{min-height:32px;padding:0 8px;border:1px solid #dfe2e7;border-radius:5px;background:#fff;color:#454b55}.auth-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;color:#7b818b;background:#f1f2f4;font-size:11px;font-weight:800}.auth-status.is-active{color:#18704c;background:#eaf8f0}.auth-empty{min-height:170px;display:grid;place-items:center;align-content:center;gap:7px;padding:20px;color:#9a9ea6;text-align:center}.auth-empty strong{color:#606773;font-size:14px}.auth-empty span{font-size:12px}.auth-empty .lucide{width:26px;height:26px;color:#c5c9cf}.auth-empty.compact{min-height:130px}.auth-management-loading{min-height:220px;display:grid;place-items:center;align-content:center;gap:10px;color:#818793;font-size:13px}.auth-management-loading .lucide{width:24px;height:24px;animation:auth-management-spin 1s linear infinite}.auth-token-reveal{position:relative;display:grid;gap:8px;margin-bottom:16px;padding:14px 48px 14px 16px;border:1px solid #f0d49b;border-radius:7px;color:#6f5014;background:#fff8e9}.auth-token-reveal code{overflow-wrap:anywhere;color:#4e3b16;font-size:12px}.auth-token-reveal .icon-btn{position:absolute;top:10px;right:10px}.auth-form-actions{display:flex;flex-wrap:wrap;gap:8px}.auth-form-actions>button{flex:1 1 150px}.auth-share-result{display:grid;gap:6px;margin:16px;padding:14px;border:1px solid #cfe5f5;border-radius:6px;color:#31566f;background:#f2f8fc}.auth-share-result strong{color:#245a7b}.auth-share-result span,.auth-share-result small{font-size:12px}.auth-management-panel button:disabled,.auth-management-panel select:disabled{cursor:wait;opacity:.55}@keyframes auth-management-spin{to{transform:rotate(360deg)}}@media(max-width:900px){.auth-management-workbench{padding:22px 20px 36px}.auth-management-grid{grid-template-columns:1fr}.local-reference-upload-row{grid-template-columns:34px minmax(0,1fr) 30px}.local-page-control{grid-column:2 / -1}}@media(max-width:640px){.auth-management-workbench{padding:18px 14px 28px}.auth-management-workbench .section-heading{align-items:flex-start}.auth-management-workbench .section-heading h2{font-size:22px}.auth-management-panel{border-radius:6px}.auth-management-form{padding:16px}.auth-panel-heading{padding:15px 16px 12px}.auth-table th,.auth-table td{padding:10px 12px}.local-reference-upload-row{grid-template-columns:32px minmax(0,1fr) 28px;gap:8px;padding:8px}.local-page-control{grid-column:2 / -1}.local-page-range-row{grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr)}.local-range-actions{grid-column:1 / -1;grid-template-columns:28px 28px;justify-content:flex-end}.single-image-editor-card{height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);padding:20px 16px}.single-image-editor-form{grid-template-columns:1fr}.single-image-current-stage{width:min(220px,100%);margin:0 auto}.single-image-editor-actions{position:sticky;bottom:0;background:#fff}}@media(max-width:640px){.topbar{grid-template-columns:auto minmax(0,1fr) auto;padding-inline:10px}.global-brand{padding-right:8px;border-right:0}.global-nav{min-width:0;gap:3px;padding-left:4px;overflow:hidden}.global-nav-group{gap:0;min-width:0}.global-nav-item{width:30px;min-width:30px;flex:0 0 30px;padding-inline:0;justify-content:center}.global-nav-divider{margin-inline:1px}.topbar>.top-actions{display:flex!important;align-items:center;gap:3px;min-width:0}.top-actions #workspaceQuickAction{display:none}.top-actions .icon-text-btn,.top-actions select{min-height:32px;padding-inline:7px}.top-actions .icon-text-btn span{display:inline}}.link-import-fallback{display:grid;gap:4px;margin-top:12px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--red) 24%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--red) 6%,var(--paper));color:var(--muted);font-size:13px}.link-import-fallback strong{color:var(--ink)}.link-import-fallback p{margin:0}.admin-console-workbench{display:flex;flex-direction:column;gap:12px;height:100%;min-height:0}.admin-console-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;min-height:36px}.admin-console-tabs{display:inline-flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--soft)}.admin-console-tab{min-height:28px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:13px;font-weight:700;cursor:pointer}.admin-console-tab:hover{color:var(--ink)}.admin-console-tab.active{color:var(--red-dark);background:#fff;box-shadow:0 1px 3px #22201f14}.admin-console-toolbar-actions{display:flex;align-items:center;gap:10px}.admin-console-scope{color:var(--muted);font-size:12px}.admin-console-content{flex:1 1 auto;min-height:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--paper)}.admin-console-panel{display:flex;flex-direction:column;height:100%;min-height:0}.admin-console-table-wrap{flex:1 1 auto;min-height:0;overflow:auto}.admin-console-table-wrap .auth-table{min-width:900px}.admin-console-table-wrap .auth-table th{position:sticky;top:0;z-index:1}.admin-console-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.admin-console-pager-actions{display:flex;gap:8px}.admin-console-pager button{min-height:30px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:12px;cursor:pointer}.admin-console-pager button:disabled{cursor:default;opacity:.45}.admin-console-notice{display:flex;align-items:center;gap:8px;padding:10px 16px;border-bottom:1px solid #f0dcb4;background:#fff8e9;color:#6f5014;font-size:12px}.admin-console-search{display:flex;gap:8px;margin:0 0 10px}.admin-console-search input{flex:1 1 auto;min-width:0;min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:13px}.admin-console-search input:focus{outline:2px solid rgba(216,60,88,.16);border-color:var(--red-dark)}.admin-console-positive{color:#18704c;font-weight:700}.admin-console-negative{color:var(--red-dark);font-weight:700}.admin-console-permissions{flex:0 0 auto;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.admin-console-permissions>summary{padding:8px 14px;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer}.admin-console-permissions[open]>summary{border-bottom:1px solid var(--line)}.admin-console-permissions #adminConsolePermissionTable{padding:10px 14px}.admin-console-permissions .admin-console-table-wrap{flex:none;max-height:260px;border:1px solid var(--line);border-radius:8px;background:#fff}.admin-console-permissions .auth-table{min-width:520px}.admin-console-permission-note{margin:0 0 8px;color:var(--muted);font-size:12px}.admin-console-permission-cell{text-align:center}.admin-console-permission-cell i{width:14px;height:14px;color:#18704c}.admin-console-permission--none{color:var(--muted)}.admin-console-row-actions{display:inline-flex;gap:6px;flex-wrap:wrap}.admin-console-role-list{display:grid;gap:8px}.admin-console-role-option{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink)}.admin-console-role-option input{width:16px;height:16px}.admin-console-role-copy{display:grid;gap:2px}.admin-console-role-copy small{color:var(--muted);font-size:11px}.admin-console-row-action{min-height:28px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--red-dark);font-size:12px;font-weight:700;cursor:pointer}.admin-console-row-action:hover{border-color:#f0c5ce;background:#fff7f8}.admin-console-modal-card{width:min(720px,calc(100vw - 48px));text-align:left}.admin-console-modal-card .modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-console-modal-card .modal-heading>div{min-width:0}.admin-console-modal-card .modal-heading .eyebrow{margin:0}.admin-console-modal-card .modal-heading h2{margin:4px 0 0}.admin-console-form{display:flex;flex-direction:column;gap:14px;margin-top:16px}.admin-console-form-scope{margin:0;color:var(--muted);font-size:12px}.admin-console-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;max-height:min(56vh,520px);overflow-y:auto;padding-right:4px}.admin-console-form-grid label{display:grid;gap:5px;color:#6b6560;font-size:12px;font-weight:700}.admin-console-form-grid input{min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:13px}.admin-console-form-grid input:focus{outline:2px solid rgba(216,60,88,.16);border-color:var(--red-dark)}.admin-console-form-grid input[readonly]{background:var(--soft);color:var(--muted)}.admin-console-form-actions{display:flex;justify-content:flex-end;gap:10px}.admin-console-form-field{display:grid;gap:5px;color:#6b6560;font-size:12px;font-weight:700}.admin-console-form-field small{color:var(--muted);font-size:11px;font-weight:500}.admin-console-form-grid select{min-height:34px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:13px}.admin-console-form-grid select:focus{outline:2px solid rgba(216,60,88,.16);border-color:var(--red-dark)}.ops-config-slot{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.support-body{display:grid;gap:14px;margin-top:16px}.support-contact-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--soft);font-size:13px}.support-contact-row>span{color:var(--muted);font-size:12px}.support-contact-row a{color:var(--red-dark);font-weight:700;text-decoration:none}.support-contact-row a:hover{text-decoration:underline}.support-request{display:grid;gap:10px}.support-request-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px dashed var(--line);border-radius:8px}.support-request-head>span{color:var(--muted);font-size:12px}.support-request-head code{font-size:13px;color:var(--ink)}.tutorials-card{width:min(880px,calc(100vw - 48px));max-height:min(820px,calc(100vh - 48px));overflow:hidden;background:#fff}.tutorials-body{display:grid;gap:22px;margin-top:16px;max-height:min(660px,calc(100vh - 220px));overflow-y:auto;padding-right:6px}.tutorial-section>header h3{margin:0 0 4px;font-size:15px}.tutorial-section>header p{margin:0 0 10px;color:var(--muted);font-size:12px}.tutorial-steps{display:grid;gap:12px;margin:0;padding:0;list-style:none}.tutorial-step{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:14px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.tutorial-step-image{width:100%;height:auto;border:1px solid var(--line);border-radius:8px;background:#fff}.tutorial-step-placeholder{margin:0;padding:22px 10px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:12px;text-align:center}.tutorial-step-copy strong{display:block;margin-bottom:4px;font-size:13px;color:var(--ink)}.tutorial-step-copy p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}@media(max-width:720px){.tutorial-step{grid-template-columns:minmax(0,1fr)}}.billing-modal-card .modal-heading,.compact-modal-card .modal-heading{position:relative}.billing-modal-card .modal-heading>.icon-btn,.compact-modal-card .modal-heading>.icon-btn{position:absolute;top:0;right:0}.auth-self-marker{color:#9a9ea6;font-size:12px;font-weight:700}.auth-table .danger-btn[disabled]{cursor:not-allowed;opacity:.4}.auth-heading-side{display:flex;align-items:center;gap:12px}.auth-heading-side>strong{color:#b92540;font-size:18px}.rename-organization-card{width:min(460px,calc(100vw - 48px));text-align:left}.rename-organization-card .modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.rename-organization-card .modal-heading>div{min-width:0}.rename-organization-card .modal-heading .eyebrow{margin:0}.rename-organization-card .modal-heading h2{margin:4px 0 0}.rename-organization-form{display:grid;gap:12px;margin-top:16px}.rename-organization-form label{display:grid;gap:6px;color:#505762;font-size:12px;font-weight:700}.rename-organization-form input{min-height:38px;padding:0 10px;border:1px solid #dfe2e7;border-radius:6px;color:#2f343b;background:#fff;font:inherit;font-weight:500}.rename-organization-hint{margin:0;color:var(--muted);font-size:12px}.rename-organization-actions{display:flex;justify-content:flex-end;gap:10px}.auth-role-hint{margin:0;color:var(--muted);font-size:12px}.auth-role-legend-block{margin:14px 0 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fbfcfd}.auth-role-legend-title{margin:0 0 8px;color:#1f2329;font-size:12px;font-weight:700}.auth-role-legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:6px 24px;margin:0;padding:0;list-style:none}.auth-role-legend li{display:grid;grid-template-columns:4.5em minmax(0,1fr);align-items:baseline;gap:10px;font-size:12px;color:var(--muted)}.auth-role-legend strong{color:#1f2329;font-weight:700}.auth-role-readonly{color:#6b7280;font-size:13px}.auth-search{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:#fff}.auth-search input{flex:1 1 auto;min-width:0;height:34px;border:0;background:transparent;font:inherit;font-size:13px;color:#1f2329;outline:none}.auth-bulk-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px;padding:8px 10px;border:1px solid #f1ccd2;border-radius:8px;background:#fff7f8;font-size:12px;color:#7a2b39}.auth-bulk-bar select{min-height:30px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:#fff;font:inherit}.auth-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin:10px 0 0;font-size:12px;color:var(--muted)}.auth-row-actions{display:inline-flex;gap:6px}.auth-login-code-row{display:flex;gap:8px;align-items:center}.auth-login-code-row input{flex:1 1 auto;min-width:0}.auth-login-code-row .ghost-btn{flex:0 0 auto;white-space:nowrap}.auth-login-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
