/*
 * File Name: style.css
 * Version: A.135
 * Date Modified: 2026-11-08
 * Copyright: PHPfootball © 2026 WWWpages.com - All rights reserved
 *
 * Description: Shared PHPfootball 8.0 classic green theme
 * with compact beveled navigation and administration panels.
 */

:root {
    --green-dark: #254719;
    --green-primary: #31591f;
    --green-medium: #527b35;
    --green-light: #baf4b3;
    --green-pale: #e9f5df;
    --ivory: #faf9eb;
    --white: #ffffff;
    --gold: #e0a83e;
    --text: #243320;
    --muted: #64725e;
    --border: #b7cbaa;
    --danger: #a72e27;
    --shadow: 0 4px 12px rgba(25, 52, 19, .10);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--ivory);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

a {
    color: #174d86;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.button {
    display: inline-block;
    padding: 10px 18px;
    background: var(--green-primary);
    color: var(--white);
    border: 1px solid var(--green-dark);
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background .15s ease;
}

button:hover,
.button:hover {
    background: var(--green-medium);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--green-dark);
    outline-offset: 2px;
}

/* Site masthead */

.site-header {
    background: #183b17;
    background-image: none;
    color: var(--white);
    padding: 5px 18px;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}
}

.site-header-inner {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-title {
    margin: 0;
    color: var(--white);
    font-size: 1.9rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1.3;
    text-shadow: -1px -1px 0 #9acb8d, 2px 2px 0 #0b290e, 3px 4px 2px #061608, 4px 5px 5px rgba(0, 0, 0, .75);
}

.site-tagline {
    color: #d9eed3;
    font-size: .8rem;
}

.site-user {
    color: #e0eed7;
    font-size: .85rem;
    text-align: center;
    line-height: 1.15;
    align-self: flex-start;
    margin-top: 0;
}

.site-user-welcome {
    font-size: 11px;
    font-weight: 400;
    color: #d9eed3;
    text-align: center;
}

.site-user-name {
    display: block;
    color: #d5ffd1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .45);
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: color .15s ease, text-shadow .15s ease;
}

.site-user-name:visited {
    color: #d5ffd1;
}

.site-user-name:hover,
.site-user-name:focus-visible {
    color: #f0ffeb;
    text-decoration: none;
    text-shadow:
        0 0 4px rgba(205, 255, 194, .85),
        0 0 9px rgba(155, 255, 145, .55);
}

.site-user-name:focus-visible {
    outline: 2px solid #e0f6d6;
    outline-offset: 3px;
    border-radius: 2px;
}


@media (prefers-reduced-motion: reduce) {
    .site-user-name {
        transition: none;
    }
}

/* News ticker */

.news-ticker {
    background: #183b17;
    background-image: none;
    color: #e6f1da;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.35;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.news-ticker strong {
    color: var(--gold);
}

/* Compact beveled navigation */

.site-nav {
    position: relative;
    z-index: 10;
    background: linear-gradient(
        to bottom,
        #d5ffd0 0%,
        #baf4b3 100%
    );
    border-bottom: 2px solid var(--green-dark);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin: 0;
    padding: 3px 0;
    list-style: none;
}

.nav-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-item > form {
    margin: 0;
    padding: 0;
}

.nav-link,
.nav-item > form > .nav-link {
    display: block;
    width: auto;
    min-height: 27px;
    margin: 0;
    padding: 3px 13px;
    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #e9f4e6 45%,
        #c6ddc0 100%
    );
    color: #17351b;
    border: 1px solid #7b9877;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #70896b;
    border-bottom-color: #52694e;
    border-radius: 3px;
    box-shadow:
        0 2px 1px rgba(25, 52, 19, .25),
        inset 0 1px 0 rgba(255, 255, 255, .75);
    font-size: .9rem;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    transition: background .12s ease;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.nav-item > form > .nav-link:hover,
.nav-item > form > .nav-link:focus-visible {
    background: linear-gradient(
        to bottom,
        #3f8545 0%,
        #23612b 55%,
        #17471f 100%
    );
    color: var(--white);
    border-top-color: #75aa77;
    border-left-color: #75aa77;
    border-right-color: #153b19;
    border-bottom-color: #123015;
    text-decoration: none;
}

.nav-link:active,
.nav-item > form > .nav-link:active {
    background: #204b24;
    box-shadow: inset 1px 2px 3px rgba(0, 0, 0, .3);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    margin: 0;
    padding: 4px;
    background: var(--white);
    border: 1px solid #9bb59a;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .2);
    list-style: none;
    z-index: 20;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
    display: block;
}

/* Tap-controlled submenus on narrow screens. */
@media (max-width: 800px) {
    .site-nav.tap-submenus .nav-item {
        position: static;
    }

    .site-nav.tap-submenus .nav-dropdown {
        left: 10px;
        right: 10px;
        min-width: 0;
        max-height: 65vh;
        overflow-y: auto;
    }

    .site-nav.tap-submenus .nav-item:hover > .nav-dropdown,
    .site-nav.tap-submenus .nav-item:focus-within > .nav-dropdown {
        display: none;
    }

    .site-nav.tap-submenus .nav-item.is-open > .nav-dropdown {
        display: block;
    }

    .site-nav.tap-submenus .nav-dropdown a {
        white-space: normal;
    }
}

.nav-dropdown a {
    display: block;
    padding: 7px 11px;
    color: #17351b;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
    background: #c9f3cb;
    color: #123e19;
    text-decoration: none;
}

/* Content layout */

.page-container {
    width: min(1400px, calc(100% - 64px));
    margin: 24px auto;
}

.panel,
.intro,
.grid > section {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--green-primary);
    border-radius: 6px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.panel,
.intro {
    margin-bottom: 20px;
}

h1,
h2,
h3 {
    color: var(--green-dark);
    line-height: 1.25;
}

.panel h2,
.grid h2 {
    margin-top: 0;
}

.intro h2 {
    margin-top: 4px;
    margin-bottom: 12px;
}

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

.grid > section {
    padding: 0 18px 14px;
    overflow: visible;
}

.grid h2 {
    margin: 0 -18px 10px;
    padding: 12px 18px;
    background: linear-gradient(
        to bottom,
        #f1faf0,
        #e2f0e1
    );
    border-radius: 3px 3px 0 0;
    font-size: 1.2rem;
}

.grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.grid li {
    padding: 9px 0;
    border-bottom: 1px solid #e1e9db;
}

.grid li:last-child {
    border-bottom: 0;
}

.status {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    margin-top: 3px;
}

/* Forms */

label {
    display: block;
    margin: 14px 0;
    font-weight: 600;
}

input:not([type="hidden"]),
select,
textarea {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    color: var(--text);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
}

.danger {
    background: var(--danger);
    border-color: #82221d;
}

.error {
    color: var(--danger);
    font-weight: bold;
}

.message {
    color: #22642c;
    font-weight: bold;
}

/* Tables */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--green-pale);
    color: var(--green-dark);
}

tbody tr:hover {
    background: #f4f9ef;
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.actions form {
    margin: 0;
}

/* Compact team administration form */
.team-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 18px;
}

.team-form-grid label {
    margin: 6px 0;
}

.team-form-grid input:not([type="hidden"]),
.team-form-grid select {
    max-width: none;
}

.team-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

#team-form {
    scroll-margin-top: 16px;
}

@media (max-width: 800px) {
    .team-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .team-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Compact, alternating-green NFL team listing */
.teams-table th,
.teams-table td {
    padding: 4px 8px;
}

.teams-table tbody tr:nth-child(odd) {
    background: #edf6e8;
}

.teams-table tbody tr:nth-child(even) {
    background: #ffffff;
}

.teams-table tbody tr:hover {
    background: #dcefd4;
}

.team-identity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.team-logo {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.teams-table .actions {
    gap: 8px;
    white-space: nowrap;
}

.teams-table .actions button {
    padding: 3px 8px;
    font-size: 12px;
    line-height: 1.3;
}

/* Compact team-entry fields */
.team-form-grid input[name="abbreviation"] {
    width: 9ch;
    max-width: 100%;
}

.team-form-grid input[name="city"],
.team-form-grid input[name="name"] {
    width: 24ch;
    max-width: 100%;
}

.team-form-grid input::placeholder {
    color: #899786;
    opacity: 1;
}

/* Compact team administration dropdowns */
.team-form-grid select[name="conference"] {
    width: 110px;
}

.team-form-grid select[name="division"] {
    width: 130px;
}

.team-form-grid select[name="is_active"] {
    width: 120px;
}

.team-form-grid select {
    max-width: 100%;
}

/* Team Edit button: matches compact Delete button */
.teams-table .actions > a {
    display: inline-block;
    padding: 3px 8px;
    background: var(--green-primary);
    color: var(--white);
    border: 1px solid var(--green-dark);
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none;
}

.teams-table .actions > a:hover {
    background: var(--green-medium);
    color: var(--white);
    text-decoration: none;
}

/* Footer */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    max-width: none;
    min-height: 30px;
    margin: 0;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 5px;
    background: linear-gradient(
        115deg,
        #183b17 0%,
        #255b23 62%,
        #173916 100%
    );
    border-top: 1px solid #8dc487;
    color: #e0eed7;
    font-size: 12px;
    line-height: 19px;
    text-align: center;
}

/* Clearance for the fixed footer */
body {
    padding-bottom: 38px;
}

/* Mobile */

@media (max-width: 700px) {
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-user {
        text-align: left;
    }

    .nav-list {
        padding: 4px 10px;
    }

    .nav-dropdown {
        min-width: 170px;
    }

    .page-container {
        width: calc(100% - 20px);
        margin-top: 16px;
    }

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

@media (prefers-reduced-motion: reduce) {
    button,
    .button,
    .nav-link {
        transition: none;
    }
}

/* Schedule Management compact editor */
.schedule-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 16px;
}

.schedule-form-grid label {
    display: block;
    margin: 4px 0;
    min-width: 0;
}

.schedule-form-grid input,
.schedule-form-grid select {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px 8px;
}

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

.schedule-field-title {
    display: block;
    font-weight: bold;
    margin: 4px 0 6px;
}

.schedule-inline {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.schedule-inline label {
    flex: 1 1 0;
    min-width: 0;
}

/* Compact football score inputs */
.schedule-score-controls {
    justify-content: flex-start;
}

.schedule-score-controls label {
    flex: 0 0 90px;
}

.schedule-score-controls input[type="number"] {
    width: 90px;
    max-width: 100%;
    appearance: textfield;
    -moz-appearance: textfield;
}

.schedule-score-controls input[type="number"]::-webkit-inner-spin-button,
.schedule-score-controls input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.schedule-button {



    display: inline-block;
    padding: 5px 12px;
    background: var(--green-primary);
    color: #fff;
    border: 1px solid var(--green-dark);
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
}

.schedule-button:hover {
    background: var(--green-dark);
    color: #fff;
    text-decoration: none;
}

.schedule-button-secondary {
    background: #edf2e7;
    color: var(--green-dark);
}

.schedule-button-secondary:hover {
    background: #dce7d3;
    color: var(--green-dark);
}

@media (max-width: 800px) {
    .schedule-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .schedule-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Compact Teams on Bye strip */
section.panel:has(> p.bye-teams) {
    padding: 8px 16px;
    margin-top: 8px;
    margin-bottom: 8px;
}

section.panel:has(> p.bye-teams) h2 {
    display: inline;
    margin: 0 12px 0 0;
}

section.panel > p.bye-teams {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Compact Select Week panel */
section.panel:has(> form[action="/schedule.php"] > select#week) {
    padding: 10px 16px;
    margin-bottom: 10px;
}

section.panel:has(> form[action="/schedule.php"] > select#week) > h2 {
    display: inline-block;
    margin: 0 20px 0 0;
    vertical-align: middle;
}

section.panel:has(> form[action="/schedule.php"] > select#week) > form {
    display: inline-grid;
    grid-template-columns: auto minmax(180px, 340px) auto;
    align-items: center;
    gap: 0 10px;
    margin: 0;
    vertical-align: middle;
}

section.panel:has(> form[action="/schedule.php"] > select#week)
form label[for="week"] {
    margin: 0;
    white-space: nowrap;
}

section.panel:has(> form[action="/schedule.php"] > select#week)
form select#week {
    width: 100%;
    min-width: 0;
    margin: 0;
}

section.panel:has(> form[action="/schedule.php"] > select#week)
form button {
    margin: 0;
    white-space: nowrap;
}

section.panel:has(> form[action="/schedule.php"] > select#week) > p {
    display: inline-block;
    margin: 0 0 0 16px;
    vertical-align: middle;
}

@media (max-width: 950px) {
    section.panel:has(> form[action="/schedule.php"] > select#week) > h2 {
        display: block;
        margin: 0 0 8px;
    }

    section.panel:has(> form[action="/schedule.php"] > select#week) > form {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    section.panel:has(> form[action="/schedule.php"] > select#week) > p {
        display: block;
        margin: 8px 0 0;
    }
}

/* Schedule Management table and panel refinements */
body:has(form[action="/schedule.php"]) .page-container {
    margin-top: 14px;
    margin-bottom: 14px;
}

body:has(form[action="/schedule.php"]) .panel {
    margin-bottom: 10px;
}

body:has(form[action="/schedule.php"]) .panel:has(> .table-wrap) {
    padding: 10px 14px;
}

body:has(form[action="/schedule.php"]) .panel:has(> .table-wrap) h2 {
    margin-bottom: 8px;
}

body:has(form[action="/schedule.php"]) .teams-table {
    width: 100%;
    table-layout: fixed;
}

body:has(form[action="/schedule.php"]) .teams-table th,
body:has(form[action="/schedule.php"]) .teams-table td {
    padding: 4px 10px;
    vertical-align: middle;
}

body:has(form[action="/schedule.php"]) .teams-table th:nth-child(1) {
    width: 8%;
}

body:has(form[action="/schedule.php"]) .teams-table th:nth-child(2) {
    width: 30%;
}

body:has(form[action="/schedule.php"]) .teams-table th:nth-child(3),
body:has(form[action="/schedule.php"]) .teams-table th:nth-child(4) {
    width: 16%;
}

body:has(form[action="/schedule.php"]) .teams-table th:nth-child(5) {
    width: 18%;
}

body:has(form[action="/schedule.php"]) .teams-table th:nth-child(6) {
    width: 12%;
}

body:has(form[action="/schedule.php"]) .teams-table td:nth-child(3),
body:has(form[action="/schedule.php"]) .teams-table td:nth-child(4) {
    font-weight: 600;
    white-space: nowrap;
}

body:has(form[action="/schedule.php"]) .teams-table .schedule-button {
    padding: 3px 10px;
}

@media (max-width: 800px) {
    body:has(form[action="/schedule.php"]) .teams-table {
        min-width: 760px;
    }
}

/* Compact Schedule Management edit form */
.schedule-form-grid {
    gap: 4px 12px;
}

.schedule-form-grid label {
    margin: 2px 0;
}

.schedule-form-grid input,
.schedule-form-grid select {
    padding: 5px 8px;
}

.schedule-field-title {
    margin: 2px 0 4px;
}

.schedule-inline {
    gap: 6px;
}

.schedule-score-controls label {
    flex-basis: 82px;
}

.schedule-score-controls input[type="number"] {
    width: 82px;
}

body:has(form[action="/schedule.php"]) section.panel:has(.schedule-form-grid) {
    padding: 12px 18px;
}

body:has(form[action="/schedule.php"]) section.panel:has(.schedule-form-grid) h2 {
    margin-bottom: 10px;
}

#game-form {
    padding: 12px 16px;
}

#game-form h2 {
    margin-bottom: 10px;
}

#game-form .team-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

#game-form .team-form-actions button,
#game-form .team-form-actions .schedule-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 36px;
    box-sizing: border-box;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    text-decoration: none;
}

#game-form .team-form-actions .schedule-button-secondary {
    background: #dedede;
    color: #303830;
    border: 1px solid #888;
}

#game-form .team-form-actions .schedule-button-secondary:hover {
    background: #cacaca;
    color: #202820;
}

@media (max-width: 1050px) {
    .schedule-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-edit-away,
    .schedule-edit-home,
    .schedule-edit-date,
    .schedule-edit-grid > .schedule-field:nth-of-type(1),
    .schedule-edit-grid > .schedule-field:nth-of-type(2),
    .schedule-edit-grid > .schedule-field:nth-of-type(3) {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .schedule-edit-grid {
        grid-template-columns: 1fr;
    }
}


.scores-page > .panel:has(> form[method="post"]) {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.scores-page .panel {
    padding: 12px 16px;
    margin-bottom: 12px;
}

.scores-page .panel h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.scores-page form[method="get"] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.scores-page form[method="get"] label {
    margin: 0;
}

.scores-page form[method="get"] select {
    width: 160px;
    max-width: 100%;
    margin: 0;
    padding: 5px 8px;
}

.scores-page form[method="get"] button {
    padding: 6px 12px;
}

.scores-page .teams-table th,
.scores-page .teams-table td {
    padding: 3px 6px;
    vertical-align: middle;
}

.scores-page .teams-table input[type="number"] {
    display: block;
    width: 3.5em;
    min-width: 0;
    max-width: 100%;
    height: 28px;
    margin: 0;
    padding: 3px 5px;
}

.scores-page .teams-table input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.scores-page .teams-table th:nth-child(7),
.scores-page .teams-table td:nth-child(7) {
    text-align: center;
}

.scores-page .scores-byes p.bye-teams {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .scores-page .teams-table {
        min-width: 690px;
    }
}

/* Enter Scores: two-digit score inputs */

.scores-page .teams-table input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
    text-align: center;
}

.scores-page .teams-table input[type="number"]::-webkit-inner-spin-button,
.scores-page .teams-table input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Save button and right-aligned bye teams */

.scores-page .scores-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.scores-page .scores-bye-inline {
    margin-left: auto;
    text-align: right;
    font-size: .9rem;
    color: var(--muted);
}

.scores-page .scores-bye-inline strong {
    color: var(--green-dark);
}

/* ============================================================
   Administrator User's Picks — A.034
   ============================================================ */

.admin-picks-page {
    max-width: 1150px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 12px;
}

.admin-picks-page > h1 {
    text-align: center;
    margin-bottom: 8px;
}

.admin-picks-week-picker {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 12px;
    border: 2px solid #222;
    background: #ffffff;
    text-align: center;
}

.admin-picks-week-picker h2 {
    margin: 0;
    padding: 3px 12px;
    background: #315820;
    color: #ffffff;
    font-size: 0.9rem;
}

.admin-picks-week-picker nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.admin-picks-week-picker nav a {
    min-width: 30px;
    padding: 3px 7px;
    border: 1px solid #555;
    color: #174d86;
    font-weight: bold;
    text-align: center;
}

.admin-picks-week-picker nav a.current {
    background: #d4d4d4;
    color: #111111;
}

.admin-picks-player-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-picks-player-selector select {
    width: 250px;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 250px;
    padding: 5px 8px;
}

.admin-picks-editor {
    max-width: 1100px;
    margin: 0 auto;
}

.admin-picks-editor > h2 {
    margin-bottom: 4px;
    text-align: center;
}

.admin-picks-editor > p {
    text-align: center;
    color: #64725e;
}

.admin-picks-table {
    width: 100%;
    border: 2px solid #222;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.88rem;
}

.admin-picks-table th,
.admin-picks-table td {
    border: 1px solid #444;
    padding: 1px 4px;
    text-align: center;
    white-space: nowrap;
}

.admin-picks-table thead th {
    background: #315820;
    color: #ffffff;
}

.admin-picks-table tbody tr:nth-child(even) {
    background: #d4d4d4;
}

.admin-picks-table label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    margin: 0;
    line-height: 1.2;
}

.admin-picks-table input[type="radio"] {
    margin: 0;
    display: inline-block;
    width: auto;
    padding: 0;
    vertical-align: middle;
}

.admin-picks-tiebreaker {
    margin: 10px auto;
    text-align: center;
}

.admin-picks-tiebreaker label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

.admin-picks-tiebreaker input {
    display: block;
    width: 90px;
    padding: 5px;
    margin: 0 auto;
    text-align: center;
}

.admin-picks-tiebreaker p {
    color: #64725e;
    font-size: 0.85rem;
    margin: 6px 0;
}

.admin-picks-editor > button[type="submit"] {
    display: block;
    margin: 0 auto;
}

@media (max-width: 800px) {
    .admin-picks-page {
        width: calc(100% - 24px);
    }

    .admin-picks-week-picker nav a {
        min-width: 27px;
        padding: 4px;
    }

    .admin-picks-table th,
    .admin-picks-table td {
        padding: 2px 3px;
    }
}

/* Administrator Quick Picks controls — A.036 */

.admin-picks-quick {
    margin: 10px auto 12px;
    text-align: center;
}

.admin-picks-quick h3 {
    margin: 0 0 6px;
    color: var(--green-dark);
    font-size: 0.95rem;
}

.admin-picks-quick-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-picks-quick-buttons button {
    width: auto;
    min-width: 100px;
    padding: 6px 13px;
    background: linear-gradient(
        to bottom,
        #527b35 0%,
        #31591f 48%,
        #254719 100%
    );
    color: #ffffff;
    border: 1px solid #183b17;
    border-radius: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.3),
        0 2px 3px rgba(0,0,0,.15);
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
}

.admin-picks-quick-buttons button:hover {
    background: linear-gradient(
        to bottom,
        #6b9850,
        #416b2d
    );
}

.admin-picks-quick-buttons button:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .admin-picks-quick-buttons {
        gap: 5px;
    }

    .admin-picks-quick-buttons button {
        min-width: 85px;
        padding: 6px 8px;
    }
}

/* User's Picks success notification — A.037 */

.admin-picks-success {
    display: table;
    max-width: 100%;
    margin: 0 auto 12px;
    padding: 7px 20px;
    background: #fff3b0;
    border: 2px solid #000000;
    border-radius: 5px;
    color: #000000;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 5px rgba(25, 52, 19, 0.12);
    animation: admin-picks-success-fade 4s ease-in forwards;
}

@keyframes admin-picks-success-fade {
    0%, 65% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-picks-success {
        animation: none;
    }
}

/* Compact administrator picks table and tiebreaker — A.040 */

.admin-picks-table th,
.admin-picks-table td {
    padding: 1px 4px;
    line-height: 1.15;
}

.admin-picks-table label {
    gap: 4px;
    line-height: 1.1;
}

.admin-picks-tiebreaker input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.admin-picks-tiebreaker input[type="number"]::-webkit-inner-spin-button,
.admin-picks-tiebreaker input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 800px) {
    .admin-picks-table th,
    .admin-picks-table td {
        padding: 2px 3px;
    }
}

/* Compact centered administrator picks table — A.041 */

.admin-picks-table {
    width: 660px;
    min-width: 660px;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    table-layout: fixed;
}

.admin-picks-table th:nth-child(1),
.admin-picks-table td:nth-child(1) {
    width: 220px;
}

.admin-picks-table th:nth-child(2),
.admin-picks-table td:nth-child(2),
.admin-picks-table th:nth-child(3),
.admin-picks-table td:nth-child(3) {
    width: 160px;
}

.admin-picks-table th:nth-child(4),
.admin-picks-table td:nth-child(4) {
    width: 120px;
}

.admin-picks-editor .table-wrap {
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 700px) {
    .admin-picks-editor .table-wrap {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================================
   Weekly Pool Results — A.042
   ============================================================ */

.pool-results-page {
    width: min(1300px, calc(100% - 24px));
    margin-inline: auto;
    padding-bottom: 24px;
}

.pool-results-page > h1 {
    text-align: center;
    font-size: 1.15rem;
    margin: 12px 0 8px;
}

.pool-results-page > h2 {
    text-align: center;
    font-size: .95rem;
    margin: 12px 0 8px;
}

.pool-results-week-picker {
    display: table;
    max-width: 100%;
    margin: 0 auto 12px;
    border: 2px solid #222;
    background: #fff;
    text-align: center;
}

.pool-results-week-picker > strong {
    display: block;
    background: #315820;
    color: #fff;
    padding: 3px 10px;
    font-size: .85rem;
}

.pool-results-week-picker nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pool-results-week-picker nav a {
    min-width: 28px;
    padding: 3px 6px;
    border: 1px solid #666;
    font-size: .78rem;
    font-weight: 700;
    color: #174d86;
}

.pool-results-week-picker nav a.current {
    background: #d4d4d4;
    color: #111;
}

.pool-results-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.pool-results-table {
    width: max-content;
    min-width: 0;
    margin: 0 auto;
    border: 2px solid #111;
    border-collapse: collapse;
    background: #fff;
    color: #111;
    font-size: .75rem;
    line-height: 1.12;
}

.pool-results-table th,
.pool-results-table td {
    border: 1px solid #444;
    padding: 2px 4px;
    text-align: center;
    vertical-align: middle;
}

.pool-results-table thead th {
    background: #315820;
    color: #fff;
    font-weight: 700;
    min-width: 29px;
}

.pool-results-table thead th span {
    display: block;
}

.pool-results-table thead th:first-child {
    min-width: 115px;
    text-align: left;
    padding-left: 8px;
}

.pool-results-table tbody th {
    white-space: nowrap;
    text-align: left;
    padding: 3px 8px;
    font-weight: 600;
    color: #000;
    background: inherit;
}

.pool-results-table tbody tr:nth-child(even) {
    background: #d4d4d4;
}

.pool-results-pick {
    min-width: 32px;
    height: 38px;
}

.pool-results-choice {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 1px 2px;
    border: 2px solid transparent;
}

.pool-results-choice.is-correct {
    border-color: #36a723;
    background: #e3f2dc;
    box-shadow: 0 0 6px 1px rgba(69, 150, 48, 0.30),
                inset 0 0 5px rgba(69, 150, 48, 0.18);
}

.pool-results-choice img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pool-results-choice small {
    display: block;
    font-size: .64rem;
    line-height: 1;
}

.pool-results-tb,
.pool-results-score {
    min-width: 40px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pool-results-tb small,
.pool-results-score small {
    display: block;
    font-size: .7rem;
}

.pool-results-table tfoot td {
    background: #315820;
    color: #fff;
    text-align: left;
    padding: 5px 9px;
    font-weight: 700;
}

.pool-results-note {
    text-align: center;
    color: #526c47;
    font-size: .8rem;
    margin: 10px auto;
}

@media (max-width: 700px) {
    .pool-results-table {
        font-size: .7rem;
    }

    .pool-results-table th,
    .pool-results-table td {
        padding: 2px;
    }

    .pool-results-table tbody th {
        padding: 3px 5px;
    }
}

/* Schedules and Standings — A.046 */

.schedules-page,
.standings-page {
    max-width: 1200px;
}

.schedules-page > h1,
.schedules-page > h2,
.standings-page > h1 {
    text-align: center;
    margin: 10px 0;
}

.schedules-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px auto;
}

.schedules-picker select,
.schedules-picker button {
    padding: 5px 9px;
}

.schedules-week-picker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    margin: 12px auto;
}

.schedules-week-picker a {
    padding: 4px 8px;
    border: 1px solid #728b6a;
    background: #e5efdf;
    color: #17471f;
    font-weight: 700;
    text-decoration: none;
}

.schedules-week-picker a.current {
    background: #315820;
    color: #fff;
}

.schedules-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: .85rem;
}

.schedules-table th,
.schedules-table td {
    border: 1px solid #999;
    padding: 6px 9px;
    text-align: left;
}

.schedules-table thead th {
    background: #315820;
    color: #fff;
}

.schedules-table tbody tr:nth-child(even) {
    background: #d4d4d4;
}

.standings-conferences {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.standings-conference {
    min-width: 0;
}

.standings-conference h2 {
    margin: 0;
    padding: 6px;
    color: #fff;
    text-align: center;
    font-size: 1rem;
}

.standings-afc {
    background: #ad1731;
    color: #fff;
}

.standings-nfc {
    background: #2455a0;
    color: #fff;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: .72rem;
    font-variant-numeric: tabular-nums;
}

.standings-table th,
.standings-table td {
    border: 1px solid #999;
    padding: 4px 5px;
    text-align: center;
    white-space: nowrap;
}

.standings-table thead th {
    background: #dedede;
    color: #111;
    font-weight: 700;
}

.standings-table thead th:first-child {
    text-align: left;
}

.standings-table tbody th[scope="row"] {
    color: #111;
    text-align: left;
    font-weight: 600;
}

.standings-table tbody tr:not(.standings-division):nth-child(odd) {
    background: #f0f0f0;
}

.standings-table .standings-division th {
    color: #fff;
    text-align: left;
    padding: 5px 8px;
}

.standings-note {
    margin: 12px auto;
    color: #526c47;
    text-align: center;
    font-size: .8rem;
}

@media (max-width: 950px) {
    .standings-conferences {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .schedules-table,
    .standings-table {
        font-size: .7rem;
    }
}

/*
 * Standings division header and team-row corrections — A.046.
 * Specific selectors override the general standings table rules.
 */

.standings-table thead th.standings-afc {
    background: #ad1731;
    color: #ffffff;
}

.standings-table thead th.standings-nfc {
    background: #2455a0;
    color: #ffffff;
}

.standings-table tbody tr:nth-of-type(odd) > th,
.standings-table tbody tr:nth-of-type(odd) > td {
    background: #f4f4f4;
}

.standings-table tbody tr:nth-of-type(even) > th,
.standings-table tbody tr:nth-of-type(even) > td {
    background: #dedede;
}

/* Classic Weekly Schedule — A.047 */

.weekly-classic-page {
    max-width: 900px;
    margin: 0 auto;
}

.weekly-classic-page > h1 {
    text-align: center;
    margin: 12px 0;
}

.weekly-classic-picker {
    max-width: 530px;
    margin: 12px auto 16px;
    border: 2px solid #222;
    background: #ffffff;
    text-align: center;
}

.weekly-classic-picker-title {
    background: #315820;
    color: #ffffff;
    font-size: .85rem;
    font-weight: 700;
    padding: 4px;
}

.weekly-classic-week-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.weekly-classic-week-links a {
    flex: 1 0 24px;
    padding: 4px 2px;
    border: 1px solid #999;
    color: #000080;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.weekly-classic-week-links a.current {
    background: #d4d4d4;
    color: #111111;
}

.weekly-classic-table-wrap {
    max-width: 650px;
    margin: 0 auto;
    overflow-x: auto;
}

.weekly-classic-table {
    width: 100%;
    border: 2px solid #222;
    border-collapse: collapse;
    font-size: .78rem;
    font-variant-numeric: tabular-nums;
}

.weekly-classic-table th,
.weekly-classic-table td {
    border-bottom: 1px solid #999;
    padding: 6px 5px;
}

.weekly-classic-table .weekly-classic-title th {
    background: #315820;
    color: #ffffff;
    text-align: left;
    font-size: .85rem;
}

.weekly-classic-table .weekly-classic-headings th {
    background: #f4f4f4;
    color: #111111;
    text-align: center;
    font-weight: 700;
}

.weekly-classic-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.weekly-classic-table tbody tr:nth-child(even) {
    background: #d4d4d4;
}

.weekly-classic-date {
    white-space: nowrap;
    text-align: left;
}

.weekly-classic-team {
    white-space: nowrap;
    text-align: right;
}

.weekly-classic-score {
    white-space: nowrap;
    text-align: center;
}

.weekly-classic-score.winner {
    color: #008000;
    font-weight: 700;
}

.weekly-classic-logo {
    width: 25px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
}

.weekly-classic-record {
    color: #333333;
    white-space: nowrap;
}

.weekly-classic-at {
    margin-right: 4px;
}

.weekly-classic-byes {
    max-width: 650px;
    margin: 12px auto;
    font-size: .8rem;
}

.weekly-classic-note {
    max-width: 650px;
    margin: 12px auto;
    color: #526c47;
    font-size: .75rem;
}

@media (max-width: 700px) {
    .weekly-classic-table {
        font-size: .7rem;
    }

    .weekly-classic-table th,
    .weekly-classic-table td {
        padding: 4px 3px;
    }

    .weekly-classic-logo {
        width: 20px;
        height: 18px;
    }
}

/* Classic Team Schedules — A.048 */

.team-classic-page {
    max-width: 900px;
    margin: 0 auto;
}

.team-classic-page > h1 {
    text-align: center;
    margin: 12px 0;
}

.team-classic-picker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 14px auto;
    font-size: .85rem;
}

.team-classic-picker label {
    font-weight: 700;
}

.team-classic-picker select {
    width: 220px;
    max-width: 100%;
    padding: 3px;
    font-size: .85rem;
}

.team-classic-picker button {
    padding: 3px 8px;
    font-weight: 700;
    cursor: pointer;
}

.team-classic-schedule {
    width: 100%;
    max-width: 480px;
    margin: 14px auto;
    border: 2px solid #222222;
    background: #ffffff;
}

.team-classic-banner {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    min-height: 62px;
    padding: 5px 8px;
    background: #ffffff;
    color: #000000;
}

.team-classic-name {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
    text-align: center;
}

.team-classic-heading-record {
    font-size: .75rem;
    white-space: nowrap;
}

.team-classic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .77rem;
    font-variant-numeric: tabular-nums;
}

.team-classic-table td {
    padding: 7px 4px;
    border-top: 1px solid #555555;
    white-space: nowrap;
}

.team-classic-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.team-classic-table tbody tr:nth-child(even) {
    background: #d4d4d4;
}

.team-classic-week {
    width: 24px;
    text-align: center;
}

.team-classic-date {
    width: 140px;
    text-align: left;
}

.team-classic-opponent {
    text-align: right;
}

.team-classic-opponent-record {
    color: #333333;
}

.team-classic-logo-cell {
    width: 32px;
    text-align: center;
}

.team-classic-logo {
    width: 27px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
}

.team-classic-result {
    min-width: 55px;
    text-align: left;
}

.team-classic-bye td {
    font-size: .78rem;
}

.team-classic-footer {
    padding: 4px 8px;
    background: #315820;
    color: #ffffff;
    font-size: .8rem;
    font-weight: 700;
    text-align: right;
}

.team-classic-note {
    max-width: 480px;
    margin: 10px auto;
    color: #526c47;
    font-size: .75rem;
}

@media (max-width: 540px) {
    .team-classic-schedule {
        overflow-x: auto;
    }

    .team-classic-table {
        font-size: .68rem;
    }

    .team-classic-table td {
        padding: 6px 2px;
    }

    .team-classic-date {
        width: auto;
    }

    .team-classic-logo {
        width: 21px;
        height: 18px;
    }
}

/* SMTP Configuration - compact administration layout */

.smtp-page {
    width: min(780px, calc(100% - 32px));
    margin: 18px auto 60px;
}

.smtp-page > h1 {
    margin: 0 0 14px;
    font-size: 1.65rem;
}

.smtp-page .smtp-panel {
    padding: 16px 20px;
    margin-bottom: 14px;
}

.smtp-panel h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.smtp-description {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.smtp-panel label {
    display: block;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.smtp-panel input:not([type="hidden"]):not([type="checkbox"]),
.smtp-panel select {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 34px;
    margin-top: 4px;
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.smtp-panel .smtp-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
}

.smtp-panel .smtp-checkbox input[type="checkbox"] {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: var(--green-primary);
}

.smtp-server-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        110px
        150px;
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
}

.smtp-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.smtp-help {
    margin: -5px 0 14px;
    color: var(--muted);
    font-size: 12px;
}

.smtp-actions {
    margin-top: 16px;
}

.smtp-panel button,
.smtp-return .button {
    padding: 8px 16px;
    font-size: 13px;
}

.smtp-test-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.smtp-test-row button {
    min-height: 34px;
    white-space: nowrap;
}

.smtp-return {
    margin: 16px 0;
    text-align: center;
}

.smtp-panel button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 620px) {
    .smtp-server-grid,
    .smtp-two-column,
    .smtp-test-row {
        grid-template-columns: 1fr;
    }

    .smtp-page .smtp-panel {
        padding: 14px;
    }

    .smtp-test-row button {
        justify-self: start;
    }
}

/* Administrator masthead alarm bell — A.053 */

.site-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
    align-self: flex-start;
}

.site-alarm-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 26px;
    height: 28px;
    color: #d1d8cf;
    text-decoration: none;
    transition: color .15s ease;
}

.site-alarm-bell-clear {
    color: #d1d8cf;
}

.site-alarm-bell-active {
    color: #ff4949;
}

.site-alarm-bell:hover,
.site-alarm-bell:focus-visible {
    color: #ffffff;
}

.site-alarm-bell-active:hover,
.site-alarm-bell-active:focus-visible {
    color: #ff8585;
}

.site-alarm-bell:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
    border-radius: 3px;
}

@media (max-width: 700px) {
    .site-header-actions {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-alarm-bell {
        transition: none;
    }
}


/* SMTP Configuration redesign — A.054 */

.smtp-page {
    width: min(970px, calc(100% - 32px));
}

.smtp-page > h1 {
    color: #20502b;
    margin-bottom: 16px;
}

.smtp-page .smtp-panel {
    padding: 0;
    overflow: hidden;
    border: 1px solid #b9cbb1;
    border-radius: 6px;
    background: #fffdf5;
    box-shadow: 0 4px 12px rgba(30, 60, 25, .08);
}

.smtp-panel > h2 {
    background: #245c2c;
    color: #ffffff;
    padding: 10px 18px;
    margin: 0;
    font-size: 1.12rem;
}

.smtp-panel > .smtp-description {
    background: #eef3e7;
    color: #34523a;
    padding: 8px 18px;
    margin: 0;
}

.smtp-panel > form {
    padding: 16px 18px;
}

.smtp-panel label {
    color: #263b29;
}

.smtp-panel input:not([type="hidden"]):not([type="checkbox"]),
.smtp-panel select {
    background: #ffffff;
    border-color: #b8cbb0;
}

.smtp-panel .smtp-checkbox {
    margin-top: 3px;
    margin-bottom: 15px;
}

.smtp-monitor-panel {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 24px;
    align-items: center;
    padding: 16px 20px;
    margin: 10px 0 16px;
    border: 1px solid #e2cfa5;
    border-radius: 6px;
    background: #fbf1dc;
}

.smtp-monitor-description {
    padding-right: 20px;
    border-right: 1px solid #e2cfa5;
}

.smtp-monitor-description strong {
    display: block;
    font-size: 15px;
    color: #302b20;
    margin-bottom: 7px;
}

.smtp-monitor-description p,
.smtp-monitor-control p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #726951;
}

.smtp-monitor-control .smtp-checkbox {
    margin: 0 0 7px;
    font-size: 14px;
}

.smtp-monitor-control p {
    font-style: italic;
}

.smtp-actions {
    margin-top: 14px;
}

.smtp-panel button {
    background: #285b29;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
}

.smtp-panel button:hover:not(:disabled) {
    background: #36763a;
}

@media (max-width: 700px) {
    .smtp-monitor-panel {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .smtp-monitor-description {
        padding-right: 0;
        padding-bottom: 12px;
        border-right: 0;
        border-bottom: 1px solid #e2cfa5;
    }
}

/* ==========================================================
   PROFILE PAGE STYLES
   PHPfootball 8.0 - Master stylesheet A.056

   Compact centered profile editor.
   All profile-specific styling is maintained here.
   ========================================================== */

/* Main profile workspace */

.profile-page {
    width: calc(100% - 32px);
    max-width: 860px;
    margin: 12px auto 20px;
    box-sizing: border-box;
}

.profile-page .panel {
    padding: 12px 16px;
    margin-bottom: 12px;
}

.profile-page h2 {
    margin: 0 0 8px;
}

/* Profile information */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.profile-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-field input,
.profile-field select {
    box-sizing: border-box;
    width: 100%;
    padding: 7px;
}

.profile-field input[readonly] {
    background: #e9e9e3;
}

.profile-help {
    margin: 5px 0 0;
    font-size: 0.92em;
}

/* Lower profile panels */

.profile-lower-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 760px;
    margin: 14px auto 0;
}

.profile-lower-grid > .panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 100%;
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Password editor */

.password-change-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.password-change-grid .profile-field {
    min-width: 0;
    margin-bottom: 0;
}

.password-change-grid .profile-field:first-child {
    grid-column: auto;
}

.password-change-grid input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border: 1px solid #8c8c80;
    box-shadow: none;
}

.password-change-grid input.password-invalid {
    background-color: #f9dede;
    border: 1px solid #8c8c80;
    box-shadow: none;
}

.password-change-grid input.password-valid {
    background-color: #dff3e3;
    border: 1px solid #8c8c80;
    box-shadow: none;
}

.password-change-grid input:focus {
    outline: 2px solid #496b53;
    outline-offset: 1px;
}

.password-label-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.4rem;
}

/* Password requirements tooltip */

.password-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: help;
}

.password-tooltip-content {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.5rem);
    width: min(18rem, 75vw);
    padding: 0.7rem 0.85rem;
    background: #fffaf0;
    color: #233b2c;
    border: 1px solid #58755e;
    border-radius: 0.4rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    z-index: 20;
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.5;
}

.password-tooltip:hover .password-tooltip-content,
.password-tooltip:focus .password-tooltip-content,
.password-tooltip:focus-within .password-tooltip-content {
    display: block;
}

.password-tooltip-content ul {
    margin: 0.3rem 0 0;
    padding-left: 1.2rem;
}

/* Email notification preferences */

.profile-notification-stack {
    display: grid;
    gap: 5px;
}

.notification-choice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 4px 6px;
    margin: 0;
    line-height: 1.4;
    border: 1px solid #c8d9bf;
    border-radius: 4px;
    background: #edf5e8;
    cursor: pointer;
    box-sizing: border-box;
}

.notification-choice:hover {
    background: #f0f7eb;
    border-color: #9bb894;
}

.notification-choice:has(input[type="checkbox"]:checked) {
    background: #e1f1dc;
    border-color: #7eaa72;
}

.notification-choice:focus-within {
    outline: 2px solid #4b7441;
    outline-offset: 1px;
}

.notification-choice input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: #315d28;
    cursor: pointer;
}

.notification-choice span {
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

/* Profile actions */

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.profile-unified-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    margin: 18px auto 12px;
}

.profile-unified-actions button,
.profile-unified-actions .profile-return-home {
    min-width: 118px;
    min-height: 42px;
    box-sizing: border-box;
    text-align: center;
}

.profile-unified-actions button {
    margin: 0;
}

/* Secondary Return Home button */

.profile-return-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid #76976d;
    border-radius: 4px;
    background: #e1f0da;
    color: #23491f;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.profile-return-home:hover,
.profile-return-home:focus-visible {
    background: #cce6c1;
    border-color: #365f2d;
    color: #173815;
    text-decoration: none;
}

.profile-return-home:focus-visible {
    outline: 2px solid #365f2d;
    outline-offset: 2px;
}

/* Responsive profile layout */

@media (max-width: 700px) {
    .profile-page {
        width: calc(100% - 24px);
    }

    .profile-lower-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
    }

    .profile-lower-grid > .panel {
        height: auto;
    }
}

@media (max-width: 650px) {
    .profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Player Picks current-season team records — A.061 */

.player-picks-team .player-picks-record {
    display: inline;
    flex: 0 0 auto;
    margin-left: 3px;
    color: #52684b;
    font-size: 11px;
    font-weight: 400;
    line-height: inherit;
    white-space: nowrap;
}


/* Profile save confirmation — A.063 */

.profile-save-confirmation {
    width: fit-content;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    margin: 4px auto 18px;
    padding: 10px 20px;
    border: 1px solid #70a764;
    border-radius: 5px;
    background: #d6f0cf;
    color: #205b2a;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 7px rgba(27, 75, 25, .12);
    animation: profile-save-fade 5s ease-in-out forwards;
}

@keyframes profile-save-fade {
    0%, 60% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-save-confirmation {
        animation: none;
    }
}


/* Player Dashboard — A.064 */

.dashboard-intro {
    max-width: 680px;
    margin: 20px auto;
    text-align: center;
}

.dashboard-early-games {
    display: inline-block;
    text-align: left;
}


/* Teams Administration — A.065 */

/* Compact Update Teams administration layout */
.teams-admin-page > .teams-list-panel {
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.teams-admin-page > .teams-form-panel {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.teams-admin-page .teams-list-panel .teams-table {
    width: max-content;
    max-width: none;
    font-size: .85rem;
}

.teams-admin-page .teams-list-panel .teams-table th,
.teams-admin-page .teams-list-panel .teams-table td {
    padding: 4px 6px;
}

@media (max-width: 700px) {
    .teams-admin-page .teams-list-panel {
        width: 100%;
    }

    .teams-admin-page .teams-list-panel .teams-table {
        min-width: 690px;
    }
}

.teams-admin-page .team-form-actions .team-cancel-button {
    background: #777;
    border-color: #666;
}


/* Users Administration — A.066 */

.users-admin-page .users-accounts-panel {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 16px;
}

.users-admin-page .users-accounts-panel h2 {
    margin-bottom: 10px;
}

.users-admin-page .users-accounts-panel .teams-table {
    font-size: .85rem;
}

.users-admin-page .users-accounts-panel .teams-table th,
.users-admin-page .users-accounts-panel .teams-table td {
    padding: 4px 6px;
}

.users-admin-page #user-form {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    scroll-margin-top: 16px;
}


/* Weekly Summary — A.067 */

.weekly-summary-page {
    padding-top: 20px;
    padding-bottom: 30px;
}
.weekly-summary-page {
    text-align: center;
}
.weekly-summary-page .weekly-summary-table {
    margin-left: auto;
    margin-right: auto;
}
.weekly-summary-page > h1 {
    font-size: 1.15rem;
    margin: 0 0 18px;
}
.weekly-summary-heading {
    font-size: .9rem;
    margin: 0 0 12px;
}
.weekly-summary-table {
    width: 310px;
    max-width: 100%;
    border: 2px solid #111;
    border-collapse: collapse;
    font-size: .8rem;
    color: #111;
}
.weekly-summary-table th,
.weekly-summary-table td {
    border: 1px solid #222;
    padding: 4px 7px;
}
.weekly-summary-table thead th {
    color: #fff;
    background: #315820;
    text-align: left;
}
.weekly-summary-table tbody tr:nth-child(odd) {
    background: #fff;
}
.weekly-summary-table tbody tr:nth-child(even) {
    background: #d4d4d4;
}
.weekly-summary-table td:last-child {
    text-align: center;
    font-variant-numeric: tabular-nums;
}


/* Administrator Identity — A.068 */

.identity-page {
    max-width: 1100px;
    margin: 12px auto 20px;
}

.identity-page .panel {
    padding: 12px 16px;
    margin-bottom: 12px;
}

.identity-page h2 {
    margin: 0 0 8px;
}

.identity-page p {
    margin: 4px 0;
}

.identity-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.identity-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.identity-field input,
.identity-field select {
    box-sizing: border-box;
    width: 100%;
    padding: 7px;
}

.identity-field .help {
    margin-top: 5px;
    font-size: 0.92em;
}

.identity-note {
    align-self: center;
    padding-top: 12px;
}

.identity-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.identity-actions .button,
.identity-actions button {
    margin: 0;
}

@media (max-width: 650px) {
    .identity-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .identity-note {
        padding-top: 0;
    }
}

.identity-page .identity-error {
    color: #a00000;
}

.identity-page .identity-success {
    color: #176020;
}


/* Login Page — A.069 */

.login-page {
    flex: 1;
    padding: 18px 12px 45px;
    background-color: #183b17;
    background-image: url('/assets/images/login_bg.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.login-card {
    width: min(100%, 300px);
    margin: 0 auto;
    overflow: hidden;
    border: 3px solid #23491e;
    border-radius: 7px;
    background: #fff9e9;
    box-shadow: 0 12px 32px rgba(15, 39, 13, .3);
}
.login-card-header {
    padding: 6px 9px;
    background: linear-gradient(#245323, #103716);
    border-bottom: 3px solid #c5a65a;
    text-align: center;
}
.login-card-header h1 {
    margin: 0;
    color: white;
    font-family: Georgia, serif;
    font-size: 1.35rem;
    text-shadow: 1px 2px 3px #071d0a;
}
.login-card-body {
    padding: 12px 14px 14px;
}
.login-field {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    margin-bottom: 7px;
}
.login-field label {
    margin: 0;
    color: #173d1c;
    font-family: Georgia, serif;
    font-size: .85rem;
    font-weight: bold;
}
.login-field input {
    max-width: none;
    margin: 0;
    padding: 6px 8px;
    background: white;
}
.login-primary,
.login-secondary {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 6px 9px;
    border-radius: 7px;
    text-align: center;
    text-decoration: none;
    font-size: .85rem;
    font-weight: bold;
}
.login-primary {
    background: linear-gradient(#28702e, #10421b);
    color: white;
    border: 1px solid #092e12;
}
.login-secondary {
    background: linear-gradient(#f4f7e9, #d5e4c8);
    color: #173c1d;
    border: 1px solid #93aa83;
}
.login-primary:hover,
.login-secondary:hover {
    text-decoration: none;
    filter: brightness(1.07);
}
.login-divider {
    margin: 9px 0 7px;
    border-top: 1px solid #bba66b;
}
.login-register-title {
    margin: 0 0 5px;
    text-align: center;
    color: #183c1b;
    font-family: Georgia, serif;
    font-size: 1rem;
}
.login-unavailable {
    opacity: .65;
    cursor: not-allowed;
}
.login-error {
    padding: 12px;
    background: #fff0ec;
    border: 1px solid #b84738;
    color: #8b2017;
    border-radius: 5px;
}
@media (max-width: 480px) {
    .login-field {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .login-page {
        padding-top: 22px;
    }
}


/* Browser Installer — A.070 */

body.installer-page {
            font-family: system-ui, sans-serif;
            background: #f3f4f6;
            color: #17212b;
            margin: 0;
            padding: 2rem;
        }
        body.installer-page main {
            max-width: 620px;
            margin: 2rem auto;
            background: white;
            padding: 2rem;
            border-radius: 10px;
        }
        body.installer-page label {
            display: block;
            margin-top: 1rem;
            font-weight: 600;
        }
        body.installer-page input,
body.installer-page select,
body.installer-page button {
            box-sizing: border-box;
            width: 100%;
            padding: .7rem;
            margin-top: .3rem;
            font: inherit;
        }
        body.installer-page button {
            margin-top: 1.5rem;
            background: #173f70;
            color: white;
            border: 0;
            cursor: pointer;
        }
        body.installer-page .error {
            color: #a11;
        }
        body.installer-page .success {
            color: #176b38;
        }


/* Browser Setup — A.071 */

html:has(body.setup-page) {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    background: #101820;
    color: #f4f4f4;
}
body.setup-page {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px 50px;
}
body.setup-page main {
    background: #1c2733;
    padding: 30px;
    border: 1px solid #3b4c5e;
    border-radius: 12px;
}
body.setup-page h1 { margin-top: 0; }
body.setup-page h2 {
    margin-top: 28px;
    border-bottom: 1px solid #526070;
    padding-bottom: 8px;
}
body.setup-page label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}
body.setup-page input,
body.setup-page select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 5px;
    padding: 11px;
    background: #101820;
    color: #fff;
    border: 1px solid #697789;
    border-radius: 5px;
}
body.setup-page button {
    margin-top: 28px;
    padding: 13px 22px;
    border: 0;
    border-radius: 6px;
    background: #e2a83b;
    color: #101820;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}
body.setup-page .notice {
    padding: 15px;
    border: 1px solid #8e9ca9;
    border-radius: 5px;
    margin: 18px 0;
}
body.setup-page .error { border-color: #e16a6a; }
body.setup-page small { color: #b8c4d0; }


/* Team Schedule Logo — A.072 */

.team-classic-page .team-classic-banner .team-classic-name {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* NFL Standings Fixed Column Layout — A.073 */

.standings-page .standings-table {
    table-layout: fixed;
}

.standings-page .standings-table colgroup > col:nth-child(1) {
    width: 28%;
}

.standings-page .standings-table colgroup > col:nth-child(2) {
    width: 4%;
}

.standings-page .standings-table colgroup > col:nth-child(3) {
    width: 7%;
}

.standings-page .standings-table colgroup > col:nth-child(4) {
    width: 5%;
}

.standings-page .standings-table colgroup > col:nth-child(5) {
    width: 10%;
}

.standings-page .standings-table colgroup > col:nth-child(6) {
    width: 5%;
}

.standings-page .standings-table colgroup > col:nth-child(7) {
    width: 10%;
}

.standings-page .standings-table colgroup > col:nth-child(8) {
    width: 6.5%;
}


/* Administrator System Configuration Navigation — A.074 */

.admin-options-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0 20px;
}


/* Shared public stadium layout — A.083 */
body:has(> main.login-page) {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 0;
}

body:has(> main.login-page) > main.login-page {
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    box-sizing: border-box;
    background: #183b17 url('/assets/images/login_bg.webp')
        center center / cover no-repeat;
}


/* Primary administrator account-list actions. */
.user-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.user-delete-form {
    display: inline;
    margin: 0;
}
.user-delete-button {
    padding: 5px 10px;
    border: 1px solid #741818;
    border-radius: 4px;
    background: #8b2020;
    color: #fff;
    font: inherit;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
}
.user-delete-button:hover,
.user-delete-button:focus-visible {
    background: #681515;
}

/* User Maintenance compact editor — A.089 */

.users-admin-page #user-form {
    max-width: 950px;
}

.users-admin-page .user-edit-box {
    box-sizing: border-box;
    min-width: 0;
    margin: 12px 0;
    padding: 10px 16px 14px;
    border: 1px solid #9aaa97;
    border-radius: 5px;
    background: #fafbf7;
}

.users-admin-page .user-edit-box > legend {
    padding: 0 8px;
    color: var(--green-dark);
    font-size: .95rem;
    font-weight: 700;
}

.users-admin-page .user-edit-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px 22px;
}

.users-admin-page .user-edit-row > label {
    flex: 0 1 auto;
    min-width: 0;
    margin: 3px 0;
    font-size: .9rem;
}

.users-admin-page .user-edit-row > label > input:not([type="hidden"]) {
    box-sizing: border-box;
    max-width: 100%;
    margin-top: 5px;
    padding: 7px 9px;
    border: 1px solid #8c9b88;
    border-radius: 4px;
}

.users-admin-page .user-field-username,
.users-admin-page .user-field-username input {
    width: 22ch;
}

.users-admin-page .user-field-display,
.users-admin-page .user-field-display input {
    width: 26ch;
}

.users-admin-page .user-field-email,
.users-admin-page .user-field-email input {
    width: 36ch;
}

.users-admin-page .user-field-password,
.users-admin-page .user-field-password input {
    width: 24ch;
}

.users-admin-page .user-choice-row {
    gap: 12px 36px;
}

.users-admin-page .user-radio-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    min-width: 0;
    margin: 0;
    padding: 2px 0;
    border: 0;
}

.users-admin-page .user-radio-group > legend {
    margin-bottom: 7px;
    padding: 0;
    font-size: .9rem;
    font-weight: 600;
}

.users-admin-page .user-radio-group > label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: .9rem;
    font-weight: 400;
    cursor: pointer;
}

.users-admin-page .user-radio-group input[type="radio"] {
    display: inline-block;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    accent-color: var(--green-primary);
}

.users-admin-page .user-radio-group input[type="radio"]:disabled {
    cursor: not-allowed;
}

.users-admin-page .user-password-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .82rem;
}

.users-admin-page .user-edit-actions {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .users-admin-page .user-edit-box {
        padding: 10px 12px 12px;
    }

    .users-admin-page .user-edit-row {
        gap: 10px;
    }

    .users-admin-page .user-field-email {
        width: 100%;
    }

    .users-admin-page .user-field-email input {
        width: 100%;
        max-width: 36ch;
    }
}

/* A.090 - Grouped missing-pick notification preferences */
.profile-notification-group {
    border: 1px solid #93b18a;
    border-radius: 6px;
    background: #f1f6ee;
    padding: 12px;
    margin: 12px 0;
    min-width: 0;
}

.profile-notification-group legend {
    color: #244b30;
    font-weight: 700;
    padding: 0 6px;
}

.profile-notification-group .notification-choice {
    margin: 5px 0;
}

/* ============================================================
   Site-wide announcement ticker — A.091
   ============================================================ */


.news-ticker-track {
    display: flex;
    width: max-content;
    min-width: 100%;
    animation: phpfootball-ticker-scroll 35s linear infinite;
}

.news-ticker-content {
    display: inline-block;
    padding-left: 100vw;
    padding-right: 2rem;
    white-space: nowrap;
}

.news-ticker-separator {
    display: inline-block;
    color: var(--gold);
    padding: 0 1.5rem;
}

.news-ticker:hover .news-ticker-track,
.news-ticker:focus-within .news-ticker-track {
    animation-play-state: paused;
}

@keyframes phpfootball-ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-ticker {
        overflow-x: auto;
    }

    .news-ticker-track {
        width: auto;
        min-width: 0;
        animation: none;
    }

    .news-ticker-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* Administrator dashboard menu links */

.page-container .grid section ul li a {
    color: #285b32;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 4px 0;
    transition: color 0.15s ease;
}

.page-container .grid section ul li a:visited {
    color: #285b32;
}

.page-container .grid section ul li a:hover,
.page-container .grid section ul li a:focus-visible {
    color: #173d20;
    text-decoration: none;
    background-color: #edf4e9;
}

/* Audit log filters, table and pagination */

.audit-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin: 18px 0;
}

.audit-filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audit-filters input,
.audit-filters select {
    max-width: 200px;
    padding: 6px;
}

.audit-table-wrap {
    overflow-x: auto;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.audit-table th,
.audit-table td {
    padding: 8px;
    border-bottom: 1px solid #c7c7b8;
    text-align: left;
    vertical-align: top;
}

.audit-table th {
    background: #e5ecd9;
}

.audit-details {
    max-width: 300px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.audit-pagination {
    display: flex;
    gap: 18px;
    margin: 20px 0;
}

/* Player transaction log table and pagination */

.transaction-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.transaction-table th,
.transaction-table td {
    padding: 8px;
    border-bottom: 1px solid #c7c7b8;
    text-align: left;
    vertical-align: top;
}

.transaction-table th {
    background: #e5ecd9;
}

.transaction-pagination {
    display: flex;
    gap: 18px;
    margin: 20px 0;
}

/* Current game status heading and feed-check timestamps */

.current-game-status-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.current-game-status-title {
    margin: 0;
}

.current-game-status-checks {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: right;
    flex-shrink: 0;
}

/* Registration anti-spam honeypot */

.registration-honeypot {
    position: absolute;
    left: -10000px;
}

/* Pool Summary — consolidated layout */

.pool-summary-layout {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
}

@media (max-width: 1200px) {
    .pool-summary-layout {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 1100px) {
    .pool-summary-layout {
        gap: 18px;
    }
}

/* Pool Summary — consolidated table presentation */

.pool-summary-page {
    width: min(1400px, calc(100% - 30px));
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    padding-bottom: 30px;
}

.pool-summary-page > h1 {
    margin: 0 0 18px;
    text-align: center;
}

.pool-summary-section {
    min-width: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.pool-summary-section h2 {
    margin: 0 0 15px;
    padding: 0;
    font-size: 0.84rem;
    font-weight: 700;
}

.pool-summary-section .table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.pool-summary-table {
    width: max-content;
    min-width: 0;
    table-layout: auto;
    border: 2px solid #111;
    border-collapse: collapse;
    background: #fff;
    color: #111;
    font-size: 0.78rem;
    line-height: 1.15;
}

.pool-summary-table th,
.pool-summary-table td {
    padding: 4px 8px;
    border: 1px solid #222;
    white-space: nowrap;
    vertical-align: middle;
}

.pool-summary-table thead th {
    background: #315820;
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.pool-summary-table tbody tr:nth-child(odd) {
    background: #fff;
}

.pool-summary-table tbody tr:nth-child(even) {
    background: #d4d4d4;
}

.pool-summary-number,
.pool-summary-total {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pool-summary-total {
    font-weight: 700;
}

/* Weekly Winners column alignment */

.pool-summary-section:first-child th:first-child,
.pool-summary-section:first-child td:first-child {
    text-align: center;
}

.pool-summary-section:first-child th:nth-child(2),
.pool-summary-section:first-child td:nth-child(2) {
    padding-right: 12px;
    padding-left: 12px;
    text-align: left;
}

/* Individual Statistics column alignment */

.pool-statistics-table {
    width: max-content;
    min-width: 0;
    table-layout: auto;
}

.pool-statistics-table th:not(:first-child),
.pool-statistics-table td:not(:first-child) {
    text-align: center;
}

.pool-statistics-table th:first-child,
.pool-statistics-table td:first-child {
    padding-right: 15px;
    padding-left: 15px;
    text-align: left;
}

.pool-statistics-table th:not(:first-child):not(:last-child),
.pool-statistics-table td:not(:first-child):not(:last-child) {
    padding-right: 8px;
    padding-left: 8px;
}

.pool-statistics-table th:last-child,
.pool-statistics-table td:last-child {
    padding-right: 15px;
    padding-left: 15px;
    text-align: center;
}

/* Winning pick emphasis */

.pool-statistics-table td.pool-week-winner {
    background: #d9edce !important;
    color: #173b16;
    font-weight: 700;
    box-shadow: inset 0 0 9px 2px rgba(69, 150, 48, 0.35);
}

/* Preserve navigation dropdown informational labels */

.site-nav .nav-dropdown span {
    display: block;
    padding: 8px 14px;
    color: #526c47;
    cursor: default;
}

@media (max-width: 1200px) {
    .pool-summary-section .table-wrap {
        max-width: 100%;
        overflow-x: auto;
    }
}


/* Contact Us — consolidated compact layout */

.contact-page {
    padding-top: 10px;
    padding-bottom: 14px;
}

.contact-page .login-card {
    width: min(100%, 720px);
}

.contact-page .login-card-body {
    padding: 10px 16px 12px;
}

.contact-page .contact-intro {
    margin: 0 0 8px;
    line-height: 1.5;
}

.contact-page .login-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin-bottom: 8px;
}

.contact-page .login-field label {
    font-size: .88rem;
}

.contact-page .login-field input,
.contact-page .login-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 1px solid #93aa83;
    border-radius: 5px;
    background: #fff;
    color: #173d1c;
    font: inherit;
}

.contact-page .login-field textarea {
    min-height: 85px;
    height: 95px;
    resize: vertical;
}

.contact-page .contact-captcha-image {
    display: block;
    width: 180px;
    max-width: 100%;
    height: 58px;
    object-fit: fill;
    border: 1px solid #93aa83;
    border-radius: 5px;
}

.contact-page .contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-page .contact-confirmation {
    padding: 14px;
    border: 1px solid #93aa83;
    border-radius: 5px;
    background: #e9f5df;
    color: #173d1c;
    line-height: 1.5;
}

.contact-page .login-primary,
.contact-page .login-secondary {
    margin-top: 5px;
    padding: 5px 8px;
}

.contact-page .contact-return {
    margin: 7px 0 0;
    text-align: center;
}

@media (max-width: 480px) {
    .contact-page .login-card-body {
        padding: 9px 11px;
    }
}


/* Player Registration — consolidated layout and controls */

.registration-page .login-card {
    width: min(100%, 650px);
    margin: 0 auto;
    padding: 10px 15px 12px;
}

.registration-page .login-card h2 {
    margin: 0 0 5px;
    text-align: center;
    color: #173d1c;
}

.registration-page .login-card > p {
    margin: 5px 0 8px;
}

.registration-page .login-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    margin-bottom: 7px;
}

.registration-page .login-field label {
    width: auto;
    margin: 0;
}

.registration-page .login-field input {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 5px 7px;
}

.registration-page #username {
    width: min(100%, 25ch);
}

.registration-page #display_name {
    width: min(100%, 34ch);
}

.registration-page #email {
    width: min(100%, 42ch);
}

.registration-page #password,
.registration-page #password_confirmation {
    width: min(100%, 27ch);
}

.registration-page #captcha {
    width: min(100%, 14ch);
}

.registration-page .contact-captcha-image {
    display: block;
    width: 180px;
    height: 58px;
    max-width: 100%;
    object-fit: fill;
}

.registration-page .help {
    margin: 2px 0;
    line-height: 1.3;
    font-size: .82rem;
}

.registration-page .registration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    align-items: start;
    margin: 12px 0;
}

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

.registration-page .registration-grid .profile-field input,
.registration-page .registration-grid .profile-field select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 7px;
}

.registration-page .registration-grid .password-label-row {
    margin-bottom: 5px;
}

.registration-page .registration-grid .password-label-row label {
    margin-bottom: 0;
}

.registration-page .password-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 1px;
    width: 100%;
    margin: 3px 0;
    padding: 0;
    list-style: none;
    font-size: .78rem;
}

.registration-page .password-rules li {
    margin: 0;
    line-height: 1.35;
    color: #a02020;
}

.registration-page .password-rules li.is-valid {
    color: #176020;
}

.registration-page .password-tooltip-content {
    text-align: left;
}

.registration-page .password-tooltip-content .password-rules {
    display: block;
    width: auto;
    margin: 5px 0 0;
    padding-left: 18px;
    list-style: disc;
    font-size: .85rem;
}

.registration-page .password-tooltip-content .password-rules li {
    margin: 2px 0;
}

.registration-page input.password-invalid,
.registration-page .registration-grid input.password-invalid {
    border: 2px solid #b32b2b;
    background: #f9dede;
}

.registration-page input.password-valid,
.registration-page .registration-grid input.password-valid {
    border: 2px solid #23813b;
    background: #dff3e3;
}

.registration-page .login-primary {
    width: 100%;
    margin-top: 7px;
}

.registration-page .login-card a,
.registration-page .login-card a:visited {
    color: #24552a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.registration-page .login-card a:hover,
.registration-page .login-card a:focus-visible {
    color: #143d1b;
    text-decoration-thickness: 2px;
}

.registration-page input:focus,
.registration-page select:focus {
    outline: 2px solid #496b53;
    outline-offset: 1px;
    border-color: #496b53;
    box-shadow: none;
}

.registration-page input:focus-visible,
.registration-page select:focus-visible {
    outline-color: #496b53;
}

.registration-page .registration-signin {
    display: flex;
    justify-content: center;
    margin: 10px 0 2px;
}

.registration-page .registration-signin .login-secondary,
.registration-page .registration-signin .login-secondary:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 8px 18px;
    box-sizing: border-box;
    color: #173d1c;
    background: #e1f0da;
    border: 1px solid #76976d;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
}

.registration-page .registration-signin .login-secondary:hover,
.registration-page .registration-signin .login-secondary:focus-visible {
    color: #173d1c;
    background: #cce6c1;
    border-color: #365f2d;
    text-decoration: none;
}

@media (max-width: 480px) {
    .registration-page {
        padding: 6px;
    }

    .registration-page .login-card {
        padding: 9px 11px;
    }
}

@media (max-width: 600px) {
    .registration-page .registration-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 380px) {
    .registration-page .password-rules {
        grid-template-columns: 1fr;
    }
}


/* Schedule Editor — consolidated responsive layout */

.schedule-edit-grid {
    display: grid;
    grid-template-columns:
        minmax(190px, 1.2fr)
        minmax(190px, 1.2fr)
        minmax(160px, 0.9fr)
        minmax(170px, 1fr);
    column-gap: 14px;
    row-gap: 8px;
    align-items: end;
}

.schedule-edit-away {
    grid-column: 1;
    grid-row: 1;
}

.schedule-edit-home {
    grid-column: 2;
    grid-row: 1;
}

.schedule-edit-date {
    grid-column: 3;
    grid-row: 1;
}

.schedule-edit-grid > .schedule-field:nth-of-type(1) {
    grid-column: 4;
    grid-row: 1;
    align-self: end;
}

.schedule-edit-grid > .schedule-field:nth-of-type(2),
.schedule-edit-grid > .schedule-field:nth-of-type(3) {
    position: static;
    top: auto;
    margin-top: 0;
    align-self: start;
}

.schedule-edit-grid > .schedule-field:nth-of-type(2) {
    grid-column: 1 / 3;
    grid-row: 2;
}

.schedule-edit-grid > .schedule-field:nth-of-type(3) {
    grid-column: 3 / 5;
    grid-row: 2;
}

.schedule-edit-grid > .schedule-field:nth-of-type(2)
> .schedule-field-title,
.schedule-edit-grid > .schedule-field:nth-of-type(3)
> .schedule-field-title {
    display: none;
}

.schedule-edit-grid .schedule-field-title {
    margin-bottom: 4px;
}

.schedule-edit-grid .schedule-inline {
    gap: 8px;
}

.schedule-edit-grid > .schedule-field:nth-of-type(1)
.schedule-inline label {
    position: relative;
    font-size: 0;
}

.schedule-edit-grid > .schedule-field:nth-of-type(1)
.schedule-inline select {
    height: 30px;
    font-size: 13px;
}

.schedule-edit-grid .schedule-score-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    justify-items: stretch;
}

.schedule-edit-grid .schedule-score-controls label {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: center;
    font-size: 0;
}

.schedule-edit-grid .schedule-score-controls label::before {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
}

.schedule-edit-grid .schedule-score-controls label:first-child::before {
    content: "Away Score";
}

.schedule-edit-grid .schedule-score-controls label:last-child::before {
    content: "Home Score";
}

.schedule-edit-grid .schedule-score-controls input[type="number"] {
    width: 70px;
    max-width: 70px;
    height: 30px;
    padding: 4px 6px;
    box-sizing: border-box;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1050px) {
    .schedule-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .schedule-edit-away,
    .schedule-edit-home,
    .schedule-edit-date,
    .schedule-edit-grid > .schedule-field:nth-of-type(1),
    .schedule-edit-grid > .schedule-field:nth-of-type(2),
    .schedule-edit-grid > .schedule-field:nth-of-type(3) {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .schedule-edit-grid {
        grid-template-columns: 1fr;
    }
}

/* Player Picks — consolidated layout and compact controls */

.player-picks-classic {
    max-width: 1200px;
    margin-inline: auto;
    padding-top: 8px;
    padding-bottom: 10px;
}

.player-picks-classic > h1 {
    margin: 4px 0 8px;
    font-size: 1.65rem;
}

.player-picks-classic .admin-picks-week-picker {
    margin: 4px auto 8px;
}

.player-picks-editor {
    max-width: 100%;
}

.player-picks-editor > h2 {
    margin: 8px 0 4px;
}

.player-picks-editor > p {
    margin: 3px 0 6px;
}

.player-picks-quick {
    margin: 5px auto 8px;
    text-align: center;
}

.player-picks-quick h3 {
    margin: 0 0 4px;
    color: #315820;
    font-size: 0.95rem;
}

.player-picks-quick-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.player-picks-quick-buttons button {
    width: auto;
    min-width: 90px;
    padding: 4px 11px;
    background: linear-gradient(#527b35, #31591f, #254719);
    color: #fff;
    border: 1px solid #183b17;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
}

.player-picks-quick-buttons button:hover {
    background: linear-gradient(#6b9850, #416b2d);
}

.player-picks-editor .player-picks-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0 auto;
}

.player-picks-editor .player-picks-table {
    width: 760px;
    min-width: 760px;
    max-width: none;
    margin: 0 auto;
    table-layout: fixed;
    border: 2px solid #222;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.80rem;
}

.player-picks-table th,
.player-picks-table td {
    border: 1px solid #777;
    padding: 2px 6px;
    line-height: 1.1;
    vertical-align: middle;
}

.player-picks-table thead th {
    background: #315820;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

.player-picks-table th:first-child,
.player-picks-table td:first-child {
    width: 180px;
}

.player-picks-table th:nth-child(2),
.player-picks-table td:nth-child(2),
.player-picks-table th:nth-child(3),
.player-picks-table td:nth-child(3) {
    width: 290px;
}

.player-picks-table tbody tr:nth-child(odd) {
    background: #fff;
}

.player-picks-table tbody tr:nth-child(even) {
    background: #d4d4d4;
}

.player-picks-table .player-picks-kickoff {
    text-align: center;
    white-space: normal;
    font-variant-numeric: tabular-nums;
}

.player-picks-kickoff small {
    display: block;
    color: #666;
    font-size: 0.72rem;
}

.player-picks-table .player-picks-team {
    text-align: left;
    white-space: normal;
}

.player-picks-table .player-picks-team > label:not(.player-picks-none) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 0;
    line-height: 1.1;
    cursor: pointer;
    white-space: normal;
}

.player-picks-team img {
    width: 22px;
    height: 19px;
    object-fit: contain;
    flex: 0 0 22px;
}

.player-picks-team span {
    min-width: 0;
    overflow-wrap: normal;
    white-space: normal;
}

.player-picks-table .player-picks-team input[type="radio"] {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
}

.player-picks-table .player-picks-none {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    margin: 3px 0 0 20px;
    font-size: 0.72rem;
    color: #555;
}

.player-picks-table tr.is-locked {
    color: #555;
}

.player-picks-table tr.is-locked input[type="radio"] {
    cursor: not-allowed;
}

.player-picks-editor .player-picks-tiebreaker {
    width: min(760px, 100%);
    margin: 8px auto;
    padding: 7px 10px;
    border: 2px solid #315820;
    background: #d9edce;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    text-align: center;
}

.player-picks-tiebreaker label {
    color: #173b16;
    font-weight: bold;
}

.player-picks-tiebreaker p {
    color: #315820;
    margin: 0;
}

.player-picks-tiebreaker input[type="number"] {
    width: 90px;
    margin: 0;
}

.player-picks-editor > button[type="submit"] {
    margin: 3px auto 6px;
    padding: 7px 16px;
}

/* Phone picks: retain the same form controls and kickoff locks. */
@media (max-width: 800px) {
    .player-picks-editor .player-picks-table {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        border: 0;
        font-size: 1rem;
    }

    .player-picks-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .player-picks-table tbody {
        display: block;
    }

    .player-picks-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #777;
        border-radius: 5px;
        overflow: hidden;
    }

    .player-picks-editor .player-picks-table td {
        display: block;
        width: 100%;
        padding: 8px 10px;
        border: 0;
    }

    .player-picks-table .player-picks-kickoff {
        background: #315820;
        color: #fff;
        line-height: 1.4;
    }

    .player-picks-kickoff small {
        color: #fff;
        font-size: .85rem;
    }

    .player-picks-table .player-picks-team + .player-picks-team {
        border-top: 1px solid #aaa;
    }

    .player-picks-table .player-picks-team::before {
        display: block;
        margin-bottom: 3px;
        color: #315820;
        font-size: .8rem;
        font-weight: bold;
        content: "Visitor";
    }

    .player-picks-table .player-picks-team:last-child::before {
        content: "Home";
    }

    .player-picks-table .player-picks-team > label:not(.player-picks-none) {
        min-height: 48px;
        gap: 8px;
        line-height: 1.4;
    }

    .player-picks-table .player-picks-team input[type="radio"] {
        width: 22px;
        height: 22px;
        accent-color: #315820;
    }

    .player-picks-team > label:has(input:checked) {
        background: #d9edce;
        outline: 2px solid #315820;
        outline-offset: 2px;
        border-radius: 3px;
    }

    .player-picks-classic .admin-picks-week-picker nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        font-size: 1rem;
    }

    .player-picks-quick-buttons {
        gap: 8px;
    }

    .player-picks-quick-buttons button {
        min-height: 44px;
        font-size: 1rem;
    }

    .player-picks-editor .player-picks-tiebreaker {
        display: block;
        padding: 12px;
    }

    .player-picks-tiebreaker input[type="number"] {
        min-height: 44px;
        margin: 8px auto;
        font-size: 1rem;
    }

    .player-picks-editor > button[type="submit"] {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }
}

/* Schedule team logos — 30x30 */

.schedule-team-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.schedule-team-logo {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
}

.schedule-team-cell strong {
    font-weight: 700;
}


/* Team editor logo previews and independent uploads — A.112 */

.team-logo-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0 8px;
}

.team-logo-upload-card {
    min-width: 0;
    padding: 14px;
    border: 1px solid #b5cda8;
    border-radius: 5px;
    background: #edf6e8;
}

.team-logo-upload-card h3 {
    margin: 0 0 12px;
    color: #315820;
    font-size: 1rem;
}

.team-logo-preview {
    display: block;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 12px;
}

.team-logo-preview-large {
    width: 180px;
    height: 100px;
    max-width: 100%;
}

.team-logo-preview-small {
    width: 30px;
    height: 30px;
}

.team-logo-upload-card form {
    display: grid;
    gap: 10px;
}

.team-logo-upload-card input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    font-size: 0.85rem;
}

.team-logo-upload-card button {
    justify-self: start;
}

.team-logo-upload-note {
    margin: 8px 0 14px;
    color: #52634c;
    font-size: 0.9rem;
}

@media (max-width: 650px) {
    .team-logo-upload-grid {
        grid-template-columns: 1fr;
    }
}


/* Compact team logo editor — A.113 */

.team-logo-upload-grid {
    gap: 10px;
    margin: 10px 0 4px;
}

.team-logo-upload-card {
    padding: 10px;
}

.team-logo-upload-card h3 {
    margin-bottom: 7px;
}

.team-logo-preview-large {
    width: 130px;
    height: 55px;
    margin-bottom: 7px;
}

.team-logo-preview-small {
    width: 30px;
    height: 30px;
    margin-bottom: 7px;
}

.team-logo-upload-card form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
}

.team-logo-upload-card form label {
    min-width: 0;
    margin: 0;
}

.team-logo-upload-card input[type="file"] {
    box-sizing: border-box;
    min-width: 0;
    padding: 5px;
    margin-top: 4px;
}

.team-logo-upload-card button {
    align-self: end;
    white-space: nowrap;
    padding: 8px 12px;
}

.team-logo-upload-note {
    margin: 5px 0 8px;
}

@media (max-width: 650px) {
    .team-logo-upload-card form {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-logo-upload-card button {
        justify-self: start;
    }
}


/* Pool rules editor and public rules — A.114 */
.pool-rules-editor-page,
.pool-rules-page {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pool-rules-editor-page > h1,
.pool-rules-page > h1 {
    text-align: center;
    margin-bottom: 12px;
}

.pool-rules-editor-page > form {
    margin-top: 14px;
}

.pool-rules-editor-page textarea {
    width: 100%;
    box-sizing: border-box;
}

.pool-rules-editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}

.pool-rules-content {
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.pool-rules-content h2,
.pool-rules-content h3,
.pool-rules-content h4 {
    margin-top: 1.2em;
    margin-bottom: 0.45em;
}

.pool-rules-content table {
    width: 100%;
    border-collapse: collapse;
}

.pool-rules-content th,
.pool-rules-content td {
    border: 1px solid #777;
    padding: 6px 8px;
    text-align: left;
}

@media (max-width: 700px) {
    .pool-rules-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Public Pool Rules inner container — A.115 */
.pool-rules-content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 20px auto 28px;
    padding: clamp(20px, 3vw, 34px);
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 4px solid var(--green-primary);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .pool-rules-content {
        margin-top: 14px;
        margin-bottom: 20px;
        padding: 16px;
    }
}

/* About PHPfootball — A.116 */
.about-page {
    width: min(1200px, calc(100% - 40px));
    margin-top: 20px;
    margin-bottom: 24px;
}
.about-shell {
    overflow: hidden;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.about-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    color: var(--white);
    background: linear-gradient(115deg, var(--green-dark), #173b20);
    border-bottom: 3px solid var(--green-medium);
}
.about-ball { font-size: 38px; }
.about-banner h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(22px, 3vw, 30px);
}
.about-banner p { margin: 5px 0 0; color: #e1eddc; font-size: 14px; }
.about-content { padding: 18px; }
.about-history {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
    gap: 22px;
    align-items: center;
    padding: 0 4px 14px;
}
.about-history p { line-height: 1.65; }
.about-mascot { margin: 0; text-align: center; }
.about-mascot img { display: block; width: min(100%, 320px); height: auto; margin: auto; }
.about-mascot figcaption { color: var(--muted); font-size: 13px; font-style: italic; }
.about-section, .about-release {
    margin-top: 10px;
    padding: 14px 16px 16px;
    background: linear-gradient(135deg, #f3f7e9, #faf9eb);
    border: 1px solid #dce8d0;
    border-radius: 7px;
}
.about-section h2, .about-release h2 {
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 5px solid var(--green-medium);
    color: var(--green-dark);
    font-size: 22px;
}
.about-tech-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about-tech-card {
    display: grid;
    grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: rgba(255,255,255,.6);
    border: 1px solid #e1e9d8;
    border-radius: 6px;
}
.about-tech-card h3, .about-credits h3, .about-tinymce h3 {
    margin: 0 0 6px;
    color: var(--green-dark);
    font-size: 17px;
}
.about-tech-card p { margin: 4px 0; line-height: 1.45; }
.about-php-logo {
    display: grid;
    place-items: center;
    width: min(100%, 140px);
    min-height: 60px;
    margin: auto;
    border: 3px solid #315a98;
    border-radius: 50%;
    background: linear-gradient(145deg, #a8bde9, #617fbf);
    color: white;
    font: italic 700 39px Georgia, serif;
    letter-spacing: -3px;
    text-shadow: 1px 2px 2px #24385e;
}
.about-db-logo {
    color: #17477d;
    font-weight: 800;
    font-size: clamp(20px, 2.4vw, 27px);
    text-align: center;
    overflow-wrap: anywhere;
}
.about-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.about-features li { position: relative; padding-left: 27px; line-height: 1.45; }
.about-features li::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #176a37;
    color: white;
    content: "✓";
    font-size: 12px;
    font-weight: 800;
}
.about-credits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-credits article { min-width: 0; padding: 6px 14px; overflow-wrap: anywhere; }
.about-credits article + article { border-left: 1px solid #cbdcc1; }
.about-credits p { font-size: 14px; line-height: 1.5; }
.about-wwwpages {
    margin: 12px 0 8px;
    color: #1748b9;
    font: italic 900 clamp(19px, 2vw, 27px) Arial, sans-serif;
    text-align: center;
    text-shadow: 1px 1px 0 #f0a13a;
    overflow-wrap: anywhere;
}
.about-support { color: var(--green-dark); font-weight: 700; text-align: center; }
.about-tinymce { display: grid; grid-template-columns: 85px minmax(0, 1fr); gap: 16px; align-items: center; }
.about-tinymce-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: auto;
    transform: rotate(45deg);
    border: 6px solid #2452cf;
    color: #2452cf;
    font-size: 26px;
}
.about-release { text-align: center; background: #edf5e4; }
.about-release p { line-height: 1.55; }
.about-release-brand {
    padding-top: 8px;
    border-top: 1px solid #d3e0ca;
    color: var(--green-dark);
    font-weight: 700;
}
@media (max-width: 800px) {
    .about-history { grid-template-columns: minmax(0, 1fr); }
    .about-mascot img { width: min(100%, 260px); }
    .about-credits { grid-template-columns: minmax(0, 1fr); }
    .about-credits article { padding: 12px 4px; }
    .about-credits article + article { border-top: 1px solid #cbdcc1; border-left: 0; }
}
@media (max-width: 600px) {
    .about-page { width: calc(100% - 16px); margin-top: 12px; }
    .about-content { padding: 9px; }
    .about-banner { padding: 12px; gap: 8px; }
    .about-section, .about-release { padding: 12px 10px; }
    .about-section h2, .about-release h2 { font-size: 19px; }
    .about-tech-grid, .about-features { grid-template-columns: minmax(0, 1fr); }
    .about-tech-card { grid-template-columns: 85px minmax(0, 1fr); gap: 10px; padding: 9px; }
    .about-php-logo { min-height: 48px; font-size: 30px; }
    .about-tinymce { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
    .about-tinymce-mark { width: 38px; height: 38px; border-width: 5px; font-size: 18px; }
}

/* Dashboard compact player pick status — A.117 */

.dashboard-pick-status {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 12px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    font-size: 0.875rem;
    line-height: 1.4;
}

.dashboard-pick-complete {
    color: var(--green-dark);
}

.dashboard-pick-missing {
    color: var(--danger);
}

/* Dashboard centered pick status — A.118 */

.current-game-status-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
}

.current-game-status-title {
    grid-column: 1;
}

.current-game-status-checks {
    grid-column: 3;
    justify-self: end;
}

.dashboard-pick-status {
    grid-column: 2;
    justify-self: center;
    width: auto;
    margin: 0;
    white-space: nowrap;
}

.dashboard-pick-status-complete {
    background: var(--green-pale);
    border-color: var(--border);
}

.dashboard-pick-status-missing {
    background: #fce8e6;
    border-color: #e8b2ae;
}

@media (max-width: 800px) {
    .current-game-status-heading {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .current-game-status-title,
    .dashboard-pick-status,
    .current-game-status-checks {
        grid-column: 1;
    }

    .dashboard-pick-status {
        justify-self: center;
    }

    .current-game-status-checks {
        justify-self: stretch;
        text-align: center;
    }
}

/* Dashboard compact Week Summary — A.119 */

.dashboard-week-summary {
    padding: 10px 16px;
}

.dashboard-week-summary h2 {
    margin: 0 0 6px;
    line-height: 1.25;
}

.dashboard-week-summary p {
    margin: 4px 0;
    line-height: 1.35;
}

.dashboard-week-summary p:last-child {
    margin-bottom: 0;
}

/* Dashboard Game Status team logos — A.120 */

.dashboard-game-team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dashboard-game-team-logo {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 20px;
}

/* Dashboard centered week and conditional bye teams — A.121 */

.dashboard-week-summary {
    text-align: center;
    padding: 10px 16px;
}

.dashboard-week-summary h2 {
    margin: 0;
    line-height: 1.3;
}

.dashboard-week-summary .dashboard-week-byes {
    margin: 6px 0 0;
    line-height: 1.35;
}

/* Dashboard missing-picks warning — A.122 */

.dashboard-pick-status.dashboard-pick-status-missing {
    background: #c62828;
    border: 2px solid #000000;
    border-radius: 5px;
    padding: 7px 12px;
    color: #ffffff;
    font-weight: 700;
}

.dashboard-pick-status.dashboard-pick-status-missing strong {
    color: #ffffff;
    font-weight: 700;
}

/* Masthead Welcome/Profile top alignment — A.123 */

.site-header-actions {
    align-self: flex-start;
    align-items: flex-start;
}

.site-header-actions .site-user {
    align-self: flex-start;
    margin-top: 0;
}

/* Masthead Welcome/Profile upper-right positioning — A.124 */

.site-header {
    position: relative;
}

.site-header-actions {
    position: absolute;
    top: 2px;
    right: 24px;
    margin: 0;
    align-self: auto;
    align-items: flex-start;
}

.site-header-actions .site-user {
    margin: 0;
    align-self: auto;
}

@media (max-width: 700px) {
    .site-header-actions {
        position: static;
        margin-left: auto;
    }
}

/* Miscellaneous Configuration compact layout — A.125 */

.misc-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin: 14px 0;
}

.misc-feature-grid .misc-feature-box {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #9aaa97;
    border-radius: 5px;
    background: #fafbf7;
}

.misc-feature-grid .misc-feature-box legend {
    padding: 0 6px;
    color: var(--green-dark);
    font-weight: 700;
}

.misc-feature-grid .misc-feature-box > label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 4px 20px 6px 0;
    font-weight: 600;
    white-space: nowrap;
}

.misc-feature-grid .misc-feature-box > label input[type="radio"] {
    width: auto;
    margin: 0;
}

.misc-feature-grid .misc-feature-box .help {
    margin: 8px 0 0;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .misc-feature-grid {
        grid-template-columns: 1fr;
    }
}


/* Dashboard compact Game Status table — A.126 */

.dashboard-game-status-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.dashboard-game-status-table th,
.dashboard-game-status-table td {
    padding: 5px 8px;
    line-height: 1.2;
    vertical-align: middle;
}

.dashboard-game-status-table .dashboard-game-team {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.dashboard-game-status-table .dashboard-game-team-logo {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.dashboard-game-status-table th:nth-child(3),
.dashboard-game-status-table th:nth-child(5),
.dashboard-game-status-table th:nth-child(7),
.dashboard-game-status-table td:nth-child(3),
.dashboard-game-status-table td:nth-child(5),
.dashboard-game-status-table td:nth-child(7) {
    text-align: center;
    white-space: nowrap;
}

.dashboard-game-status-table th:first-child,
.dashboard-game-status-table td:first-child,
.dashboard-game-status-table th:nth-child(6),
.dashboard-game-status-table td:nth-child(6) {
    white-space: nowrap;
}


/* Ultra-compact dashboard Game Status — A.127 */

.dashboard-game-status-table {
    width: auto;
    min-width: 0;
    table-layout: auto;
    font-size: 13px;
}

.dashboard-game-status-table th,
.dashboard-game-status-table td {
    padding: 2px 5px;
    line-height: 1.1;
    height: auto;
}

.dashboard-game-status-table .dashboard-game-team {
    gap: 3px;
    white-space: nowrap;
}

.dashboard-game-status-table .dashboard-game-team-logo {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.dashboard-game-status-table th:first-child,
.dashboard-game-status-table td:first-child {
    white-space: nowrap;
}

.dashboard-game-status-table th:nth-child(2),
.dashboard-game-status-table th:nth-child(4),
.dashboard-game-status-table td:nth-child(2),
.dashboard-game-status-table td:nth-child(4) {
    white-space: nowrap;
}


/* Balanced dashboard Game Status layout — A.128 */

/* Allow the Game Status panel to follow its table width. */
.panel:has(> .table-wrap > .dashboard-game-status-table) {
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

/* Keep the table readable without excessive whitespace. */
.dashboard-game-status-table {
    width: auto;
    min-width: 0;
    font-size: 14px;
}

.dashboard-game-status-table th,
.dashboard-game-status-table td {
    padding: 4px 7px;
    line-height: 1.25;
    height: auto;
}

.dashboard-game-status-table .dashboard-game-team {
    gap: 5px;
}

.dashboard-game-status-table .dashboard-game-team-logo {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

/* Permit horizontal scrolling on narrow displays. */
.panel:has(> .table-wrap > .dashboard-game-status-table)
.table-wrap {
    max-width: 100%;
    overflow-x: auto;
}


/* Dashboard scoreboard panel breathing room — A.129 */

.panel:has(> .table-wrap > .dashboard-game-status-table) {
    width: max-content;
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}


/* Dashboard scoreboard panel width adjustment — A.130 */

.panel:has(> .table-wrap > .dashboard-game-status-table) {
    width: fit-content;
    min-width: min(110%, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}


/* Correct scoreboard panel and table proportions — A.131 */

.panel:has(> .table-wrap > .dashboard-game-status-table) {
    display: table;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.panel:has(> .table-wrap > .dashboard-game-status-table)
.table-wrap {
    width: auto;
    max-width: 100%;
}

.dashboard-game-status-table {
    width: 100%;
    min-width: 0;
}

.dashboard-game-status-table th,
.dashboard-game-status-table td {
    padding-left: 10px;
    padding-right: 10px;
}


/* Administrator lockout action: match dashboard menu links. */
.page-container .grid section ul li form[action="/clear_login_lockouts.php"] button {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    color: #285b32;
    font: inherit;
    font-weight: 600;
    display: block;
    padding: 4px 0;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.page-container .grid section ul li form[action="/clear_login_lockouts.php"] button:hover,
.page-container .grid section ul li form[action="/clear_login_lockouts.php"] button:focus-visible {
    color: #173d20;
    text-decoration: none;
    background-color: #edf4e9;
}
