.slm-form,
.slm-panel,
.slm-event-heading {
    box-sizing: border-box;
    border: 1px solid #d9e0e3;
    border-radius: 8px;
    padding: 20px;
    margin: 0 0 24px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(21, 32, 38, .04);
}

.slm-form *,
.slm-panel *,
.slm-event-heading * {
    box-sizing: border-box;
}

.slm-event-heading h2,
.slm-panel h2,
.slm-fieldset legend {
    letter-spacing: 0;
}

.slm-grid,
.slm-summary-grid,
.slm-reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.slm-auth-form {
    max-width: 780px;
}

.slm-login-form {
    max-width: 520px;
}

.slm-auth-heading h2 {
    margin: 0 0 12px;
    letter-spacing: 0;
}

.slm-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #e3e9ec;
}

.slm-auth-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid #cbd6db;
    border-radius: 999px;
    padding: 0 13px;
    color: #176f6a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.slm-auth-actions a:hover,
.slm-auth-actions a:focus {
    border-color: #176f6a;
    background: #eef8f5;
    color: #125a56;
}

.slm-signup-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e3e9ec;
}

.slm-signup-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.slm-signup-section h3 {
    margin: 0 0 14px;
    color: #24383f;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: 0;
}

.slm-signup-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.slm-signup-row:last-child {
    margin-bottom: 0;
}

.slm-signup-row-account {
    grid-template-columns: minmax(160px, .65fr) minmax(0, 1.35fr);
}

.slm-signup-row-name {
    grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr);
}

.slm-signup-row-profile,
.slm-signup-row-contact,
.slm-signup-row-password {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slm-nationality-field {
    position: relative;
    display: block;
}

.slm-nationality-flag {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

.slm-nationality-field input[name="nationality"] {
    padding-left: 36px;
}

.slm-signup-form > .slm-button {
    margin-top: 20px;
}

.slm-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: #1f2a2e;
}

.slm-form input,
.slm-form select,
.slm-form textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #b9c4c9;
    border-radius: 6px;
    padding: 8px 10px;
    font: inherit;
}

.slm-form textarea {
    min-height: 100px;
}

.slm-form input:focus,
.slm-form select:focus,
.slm-form textarea:focus {
    border-color: #176f6a;
    box-shadow: 0 0 0 1px #176f6a;
    outline: none;
}

.slm-fieldset {
    border: 1px solid #dce5e8;
    border-radius: 8px;
    padding: 16px;
    margin: 0 0 18px;
}

.slm-fieldset legend {
    padding: 0 8px;
    font-weight: 700;
}

.slm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    padding: 9px 18px;
    background: #176f6a;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

a.slm-button,
a.slm-button:visited {
    color: #fff !important;
}

.slm-form > .slm-button {
    margin-top: 4px;
}

.slm-button:hover,
.slm-button:focus {
    background: #125a56;
    color: #fff;
}

.slm-button-secondary {
    border: 1px solid #cbd6db;
    background: #fff;
    color: #176f6a;
}

a.slm-button-secondary,
a.slm-button-secondary:visited {
    color: #176f6a !important;
}

.slm-button-secondary:hover,
.slm-button-secondary:focus {
    border-color: #176f6a;
    background: #eef8f5;
    color: #125a56;
}

.slm-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.slm-help {
    font-size: 13px;
    color: #5e7077;
    font-weight: 400;
}

.slm-notice {
    border-left: 4px solid #7a8b92;
    background: #f4f7f8;
    padding: 12px 14px;
    margin: 0 0 18px;
}

.slm-notice-success {
    border-left-color: #1f8a51;
    background: #effaf3;
}

.slm-notice-error {
    border-left-color: #c43d31;
    background: #fff2f0;
}

.slm-summary-grid > div {
    border: 1px solid #e0e6e8;
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfd;
}

.slm-summary-grid strong,
.slm-summary-grid span {
    display: block;
}

.slm-summary-grid strong {
    color: #50636b;
    font-size: 13px;
}

.slm-summary-grid span {
    margin-top: 6px;
    color: #142326;
    font-size: 18px;
}

.slm-registration-list {
    display: grid;
    gap: 14px;
}

.slm-registration-list-heading h2 {
    margin: 0 0 4px;
    letter-spacing: 0;
}

.slm-event-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid #d9e0e3;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(21, 32, 38, .04);
}

.slm-event-datebox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
    border-left: 4px solid #176f6a;
    padding-left: 13px;
    background: #f5faf8;
}

.slm-event-datebox span,
.slm-event-datebox strong {
    display: block;
}

.slm-event-datebox span {
    color: #63777d;
    font-size: 13px;
    font-weight: 700;
}

.slm-event-datebox strong {
    color: #142326;
    font-size: 22px;
    line-height: 1.2;
}

.slm-event-card-main h3 {
    margin: 0 0 10px;
    color: #142326;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 0;
}

.slm-event-card-main dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
}

.slm-event-card-main div {
    min-width: 0;
}

.slm-event-card-main dt {
    color: #6c7d83;
    font-size: 12px;
    font-weight: 700;
}

.slm-event-card-main dd {
    margin: 3px 0 0;
    color: #26383f;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.slm-event-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.slm-text-link,
.slm-back-link {
    color: #176f6a;
    font-weight: 700;
    text-decoration: none;
}

.slm-text-link:hover,
.slm-text-link:focus,
.slm-back-link:hover,
.slm-back-link:focus {
    color: #125a56;
    text-decoration: underline;
}

.slm-back-link {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 13px;
}

.slm-registration-auth h2 {
    margin-top: 0;
}

.slm-registration-auth p {
    max-width: 620px;
}

.slm-registration-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.slm-dashboard .slm-panel {
    padding: 24px;
}

.slm-profile-summary {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2.4fr);
    gap: 24px;
    align-items: center;
}

.slm-profile-main {
    padding-right: 24px;
    border-right: 1px solid #e0e6e8;
}

.slm-profile-main span {
    display: block;
    margin-bottom: 7px;
    color: #65757b;
    font-size: 13px;
    font-weight: 700;
}

.slm-profile-main strong {
    display: block;
    color: #142326;
    font-size: 28px;
    line-height: 1.25;
}

.slm-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.slm-profile-stats div {
    min-width: 0;
}

.slm-profile-stats dt {
    color: #65757b;
    font-size: 12px;
    font-weight: 700;
}

.slm-profile-stats dd {
    margin: 5px 0 0;
    color: #18282e;
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.slm-sports-panel h2 {
    margin-bottom: 14px;
}

.slm-sport-grid {
    display: block;
    column-count: 3;
    column-gap: 30px;
}

.slm-sport-tag {
    display: grid;
    break-inside: avoid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    min-height: 58px;
    border: 0;
    border-bottom: 1px solid #e4eaed;
    border-radius: 0;
    padding: 10px 0;
    background: transparent;
}

.slm-sport-tag.is-active {
    border-color: #bfe2da;
    background: linear-gradient(90deg, #eef8f5 0, rgba(238, 248, 245, 0) 78%);
}

.slm-sport-icon {
    display: inline-flex;
    grid-row: 1 / 3;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 0 7px;
}

.slm-sport-tag:not(.is-active) .slm-sport-icon {
    opacity: .78;
    filter: saturate(.72);
}

.slm-sport-tag.is-active strong {
    color: #0d5f58;
}

.slm-sport-tag strong,
.slm-sport-tag small {
    display: block;
    margin-top: 0;
    line-height: 1.25;
}

.slm-sport-tag small {
    color: #5c6e75;
    font-size: 12px;
}

.slm-table {
    width: 100%;
    border: 1px solid #d9e0e3;
    border-collapse: separate;
    border-radius: 8px;
    border-spacing: 0;
    margin: 12px 0;
    overflow: hidden;
    background: #fff;
}

.slm-table th,
.slm-table td {
    border-bottom: 1px solid #e0e6e8;
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.slm-table th {
    background: #eef3f4;
    color: #24383f;
    font-weight: 700;
}

.slm-table tbody tr:last-child td {
    border-bottom: 0;
}

.slm-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #edf1f2;
    color: #24383f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.slm-status-open,
.slm-status-confirmed,
.slm-status-approved,
.slm-status-active {
    background: #e2f5ef;
    color: #17624f;
}

.slm-status-completed,
.slm-status-fulfilled {
    background: #e6f0ff;
    color: #2357a5;
}

.slm-status-submitted,
.slm-status-requested,
.slm-status-waitlisted {
    background: #fff3d8;
    color: #7a4a00;
}

.slm-status-draft,
.slm-status-closed,
.slm-status-inactive {
    background: #eef1f3;
    color: #53656d;
}

.slm-status-canceled {
    background: #fde8e8;
    color: #a33131;
}

.slm-reward {
    border: 1px solid #dce5e8;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.slm-reward form {
    display: grid;
    gap: 12px;
}

.slm-reward label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.slm-reward input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #b9c4c9;
    border-radius: 6px;
    padding: 8px 10px;
}

.slm-reward h3 {
    margin-top: 0;
}

@media (max-width: 720px) {
    .slm-form,
    .slm-panel,
    .slm-event-heading {
        padding: 14px;
    }

    .slm-grid,
    .slm-summary-grid,
    .slm-reward-grid {
        grid-template-columns: 1fr;
    }

    .slm-event-card,
    .slm-event-card-main dl {
        grid-template-columns: 1fr;
    }

    .slm-event-card {
        gap: 14px;
    }

    .slm-event-datebox {
        min-height: 0;
    }

    .slm-event-card-actions,
    .slm-registration-auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .slm-event-card-actions .slm-button,
    .slm-registration-auth-actions .slm-button {
        width: 100%;
    }

    .slm-auth-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .slm-auth-actions a {
        justify-content: center;
        width: 100%;
    }

    .slm-signup-section {
        margin-top: 18px;
        padding-top: 16px;
    }

    .slm-signup-row,
    .slm-signup-row-account,
    .slm-signup-row-name,
    .slm-signup-row-profile,
    .slm-signup-row-contact,
    .slm-signup-row-password {
        grid-template-columns: 1fr;
    }

    .slm-dashboard .slm-panel {
        padding: 14px;
    }

    .slm-profile-summary,
    .slm-profile-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .slm-profile-main {
        padding-right: 0;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px solid #e0e6e8;
    }

    .slm-profile-main strong {
        font-size: 22px;
    }

    .slm-sport-grid {
        column-count: auto;
        column-gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
    }

    .slm-sport-tag {
        display: block;
        border: 1px solid #dce5e8;
        border-radius: 8px;
        min-height: 112px;
        padding: 12px;
        background: #f8fafb;
    }

    .slm-sport-tag.is-active {
        border-color: #7ec5b7;
        background: #eef8f5;
    }

    .slm-sport-tag strong,
    .slm-sport-tag small {
        margin-top: 8px;
    }

    .slm-table {
        display: block;
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .slm-table thead {
        display: none;
    }

    .slm-table tbody,
    .slm-table tr,
    .slm-table td {
        display: block;
        width: 100%;
    }

    .slm-table tr {
        border: 1px solid #d9e0e3;
        border-radius: 8px;
        padding: 10px 12px;
        margin: 0 0 12px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(21, 32, 38, .04);
    }

    .slm-table td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        border-bottom: 1px solid #edf1f2;
        padding: 9px 0;
        text-align: right;
    }

    .slm-table td:last-child {
        border-bottom: 0;
    }

    .slm-table td::before {
        content: attr(data-label);
        flex: 0 0 40%;
        color: #53656d;
        font-weight: 700;
        text-align: left;
    }

    .slm-button {
        width: 100%;
    }
}

.slm-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.slm-view-tab {
    width: auto;
    padding: 6px 18px;
    background: #e8eef0;
    color: #2c4047;
    border: 1px solid #cdd9dd;
}

.slm-view-tab.is-active {
    background: #1b7f79;
    color: #fff;
    border-color: #1b7f79;
}

.slm-map {
    width: 100%;
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
}
