/* 28 Nov 2026: Branding page on the sx system. Built by tools/branding_sx_2026_11_28.py. Prefix br-.
   (Old file: patches/_bak_2026_11_28_pages/branding.css) Studio windows reuse .ac-win; the Design fields are drawn here as the Studio draws them (look-fields.tsx). */
.sx-sec.sx-hero{padding:0!important}
.sx .sx-ph img{transition:opacity .25s}
/* live guide: the still sits under the iframe, which fades in once the guide says it is ready */
.br-live{position:relative;--s:.7}
.br-live iframe{opacity:0;transition:opacity .25s}.br-live.rdy iframe{opacity:1}
.br-pv .sx-ph{width:273px;border-radius:34px}
/* ---------- Studio window ---------- */
.br-win{width:100%;height:auto;min-height:0;background:#14161B;box-shadow:0 30px 80px -30px rgba(0,0,0,.6),0 0 0 1px rgba(255,255,255,.07)}
.br-win .ac-rail{display:none}.br-win .ac-main{min-width:0}
.br-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px}
.br-hs{display:flex;align-items:center;gap:14px;font-size:13px;color:rgba(255,255,255,.6)}
.br-undo{appearance:none;border:0;background:none;font:inherit;color:rgba(255,255,255,.6);cursor:pointer;padding:0}.br-undo:hover{color:#fff}
.br-undo[hidden]{display:none}
.br-save{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:10px;background:rgba(255,255,255,.1);color:rgba(255,255,255,.4);font-size:13.5px;font-weight:500;transition:background .2s,color .2s}
.br-save.ready{background:#EDEDEB;color:#0B0C10}
.br-dsn{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:28px;margin-top:6px;align-items:start}
.br-dsn>*{min-width:0}
.br-pv{display:flex;justify-content:center;padding:16px;border-radius:16px;background:rgba(0,0,0,.25)}
/* rows, as the Studio's Group and Row */
.br-g{border-radius:16px;background:rgba(21,23,27,.62);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.br-g>*+*{border-top:1px solid rgba(255,255,255,.07)}
.br-r{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;min-height:64px}
.br-r.stk{flex-direction:column;align-items:stretch;gap:10px}
.br-l{display:flex;flex-direction:column;gap:2px;min-width:0}
.br-l b{font-size:14px;font-weight:400;color:#F7F7F5}.br-l span{font-size:12.5px;line-height:1.4;color:rgba(255,255,255,.55)}
.br-c{display:flex;align-items:center;gap:8px;flex:none}
/* logo thumbnail */
.br-thumb{display:flex;align-items:center;justify-content:center;width:72px;height:40px;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);background:#0E0F12;overflow:hidden}
.br-thumb img{width:100%;height:100%;object-fit:contain;padding:6px}
.br-link{appearance:none;border:0;background:none;font:inherit;font-size:13px;width:56px;text-align:right;color:rgba(255,255,255,.75);cursor:pointer}.br-link:hover{color:#fff}
.br-link.rm{color:rgba(255,255,255,.55)}.br-link.rm:hover{color:#F58B84}
/* swatches */
.br-sw{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.br-sw button,.br-any{appearance:none;border:0;padding:0;width:24px;height:24px;border-radius:6px;cursor:pointer;transition:transform .15s;position:relative}
.br-sw button:hover,.br-any:hover{transform:scale(1.1)}
.br-sw button[aria-checked=true],.br-sw button[aria-pressed=true],.br-any.on{box-shadow:0 0 0 2px #17191d,0 0 0 4px #fff}
.br-sw .gap{margin-right:4px}
.br-any{background:conic-gradient(#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);display:inline-block;overflow:hidden}
.br-any input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;border:0;padding:0}
button:focus-visible,.br-any:focus-within,.br-in:focus-visible{outline:2px solid rgba(255,255,255,.7);outline-offset:2px}
/* segmented, as the Studio's Segmented */
.br-seg{display:inline-flex;gap:2px;padding:3px;border-radius:10px;background:rgba(255,255,255,.07)}
.br-seg button{appearance:none;border:0;height:28px;padding:0 12px;border-radius:7px;background:none;font:inherit;font-size:13.5px;color:rgba(255,255,255,.6);cursor:pointer;transition:background .15s,color .15s}
.br-seg button:hover{color:#fff}.br-seg button[aria-checked=true]{background:rgba(255,255,255,.14);color:#F7F7F5}
/* inputs */
.br-in{width:100%;min-width:0;height:36px;padding:0 12px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.2);color:#F7F7F5;font:inherit;font-size:14px;transition:border-color .15s}
.br-in:hover{border-color:rgba(255,255,255,.2)}.br-in:focus{outline:0;border-color:rgba(255,255,255,.34)}.br-in::placeholder{color:rgba(255,255,255,.4)}
textarea.br-in{height:auto;padding:9px 12px;resize:none;line-height:1.5}
.br-gl{display:flex;align-items:center;justify-content:space-between;padding:14px 20px 4px;font-size:14px;color:#F7F7F5}
.br-gl small{font-size:12.5px;color:rgba(255,255,255,.55)}
.br-pad{padding:8px 20px}
.br-lines{display:flex;flex-direction:column;gap:6px;padding:8px 20px 12px}
.br-ln{display:flex;gap:6px;align-items:center}
.br-x{appearance:none;border:0;background:none;color:rgba(255,255,255,.45);width:28px;height:28px;border-radius:7px;cursor:pointer;display:grid;place-items:center;flex:none}.br-x:hover{color:#F58B84;background:rgba(255,255,255,.06)}
.br-add{appearance:none;border:0;background:none;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 8px;margin-left:-8px;font:inherit;font-size:13.5px;color:rgba(255,255,255,.6);cursor:pointer;border-radius:8px;align-self:flex-start}.br-add:hover{color:#fff;background:rgba(255,255,255,.06)}.br-add[hidden]{display:none}
.br-sw2{appearance:none;border:0;width:38px;height:22px;border-radius:7px;background:rgba(255,255,255,.16);position:relative;cursor:pointer;transition:background .2s;flex:none}
.br-sw2::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:5px;background:#EDEDEB;transition:transform .2s}
.br-sw2[aria-checked=true]{background:#EDEDEB}.br-sw2[aria-checked=true]::after{transform:translateX(16px);background:#0B0C10}
/* ---------- Match my brand ---------- */
.br-mcard{max-width:640px;margin:0 auto 48px;width:100%}
.br-ms{display:flex;gap:8px}
.br-go{appearance:none;border:0;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 16px;border-radius:10px;background:#EDEDEB;color:#0B0C10;font:inherit;font-size:14px;font-weight:500;cursor:pointer;flex:none;transition:opacity .2s}
.br-go:disabled{opacity:.5;cursor:default}
.br-stat{min-height:18px;margin:0!important;font-size:12.5px!important;line-height:1.4!important;color:rgba(255,255,255,.55)!important}
.br-stat.busy{background:linear-gradient(90deg,rgba(255,255,255,.35) 0,rgba(255,255,255,.9) 50%,rgba(255,255,255,.35) 100%) 0 0/200% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:brShim 1.4s linear infinite}
@keyframes brShim{to{background-position:-200% 0}}
.br-duo{display:flex;justify-content:center;align-items:flex-start;gap:56px}
.br-duo figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:16px}
.br-duo figcaption{font-size:14px;color:rgba(255,255,255,.6)}
.br-duo .sx-ph{width:273px;border-radius:34px}
.br-wrap{padding:48px 40px 40px}
/* ---------- Words, About ---------- */
.br-split{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);gap:40px;align-items:center;padding:40px}
.br-split>*{min-width:0}
.br-split.rev{grid-template-columns:minmax(0,1fr) minmax(0,auto)}
.br-tabs{display:flex;gap:4px;margin-bottom:2px}
.br-tabs button{appearance:none;border:0;height:36px;padding:0 12px;border-radius:8px;background:none;font:inherit;font-size:15px;color:rgba(255,255,255,.55);cursor:pointer}
.br-tabs button[aria-selected=true]{background:rgba(255,255,255,.08);color:#F7F7F5}.br-tabs button:hover{color:#fff}
.br-pane[hidden]{display:none}
.br-pane{display:flex;flex-direction:column;gap:14px}
.br-tile{width:72px;height:40px;border-radius:8px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.br-ro{opacity:.7}
@media (max-width:1100px){
 .br-dsn{grid-template-columns:1fr}
 .br-split,.br-split.rev{grid-template-columns:1fr}
}
@media (max-width:720px){
 .br-win .ac-main{padding:18px 14px}
 .br-l{flex:1}
 .br-seg{max-width:100%}.br-seg button{padding:0 9px;font-size:13px}
 .br-sw{justify-content:flex-start}
 .br-wrap{padding:28px 14px}
 .br-duo{gap:16px}.br-duo .sx-ph{width:150px;border-radius:22px;--s:.3846}
 .br-split{padding:14px}
 .br-pv{padding:12px}
 .br-hs .br-sts{display:none}
}
@media (max-width:420px){.br-duo{flex-direction:column;align-items:center;gap:28px}.br-duo .sx-ph{width:240px;border-radius:32px;--s:.6154}}
@media (prefers-reduced-motion:reduce){.br-live iframe,.br-save,.br-sw2,.br-sw2::after{transition:none}.br-stat.busy{animation:none}}

.br-g>.br-gl+*{border-top:0}
#br-about .br-pane{min-height:300px}
/* 28 Nov 2026 design review: no box behind the phone in split sections (it read as a double frame); settings sit centred beside the live preview */
.br-split .br-pv{background:none;padding:0}
.br-dsn{align-items:center}
.br-duo .sx-ph{--s:.7}@media (max-width:720px){.br-duo .sx-ph{--s:.3846}}@media (max-width:420px){.br-duo .sx-ph{--s:.6154}}

/* 28 Nov 2026: hero theme reel */
.br-reel video{position:absolute;left:0;top:0;width:390px;height:760px;transform:scale(var(--s,.872));transform-origin:0 0;display:block;object-fit:cover;border:0}

/* 28 Nov 2026: hero tile follows the reel (layers copied from each theme's hero tile) */
.br-tiles{position:absolute!important;inset:0;z-index:0!important;pointer-events:none}
.br-tiles i{position:absolute;inset:0;opacity:0;transition:opacity .35s ease;background-repeat:no-repeat}
.br-tiles i.on{opacity:1}
@media (prefers-reduced-motion:reduce){.br-tiles i{transition:none}}
.br-tiles .t-signature{background-image:
 radial-gradient(118% 19% at 54% 30%,rgba(82,96,192,.22) 0%,rgba(82,96,192,.09) 48%,rgba(82,96,192,0) 82%),
 radial-gradient(96% 42% at 50% 58%,rgba(82,96,192,.95) 0%,rgba(82,96,192,.7) 30%,rgba(82,96,192,0) 72%),
 radial-gradient(144% 53% at 38% 62%,rgba(116,70,196,1) 0%,rgba(116,70,196,.7) 34%,rgba(116,70,196,0) 76%),
 radial-gradient(208% 66% at 66% 66%,rgba(147,52,159,1) 0%,rgba(147,52,159,.6) 40%,rgba(147,52,159,0) 82%)}
.br-tiles .t-beam{background-image:
 radial-gradient(118% 19% at 54% 30%,rgba(40,72,196,.3) 0%,rgba(40,72,196,.12) 48%,rgba(40,72,196,0) 82%),
 radial-gradient(96% 42% at 50% 58%,rgba(255,186,72,.95) 0%,rgba(255,186,72,.7) 30%,rgba(255,186,72,0) 72%),
 radial-gradient(144% 53% at 38% 62%,rgba(244,60,138,1) 0%,rgba(244,60,138,.7) 34%,rgba(244,60,138,0) 76%),
 radial-gradient(208% 66% at 66% 66%,rgba(158,58,240,1) 0%,rgba(158,58,240,.6) 40%,rgba(158,58,240,0) 82%)}
.br-tiles .t-orchid{background-image:
 radial-gradient(118% 19% at 54% 30%,rgba(249,168,212,.26) 0%,rgba(249,168,212,.1) 48%,rgba(249,168,212,0) 82%),
 radial-gradient(96% 42% at 50% 58%,rgba(99,47,187,1) 0%,rgba(99,47,187,.8) 30%,rgba(99,47,187,0) 72%),
 radial-gradient(144% 53% at 38% 62%,rgba(124,58,237,1) 0%,rgba(124,58,237,.7) 34%,rgba(124,58,237,0) 76%),
 radial-gradient(208% 66% at 66% 66%,rgba(192,132,252,.85) 0%,rgba(192,132,252,.5) 40%,rgba(192,132,252,0) 82%)}
.br-tiles .t-lagoon{background-image:
 radial-gradient(118% 19% at 54% 30%,rgba(52,211,153,.22) 0%,rgba(52,211,153,.09) 48%,rgba(52,211,153,0) 82%),
 radial-gradient(96% 42% at 50% 58%,rgba(52,211,153,.95) 0%,rgba(52,211,153,.7) 30%,rgba(52,211,153,0) 72%),
 radial-gradient(144% 53% at 38% 62%,rgba(14,165,165,1) 0%,rgba(14,165,165,.7) 34%,rgba(14,165,165,0) 76%),
 radial-gradient(208% 66% at 66% 66%,rgba(13,131,131,1) 0%,rgba(13,131,131,.6) 40%,rgba(13,131,131,0) 82%)}
.br-tiles .t-ocean{background-image:
 radial-gradient(118% 19% at 54% 30%,rgba(56,189,248,.22) 0%,rgba(56,189,248,.09) 48%,rgba(56,189,248,0) 82%),
 radial-gradient(96% 42% at 50% 58%,rgba(56,189,248,.95) 0%,rgba(56,189,248,.7) 30%,rgba(56,189,248,0) 72%),
 radial-gradient(144% 53% at 38% 62%,rgba(59,130,246,1) 0%,rgba(59,130,246,.7) 34%,rgba(59,130,246,0) 76%),
 radial-gradient(208% 66% at 66% 66%,rgba(48,104,194,1) 0%,rgba(48,104,194,.6) 40%,rgba(48,104,194,0) 82%)}
.br-tiles .t-rose{background-image:
 radial-gradient(118% 19% at 54% 30%,rgba(251,113,133,.24) 0%,rgba(251,113,133,.09) 48%,rgba(251,113,133,0) 82%),
 radial-gradient(96% 42% at 50% 58%,rgba(251,113,133,.95) 0%,rgba(251,113,133,.7) 30%,rgba(251,113,133,0) 72%),
 radial-gradient(144% 53% at 38% 62%,rgba(214,51,108,1) 0%,rgba(214,51,108,.7) 34%,rgba(214,51,108,0) 76%),
 radial-gradient(208% 66% at 66% 66%,rgba(169,42,87,1) 0%,rgba(169,42,87,.6) 40%,rgba(169,42,87,0) 82%)}
.br-tiles .t-mono{background-image:
 radial-gradient(118% 19% at 54% 30%,rgba(230,230,227,.16) 0%,rgba(230,230,227,.06) 48%,rgba(230,230,227,0) 82%),
 radial-gradient(96% 42% at 50% 58%,rgba(138,138,136,.95) 0%,rgba(138,138,136,.62) 30%,rgba(138,138,136,0) 72%),
 radial-gradient(144% 53% at 38% 62%,rgba(76,76,78,1) 0%,rgba(76,76,78,.7) 34%,rgba(76,76,78,0) 76%),
 radial-gradient(208% 66% at 66% 66%,rgba(230,230,227,.7) 0%,rgba(230,230,227,.4) 40%,rgba(230,230,227,0) 82%)}

/* 28 Nov 2026: Match my brand loop */
.br-mwrap{padding:24px 16px;display:flex;justify-content:center}
.br-mvid{display:block;width:100%;max-width:640px;aspect-ratio:640/880;height:auto}
.br-mvid{-webkit-mask-image:linear-gradient(to right,transparent,#000 5.5%,#000 94.5%,transparent),linear-gradient(to bottom,transparent,#000 4%,#000 95%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,#000 5.5%,#000 94.5%,transparent),linear-gradient(to bottom,transparent,#000 4%,#000 95%,transparent);mask-composite:intersect}
@media (max-width:720px){.br-mwrap{padding:12px 0}}

/* 28 Nov 2026: About card section, one phone centred */
.br-awrap{padding:56px 24px;display:flex;justify-content:center}
@media (max-width:720px){.br-awrap{padding:28px 14px}}
.br-awrap .br-live{--s:.872}
@media (max-width:420px){.br-awrap .sx-ph{width:300px}.br-awrap .br-live{--s:.7692}}

/* 28 Nov 2026: closing buttons with one short line under each */
.sx-close .cl2{gap:28px;align-items:flex-start}
.sx-close .cl2>div{display:flex;flex-direction:column;align-items:center;gap:12px}
.sx-close .cl2 span{font-size:14px;color:rgba(247,247,245,.62)}
@media (max-width:420px){.sx-close .cl2{gap:18px}.sx-close .cl2 span{font-size:13px}}

/* 28 Nov 2026: About loop: clean phone corners, tap ring on the menu button */
.br-awrap .sx-ph{clip-path:inset(0 round 40px)}
.br-aph{position:relative}
.br-tap{position:absolute;left:93%;top:2.9%;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;background:rgba(255,255,255,.28);box-shadow:0 0 0 1px rgba(255,255,255,.5);opacity:0;transform:scale(.6);pointer-events:none;z-index:2}
.br-tap.go{animation:brtap .7s cubic-bezier(.2,.8,.2,1)}
@keyframes brtap{0%{opacity:0;transform:scale(.6)}25%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.5)}}

/* 28 Nov 2026: About section is a video loop (tools/branding_hero_video/record_about.py) */
.br-awrap .br-avid{--s:.872}
@media (max-width:420px){.br-awrap .br-avid{--s:.7692}}
/* 1 Dec 2026: Tone of voice. The voice card beside a live guide that answers in the voice picked */
.br-tsplit{grid-template-columns:minmax(0,380px) auto;justify-content:center;gap:64px}
.br-tcard{width:100%}
.br-tcard .br-r.stk{gap:14px}
.br-tcard textarea.br-in{color:rgba(255,255,255,.8);cursor:default}
.br-tcard textarea.br-in:focus{outline:none;border-color:rgba(255,255,255,.1)}
@media (max-width:1100px){.br-tsplit{grid-template-columns:1fr;justify-items:center;gap:32px}.br-tcard{max-width:420px}}
