* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #222;
}

button,
input {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 25px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 42px;
    margin: 0;
}

header p {
    font-size: 18px;
    color: #666;
}


/* HOME */

.division-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.division-button {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: white;
    color: #222;
    text-decoration: none;

    border: 3px solid #ddd;
    border-radius: 16px;
}

.division-button:hover {
    border-color: #222;
}

.division-name {
    font-size: 42px;
    font-weight: 800;
}

.division-progress {
    margin-top: 8px;
    color: #666;
    font-weight: bold;
}

.admin-area {
    text-align: center;
    margin-top: 30px;
}

.admin-button,
.primary-button {
    display: inline-block;
    padding: 16px 30px;

    background: #333;
    color: white;

    border: 0;
    border-radius: 10px;

    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}


/* NAVIGATION */

.top-bar {
    margin-bottom: 20px;
}

.back-button {
    display: inline-block;

    padding: 12px 18px;

    background: white;
    color: #222;

    border: 2px solid #ddd;
    border-radius: 10px;

    text-decoration: none;
    font-weight: bold;
}
/* =========================================================
   DIVISION TEAM GROUPS
   ========================================================= */

.division-team-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 22px 2px 9px;
    padding: 0 2px 8px;

    border-bottom: 3px solid #414042;
}

.division-team-heading:first-of-type {
    margin-top: 8px;
}

.division-team-heading-name {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: #414042;
}

.division-team-heading-count {
    font-size: 12px;
    font-weight: 700;
    color: #777;
}


/* Assigned jersey number on player card */

.player-assigned-number {
    flex: 0 0 auto;

    min-width: 42px;

    font-size: 17px;
    font-weight: 900;
    text-align: center;

    color: #414042;
}

.player-assigned-number.missing {
    font-size: 11px;
    color: #b36b00;
}


/* Keep some separation between team grids */

.division-team-heading + .player-grid {
    margin-top: 0;
}


/* =========================================================
   DIVISION TEAM GROUPS - PHONE
   ========================================================= */

@media (max-width: 700px) {

    .division-team-heading {
        margin-top: 18px;
        margin-bottom: 7px;
        padding-bottom: 6px;
    }

    .division-team-heading-name {
        font-size: 15px;
    }

    .division-team-heading-count {
        font-size: 11px;
    }

    .player-assigned-number {
        min-width: 34px;
        font-size: 15px;
    }

    .player-assigned-number.missing {
        font-size: 10px;
    }
}

/* PLAYER LIST */

.player-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.player-button {
    min-height: 70px;

    display: flex;
    align-items: center;

    padding: 15px;

    background: white;
    color: #222;

    border: 2px solid #ddd;
    border-radius: 12px;

    text-decoration: none;
}

.player-button:hover {
    border-color: #222;
}

.player-status {
    width: 35px;
    font-size: 24px;
    font-weight: bold;
}

.player-name {
    flex: 1;
    font-size: 20px;
    font-weight: bold;
}

.player-sizing {
    color: #666;
    font-weight: bold;
}

.player-complete {
    background: #e8f5e9;
    border-color: #8bbd91;
}


/* SIZING */

.sizing-container {
    max-width: 950px;
}

.player-heading {
    text-align: center;
    margin-bottom: 20px;
}

.player-heading h1 {
    margin: 5px 0;
    font-size: 38px;
}

.division-label {
    font-size: 18px;
    font-weight: bold;
    color: #666;
}

.verify-box {
    min-height: 60px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 15px 20px;

    background: white;

    border: 2px solid #ddd;
    border-radius: 12px;

    font-size: 18px;
    font-weight: bold;
}

.verify-box input {
    width: 26px;
    height: 26px;
}

.sizing-section {
    margin-top: 25px;
}

.sizing-section h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #555;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.sock-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.selection-button {
    min-height: 62px;

    background: white;

    border: 3px solid #ddd;
    border-radius: 10px;

    font-size: 20px;
    font-weight: bold;

    cursor: pointer;
}

.selection-button.selected {
    background: #333;
    border-color: #333;
    color: white;
}


/* NUMBER CHOICES */

.number-choice-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    margin-bottom: 15px;
}

.number-choice {
    min-height: 80px;

    background: white;

    border: 3px solid #ddd;
    border-radius: 12px;

    cursor: pointer;
}

.number-choice small {
    display: block;
    font-weight: bold;
    color: #666;
}

.number-choice strong {
    display: block;
    margin-top: 5px;

    font-size: 32px;
}

.number-choice.active {
    border-color: #222;
}


/* NUMBER GRID */

.number-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 6px;
}

.number-button {
    min-height: 48px;

    background: white;

    border: 2px solid #ddd;
    border-radius: 8px;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;
}

.number-button:hover {
    border-color: #222;
}

.number-button.number-selected {
    background: #333;
    color: white;
    border-color: #333;
}


/* SAVE */

.save-button {
    width: 100%;
    min-height: 75px;

    margin-top: 30px;

    border: 0;
    border-radius: 14px;

    background: #222;
    color: white;

    font-size: 22px;
    font-weight: bold;

    cursor: pointer;
}


/* ADMIN */

.admin-card {
    background: white;

    border: 2px solid #ddd;
    border-radius: 16px;

    padding: 25px;
    margin-bottom: 25px;
}

.admin-card input {
    padding: 12px;

    border: 2px solid #ccc;
    border-radius: 8px;

    font-size: 17px;
}

.number-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.number-form input[type="number"] {
    width: 120px;
}

.excluded-list {
    margin-top: 20px;
}

.excluded-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 5px;

    border-top: 1px solid #ddd;
}

.excluded-item strong {
    font-size: 22px;
    margin-right: 15px;
}

.excluded-item form {
    margin: 0;
}

.delete-button {
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.warning-text {
    color: #a33;
    font-weight: bold;
}


/* TABLET */

@media (max-width: 750px) {

    .container {
        padding: 15px;
    }

    .division-grid,
    .player-grid {
        grid-template-columns: 1fr;
    }

    .size-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sock-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .number-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .player-heading h1 {
        font-size: 30px;
    }
}
/* SIZE ROWS */

.size-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.size-row {
    display: grid;
    grid-template-columns: 90px repeat(6, 1fr);
    gap: 8px;
    align-items: center;
}

.size-type {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    text-align: center;
}

.size-row .selection-button {
    width: 100%;
}
/* SAVE OPTIONS */

.save-options {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-top: 30px;
}

.save-options .save-button {
    margin-top: 0;
}

.save-roster-button {
    background: #666;
}

@media (max-width: 650px) {

    .save-options {
        grid-template-columns: 1fr;
    }

}
.reset-area {
    text-align: center;
    margin-top: 15px;
}

.reset-button {
    padding: 10px 20px;
    border: 0;
    background: transparent;
    color: #a33;
    font-weight: bold;
    cursor: pointer;
}
.player-partial {
    background: #fff4cc;
    border-color: #d8b84a;
}
.notes-input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 17px;
}

.notes-input:focus {
    outline: none;
    border-color: #555;
}
/* ADD PLAYER */

.add-player-section {
    margin-bottom: 20px;
}

.add-player-button {
    width: 100%;
    min-height: 50px;
    background: white;
    border: 2px dashed #aaa;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.add-player-button:hover {
    border-color: #333;
}

.add-player-form {
    margin-top: 10px;
    padding: 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
}

.add-player-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.add-player-fields input {
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 17px;
}

.add-player-save {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #333;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 650px) {

    .add-player-fields {
        grid-template-columns: 1fr;
    }

}
/* JERSEY LAST NAME */

.jersey-name-section {
    margin-top: 10px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
}

.jersey-name-label {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

.jersey-name-input {
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.jersey-name-help {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
}
/* -----------------------------
   LOGIN
----------------------------- */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 16px;
    text-align: center;
}

.login-card h1 {
    margin: 0;
    font-size: 42px;
}

.login-card h2 {
    margin: 5px 0 10px;
    font-size: 24px;
}

.login-card p {
    color: #666;
    margin-bottom: 25px;
}

.login-input {
    width: 100%;
    min-height: 55px;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 20px;
    text-align: center;
}

.login-input:focus {
    outline: none;
    border-color: #333;
}

.login-button {
    width: 100%;
    min-height: 55px;
    margin-top: 15px;
    border: 0;
    border-radius: 10px;
    background: #333;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.login-error {
    margin-bottom: 15px;
    padding: 10px;
    background: #ffe5e5;
    border: 1px solid #cc7777;
    border-radius: 8px;
    color: #900;
    font-weight: bold;
}
.login-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 18px;
}
.home-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}
/* =========================================================
   COMPACT DIVISION HEADER
   ========================================================= */

.division-header {
    min-height: 78px;
    margin-bottom: 10px;

    display: grid;
    grid-template-columns: auto 80px 1fr auto;
    align-items: center;
    gap: 18px;
}


/* LEFT BUTTONS */

.division-header-buttons {
    position: static;

    display: flex;
    align-items: center;
    gap: 10px;
}

.division-header-buttons .back-button {
    position: static;
    white-space: nowrap;

    min-height: 55px;

    display: flex;
    align-items: center;

    padding: 0 18px;
}


/* ADD PLAYER BUTTON */

.header-add-player {
    min-height: 55px;
    padding: 0 18px;

    background: white;

    border: 2px solid #ddd;
    border-radius: 10px;

    font-size: 16px;
    font-weight: bold;

    white-space: nowrap;
    cursor: pointer;
}

.header-add-player:hover {
    border-color: #333;
}


/* NCMHA LOGO */

.division-ncmha-logo {
    position: static;

    width: 72px;
    height: 72px;

    object-fit: contain;

    justify-self: center;
}


/* DIVISION TITLE */

.division-title {
    text-align: center;
}

.division-title h1 {
    margin: 0;

    font-size: 40px;
    line-height: 1;
}

.division-title p {
    margin: 7px 0 0;

    font-size: 17px;
    color: #666;
}


/* TEAM LOGOS */

.division-team-logos {
    position: static;

    min-width: 150px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;
}

.division-blast-logo {
    width: 115px;
    max-height: 72px;

    object-fit: contain;
}

.division-flyers-logo {
    width: 125px;
    max-height: 72px;

    object-fit: contain;
}


/* ADD PLAYER FORM */

.header-add-player-form {
    margin: 0 0 10px;
}


/* =========================================================
   IPAD / TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .division-header {
        min-height: 68px;

        grid-template-columns: auto 62px 1fr auto;

        gap: 10px;
    }

    .division-header-buttons {
        gap: 6px;
    }

    .division-header-buttons .back-button {
        min-height: 48px;

        padding: 0 12px;

        font-size: 14px;
    }

    .header-add-player {
        min-height: 48px;

        padding: 0 12px;

        font-size: 14px;
    }

    .division-ncmha-logo {
        width: 58px;
        height: 58px;
    }

    .division-title h1 {
        font-size: 32px;
    }

    .division-title p {
        margin-top: 4px;

        font-size: 14px;
    }

    .division-team-logos {
        min-width: 100px;

        gap: 5px;
    }

    .division-blast-logo {
        width: 85px;
        max-height: 58px;
    }

    .division-flyers-logo {
        width: 90px;
        max-height: 58px;
    }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 650px) {

    .division-header {
        grid-template-columns: 1fr auto;

        min-height: auto;

        gap: 8px;

        margin-bottom: 10px;
    }

    .division-header-buttons {
        grid-column: 1 / -1;

        justify-content: center;

        order: 1;
    }

    .division-ncmha-logo {
        display: none;
    }

    .division-title {
        grid-column: 1;

        text-align: left;

        order: 2;
    }

    .division-title h1 {
        font-size: 28px;
    }

    .division-team-logos {
        grid-column: 2;

        min-width: 0;

        order: 2;
    }

    .division-blast-logo {
        width: 75px;
    }

    .division-flyers-logo {
        width: 75px;
    }
}
/* =========================================================
   COMPACT SIZING SCREEN
   ========================================================= */

.player-name-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 14px;
}


/* SPELLING */

.compact-verify {
    margin: 0;
    min-height: 64px;
    padding: 10px 16px;
}


/* JERSEY LAST NAME */

.jersey-name-inline {
    min-height: 64px;

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;

    padding: 8px 14px;

    background: white;

    border: 2px solid #ddd;
    border-radius: 12px;
}

.jersey-name-inline label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    white-space: nowrap;
}

.jersey-name-inline .jersey-name-input {
    min-height: 44px;
    margin: 0;

    font-size: 18px;
}


/* AUTO SCROLL LANDING POSITION */

.auto-scroll-section {
    scroll-margin-top: 12px;
}


/* TIGHTER SIZING SECTIONS */

.sizing-container .sizing-section {
    margin-top: 16px;
}

.sizing-container .sizing-section h2 {
    margin-bottom: 10px;
}


/* TABLET / PHONE */

@media (max-width: 700px) {

    .player-name-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jersey-name-inline {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
/* RETIRED JERSEY NUMBERS */

.number-button.number-retired {
    position: relative;

    background: #e5e5e5;
    color: #999;

    border-color: #bbb;

    cursor: not-allowed;
    opacity: 0.75;
}

.number-button.number-retired:hover {
    background: #e5e5e5;
    border-color: #bbb;
}

.retired-mark {
    position: absolute;
    top: 2px;
    right: 5px;

    font-size: 13px;
    font-weight: bold;
    color: #c62828;
}
/* =========================================================
   TEAM ASSIGNMENT
   ========================================================= */

.header-assign-teams {
    min-height: 55px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #414042;
    color: white;

    border: 2px solid #414042;
    border-radius: 10px;

    text-decoration: none;

    font-size: 16px;
    font-weight: bold;

    white-space: nowrap;
}


/* TEAM PAGE HEADER */

.team-page-header {
    min-height: 80px;
    margin-bottom: 15px;

    display: grid;

    grid-template-columns:
        auto
        80px
        1fr
        auto;

    align-items: center;

    gap: 18px;
}


.team-header-logo {
    width: 70px;
    height: 70px;

    object-fit: contain;
}


.team-page-title {
    text-align: center;
}


.team-page-title h1 {
    margin: 0;

    font-size: 34px;
}


.team-page-title p {
    margin: 5px 0 0;

    color: #666;

    font-weight: bold;
}


.team-header-programs {
    display: flex;
    align-items: center;

    gap: 10px;
}


.team-blast-logo {
    width: 110px;
    max-height: 70px;

    object-fit: contain;
}


.team-flyers-logo {
    width: 120px;
    max-height: 70px;

    object-fit: contain;
}


/* PLAYER ROW */

.team-assignment-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.team-player-row {
    min-height: 64px;

    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        auto;

    align-items: center;

    gap: 15px;

    padding: 8px 12px;

    background: white;

    border: 2px solid #ddd;
    border-radius: 10px;
}


.team-player-row.team-unassigned {
    background: #fff4cc;
    border-color: #d8b84a;
}


.team-player-row.team-assigned {
    background: #e8f5e9;
    border-color: #8bbd91;
}


.team-player-name {
    font-size: 18px;
    font-weight: bold;
}


/* TEAM BUTTONS */

.team-options {
    display: flex;

    gap: 8px;
}


.team-option {
    min-height: 44px;

    padding: 0 16px;

    background: white;
    color: #333;

    border: 2px solid #ccc;
    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;
}


.team-option.selected {
    background: #414042;
    color: white;

    border-color: #414042;
}


.team-unassign-button {
    color: #777;
}


/* TABLET */

@media (max-width: 1000px) {

    .header-assign-teams {
        min-height: 48px;

        padding: 0 12px;

        font-size: 14px;
    }

    .team-page-header {
        grid-template-columns:
            auto
            60px
            1fr
            auto;

        gap: 10px;
    }

    .team-header-logo {
        width: 55px;
        height: 55px;
    }

    .team-page-title h1 {
        font-size: 27px;
    }

    .team-blast-logo {
        width: 85px;
    }

    .team-flyers-logo {
        width: 90px;
    }

    .team-player-row {
        grid-template-columns:
            minmax(170px, 1fr)
            auto;
    }

    .team-option {
        padding: 0 10px;

        font-size: 13px;
    }
}


/* PHONE */

@media (max-width: 700px) {

    .team-page-header {
        grid-template-columns:
            1fr
            auto;
    }

    .team-header-logo {
        display: none;
    }

    .team-page-title {
        grid-column: 1 / -1;
    }

    .team-header-programs {
        display: none;
    }

    .team-player-row {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .team-options {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);
    }

    .team-option {
        width: 100%;
    }
}
/* =========================================================
   TEAM / PRIORITY ASSIGNMENT LAYOUT
   ========================================================= */

.team-player-row {
    grid-template-columns:
        minmax(190px, 0.8fr)
        minmax(350px, 1.5fr)
        minmax(390px, 1.5fr);
}


.team-assignment-section,
.priority-assignment-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.assignment-label {
    font-size: 11px;
    font-weight: bold;
    color: #777;

    letter-spacing: 0.5px;
}


.priority-options {
    display: flex;
    gap: 6px;
}


.priority-option {
    min-height: 44px;

    padding: 0 13px;

    background: white;
    color: #333;

    border: 2px solid #ccc;
    border-radius: 8px;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;
}


.priority-option.selected {
    background: #414042;
    color: white;

    border-color: #414042;
}


.team-option:disabled,
.priority-option:disabled {
    cursor: wait;
}


/* TABLET */

@media (max-width: 1150px) {

    .team-player-row {
        grid-template-columns:
            minmax(160px, 0.7fr)
            1fr
            1fr;
    }

    .team-options,
    .priority-options {
        flex-wrap: wrap;
    }

    .team-option,
    .priority-option {
        min-height: 40px;

        padding: 0 9px;

        font-size: 12px;
    }

}


/* SMALL TABLET / PHONE */

/* =========================================================
   TEAM ASSIGNMENT - PHONE
   ========================================================= */

@media (max-width: 700px) {

    .team-container {
        padding-left: 8px;
        padding-right: 8px;
    }


    /* Compact header */

    .team-page-header {
        gap: 8px;
        margin-bottom: 10px;
    }


    .team-header-logo,
    .team-header-programs {
        display: none;
    }


    .team-page-title h1 {
        font-size: 20px;
        margin: 0;
    }


    .team-page-title p {
        font-size: 12px;
        margin: 2px 0 0;
    }


    .team-page-header .back-button {
        font-size: 12px;
        padding: 7px 9px;
    }


    /* Much smaller player cards */

    .team-assignment-list {
        gap: 7px;
    }


    .team-player-row {
        display: block;

        padding: 9px 10px;

        border-radius: 8px;
    }


    .team-player-name {
        margin-bottom: 7px;

        font-size: 16px;
        font-weight: bold;
    }


    /* Put TEAM and PRIORITY close together */

    .team-assignment-section,
    .priority-assignment-section {
        gap: 3px;
        margin: 0;
    }


    .priority-assignment-section {
        margin-top: 7px;
    }


    .assignment-label {
        font-size: 9px;
        line-height: 1;
        margin-bottom: 2px;
    }


    /* Team buttons stay on one compact row */

    .team-options {
        display: flex;
        flex-wrap: nowrap;

        gap: 4px;
    }


    .team-option {
        flex: 1;

        width: auto;
        min-width: 0;
        min-height: 36px;

        padding: 3px 5px;

        font-size: 11px;
        line-height: 1.1;
    }


    /* Unassigned doesn't need equal prominence */

    .team-unassign-button {
        flex: 0 0 auto;

        padding-left: 7px;
        padding-right: 7px;

        font-size: 9px;
    }


    /* Priority buttons */

    .priority-options {
        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 4px;
    }


    .priority-option {
        width: 100%;
        min-height: 36px;

        padding: 3px 4px;

        font-size: 10px;
        line-height: 1.1;
    }

}
/* =========================================================
   NUMBER ASSIGNMENT
   ========================================================= */

.header-assign-numbers {
    min-height: 55px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    color: #414042;

    border: 2px solid #414042;
    border-radius: 10px;

    text-decoration: none;

    font-size: 16px;
    font-weight: bold;

    white-space: nowrap;
}


.number-page-header {
    display: grid;
    grid-template-columns: auto 1fr auto;

    align-items: center;

    gap: 20px;

    margin-bottom: 18px;
}


.number-page-title {
    text-align: center;
}


.number-page-title h1 {
    margin: 0;

    font-size: 34px;
}


.number-page-title p {
    margin: 5px 0 0;

    color: #666;

    font-weight: bold;
}


.auto-assign-button {
    min-height: 55px;

    padding: 0 20px;

    background: #414042;
    color: white;

    border: 0;
    border-radius: 10px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}


.number-team-section {
    margin-bottom: 25px;
}


.number-team-section h2 {
    margin: 0 0 8px;

    font-size: 24px;
}


.number-table {
    background: white;

    border: 1px solid #ccc;
    border-radius: 10px;

    overflow: hidden;
}


.number-table-header,
.number-player-row {
    display: grid;

    grid-template-columns:
        minmax(200px, 1.5fr)
        minmax(125px, 1fr)
        minmax(145px, 1fr)
        65px
        65px
        65px
        100px;

    align-items: center;
}


.number-table-header {
    min-height: 42px;

    background: #414042;
    color: white;

    font-size: 12px;
    font-weight: bold;
}


.number-table-header > div,
.number-player-row > div {
    padding: 8px 10px;
}


.number-player-row {
    min-height: 56px;

    border-top: 1px solid #ddd;
}


.number-player-name {
    font-size: 16px;
    font-weight: bold;
}


.choice-number {
    text-align: center;

    font-size: 18px;
    font-weight: bold;
}


.submission-time {
    font-size: 13px;
}


.priority-display {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 6px;

    font-size: 12px;
    font-weight: bold;

    background: #eee;
}


.priority-board {
    background: #d9ead3;
}


.priority-coach {
    background: #fff2cc;
}


.assigned-number-select {
    width: 75px;
    min-height: 40px;

    padding: 4px;

    font-size: 17px;
    font-weight: bold;

    text-align: center;
}


.unassigned-number-section {
    padding: 15px;

    background: #fff4cc;

    border: 2px solid #d8b84a;
    border-radius: 10px;
}


.unassigned-number-player {
    display: flex;

    justify-content: space-between;

    padding: 8px 0;

    border-bottom: 1px solid #ddd;
}


@media (max-width: 950px) {

    .number-page-header {
        grid-template-columns: 1fr;
    }

    .number-page-title {
        order: -1;
    }

    .number-table {
        overflow-x: auto;
    }

    .number-table-header,
    .number-player-row {
        min-width: 850px;
    }

}
/* =========================================================
   ASSIGNED NUMBER CHOICE INDICATOR
   ========================================================= */

.assigned-number-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}


.assigned-choice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;
    min-height: 26px;

    padding: 0 6px;

    border-radius: 6px;

    font-size: 11px;
    font-weight: bold;
}


.assigned-choice-badge:empty {
    display: none;
}


/* Got first choice */

.choice-first {
    background: #d9ead3;
    color: #274e13;
}


/* Fell to second choice */

.choice-second {
    background: #fff2cc;
    color: #7f6000;
}


/* Fell to third choice */

.choice-third {
    background: #fce5cd;
    color: #783f04;
}


/* Manually assigned something outside their choices */

.choice-manual {
    background: #d9d2e9;
    color: #351c75;
}
/* =========================================================
   NUMBER ASSIGNMENT SMALL SCREEN WARNING
   ========================================================= */

.number-screen-warning {
    display: none;
}


@media (max-width: 700px) {

    .number-screen-warning {
        display: block;

        margin: 0 0 18px;
        padding: 14px 16px;

        background: #fff2cc;

        border: 2px solid #d6b656;
        border-radius: 10px;

        line-height: 1.4;
    }


    .number-screen-warning strong {
        display: block;

        margin-bottom: 4px;

        font-size: 15px;
    }


    .number-screen-warning span {
        display: block;

        font-size: 13px;
        color: #555;
    }

}
.team-name-mobile {
    display: none;
}


@media (max-width: 700px) {

    .team-name-full {
        display: none;
    }

    .team-name-mobile {
        display: inline;
    }

}
/* =========================================================
   PROTECTED ROSTER IMPORT
   ========================================================= */

.destructive-admin-card {
    border: 2px solid #c62828;
}


.roster-danger-warning {
    margin: 12px 0 18px;
    padding: 14px 16px;

    background: #ffebee;

    border-left: 5px solid #c62828;
    border-radius: 6px;
}


.roster-danger-warning strong {
    color: #b71c1c;
}


.roster-danger-warning p {
    margin: 7px 0 0;
}


.protected-import-form {
    display: flex;
    flex-direction: column;

    gap: 10px;

    max-width: 500px;
}


.admin-field-label {
    margin-top: 6px;

    font-weight: bold;
}


.protected-import-form input {
    min-height: 42px;

    padding: 7px 10px;

    box-sizing: border-box;
}


.danger-import-button {
    min-height: 48px;

    margin-top: 8px;
    padding: 0 18px;

    background: #c62828;
    color: white;

    border: 0;
    border-radius: 8px;

    font-weight: bold;

    cursor: pointer;
}
/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-body {
    margin: 0;
    background: #f4f6f8;
    color: #25282b;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
}


/* SIDEBAR */

.admin-sidebar {
    width: 245px;
    min-width: 245px;
    min-height: 100vh;
    background: #25292d;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.admin-brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.admin-brand-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .04em;
}

.admin-brand-subtitle {
    margin-top: 2px;
    font-size: 11px;
    color: #aeb5ba;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.admin-nav {
    padding: 18px 12px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 13px;
    margin-bottom: 4px;
    color: #d7dbde;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: #343a3f;
    color: #ffffff;
}

.admin-nav-link.active {
    box-shadow: inset 3px 0 0 #fbb034;
}

.admin-nav-icon {
    width: 22px;
    text-align: center;
    font-size: 17px;
}

.admin-nav-divider {
    height: 1px;
    background: rgba(255,255,255,.10);
    margin: 16px 8px;
}

.admin-sidebar-bottom {
    margin-top: auto;
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.admin-back-link {
    color: #d7dbde;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}


/* MAIN */

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 34px 40px 70px;
    max-width: 1500px;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
}

.admin-page-header h1 {
    margin: 3px 0 7px;
    font-size: 32px;
    line-height: 1.1;
}

.admin-page-header p {
    margin: 0;
    color: #6b7277;
    font-size: 15px;
}

.admin-eyebrow {
    color: #939598;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.admin-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fbb034;
    color: #25282b;
    text-decoration: none;
    font-weight: 900;
    padding: 13px 20px;
    border-radius: 8px;
    white-space: nowrap;
}

.admin-export-button:hover {
    filter: brightness(.97);
}


/* SECTIONS */

.admin-section {
    margin-bottom: 52px;
    scroll-margin-top: 20px;
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 16px;
}

.admin-section-heading h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.admin-section-heading p {
    margin: 0;
    color: #7a8085;
    font-size: 14px;
}


/* STATS */

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e2e5e7;
    border-radius: 11px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.035);
}

.admin-stat-label {
    color: #737a7f;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-stat-number {
    margin-top: 6px;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    color: #303438;
}

.admin-stat-detail {
    margin-top: 9px;
    color: #858b8f;
    font-size: 13px;
}


/* PANELS */

.admin-panel {
    background: #ffffff;
    border: 1px solid #e2e5e7;
    border-radius: 11px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.035);
    margin-bottom: 18px;
}

.admin-panel-header {
    margin-bottom: 16px;
}

.admin-panel-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.admin-panel-header p {
    margin: 0;
    color: #7a8085;
    font-size: 13px;
}


/* DIVISION PROGRESS */

.admin-division-table {
    width: 100%;
}

.admin-division-row {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr 1fr 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-top: 1px solid #edf0f1;
    font-size: 14px;
}

.admin-division-head {
    border-top: none;
    color: #8a9094;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-division-name {
    font-weight: 900;
    font-size: 16px;
}

.admin-status-pill {
    display: inline-block;
    min-width: 62px;
    padding: 5px 8px;
    border-radius: 999px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.status-good {
    background: #dff2e5;
    color: #24703d;
}

.status-progress {
    background: #fff0c9;
    color: #835e00;
}


/* NUMBER CARDS */

.admin-number-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.admin-number-card {
    background: #ffffff;
    border: 1px solid #e2e5e7;
    border-radius: 11px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.035);
}

.admin-number-card-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
}

.admin-number-division {
    font-size: 23px;
    font-weight: 900;
}

.admin-number-subtitle {
    color: #81878c;
    font-size: 13px;
}

.admin-complete-badge {
    background: #dff2e5;
    color: #24703d;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.admin-number-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 17px 0;
}

.admin-number-stats div {
    background: #f5f6f7;
    border-radius: 7px;
    padding: 10px;
}

.admin-number-stats span {
    display: block;
    color: #7a8085;
    font-size: 11px;
    font-weight: 700;
}

.admin-number-stats strong {
    display: block;
    margin-top: 3px;
    font-size: 17px;
}

.admin-number-button {
    display: block;
    background: #414042;
    color: #ffffff;
    padding: 11px 12px;
    border-radius: 7px;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}

.admin-number-button:hover {
    background: #2e2d2f;
}


/* ORDER SUMMARY */

.admin-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.admin-size-list {
    border-top: 1px solid #edf0f1;
}

.admin-size-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 5px;
    border-bottom: 1px solid #edf0f1;
}

.admin-size-row span {
    font-weight: 700;
}

.admin-size-row strong {
    font-size: 16px;
}

.admin-empty {
    color: #858b8f;
    font-style: italic;
}

.admin-order-action {
    background: #414042;
    color: #ffffff;
    border-radius: 11px;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.admin-order-action h3 {
    margin: 0 0 4px;
}

.admin-order-action p {
    margin: 0;
    color: #d1d3d4;
    font-size: 13px;
}


/* EXISTING ADMIN FORMS INSIDE NEW SHELL */

.admin-main .number-form {
    max-width: 700px;
}

.admin-main .protected-import-form {
    max-width: 700px;
}

.destructive-admin-card {
    border-color: #e4b5b5;
}


/* TABLET / MOBILE */

@media (max-width: 1000px) {

    .admin-main {
        padding: 26px 22px 60px;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-number-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 700px) {

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        min-width: 0;
        min-height: 0;
        height: auto;
    }

    .admin-brand {
        padding: 12px 14px;
    }

    .admin-brand-logo {
        width: 38px;
        height: 38px;
    }

    .admin-nav {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding: 8px;
    }

    .admin-nav-link {
        flex: 0 0 auto;
        margin: 0;
        padding: 9px 11px;
    }

    .admin-nav-link.active {
        box-shadow: none;
        background: #41474c;
    }

    .admin-nav-icon {
        display: none;
    }

    .admin-nav-divider,
    .admin-sidebar-bottom {
        display: none;
    }

    .admin-main {
        padding: 18px 12px 45px;
    }

    .admin-page-header {
        align-items: flex-start;
    }

    .admin-page-header h1 {
        font-size: 25px;
    }

    .admin-page-header > .admin-export-button {
        display: none;
    }

    .admin-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .admin-stat-card {
        padding: 14px;
    }

    .admin-stat-number {
        font-size: 27px;
    }

    .admin-division-row {
        grid-template-columns: 1.1fr .65fr 1fr 1fr 1fr;
        gap: 5px;
        font-size: 12px;
    }

    .admin-number-grid {
        grid-template-columns: 1fr;
    }

    .admin-summary-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin-order-action {
        display: block;
    }

    .admin-order-action .admin-export-button {
        margin-top: 15px;
        width: 100%;
        box-sizing: border-box;
    }

}
/* =========================================================
   NUMBER ASSIGNMENT - CHOICE HIGHLIGHTING
   ========================================================= */

.choice-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 7px;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


/* Assigned player's 1st choice */

.choice-number.number-choice-used-first {
    background: #dff2e5;
    color: #24703d;
    font-weight: 900;
}


/* Assigned player's 2nd choice */

.choice-number.number-choice-used-second {
    background: #fff0c9;
    color: #835e00;
    font-weight: 900;
}


/* Assigned player's 3rd choice */

.choice-number.number-choice-used-third {
    background: #fce5cd;
    color: #9a4f00;
    font-weight: 900;
}


/* Number was manually assigned outside the player's choices */

.assigned-number-select.assigned-number-manual {
    background: #eee5f8;
    border: 2px solid #7952a3;
    color: #553477;
    font-weight: 900;
}
/* =========================================================
   BULK TEAM ASSIGNMENT
   ========================================================= */

.bulk-team-panel {
    background: #ffffff;
    border: 1px solid #dfe3e6;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 16px;
    box-shadow: 0 2px 7px rgba(0,0,0,.035);
}

.bulk-team-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bulk-team-heading strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
}

.bulk-team-heading span {
    display: block;
    margin-top: 2px;
    color: #7b8185;
    font-size: 12px;
}


/* MODE */

.bulk-team-mode {
    display: flex;
    gap: 8px;
    margin-bottom: 11px;
}

.bulk-mode-option {
    cursor: pointer;
}

.bulk-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bulk-mode-option span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #d5d9dc;
    border-radius: 7px;
    background: #f6f7f8;
    font-size: 12px;
    font-weight: 800;
}

.bulk-mode-option input:checked + span {
    background: #414042;
    border-color: #414042;
    color: #ffffff;
}


/* TEAM BUTTONS */

.bulk-team-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bulk-team-button {
    border: 0;
    border-radius: 7px;
    padding: 10px 14px;
    background: #fbb034;
    color: #25282b;
    cursor: pointer;
    font-weight: 900;
    font-size: 12px;
}

.bulk-team-button:hover {
    filter: brightness(.96);
}

.bulk-team-button:disabled {
    opacity: .55;
    cursor: wait;
}

.bulk-team-name-mobile {
    display: none;
}


/* PHONE */

@media (max-width: 700px) {

    .bulk-team-panel {
        padding: 10px;
        margin-bottom: 10px;
    }

    .bulk-team-heading span {
        display: none;
    }

    .bulk-team-mode {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .bulk-mode-option span {
        padding: 8px 5px;
        text-align: center;
        font-size: 11px;
    }

    .bulk-team-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .bulk-team-button {
        min-height: 38px;
        padding: 7px 5px;
    }

    .bulk-team-name-full {
        display: none;
    }

    .bulk-team-name-mobile {
        display: inline;
    }

}
/* =========================================================
   NCMHA UI POLISH
   HOME + DIVISION
   ========================================================= */

:root {
    --ncmha-orange: #fbb034;

    --ui-dark: #414042;
    --ui-text: #25282b;
    --ui-muted: #737a7f;

    --ui-page: #f4f6f8;
    --ui-card: #ffffff;
    --ui-border: #e2e5e7;

    --ui-green: #24703d;
    --ui-green-bg: #dff2e5;
    --ui-green-border: #a9d2b5;

    --ui-yellow: #835e00;
    --ui-yellow-bg: #fff0c9;
    --ui-yellow-border: #e3c66f;

    --ui-shadow:
        0 2px 8px rgba(0,0,0,.035);
}


/* =========================================================
   GLOBAL COSMETIC FOUNDATION
   ========================================================= */

body {
    background: var(--ui-page);
    color: var(--ui-text);
}

.back-button {
    background: #ffffff;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    color: var(--ui-dark);
    box-shadow: var(--ui-shadow);
    transition:
        border-color .15s ease,
        background .15s ease;
}

.back-button:hover {
    background: #fafafa;
    border-color: #b9bec2;
}


/* =========================================================
   HOME
   ========================================================= */

.home-container {
    max-width: 1150px;
    padding-top: 35px;
}

.home-header {
    margin-bottom: 28px;
}

.home-header .home-logo {
    width: 105px;
    height: 105px;
    margin-bottom: 10px;
}

.home-header h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.1;
    color: var(--ui-text);
}

.home-header p {
    margin: 7px 0 0;
    font-size: 15px;
    color: var(--ui-muted);
}


/* DIVISION CARDS */

.home-division-grid {
    gap: 14px;
}

.home-division-card {
    min-height: 0;

    display: block;

    padding: 20px 22px;

    background: var(--ui-card);

    border: 1px solid var(--ui-border);
    border-radius: 11px;

    box-shadow: var(--ui-shadow);

    text-align: left;

    transition:
        transform .12s ease,
        box-shadow .12s ease,
        border-color .12s ease;
}

.home-division-card:hover {
    border-color: #c8cdd0;

    box-shadow:
        0 5px 16px rgba(0,0,0,.07);

    transform: translateY(-1px);
}

.home-division-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-division-card .division-name {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    color: var(--ui-text);
}

.division-complete-badge {
    padding: 5px 9px;

    background: var(--ui-green-bg);
    color: var(--ui-green);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .03em;
}

.home-division-count {
    margin-top: 16px;

    display: flex;
    align-items: baseline;
    gap: 5px;

    color: var(--ui-muted);
    font-size: 13px;
}

.home-division-count strong {
    color: var(--ui-text);
    font-size: 21px;
}

.division-progress-track {
    width: 100%;
    height: 7px;

    margin-top: 10px;

    background: #e8ebed;

    border-radius: 999px;

    overflow: hidden;
}

.division-progress-fill {
    height: 100%;

    background: #c8cdd0;

    border-radius: 999px;

    transition: width .25s ease;
}

.division-progress-fill.progress-started {
    background: var(--ncmha-orange);
}

.division-progress-fill.progress-complete {
    background: #4d9a64;
}

.home-division-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 8px;

    color: #8a9094;

    font-size: 11px;
    font-weight: 700;
}

.division-open-text {
    opacity: 0;

    color: var(--ui-dark);

    transition: opacity .12s ease;
}

.home-division-card:hover .division-open-text {
    opacity: 1;
}


/* ADMIN ENTRY */

.admin-area {
    margin-top: 22px;
}

.home-admin-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 15px;

    background: #ffffff;
    color: var(--ui-dark);

    border: 1px solid var(--ui-border);
    border-radius: 8px;

    box-shadow: var(--ui-shadow);

    font-size: 13px;
    font-weight: 800;
}

.home-admin-button:hover {
    background: var(--ui-dark);
    color: #ffffff;
}

.home-admin-icon {
    font-size: 15px;
}

.home-admin-arrow {
    color: var(--ncmha-orange);
    font-size: 16px;
}


/* =========================================================
   DIVISION PAGE
   ========================================================= */

.division-page-container {
    padding-top: 20px;
}

.polished-division-header {
    min-height: 82px;

    margin-bottom: 14px;
    padding: 8px 12px;

    background: #ffffff;

    border: 1px solid var(--ui-border);
    border-radius: 11px;

    box-shadow: var(--ui-shadow);
}


/* HEADER BUTTONS */

.polished-division-header
.division-header-buttons .back-button,

.polished-division-header
.header-add-player {
    min-height: 44px;

    padding: 0 14px;

    border-radius: 7px;

    font-size: 13px;
}

.polished-division-header
.header-add-player {
    background: var(--ncmha-orange);

    border: 1px solid var(--ncmha-orange);

    color: var(--ui-text);
}

.polished-division-header
.header-add-player:hover {
    border-color: #e39a20;
    background: #f6a722;
}


/* TITLE */

.polished-division-header
.division-title h1 {
    font-size: 34px;
    font-weight: 900;
}

.polished-division-header
.division-title p {
    margin-top: 5px;

    color: var(--ui-muted);

    font-size: 13px;
}

.polished-division-header
.division-title p strong {
    color: var(--ui-text);
}


/* HEADER PROGRESS */

.division-header-progress {
    width: 150px;
    height: 5px;

    margin: 7px auto 0;

    background: #e8ebed;

    border-radius: 999px;

    overflow: hidden;
}

.division-header-progress-fill {
    height: 100%;

    background: var(--ncmha-orange);

    border-radius: 999px;
}

.division-header-progress-fill.complete {
    background: #4d9a64;
}


/* ADD PLAYER */

.polished-add-player {
    border: 1px solid var(--ui-border);
    border-radius: 9px;

    box-shadow: var(--ui-shadow);
}


/* =========================================================
   DIVISION STATUS BAR
   ========================================================= */

.division-status-bar {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 10px;
    padding: 0 4px;
}

.division-status-key {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-key-item {
    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--ui-muted);

    font-size: 11px;
    font-weight: 700;
}

.status-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #ffffff;
    border: 1px solid #cfd3d6;
}

.status-dot.complete {
    background: #65a877;
    border-color: #65a877;
}

.status-dot.partial {
    background: var(--ncmha-orange);
    border-color: var(--ncmha-orange);
}

.division-status-count {
    color: var(--ui-muted);
    font-size: 11px;
}

.division-status-count strong {
    color: var(--ui-text);
}


/* =========================================================
   PLAYER CARDS
   ========================================================= */

.polished-player-grid {
    gap: 9px;
}

.polished-player-grid .player-button {
    position: relative;

    min-height: 64px;

    padding: 12px 12px;

    background: #ffffff;

    border: 1px solid var(--ui-border);
    border-radius: 9px;

    box-shadow: var(--ui-shadow);

    transition:
        border-color .12s ease,
        transform .12s ease,
        box-shadow .12s ease;
}

.polished-player-grid .player-button:hover {
    border-color: #b9bec2;

    box-shadow:
        0 4px 12px rgba(0,0,0,.06);

    transform: translateY(-1px);
}

.polished-player-grid
.player-button.player-complete {
    background: var(--ui-green-bg);
    border-color: var(--ui-green-border);
}

.polished-player-grid
.player-button.player-partial {
    background: var(--ui-yellow-bg);
    border-color: var(--ui-yellow-border);
}

.polished-player-grid .player-status {
    width: 25px;

    color: var(--ui-green);

    font-size: 18px;
}

.polished-player-grid
.player-partial .player-status {
    color: var(--ui-yellow);
}

.polished-player-grid .player-name {
    font-size: 16px;
    font-weight: 800;
}

.polished-player-grid .player-sizing {
    margin-left: 7px;

    color: var(--ui-muted);

    font-size: 12px;
}

.player-open-arrow {
    margin-left: 8px;

    color: #a0a6aa;

    font-size: 22px;
    line-height: 1;
}


/* =========================================================
   HOME / DIVISION TABLET
   ========================================================= */

@media (max-width: 900px) {

    .home-container {
        padding-top: 20px;
    }

    .home-header .home-logo {
        width: 85px;
        height: 85px;
    }

    .home-header h1 {
        font-size: 30px;
    }

    .polished-player-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   HOME / DIVISION PHONE
   ========================================================= */

@media (max-width: 650px) {

    .home-container,
    .division-page-container {
        padding: 10px;
    }

    .home-header {
        margin-bottom: 18px;
    }

    .home-header .home-logo {
        width: 70px;
        height: 70px;
    }

    .home-header h1 {
        font-size: 27px;
    }

    .home-header p {
        font-size: 13px;
    }

    .home-division-grid {
        gap: 8px;
    }

    .home-division-card {
        padding: 15px 16px;
    }

    .home-division-card .division-name {
        font-size: 26px;
    }

    .home-division-count {
        margin-top: 11px;
    }

    .division-open-text {
        display: none;
    }


    /* Division header */

    .polished-division-header {
        padding: 9px;
    }

    .polished-division-header
    .division-header-buttons {
        justify-content: flex-start;
    }

    .polished-division-header
    .division-title h1 {
        font-size: 26px;
    }

    .division-header-progress {
        width: 120px;
        margin-left: 0;
    }


    /* Status */

    .division-status-bar {
        padding: 3px 2px;
    }

    .division-status-key {
        gap: 8px;
    }

    .status-key-item {
        font-size: 9px;
    }

    .division-status-count {
        display: none;
    }


    /* Players */

    .polished-player-grid {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .polished-player-grid .player-button {
        min-height: 56px;
        padding: 9px 10px;
    }

}
/* Compact Assign Teams button */

.polished-division-header .header-assign-teams {
    min-height: 44px;
    height: 44px;

    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 800;
    line-height: 1;

    white-space: nowrap;
}
/* =========================================================
   MASTER PLAYER LIST
   ========================================================= */

.master-player-info {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 20px;
    padding: 14px 18px;

    background: #fff8e7;
    border: 1px solid #f3d694;
    border-radius: 10px;

    font-size: 14px;
    color: #555;
}

.master-player-info strong {
    flex: 0 0 auto;
    color: #222;
    font-size: 14px;
}


/* TOOLBAR */

.master-player-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 14px;
}

.master-player-search-wrap {
    flex: 1;
}

.master-player-search,
.master-player-filter {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid #d8dde2;
    border-radius: 8px;

    background: white;

    font-size: 14px;
    font-family: inherit;

    outline: none;
}

.master-player-search:focus,
.master-player-filter:focus {
    border-color: #fbb034;
    box-shadow: 0 0 0 3px rgba(251, 176, 52, 0.13);
}

.master-player-filter-wrap {
    width: 160px;
}

.master-player-count {
    min-width: 105px;

    color: #777;
    font-size: 13px;
    text-align: right;
}

.master-player-count strong {
    color: #222;
}


/* TABLE PANEL */

.master-player-panel {
    background: white;

    border: 1px solid #e1e4e7;
    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.master-player-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.master-player-table {
    width: 100%;
    min-width: 1040px;

    border-collapse: collapse;
}

.master-player-table th {
    padding: 12px 10px;

    background: #f5f6f7;

    border-bottom: 1px solid #dfe3e6;

    color: #666;

    font-size: 11px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    white-space: nowrap;
}

.master-player-table td {
    padding: 7px 8px;

    border-bottom: 1px solid #eceeef;

    vertical-align: middle;
}

.master-player-row:last-child td {
    border-bottom: none;
}

.master-player-row:hover td {
    background: #fafbfc;
}


/* EDITABLE FIELDS */

.master-edit-field {
    width: 100%;
    min-width: 110px;
    height: 38px;

    padding: 0 9px;

    border: 1px solid transparent;
    border-radius: 6px;

    background: transparent;

    color: #222;

    font-family: inherit;
    font-size: 13px;
    font-weight: 650;

    outline: none;
}

.master-edit-field:hover {
    border-color: #d9dde1;
    background: white;
}

.master-edit-field:focus {
    border-color: #fbb034;
    background: white;

    box-shadow: 0 0 0 3px rgba(251, 176, 52, 0.12);
}

.master-edit-field:disabled {
    opacity: 0.6;
}

.master-division-select {
    min-width: 82px;

    cursor: pointer;
}


/* READ ONLY */

.master-readonly-cell,
.master-number-cell {
    color: #555;

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;
}

.master-number-cell {
    text-align: center;
}

.master-team-cell {
    min-width: 115px;

    font-size: 12px;
    font-weight: 700;
}

.master-team-value {
    display: inline-block;

    padding: 5px 8px;

    background: #edf1f3;
    border-radius: 5px;

    white-space: nowrap;
}

.master-empty-value {
    color: #a5abb0;
}


/* DELETE */

.master-actions-cell {
    width: 70px;
    text-align: right;
}

.master-delete-button {
    padding: 7px 9px;

    border: 1px solid #e3b2b2;
    border-radius: 6px;

    background: white;

    color: #a83232;

    font-family: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.master-delete-button:hover {
    background: #fff0f0;
    border-color: #c94c4c;
}

.master-delete-button:disabled {
    opacity: 0.5;
    cursor: wait;
}


/* SAVE MESSAGE */

.master-save-status {
    position: fixed;

    right: 24px;
    bottom: 24px;

    padding: 10px 16px;

    border-radius: 8px;

    color: white;

    font-size: 13px;
    font-weight: 800;

    opacity: 0;
    transform: translateY(8px);

    pointer-events: none;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease;

    z-index: 1000;
}

.master-save-status.show {
    opacity: 1;
    transform: translateY(0);
}

.master-save-status.saving {
    background: #555;
}

.master-save-status.saved {
    background: #2f7c4b;
}

.master-save-status.error {
    background: #a83232;
}


/* TABLET */

@media (max-width: 900px) {

    .master-player-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

}


/* PHONE */

@media (max-width: 700px) {

    .master-player-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .master-player-filter-wrap {
        width: 100%;
    }

    .master-player-count {
        width: 100%;
        text-align: left;
    }

}
/* =========================================================
   ROSTERGEAR POWERED BY FOOTER
   ========================================================= */

.rostergear-footer {
    margin: 32px auto 18px;
    padding: 14px 12px 0;

    border-top: 1px solid #e2e5e7;

    text-align: center;
    color: #8a9094;
}

.rostergear-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    font-size: 12px;
}

.rostergear-powered strong {
    color: #555b5f;
    font-weight: 800;
}

.rostergear-footer-logo {
    width: auto;
    height: 25px;
    object-fit: contain;
}

.rostergear-footer-tagline {
    margin-top: 3px;

    font-size: 10px;
    color: #a0a5a9;
}


/* PHONE */

@media (max-width: 700px) {

    .rostergear-footer {
        margin-top: 22px;
        padding-top: 10px;
    }

    .rostergear-footer-logo {
        height: 21px;
    }

    .rostergear-footer-tagline {
        display: none;
    }

}
/* =========================================================
   ADMIN MOBILE - ALWAYS VISIBLE BACK TO DIVISIONS
   ========================================================= */

@media (max-width: 700px) {

    /* Restore the bottom section that the original mobile
       admin CSS hides */
    .admin-sidebar-bottom {
        display: block;

        margin: 0;
        padding: 8px 10px 10px;

        border-top: 1px solid rgba(255,255,255,.10);
        background: #25292d;
    }

    .admin-back-link {
        width: 100%;
        min-height: 44px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 10px 14px;

        background: #fbb034;
        color: #25282b;

        border-radius: 7px;

        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
    }

}
/* =========================================================
   ADMIN PHONE LANDSCAPE - FIXED EXIT BUTTON
   ========================================================= */

@media (max-height: 550px) and (orientation: landscape) {

    .admin-sidebar-bottom {
        display: block;

        position: fixed;
        right: 12px;
        bottom: 12px;
        z-index: 9999;

        margin: 0;
        padding: 0;

        border: 0;
        background: transparent;
    }

    .admin-back-link {
        width: auto;
        min-height: 42px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0 16px;

        background: #fbb034;
        color: #25282b;

        border: 1px solid rgba(0,0,0,.12);
        border-radius: 8px;

        box-shadow: 0 3px 10px rgba(0,0,0,.22);

        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }
}
/* =========================================================
   DIVISION-AWARE GOALIE SIZES
   ========================================================= */

.goalie-size-area {
    width: 100%;
}

.goalie-main-row {
    align-items: stretch;
}


/* OTHER SIZES BUTTON */

.goalie-other-toggle {
    padding-left: 10px;
    padding-right: 10px;

    font-size: 12px;
    line-height: 1.15;
}


/* HIDDEN SIZE AREA */

.goalie-other-sizes {
    display: none;

    margin-left: 98px;
    margin-top: 8px;

    padding: 10px;

    background: #f7f8f9;

    border: 1px solid #dfe2e4;
    border-radius: 9px;
}


.goalie-other-sizes.goalie-other-open {
    display: block;
}


.goalie-other-label {
    margin-bottom: 7px;

    font-size: 10px;
    font-weight: 800;

    color: #777;

    letter-spacing: .5px;
}


.goalie-other-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 8px;
}


.goalie-other-grid .selection-button {
    width: 100%;
}


/* TABLET */

@media (max-width: 900px) {

    .goalie-other-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


/* PHONE */

@media (max-width: 650px) {

    .goalie-other-sizes {
        margin-left: 0;
    }

    .goalie-other-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .goalie-other-toggle {
        font-size: 10px;
    }

}
/* =========================================================
   ADMIN USERS
   ========================================================= */

.user-current-banner {
    margin-bottom: 22px;
    padding: 12px 16px;

    background: #fff;
    border: 1px solid #e2e5e7;
    border-radius: 8px;

    font-size: 13px;
    color: #555;
}

.user-current-banner strong {
    margin-left: 5px;
    color: #25282b;
}

.user-current-banner span {
    margin-left: 8px;
    color: #7a7f83;
}


/* ADD USER */

.user-add-form {
    display: grid;
    grid-template-columns:
        1fr
        1.4fr
        1fr
        .8fr
        auto;

    gap: 14px;
    align-items: end;
}

.user-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-form-field label {
    font-size: 11px;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.user-form-field input,
.user-form-field select {
    width: 100%;
    height: 42px;

    padding: 0 10px;

    border: 1px solid #d8dcdf;
    border-radius: 6px;

    background: #fff;

    font: inherit;
    font-size: 14px;
}

.user-form-action {
    display: flex;
    align-items: end;
}

.user-form-action .primary-button {
    height: 42px;
    white-space: nowrap;
}


/* USER TABLE */

.user-list-panel {
    padding: 0;
    overflow: hidden;
}

.user-table {
    display: grid;

    grid-template-columns:
        1.1fr
        1.7fr
        1fr
        .75fr
        1.15fr
        1.7fr;

    gap: 12px;

    align-items: center;
}

.user-table-header {
    padding: 11px 16px;

    background: #414042;

    color: #fff;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .35px;
}

.user-table-row {
    min-height: 64px;

    padding: 10px 16px;

    border-bottom: 1px solid #eceeef;

    font-size: 13px;
}

.user-table-row:last-child {
    border-bottom: 0;
}

.user-name-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}

.user-you-badge {
    display: inline-flex;
    align-items: center;

    padding: 2px 6px;

    background: #fbb034;

    border-radius: 4px;

    color: #25282b;

    font-size: 9px;
    font-weight: 900;
}

.user-email-cell {
    overflow-wrap: anywhere;
    color: #555;
}

.user-last-login {
    color: #666;
    font-size: 12px;
}


/* ROLE */

.user-role-select {
    width: 100%;
    max-width: 150px;

    height: 36px;

    padding: 0 8px;

    background: #fff;

    border: 1px solid #d8dcdf;
    border-radius: 5px;

    font-size: 12px;
    font-weight: 700;
}

.user-role-select:disabled {
    background: #f1f2f3;
    color: #777;
}


/* STATUS */

.user-status-active,
.user-status-inactive {
    display: inline-flex;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;
}

.user-status-active {
    background: #dff2e5;
    color: #24703d;
}

.user-status-inactive {
    background: #eceeef;
    color: #777;
}


/* ACTIONS */

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.user-password-button,
.user-deactivate-button,
.user-activate-button {
    min-height: 34px;

    padding: 0 9px;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
}

.user-password-button {
    background: #fff;

    border: 1px solid #cfd3d6;

    color: #414042;
}

.user-deactivate-button {
    background: #fff;

    border: 1px solid #d7a6a6;

    color: #8a2828;
}

.user-activate-button {
    background: #dff2e5;

    border: 1px solid #a9d2b5;

    color: #24703d;
}


/* TOAST */

.user-message {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 10000;

    padding: 12px 18px;

    background: #24703d;
    color: #fff;

    border-radius: 7px;

    box-shadow:
        0 4px 15px rgba(0,0,0,.2);

    font-size: 13px;
    font-weight: 800;
}

.user-message-error {
    background: #9a2929;
}


/* TABLET */

@media (max-width: 1050px) {

    .user-add-form {
        grid-template-columns:
            1fr
            1fr;
    }

    .user-form-action {
        grid-column: 1 / -1;
    }

    .user-table {
        grid-template-columns:
            1fr
            1.4fr
            .9fr
            .7fr
            1.4fr;
    }

    .user-table-header > div:nth-child(5),
    .user-table-row > div:nth-child(5) {
        display: none;
    }

}


/* PHONE */

@media (max-width: 700px) {

    .user-add-form {
        grid-template-columns: 1fr;
    }

    .user-form-action {
        grid-column: auto;
    }

    .user-form-action .primary-button {
        width: 100%;
    }

    .user-list-panel {
        background: transparent;
        border: 0;
        overflow: visible;
    }

    .user-table-header {
        display: none;
    }

    .user-table-row {
        display: block;

        margin-bottom: 10px;
        padding: 14px;

        background: #fff;

        border: 1px solid #e2e5e7;
        border-radius: 8px;
    }

    .user-table-row > div {
        margin-bottom: 10px;
    }

    .user-table-row > div:last-child {
        margin-bottom: 0;
    }

    .user-email-cell {
        font-size: 12px;
    }

    .user-role-select {
        max-width: none;
    }

    .user-actions button {
        flex: 1;
    }

}
/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        linear-gradient(
            135deg,
            #303033 0%,
            #414042 55%,
            #29292b 100%
        );

    font-family: Arial, Helvetica, sans-serif;
}


/* CARD */

.login-card {
    width: 100%;
    max-width: 390px;

    padding: 34px 34px 28px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, .28);

    box-sizing: border-box;
}


/* LOGO */

.login-logo-area {
    display: flex;
    justify-content: center;

    margin-bottom: 18px;
}

.login-logo {
    display: block;

    max-width: 125px;
    max-height: 105px;

    width: auto;
    height: auto;
}


/* HEADING */

.login-card h1 {
    margin: 0;

    color: #414042;

    font-size: 26px;
    font-weight: 800;
    text-align: center;
}

.login-subtitle {
    margin: 7px 0 25px;

    color: #777;

    font-size: 14px;
    text-align: center;
}


/* FORM */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.login-form label {
    margin-top: 9px;

    color: #414042;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .45px;
}

.login-form input {
    display: block;

    width: 100%;
    height: 46px;

    padding: 0 13px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #d2d5d8;
    border-radius: 6px;

    color: #25282b;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.login-form input:focus {
    border-color: #fbb034;

    box-shadow:
        0 0 0 3px rgba(251, 176, 52, .18);
}


/* SIGN IN BUTTON */

.login-button {
    width: 100%;
    height: 48px;

    margin-top: 18px;

    border: 0;
    border-radius: 6px;

    background: #fbb034;

    color: #29292b;

    font-size: 13px;
    font-weight: 900;

    letter-spacing: .5px;

    cursor: pointer;

    transition:
        transform .1s ease,
        background .15s ease;
}

.login-button:hover {
    background: #f5a719;
}

.login-button:active {
    transform: translateY(1px);
}


/* ERROR */

.login-error {
    margin-bottom: 12px;
    padding: 10px 12px;

    background: #fbe8e8;

    border: 1px solid #e5bcbc;
    border-radius: 6px;

    color: #8c2929;

    font-size: 13px;
    font-weight: 700;

    text-align: center;
}


/* ROSTERGEAR */

.login-powered {
    margin-top: 25px;
    padding-top: 18px;

    border-top: 1px solid #eceeef;

    color: #888;

    font-size: 11px;
    text-align: center;
}

.login-powered strong {
    color: #414042;
}


/* PHONE */

@media (max-width: 500px) {

    .login-page {
        padding: 16px;
        align-items: center;
    }

    .login-card {
        padding: 28px 22px 24px;
    }

    .login-logo {
        max-width: 110px;
    }

    .login-card h1 {
        font-size: 23px;
    }

}
/* =========================================================
   ACTIVITY LOG
   ========================================================= */

.activity-filter-panel {
    margin-bottom: 24px;
}

.activity-filters {
    display: grid;
    grid-template-columns:
        1fr
        1.1fr
        2fr
        auto;

    gap: 14px;
    align-items: end;
}

.activity-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-filter-field label {
    font-size: 11px;
    font-weight: 800;
    color: #555;

    text-transform: uppercase;
    letter-spacing: .35px;
}

.activity-filter-field select,
.activity-filter-field input {
    width: 100%;
    height: 42px;

    padding: 0 10px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #d8dcdf;
    border-radius: 6px;

    font: inherit;
    font-size: 13px;
}

.activity-filter-buttons {
    display: flex;
    gap: 7px;
}

.activity-filter-buttons .primary-button,
.activity-clear-button {
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    box-sizing: border-box;
}

.activity-clear-button {
    background: #fff;

    border: 1px solid #d2d5d8;
    border-radius: 6px;

    color: #555;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;
}

.activity-count {
    color: #777;
    font-size: 12px;
    font-weight: 700;
}


/* LOG */

.activity-panel {
    padding: 0;
    overflow: hidden;
}

.activity-row {
    display: grid;

    grid-template-columns:
        150px
        180px
        1fr;

    gap: 18px;

    align-items: start;

    padding: 14px 18px;

    border-bottom: 1px solid #eceeef;
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-time {
    color: #777;
    font-size: 11px;
}

.activity-user {
    display: flex;
    flex-direction: column;

    color: #414042;
    font-size: 12px;
}

.activity-user span {
    margin-top: 2px;

    color: #888;
    font-size: 10px;

    overflow-wrap: anywhere;
}

.activity-action {
    margin-bottom: 4px;

    color: #414042;

    font-size: 10px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: .35px;
}

.activity-description {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

.activity-empty {
    padding: 45px 20px;

    text-align: center;

    color: #777;
}

.activity-empty strong {
    color: #414042;
}

.activity-empty p {
    margin: 6px 0 0;
}


/* TABLET */

@media (max-width: 950px) {

    .activity-filters {
        grid-template-columns:
            1fr
            1fr;
    }

    .activity-filter-buttons {
        grid-column: 1 / -1;
    }

    .activity-row {
        grid-template-columns:
            125px
            150px
            1fr;
    }

}


/* PHONE */

@media (max-width: 700px) {

    .activity-filters {
        grid-template-columns: 1fr;
    }

    .activity-filter-buttons {
        grid-column: auto;
    }

    .activity-filter-buttons > * {
        flex: 1;
    }

    .activity-panel {
        background: transparent;
        border: 0;
        overflow: visible;
    }

    .activity-row {
        display: block;

        margin-bottom: 9px;
        padding: 14px;

        background: #fff;

        border: 1px solid #e2e5e7;
        border-radius: 8px;
    }

    .activity-time {
        margin-bottom: 5px;
    }

    .activity-user {
        margin-bottom: 10px;
    }

}
/* =========================================================
   JERSEY NUMBER - FIRST CHOICE CONFLICTS
   ========================================================= */

.number-team-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.number-team-heading h2 {
    margin: 0;
}

.number-conflict-summary {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 7px 12px;

    background: #fff3cd;
    border: 1px solid #e3b341;
    border-radius: 7px;

    color: #664d03;

    font-size: 13px;
}

.number-conflict-summary strong {
    font-weight: 800;
}

.number-conflict-summary span {
    font-weight: 700;
}

.number-conflict-clear {
    padding: 7px 12px;

    background: #edf7ee;
    border: 1px solid #b8d9bc;
    border-radius: 7px;

    color: #315c36;

    font-size: 13px;
    font-weight: 700;
}


/* Actual conflicting first-choice number */

.number-first-choice-conflict {
    position: relative;

    background: #fff3cd !important;
    color: #7a4b00 !important;

    box-shadow:
        inset 0 0 0 2px #e3b341;

    border-radius: 5px;
}


/* Small warning marker */

.number-conflict-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    margin-left: 5px;

    border-radius: 50%;

    background: #c97a00;
    color: #ffffff;

    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}


/* Smaller screens */

@media (max-width: 700px) {

    .number-team-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .number-conflict-summary,
    .number-conflict-clear {
        width: 100%;
        box-sizing: border-box;
    }

}
/* =========================================================
   NUMBER ASSIGNMENT - COMPACT PHONE LAYOUT
   ========================================================= */

.priority-short {
    display: none;
}


@media (max-width: 700px) {

    /* -----------------------------------------
       PAGE
       ----------------------------------------- */

    .number-assignment-container {
        padding: 8px;
    }


    /* The old "use a laptop" warning is obsolete */

    .number-screen-warning {
        display: none !important;
    }


    /* -----------------------------------------
       HEADER
       ----------------------------------------- */

    .number-page-header {
        display: grid;

        grid-template-columns:
            auto
            1fr;

        gap: 7px;

        margin-bottom: 12px;
    }


    .number-page-title {
        grid-column: 1 / -1;
        grid-row: 1;

        text-align: center;
    }


    .number-page-title h1 {
        font-size: 21px;
        line-height: 1.1;
    }


    .number-page-title p {
        margin-top: 3px;

        font-size: 10px;
    }


    .number-page-header .back-button {
        grid-column: 1;
        grid-row: 2;

        padding: 8px 11px;

        font-size: 12px;
    }


    .number-page-header form {
        grid-column: 2;
        grid-row: 2;

        margin: 0;

        text-align: right;
    }


    .auto-assign-button {
        min-height: 36px;

        padding: 0 12px;

        font-size: 11px;
    }


    /* -----------------------------------------
       TEAM
       ----------------------------------------- */

    .number-team-section {
        margin-bottom: 18px;
    }


    .number-team-heading {
        display: flex;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 8px;

        margin-bottom: 6px;
    }


    .number-team-heading h2 {
        margin: 0;

        font-size: 17px;
        line-height: 1.1;
    }


    .number-conflict-summary,
    .number-conflict-clear {
        width: auto;

        padding: 5px 7px;

        font-size: 10px;

        white-space: nowrap;
    }


    .number-conflict-summary {
        gap: 5px;
    }


    /* -----------------------------------------
       TABLE BECOMES COMPACT TWO-ROW PLAYERS
       ----------------------------------------- */

    .number-table {
        overflow: visible;

        border-radius: 7px;
    }


    /*
        Phone header:

        blank/name        priority
        blank      1st  2nd  3rd  assigned
    */

    .number-table-header {
        min-width: 0;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            34px
            42px
            42px
            42px
            68px;

        min-height: 27px;

        padding: 0;

        font-size: 9px;
    }


    /*
        Hide desktop-only PRIORITY and SUBMITTED
        headings.

        We create the compact priority position
        with the player itself.
    */

    .number-table-header > div:nth-child(2),
    .number-table-header > div:nth-child(3) {
        display: none;
    }


    .number-table-header > div {
        padding: 6px 2px;

        text-align: center;
    }


    .number-table-header > div:first-child {
        text-align: left;

        padding-left: 8px;
    }


    /*
        Reposition the remaining headings.

        Original:
        1 Player
        2 Priority
        3 Submitted
        4 1st
        5 2nd
        6 3rd
        7 Assigned
    */

    .number-table-header > div:nth-child(1) {
        grid-column: 1 / 3;
    }

    .number-table-header > div:nth-child(4) {
        grid-column: 3;
    }

    .number-table-header > div:nth-child(5) {
        grid-column: 4;
    }

    .number-table-header > div:nth-child(6) {
        grid-column: 5;
    }

    .number-table-header > div:nth-child(7) {
        grid-column: 6;
    }


    /* -----------------------------------------
       PLAYER - EXACTLY TWO ROWS
       ----------------------------------------- */

    .number-player-row {
        min-width: 0;
        min-height: 64px;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            34px
            42px
            42px
            42px
            68px;

        grid-template-rows:
            30px
            34px;

        align-items: center;

        padding: 0;

        border-top: 1px solid #ddd;
    }


    .number-player-row > div {
        padding: 2px 3px;
    }


    /* ROW 1 - NAME */

    .number-player-name {
        grid-column: 1 / 6;
        grid-row: 1;

        overflow: hidden;

        padding-left: 8px !important;

        font-size: 14px;
        line-height: 1;

        white-space: nowrap;
        text-overflow: ellipsis;
    }


    /* ROW 1 - PRIORITY */

    .number-player-row > div:nth-child(2) {
        grid-column: 6;
        grid-row: 1;

        justify-self: center;

        padding: 0;
    }


    .priority-full {
        display: none;
    }


    .priority-short {
        display: inline;
    }


    .priority-display {
        min-width: 25px;

        padding: 4px 5px;

        text-align: center;

        border-radius: 5px;

        font-size: 11px;
        line-height: 1;
    }


    /* -----------------------------------------
       SUBMISSION TIME

       Normally hidden.

       Only shown when it actually breaks a
       same-priority first-choice conflict.
       ----------------------------------------- */

    .submission-time {
        display: none;
    }


    .submission-time.submission-time-needed {
        display: block;

        grid-column: 1;
        grid-row: 2;

        align-self: center;

        padding-left: 8px !important;

        color: #8a5a00;

        font-size: 9px;
        font-weight: 800;

        white-space: nowrap;
    }


    /*
        If timestamp isn't needed, column 1 simply
        remains empty on row 2. That gives the
        number choices plenty of breathing room.
    */


    /* -----------------------------------------
       CHOICES
       ----------------------------------------- */

    .number-player-row > .choice-number:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
    }


    .number-player-row > .choice-number:nth-child(5) {
        grid-column: 4;
        grid-row: 2;
    }


    .number-player-row > .choice-number:nth-child(6) {
        grid-column: 5;
        grid-row: 2;
    }


    .choice-number {
        min-width: 0;

        padding: 5px 1px !important;

        font-size: 16px;
        line-height: 1;

        text-align: center;
    }


    /* Conflict indicator needs to stay compact */

    .number-first-choice-conflict {
        border-radius: 4px;
    }


    .number-conflict-marker {
        width: 13px;
        height: 13px;

        margin-left: 2px;

        font-size: 8px;

        vertical-align: 2px;
    }


    /* -----------------------------------------
       ASSIGNED
       ----------------------------------------- */

    .assigned-number-cell {
        grid-column: 6;
        grid-row: 2;

        display: flex;

        justify-content: center;

        padding: 1px !important;
    }


    .assigned-number-select {
        width: 60px;
        min-height: 30px;
        height: 30px;

        padding: 1px 2px;

        border: 1px solid #aaa;
        border-radius: 5px;

        font-size: 15px;
        font-weight: 800;
    }


    /* -----------------------------------------
       UNASSIGNED PLAYERS
       ----------------------------------------- */

    .unassigned-number-section {
        padding: 10px;
    }


    .unassigned-number-section h2 {
        font-size: 17px;
    }


    .unassigned-number-section p {
        margin: 5px 0 10px;

        font-size: 11px;
    }


    .unassigned-number-player {
        gap: 8px;

        padding: 7px 0;

        font-size: 11px;
    }

}
/* =========================================================
   TEAM EXPORT
   ========================================================= */

.division-team-heading-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.division-team-export {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 0 12px;

    border: 1px solid #d78d13;
    border-radius: 6px;

    background: #fbb034;
    color: #202020;

    font-size: 11px;
    font-weight: 900;
    text-decoration: none;

    cursor: pointer;
}

.division-team-export:hover {
    background: #eaa128;
}


@media (max-width: 700px) {

    .division-team-heading-actions {
        gap: 7px;
    }

    .division-team-export {
        min-height: 28px;
        padding: 0 9px;
        font-size: 10px;
    }

}
.header-export-division {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;
    min-height: 42px;

    border: 1px solid #d7dadd;
    border-radius: 7px;

    background: #ffffff;
    color: #414042;

    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.header-export-division:hover {
    background: #f4f6f8;
}
/* =========================================================
   DIVISION EXPORT / SHARE ACTION
   ========================================================= */

.division-roster-actions {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0 8px;
}

.division-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;
    padding: 0 15px;

    border: 1px solid #d78d13;
    border-radius: 7px;

    background: #fbb034;
    color: #202020;

    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}


/* =========================================================
   EXPORT / SHARE PAGE
   ========================================================= */

.export-share-page {
    width: min(760px, calc(100% - 28px));
    margin: 0 auto;
    padding: 18px 0 35px;
}

.export-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.export-share-logo {
    width: auto;
    height: 48px;
}

.export-share-title {
    margin-bottom: 18px;
}

.export-share-kicker {
    margin-bottom: 4px;

    color: #939598;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.export-share-title h1 {
    margin: 0;

    color: #414042;

    font-size: 32px;
    line-height: 1;
}

.export-share-title h2 {
    margin: 5px 0 0;

    color: #414042;

    font-size: 19px;
    font-weight: 800;
}

.export-share-count {
    margin-top: 8px;

    color: #6e7478;

    font-size: 13px;
}

.export-share-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;

    margin-bottom: 10px;
}

.export-share-primary {
    min-height: 46px;

    border: 0;
    border-radius: 8px;

    background: #fbb034;
    color: #202020;

    font: inherit;
    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
}

.export-share-message {
    margin: 8px 0 14px;
    padding: 9px 12px;

    border-radius: 7px;

    background: #dff2e5;
    color: #24703d;

    font-size: 12px;
    font-weight: 800;
}


/* TEAM GROUP */

.export-roster-group {
    margin-top: 20px;
}

.export-roster-team {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 2px 7px;

    border-bottom: 3px solid #414042;

    color: #414042;

    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.export-roster-team small {
    color: #777;

    font-size: 11px;
    font-weight: 700;
    text-transform: none;
}


/* PLAYER ROW */

.export-roster-list {
    background: #ffffff;
}

.export-roster-player {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 8px;

    min-height: 47px;

    border-bottom: 1px solid #e3e5e6;
}

.export-roster-number {
    color: #414042;

    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

.export-roster-number.missing {
    color: #b36b00;

    font-size: 10px;
}

.export-roster-name {
    min-width: 0;

    color: #414042;

    font-size: 14px;
}

.export-roster-name strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.export-roster-size {
    padding-right: 6px;

    color: #414042;

    font-size: 14px;
    font-weight: 900;
    text-align: right;
}


/* EXCEL */

.export-excel-section {
    margin-top: 30px;
    padding: 18px;

    border: 1px solid #dfe3e6;
    border-radius: 9px;

    background: #f7f8f9;

    text-align: center;
}

.export-excel-heading {
    color: #414042;

    font-size: 14px;
    font-weight: 900;
}

.export-excel-description {
    max-width: 430px;
    margin: 5px auto 14px;

    color: #73787c;

    font-size: 12px;
    line-height: 1.45;
}

.export-excel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 16px;

    border: 1px solid #c7cbce;
    border-radius: 7px;

    background: #ffffff;
    color: #414042;

    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}


/* =========================================================
   EXPORT / SHARE - PHONE
   ========================================================= */

@media (max-width: 700px) {

    .division-roster-actions {
        justify-content: stretch;
    }

    .division-export-button {
        width: 100%;
        box-sizing: border-box;
    }


    .export-share-page {
        width: calc(100% - 20px);
        padding-top: 10px;
    }

    .export-share-header {
        margin-bottom: 15px;
    }

    .export-share-logo {
        height: 40px;
    }

    .export-share-title h1 {
        font-size: 28px;
    }

    .export-share-title h2 {
        font-size: 17px;
    }

    .export-share-actions {
        position: sticky;
        top: 5px;
        z-index: 20;

        padding: 5px 0;

        background: #ffffff;
    }

    .export-share-primary {
        min-height: 44px;
    }

    .export-roster-group {
        margin-top: 17px;
    }

    .export-roster-player {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        min-height: 44px;
    }

    .export-roster-number {
        font-size: 15px;
    }

    .export-roster-name {
        font-size: 13px;
    }

    .export-roster-size {
        font-size: 13px;
    }

}
