/* Bee Logic V2.4 — permanent refinement, not a temporary presentation skin.
   All styles scoped to main application chrome and new pickers; generated section iframes are untouched. */
:root{--cm-gold:#f5c400;--cm-glow:rgba(245,196,0,.12)}
.brand-bee-icon{overflow:hidden;padding:0!important;display:block;flex:0 0 auto;border:1px solid rgba(245,196,0,.55);background:#f5c400;box-shadow:0 0 0 3px #f5c40012,0 0 21px #f5c40026}
.brand-bee-icon img{display:block;width:100%;height:100%;object-fit:cover}
.brand-bee-icon.large{width:62px;height:62px;border-radius:15px;margin-bottom:20px}
.bee-header-identity{display:flex;align-items:center;gap:9px;padding:6px 10px 6px 6px;border:1px solid #384354;border-radius:10px;background:linear-gradient(120deg,#26313f,#17202b);box-shadow:inset 0 1px 0 #ffffff0d,0 0 17px #f5c40010;color:#f4f7fb}
.bee-header-identity img{height:35px;width:35px;object-fit:cover;border:1px solid #e9bc34;border-radius:8px;box-shadow:0 0 14px #f5c40035}
.bee-header-identity span{font-size:11px;font-weight:850;letter-spacing:.08px;line-height:1.15}
.bee-header-identity small{display:block;font-size:9px;color:#a5b2c0;font-weight:600;margin-top:3px}
/* A restrained illuminated edge for actionable toolbar tiles */
.section-quickbar button{position:relative;isolation:isolate;background:linear-gradient(155deg,#283240,#1b2430 70%,#151c25);border-color:#414e60;box-shadow:inset 0 1px 0 #ffffff0b,0 0 0 1px #00000016,0 7px 18px #0000001f}
.section-quickbar button::after{content:"";position:absolute;inset:auto 15% -1px;height:1px;background:linear-gradient(90deg,transparent,#e1be4a4f,transparent);pointer-events:none}
.section-quickbar button span{color:#bdc8d5}
.section-quickbar button:hover,.section-quickbar button:focus-visible{border-color:#dec063;background:linear-gradient(160deg,#333c47,#232a32);box-shadow:0 0 0 1px #f5c40022,0 0 24px #f5c4001a,inset 0 1px 0 #ffffff1b;transform:translateY(-1px)}
.section-quickbar .commerce-action{color:#fbe09b;border-color:#726037;background:linear-gradient(155deg,#393425,#211e1d 82%);box-shadow:inset 0 1px 0 #fff2a91c,0 0 18px #f5c4001b}
.section-quickbar .commerce-action span{color:#f7e1a3}
.section-quickbar .commerce-action:hover{border-color:#f2d063;box-shadow:0 0 25px #f5c40030,inset 0 1px 0 #ffffff24}
.nav-btn.selected,.section-item.active{box-shadow:inset 3px 0 #f5c400,0 0 23px #f5c40010}
.output-tools .segmented{box-shadow:0 0 16px #f5c4000b}
.segmented button.selected{border:1px solid #645833;background:linear-gradient(145deg,#3b3c32,#28303b);box-shadow:0 0 19px #f5c40014;color:#ffe39c}
.editor-pane:before,.output-pane:before{background:linear-gradient(90deg,transparent,#e6c55792,transparent)}
/* Exact selected resource chips, kept separate from legacy image/video/CSV chips */
.commerce-selected{padding:8px 0 15px}
.cm-attached-header{font-size:10px;color:#e4c971;font-weight:800;letter-spacing:1.1px;display:flex;justify-content:space-between;gap:9px;margin-bottom:9px}
.cm-attached-header small{font-size:9px;color:#a7b7c5;font-weight:650;letter-spacing:0}
.cm-attached-pills{display:flex;flex-wrap:wrap;gap:6px}
.cm-asset-pill{display:flex;align-items:center;gap:5px;min-width:0;max-width:100%;padding:5px 5px 5px 9px;border:1px solid #606041;background:#282f36;border-radius:7px;color:#f4e8be;font-size:10px}
.cm-asset-pill span{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-asset-pill button{border:0;border-radius:5px;background:#39434f;color:#fff;padding:1px 6px;font-size:14px}
.cm-asset-link{border-color:#3b5667;background:#1c2d3b;color:#d6ebf6}
.cm-attached-hint{margin:8px 0 0;font-size:9px;color:#98a7b5;line-height:1.5}
/* The selector dialogs are darker than the primary chrome and focus on the content. */
.commerce-modal{border:1px solid #465365;border-radius:18px;padding:0;width:min(950px,calc(100vw - 30px));max-height:min(91vh,1000px);overflow:hidden;background:linear-gradient(156deg,#1c2734,#111923 85%);color:#eaf0f7;box-shadow:0 35px 105px #000b,0 0 42px #f5c40019}
.commerce-modal::backdrop{background:#02050ad9;backdrop-filter:blur(7px)}
.cm-layout{display:flex;flex-direction:column;max-height:min(91vh,1000px);min-height:380px}
.cm-header{display:flex;justify-content:space-between;gap:15px;align-items:start;border-bottom:1px solid #3a4553;padding:22px 25px 17px;background:radial-gradient(ellipse at 100% 0%,rgba(245,196,0,.085),transparent 55%),#1c2530}
.cm-header h2{margin:4px 0 7px;font-size:23px;line-height:1.2;letter-spacing:-.55px;color:#fff}
.cm-header p:not(.cm-eyebrow){font-size:11px;color:#adbac9;line-height:1.6;max-width:730px;margin:0}
.cm-eyebrow{font-size:9px;font-weight:850;letter-spacing:1.6px;color:#e9c75c;margin:0}
.cm-close{width:31px;height:31px;flex-shrink:0;border:1px solid #495665;border-radius:8px;background:#263241;color:#e6eefa;font-size:22px;display:grid;place-items:center;line-height:1}
.cm-close:hover{border-color:#f5c400;color:#fff7d4}
.cm-tabs{display:flex;gap:8px;padding:14px 24px 9px;flex-wrap:wrap}
.cm-tabs button{font-size:11px;font-weight:780;color:#b9c5d2;background:#202c39;border:1px solid #3b4b5f;padding:10px 14px;border-radius:9px;box-shadow:0 3px 10px #0002}
.cm-tabs button:hover{border-color:#baa45c;color:#ffefbf;box-shadow:0 0 14px #f5c40016}
.cm-tabs button.active{color:#ffe28b;border-color:#ad943b;background:linear-gradient(155deg,#353522,#262c32);box-shadow:inset 0 1px #f4e6ac25,0 0 20px #f5c40019}
.cm-searchbar{padding:7px 24px 14px;display:flex;flex-direction:column;gap:7px}
.cm-searchbar label,.cm-custom label{font-size:10px;font-weight:800;color:#e1e8f0}
.cm-searchbar input,.cm-custom input,.cm-picked-url input,.cm-inline input{font-size:11px;color:#edf4fc;background:#0e151d;border:1px solid #455467;padding:10px 12px;min-height:36px;border-radius:8px;outline:none}
.cm-searchbar input:focus,.cm-custom input:focus,.cm-picked-url input:focus{border-color:#e7c356;box-shadow:0 0 0 3px #f5c40012}
.cm-searchbar input::placeholder,.cm-custom input::placeholder,.cm-picked-url input::placeholder{color:#7e8d9d}
.cm-results{overflow:auto;min-height:190px;max-height:425px;padding:4px 24px 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-content:start}
.cm-product,.cm-url-result{position:relative;display:flex;align-items:center;gap:11px;background:linear-gradient(135deg,#242e3b,#1a2430);border:1px solid #3b4858;border-radius:11px;padding:10px;text-align:left;color:#ecf2fa;min-height:88px;width:100%;transition:border-color .17s,background .17s,box-shadow .17s}
.cm-product:hover,.cm-url-result:hover{border-color:#b49a46;background:#2e3642;box-shadow:0 0 22px #f5c40011}
.cm-product.is-picked,.cm-url-result.is-picked{border-color:#e3bd44;box-shadow:inset 0 0 0 1px #e9c1456b,0 0 17px #f5c4000d;background:linear-gradient(130deg,#303326,#232a31)}
.cm-check{flex:0 0 24px;display:grid;place-items:center;width:24px;height:24px;border:1px solid #68778a;border-radius:7px;color:#aebbc9;font-size:14px;font-weight:800}
.is-picked>.cm-check{background:#f5c400;color:#181b1e;border-color:#f5c400}
.cm-product-photo{width:72px;height:72px;flex:0 0 72px;background:#fff;border-radius:7px;overflow:hidden;display:grid;place-items:center}
.cm-product-photo img{width:100%;height:100%;object-fit:contain;padding:4px}
.cm-product-photo span{color:#6b7683;font-size:9px}
.cm-product-copy,.cm-url-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.cm-product-copy strong,.cm-url-copy strong{font-size:11px;line-height:1.4;color:#edf1f6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cm-product-copy small,.cm-url-copy small{color:#9fafc2;font-size:9px;line-height:1.4;overflow-wrap:anywhere}
.cm-product-copy .cm-price{color:#f2d16d;font-weight:800;font-size:10px}
.cm-url-results{grid-template-columns:1fr;max-height:270px}
.cm-url-result{min-height:58px}
.cm-url-result .cm-url-copy{flex:1}
.cm-type{font-size:9px;color:#dbbc61;border:1px solid #77683e;padding:4px 7px;border-radius:6px;white-space:nowrap}
.cm-loading,.cm-empty{grid-column:1/-1;text-align:center;padding:38px 18px;color:#a9b8c8;font-size:11px}
.cm-custom{display:flex;flex-direction:column;gap:8px;padding:10px 24px 14px;border-top:1px solid #343e4c}
.cm-custom>div{display:flex;gap:8px}
.cm-custom input{flex:1;min-width:0}
.cm-selected-list{padding:8px 24px 12px;min-height:55px;overflow:auto;max-height:200px;border-top:1px solid #35404e}
.cm-selected-list>strong{font-size:10px;letter-spacing:.7px;color:#e6d189}
.cm-picked-url{display:flex;align-items:center;gap:10px;border-bottom:1px solid #35414e;padding:9px 0}
.cm-picked-url>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.cm-picked-url strong{font-size:10px;color:#ebf0f7}
.cm-picked-url small{font-size:9px;color:#9bacc0;overflow-wrap:anywhere}
.cm-picked-url label{font-size:9px;display:flex;flex-direction:column;gap:3px;color:#b8c8d8;flex:0 0 180px}
.cm-picked-url input{width:100%;min-height:30px;padding:6px}
.cm-picked-url>button{border:1px solid #48586b;background:#24313f;color:#fff;font-size:17px;border-radius:6px;width:26px;height:26px}
.cm-empty-small{font-size:10px;color:#8999ab;display:block;margin-top:9px}
.cm-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #3c4858;background:#17202b;padding:14px 24px 17px;flex-wrap:wrap}
.cm-footer strong{font-size:11px;color:#ffe28b}
.cm-footer>div:first-child{display:flex;flex-direction:column;gap:7px}
.cm-footer-actions{display:flex;gap:9px;flex-wrap:wrap}
.cm-footer-actions .button{min-height:38px}
.cm-inline{font-size:9px;color:#9eafbe;display:flex;align-items:center;gap:7px}
.cm-inline input{height:28px;min-height:28px;width:205px;padding:4px 8px}
@media(max-width:1150px){.bee-header-identity{display:none}.cm-results{grid-template-columns:1fr}}
@media(max-width:680px){.commerce-modal{width:calc(100vw - 12px);max-height:96vh;border-radius:11px}.cm-layout{max-height:96vh}.cm-header{padding:16px}.cm-header h2{font-size:18px}.cm-results{padding:4px 14px 12px}.cm-tabs,.cm-searchbar,.cm-custom,.cm-selected-list,.cm-footer{padding-left:14px;padding-right:14px}.cm-tabs button{padding:8px}.cm-product-photo{width:55px;height:55px;flex-basis:55px}.cm-product{min-height:72px}.cm-picked-url{flex-wrap:wrap}.cm-picked-url label{flex:1 1 100%}.cm-footer-actions{width:100%}.cm-footer-actions .button{flex:1;font-size:10px}.cm-header p:not(.cm-eyebrow){font-size:10px}}
@media(prefers-reduced-motion:reduce){.cm-product,.cm-url-result,.cm-tabs button,.section-quickbar button{transition:none!important}}

/* V2.5: explicit product usage, no automatic fixed showcase in reference mode. */
.cm-picker-guidance{margin:9px 18px 0;border:1px solid rgba(245,196,0,.24);border-radius:12px;background:linear-gradient(115deg,rgba(245,196,0,.085),rgba(245,196,0,.015));padding:11px 14px;color:#d7dee9;font-size:12px;line-height:1.5}
.cm-picker-guidance strong{color:#f5cf54;font-size:12px}
.cm-picker-guidance p{margin:3px 0 0;color:#abb6c6}
.cm-usage-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border-radius:10px;border:1px solid rgba(245,196,0,.22);background:rgba(245,196,0,.055);color:#d7dde7;font-size:11px;line-height:1.45}
.cm-usage-status b{color:#f9d86a;white-space:nowrap}
.cm-usage-status span{flex:1;min-width:180px}
.cm-remove-fixed{color:#f3ca65;background:transparent;border:1px solid rgba(245,196,0,.3);border-radius:6px;padding:5px 9px;font:inherit;font-weight:750;cursor:pointer}
.cm-remove-fixed:hover{background:rgba(245,196,0,.1)}
@media(max-width:600px){.cm-picker-guidance{margin:7px 10px 0}.cm-usage-status span{min-width:130px}}
