/* The company control stays in normal flow, separate from sidebar controls. */
.company-switcher{position:relative;flex-shrink:0;margin:0 0 16px;font-size:12px;z-index:70;color:#f6f6f8}
.company-switcher .company-switch-trigger{box-sizing:border-box;list-style:none;display:flex;align-items:center;gap:10px;width:100%;min-height:78px;padding:13px 11px;border:1px solid #ffffff38;border-radius:15px;background:linear-gradient(135deg,#ffffff16,#ffffff08);box-shadow:inset 0 1px 0 #ffffff12,0 4px 12px #00000010;color:inherit;text-align:left;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s;touch-action:manipulation}
.company-switch-trigger::-webkit-details-marker{display:none}
.company-switcher .company-switch-trigger:hover,.company-switcher[open] .company-switch-trigger{background:linear-gradient(135deg,#ffffff23,#ffffff12);border-color:#ffffff65;box-shadow:inset 0 1px 0 #ffffff1a,0 5px 16px #00000018}
.company-monogram{box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #ffffff26;border-radius:11px;background:#ffffff0c;font-weight:750;font-size:11px;letter-spacing:.03em}
.company-switch-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:6px}
.company-switch-copy strong{font-size:12px;font-weight:600;white-space:normal;line-height:1.35;color:#fff}
.company-switch-copy small{color:#c6cbd1;font-size:10px;font-weight:500;line-height:1.35}
.company-switch-chevron{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:8px;background:#ffffff0c;color:#e8ebee}
.company-switcher svg{width:14px;height:14px;flex-shrink:0}
.company-switch-chevron svg{transition:transform .18s}
.company-switcher[open] .company-switch-chevron svg{transform:rotate(180deg)}
.company-menu{position:absolute;top:calc(100% + 8px);left:0;right:0;min-width:0;padding:7px;border:1px solid #ffffff30;border-radius:15px;background:#252830;color:#fff;box-shadow:0 15px 45px #0005}
.company-menu>span{display:block;padding:7px 7px 10px;color:#aeb5bf;font-size:9px;text-transform:uppercase;letter-spacing:.06em}
.company-menu button{box-sizing:border-box;display:flex;align-items:center;gap:8px;width:100%;min-height:54px;padding:10px 8px;border:1px solid transparent;border-radius:10px;background:none;color:inherit;cursor:pointer;text-align:left;font:inherit}
.company-menu button:hover{background:#ffffff0c}
.company-menu button[aria-current=true]{background:#ffffff12;border-color:#ffffff20}
.company-menu button>span{flex:1;white-space:normal;line-height:1.4;font-size:11px}
.company-menu b{font-size:10px;color:#ff6973;min-width:25px}
.company-menu button svg{width:13px;height:13px}
.sidebar>.sidebar-controls{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;min-height:34px;margin:0 0 12px}
.office>.sidebar>.sidebar-controls>.sidebar-toggle{position:static;inset:auto;flex-shrink:0}
.sidebar>.sidebar-heading{padding-bottom:12px;margin-bottom:0}
.sidebar>.nav-caption{display:none}
@media(min-width:801px){
 .office[data-sidebar-collapsed=true]:not([data-sidebar-peek=true]) .sidebar-heading{padding-bottom:12px;margin-bottom:0}
 .office[data-sidebar-collapsed=true]:not([data-sidebar-peek=true]) .sidebar-controls{justify-content:center}
 .office[data-sidebar-collapsed=true]:not([data-sidebar-peek=true]) .company-switch-copy,.office[data-sidebar-collapsed=true]:not([data-sidebar-peek=true]) .company-switch-chevron{display:none}
 .office[data-sidebar-collapsed=true]:not([data-sidebar-peek=true]) .company-switcher{margin:0 0 16px}
 .office[data-sidebar-collapsed=true]:not([data-sidebar-peek=true]) .company-switch-trigger{min-height:58px;padding:8px;justify-content:center}
}
@media(max-width:800px){.sidebar>.sidebar-controls{display:none}.sidebar>.company-switcher{margin:14px 0 4px}.company-switcher .company-switch-trigger{min-height:74px}}
@media(prefers-reduced-motion:reduce){.company-switcher *{transition:none!important}}
@media(forced-colors:active){.company-switcher .company-switch-trigger,.company-menu,.company-menu button{background:Canvas;color:CanvasText;border-color:ButtonText}.company-switch-copy strong,.company-switch-copy small,.company-switch-chevron,.company-menu b{color:CanvasText}.company-menu button[aria-current=true]{outline:2px solid Highlight}}
.company-switch-warning{padding:5px 24px;line-height:1.6}.company-switch-actions{display:flex;justify-content:flex-end;gap:12px;padding:20px 24px}.company-worker-bar{background:#20232a;padding:1px 12px}.company-worker-bar .company-switcher{max-width:320px;margin:6px auto}.company-denied{max-width:480px;margin:15vh auto;padding:32px;text-align:center}.company-denied .company-switcher{background:#252830;border-radius:15px}.company-denied>.company-monogram{background:#20232a;color:#fff}.company-denied p{line-height:1.6;color:#68717e}
.ggt-office{--gt-border:#e2e5e9;--gt-card:#fff;--gt-text:#20242b;--gt-muted:#737b87;min-height:100dvh;background:#f4f5f7;color:var(--gt-text);font-family:Arial,Helvetica,sans-serif}.ggt-office button,.ggt-office input{font:inherit}.ggt-office svg{width:20px;height:20px;flex-shrink:0}.ggt-sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:linear-gradient(150deg,#292c33,#171a20);color:#fff;display:flex;flex-direction:column;padding:28px 12px 16px;z-index:80}.ggt-brand{padding:4px 18px 25px;display:flex;flex-direction:column;gap:8px}.ggt-brand>span{font-weight:800;font-size:34px;letter-spacing:-.06em}.ggt-brand small{font-size:8px;letter-spacing:.16em;color:#c7cbd3}.ggt-sidebar .company-switcher{margin:0 0 26px}.ggt-sidebar nav{display:grid;gap:6px}.ggt-sidebar nav>button,.ggt-sidebar-bottom>button{border:0;background:none;color:#bfc5ce;display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:13px 14px;border-radius:12px;cursor:pointer;font-size:12px}.ggt-sidebar nav>button:hover,.ggt-sidebar nav>button.selected{color:#fff;background:#ffffff10}.ggt-sidebar nav>button.selected svg{color:#ff6672}.ggt-sidebar-bottom{margin-top:auto;padding-top:40px}.ggt-environment{font-size:10px;color:#aeb5c1;display:flex;align-items:center;gap:8px;padding:12px 14px}.ggt-environment i{width:6px;height:6px;border-radius:50%;background:#7bcc9a}.ggt-stage{margin-left:244px}.ggt-header{position:sticky;top:0;height:78px;background:#f4f5f7ed;backdrop-filter:blur(22px);display:flex;align-items:center;gap:16px;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--gt-border);z-index:40}.ggt-header>div:first-of-type{display:flex;align-items:center;gap:12px;min-width:0}.ggt-header strong{font-size:12px}.ggt-company-pill{font-size:10px;letter-spacing:.06em;font-weight:750;padding:6px 9px;border:1px solid #d8dce2;border-radius:7px}.ggt-header-tools{display:flex;align-items:center;gap:12px}.ggt-content{padding:34px 38px 60px;max-width:1600px;margin:auto}.ggt-hero{position:relative;overflow:hidden;border:1px solid #393d46;border-radius:24px;background:linear-gradient(110deg,#22262e,#30343e);padding:44px;color:white;display:flex;justify-content:space-between;gap:24px}.ggt-hero>div:first-child{position:relative;z-index:1;max-width:570px}.ggt-hero .eyebrow{color:#b8bdc7;font-size:10px;letter-spacing:.18em;margin:0 0 25px}.ggt-status{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid #ffffff25;border-radius:20px;color:#d7eadf;font-size:10px}.ggt-status svg{width:12px;height:12px}.ggt-hero h1{font-size:clamp(28px,3.4vw,46px);font-weight:600;letter-spacing:-.045em;line-height:1.1;margin:20px 0 16px;max-width:510px}.ggt-hero p:not(.eyebrow){color:#bdc3cf;font-size:13px;line-height:1.8;max-width:450px}.ggt-hero-button{margin-top:20px;display:inline-flex;align-items:center;gap:16px;padding:12px 16px;background:#ef3340;border:none;border-radius:22px;color:#fff;cursor:pointer;font-weight:600!important;font-size:12px!important}.ggt-hero-mark{display:flex;align-items:center;gap:3px;position:relative;min-width:190px;color:#ffffff0b;font-size:clamp(70px,10vw,150px);font-weight:800;letter-spacing:-.1em;transform:rotate(-8deg)}.ggt-hero-mark i{height:180px;width:4px;position:absolute;right:15%;background:linear-gradient(transparent,#ef3340,transparent);transform:rotate(25deg)}.ggt-foundation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.ggt-card{background:var(--gt-card);border:1px solid var(--gt-border);border-radius:20px;padding:26px;text-align:left;color:var(--gt-text);min-width:0}.ggt-card>svg,.ggt-card-icon{margin-bottom:22px;color:#ef3340}.ggt-card small{display:block;font-size:10px;color:var(--gt-muted);margin-bottom:9px}.ggt-card h2{font-size:18px;letter-spacing:-.025em;font-weight:600;margin:0 0 12px}.ggt-card p{font-size:12px;line-height:1.7;color:var(--gt-muted);margin:0 0 16px}.ggt-card-link{cursor:pointer;transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column;align-items:flex-start}.ggt-card-link:hover{transform:translateY(-3px);box-shadow:0 9px 25px #111a2d09}.ggt-card-link>span{display:flex;align-items:center;gap:10px;font-size:11px;margin-top:auto;color:#d62634}.ggt-card-link>span svg{width:14px;height:14px}.ggt-planned{font-size:10px;color:var(--gt-muted);display:inline-flex;padding:6px 10px;background:#838d9b10;border-radius:20px}.ggt-roadmap{display:grid;grid-template-columns:.8fr 1.2fr;gap:35px}.ggt-roadmap .eyebrow{font-size:10px;letter-spacing:.09em;margin-bottom:12px}.ggt-module-list{display:grid;gap:1px}.ggt-module-list>div{display:flex;align-items:center;gap:13px;padding:14px 0;border-bottom:1px solid var(--gt-border)}.ggt-module-list>div:last-child{border:0}.ggt-module-list>div>span{font-size:10px;color:#9ba2ad}.ggt-module-list svg{width:16px;height:16px;color:#717985}.ggt-module-list strong{flex:1;font-size:11px;font-weight:500}.ggt-module-list small{margin:0;font-size:10px}.ggt-access-list{display:grid;margin:25px 0;gap:12px}.ggt-access-list>div{display:flex;gap:15px;align-items:center;padding:16px;border:1px solid var(--gt-border);border-radius:12px;font-size:13px}.ggt-access-list>div>span{flex:1}.ggt-access-list svg{color:#d62b38}.ggt-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.ggt-form-grid label{display:flex;flex-direction:column;gap:9px;font-size:12px}.ggt-form-grid input{border:1px solid var(--gt-border);border-radius:10px;padding:13px;color:var(--gt-text);background:transparent;min-width:0;width:100%;box-sizing:border-box}.ggt-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;font-size:11px;color:var(--gt-muted)}.ggt-settings-footer .primary{display:flex;align-items:center;gap:10px}.ggt-settings-footer svg{width:15px;height:15px}.ggt-loading{padding:80px;text-align:center}.ggt-mobile-menu,.ggt-scrim{display:none}.ggt-office button:focus-visible,.company-switcher summary:focus-visible,.company-menu button:focus-visible{outline:3px solid #ef3340;outline-offset:3px}
[data-theme=dark] .ggt-office{--gt-border:#353b46;--gt-card:#242831;--gt-text:#edf0f4;--gt-muted:#a2aab7;background:#1b1f26}[data-theme=dark] .ggt-header{background:#1b1f26ed}[data-theme=dark] .ggt-company-pill{border-color:#454d59}
@media(max-width:1050px){.ggt-sidebar{width:214px}.ggt-stage{margin-left:214px}.ggt-content{padding:24px}.ggt-header{padding:0 24px}.ggt-hero{padding:30px}.ggt-hero-mark{display:none}.ggt-foundation-grid{gap:12px}.ggt-card{padding:20px}.ggt-roadmap{grid-template-columns:1fr;gap:10px}}
@media(max-width:760px){.ggt-sidebar{transform:translateX(-100%);width:260px;transition:transform .2s}.ggt-stage{margin-left:0}.ggt-mobile-menu{display:inline-flex}.ggt-header{height:66px;padding:0 16px;gap:10px}.ggt-header strong{display:none}.ggt-header-tools{margin-left:auto}.ggt-content{padding:20px 16px 40px}.ggt-hero{padding:28px 24px;border-radius:20px}.ggt-hero h1{font-size:34px}.ggt-foundation-grid{grid-template-columns:1fr}.ggt-card-link>svg,.ggt-card-icon{margin-bottom:13px}.ggt-card-link>span{margin-top:3px}.ggt-form-grid{grid-template-columns:1fr}.ggt-office.nav-open .ggt-sidebar{transform:none}.ggt-office.nav-open .ggt-scrim{display:block;position:fixed;inset:0;background:#0006;border:0;z-index:60}.ggt-access-list>div{flex-wrap:wrap}.ggt-settings-footer{flex-wrap:wrap}.ggt-module-list>div{gap:9px}.ggt-module-list strong{font-size:11px}.ggt-module-list small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.ggt-card-link,.ggt-sidebar{transition:none}}

.ggt-office .ggt-header button.icon-button.ggt-mobile-menu{display:none}
@media(max-width:760px){.ggt-office .ggt-header button.icon-button.ggt-mobile-menu{display:inline-flex}}

.ggt-menu-close{display:none;position:absolute;right:15px;top:26px;border:0;background:#ffffff12;border-radius:50%;width:36px;height:36px;color:#fff;align-items:center;justify-content:center}
@media(max-width:760px){.ggt-menu-close{display:flex}}

/* GGT departments use the existing GGC layout and design tokens. */
.ggt-shared-office{--gt-border:var(--line);--gt-card:var(--surface);--gt-text:var(--text);--gt-muted:var(--muted)}
.sidebar .company-brand .brand-mark{overflow:hidden;background:#fff}
.company-logo{display:block;width:38px;height:38px;object-fit:contain;border-radius:9px;background:#fff}
.company-monogram:has(.company-logo){overflow:hidden;border-color:#ffffff90;background:#fff}
.company-menu b:has(.company-logo){flex:0 0 34px;min-width:34px}
.company-menu .company-logo{width:34px;height:34px}
.sidebar .company-brand .brand-mark img{width:100%;height:100%;object-fit:contain}
.sidebar .company-brand .ggt-wordmark{display:block;width:auto;height:44px;object-fit:contain;object-position:left}
.office.ggt-shared-office>.stage>.content{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:20px;min-height:0;padding-top:24px;padding-bottom:22px}
.ggt-shared-office .content>.page-heading,.ggt-shared-office .content>.metrics{margin:0;flex:none}
.ggt-shared-office .content>.page-heading .eyebrow{display:none}
/* Module roots are flex children of the page. Vertical auto margins would
   center short lists and shift every title according to its content height. */
.ggt-shared-office>.stage>.content>:is(#ggt-projects-workspace,#ggt-partners-workspace,#company-admin-workspace){flex:none;align-self:stretch;margin:0;width:100%;max-width:none;min-width:0}
.ggt-shared-office :is(#ggt-projects-workspace,#ggt-partners-workspace){display:flex;flex-direction:column;gap:20px}
.ggt-shared-office :is(#ggt-projects-workspace,#ggt-partners-workspace)>.page-heading{margin:0;padding:0}
.ggt-shared-office #ggt-projects-workspace>.work-toolbar{margin:0}
.ggt-shared-office :is(#ggt-projects-workspace,#ggt-partners-workspace)>:is(.records-grid,.gp-company-grid):empty{display:none}
.ggt-shared-office #ggt-projects-workspace .work-pagination{margin:20px 0 0}
.ggt-shared-office .content .page-heading .heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
.ggt-shared-office .ed-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.ggt-shared-office .ed-metric{min-height:112px}
.ggt-shared-office .ed-metric-copy>strong{font-size:1.5rem}
.company-department-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;flex:1;min-height:400px}
.company-department-dashboard>.panel{margin:0;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.company-department-dashboard .panel-heading{padding:16px;min-height:82px;flex:none;border-bottom:1px solid var(--line);gap:12px}
.company-department-dashboard .panel-heading .eyebrow{font-size:11px;color:var(--muted);margin:0 0 5px}
.company-department-dashboard .panel-heading h2{font-size:20px;margin:0;font-weight:600}
.company-calendar .ed-days{min-height:270px;flex:1}.company-calendar .ed-day{min-height:44px}.company-calendar .ed-day-number{display:grid!important}
.company-section-search{display:flex;align-items:center;gap:9px;margin:14px 16px;padding:0 10px;border:1px solid var(--line);border-radius:10px;color:var(--muted);background:var(--surface);flex:none}
.company-section-search input{width:100%;min-width:0;min-height:40px;border:0;background:transparent;box-shadow:none;color:var(--text);padding:8px 0;font:inherit;font-size:13px}
.company-section-search svg{width:17px;height:17px;flex:none}
.company-section-list{padding:0 16px;overflow:auto;min-height:0;flex:1}
.company-section-list>button{display:flex;align-items:center;width:100%;min-height:62px;padding:10px 0;gap:12px;background:none;color:var(--text);border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer;font:inherit}
.company-section-list>button[hidden]{display:none}.company-section-list>button:hover{color:var(--accent)}
.company-section-list>button>.nav-glyph{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:var(--soft);color:var(--muted)}
.company-section-list>button>.nav-glyph svg{width:19px;height:19px}
.company-section-list>button>span:not(.nav-glyph){flex:1;display:grid;gap:4px;min-width:0}.company-section-list strong{font-size:13px;font-weight:600}.company-section-list small{font-size:11px;color:var(--muted)}
.company-section-list>button>svg{width:15px;height:15px;flex:none}
.company-department-footer{border-top:1px solid var(--line);padding:14px 16px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.company-department-footer .text-button{display:flex;align-items:center;gap:8px;font-size:12px}
.company-setup-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;line-height:1.5;flex:none}.company-setup-note svg{width:15px;height:15px;flex:none}
.company-section-table{margin:0;overflow:hidden}.company-section-table .panel-heading{padding:18px 22px}.company-section-table table{width:100%;border-collapse:collapse}.company-section-table th{text-align:left;padding:14px 22px;color:var(--muted);font-size:12px;font-weight:500;border-block:1px solid var(--line);background:var(--soft)}.company-section-table td{padding:0}.company-section-table .empty{min-height:310px}.company-section-table .empty p{max-width:440px;margin-inline:auto;line-height:1.7}
.company-page-actions{display:flex;justify-content:center;padding:0 24px 24px}.company-search-dialog{padding:0 8px 18px;max-height:65vh;overflow:auto}.company-search-dialog .company-section-list{max-height:48vh}
.ggt-shared-office .ggt-card{box-shadow:var(--shadow)}.ggt-shared-office .ggt-settings-footer .button{margin-right:auto}
@media(min-width:1001px) and (min-height:700px){.ggt-shared-office[data-workspace-page=dashboard]>.stage{height:100dvh}.ggt-shared-office[data-workspace-page=dashboard]>.stage>.content{flex:1;overflow:auto}.company-department-sections .company-section-list{max-height:calc(100dvh - 500px);min-height:160px}}
@media(max-width:1100px){.company-department-dashboard{grid-template-columns:1fr}.company-department-sections .company-section-list{max-height:320px}.ggt-shared-office>.stage{height:auto!important;min-height:100dvh}.ggt-shared-office .ed-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.office.ggt-shared-office>.stage>.content{gap:16px;padding-top:16px}.ggt-shared-office :is(#ggt-projects-workspace,#ggt-partners-workspace){gap:16px}.ggt-shared-office .ed-metric{min-height:110px}.ggt-shared-office.is-estimation-dashboard>.stage>.topbar>.topbar-actions{display:flex;justify-content:flex-end}.ggt-shared-office .ed-metric-copy{display:flex}.company-department-dashboard{gap:16px;min-height:0}.company-calendar .ed-calendar-toolbar{height:auto;min-height:62px;flex-wrap:wrap}.company-department-dashboard .panel-heading h2{font-size:18px}.company-calendar .ed-days{min-height:260px}.company-section-table .empty{min-height:240px}.company-section-table th{padding:12px}.ggt-shared-office .ggt-form-grid{grid-template-columns:1fr}}

/* Keep multi-company access compact above the Worker app. */
.company-worker-bar .company-switcher{max-width:600px;margin:4px auto}
.company-worker-bar .company-switch-trigger{min-height:44px;padding:6px 10px}
.company-worker-bar .company-switch-copy small{display:none}

/* The sidebar brand is the only company selector. Other entry points keep their compact control. */
.sidebar-heading>.company-brand-switcher{flex:1;min-width:0;margin:0}
.sidebar .company-brand-switcher .company-switch-trigger{min-height:44px;padding:0;gap:6px;border:0;border-radius:10px;background:transparent;box-shadow:none}
.sidebar .company-brand-switcher .company-switch-trigger:hover,.sidebar .company-brand-switcher[open] .company-switch-trigger{background:#ffffff0a;box-shadow:none}
.sidebar .company-brand-switcher .brand{display:flex;align-items:center;flex:1;min-width:0;min-height:44px;gap:10px;padding:0;margin:0;white-space:nowrap}
.sidebar .company-brand-switcher .brand-wordmark{min-width:0;max-width:calc(100% - 48px);object-fit:contain;object-position:left}
.sidebar .company-brand-switcher .company-switch-chevron{flex-basis:20px;width:20px;height:24px;background:transparent}
.sidebar .company-brand-switcher .company-menu{left:-5px;right:-5px}
@media(min-width:801px){
 .office[data-sidebar-collapsed=true]:not([data-sidebar-peek=true]) .sidebar-heading>.company-brand-switcher{margin:0}
 .office[data-sidebar-collapsed=true]:not([data-sidebar-peek=true]) .company-brand-switcher .company-switch-trigger{padding:0;min-height:44px}
 .office[data-sidebar-collapsed=true]:not([data-sidebar-peek=true]) .company-brand-switcher .brand{gap:0}
}
@media(max-width:800px){.sidebar .company-brand-switcher .brand{gap:8px}.sidebar .company-brand-switcher .brand-wordmark{max-width:calc(100% - 42px)}}
