.group-heading .subtitle { max-width: 570px; }
.group-heading > div:first-child { min-width: 0; }
.group-heading h1 { overflow-wrap: anywhere; }
.group-stats .stat-value { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.group-notice { margin: 0 0 24px; color: #79876e; }
.group-notice > div, .group-notice > p { min-width: 0; overflow-wrap: anywhere; }
.group-notice strong { color: #526c45; }
.group-notice > .icon-svg { margin-top: 3px; }
.group-pub-grid, .group-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.group-pub-card, .group-library-card { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.group-pub-top { display: flex; justify-content: space-between; align-items: center; margin: -3px -5px 17px 0; }
.group-pub-symbol { width: 43px; height: 43px; border-radius: 12px; background: #edf3e1; color: #7c965e; display: grid; place-items: center; }
.group-pub-symbol .icon-svg { width: 21px; height: 21px; }
.group-pub-card h3 { font-size: 20px; letter-spacing: -.5px; line-height: 1.4; overflow-wrap: anywhere; }
.group-pub-location { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 5px; min-height: 20px; overflow-wrap: anywhere; }
.group-pub-counts { display: flex; gap: 16px; margin: 21px 0 0; color: #839176; font-size: 11px; }
.group-pub-counts span + span::before { content: '·'; color: #b7c1aa; margin-right: 16px; }
.group-pub-margins { margin: 20px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.group-pub-margins dt { color: #8a967d; font-size: 10px; line-height: 1.6; }
.group-pub-margins dd { margin: 6px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -.8px; color: #557441; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.group-pub-margins dd.group-below { color: #ae8051; }
.group-open-pub { width: 100%; justify-content: space-between; }
.group-footnote { color: #939e85; font-size: 11px; line-height: 1.8; margin-top: 23px; max-width: 760px; }
.group-empty { margin-top: 4px; }
.group-role-guide { display: flex; flex-wrap: wrap; gap: 14px 25px; margin: 0 0 24px; }
.group-role-guide p { display: flex; align-items: center; gap: 8px; color: #859176; font-size: 11px; line-height: 1.7; }
.group-role-guide .icon-svg { width: 15px; height: 15px; color: #839f67; }
.group-role-guide strong { color: #657858; font-weight: 500; }
.group-team-table { width: 100%; }
.group-team-table td { vertical-align: middle; }
.group-team-table th { white-space: nowrap; }
.group-member-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.group-member-identity > div { min-width: 0; }
.group-member-identity strong { line-height: 1.5; overflow-wrap: anywhere; white-space: normal; }
.group-member-avatar { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 50%; background: #ecf1e4; color: #769060; font-size: 13px; font-weight: 500; }
.group-member-email { display: block; color: #96a08a; font-size: 10px; line-height: 1.7; margin-top: 3px; white-space: normal; overflow-wrap: anywhere; }
.group-role-badge { display: inline-flex; border-radius: 6px; padding: 6px 9px; font-size: 10px; line-height: 1.3; font-weight: 500; background: #edf1e8; color: #7d8b6d; }
.group-role-owner { color: #567540; background: #e9f0dd; }
.group-role-manager { background: #f3ebdf; color: #9b815b; }
.group-pub-access { color: #7b8870; font-size: 11px; white-space: normal; line-height: 1.7; display: block; max-width: 240px; overflow-wrap: anywhere; }
.group-member-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #a08966; white-space: normal; line-height: 1.6; }
.group-member-status > span { width: 5px; height: 5px; border-radius: 50%; background: #c8b084; flex-shrink: 0; }
.group-member-active { color: #839967; }
.group-member-active > span { background: #91ac72; }
.group-owner-label { font-size: 10px; color: #9ba58f; white-space: nowrap; }
.group-owner-access { margin-top: 20px; padding: 15px; border: 1px solid #dce6d1; border-radius: 10px; background: #f1f6e9; color: #637750; font-size: 12px; line-height: 1.8; }
.group-team-table .row-actions .group-remove-member:hover { background: #f9eee8; color: var(--danger); }
.group-library-grid { margin-top: 24px; }
.group-library-card { display: flex; flex-direction: column; }
.group-library-photo { display: block; width: 100%; height: 165px; object-fit: cover; border-radius: 10px; margin-bottom: 18px; }
.group-library-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.group-library-revision { color: #9ca58e; font-size: 10px; }
.group-library-card h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.5px; overflow-wrap: anywhere; }
.group-library-source { font-size: 11px; line-height: 1.7; color: #8b987e; margin-top: 7px; overflow-wrap: anywhere; }
.group-library-ingredients { color: #8a947f; font-size: 12px; line-height: 1.9; margin: 18px 0 24px; flex: 1; overflow-wrap: anywhere; }
.group-library-cost { border-top: 1px solid var(--line); padding-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.group-library-cost > span { color: #8e9b7f; font-size: 10px; line-height: 1.7; }
.group-library-cost strong { color: #597746; font-size: 18px; font-weight: 500; white-space: nowrap; }
.group-library-cost-note { font-size: 9px; color: #a0aa94; line-height: 1.7; margin-top: 7px; }
.group-library-apply { margin-top: 20px; width: 100%; }
.group-library-readonly { color: #8b997d; font-size: 12px; line-height: 1.8; }
.group-activity-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: var(--surface); }
.group-activity-item { display: flex; gap: 17px; align-items: center; padding: 22px 25px; }
.group-activity-item + .group-activity-item { border-top: 1px solid var(--line); }
.group-activity-icon { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px; background: #edf3e4; color: #91a875; display: grid; place-items: center; }
.group-activity-icon .icon-svg { width: 16px; height: 16px; }
.group-activity-description { min-width: 0; }
.group-activity-description h2 { font-size: 13px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.group-activity-description p { font-size: 11px; color: #95a087; margin-top: 5px; line-height: 1.7; overflow-wrap: anywhere; }
.group-activity-description strong { font-weight: 400; color: #81936e; }
.group-activity-description p > span { padding: 0 5px; }
.group-activity-item > time { margin-left: auto; padding-left: 16px; flex-shrink: 0; color: #9ca68f; font-size: 10px; line-height: 1.7; }
.group-editor .form-grid { margin-bottom: 0; }
.group-editor .group-notice { margin-top: 22px; margin-bottom: 0; }
.group-pub-choices { min-width: 0; padding: 0; margin: 25px 0 0; border: 0; }
.group-pub-choices legend { font-size: 12px; font-weight: 500; color: #67755e; padding: 0; }
.group-field-help { margin-top: 8px; color: #97a08b; font-size: 10px; line-height: 1.7; }
.group-pub-choice { padding: 12px; border: 1px solid var(--line); background: white; border-radius: 9px; margin-top: 10px; min-height: 48px; }
.group-pub-choice > span { min-width: 0; }
.group-pub-choice strong { font-weight: 500; display: block; overflow-wrap: anywhere; line-height: 1.5; }
.group-pub-choice small { overflow-wrap: anywhere; }
.group-pub-choice:has(input:checked) { border-color: #bbcda3; background: #f1f6e9; }

@media (max-width: 1180px) {
  .group-pub-grid, .group-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .group-team-table th, .group-team-table td { padding-left: 13px; padding-right: 13px; }
  .group-team-table td:first-child { min-width: 180px; }
  .group-member-avatar { display: none; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .group-team-wrap { max-width: 100%; }
  .group-team-table { min-width: 630px; }
  .group-activity-item { flex-wrap: wrap; gap: 8px 14px; }
  .group-activity-description { flex: 1; }
  .group-activity-item > time { flex-basis: 100%; padding-left: 48px; }
}
@media (max-width: 720px) {
  .group-heading { flex-wrap: wrap; }
  .group-heading > div:first-child { flex: 1 1 220px; }
  .group-heading .heading-actions { padding-top: 0 !important; }
  .group-pub-grid, .group-library-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .group-pub-card, .group-library-card { padding: 21px; border-radius: 15px; }
  .group-pub-card h3, .group-library-card h2 { font-size: 21px; }
  .group-pub-top { margin-bottom: 13px; }
  .group-pub-counts { margin-top: 16px; font-size: 12px; }
  .group-pub-margins { margin: 19px 0; padding: 17px 0; }
  .group-pub-margins dt { font-size: 11px; }
  .group-pub-margins dd { font-size: 29px; }
  .group-notice { padding: 15px; margin-bottom: 22px; font-size: 12px; }
  .group-role-guide { display: grid; gap: 10px; margin-bottom: 23px; }
  .group-role-guide p { font-size: 12px; }
  .group-role-guide .icon-svg { width: 17px; height: 17px; }
  .group-member-avatar { display: grid; }
  .group-team-table { min-width: 0; }
  .group-team-table tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 17px; gap: 18px 12px; }
  .group-team-table td { padding: 0; }
  .group-team-table td:first-child { min-width: 0; padding-right: 60px; }
  .group-team-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .group-team-table td:nth-child(4) { grid-column: 2; grid-row: 2; }
  .group-team-table td:last-child { top: 12px; right: 9px; }
  .group-team-table .row-actions { display: flex; flex-direction: column; }
  .group-team-table .group-owner-label { display: block; padding: 9px 5px 0 0; font-size: 9px; }
  .group-member-identity { gap: 10px; align-items: flex-start; }
  .group-member-identity strong { font-size: 14px; }
  .group-member-email { font-size: 11px; }
  .group-role-badge, .group-member-status { font-size: 11px; }
  .group-pub-access { font-size: 12px; max-width: none; }
  .group-library-source { font-size: 12px; }
  .group-library-ingredients { margin-bottom: 21px; }
  .group-library-cost > span { font-size: 11px; }
  .group-library-cost-note { font-size: 10px; }
  .group-activity-item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 20px 17px; gap: 5px 12px; align-items: start; }
  .group-activity-icon { grid-row: 1 / 3; margin-top: 3px; }
  .group-activity-description h2 { font-size: 13px; }
  .group-activity-description p { font-size: 11px; }
  .group-activity-item > time { grid-column: 2; margin-left: 0; padding-left: 0; font-size: 10px; }
  .group-footnote { font-size: 11px; margin-top: 21px; }
  .group-pub-choices legend { font-size: 12px; }
  .group-field-help { font-size: 11px; }
}

.group-invitation-status { display: block; margin-top: 5px; color: #7f8c72; font-size: 10px; line-height: 1.6; max-width: 180px; white-space: normal; }
.group-invitation-failed, .group-invitation-rate_limited { color: #a06b48; }
.group-invitation-sent { color: #66844f; }
.group-team-table .row-actions { flex-wrap: wrap; }
.group-team-table .row-actions .group-invite-member { width: auto; min-width: 85px; height: auto; min-height: 35px; padding: 8px 10px; border: 1px solid #dce5d2; border-radius: 7px; color: #627e4c; font-size: 10px; line-height: 1.4; white-space: nowrap; background: #f7faf2; }
.group-team-table .row-actions .group-invite-member:hover { background: #eaf1df; }
.group-team-table .row-actions .group-invite-member:disabled { opacity: .5; cursor: not-allowed; }
.group-invite-choice { margin-top: 22px; padding: 15px; border: 1px solid #dce6d1; border-radius: 10px; background: #f7faf2; }
@media(max-width:680px) { .group-team-table td:first-child { padding-right: 95px; } .group-team-table .row-actions .group-invite-member { min-width: 80px; font-size: 10px; } .group-invitation-status { font-size: 11px; } }
