:root {
    --color-bg: #21401D;
    --color-bg-strong: #142611;
    --color-bg-soft: #eef4eb;
    --color-accent: #315925;
    --color-accent-soft: #dce9d5;
    --color-surface: #ffffff;
    --color-surface-muted: #f5f7f3;
    --color-border: #d7e1d1;
    --color-border-strong: #b8c8af;
    --color-text: #1d261a;
    --color-text-muted: #5b6758;
    --color-link: #1d5d8f;
    --color-link-hover: #124160;
    --color-success: #1f7a3e;
    --color-success-soft: #e8f6ee;
    --color-danger: #b64040;
    --color-danger-soft: #f9e7e7;
    --color-shadow: 0 12px 30px rgba(20, 38, 17, 0.08);
    --page-max-width: 1360px;
}

@media screen and (max-height: 940px) {
    .member-subpage-layout .data-table-wrapper,
    .application-subpage-layout .data-table-wrapper,
    .competition-subpage-layout .data-table-wrapper,
    .bulk-action-form .data-table-wrapper {
        max-block-size: none !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        overscroll-behavior: auto !important;
        scrollbar-gutter: auto !important;
    }
}

/* app form */

/* latin-ext */
@font-face {
    font-family: 'Enriqueta';
    font-style: normal;
    font-weight: 400;
    font-display: auto;
    src: url(https://fonts.gstatic.com/s/enriqueta/v10/goksH6L7AUFrRvV44HVjQkqioP0.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Enriqueta';
    font-style: normal;
    font-weight: 400;
    font-display: auto;
    src: url(https://fonts.gstatic.com/s/enriqueta/v10/goksH6L7AUFrRvV44HVjTEqi.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 500;
    font-display: auto;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 500;
    font-display: fallback;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 800;
    font-display: fallback;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 800;
    font-display: fallback;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin */
@font-face {
    font-family: 'Inclusive Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inclusivesans/v1/0nkxC9biPuwflXcJ46P4PGWE0-7yqQc.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Inclusive Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inclusivesans/v1/0nkxC9biPuwflXcJ46P4PGWE0-78qQeGLA.woff2) format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'Inclusive Sans', 'Raleway', sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    font-size: 9pt;
}

html {
    background: linear-gradient(180deg, #f2f5f1 0%, #eef2ed 100%);
}

body.admin-ui {
    min-height: 100vh;
    color: var(--color-text);
    line-height: 1.5;
    background:
            radial-gradient(circle at top right, rgba(49, 89, 37, 0.10), transparent 28%),
            linear-gradient(180deg, #f4f7f3 0%, #eef2ed 100%);
}

.article-form {
    display: grid;
    gap: 1rem;
}

.article-body-card {
    display: grid;
    gap: 0.5rem;
}

.article-body-label {
    font-weight: 700;
}

.article-editor {
    border: 1px solid #bcc6b7;
    border-radius: 0.35rem;
    background: #fff;
    overflow: hidden;
}

.article-editor-toolbar,
.article-media-insert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem;
    background: #eef2eb;
}

.article-editor-toolbar button,
.article-media-insert button {
    min-height: 2rem;
    padding: 0.25rem 0.55rem;
}

.article-editor-toolbar button.active {
    background: #315925;
    color: #fff;
}

.article-editor-content {
    min-height: 24rem;
    padding: 1rem;
}

.article-editor-content .tiptap {
    min-height: 22rem;
    outline: none;
}

.article-editor-content img,
.article-draft-preview img {
    max-width: 100%;
    height: auto;
}

.article-media-insert {
    border-top: 1px solid #bcc6b7;
}

.article-media-insert select {
    max-width: 28rem;
}

.article-resource-thumb {
    width: 5rem;
    height: 3.5rem;
    object-fit: cover;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef2eb;
    color: #315925;
    font-size: 0.85rem;
    font-weight: 700;
}

/*
 * Vue needs a mount element, while the legacy desktop layout expects the
 * header and main region to be direct children of the body grid.
 */
body.admin-ui > #app {
    display: contents;
}

.app-form > .form-fieldset {
    border: 0;
    display: contents;
    margin: 0;
    min-inline-size: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Enriqueta', serif;
    font-weight: 400;
    color: var(--color-bg-strong);
    line-height: 1.2;
}

h2, h3, p {
    margin-top: 0;
}

p {
    color: var(--color-text-muted);
}

a {
    color: var(--color-link);
}

a:hover {
    color: var(--color-link-hover);
}

#header-container {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #173118 0%, #0f2311 100%);
    width: 100%;
    min-width: 200px;
    box-shadow: 0 14px 32px rgba(20, 38, 17, 0.18);
}

#header-container {
    position: sticky;
    top: 0;
    z-index: 30;
}

#header-contents {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: 1rem;
    align-items: center;
    background-color: transparent;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0.9rem 1.15rem 0.7rem;
}

.logo-text {
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    color: #fff;
    flex-basis: 10px;
    flex-grow: 7;
    flex-shrink: 7;
    margin: 0;
    padding: 0.2rem 0;
}

.logo-text.left {
    text-align: right;
}

.logo-text a {
    color: inherit;
}

.logo-img {
    width: 64px;
    min-height: 48px;
    max-height: 80px;
    flex-basis: 64px;
    flex-grow: 0;
    flex-shrink: 1;
}

.logo-img img {
    width: 64px;
    min-height: 48px;
    max-height: 80px;
    display: block;
}

#header-contents a {
    text-decoration: none;
    cursor: pointer;
}

#menu-button {
    display: inline-block;
    fill: transparent;
    stroke-linecap: round;
    stroke-width: 1;
    stroke: white;
    transition: transform 300ms ease;
    flex: 0 0 48px;
    padding: 0.15rem;
    border-radius: 12px;
}

#menu-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

#menu-button svg {
    max-width: 80px;
    min-width: 40px;
    padding: 4px;
}

#chevron-line {
    display: none;
}

.active-menu #menu-button {
    transform: translate(0, -6px) rotateZ(180deg);
}

.active-menu #chevron-line {
    display: unset;
}

.active-menu #straight-line {
    display: none;
}

#main-menu {
    display: none;
    background: linear-gradient(180deg, rgba(11, 25, 13, 0.95) 0%, rgba(14, 30, 16, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.active-menu #main-menu {
    display: block;
}

#main-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    list-style: none;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 0.7rem 1rem 1rem;
}

#main-menu li {
    margin: 0;
    border-radius: 999px;
}

#main-menu li.menu-filler {
    display: none;
}

#main-menu a {
    display: block;
    text-decoration: none;
    color: white;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    padding: 0.82rem 1rem;
    transition: background-color 160ms ease, color 160ms ease;
}

#main-menu li:hover,
#main-menu li:focus-within {
    background-color: transparent;
}

#main-menu li:hover > a,
#main-menu li:focus-within > a {
    background-color: rgba(255, 255, 255, 0.10);
}

#main-menu li.is-active > a,
#main-menu li.is-active:hover > a,
#main-menu li.is-active:focus-within > a {
    background: linear-gradient(135deg, #ffffff 0%, #eef5eb 100%);
    color: var(--color-bg-strong);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

@media screen and (min-width: 768px) {
    #menu-button {
        display: none;
    }

    #main-menu {
        display: block;
    }

    #main-menu ul {
        flex-direction: row;
        align-items: center;
        padding-top: 0.15rem;
        padding-bottom: 0.9rem;
    }

    #main-menu li.menu-filler {
        display: block;
        flex: 1 1 auto;
    }

    #main-menu li.menu-filler:hover {
        background: transparent;
    }
}

@media screen and (min-width: 1440px) {
    body {
        font-size: 16pt;
    }

    .logo-img {
        padding: 10px;
        width: 128px;
        min-height: 96px;
        max-height: 160px;
        flex-basis: 128px;
    }

    .logo-img img {
        width: 128px;
        min-height: 96px;
        max-height: 160px;
    }
}

.srf {
    font-family: 'Enriqueta', serif;
}

footer {
    margin-top: 16pt;
    font-size: 8pt;
    font-weight: 300;
}

.admin-main {
    width: 100%;
    padding: 1.35rem 1rem 2.5rem;
}

.admin-page-shell {
    width: 100%;
    max-width: var(--page-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.admin-page-shell > h2:first-child {
    margin-bottom: -0.25rem;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 244, 0.98) 100%);
    border: 1px solid rgba(184, 200, 175, 0.85);
    border-radius: 22px;
    padding: 0.95rem 1.05rem;
    box-shadow: 0 18px 40px rgba(20, 38, 17, 0.08);
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #4b7a3f 0%, #254a22 100%);
}

.page-title-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem 1rem;
}

.page-header h2,
.page-header h3 {
    margin-bottom: 0;
}

.sticky-page-header {
    position: sticky;
    top: 0.8rem;
    z-index: 8;
}

.page-intro,
.page-meta {
    max-width: 72ch;
    color: var(--color-text-muted);
}

.page-meta {
    margin: 0.2rem 0 0;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.page-actions form {
    margin: 0;
}

.page-actions .secondary-action,
.page-actions .action-link {
    white-space: nowrap;
}

.section-card,
.admin-page-shell > section:not(.feedback-panel),
nav.subpage-links,
nav#views {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(184, 200, 175, 0.8);
    border-radius: 20px;
    padding: 0.9rem 1rem;
    box-shadow: 0 16px 34px rgba(20, 38, 17, 0.07);
}

.section-card > h3:last-child,
.admin-page-shell > section:not(.feedback-panel) > h3:last-child,
.section-card > p:last-child,
.admin-page-shell > section:not(.feedback-panel) > p:last-child {
    margin-bottom: 0;
}

.section-card.is-table-section {
    padding-bottom: 0.95rem;
}

.section-card.is-table-section .data-table-wrapper {
    margin-top: 0.75rem;
}

details.collapsible-panel {
    padding: 0;
    overflow: hidden;
}

details.collapsible-panel > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 0.9rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(180deg, rgba(248, 251, 247, 0.98) 0%, rgba(242, 247, 240, 0.98) 100%);
}

details.collapsible-panel > summary::-webkit-details-marker {
    display: none;
}

details.collapsible-panel[open] > summary {
    border-bottom: 1px solid rgba(184, 200, 175, 0.72);
}

.collapsible-summary-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.collapsible-summary-main h2,
.collapsible-summary-main h3,
.collapsible-summary-main p {
    margin: 0;
}

.collapsible-summary-hint {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(49, 89, 37, 0.12);
    color: #234c28;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.collapsible-summary-hint::before {
    content: attr(data-collapsed-label);
}

details.collapsible-panel[open] > summary .collapsible-summary-hint::before {
    content: attr(data-expanded-label);
}

.collapsible-summary-hint::after {
    content: "▾";
    font-size: 0.95em;
    transition: transform 160ms ease;
}

details.collapsible-panel[open] > summary .collapsible-summary-hint::after {
    transform: rotate(180deg);
}

.collapsible-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.85rem 1rem 1rem;
}

.page-control-panel .page-intro,
.page-control-panel .page-meta {
    margin: 0;
}

.page-control-panel,
.filter-panel,
.action-box,
.bulk-action-form {
    font-size: 0.92rem;
}

.page-control-panel .collapsible-summary-main h2 {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
}

.page-control-panel .collapsible-summary-main h3,
.filter-panel-header h3,
.archive-panel .collapsible-summary-main h3 {
    font-size: 1.02rem;
}

.page-control-panel .action-link,
.page-control-panel button,
.filter-panel-actions .action-link,
.filter-panel-actions .secondary-action,
.action-box button,
.action-box .secondary-action {
    padding: 0.46rem 0.82rem;
    font-size: inherit;
}

.filter-panel .form-element label,
.action-box label,
.bulk-actions label {
    font-size: 0.78rem;
}

.page-control-panel .page-title-row,
.page-control-panel .filter-panel-header {
    gap: 0.65rem 0.9rem;
}

.section-heading-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.9rem;
}

.section-heading-row h3 {
    margin: 0;
}

.subpage-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.subpage-content {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.member-subpage-layout .subpage-content,
.application-subpage-layout .subpage-content,
.competition-subpage-layout .subpage-content,
.mail-subpage-layout .subpage-content {
    min-width: 0;
}

.member-subpage-layout,
.application-subpage-layout,
.competition-subpage-layout,
.mail-subpage-layout {
    gap: 0.85rem;
}

.member-subpage-layout .subpage-content,
.application-subpage-layout .subpage-content,
.competition-subpage-layout .subpage-content,
.mail-subpage-layout .subpage-content {
    gap: 0.9rem;
    min-height: 0;
}

.member-subpage-layout nav.subpage-links,
.application-subpage-layout nav.subpage-links,
.competition-subpage-layout nav.subpage-links,
.mail-subpage-layout nav.subpage-links {
    padding: 0.85rem 0.95rem;
}

.member-subpage-layout nav.subpage-links ul,
.application-subpage-layout nav.subpage-links ul,
.competition-subpage-layout nav.subpage-links ul,
.mail-subpage-layout nav.subpage-links ul {
    gap: 0.45rem;
}

.member-subpage-layout nav.subpage-links a,
.application-subpage-layout nav.subpage-links a,
.competition-subpage-layout nav.subpage-links a,
.mail-subpage-layout nav.subpage-links a {
    padding: 0.68rem 0.9rem;
    font-size: 0.94rem;
}

.member-subpage-layout .section-card.is-table-section,
.application-subpage-layout .section-card.is-table-section,
.competition-subpage-layout .section-card.is-table-section,
.mail-subpage-layout .section-card.is-table-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.member-subpage-layout .section-card.is-table-section form,
.application-subpage-layout .section-card.is-table-section form,
.competition-subpage-layout .section-card.is-table-section form,
.mail-subpage-layout .section-card.is-table-section form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.member-subpage-layout .data-table-wrapper,
.application-subpage-layout .data-table-wrapper,
.competition-subpage-layout .data-table-wrapper,
.mail-subpage-layout .data-table-wrapper {
    max-block-size: min(62dvh, calc(100dvh - 16rem));
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
}

.member-subpage-layout .data-table-wrapper table.dataview,
.application-subpage-layout .data-table-wrapper table.dataview,
.competition-subpage-layout .data-table-wrapper table.dataview {
    width: max-content;
    min-width: 100%;
}

table.dataview tbody tr.has-row-detail {
    cursor: pointer;
}

.detail-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
    align-items: start;
}

.detail-card {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.detail-card.is-wide {
    grid-column: 1 / -1;
}

.detail-address {
    margin: 0;
    font-style: normal;
}

.detail-list {
    margin: 0;
    display: grid;
    gap: 0.95rem;
}

.detail-item {
    display: grid;
    gap: 0.2rem;
}

.detail-term {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.detail-value {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.detail-value a {
    color: inherit;
    text-decoration: none;
}

.detail-value a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.detail-card .data-table-wrapper {
    margin-top: 0.1rem;
}

.detail-card .data-table-wrapper table.dataview {
    min-width: 100%;
}

.invitation-management-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.invitation-toolbar-actions {
    justify-content: flex-start;
}

.invitation-empty-state {
    margin-bottom: 0;
}

.invitation-table tbody tr.is-valid {
    background-color: #eef8ee;
}

.invitation-table tbody tr.is-valid:hover {
    background-color: #e2f2e1;
}

.invitation-table tbody tr.is-expired {
    background-color: #fdf2f2;
}

.invitation-table tbody tr.is-expired:hover {
    background-color: #f7e4e4;
}

.invitation-table tbody tr.is-expired td {
    color: var(--color-text-muted);
}

.invitation-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.8rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.invitation-state.is-valid {
    color: var(--color-success);
    background-color: var(--color-success-soft);
    border-color: #b6dfc3;
}

.invitation-state.is-expired {
    color: var(--color-danger);
    background-color: var(--color-danger-soft);
    border-color: #ecc2c2;
}

.invitation-actions {
    white-space: nowrap;
}

.invitation-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.invitation-action-list .secondary-action {
    padding: 0.42rem 0.72rem;
    font-size: 0.82rem;
}

.invitation-no-action {
    color: var(--color-text-muted);
}

nav.subpage-links ul,
nav#views ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.subpage-links a,
nav#views a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8faf7 0%, #eef3eb 100%);
    border: 1px solid rgba(184, 200, 175, 0.75);
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

nav.subpage-links a:hover,
nav#views a:hover {
    background: linear-gradient(135deg, #edf6e7 0%, #dfeeda 100%);
    border-color: rgba(75, 122, 63, 0.35);
    color: var(--color-bg-strong);
    transform: translateY(-1px);
}

nav.subpage-links li.is-active a,
nav#views li.is-active a {
    background: linear-gradient(135deg, #234726 0%, #173118 100%);
    border-color: rgba(23, 49, 24, 0.9);
    color: white;
    box-shadow: 0 12px 24px rgba(20, 38, 17, 0.16);
}

.feedback-panel,
.feedbackPanel {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feedbackPanel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feedbackPanel li {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    box-shadow: var(--color-shadow);
    font-weight: 700;
}

.feedbackPanelINFO {
    color: var(--color-success);
    border-color: #b6dfc3 !important;
    background-color: var(--color-success-soft) !important;
}

.feedbackPanelINFO::marker {
    content: none;
}

.feedbackPanelERROR {
    color: var(--color-danger);
    border-color: #ecc2c2 !important;
    background-color: var(--color-danger-soft) !important;
}

.feedbackPanelERROR::marker {
    content: none;
}

.app-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 1.2rem 1.35rem;
    box-shadow: 0 12px 26px rgba(20, 38, 17, 0.06);
}

.app-form h3 {
    margin: 0;
}

.app-form .form-row + .form-row {
    padding-top: 0.45rem;
    border-top: 1px solid rgba(184, 200, 175, 0.45);
}

.form-row {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start;
    column-gap: 1.1rem;
    row-gap: 0.95rem;
}

.form-element {
    flex: 1 1 18rem;
    width: auto;
    max-width: none;
    min-width: min(100%, 18rem);
}

.form-element label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-text-muted);
    padding: 0;
    margin: 0 0 0.45rem 0;
}

.required label::after {
    margin-left: 0.35rem;
    content: "*";
    color: var(--color-danger);
    font-weight: 800;
}

.text-input input,
.form-element select,
.form-element textarea,
.form-element > input[readonly],
.form-element > input[disabled],
.form-element > select[disabled] {
    width: 100%;
    font: inherit;
    color: var(--color-text);
    background-color: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.62rem 0.75rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.text-input input[type=email],
.text-input input[type=url] {
    font-family: ui-monospace, SFMono-Regular, 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;
    font-size: 0.96rem;
}

.form-element textarea {
    min-height: 10rem;
    resize: vertical;
}

.text-input input:focus,
.form-element select:focus,
.form-element textarea:focus,
.form-element > input[readonly]:focus {
    outline: none;
    border-color: #87a97f;
    box-shadow: 0 0 0 3px rgba(49, 89, 37, 0.12);
    background-color: white;
}

.text-input input:invalid,
.form-element select:invalid,
.form-element textarea:invalid {
    border-color: #d48080;
    background-color: #fff5f5;
}

.form-element span {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.15rem;
    color: var(--color-text);
}

.form-element > input[readonly] {
    background-color: #f2efe0;
    color: var(--color-text);
}

.form-element > input[disabled],
.form-element > select[disabled] {
    background-color: #efeee7;
    color: var(--color-text-muted);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.25rem;
}

.mail-field-help {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.mail-field-preview {
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    background: rgba(49, 89, 37, 0.10);
    color: var(--color-bg-strong);
    font-family: ui-monospace, SFMono-Regular, 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;
    font-size: 0.94em;
    font-weight: 700;
}

.mail-save-notice {
    margin: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(184, 200, 175, 0.85);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 251, 247, 0.98) 0%, rgba(239, 246, 235, 0.98) 100%);
    color: var(--color-bg-strong);
    font-weight: 600;
}

.mail-table-actions {
    display: flex;
    align-items: flex-end;
}

.mail-table-actions .page-actions {
    padding-bottom: 0.05rem;
}

.mail-save-actions-bottom {
    margin-top: 0.8rem;
}

.mail-export-section .action-box h3 {
    margin-bottom: 0.35rem;
}

.member-filter-form,
.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-panel-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem 1rem;
}

.filter-panel-header h3,
.filter-panel-header p {
    margin-bottom: 0;
}

.filter-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.bulk-action-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.action-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid rgba(184, 200, 175, 0.65);
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbf7 0%, #f1f6ef 100%);
}

.archive-season-stack-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.action-box-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem 0.85rem;
}

.bulk-selection-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.bulk-actions label {
    margin: 0;
    white-space: nowrap;
}

.bulk-actions select {
    width: min(22rem, 100%);
}

.admin-page-shell button,
.action-link,
.secondary-action {
    appearance: none;
    border: 1px solid var(--color-border-strong);
    border-radius: 14px;
    padding: 0.58rem 0.95rem;
    background-color: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-page-shell button:hover,
.action-link:hover,
.secondary-action:hover {
    transform: translateY(-1px);
    background-color: var(--color-surface-muted);
    box-shadow: 0 10px 24px rgba(20, 38, 17, 0.08);
}

.admin-page-shell button[type="submit"],
button.send,
.action-link {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.admin-page-shell button[type="submit"]:hover,
button.send:hover,
.action-link:hover {
    background-color: var(--color-bg);
    border-color: var(--color-bg);
    color: white;
}

.secondary-action {
    background-color: transparent;
    color: var(--color-bg-strong);
}

.admin-page-shell button.secondary-action,
.admin-page-shell button[type="submit"].secondary-action,
.secondary-action {
    background-color: transparent;
    border-color: var(--color-border-strong);
    color: var(--color-bg-strong);
}

.admin-page-shell button.secondary-action:hover,
.admin-page-shell button[type="submit"].secondary-action:hover,
.secondary-action:hover {
    background-color: var(--color-surface-muted);
    border-color: var(--color-border-strong);
    color: var(--color-bg-strong);
}

.admin-page-shell button:disabled,
.admin-page-shell button[disabled],
.action-link[disabled],
.secondary-action[disabled],
.action-link[aria-disabled="true"],
.secondary-action[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}

.admin-page-shell button:disabled:hover,
.admin-page-shell button[disabled]:hover {
    background-color: inherit;
    border-color: inherit;
    color: inherit;
}

.section-card ul,
.admin-page-shell > section:not(.feedback-panel) ul {
    margin: 0;
    /*padding-left: 1.1rem;*/
}

.section-card form {
    margin: 0;
}

.section-card label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.section-card input:not([type="checkbox"]):not([type="radio"]),
.section-card select,
.section-card textarea {
    width: 100%;
    font: inherit;
    color: var(--color-text);
    background-color: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 0.6rem 0.72rem;
}

.section-card input:not([type="checkbox"]):not([type="radio"]):focus,
.section-card select:focus,
.section-card textarea:focus {
    outline: none;
    border-color: #87a97f;
    box-shadow: 0 0 0 3px rgba(49, 89, 37, 0.12);
    background-color: white;
}

.section-card li,
.admin-page-shell > section:not(.feedback-panel) li {
    margin-bottom: 0.4rem;
}

.quick-link-list {
    list-style: none;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.quick-link-list li {
    flex: 1 1 18rem;
    min-width: min(100%, 18rem);
    margin: 0;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(184, 200, 175, 0.8);
    background: linear-gradient(135deg, #fbfcfa 0%, #f2f6f0 100%);
    box-shadow: 0 10px 24px rgba(20, 38, 17, 0.05);
    color: var(--color-text-muted);
}

.quick-link-list a {
    display: inline-block;
    margin-right: 0.25rem;
    font-weight: 800;
    color: var(--color-bg-strong);
    text-decoration: none;
}

.quick-link-list a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.season-overview-card {
    overflow: hidden;
}

.season-overview-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-week-row {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.season-week-row-header {
    padding: 0.85rem 0.9rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #edf4ea 0%, #e3ece0 100%);
    border: 1px solid rgba(184, 200, 175, 0.85);
    color: var(--color-bg-strong);
    font-weight: 800;
    line-height: 1.3;
}

.season-week-row-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    color: inherit;
    text-decoration: none;
    padding: 0.1rem;
}

.season-week-row-link:hover {
    color: var(--color-bg-strong);
}

.season-week-row-link:hover .season-week-row-link-text {
    text-decoration: underline;
}

.season-week-row-link-text {
    font-size: 1rem;
}

.season-week-row-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(49, 89, 37, 0.12);
    color: #234c28;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(49, 89, 37, 0.08);
}

.season-week-row-link-hint::after {
    content: "→";
    font-size: 0.95em;
}

.season-week-cells {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0.75rem;
}

.season-week-card {
    min-height: 8.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem 0.72rem 0.72rem;
    border-radius: 18px;
    border: 1px solid rgba(184, 200, 175, 0.85);
    background: linear-gradient(180deg, #ffffff 0%, #f7faf6 100%);
    box-shadow: 0 10px 24px rgba(20, 38, 17, 0.05);
    overflow: hidden;
}

.season-week-card.is-current-week {
    border-color: rgba(39, 73, 41, 0.95);
    box-shadow: 0 0 0 2px rgba(39, 73, 41, 0.12), 0 14px 30px rgba(20, 38, 17, 0.08);
    background: linear-gradient(180deg, #fffef6 0%, #f8faf4 100%);
}

.season-week-card.is-placeholder {
    visibility: hidden;
    min-height: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.season-week-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin: -0.7rem -0.72rem 0;
    padding: 0.72rem 0.72rem 0.5rem;
    width: auto;
    border-radius: 17px 17px 14px 14px;
    background: linear-gradient(180deg, #f6faf3 0%, #edf5e9 100%);
    border-bottom: 1px solid rgba(184, 200, 175, 0.45);
    box-shadow: inset 0 -1px 0 rgba(184, 200, 175, 0.28);
    min-width: 0;
}

.season-week-card.is-current-week .season-week-head {
    background: linear-gradient(180deg, #f7f8e7 0%, #edf2d3 100%);
    border-bottom-color: rgba(84, 109, 51, 0.34);
}

.season-week-head-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.season-week-month {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #234c28;
    white-space: nowrap;
}

.season-week-range {
    font-size: 0.9rem;
    font-weight: 800;
    color: #152615;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.season-week-number {
    flex: 0 0 auto;
    align-self: flex-start;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.1;
    color: #20331d;
    padding: 0.16rem 0.46rem;
    border-radius: 999px;
    border: 1px solid rgba(49, 89, 37, 0.18);
    background: rgba(49, 89, 37, 0.08);
    white-space: nowrap;
}

.season-entry-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.season-entry {
    margin: 0 !important;
    padding: 0;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(184, 200, 175, 0.42);
    color: #142611;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.28;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(20, 38, 17, 0.05);
}

.season-entry.entry-birthday {
    background: linear-gradient(135deg, #fbfafd 0%, #f5f2fa 100%);
    border-color: #e4dcf0;
    box-shadow: inset 2px 0 0 #baa8d3;
    color: #61586f;
}

.season-entry.entry-club-tournament {
    background: linear-gradient(135deg, #eef8ec 0%, #e2f0de 100%);
    border-color: #bdd4b8;
    box-shadow: inset 3px 0 0 #2f6f3c, 0 7px 16px rgba(47, 111, 60, 0.10);
}

.season-entry.entry-other-tournament {
    background: linear-gradient(135deg, #fbf5ea 0%, #f2e8d7 100%);
    border-color: #dbc5a4;
    box-shadow: inset 3px 0 0 #8e6432, 0 7px 16px rgba(142, 100, 50, 0.12);
}

.season-entry.entry-nongolf-event {
    background: linear-gradient(135deg, #eff5f8 0%, #e2edf4 100%);
    border-color: #bfd0dc;
    box-shadow: inset 3px 0 0 #4f718a, 0 7px 16px rgba(79, 113, 138, 0.12);
}

.season-entry.entry-club-tournament,
.season-entry.entry-other-tournament,
.season-entry.entry-nongolf-event {
    color: #132513;
}

.season-entry-link,
.season-entry-label {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.36rem 0.42rem 0.36rem 0.48rem;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.season-entry-link:hover {
    background: rgba(20, 38, 17, 0.05);
    color: inherit;
    text-decoration: underline;
}

.season-week-empty {
    flex: 1 1 auto;
    border-radius: 12px;
    border: 1px dashed rgba(184, 200, 175, 0.85);
    background: rgba(242, 246, 240, 0.55);
}

.season-detail-card {
    padding: 1.1rem 1.15rem 1.2rem;
}

.season-detail-months {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.season-detail-month {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.season-detail-month-grid {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
}

.season-detail-month-table {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: max(100%, 47rem);
}

.season-detail-month-head {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(184, 200, 175, 0.55);
}

.season-detail-month-head h3 {
    margin: 0;
}

.season-detail-weekday-row,
.season-detail-week-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(6rem, 1fr));
    gap: 0.45rem;
}

.season-detail-week-row + .season-detail-week-row {
    margin-top: 0.45rem;
}

.season-detail-weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border-radius: 12px;
    background: rgba(237, 244, 234, 0.9);
    color: var(--color-bg-strong);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.season-detail-weekday.is-weekend {
    background: rgba(230, 236, 243, 0.92);
    color: #294156;
}

.season-detail-day {
    min-height: 8.8rem;
    padding: 0.52rem;
    border-radius: 16px;
    border: 1px solid rgba(184, 200, 175, 0.72);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf7 100%);
    box-shadow: 0 8px 20px rgba(20, 38, 17, 0.05);
}

.season-detail-day.is-weekend {
    background: linear-gradient(180deg, #f5f8fb 0%, #edf2f8 100%);
    border-color: rgba(191, 208, 220, 0.95);
}

.season-detail-day.is-current-day {
    border-color: rgba(39, 73, 41, 0.95);
    box-shadow: 0 0 0 2px rgba(39, 73, 41, 0.12), 0 10px 22px rgba(20, 38, 17, 0.08);
}

.season-detail-day.is-placeholder {
    min-height: 6.6rem;
    border-style: dashed;
    background: rgba(245, 247, 243, 0.55);
    box-shadow: none;
}

.season-detail-day-head {
    margin-bottom: 0.45rem;
    color: var(--color-bg-strong);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
}

.season-detail-day .season-entry {
    font-size: 0.74rem;
}

.season-detail-day .season-entry-link,
.season-detail-day .season-entry-label {
    padding: 0.3rem 0.34rem 0.3rem 0.42rem;
    white-space: normal;
}

@media screen and (max-width: 900px) {
    .season-detail-card {
        padding: 0.95rem 0.9rem 1rem;
    }

    .season-detail-month-table {
        width: max(100%, 40rem);
    }

    .season-detail-weekday-row,
    .season-detail-week-row {
        grid-template-columns: repeat(7, minmax(5.2rem, 1fr));
        gap: 0.35rem;
    }

    .season-detail-day {
        min-height: 7.5rem;
        padding: 0.42rem;
        border-radius: 14px;
    }

    .season-detail-day .season-entry {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 560px) {
    .season-detail-month-table {
        width: max(100%, 34rem);
    }

    .season-detail-weekday {
        min-height: 1.8rem;
        font-size: 0.72rem;
    }

    .season-detail-day {
        min-height: 6.6rem;
    }

    .season-detail-day-head {
        margin-bottom: 0.35rem;
        font-size: 0.76rem;
    }
}

@media screen and (max-width: 1520px) {
    .season-week-cells {
        display: flex;
        flex-wrap: wrap;
    }

    .season-week-cells > .season-week-card {
        flex: 1 1 12rem;
        min-width: min(100%, 12rem);
    }

    .season-week-cells > .season-week-card.is-placeholder {
        display: none;
    }
}

address {
    font-style: normal;
}

#main-info ul,
#contacts ul,
#membership ul,
#payments ul,
#workflow ul,
#invitation ul {
    list-style: none;
    padding: 0;
}

#main-info li,
#contacts li,
#membership li,
#payments li,
#workflow li,
#invitation li {
    display: grid;
    grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
    gap: 0.35rem 1rem;
    padding: 0.35rem 0;
    align-items: start;
}

#main-info li strong,
#contacts li strong,
#membership li strong,
#payments li strong,
#workflow li strong,
#invitation li strong {
    color: var(--color-text-muted);
}

pre {
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background-color: #f3f6f1;
    border: 1px solid var(--color-border);
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, 'Cascadia Mono', 'Roboto Mono', Consolas, monospace;
    font-size: 0.95rem;
}

.data-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 16px;
}

th {
    text-align: left;
}

table.dataview {
    width: 100%;
    min-width: 32rem;
}

table.dataview thead input,
table.dataview thead select {
    width: 100%;
    min-width: 6rem;
    font: inherit;
    color: var(--color-text);
    background-color: white;
    border: 1px solid var(--color-border-strong);
    border-radius: 10px;
    padding: 0.42rem 0.55rem;
}

table.dataview tbody input[type="checkbox"],
.bulk-select-cell input[type="checkbox"] {
    inline-size: 1rem;
    block-size: 1rem;
    accent-color: var(--color-accent);
}

.bulk-select-cell {
    width: 2.35rem;
    text-align: center;
}

.bulk-select-cell .checkbox {
    justify-content: center;
}

.action-panel {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

a.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #1f5c8a 0%, #16466a 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(22, 70, 106, 0.18);
}

a.detail-link:hover {
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #16466a 0%, #123652 100%);
}

.detail-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
    line-height: 1;
}

.detail-link-id {
    font-variant-numeric: tabular-nums;
}

table.dataview tbody tr.has-row-detail {
    cursor: pointer;
}

table.dataview tbody tr.has-row-detail:hover {
    box-shadow: inset 0 0 0 999px rgba(237, 246, 231, 0.96);
}

@media screen and (max-width: 768px) {
    .admin-main {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    table.dataview {
        min-width: 26rem;
    }

    .season-week-row {
        grid-template-columns: 1fr;
    }

    .season-week-cells > .season-week-card {
        flex-basis: min(100%, 13rem);
    }

    .season-week-range,
    .season-entry-link,
    .season-entry-label {
        white-space: normal;
    }
}

@media screen and (min-width: 1100px) {
    body.admin-ui {
        display: grid;
        grid-template-columns: 18.5rem minmax(0, 1fr);
        align-items: start;
    }

    body.admin-ui > span {
        grid-column: 2;
    }

    #header-container {
        position: sticky;
        top: 0;
        min-height: 100vh;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 24px 0 48px rgba(20, 38, 17, 0.16);
    }

    #header-contents {
        max-width: none;
        margin: 0;
        padding: 1.5rem 1.25rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-img {
        width: 84px;
        min-height: 64px;
        max-height: 84px;
        flex-basis: auto;
    }

    .logo-img img {
        width: 84px;
        min-height: 64px;
        max-height: 84px;
    }

    .logo-text {
        font-size: 1.65rem;
        line-height: 1.15;
        max-width: 10ch;
    }

    #main-menu {
        display: block;
        background: transparent;
        border-top: none;
        padding: 0 1.1rem 1.6rem;
    }

    #main-menu ul {
        max-width: none;
        margin: 0;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    #main-menu li.menu-filler {
        display: none;
    }

    #main-menu a {
        font-size: 0.98rem;
        padding: 0.9rem 1rem;
    }

    .admin-main {
        padding: 2rem 2rem 3rem;
    }

    .admin-page-shell {
        max-width: none;
    }

    .subpage-layout {
        grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
        align-items: start;
    }

    .member-subpage-layout,
    .application-subpage-layout,
    .competition-subpage-layout,
    .mail-subpage-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    nav.subpage-links,
    nav#views {
        position: sticky;
        top: 1.5rem;
        padding: 1rem;
    }

    nav.subpage-links ul,
    nav#views ul {
        flex-direction: column;
    }

    .application-subpage-layout nav.subpage-links {
        top: 1rem;
        z-index: 2;
    }

    .member-subpage-layout nav.subpage-links,
    .competition-subpage-layout nav.subpage-links,
    .mail-subpage-layout nav.subpage-links {
        position: static;
        top: auto;
    }

    .member-subpage-layout nav.subpage-links ul,
    .application-subpage-layout nav.subpage-links ul,
    .competition-subpage-layout nav.subpage-links ul,
    .mail-subpage-layout nav.subpage-links ul {
        flex-direction: row;
    }

    .member-subpage-layout .data-table-wrapper,
    .application-subpage-layout .data-table-wrapper,
    .competition-subpage-layout .data-table-wrapper,
    .mail-subpage-layout .data-table-wrapper {
        max-block-size: min(60dvh, calc(100dvh - 15rem));
    }
}

@media screen and (max-width: 480px) {
    html, body {
        font-size: 10.5pt;
    }

    .admin-main {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .page-header,
    .section-card,
    .admin-page-shell > section:not(.feedback-panel),
    nav.subpage-links,
    nav#views,
    .app-form {
        border-radius: 16px;
        padding: 1rem;
    }

    .form-element {
        min-width: 100%;
    }

    .quick-link-list li {
        min-width: 100%;
    }

    .member-subpage-layout .data-table-wrapper,
    .application-subpage-layout .data-table-wrapper,
    .competition-subpage-layout .data-table-wrapper {
        max-block-size: min(54dvh, calc(100dvh - 13.5rem));
    }

    .detail-page-grid {
        grid-template-columns: 1fr;
    }

    .season-week-cells > .season-week-card {
        flex-basis: 100%;
    }

    .season-week-row-link-hint {
        font-size: 0.68rem;
    }

    .season-detail-month-grid {
        overflow: visible;
    }

    .season-detail-month-table {
        width: 100%;
    }

    .season-detail-weekday-row {
        display: none;
    }

    .season-detail-week-row {
        grid-template-columns: 1fr;
        gap: 0.42rem;
    }

    .season-detail-day.is-placeholder {
        display: none;
    }

    .season-detail-day {
        min-height: 0;
        padding: 0.48rem;
    }

    .season-detail-day .season-entry {
        font-size: 0.74rem;
    }
}
