.team-community { scroll-margin-top: 6rem; }
.team-carousel, .team-empty { max-width: 960px; margin-inline: auto; }
.team-carousel { touch-action: pan-y; }
.team-slide { background: #fffdf8; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 12px 32px rgb(35 63 61 / 5%); }
.team-slide[hidden], .team-carousel[hidden], .team-controls[hidden], .team-empty[hidden], .team-sharing[hidden] { display: none; }
.team-slide figure { margin: 0; }
.team-main-photo { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; background: #e8eee9; }
.team-moment-caption { padding: 1rem 1.5rem 0; color: var(--muted); font-size: .95rem; }
.team-office-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.5rem; }
.team-office-brand { min-width: 0; display: flex; align-items: center; gap: 1.3rem; }
.office-brand-logo { display: block; width: 120px; height: 72px; object-fit: contain; flex-shrink: 0; background: white; border-radius: 10px; padding: .5rem; }
.team-office-brand h3 { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.7rem); overflow-wrap: anywhere; }
.team-office-city { margin: .3rem 0 0; color: var(--muted); font-size: .85rem; }
.team-office-photo { display: block; width: 130px; height: 90px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.team-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; }
.team-navigation { display: flex; align-items: center; gap: .8rem; }
.team-arrow { border: 1px solid var(--line); background: #fffdf8; color: var(--ink); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.35rem; }
.team-rotation { border: 0; background: transparent; padding: .75rem .2rem; color: var(--teal); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.team-count { font-size: .8rem; color: var(--muted); min-width: 3rem; text-align: center; }
.team-arrow:focus-visible, .team-rotation:focus-visible { outline: 3px solid #256b64; outline-offset: 3px; }
.team-invite { text-align: center; margin: 1.6rem 0 0; color: var(--muted); font-size: .9rem; }
.team-invite a { display: inline-block; color: var(--teal); font-weight: 600; }
.team-empty { background: #eaf0e9; border: 1px solid #d7e2d5; border-radius: 22px; text-align: center; padding: clamp(2rem, 6vw, 4.5rem) 1.5rem; }
.team-empty-label { display: inline-block; color: #41645a; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.team-empty h3 { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.6rem, 4vw, 2.5rem); margin: .6rem 0 1rem; }
.team-empty p { max-width: 48ch; margin: 0 auto 1.5rem; color: var(--muted); line-height: 1.7; }
.team-community .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.team-sharing { max-width: 960px; margin: 1rem auto 3rem; border: 1px solid var(--line); border-radius: 20px; background: #fffdf8; padding: clamp(1.25rem, 4vw, 2.5rem); scroll-margin-top: 5rem; }
.team-sharing h2 { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.team-sharing > p:not(.eyebrow) { color: var(--muted); max-width: 62ch; }
.team-sharing form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.team-sharing .field-label { display: grid; gap: .5rem; }
.team-share-brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.team-sharing input[type=file] { max-width: 100%; width: 100%; font-size: .85rem; }
.team-photo-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-block: .75rem 1rem; }
.team-photo-choice { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; min-width: 0; }
.team-photo-choice:has(input:checked) { border-color: #256b64; background: #edf5ed; }
.team-photo-choice:has(input:focus-visible) { outline: 3px solid #256b64; outline-offset: 2px; }
.team-photo-choice img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; order: -1; }
.team-photo-choice span { font-size: .75rem; overflow-wrap: anywhere; }
.team-photo-choice input { width: 18px; height: 18px; margin: 0; }
#teamLogoPreview, #teamOfficePreview { margin-block: .6rem; }
.team-sharing .check-card { display: flex; gap: .75rem; align-items: flex-start; }
.team-sharing .check-card input[type=checkbox] { width: 20px; height: 20px; flex-shrink: 0; margin-top: .15rem; }
.team-sharing .check-card small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.5; margin-top: .3rem; }
.team-review-card { padding-block: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.team-review-card h3 { margin: 0; }
.team-review-images { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.team-review-images img { max-width: 250px; max-height: 170px; object-fit: contain; border-radius: 8px; }
@media (max-width: 600px) {
  .team-main-photo { aspect-ratio: 4/3; }
  .team-office-footer { display: grid; gap: .9rem; padding: 1rem; }
  .team-office-brand { gap: .8rem; }
  .office-brand-logo { width: 88px; height: 60px; }
  .team-office-photo { width: 100%; height: 135px; }
  .team-moment-caption { padding: 1rem 1rem 0; font-size: .85rem; }
  .team-share-brand { grid-template-columns: minmax(0, 1fr); }
  .team-photo-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-sharing .account-actions { display: grid; }
  .team-sharing .account-actions .button { width: 100%; }
  .team-invite { line-height: 1.6; }
}
