.brand-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:24px;align-items:start}.brand-layout .stack{display:grid;gap:20px}.brand-layout textarea,.modal-body #brandApprovedText{width:100%;min-width:0;resize:vertical;font:inherit;padding:12px;border:1px solid #e2e8f0;border-radius:10px;line-height:1.55;background:#fff;color:#172033}.brand-layout .eyebrow{color:#2457e6;font-size:11px;font-weight:700;letter-spacing:1.3px;margin-bottom:12px}.brand-report-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:14px}.brand-entry{margin-bottom:12px}.brand-layout .card{min-width:0}.brand-layout .two-col{align-items:start}.brand-layout .helper{line-height:1.6}.brand-layout .secondary{white-space:normal;text-align:left}.brand-layout .primary{margin-top:12px}@media(max-width:900px){.brand-layout{grid-template-columns:1fr}.brand-layout .two-col{grid-template-columns:1fr}}@media(max-width:480px){.brand-layout{gap:16px}.brand-layout button{width:100%}.brand-entry button{font-size:12px}.brand-layout .card{padding:18px}}

@media(min-width:1200px){.settings-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}}

.brand-research-status{padding:20px;border:1px solid #dce5ff;border-radius:16px;background:linear-gradient(140deg,#f3f7ff 0%,#fcfaff 100%);overflow:hidden}.brand-status-head{display:flex;gap:14px;align-items:center}.brand-status-head>div{min-width:0}.brand-ai-icon{width:80px;height:80px;flex:none;color:#2457e6}.brand-orbit{transform-origin:50px 50px}.brand-ai-icon.is-working .outer{animation:brand-orbit-turn 7s linear infinite}.brand-ai-icon.is-working .inner{animation:brand-orbit-turn 4.5s linear infinite reverse}.brand-status-kicker{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#6274a4}.brand-status-head h3{font-size:17px!important;line-height:1.3;margin:6px 0!important;color:#172033}.brand-status-stage{font-size:12px;line-height:1.6;color:#526176;margin:0;overflow-wrap:anywhere}.brand-status-track{height:5px;margin:20px 0;border-radius:5px;background:#e1e8fa;overflow:hidden}.brand-status-track span{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2457e6,#9d75e8);animation:brand-status-scan 2.8s ease-in-out infinite}.brand-status-metrics{display:flex;flex-wrap:wrap;gap:12px 20px;margin:16px 0}.brand-status-metrics>span{display:flex;align-items:center;gap:5px;font-size:12px;color:#526176}.brand-status-metrics b{color:#253859;font-weight:600;font-variant-numeric:tabular-nums}.brand-status-metrics small{font-size:11px}.brand-status-metrics .icon{width:14px;height:14px}.brand-status-phases{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;margin:18px 0;list-style:none;gap:6px}.brand-status-phases li{font-size:10px;color:#78849c;line-height:1.4;display:flex;flex-direction:column;gap:7px;align-items:center;text-align:center}.brand-status-phases li>span{width:23px;height:23px;display:grid;place-items:center;border:1px solid #dbe2f0;border-radius:50%;background:#fff;font-size:10px}.brand-status-phases li.current{color:#2457e6;font-weight:600}.brand-status-phases li.current>span{color:#fff;background:#2457e6;border-color:#2457e6;box-shadow:0 0 0 4px #2457e611}.brand-status-footnote,.brand-status-sync{font-size:11px;line-height:1.65;color:#72809a;margin:10px 0}.brand-status-sync{color:#4e6b81}.brand-status-sync.stale{color:#97612b}.brand-research-status .actions{margin-top:12px}.brand-research-status .quiet{font-size:12px}.brand-research-status.settled .brand-ai-icon{opacity:.7}@keyframes brand-orbit-turn{to{transform:rotate(360deg)}}@keyframes brand-status-scan{0%{transform:translateX(-110%)}100%{transform:translateX(365%)}}@media(max-width:480px){.brand-research-status{padding:16px}.brand-ai-icon{width:68px;height:68px}.brand-status-head{gap:10px}.brand-status-head h3{font-size:15px!important}.brand-status-metrics{gap:10px}.brand-status-phases{gap:4px}}@media(prefers-reduced-motion:reduce){.brand-ai-icon.is-working .brand-orbit,.brand-status-track span{animation:none}.brand-status-track span{width:100%;opacity:.55}}

.brand-status-bar{margin:20px 0;color:#2457e6}.brand-status-bar-label{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;font-size:12px;font-weight:600;line-height:1.5}.brand-status-bar-label small{font-size:10px;font-weight:400;color:#72809a}.brand-status-bar .brand-status-track{height:9px;margin:9px 0 0}.brand-status-bar:not(.active) .brand-status-track span{width:100%;animation:none;transform:none;background:currentColor;opacity:1}.brand-status-bar.success{color:#238466}.brand-status-bar.warning{color:#b77b24}.brand-status-bar.error{color:#c15353}.brand-status-bar.neutral{color:#8793a6}

/* Reports share the safe chat renderer; keep their layout scoped to the modal. */
.modal-card:has(.brand-report-markdown){width:min(1000px,100%)}
.brand-report-markdown{white-space:normal;min-width:0;color:#263449;line-height:1.8;font-size:14px}
.brand-report-markdown p{margin:0 0 16px}
.brand-report-markdown h2,.brand-report-markdown h3,.brand-report-markdown h4,.brand-report-markdown h5,.brand-report-markdown h6{color:#172033;font-weight:650;line-height:1.4;margin:28px 0 12px;letter-spacing:-.2px}
.brand-report-markdown h2{font-size:24px}.brand-report-markdown h3{font-size:21px}.brand-report-markdown h4{font-size:18px}.brand-report-markdown h5,.brand-report-markdown h6{font-size:16px}
.brand-report-markdown>:first-child{margin-top:0}.brand-report-markdown strong{font-weight:700;color:#172033}
.brand-report-markdown ul,.brand-report-markdown ol{padding-left:24px;margin:12px 0 20px}.brand-report-markdown li{margin:7px 0;padding-left:3px}
.brand-report-markdown blockquote{border-left:3px solid #5575ad;background:#f6f8fc;padding:12px 16px;margin:18px 0;color:#526176;border-radius:0 8px 8px 0}
.brand-report-markdown hr{border:0;border-top:1px solid #e4e9f1;margin:26px 0}.brand-report-markdown a{color:#2457e6;text-decoration:underline;text-underline-offset:3px}
.brand-report-markdown code{background:#f1f4f8;border-radius:4px;padding:2px 5px;font-size:.9em}.brand-report-markdown pre{overflow:auto;white-space:pre;padding:16px;background:#f1f4f8;border-radius:10px}.brand-report-markdown pre code{padding:0}
.brand-report-markdown .chat-table-block{margin:18px 0 24px;max-width:100%;min-width:0}.brand-report-markdown .chat-table-scroll{overflow-x:auto;max-width:100%;border:1px solid #e4e9f1;border-radius:10px}
.brand-report-markdown table{border-collapse:collapse;width:100%;margin:0;font-size:13px;line-height:1.7;table-layout:auto}
.brand-report-markdown th,.brand-report-markdown td{padding:12px 14px;min-width:130px;text-align:left;border:0;border-bottom:1px solid #e9ecf1;white-space:normal;vertical-align:top;color:inherit;background:transparent}
.brand-report-markdown th{background:#f6f8fc;font-weight:650;color:#172033}.brand-report-markdown tbody tr:last-child td{border-bottom:0}.brand-report-markdown tbody tr:hover{background:#fafbfc}
.brand-report-markdown .align-right{text-align:right}.brand-report-markdown .align-center{text-align:center}
@media(max-width:600px){.brand-report-markdown{font-size:14px}.brand-report-markdown h2{font-size:21px}.brand-report-markdown h3{font-size:19px}.brand-report-markdown h4{font-size:17px}.brand-report-markdown th,.brand-report-markdown td{padding:10px 12px;min-width:140px}}
