.branding-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(280px,.85fr);gap:32px;align-items:start}.branding-section{margin:0 0 14px}.branding-section summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px;cursor:pointer}.branding-section summary>span:first-child:before{content:'▸';margin-right:9px}.branding-section[open] summary>span:first-child:before{content:'▾'}.branding-section summary small{display:block;margin:5px 0 0 20px;font-weight:400;color:#77806f;font-size:12px}.branding-section summary .branding-indicator{font-size:11px;padding:4px 8px;border-radius:20px;background:#f0f2ec;white-space:nowrap}.branding-indicator.on{background:#d3f578!important;color:#263219}.branding-fields{padding:0 20px 20px}.branding-fields-inner{display:grid;gap:16px}.branding-fields label{display:block;font-size:13px}.branding-fields input[type=range]{display:block;width:100%;padding:0;margin:10px 0 0;accent-color:#86a843;min-height:24px}.branding-fields output{float:right;font-variant-numeric:tabular-nums;color:#6a765e}.branding-fields select{width:100%;margin-top:7px}.branding-switch{display:flex!important;align-items:center;justify-content:space-between;padding:8px 0 18px;gap:16px;font-weight:600}.branding-switch input{width:38px;height:22px;accent-color:#80a433}.branding-file input{display:block;margin:8px 0;max-width:100%;font-size:12px}.branding-save{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:24px}.branding-preview{position:sticky;top:24px;padding:24px;background:#fff;border:1px solid #e0e5d9;border-radius:18px}.branding-preview canvas,#brandJobCanvas{display:block;width:100%;height:auto;border-radius:12px;background:#192014;margin:18px 0;max-height:52vh;object-fit:contain}.branding-preview select{width:100%;margin-top:8px}.branding-tabs{display:flex;gap:6px;margin-top:18px}.branding-tabs button{flex:1;padding:9px 8px;border-radius:8px;border:1px solid #e0e5d9;background:#fff;color:#46503d;cursor:pointer}.branding-tabs button[aria-pressed=true]{background:#d3f578;border-color:#d3f578}.card-branding{display:block;margin-top:8px;color:#5a7138}.branding-job{max-width:720px;width:calc(100% - 32px)}.branding-job progress{width:100%;height:9px;accent-color:#aed958}.branding-job .review-actions{gap:12px;flex-wrap:wrap}.branding-job-percent{font-variant-numeric:tabular-nums;font-size:30px;font-weight:650}.branding-job-copy{min-height:46px}.nav-branding{margin-top:6px}.branding-preview .muted,.branding-fields .muted{font-size:12px;line-height:1.7}.branding-section summary::-webkit-details-marker{display:none}#successBranding{margin-top:16px}#brandingPanel[hidden],#videosPanel[hidden]{display:none!important}@media(max-width:1050px){.branding-layout{grid-template-columns:1fr}.branding-preview{position:static;max-width:680px}}@media(max-width:760px){.sidebar #navVideos,.sidebar #navBranding{display:flex;margin:4px 0;padding:10px 14px;font-size:13px}.sidebar{flex-wrap:wrap}.branding-fields{padding:0 15px 18px}.branding-preview{padding:18px}.branding-section summary{padding:16px}.branding-layout{gap:20px}}
.branding-section{padding:0}.branding-section summary>span:first-child{display:block;font-size:14px;font-weight:600;color:#2c3527;margin:0}.branding-section summary .branding-indicator{margin:0}.branding-fields select,.branding-preview select{padding:10px;border:1px solid #dce1d4;border-radius:8px;background:#fafcf7;color:#26341e}.branding-fields input[type=file]{padding:10px;border:1px dashed #ccd5be;border-radius:8px;width:100%;background:#f8faf5}.branding-fields input[type=file]::file-selector-button{padding:8px 11px;border:0;border-radius:6px;background:#edf3e4;margin-right:9px;color:#3a4a2d;cursor:pointer}.branding-section .branding-fields p{margin:0}.branding-preview>label{font-size:13px}.branding-job .muted{font-size:13px}.branding-job #brandJobTitle{overflow-wrap:anywhere}.branding-job .review-actions .text-button{text-align:left}.branding-preview canvas{max-height:44vh}@media(max-width:760px){.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sidebar>.brand{grid-column:1;grid-row:1}.sidebar>.profile{grid-column:2;grid-row:1;justify-self:end}.sidebar #navVideos{grid-column:1;grid-row:2}.sidebar #navBranding{grid-column:2;grid-row:2}.branding-save .muted{font-size:12px}}
/* 5.1: mixer-style corner selection, independent margins, persistent file labels. */
.branding-corners{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:8px}.branding-corners button{display:grid;place-items:center;min-height:56px;padding:9px;border:1px solid #dce1d4;border-radius:10px;background:#fafcf7;color:#7a8570;transition:background .15s,border-color .15s}.branding-corners button:hover{background:#edf3e4}.branding-corners button[aria-pressed=true]{background:#d3f578;border-color:#8dad48;color:#354820;box-shadow:0 0 0 1px #8dad48}.branding-corners svg{width:42px;height:32px;stroke-width:1.5}.branding-corners .corner-mark{fill:currentColor;stroke:none}.branding-file{font-size:13px}.branding-file-row{display:flex;align-items:center;gap:12px;margin:9px 0}.branding-file-row .button{flex-shrink:0;font-size:12px;padding:10px 12px;min-height:39px}.branding-filename{font-size:12px;color:#536346;overflow-wrap:anywhere;min-width:0;line-height:1.5}.video-card .card-branding{display:flex;width:100%;gap:8px;margin-top:12px;padding:10px 12px;min-height:40px;font:inherit;font-size:12px;font-weight:600;line-height:1.4;white-space:normal;color:#4f613e;background:#f5f8ef;border:1px solid #dce4cf;border-radius:9px;text-align:center}.video-card .card-branding:hover{background:#edf3e4}.video-card .card-branding svg{width:16px;height:16px;flex-shrink:0}.video-card .card-branding span{min-width:0}@media(max-width:430px){.branding-file-row{align-items:flex-start;flex-direction:column}.branding-corners{gap:6px}}
