/* Approved premium Company Setup language for canonical Forge Branches & Locations.
 * All counts and identities are backend-sourced. No illustrative tenant addresses.
 * CSS is scoped to setup and uses the active tenant accent colour.
 */
.setup-shell .setup-branch-workspace{
 --site-line:rgba(145,187,206,.19);
 --site-ink:#edf3f7;
 --site-muted:#a4b9c8;
 --site-accent:var(--vf-gold,var(--acc,#d4b53b));
 display:flex;flex-direction:column;gap:12px;min-width:0
}
.setup-shell .setup-branch-header{
 display:flex;justify-content:space-between;align-items:center;gap:15px;
 padding:20px 23px;min-width:0;overflow:hidden;
 border:1px solid var(--site-line);border-radius:12px;
 background:linear-gradient(115deg,#102635,#0a1825 75%),repeating-linear-gradient(120deg,transparent 0px,transparent 22px,rgba(255,255,255,.02) 23px);
 box-shadow:0 10px 30px #0002
}
.setup-shell .setup-branch-crumb{
 display:block;color:#9bb4c3;font-size:11px;font-weight:600;margin-bottom:8px
}
.setup-shell .setup-branch-header h2{
 margin:0 0 6px;color:#fff;font:800 clamp(23px,2.1vw,32px)/1.07 Inter,Barlow,sans-serif;letter-spacing:-.03em
}
.setup-shell .setup-branch-header p{color:#beced9;font-size:12px;line-height:1.55;margin:0;max-width:720px}
.setup-shell .setup-branch-header-icon{
 flex:0 0 auto;width:98px;height:98px;border:1px solid rgba(230,188,60,.35);
 border-radius:14px;background:linear-gradient(155deg,rgba(213,174,53,.15),rgba(213,174,53,.03));
 display:grid;place-items:center;color:var(--site-accent);font-size:57px;text-shadow:0 7px 18px rgba(0,0,0,.4)
}
.setup-shell .setup-branch-stats{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px
}
.setup-shell .setup-branch-stat{
 min-width:0;display:flex;flex-direction:column;gap:5px;padding:14px 15px;
 background:linear-gradient(160deg,#142936,#0b1d27);border:1px solid var(--site-line);
 border-radius:10px;min-height:89px
}
.setup-shell .setup-branch-stat small{
 color:#b6c6d2;font:650 11px Inter,Barlow,sans-serif;text-transform:uppercase;letter-spacing:.065em
}
.setup-shell .setup-branch-stat strong{
 font:800 clamp(20px,2vw,26px)/1.15 Inter,Barlow,sans-serif;color:var(--site-accent);
 overflow-wrap:anywhere
}
.setup-shell .setup-branch-stat span{font-size:10px;color:#92adbe;line-height:1.4}
.setup-shell .setup-branch-location-note{
 margin:0;line-height:1.5;padding:10px 13px;border:1px solid #355166;
 background:#0e2330;color:#bed0da;border-radius:8px;font-size:11px
}
.setup-shell .setup-branch-layout{
 display:grid;grid-template-columns:minmax(0,1fr) 255px;align-items:start;gap:11px;min-width:0
}
.setup-shell .setup-branch-main,.setup-shell .setup-branch-aside{min-width:0}
.setup-shell .setup-branch-main,.setup-shell .setup-branch-aside{display:flex;flex-direction:column;gap:11px}
.setup-shell .setup-branch-panel{
 min-width:0;border:1px solid var(--site-line);border-radius:10px;padding:15px;
 background:linear-gradient(157deg,#112533,#0c1d29);overflow:hidden
}
.setup-shell .setup-branch-panel h3{
 margin:0 0 10px;font:750 15px Inter,Barlow,sans-serif;color:var(--site-ink);letter-spacing:-.015em
}
.setup-shell .setup-branch-panel>p,.setup-shell .setup-branch-panel-heading p{
 margin:4px 0 10px;font-size:11px;line-height:1.6;color:var(--site-muted)
}
.setup-shell .setup-branch-panel-heading{
 display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:13px
}
.setup-shell .setup-branch-panel-heading h3{margin:0;font-size:17px}
.setup-shell .setup-branch-panel-heading p{margin:5px 0 0}
.setup-shell .setup-branch-panel-heading .btn{font-size:11px;min-height:38px;white-space:nowrap}
.setup-shell .setup-branch-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.setup-shell .setup-branch-card{
 min-width:0;display:flex;flex-direction:column;gap:10px;
 padding:14px 15px;border:1px solid #365363;border-radius:11px;
 background:linear-gradient(142deg,#172d3d,#0c1b26);transition:border-color .16s,transform .16s
}
.setup-shell .setup-branch-card:hover{border-color:rgba(212,182,58,.65);transform:translateY(-1px)}
.setup-shell .setup-branch-card.is-inactive{background:linear-gradient(142deg,#17242e,#101a23)}
.setup-shell .setup-branch-card-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.setup-shell .setup-branch-glyph{
 display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;font-size:23px;
 background:#243b48;border-radius:8px;color:var(--site-accent);border:1px solid #416072;margin-right:auto
}
.setup-shell .setup-branch-chip{
 border:1px solid #50616a;border-radius:20px;padding:4px 7px;white-space:nowrap;
 font:700 9px Inter,system-ui,sans-serif;color:#b0c8d4;letter-spacing:.02em
}
.setup-shell .setup-branch-chip.primary{color:#efcb68;background:rgba(210,176,58,.09);border-color:#8a712c}
.setup-shell .setup-branch-chip.inactive{color:#ecbcae;background:rgba(149,66,54,.12);border-color:#94584d}
.setup-shell .setup-branch-card h3{font-size:16px;font-weight:740;line-height:1.2;margin:4px 0 0;overflow-wrap:anywhere}
.setup-shell .setup-branch-category{
 color:#a4bacc;font-size:11px;line-height:1.45;margin:0;min-height:17px
}
.setup-shell .setup-branch-card-lines{display:flex;flex-direction:column;gap:0;margin-top:1px}
.setup-shell .setup-branch-card-lines>div{
 display:grid;grid-template-columns:83px minmax(0,1fr);gap:9px;min-height:34px;
 align-items:baseline;border-top:1px solid #2a4657;padding:8px 0
}
.setup-shell .setup-branch-card-lines small{font-size:10px;color:#94abbb}
.setup-shell .setup-branch-card-lines b{font-size:11px;font-weight:550;color:#dfebf2;line-height:1.45;overflow-wrap:anywhere}
.setup-shell .setup-branch-edit{
 display:flex;align-items:center;justify-content:space-between;
 margin-top:auto;min-height:34px;padding:8px 10px;background:#1a3343;border:1px solid #536c7b;
 border-radius:6px;cursor:pointer;color:var(--site-accent);
 font:750 11px Inter,system-ui,sans-serif;transition:background .15s,border-color .15s
}
.setup-shell .setup-branch-edit:hover,.setup-shell .setup-branch-edit:focus-visible{
 background:#244358;border-color:var(--site-accent);outline:2px solid transparent
}
.setup-shell .setup-branch-readonly{margin-top:auto;color:#a4b9c7;font-size:10px}
.setup-shell .setup-branch-readiness-row{
 display:flex;gap:10px;border-top:1px solid #314b5c;padding:10px 0
}
.setup-shell .setup-branch-readiness-row>span{
 display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;color:#dda73d;
 border-radius:50%;font-size:15px
}
.setup-shell .setup-branch-readiness-row>span.ready{color:#56d59e}
.setup-shell .setup-branch-readiness-row div{min-width:0}
.setup-shell .setup-branch-readiness-row b{display:block;font-size:11px;color:#e7f1f5}
.setup-shell .setup-branch-readiness-row small{display:block;font-size:10px;color:#a7bac9;line-height:1.6;margin-top:3px}
.setup-shell .setup-branch-aside .btn{width:100%;font-size:11px;min-height:36px}
.setup-shell .setup-branch-empty{grid-column:1/-1;border:1px dashed #506b7a;border-radius:9px;padding:24px;text-align:center}
.setup-shell .setup-branch-empty strong{font-size:14px;color:#f2f5f7}
.setup-shell .setup-branch-empty p{font-size:12px;color:#9fb6c3}
.setup-shell .setup-branch-editor{
 border:1px solid rgba(206,171,54,.40)!important;background:linear-gradient(160deg,#102735,#101d27)!important;
 border-radius:11px!important;overflow:hidden
}
.setup-shell .setup-branch-editor>summary{
 cursor:pointer;padding:13px 16px!important;color:#e3c570!important;
 font:700 12px Inter,Barlow,sans-serif;list-style-position:inside
}
.setup-shell .setup-branch-editor[open]>summary{border-bottom:1px solid #3b5363}
.setup-shell .setup-branch-editor #setup-px-site-form{padding:13px}
.setup-shell .setup-px-site-form{min-width:0}
.setup-shell .setup-px-site-form .setup-site-form-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
.setup-shell .setup-px-site-form .setup-site-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.setup-shell .setup-px-site-form .setup-site-field span{font-size:10px;color:#b7cbd7;font-weight:650;letter-spacing:.015em}
.setup-shell .setup-px-site-form .setup-site-field input,
.setup-shell .setup-px-site-form .setup-site-field select,
.setup-shell .setup-px-site-form .setup-site-field textarea{
 width:100%;min-width:0;min-height:38px;box-sizing:border-box;padding:8px 9px;
 border:1px solid #35566b;border-radius:7px;background:#0b1a25;color:#e9f3f8;
 font:500 12px Inter,Barlow,sans-serif;outline-offset:2px
}
.setup-shell .setup-px-site-form .setup-site-field textarea{resize:vertical;min-height:70px}
.setup-shell .setup-px-site-form .setup-site-field :focus-visible{outline:2px solid var(--site-accent,#dcc142)}
.setup-shell .setup-px-site-form .setup-site-notes{grid-column:1/-1}
.setup-shell .setup-site-form-flags{display:flex;gap:16px;flex-wrap:wrap;margin:14px 0}
.setup-shell .setup-site-form-flags label{display:inline-flex;align-items:center;gap:8px;font-size:11px;color:#cad9e2}
.setup-shell .setup-site-form-flags input{width:17px;height:17px;accent-color:var(--vf-gold,var(--acc,#d9bb42))}
.setup-shell .setup-site-form-actions{display:flex;align-items:center;justify-content:space-between;gap:11px}
.setup-shell .setup-site-form-actions .btn{font-size:11px;min-width:140px;min-height:39px}
.setup-shell .setup-site-dirty{color:#c2d0d9;font-size:10px}
.setup-shell .setup-site-form-actions button:disabled{opacity:.6;cursor:wait}
.setup-shell .setup-branch-error,.setup-shell .setup-branch-readonly-panel{
 border:1px solid #536773;border-radius:10px;padding:20px;background:#102838;
 color:#d2e3ee;font-size:12px
}
.setup-shell .setup-branch-error p{color:#b9c9d3}
.setup-shell .setup-branch-inline .setup-site-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.setup-shell .setup-branch-inline .setup-px-sites-edit{padding:7px;border:1px solid #38586a;border-radius:8px}
.setup-shell .setup-branch-inline .setup-px-sites-edit #setup-px-site-form{padding:10px}
@media(max-width:1320px){
 .setup-shell .setup-branch-layout{grid-template-columns:minmax(0,1fr) 225px}
 .setup-shell .setup-branch-cards{grid-template-columns:1fr}
 .setup-shell .setup-branch-stat{padding:11px}
}
@media(max-width:1100px){
 .setup-shell .setup-branch-layout{grid-template-columns:1fr}
 .setup-shell .setup-branch-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .setup-shell .setup-branch-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .setup-shell .setup-branch-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
 .setup-shell .setup-branch-cards{grid-template-columns:1fr}
 .setup-shell .setup-branch-aside{grid-template-columns:1fr}
 .setup-shell .setup-px-site-form .setup-site-form-grid,
 .setup-shell .setup-branch-inline .setup-site-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:530px){
 .setup-shell .setup-branch-header{padding:15px;align-items:flex-start}
 .setup-shell .setup-branch-header-icon{display:none}
 .setup-shell .setup-branch-stats{gap:7px}
 .setup-shell .setup-branch-stat{min-height:90px}
 .setup-shell .setup-branch-stat strong{font-size:20px}
 .setup-shell .setup-branch-panel{padding:11px}
 .setup-shell .setup-branch-panel-heading .btn{width:100%}
 .setup-shell .setup-px-site-form .setup-site-form-grid,
 .setup-shell .setup-branch-inline .setup-site-form-grid{grid-template-columns:1fr}
 .setup-shell .setup-site-form-actions{flex-direction:column;align-items:stretch}
 .setup-shell .setup-site-form-actions .btn{width:100%}
}

/* Scoped Branch directory controls; hidden cards never consume layout. */
.setup-shell .setup-branch-filters{display:flex;align-items:end;flex-wrap:wrap;gap:9px;margin:0 0 14px}
.setup-shell .setup-branch-filters label{display:flex;flex-direction:column;gap:5px;flex:1 1 152px;min-width:0;color:#b4c7d4;font-size:11px;font-weight:650}
.setup-shell .setup-branch-filters label:first-child{flex:2 1 205px}
.setup-shell .setup-branch-filters input,.setup-shell .setup-branch-filters select{width:100%;min-height:37px;min-width:0;padding:7px 10px;background:#091d2b;color:#f0f7fb;border:1px solid #496373;border-radius:7px}
.setup-shell .setup-branch-filters :is(input,select):focus-visible{outline:2px solid var(--site-accent);outline-offset:2px}
.setup-shell .setup-branch-filters [data-branch-visible-count]{color:#cfdae2;font-size:11px;white-space:nowrap;padding:9px 0}
.setup-shell .setup-branch-cards>.setup-branch-card[hidden],.setup-shell .setup-branch-no-results[hidden]{display:none!important}
.setup-shell .setup-branch-no-results{padding:20px 16px;border:1px dashed #557183;border-radius:8px;color:#b7c9d8}
@media(max-width:600px){.setup-shell .setup-branch-filters label,.setup-shell .setup-branch-filters label:first-child{flex-basis:100%}}
