/* APPROACHES-01: extensions to existing Inbox primitives, scoped to this module. */
.buyer-section-pill{display:inline-flex;justify-self:start;background:var(--color-surface-subtle);color:var(--color-text-secondary);border-radius:999px;padding:4px 8px;font-size:11px;max-width:100%}
.buyer-no-media{display:grid;place-items:center;min-height:180px;font-size:13px;color:#b8c6d1;padding:16px;text-align:center}
.buyer-drawer .buyer-detail-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(240px,290px)}
.buyer-drawer.adspower-detail-drawer.ux28{grid-template-rows:auto minmax(0,1fr)}
.buyer-drawer .vis06-evidence-zone,.buyer-drawer .vis06-facts-zone{display:grid;align-content:start;gap:14px;min-width:0;min-height:0}
.buyer-editor-media{position:relative;height:430px;min-width:0;min-height:0;display:grid;place-items:center;border:1px solid var(--color-border-default);border-radius:var(--radius-panel);background:var(--color-surface-contrast);overflow:hidden}
.buyer-drawer .buyer-editor-media>img,.buyer-drawer .buyer-editor-media>video{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.buyer-media-actions{display:flex;gap:8px;flex-wrap:wrap}.buyer-media-actions .file-button{position:relative;overflow:hidden;cursor:pointer}.buyer-media-actions input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.buyer-drawer textarea,.buyer-drawer input:not([type=file]),.buyer-drawer select{width:100%;padding:10px;border:1px solid var(--color-border-default);border-radius:var(--radius-control);background:var(--color-surface-base);color:var(--color-text-primary);font:inherit;min-width:0}
.buyer-drawer textarea{resize:vertical;line-height:1.6;font-size:13px}
.buyer-drawer .vis06-decision-rail>label{display:grid;gap:5px;font-size:12px;color:var(--color-text-secondary);font-weight:650}
.buyer-drawer .vis06-decision-rail input,.buyer-drawer .vis06-decision-rail select{font-size:13px}
.buyer-text .adspower-section-title{align-items:center;gap:10px;margin-bottom:10px}.buyer-text .adspower-section-title label{font-size:14px;font-weight:750}
.buyer-text .compact-btn{font-size:11px}.buyer-text{padding:0 0 15px!important}
.buyer-note-label{font-size:14px;font-weight:750}.buyer-media-name,.buyer-origin{font-size:12px;color:var(--color-text-secondary);overflow-wrap:anywhere}
.buyer-origin{padding-top:10px;border-top:1px solid var(--color-border-default)}.buyer-save-status{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.buyer-drawer .buyer-hooks-zone{grid-column:1/-1;min-width:0;margin:0;padding-top:20px;border-top:1px solid var(--color-border-default)}
.buyer-hooks-zone>.adspower-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.buyer-hooks-zone h3{font-size:16px;margin:0}.buyer-hooks-zone h4{font-size:12px;color:var(--color-text-secondary);font-weight:750;margin:0 0 10px}.buyer-hooks-zone h5{font-size:11px;color:var(--color-text-secondary);font-weight:700;margin:0 0 6px}
.buyer-hooks-zone p,.buyer-hooks-zone blockquote{font-size:13px;line-height:1.65;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.buyer-hooks-zone blockquote{padding:0 0 0 12px;border-left:3px solid var(--color-border-default);font-style:italic;margin-bottom:16px}
.buyer-hooks-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.buyer-hooks-actions .compact-btn{font-size:11px}
.buyer-hooks-empty,.buyer-hooks-hint{color:var(--color-text-secondary)}
.buyer-hook-skeleton,.buyer-hook-chain,.buyer-hook-map{margin-bottom:22px}
.buyer-hook-skeleton ol{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0;margin:0}
.buyer-hook-skeleton li{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--color-border-default);border-radius:var(--radius-control);background:var(--color-surface-subtle);min-width:0;max-width:100%;overflow-wrap:anywhere}
.buyer-hook-skeleton li>span:last-child{display:grid;gap:4px}.buyer-hook-skeleton b{font-size:12px}.buyer-hook-skeleton small,.buyer-hook-summary small{font-size:11px;font-weight:400;color:var(--color-text-secondary)}
.buyer-hook-position{font-size:12px;font-weight:750;color:var(--color-action-primary);flex-shrink:0}
.buyer-hook-map>.adspower-section-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.buyer-hook-map>.adspower-section-title h4{margin:0}.buyer-hook-map>.adspower-section-title>span{font-size:11px;color:var(--color-text-secondary)}
.buyer-hook-detail{border:1px solid var(--color-border-default);border-radius:var(--radius-control);margin-top:8px;overflow:hidden}
.buyer-hook-detail summary{display:flex;align-items:center;gap:12px;padding:14px;cursor:pointer;list-style:none}.buyer-hook-detail summary::-webkit-details-marker{display:none}.buyer-hook-detail summary:focus-visible{outline:2px solid var(--color-action-primary);outline-offset:-3px}
.buyer-hook-summary{display:grid;gap:5px;min-width:0;flex:1}.buyer-hook-summary>b{font-size:13px;overflow-wrap:anywhere}.buyer-hook-summary>b small{margin-left:6px}.buyer-hook-summary>span{font-size:12px;color:var(--color-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.buyer-hook-chevron{color:var(--color-text-secondary);font-size:16px}.buyer-hook-detail[open] .buyer-hook-chevron{transform:rotate(180deg)}
.buyer-hook-body{border-top:1px solid var(--color-border-default);padding:14px}.buyer-hook-pattern{border-top:1px solid var(--color-border-default);padding-top:18px}
.buyer-hooks-plain{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65}
.buyer-hooks-editor{margin-top:18px;padding-top:18px;border-top:1px solid var(--color-border-default);display:grid;gap:12px}.buyer-hooks-editor[hidden],.buyer-hooks-zone [hidden]{display:none}
.buyer-hooks-format-label{display:grid;gap:6px;max-width:350px;font-size:12px;color:var(--color-text-secondary)}.buyer-hooks-editor>label{font-size:13px}.buyer-drawer #buyer-hooks{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.buyer-hooks-error{color:var(--color-danger);font-size:12px;line-height:1.5;overflow-wrap:anywhere}.buyer-hooks-error:empty{display:none}
.buyer-hooks-actions .file-button{position:relative;overflow:hidden;cursor:pointer}.buyer-hooks-actions .file-button input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.buyer-hooks-zone #buyer-hooks-import-status{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:12px}.buyer-hooks-zone #buyer-hooks-import-status:empty{display:none}.buyer-hooks-zone>#buyer-hooks-error:not(:empty){margin-bottom:12px}
.buyer-analysis-intro,.buyer-operator-skeleton{margin-bottom:22px}.buyer-analysis-scope{color:var(--color-text-secondary);margin-bottom:12px!important}
.buyer-core-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;margin:0;padding:0}.buyer-core-grid>li{min-width:0}
.buyer-core-step{display:flex;align-items:flex-start;gap:10px;width:100%;height:100%;padding:13px;border:1px solid var(--color-border-default);border-radius:var(--radius-control);background:var(--color-surface-base);color:var(--color-text-primary);text-align:left;cursor:pointer}.buyer-core-step:hover{background:var(--color-surface-subtle);border-color:var(--color-border-strong)}.buyer-core-step:focus-visible{outline:2px solid var(--color-action-primary);outline-offset:2px}
.buyer-core-copy{display:grid;gap:7px;min-width:0;flex:1}.buyer-core-copy>b{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.buyer-core-copy>span{font-size:12px;line-height:1.55;color:var(--color-text-secondary);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.buyer-core-copy>small{font-size:10px;color:var(--color-text-secondary);overflow-wrap:anywhere}
.buyer-hook-full-map{margin-top:22px;border:1px solid var(--color-border-default);border-radius:var(--radius-control);overflow:hidden}.buyer-hook-full-map>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:14px;background:var(--color-surface-subtle)}.buyer-hook-full-map>summary::-webkit-details-marker{display:none}.buyer-hook-full-map>summary>span:first-child{display:grid;gap:5px;min-width:0}.buyer-hook-full-map>summary b{font-size:13px}.buyer-hook-full-map>summary small{font-size:11px;color:var(--color-text-secondary)}.buyer-hook-full-map[open]>summary>.buyer-hook-chevron{transform:rotate(180deg)}.buyer-hook-full-map>summary:focus-visible{outline:2px solid var(--color-action-primary);outline-offset:-3px}
.buyer-hook-map-body{padding:14px}.buyer-hook-body p+h5{margin-top:14px}.buyer-hook-time{color:var(--color-text-secondary);font-size:11px;flex-shrink:0}.buyer-hook-original{margin-bottom:14px}.buyer-hook-detail .buyer-hook-original>summary{padding:6px 0;font-size:12px;color:var(--color-text-secondary)}.buyer-hook-original blockquote{margin-top:8px}.buyer-hook-cta{border-top:1px solid var(--color-border-default);padding-top:18px}
@media(max-width:1200px){.buyer-drawer .buyer-detail-layout{grid-template-columns:minmax(0,1fr) minmax(250px,.8fr)}.buyer-drawer .vis06-facts-zone{grid-column:1;grid-row:2}.buyer-drawer .vis06-decision-rail{grid-column:2;grid-row:1/3}.buyer-editor-media{height:350px}}
@media(max-width:820px){.buyer-core-grid{grid-template-columns:1fr}.buyer-hooks-zone>.adspower-section-title{align-items:flex-start}.buyer-hook-map-body{padding:10px}}

/* APPROACHES-04. Read mode owns the first screen; no sticky metadata rail. */
.buyer-overview-drawer{--buyer-teal:#0f766e;--buyer-amber:#92540b;--buyer-violet:#6941a5}
.buyer-overview-drawer.adspower-detail-drawer.ux28{width:min(1180px,94vw);max-width:100vw}
.buyer-overview-drawer .preview-head{align-items:center}
.buyer-head-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.buyer-draft-status{font-size:11px;color:var(--buyer-amber);background:#fff5df;padding:5px 7px;border-radius:6px}.buyer-draft-status[hidden]{display:none}
.buyer-overview-form #buyer-overview-pattern:empty{display:none}
.buyer-overview-form{display:grid;gap:22px;min-width:0;color:var(--color-text-primary)}
.buyer-overview-form [hidden],.buyer-overview-form[data-mode=read] .buyer-edit-only,.buyer-overview-form[data-mode=edit] .buyer-read-only{display:none!important}
.buyer-overview-drawer .buyer-context{display:grid;grid-template-columns:clamp(160px,23%,240px) minmax(0,1fr);gap:22px;min-width:0;align-items:start}
.buyer-content-column{min-width:0}.buyer-content-column .buyer-read-panel{margin-top:16px}
.buyer-overview-form[data-mode=edit] .buyer-context{grid-template-columns:minmax(180px,.5fr) minmax(0,1fr)}
.buyer-overview-form[data-mode=edit] .buyer-hooks-zone{margin-top:22px}
.buyer-media-column,.buyer-brief{min-width:0;display:grid;gap:10px}
.buyer-overview-drawer .buyer-editor-media{height:clamp(240px,36vh,360px);border-radius:12px}
.buyer-overview-drawer .buyer-no-media{min-height:0}
.buyer-overview-drawer h3,.buyer-overview-drawer h4{margin:0;font-weight:750;line-height:1.35}
.buyer-overview-drawer h3{font-size:16px}.buyer-overview-drawer h4{font-size:15px}
.buyer-kicker{display:block;font-size:10px;line-height:1.5;font-weight:800;letter-spacing:.09em}
.buyer-repeat{padding:20px 22px;border:1px solid #b4dcd3;border-left:4px solid var(--buyer-teal);border-radius:12px;background:#eff9f5}
.buyer-repeat-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.buyer-repeat-head>div{display:grid;gap:5px}
.buyer-repeat .buyer-kicker,.buyer-repeat h3{color:var(--buyer-teal)}
.buyer-repeat p{font-size:15px;line-height:1.75;font-weight:650;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#155b50}
.buyer-repeat .buyer-pattern-steps{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px;font-size:13px;font-weight:600;white-space:normal}.buyer-pattern-steps>span{max-width:100%}.buyer-pattern-arrow{color:var(--buyer-teal)}
.buyer-repeat>small{display:block;margin-top:10px;font-size:11px;color:var(--color-text-secondary)}
.buyer-repeat .secondary-btn{background:var(--color-surface-base);border-color:#b4dcd3;color:var(--buyer-teal);white-space:nowrap}
.buyer-answer{padding:0 0 0 13px;border:0;border-left:3px solid var(--color-border-default);background:transparent}
.buyer-brief{gap:20px}
.buyer-answer p{margin:6px 0 0;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.buyer-answer .buyer-kicker{color:var(--color-text-secondary);display:inline-block;padding:3px 6px;border-radius:4px}
.buyer-answer-opening{border-left-color:#d99527}.buyer-answer-opening .buyer-kicker{color:var(--buyer-amber);background:#fff3da}
.buyer-answer-loop{border-left-color:#9673c5}.buyer-answer-loop .buyer-kicker{color:var(--buyer-violet);background:#f3edfc}
.buyer-answer-cta{border-left-color:var(--buyer-teal)}
.buyer-answer button{border:0;background:transparent;padding:0;margin-top:9px;color:var(--color-text-secondary);font-size:11px;font-weight:650;text-align:left;cursor:pointer}
.buyer-answer-opening button{color:var(--buyer-amber)}.buyer-answer-loop button{color:var(--buyer-violet)}
.buyer-tabs{display:flex;gap:20px;border-bottom:1px solid var(--color-border-default);overflow:auto}
.buyer-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:var(--color-text-secondary);padding:0 1px 12px;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.buyer-tabs button[aria-pressed=true]{border-bottom-color:var(--buyer-teal);color:var(--buyer-teal);font-weight:750}
.buyer-about,.buyer-analysis-context{border:1px solid var(--color-border-default);border-radius:10px;padding:14px 16px;font-size:12px;color:var(--color-text-secondary)}
.buyer-about>summary,.buyer-analysis-context>summary{cursor:pointer;font-weight:650;line-height:1.5}
.buyer-about p,.buyer-analysis-context p,.buyer-note p{margin:12px 0;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.buyer-note{margin-top:20px}.buyer-note h3{font-size:13px}
.buyer-overview-drawer .buyer-hooks-zone{padding:0;border:0;margin:0;min-width:0}
.buyer-overview-drawer .buyer-hooks-zone>.adspower-section-title{margin-bottom:16px}
.buyer-analysis-workspace{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(0,1.6fr);gap:18px;align-items:start}
.buyer-stage-list{padding:14px;background:var(--color-surface-subtle);border:1px solid var(--color-border-default);border-radius:12px;min-width:0}
.buyer-stage-list h4{font-size:11px;margin-bottom:12px}.buyer-stage-list ol{display:grid;gap:5px;list-style:none;margin:0;padding:0;max-height:540px;overflow:auto}
.buyer-stage-button{display:flex;gap:9px;padding:10px;width:100%;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--color-text-secondary);cursor:pointer}
.buyer-stage-button>span:first-child{font-size:11px;font-weight:750;padding-top:1px}.buyer-stage-button>span:last-child{display:grid;gap:5px;min-width:0}
.buyer-stage-button b{font-size:12px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}.buyer-stage-button small{font-size:10px;font-weight:400}
.buyer-stage-button[aria-pressed=true]{border-color:#b4dcd3;background:var(--color-surface-base);color:var(--buyer-teal)}
.buyer-beat-workspace{min-width:0}.buyer-beat-navigation{display:flex;align-items:flex-end;gap:8px;margin-bottom:12px}
.buyer-beat-navigation>label{display:grid;gap:5px;flex:1;min-width:0;color:var(--color-text-secondary);font-size:11px}
.buyer-beat-navigation>button{height:38px}.buyer-overview-drawer .buyer-beat-navigation select{padding:8px;font-size:12px;height:38px}
.buyer-selected-beat{border:1px solid var(--color-border-default);border-radius:12px;padding:18px;min-width:0;scroll-margin-top:20px}
.buyer-selected-beat>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:16px}
.buyer-selected-beat>header>div:first-child{display:grid;gap:7px;min-width:0}
.buyer-selected-beat .buyer-kicker,.buyer-selected-beat>header small{color:var(--color-text-secondary);font-size:10px}
.buyer-overview-drawer .buyer-selected-beat h4{color:var(--color-text-primary);font-size:15px;margin:0}
.buyer-quote-languages{display:flex;gap:3px;flex-shrink:0;padding:3px;border-radius:7px;background:var(--color-surface-subtle)}
.buyer-quote-languages button{border:0;padding:5px 7px;border-radius:5px;font-size:10px;color:var(--color-text-secondary);background:transparent;cursor:pointer}
.buyer-quote-languages button[aria-pressed=true]{color:var(--buyer-teal);background:var(--color-surface-base)}
.buyer-overview-drawer .buyer-selected-beat blockquote{margin:0 0 18px;padding:12px 14px;border-left:3px solid #d99527;border-radius:0 7px 7px 0;background:#fffbf1;color:var(--color-text-primary);font-style:normal;font-size:14px;line-height:1.65}
.buyer-beat-explanation{display:grid;gap:16px}.buyer-overview-drawer .buyer-beat-explanation h5{font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}
.buyer-beat-explanation p{font-size:13px;line-height:1.6}.buyer-beat-question{padding:12px;border-radius:8px;background:#f8f4fd}.buyer-beat-question h5{color:var(--buyer-violet)}
.buyer-beat-more{border-top:1px solid var(--color-border-default);padding-top:12px;margin-top:16px;font-size:12px}.buyer-beat-more>summary{cursor:pointer}.buyer-beat-more p{margin-top:10px}
.buyer-analysis-context{margin-top:18px}.buyer-analysis-context>section{padding-top:16px}.buyer-analysis-context h4{font-size:12px}
.buyer-script-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;min-width:0}.buyer-script-columns>section{min-width:0}
.buyer-script-columns .adspower-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.buyer-script-columns h3{font-size:13px}
.buyer-script-read{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.buyer-parameters{position:static;min-width:0;padding:18px;border:1px solid var(--color-border-default);border-radius:12px;background:var(--color-surface-base)}
.buyer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.buyer-fields label,.buyer-edit-text{display:grid;gap:7px;color:var(--color-text-secondary);font-size:12px;min-width:0}.buyer-field-wide{grid-column:1/-1}
.buyer-text-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.buyer-text-fields>section:last-child{grid-column:1/-1}
.buyer-edit-footer{position:static;display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--color-border-default);padding-top:20px}.buyer-edit-footer .buyer-save-status{flex-basis:100%}
.buyer-overview-drawer .buyer-hooks-zone .buyer-hooks-editor{padding:16px;border:1px solid var(--color-border-default);border-radius:10px;margin-top:16px}
.buyer-overview-drawer button:focus-visible,.buyer-overview-drawer summary:focus-visible{outline:2px solid var(--buyer-teal);outline-offset:3px}
@media(max-width:760px){.buyer-overview-drawer.adspower-detail-drawer.ux28{width:100vw;max-width:100vw}.buyer-overview-drawer .buyer-context{grid-template-columns:minmax(130px,.55fr) minmax(0,1fr);gap:14px}.buyer-repeat{padding:16px}.buyer-repeat p{font-size:14px}.buyer-overview-drawer .preview-head-copy h2{font-size:22px}.buyer-analysis-workspace{grid-template-columns:1fr}.buyer-stage-list ol{display:flex;overflow:auto;max-height:none}.buyer-stage-list li{min-width:155px}.buyer-stage-button{height:100%}.buyer-script-columns{grid-template-columns:1fr}.buyer-answer{padding:11px}.buyer-answer p{font-size:13px}}
@media(max-width:520px){.buyer-overview-drawer .buyer-context{grid-template-columns:1fr}.buyer-overview-drawer .buyer-editor-media{height:260px}.buyer-repeat-head{align-items:flex-start;flex-direction:column}.buyer-head-actions{gap:5px}.buyer-head-actions .compact-btn{font-size:11px;padding:8px}.buyer-tabs{gap:16px}.buyer-text-fields,.buyer-fields{grid-template-columns:1fr}.buyer-selected-beat>header{flex-direction:column}.buyer-overview-form{gap:18px}.buyer-overview-drawer .preview-scroll{padding:14px}.buyer-script-columns .adspower-section-title{flex-wrap:wrap}}
@media(max-width:520px){.buyer-overview-form[data-mode=edit] .buyer-context{grid-template-columns:1fr}.buyer-overview-drawer .preview-head{gap:10px;flex-wrap:wrap}.buyer-draft-status{font-size:10px}}

/* APPROACHES-04.1: full prompt fallback, outside the buyer editor/form. */
.buyer-prompt-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid var(--color-border-default);color:var(--color-text-primary);overflow:auto}
.buyer-prompt-dialog::backdrop{background:color-mix(in srgb,var(--color-info) 36%,transparent);backdrop-filter:blur(4px)}
.buyer-prompt-dialog .modal-head{gap:16px}.buyer-prompt-dialog h2{font-size:19px}.buyer-prompt-label{display:block;margin-bottom:8px;color:var(--color-text-secondary);font-size:12px}
.buyer-prompt-dialog textarea{display:block;width:100%;height:min(48dvh,420px);min-height:160px;resize:vertical;box-sizing:border-box;padding:12px;border:1px solid var(--color-border-default);border-radius:var(--radius-control);background:var(--color-surface-base);color:var(--color-text-primary);font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}
.buyer-prompt-dialog .modal-actions{flex-wrap:wrap}
/* BUYER-CREATIVES-01: four-column board and production rhythm. */
.buyer-board-page{--buyer-teal:#157f70;--buyer-amber:#9a650e;--buyer-violet:#7254a0;--buyer-status:#8793a1;max-width:1800px;margin:auto}
.buyer-production{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;margin:20px 0}.buyer-today{border:1px solid #dce5e9;border-radius:14px;padding:18px 22px;background:#fff}.buyer-today>span{font-size:10px;letter-spacing:.09em;color:#677484;font-weight:750}.buyer-today strong{display:block;font-size:40px;line-height:1.2;letter-spacing:-.04em;margin:7px 0}.buyer-today small{font-size:22px;color:#8c98a4;font-weight:500}.buyer-today p{font-size:11px;color:#687686;margin:0}.buyer-goal-met{background:#edf8f4;border-color:#b9dfd3}.buyer-goal-met strong{color:#157f70}.buyer-production-history{padding:18px 22px;border:1px solid var(--color-border-default);border-radius:14px;background:var(--color-surface-base);min-width:0}.buyer-production-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:17px;font-size:12px}.buyer-production-title span{font-size:11px;color:var(--color-text-secondary)}.buyer-days{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:8px}.buyer-day{display:grid;gap:7px;border:1px solid #e5e9ed;border-radius:8px;padding:10px 3px;background:#f7f9fb;color:#778695;cursor:pointer}.buyer-day b{font-size:20px}.buyer-day span{font-size:10px}.buyer-day.met{background:#edf8f4;color:#157f70;border-color:#cce8de}.buyer-day.today{box-shadow:0 0 0 2px #d1e9e3}.buyer-board-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:16px;background:var(--color-surface-base);border:1px solid var(--color-border-default);border-radius:12px}.buyer-board-filters label{display:grid;gap:6px;font-size:10px;color:var(--color-text-secondary);min-width:100px;flex:1}.buyer-board-filters .buyer-search-label{flex:2;min-width:190px}.buyer-board-filters input,.buyer-board-filters select{width:100%;min-width:0;font-size:12px;padding:9px;height:38px;border:1px solid var(--color-border-default);border-radius:7px;background:var(--color-surface-base);color:var(--color-text-primary)}.buyer-board-filters>button{height:38px}.buyer-period-summary{display:flex;flex-wrap:wrap;gap:18px;align-items:center;font-size:11px;color:var(--color-text-secondary);padding:17px 2px}.buyer-period-summary b{color:var(--color-text-primary);margin-left:5px}.buyer-period-summary>span:first-child{margin-right:auto}.buyer-kanban{display:grid;grid-template-columns:repeat(5,minmax(240px,1fr));gap:14px;overflow-x:auto;padding-bottom:15px;align-items:start}.buyer-kanban-column{background:#f2f5f7;border:1px solid #e4e9ee;border-radius:13px;overflow:hidden;min-width:0}.buyer-kanban-column>header{display:flex;gap:9px;align-items:center;padding:16px 14px;border-bottom:1px solid #e3e8ec;background:#fafbfd}.buyer-kanban-column h2{font-size:13px;font-weight:750;margin:0}.buyer-kanban-column>header>b{margin-left:auto;border-radius:5px;background:#e9edf1;padding:3px 6px;font-size:10px;color:#657585}.buyer-status-dot{width:9px;height:9px;display:inline-block;border-radius:50%;background:var(--buyer-status);flex-shrink:0}.buyer-status-ASSEMBLED{--buyer-status:#8b96a3}.buyer-status-TESTING{--buyer-status:#deb044}.buyer-status-HOOKED{--buyer-status:#2caa82}.buyer-status-NO_HOOK{--buyer-status:#db7277}.buyer-column-scroll{padding:10px;display:grid;align-content:start;gap:12px;max-height:70vh;min-height:270px;overflow-y:auto}.buyer-kanban-card{border:1px solid #e0e7ec;background:var(--color-surface-base);border-radius:9px;overflow:hidden;box-shadow:0 2px 4px #1f364404}.buyer-kanban-card[draggable=true]{cursor:grab}.buyer-board-open{display:block;text-align:left;border:0;padding:0;width:100%;background:transparent;color:inherit;cursor:pointer}.buyer-board-media{height:155px;position:relative;background:#e8edf1;display:flex;justify-content:center;overflow:hidden}.buyer-board-media video,.buyer-board-media img{display:block;width:100%;height:100%;object-fit:contain}.buyer-board-copy{padding:12px}.buyer-board-copy h3{font-size:13px;line-height:1.45;margin:0 0 9px;overflow-wrap:anywhere}.buyer-board-meta{display:flex;gap:8px;font-size:10px;line-height:1.5}.buyer-board-meta b{background:#edf2f6;border-radius:3px;padding:0 4px;flex-shrink:0}.buyer-board-meta span{overflow-wrap:anywhere}.buyer-board-owner,.buyer-board-age{font-size:10px;line-height:1.5;color:#7a8796;margin-top:7px}.buyer-board-age{color:#647588}.buyer-card-missing,.buyer-card-complete{font-size:10px;margin-top:10px;line-height:1.5}.buyer-card-missing{color:#9b740d}.buyer-card-complete{color:#287e6b}.buyer-board-result{font-size:11px;line-height:1.5;padding-top:9px;border-top:1px solid #edf1f4;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.buyer-kanban-card footer{display:flex;justify-content:flex-end;border-top:1px solid #edf1f4;padding:7px 12px}.buyer-move-button{background:transparent;border:0;color:#537365;padding:3px 0;font-size:10px;cursor:pointer}.buyer-move-button:disabled{color:#a4adb5;cursor:default}.buyer-review-badge{font-size:9px;padding:4px 6px;border-radius:4px;background:#fff2d0;color:#8e5e0c;white-space:nowrap}.buyer-board-media .buyer-review-badge{position:absolute;top:9px;right:9px}.buyer-column-empty{font-size:11px;color:#8a97a4;line-height:1.6;text-align:center;padding:28px 12px;border:1px dashed #d9e1e8;border-radius:8px}.buyer-drop-active{outline:2px solid var(--buyer-status);outline-offset:-2px;background:#e8f0ed}.buyer-workflow-summary{border:1px solid var(--color-border-default);border-left:4px solid var(--buyer-status);border-radius:10px;padding:16px 18px;margin-bottom:18px;line-height:1.6}.buyer-workflow-summary>div{display:flex;gap:9px;align-items:center;flex-wrap:wrap;font-size:12px}.buyer-workflow-summary>p{font-size:14px;margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}.buyer-workflow-summary>a{font-size:12px;margin-right:14px}.buyer-workflow-summary>button{margin-top:10px}.buyer-workflow-summary details{font-size:11px;margin-top:14px}.buyer-workflow-summary summary{cursor:pointer}.buyer-workflow-summary ol{padding-left:18px}.buyer-workflow-summary li{padding:8px 0}.buyer-workflow-summary time,.buyer-workflow-summary li>span{color:#82909b;margin-right:10px}.buyer-workflow-summary li>b{margin-right:10px}.buyer-workflow-summary li p{white-space:pre-wrap;overflow-wrap:anywhere}.buyer-transition-dialog{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid var(--color-border-default);padding:24px;background:var(--color-surface-base);color:var(--color-text-primary)}.buyer-transition-dialog::backdrop{background:#172f4359;backdrop-filter:blur(3px)}.buyer-transition-dialog form>label,.buyer-transition-dialog #buyer-result-fields>label{display:grid;gap:7px;font-size:12px;margin:16px 0;color:var(--color-text-secondary)}.buyer-transition-dialog input,.buyer-transition-dialog select,.buyer-transition-dialog textarea{font:inherit;width:100%;box-sizing:border-box;padding:11px;border:1px solid var(--color-border-default);border-radius:8px;background:var(--color-surface-base);color:var(--color-text-primary)}.buyer-transition-dialog h2{font-size:21px}.buyer-transition-dialog p{font-size:12px;overflow-wrap:anywhere}.buyer-transition-dialog [hidden]{display:none!important}.buyer-transition-dialog .modal-head{gap:16px;align-items:start}.buyer-trash-caption{font-size:13px;color:#788795}.buyer-load-more{width:100%}
@media(max-width:900px){.buyer-production{grid-template-columns:180px minmax(0,1fr)}.buyer-production-title{flex-direction:column;gap:5px}.buyer-production-history{padding:15px}.buyer-days{gap:4px}.buyer-day{padding:9px 1px}.buyer-day span{font-size:9px}.buyer-kanban{grid-template-columns:repeat(5,255px)}}
@media(max-width:560px){.buyer-production{grid-template-columns:1fr;gap:10px}.buyer-today{display:grid;grid-template-columns:1fr auto;align-items:center;padding:16px}.buyer-today strong{grid-column:2;grid-row:1/3;margin:0}.buyer-today p{margin-top:5px}.buyer-production-title>span{font-size:10px}.buyer-board-page .page-head .section-actions{flex-wrap:wrap}.buyer-board-filters label{min-width:120px}.buyer-period-summary{gap:12px}.buyer-period-summary>span:first-child{width:100%}.buyer-column-scroll{max-height:65vh}.buyer-kanban{grid-template-columns:repeat(5,minmax(260px,80vw))}}

/* BUYER-CREATIVES-02: provenance survives every lifecycle column. */
.buyer-kanban{grid-template-columns:repeat(5,minmax(220px,1fr))}
.buyer-status-SPY_READY{--buyer-status:#8b96a3}
.buyer-board-meta{align-items:center;flex-wrap:wrap}
.buyer-origin-badge{display:inline-flex;align-items:center;max-width:100%;padding:3px 7px;border:1px solid #dce5e4;border-radius:5px;font-size:10px;font-weight:650;line-height:1.5;white-space:normal}
.buyer-origin-own{background:#edf7f2;border-color:#cee6d9;color:#22654d}
.buyer-origin-spy{background:#f0f2f6;border-color:#dce1e9;color:#5c697e}
.buyer-derived-badge{display:block;font-size:10px;line-height:1.5;color:#6a6892;margin-top:7px}
.buyer-today .buyer-spy-today{font-size:11px;color:#677484;border-top:1px solid #e4e9ed;margin-top:12px;padding-top:10px;display:flex;align-items:center;gap:8px}
.buyer-spy-today b{color:#45546c;font-size:15px}
.buyer-field-hint{font-size:11px;line-height:1.6;color:#778595;margin:0}
.buyer-parent-field{display:grid;gap:8px;color:var(--color-text-secondary);font-size:12px}
.buyer-parent-field>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.buyer-parent-field>div>span{flex-basis:100%;overflow-wrap:anywhere}
.buyer-parent-clear,.buyer-lineage-filter button,.buyer-related button{border:0;background:transparent;color:#6f7f88;font-size:11px;cursor:pointer;padding:5px}
#buyer-lineage:empty{display:none}
.buyer-source-note,.buyer-parent-read{display:flex;align-items:baseline;gap:10px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.buyer-source-note b,.buyer-parent-read b{flex-shrink:0;color:var(--color-text-secondary);font-size:11px}
.buyer-parent-read a,.buyer-related a{color:#226d5b;text-decoration:none}
.buyer-parent-read a:hover,.buyer-related a:hover{text-decoration:underline}
.buyer-related{font-size:12px;line-height:1.6;margin-top:8px}
.buyer-related summary{cursor:pointer;color:#526771}
.buyer-related>div{display:grid;gap:8px;padding:12px 0}
.buyer-lineage-filter{font-size:12px;color:#526771;margin:0 0 14px}
.buyer-lineage-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:24px;background:var(--color-surface-base);color:var(--color-text-primary);border:1px solid var(--color-border-default)}
.buyer-lineage-dialog::backdrop{background:#172f4359;backdrop-filter:blur(3px)}
.buyer-lineage-dialog h2{font-size:20px}.buyer-lineage-dialog p{font-size:12px;color:var(--color-text-secondary)}
.buyer-lineage-dialog>label{display:grid;gap:7px;font-size:12px;margin:18px 0}
.buyer-lineage-dialog input{width:100%;box-sizing:border-box;padding:11px;border:1px solid var(--color-border-default);border-radius:8px;background:var(--color-surface-base);color:var(--color-text-primary)}
#buyer-lineage-options{display:grid;gap:8px;max-height:50vh;overflow:auto;font-size:12px}
.buyer-lineage-option{display:grid;gap:6px;padding:12px 14px;text-align:left;background:var(--color-surface-subtle);color:var(--color-text-primary);border:1px solid var(--color-border-default);border-radius:9px;cursor:pointer}
.buyer-lineage-option b{overflow-wrap:anywhere}.buyer-lineage-option span{font-size:11px;color:var(--color-text-secondary)}
.buyer-lineage-option:hover{background:#eff8f3;border-color:#a9d7c4}
.buyer-hook-prompt.secondary-btn{background:#e6f6ec;border-color:#8ac7a4;color:#185b36;font-weight:750;box-shadow:0 0 0 0 #3baf6c20;animation:buyer-prompt-glow 3s ease-in-out infinite}
.buyer-hook-prompt.secondary-btn:hover{background:#d6f0df;border-color:#56a776;color:#124c2b}
.buyer-hook-prompt:focus-visible{outline:2px solid #24824d;outline-offset:3px}
@keyframes buyer-prompt-glow{0%,100%{box-shadow:0 0 0 0 #3baf6c18}50%{box-shadow:0 0 0 5px #3baf6c1f}}
@media(prefers-reduced-motion:reduce){.buyer-hook-prompt.secondary-btn{animation:none}}
@media(max-width:900px){.buyer-kanban{grid-template-columns:repeat(5,255px)}}
@media(max-width:560px){.buyer-kanban{grid-template-columns:repeat(5,minmax(260px,80vw))}.buyer-today .buyer-spy-today{grid-column:1/-1}.buyer-source-note,.buyer-parent-read{flex-wrap:wrap;gap:4px 8px}.buyer-production-title>span{line-height:1.5}}

/* BUYER-ONBOARDING-01. A single form keeps the draft and File object alive. */
.buyer-entry-mode{display:flex;gap:14px;justify-content:space-between;align-items:center;flex-wrap:wrap}
.buyer-mode-switch{display:inline-flex;gap:4px;padding:4px;background:var(--color-surface-subtle,#f2f6f8);border-radius:9px}
.buyer-mode-switch button{border:0;background:transparent;padding:9px 13px;border-radius:6px;color:var(--color-text-secondary);font:inherit;font-size:12px;cursor:pointer}
.buyer-mode-switch button[aria-pressed=true]{background:var(--color-surface-base,#fff);box-shadow:0 1px 4px #173c4b18;color:var(--color-text-primary);font-weight:750}
.buyer-help-link{padding:5px 0;border:0;background:transparent;color:#147c69;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:12px;cursor:pointer}
#buyer-form[data-wizard=true]{grid-template-columns:260px minmax(0,1fr);gap:20px}
#buyer-form[data-wizard=true]>.buyer-context,#buyer-form[data-wizard=true] .buyer-content-column,#buyer-form[data-wizard=true]>.buyer-text-fields{display:contents}
#buyer-form[data-wizard=true]>.buyer-entry-mode,#buyer-form[data-wizard=true]>.buyer-wizard-guide,#buyer-form[data-wizard=true] .buyer-edit-text,#buyer-form[data-wizard=true] #buyer-panel-analysis,#buyer-form[data-wizard=true]>.buyer-wizard-footer,#buyer-form[data-wizard=true]>.buyer-save-status{grid-column:1/-1}
#buyer-form[data-wizard=true]>.buyer-edit-footer{display:none!important}
#buyer-form[data-wizard=true] .buyer-media-column{grid-column:1}
#buyer-form[data-wizard=true] .buyer-parameters,#buyer-form[data-wizard=true]>.buyer-wizard-review{grid-column:2}
#buyer-form[data-wizard=true] .buyer-editor-media{height:320px}
.buyer-wizard-guide{padding:18px 20px;border:1px solid var(--color-border-default);border-radius:12px;background:var(--color-surface-subtle,#f6f9fb)}
.buyer-wizard-guide h3{font-size:19px;margin:18px 0 7px}.buyer-wizard-guide p{font-size:13px;line-height:1.6;margin:0;color:var(--color-text-secondary)}
.buyer-wizard-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.buyer-wizard-steps button{display:flex;gap:8px;align-items:center;border:0;background:none;font:inherit;font-size:12px;color:var(--color-text-secondary);cursor:pointer;text-align:left;padding:4px 0;min-width:0}
.buyer-wizard-steps button b{display:grid;place-items:center;background:#e4ecef;border-radius:50%;width:27px;height:27px;flex-shrink:0}
.buyer-wizard-steps button[aria-current=step]{font-weight:800;color:#107b66}.buyer-wizard-steps button[aria-current=step] b{background:#147e69;color:#fff}
.buyer-wizard-guide #buyer-wizard-error{color:#b33b45;margin-top:10px;font-weight:650}.buyer-wizard-guide #buyer-wizard-error:empty{display:none}
.buyer-wizard-footer{position:sticky;bottom:-1px;z-index:2;display:flex;gap:10px;flex-wrap:wrap;padding:16px 0;background:var(--color-surface-base,#fff);border-top:1px solid var(--color-border-default)}
#buyer-wizard-next,#buyer-wizard-save{margin-left:auto}
.buyer-wizard-review h3{font-size:20px;overflow-wrap:anywhere}.buyer-wizard-review p{line-height:1.65;font-size:13px;overflow-wrap:anywhere}.buyer-wizard-review ul{padding:0;list-style:none;display:grid;gap:12px;font-size:13px;color:#147d67}
.buyer-review-credit,.buyer-help-rule{background:#eef8f3;border:1px solid #c7e6d9;color:#236d58;padding:14px;border-radius:9px}
.buyer-json-guide{margin-bottom:18px;padding:16px;border-radius:9px;background:#f3f8fa;border:1px solid #e0eaed}.buyer-json-guide ol{margin:0 0 10px;padding-left:20px;font-size:13px;line-height:1.7}
.buyer-transition-hint{padding:12px;border-radius:8px;background:#f1f6f8;color:#526b79;line-height:1.6}.buyer-transition-hint.buyer-first-hint{background:#eef8f3;border:1px solid #c7e6d9;color:#236d58}
.buyer-help-dialog{padding:0;width:min(1020px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:1px solid var(--color-border-default,#dbe4eb);border-radius:15px;background:var(--color-surface-base,#fff);color:var(--color-text-primary,#203244);overflow:auto;box-sizing:border-box;box-shadow:0 22px 90px #092c3940}
.buyer-help-dialog::backdrop{background:#142d4666;backdrop-filter:blur(3px)}
.buyer-help-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 26px 15px}.buyer-help-head h2{margin:4px 0;font-size:23px}.buyer-help-head .eyebrow{font-size:10px;color:var(--color-text-muted,#6f8394)}
.buyer-help-tabs{display:flex;gap:10px;border-bottom:1px solid var(--color-border-default,#e1e8ef);padding:0 26px}
.buyer-help-tabs button{font:inherit;font-size:13px;line-height:1.5;padding:11px 6px;border:0;border-bottom:3px solid transparent;background:none;color:var(--color-text-secondary,#607383);cursor:pointer}
.buyer-help-tabs button[aria-selected=true]{border-bottom-color:#16836c;color:#127862;font-weight:750}
.buyer-help-body{padding:22px 26px;line-height:1.7;font-size:14px}.buyer-help-dialog [hidden]{display:none!important}
.buyer-help-body video{display:block;width:100%;max-height:calc(100dvh - 240px);background:#17262e;border-radius:8px;object-fit:contain}
.buyer-help-body details{border-top:1px solid var(--color-border-default,#e1e8ef);padding:16px 0}.buyer-help-body summary{cursor:pointer;font-weight:750;line-height:1.55}.buyer-help-body details p{color:var(--color-text-secondary,#607383)}.buyer-help-body li{padding-left:4px;margin:7px 0}.buyer-help-body h3{margin-top:0;font-size:19px}.buyer-help-body dt{margin-top:12px;font-weight:750}.buyer-help-body dd{margin:4px 0 12px;color:var(--color-text-secondary,#607383)}
.buyer-help-dialog button:focus-visible,.buyer-wizard-steps button:focus-visible,.buyer-mode-switch button:focus-visible{outline:2px solid #16836c;outline-offset:3px}
@media(max-width:720px){#buyer-form[data-wizard=true]{grid-template-columns:minmax(0,1fr)}#buyer-form[data-wizard=true] .buyer-parameters,#buyer-form[data-wizard=true]>.buyer-wizard-review{grid-column:1}#buyer-form[data-wizard=true] .buyer-editor-media{height:220px}.buyer-wizard-steps{gap:5px}.buyer-wizard-steps button{font-size:10px;gap:5px;flex-direction:column;align-items:center;text-align:center}.buyer-help-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.buyer-help-head{padding:16px}.buyer-help-head h2{font-size:19px}.buyer-help-tabs{padding:0 16px}.buyer-help-body{padding:18px 16px;font-size:13px}.buyer-wizard-footer button{font-size:12px}.buyer-wizard-guide{padding:14px}}

/* BUYER-REVIEW-01: compact queue, bounded comparison dialog, independent credit badges. */
.buyer-board-page [hidden],.buyer-admin-review [hidden]{display:none!important}
.buyer-credit-badge{display:inline-flex;align-items:center;width:fit-content;font-size:11px;line-height:1.4;padding:3px 7px;border-radius:6px;background:#eef2f6;color:#475467;white-space:normal}
.buyer-credit-APPROVED{background:#e7f6ed;color:#166534}.buyer-credit-PENDING{background:#fff3d6;color:#854d0e}.buyer-credit-VARIATION{background:#efebff;color:#5b21b6}.buyer-credit-REJECTED{background:#feecec;color:#991b1b}
.buyer-credit-panel{padding:10px 12px;border:1px solid var(--color-border-default);border-radius:8px;font-size:12px;display:grid;gap:7px}.buyer-credit-panel>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.buyer-credit-panel p{white-space:pre-wrap;overflow-wrap:anywhere}.buyer-credit-panel small{color:var(--color-text-secondary)}
.buyer-review-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.buyer-review-tabs>button{padding:8px 12px;background:var(--color-surface-base);border:1px solid var(--color-border-default);border-radius:7px;color:var(--color-text-primary);cursor:pointer}.buyer-review-tabs>button[aria-pressed=true]{background:#e9f3ff;border-color:#94b8eb}.buyer-review-tabs label{display:flex;align-items:center;gap:7px;margin-left:auto;font-size:12px}.buyer-review-tabs select{max-width:200px}
.buyer-review-tally{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;margin:8px 0 16px;color:var(--color-text-secondary)}.buyer-review-tally b{color:var(--color-text-primary)}
.buyer-review-queue{display:grid;gap:14px}.buyer-review-queue>p{font-size:13px;color:var(--color-text-secondary)}.buyer-review-filters{display:flex;flex-wrap:wrap;gap:10px}.buyer-review-filters label{display:grid;gap:5px;font-size:12px;min-width:160px}.buyer-review-list{display:grid;gap:6px}.buyer-review-row{display:grid;grid-template-columns:minmax(160px,1fr) 145px 120px 100px;gap:12px;align-items:center;width:100%;padding:12px;text-align:left;border:1px solid var(--color-border-default);border-radius:8px;background:var(--color-surface-base);color:var(--color-text-primary);cursor:pointer}.buyer-review-row:hover{border-color:#94b8eb}.buyer-review-row>span:first-child{display:grid;gap:5px;min-width:0}.buyer-review-row b{overflow-wrap:anywhere}.buyer-review-row small{color:var(--color-text-secondary)}.buyer-review-row>strong{font-size:12px}.buyer-review-pagination{display:flex;gap:8px;align-items:center;font-size:12px}
.buyer-admin-review{width:min(1100px,94vw);max-width:94vw;height:min(840px,92dvh);max-height:92dvh;padding:0;margin:auto;border:1px solid var(--color-border-default);border-radius:12px;background:var(--color-surface-base,#fff);color:var(--color-text-primary);box-shadow:0 20px 70px #0003;overflow:hidden}.buyer-admin-review[open]{display:flex;flex-direction:column}.buyer-admin-review::backdrop{background:#15203388}.buyer-admin-review>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--color-border-default);flex-shrink:0}.buyer-admin-review h2{font-size:18px;margin:0}.buyer-admin-review h3{font-size:15px;margin:0 0 6px}.buyer-admin-review-scroll{padding:14px 16px;overflow:auto;min-height:0;display:grid;gap:14px;overscroll-behavior:contain}.buyer-admin-review p,.buyer-admin-review small{font-size:12px;line-height:1.5}.buyer-admin-review-meta>p{margin:5px 0}.buyer-review-player-grid,.buyer-review-script-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.buyer-review-player-grid section{min-width:0;display:grid;gap:6px;align-content:start}.buyer-review-player-grid b{font-size:12px;overflow-wrap:anywhere}.buyer-review-player{background:#f1f4f8;border-radius:7px;overflow:hidden;height:clamp(120px,24dvh,230px);display:flex;align-items:center;justify-content:center}.buyer-review-player video,.buyer-review-player img{width:100%;height:100%;object-fit:contain}.buyer-review-comparison{display:grid;gap:8px}.buyer-review-comparison summary{font-size:12px;cursor:pointer}.buyer-review-comparison pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font:12px/1.65 system-ui,sans-serif;max-height:230px;overflow:auto;padding:10px;border:1px solid var(--color-border-default);border-radius:7px;margin:6px 0 0}.buyer-review-comparison mark{background:#d9f4e4;color:inherit}.buyer-review-overlap{display:grid;gap:5px;font-size:12px}.buyer-review-overlap small{color:var(--color-text-secondary)}
.buyer-admin-review label{display:grid;gap:5px;font-size:12px}.buyer-admin-review input,.buyer-admin-review textarea{width:100%;box-sizing:border-box}.buyer-review-candidate{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;width:100%;text-align:left;padding:9px;margin-top:6px;border:1px solid var(--color-border-default);border-radius:7px;color:var(--color-text-primary);background:var(--color-surface-base);cursor:pointer;font-size:12px}.buyer-review-candidate>b{overflow-wrap:anywhere}.buyer-review-candidate>strong{color:#9a3412;font-size:11px}.buyer-review-candidate small{color:var(--color-text-secondary)}
.buyer-admin-review>footer{display:grid;gap:7px;padding:10px 16px;border-top:1px solid var(--color-border-default);flex-shrink:0;background:var(--color-surface-base)}.buyer-admin-review textarea{min-height:42px;max-height:80px;resize:vertical}.buyer-review-action-buttons{display:flex;flex-wrap:wrap;gap:8px}.buyer-review-action-buttons button{padding:7px 12px;font-size:12px}.buyer-admin-review #buyer-review-error{color:#b42318;margin:0;white-space:pre-wrap}.buyer-admin-review #buyer-review-error:empty{display:none}.buyer-admin-review #buyer-review-selected{font-size:12px;overflow-wrap:anywhere}.buyer-admin-review :focus-visible,.buyer-review-tabs :focus-visible,.buyer-review-row:focus-visible{outline:2px solid #3679ca;outline-offset:2px}
@media(max-width:760px){.buyer-review-row{grid-template-columns:minmax(100px,1fr) 110px}.buyer-review-row>span:nth-child(3){display:none}.buyer-review-row>strong{display:none}.buyer-review-player-grid,.buyer-review-script-grid{grid-template-columns:1fr}.buyer-admin-review{height:94dvh;max-height:94dvh}.buyer-review-tabs label{margin-left:0}.buyer-review-player{height:160px}}
@media(max-height:650px){.buyer-admin-review{height:96dvh;max-height:96dvh}.buyer-admin-review>header{padding:8px 12px}.buyer-admin-review>footer{padding:7px 12px;gap:4px}.buyer-admin-review-scroll{padding:10px 12px}.buyer-admin-review>footer>small{display:none}.buyer-review-player{height:140px}.buyer-admin-review textarea{max-height:50px}}

/* BUYER-CREATIVES-UX-03: derived poster refresh in the expanded card. */
.buyer-preview-refresh{display:flex;align-items:center;gap:9px;min-height:30px;margin-top:7px}.buyer-preview-refresh span{font-size:10px;color:#39735f;line-height:1.4}.buyer-preview-refresh span.error{color:#a63c43}.buyer-preview-refresh button:disabled{cursor:wait;opacity:.65}

/* BUYER-CREATIVES-UX-03: first-screen density and derived poster refresh. */
.buyer-production{grid-template-columns:190px minmax(0,1fr);gap:10px;margin:10px 0}.buyer-today{border-radius:11px;padding:10px 13px}.buyer-today>span{font-size:9px}.buyer-today strong{font-size:28px;margin:3px 0}.buyer-today small{font-size:16px}.buyer-today p,.buyer-spy-today{font-size:10px}.buyer-spy-today{margin-top:5px}.buyer-board-kpis{display:grid;grid-template-columns:repeat(5,minmax(88px,130px));justify-content:start;gap:7px;align-self:start}.buyer-board-kpis span{display:flex;justify-content:space-between;gap:7px;align-items:center;min-height:34px;padding:7px 9px;border:1px solid var(--color-border-default);border-radius:9px;background:var(--color-surface-base);font-size:10px;color:var(--color-text-secondary)}.buyer-board-kpis b{font-size:14px;color:var(--color-text-primary)}.buyer-production-history{grid-column:1/-1;padding:0;border-radius:10px}.buyer-production-history>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;cursor:pointer;list-style:none;font-size:11px}.buyer-production-history>summary::-webkit-details-marker{display:none}.buyer-production-history>summary>span{display:flex;gap:10px;align-items:center;min-width:0}.buyer-production-history>summary small{font-size:10px;color:var(--color-text-secondary)}.buyer-production-history>summary>strong{font-size:10px;color:#157f70}.buyer-production-history[open] .buyer-days{border-top:1px solid var(--color-border-default);padding:9px 12px 11px}.buyer-day{gap:5px;padding:7px 3px}.buyer-day b{font-size:17px}.buyer-day span{font-size:9px}.buyer-board-filters{gap:8px;padding:10px;border-radius:10px}.buyer-board-filters label{gap:4px;font-size:9px;min-width:95px}.buyer-board-filters .buyer-search-label{min-width:180px}.buyer-board-filters input,.buyer-board-filters select{font-size:11px;padding:7px;height:34px}.buyer-board-filters>button{height:34px}.buyer-period-summary{font-size:10px;padding:6px 2px}.buyer-team-empty-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin:4px 0 10px;border:1px solid #cfe3ed;border-radius:9px;background:#f3f9fc;color:#476474;font-size:11px}.buyer-team-empty-hint b{color:var(--color-text-primary)}.buyer-preview-refresh{display:flex;align-items:center;gap:9px;min-height:30px;margin-top:7px}.buyer-preview-refresh span{font-size:10px;color:#39735f;line-height:1.4}.buyer-preview-refresh span.error{color:#a63c43}.buyer-preview-refresh button:disabled{cursor:wait;opacity:.65}
@media(max-width:900px){.buyer-production{grid-template-columns:170px minmax(0,1fr)}.buyer-board-kpis{grid-template-columns:repeat(3,minmax(80px,1fr))}.buyer-production-history{padding:0}.buyer-production-history>summary small{display:none}}
@media(max-width:560px){.buyer-production{grid-template-columns:1fr;gap:8px}.buyer-today{padding:11px}.buyer-board-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.buyer-production-history{grid-column:1;padding:0}.buyer-team-empty-hint{align-items:flex-start;flex-direction:column}}

/* BUYER-BOARD-USABILITY-04 — board-only visual and accessibility closure. */
.buyer-board-page{--buyer-board-meta:var(--color-text-secondary,#526171);--buyer-board-radius-sm:7px;--buyer-board-radius-md:10px;--buyer-board-radius-lg:14px}
.buyer-board-page .buyer-production{align-items:start}
.buyer-board-page .buyer-today,.buyer-board-page .buyer-production-history{border-radius:var(--buyer-board-radius-lg)}
.buyer-board-page .buyer-today>span{font-size:11px;color:var(--buyer-board-meta)}
.buyer-board-page .buyer-today p,.buyer-board-page .buyer-spy-today{font-size:12px;color:var(--buyer-board-meta)}
.buyer-board-page .buyer-board-kpis span{font-size:12px;border-radius:var(--buyer-board-radius-sm)}
.buyer-board-page .buyer-production-history{grid-column:1/-1}
.buyer-board-page .buyer-production-history>summary{gap:12px;min-height:70px}
.buyer-board-page .buyer-production-history>summary>.buyer-trend-heading{display:grid;flex:1 1 210px;gap:4px;min-width:165px}
.buyer-board-page .buyer-production-history>summary b,.buyer-board-page .buyer-production-history>summary>strong{font-size:12px;color:var(--color-text-primary)}
.buyer-board-page .buyer-production-history>summary small{font-size:11px;color:var(--buyer-board-meta)}
.buyer-trend-inline{min-width:155px;max-width:430px;flex:1 1 260px;display:grid;gap:1px}
.buyer-trend-inline svg{height:45px;width:100%;overflow:visible}
.buyer-trend-area{fill:#529584;fill-opacity:.15}
.buyer-trend-line{fill:none;stroke:#277c70;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.buyer-trend-inline circle{fill:#277c70;stroke:#fff;stroke-width:1.2;vector-effect:non-scaling-stroke}
.buyer-trend-inline circle.buyer-trend-today{fill:#a86636;stroke-width:2}
.buyer-trend-dates{display:flex;justify-content:space-between;gap:8px;color:var(--buyer-board-meta);font-size:11px}
.buyer-board-page .buyer-day{font-size:12px;color:var(--buyer-board-meta);border-radius:var(--buyer-board-radius-sm)}
.buyer-board-page .buyer-day b{font-size:17px;color:var(--color-text-primary)}
.buyer-board-page .buyer-day span{font-size:11px}
.buyer-board-page .buyer-board-filters{border-radius:var(--buyer-board-radius-md)}
.buyer-board-page .buyer-board-filters label{font-size:12px;color:var(--buyer-board-meta)}
.buyer-board-page .buyer-board-filters input,.buyer-board-page .buyer-board-filters select{font-size:12px;border-radius:var(--buyer-board-radius-sm)}
.buyer-board-page .buyer-period-summary{font-size:12px;color:var(--buyer-board-meta)}
/* Only the page scrolls vertically. Horizontal kanban navigation is retained on narrow screens. */
.buyer-board-page .buyer-kanban{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;align-items:start;gap:10px}
.buyer-board-page .buyer-kanban-column{display:flex;flex-direction:column;min-height:310px;overflow:visible;border-radius:var(--buyer-board-radius-lg);align-self:start}
.buyer-board-page .buyer-kanban-column>header{position:sticky;top:0;z-index:2;border-radius:var(--buyer-board-radius-lg) var(--buyer-board-radius-lg) 0 0;padding:11px 10px}
.buyer-board-page .buyer-kanban-column>header>b{font-size:12px;color:var(--color-text-primary)}
.buyer-board-page .buyer-column-scroll{max-height:none;min-height:0;overflow:visible;flex:0 0 auto;gap:10px;padding:8px;display:flex;flex-direction:column}
.buyer-board-page .buyer-column-empty{flex:0 0 auto;min-height:230px;display:grid;place-items:center;padding:22px 9px;color:var(--buyer-board-meta);font-size:12px;border-radius:var(--buyer-board-radius-md)}
.buyer-board-page .buyer-kanban-card{border-radius:var(--buyer-board-radius-md)}
.buyer-board-page .buyer-board-content{display:grid;grid-template-columns:minmax(65px,35%) minmax(0,1fr);gap:9px;padding:9px}
.buyer-board-page .buyer-board-media{height:auto;aspect-ratio:9/16;min-width:0;width:100%;border-radius:var(--buyer-board-radius-sm);align-self:start;overflow:hidden}
.buyer-board-page .buyer-board-media img,.buyer-board-page .buyer-board-media video{object-fit:cover;object-position:center;position:absolute;inset:0;width:100%;height:100%}
.buyer-board-page .buyer-board-media .buyer-no-media{font-size:11px;min-height:0;padding:6px}
.buyer-board-page .buyer-board-media .buyer-review-badge{white-space:normal;left:2px;right:2px;top:4px;font-size:10px;text-align:center}
.buyer-board-page .buyer-board-copy{min-width:0;padding:0}
.buyer-board-page .buyer-board-copy h3{font-size:12px;line-height:1.4;font-weight:750;margin:0 0 5px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.buyer-board-page .buyer-card-id{display:block;font:11px/1.35 ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--buyer-board-meta);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:6px}
.buyer-board-page .buyer-board-meta,.buyer-board-page .buyer-board-owner,.buyer-board-page .buyer-board-age,.buyer-board-page .buyer-card-missing,.buyer-board-page .buyer-card-complete,.buyer-board-page .buyer-origin-badge,.buyer-board-page .buyer-credit-badge{font-size:11px;line-height:1.45}
.buyer-board-page .buyer-board-owner,.buyer-board-page .buyer-board-age{color:var(--buyer-board-meta);margin-top:5px}
.buyer-board-page .buyer-board-meta{gap:4px}
.buyer-board-page .buyer-origin-badge,.buyer-board-page .buyer-credit-badge{border-radius:var(--buyer-board-radius-sm);padding:2px 5px}
.buyer-board-page .buyer-board-result{font-size:12px;margin:0 9px 9px}
.buyer-board-page .buyer-card-missing,.buyer-board-page .buyer-card-complete{margin-top:6px}
.buyer-board-page .buyer-kanban-card footer{padding:6px 10px}
.buyer-board-page .buyer-move-button{font-size:12px}
.buyer-board-page .buyer-team-empty-hint{font-size:12px;color:var(--buyer-board-meta)}
.buyer-board-page .buyer-review-badge{font-size:11px;border-radius:var(--buyer-board-radius-sm)}
.buyer-board-page .buyer-trash-caption{color:var(--buyer-board-meta)}
.buyer-board-page .buyer-kanban-card :focus-visible,.buyer-board-page .buyer-production-history summary:focus-visible{outline:2px solid var(--color-action-primary,#257b70);outline-offset:2px}
/* Programmatic route focus should not frame the heading itself. Keyboard controls keep focus-visible. */
.buyer-board-page h1[tabindex="-1"]:focus,.buyer-board-page h1[tabindex="-1"]:focus-visible{outline:none;box-shadow:none}
#buyer-form[data-wizard="true"] #buyer-wizard-next{margin-left:auto}
#buyer-form[data-wizard="true"] #buyer-wizard-save{margin-left:0}
@media(max-width:1250px){.buyer-board-page .buyer-kanban{grid-template-columns:repeat(5,minmax(235px,1fr));overflow-x:auto;overscroll-behavior-inline:contain}.buyer-board-page .buyer-kanban-column>header{position:sticky}}
@media(max-width:900px){.buyer-board-page .buyer-production-history>summary{flex-wrap:wrap}.buyer-trend-inline{max-width:none;flex-basis:100%;order:3}.buyer-board-page .buyer-production-history>summary small{display:block}}
@media(max-width:560px){.buyer-board-page .buyer-kanban{grid-template-columns:repeat(5,minmax(245px,80vw))}.buyer-board-page .buyer-board-content{grid-template-columns:76px minmax(0,1fr)}.buyer-board-page .buyer-production-history>summary{min-height:0}.buyer-board-page .buyer-production-history>summary small{display:block}}
/* Final usability QA: secondary text and ID-style chips use the same contrast/radius contract. */
.buyer-board-page .buyer-today small{color:var(--buyer-board-meta)}
.buyer-board-page .buyer-board-meta b{border-radius:var(--buyer-board-radius-sm)}

/* BUYER-BOARD-CORRECTIVE-05: prevent empty columns from inheriting tall lanes. */
.buyer-board-page .buyer-kanban{align-items:start}
.buyer-board-page .buyer-kanban-column{align-self:start}
.buyer-board-page .buyer-column-empty{align-content:start;place-items:initial;text-align:left;min-height:140px;padding:16px 12px}
.buyer-board-page .buyer-trend-toggle{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border:1px solid var(--color-border-default);border-radius:7px;padding:8px 10px;font-size:12px;font-weight:650;background:var(--color-surface-base);color:var(--color-text-secondary)}
.buyer-board-page .buyer-trend-peak{fill:var(--color-text-primary,#203244);font:700 10px system-ui,sans-serif;paint-order:stroke;stroke:var(--color-surface-base,#fff);stroke-width:3px}
.buyer-board-page .buyer-trend-inline svg{height:62px}
.buyer-board-page .buyer-board-kpis{grid-template-columns:repeat(4,minmax(105px,145px))}
.buyer-board-page .buyer-review-filters{padding:13px;background:var(--color-surface-base);border:1px solid var(--color-border-default);border-radius:10px;align-items:end}
.buyer-board-page .buyer-review-filters label{color:var(--color-text-secondary);font-size:12px;flex:1 1 185px}
.buyer-board-page .buyer-review-filters input,.buyer-board-page .buyer-review-filters select,.buyer-review-tabs select{width:100%;min-width:0;min-height:38px;padding:8px 10px;border:1px solid var(--color-border-default);border-radius:7px;background:var(--color-surface-base);color:var(--color-text-primary);font:inherit;font-size:12px}
.buyer-board-page .buyer-review-empty{display:grid;gap:8px;padding:22px;border:1px dashed var(--color-border-default);border-radius:10px;background:var(--color-surface-base);color:var(--color-text-secondary);font-size:12px}
.buyer-board-page .buyer-review-empty strong{font-size:14px;color:var(--color-text-primary)}
.buyer-board-page .buyer-review-empty button{justify-self:start}
.buyer-board-page .buyer-review-tally{font-size:12px}
@media(max-width:900px){.buyer-board-page .buyer-board-kpis{grid-template-columns:repeat(3,minmax(90px,1fr))}}
@media(max-width:560px){.buyer-board-page .buyer-board-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* BUYER-REVIEW-WORKSPACE-07 — one evidence scroll, pinned decisions, visible rail. */
.buyer-admin-review{width:min(1240px,96vw);max-width:96vw;height:min(900px,95dvh);max-height:95dvh;border-radius:14px}
.buyer-admin-review-scroll{display:block;overflow-y:auto;overflow-x:hidden;min-height:0;padding:14px 18px;overscroll-behavior:contain}
.buyer-review-verdict{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--color-border-default);border-radius:10px;padding:12px 14px;margin-bottom:12px;background:var(--color-surface-subtle)}
.buyer-review-verdict-warning{border-color:#d9bc80;background:#fff7e5}
.buyer-review-verdict strong{font-size:14px}.buyer-review-verdict p{margin:4px 0 0;font-size:12px}
.buyer-review-verdict-stats{display:grid;gap:3px;text-align:right;white-space:nowrap;font-size:12px;font-weight:700}
.buyer-review-verdict-stats small{color:var(--color-text-secondary);font-weight:400}
.buyer-review-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.buyer-review-evidence{display:grid;gap:12px;min-width:0}.buyer-review-evidence-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.buyer-review-evidence-heading>b{font-size:15px}.buyer-review-evidence-heading>span{font-size:12px;color:var(--color-text-secondary)}
.buyer-review-source-rail{display:grid;gap:10px;align-content:start;min-width:0;padding:12px;border:1px solid var(--color-border-default);border-radius:10px;background:var(--color-surface-subtle)}
.buyer-review-source-rail h3{margin:0!important;font-size:14px}.buyer-review-source-rail label{font-size:12px;color:var(--color-text-secondary)}
.buyer-admin-review input[type=search],.buyer-admin-review textarea{border:1px solid var(--color-border-default);border-radius:10px;background:var(--color-surface-base);font:inherit;font-size:12px;min-height:38px;padding:8px 10px;color:var(--color-text-primary);outline-offset:2px}
.buyer-review-source-rail .buyer-review-candidates{display:grid;gap:6px;min-height:0}
.buyer-review-source-rail .buyer-review-candidate{display:grid;grid-template-columns:45px minmax(0,1fr) 15px;gap:8px;align-items:center;margin:0;padding:7px;border-radius:10px;border:1px solid var(--color-border-default);background:var(--color-surface-base);text-align:left}
.buyer-review-candidate.is-selected{border-color:var(--color-action-primary);box-shadow:inset 0 0 0 1px var(--color-action-primary)}
.buyer-review-thumb{width:45px;height:72px;border-radius:7px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#dce5ec}
.buyer-review-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.buyer-review-candidate-copy{min-width:0;display:grid;gap:4px}.buyer-review-candidate-copy b{font-size:12px;overflow-wrap:anywhere}.buyer-review-candidate-copy small{font-size:11px;line-height:1.35;color:var(--color-text-secondary)}
.buyer-review-source-choice{padding:10px;border-radius:10px;border:1px solid var(--color-border-default);background:var(--color-surface-base)}.buyer-review-source-choice>strong{font-size:12px}.buyer-review-source-choice p{margin:6px 0 9px}
.buyer-review-player-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.buyer-review-player-grid section{min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px}
.buyer-review-player-grid section>b,.buyer-review-player-grid section>small{width:100%;text-align:left;font-size:12px}
.buyer-review-player{height:clamp(180px,33dvh,290px);width:auto;aspect-ratio:9/16;max-width:100%;margin:0 auto;border-radius:10px;background:#e7edf2}
.buyer-review-player video,.buyer-review-player img{display:block;object-fit:cover;width:100%;height:100%}
.buyer-review-comparison{min-width:0;display:grid;gap:10px}.buyer-review-overlap{display:flex;flex-wrap:wrap;gap:8px 18px;padding:10px;border:1px solid var(--color-border-default);border-radius:10px;font-size:12px}
.buyer-review-identical{padding:16px;border:1px solid var(--color-border-default);border-radius:10px;background:var(--color-surface-subtle)}.buyer-review-identical>b{font-size:13px}.buyer-review-identical p{color:var(--color-text-secondary);margin:5px 0 0}
.buyer-review-script-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}.buyer-review-script-grid section{min-width:0}.buyer-review-script-grid h4{margin:0 0 7px;font-size:12px}
.buyer-review-script-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;border:1px solid var(--color-border-default);border-radius:10px;padding:10px;margin:8px 0;max-height:none;overflow:visible}.buyer-review-script-text mark{background:#d9f4e4;color:inherit}
.buyer-admin-review>footer{padding:10px 18px;gap:6px}.buyer-review-reason{display:flex;gap:9px;align-items:center;min-width:0}.buyer-review-reason-quick{display:flex;gap:5px;flex-wrap:wrap;align-items:center;flex:1}.buyer-review-reason-quick span{font-weight:700;font-size:12px}.buyer-review-reason-quick button{padding:5px 8px;font-size:11px!important}
.buyer-review-reason textarea{width:min(410px,48%);min-width:180px;min-height:42px;max-height:90px;resize:vertical}
.buyer-review-footer-row{display:flex;gap:14px;align-items:center;justify-content:space-between}.buyer-review-next{display:flex!important;align-items:center;gap:5px;font-size:12px;color:var(--color-text-secondary)}.buyer-review-next input{width:auto;min-height:0}
.buyer-review-action-buttons{margin-left:auto;justify-content:flex-end}.buyer-review-action-buttons button{border-radius:10px}.buyer-review-action-buttons button:disabled{opacity:.5;cursor:not-allowed}
.buyer-geo-results{display:flex;flex-wrap:wrap;gap:7px;margin-top:6px}.buyer-geo-results>span{padding:6px 9px;border-radius:10px;background:var(--color-surface-subtle);border:1px solid var(--color-border-default);font-size:11px}
@media(max-width:850px){.buyer-review-workspace{grid-template-columns:minmax(0,1fr)}.buyer-review-source-rail{grid-row:1}.buyer-review-candidates{grid-template-columns:repeat(2,minmax(0,1fr))}.buyer-review-reason{flex-direction:column;align-items:stretch}.buyer-review-reason textarea{width:100%}.buyer-review-verdict{align-items:flex-start;flex-direction:column}.buyer-review-verdict-stats{text-align:left}.buyer-review-footer-row{align-items:stretch;flex-direction:column}.buyer-review-player{height:220px}}
@media(max-width:520px){.buyer-review-candidates{grid-template-columns:1fr}.buyer-review-player{height:170px}.buyer-admin-review-scroll{padding:10px}.buyer-admin-review>footer{padding:10px}.buyer-review-action-buttons button{flex:1;padding:8px 6px}.buyer-review-script-grid{grid-template-columns:1fr}}
/* Programmatic dialog heading focus is not an interactive keyboard focus stop. */
.buyer-admin-review h2[tabindex="-1"]:focus{outline:none}

/* BUYER-PRODUCTION-BARS-09: compact daily activity since 15 Oct; no pre-launch zeros. */
.buyer-board-page .buyer-production{grid-template-columns:190px minmax(310px,520px) minmax(0,1fr);gap:12px;align-items:start}
.buyer-board-page .buyer-today{grid-column:1;grid-row:1}
.buyer-board-page .buyer-production-history{grid-column:2;grid-row:1;min-width:0}
.buyer-board-page .buyer-board-kpis{grid-column:3;grid-row:1;grid-template-columns:repeat(2,minmax(100px,1fr));align-self:start}
.buyer-board-page .buyer-production-history>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 12px;padding:12px 15px;min-height:0}
.buyer-board-page .buyer-production-history>summary>.buyer-trend-heading{grid-column:1;grid-row:1;min-width:0;gap:3px}
.buyer-board-page .buyer-trend-toggle{grid-column:2;grid-row:1;padding:6px 8px}
.buyer-board-page .buyer-trend-inline{grid-column:1/-1;grid-row:2;min-width:0;max-width:none;width:100%;display:grid;gap:0}
.buyer-board-page .buyer-trend-inline svg{width:100%;height:105px;overflow:visible;display:block}
.buyer-board-page .buyer-trend-bar.buyer-trend-workday.buyer-trend-positive{fill:#328f76}
.buyer-board-page .buyer-trend-bar.buyer-trend-weekend.buyer-trend-positive{fill:#809d91}
.buyer-board-page .buyer-trend-bar.buyer-trend-zero{fill:#d5dfe5}
.buyer-board-page .buyer-trend-bar.buyer-trend-today{stroke:#526171;stroke-width:1.4}
.buyer-board-page .buyer-trend-baseline{stroke:#cbd6dd;stroke-width:1.4;fill:none}
.buyer-board-page .buyer-trend-value{fill:var(--color-text-primary);font:700 12px system-ui,sans-serif}
.buyer-board-page .buyer-trend-axis{fill:var(--color-text-secondary);font:500 11px system-ui,sans-serif}
.buyer-board-page .buyer-trend-legend,.buyer-board-page .buyer-trend-empty{font-size:11px;color:var(--color-text-secondary);margin:0 0 2px}
.buyer-board-page .buyer-days{grid-template-columns:repeat(auto-fit,minmax(38px,1fr));gap:5px}
.buyer-board-page .buyer-day.optional{background:#f7f9fa;border-style:dashed}
.buyer-board-page .buyer-day.optional.met{box-shadow:none}
@media(max-width:1250px){.buyer-board-page .buyer-production{grid-template-columns:190px minmax(0,1fr)}.buyer-board-page .buyer-board-kpis{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.buyer-board-page .buyer-production{grid-template-columns:minmax(0,1fr)}.buyer-board-page .buyer-today{grid-column:1;grid-row:1}.buyer-board-page .buyer-production-history{grid-column:1;grid-row:2}.buyer-board-page .buyer-board-kpis{grid-column:1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr))}.buyer-board-page .buyer-trend-inline svg{height:94px}}
/* BUYER-CREATIVE-LINEAGE-10: independent idea provenance and administrator assessment */
.buyer-creation-basis{border:1px solid var(--color-border-default);border-radius:10px;display:grid;gap:10px;padding:13px;min-width:0}
.buyer-creation-basis>legend,.buyer-reference-changes>legend{font-weight:700;color:var(--color-text-primary);font-size:13px;padding:0 5px}
.buyer-creation-basis>label,.buyer-reference-changes>label{display:flex;align-items:center;gap:9px;color:var(--color-text-primary);font-size:13px;line-height:1.4}
.buyer-reference-details{display:grid;gap:10px;padding:12px;border-radius:10px;background:var(--color-surface-subtle)}
.buyer-reference-details[hidden],.buyer-reference-details [hidden]{display:none!important}
.buyer-reference-details p{margin:0;color:var(--color-text-secondary);font-size:12px}
.buyer-reference-details label{display:grid;gap:6px;min-width:0;font-size:12px}
.buyer-reference-details input[type=file]{width:0;height:0;opacity:0;position:absolute}
.buyer-reference-changes{display:grid;gap:9px;border:1px solid var(--color-border-default);border-radius:10px;padding:11px}
.buyer-reference-changes label{display:flex;align-items:center;gap:8px}
.buyer-reference-details input[type=checkbox],.buyer-creation-basis input[type=radio]{width:15px;height:15px;flex:0 0 15px}
.buyer-reference-review{display:grid;gap:10px;border:1px solid var(--color-border-default);border-radius:10px;padding:12px}
.buyer-reference-review h3{margin:0;font-size:14px}.buyer-reference-review p{margin:0;font-size:12px;color:var(--color-text-secondary)}
.buyer-reference-review-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.buyer-reference-review-content>section{display:grid;gap:8px;align-content:start;min-width:0}
.buyer-reference-review-content .buyer-review-player{height:180px}
.buyer-reference-review .buyer-reference-missing{font-size:12px;color:var(--color-text-secondary);background:var(--color-surface-subtle);padding:12px;border-radius:10px}
.buyer-reference-tags{display:flex;flex-wrap:wrap;gap:5px}.buyer-reference-tags span{font-size:11px;padding:4px 7px;border:1px solid var(--color-border-default);border-radius:7px}
.buyer-reference-scripts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:100%;overflow-wrap:anywhere}
.buyer-reference-scripts p{white-space:pre-wrap;line-height:1.5}
.buyer-reference-assessment{display:grid;gap:10px;background:var(--color-surface-subtle);padding:12px;border-radius:10px}
.buyer-reference-assessment-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.buyer-reference-assessment-choices label{display:flex;gap:6px;align-items:center;font-size:12px}
.buyer-reference-assessment textarea{min-height:55px;width:100%;border:1px solid var(--color-border-default);border-radius:10px;padding:8px;font:inherit}
@media(max-width:560px){.buyer-reference-review-content,.buyer-reference-scripts{grid-template-columns:1fr}.buyer-reference-review-content .buyer-review-player{height:200px}}

/* BUYER-TIMESTAMPS-11: precise audit timestamps; no status/credit visual changes. */
.buyer-board-page .buyer-card-times{display:grid;gap:2px;color:var(--color-text-secondary);font-size:11px;line-height:1.45}
.buyer-card-times span{display:block;white-space:normal;overflow-wrap:anywhere}
.buyer-card-times b{font-weight:650}
.buyer-detail-timestamps{border:1px solid var(--color-border-default);border-radius:10px;padding:10px 14px;margin-bottom:14px;color:var(--color-text-secondary);font-size:12px}
.buyer-time-label{font-size:11px;font-weight:650;margin-bottom:5px}
.buyer-time-items{display:flex;gap:8px 18px;flex-wrap:wrap}
.buyer-time-items span{white-space:normal}
.buyer-time-items b{color:var(--color-text-primary);font-weight:650}
.buyer-timestamp-unavailable{display:block;color:var(--color-text-secondary);font-size:11px;margin-top:5px}
@media(max-width:560px){.buyer-detail-timestamps{padding:10px}.buyer-time-items{display:grid;gap:5px}}


