/* Compact phone layouts; desktop styles remain in the existing component files. */
@media (max-width: 600px) {
  header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 6px; padding: 12px 16px; }
  header .brand-group { min-width: 0; flex-shrink: 1; gap: 5px; }
  header .brand { font-size: 18px; letter-spacing: -.7px; }
  header .brand img { width: 30px; height: 30px; margin-right: 5px; }
  header .beta-badge { font-size: 8px; letter-spacing: .3px; padding: 3px 4px; margin-left: 0; }
  header .market-picker { margin: 0; justify-self: end; }
  header .market-picker summary { min-height: 44px; font-size: 12px; gap: 4px; padding: 6px 0 6px 4px; }
  header .market-picker form { left: auto; right: 0; }
  header > nav { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 8px; margin: 0; padding-top: 8px; border-top: 1px solid var(--line); }
  header nav > a, header nav .text-button { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 7px 3px; font-size: 12px; line-height: 1.3; text-align: center; }
  header nav > form { display: flex; align-items: stretch; justify-content: center; }
  header nav .button { border-radius: 7px; }
  main { padding-left: 16px; padding-right: 16px; }
  main.workspace { padding-top: 20px; }
  .workspace h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.8px; margin: 12px 0 16px; }
  .workspace h2, .workspace .section-top h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.4px; margin: 8px 0 12px; }
  .workspace h3 { font-size: 18px; line-height: 1.4; }
  .workspace .panel { padding: 18px; border-radius: 12px; }
  .workspace p { font-size: 15px; line-height: 1.65; }
  .workspace .muted { font-size: 13px; }
  .workspace .section-top > div { min-width: 0; width: 100%; }
  .workspace .section-top h2 { overflow-wrap: anywhere; }
  .workspace .button, .workspace button:not(.company-verified):not([data-close-badge]) { min-height: 44px; font-size: 14px; padding: 10px 14px; line-height: 1.45; text-align: center; white-space: normal; }
  .workspace .actions { gap: 8px 14px; align-items: center; }
  .workspace .actions > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 1.4; }
  .workspace-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
  .workspace-tools > a { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; padding: 10px; line-height: 1.4; text-align: center; border: 1px solid var(--line); border-radius: 8px; }
  .workspace-select { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; margin: 18px 0; }
  .workspace-select label { grid-column: 1/-1; font-size: 14px; }
  .workspace-select select { min-width: 0; width: 100%; min-height: 44px; font-size: 16px; padding: 9px 28px 9px 10px; border: 1px solid var(--line); border-radius: 8px; }
  .workspace-select button { font-size: 12px!important; padding: 10px!important; }
  .workspace .empty { padding: 24px 18px; border-radius: 12px; }
  .workspace .empty h3 { font-size: 18px; margin: 0 0 10px; }
  .workspace .empty p { margin: 8px 0 12px; }
  .workspace .empty > a { display: inline-flex; min-height: 44px; align-items: center; font-size: 15px; }
  .company-public .back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
  .company-public .company-profile-hero { padding: 20px; gap: 12px; margin: 10px 0 18px; border-radius: 16px; }
  .company-public .company-profile-avatar { width: 48px; height: 48px; flex: 0 0 48px; font-size: 24px; border-radius: 12px; }
  .company-public .company-profile-hero > div:last-child { min-width: 0; width: 100%; }
  .company-public .company-profile-hero h1 { font-size: 24px; line-height: 1.22; letter-spacing: -.6px; margin: 8px 0 12px; }
  .company-public .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .company-public p.company-tagline { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }
  .company-public .company-profile-hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .company-public .company-profile-hero .actions .button { padding: 10px 8px; font-size: 13px; }
  .company-public .company-facts { gap: 10px 16px; margin-bottom: 20px; }
  .company-public .company-facts > div { padding: 10px 0; }
  .company-public .company-facts dt { font-size: 12px; }
  .company-public .company-facts dd { font-size: 14px; line-height: 1.5; margin-top: 4px; }
  .company-public .company-about h2, .company-public .company-roles h2 { font-size: 21px; line-height: 1.35; }
  .company-public .company-profile-sections { gap: 16px; margin: 16px 0 24px; }
  .company-public .company-roles { margin-bottom: 28px; }
  .company-verified[data-explain-badge] { vertical-align: baseline; position: relative; top: 1px; margin-left: 3px; }
  footer { padding: 24px 20px; margin-top: 32px; gap: 18px; font-size: 12px; }
  footer .footer-top { gap: 16px; }
  footer .footer-brand { font-size: 18px; letter-spacing: -.3px; }
  footer .footer-top > div > p { font-size: 12px; margin: 6px 0 0; }
  footer .footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px 10px; width: 100%; }
  footer .footer-links > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; line-height: 1.4; }
  footer .social-link { width: 40px; height: 40px; min-height: 40px!important; }
  footer .copyright { gap: 16px; padding-top: 16px; }
  footer .copyright p { font-size: 11px; line-height: 1.7; margin: 0; }
  footer .powered-by { font-size: 11px; gap: 8px; }
  footer .powered-by img { width: 72px; height: auto; }
  footer > p { margin: 0; }
}
@media (max-width: 360px) {
  header { grid-template-columns: 1fr; }
  header .market-picker { justify-self: start; }
  .company-public .company-profile-hero h1 { font-size: 22px; }
  .company-public .company-profile-hero .actions { grid-template-columns: 1fr; }
  .workspace-select { grid-template-columns: 1fr; }
}

/* Keep verification attached to the company heading, including wrapped names. */
.company-title { display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; }
.company-title > span { min-width: 0; overflow-wrap: anywhere; }
.company-title > .company-verified[data-explain-badge] { flex: 0 0 18px; margin-left: 0; top: 0; }
