/* CRM workspace: one navigation system and one contextual action bar. */
.ux-shell { --gc-nav-expanded:248px; grid-template-columns:248px minmax(0,1fr); }
.ux-shell > .nav { position:sticky; top:0; display:flex; flex-direction:column; width:248px; height:100dvh; overflow:hidden; transform:none; }
.ux-shell .nav__brand { flex:0 0 auto; min-height:68px; padding:14px 18px; }
.ux-shell .nav__body { flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; padding:8px 8px 16px; scrollbar-width:thin; scrollbar-color:#66758a transparent; }
.ux-shell .nav__group { margin:0 0 3px; padding:0; border:0; }
.ux-shell .nav__section-head { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; padding:10px; border:0; border-radius:8px; background:transparent; color:#d5dfec; text-align:left; font-size:12px; line-height:1.35; cursor:pointer; }
.ux-shell .nav__section-title { display:flex; align-items:center; gap:10px; min-width:0; }
.ux-shell .nav__section-title > i { flex:0 0 18px; text-align:center; }
.ux-shell .nav__section-title > span { white-space:normal; overflow-wrap:anywhere; }
.ux-shell .nav__section-chevron { font-size:10px; margin-left:6px; }
.ux-shell .nav__group:not(.is-open) .nav__items { display:none; }
.ux-shell .nav__group.is-open .nav__items { display:flex; flex-direction:column; gap:3px; padding:2px 0 8px; }
.ux-shell .nav__item { display:flex; align-items:center; gap:10px; margin:0; padding:10px 12px; min-height:42px; border-radius:9px; font-size:12.5px; line-height:1.35; white-space:normal; }
.ux-shell .nav__item-label { display:block; min-width:0; white-space:normal; overflow-wrap:anywhere; }
.ux-shell .nav__item > i { flex:0 0 20px; text-align:center; }
.ux-shell .nav__subhead { margin:9px 12px 4px; padding:0; color:#aebbcf; font-size:9px; font-weight:700; letter-spacing:.09em; }
.ux-shell .nav__section-head:hover,.ux-shell .nav__item:hover { background:rgba(255,255,255,.07); color:white; }
.ux-shell .nav__item.active { background:#ffffff17; color:white; box-shadow:inset 3px 0 var(--gc-nav-accent,#e6c486); }
.ux-shell .nav__foot { position:relative; bottom:auto; margin:0; padding:12px 14px; background:var(--gc-nav-bg,#111827); border-top:1px solid #ffffff17; flex:0 0 auto; }
.ux-shell .nav__foot > div:last-child { position:absolute; right:10px; bottom:16px; margin:0!important; }
.ux-shell .nav__user { min-height:46px; padding:0 30px 0 0; background:transparent; border:0; gap:9px; }
.ux-shell .nav__user .avatar { width:34px; height:34px; min-width:34px; font-size:12px; }
.ux-shell .nav__user .meta { min-width:0; }
.ux-shell .nav__user .meta b { font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ux-shell .nav__user .meta span { font-size:10px; white-space:normal; }
.ux-shell .nav__addproj-wrap { padding:0 12px 10px; flex:0 0 auto; }
.ux-shell .nav__addproj { min-height:36px; font-size:12px; }
.ux-shell .main { min-width:0; width:100%; }
.ux-shell .topbar { position:sticky; top:0; min-height:60px; height:auto; padding:10px 24px; display:flex; align-items:center; gap:10px; z-index:30; background:#fff; }
.ux-shell .topbar .entity-chip { font-size:11px; padding:7px 10px; }
.ux-shell .context-switch { min-width:0; max-width:330px; min-height:36px; font-size:12px; }
.ux-shell .context-switch > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ux-shell .cmdk-trigger { min-width:36px; max-width:240px; }
.ux-shell .health-state { font-size:11px; }
.ux-shell .pagebar { display:flex; align-items:center; justify-content:space-between; gap:16px; min-width:0; padding:18px 24px 0; }
.ux-shell .pagebar__identity { min-width:0; }
.ux-shell .pagebar__group { display:block; color:#596b76; font-size:10px; line-height:1.4; margin-bottom:3px; font-weight:650; letter-spacing:.04em; }
.ux-shell #page-title { display:block!important; margin:0; max-width:none; color:var(--text-1,var(--crm-brand-ink)); font-family:inherit; font-size:24px; line-height:1.25; font-weight:700; letter-spacing:-.025em; overflow-wrap:anywhere; }
.ux-shell .pagebar__actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; min-width:0; }
.ux-shell .pagebar__actions > div { flex-wrap:wrap; }
.ux-shell .content,.ux-shell .main--sales-workspace .content { width:100%; max-width:1800px; padding:18px 24px 44px; margin:0 auto; min-width:0; }
.ux-shell .nav-toggle,.ux-shell .nav-shade { display:none; }
.skip-link { position:fixed; top:8px; left:12px; z-index:3000; padding:12px 18px; border-radius:8px; color:white; background:var(--crm-brand-hover); transform:translateY(-150%); }
.skip-link:focus { transform:none; }
.ux-shell #view { scroll-margin-top:80px; }
.ux-shell .hdr-menu { max-width:min(420px,calc(100vw - 32px)); max-height:75vh; overflow:auto; }
@media(min-width:981px) and (max-width:1250px) {
 .ux-shell { --gc-nav-expanded:224px; grid-template-columns:224px minmax(0,1fr); }
 .ux-shell > .nav { width:224px; }
 .ux-shell .topbar .entity-chip { display:none; }
 .ux-shell .cmdk-trigger span,.ux-shell .cmdk-trigger kbd { display:none; }
 .ux-shell .cmdk-trigger { width:36px; padding:0; justify-content:center; }
}
@media(max-width:980px) {
 .ux-shell { display:block; }
 .ux-shell > .nav { position:fixed; inset:0 auto 0 0; width:min(280px,calc(100vw - 44px)); transform:translateX(-100%); visibility:hidden; transition:transform .18s ease; z-index:110; }
 .ux-shell > .nav.open { transform:translateX(0); visibility:visible; box-shadow:16px 0 48px #0004; }
 .ux-shell .nav-toggle { display:inline-flex; flex:0 0 40px; width:40px; height:40px; align-items:center; justify-content:center; }
 .ux-shell .nav.open + .nav-shade { display:block; position:fixed; inset:0; width:100%; height:100%; background:#0b182b80; border:0; border-radius:0; z-index:105; }
 .ux-shell .topbar { padding:8px 14px; gap:8px; }
 .ux-shell .topbar .entity-chip,.ux-shell .hdr-setup-btn { display:none; }
 .ux-shell .pagebar { padding:16px 18px 0; }
 .ux-shell .content,.ux-shell .main--sales-workspace .content { padding:16px 18px 36px; }
}
@media(max-width:600px) {
 .ux-shell .topbar { flex-wrap:wrap; min-height:56px; padding:6px 10px; gap:5px; }
 .ux-shell .topbar .context-switch { display:flex; flex:1 1 150px; width:auto; max-width:calc(100% - 48px); min-height:40px; margin:0; }
 .ux-shell .topbar .context-switch > span { max-width:calc(100vw - 110px); font-size:12px; }
 .ux-shell .scope-chip { display:none; }
 .ux-shell .topbar .spacer { display:none; }
 .ux-shell .cmdk-trigger { display:inline-flex; width:36px; height:36px; padding:0; align-items:center; justify-content:center; }
 .ux-shell .cmdk-trigger span,.ux-shell .cmdk-trigger kbd { display:none; }
 .ux-shell .health-state { min-height:32px; font-size:10px; margin-left:auto; }
 .ux-shell .health-state span:last-child { display:inline; }
 .ux-shell [data-testid=helpdesk-shortcut] { min-height:36px; padding:6px 8px; }
 .ux-shell .pagebar { flex-direction:column; align-items:stretch; gap:12px; padding:14px 12px 0; }
 .ux-shell #page-title { font-size:21px; }
 .ux-shell .pagebar__actions { justify-content:flex-start; }
 .ux-shell .pagebar__actions > div { flex-wrap:wrap; max-width:100%; }
 .ux-shell .pagebar__actions .btn { white-space:normal; }
 .ux-shell .content,.ux-shell .main--sales-workspace .content { padding:14px 12px 32px; }
 .ux-shell .context-switch .hdr-menu { position:fixed; top:60px; left:12px!important; right:12px!important; min-width:0!important; max-width:none; }
}
@media(prefers-reduced-motion:reduce) { .ux-shell > .nav { transition:none; } }
@media print { .ux-shell { display:block; } .ux-shell > .nav,.ux-shell .topbar,.ux-shell .nav-shade,.skip-link { display:none!important; } .ux-shell .content { max-width:none; padding:0; } .ux-shell .pagebar { padding:0 0 14px; } }

.ui-message-readiness-row { display:grid; grid-template-columns:minmax(170px,240px) minmax(0,1fr); gap:12px; padding:10px 12px; background:var(--bg-subtle,#f7f8fa); border-radius:8px; min-width:0; overflow-wrap:anywhere; }
@media(max-width:600px) { .ui-message-readiness-row { grid-template-columns:minmax(0,1fr); gap:6px; } }

.ux-shell .pagebar[hidden],.ux-shell .ui-local-page-intro [hidden] { display:none!important; }
.ux-shell .ui-local-page-intro { min-height:0; padding-top:0; margin-top:0; }
.ux-shell .ui-local-page-intro p { margin-top:0; }
/* Secondary information remains readable; decorative card borders stay subtle. */
.ux-shell { --gc-text-muted:#5d697b; --text-3:#5d697b; }
.ux-shell .input,.ux-shell .select { border-color:#8493a8; }
.ux-shell .gc-table td { font-size:12px; }
.ux-shell .gc-table th { font-size:10.5px; }
.ux-shell .gc-lead-contact { font-size:11.5px; }
.ux-shell .gc-table-meta,.ux-shell .gc-pager { font-size:11.5px; }
.ux-shell .gc-panel-empty { font-size:12px; }
.ux-shell .gc-attention__copy small { color:#d2deea; font-size:11px; }
.ux-shell .gc-page-head--worklist { margin-top:-4px; margin-bottom:10px; min-height:0; }

.ux-shell .filters { min-width:0; flex-wrap:wrap; }
@media(max-width:600px) { .ux-shell .filters > .input,.ux-shell .filters > .select { min-width:0; flex:1 1 160px; max-width:100%; } }

.ui-audit-filters {display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; min-width:0;}
.ui-audit-filters > .input,.ui-audit-filters > .select { flex:1 1 180px; min-width:0; max-width:100%; }
.ux-shell .ig-grid,.ux-shell .rep-grid,.ux-shell .inbound-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); }
.ux-shell .ig-card,.ux-shell .rep-card,.ux-shell .inbound-grid > * { min-width:0; }
@media(max-width:600px) { .ux-shell .inv-hero { flex-direction:column; align-items:stretch; padding:18px; gap:18px; } .ux-shell .inv-hero__metric { min-width:0; text-align:left; } }

.ux-shell .oh-row { min-width:0; }
.ux-shell .oh-row input[type=time] { width:100%; min-width:0; max-width:100%; padding-inline:6px; }

.ux-shell .oh-row { display:grid; grid-template-columns:46px minmax(0,1fr) 10px minmax(0,1fr); }
@media(max-width:359px) { .ux-shell .oh-row { display:grid; grid-template-columns:46px minmax(0,1fr); } .ux-shell .oh-row .oh-day {grid-row:1 / 3;} .ux-shell .oh-row .oh-dash {display:none;} .ux-shell .oh-row input[type=time] {min-height:36px;} }

.ux-shell .oh-day { width:auto; min-width:0; }

.ux-shell button.hdr-cal__day {appearance:none; font:inherit; color:inherit; border:0; border-radius:8px; background:transparent; min-height:36px; cursor:pointer; }
.ux-shell button.hdr-cal__day:hover,.ux-shell button.hdr-cal__day:focus-visible {background:var(--ui-primary-soft,#eaf0ff);}
.calendar-agenda {display:grid; gap:10px;} .calendar-agenda__item {display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:14px;border:1px solid var(--border);border-radius:9px;text-decoration:none;color:var(--text-1);min-width:0;}
.calendar-agenda__item span {overflow-wrap:anywhere;} .calendar-agenda__item:hover {background:var(--surface-2);}
@media(max-width:480px){.calendar-agenda__item {grid-template-columns:minmax(0,1fr);gap:5px;}}
