/* Product title and approved Shelton parent identity. No authentication changes. */
.topbar-identity .brand-lockup { flex: 0 0 auto; }
.brand-lockup .sales-product-logo { display: block; width: 230px; height: 56px; object-fit: contain; object-position: left center; }
.office-switcher { position: relative; flex: 0 0 auto; }
.office-switcher > summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 600 12px/1.3 var(--font); cursor: pointer; list-style: none; white-space: nowrap; }
.office-switcher > summary::-webkit-details-marker { display: none; }
.office-switcher > summary img { width: 16px; height: 16px; }
.office-switcher > summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 1px 0 4px; }
.office-switcher[open] > summary { border-color: var(--teal); background: var(--teal-soft); }
.office-switcher nav { position: absolute; z-index: 100; top: calc(100% + 8px); left: 0; display: grid; width: 224px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-soft); }
.office-switcher nav a, .topbar-identity .office-switcher nav .office-return { display: flex; align-items: center; min-height: 44px; padding: 10px; border: 0; color: var(--ink); text-decoration: none; font: 500 13px/1.4 var(--font); border-radius: 6px; white-space: normal; }
.topbar-identity .office-switcher .office-return::before { content: none; }
.office-switcher nav a:hover { background: var(--teal-soft); }
.office-resource-panel { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.office-resource-panel label { display: grid; gap: 6px; font-size: 13px; }
.office-resource-panel input { width: 100%; min-height: 42px; font: 400 14px var(--font); padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.office-resource-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.office-resource-row p { margin: 0 0 10px; }
.office-resource-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.office-resource-actions :is(a,button) { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 40px; }
.office-switcher :is(summary,a):focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (min-width: 641px) and (max-width: 900px) {
  .brand-lockup .sales-product-logo { width: 185px; height: 48px; }
  .office-switcher > summary { padding: 8px; }
}
@media (max-width: 640px) {
  .mobile-app-bar { gap: 8px; }
  .mobile-app-bar .mobile-brand-lockup { min-width: 0; flex: 1 1 auto; }
  .mobile-brand-lockup .sales-product-logo { display: block; width: 200px; max-width: 100%; height: 50px; object-fit: contain; object-position: left center; }
  .mobile-app-bar .office-switcher > summary { min-height: 40px; padding: 8px; gap: 5px; }
  .mobile-app-bar .office-switcher > summary img { display: none; }
  .mobile-app-bar .office-switcher nav { left: auto; right: 0; width: 220px; }
  .mobile-app-bar .mobile-user-pill { flex: 0 0 auto; }
}
@media (max-width: 380px) {
  .mobile-app-bar .mobile-user-pill [data-mobile-current-user-name] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-app-bar .mobile-user-pill { padding: 3px; }
}

/* Reviewed Office brand hierarchy: company left, product to its right. */
/* Matches Office globals.css .office-product-name: gold divider and compact blue label. */
.sales-product-title { display: inline-grid; min-height: 28px; place-items: center; padding: 0 11px; border-left: 1px solid rgba(184,150,90,.55); color: #315f7c; font: 800 10px/1.2 var(--font); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.company-brand { display: flex; align-items: center; justify-self: start; min-height: 48px; width: clamp(14.5rem,22vw,17.25rem); max-width: 100%; }
.company-brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.company-brand:focus-visible, .brand-lockup:focus-visible, .mobile-brand-lockup:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.office-switcher[open] > summary, .office-switcher nav a:hover { border-color: var(--gold); background: var(--gold-soft); }
.office-switcher :is(summary,a):focus-visible { outline-color: var(--gold); }
@media (min-width: 641px) {
  .topbar { grid-template-areas: "company identity actions" "navigation navigation navigation"; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px 16px; padding: 14px 28px 8px; }
  .topbar > .company-brand { grid-area: company; }
  .topbar-identity { gap: 24px; }
  .topbar-identity .brand-lockup { min-width: 0; }
  .topbar-actions { gap: 8px; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .topbar { gap: 10px 16px; padding: 12px 18px 8px; }
  .topbar-identity { gap: 12px; }
  .sales-product-title { font-size: 10px; }
  .company-brand { width: 192px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .topbar { grid-template-areas: "company identity" "actions actions" "navigation navigation"; grid-template-columns: auto minmax(0,1fr); }
  .topbar-actions { justify-self: end; }
}
@media (max-width: 640px) {
  .mobile-app-bar { display: grid; grid-template-areas: "company product" "office employee"; grid-template-columns: minmax(0,1fr) auto; gap: 3px 10px; padding: max(9px,env(safe-area-inset-top)) 14px 8px; background: white; box-shadow: none; }
  .mobile-app-bar .mobile-brand-lockup { grid-area: product; padding: 0; }
  .mobile-app-bar .sales-product-title { font-size: 10px; padding: 0 0 0 9px; letter-spacing: .14em; }
  .mobile-app-bar .company-brand { grid-area: company; width: min(55vw,14.5rem); min-height: 44px; }
  .mobile-app-bar .office-switcher { grid-area: office; justify-self: start; }
  .mobile-app-bar .office-switcher > summary { min-height: 36px; padding: 6px 8px; }
  .mobile-app-bar .office-switcher nav { left: 0; right: auto; }
  .mobile-app-bar .mobile-user-pill { grid-area: employee; justify-self: end; }
}
