/* Companies. A self-contained dark and lime dashboard, scoped to .cx so it cannot leak into other pages. */
.cx{--cx-bg:#090b0f;--cx-panel:#10141b;--cx-panel2:#151a22;--cx-line:rgba(255,255,255,.1);--cx-lime:#e0b84c;--cx-lime-soft:#f7df9c;--cx-amber:#ff9f2f;--cx-red:#f06d72;--cx-red-soft:#f59a9e;--cx-cyan:#65aef7;--cx-text:#f4f6f8;--cx-muted:#9ba6b5;--cx-dim:#697585;
    display:flex;width:min(100%,1560px);margin:0 auto;min-height:calc(100vh - 120px);color:var(--cx-text);font-family:var(--font-body)}
.cx *{box-sizing:border-box}
.cx i[data-lucide],.cx svg.lucide{width:16px;height:16px;flex:0 0 16px}
.cx-mono{font-family:var(--font-mono)}
.cx-label{font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--cx-muted);display:flex;align-items:center;gap:6px}
.cx-label i,.cx-label svg{width:12px!important;height:12px!important}
.cx-panel{background:linear-gradient(180deg,var(--cx-panel2),var(--cx-panel));border:1px solid var(--cx-line);border-radius:10px}
.cx-lime{color:var(--cx-lime)}.cx-red{color:var(--cx-red-soft)}.cx-amber{color:var(--cx-amber)}.cx-cyan{color:var(--cx-cyan)}.cx-muted{color:var(--cx-muted)}

/* shell */
.cx-side{position:sticky;top:0;align-self:flex-start;height:calc(100vh - 20px);width:240px;flex:0 0 240px;display:flex;flex-direction:column;padding:20px 16px;border-right:1px solid var(--cx-line);background:rgba(16,20,27,.9)}
.cx-brand{display:flex;align-items:center;gap:10px;padding:0 4px;text-decoration:none;color:inherit}
.cx-brand__mark{display:grid;place-items:center;width:40px;height:40px;border-radius:9px;border:1px solid rgba(224,184,76,.4);background:rgba(224,184,76,.1);color:var(--cx-lime)}
.cx-brand__mark svg,.cx-brand__mark i{width:22px!important;height:22px!important}
.cx-brand__name{display:block;font-size:14px;font-weight:900;letter-spacing:.16em;color:#f4f6f8}.cx-brand__name b{color:var(--cx-lime)}
.cx-brand__sub{display:block;font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--cx-dim)}
.cx-nav{display:grid;gap:4px;margin-top:30px}
.cx-nav a{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid transparent;border-radius:9px;color:#9ba6b5;font-size:14px;font-weight:600;text-decoration:none}
.cx-nav a:hover{background:rgba(255,255,255,.06);color:#f4f6f8}
.cx-nav a.is-active{background:rgba(224,184,76,.12);border-color:rgba(224,184,76,.25);color:var(--cx-lime-soft)}
.cx-side__foot{margin-top:auto;display:grid;gap:10px}
.cx-day{padding:12px}.cx-day__n{font-size:26px;font-weight:900;color:#f4f6f8;margin-top:4px}
.cx-live{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:11px;color:var(--cx-dim)}.cx-live i{width:6px;height:6px;border-radius:50%;background:var(--cx-lime);animation:cx-pulse 1.6s ease-in-out infinite}
@keyframes cx-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.cx-main{flex:1;min-width:0}
.cx-top{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 24px;border-bottom:1px solid var(--cx-line);background:rgba(9,11,15,.88);backdrop-filter:blur(6px)}
.cx-top__right{margin-left:auto;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cx-cash{display:flex;align-items:center;gap:8px;padding:6px 12px}.cx-cash svg,.cx-cash i{color:var(--cx-lime)}.cx-cash .cx-mono{font-size:14px;font-weight:700;color:#f4f6f8}
.cx-mobile-nav{display:none;gap:4px;overflow-x:auto}
.cx-mobile-nav a{padding:6px 10px;border-radius:7px;font-size:12px;color:#9ba6b5;text-decoration:none;white-space:nowrap}.cx-mobile-nav a.is-active{background:rgba(224,184,76,.15);color:var(--cx-lime-soft)}
.cx-body{padding:24px;min-height:600px}
#cxView{display:grid;gap:20px;animation:cx-rise .35s ease both}
@keyframes cx-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* buttons, inputs */
.cx-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 14px;border:1px solid #232c38;border-radius:8px;background:transparent;color:#e6eaef;font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-decoration:none}
.cx-btn:hover{border-color:#52525b;color:#fff}.cx-btn:disabled{opacity:.45;cursor:not-allowed}
.cx-btn--lime{background:var(--cx-lime);border-color:var(--cx-lime);color:#000}.cx-btn--lime:hover{background:#ffd86b;color:#000}
.cx-btn--ghost{border-color:rgba(224,184,76,.4);background:rgba(224,184,76,.1);color:var(--cx-lime-soft)}.cx-btn--ghost:hover{background:rgba(224,184,76,.2)}
.cx-btn--danger{border-color:rgba(240,109,114,.4);color:var(--cx-red-soft)}.cx-btn--danger:hover{background:rgba(240,109,114,.1)}
.cx-btn--sm{padding:5px 10px;font-size:12px}
.cx-input,.cx select.cx-input{min-height:36px;width:100%;padding:7px 11px;border:1px solid #232c38;border-radius:8px;background:rgba(0,0,0,.3);color:var(--cx-text);font:inherit;font-size:14px}
.cx-input:focus{outline:none;border-color:rgba(224,184,76,.55);box-shadow:0 0 0 3px rgba(224,184,76,.12)}
.cx-field{display:grid;gap:4px;min-width:130px}.cx-field>span{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--cx-muted)}
.cx-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.cx-chip{padding:6px 12px;border:1px solid #232c38;border-radius:8px;background:transparent;color:#9ba6b5;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.cx-chip.is-active{border-color:rgba(224,184,76,.5);background:rgba(224,184,76,.12);color:var(--cx-lime-soft)}
.cx-tabs{display:flex;flex-wrap:wrap;gap:8px}
.cx-tab{padding:8px 14px;border:1px solid #232c38;border-radius:8px;background:transparent;color:#9ba6b5;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.cx-tab:hover{color:#fff}.cx-tab.is-active{border-color:rgba(224,184,76,.5);background:rgba(224,184,76,.12);color:var(--cx-lime-soft)}

/* content blocks */
.cx-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}
.cx-head h1{margin:0;display:flex;align-items:center;gap:10px;font-size:26px;font-weight:900;letter-spacing:-.01em;color:#f4f6f8}
.cx-head h1 svg,.cx-head h1 i{color:var(--cx-lime);width:24px!important;height:24px!important}
.cx-head p{margin:4px 0 0;font-size:14px;color:var(--cx-muted)}
.cx-grid{display:grid;gap:12px}
.cx-grid--stats{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.cx-grid--2{grid-template-columns:repeat(auto-fit,minmax(360px,1fr))}
.cx-grid--3{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.cx-stat{padding:14px 16px}.cx-stat .cx-mono{display:block;margin-top:6px;font-size:21px;font-weight:700;line-height:1;color:#f4f6f8}.cx-stat small{display:block;margin-top:7px;font-size:11px;color:var(--cx-dim)}
.cx-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--cx-line)}
.cx-section>header h2{margin:0;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#d5dbe3}
.cx-section>header h2 svg,.cx-section>header h2 i{color:var(--cx-lime)}
.cx-section>div{padding:16px}
.cx-section.is-flush>div{padding:0}
.cx-empty{padding:34px 16px;border:1px dashed #232c38;border-radius:10px;text-align:center;font-size:14px;color:var(--cx-muted)}
.cx-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border:1px solid #2f3947;border-radius:5px;background:rgba(35,44,56,.6);color:#d5dbe3;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.cx-badge--lime{border-color:rgba(224,184,76,.4);background:rgba(224,184,76,.1);color:#f0d68a}.cx-badge--amber{border-color:rgba(255,159,47,.4);background:rgba(255,159,47,.1);color:var(--cx-amber)}
.cx-badge--red{border-color:rgba(240,109,114,.4);background:rgba(240,109,114,.1);color:var(--cx-red-soft)}.cx-badge--cyan{border-color:rgba(101,174,247,.4);background:rgba(101,174,247,.1);color:#9cc8fa}
.cx-bar{height:6px;border-radius:99px;background:#232c38;overflow:hidden}.cx-bar>i{display:block;height:100%;border-radius:99px;background:var(--cx-lime)}
.cx-bar--cyan>i{background:var(--cx-cyan)}.cx-bar--amber>i{background:var(--cx-amber)}.cx-bar--red>i{background:var(--cx-red)}.cx-bar--white>i{background:#d5dbe3}
.cx-stars{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.cx-stars__row{display:inline-flex;gap:2px}
.cx-star{display:inline-block;width:14px;height:14px}
.cx-star i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#8a6420 var(--f),#2f3947 var(--f));clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.cx-star.is-lit{filter:drop-shadow(0 0 3px rgba(255,159,47,.8))}
.cx-star.is-lit i{background:linear-gradient(180deg,#ffd27a,var(--cx-amber))}
.cx-star.is-new{animation:cx-star-pop .9s cubic-bezier(.2,1.4,.4,1) both}
@keyframes cx-star-pop{0%{transform:scale(.2) rotate(-40deg);opacity:0;filter:drop-shadow(0 0 0 rgba(255,159,47,0))}55%{transform:scale(1.9) rotate(8deg);opacity:1;filter:drop-shadow(0 0 10px rgba(255,210,122,1))}100%{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.cx-star.is-new{animation:none}}
.cx-stars b{font-size:11px;color:var(--cx-amber)}
.cx-tile{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid #2f3947;border-radius:8px;background:rgba(35,44,56,.6);color:#d5dbe3}
.cx-tile--lg{width:48px;height:48px;flex-basis:48px;border-color:rgba(224,184,76,.35);background:rgba(224,184,76,.08);color:var(--cx-lime)}.cx-tile--lg svg,.cx-tile--lg i{width:24px!important;height:24px!important}
.cx-link{color:var(--cx-lime);font-weight:700;font-size:12px;text-decoration:none;cursor:pointer;background:none;border:0;padding:0;font-family:inherit}.cx-link:hover{text-decoration:underline}

/* tables */
.cx-tablewrap{overflow-x:auto;border:1px solid var(--cx-line);border-radius:10px}
.cx-table{width:100%;min-width:760px;border-collapse:collapse;font-size:14px}
.cx-table th{padding:11px 16px;background:var(--cx-panel);text-align:left;font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--cx-muted);white-space:nowrap}
.cx-table td{padding:11px 16px;border-top:1px solid rgba(35,44,56,.7);vertical-align:middle}
.cx-table tr:hover td{background:rgba(255,255,255,.02)}.cx-table tr.is-me td{background:rgba(224,184,76,.05)}
.cx-table .r{text-align:right}.cx-table .c{text-align:center}
.cx-cell{display:flex;align-items:center;gap:10px}.cx-cell b{display:block;color:#f4f6f8}.cx-cell small{display:block;font-size:11px;color:var(--cx-muted)}
.cx-rank{width:22px;color:var(--cx-dim)}

/* firm card */
.cx-firm{padding:16px;max-width:420px;border:1px solid var(--cx-line);border-radius:10px;background:rgba(0,0,0,.2)}
.cx-firm__top{display:flex;justify-content:space-between;gap:10px}.cx-firm__top b{font-size:16px;color:#f4f6f8}
.cx-firm__stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px;text-align:center}.cx-firm__stats .cx-mono{display:block;font-size:14px;font-weight:700;color:#fff;margin-top:2px}

/* lists */
.cx-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid rgba(35,44,56,.7);font-size:14px}.cx-list>div:first-child{border-top:0}
.cx-list small{color:var(--cx-muted);font-size:12px}
.cx-person{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1.1fr) minmax(0,.8fr) minmax(0,1.6fr);gap:14px;align-items:center;padding:14px 16px;border-top:1px solid rgba(35,44,56,.7)}
.cx-person:first-child{border-top:0}.cx-person b{display:block;color:#f4f6f8}.cx-person small{display:block;margin-top:2px;font-size:11px;color:var(--cx-muted)}
.cx-statline{display:flex;gap:10px;margin-top:4px;font-size:11px;font-weight:700}
.cx-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}.cx-actions .cx-input{width:90px;min-height:30px;padding:4px 8px;font-size:13px}.cx-actions select.cx-input{width:auto;max-width:150px}
.cx-card{padding:16px;border:1px solid var(--cx-line);border-radius:10px;background:rgba(0,0,0,.2);display:grid;gap:10px;align-content:start}
.cx-card.is-locked{opacity:.55}.cx-card h3{margin:0;font-size:15px;color:#f4f6f8}.cx-card p{margin:0;font-size:13px;color:var(--cx-muted);line-height:1.5}
.cx-card__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}
.cx-card.is-selected{border-color:var(--cx-lime);background:rgba(224,184,76,.07)}
.cx-graph{position:relative}
.cx-graph svg{display:block;width:100%;height:auto;overflow:visible}
.cx-graph__legend{display:flex;gap:16px;margin:0 0 6px 4px;font-size:12px;color:var(--cx-muted)}
.cx-graph__legend span{display:inline-flex;align-items:center;gap:6px}
.cx-graph__legend i{display:inline-block;width:14px;height:3px;border-radius:2px}.cx-graph__legend i.rev{background:var(--cx-lime)}.cx-graph__legend i.profit{background:var(--cx-cyan)}
.cx-g-grid{stroke:rgba(255,255,255,.1);stroke-width:1}.cx-g-grid.is-zero{stroke:#2f3947;stroke-dasharray:4 4}
.cx-g-y,.cx-g-x{fill:#697585;font-size:10px;font-family:ui-monospace,Consolas,monospace}
.cx-g-area{fill:rgba(224,184,76,.1);stroke:none}
.cx-g-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.cx-g-line--rev{stroke:var(--cx-lime)}.cx-g-line--profit{stroke:var(--cx-cyan)}
.cx-g-dot{stroke:var(--cx-panel);stroke-width:1.5;transition:r .12s}
.cx-g-dot--rev{fill:var(--cx-lime)}.cx-g-dot--profit{fill:var(--cx-cyan)}.cx-g-dot--loss{fill:var(--cx-red)}
.cx-g-guide{stroke:#52606b;stroke-width:1;opacity:0}
.cx-hit:hover .cx-g-guide{opacity:1}.cx-hit:hover .cx-g-dot{r:5.5}
.cx-tip{position:absolute;z-index:5;pointer-events:none;min-width:150px;padding:8px 10px;border:1px solid var(--cx-line);border-radius:8px;background:#0b0f12;box-shadow:0 10px 30px rgba(0,0,0,.6);font-size:12px;display:grid;gap:2px;transform:translate(14px,-8px)}
.cx-tip.is-right{transform:translate(calc(-100% - 14px),-8px)}
.cx-tip[hidden]{display:none}.cx-tip b{color:#f4f6f8}.cx-tip span{color:var(--cx-text)}.cx-tip small{color:var(--cx-muted)}
.cx-events{margin:6px 0 0;padding-left:18px;color:var(--cx-muted);font-size:12px}
.cx-warn{padding:10px 14px;border:1px solid rgba(240,109,114,.4);border-radius:9px;background:rgba(240,109,114,.08);color:var(--cx-red-soft);font-size:13px;font-weight:600}
.cx-note{padding:10px 14px;border:1px solid rgba(224,184,76,.3);border-radius:9px;background:rgba(224,184,76,.06);color:var(--cx-lime-soft);font-size:13px}
.cx-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:90;max-width:min(90vw,560px);padding:11px 16px;border:1px solid rgba(224,184,76,.4);border-radius:9px;background:var(--cx-panel);color:var(--cx-lime-soft);font-size:14px;font-weight:600;box-shadow:0 18px 50px rgba(0,0,0,.6)}
.cx-toast[data-tone="bad"]{border-color:rgba(240,109,114,.5);color:var(--cx-red-soft)}
.cx-modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}
.cx-modal[hidden]{display:none}
.cx-modal__box{width:min(720px,100%);max-height:90vh;overflow-y:auto}
.cx-modal__box header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--cx-line)}.cx-modal__box header h2{margin:0;font-size:18px;color:#f4f6f8}
.cx-modal__box .body{padding:20px;display:grid;gap:16px}
.cx-pickgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;max-height:300px;overflow-y:auto;padding-right:4px}
.cx-pick{text-align:left;cursor:pointer;font:inherit;color:inherit}.cx-pick.is-locked{cursor:not-allowed}

@media(max-width:1000px){.cx{display:block}.cx-side{display:none}.cx-mobile-nav{display:flex}.cx-body{padding:16px}.cx-person{grid-template-columns:1fr 1fr}.cx-person>:last-child{grid-column:1 / -1}.cx-actions{justify-content:flex-start}}
@media(max-width:640px){.cx-grid--2,.cx-grid--3{grid-template-columns:1fr}.cx-top{padding:10px 14px}}

.cx [hidden]{display:none!important}
.cx-specials{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.cx-special{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 10px;border:1px solid var(--cx-line);border-radius:10px;background:rgba(255,255,255,.02);text-align:center}
.cx-special h4{margin:0 0 2px;padding-bottom:6px;border-bottom:1px solid var(--cx-line);width:100%;font-size:14px;color:#f4f6f8}
.cx-special h4 span{color:var(--cx-lime)}
.cx-special p{margin:0;font-size:13px}.cx-special__cost{color:var(--cx-muted)}.cx-special__effect{color:var(--cx-text);flex:1}
.cx-special small{color:var(--cx-muted);font-size:11px}
.cx-special.is-locked{opacity:.55}
@media (max-width:900px){.cx-specials{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.cx-specials{grid-template-columns:1fr}}
.cx-typelist{display:grid;gap:8px}
.cx-typerow{border:1px solid var(--cx-line);border-radius:10px;background:rgba(255,255,255,.02);overflow:hidden}
.cx-typerow summary{display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;list-style:none}
.cx-typerow summary::-webkit-details-marker{display:none}
.cx-typerow summary:hover{background:rgba(255,255,255,.03)}
.cx-typerow__name{min-width:150px}.cx-typerow__name h3{margin:0;font-size:15px}
.cx-typerow__tag{flex:1;min-width:0;color:var(--cx-muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-typerow__meta{display:flex;gap:6px;align-items:center}
.cx-typerow__chev{color:var(--cx-muted);transition:transform .15s}
.cx-typerow[open] .cx-typerow__chev{transform:rotate(180deg)}
.cx-typerow__body{padding:4px 14px 14px;display:grid;gap:10px;border-top:1px solid var(--cx-line)}
.cx-typerow__body p{margin:10px 0 0;font-size:13px;color:var(--cx-muted)}
.cx-typerow .cx-badge{font-size:10.5px;padding:2px 7px}
@media (max-width:760px){.cx-typerow__tag{display:none}.cx-typerow__meta .cx-badge:nth-child(n+2){display:none}.cx-typerow__name{flex:1;min-width:0}}
.cx-typelist{gap:5px}
.cx-typerow{border-radius:8px}
.cx-typerow summary{padding:6px 12px;gap:10px}
.cx-typerow .cx-tile{width:26px;height:26px;flex-basis:26px;border-radius:6px}
.cx-typerow .cx-tile svg,.cx-typerow .cx-tile i{width:14px!important;height:14px!important}
.cx-typerow__name{display:flex;align-items:baseline;gap:8px;min-width:190px}
.cx-typerow__name h3{font-size:14px;line-height:1.2}.cx-typerow__name small{font-size:11px}
.cx-typerow__tag{font-size:12px}
.cx-typerow .cx-badge{font-size:10px;padding:1px 6px}
.cx-typerow__chev svg,.cx-typerow__chev i{width:14px!important;height:14px!important}
.cx-hq{padding:0;overflow:hidden;margin-bottom:18px}
.cx-hq__title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-bottom:1px solid var(--cx-line);background:rgba(255,255,255,.03)}
.cx-hq__title>a:first-child{font-family:Oswald,inherit;font-size:16px;font-weight:600;color:#f4f6f8;text-decoration:none}
.cx-hq__meters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--cx-line)}
.cx-hq__meter{display:flex;align-items:center;gap:12px;padding:14px 16px;border-right:1px solid var(--cx-line)}
.cx-hq__meter:last-child{border-right:0}
.cx-hq__meter>svg,.cx-hq__meter>i{width:30px!important;height:30px!important;color:#697585;flex:0 0 auto}
.cx-hq__meter>div{flex:1;min-width:0;display:grid;gap:6px}
.cx-hq__meter b{font-size:13px;color:#f4f6f8}
.cx-hq__band{margin:0;padding:8px 16px;font-size:13px;font-weight:600;color:var(--cx-muted);border-bottom:1px solid var(--cx-line);background:rgba(255,255,255,.025)}
.cx-hq__cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--cx-line)}
.cx-hq__cols:last-child{border-bottom:0}
.cx-hq__cols>div{display:grid;gap:5px;align-content:start;padding:12px 16px;border-right:1px solid var(--cx-line);font-size:13px}
.cx-hq__cols>div:last-child{border-right:0}
.cx-hq__cols>div>div{display:flex;gap:6px;flex-wrap:wrap}
.cx-hq__cols>div>div:not(.cx-hq__stars)>span{color:var(--cx-muted)}.cx-hq__cols>div>div:not(.cx-hq__stars)>span::after{content:":"}
.cx-hq__cols>div>div>b{font-weight:600;color:#f4f6f8}
.cx-hq__cols>div>div.cx-hq__stars{display:block;margin-top:4px}
@media (max-width:760px){.cx-hq__meters,.cx-hq__cols{grid-template-columns:1fr}.cx-hq__meter,.cx-hq__cols>div{border-right:0;border-bottom:1px solid var(--cx-line)}}
.cx-table--registry td:first-child,.cx-table--registry th:first-child{min-width:230px}
#cxRegistryTable .cx-section{margin-bottom:14px}
.cx-quick{padding:0;margin-bottom:14px;max-width:420px}
.cx-quick__row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 14px;border-bottom:1px solid var(--cx-line)}
.cx-quick__row:last-child{border-bottom:0}
.cx-quick__label{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--cx-muted)}
.cx-quick__row b{font-size:14px;white-space:nowrap}
.cx-new{display:inline-flex;align-items:center;margin-left:8px;padding:1px 7px;border-radius:999px;background:var(--cx-red);color:#fff;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:none;animation:cx-new-pulse 2s ease-in-out infinite}
@keyframes cx-new-pulse{50%{box-shadow:0 0 0 4px rgba(239,68,68,.22)}}
@media (prefers-reduced-motion:reduce){.cx-new{animation:none}}

/* Compact density: thinner panels, rows and tables across the company pages. */
#cxView{gap:12px}
.cx-grid{gap:8px}
.cx-section>header{padding:7px 14px}
.cx-section>header h2{font-size:12px}
.cx-section>div{padding:8px 14px}
.cx-list>div{padding:5px 0;font-size:13px}
.cx-person{padding:8px 14px;gap:10px}
.cx-person small{margin-top:1px}
.cx-statline{margin-top:2px}
.cx-table th{padding:7px 12px}
.cx-table td{padding:6px 12px}
.cx-card{padding:11px 12px;gap:7px}
.cx-stat{padding:9px 14px}
.cx-tab{padding:5px 12px}
.cx-warn,.cx-note{padding:6px 12px}
.cx-head h1{font-size:22px}
.cx-head p{margin-top:2px}
.cx-graph svg{max-height:190px}
.cx-hq__meter{padding:9px 14px}
.cx-hq__cols>div{padding:8px 14px;gap:3px}
.cx-hq__band{padding:5px 14px}
.cx-hq__title{padding:7px 14px}
.cx-bar{height:5px}
.cx-table--plain{font-size:13px}
.cx-tablewrap:has(.cx-table--plain){border:0;border-radius:0}
.cx-table--plain td,.cx-table--plain th{padding-left:10px;padding-right:10px}
.cx-table--plain .cx-stats2{white-space:nowrap}.cx-table--plain .cx-stats2 small{display:block;color:var(--cx-muted);font-size:11px}
.cx-table--plain td b{white-space:nowrap}
.cx-table--registry td,.cx-table--registry th{padding-top:4px;padding-bottom:4px;white-space:nowrap}
.cx-table--registry th{padding-top:6px;padding-bottom:6px}
.cx-table--registry .cx-cell{gap:9px}
.cx-table--registry .cx-tile{width:26px;height:26px;flex-basis:26px;border-radius:6px}
.cx-table--registry .cx-tile svg,.cx-table--registry .cx-tile i{width:14px!important;height:14px!important}
.cx-table--registry .cx-badge{font-size:9.5px;padding:1px 6px;margin-left:4px}
.cx-table--registry .cx-bar{height:4px}
.cx-table--registry td:first-child,.cx-table--registry th:first-child{min-width:200px}
@media (max-width:520px){
.cx-table--plain{font-size:11.5px}
.cx-table--plain td,.cx-table--plain th{padding:5px 4px}
.cx-table--plain th{font-size:9px;letter-spacing:.08em}
.cx-table--plain td b{white-space:normal}
.cx-table--plain .cx-stats2 small{font-size:10.5px}
.cx-table--plain .cx-badge{font-size:8.5px;padding:1px 5px;margin-left:0}
}
.cx-hq__cols--one{grid-template-columns:1fr}
.cx-hq__cols--one>div{border-right:0;gap:2px}
.cx-hq__cols--one>div>div{flex-wrap:nowrap;justify-content:space-between;max-width:340px}
/* Company HQ: the economy list and the player's own details sit side by side. */
.cx-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;margin-bottom:14px}
.cx-pair .cx-quick{max-width:none;margin-bottom:0}
.cx-col{display:grid;gap:12px;align-content:start;min-width:0;min-height:56px}
.hm-masteries{display:grid;gap:8px;padding:10px 12px}
.hm-mastery{display:grid;gap:8px;padding:9px 11px;border:1px solid color-mix(in srgb,var(--mastery-accent) 32%,var(--cx-line));border-radius:10px;background:linear-gradient(135deg,color-mix(in srgb,var(--mastery-accent) 9%,transparent),rgba(255,255,255,.018))}
.hm-mastery__id{display:flex;align-items:center;gap:9px}
.hm-mastery__id>span{flex:0 0 auto;width:6px;height:28px;border-radius:99px;background:var(--mastery-accent);box-shadow:0 0 12px color-mix(in srgb,var(--mastery-accent) 60%,transparent)}
.hm-mastery__id div{display:grid}
.hm-mastery__id small{color:var(--mastery-accent);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.hm-mastery__id b{font-size:14px;color:#f4f6f8}
.hm-mastery__paths{display:flex;flex-wrap:wrap;gap:5px}
.hm-mastery__paths span{padding:3px 8px;border:1px solid rgba(255,255,255,.1);border-radius:99px;background:rgba(0,0,0,.2);font-size:12px;font-weight:600}
.hm-mastery__paths em{color:var(--mastery-accent);font-size:10px;font-style:normal;font-weight:700}
.hm-perks__tabs{display:flex;border-bottom:1px solid var(--cx-line);background:rgba(255,255,255,.02)}
.hm-perks__tab{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:1px;padding:7px 4px 5px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--cx-muted);cursor:pointer;transition:color .15s,background .15s,border-color .15s}
.hm-perks__tab i,.hm-perks__tab svg{width:18px!important;height:18px!important}
.hm-perks__tab small{font-size:10px;font-weight:700;line-height:1}
.hm-perks__tab:hover{color:#d5dbe3;background:rgba(255,255,255,.04)}
.hm-perks__tab.is-active{color:var(--cx-lime-soft);border-bottom-color:var(--cx-lime);background:rgba(224,184,76,.08)}
.hm-perks__tab:focus-visible{outline:1px solid rgba(224,184,76,.6);outline-offset:-2px}
.hm-perks__list{list-style:none;margin:0;padding:10px 14px 4px;min-height:166px;display:grid;gap:7px;align-content:start}
.hm-perks__list li{font-size:13px;line-height:1.4;color:#d5dbe3;overflow-wrap:anywhere}
.hm-perks__list li b{color:#f4f6f8;font-weight:700}
.hm-perks__dots{display:flex;justify-content:center;gap:8px;padding:6px 0 12px}
.hm-perks__dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#3a4452;cursor:pointer;transition:background .15s,transform .15s}
.hm-perks__dots button:hover{background:#5a6677}
.hm-perks__dots button.is-active{background:var(--cx-lime);transform:scale(1.15)}
.hm-nw{padding:6px 14px 10px;border-top:1px solid var(--cx-line);background:rgba(255,255,255,.02)}
.hm-nw__row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,.9fr);gap:10px;align-items:center;padding:3px 0;font-size:13px}
.hm-nw__row b{font-size:13px;text-align:right}
.hm-nw__row>:last-child{text-align:right;white-space:nowrap}
.hm-nw__head{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--cx-muted);padding-bottom:5px;border-bottom:1px solid var(--cx-line);margin-bottom:3px}
.hm-nw__head>:nth-child(2){text-align:right}
.hm-nw__total{margin-top:3px;padding-top:6px;border-top:1px solid var(--cx-line);font-weight:700}
.hm-up{color:#4fd786;font-family:var(--font-mono,monospace)}
.hm-down{color:#f06d72;font-family:var(--font-mono,monospace)}
.hm-row-wrap{flex-wrap:wrap;align-items:flex-start}
.hm-names{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.hm-gears{display:grid;gap:8px;padding:10px 12px}
.hm-gear{--rar:#9ba6b5;display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:center;gap:14px;padding:8px 12px 8px 8px;border:1px solid color-mix(in srgb,var(--rar) 28%,var(--cx-line));border-left:3px solid var(--rar);border-radius:10px;background:linear-gradient(90deg,color-mix(in srgb,var(--rar) 10%,transparent),rgba(255,255,255,.02) 65%)}
.hm-gear__tile{display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;width:96px;height:60px;overflow:hidden;border:1px solid color-mix(in srgb,var(--rar) 50%,#2f3947);border-radius:9px;background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--rar) 18%,#141a22),#0c1016)}
.hm-gear .hm-gear__tile img{min-width:0;min-height:0;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;padding:4px!important;margin:0!important;box-sizing:border-box!important;object-fit:contain!important;transform:none!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))!important}
.hm-gear__text{display:grid;gap:2px;min-width:0}
.hm-gear__text small{font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--cx-muted)}
.hm-gear__text b{font-size:15px;line-height:1.2;color:#f4f6f8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hm-gear__detail{font-size:12px;line-height:1.3;color:var(--cx-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hm-gear .cx-badge{color:var(--rar);border-color:color-mix(in srgb,var(--rar) 55%,transparent);background:color-mix(in srgb,var(--rar) 14%,transparent)}
.hm-gear.is-empty{border-style:dashed;border-left-style:solid}
.hm-gear.is-empty .hm-gear__text b{color:var(--cx-muted);font-weight:600}
@media (max-width:420px){.hm-gear{grid-template-columns:72px minmax(0,1fr) auto;gap:10px}.hm-gear__tile{width:72px;height:48px}}
.hm-card{position:relative;transition:opacity .2s ease}
.hm-card .cx-quick__title,.hm-card .cx-section>header{cursor:grab}
.hm-grip{position:absolute;top:0;right:4px;z-index:2;display:grid;place-items:center;width:30px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:var(--cx-muted);opacity:.6;cursor:grab;touch-action:none;transition:opacity .15s,background .15s,color .15s}
.hm-card:hover .hm-grip{opacity:1}
.hm-grip:hover,.hm-grip:focus-visible{opacity:1;background:rgba(224,184,76,.12);color:var(--cx-lime-soft)}
.hm-grip:focus-visible{outline:1px solid rgba(224,184,76,.6)}
.hm-grip:active{cursor:grabbing}
.hm-grip i,.hm-grip svg{width:16px!important;height:16px!important}
.hm-card.is-dragging{position:fixed;z-index:1000;margin:0;pointer-events:none;cursor:grabbing;transform:scale(1.025) rotate(.7deg);transform-origin:center top;box-shadow:0 22px 50px rgba(0,0,0,.65),0 0 0 1px rgba(224,184,76,.55),0 0 28px rgba(224,184,76,.18);border-radius:10px;transition:transform .18s cubic-bezier(.2,.8,.2,1),box-shadow .18s ease}
.hm-card.is-dragging .cx-quick__title,.hm-card.is-dragging .cx-section>header{cursor:grabbing}
.hm-card.is-dragging.is-settling{transform:none;box-shadow:0 4px 14px rgba(0,0,0,.35),0 0 0 1px rgba(224,184,76,.25);transition:transform .26s cubic-bezier(.2,.8,.2,1),box-shadow .26s ease}
.hm-placeholder{border:1px dashed rgba(224,184,76,.5);border-radius:10px;background:linear-gradient(180deg,rgba(224,184,76,.09),rgba(224,184,76,.03));animation:hm-pulse 1.4s ease-in-out infinite}
@keyframes hm-pulse{50%{background:linear-gradient(180deg,rgba(224,184,76,.15),rgba(224,184,76,.06));border-color:rgba(224,184,76,.75)}}
body.hm-dragging{user-select:none;-webkit-user-select:none;cursor:grabbing}
body.hm-dragging .hm-card:not(.is-dragging){opacity:.82}
@media (prefers-reduced-motion:reduce){.hm-placeholder{animation:none}.hm-card.is-dragging{transform:none}}
.cx-quick__title{margin:0;padding:6px 14px;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#d5dbe3;border-bottom:1px solid var(--cx-line);background:rgba(255,255,255,.03)}
@media (max-width:760px){.cx-pair{grid-template-columns:1fr}}
.cx-redeem{display:flex;gap:6px;align-items:center;justify-content:center;width:100%}
.cx-redeem .cx-input{width:56px;padding:4px 6px;text-align:center}
.cx-redeem .cx-redeem__name{width:130px;text-align:left}
.cx-reveal{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;margin-bottom:12px}
/* The found a company type picker is a list of rows. */
.cx-pickgrid{grid-template-columns:minmax(0,1fr);gap:5px}
.cx-pick{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:8px}
.cx-pick .cx-tile{width:26px;height:26px;flex-basis:26px;border-radius:6px}
.cx-pick .cx-tile svg,.cx-pick .cx-tile i{width:14px!important;height:14px!important}
.cx-pick__name{display:flex;align-items:baseline;gap:8px;min-width:170px}
.cx-pick__name b{font-size:14px;color:#f4f6f8}.cx-pick__name small{font-size:11px}
.cx-pick__tag{flex:1;min-width:0;color:var(--cx-muted);font-size:12px;line-height:1.3}
.cx-pick__meta{display:flex;gap:6px;align-items:center;flex:0 0 auto}
.cx-pick .cx-badge{font-size:10px;padding:1px 6px}
@media (max-width:640px){.cx-pick__tag{display:none}.cx-pick__name{flex:1;min-width:0}.cx-pick__meta .cx-badge:nth-child(2){display:none}}
/* Job market: one row per company. */
.cx-joblist{display:grid;gap:6px}
.cx-jobrow{display:flex;align-items:center;gap:14px;padding:7px 12px;border:1px solid var(--cx-line);border-radius:10px;background:rgba(255,255,255,.02)}
.cx-jobrow:hover{background:rgba(255,255,255,.035)}
.cx-jobrow__who{display:flex;align-items:center;gap:10px;flex:0 0 250px;min-width:0;text-decoration:none;color:inherit}
.cx-jobrow__who .cx-tile{width:28px;height:28px;flex-basis:28px;border-radius:7px}
.cx-jobrow__who>span{display:grid;min-width:0}.cx-jobrow__who b{font-size:14px;color:#f4f6f8}.cx-jobrow__who small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cx-jobrow__stars{flex:0 0 auto}
.cx-jobrow__meta{display:flex;gap:6px;flex:0 0 auto}
.cx-jobrow .cx-badge{font-size:10px;padding:1px 6px}
.cx-jobrow__apply{display:flex;gap:8px;align-items:center;flex:1;min-width:0;justify-content:flex-end}
.cx-jobrow__apply .cx-input{width:290px;max-width:100%;min-width:0;padding:5px 8px}
.cx-jobrow__scout{flex:0 0 auto;margin-left:auto;white-space:nowrap}
.cx-jobrow__apply+.cx-jobrow__scout{margin-left:0}
@media (max-width:900px){.cx-jobrow{flex-wrap:wrap}.cx-jobrow__who{flex:1 1 100%}.cx-jobrow__apply{flex:1 1 100%;justify-content:flex-start}.cx-jobrow__apply .cx-input{max-width:none;flex:1}}
/* Thinner lists on phones. */
@media (max-width:640px){
.cx-jobrow{gap:4px 8px;padding:5px 10px;border-radius:8px}
.cx-jobrow__who{flex:1 1 100%;gap:8px}
.cx-jobrow__who .cx-tile{width:22px;height:22px;flex-basis:22px;border-radius:6px}
.cx-jobrow__who b{font-size:13px}.cx-jobrow__who small{font-size:10.5px}
.cx-jobrow__stars{transform:scale(.8);transform-origin:left center;margin-right:-14px}
.cx-jobrow__meta{gap:4px}.cx-jobrow .cx-badge{font-size:9px;padding:0 5px}
.cx-jobrow__apply{flex:0 0 auto;margin-left:auto}
.cx-jobrow__apply .cx-btn{padding:3px 10px;font-size:11px;min-height:0;line-height:1.3}
.cx-jobrow__scout{margin-left:0;font-size:11px}
.cx-typerow summary,.cx-pick{padding:4px 10px;gap:8px}
.cx-typerow .cx-tile,.cx-pick .cx-tile{width:22px;height:22px;flex-basis:22px}
.cx-typerow__name h3,.cx-pick__name b{font-size:13px}
.cx-quick__title{padding:5px 12px}
.cx-table--plain td,.cx-table--plain th{padding:4px 4px}
}

/* Company picture banner on the company and scout pages. */
.cx-banner{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:0;margin-bottom:14px;overflow:hidden}
.cx-banner__pic{position:relative;min-height:130px;background:rgba(255,255,255,.03)}
.cx-banner__pic img{display:block;width:100%;height:100%;object-fit:cover;max-height:190px}
.cx-banner__blank{display:grid;place-items:center;height:100%;min-height:130px}
.cx-banner__edit{position:absolute;left:8px;bottom:8px;display:flex;gap:6px}
.cx-banner__col{padding:12px 16px;border-left:1px solid var(--cx-line);display:grid;gap:6px;align-content:center;font-size:13px;color:var(--cx-muted)}
.cx-banner__col b{color:#f4f6f8;font-weight:600}
@media (max-width:760px){.cx-banner{grid-template-columns:1fr 1fr}.cx-banner__pic{grid-column:1 / -1}.cx-banner__col{border-left:0;border-top:1px solid var(--cx-line);padding:8px 12px;font-size:12px}}
.cx-badge--green{border-color:rgba(79,215,134,.45);background:rgba(79,215,134,.1);color:#8be8b0}
.cx-banner__col a{color:var(--cx-lime-soft);text-decoration:none}.cx-banner__col a:hover{text-decoration:underline}

/* Stock order receipt, a till slip. */
.cx-rcpt{width:min(380px,100%);padding:22px 22px 18px;background:#f4f1e8;color:#1c1c1c;border-radius:3px;font-family:ui-monospace,"Courier New",Courier,monospace;font-size:13px;line-height:1.5;box-shadow:0 14px 40px rgba(0,0,0,.55);background-image:repeating-linear-gradient(transparent 0 23px,rgba(0,0,0,.025) 23px 24px)}
.cx-rcpt__head{display:grid;justify-items:center;gap:1px;text-align:center}.cx-rcpt__head b{font-size:15px;letter-spacing:.06em}
.cx-rcpt__dash{border-top:2px dashed #8a867a;margin:9px 0}
.cx-rcpt__row{display:flex;justify-content:space-between;gap:12px}
.cx-rcpt__cols{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:12px;text-align:right}.cx-rcpt__cols>span:first-child{text-align:left}
.cx-rcpt__total{font-size:16px;font-weight:700;margin-bottom:4px}
.cx-rcpt__bad{color:#b3261e;font-weight:700}
.cx-rcpt__thanks{text-align:center;letter-spacing:.12em;font-size:11px;margin:4px 0 14px}
.cx-rcpt__actions{display:flex;gap:10px;justify-content:center}
.cx-rcpt .cx-btn{border-color:#1c1c1c;color:#1c1c1c;background:transparent}.cx-rcpt .cx-btn--lime{background:#1c1c1c;color:#f4f1e8}.cx-rcpt .cx-btn:disabled{opacity:.35}
.cx-priceinput{width:110px;min-height:28px;padding:3px 8px;text-align:right;font-family:ui-monospace,Menlo,Consolas,monospace}
.cx-table--board td:nth-child(2),.cx-table--board th:nth-child(2){min-width:190px}.cx-table--board td b{white-space:nowrap}

/* Tables on a phone: show only the important columns so nothing needs a sideways scroll. */
.cx-m-only{display:none}
@media (max-width:640px){
.cx-m-hide{display:none!important}
.cx-m-only{display:block;color:var(--cx-muted);font-size:11.5px}
.cx-table{min-width:0!important;width:100%}
.cx-tablewrap{overflow-x:hidden}
.cx-table th,.cx-table td{padding-left:8px;padding-right:8px}
.cx-table .cx-stars__row{display:none}
.cx-table .cx-stars b::before{content:"\2605 ";color:var(--cx-lime)}
.cx-table--board td:nth-child(2),.cx-table--board th:nth-child(2){min-width:0}
.cx-table--registry td:first-child,.cx-table--registry th:first-child{min-width:0}
.cx-priceinput{width:84px}
}
@media (max-width:640px){
.cx-table--board td b{white-space:normal}
.cx-cell{min-width:0}.cx-cell b,.cx-cell small{overflow-wrap:anywhere}
.cx-banner .cx-star{width:10px;height:10px}.cx-banner .cx-stars{gap:4px}.cx-banner__col{min-width:0;overflow-wrap:anywhere}
.cx-form .cx-field{min-width:0!important;flex:1 1 100%}
.cx-form .cx-btn{flex:1 1 100%}
}
@media (max-width:640px){.cx-banner .cx-stars__row{gap:1px}.cx-banner .cx-star{width:9px;height:9px}.cx-table--registry td .cx-cell{gap:8px}.cx-table--registry .cx-tile{width:28px;height:28px;flex-basis:28px}}
@media (max-width:640px){.cx-table td,.cx-table th{white-space:normal}.cx-table .cx-stars,.cx-table .cx-badge{white-space:nowrap}.cx-table--registry td:first-child .cx-cell b{display:flex;flex-wrap:wrap;gap:4px;align-items:center}}
@media (max-width:640px){.cx-table .cx-link{white-space:nowrap}}
@media (max-width:640px){.cx-typerow__name{min-width:0!important;flex:1 1 auto}.cx-typerow summary{gap:8px}.cx-typerow__meta{flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end}.cx-typerow__name h3{overflow-wrap:anywhere}}

/* Staff roster: one row per employee, a thin line of small print under each. */
.cx-table--staff{min-width:0}
.cx-table--staff td{vertical-align:middle;white-space:normal}
.cx-table--staff .cx-staff__main td{padding-top:8px;padding-bottom:4px}
.cx-table--staff .cx-staff__sub td{padding:0 14px 8px;border-top:0;border-bottom:1px solid var(--cx-line);text-align:center}
.cx-table--staff .cx-staff__sub small{display:block;font-size:11.5px;color:var(--cx-muted)}
.cx-table--staff .cx-staff__main td{border-bottom:0}
.cx-table--staff b{color:#f4f6f8}
.cx-table--staff .cx-badge{margin-left:6px}
.cx-eff{display:flex;align-items:center;gap:8px;min-width:120px}.cx-eff .cx-bar{flex:1}.cx-eff b{font-size:13px}
.cx-posselect{min-width:150px;padding:5px 8px;min-height:32px}
.cx-payinput{width:110px;min-height:32px;padding:5px 8px;text-align:right}
.cx-staff__actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.cx-staff__mob{margin-top:6px;text-align:left}
.cx-staff__mobrow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;flex-wrap:wrap}
@media (max-width:640px){
.cx-eff{min-width:0}.cx-eff .cx-bar{display:none}
.cx-posselect{min-width:0;width:100%}
.cx-table--staff th,.cx-table--staff td{padding-left:6px;padding-right:6px}
.cx-table--staff .cx-staff__sub td{padding:0 8px 8px;text-align:left}
.cx-payinput{width:96px}
}
.cx-staff__mobpos{margin-top:6px;font-weight:600}.cx-staff__mobpos .cx-posselect{width:100%}
@media (min-width:641px){
.cx-table--staff td:nth-child(3){white-space:nowrap;font-size:12px}
.cx-table--staff .cx-staff__actions{flex-wrap:nowrap}
.cx-table--staff .cx-staff__actions .cx-btn{padding:4px 8px}
.cx-payinput{width:92px}.cx-posselect{min-width:130px}.cx-eff{min-width:100px}
}
@media (min-width:641px){.cx-posselect{min-width:170px}}
.cx-green{color:#4fd786}
@media (min-width:1001px){.cx-top{display:none}}
/* scouting roster: name plates, position, level and status */
.cx-roster{border:1px solid rgba(35,44,56,.9);border-radius:9px;overflow:hidden}
.cx-roster__row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 52px 84px;align-items:center;gap:10px;padding:4px 10px;border-top:1px solid rgba(35,44,56,.7);font-size:13px}
.cx-roster__row:first-child{border-top:0}
.cx-roster__head{background:rgba(255,255,255,.04);font-weight:700;padding:7px 10px}
.cx-roster__pos{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-roster__status{display:flex;gap:6px;align-items:center}
.cx-roster__status i[data-lucide],.cx-roster__status svg{width:15px;height:15px}
.cx-plate{display:flex;align-items:center;justify-content:center;height:26px;max-width:210px;border-radius:5px;background:#1a212b center/cover;text-decoration:none;overflow:hidden}
.cx-plate[data-banner]{background-size:cover;background-position:center}
.cx-table--staff .cx-plate{display:inline-flex;vertical-align:middle;margin-right:6px;min-width:96px}
.cx-plate--blank{background:none;justify-content:flex-start;height:auto}.cx-plate--blank b{padding:0;text-shadow:none;font-size:13px}
.cx-plate b{padding:0 8px;color:#fff;font-size:12px;text-shadow:0 1px 3px #000,0 0 4px #000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cx-dot{width:10px;height:10px;border-radius:50%;background:#5b6573;display:inline-block}.cx-dot.is-on{background:#7ddc4a}
@media (max-width:640px){.cx-roster__row{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 36px 60px;gap:6px;padding:4px 8px;font-size:12px}}

/* Framed picture with crisp square corners (company banner). */
.cx-banner__pic{padding:8px;background:#11161c}
.cx-banner__pic img{border:1px solid #2a3340;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.5)}
.cx-banner__blank{border:1px dashed #2a3340;border-radius:2px}
.cx-allstats{display:grid;grid-template-columns:repeat(2,max-content);gap:2px 14px;justify-content:start}.cx-allstats>span{white-space:nowrap}
.cx-statsdrop summary{cursor:pointer;white-space:nowrap;list-style:none}.cx-statsdrop summary::-webkit-details-marker{display:none}.cx-statsdrop summary::after{content:' ▾';color:var(--cx-muted);font-size:11px}.cx-statsdrop[open] summary::after{content:' ▴'}.cx-statsdrop .cx-allstats{margin-top:4px}
/* thinner company banner */
.cx-banner__pic{min-height:0;padding:5px}.cx-banner__pic img{max-height:104px}.cx-banner__blank{min-height:0;height:100px}.cx-banner__col{padding:6px 14px;gap:2px;font-size:12.5px}.cx-banner{margin-bottom:10px}
@media (max-width:760px){.cx-banner__pic img{max-height:90px}.cx-banner__col{padding:5px 12px}}
/* company pictures are 1200 x 280 */
.cx-banner__pic img{width:100%;height:auto;aspect-ratio:1200/280;max-height:none;object-fit:cover}.cx-banner__blank{height:auto;aspect-ratio:1200/280}
@media (max-width:760px){.cx-banner__pic img{max-height:none}}
.cx-banner__pic img{object-fit:contain;background:#11161c}
/* the picture fills the whole box, no side space */
.cx-banner__pic{display:block;padding:0;max-width:none;overflow:hidden;background:#11161c}
.cx-banner__pic img{display:block;width:100%;height:auto;max-height:150px;aspect-ratio:auto;object-fit:cover;border:0;border-radius:0;box-shadow:none}
.cx-banner__blank{height:104px;width:100%;aspect-ratio:auto}
@media (max-width:760px){.cx-banner__pic{grid-column:1 / -1}.cx-banner__pic img{max-height:130px}}
.cx-banner__edit{left:6px;bottom:6px;gap:4px}.cx-banner__edit .cx-btn{padding:2px 8px;font-size:11px;min-height:0;line-height:1.4;gap:4px}.cx-banner__edit .cx-btn svg,.cx-banner__edit .cx-btn i{width:12px;height:12px}
/* square picture, same frame as the gang image */
.cx-banner__pic{padding:8px;background:transparent;border-radius:0}.cx-banner__pic img,.cx-banner__blank{border:1px solid #2a3340;border-radius:0!important;box-shadow:0 0 0 1px rgba(0,0,0,.5)}.cx-banner__edit{left:16px;bottom:16px}
.cx-staff__main b.cx-idle{color:#ff5a5a}
/* thinner staff rows */
.cx-table--staff .cx-staff__main td{padding-top:3px;padding-bottom:1px;font-size:13px}
.cx-table--staff .cx-staff__sub td{padding:0 12px 3px;font-size:11px}
.cx-table--staff .cx-staff__sub small{font-size:11px;line-height:1.3}
.cx-table--staff .cx-posselect,.cx-table--staff .cx-payinput{min-height:26px;padding:2px 8px;font-size:13px}
.cx-table--staff .cx-staff__actions .cx-btn{padding:2px 8px;min-height:26px;font-size:12px}
.cx-table--staff .cx-staff__main td:first-child{white-space:nowrap}
.cx-table--staff .cx-staff__main small.cx-amber{margin-left:6px}
@media (min-width:641px){.cx-table--staff .cx-staff__sub--empty{display:none}}
.cx-table--staff .cx-staff__sub--empty small{display:none}
/* thinner staff controls on every screen (16px text kept on phones so they do not zoom) */
.cx-table--staff .cx-posselect,.cx-table--staff .cx-payinput{min-height:24px!important;padding:2px 8px!important;line-height:1.3}
.cx-table--staff .cx-btn{min-height:24px!important;padding:1px 8px!important;font-size:12px;line-height:1.3}
@media (max-width:640px){.cx-table--staff .cx-posselect,.cx-table--staff .cx-payinput{min-height:28px!important;padding:3px 8px!important}.cx-table--staff .cx-btn{min-height:28px!important;padding:2px 9px!important}.cx-staff__mobrow{margin-top:4px}.cx-staff__mobpos{margin-top:4px}}
@media (max-width:640px){.cx-table--staff{table-layout:auto;width:100%}.cx-table--staff .cx-staff__main td:first-child{white-space:normal;width:99%;overflow:visible}.cx-table--staff .cx-staff__main td:first-child .cx-badge{display:inline-block;margin:2px 4px 0 0;vertical-align:middle}.cx-table--staff .cx-plate{min-width:0;max-width:150px;vertical-align:middle}.cx-table--staff .cx-staff__main td:last-child,.cx-table--staff .cx-staff__main td:nth-child(2){width:1%;white-space:nowrap}.cx-table--staff .cx-staff__main small.cx-amber{margin-left:4px}.cx-table--staff .cx-staff__actions{flex-wrap:wrap}}
