/* Task-based teams, recruiting and account surfaces. No new state or permissions. */
.gu-people-nav,
.gu-workspace-shortcuts,
.gu-team-workspace-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gu-people-nav {
  padding-block: 0 16px;
  border-bottom: 1px solid var(--gu-border, #29313e);
  margin-bottom: 24px;
}
.gu-people-nav a,
.gu-workspace-shortcuts a,
.gu-team-workspace-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gu-text-muted, #b1bac9);
  text-decoration: none;
}
.gu-people-nav a:hover,
.gu-workspace-shortcuts a:hover,
.gu-team-workspace-links a:hover { color: #f5f6fa; background: #ffffff06; border-color: #ffffff19; }
.gu-people-nav a[aria-current] { background: #a66be81a; border-color: #aa82e144; color: #f0dffb; }
.gu-workspace-shortcuts,
.team-profile-page .gu-team-workspace-links {
  border-block: 1px solid var(--gu-border, #29313e);
  padding-block: 6px;
  margin-bottom: 22px;
}
.gu-workspace-shortcuts > span,
.gu-team-workspace-links > span { color: #9daabd; padding: 8px 10px 8px 0; font-size: 12px; }
/* User-defined names can be a single long token; never widen mobile grids.
   Timing, numeric columns and telemetry labels are deliberately unaffected. */
.gu-workspace-shortcuts a,
.teams-browse-page .team-directory-card h2,
.team-profile-page .unlinked-roster-member > strong,
.team-profile-page .unlinked-roster-member > em,
.team-profile-page .team-entry-overview-card > h3,
.team-profile-page .team-entry-overview-card > p,
.team-profile-page .team-entry-vehicle strong,
.team-profile-page .team-entry-drivers a {
  min-width: 0;
  overflow-wrap: anywhere;
}
.gu-directory-filter-summary,
.gu-directory-note { color: #aeb9c9; font-size: 12px; line-height: 1.6; margin-block: 12px 18px; }
.gu-directory-filter-summary a { margin-inline-start: 12px; color: #dfb7ee; }
.gu-action-empty { text-align: center; padding: 32px 20px; }
.gu-action-empty h2 { font: inherit; font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 8px; text-transform: none; }
.gu-action-empty p { color: #b0bac9; max-width: 58ch; margin: 0 auto 18px; line-height: 1.6; }
.gu-action-empty > div:last-child,
.gu-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gu-action-empty [hidden] { display: none !important; }
.gu-platform .gu-action-empty .button { color: #f7f5fa; }
.teams-browse-page .my-teams-section { margin-block: 22px 12px; }
.teams-browse-page .my-teams-label { font-size: 14px; letter-spacing: 0; text-transform: none; }
.teams-browse-page .my-team-card { min-height: 58px; padding: 8px 12px; border-radius: 10px; }
.teams-browse-page .my-team-card img { aspect-ratio: 1; object-fit: contain; }
.teams-browse-page .team-directory-card {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 22px 20px 16px;
  border-radius: 12px;
  background: var(--gu-surface, #11161e);
  box-shadow: none;
  border: 1px solid var(--gu-border, #29313e);
  border-top: 2px solid var(--team-card-accent, #9e68dc);
}
.teams-browse-page .team-directory-card:hover { transform: none; border-color: var(--team-card-accent, #9e68dc); }
/* Preserve uploaded team identity without adding another panel or taller card.
   The image is decorative; layered scrims keep names and metadata readable. */
.teams-browse-page .team-directory-card.has-team-banner::before {
  inset: 0;
  height: auto;
  background-image: linear-gradient(90deg,rgba(11,16,23,.91),rgba(11,16,23,.76) 48%,rgba(11,16,23,.42)),var(--team-card-banner);
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.teams-browse-page .team-directory-card.has-team-banner::after {
  display: block;
  background: linear-gradient(180deg,rgba(11,16,23,.04),rgba(11,16,23,.3) 45%,rgba(11,16,23,.89));
  pointer-events: none;
}
.teams-browse-page .team-directory-card.has-team-banner h2 { text-shadow: 0 1px 8px #0009; }
.teams-browse-page .team-directory-logo,
.teams-browse-page .team-directory-card > .team-profile-mark { width: 64px; height: 64px; border-radius: 12px; }
.teams-browse-page .team-directory-card h2 { font: inherit; font-size: 20px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.teams-browse-page .team-directory-description { font-size: 13px; line-height: 1.55; color: #b4bfcd; min-height: 3.1em; }
.teams-browse-page .team-directory-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 12px; }
.teams-browse-page .team-directory-tags em { font-size: 11px; font-style: normal; color: #c0c9d6; padding: 4px 7px; border: 1px solid #ffffff12; background: #ffffff04; border-radius: 5px; }
.teams-browse-page .team-directory-tags .gu-sim-identity { flex: 0 1 auto; min-width: 0; max-width: 100%; padding: 4px 7px; border: 1px solid #ffffff1c; border-radius: 6px; background: #0b1017d9; }
.teams-browse-page .team-directory-card .team-directory-tags .gu-sim-identity { margin-top: 0; }
.teams-browse-page .team-directory-card .gu-team-recruiting { margin-top: 10px; font-size: 12px; color: #b9dccd; white-space: normal; }
.teams-browse-page .gu-team-recruiting span { color: #aebac8; }
.teams-browse-page .team-directory-card .gu-team-member-count { display: block; color: #aab6c7; font-size: 11px; line-height: 1.5; margin-top: 9px; }
.teams-browse-page .team-directory-view { grid-column: 2; font-size: 13px; font-weight: 600; color: #d6dce7; padding-top: 4px; }
.teams-browse-page .team-directory-view span { font-size: 12px; }
.gu-ui-system.connect-browse-page .connect-workspace { padding-top: 0; }
.gu-ui-system.connect-browse-page .connect-choice-step,
.gu-ui-system.connect-browse-page .connect-scope-step { display: grid; grid-template-columns: 215px minmax(0,1fr); gap: 18px; align-items: center; margin-bottom: 16px; }
.gu-ui-system.connect-browse-page .connect-step-head { display: block; }
.gu-ui-system.connect-browse-page .connect-step-head h2 { font: inherit; font-size: 14px; font-weight: 600; margin: 0; color: #cad2de; text-transform: none; letter-spacing: 0; }
body.gu-ui-system.connect-browse-page .connect-type-tabs,
body.gu-ui-system.connect-browse-page .connect-scope-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; }
body.gu-ui-system.connect-browse-page .connect-type-tabs > button,
body.gu-ui-system.connect-browse-page .connect-scope-tabs > button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  min-height: 70px;
  border: 1px solid #313b4b;
  border-radius: 9px;
  background: #121822;
  text-align: left;
  transform: none;
  box-shadow: none;
}
body.gu-ui-system.connect-browse-page .connect-type-tabs > button::after { display: none; }
body.gu-ui-system.connect-browse-page .connect-type-tabs > button b,
body.gu-ui-system.connect-browse-page .connect-scope-tabs > button b { font-size: 14px; font-weight: 650; line-height: 1.4; letter-spacing: 0; text-transform: none; margin: 0; }
body.gu-ui-system.connect-browse-page .connect-type-tabs > button small,
body.gu-ui-system.connect-browse-page .connect-scope-tabs > button small { display: block; font-size: 12px; line-height: 1.4; color: #acb7c8; font-weight: 400; }
body.gu-ui-system.connect-browse-page .connect-type-tabs > button.active,
body.gu-ui-system.connect-browse-page .connect-scope-tabs > button.active { border-color: #a47ac7; background: #a772d411; }
.gu-ui-system.connect-browse-page .match-filter-panel { margin-top: 24px; border-radius: 10px; box-shadow: none; background: #10151d; }
.gu-ui-system.connect-browse-page .connect-primary-filters { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.gu-ui-system.connect-browse-page .result-context { min-height: 75px; }
.gu-ui-system.connect-browse-page .connect-no-results { min-height: 230px; }
.team-profile-page .ts-cover { height: 170px; border-radius: 14px 14px 0 0; }
.team-profile-page .ts-cover .ts-cover-art { font-size: clamp(24px,3.5vw,38px); }
.team-profile-page .team-profile-hero { padding: 0 22px 20px !important; border-radius: 0 0 14px 14px; }
.team-profile-page .team-profile-logo,
.team-profile-page .team-profile-mark { width: 94px; height: 94px; border-radius: 18px; }
.team-profile-page .team-profile-heading h1 { font-style: normal; font-size: clamp(24px,3vw,32px); text-transform: none; }
.team-profile-page .team-profile-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
/* Keep category labels available to assistive technology without extra rows. */
.team-profile-page .team-profile-facts small { display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.team-profile-page .team-profile-facts > span,
.team-profile-page .team-profile-facts > a { display: inline-flex; flex: 0 1 auto; align-items: center; min-width: 0; max-width: 100%; min-height: 26px; padding: 4px 8px; font-size: 11px; line-height: 1.4; background: #ffffff05; border-color: #ffffff13; border-radius: 6px; overflow-wrap: anywhere; }
.team-profile-page .team-profile-facts > a { min-height: 32px; border-color: rgba(var(--team-accent-secondary-rgb),.38); color: var(--team-accent-secondary); }
.team-profile-page .team-section-nav { margin-block: 16px 12px !important; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 10px; }
.team-profile-page .team-section-nav a { min-height: 44px; font-size: 12px; padding: 10px 12px; }
.team-profile-page .gu-team-workspace-links { gap: 4px; margin: 0 0 18px; }
.team-profile-page .gu-team-workspace-links a { font-size: 12px; min-height: 40px; padding: 8px 10px; }
.team-profile-page .gu-team-next {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 16px 18px;
  border: 1px solid #303a49;
  border-left: 3px solid var(--team-accent-primary,#a56bdb);
  border-radius: 10px;
  background: #131a24;
  margin: 16px 0 22px;
}
.gu-team-next > div { display: flex; flex-direction: column; gap: 5px; flex: 1 1 310px; min-width: 0; }
.gu-team-next small { font-size: 10px; letter-spacing: .07em; color: #bac6d6; font-weight: 650; }
.gu-team-next strong { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.gu-team-next span { font-size: 12px; color: #b3bece; line-height: 1.5; }
.gu-team-next .button { font-size: 12px; padding: 11px 14px; }
.gu-team-next-all { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; color: #bcc7d5; }
.team-profile-page .ts-layout { margin-top: 20px; gap: 20px; grid-template-columns: 285px minmax(0,1fr); }
.team-profile-page .ts-card { border-radius: 11px; padding: 18px; background: #111720; box-shadow: none; }
.team-profile-page .ts-card h2,
.team-profile-page .ts-heading h2 { font-style: normal; text-transform: none; font-size: 19px; letter-spacing: -.025em; }
.team-profile-page .ts-stats span { font-size: 10px; line-height: 1.4; }
.team-profile-page .ts-heading .ts-muted { font-size: 12px; }
.team-profile-page .gu-team-secondary { margin-block: 20px; }
.team-profile-page .gu-team-secondary summary { min-height: 44px; padding: 12px 16px; font-size: 13px; }
.team-profile-page .gu-contributions .page-disclosure-body { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 12px; }
.team-profile-page .team-roster-panel > h2,
.team-profile-page .team-anchor-section h2 { font-style: normal; text-transform: none; }
.team-profile-page .team-registration-card { border-radius: 12px; box-shadow: none; }
.team-profile-page .team-registration-visual { min-height: 120px; height: 120px; }
.team-profile-page .team-registration-badges .gu-sim-identity { padding: 3px 7px; border-radius: 6px; background: #0b1017e6; }
.team-profile-page .team-entry-overview-card { border-radius: 10px; box-shadow: none; }
.team-profile-page .team-entry-overview-card header { flex-wrap: wrap; gap: 8px; }
.team-profile-page .gu-team-workspace-links + .ts-layout { margin-top: 12px; }
.gu-settings-planning-link { display: inline-block; margin-left: 20px; }
.settings-page .gu-settings-heading { padding-block: 30px 20px; }
.settings-page .gu-settings-heading h1 { font-size: clamp(28px,4vw,36px); font-style: normal; text-transform: none; }
.settings-page .gu-settings-heading p { max-width: 72ch; font-size: 14px; color: #b3bece; }
.settings-page .gu-settings-content > section { padding-block: 20px; }
.profile-settings-page #account-overview { padding-block: 30px 22px; }
.profile-settings-page #account-overview h1 { font-size: clamp(28px,4vw,36px); font-style: normal; text-transform: none; }
.driver-social-page .ds-cover { height: 180px; }
.driver-social-page .ds-profile { border-radius: 14px; overflow: hidden; }
.driver-social-page .ds-card { border-radius: 11px; box-shadow: none; }
.driver-social-page .ds-points > strong { font-size: 28px; }
.driver-social-page .ds-name h1 { text-transform: none; font-style: normal; }
.listing-detail-heading { border-radius: 12px; box-shadow: none; background: #131a24; }
.listing-detail-heading h1 { font-style: normal; font-size: clamp(26px,4vw,38px); text-transform: none; }
.listing-detail-panel { border-radius: 11px; }
.gu-listing-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#listing-contact { scroll-margin-top: 110px; }
.listing-detail-facts dt,
.listing-detail-facts dd { font-size: 12px; line-height: 1.5; }
@media (max-width:900px) {
  .team-profile-page .ts-layout { grid-template-columns: 250px minmax(0,1fr); }
  .teams-browse-page .team-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .teams-browse-page .team-directory-card { grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 16px; }
  .teams-browse-page .team-directory-logo,
  .teams-browse-page .team-directory-card > .team-profile-mark { width: 48px; height: 48px; }
}
@media (max-width:700px) {
  .gu-people-nav { gap: 2px; margin-bottom: 18px; }
  .gu-people-nav a { font-size: 12px; padding: 9px 10px; }
  .gu-workspace-shortcuts > span,
  .gu-team-workspace-links > span { flex-basis: 100%; padding-bottom: 0; }
  .teams-browse-page .team-directory-grid { grid-template-columns: 1fr; }
  .gu-ui-system.connect-browse-page .connect-choice-step,
  .gu-ui-system.connect-browse-page .connect-scope-step { grid-template-columns: 1fr; gap: 8px; }
  .gu-ui-system.connect-browse-page .connect-primary-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.gu-ui-system.connect-browse-page .connect-type-tabs > button,
  body.gu-ui-system.connect-browse-page .connect-scope-tabs > button { padding: 10px; min-height: 86px; }
  .team-profile-page .ts-cover { height: 125px; }
  .team-profile-page .team-profile-logo,
  .team-profile-page .team-profile-mark { width: 74px; height: 74px; }
  .team-profile-page .team-section-nav { flex-wrap: wrap; overflow: visible; }
  .team-profile-page .team-section-nav a { white-space: normal; }
  .team-profile-page .gu-team-next { padding: 14px; gap: 12px; }
  .gu-team-next > div { flex-basis: 100%; }
  .team-profile-page .ts-layout { display: flex; flex-direction: column; gap: 18px; }
  .team-profile-page .ts-sidebar { display: contents; }
  .team-profile-page .ts-sidebar > #about { order: 0; }
  .team-profile-page .ts-feed { order: 1; }
  .team-profile-page .ts-sidebar > .ts-card:not(#about) { order: 2; }
  .team-profile-page .team-profile-actions { margin-left: 0; }
  .driver-social-page .ds-cover { height: 130px; }
  .gu-settings-planning-link { margin-left: 12px; }
}
@media (max-width:420px) {
  .gu-ui-system.connect-browse-page .connect-primary-filters { grid-template-columns: 1fr; }
  body.gu-ui-system.connect-browse-page .connect-type-tabs > button b,
  body.gu-ui-system.connect-browse-page .connect-scope-tabs > button b { font-size: 13px; }
  body.gu-ui-system.connect-browse-page .connect-type-tabs > button small,
  body.gu-ui-system.connect-browse-page .connect-scope-tabs > button small { font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  .teams-browse-page .team-directory-card,
  .gu-people-nav a,
  .connect-type-tab { transition: none; transform: none; }
}
