:root{font-family:Segoe UI,Microsoft YaHei UI,Microsoft YaHei,sans-serif;color:#202124;background:#f4f5f7;font-synthesis:none;--orange: #ff5a1f;--orange-dark: #e8420b;--ink: #202124;--muted: #73777f;--line: #e7e8eb;--surface: #ffffff}*{box-sizing:border-box}html,body,#root{margin:0;min-width:100%;min-height:100%}button,input,select{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#17191d;color:#fff;padding:28px 18px 22px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 30px;border-bottom:1px solid #2c2f34}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--orange);font-weight:800;font-size:20px;box-shadow:0 8px 24px #ff5a1f40}.brand strong,.brand span{display:block}.brand strong{font-size:16px;letter-spacing:.03em}.brand span{color:#777d86;font-size:9px;letter-spacing:.18em;margin-top:4px}nav{display:grid;gap:6px;padding-top:26px}.nav-button{border:0;background:transparent;color:#959aa3;height:46px;border-radius:9px;display:flex;align-items:center;gap:13px;padding:0 14px;text-align:left;transition:.18s}.nav-button span{font-size:22px;width:24px;text-align:center}.nav-button:hover{color:#fff;background:#22252a}.nav-button.active{color:#fff;background:#2a2d32;box-shadow:inset 3px 0 var(--orange)}.sidebar-bottom{margin-top:auto;border-top:1px solid #2c2f34;padding:20px 8px 0}.diagnostic-link{border:0;padding:0;background:transparent;color:#b9bec7;font-size:12px}.diagnostic-link:hover{color:#fff}.sidebar-bottom p{color:#656a72;font-size:11px;margin:11px 0 0}.main-panel{grid-column:2;padding:42px clamp(34px,5vw,76px) 80px;min-width:0}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:28px}.eyebrow{color:var(--orange);letter-spacing:.18em;font-weight:700;font-size:10px;margin:0 0 8px}.page-header h1{margin:0 0 8px;font-size:31px;letter-spacing:-.04em}.page-header p:not(.eyebrow){color:var(--muted);margin:0;font-size:14px}.auth-pill{padding:9px 13px;border:1px solid #dedfe2;border-radius:999px;background:#fff;color:#6f747b;font-size:12px;display:flex;align-items:center;gap:7px}.auth-pill i{width:7px;height:7px;border-radius:50%;background:#aaa}.auth-pill.valid{color:#177245;border-color:#bfe5d0;background:#f3fbf6}.auth-pill.valid i{background:#20a768}.auth-pill.challenge_required,.auth-pill.expired{color:#a54a21;border-color:#ffd0bc;background:#fff8f4}.auth-pill.challenge_required i,.auth-pill.expired i{background:var(--orange)}.auth-pill.connected{color:#177245;border-color:#bfe5d0;background:#f3fbf6}.auth-pill.connected i{background:#20a768}.auth-pill.error{color:#a62f28;border-color:#ffd2cc;background:#fff0ee}.auth-pill.error i{background:#d34132}.login-strip{padding:16px 20px;border:1px solid #ece0da;background:#fffaf7;border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.login-strip strong,.login-strip span{display:block}.login-strip strong{font-size:13px}.login-strip span{color:#8a756b;font-size:12px;margin-top:4px}.research-card,.settings-card,.history-card,.bridge-card{background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:0 8px 30px #2021240a}.bridge-card{overflow:hidden;margin-bottom:18px}.bridge-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line)}.bridge-steps>div{position:relative;min-height:154px;padding:22px 22px 20px 52px;background:#fff}.bridge-steps b{position:absolute;left:20px;top:22px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff2ed;color:var(--orange);font-size:10px}.bridge-steps strong{display:block;font-size:13px;margin-bottom:7px}.bridge-steps p{color:#7d828a;font-size:11px;line-height:1.55;margin:0 0 13px}.bridge-steps .pair-code{font-family:Consolas,monospace;color:#333;background:#f5f6f8;padding:7px 8px;border-radius:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.connection-state{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;background:#f0f1f3;color:#71767d}.connection-state.connected{background:#eaf8f0;color:#187047}.connection-state.error{background:#feecec;color:#a72d2d}.research-card{overflow:hidden}.section-title{padding:22px 26px;border-bottom:1px solid var(--line)}.section-title>div{display:flex;gap:14px;align-items:center}.section-title>div>span{color:var(--orange);border:1px solid #ffd6c7;background:#fff6f2;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;font-size:11px;font-weight:800}.section-title h2{font-size:16px;margin:0}.section-title p{font-size:11px;color:var(--muted);margin:4px 0 0}.form-grid{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:18px;padding:26px;align-items:end}.field{min-width:0}.field>span{display:block;font-size:11px;font-weight:700;color:#5b5f66;margin-bottom:8px}.field input,.field select,.number-input{width:100%;height:43px;border:1px solid #dedfe3;background:#fbfbfc;border-radius:8px;outline:0;color:var(--ink);transition:.18s}.field input,.field select{padding:0 12px}.field input:focus,.field select:focus,.number-input:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px #ff5a1f18;background:#fff}.number-input{display:flex;align-items:center}.number-input i{font-style:normal;color:#8a8e95;padding-left:12px}.number-input input{height:100%;border:0;background:transparent;box-shadow:none!important}.toggle-field{grid-column:span 1;height:43px;display:flex;align-items:center;justify-content:space-between;border:1px solid #dedfe3;background:#fbfbfc;border-radius:8px;padding:0 10px 0 12px;position:relative}.toggle-field strong,.toggle-field small{display:block}.toggle-field strong{font-size:11px}.toggle-field small{color:#999da3;font-size:9px;margin-top:2px}.toggle-field input{position:absolute;opacity:0}.toggle-field i{width:34px;height:19px;border-radius:999px;background:#c7c9cd;position:relative;transition:.2s}.toggle-field i:after{content:"";position:absolute;width:15px;height:15px;border-radius:50%;background:#fff;left:2px;top:2px;box-shadow:0 1px 3px #0003;transition:.2s}.toggle-field input:checked+i{background:var(--orange)}.toggle-field input:checked+i:after{transform:translate(15px)}.form-footer{border-top:1px solid var(--line);background:#fcfcfd;padding:17px 26px;display:flex;justify-content:space-between;align-items:center}.form-footer p{color:#92969c;font-size:11px;margin:0}.button-row{display:flex;align-items:center;gap:9px}.button{border:0;border-radius:8px;min-height:38px;padding:0 15px;font-size:12px;font-weight:650;transition:.18s}.button:disabled{opacity:.5;cursor:not-allowed}.button.primary{background:var(--orange);color:#fff;min-width:132px;box-shadow:0 7px 18px #ff5a1f32}.button.primary:hover:not(:disabled){background:var(--orange-dark);transform:translateY(-1px)}.button.primary span{margin-left:10px}.button.secondary{background:#25282d;color:#fff}.button.ghost{background:#fff;color:#555a61;border:1px solid #dadce0}.button.ghost:hover{border-color:#aaaeb5}.button.danger{background:#fff0ed;color:#b43822}.button.small{min-height:32px}.text-link{border:0;background:transparent;color:var(--orange-dark);padding:0;font-size:12px;font-weight:650}.danger-text{color:#b43822}.results-section{margin-top:34px}.results-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:17px}.results-heading>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.results-heading .eyebrow{width:100%;margin-bottom:0}.results-heading h2{margin:2px 0 0;font-size:22px}.status{display:inline-flex;padding:4px 8px;border-radius:5px;font-size:10px;font-weight:700;background:#eee;color:#666}.status-running,.status-queued{color:#a84b22;background:#fff0e9}.status-paused{color:#8a5b08;background:#fff4d6}.status-completed{color:#187047;background:#eaf8f0}.status-failed{color:#a72d2d;background:#feecec}.status-cancelled{color:#676b72;background:#eeeef0}.progress-wrap{margin-bottom:15px}.progress-meta{display:flex;justify-content:space-between;font-size:11px;color:#777b82;margin-bottom:7px}.progress-meta strong{color:var(--orange)}.progress-track{height:4px;background:#e6e7e9;border-radius:999px;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--orange);transition:width .3s}.product-list{display:grid;gap:9px}.product-card{border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden}.product-main{width:100%;background:#fff;padding:13px 17px;display:grid;grid-template-columns:32px minmax(180px,380px) minmax(260px,1fr) 106px;gap:14px;align-items:center;text-align:left}.product-card:hover .product-main{background:#fdfdfd}.rank{color:#a6a9ae;font-size:11px;font-weight:800}.product-images{display:flex;gap:6px;min-width:0;overflow-x:auto;padding:3px 2px 7px;scrollbar-width:thin;scrollbar-color:#c7c9ce transparent}.thumb{position:relative;width:52px;height:66px;flex:0 0 52px;padding:0;border:1px solid #e4e5e7;border-radius:7px;background:#f0f1f3;overflow:hidden;display:grid;place-items:center;color:#777;font-size:10px;cursor:zoom-in}.thumb-main{border-color:#ff7b51}.thumb:hover,.thumb:focus-visible{border-color:var(--orange);outline:2px solid #ff5a2426;outline-offset:1px}.thumb img{width:100%;height:100%;object-fit:cover}.thumb>span{position:absolute;left:3px;bottom:3px;padding:2px 4px;border-radius:3px;background:#171a20d9;color:#fff;font-size:8px;line-height:1}.thumb-main>span{background:var(--orange)}.empty-thumb{cursor:default}.product-toggle{min-width:0;padding:6px 0;border:0;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) 24px;gap:14px;align-items:center;text-align:left}.product-toggle:focus-visible{outline:2px solid #ff5a2460;outline-offset:4px;border-radius:6px}.product-info{min-width:0}.product-info h3{margin:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-info p{margin:5px 0 9px;color:#777b82;font-size:10px}.metrics{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.metrics strong{color:var(--orange-dark);font-size:14px}.metrics span{color:#5f646b;font-size:11px}.chevron{color:#777b82;transition:transform .2s}.chevron.up{transform:rotate(180deg)}.save-reference{min-height:34px;border:1px solid #ffd0bf;border-radius:7px;background:#fff7f3;color:var(--orange-dark);font-size:11px;font-weight:700}.save-reference:hover:not(:disabled),.save-reference:focus-visible{border-color:var(--orange);background:#fff0e9;outline:2px solid #ff5a2426;outline-offset:1px}.save-reference.saved{border-color:#c9e9d6;background:#eff9f3;color:#1e7750}.save-reference:disabled{cursor:default;opacity:1}.product-detail{padding:17px 24px 24px 63px;border-top:1px solid var(--line);background:#fbfbfc}.detail-actions{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.summary-panel{border-left:3px solid var(--orange);background:#fff;padding:16px 18px;border-radius:0 8px 8px 0}.summary-head{display:flex;justify-content:space-between}.summary-head span{color:#777b82;font-size:10px}.summary-panel>p{line-height:1.75;color:#4e5258;font-size:12px}.summary-group{display:grid;grid-template-columns:72px 1fr;margin-top:11px;font-size:11px}.summary-group strong{color:#52565c}.summary-group ul{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}.summary-group li{padding:4px 7px;border-radius:4px;background:#f1f2f4}.summary-group.positive li{color:#197149;background:#edf8f2}.summary-group.negative li{color:#a73a2a;background:#fff0ed}.summary-group.warning li{color:#805515;background:#fff7e6}.summary-empty{border:1px dashed #c7c9ce;color:#73777d;border-radius:8px;padding:20px;text-align:center;font-size:11px}.image-lightbox{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:32px;background:#111820cc}.image-lightbox section{position:relative;width:min(920px,calc(100vw - 160px));max-height:90vh;display:grid;gap:10px;justify-items:center;padding:16px;border-radius:12px;background:#fff;box-shadow:0 8px 24px #0006}.image-lightbox img{display:block;max-width:100%;max-height:calc(90vh - 82px);object-fit:contain}.image-lightbox p{max-width:70ch;margin:0;color:#50545a;font-size:12px;text-align:center}.lightbox-close{position:absolute;top:8px;right:8px;width:34px;height:34px;border:0;border-radius:50%;background:#20242be8;color:#fff;font-size:24px;line-height:1;z-index:1}.lightbox-close:focus-visible{outline:2px solid var(--orange);outline-offset:2px}.lightbox-nav{position:absolute;top:50%;z-index:1;width:48px;height:72px;border:0;border-radius:10px;background:#151a21a8;color:#fff;font-size:46px;line-height:1;transform:translateY(-50%);opacity:.72;transition:opacity .18s ease,background-color .18s ease}.lightbox-nav.previous{left:-64px}.lightbox-nav.next{right:-64px}.lightbox-nav:hover,.lightbox-nav:focus-visible{background:#151a21d9;opacity:1}.lightbox-nav:focus-visible{outline:2px solid var(--orange);outline-offset:2px}.empty-state{border:1px dashed #d8d9dd;border-radius:12px;min-height:190px;display:grid;place-items:center;align-content:center;color:#9a9da3;background:#fafafb}.empty-state>span{font-size:30px}.empty-state h3{color:#6b6f75;margin:10px 0 4px;font-size:14px}.empty-state p{margin:0;font-size:11px}.history-card{overflow:hidden}.history-row{width:100%;border-bottom:1px solid var(--line);background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding-right:18px}.history-row:last-child{border-bottom:0}.history-row:hover{background:#fbfbfc}.history-open{min-width:0;border:0;background:transparent;display:grid;grid-template-columns:54px minmax(180px,1fr) 210px 80px 30px;gap:15px;align-items:center;padding:17px 12px 17px 22px;text-align:left}.history-open:focus-visible{outline:2px solid #ff5a2460;outline-offset:-3px}.history-id{color:var(--orange);font-weight:800;font-size:12px}.history-title strong,.history-title span{display:block}.history-title strong{font-size:13px}.history-title span{color:#999ca2;font-size:10px;margin-top:5px}.history-config{display:flex;gap:8px}.history-config span{display:block;background:#f2f3f4;padding:5px 7px;border-radius:4px;font-size:10px;color:#73777d}.arrow{color:#aaa}.history-actions{min-width:54px;display:flex;justify-content:flex-end}.delete-icon{border:0;background:transparent;color:#a34a3c;padding:8px;font-size:11px}.delete-icon:hover:not(:disabled){color:#c52f1a;text-decoration:underline}.delete-icon:disabled{color:#b9bbc0;cursor:not-allowed}.delete-confirm,.remove-confirm{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#6f737a;font-size:10px}.delete-confirm button,.remove-confirm button{border:1px solid #dcdde0;border-radius:5px;background:#fff;padding:5px 7px;color:#62666d;font-size:10px}.delete-confirm .confirm-danger,.remove-confirm .confirm-danger{border-color:#efb8af;background:#fff0ed;color:#ae3321}.library-count{display:flex;align-items:baseline;gap:7px;padding:10px 14px;border:1px solid #e0e1e4;border-radius:9px;background:#fff}.library-count strong{color:var(--orange);font-size:20px}.library-count span{color:#777b82;font-size:11px}.reference-list{display:grid;gap:9px}.reference-card{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff}.reference-card.expanded{border-color:#d7d9dd}.reference-main{display:grid;grid-template-columns:32px minmax(220px,430px) minmax(260px,1fr) 116px;gap:14px;align-items:center;padding:15px 18px}.reference-toggle{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 22px;gap:10px;align-items:center;padding:5px 0;border:0;border-radius:7px;background:transparent;text-align:left}.reference-toggle:focus-visible{outline:2px solid #ff5a2460;outline-offset:4px}.reference-info{min-width:0}.reference-info h2{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.reference-info p{margin:5px 0 9px;color:#686d75;font-size:10px}.reference-info time{display:block;margin-top:8px;color:#777c84;font-size:9px}.summary-saved{color:#1e7750!important}.reference-actions{display:grid;gap:7px;justify-items:stretch;text-align:center}.reference-actions .text-link{font-size:10px}.review-toggle{background:#30343a!important}.remove-confirm{flex-wrap:wrap;justify-content:center}.remove-confirm span{width:100%}.reference-detail{padding:18px 24px 24px 64px;border-top:1px solid var(--line);background:#fbfbfc}.snapshot-note{display:flex;align-items:center;gap:9px;margin-bottom:13px;color:#73777f;font-size:10px}.snapshot-note strong{padding:4px 7px;border-radius:5px;background:#eaf8f0;color:#187047}.reference-detail .review-panel{margin-top:18px}.reference-empty{min-height:310px}.settings-card{padding:26px}.setting-block{display:grid;grid-template-columns:260px 1fr;gap:36px;align-items:start}.setting-block h2{margin:0 0 7px;font-size:16px}.setting-block>div:first-child>p{color:var(--muted);font-size:11px;line-height:1.6;margin:0}.divider{height:1px;background:var(--line);margin:27px 0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.ai-settings{align-items:start}.ai-settings>.danger-text{grid-column:2;justify-self:start;margin-top:14px}.settings-footer{display:flex;justify-content:flex-end;padding-top:28px;margin-top:28px;border-top:1px solid var(--line)}.error-box{color:#a62f28;background:#fff0ee;border:1px solid #ffd2cc;border-radius:7px;padding:10px 12px;font-size:11px;white-space:pre-wrap}.toast{position:fixed;right:28px;bottom:25px;max-width:520px;z-index:20;padding:13px 17px;border-radius:9px;box-shadow:0 12px 35px #0003;color:#fff;font-size:12px}.toast.ok{background:#207651}.toast.error{background:#a93b2c}.boot{min-height:100vh;display:grid;place-items:center;align-content:center;gap:15px;color:#777}.loader{width:28px;height:28px;border:3px solid #ddd;border-top-color:var(--orange);border-radius:50%;animation:spin .8s linear infinite}.boot p{font-size:12px}@keyframes spin{to{transform:rotate(360deg)}}.event-list{margin-top:10px;display:grid;gap:5px}.event-list p{margin:0;padding:8px 10px;border-radius:6px;font-size:10px}.event-warning{color:#805515;background:#fff7e6}.event-error{color:#a62f28;background:#fff0ee}.event-info{color:#35637c;background:#edf7fb}.event-history{margin-top:10px;color:#777d85;font-size:11px}.event-history summary{cursor:pointer;-webkit-user-select:none;user-select:none}.event-history[open] summary{color:#4d535b}.review-panel{margin-top:15px}.review-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.review-heading strong{font-size:13px}.review-heading span{color:#92969c;font-size:10px}.review-list{display:grid;gap:8px;max-height:360px;overflow:auto;padding-right:4px}.review-item{background:#fff;border:1px solid #e6e7ea;border-radius:8px;padding:11px 13px}.review-meta{display:flex;gap:12px;align-items:center;color:#969aa1;font-size:10px}.review-meta strong{color:#555a61}.review-meta time{margin-left:auto}.review-item>p{margin:8px 0 0;color:#44484e;font-size:11px;line-height:1.65}.append-review{margin-top:9px;padding-top:9px;border-top:1px dashed #e0e1e4;display:grid;grid-template-columns:auto 1fr auto;gap:8px;color:#5b6067;font-size:11px;line-height:1.6}.append-review b{color:var(--orange-dark)}.append-review time{color:#9a9da3;font-size:10px}@media(max-width:1250px){.form-grid{grid-template-columns:2fr 1fr 1fr}.field-wide{grid-column:span 3}.setting-block{grid-template-columns:210px 1fr}.product-main{grid-template-columns:28px minmax(130px,230px) minmax(220px,1fr) 96px;gap:10px}.reference-main{grid-template-columns:28px minmax(160px,280px) minmax(220px,1fr) 106px;gap:10px}.thumb{width:44px;flex-basis:44px;height:58px}.product-detail,.reference-detail{padding-left:58px}.history-open{grid-template-columns:48px minmax(140px,1fr) 150px 76px 22px;gap:10px}}.summary-head strong{font-size:13px}@media(prefers-reduced-motion:reduce){.chevron,.button,.progress-track i{transition:none}}.share-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.share-state{padding:6px 9px;border-radius:6px;background:#eaf8f0;color:#187047;font-size:10px;font-weight:700}.share-state.stale{background:#fff4d6;color:#8a5b08}.shared-shell .main-panel{min-height:100vh}.shared-nav{cursor:default}.shared-readonly{color:#d6d9df!important;font-weight:700;letter-spacing:.08em}.library-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.share-published{display:grid;justify-items:end;gap:3px}.share-published strong{color:#187047;font-size:11px}.share-published span{color:#878b92;font-size:9px}.share-error{min-height:55vh;display:grid;place-items:center;align-content:center;text-align:center}.share-error>span{color:#a7abb1;font-size:42px}.share-error h1{margin:14px 0 7px;font-size:24px}.share-error p{margin:0;color:#767b83;font-size:13px}@media(max-width:900px){.app-shell.shared-shell{display:block}.shared-shell .sidebar{position:relative;width:100%;height:auto;padding:16px 20px;flex-direction:row;align-items:center}.shared-shell .brand{padding:0;border:0}.shared-shell nav{margin-left:auto;padding:0}.shared-shell .nav-button{height:40px}.shared-shell .sidebar-bottom{display:none}.shared-shell .main-panel{padding:28px 18px 60px}.reference-main{grid-template-columns:28px minmax(130px,230px) minmax(220px,1fr)}.reference-actions{grid-column:2 / -1;display:flex;justify-content:flex-end}}
