/* R12 visual adapter. Existing audit/selection/navigation logic is untouched. */
body.brand-shell{background:#f3f5f8;color:#182b39;-webkit-font-smoothing:antialiased}
body.brand-shell .topbar{height:76px;padding:0 clamp(18px,2.4vw,48px);border-bottom:1px solid #e4e9ef;box-shadow:0 3px 14px #182b3903;background:#fffffffa;gap:18px}
.top-brand{display:flex;align-items:center;gap:10px;color:#14232e;text-decoration:none;flex:0 0 auto;min-height:46px}
.top-brand img{border-radius:12px;box-shadow:0 3px 10px #192a3712}
.top-brand>span{display:flex;flex-direction:column;gap:2px}
.top-brand strong{font-size:24px;line-height:1;letter-spacing:-.8px;font-weight:820}
.top-brand strong span{color:#ae7917}
.top-brand small{font-size:9px;letter-spacing:1.25px;color:#748290;font-weight:650;line-height:1.5}
.brand-shell .navigation-top-title{gap:18px}
.brand-shell .navigation-toggle{width:38px;height:38px;flex-basis:38px;border-color:transparent;background:#f5f7fa;border-radius:10px}
.brand-shell .navigation-page-title{padding-left:18px;border-left:1px solid #e1e7ed}
.brand-shell .navigation-page-title .eyebrow{display:none}
.brand-shell .navigation-page-title h1{font-size:14px;line-height:1.5;font-weight:650;letter-spacing:0;margin:0;color:#576979}
.brand-shell .top-actions{gap:10px;flex:0 0 auto}
.brand-shell .lang-switch{background:#fff;border-radius:9px}
.brand-shell .version-button{background:#f4f6f9;color:#607181}
.brand-shell #auditPage{--home-gutter:clamp(18px,2.4vw,48px);padding-top:20px}
.brand-shell .home-hero{border-radius:18px;border:1px solid #e3e8ee;background:linear-gradient(120deg,#fffdf6 0%,#fff 52%,#fbfcfe 100%);box-shadow:0 4px 18px #1d354508}
.brand-shell .home-hero:before{height:3px;background:linear-gradient(90deg,#e6ac2d,#f7dc98 42%,transparent)}
.brand-shell .home-hero-content{padding:24px 30px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;text-align:left;align-items:center}
.brand-shell .home-kicker{grid-column:1;justify-content:flex-start;color:#946b1b;font-size:11px;letter-spacing:.03em;line-height:1.5;margin:0 0 8px}
.brand-shell #homeTitle{grid-column:1;margin:0;font-size:clamp(24px,2vw,34px);line-height:1.35;letter-spacing:-.6px;font-weight:760;max-width:none}
.brand-shell .home-pain{grid-column:1;font-size:13px;margin:8px 0 3px;color:#7b827d}
.brand-shell .home-lead{grid-column:1;font-size:14px;line-height:1.75;color:#4d6070;margin:0;max-width:800px}
.brand-shell .home-ai-actions{grid-column:2;grid-row:2/5;display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;min-width:244px;max-width:370px}
.brand-shell .home-copy-primary,.brand-shell .home-manual-primary{min-height:52px;border-radius:10px;font-size:15px;padding:12px 22px;justify-content:center;text-decoration:none;box-shadow:none}
.brand-shell .home-copy-primary{color:#402c05;background:#ffcb4b;border:1px solid #e7af2e;box-shadow:0 4px 12px #dca72c18}
.brand-shell .home-copy-primary:hover{background:#f9bf32}
.brand-shell .home-manual-primary{color:white;background:#192c3b;border:1px solid #192c3b}
.brand-shell .home-manual-primary:hover{background:#274456}
.brand-shell .home-ai-meta{grid-column:1/-1;justify-content:flex-start;margin-top:12px;gap:10px 16px}
.brand-shell .home-ai-meta p,.brand-shell .home-ai-meta button{font-size:11px}
.brand-shell .home-flow{padding:7px 22px;background:#fffdfa;border-color:#ebe8df}
.brand-shell .home-flow li{font-weight:600;font-size:11px}
.brand-shell #bulkUploadPanel{border-radius:18px;box-shadow:0 4px 18px #1d354506;border-color:#dfe6ed}
.brand-shell .home-manual-heading{padding:24px 28px 0}
.brand-shell .home-manual-heading h3{font-size:22px;letter-spacing:-.4px}
.brand-shell #bulkUploadPanel>.privacy-line{margin:0;padding:9px 28px;border-bottom:1px solid #e9eef3;border-radius:18px 18px 0 0;color:#63806f;background:#fbfdfc;font-size:11px}
.brand-shell #bulkUploadPanel .dual-upload{padding:24px 28px;gap:24px}
.brand-shell #bulkUploadPanel .dropzone{border-style:dashed;border-width:1.5px;background:#f9fbff;min-height:144px;transition:border-color .12s,background .12s}
.brand-shell #bulkUploadPanel .upload-slot:last-child .dropzone{background:#fffdf7}
.brand-shell #bulkUploadPanel .dropzone:hover{border-color:#8ba6bc;background:#f2f7fc}
.brand-shell #bulkUploadPanel .upload-slot:last-child .dropzone:hover{border-color:#bc973e;background:#fff9e8}
.brand-shell #auditBtn{background:#192c3b;min-height:56px;border-radius:11px;box-shadow:0 3px 10px #162b3510}
.brand-shell #auditBtn:disabled{background:#e9eef4;box-shadow:none;color:#96a3b1;opacity:1}
.brand-shell .home-reference-help,.brand-shell .home-checklist{box-shadow:none}
.brand-shell .site-feedback-footer{color:#7a8998;gap:10px}
.footer-brand{font-size:15px;color:#314454;margin-right:2px;letter-spacing:-.3px}.footer-brandline{margin-right:auto;font-size:12px}
.brand-shell :focus-visible{outline:3px solid #8ab4d2;outline-offset:3px}
@media(min-width:1800px){.brand-shell .home-ai-actions{flex-direction:row;min-width:520px;max-width:none}.brand-shell .home-copy-primary,.brand-shell .home-manual-primary{min-width:245px}}
@media(max-width:1100px){.brand-shell .navigation-page-title{display:none}.brand-shell .home-hero-content{grid-template-columns:1fr;padding:20px 24px 14px}.brand-shell .home-ai-actions{grid-column:1;grid-row:auto;flex-direction:row;flex-wrap:wrap;max-width:none;margin-top:16px;min-width:0}.brand-shell .home-ai-meta{grid-column:1}.brand-shell .home-copy-primary,.brand-shell .home-manual-primary{flex:1 1 220px}.brand-shell #homeTitle{font-size:28px}}
@media(max-width:640px){.brand-shell .topbar{height:auto;min-height:76px;flex-wrap:wrap;gap:8px;padding:12px 16px}.brand-shell .navigation-top-title{gap:10px}.top-brand strong{font-size:22px}.top-brand img{width:38px;height:38px}.top-brand small{font-size:8px}.brand-shell .top-actions{margin-left:auto;gap:6px}.brand-shell .top-actions #resetBtn{font-size:11px;padding:7px}.brand-shell .home-hero-content{padding:19px 18px 12px}.brand-shell #homeTitle{font-size:25px}.brand-shell .home-lead{font-size:13px}.brand-shell .home-ai-meta .home-helper{display:none}.brand-shell .home-ai-meta{gap:4px 12px}.brand-shell .home-flow{padding:6px 7px}.brand-shell .home-flow li{padding:0 5px;gap:5px;font-size:10px}.brand-shell .home-flow-number{flex-basis:18px;height:18px;font-size:10px}.brand-shell .home-manual-heading{padding:20px 18px 0}.brand-shell .home-manual-heading h3{font-size:20px}.brand-shell #bulkUploadPanel .dual-upload{padding:20px 18px;gap:22px}.brand-shell #bulkUploadPanel>.privacy-line{padding:8px 18px}.brand-shell #auditPage{padding-top:14px}.footer-brandline{display:block;flex-basis:80%}}
@media(max-width:410px){.brand-shell .top-actions{width:100%;justify-content:flex-end}.brand-shell .topbar{gap:7px}.brand-shell .lang-select{max-width:154px}}
@media(prefers-reduced-motion:reduce){.brand-shell *{scroll-behavior:auto!important;transition:none!important}}
/* Match the base selector specificity so a wrapped mobile toolbar reserves real height. */
@media(max-width:640px){body.brand-shell .topbar{height:auto;min-height:108px;flex-wrap:wrap;align-content:center;gap:8px;padding:12px 16px}.brand-shell .navigation-top-title{flex:1 1 100%}.brand-shell .top-actions{width:100%;justify-content:flex-end}}
