/* Branding on the space kit (Rami, 12 November 2026; public/brand.js; the frame, pills, menus, panel and table are the kit's own:
   public/spacekit.css and public/hubtable.css .ht-space). Only what is Branding's own is here: the stage's name line with Tasks ▸, its
   task rows, the Latest version cell, Brief, Files and Meetings & time, a stage beside the page, and the week's line. Cadence tokens
   only, so light and dark follow by themselves; a phone of 390px with no sideways scroll; Arabic mirrors (logical properties). */

/* ---------- people as small round pictures (comments, meetings) ---------- */
html body .br-av:not(#_){display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;box-sizing:border-box;font:700 10.5px/1 var(--font-sans);letter-spacing:0;background:hsl(var(--av-h,210) 70% 88%);color:hsl(var(--av-h,210) 45% 28%);box-shadow:0 0 0 2px var(--surface)}
html body .br-av.none:not(#_){background:var(--status-working-bg);color:var(--status-working-fg)}
html body .br-av.more:not(#_){background:var(--surface-sunken);color:var(--ink-muted)}
:root[data-theme="dark"] body .br-av:not(.none):not(.more):not(#_){background:hsl(var(--av-h,210) 35% 30%);color:hsl(var(--av-h,210) 70% 88%)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body .br-av:not(.none):not(.more):not(#_){background:hsl(var(--av-h,210) 35% 30%);color:hsl(var(--av-h,210) 70% 88%)}}
html body .br-avs:not(#_){display:inline-flex;align-items:center}
html body .br-avs .br-av+.br-av:not(#_){margin-inline-start:-5px}

/* ---------- small shared bits ---------- */
.br-row{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.br-red{color:var(--status-stuck-fg)!important}
.br-bad:not(#_){color:var(--status-stuck-fg)}
.br-saved{font-size:13px;color:var(--ink-subtle);flex:none}.br-saved.bad{color:var(--status-stuck-fg)}
.br-hint{display:block;color:var(--ink-subtle);font-size:13px;line-height:1.45;margin:2px 4px}
.br-pv:not(#_){pointer-events:none}.br-pv::after{display:none!important}
.br-cl1{display:inline-flex;flex-direction:column;min-width:0;font-weight:600;line-height:1.25;white-space:nowrap}.br-cl1 small{font-weight:500;color:var(--ink-subtle);font-size:12px;overflow:hidden;text-overflow:ellipsis}
.br-cl1.br-red small{color:var(--status-stuck-fg)}
.br-filt{display:inline-flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.br-filt .br-find:not(#_){width:220px;max-width:100%;border-radius:12px}

/* ---------- the stages table: the name line, the tasks, the cells ---------- */
.br-nl{display:flex;align-items:center;gap:8px;min-width:0}
.br-nl b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.br-tk:not(#_){display:inline-flex;align-items:center;gap:5px;flex:none;border:0;border-radius:999px;background:var(--surface-sunken);color:var(--ink-muted);font:600 12px/1.5 var(--font-sans);padding:2px 8px 2px 6px;min-height:0;cursor:pointer}
.br-tk span{display:inline-block;font-size:10px;transition:transform .2s}
.br-tk[aria-expanded="true"] span{transform:rotate(90deg)}
html[dir="rtl"] .br-tk[aria-expanded="false"] span{transform:rotate(180deg)}
.br-tk:hover{color:var(--c-ink)}
.br-cur .sk-num{background:var(--surface);box-shadow:0 0 0 3px var(--status-working-fg)}
.br-tn{display:flex;align-items:center;gap:8px;padding-inline-start:38px;min-width:0}
.br-bx{width:16px;height:16px;border-radius:5px;box-shadow:inset 0 0 0 1.5px var(--ink-subtle);flex:none}
.br-bx.ok{background:var(--accent-green);box-shadow:none}
.br-tname:not(#_){all:unset;cursor:pointer;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;font-size:14px;border-radius:6px}
.br-tname:hover{text-decoration:underline;text-underline-offset:3px}.br-tname:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.br-tn.done .br-tname{color:var(--ink-subtle);text-decoration:line-through}
.br-pend{color:var(--ink-subtle);font-size:13.5px}
.br-tadd{display:flex;gap:8px;align-items:center;padding-inline-start:38px;max-width:560px}
.br-tadd input:not(#_){flex:1;min-width:0;border:1.5px dashed var(--border);background:transparent;border-radius:12px;padding:7px 12px;font-size:14px}
.br-tadd .sk-btn:not(#_){padding:7px 13px}
.br-who:not(#_){all:unset;cursor:pointer;display:inline-flex;max-width:100%;border-radius:10px}
.br-who:hover{background:var(--surface-hover)}.br-who:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.br-due:not(#_){all:unset;cursor:pointer;font-weight:600;border-radius:8px;padding:2px 4px;margin-inline-start:-4px;white-space:nowrap}
.br-due:hover{background:var(--surface-hover)}.br-due:focus-visible{outline:2px solid var(--focus)}
.br-due.br-after{color:var(--status-working-fg)}
.br-late{display:inline-flex;margin-inline-start:6px;border-radius:999px;padding:3px 9px;font-size:12px;font-weight:600;background:var(--status-stuck-bg);color:var(--status-stuck-fg);white-space:nowrap}
.br-ver:not(#_){all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:9px;min-width:0;max-width:100%;border-radius:8px}
.br-ver b{display:block;font-weight:600;font-size:13.5px}.br-ver small{display:block;color:var(--ink-subtle);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.br-ver>span:last-child{min-width:0}
.br-ver:hover b{text-decoration:underline;text-underline-offset:3px}.br-ver:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.br-vth{width:44px;height:32px;border-radius:7px;flex:none;display:grid;place-items:center;overflow:hidden;background:var(--surface-sunken);color:var(--ink-muted);font-weight:700;font-size:11px}
.br-vth img{width:100%;height:100%;object-fit:cover;display:block}
.br-vbb{background:var(--accent-violet-soft);color:var(--accent-violet)}
.br-addw:not(#_){all:unset;cursor:pointer;font-weight:600;font-size:13.5px;border-radius:6px}.br-addw:hover{text-decoration:underline;text-underline-offset:3px}
.br-nt{display:block;color:var(--ink-muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.br-nt i{font-style:normal;color:var(--ink-subtle)}
#brPage tr.br-lit td{animation:br-fl 2s ease-out}
@keyframes br-fl{from{background:var(--primary-soft)}}

/* ---------- the sidebar's Brief, plan & strategy, and the Team's own lines ---------- */
.br-fl{display:grid}
.br-fl a{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid var(--border);font-size:13.5px;text-decoration:none;color:var(--c-ink)}
.br-fl>:first-child{border-top:0}.br-fl a:hover b{text-decoration:underline;text-underline-offset:3px}
.br-fl b{font-weight:600}.br-fl small{color:var(--ink-subtle);font-size:12.5px;text-align:end}
.br-tmx{margin-bottom:2px}.br-tmx>b{font-weight:600;text-align:end}

/* ---------- Brief, Files, Meetings & time ---------- */
.br-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;align-items:start}
.br-sec{background:var(--surface);border-radius:18px;padding:14px 16px;display:flex;flex-direction:column;gap:10px;min-width:0;flex-wrap:nowrap;align-items:stretch;border-top:0} /* app.css's older .br-sec (a wrapping row, centred) left the Brief tab's headings centred, its Checklist a word wide and its Details past the card (Rami, 15 November 2026) */
.br-sec>h3{margin:0;font-size:12.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-subtle);font-weight:700}
.br-sec>h3 small{letter-spacing:0;text-transform:none;font-weight:600;margin-inline-start:6px}
.br-sec .sk-box{background:var(--c-bg)}
.br-sec .sk-r>.find,.br-sec .sk-r select{max-width:60%}
.br-dlr{display:inline-flex;flex-wrap:wrap;gap:6px 10px;align-items:center;justify-content:flex-end}
.br-dlr small{color:var(--ink-subtle);font-size:12.5px}.br-dlr small.late{color:var(--status-stuck-fg)}.br-dlr small.soon{color:var(--status-working-fg)}
html body .br-incl:not(#_){display:flex;flex-direction:column;gap:3px;margin:0;padding-inline-start:18px;font-size:13.5px}
html body .br-ck .br-ckn:not(#_){margin:0 0 6px;font-size:13.5px}
.br-sec>.br-ck:not(#_){width:auto;height:auto;flex:initial;cursor:auto} /* app.css .br-ck is a 16px tick box elsewhere: the Brief tab's checklist was squeezed into it (Rami, 15 November 2026) */
.br-cpl{list-style:none;margin:0;padding:0;display:grid;gap:0}
.br-cpl li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:8px 0;padding-inline-start:14px;border-top:1px solid var(--border);font-size:13.5px}
.br-cpl li::before{top:15px} /* its dot (green once the client filled it in) beside the label, not on top of it */
.br-cpl li:first-child{border-top:0}.br-cpl li>span{grid-column:1;color:var(--ink-muted)}.br-cpl li .br-have{grid-column:2;grid-row:1/3;align-self:center;font-size:12.5px;color:var(--ink-subtle);white-space:nowrap}
.br-cpl li.ok b::after{content:" ✓";color:var(--accent-green)}
.br-bbk{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.br-wbox{display:flex;flex-direction:column;gap:14px;min-width:0}
.br-wbox .br-wpost{display:flex;flex-direction:column;gap:10px;padding:0 0 16px;border:0;border-bottom:1px solid var(--border);background:transparent;border-radius:0}
.br-wbox .br-wpost .br-nf{background:var(--status-working-bg);color:var(--status-working-fg);font-weight:700}
html body .br-cmp.br-wcmp:not(#_),html body .br-cmp.br-tcmp:not(#_){display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:16px;background:var(--surface-sunken);max-width:820px}
html body .br-cmp textarea:not(#_):not(#_){background:var(--surface);min-height:3.4rem;width:100%;box-sizing:border-box}
.br-cmph{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.br-cmph .br-stf{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-muted)}
.br-cmp .br-nbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}.br-cmp .br-nbar .grow{flex:1}
.br-clink{display:flex;gap:8px}.br-clink input{flex:1;min-width:0}
.br-wlinkf{display:inline-flex;gap:8px;flex:1 1 260px;min-width:0}.br-wlinkf input{flex:1;min-width:0}
.br-older>summary{cursor:pointer;font-weight:600;font-size:13.5px;color:var(--ink-muted);padding:4px 0}
html body .br-lastc:not(#_){display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:13.5px;color:var(--ink-muted)}
html body .br-lastc b:not(#_){color:var(--c-ink)}
html body .br-lastc b.late:not(#_){color:var(--status-stuck-fg)}
html body .br-lastc small:not(#_){font-size:12.5px}
html body .br-mlist:not(#_){display:flex;flex-direction:column;max-width:980px;min-width:0}
html body .br-mlist .br-mt:not(#_):not(#_){display:grid;grid-template-columns:64px minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid var(--border)}
html body .br-md:not(#_){display:flex;flex-direction:column;align-items:center;padding:6px 0;border-radius:14px;background:var(--status-done-bg);color:var(--status-done-fg)}
html body .br-md small:not(#_){font-size:11.5px;font-weight:700}
html body .br-md b:not(#_){font-size:22px;line-height:1.1;color:var(--c-ink)}
html body .br-mt.held .br-md:not(#_){background:var(--surface-sunken);color:var(--ink-muted)}
html body .br-mlist .br-mtx b:not(#_){font-size:15px}
html body .br-mlist .br-mtx small:not(#_){display:block;font-size:13px;color:var(--ink-subtle)}
html body .br-mtx small .bad{color:var(--status-stuck-fg)}
html body .br-mt.sm:not(#_):not(#_){display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;border-radius:14px;background:var(--c-bg);border:0}
html body .br-mt.sm .br-md b:not(#_){font-size:18px}
.br-bk{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--border);font-size:13.5px}.br-bk:first-of-type{border-top:0}
.br-bk>i{width:8px;height:8px;border-radius:50%;background:var(--status-done-fg);flex:none}.br-bk.k-out>i{background:var(--status-working-fg)}
.br-bk small{color:var(--ink-subtle)}.br-bk .grow{flex:1}

/* ---------- a stage beside the page ---------- */
.br-sp{display:grid;gap:16px;align-content:start}
.br-sp .sk-note .br-row{justify-self:start}
.br-ntx:not(#_){width:100%;box-sizing:border-box;border-radius:14px;min-height:84px;resize:vertical;line-height:1.45}
.br-tnotes,.br-fb{display:flex;flex-direction:column}
html body .br-tnotes .br-n:not(#_):not(#_),html body .br-fb .br-n:not(#_):not(#_){display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:12px 0;border-radius:0;background:transparent;border-bottom:1px solid var(--border)}
html body .br-tnotes .br-n .br-av:not(#_),html body .br-fb .br-n .br-av:not(#_){width:32px;height:32px}
html body .br-tnotes .br-n p:not(#_):not(#_),html body .br-fb .br-n p:not(#_):not(#_){margin:4px 0 0;font-size:14.5px}
.br-pacts{padding-top:4px}
.br-lk:not(#_){all:unset;cursor:pointer;font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.br-menuf{display:grid;gap:8px;padding:4px;min-width:260px}
.br-menuf textarea,.br-menuf input{width:100%;box-sizing:border-box}
.br-menuf .br-row{justify-content:flex-end}

/* ---------- the week (its rows are in app.css .brw-*) ---------- */
.brw-nav .sk-ib:not(#_){width:34px;height:34px}
.brw-nav b{font-size:14px;color:var(--c-ink)}

@media (max-width:760px){
  .br-filt{width:100%}.br-filt .br-find:not(#_){flex:1 1 100%;width:auto}
  .br-tn,.br-tadd{padding-inline-start:0}
  .br-tadd{max-width:none}
  .br-cols{grid-template-columns:minmax(0,1fr)}
  .br-sec .sk-r{flex-wrap:wrap}.br-sec .sk-r>.find,.br-sec .sk-r select{max-width:100%}
  html body .br-mlist .br-mt:not(#_):not(#_){grid-template-columns:56px minmax(0,1fr)}
  html body .br-mlist .br-mt>:nth-child(3):not(#_),html body .br-mlist .br-mt>:nth-child(4):not(#_){grid-column:2;justify-self:start}
  html body .br-cmp.br-wcmp:not(#_),html body .br-cmp.br-tcmp:not(#_){max-width:none}
  .br-nt{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
/* the project's card: its facts on one row under the title, the status and buttons beside the title (the approved mockup) */
@media (min-width:1101px){
  #brPage .sk-card[aria-label="The project"]>.sk-when{display:contents}
  #brPage .sk-card[aria-label="The project"]>.sk-when>b{grid-column:1;grid-row:1;align-self:end}
  #brPage .sk-card[aria-label="The project"]>.sk-when>small{grid-column:1;grid-row:2;align-self:start;margin-top:-10px}
  #brPage .sk-card[aria-label="The project"] .sk-facts{grid-column:1/-1;grid-row:3;margin-top:2px}
  #brPage .sk-card[aria-label="The project"]>.sk-right{grid-column:2;grid-row:1/3}
}
@media (prefers-reduced-motion:reduce){#brPage tr.br-lit td{animation:none}.br-tk span{transition:none}}

/* ---------- Table | Board on the list: the board (public/brand.js boardHtml). A column per stage, Delivered folded at the end; an empty
   or folded column is a slim strip; on a phone the columns scroll sideways, one and a bit on the screen. Cadence tokens only. ---------- */
.br-vsw:not(#_){flex:none}
.brb{display:flex;gap:10px;align-items:stretch;overflow-x:auto;padding:2px 2px 10px;min-height:calc(100dvh - 330px);scroll-snap-type:x proximity;overscroll-behavior-x:contain}
.brb-col{flex:0 0 268px;display:flex;flex-direction:column;gap:8px;background:var(--surface-sunken);border-radius:14px;padding:8px;min-width:0;scroll-snap-align:start}
.brb-col.slim{flex:0 0 44px;padding:8px 4px}
.brb-h:not(#_){display:flex;align-items:center;gap:8px;padding:4px 6px 2px;min-height:0;border:0;background:none;color:var(--c-ink);font:600 13.5px/1.3 var(--font-sans);text-align:start;width:100%;cursor:default}
.brb-h b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.brb-h em{font-style:normal;font-size:12px;font-weight:600;color:var(--ink-muted);background:var(--surface);border-radius:999px;padding:1px 8px;flex:none;margin-inline-start:auto}
button.brb-h:not(#_){cursor:pointer;border-radius:10px}button.brb-h:not(#_):hover{background:var(--surface-hover)}
.brb-col.slim .brb-h:not(#_){flex-direction:column;align-items:center;padding:4px 0;height:100%;justify-content:flex-start;gap:10px}
.brb-col.slim .brb-h b{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;color:var(--ink-muted)}
.brb-col.slim .brb-h em{margin:0;order:-1}
.brb-col.done:not(.slim) .brb-h b{color:var(--accent-green)}
.brb-cards{display:grid;gap:8px;align-content:start}
.brb-card:not(#_){display:grid;gap:7px;background:var(--surface);border-radius:12px;padding:11px 12px;color:var(--c-ink);text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.06);transition:box-shadow .12s;min-width:0}
.brb-card:not(#_):hover{box-shadow:0 6px 18px -10px rgba(0,0,0,.35)}
.brb-card:not(#_):focus-visible{outline:2px solid var(--c-ink);outline-offset:2px}
.brb-card.late:not(#_){box-shadow:inset 3px 0 0 var(--status-stuck-fg),0 1px 2px rgba(0,0,0,.06)}
.brb-cl{display:flex;align-items:center;gap:7px;min-width:0}
.brb-cl small{color:var(--ink-subtle);font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brb-logo{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:7px;overflow:hidden;font:700 11px/1 var(--font-sans);background:hsl(var(--av-h,210) 70% 88%);color:hsl(var(--av-h,210) 45% 28%)}
.brb-logo img{width:100%;height:100%;object-fit:contain;background:#fff}
:root[data-theme="dark"] .brb-logo{background:hsl(var(--av-h,210) 35% 30%);color:hsl(var(--av-h,210) 70% 88%)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .brb-logo{background:hsl(var(--av-h,210) 35% 30%);color:hsl(var(--av-h,210) 70% 88%)}}
.brb-card>b{font-size:14.5px;font-weight:650;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.brb-st .sk-pill:not(#_){min-width:0;font-size:12.5px;padding:4px 10px}
.brb-ft{display:flex;align-items:center;gap:8px;min-width:0;font-size:12.5px;color:var(--ink-muted)}
.brb-ft .br-av:not(#_){width:24px;height:24px;font-size:9.5px}
.brb-due{font-weight:600;white-space:nowrap}
.brb-pr{display:inline-flex;align-items:center;gap:5px;margin-inline-start:auto;font-weight:600;white-space:nowrap}
.brb-pr i{display:block;width:34px;height:4px;border-radius:2px;background:var(--surface-sunken);overflow:hidden}
.brb-pr i em{display:block;height:100%;background:var(--accent-green);border-radius:2px}
@media (max-width:760px){
  .brb{min-height:0}
  .brb-col{flex-basis:82vw}
  .brb-col.slim{flex-basis:40px}
}
@media (prefers-reduced-motion:reduce){.brb-card{transition:none}}
/* who does a stage (Rami, 15 November 2026): nobody on it is red; the Who menu's people, ticked, then Save */
.br-none:not(#_){color:var(--status-stuck-fg);font-weight:600;font-style:normal;font-size:13px;padding:0} /* app.css's older .br-none (an empty list's padding) doesn't apply here */
.br-wls{display:flex;flex-direction:column;gap:2px;max-height:260px;overflow:auto;margin:4px 0 8px;min-width:220px}
.br-wl{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:14px}
.br-wl:hover{background:var(--hover,rgba(0,0,0,.05))}
.br-desl{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;font-size:13.5px}.br-desl>span{color:var(--ink-subtle)}
.br-des{width:100%}
