/* Quiet, always-available brand controls; generous catalog space when requested. */
.brand-toolbar{position:fixed;z-index:6;top:78px;left:24px;display:flex;gap:8px;max-width:calc(100vw - 48px)}
.brand-toolbar button{font:inherit;font-size:12px;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:#fff;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-shadow:0 2px 8px #00000004}
.brand-toolbar button:first-child{background:var(--ink);color:#fff;border-color:var(--ink)}
.brand-toolbar button:last-child{max-width:270px}.brand-toolbar button:hover{filter:brightness(.96)}
#brand-dialog{box-sizing:border-box;width:min(1120px,calc(100vw - 48px));max-width:1120px;max-height:calc(100dvh - 48px);padding:30px 34px 24px;border:1px solid var(--line);border-radius:20px;background:var(--bg);color:var(--ink);overflow:auto;overscroll-behavior:contain}
#brand-dialog[data-mode=match]{max-width:780px}
#brand-dialog::backdrop{background:#29252455;backdrop-filter:blur(5px)}
.brand-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.brand-eyebrow{font-size:10px;font-weight:600;letter-spacing:.14em;color:var(--muted);margin:0 0 6px}.brand-heading h2{font-size:28px;letter-spacing:-.6px;line-height:1.3;margin:0}.brand-heading-actions{display:flex;gap:12px;align-items:center}.brand-close{font:inherit;font-size:24px;line-height:1;min-width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}.brand-intro{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 20px;max-width:780px}
.brand-search-row{display:flex;gap:12px;align-items:center}.brand-search{box-sizing:border-box;flex:1;min-width:0;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:10px;font:inherit;font-size:13px;color:var(--ink)}
#brand-clear{font:inherit;font-size:11px;background:none;border:0;color:var(--muted);padding:12px 0;cursor:pointer;white-space:nowrap;text-underline-offset:3px}#brand-clear:hover{text-decoration:underline;color:var(--ink)}
.brand-selected{display:flex;gap:6px;flex-wrap:wrap;min-height:28px;align-items:center;margin:12px 0 10px;color:var(--muted);font-size:11px}.brand-selected button{font:inherit;font-size:11px;color:var(--ink);background:#e7e5e4;border:1px solid #d6d3d1;padding:5px 8px;border-radius:7px;cursor:pointer}.brand-selected button span{margin-left:5px}
.brand-picker{border:0;padding:0;margin:0;min-width:0}.brand-chips{display:flex;gap:7px;flex-wrap:wrap;max-height:156px;overflow:auto;padding:4px 4px 8px 2px;scrollbar-width:thin;scrollbar-color:#d6d3d1 transparent;align-content:flex-start}.brand-chip{display:flex;align-items:center;gap:6px;position:relative;font-size:11px;line-height:18px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer;user-select:none}.brand-chip input{appearance:none;width:12px;height:12px;margin:0;border:1px solid #a8a29e;border-radius:3px;background:transparent;flex-shrink:0}.brand-chip input:checked{background:var(--ink);border-color:var(--ink)}.brand-chip input:checked:after{content:'✓';display:block;font-size:10px;line-height:10px;color:white;text-align:center}.brand-chip:has(input:checked){border-color:#a8a29e;background:#e7e5e4}.brand-chip small{color:var(--muted);font-size:9px;margin-left:1px}.brand-chip:hover{border-color:#a8a29e}.brand-chip:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}.brand-chip input:focus-visible{outline:none}
.brand-result-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}#brand-count{font-size:13px;font-weight:600;margin:0 0 14px}.brand-count-note{font-size:10px;color:var(--muted);text-align:right}.brand-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.brand-product{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:15px;font:inherit;cursor:pointer;position:relative;overflow:hidden}.brand-product-image{height:136px;width:100%;display:grid;place-items:center;margin-bottom:14px}.brand-product img{width:100%;height:100%;max-height:136px;object-fit:contain;mix-blend-mode:multiply}.brand-product-brand{font-size:10px;letter-spacing:.02em;color:var(--muted);margin-bottom:3px}.brand-product strong{font-size:13px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}.brand-product small{font-size:9px;color:var(--muted);line-height:1.55;margin-top:5px;overflow-wrap:anywhere}.brand-product-price{font-size:10px;margin-top:auto;padding-top:12px;line-height:1.5}.brand-product:hover{border-color:#a8a29e}.brand-more{display:block;margin:22px auto 6px;font:inherit;font-size:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);padding:10px 16px;cursor:pointer}.brand-more span{font-size:10px;color:var(--muted);margin-left:5px}.brand-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;padding-top:20px;margin-top:18px;border-top:1px solid var(--line)}.brand-editorial{font:inherit;font-size:11px;color:var(--muted);border:0;background:none;padding:8px 0;cursor:pointer;text-align:left}.brand-editorial:hover{text-decoration:underline;text-underline-offset:4px}.brand-primary{font:inherit;font-size:12px;background:var(--ink);color:#fff;border:0;border-radius:9px;padding:11px 16px;cursor:pointer}.brand-footer p{font-size:10px;line-height:1.7;color:var(--muted);margin:0}.brand-match-note,.brand-empty{font-size:12px;color:var(--muted);line-height:1.7;padding:18px;background:#eeedeb;border-radius:10px}.brand-match-note.empty{color:#92400e;background:#fef3c766}.brand-search-empty{font-size:12px;color:var(--muted);margin:12px 0}.brand-empty p{margin:0 0 8px}.brand-search-reset{background:none;border:0;text-decoration:underline;color:var(--ink);font:inherit;font-size:12px;cursor:pointer;padding:0}
#brand-dialog button:focus-visible,.brand-toolbar button:focus-visible,.brand-search:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
@media(max-width:900px){.brand-products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.brand-toolbar{top:60px;left:12px;right:12px;max-width:none;gap:6px}.brand-toolbar button{font-size:11px;min-height:34px;padding:7px 10px}.brand-toolbar button:last-child{max-width:none;min-width:0}#brand-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:22px 16px 18px;border-radius:15px}.brand-heading{gap:10px}.brand-heading h2{font-size:23px}.brand-heading-actions{gap:6px}.brand-heading-actions .language-select{width:79px;font-size:10px}.brand-intro{font-size:11px;margin:12px 0 16px}.brand-search-row{gap:8px}.brand-search{font-size:12px;padding:10px}.brand-chips{max-height:142px;gap:6px}.brand-chip{font-size:10px;padding:5px 7px}.brand-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.brand-product{padding:12px}.brand-product-image{height:122px;margin-bottom:12px}.brand-product img{max-height:122px}.brand-result-heading{margin-top:14px}.brand-count-note{font-size:9px;max-width:45%;line-height:1.5}.brand-footer{gap:12px;align-items:stretch;flex-wrap:wrap}.brand-footer p{flex:1;min-width:160px}.brand-footer .brand-primary{margin-left:auto}.brand-primary{font-size:11px;padding:10px 12px}}
@media(max-width:380px){.brand-heading{flex-wrap:wrap}.brand-heading-actions{margin-left:auto}.brand-product{padding:10px}.brand-product-image{height:105px}.brand-product img{max-height:105px}.brand-product strong{font-size:12px}.brand-footer .brand-primary{width:100%}}

/* The heading and controls explain themselves; no persistent instruction banner. */
.brand-search-row{margin-top:20px}.brand-footer .brand-done{margin-left:auto}
