.ag-workspace { overflow: hidden; }
.ag-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ag-heading h2 { margin: 5px 0 8px; font-size: 28px; }
.ag-heading p { max-width: 620px; }
.ag-heading > button { flex-shrink: 0; }
.ag-eyebrow { color: #2563eb; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.ag-summary { display: flex; align-items: center; gap: 30px; margin-bottom: 24px; padding: 22px; background: #f0f5fc; border: 1px solid #dae5f4; border-radius: 14px; }
.ag-summary > div { display: grid; gap: 2px; flex-shrink: 0; }
.ag-summary strong { color: #193a62; font-size: 30px; line-height: 1.1; }
.ag-summary span { color: #566783; font-size: 12px; }
.ag-summary > p { margin: 0 0 0 auto; max-width: 350px; font-size: 13px; color: #45566f; line-height: 1.55; }
.ag-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.ag-toolbar .checkLabel { margin: 0; white-space: nowrap; }
.ag-search { flex: 1; min-width: 170px; }
.ag-search input { width: 100%; }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.ag-card { min-width: 0; padding: 20px; border: 1px solid #dae3ef; border-radius: 16px; background: #fff; box-shadow: 0 4px 15px #17325208; display: flex; flex-direction: column; gap: 12px; }
.ag-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ag-icon { --ag-accent: #2563eb; width: 52px; height: 52px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--ag-accent) 12%, white); border-radius: 14px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ag-accent) 22%, white); }
.ag-icon[data-ag-color="#7c3aed"] { --ag-accent: #7c3aed; }
.ag-icon[data-ag-color="#059669"] { --ag-accent: #059669; }
.ag-icon[data-ag-color="#dc2626"] { --ag-accent: #dc2626; }
.ag-icon[data-ag-color="#d97706"] { --ag-accent: #d97706; }
.ag-icon[data-ag-color="#0891b2"] { --ag-accent: #0891b2; }
.ag-icon[data-ag-color="#db2777"] { --ag-accent: #db2777; }
.ag-icon[data-ag-color="#475569"] { --ag-accent: #475569; }
.ag-privacy { font-size: 11px; font-weight: 700; color: #55647b; border-radius: 20px; background: #f0f3f8; padding: 5px 9px; }
.ag-card h3 { margin: 0; font-size: 20px; color: #162d4d; overflow-wrap: anywhere; }
.ag-description { margin: 0; color: #5f6d81; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.ag-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; font-size: 12px; }
.ag-card-meta strong { color: #1e426c; }
.ag-card-meta span { color: #64738a; }
.ag-announcement { padding: 10px 12px; border-radius: 9px; background: #f1f6ff; color: #304f7b; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.ag-goal { color: #597044; font-size: 12px; }
.ag-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 5px; margin-top: auto; }
.ag-card-actions button { min-width: 0; min-height: 40px; }
.ag-archived { background: #f7f8fa; box-shadow: none; }
.ag-empty { grid-column: 1 / -1; text-align: center; padding: 40px 18px; background: #f8faff; border: 1px dashed #ccd9eb; border-radius: 14px; }
.ag-empty > span { font-size: 42px; }
.ag-empty h3 { font-size: 22px; color: #263f63; margin: 14px 0 8px; }
.ag-empty p { max-width: 420px; margin: 0 auto 20px; color: #60718c; line-height: 1.6; }
.ag-intro { margin: 0 0 3px; color: #617089; font-size: 14px; line-height: 1.6; }
.ag-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ag-form .field, .ag-form .field input, .ag-form .field select, .ag-form .field textarea { min-width: 0; width: 100%; }
.ag-form textarea { resize: vertical; font: inherit; line-height: 1.5; }
.ag-settings { border: 1px solid #dce5f0; background: #fff; border-radius: 10px; overflow: hidden; }
.ag-settings summary { cursor: pointer; font-size: 14px; color: #274366; font-weight: 750; padding: 16px; min-height: 48px; }
.ag-settings[open] summary { border-bottom: 1px solid #e5ebf3; background: #f5f8fd; }
.ag-settings-body { padding: 16px; display: grid; gap: 16px; }
.ag-settings-body > p { margin: 0; font-size: 13px; line-height: 1.6; }
.ag-settings-body .checkLabel { align-items: flex-start; line-height: 1.5; }
.ag-save-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; border-top: 1px solid #e2e8f1; }
.ag-save-row > button { min-width: 140px; min-height: 44px; }
.ag-message { padding: 12px; color: #17603d; background: #edf8f2; border-radius: 8px; line-height: 1.5; }
.ag-member-list { max-height: 385px; overflow: auto; overscroll-behavior: contain; border: 1px solid #dce5ef; border-radius: 12px; }
.ag-member-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9eef5; padding: 12px 14px; }
.ag-member-row:last-child { border-bottom: 0; }
.ag-member-row[hidden] { display: none; }
.ag-member-row:has([data-ag-member]:checked) { background: #f2f7ff; }
.ag-member-check { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; min-width: 0; }
.ag-member-check > span { min-width: 0; }
.ag-member-check b { display: block; color: #253c5d; font-size: 14px; overflow-wrap: anywhere; }
.ag-member-check small { display: block; color: #687a91; font-size: 11px; margin-top: 4px; }
.ag-member-check input, .ag-leader-check input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: #2563eb; }
.ag-leader-check { display: flex; align-items: center; gap: 6px; color: #526783; font-size: 12px; }
.ag-selection-label { margin-bottom: 10px; color: #385b86; font-weight: 700; font-size: 13px; }
.ag-primary-option { margin-top: 16px; }
.ag-members > .muted { font-size: 12px; line-height: 1.55; }
.ag-invite-section, .ag-request-section { margin-top: 25px; border-top: 1px solid #e1e8f1; padding-top: 18px; }
.ag-members h3 { margin: 0 0 10px; font-size: 17px; color: #28405f; }
.ag-invite-section p { font-size: 13px; line-height: 1.5; }
.ag-invite-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 12px 0; }
.ag-invite-link > label { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: #53657e; }
.ag-invite-link > input { min-width: 0; }
.ag-invite-link > p { grid-column: 1 / -1; margin: 3px 0 0; }
.ag-code { font-size: 18px; color: #284f86; letter-spacing: .04em; overflow-wrap: anywhere; }
.ag-request { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid #e9eef5; }
.ag-request b { font-size: 14px; color: #28405f; overflow-wrap: anywhere; }
.ag-request small { display: block; margin-top: 3px; color: #6d7d91; font-size: 11px; }
.ag-count { display: inline-block; font-size: 12px; background: #edf2fc; color: #3d6394; padding: 3px 8px; border-radius: 20px; }
.ag-inline-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ag-goal-detail { display: grid; gap: 7px; padding: 16px; border: 1px solid #d5e7d5; border-radius: 10px; background: #f5faf3; margin: 12px 0 18px; }
.ag-goal-detail strong { color: #345b35; font-size: 24px; }
.ag-goal-detail span { color: #668064; font-size: 12px; }
.ag-goal-detail progress { width: 100%; height: 12px; accent-color: #4c8d4e; }
.ag-player-memberships { margin: 0; min-width: 0; padding: 15px; border: 1px solid #d4e1f0; background: #f7faff; border-radius: 10px; }
.ag-player-memberships legend { color: #284a75; font-weight: 750; font-size: 15px; padding: 0 6px; }
.ag-player-memberships p { font-size: 12px; line-height: 1.55; margin-top: 0; }
.ag-group-checks { display: grid; gap: 10px; max-height: 230px; overflow: auto; padding-bottom: 15px; }
.ag-group-checks .checkLabel { margin: 0; font-size: 13px; }
.ag-sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .ag-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .ag-heading h2 { font-size: 25px; }
  .ag-summary { gap: 20px; padding: 16px; flex-wrap: wrap; }
  .ag-summary > p { flex-basis: 100%; max-width: none; margin: 0; }
  .ag-two { grid-template-columns: 1fr; }
  .ag-settings-body { padding: 14px; }
  .ag-save-row > button { flex: 1; min-width: 100px; }
  .ag-toolbar { gap: 8px; }
  .ag-toolbar .ag-search { flex-basis: 100%; }
  .ag-member-row { padding: 12px 10px; gap: 8px; }
  .ag-member-check { gap: 8px; }
  .ag-member-check b { font-size: 13px; }
  .ag-member-list { max-height: 330px; }
  .ag-request { align-items: flex-start; flex-direction: column; gap: 8px; }
  .ag-request .ag-inline-actions { width: 100%; }
  .ag-request button { flex: 1; min-height: 40px; }
  .ag-form input, .ag-form select, .ag-form textarea, .ag-members input[type="search"], .ag-player-memberships select { font-size: 16px; }
}
