:root {
    color-scheme: light;
    --page: #071d34;
    --ink: #102846;
    --muted: #58708b;
    --line: #b8cbe3;
    --panel: #ffffff;
    --panel-strong: #d9e8fa;
    --accent: #c92828;
    --link: #163f75;
    --field: #f8fbff;
    --field-ink: #102846;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 14px/1.45 Arial, Helvetica, sans-serif;
}

a {
    color: var(--link);
}

button,
.button-link {
    background: #e8edf2;
    border: 1px solid #9fb1c2;
    border-radius: 4px;
    color: #10243a;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 700;
    padding: 7px 12px;
    text-decoration: none;
}

input,
select,
textarea {
    background: var(--field);
    border: 1px solid #a7b6c4;
    border-radius: 3px;
    color: var(--field-ink);
    font: inherit;
    min-height: 30px;
    padding: 5px 7px;
    width: 100%;
}

textarea {
    resize: vertical;
}

.top-strip {
    background: var(--accent);
    height: 5px;
}

.site-shell {
    margin: 0 auto;
    max-width: 1000px;
    min-height: 100vh;
    padding: 14px 14px 24px;
}

.site-header {
    border-bottom: 1px solid var(--line);
    padding: 0 0 15px;
}

.signin-prompt {
    display: block;
    margin: 0 0 12px;
    text-align: right;
}

.signin-prompt span {
    color: var(--muted);
    margin: 0 5px;
}

.signin-prompt a {
    color: var(--link);
    text-decoration: underline;
}

.message-unread-badge {
    background: #b43334;
    border-radius: 999px;
    color: #fff !important;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 4px !important;
    min-width: 18px;
    padding: 3px 5px;
    text-align: center;
    text-decoration: none;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: flex;
    gap: 18px;
    text-decoration: none;
}

.brand img {
    height: auto;
    max-width: min(100%, 430px);
    width: min(100%, 430px);
}

.brand span {
    color: var(--muted);
    font-size: 13px;
}

.page-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 190px minmax(0, 1fr);
    padding-top: 18px;
}

.side-nav {
    align-self: start;
    border: 1px solid var(--line);
    background: #0a223b;
}

.side-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--ink);
    display: block;
    font-weight: 700;
    padding: 10px 12px;
    text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus {
    background: var(--panel-strong);
}

.content {
    min-width: 0;
}

h1,
h2 {
    margin: 0 0 12px;
}

h1 {
    font-size: 22px;
}

h2 {
    font-size: 17px;
}

.feature,
.home-lists section,
.legacy-form,
.bio-detail,
.intro {
    border: 1px solid var(--line);
    background: var(--panel);
    margin-bottom: 16px;
    padding: 14px;
}

.support-link-list {
    background: var(--panel);
    border: 1px solid var(--line);
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.support-link-list li {
    border-bottom: 1px solid #d7e2ef;
}

.support-link-list li:last-child {
    border-bottom: 0;
}

.support-link-list a {
    display: block;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 14px;
}

.bio-summary {
    display: grid;
    gap: 16px;
    grid-template-columns: 180px minmax(0, 1fr);
}

.bio-summary img {
    background: #dbe5ef;
    border: 1px solid #dfe8ef;
    display: block;
    max-width: 100%;
    width: 180px;
}

.facts,
.results,
.legacy-form table {
    border-collapse: collapse;
    width: 100%;
}

.facts th,
.facts td,
.results th,
.results td,
.legacy-form th,
.legacy-form td {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.facts th,
.legacy-form th {
    color: var(--muted);
    width: 34%;
}

.results th {
    background: var(--panel-strong);
}

.results td {
    background: #0c2847;
}

.results form {
    margin: 0;
}

.results button {
    padding: 4px 8px;
}

.table-icon {
    color: var(--link);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.wide th {
    width: 55%;
}

.jump-form {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin: 0 0 16px;
}

.jump-form select {
    max-width: 260px;
}

.home-lists {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.plain-list li + li {
    margin-top: 8px;
}

.form-actions {
    margin-top: 14px;
    text-align: center;
}

.form-note {
    font-size: 12px;
    margin-top: 6px;
    text-align: right;
}

.form-hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.form-actions.left {
    text-align: left;
}

.auth-columns {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
}

.media-tools {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
}

.media-tools p {
    margin-top: 0;
}

.photo-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.photo-card {
    background: #0c2847;
    border: 1px solid var(--line);
    display: grid;
    gap: 10px;
    padding: 10px;
}

.photo-card.is-main {
    border-color: var(--link);
}

.photo-card img {
    aspect-ratio: 4 / 3;
    background: #dbe5ef;
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: block;
    object-fit: cover;
    width: 100%;
}

.video-card img {
    background: #000;
}

.photo-card-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.photo-card-actions form {
    margin: 0;
}

.photo-card-actions button {
    padding: 5px 9px;
}

.main-photo-label {
    color: var(--link);
    font-weight: 700;
}

.empty-state {
    margin: 0;
}

.video-player {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 16px;
    padding-bottom: 16px;
    text-align: center;
}

.video-player iframe {
    aspect-ratio: 4 / 3;
    border: 0;
    max-width: 425px;
    width: 100%;
}

.video-count {
    font-weight: 700;
    margin-bottom: 8px;
}

.video-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.notice {
    border: 1px solid var(--line);
    margin-bottom: 16px;
    padding: 12px 14px;
}

.notice.success {
    background: #163f2c;
}

.notice.error {
    background: #4b1c22;
}

.notice.warning {
    background: #4a4218;
}

.message-layout {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: 170px minmax(0, 1fr);
}

.message-nav a {
    display: block;
    font-weight: 700;
    padding: 4px 0;
}

.message-nav span,
.message-row.is-new td,
.message-row.is-reply td {
    color: var(--link);
    font-weight: 700;
}

.message-results input[type="checkbox"],
.message-layout input[type="checkbox"],
.message-detail input[type="checkbox"],
.results input[type="radio"] {
    min-height: auto;
    width: auto;
}

.results form label {
    display: block;
    margin-bottom: 6px;
}

.admin-header .brand span {
    color: var(--link);
    font-weight: 700;
}

.decision-form {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 16px;
    padding-top: 14px;
}

.hp-field {
    left: -10000px;
    position: absolute;
    width: 1px;
}

.legal-check {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.legal-check input {
    min-height: auto;
    width: auto;
}

.inline-form {
    display: inline;
}

.inline-form button {
    background: none;
    border: 0;
    color: var(--link);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.captcha-box {
    margin: 14px 0;
}

.message-body {
    padding: 22px 10px;
}

.range-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 80px 1fr 1fr;
}

.range-grid label {
    align-items: center;
    display: flex;
    gap: 6px;
}

.range-grid input[type="radio"] {
    min-height: auto;
    width: auto;
}

.nested-range th {
    width: auto;
}

.nested-range .height-grid {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
}

.nested-range input[type="radio"] {
    min-height: auto;
    width: auto;
}

.two-inputs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.date-grid,
.height-grid,
.location-grid,
.weight-grid {
    align-items: center;
    display: grid;
    gap: 8px;
}

.date-grid {
    grid-template-columns: 90px 90px 100px;
}

.location-grid {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.6fr);
}

.height-grid {
    grid-template-columns: auto 90px 90px auto minmax(90px, 1fr);
}

.weight-grid {
    grid-template-columns: 110px auto auto;
}

.choice-list,
.checkbox-grid {
    display: grid;
    gap: 7px;
}

.choice-list label,
.checkbox-grid label,
.height-grid label,
.weight-grid label {
    align-items: center;
    display: flex;
    gap: 6px;
}

.choice-list input,
.checkbox-grid input,
.auditions-form input[type="checkbox"],
.height-grid input[type="radio"],
.weight-grid input[type="radio"] {
    min-height: auto;
    width: auto;
}

.choice-list.stacked {
    align-items: flex-start;
    flex-direction: column;
}

.edit-bio-form h2 {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 18px;
    padding-top: 14px;
}

.edit-bio-form h2:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.essay-field {
    margin-top: 12px;
}

.essay-field label {
    display: block;
    margin-bottom: 6px;
}

.required-marker {
    color: var(--link);
    font-weight: 700;
    margin-right: 3px;
}

.text-block {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 16px;
    padding-top: 14px;
}

.text-block p {
    white-space: pre-line;
}

.bio-detail header {
    align-items: baseline;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    margin-top: 22px;
    padding-top: 14px;
    text-align: center;
}

.site-footer span {
    color: var(--muted);
    margin: 0 5px;
}

@media (max-width: 760px) {
    .brand {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .bio-summary,
    .home-lists,
    .auth-columns,
    .media-tools {
        grid-template-columns: 1fr;
    }

    .jump-form,
    .bio-detail header {
        align-items: stretch;
        flex-direction: column;
    }

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

    .date-grid,
    .height-grid,
    .location-grid,
    .weight-grid,
    .message-layout {
        grid-template-columns: 1fr;
    }
}

/* First visual refresh pass: preserve the classic shell while improving contrast, spacing, and scanability. */
body {
    background: #071d34;
}

a {
    color: var(--link);
    font-weight: 700;
}

button,
.button-link {
    background: #bfd4ee;
    border: 1px solid #a7bfdd;
    border-radius: 2px;
    color: #0d2b50;
    min-height: 34px;
    padding: 8px 16px;
    text-transform: uppercase;
}

.button-link.secondary {
    background: #eef5fd;
}

input,
select,
textarea {
    background: #f8fbff;
    border-color: #b7c9df;
    border-radius: 2px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2d5e9f;
    box-shadow: 0 0 0 2px rgba(45, 94, 159, 0.16);
    outline: 0;
}

.site-shell {
    background: #eef5fd;
    border: 1px solid #a9c0da;
    border-radius: 4px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    margin-top: 26px;
    max-width: 1120px;
    min-height: auto;
    overflow: hidden;
    padding: 0;
}

.site-header {
    background: #e5effb;
    border-bottom: 1px solid #a9c0da;
    color: #102846;
    display: flex;
    flex-direction: row-reverse;
    gap: 18px;
    justify-content: space-between;
    min-height: 70px;
    padding: 14px 20px;
}

.signin-prompt {
    color: #102846;
    flex: 0 0 auto;
    margin: 0;
    text-align: right;
}

.signin-prompt a {
    color: #102846;
}

.brand {
    color: #102846;
    gap: 14px;
}

.brand img {
    max-width: min(100%, 390px);
    width: min(100%, 390px);
}

.brand span {
    color: #345675;
}

.page-grid {
    gap: 0;
    grid-template-columns: 220px minmax(0, 1fr);
    padding-top: 0;
}

.side-nav {
    align-self: stretch;
    background: #123d72;
    border: 0;
    min-height: 620px;
    padding: 22px 0;
}

.side-nav a {
    border: 0;
    color: #f8fbff;
    font-size: 12px;
    letter-spacing: 0;
    padding: 13px 22px;
    text-transform: uppercase;
}

.side-nav a:hover,
.side-nav a:focus {
    background: #0d315f;
}

.content {
    background: #f6fbff;
    color: #102846;
    min-height: 620px;
    padding: 28px 34px 34px;
}

.content h1 {
    color: #102846;
    font-size: 28px;
    line-height: 1.1;
    text-transform: uppercase;
}

.content h2 {
    color: #102846;
    font-size: 16px;
    text-transform: uppercase;
}

.page-heading {
    margin-bottom: 18px;
}

.page-heading p {
    margin: 0;
    max-width: 640px;
}

.section-kicker {
    color: #5c7897;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.home-hero {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 260px;
    margin-bottom: 20px;
}

.home-intro {
    color: #345675;
    margin: -6px 0 20px;
    max-width: 600px;
}

.feature,
.home-lists section,
.home-rail section,
.explore-section,
.explore-signin-panel,
.legacy-form,
.bio-detail,
.intro,
.results-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
    color: #102846;
}

.featured-bio-card {
    padding: 22px;
}

.home-feature-card {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.home-feature-photo {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #c5d5e8;
    display: flex;
    justify-content: center;
    min-height: 260px;
    padding: 10px;
}

.home-feature-photo span {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.home-feature-photo img {
    background: #ffffff;
    border: 0;
    display: block;
    max-height: 310px;
    object-fit: contain;
    width: 100%;
}

.home-feature-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-feature-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.home-feature-kicker span {
    background: #eef6ff;
    border: 1px solid #bfd4ee;
    color: #244663;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 7px;
    text-transform: uppercase;
}

.home-feature-details h2 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.home-feature-location {
    color: #5c7897;
    font-weight: 700;
    margin: 0 0 10px;
}

.home-fact-strip {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 4px 0 0;
}

.home-fact-strip div {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    margin: -1px 0 0 -1px;
    padding: 8px 10px;
}

.home-fact-strip dt {
    color: #5c7897;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-fact-strip dd {
    color: #102846;
    font-weight: 700;
    margin: 3px 0 0;
}

.home-feature-summary {
    color: #244663;
    margin: 12px 0 0;
}

.home-actions {
    margin-top: auto;
}

.home-path-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.home-path-grid a {
    background: #ffffff;
    border: 1px solid #c8d9ec;
    color: #102846;
    padding: 12px;
    text-decoration: none;
}

.home-path-grid a:hover,
.home-path-grid a:focus {
    background: #eaf3fd;
    border-color: #7fa4cf;
}

.home-path-grid span {
    color: #5c7897;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.home-path-grid strong {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.bio-summary {
    gap: 22px;
    grid-template-columns: 200px minmax(0, 1fr);
}

.bio-summary img {
    border: 1px solid #c5d5e8;
    max-height: 250px;
    object-fit: cover;
    width: 200px;
}

.compact-facts th,
.compact-facts td {
    padding: 5px 0;
}

.facts,
.results,
.legacy-form table {
    color: #102846;
}

.facts th,
.facts td,
.results th,
.results td,
.legacy-form th,
.legacy-form td {
    border-color: #d6e3f1;
}

.facts th,
.legacy-form th {
    color: #345675;
}

.results th {
    background: #d9e8fa;
    color: #17385e;
    font-size: 12px;
    text-transform: uppercase;
}

.results td {
    background: #ffffff;
}

.results tr:nth-child(even) td {
    background: #f5f9fe;
}

.results-panel {
    margin-top: 18px;
    padding: 14px;
}

.results-panel header {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.results-panel header h2 {
    margin: 0;
}

.results-panel header span {
    color: #5c7897;
    font-weight: 700;
}

.home-rail {
    display: grid;
    gap: 16px;
}

.home-stat-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-stat-grid div {
    background: #f8fbff;
    border: 1px solid #d6e3f1;
    padding: 10px;
}

.home-stat-grid strong {
    color: #102846;
    display: block;
    font-size: 22px;
    line-height: 1;
}

.home-stat-grid span {
    color: #5c7897;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-top: 5px;
    text-transform: uppercase;
}

.home-rail section,
.home-lists section {
    margin-bottom: 0;
    padding: 16px;
}

.home-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-activity-list li {
    border-top: 1px solid #d6e3f1;
    display: grid;
    gap: 10px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 12px 0;
}

.home-activity-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.home-activity-photo {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #d6e3f1;
    display: flex;
    height: 64px;
    justify-content: center;
    overflow: hidden;
}

.home-activity-photo img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.home-activity-list span {
    color: #5c7897;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.home-activity-list .profile-badges {
    margin-top: 7px;
}

.plain-list li {
    border-top: 1px solid #d6e3f1;
    padding: 10px 0;
}

.plain-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.plain-list li span {
    color: #5c7897;
    display: block;
    font-size: 12px;
    font-weight: 400;
    margin-top: 2px;
}

.home-success-stat {
    align-items: center;
    background: #102846;
    border-color: #244978;
    color: #eef5ff;
    display: grid;
    gap: 6px 18px;
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 18px;
    padding: 16px 18px;
}

.home-success-stat strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.home-success-stat span {
    display: block;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-success-stat p {
    color: #c8d9ec;
    grid-column: 2;
    margin: 0;
}

.jump-form {
    background: #eaf3fd;
    border: 1px solid #c8d9ec;
    justify-content: space-between;
    padding: 12px 14px;
}

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

.explore-heading {
    margin-bottom: 18px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 18px;
}

.filter-chips a {
    background: #ffffff;
    border: 1px solid #c8d9ec;
    color: #244663;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.filter-chips a:hover,
.filter-chips a:focus,
.filter-chips a.is-active {
    background: #123d72;
    border-color: #123d72;
    color: #ffffff;
}

.explore-signin-panel {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 16px;
}

.explore-signin-panel h2 {
    margin: 0;
}

.explore-more-panel {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 16px;
}

.explore-more-panel h2 {
    margin: 0 0 4px;
}

.explore-more-panel p:last-child {
    margin-bottom: 0;
}

.explore-section {
    margin-bottom: 18px;
    padding: 16px;
}

.explore-section > header {
    align-items: baseline;
    border-bottom: 1px solid #d6e3f1;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.explore-section h2 {
    margin: 0;
}

.explore-section > header > span {
    color: #5c7897;
    font-weight: 700;
    white-space: nowrap;
}

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

.explore-scroll-anchor {
    display: block;
    grid-column: 1 / -1;
    height: 1px;
    scroll-margin-top: 18px;
}

.explore-card {
    background: #fbfdff;
    border: 1px solid #d6e3f1;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-width: 0;
}

.explore-card.is-new-batch {
    border-color: #8fb4dc;
    box-shadow: inset 0 3px 0 #8fb4dc;
}

.explore-card-photo {
    background: #eaf3fd;
    border-right: 1px solid #d6e3f1;
    display: block;
    min-height: 100%;
}

.explore-card-photo img {
    display: block;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    width: 100%;
}

.explore-section .explore-card {
    display: flex;
    flex-direction: column;
}

.explore-section .explore-card-photo {
    align-items: center;
    background: #f8fbff;
    border-bottom: 1px solid #d6e3f1;
    border-right: 0;
    display: flex;
    height: 220px;
    justify-content: center;
    min-height: 0;
    padding: 8px;
}

.explore-section .explore-card-photo img {
    background: #ffffff;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.explore-card-body {
    min-width: 0;
    padding: 12px;
}

.explore-card-body header h3 {
    font-size: 16px;
    margin: 0 0 3px;
}

.explore-card-body header p {
    color: #5c7897;
    margin: 0 0 8px;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
}

.profile-badges span {
    background: #eef6ff;
    border: 1px solid #bfd4ee;
    color: #244663;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 7px;
    text-transform: uppercase;
}

.plain-list .profile-badges {
    margin-top: 6px;
}

.explore-card-facts,
.explore-match-tags,
.explore-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.explore-card-facts span,
.explore-match-tags span {
    background: #eaf3fd;
    border: 1px solid #c8d9ec;
    color: #244663;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 7px;
}

.explore-card-summary {
    color: #244663;
    margin: 10px 0;
}

.explore-match-tags {
    margin-bottom: 10px;
}

.explore-match-tags span {
    background: #fff6e8;
    border-color: #e7c27b;
    color: #654608;
}

.explore-card-actions {
    margin-top: 10px;
}

.explore-empty {
    background: #fbfdff;
    border: 1px solid #d6e3f1;
    padding: 14px;
}

.search-results-grid .explore-card {
    grid-template-columns: 118px minmax(0, 1fr);
}

.legacy-form {
    padding: 20px;
}

.legacy-form h2 {
    margin-bottom: 14px;
}

.legacy-form th {
    width: 30%;
}

.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.form-actions.left {
    justify-content: flex-start;
}

.form-hint {
    color: #5c7897;
}

.notice.success {
    background: #e5f4eb;
    color: #164629;
}

.notice.error {
    background: #f9e5e8;
    color: #641a24;
}

.notice.warning {
    background: #fff7d6;
    color: #5a4813;
}

.table-icon,
.main-photo-label,
.message-nav span,
.message-row.is-new td,
.message-row.is-reply td,
.required-marker {
    color: #b3242a;
}

.inline-form button {
    color: #163f75;
}

.site-footer {
    background: #e5effb;
    color: #58708b;
    margin-top: 0;
    padding: 18px 24px;
}

.site-footer a {
    color: #163f75;
}

.form-page-heading {
    margin-bottom: 20px;
}

.form-summary {
    background: #eef6ff;
    border-left: 4px solid #7fa4cf;
    color: #244663;
    margin: 0 0 18px;
    padding: 12px 14px;
}

.form-summary p {
    margin: 0;
}

.form-summary p + p {
    margin-top: 6px;
}

.signup-form h2,
.edit-bio-form h2,
.alert-form h2,
.password-form h2,
.auditions-form h2,
.media-upload-form h2,
.support-panel h2,
.message-compose-form h2,
.message-preferences-form h2,
.admin-action-form h2 {
    background: #eaf3fd;
    border: 0;
    border-bottom: 1px solid #c8d9ec;
    margin: 22px -20px 12px;
    padding: 12px 20px;
}

.signup-form h2:first-of-type,
.edit-bio-form h2:first-of-type,
.alert-form h2:first-of-type,
.password-form h2:first-of-type,
.auditions-form h2:first-of-type,
.media-upload-form h2:first-of-type,
.support-panel h2:first-of-type,
.message-compose-form h2:first-of-type,
.message-preferences-form h2:first-of-type,
.admin-action-form h2:first-of-type {
    margin-top: 0;
}

.member-tools-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-checklist {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    margin-bottom: 16px;
    padding: 16px;
}

.profile-checklist header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.profile-checklist h2 {
    margin: 0;
}

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

.checklist-item {
    background: #fff7d6;
    border: 1px solid #e5c95d;
    color: #5a4813;
    display: block;
    font-weight: 700;
    padding: 10px;
    text-decoration: none;
}

.checklist-item.is-complete {
    background: #e5f4eb;
    border-color: #9dceb0;
    color: #164629;
}

.checklist-item span {
    display: block;
    font-size: 11px;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.member-tools-grid .legacy-form {
    margin-bottom: 16px;
}

.password-form,
.auditions-form {
    align-self: start;
}

.signup-form,
.edit-bio-form,
.alert-form {
    max-width: 900px;
}

.essay-field {
    background: #fbfdff;
    border-top: 1px solid #d6e3f1;
    padding-top: 14px;
}

.essay-field label {
    color: #244663;
    font-weight: 700;
}

.media-tools {
    align-items: stretch;
}

.media-tools .legacy-form {
    margin-bottom: 16px;
}

.media-upload-form input[type="file"] {
    background: #ffffff;
    border: 1px dashed #9fb8d3;
    padding: 12px;
}

.support-panel {
    background: #fbfdff;
}

.empty-panel {
    background: #fbfdff;
    text-align: center;
}

.empty-state {
    color: #345675;
    font-weight: 700;
}

.photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.photo-card {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    color: #102846;
    gap: 12px;
    padding: 12px;
}

.photo-card.is-main {
    border-color: #b3242a;
    box-shadow: 0 0 0 2px rgba(179, 36, 42, 0.08);
}

.photo-card img {
    border-color: #c5d5e8;
}

.photo-card-actions {
    border-top: 1px solid #d6e3f1;
    padding-top: 10px;
}

.table-scroll {
    border: 1px solid #d6e3f1;
    overflow-x: auto;
    width: 100%;
}

.table-scroll .results {
    border: 0;
    min-width: 780px;
}

.table-scroll .results th,
.table-scroll .results td {
    border-left: 0;
}

.table-scroll .results th:last-child,
.table-scroll .results td:last-child {
    border-right: 0;
}

.favorite-results button,
.message-results button {
    min-height: 30px;
    padding: 5px 9px;
}

.message-layout {
    grid-template-columns: 190px minmax(0, 1fr);
}

.message-layout > * {
    min-width: 0;
}

.message-panel {
    margin-bottom: 0;
    min-width: 0;
}

.message-nav {
    padding: 0;
}

.message-nav h2 {
    background: #eaf3fd;
    border-bottom: 1px solid #c8d9ec;
    margin: 0;
    padding: 14px 16px;
}

.message-nav-links {
    padding: 6px 16px 14px;
}

.message-nav a {
    border-top: 1px solid #d6e3f1;
    padding: 10px 0;
    text-decoration: none;
}

.message-nav a:first-child {
    border-top: 0;
}

.message-status {
    background: #eef6ff;
    border: 1px solid #c8d9ec;
    color: #244663;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    min-width: 54px;
    padding: 5px 8px;
    text-align: center;
    text-transform: uppercase;
}

.message-row.is-new .message-status,
.message-row.is-reply .message-status {
    background: #fff1f1;
    border-color: #e2a1a4;
    color: #9b1e24;
}

.table-scroll .message-results {
    min-width: 660px;
}

.message-detail .facts {
    margin-bottom: 16px;
}

.message-body {
    background: #fbfdff;
    border: 1px solid #d6e3f1;
    margin-bottom: 16px;
}

.message-compose-form,
.message-preferences-form {
    max-width: 760px;
}

.message-preferences-form td:first-child {
    font-weight: 700;
}

.admin-shell {
    max-width: 1180px;
}

.admin-page-grid {
    grid-template-columns: 250px minmax(0, 1fr);
}

.admin-page-grid-guest {
    grid-template-columns: 1fr;
}

.admin-content {
    min-height: 640px;
}

.admin-page-heading p:not(.section-kicker) {
    color: #345675;
}

.admin-nav span {
    color: #ffffff;
    font-weight: 700;
}

.admin-login-form {
    margin-left: auto;
    margin-right: auto;
    max-width: 520px;
}

.admin-dashboard-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    color: #102846;
    display: block;
    padding: 16px;
    text-decoration: none;
}

.admin-card span,
.admin-card small {
    color: #5c7897;
    display: block;
}

.admin-card span {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-card strong {
    display: block;
    font-size: 24px;
    margin: 6px 0;
    text-transform: uppercase;
}

.launch-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 16px;
}

.launch-summary,
.system-stat {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    padding: 14px;
}

.launch-summary strong,
.system-stat strong {
    color: #102846;
    display: block;
    font-size: 24px;
}

.launch-summary span,
.system-stat span {
    color: #5c7897;
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.launch-summary-ready {
    border-color: #86b69b;
}

.launch-summary-warning {
    border-color: #d3aa36;
}

.launch-summary-blocked {
    border-color: #d98c90;
}

.admin-system-panel {
    max-width: none;
}

.system-check-list {
    display: grid;
    gap: 10px;
}

.system-check-row {
    align-items: start;
    background: #fbfdff;
    border: 1px solid #d6e3f1;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.system-check-row strong {
    color: #102846;
    display: block;
    margin-bottom: 4px;
}

.system-check-row p {
    color: #5c7897;
    margin: 0;
}

.system-check-ready {
    border-left: 4px solid #4d8c69;
}

.system-check-warning {
    border-left: 4px solid #d3aa36;
}

.system-check-blocked {
    border-left: 4px solid #b43334;
}

.system-check-meta {
    display: grid;
    gap: 8px;
    justify-items: end;
    min-width: 180px;
}

.system-check-value {
    color: #244663;
    font-weight: 700;
    max-width: 260px;
    overflow-wrap: anywhere;
    text-align: right;
}

.system-check-pill {
    background: #eef6ff;
    border: 1px solid #c8d9ec;
    color: #244663;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 8px;
    text-transform: uppercase;
}

.system-check-ready .system-check-pill {
    background: #edf8f1;
    border-color: #86b69b;
    color: #1f5c3b;
}

.system-check-warning .system-check-pill {
    background: #fff7d6;
    border-color: #d3aa36;
    color: #5a4813;
}

.system-check-blocked .system-check-pill {
    background: #fff1f1;
    border-color: #d98c90;
    color: #9b1e24;
}

.system-stat-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-task-list {
    color: #244663;
    line-height: 1.55;
    margin-bottom: 0;
}

.admin-panel {
    padding: 0;
}

.admin-panel .table-scroll {
    border: 0;
}

.admin-results {
    min-width: 760px;
}

.pending-results {
    min-width: 900px;
}

.tryout-results {
    min-width: 820px;
}

.admin-decision-inline {
    display: grid;
    gap: 8px;
}

.admin-decision-inline label {
    align-items: center;
    display: flex;
    gap: 6px;
}

.small-button {
    min-height: 30px;
    padding: 5px 9px;
}

.admin-action-form {
    max-width: 880px;
}

.admin-search-form {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    margin: 0 0 16px;
    max-width: 880px;
    padding: 14px;
}

.admin-search-form label {
    color: #244663;
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.inline-search-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-search-controls input[type="search"] {
    flex: 1 1 280px;
    min-width: 0;
}

.admin-search-meta,
.field-help {
    color: #5c7897;
    font-size: 13px;
    margin: 8px 0 0;
}

.bulk-admin-form,
.admin-bio-detail {
    max-width: none;
}

.danger-action-form {
    border-color: #e2a1a4;
}

.warning-summary {
    background: #fff7d6;
    border-left-color: #d3aa36;
    color: #5a4813;
}

.admin-status-pill {
    background: #eef6ff;
    border: 1px solid #c8d9ec;
    color: #244663;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 8px;
    text-transform: uppercase;
}

.admin-decision-form {
    background: #fbfdff;
}

.bio-profile {
    padding: 0;
}

.bio-profile-header {
    align-items: flex-start;
    background: #eaf3fd;
    border-bottom: 1px solid #c8d9ec;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 22px;
}

.bio-profile-header h1 {
    margin-bottom: 6px;
}

.bio-profile-header p:not(.section-kicker) {
    color: #345675;
    margin: 0;
}

.bio-action-bar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #d6e3f1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 22px;
}

.bio-profile-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 300px minmax(0, 1fr);
    padding: 22px;
}

.bio-photo-card {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    margin: 0;
    padding: 16px;
}

.bio-photo-card img {
    aspect-ratio: 4 / 5;
    background: #f8fbff;
    border: 1px solid #c5d5e8;
    display: block;
    object-fit: cover;
    width: 100%;
}

.bio-photo-card figcaption {
    color: #345675;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
}

.bio-facts-panel {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    padding: 18px;
}

.bio-facts-panel h2 {
    border-bottom: 1px solid #d6e3f1;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.bio-facts-panel .facts th,
.bio-facts-panel .facts td {
    padding: 10px;
}

.bio-info-section {
    border-top: 1px solid #d6e3f1;
    margin-top: 18px;
    padding-top: 16px;
}

.bio-info-section h3 {
    color: #102846;
    font-size: 14px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.bio-video-panel {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    margin: 22px 22px 0;
    padding: 18px;
}

.bio-video-panel h2 {
    margin-bottom: 12px;
}

.bio-story-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 22px 22px;
}

.bio-history-panel {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    margin: 0 22px 22px;
    padding: 18px;
}

.bio-history-panel h2 {
    border-bottom: 1px solid #d6e3f1;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.bio-history-table th {
    background: #f4f8fd;
    color: #345675;
    width: auto;
}

.bio-history-table td {
    background: #ffffff;
}

.bio-story-grid .text-block {
    background: #ffffff;
    border: 1px solid #d6e3f1;
    margin: 0;
    padding: 18px;
}

.bio-story-grid .text-block p {
    margin-bottom: 0;
}

.bio-story-wide {
    grid-column: 1 / -1;
}

@media (max-width: 860px) {
    .site-shell {
        margin-top: 0;
    }

    .site-header {
        display: block;
    }

    .signin-prompt {
        margin-bottom: 12px;
        text-align: left;
    }

    .page-grid,
    .home-hero,
    .explore-card,
    .bio-profile-grid,
    .bio-story-grid,
    .member-tools-grid,
    .media-tools,
    .message-layout,
    .admin-dashboard-grid,
    .launch-summary-grid,
    .system-stat-grid {
        grid-template-columns: 1fr;
    }

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

    .system-check-meta {
        justify-items: start;
        min-width: 0;
    }

    .system-check-value {
        max-width: 100%;
        text-align: left;
    }

    .side-nav {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
        min-height: auto;
        padding: 8px;
    }

    .side-nav a {
        border: 1px solid rgba(255, 255, 255, 0.16);
        padding: 10px;
        text-align: center;
    }

    .content {
        min-height: auto;
        padding: 22px 16px;
    }

    .bio-summary,
    .home-lists {
        grid-template-columns: 1fr;
    }

    .home-feature-card {
        grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    }

    .home-feature-photo {
        min-height: 220px;
    }

    .bio-summary img {
        width: 100%;
    }

    .explore-card-photo {
        border-bottom: 1px solid #d6e3f1;
        border-right: 0;
    }

    .explore-card-photo img {
        height: auto;
        max-height: 220px;
    }

    .jump-form,
    .results-panel header,
    .explore-signin-panel,
    .explore-more-panel,
    .explore-section > header,
    .profile-checklist header,
    .bio-profile-header,
    .bio-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .bio-profile-grid,
    .bio-profile-header,
    .bio-action-bar,
    .bio-story-grid,
    .bio-history-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    .bio-video-panel {
        margin-left: 16px;
        margin-right: 16px;
    }

    .bio-history-panel {
        margin-left: 16px;
        margin-right: 16px;
    }

    .table-scroll .results {
        min-width: 640px;
    }

    .message-nav-links {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .legacy-form th {
        border-bottom: 0;
    }

    .legacy-form td {
        border-top: 0;
    }

    .table-scroll .results {
        display: table;
        width: 100%;
    }

    .table-scroll .results thead {
        display: table-header-group;
    }

    .table-scroll .results tbody {
        display: table-row-group;
    }

    .table-scroll .results tr {
        display: table-row;
    }

    .table-scroll .results th,
    .table-scroll .results td {
        display: table-cell;
        width: auto;
    }
}

@media (max-width: 640px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
        width: 100%;
    }

    .site-shell {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        max-width: 100vw;
        overflow-x: hidden;
        width: 100vw;
    }

    .page-grid,
    .side-nav,
    .content,
    .feature,
    .home-feature-card,
    .home-feature-details,
    .explore-signin-panel,
    .explore-section,
    .explore-card,
    .bio-profile-grid,
    .bio-story-grid,
    .bio-detail,
    .legacy-form {
        max-width: 100%;
        min-width: 0;
    }

    .page-grid,
    .side-nav,
    .content {
        width: 100%;
    }

    .site-header {
        padding: 14px 16px;
    }

    .signin-prompt {
        font-size: 13px;
        line-height: 1.35;
    }

    .brand {
        gap: 8px;
        max-width: 100%;
    }

    .brand img {
        max-width: min(100%, 320px);
        width: 100%;
    }

    .brand span {
        font-size: 12px;
    }

    .side-nav {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .side-nav a {
        align-items: center;
        display: flex;
        font-size: 11px;
        justify-content: center;
        min-height: 48px;
        min-width: 0;
        padding: 9px 8px;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .content {
        overflow-x: hidden;
        padding: 20px 14px 28px;
    }

    .content p,
    .content li,
    .intro,
    .home-intro,
    .explore-heading,
    .page-heading {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .content h1,
    .page-heading h1,
    .bio-profile-header h1 {
        font-size: 25px;
        line-height: 1.15;
    }

    .home-feature-card,
    .home-path-grid,
    .home-fact-strip {
        grid-template-columns: 1fr;
    }

    .featured-bio-card {
        overflow: hidden;
        padding: 12px;
    }

    .home-feature-details h2,
    .home-feature-summary,
    .explore-signin-panel h2,
    .explore-card-body,
    .bio-story-grid .text-block {
        overflow-wrap: anywhere;
    }

    .home-feature-photo {
        min-height: 200px;
        overflow: hidden;
    }

    .home-feature-photo img {
        height: auto;
        max-width: 100%;
    }

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

    .explore-section .explore-card-photo {
        height: 190px;
    }

    .filter-chips {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .filter-chips a {
        text-align: center;
    }

    .form-actions,
    .bio-action-bar,
    .explore-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions .button-link,
    .bio-action-bar .button-link,
    .explore-card-actions .button-link,
    .form-actions button {
        text-align: center;
        width: 100%;
    }

    .home-success-stat {
        grid-template-columns: 1fr;
    }

    .home-success-stat p {
        grid-column: auto;
    }
}
