@import url("/css/common/fonts.css");

:root {
    --auth-bg: #f7f8fa;
    --auth-surface: #ffffff;
    --auth-border: #e5e7eb;
    --auth-text: #111827;
    --auth-muted: #6b7280;
    --auth-primary: #1d4ed8;
    --auth-primary-strong: #173ea8;
    --auth-primary-soft: #eff6ff;
    --auth-sidebar: #111827;
    --auth-accent: #a16207;
    --auth-danger: #dc2626;
    --auth-success: #16803c;
    --auth-font: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
    --auth-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    --auth-font-label: 0.78rem;
    --auth-font-control: 0.86rem;
}

* {
    box-sizing: border-box;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--auth-font);
    color: var(--auth-text);
    background: var(--auth-bg);
}

.auth-button,
.auth-control,
.auth-choice-control,
.auth-file-control {
    font: inherit;
}

.auth-button,
.auth-control {
    font-size: var(--auth-font-control);
}

.auth-button,
.auth-primary-button,
.auth-secondary-button,
.kakao-login-button,
.auth-compact-secondary-button,
.gym-join-action-button,
.gym-select-actions a,
.gym-select-empty-actions a,
.gym-select-manager-test,
.gym-select-member-entry {
    white-space: nowrap;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.auth-panel {
    width: min(980px, 100%);
    min-height: 520px;
    display: grid;
    grid-template-columns: 420px minmax(360px, 1fr);
    overflow: hidden;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: var(--auth-surface);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.auth-panel-wide {
    width: min(1040px, 100%);
}

.auth-login-panel {
    width: min(800px, 100%);
    min-height: 380px;
    grid-template-columns: 320px minmax(360px, 1fr);
}

.auth-login-panel .auth-copy h1 {
    margin-top: 54px;
    font-size: 2.25rem;
    line-height: 1.22;
    word-break: keep-all;
    white-space: nowrap;
}

.auth-login-panel .auth-form {
    padding: 40px 36px 60px;
}

.auth-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 38px 40px 40px;
    background: var(--auth-sidebar);
    color: #ffffff;
}

.auth-copy::before {
    display: none;
    content: none;
}

.auth-copy span {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gym-select-header span {
    color: #4b5563;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-copy h1,
.gym-select-header h1 {
    margin: 92px 0 0;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0;
}

.auth-copy p,
.gym-select-header p,
.gym-select-empty p {
    margin: 14px 0 0;
    color: var(--auth-muted);
    line-height: 1.7;
}

.auth-copy p {
    margin-top: auto;
    color: #d1d5db;
}

.auth-form {
    position: relative;
    align-self: stretch;
    align-content: center;
    display: grid;
    gap: 14px;
    padding: 48px 48px 88px;
}

.auth-signup-panel {
    min-height: 0;
}

.auth-signup-form {
    align-content: start;
    gap: 11px;
    padding: 30px 48px 32px;
}

.auth-signup-form label {
    gap: 6px;
}

.auth-signup-form .auth-input,
.auth-signup-form .auth-primary-button,
.auth-address-search-button {
    height: 42px;
}

.auth-signup-form .auth-consent-list {
    gap: 8px;
}

.auth-form::before {
    display: none;
    content: none;
}

.auth-form label {
    display: grid;
    gap: 7px;
}

.auth-form label span {
    color: var(--auth-muted);
    font-size: var(--auth-font-label);
    font-weight: 550;
}

.auth-input,
.auth-textarea {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--auth-text);
    font-size: var(--auth-font-control);
    font-weight: 400;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-textarea {
    height: auto;
    min-height: 120px;
    padding: 12px 13px;
    resize: vertical;
}

.auth-input:focus,
.auth-textarea:focus {
    outline: 3px solid var(--auth-primary-soft);
    border-color: var(--auth-primary);
}

.auth-signup-form label.is-invalid > .auth-input,
.auth-signup-form .auth-input:user-invalid {
    border-color: var(--auth-danger);
    background: #fff7f7;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.08);
}

.auth-signup-form .auth-consent.is-invalid .auth-choice-control,
.auth-signup-form .auth-choice-control:user-invalid {
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid var(--auth-danger);
    border-radius: 2px;
    background: #ffffff;
    outline: 0;
}

.auth-form .auth-consent {
    display: flex;
    align-items: center;
    gap: 9px;
}

.auth-consent-list {
    display: grid;
    gap: 10px;
}

.auth-choice-control {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    padding: 0;
    accent-color: var(--auth-primary);
}

.auth-form .auth-consent span {
    color: var(--auth-text);
    font-weight: 400;
}

.auth-form .auth-consent .auth-required-label {
    font-style: normal;
}

.auth-form .auth-consent.is-invalid .auth-required-label,
.auth-form .auth-consent:has(.auth-choice-control:user-invalid) .auth-required-label {
    color: var(--auth-danger);
    font-weight: 600;
}

.auth-form .auth-consent a {
    display: inline;
}

.auth-consent-notice {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.auth-consent-notice a {
    color: inherit;
}

.auth-file-control {
    height: auto;
    min-height: 44px;
    padding: 10px 13px;
    color: var(--auth-muted);
}

.auth-file-control::file-selector-button {
    margin-right: 12px;
    padding: 7px 12px;
    border: 1px solid var(--auth-border);
    border-radius: 6px;
    background: #ffffff;
    color: var(--auth-text);
    font: inherit;
    font-weight: 400;
    cursor: pointer;
}

.auth-file-control::file-selector-button:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
}

.auth-field-error {
    color: var(--auth-danger);
    font-size: 0.8rem;
    font-weight: 400;
}

.auth-primary-button,
.kakao-login-button {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--auth-primary);
    border-radius: 8px;
    background: var(--auth-primary);
    color: #ffffff;
    font-weight: 400;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
    text-decoration: none;
}

.kakao-login-button {
    justify-self: stretch;
    width: 100%;
    height: 48px;
    border-color: #fee500;
    background: #fee500;
    color: #111111;
    box-shadow: none;
}

.auth-primary-button:hover,
.kakao-login-button:hover {
    background: var(--auth-primary-strong);
    text-decoration: none;
}

.kakao-login-button:hover {
    border-color: #f2d900;
    background: #f2d900;
    color: #111111;
    text-decoration: none;
}

.auth-form a {
    justify-self: center;
    color: var(--auth-text);
    font-weight: 700;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-helper {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 12px;
}

.auth-address-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: end;
    gap: 12px;
}

.auth-secondary-button {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--auth-text);
    box-shadow: none;
    cursor: pointer;
}

.auth-secondary-button:hover {
    border-color: var(--auth-primary);
    background: var(--auth-primary-soft);
    color: var(--auth-primary);
}

.auth-error,
.auth-success {
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: var(--auth-danger);
}

.auth-success {
    border: 1px solid #bbf7d0;
    background: #ecfdf3;
    color: var(--auth-success);
}

.gym-select-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 44px 32px;
}

.gym-select-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 26px;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: var(--auth-surface);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.gym-select-header h1 {
    color: var(--auth-text);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.gym-select-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gym-select-actions a,
.gym-select-empty a {
    height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--auth-primary);
    border-radius: 8px;
    background: var(--auth-primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.gym-select-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.gym-select-card {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 20px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: var(--auth-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.gym-select-card:hover {
    transform: translateY(-1px);
    border-color: #bfd0f8;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.gym-select-card strong {
    font-size: 1.15rem;
}

.gym-select-card span,
.gym-select-card em {
    color: var(--auth-muted);
    font-style: normal;
    font-weight: 700;
}

.auth-policy-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 22px;
}

.auth-policy-links.is-login-footer {
    position: absolute;
    right: 32px;
    bottom: 28px;
    left: 32px;
    margin: 0;
}

.auth-policy-links a {
    color: var(--auth-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-policy-links a:hover {
    color: var(--auth-text);
}

.gym-select-empty {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    background: var(--auth-surface);
}

.gym-select-empty h2 {
    margin: 0;
}

.gym-select-empty a {
    margin-top: 18px;
}

@media (max-width: 860px) {
    .auth-shell {
        padding: 20px;
    }

    .auth-panel {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-copy {
        min-height: 220px;
        padding: 28px;
    }

    .auth-form {
        min-height: 320px;
        padding: 36px 28px 78px;
    }

    .auth-signup-form {
        min-height: 0;
        padding: 28px 28px 32px;
    }

    .auth-login-panel .auth-copy {
        min-height: 140px;
    }

    .auth-login-panel .auth-copy h1 {
        margin-top: 34px;
    }

    .auth-login-panel .auth-form {
        min-height: 240px;
        padding: 30px 28px 54px;
    }

    .gym-select-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .auth-panel,
    .gym-select-grid {
        grid-template-columns: 1fr;
    }

    .auth-copy {
        min-height: 190px;
    }

    .auth-login-panel .auth-copy {
        min-height: 128px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-address-row {
        grid-template-columns: 1fr;
    }

    .gym-select-shell {
        padding: 24px 16px;
    }

    .gym-select-header {
        flex-direction: column;
    }

    .gym-select-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .gym-select-actions a,
    .auth-primary-button {
        justify-content: center;
        width: 100%;
    }
}

body.auth-body:has(.gym-select-shell) {
    background: var(--auth-bg);
}

.gym-select-shell {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.gym-select-topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 5vw, 56px);
    border-bottom: 1px solid var(--auth-border);
    background: #ffffff;
}

.gym-select-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--auth-text);
    font-weight: 700;
    text-decoration: none;
}

.gym-select-brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--auth-primary);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
}

.gym-select-brand-logo {
    width: 27px;
    height: auto;
    display: block;
    border-radius: 0;
}

.auth-compact-secondary-button {
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--auth-muted);
    font-weight: 400;
    cursor: pointer;
}

.auth-compact-secondary-button:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
}

.gym-select-account-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.gym-select-account-actions > a {
    color: var(--auth-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.gym-select-account-actions > a:hover {
    color: var(--auth-text);
}

.gym-select-workspace {
    width: min(640px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(44px, 6vh, 68px) 0 56px;
}

.gym-select-heading {
    margin-bottom: 30px;
}

.gym-select-heading h1 {
    margin: 0;
    color: var(--auth-text);
    font-size: clamp(1.45rem, 3vw, 1.8rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.gym-select-heading p {
    margin: 8px 0 0;
    color: var(--auth-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.gym-select-system-entry {
    min-height: 76px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding: 16px 18px;
    border: 1px solid #cfd5df;
    border-radius: 10px;
    background: #ffffff;
    color: var(--auth-text);
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease;
}

.gym-select-system-entry:hover {
    border-color: #111827;
    background: #f8f9fb;
}

.gym-select-system-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
}

.gym-select-system-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.gym-select-system-copy strong {
    font-size: 0.96rem;
    font-weight: 700;
}

.gym-select-system-copy em {
    overflow: hidden;
    color: var(--auth-muted);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gym-select-system-arrow,
.gym-select-card-arrow {
    color: #4b5563;
    font-size: 1.5rem;
    line-height: 1;
}

.gym-select-list {
    display: grid;
    gap: 12px;
}

.gym-select-card-wrap {
    min-width: 0;
}

.gym-select-card {
    min-height: 90px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--auth-text);
    text-decoration: none;
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.gym-select-card-wrap.has-secondary-control .gym-select-card {
    border-radius: 10px 10px 0 0;
}

.gym-select-card:hover {
    transform: translateY(-1px);
    border-color: #c7d6f5;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.gym-select-card.is-disabled {
    cursor: default;
    opacity: 0.72;
    pointer-events: none;
}

.gym-select-card.is-disabled:hover {
    transform: none;
    border-color: var(--auth-border);
    box-shadow: none;
}

.gym-select-card.is-disabled .gym-select-card-arrow {
    visibility: hidden;
}

.gym-select-card-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--auth-primary-soft);
    color: var(--auth-primary);
}

.gym-select-card-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gym-select-card-photo,
.gym-join-item-photo {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4e7ec;
    background: #f7f8fa;
}

.gym-select-card-photo {
    width: 48px;
    height: 48px;
    border-radius: 9px;
}

.gym-select-card-photo img,
.gym-join-item-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gym-select-card-main,
.gym-select-card-title,
.gym-select-card-meta {
    min-width: 0;
}

.gym-select-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.gym-select-role {
    padding: 3px 7px;
    border-radius: 5px;
    background: #eef1f5;
    color: #475467;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.gym-select-card-title strong {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--auth-text);
    font-size: 1rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gym-select-card-title em {
    flex: 0 0 auto;
    font-style: normal;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-active {
    color: #067647;
}

.status-wait,
.status-pending {
    color: #8a5a00;
}

.status-stop,
.status-inactive {
    color: #667085;
}

.status-delete_wait {
    background: transparent;
    color: #b91c1c;
}

.gym-select-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.gym-select-card-meta span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gym-select-deletion {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 10px 20px;
    border: 1px solid var(--auth-border);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: #fafbfc;
    color: var(--auth-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.gym-select-deletion > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.gym-select-deletion strong {
    flex: 0 0 auto;
    color: #b42318;
    font-size: 0.8rem;
}

.gym-select-deletion time {
    overflow: hidden;
    color: #667085;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gym-select-deletion form {
    flex: 0 0 auto;
    margin: 0;
}

.gym-select-delete-button,
.gym-select-delete-cancel-button {
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.76rem;
    font-weight: 400;
    cursor: pointer;
}

.gym-select-delete-button {
    border: 1px solid #fecdca;
    color: #b42318;
}

.gym-select-delete-cancel-button {
    border: 1px solid #d0d5dd;
    color: #344054;
}

.gym-select-delete-button:hover {
    border-color: #f97066;
    background: #fff5f4;
}

.gym-select-delete-cancel-button:hover {
    border-color: #98a2b3;
    background: #f2f4f7;
}

.gym-select-create-card {
    min-height: 92px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    row-gap: 4px;
    margin-top: 24px;
    padding: 20px;
    border: 2px dashed #d7dee8;
    border-radius: 10px;
    background: #ffffff;
    color: var(--auth-primary);
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease;
}

.gym-select-create-card:hover {
    border-color: #8fb0ff;
    background: #f8fbff;
}

.gym-select-join-card {
    margin-top: 16px;
    border-style: solid;
    border-color: #cfd8e6;
}

.gym-select-join-card + .gym-select-create-card {
    margin-top: 4px;
}

.gym-select-create-card span {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 2px dashed #7aa2ff;
    border-radius: 10px;
    color: var(--auth-primary);
    font-size: 1.55rem;
    line-height: 1;
}

.gym-select-create-card strong {
    align-self: end;
    font-size: 0.96rem;
    font-weight: 700;
}

.gym-select-create-card em {
    align-self: start;
    color: var(--auth-muted);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 700;
}

.gym-select-empty {
    border-radius: 10px;
    box-shadow: none;
}

.gym-select-empty-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.gym-select-empty-actions a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #111827;
    border-radius: 7px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.gym-select-empty-actions a.is-secondary {
    border-color: #d0d5dd;
    background: #ffffff;
    color: #344054;
}

.gym-join-back {
    color: #475467;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.gym-join-workspace {
    max-width: 1000px;
}

.gym-join-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.gym-join-heading-row .gym-select-heading {
    margin-bottom: 0;
}

.gym-join-filter {
    min-width: 180px;
}

.gym-join-filter label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.auth-select {
    appearance: none;
    width: 100%;
    height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    color: #101828;
    font: inherit;
    font-size: var(--auth-font-control);
    font-weight: 400;
}

.gym-select-card-wrap.has-entry-actions .gym-select-card {
    grid-template-columns: 48px minmax(0, 1fr) auto 18px;
}

.gym-select-card-primary-link {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.gym-select-card-primary-link:focus-visible {
    outline: 3px solid var(--auth-primary-soft);
    outline-offset: 2px;
}

.gym-join-list {
    border-top: 1px solid #dfe3e8;
}

.gym-join-item {
    min-height: 142px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 24px 4px;
    border-bottom: 1px solid #dfe3e8;
}

.gym-join-item-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.gym-join-item-photo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 10px;
}

.gym-join-operating {
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 700;
}

.gym-join-item h2 {
    margin: 5px 0 7px;
    color: #101828;
    font-size: 1.08rem;
}

.gym-join-item p {
    margin: 0;
    color: #667085;
    font-size: 0.84rem;
}

.gym-join-item dl {
    display: flex;
    gap: 22px;
    margin: 14px 0 0;
}

.gym-join-item dl div {
    display: flex;
    gap: 7px;
    font-size: 0.79rem;
}

.gym-join-item dt {
    color: #4b5563;
    font-weight: 700;
}

.gym-join-item dd {
    margin: 0;
    color: #344054;
    font-weight: 700;
}

.gym-join-item form {
    flex: 0 0 auto;
}

.gym-join-action-button {
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    background: #111827;
    color: #ffffff;
    font-family: inherit;
    font-size: var(--auth-font-control);
    font-weight: 400;
    cursor: pointer;
}

.gym-join-empty {
    padding: 70px 20px;
    border-top: 1px solid #dfe3e8;
    border-bottom: 1px solid #dfe3e8;
    text-align: center;
}

.gym-join-empty strong {
    display: block;
    color: #101828;
}

.gym-join-empty p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 0.84rem;
}

@media (max-width: 640px) {
    .gym-join-heading-row,
    .gym-join-item {
        align-items: stretch;
        flex-direction: column;
    }

    .gym-join-filter {
        min-width: 0;
    }

    .gym-join-item {
        gap: 18px;
    }

    .gym-join-item-photo {
        width: 64px;
        height: 64px;
    }

    .gym-join-action-button {
        width: 100%;
    }

    .gym-select-empty-actions {
        flex-direction: column;
    }

    .gym-select-deletion {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-left: 14px;
    }

    .gym-select-deletion > span,
    .gym-select-deletion > div {
        flex: 1 1 100%;
    }

    .gym-select-topbar {
        height: 64px;
        padding: 0 16px;
    }

    .gym-select-account-actions > a {
        display: none;
    }

    .gym-select-workspace {
        width: calc(100% - 28px);
        padding-top: 34px;
    }

    .gym-select-system-entry {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 14px 16px;
    }

    .gym-select-system-arrow {
        display: none;
    }

    .gym-select-card,
    .gym-select-create-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .gym-select-card-arrow {
        display: none;
    }

    .gym-select-card-icon,
    .gym-select-create-card span {
        width: 42px;
        height: 42px;
    }

    .gym-select-card-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .gym-select-card-title strong {
        align-self: stretch;
        width: 100%;
        max-width: 100%;
    }

    .gym-select-card-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        width: 100%;
    }

    .gym-select-card-meta span:first-child {
        align-self: stretch;
        width: 100%;
        max-width: 100%;
    }
}
.gym-select-entry-actions {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gym-select-manager-test,
.gym-select-member-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    color: #101828;
    background: #ffffff;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}

.gym-select-manager-test {
    border-color: #111827;
    color: #ffffff;
    background: #111827;
}

.guardian-consent-panel {
    max-width: 640px;
}

.guardian-consent-summary {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid #e5e7eb;
}

.guardian-consent-summary > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #e5e7eb;
}

.guardian-consent-summary dt {
    color: #667085;
}

.guardian-consent-summary dd {
    margin: 0;
    color: #111827;
    font-weight: 600;
}

.guardian-consent-help,
.guardian-consent-complete p {
    margin: 0;
    color: #475467;
    line-height: 1.6;
}

.guardian-consent-complete {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    background: #ecfdf5;
}

.guardian-consent-complete strong {
    color: #047857;
}

.auth-field-hint {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .gym-select-card-wrap.has-entry-actions .gym-select-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .gym-select-entry-actions {
        grid-column: 2;
        justify-self: end;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}
