:root {
    --oml-navy: #12345b;
    --oml-navy-dark: #0b2542;
    --oml-blue: #246aa8;
    --oml-red: #c62828;
    --oml-bg: #f3f6fa;
    --oml-surface: #ffffff;
    --oml-border: #d8e1eb;
    --oml-text: #1d2a38;
    --oml-muted: #607086;
    --oml-shadow: 0 8px 24px rgba(18, 52, 91, .08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0 !important;
    min-width: 320px;
    min-height: 100vh;
    background: var(--oml-bg);
    color: var(--oml-text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px !important;
    line-height: 1.5;
}

a {
    color: var(--oml-blue);
}

    a:hover {
        color: var(--oml-navy-dark);
    }

.oml-skip-link {
    position: absolute;
    left: 1rem;
    top: -5rem;
    z-index: 1000;
    padding: .75rem 1rem;
    background: #fff;
    color: var(--oml-navy);
    border-radius: .4rem;
}

    .oml-skip-link:focus {
        top: 1rem;
    }

.oml-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.oml-header {
    background: linear-gradient(120deg, var(--oml-navy-dark), var(--oml-navy));
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.oml-header-inner,
.oml-main,
.oml-footer-inner {
    width: min(1400px, calc(100% - 3rem));
    margin: 0 auto;
}

.oml-header-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.oml-brand {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .8rem;
}

.oml-brand-banner {
    display: block;
    width: min(720px, 48vw);
    height: 82px;
    object-fit: cover;
    object-position: center center;
    padding: 0;
    border-radius: .55rem;
    background: var(--oml-navy-dark);
}

.oml-brand-mobile {
    display: none;
    align-items: center;
    gap: .7rem;
}

.oml-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.oml-brand-name {
    display: block;
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.15;
}

.oml-brand-tagline {
    display: block;
    color: #cbd9e7;
    font-size: .8rem;
}

.oml-header-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.oml-nav-link,
.oml-signout {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .9rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

    .oml-nav-link:hover {
        background: rgba(255,255,255,.1);
        color: #fff;
    }

.oml-signout {
    position: relative;
    border-color: rgba(255,255,255,.45);
}

    .oml-signout:hover {
        background: #fff;
        color: var(--oml-navy);
    }

    .oml-signout input[type=image] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.oml-main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.oml-content {
    width: 100%;
}

.oml-footer {
    margin-top: auto;
    border-top: 1px solid var(--oml-border);
    background: #fff;
}

.oml-footer-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--oml-muted);
    font-size: .86rem;
}

.oml-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.oml-footer a {
    color: var(--oml-muted);
    text-decoration: none;
}

    .oml-footer a:hover {
        color: var(--oml-navy);
        text-decoration: underline;
    }

.oml-noscript {
    margin: 1rem auto;
    max-width: 900px;
    padding: 1rem;
    border-left: 4px solid var(--oml-red);
    background: #fff;
}

/* Dashboard context selectors */
.oml-dashboard-heading {
    margin: 0 0 1.25rem;
}

    .oml-dashboard-heading h1 {
        margin: 0;
        color: var(--oml-navy);
        font-size: clamp(1.55rem, 2.5vw, 2.15rem);
        line-height: 1.2;
    }

    .oml-dashboard-heading p {
        margin: .35rem 0 0;
        color: var(--oml-muted);
    }

#maindiv.oml-dashboard > table:first-of-type {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 1.25rem;
    padding: 1.25rem;
    border: 1px solid var(--oml-border);
    border-radius: .75rem;
    background: var(--oml-surface);
    box-shadow: var(--oml-shadow);
}

    #maindiv.oml-dashboard > table:first-of-type td {
        width: auto !important;
        height: auto !important;
        padding: .25rem .55rem;
    }

        #maindiv.oml-dashboard > table:first-of-type td:first-child {
            display: none;
        }

    #maindiv.oml-dashboard > table:first-of-type tr.label td {
        color: var(--oml-muted);
        font-size: .78rem;
        font-weight: 700;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

select,
input[type=text], input[type=password], input[type=email], input[type=date], input[type=number],
textarea {
    min-height: 42px;
    max-width: 100%;
    padding: .55rem .7rem;
    border: 1px solid #aebdcd;
    border-radius: .45rem;
    background: #fff;
    color: var(--oml-text);
    font: inherit;
}

    select:focus, input:focus, textarea:focus, button:focus, a:focus {
        outline: 3px solid rgba(36, 106, 168, .25);
        outline-offset: 2px;
    }

[id$="DropDownList_Association"] {
    width: 100% !important;
    min-width: 240px;
}

[id$="DropDownList_Program"], [id$="DropDownList_Team"] {
    width: 100% !important;
    min-width: 175px;
}

[id$="Label_ErrorMessage"] {
    display: block;
    width: 100% !important;
    margin: 0 0 1.25rem;
    padding: .8rem 1rem;
    border: 1px solid #e9a4a4;
    border-radius: .5rem;
    background: #fff1f1;
    color: #9f1c1c !important;
}

/* Existing Web Forms table becomes a modern action dashboard. */
#maindiv.oml-dashboard #maintable {
    width: 100% !important;
    height: auto !important;
    border-collapse: separate;
    border-spacing: .75rem;
    table-layout: fixed;
}

    #maindiv.oml-dashboard #maintable td {
        width: 33.333% !important;
        height: auto !important;
        padding: 0;
        vertical-align: stretch;
    }

    #maindiv.oml-dashboard #maintable tr > td:first-child:not([colspan]) {
        display: none;
    }

    #maindiv.oml-dashboard #maintable td[colspan="4"] {
        width: 100% !important;
        padding: 1.75rem 0 .25rem;
        text-align: left !important;
    }

    #maindiv.oml-dashboard #maintable .dashboard-group-headings td {
        padding: .3rem .85rem .15rem;
        color: var(--oml-muted);
        font-size: .76rem;
        font-weight: 750;
        letter-spacing: .055em;
        text-transform: uppercase;
    }

        #maindiv.oml-dashboard #maintable .dashboard-group-headings td:not(:first-child) {
            border-bottom: 1px solid var(--oml-border);
        }

    /* usrMenue.aspx contains obsolete empty links and omlMen wrapper elements.
   They have no function, but older CSS can make them look like duplicate cards. */
    #maindiv.oml-dashboard #maintable a.omlMen:empty {
        display: none !important;
    }

    #maindiv.oml-dashboard #maintable span.omlMen {
        display: contents !important;
    }

    #maindiv.oml-dashboard #maintable td.omlMen {
        border: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

.sectionTitle {
    display: block;
    padding-bottom: .55rem;
    border-bottom: 2px solid var(--oml-border);
    color: var(--oml-navy);
    font-size: 1.25rem !important;
    font-weight: 750;
}

#maindiv.oml-dashboard #maintable input[type=submit].omlMen,
#maindiv.oml-dashboard #maintable input[type=button].omlMen {
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: .72rem .9rem !important;
    border: 1px solid var(--oml-border) !important;
    border-left: 4px solid var(--oml-blue) !important;
    border-radius: .55rem !important;
    background: var(--oml-surface) !important;
    color: var(--oml-navy) !important;
    box-shadow: 0 2px 8px rgba(18,52,91,.06);
    font-family: inherit !important;
    font-size: .94rem !important;
    font-weight: 650 !important;
    text-align: left;
    white-space: normal;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

#maindiv.oml-dashboard #maintable input[type=submit]:hover,
#maindiv.oml-dashboard #maintable input[type=button]:hover {
    border-color: #9eb5ca !important;
    border-left-color: var(--oml-red) !important;
    box-shadow: 0 7px 18px rgba(18,52,91,.12);
    transform: translateY(-1px);
}

/* Normalize the legacy app-store section. */
#maindiv.oml-dashboard #maintable .faqTitle {
    display: block;
    margin-top: .5rem;
    color: var(--oml-navy);
    font-weight: 700;
}

#maindiv.oml-dashboard #maintable img {
    max-width: 180px;
    height: auto !important;
}

#Transparent {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 780px) {
    .oml-header-inner, .oml-main, .oml-footer-inner {
        width: min(100% - 1.5rem, 1400px);
    }

    .oml-header-inner {
        min-height: 68px;
    }

    .oml-brand-banner {
        display: none;
    }

    .oml-brand-mobile {
        display: flex;
    }

    .oml-brand-tagline, .oml-nav-support {
        display: none;
    }

    .oml-header-actions {
        gap: .15rem;
    }

    .oml-nav-link, .oml-signout {
        padding: .5rem .65rem;
        font-size: .88rem;
    }

    .oml-main {
        padding-top: 1rem;
    }

    .oml-footer-inner {
        padding: 1rem 0;
        display: block;
    }

    .oml-footer-links {
        margin-top: .5rem;
    }

    #maindiv.oml-dashboard > table:first-of-type,
    #maindiv.oml-dashboard > table:first-of-type tbody,
    #maindiv.oml-dashboard > table:first-of-type tr,
    #maindiv.oml-dashboard > table:first-of-type td {
        display: block;
        width: 100% !important;
    }

        #maindiv.oml-dashboard > table:first-of-type tr.label {
            display: none;
        }

        #maindiv.oml-dashboard > table:first-of-type tr:not(.label) td:not(:first-child) {
            margin-bottom: .8rem;
        }

        #maindiv.oml-dashboard > table:first-of-type tr:not(.label) td:nth-child(2)::before {
            content: "Association";
        }

        #maindiv.oml-dashboard > table:first-of-type tr:not(.label) td:nth-child(3)::before {
            content: "Program type";
        }

        #maindiv.oml-dashboard > table:first-of-type tr:not(.label) td:nth-child(4)::before {
            content: "Team / playing level";
        }

        #maindiv.oml-dashboard > table:first-of-type tr:not(.label) td::before {
            display: block;
            margin-bottom: .25rem;
            color: var(--oml-muted);
            font-size: .75rem;
            font-weight: 700;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

    #maindiv.oml-dashboard #maintable, #maindiv.oml-dashboard #maintable tbody {
        display: block;
        width: 100% !important;
    }

        #maindiv.oml-dashboard #maintable tr.dashboard-group-headings {
            display: none !important;
        }

        #maindiv.oml-dashboard #maintable tr {
            display: grid;
            grid-template-columns: 1fr;
            gap: .65rem;
            margin-bottom: .65rem;
        }

        #maindiv.oml-dashboard #maintable td {
            display: block;
            width: 100% !important;
        }

        #maindiv.oml-dashboard #maintable tr > td:first-child:not([colspan]) {
            display: none;
        }

        #maindiv.oml-dashboard #maintable td[colspan="4"] {
            padding-top: 1.2rem;
        }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Assign To Team - deliberately page-scoped */
.oml-feature-page {
    border: 1px solid var(--oml-border);
    border-radius: .9rem;
    background: var(--oml-surface);
    box-shadow: var(--oml-shadow);
}

.oml-assign-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.oml-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--oml-border);
}

.oml-page-eyebrow {
    display: block;
    margin-bottom: .25rem;
    color: var(--oml-blue);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.oml-page-heading h1 {
    margin: 0;
    color: var(--oml-navy);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.25;
}

.oml-page-heading p {
    margin: .4rem 0 0;
    color: var(--oml-muted);
}

.oml-back-link {
    flex: 0 0 auto;
    padding: .55rem .8rem;
    border-radius: .45rem;
    text-decoration: none;
    font-weight: 650;
}

    .oml-back-link:hover {
        background: #edf4fa;
    }

.oml-alert {
    display: block;
    width: 100% !important;
    margin-bottom: 1.2rem;
    padding: .8rem 1rem;
    border-radius: .5rem;
}

.oml-alert-error {
    border: 1px solid #e9a4a4;
    background: #fff1f1;
    color: #9f1c1c !important;
}

.oml-assignment-board {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 1.25rem;
}

.oml-list-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--oml-border);
    border-radius: .7rem;
    background: #f9fbfd;
}

.oml-list-panel-heading {
    min-height: 76px;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--oml-border);
    background: #f1f6fa;
}

    .oml-list-panel-heading h2 {
        margin: 0;
        color: var(--oml-navy);
        font-size: 1.05rem;
    }

    .oml-list-panel-heading span {
        color: var(--oml-muted);
        font-size: .82rem;
    }

.oml-participant-list {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 360px !important;
    padding: .45rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff;
}

    .oml-participant-list option {
        padding: .5rem .55rem;
        border-radius: .3rem;
    }

.oml-transfer-actions {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.oml-action-button {
    min-height: 44px;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.oml-action-primary {
    background: var(--oml-blue);
    color: #fff;
}

    .oml-action-primary:hover {
        background: var(--oml-navy);
    }

.oml-action-secondary {
    border-color: #afbdca;
    background: #fff;
    color: var(--oml-navy);
}

    .oml-action-secondary:hover {
        background: #edf4fa;
    }

.oml-action-danger {
    border-color: #dca1a1;
    background: #fff;
    color: #a51d25;
}

    .oml-action-danger:hover {
        background: #fff1f1;
    }

.oml-action-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.oml-record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--oml-border);
}

@media (max-width: 860px) {
    .oml-page-heading {
        display: block;
    }

    .oml-back-link {
        display: inline-block;
        margin-top: .75rem;
    }

    .oml-assignment-board {
        grid-template-columns: 1fr;
    }

    .oml-transfer-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .oml-participant-list {
        height: 260px !important;
    }
}

@media (max-width: 480px) {
    .oml-transfer-actions, .oml-record-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .oml-action-button {
        width: 100%;
    }
}

/* Reports - deliberately page-scoped */
.oml-report-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.oml-report-heading {
    align-items: center;
}

.oml-report-viewer {
    width: 100%;
    min-height: 500px;
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--oml-border);
    border-radius: .7rem;
    background: #e8edf3;
    text-align: center;
}

    .oml-report-viewer > * {
        margin-right: auto !important;
        margin-left: auto !important;
    }

@media (max-width: 780px) {
    .oml-report-heading .oml-action-button {
        width: 100%;
        margin-top: .85rem;
    }

    .oml-report-viewer {
        padding: .5rem;
        text-align: left;
    }
}

/* Participant Information - deliberately page-scoped */
.oml-participants-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.oml-participants-heading {
    align-items: center;
}

.oml-participants-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.oml-count-badge {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: .55rem .85rem;
    border: 1px solid #b9cbdb;
    border-radius: 999px;
    background: #edf5fb;
    color: var(--oml-navy);
    font-size: .88rem;
    font-weight: 750;
    white-space: nowrap;
}

.oml-participants-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

.oml-grid-scroll {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--oml-border);
    border-radius: .7rem;
}

.oml-data-grid {
    width: 100% !important;
    min-width: 720px;
    height: auto !important;
    border: 0;
    border-collapse: collapse;
    background: #fff;
}

    .oml-data-grid th {
        padding: .75rem .8rem;
        border-bottom: 2px solid #b9c8d6;
        background: #e8eff6 !important;
        color: var(--oml-navy);
        font-size: .79rem;
        font-weight: 800;
        letter-spacing: .045em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .oml-data-grid td {
        height: auto !important;
        padding: .55rem .7rem;
        border-bottom: 1px solid var(--oml-border);
        color: var(--oml-text);
    }

    .oml-data-grid tr:last-child td {
        border-bottom: 0;
    }

.oml-data-grid-row-alt td {
    background: #f8fafc;
}

.oml-data-grid tr:hover td {
    background: #eef6fc;
}

.oml-data-grid td:nth-child(-n+3) {
    width: 1%;
    white-space: nowrap;
}

.oml-grid-action {
    min-height: 34px !important;
    padding: .35rem .65rem !important;
    border: 1px solid #aebdca !important;
    border-radius: .4rem !important;
    background: #fff !important;
    color: var(--oml-navy) !important;
    font: 650 .82rem "Segoe UI", Arial, sans-serif !important;
    cursor: pointer;
}

    .oml-grid-action:hover {
        border-color: var(--oml-blue) !important;
        background: #eaf4fc !important;
    }

.oml-grid-action-delete {
    border-color: #dfb1b1 !important;
    color: #9f1c1c !important;
}

    .oml-grid-action-delete:hover {
        border-color: #c62828 !important;
        background: #fff0f0 !important;
    }

@media (max-width: 900px) {
    .oml-participants-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .oml-participants-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .oml-participants-actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

        .oml-participants-actions .oml-action-button {
            width: 100%;
        }
}

/* Participant edit form - deliberately page-scoped */
.oml-participant-form-page {
    padding: clamp(1rem, 2.5vw, 2rem);
    overflow-x: auto;
}

    .oml-participant-form-page > #maintable {
        width: 100% !important;
        max-width: 980px;
        height: auto !important;
        margin: 0 auto;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: auto;
    }

        .oml-participant-form-page > #maintable > tbody > tr > td:first-child:not([colspan]) {
            display: none;
        }

        .oml-participant-form-page > #maintable > tbody > tr > td:nth-child(2) {
            width: 100% !important;
            height: auto !important;
            padding: .55rem 0;
            vertical-align: top;
        }

        .oml-participant-form-page > #maintable > tbody > tr:first-child > td.pageTitle {
            display: table-cell;
            height: auto !important;
            padding: 0 0 1.15rem;
            border-bottom: 1px solid var(--oml-border);
            color: var(--oml-navy);
            font-size: clamp(1.45rem, 2.5vw, 2rem);
            font-weight: 750;
        }

        .oml-participant-form-page > #maintable > tbody > tr:nth-child(2) > td:nth-child(2):empty {
            display: none;
        }

    .oml-participant-form-page table table {
        width: 100% !important;
        max-width: 900px;
        height: auto !important;
        border-collapse: separate;
        border-spacing: .65rem .3rem;
    }

        .oml-participant-form-page table table td {
            width: auto !important;
            height: auto !important;
            padding: 0;
            vertical-align: top;
        }

    .oml-participant-form-page .label {
        color: var(--oml-navy) !important;
        font-family: inherit !important;
        font-size: .84rem !important;
        font-weight: 700;
    }

    .oml-participant-form-page input[type=text],
    .oml-participant-form-page select,
    .oml-participant-form-page textarea {
        max-width: 100%;
    }

    .oml-participant-form-page [id$="InputmaskDOB"] {
        width: 145px !important;
        min-width: 145px;
    }

    .oml-participant-form-page input[id$="InputMaskHomePhone"],
    .oml-participant-form-page input[id$="InputMaskCellPhone"] {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
        box-sizing: border-box !important;
    }

    /* Parent contact fields on Participant.aspx */
    .oml-participant-form-page input[id$="InputMaskMotherHomePhone"],
    .oml-participant-form-page input[id$="InputMaskMotherCellPhone"],
    .oml-participant-form-page input[id$="InputMaskMotherWorkPhone"],
    .oml-participant-form-page input[id$="InputMaskFatherHomePhone"],
    .oml-participant-form-page input[id$="InputMaskFatherCellPhone"],
    .oml-participant-form-page input[id$="InputMaskFatherWorkPhone"] {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;
        box-sizing: border-box !important;
    }

    .oml-participant-form-page input[id$="InputMaskMotherZip"],
    .oml-participant-form-page input[id$="InputMaskFatherZip"] {
        width: 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        box-sizing: border-box !important;
    }

    .oml-participant-form-page input[id$="InputMaskMotherZip4"],
    .oml-participant-form-page input[id$="InputMaskFatherZip4"] {
        width: 85px !important;
        min-width: 85px !important;
        max-width: 85px !important;
        box-sizing: border-box !important;
    }

    .oml-participant-form-page textarea {
        min-height: 96px;
        resize: vertical;
    }

    .oml-participant-form-page .additionaldata > td:nth-child(2) {
        margin-top: .65rem;
        padding: 1rem !important;
        border: 1px solid var(--oml-border);
        border-radius: .6rem;
        background: #f7fafc;
    }

    .oml-participant-form-page td.sectionTitle {
        display: table-cell;
        padding: .75rem 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .oml-participant-form-page .show_hide,
    .oml-participant-form-page .show_hide1 {
        display: block;
        padding: .9rem 1rem;
        border: 1px solid #b9cbdb;
        border-radius: .55rem;
        background: #edf5fb;
        color: var(--oml-navy);
        font-size: 1rem;
        font-weight: 750;
        text-decoration: none;
    }

        .oml-participant-form-page .show_hide:hover,
        .oml-participant-form-page .show_hide1:hover {
            border-color: var(--oml-blue);
            background: #e4f1fa;
        }

    .oml-participant-form-page .slidingDiv,
    .oml-participant-form-page .slidingDiv1 {
        margin-top: .65rem;
        padding: .85rem;
        border: 1px solid var(--oml-border);
        border-radius: .55rem;
        background: #fff !important;
        color: var(--oml-text) !important;
        overflow-x: auto;
    }

    .oml-participant-form-page [id$="Image_Photo"] {
        max-width: 150px;
        height: auto !important;
        border: 1px solid var(--oml-border);
        border-radius: .45rem;
    }

    .oml-participant-form-page [id$="Button_Save"],
    .oml-participant-form-page [id$="Button_UploadPhoto"],
    .oml-participant-form-page [id$="Button_Cancel"],
    .oml-participant-form-page [id$="Button_PrintRegistrationPacket"] {
        width: auto !important;
        min-width: 126px;
        min-height: 42px !important;
        height: auto !important;
        padding: .65rem 1rem !important;
        border-radius: .5rem !important;
        font-family: inherit !important;
        font-weight: 700 !important;
    }

    .oml-participant-form-page [id$="Button_Save"] {
        border: 1px solid var(--oml-blue) !important;
        background: var(--oml-blue) !important;
        color: #fff !important;
    }

    .oml-participant-form-page [id$="Button_Cancel"] {
        border: 1px solid #afbdca !important;
        background: #fff !important;
        color: var(--oml-navy) !important;
    }

@media (max-width: 720px) {
    .oml-participant-form-page {
        padding: 1rem;
    }

        .oml-participant-form-page > #maintable {
            min-width: 660px;
        }
}

/* Coach Information - deliberately page-scoped */
.oml-coaches-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.oml-coaches-heading {
    align-items: center;
}

.oml-coaches-grid {
    min-width: 760px;
}

    .oml-coaches-grid td:nth-child(-n+4) {
        width: 1%;
        white-space: nowrap;
    }

    .oml-coaches-grid input:disabled {
        border-color: #d7dee5 !important;
        background: #f2f4f6 !important;
        color: #8996a3 !important;
        cursor: not-allowed;
    }

.oml-coach-guidance {
    margin-top: 1.5rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #bfd1e0;
    border-left: 4px solid var(--oml-blue);
    border-radius: .65rem;
    background: #f1f7fb;
}

    .oml-coach-guidance h2 {
        margin: 0 0 .55rem;
        color: var(--oml-navy);
        font-size: 1.05rem;
    }

    .oml-coach-guidance p {
        margin: .45rem 0;
        color: var(--oml-text);
        line-height: 1.6;
    }

    .oml-coach-guidance a {
        font-weight: 700;
    }

@media (max-width: 560px) {
    .oml-coaches-page {
        padding: 1rem;
    }
}

/* Coach edit form - deliberately page-scoped */
.oml-coach-form-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.oml-form-section {
    margin-top: 1.1rem;
    padding: 1.15rem;
    border: 1px solid var(--oml-border);
    border-radius: .7rem;
    background: #f9fbfd;
}

    .oml-form-section h2 {
        margin: 0 0 1rem;
        color: var(--oml-navy);
        font-size: 1.05rem;
    }

.oml-form-grid {
    display: grid;
    gap: 1rem;
}

.oml-form-grid-three {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1fr) 240px;
}

.oml-name-grid {
    grid-template-columns: minmax(180px, 1fr) 70px minmax(180px, 1fr) 110px;
}

.oml-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oml-span-two {
    grid-column: span 2;
}

.oml-field {
    min-width: 0;
}

    .oml-field label,
    .oml-field-label {
        display: block;
        margin-bottom: .35rem;
        color: var(--oml-navy);
        font-size: .84rem;
        font-weight: 750;
    }

    .oml-field small {
        display: block;
        margin-top: .35rem;
        color: var(--oml-muted);
        line-height: 1.35;
    }

.oml-optional {
    color: var(--oml-muted);
    font-weight: 600;
}

.oml-coach-form-page .oml-field > input[type=text],
.oml-coach-form-page .oml-field > input[type=tel],
.oml-coach-form-page .oml-field > select,
.oml-coach-form-page .oml-field > textarea {
    width: 100% !important;
    max-width: none;
}

.oml-field-mi input {
    text-align: center;
}

.oml-coach-form-page .oml-field > input.oml-coach-dob {
    display: block !important;
    width: 85px !important;
    min-width: 85px !important;
    max-width: 85px !important;
    box-sizing: border-box !important;
    justify-self: start;
}

.oml-zip-fields {
    display: flex;
    align-items: center;
    gap: .45rem;
}

    .oml-zip-fields [id$="InputMaskZip"] {
        width: 105px !important;
    }

    .oml-zip-fields [id$="InputMaskZip4"] {
        width: 90px !important;
    }

.oml-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 360px));
    gap: .5rem .75rem;
    justify-content: start;
}

    .oml-check-grid .oml-check-item {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: .45rem .6rem;
        border: 1px solid var(--oml-border);
        border-radius: .45rem;
        background: #fff;
    }

        .oml-check-grid .oml-check-item input {
            flex: 0 0 auto;
            width: 18px;
            height: 18px;
            margin: 0 .5rem 0 0;
        }

        .oml-check-grid .oml-check-item label {
            margin: 0;
            color: var(--oml-text);
            font-weight: 650;
        }

.oml-photo-notes {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.25rem;
}

.oml-photo-panel {
    min-width: 0;
}

    .oml-photo-panel img {
        display: block;
        max-width: 150px;
        height: auto !important;
        border: 1px solid var(--oml-border);
        border-radius: .5rem;
        background: #fff;
    }

.oml-coach-form-page textarea {
    min-height: 130px;
    resize: vertical;
}

@media (max-width: 900px) {
    .oml-form-grid-three,
    .oml-contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .oml-name-grid {
        grid-template-columns: minmax(180px, 1fr) 70px minmax(180px, 1fr);
    }

    .oml-field-suffix {
        grid-column: 1;
    }
}

@media (max-width: 620px) {
    .oml-coach-form-page {
        padding: 1rem;
    }

    .oml-form-grid-three,
    .oml-name-grid,
    .oml-contact-grid,
    .oml-check-grid,
    .oml-photo-notes {
        grid-template-columns: 1fr;
    }

    .oml-span-two,
    .oml-field-suffix {
        grid-column: auto;
    }

    .oml-field-mi input {
        width: 70px !important;
    }
}

/* League and conference officials */
.oml-admin-list-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem;
}

    .oml-admin-list-page .oml-section-card {
        margin-top: 1.5rem;
        padding: 1.5rem;
        border: 1px solid var(--oml-border);
        border-radius: .8rem;
        background: #fff;
        box-shadow: 0 10px 28px rgba(20, 54, 86, .08);
    }

    .oml-admin-list-page .oml-section-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

        .oml-admin-list-page .oml-section-heading h2 {
            margin: 0;
            color: var(--oml-navy);
            font-size: 1.25rem;
        }

        .oml-admin-list-page .oml-section-heading p {
            margin: .25rem 0 0;
            color: var(--oml-muted);
        }

    .oml-admin-list-page .oml-table-scroll {
        overflow-x: auto;
        border: 1px solid var(--oml-border);
        border-radius: .65rem;
    }

.oml-admin-grid {
    width: 100% !important;
    min-width: 620px;
    border: 0 !important;
    border-collapse: collapse;
}

    .oml-admin-grid th {
        padding: .8rem 1rem;
        border: 0 !important;
        border-bottom: 1px solid var(--oml-border) !important;
        background: #e8f0f7 !important;
        color: var(--oml-navy);
        text-align: left;
        font-size: .82rem;
        letter-spacing: .035em;
        text-transform: uppercase;
    }

    .oml-admin-grid td {
        padding: .8rem 1rem;
        border: 0 !important;
        border-bottom: 1px solid #dbe4ec !important;
        background: #fff;
        color: var(--oml-text);
        vertical-align: middle;
    }

    .oml-admin-grid tr:last-child td {
        border-bottom: 0 !important;
    }

    .oml-admin-grid tr:hover td {
        background: #f5f9fc;
    }

    .oml-admin-grid th:nth-child(1),
    .oml-admin-grid th:nth-child(2),
    .oml-admin-grid td:nth-child(1),
    .oml-admin-grid td:nth-child(2) {
        width: 1%;
        white-space: nowrap;
    }

.oml-grid-button {
    min-height: 38px;
    padding: .45rem .8rem;
    border: 1px solid #afbdca;
    border-radius: .45rem;
    background: #fff;
    color: var(--oml-navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.oml-grid-edit:hover {
    border-color: var(--oml-blue);
    background: #edf5fb;
}

.oml-grid-delete {
    border-color: #dca1a1;
    color: #a51d25;
}

    .oml-grid-delete:hover {
        background: #fff1f1;
    }

.oml-admin-list-page .oml-alert {
    display: block;
    margin-top: 1rem;
}

@media (max-width: 620px) {
    .oml-admin-list-page {
        padding: 1rem;
    }

        .oml-admin-list-page .oml-section-card {
            padding: 1rem;
        }

        .oml-admin-list-page .oml-section-heading {
            align-items: stretch;
            flex-direction: column;
        }

            .oml-admin-list-page .oml-section-heading .oml-action-button {
                width: 100%;
            }
}

/* League official profile */
.oml-official-form-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem;
}

    .oml-official-form-page .oml-page-heading {
        align-items: center;
    }

    .oml-official-form-page .oml-alert {
        display: block;
        margin: 1.25rem 0;
    }

    .oml-official-form-page .oml-form-section {
        margin-top: 1.5rem;
        padding: 1.5rem;
        border: 1px solid var(--oml-border);
        border-radius: .8rem;
        background: #f8fbfd;
    }

        .oml-official-form-page .oml-form-section h2 {
            margin: 0 0 1.2rem;
            color: var(--oml-navy);
            font-size: 1.18rem;
        }

.oml-official-name-grid,
.oml-official-contact-grid {
    display: grid;
    gap: 1.1rem 1.25rem;
}

.oml-official-name-grid {
    grid-template-columns: minmax(190px, .9fr) minmax(210px, 1.25fr) 72px minmax(210px, 1.25fr) 120px;
}

.oml-official-contact-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.oml-official-form-page .oml-field {
    min-width: 0;
}

    .oml-official-form-page .oml-field > label,
    .oml-official-form-page .oml-field-label {
        display: block;
        margin-bottom: .42rem;
        color: var(--oml-navy);
        font-weight: 750;
    }

    .oml-official-form-page .oml-field > input,
    .oml-official-form-page .oml-field > select,
    .oml-official-form-page .oml-field > textarea {
        display: block;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
    }

.oml-official-address {
    grid-column: span 2;
}

.oml-official-email {
    grid-column: span 2;
}

.oml-zip-fields {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.oml-official-form-page .oml-zip-fields input[id$="InputMaskZip"] {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
}

.oml-official-form-page .oml-zip-fields input[id$="InputMaskZip4"] {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
}

.oml-official-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.oml-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    gap: .8rem 1rem;
}

    .oml-check-grid > span {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .oml-check-grid input[type=checkbox] {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        margin: 0 .55rem 0 0;
        accent-color: var(--oml-blue);
    }

    .oml-check-grid label {
        margin: 0;
        color: var(--oml-text);
        font-weight: 650;
    }
/* A Web Forms CheckBox may render as either an input/label pair or as a
   wrapper span containing that pair. Keep both renderings on one row. */
.oml-official-form-page .oml-check-grid {
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: .55rem;
    row-gap: .65rem;
    align-items: center;
}

    .oml-official-form-page .oml-check-grid > input[type=checkbox] {
        grid-column: 1;
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
    }

    .oml-official-form-page .oml-check-grid > label {
        grid-column: 2;
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        line-height: 1.3;
    }

    .oml-official-form-page .oml-check-grid > span {
        grid-column: 1 / -1;
        display: inline-flex !important;
        width: fit-content !important;
        max-width: 100%;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: .55rem;
    }

        .oml-official-form-page .oml-check-grid > span > input[type=checkbox] {
            flex: 0 0 18px !important;
            margin: 0 !important;
        }

        .oml-official-form-page .oml-check-grid > span > label {
            display: inline !important;
            flex: 0 1 auto !important;
            width: auto !important;
            margin: 0 !important;
            white-space: normal;
        }

.oml-field-help {
    margin: .8rem 0 0;
    color: var(--oml-muted);
    font-size: .88rem;
}

.oml-official-photo-grid {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.oml-photo-panel img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 1px solid var(--oml-border);
    border-radius: .7rem;
    background: #fff;
}

.oml-official-form-page textarea[id$="TextBox_Notes"] {
    min-height: 150px;
    resize: vertical;
}

.oml-official-form-page .oml-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--oml-border);
}

@media (max-width: 1000px) {
    .oml-official-name-grid {
        grid-template-columns: 1fr 1fr 72px 1fr 110px;
    }

    .oml-official-title {
        grid-column: 1 / -1;
        max-width: 360px;
    }

    .oml-official-contact-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 760px) {
    .oml-official-name-grid {
        grid-template-columns: 72px minmax(0, 1fr) 110px;
    }

    .oml-official-title,
    .oml-official-first {
        grid-column: 1 / -1;
        max-width: none;
    }

    .oml-official-last {
        grid-column: 2;
    }

    .oml-official-options-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .oml-check-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .oml-official-form-page {
        padding: 1rem;
    }

        .oml-official-form-page .oml-page-heading {
            align-items: flex-start;
        }

        .oml-official-form-page .oml-form-section {
            padding: 1rem;
        }

    .oml-official-name-grid,
    .oml-official-contact-grid,
    .oml-official-photo-grid {
        grid-template-columns: 1fr;
    }

        .oml-official-name-grid > *,
        .oml-official-contact-grid > *,
        .oml-official-photo-grid > * {
            grid-column: auto;
        }

    .oml-official-mi {
        max-width: 85px;
    }

    .oml-official-suffix {
        max-width: 150px;
    }

    .oml-official-form-page .oml-form-actions {
        flex-direction: column;
    }

        .oml-official-form-page .oml-form-actions .oml-action-button {
            width: 100%;
        }
}

/* Conference official profile */
.oml-required-note {
    margin: 1rem 0 -.25rem;
    color: var(--oml-muted);
    font-size: .9rem;
    font-weight: 650;
}

.oml-required {
    color: #bd1f2d !important;
    font-weight: 800;
}

.oml-conference-contact-grid .oml-conference-zip input[id$="InputMaskZip"] {
    display: block !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    box-sizing: border-box !important;
}

.oml-conference-official-page .oml-photo-panel {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 620px) {
    .oml-required-note {
        margin-top: .75rem;
    }
}

/* Administrator profile */
.oml-profile-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem;
}

    .oml-profile-page .oml-alert {
        display: block;
        margin: 1.25rem 0;
    }

    .oml-profile-page .oml-validation-summary:empty,
    .oml-profile-page .oml-validation-summary[style*="display:none"],
    .oml-profile-page .oml-validation-summary[style*="display: none"] {
        display: none;
    }

    .oml-profile-page .oml-validation-summary ul {
        margin: .5rem 0 0;
        padding-left: 1.25rem;
    }

    .oml-profile-page .oml-form-section {
        margin-top: 1.5rem;
        padding: 1.5rem;
        border: 1px solid var(--oml-border);
        border-radius: .8rem;
        background: #f8fbfd;
    }

        .oml-profile-page .oml-form-section h2 {
            margin: 0 0 1.2rem;
            color: var(--oml-navy);
            font-size: 1.18rem;
        }

.oml-profile-account-grid,
.oml-profile-name-grid,
.oml-profile-contact-grid {
    display: grid;
    gap: 1.1rem 1.25rem;
}

.oml-profile-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oml-profile-name-grid {
    grid-template-columns: minmax(220px, 1fr) 72px minmax(220px, 1fr) 120px;
}

.oml-profile-contact-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.oml-profile-page .oml-field {
    min-width: 0;
}

    .oml-profile-page .oml-field > label,
    .oml-profile-page .oml-field-label {
        display: block;
        margin-bottom: .42rem;
        color: var(--oml-navy);
        font-weight: 750;
    }

    .oml-profile-page .oml-field > input,
    .oml-profile-page .oml-field > select,
    .oml-profile-page .oml-validated-control > input,
    .oml-profile-page .oml-validated-control > select {
        display: inline-block;
        width: calc(100% - 24px) !important;
        max-width: none !important;
        box-sizing: border-box !important;
        color: var(--oml-text);
        font-family: inherit;
        font-weight: 400;
    }

    .oml-profile-page .oml-field > input,
    .oml-profile-page .oml-field > select {
        width: 100% !important;
    }

.oml-readonly-value {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: .75rem 1rem;
    border: 1px solid #c9d6e1;
    border-radius: .55rem;
    background: #edf3f7;
    color: var(--oml-navy);
    font-size: 1.05rem;
    font-weight: 750;
    box-sizing: border-box;
}

.oml-profile-username {
    grid-column: 1 / -1;
    max-width: 420px;
}

.oml-profile-question {
    grid-column: 1 / -1;
}

.oml-profile-answer {
    max-width: 520px;
}

.oml-profile-address {
    grid-column: span 2;
}

.oml-profile-page .oml-profile-mi > input {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
}

.oml-profile-page .oml-profile-suffix > select {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.oml-profile-page .oml-zip-fields input[id$="InputMaskZip"] {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
}

.oml-profile-page .oml-zip-fields input[id$="InputMaskZip4"] {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
}

.oml-profile-page .oml-validated-control .oml-required {
    display: inline-block;
    margin-left: .3rem;
    vertical-align: middle;
}

.oml-profile-page .oml-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--oml-border);
}

@media (max-width: 820px) {
    .oml-profile-name-grid {
        grid-template-columns: 72px minmax(0, 1fr) 120px;
    }

    .oml-profile-first {
        grid-column: 1 / -1;
    }

    .oml-profile-last {
        grid-column: 2;
    }

    .oml-profile-contact-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 620px) {
    .oml-profile-page {
        padding: 1rem;
    }

        .oml-profile-page .oml-form-section {
            padding: 1rem;
        }

    .oml-profile-account-grid,
    .oml-profile-name-grid,
    .oml-profile-contact-grid {
        grid-template-columns: 1fr;
    }

    .oml-profile-page .oml-profile-username,
    .oml-profile-page .oml-profile-question,
    .oml-profile-page .oml-profile-answer,
    .oml-profile-page .oml-profile-first,
    .oml-profile-page .oml-profile-last,
    .oml-profile-page .oml-profile-address {
        grid-column: auto;
        max-width: none;
    }

    .oml-profile-page .oml-form-actions {
        flex-direction: column;
    }

        .oml-profile-page .oml-form-actions .oml-action-button {
            width: 100%;
        }
}

/* Change password */
.oml-password-page {
    display: flex;
    justify-content: center;
    padding: 3rem 1.25rem;
}

.oml-password-card {
    width: 100%;
    max-width: 560px;
    padding: 2rem;
    border: 1px solid var(--oml-border);
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(20, 54, 86, .1);
}

.oml-password-heading {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--oml-border);
}

    .oml-password-heading h1 {
        margin: .3rem 0 0;
        color: var(--oml-navy);
        font-size: clamp(1.6rem, 3vw, 2.1rem);
        line-height: 1.2;
    }

    .oml-password-heading p {
        margin: .55rem 0 0;
        color: var(--oml-muted);
        line-height: 1.55;
    }

.oml-password-card .oml-alert {
    display: block;
    margin: 1.25rem 0 0;
}

    .oml-password-card .oml-alert:empty {
        display: none;
    }

.oml-password-fields {
    display: grid;
    gap: 1.15rem;
    margin-top: 1.5rem;
}

.oml-password-card .oml-field label {
    display: block;
    margin-bottom: .42rem;
    color: var(--oml-navy);
    font-weight: 750;
}

.oml-password-card .oml-field input {
    display: block;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.oml-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--oml-border);
}

@media (max-width: 620px) {
    .oml-password-page {
        padding: 1rem;
    }

    .oml-password-card {
        padding: 1.25rem;
    }

    .oml-password-actions {
        flex-direction: column;
    }

        .oml-password-actions .oml-action-button {
            width: 100%;
        }
}

/* Password confirmation */
.oml-confirmation-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    padding: 2.5rem 1.25rem;
}

.oml-confirmation-card {
    width: 100%;
    max-width: 560px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--oml-border);
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 12px 32px rgba(20, 54, 86, .1);
    text-align: center;
}

.oml-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #e5f5ec;
    color: #167348;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.oml-confirmation-card h1 {
    margin: .3rem 0 0;
    color: var(--oml-navy);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.oml-confirmation-card p {
    margin: .65rem 0 1.5rem;
    color: var(--oml-muted);
    font-size: 1.05rem;
}

@media (max-width: 620px) {
    .oml-confirmation-page {
        min-height: 340px;
        padding: 1rem;
    }

    .oml-confirmation-card {
        padding: 2rem 1.25rem;
    }

        .oml-confirmation-card .oml-action-button {
            width: 100%;
        }
}

/* Standalone league and team chat window */
.oml-chat-body {
    min-width: 300px;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: #eaf0f6;
}

.oml-chat-form {
    height: 100%;
}

.oml-chat-window {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.oml-chat-header {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    border-bottom: 1px solid #2c5278;
    background: linear-gradient(120deg, var(--oml-navy-dark), var(--oml-navy));
    color: #fff;
}

.oml-chat-brand {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.oml-chat-heading {
    min-width: 0;
}

.oml-chat-kicker {
    display: block;
    color: #c8d9e9;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.oml-chat-heading h1 {
    margin: .15rem 0 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.2;
    text-overflow: ellipsis;
}

.oml-chat-status {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #dce8f3;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

    .oml-chat-status span {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #f2b84b;
    }

    .oml-chat-status.is-connected span {
        background: #55d58b;
    }

    .oml-chat-status.is-disconnected span {
        background: #ef7777;
    }

.oml-chat-history {
    flex: 1 1 300px;
    min-height: 220px;
    padding: .85rem;
    overflow: hidden;
    background: #f4f7fa;
}

.oml-chat-messages {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 220px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0 !important;
    list-style: none;
    visibility: visible !important;
    opacity: 1 !important;
}

    .oml-chat-messages li {
        width: fit-content;
        max-width: 82%;
        margin: 0 0 .65rem;
        padding: .7rem .8rem;
        overflow-wrap: anywhere;
        border: 1px solid #d7e2eb;
        border-radius: .65rem;
        background: #fff;
        box-shadow: 0 2px 8px rgba(20,54,86,.04);
        visibility: visible !important;
        opacity: 1 !important;
    }

        .oml-chat-messages li.oml-chat-message-other {
            margin-right: auto;
            border-color: #a9d2ad;
            background: #d9f0dc;
            color: #111;
        }

        .oml-chat-messages li.oml-chat-message-own {
            margin-left: auto;
            border-color: #cbd8e3;
            background: #fff;
            color: #111;
        }

            .oml-chat-messages li.oml-chat-message-other strong,
            .oml-chat-messages li.oml-chat-message-own strong,
            .oml-chat-messages li.oml-chat-message-other span,
            .oml-chat-messages li.oml-chat-message-own span,
            .oml-chat-messages li.oml-chat-message-other a,
            .oml-chat-messages li.oml-chat-message-own a {
                color: #111;
            }

        .oml-chat-messages li strong {
            display: block;
            margin-bottom: .15rem;
            color: var(--oml-blue);
            font-size: .78rem;
        }

        .oml-chat-messages li span,
        .oml-chat-messages li a {
            display: block;
            color: var(--oml-text);
            font: inherit;
            line-height: inherit;
            text-decoration: none;
            white-space: normal;
            visibility: visible !important;
            opacity: 1 !important;
        }

.oml-chat-composer {
    flex: 0 0 auto;
    padding: .85rem;
    border-top: 1px solid var(--oml-border);
    background: #fff;
}

@media (max-height: 520px) {
    .oml-chat-history,
    .oml-chat-messages {
        min-height: 140px;
    }
}

.oml-chat-composer > label {
    display: block;
    margin-bottom: .35rem;
    color: var(--oml-navy);
    font-size: .78rem;
    font-weight: 750;
}

.oml-chat-compose-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
}

    .oml-chat-compose-row input[type=text] {
        width: 100% !important;
        max-width: none !important;
    }

    .oml-chat-compose-row .oml-action-button {
        white-space: nowrap;
    }

.oml-chat-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 28px;
    margin-top: .55rem;
    color: var(--oml-muted);
    font-size: .78rem;
}

    .oml-chat-options > span:first-child {
        display: flex;
        align-items: center;
    }

    .oml-chat-options input[type=checkbox] {
        width: 17px;
        height: 17px;
        margin: 0 .4rem 0 0;
        accent-color: var(--oml-blue);
    }

    .oml-chat-options label {
        margin: 0;
    }

.oml-chat-error {
    color: #a51d25;
    text-align: right;
}

@media (max-width: 440px) {
    .oml-chat-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .oml-chat-status {
        grid-column: 2;
    }

    .oml-chat-compose-row {
        grid-template-columns: 1fr;
    }

        .oml-chat-compose-row .oml-action-button {
            width: 100%;
        }

    .oml-chat-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .oml-chat-error {
        text-align: left;
    }
}

/* Participant Paperwork - deliberately page-scoped */
.oml-paperwork-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.oml-paperwork-heading {
    align-items: center;
}

.oml-paperwork-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .oml-paperwork-toolbar p {
        max-width: 680px;
        margin: 0;
        color: var(--oml-muted);
        line-height: 1.5;
    }

.oml-paperwork-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .65rem;
}

.oml-paperwork-scroll {
    max-height: 66vh;
}

.oml-paperwork-grid {
    min-width: 1050px;
}

    .oml-paperwork-grid th {
        position: sticky;
        top: 0;
        z-index: 1;
        text-align: center;
    }

    .oml-paperwork-grid td {
        vertical-align: middle;
    }

        .oml-paperwork-grid td:nth-child(1),
        .oml-paperwork-grid td:nth-child(2) {
            width: 1%;
            white-space: nowrap;
        }

        .oml-paperwork-grid td:nth-child(3) {
            width: 190px;
            min-width: 190px;
            white-space: normal;
            font-weight: 650;
        }

    .oml-paperwork-grid select {
        width: 100% !important;
        min-width: 170px;
        min-height: 40px;
        padding: .45rem 2rem .45rem .6rem;
    }

    .oml-paperwork-grid input[type=checkbox] {
        width: 18px;
        height: 18px;
        accent-color: var(--oml-blue);
    }

    .oml-paperwork-grid .oml-grid-action-save {
        border-color: var(--oml-blue) !important;
        background: var(--oml-blue) !important;
        color: #fff !important;
    }

        .oml-paperwork-grid .oml-grid-action-save:hover {
            background: var(--oml-navy) !important;
        }

@media (max-width: 850px) {
    .oml-paperwork-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .oml-paperwork-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .oml-paperwork-page {
        padding: 1rem;
    }

    .oml-paperwork-actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

        .oml-paperwork-actions .oml-action-button {
            width: 100%;
        }
}

/* Long-running paperwork loading indicator */
.oml-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8, 31, 55, .58);
    backdrop-filter: blur(2px);
}

    .oml-loading-overlay.is-visible {
        display: flex;
    }

.oml-loading-dialog {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(100%, 430px);
    padding: 1.2rem 1.3rem;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 18px 50px rgba(8,31,55,.3);
    color: var(--oml-text);
}

    .oml-loading-dialog strong {
        display: block;
        margin-bottom: .2rem;
        color: var(--oml-navy);
        font-size: 1.05rem;
    }

    .oml-loading-dialog span:not(.oml-loading-spinner) {
        display: block;
        color: var(--oml-muted);
        line-height: 1.4;
    }

.oml-loading-spinner {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 4px solid #d4e2ed;
    border-top-color: var(--oml-blue);
    border-radius: 50%;
    animation: oml-spin .8s linear infinite;
}

@keyframes oml-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .oml-loading-spinner {
        animation-duration: 1.8s;
    }
}

/* Additional participant email addresses - deliberately page-scoped */
.oml-email-address-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

    .oml-email-address-page .oml-page-heading {
        align-items: center;
    }

.oml-page-description {
    display: block;
    max-width: 820px;
    margin-top: .45rem;
    color: var(--oml-muted);
    line-height: 1.55;
}

.oml-alert-success {
    border: 1px solid #9bcbb0;
    background: #edf9f2;
    color: #17613a !important;
}

.oml-email-workspace {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.15fr);
    gap: 1.25rem;
}

.oml-email-panel {
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid var(--oml-border);
    border-radius: .7rem;
    background: #f9fbfd;
}

    .oml-email-panel h2 {
        margin: 0;
        color: var(--oml-navy);
        font-size: 1.05rem;
    }

        .oml-email-panel h2 span {
            color: inherit;
            font: inherit;
        }

    .oml-email-panel > p {
        min-height: 2.7em;
        margin: .4rem 0 .8rem;
        color: var(--oml-muted);
        font-size: .88rem;
        line-height: 1.45;
    }

.oml-email-list {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 330px !important;
    padding: .4rem !important;
    border: 1px solid #afc0cf !important;
    border-radius: .5rem !important;
    background: #fff;
}

.oml-address-list {
    height: 220px !important;
}

.oml-email-list option {
    padding: .5rem .55rem;
    border-radius: .3rem;
}

.oml-email-entry {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--oml-border);
}

.oml-email-input {
    width: 100% !important;
    max-width: none !important;
}

.oml-email-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .75rem;
}

@media (max-width: 780px) {
    .oml-email-address-page .oml-page-heading .oml-action-button {
        width: 100%;
        margin-top: .85rem;
    }

    .oml-email-workspace {
        grid-template-columns: 1fr;
    }

    .oml-email-panel > p {
        min-height: 0;
    }

    .oml-email-list {
        height: 240px !important;
    }

    .oml-address-list {
        height: 180px !important;
    }
}

@media (max-width: 480px) {
    .oml-email-address-page {
        padding: 1rem;
    }

    .oml-email-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

        .oml-email-actions .oml-action-button {
            width: 100%;
        }
}

/* Send Email - deliberately page-scoped */
.oml-send-email-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.oml-recipient-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
    gap: 1.25rem;
}

.oml-send-email-page .oml-field > input[type=text],
.oml-send-email-page .oml-field > select {
    width: 100% !important;
    max-width: none;
}

.oml-email-options {
    display: grid;
    gap: .55rem;
    margin-top: .8rem;
}

    .oml-email-options .oml-check-item,
    .oml-send-actions .oml-check-item {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: .45rem .6rem;
        border: 1px solid var(--oml-border);
        border-radius: .45rem;
        background: #fff;
    }

        .oml-email-options .oml-check-item input,
        .oml-send-actions .oml-check-item input {
            flex: 0 0 auto;
            width: 18px;
            height: 18px;
            margin: 0 .5rem 0 0;
            accent-color: var(--oml-blue);
        }

        .oml-email-options .oml-check-item label,
        .oml-send-actions .oml-check-item label {
            margin: 0;
            color: var(--oml-text);
            font-weight: 650;
        }

.oml-inline-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .6rem;
}

    .oml-inline-entry input[type=text] {
        width: 100% !important;
        max-width: none;
    }

.oml-send-email-list {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 150px !important;
    margin-top: .65rem;
    padding: .4rem !important;
    border: 1px solid #afc0cf !important;
    border-radius: .5rem !important;
    background: #fff;
}

    .oml-send-email-list option {
        padding: .45rem .5rem;
        border-radius: .3rem;
    }

.oml-remove-email {
    margin-top: .65rem;
}

.oml-email-subject {
    margin-bottom: 1rem;
}

.oml-message-editor > label {
    margin-bottom: .55rem;
}

.oml-send-email-page .richText {
    width: 100%;
    max-width: none;
    border-color: #afc0cf;
    border-radius: .55rem;
    overflow: hidden;
    background: #fff;
}

.oml-send-email-page .richText-editor {
    min-height: 300px;
}

.oml-send-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1rem;
}

    .oml-send-actions .oml-check-item {
        border: 0;
        background: transparent;
    }

.oml-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

    .oml-section-heading h2 {
        margin-bottom: .25rem;
    }

    .oml-section-heading p {
        margin: 0 0 1rem;
        color: var(--oml-muted);
    }

.oml-saved-email-grid {
    min-width: 900px;
}

    .oml-saved-email-grid td:first-child {
        width: 1%;
        white-space: nowrap;
    }

@media (max-width: 780px) {
    .oml-recipient-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .oml-send-email-page {
        padding: 1rem;
    }

    .oml-inline-entry {
        grid-template-columns: 1fr;
    }

        .oml-inline-entry .oml-action-button {
            width: 100%;
        }

    .oml-send-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .oml-send-actions .oml-action-button {
            width: 100%;
        }
}

/* Mailing Labels - deliberately page-scoped */
.oml-mailing-labels-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

    .oml-mailing-labels-page .oml-page-heading {
        align-items: center;
    }

.oml-label-workspace {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
    gap: 1.25rem;
}

    .oml-label-workspace .oml-form-section {
        margin-top: 0;
    }

        .oml-label-workspace .oml-form-section > p {
            margin: -.45rem 0 1rem;
            color: var(--oml-muted);
            line-height: 1.5;
        }

.oml-label-lines {
    display: grid;
    gap: .65rem;
}

    .oml-label-lines input[type=text] {
        width: 100% !important;
        max-width: none !important;
    }

.oml-label-print-row {
    display: flex;
    align-items: flex-end;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--oml-border);
}

.oml-label-count-field {
    width: 130px;
}

.oml-label-count {
    width: 100px !important;
    min-width: 100px;
    max-width: 100px !important;
    text-align: center;
}

.oml-label-data-message {
    display: block;
    margin-bottom: .65rem;
    color: var(--oml-blue) !important;
    font-weight: 700;
}

.oml-year-options {
    margin-bottom: 1rem;
}

    .oml-year-options tbody,
    .oml-year-options tr {
        display: flex;
        flex-wrap: wrap;
        gap: .6rem;
    }

    .oml-year-options td {
        padding: 0 !important;
    }

    .oml-year-options input {
        width: 18px;
        height: 18px;
        margin: 0 .4rem 0 0;
        accent-color: var(--oml-blue);
    }

    .oml-year-options label {
        color: var(--oml-text);
        font-weight: 650;
    }

.oml-label-selection {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(230px, .85fr);
    align-items: start;
    gap: 1rem;
}

.oml-preconfigured-list {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 190px !important;
    padding: .4rem !important;
    border: 1px solid #afc0cf !important;
    border-radius: .5rem !important;
    background: #fff;
}

    .oml-preconfigured-list option {
        padding: .45rem .5rem;
        border-radius: .3rem;
    }

.oml-label-preview h3 {
    margin: 0 0 .35rem;
    color: var(--oml-navy);
    font-size: .84rem;
}

.oml-label-paper {
    min-height: 150px;
    padding: 1rem 1.1rem;
    border: 1px solid #aeb9c4;
    border-radius: .35rem;
    background: #fff;
    box-shadow: 0 3px 10px rgba(18,52,91,.08);
    font: .88rem/1.45 Arial, sans-serif;
}

    .oml-label-paper span {
        display: block;
        min-height: 1.45em;
        color: #1a1f24;
    }

.oml-print-preconfigured {
    margin-top: 1rem;
}

@media (max-width: 1050px) {
    .oml-label-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .oml-mailing-labels-page {
        padding: 1rem;
    }

    .oml-label-selection {
        grid-template-columns: 1fr;
    }

    .oml-label-print-row {
        align-items: stretch;
        flex-direction: column;
    }

        .oml-label-print-row .oml-action-button,
        .oml-print-preconfigured {
            width: 100%;
        }
}

/* Send Text - deliberately page-scoped */
.oml-send-text-page {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.oml-text-summary-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.6fr) minmax(180px, .7fr) minmax(180px, .7fr);
    gap: 1rem;
}

.oml-text-audience > select {
    width: 100% !important;
    max-width: none;
}

.oml-text-audience .oml-check-item {
    display: flex;
    align-items: center;
    margin-top: .7rem;
    color: var(--oml-text);
    font-weight: 650;
}

    .oml-text-audience .oml-check-item input {
        width: 18px;
        height: 18px;
        margin: 0 .5rem 0 0;
        accent-color: var(--oml-blue);
    }

    .oml-text-audience .oml-check-item label {
        margin: 0;
    }

.oml-text-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 108px;
    padding: .9rem 1rem;
    border: 1px solid #bed0df;
    border-radius: .6rem;
    background: #eef5fa;
}

.oml-metric-label {
    color: var(--oml-muted);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.oml-metric-value {
    display: block;
    margin: .2rem 0;
    color: var(--oml-navy);
    font-size: 1.45rem;
    font-weight: 800;
}

.oml-add-funds {
    align-self: flex-start;
    font-weight: 700;
}

.oml-text-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.oml-character-count,
.oml-recipient-count {
    color: var(--oml-muted);
    font-size: .84rem;
    font-weight: 650;
}

.oml-text-message {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: 220px;
    resize: vertical;
}

.oml-recipient-heading {
    align-items: center;
    margin-bottom: 1rem;
}

    .oml-recipient-heading h2 {
        margin-bottom: .25rem;
    }

.oml-selection-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .6rem;
}

.oml-text-recipient-scroll {
    max-height: 440px;
}

.oml-text-recipient-grid {
    min-width: 760px;
}

    .oml-text-recipient-grid th {
        position: sticky;
        top: 0;
        z-index: 1;
        text-align: left;
    }

        .oml-text-recipient-grid td:first-child,
        .oml-text-recipient-grid th:first-child {
            width: 1%;
            text-align: center;
            white-space: nowrap;
        }

    .oml-text-recipient-grid input[type=checkbox] {
        width: 18px;
        height: 18px;
        accent-color: var(--oml-blue);
    }

.oml-text-submit-row {
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .oml-text-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .oml-text-audience {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .oml-send-text-page {
        padding: 1rem;
    }

    .oml-text-summary-grid {
        grid-template-columns: 1fr;
    }

    .oml-text-audience {
        grid-column: auto;
    }

    .oml-text-section-heading,
    .oml-recipient-heading {
        flex-direction: column;
    }

    .oml-selection-actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

        .oml-selection-actions .oml-action-button,
        .oml-text-submit-row .oml-action-button {
            width: 100%;
        }
}