.legacy-materials{display:grid;grid-template-columns:1fr 1fr;gap:10px}.legacy-materials section{display:flex;flex-direction:column;gap:5px;min-width:0}.legacy-materials img{width:100%;height:105px;object-fit:contain}.legacy-materials small{font-size:11px;overflow-wrap:anywhere}.legacy-shot-brief{padding:10px;font-size:12px}.legacy-shot-brief p{margin:6px 0;line-height:1.5}.legacy-thumbs{display:flex;gap:5px}.legacy-thumbs img{height:45px;width:45px;object-fit:contain}.legacy-editor{width:min(540px,90vw);max-height:85vh;overflow:auto;border:1px solid #b6d8d8;border-radius:16px;padding:24px;background:var(--panel,#fff);color:var(--text,#163441)}.legacy-editor::backdrop{background:#102a4355}.legacy-editor label{display:block;margin:12px 0}.legacy-editor input:not([type=checkbox]),.legacy-editor textarea,.legacy-editor select{display:block;box-sizing:border-box;width:100%;padding:9px;border:1px solid #bbd1df;border-radius:6px;background:var(--panel,#fff);color:inherit}.legacy-editor .legacy-ref-option{display:inline-flex;gap:6px;align-items:center;margin-right:12px}.legacy-ref-option img{width:42px;height:42px;object-fit:contain}.legacy-editor footer{display:flex;justify-content:flex-end;gap:12px}.legacy-editor button{padding:8px 16px;cursor:pointer}.legacy-editor p{font-size:13px;line-height:1.6}.legacy-error{color:#b62032}
.legacy-copy-editor{box-sizing:border-box;width:min(500px,94vw);max-height:92vh;padding:0;overflow:hidden;border-color:#b8d4ed;box-shadow:0 16px 64px #102a4333;background:var(--panel,#f8fcff);font:14px/1.6 system-ui,sans-serif}.legacy-copy-editor form{display:flex;flex-direction:column;max-height:90vh;margin:0}.legacy-copy-editor header{display:flex;align-items:center;justify-content:space-between;padding:22px 26px 0}.legacy-copy-editor h3{margin:0;font-size:21px}.legacy-copy-editor header button{border:1px solid #bed5ee;border-radius:9px;font-size:24px;line-height:1;padding:8px 12px;background:transparent;color:inherit}.legacy-copy-editor form>p{margin:12px 26px}.legacy-copy-editor .le-scroll{overflow:auto;padding:0 26px 16px;min-height:0}.legacy-copy-editor section{padding:3px 0 16px}.legacy-copy-editor h4{font-size:18px;margin:16px 0}.legacy-copy-editor h4:before{content:'';display:inline-block;width:4px;height:18px;border-radius:3px;background:#19b9c4;margin-right:12px;vertical-align:-2px}.legacy-copy-editor .le-muted{color:var(--muted,#6583a6);font-size:13px}.legacy-copy-editor label{font-size:14px}.legacy-copy-editor input:not([type=checkbox]),.legacy-copy-editor textarea,.legacy-copy-editor select{padding:11px 12px;line-height:1.6;font:inherit;border-color:#bad3ed;border-radius:8px;outline:none}.legacy-copy-editor input:focus,.legacy-copy-editor textarea:focus,.legacy-copy-editor select:focus{border-color:#22b9c2;box-shadow:0 0 0 2px #22b9c218}.legacy-copy-editor textarea{resize:vertical;min-height:96px}.legacy-copy-editor button{font:inherit;border:1px solid #b8d4ed;border-radius:8px;background:var(--panel,#fff);color:inherit;padding:7px 12px}.legacy-copy-editor button:disabled{opacity:.55;cursor:default}.legacy-copy-editor .le-copy-row{position:relative;padding-top:20px}.legacy-copy-editor .le-copy-row>button[data-rewrite]{position:absolute;right:0;top:0;border-color:#6bc5ca;color:#087c87;background:#26c8c710;font-size:13px}.legacy-copy-editor .le-field>span{display:block;margin-bottom:8px}.legacy-copy-editor .le-layout{display:grid;grid-template-columns:1fr 1fr 74px;align-items:end;gap:12px}.legacy-copy-editor .le-layout-preview{height:78px;border:1px solid #b8d4ed;border-radius:8px;position:relative;margin-bottom:12px;background:linear-gradient(#badedc,#badedc) center/24px 34px no-repeat}.le-layout-preview span{position:absolute;font-size:10px;top:3px;left:25px}.le-layout-preview[data-direction=vertical] span{writing-mode:vertical-rl}.le-layout-preview[data-position=left] span{top:16px;left:3px}.le-layout-preview[data-position=right] span{top:16px;right:3px;left:auto}.le-layout-preview[data-position=bottom] span{top:auto;bottom:2px}.legacy-copy-editor .le-check{display:flex;gap:8px;align-items:center}.legacy-copy-editor .le-tools{display:flex;gap:8px;flex-wrap:wrap}.legacy-copy-editor .le-tools button{font-size:12px}.legacy-copy-editor [data-status]{font-size:13px;color:var(--muted,#557a99)}.legacy-copy-editor [data-candidate]{padding:12px;border:1px solid #8eced2;border-radius:8px}.legacy-copy-editor [data-candidate] pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-height:160px;overflow:auto}.legacy-copy-editor .le-assets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.legacy-copy-editor .legacy-ref-option{margin:0;padding:10px;border:1px solid #c9dce9;border-radius:9px;display:flex;flex-wrap:wrap;font-size:12px}.legacy-copy-editor .legacy-ref-option img{height:55px;width:55px}.legacy-copy-editor footer{padding:16px 26px;align-items:center;border-top:1px solid #d7e4ed;flex-shrink:0}.legacy-copy-editor footer span{margin-right:auto;color:var(--muted,#6583a6);font-size:12px}.legacy-copy-editor [data-save]{background:#11b9c5;color:white;border-color:#11b9c5}.legacy-copy-editor [hidden]{display:none!important}@media(max-width:560px){.legacy-copy-editor .le-assets{grid-template-columns:repeat(2,minmax(0,1fr))}.legacy-copy-editor footer{padding:12px 16px;gap:8px}.legacy-copy-editor footer span{display:none}.legacy-copy-editor .le-scroll{padding:0 16px 12px}.legacy-copy-editor .le-layout{gap:8px;grid-template-columns:1fr 1fr 60px}}
.legacy-shot-card .legacy-shot-brief{padding:9px 0 0}.legacy-shot-media{position:relative}.legacy-preview-label{position:absolute;top:8px;right:8px;padding:3px 6px!important;border:0!important;border-radius:4px;background:#526a8abb!important;color:#fff!important;font-size:10px!important;cursor:pointer;z-index:3}.legacy-shot-card .legacy-copy-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:13px;line-height:1.5;color:var(--text,#172b4d)}.legacy-shot-card .legacy-copy-body{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line;font-size:12px;line-height:1.65;color:var(--muted,#6983a2);margin:6px 0 9px}.legacy-shot-card .legacy-copy-hint{font-size:11px;line-height:1.5;color:var(--muted,#6983a2);margin:5px 0 9px}.legacy-material-detail{position:relative;margin:10px 0 12px;border-radius:6px;background:#569de510;color:var(--muted,#527397)}.legacy-material-detail summary{cursor:pointer;font-size:11px;padding:8px 10px;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.legacy-material-detail summary::-webkit-details-marker{display:none}.legacy-material-detail[open] .legacy-thumbs{position:absolute;z-index:8;left:0;right:0;top:100%;padding:10px;flex-wrap:wrap;max-height:128px;overflow:auto;background:var(--panel,#fff);box-shadow:0 8px 20px #16334d22;border:1px solid #d7e6ed;border-radius:8px}.legacy-material-detail figure{margin:0;width:64px;display:flex;flex-direction:column;align-items:center;gap:3px}.legacy-material-detail figcaption{font-size:10px;line-height:1.3;text-align:center}.legacy-shot-actions{display:grid;grid-template-columns:1fr 1.3fr .85fr;gap:6px;margin:0 0 4px}.legacy-shot-actions>button{width:100%;min-width:0;min-height:40px;white-space:nowrap;padding:7px 4px!important;border:1px solid #1689ff!important;color:#087aff!important;background:transparent!important;border-radius:9px!important;font-size:11px!important;cursor:pointer}.legacy-shot-actions>button.primary{background:linear-gradient(110deg,#19d5da,#b8f990)!important;border-color:#75e3c4!important;color:#103b35!important;font-weight:700;box-shadow:0 2px 5px #13bca122}.legacy-shot-actions>button:disabled{opacity:.48;cursor:default}
/* Compact package settings: common controls stay visible; long facts open locally. */
.legacy-package-panel{font-size:12px;line-height:1.45;max-height:650px;overflow:auto;scrollbar-width:thin;padding:0 3px 3px 0;box-sizing:border-box}
.legacy-package-panel label{display:block;margin:0;min-width:0;color:inherit;font-size:11px}
.legacy-package-panel input,.legacy-package-panel select,.legacy-package-panel textarea{display:block;width:100%;box-sizing:border-box;min-width:0;margin-top:4px;padding:6px 8px;border:1px solid #bdd5e5;border-radius:7px;background:var(--panel,#fff);color:inherit;font:12px/1.4 system-ui,sans-serif;outline:none}
.legacy-package-panel input,.legacy-package-panel select{height:32px}.legacy-package-panel textarea{resize:none;height:48px}.legacy-package-panel input:focus,.legacy-package-panel textarea:focus,.legacy-package-panel select:focus{border-color:#17b8bc;box-shadow:0 0 0 2px #17b8bc16}.legacy-package-panel :disabled{opacity:.55}
.legacy-product-row{display:flex;align-items:end;gap:10px;margin-bottom:4px}.legacy-product-row>label{flex:1}.legacy-product-more{position:relative;flex-shrink:0;font-size:11px}.legacy-product-more>summary{list-style:none;cursor:pointer;border:1px solid #bed5e4;border-radius:7px;padding:8px;color:var(--muted,#65819d)}.legacy-product-more>summary::after{content:' ▾'}.legacy-product-more[open]>summary::after{content:' ▴'}.legacy-product-fields{position:absolute;z-index:20;right:0;top:38px;width:320px;max-width:76vw;max-height:255px;overflow:auto;padding:12px;box-sizing:border-box;border:1px solid #bcd4e4;border-radius:10px;background:var(--panel,#fff);box-shadow:0 8px 28px #193b5430}.legacy-product-fields>label+label{margin-top:10px}.legacy-product-fields textarea{height:66px}.legacy-product-guidance{display:flex;align-items:flex-start;gap:5px;margin:0 0 7px;font-size:10px;line-height:1.45;color:var(--muted,#6983a2)}.legacy-product-guidance i{width:6px;height:6px;margin-top:4px;border-radius:50%;flex:0 0 auto;background:#5f7892}.legacy-product-guidance.is-active i{border:1px solid #2ed7df;border-top-color:transparent;background:transparent;animation:legacy-spin .8s linear infinite}.legacy-product-guidance.is-warning{color:#c08a28}.legacy-product-guidance.is-warning i{background:#dca23b}.legacy-product-guidance.is-ready{color:#35a982}.legacy-product-guidance.is-ready i{background:#35c995}.legacy-product-guidance.is-confirm i{background:#32b9c4}
@keyframes legacy-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.legacy-product-guidance.is-active i{animation:none;border-top-color:#2ed7df}}
.legacy-section-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;margin:10px 0 6px}.legacy-section-label small{font-size:10px;font-weight:400;color:var(--muted,#6983a2)}
.legacy-package-panel .ecom-package-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}.legacy-package-panel .ecom-package{padding:9px 8px!important;min-height:39px!important;text-align:left;min-width:0;border-radius:8px}.legacy-package-panel .ecom-package b{display:block;font-size:11px!important;line-height:1.5!important}.legacy-package-panel .ecom-package:not(.is-on){background:var(--panel,#f6faff)!important;border-color:#cbdde8!important;color:inherit!important}.legacy-package-panel .ecom-package.is-on{background:#21c7c516!important;border-color:#10b9bb!important;color:#049b9d!important}
.legacy-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px}.legacy-settings-grid>label:last-child:nth-child(odd){grid-column:1/-1}.legacy-package-actions{margin-top:10px}.legacy-package-panel .node-actions{margin:6px 0!important;gap:6px}.legacy-package-panel .node-actions button{min-height:30px;padding:6px 8px!important;font-size:11px!important;border-radius:7px}.legacy-package-panel .textline{font-size:10px!important;line-height:1.5!important;margin:5px 0!important}.legacy-settings-notice{margin-top:8px;padding:7px;border-radius:7px;background:#f1b33b16}.legacy-settings-notice button{font-size:11px;width:100%;padding:5px!important;border:1px solid #d4b673;border-radius:6px;background:var(--panel,#fff);color:inherit}.legacy-settings-notice small{display:block;font-size:10px;line-height:1.4;margin-top:4px;color:var(--muted,#6983a2)}.legacy-settings-note{font-size:11px;color:var(--muted,#6983a2);margin:6px 0}
.legacy-style-row{display:flex;align-items:center;justify-content:space-between;gap:8px;height:32px;margin-top:6px;font-size:11px}.legacy-style-row>span{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}.legacy-style-row img{width:26px;height:26px;object-fit:cover;border-radius:4px}.legacy-style-row small{font-size:10px;color:var(--muted,#6983a2)}.legacy-style-row button{font-size:11px!important;padding:5px 8px!important;min-height:28px;white-space:nowrap;border:1px solid #8dbad9;border-radius:7px;background:transparent;color:inherit}
.legacy-utility-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.legacy-utility-grid button{min-width:0;height:30px;padding:5px!important;font-size:11px!important;white-space:nowrap;border:1px solid #7aade0;border-radius:7px;background:transparent;color:var(--text,inherit)}.legacy-utility-grid button:disabled{opacity:.45;cursor:default}
.legacy-style-current{display:flex;align-items:center;gap:12px;padding:10px;min-height:60px;background:#739db310;border-radius:8px}.legacy-style-current img{height:80px;width:80px;object-fit:contain}.legacy-style-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.legacy-style-candidates{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-height:220px;overflow:auto;padding:8px 0}.legacy-style-candidates button{padding:4px;border:1px solid #bdd3e0;border-radius:6px;background:transparent}.legacy-style-candidates img{width:100%;height:70px;object-fit:contain}
.legacy-result-view{box-sizing:border-box;width:min(980px,94vw);padding:18px;overflow:hidden}.legacy-result-view form{display:flex;flex-direction:column;max-height:80vh}.legacy-result-view h3{margin:0}.legacy-result-view form>p{margin:8px 0}.legacy-result-scroll{overflow:auto;min-height:0}.legacy-result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.legacy-result-grid figure{margin:0}.legacy-result-grid button{width:100%;padding:0;border:1px solid #bfd6e3;border-radius:7px;background:transparent;overflow:hidden}.legacy-result-grid img{display:block;width:100%;height:220px;object-fit:contain;background:#739db310}.legacy-result-grid figcaption{padding:5px;text-align:center;font-size:12px}.legacy-result-missing{min-height:140px;display:flex;align-items:center;justify-content:center;background:#739db316;border:1px dashed #9ebdce;color:var(--muted,#6983a2);font-size:13px}.legacy-long-stack{max-width:560px;margin:0 auto}.legacy-long-stack figure{margin:0;padding:0}.legacy-long-stack img{display:block;width:100%;height:auto}.legacy-result-focus img{display:block;max-width:100%;height:auto;margin:10px auto}.legacy-result-view footer{margin-top:12px}.legacy-result-view [hidden]{display:none!important}
/* Per-image editor floats above the canvas without a blocking modal backdrop. */
.legacy-copy-editor{position:fixed;inset:16px 16px auto auto;margin:0;z-index:10020;width:min(500px,calc(100vw - 32px));height:min(920px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);background:var(--wb-panel,#f8fcff);color:var(--wb-text,#163441)}
.legacy-copy-editor form{height:100%;max-height:100%}.legacy-copy-editor header{cursor:move;touch-action:none;user-select:none;flex-shrink:0}.legacy-copy-editor header:focus-visible{outline:2px solid #19b9c4;outline-offset:-3px}.legacy-copy-editor .le-scroll{flex:1;overscroll-behavior:contain}.legacy-copy-editor .le-advanced{padding:12px;border-radius:10px;background:#569de510}.legacy-copy-editor .le-advanced summary{cursor:pointer;font-weight:700}.legacy-copy-editor .le-advanced summary small{display:block;font-weight:400;color:var(--muted,#6583a6)}.legacy-copy-editor .le-advanced output{float:right;color:#079b9c}.legacy-copy-editor input[type=range]{padding:0;accent-color:#09afad;box-shadow:none}.legacy-copy-editor .le-execution-mode{padding:10px;border:1px solid #bad3ed;border-radius:8px}.legacy-copy-editor .legacy-error{max-height:64px;overflow:auto;flex-shrink:0}
.legacy-copy-editor .le-subject-stage{position:relative;max-width:300px;margin:10px auto;border:1px solid #bad3ed;overflow:hidden}.le-subject-stage>span{position:absolute;top:4%;left:5%;font-size:12px;color:#6583a6}.legacy-copy-editor .le-subject-box{position:absolute;border:2px dashed #12b4bc;touch-action:none;cursor:move;box-sizing:border-box}.legacy-copy-editor .le-subject-box img{width:100%;height:100%;object-fit:contain;pointer-events:none;background:repeating-conic-gradient(#ddd 0 25%,transparent 0 50%) 0/12px 12px}.legacy-copy-editor [data-subject-resize]{position:absolute;right:0;bottom:0;padding:2px 7px;cursor:nwse-resize;touch-action:none}.legacy-copy-editor .le-box-numbers{display:grid;grid-template-columns:1fr 1fr;gap:8px}.legacy-copy-editor input[type=color]{height:42px;padding:4px}

/* Image cards follow their content; canvas dimensions are measured by the adapter. */
.node.legacy-image-node{min-height:0!important;height:auto}

.legacy-copy-editor .le-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 58px;gap:8px}.legacy-copy-editor .le-layout select{padding:9px 6px}.legacy-copy-editor .le-layout-preview{height:70px}

/* Dialogs inherit the same live skin tokens as the canvas. */
.legacy-editor{background:var(--wb-card-bg,var(--panel));color:var(--wb-text,var(--ink));border-color:var(--wb-border,var(--line))}
.legacy-editor :is(input:not([type=checkbox]),textarea,select,button){background:var(--wb-input-bg,var(--panel));color:var(--wb-text,var(--ink));border:1px solid var(--wb-border-soft,var(--line))}
.legacy-editor button,.legacy-editor input::file-selector-button{font:inherit;border-radius:8px;cursor:pointer}
.legacy-editor input::file-selector-button{padding:7px 12px;margin-right:10px;background:var(--wb-card-soft,var(--soft));color:var(--wb-text,var(--ink));border:1px solid var(--wb-border-soft,var(--line))}
.legacy-editor :is(input,textarea)::placeholder{color:var(--wb-text-muted,var(--muted));opacity:1}
.legacy-editor button:hover,.legacy-editor input::file-selector-button:hover{background:var(--wb-hover-bg,var(--soft))}
.legacy-editor :is(input,select,textarea,button,summary):focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.legacy-editor input[type=checkbox],.legacy-editor input[type=range]{accent-color:var(--teal)}
.legacy-editor button[data-save]{background:var(--wb-primary-bg);border-color:var(--wb-primary-border);color:var(--wb-primary-text)}
.legacy-editor button:disabled{opacity:.55;cursor:default}
.legacy-copy-editor :is(header button,footer,.le-layout-preview,.legacy-ref-option,[data-candidate],.le-execution-mode,.le-subject-stage){border-color:var(--wb-border-soft,var(--line))}
.legacy-copy-editor :is(header,footer){background:var(--wb-card-bg,var(--panel))}
.legacy-copy-editor :is(.le-muted,[data-status],footer span,.le-advanced summary small,.le-subject-stage>span){color:var(--wb-text-muted,var(--muted))}
.legacy-copy-editor :is(.le-advanced,[data-candidate],.le-execution-mode),.legacy-style-current{background:var(--wb-card-soft,var(--soft))}
.legacy-copy-editor .le-copy-row>button[data-rewrite]{background:var(--wb-hover-bg,var(--soft));color:var(--wb-text,var(--ink));border-color:var(--teal)}
.legacy-copy-editor .le-advanced output{color:var(--wb-text,var(--ink))}
.legacy-copy-editor .le-layout-preview{background:linear-gradient(var(--teal),var(--teal)) center/24px 34px no-repeat}
.legacy-style-editor p{color:var(--wb-text-muted,var(--muted))}
body[data-wb-theme=dark] .legacy-editor .legacy-error{color:#fda4af}
.legacy-image-node>.node-head .node-title{padding-right:80px}
.legacy-image-node>.node-head .legacy-shot-ratio{position:absolute;right:35px;top:10px;max-width:90px;box-sizing:border-box;padding:2px 5px;border:1px solid var(--wb-border-soft,var(--line));border-radius:5px;background:var(--wb-card-soft,var(--soft));color:var(--wb-text-muted,var(--muted));font-size:10px;font-weight:500;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:auto}
.legacy-image-node>.node-head .legacy-shot-ratio[data-ratio-state=mismatch]{max-width:118px;border-color:#e0a329;background:#fff6dc;color:#8a5a00;font-weight:700}
.legacy-selected-style{margin:7px 0;padding:6px 8px;border:1px solid var(--wb-border-soft,var(--line));border-radius:7px;background:var(--wb-card-soft,var(--soft));color:var(--wb-text-muted,var(--muted));font-size:10px;line-height:1.45}.legacy-selected-style b{color:var(--wb-text,var(--ink));font-weight:700}.legacy-selected-style[data-selected-style-state=pending],.legacy-selected-style[data-selected-style-state=invalid]{border-color:#d4b673;background:#f1b33b16;color:#8a5a00}
.legacy-style-status{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0;padding:7px 8px;border:1px solid var(--wb-border-soft,var(--line));border-radius:7px;background:var(--wb-card-soft,var(--soft));color:var(--wb-text-muted,var(--muted));font-size:11px;line-height:1.5}
.legacy-style-status small{width:100%;font-size:10px}.legacy-style-status[data-style-state=pending]{color:var(--wb-text,var(--ink))}
.legacy-recognition-summary{display:flex;align-items:center;gap:7px;margin:0 0 7px;font-size:12px;line-height:1.5;color:var(--wb-text,var(--ink))}
.legacy-recognition-progress{display:block;appearance:none;width:100%;height:4px;margin:0 0 12px;border:0;border-radius:8px;overflow:hidden;background:var(--wb-card-soft,var(--soft));color:var(--teal);accent-color:var(--teal)}
.legacy-recognition-progress::-webkit-progress-bar{background:var(--wb-card-soft,var(--soft));border-radius:8px}
.legacy-recognition-progress::-webkit-progress-value{background:var(--teal);border-radius:8px;transition:width .2s ease}
.legacy-recognition-progress::-moz-progress-bar{background:var(--teal);border-radius:8px}
.legacy-recognition-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 13px;width:13px;height:13px;box-sizing:border-box;font-style:normal;font-size:12px;line-height:1;color:var(--wb-text-muted,var(--muted))}
.legacy-recognition-icon.is-active{border:2px solid var(--wb-border-soft,var(--line));border-top-color:var(--teal);border-right-color:var(--teal);border-radius:50%;animation:legacy-recognition-spin .9s linear infinite}
.legacy-recognition-icon.is-done{color:var(--teal);font-weight:700}
.legacy-recognition-icon.is-error{color:var(--wb-text,var(--ink));border:1px solid currentColor;border-radius:50%;font-size:10px}
.legacy-material-image{position:relative;border:1px solid transparent;border-radius:7px;overflow:hidden}
.legacy-material-image img{display:block}
.legacy-materials [data-recognition-state=active] .legacy-material-image{border-color:var(--teal)}
.legacy-materials [data-recognition-state=active] .legacy-material-image::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 2px var(--teal);border-radius:6px;animation:legacy-recognition-breathe 1.8s ease-in-out infinite}
.legacy-materials .legacy-material-status{display:flex;align-items:center;gap:5px;min-height:18px;color:var(--wb-text-muted,var(--muted))}
.legacy-materials [data-recognition-state=active] .legacy-material-status,.legacy-materials [data-recognition-state=error] .legacy-material-status{color:var(--wb-text,var(--ink))}
.legacy-material-error{color:var(--wb-text-muted,var(--muted));line-height:1.4}
@keyframes legacy-recognition-spin{to{transform:rotate(360deg)}}
@keyframes legacy-recognition-breathe{0%,100%{opacity:.18}50%{opacity:.65}}
@media(prefers-reduced-motion:reduce){.legacy-recognition-icon.is-active,.legacy-materials [data-recognition-state=active] .legacy-material-image::after{animation:none}.legacy-recognition-progress::-webkit-progress-value{transition:none}}
.legacy-ai-view-badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:3px 6px;border:1px solid #51cfc7;border-radius:6px;background:#eafaf8;color:#078f8b;font-size:10px;font-weight:700;line-height:1.3;text-align:center}.legacy-materials [data-ai-supplement=true] .legacy-material-image{border-color:#7adbd3}.legacy-materials [data-ai-supplement=true] .legacy-material-image::before{content:"AI";position:absolute;top:5px;right:5px;z-index:2;padding:2px 5px;border-radius:4px;background:#079e9acc;color:#fff;font:700 9px/1.3 system-ui,sans-serif}
body[data-wb-theme=dark] .legacy-ai-view-badge{background:#123a3b;color:#72e8df}

.legacy-materials section[data-main-product="true"]{outline:2px solid #08aaa4;outline-offset:3px;border-radius:10px;background:rgba(8,170,164,.07)}
.legacy-materials section[data-main-product="true"] [data-legacy-action^="main:"]{color:#078b85;border-color:#08aaa4;background:#e7faf7;opacity:1;font-weight:700}
