:root {
    --wine: #8d2029;
    --wine-dark: #68151c;
    --ink: #18212b;
    --muted: #66717c;
    --paper: #f5f3f0;
    --line: #ded9d2;
    --white: #fff;
    --green: #126544;
    --green-pale: #dff4e8;
    --red: #a6201b;
    --shadow: 0 10px 30px rgba(46, 30, 24, .08);
}

/* Desktop: os mesmos grupos do menu lateral, mantendo acesso direto. */
@media (min-width: 761px) {
    .navigation.navigation { flex-direction: column; flex-wrap: nowrap; gap: 0; overflow: visible; border-bottom: 0; }
    .navigation-group { display: flex; align-items: baseline; gap: .65rem; padding: .2rem 0; border-bottom: 1px solid var(--line); }
    .navigation-group-label { flex: 0 0 108px; padding: .65rem .55rem; color: var(--wine); font-size: .65rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .navigation-group-links { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; gap: 0; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.side-menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { width: 100%; padding: .68rem .75rem; border: 1px solid #c8c1ba; border-radius: 9px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
label { display: grid; gap: .35rem; color: #3c4752; font-size: .9rem; font-weight: 700; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: .25rem; font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.1; }
h2 { margin-bottom: .5rem; font-size: 1.25rem; }
h3 { margin-bottom: .3rem; font-size: 1rem; }
.eyebrow { margin-bottom: .35rem; color: var(--wine); font-size: .73rem; font-weight: 900; letter-spacing: .12em; }
.muted { color: var(--muted); }

.app-shell { width: min(1440px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 3rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 0 1rem; }
.brand-navigation { display: flex; min-width: 0; align-items: center; gap: .6rem; }
.site-menu-toggle { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid #c9c1ba; border-radius: 9px; background: #fff; color: var(--ink); font-size: 1.35rem; line-height: 1; }
.site-menu-toggle:hover, .site-menu-toggle[aria-expanded="true"] { border-color: #ad7b7f; background: #fff7f7; color: var(--wine); }
.brand { display: flex; align-items: center; gap: .7rem; border: 0; padding: 0; background: transparent; color: var(--ink); text-align: left; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--wine); color: #fff; font-size: .85rem; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .77rem; font-weight: 600; }
.account { position: relative; display: flex; align-items: center; gap: .55rem; }
.session-label { color: var(--muted); font-size: .88rem; }
.mobile-account-toggle, .mobile-account-menu { display: none; }
.search-button { display: inline-flex; min-height: 40px; align-items: center; gap: .35rem; border: 1px solid #c9c1ba; border-radius: 9px; padding: .45rem .68rem; background: #fff; color: var(--ink); font-size: .84rem; font-weight: 800; }
.search-button > span:first-child { font-size: 1.2rem; line-height: 1; }
.search-button:hover { border-color: #ad7b7f; background: #fff7f7; color: var(--wine); }
.notification-button { position: relative; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #c9c1ba; border-radius: 9px; background: #fff; color: var(--ink); font-size: 1.02rem; }
.notification-button:hover, .notification-button[aria-expanded="true"] { border-color: #ad7b7f; background: #fff7f7; }
.notification-count { position: absolute; top: -7px; right: -7px; min-width: 19px; border: 2px solid var(--paper); border-radius: 999px; padding: 0 4px; background: var(--wine); color: #fff; font-size: .67rem; font-weight: 900; line-height: 19px; text-align: center; }
.notifications-panel { position: absolute; z-index: 40; top: calc(100% + .55rem); right: 0; width: min(390px, calc(100vw - 1rem)); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.notifications-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.notifications-heading .eyebrow { margin-bottom: .15rem; }
.notifications-heading h2 { margin: 0; color: var(--wine); font-size: 1.05rem; }
.notifications-heading .text-button { font-size: .79rem; }
.notifications-list { display: grid; max-height: min(62dvh, 520px); overflow-y: auto; }
.notification-item { display: grid; gap: .18rem; border: 0; border-bottom: 1px solid #eee9e4; padding: .85rem 1rem .85rem 1.2rem; background: #fff; color: var(--ink); text-align: left; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #fff9f8; }
.notification-item.unread { box-shadow: inset 4px 0 0 var(--wine); background: #fffafa; }
.notification-item strong { font-size: .93rem; }
.notification-item span { color: var(--muted); font-size: .86rem; line-height: 1.38; }
.notification-item small { color: #8c807a; font-size: .73rem; font-weight: 700; }
.notification-empty { margin: 0; padding: 1.2rem; color: var(--muted); font-size: .91rem; }

.navigation { display: flex; gap: .1rem; margin-bottom: 1.4rem; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.navigation::-webkit-scrollbar { display: none; }
.nav-link { flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; padding: .72rem .74rem; background: transparent; color: var(--muted); font-size: .92rem; font-weight: 800; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--wine); }
.nav-link.active { border-color: var(--wine); }
.side-menu-overlay { position: fixed; z-index: 100; inset: 0; display: flex; background: rgba(20, 15, 16, .62); opacity: 0; transition: opacity .2s ease; }
.side-menu-overlay.is-open { opacity: 1; }
.side-menu { display: grid; width: min(365px, calc(100vw - 42px)); min-height: 100%; grid-template-rows: auto 1fr; overflow: hidden auto; background: #272425; color: #fff; box-shadow: 12px 0 30px rgba(0, 0, 0, .3); transform: translateX(-105%); transition: transform .24s ease; }
.side-menu-overlay.is-open .side-menu { transform: translateX(0); }
.side-menu-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.15rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-menu-brand { display: flex; min-width: 0; align-items: center; gap: .65rem; }
.side-menu-brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: #fff; }
.side-menu-brand strong, .side-menu-brand small { display: block; }
.side-menu-brand strong { font-size: 1.08rem; }
.side-menu-brand small { color: #c9c0c1; font-size: .72rem; font-weight: 700; }
.side-menu-close { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid #686062; border-radius: 8px; background: transparent; color: #fff; font-size: 1.55rem; line-height: 1; }
.side-menu-close:hover { border-color: #e6a0a4; background: #4a2729; }
.side-menu-navigation { display: grid; align-content: start; gap: 1rem; padding: 1rem; }
.side-menu-group { display: grid; gap: .18rem; }
.side-menu-group + .side-menu-group { padding-top: .95rem; border-top: 1px solid rgba(255,255,255,.11); }
.side-menu-group > p { margin: 0 0 .35rem; padding: 0 .7rem; color: #d8a9ab; font-size: .68rem; font-weight: 900; letter-spacing: .11em; }
.side-menu-link { display: flex; width: 100%; min-height: 45px; align-items: center; gap: .7rem; border: 0; border-radius: 9px; padding: .65rem .72rem; background: transparent; color: #f3eeee; font-weight: 750; text-align: left; }
.side-menu-link::before { display: grid; width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; place-items: center; color: #eba9ad; font-size: 1.08rem; font-weight: 700; content: "•"; }
.side-menu-link[data-view="dashboard"]::before { content: "⌂"; }
.side-menu-link[data-view="about"]::before { content: "i"; }
.side-menu-link[data-view="schedules"]::before { content: "⌖"; }
.side-menu-link[data-view="calendar"]::before { content: "□"; }
.side-menu-link[data-view="gallery"]::before { content: "▧"; }
.side-menu-link[data-view="athletes"]::before { content: "♙"; }
.side-menu-link[data-view="personal"]::before { content: "◉"; }
.side-menu-link[data-view="greetings"]::before { content: "◎"; }
.side-menu-link[data-view="program"]::before { content: "≡"; }
.side-menu-link[data-view="exam-rules"]::before { content: "✓"; }
.side-menu-link[data-view="terminology"]::before { content: "文"; }
.side-menu-link[data-view="registrations"]::before { content: "↗"; }
.side-menu-link[data-view="help"]::before { content: "?"; }
.side-menu-link[data-view="pending"]::before { content: "!"; }
.side-menu-link[data-view="activities"]::before { content: "◫"; }
.side-menu-link[data-view="payments"]::before { content: "€"; }
.side-menu-link[data-view="finances"]::before { content: "↕"; }
.side-menu-link[data-view="users"]::before { content: "♧"; }
.side-menu-link:hover, .side-menu-link.active { background: #572126; color: #fff; }
.side-menu-link:hover::before, .side-menu-link.active::before { color: #fff; }
.side-menu-link.active { box-shadow: inset 3px 0 0 #efaeb2; }
.app-message { min-height: 1.3rem; margin: 0 0 .8rem; color: var(--red); font-size: .92rem; }
.app-message.success { color: var(--green); }

.button { min-height: 40px; border: 1px solid transparent; border-radius: 9px; padding: .56rem .9rem; font-weight: 800; }
.button.primary { background: var(--wine); color: #fff; }
.button.primary:hover { background: var(--wine-dark); }
.button.quiet { border-color: #c9c1ba; background: #fff; color: var(--ink); }
.button.quiet:hover { background: #f5f1ed; }

.home-identity { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr); overflow: hidden; margin-bottom: 1rem; border-radius: 18px; background: linear-gradient(120deg, #150d0f 0%, #4d151b 57%, #972830 100%); color: #fff; box-shadow: var(--shadow); }
.home-identity::after { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 32px, rgba(255,255,255,.035) 32px 34px); content: ""; pointer-events: none; }
.home-identity-copy, .home-identity-emblem { position: relative; z-index: 1; }
.home-identity-copy { padding: clamp(1.8rem, 5vw, 3.4rem); }
.home-identity .eyebrow { color: #f2a2a2; }
.home-identity h1 { max-width: 720px; margin-bottom: .55rem; font-size: clamp(2rem, 4.5vw, 3.55rem); letter-spacing: -.04em; }
.home-identity p:not(.eyebrow) { max-width: 610px; margin-bottom: 1.3rem; color: #f4e4e5; font-size: 1.05rem; }
.home-identity-emblem { display: grid; align-content: center; justify-items: center; gap: .4rem; padding: 1.5rem; border-left: 1px solid rgba(255,255,255,.16); background: rgba(17, 9, 10, .2); text-align: center; }
.home-identity-emblem img { width: min(180px, 100%); aspect-ratio: 1; border-radius: 50%; object-fit: contain; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.home-identity-emblem p { margin: .5rem 0 0; color: #f6dadb; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.home-identity-emblem strong { color: #fff; font-size: .96rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.home-identity .button.quiet { border-color: #ffffff88; background: transparent; color: #fff; }

.home-featured-event { margin-bottom: 1.2rem; }
.admin-pending-panel { margin-bottom: 1.2rem; padding: 1.1rem; border: 1px solid #dfcbc9; border-radius: 14px; background: linear-gradient(135deg, #fffafa 0%, #fff 100%); }
.admin-pending-panel .section-heading { align-items: end; margin-bottom: .8rem; }
.admin-pending-heading-actions { display: flex; align-items: center; gap: .75rem; }
.admin-pending-summary { color: var(--muted); font-size: .84rem; font-weight: 750; }
.admin-pending-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.admin-pending-card { display: grid; align-content: start; gap: .42rem; min-height: 175px; border: 1px solid var(--line); border-radius: 11px; padding: .9rem; background: #fff; }
.admin-pending-card h3 { margin: 0; color: var(--wine); }
.admin-pending-card > p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.38; }
.admin-pending-count { color: var(--wine); font-size: 1.65rem; font-weight: 900; line-height: 1; }
.admin-pending-items { display: grid; gap: .25rem; margin: .05rem 0; padding: 0; list-style: none; }
.admin-pending-items button { width: 100%; overflow: hidden; border: 0; padding: .28rem 0; background: transparent; color: var(--ink); font-size: .82rem; font-weight: 750; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.admin-pending-items button:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.admin-pending-card .text-button { margin-top: auto; font-size: .84rem; }
.admin-pending-clear { grid-column: 1 / -1; margin: 0; border: 1px dashed #c7daca; border-radius: 10px; padding: 1rem; background: #fbfffc; color: var(--green); font-weight: 800; }
.pending-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.pending-summary-card { position: relative; display: grid; min-height: 150px; grid-template-columns: 1fr auto; align-content: start; gap: .15rem .45rem; border: 1px solid var(--line); border-radius: 13px; padding: .9rem; background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(44, 37, 32, .04); text-align: left; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.pending-summary-card:hover, .pending-summary-card.active { border-color: #b47a7d; box-shadow: 0 10px 22px rgba(71, 33, 35, .1); transform: translateY(-1px); }
.pending-summary-card strong { grid-column: 1; color: var(--wine); font-size: 2rem; line-height: 1.05; }
.pending-summary-card > span:not(.pending-summary-icon) { grid-column: 1 / -1; color: var(--ink); font-size: .9rem; font-weight: 850; }
.pending-summary-card small { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; line-height: 1.36; }
.pending-summary-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #f4e8e7; color: var(--wine); font-size: 1.05rem; font-weight: 900; }
.pending-panel { padding: 1rem; }
.pending-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .85rem; }
.pending-panel-heading h2 { margin: 0; }
.pending-layout-toggle { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f8f5f2; }
.pending-layout-toggle button { min-height: 36px; border: 0; border-right: 1px solid var(--line); padding: .42rem .7rem; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 800; }
.pending-layout-toggle button:last-child { border-right: 0; }
.pending-layout-toggle button:hover, .pending-layout-toggle button.active { background: var(--wine); color: #fff; }
.pending-filter-bar { grid-template-columns: repeat(3, minmax(170px, 1fr)); margin-bottom: .85rem; }
.pending-work-list { display: grid; gap: .5rem; }
.pending-work-header, .pending-work-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(210px, .82fr) minmax(175px, .58fr); gap: .9rem; align-items: center; }
.pending-work-header { padding: 0 .85rem; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.pending-work-row { border: 1px solid #e2ddd7; border-radius: 11px; padding: .78rem .85rem; background: #fff; box-shadow: 0 2px 6px rgba(44, 37, 32, .035); }
.pending-work-row:hover { border-color: #c99ea1; background: #fffafa; }
.pending-work-main { display: grid; min-width: 0; gap: .12rem; }
.pending-work-main > strong, .pending-work-main > span, .pending-work-main > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-work-main > strong { color: var(--wine); font-size: .96rem; }
.pending-work-main > span { color: var(--ink); font-size: .87rem; font-weight: 760; }
.pending-work-main > small { color: var(--muted); font-size: .77rem; }
.pending-work-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .12rem; }
.badge.pending-registration { background: #e6ebfb; color: #314e98; }
.badge.pending-correction { background: #f9e2df; color: #912f27; }
.badge.pending-payment { background: #fff0d8; color: #8b5812; }
.badge.pending-account { background: #ece8f8; color: #5c438e; }
.pending-work-context { display: grid; gap: .22rem; color: var(--muted); font-size: .8rem; }
.pending-work-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-work-action { justify-self: end; }
.pending-action-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.pending-work-action .button { min-height: 36px; padding: .42rem .65rem; font-size: .8rem; white-space: nowrap; }
.pending-work-list.cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .75rem; }
.pending-work-list.cards .pending-work-row { display: grid; grid-template-columns: 1fr; align-content: start; gap: .7rem; min-height: 190px; padding: .9rem; }
.pending-work-list.cards .pending-work-context { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: .6rem; border-top: 1px solid #eee8e3; }
.pending-work-list.cards .pending-work-context span::before { display: block; color: #8f837e; font-size: .68rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; content: attr(data-label); }
.pending-work-list.cards .pending-work-action { align-self: end; justify-self: stretch; }
.pending-work-list.cards .pending-work-action .button { width: 100%; }
.pending-work-list.cards .pending-action-group { justify-content: stretch; }
.pending-work-list.cards .pending-action-group .button { flex: 1 1 140px; }
.pending-empty { display: grid; gap: .2rem; border: 1px dashed #c7daca; border-radius: 10px; padding: 1.2rem; background: #fbfffc; color: var(--green); text-align: center; }
.pending-empty span { color: var(--muted); font-size: .86rem; }
.home-featured-event-card { display: grid; grid-template-columns: minmax(240px, 390px) minmax(0, 1fr); overflow: hidden; border-radius: 18px; background: linear-gradient(120deg, #150d0f 0%, #4d151b 57%, #972830 100%); color: #fff; box-shadow: var(--shadow); }
.home-featured-poster { display: grid; min-height: 525px; place-items: center; overflow: hidden; background: #171114; }
.home-featured-poster img { width: 100%; height: 100%; object-fit: contain; }
.home-featured-poster-button { position: relative; display: grid; width: 100%; height: 100%; min-height: 525px; overflow: hidden; border: 0; padding: 0; background: transparent; }
.home-featured-poster-button img { grid-area: 1 / 1; }
.home-featured-poster-button span { z-index: 1; grid-area: 1 / 1; align-self: center; justify-self: center; margin: 0; border-radius: 999px; padding: .45rem .72rem; background: rgba(0, 0, 0, .72); color: #fff; font-size: .78rem; font-weight: 850; opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; }
.home-featured-poster-button:hover span, .home-featured-poster-button:focus-visible span { opacity: 1; transform: translateY(0); }
.home-featured-copy { display: grid; align-content: center; justify-items: start; padding: clamp(1.8rem, 5vw, 4.2rem); }
.home-featured-copy .eyebrow { color: #f2a2a2; }
.home-featured-copy h2 { max-width: 680px; margin: .35rem 0 .85rem; color: #fff; font-size: clamp(2.15rem, 5vw, 4.2rem); letter-spacing: -.045em; }
.home-featured-copy p:not(.eyebrow) { max-width: 600px; margin-bottom: .45rem; color: #f4e4e5; font-size: 1.05rem; }
.home-featured-date { font-size: 1.15rem !important; font-weight: 850; }
.home-featured-location { margin-bottom: 1.3rem !important; }
.home-featured-copy .hero-actions { margin-top: 1rem; }
.home-featured-copy .button.quiet { border-color: #ffffff88; background: transparent; color: #fff; }
.home-featured-poster-placeholder { display: grid; justify-items: center; gap: 1rem; padding: 1.5rem; text-align: center; }
.home-featured-poster-placeholder strong { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.home-featured-poster-placeholder small { color: #f2d6d8; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.home-featured-logo { padding: 2rem; background: rgba(17, 9, 10, .2); }
.home-featured-logo img { width: min(235px, 100%); height: auto; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.summary-card, .panel, .athlete-card, .activity-card, .term-card, .rule-card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 2px 7px rgba(44, 37, 32, .04); }
.summary-card { padding: 1.05rem; }
.summary-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.summary-card strong { display: block; margin-top: .2rem; font-size: 2rem; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel { padding: 1.1rem; }
.home-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.7rem; }
.home-welcome h2 { margin-bottom: .45rem; color: var(--wine); }
.home-welcome > p:not(.eyebrow), .home-gallery-copy > p:not(.eyebrow) { color: var(--muted); }
.home-welcome { background: linear-gradient(135deg, #fff 20%, #faf1f0 100%); }
.text-button { border: 0; padding: 0; background: transparent; color: var(--wine); font-weight: 900; text-align: left; }
.text-button:hover { color: var(--wine-dark); text-decoration: underline; text-underline-offset: 3px; }
.home-section { margin: 0 0 1.7rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.section-heading h2 { margin: 0; }
.home-dojo-grid, .home-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.home-dojo-card, .home-resource-card { display: grid; min-height: 155px; align-content: start; gap: .35rem; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; background: var(--white); color: var(--ink); text-align: left; box-shadow: 0 2px 7px rgba(44, 37, 32, .04); }
.home-dojo-card:hover, .home-resource-card:hover { border-color: #b47a7d; box-shadow: var(--shadow); transform: translateY(-2px); }
.home-dojo-card > span, .home-resource-card > span { color: var(--wine); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.home-dojo-card strong, .home-resource-card strong { font-size: 1.15rem; }
.home-dojo-card small, .home-resource-card small { color: var(--muted); line-height: 1.45; }
.home-gallery-preview { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); min-height: 220px; padding: 0; overflow: hidden; }
.home-gallery-cover { display: grid; min-height: 100%; place-items: center; overflow: hidden; background: linear-gradient(135deg, #4a1218, #a8262f); color: #fff; font-size: 1.6rem; font-weight: 900; letter-spacing: .1em; }
.home-gallery-cover img { width: 100%; height: 100%; object-fit: cover; }
.home-gallery-copy { display: grid; align-content: center; padding: 1.1rem; }
.home-gallery-copy h2 { margin-bottom: .35rem; color: var(--wine); }
.home-gallery-copy .text-button { margin-top: .35rem; }
.home-resources { padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #eee8e2; }
.panel-heading { display: flex; justify-content: space-between; gap: .8rem; margin-bottom: .65rem; }
.panel-heading span { color: var(--muted); font-size: .82rem; }
.list { display: grid; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 0; border-top: 1px solid #eee9e4; }
.list-item:first-child { border-top: 0; }
.list-item p { margin: 0; }
.list-item small { color: var(--muted); }
.birthday-athlete { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.birthday-athlete .avatar { width: 38px; height: 38px; flex: 0 0 38px; }
.birthday-athlete strong, .birthday-athlete small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.birthday-athlete time { display: block; margin-top: .15rem; color: var(--wine); font-size: .84rem; font-weight: 850; }
.birthday-today-badge { display: inline-block; border-radius: 999px; padding: .16rem .45rem; background: #fff0ba; color: #7b5000; font-size: .71rem; font-weight: 900; line-height: 1.25; }
.birthday-athlete .birthday-today-badge { display: table; margin-top: .18rem; }
.birthday-panel { margin-bottom: 1rem; }
.birthday-panel .panel-heading { align-items: end; }
.birthday-panel .panel-heading h2 { margin: 0; }
.birthday-list-item { width: 100%; justify-content: flex-start; border: 0; border-top: 1px solid #eee9e4; background: transparent; color: var(--ink); text-align: left; }
.birthday-list-item:hover { background: #fff9f8; }
.dojo-kun ol { display: grid; gap: .7rem; margin: 1rem 0 0; padding-left: 1.35rem; }
.dojo-kun li::marker { color: var(--wine); font-weight: 900; }
.greetings-dojo-kun { max-width: 860px; margin-top: 1rem; }

.view-heading, .guide-heading { margin-bottom: 1rem; }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.view-heading p:not(.eyebrow), .guide-heading > p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.view-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.help-card, .help-intro, .help-owner-guide { display: grid; align-content: start; gap: .68rem; }
.help-card h2, .help-intro h2, .help-owner-guide h2 { margin: 0; color: var(--wine); }
.help-steps { display: grid; gap: .82rem; margin: 0; padding: 0; list-style: none; counter-reset: help-step; }
.help-steps li { position: relative; min-height: 2rem; padding-left: 2.55rem; }
.help-steps li::before { position: absolute; top: .02rem; left: 0; display: grid; width: 1.78rem; height: 1.78rem; place-items: center; border-radius: 999px; background: #f1e4e3; color: var(--wine); content: counter(help-step); counter-increment: help-step; font-size: .78rem; font-weight: 900; }
.help-steps strong, .help-steps span { display: block; }
.help-steps span { margin-top: .12rem; color: var(--muted); font-size: .91rem; line-height: 1.42; }
.help-owner-guide { margin-top: 1rem; }
.about-panel { max-width: 860px; font-size: 1rem; line-height: 1.7; }
.about-panel h2 { margin: 1.5rem 0 .55rem; color: var(--wine); font-size: 1.12rem; }
.about-panel p { margin: 0 0 1rem; }
.about-list { display: grid; gap: .45rem; margin: 0 0 1.15rem; padding-left: 1.3rem; }
.about-list li::marker { color: var(--wine); }
.osu { color: var(--wine); font-size: 1.1rem; font-weight: 900; }
.schedule-location { margin-top: 1.35rem; }
.schedule-location:first-of-type { margin-top: 0; }
.schedule-location-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; margin-bottom: .65rem; }
.schedule-location-heading h2 { margin: 0; color: var(--wine); }
.schedule-location-heading span { color: var(--muted); font-size: .84rem; font-weight: 700; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.schedule-grid-single { grid-template-columns: minmax(0, 1fr); max-width: calc(50% - .42rem); }
.schedule-card { padding: 0; overflow: hidden; }
.schedule-card h3 { margin: 0; padding: .9rem 1rem; background: #f6efec; color: var(--wine); }
.schedule-day { padding: .9rem 1rem; border-top: 1px solid var(--line); }
.schedule-day > strong { color: var(--ink); font-size: .9rem; }
.schedule-day ul { display: grid; gap: .38rem; margin: .55rem 0 0; padding: 0; list-style: none; }
.schedule-day li { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: .5rem; color: #4d555c; font-size: .92rem; }
.schedule-day time { color: var(--wine); font-weight: 800; }
.schedule-map-link { display: block; margin-top: auto; border-top: 1px solid var(--line); padding: .8rem 1rem; color: var(--wine); font-size: .88rem; font-weight: 850; text-decoration: none; }
.schedule-map-link:hover { background: #fff8f8; text-decoration: underline; text-underline-offset: 3px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 1rem; margin-bottom: 1.7rem; }
.contact-section { margin-top: 1.7rem; }
.contact-card { min-height: 220px; }
.contact-card-featured { display: grid; align-content: center; background: linear-gradient(135deg, #4d151b, #8d2029); color: #fff; }
.contact-card-featured .eyebrow { color: #f2a2a2; }
.contact-card-featured h2 { color: #fff; font-size: 1.6rem; }
.contact-card-featured p:not(.eyebrow) { max-width: 560px; color: #f8e7e8; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .35rem; }
.contact-card-featured .button.quiet { border-color: #ffffff88; background: transparent; color: #fff; }
.contact-details { display: grid; gap: 1rem; margin: 1rem 0 0; }
.contact-details div { display: grid; gap: .15rem; }
.contact-details dt { color: var(--muted); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.contact-details dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.contact-details a { color: var(--wine); }
.contact-locations { margin-top: 1rem; }
.contact-location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.contact-location-card { display: grid; min-height: 185px; align-content: start; }
.contact-location-card > span { color: var(--wine); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-location-card h3 { margin: .35rem 0; color: var(--wine); font-size: 1.15rem; }
.contact-location-card p { color: var(--muted); }
.contact-location-card .text-button { margin-top: auto; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(160px, .6fr) minmax(180px, .8fr); gap: .75rem; align-items: end; margin-bottom: 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.athlete-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.athlete-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; width: 100%; padding: .9rem; text-align: left; }
button.athlete-card { color: inherit; }
.athlete-card:hover { border-color: #b47a7d; box-shadow: var(--shadow); transform: translateY(-1px); }
.athlete-card-name { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .45rem; min-width: 0; }
.athlete-card h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.athlete-card p { margin: .1rem 0; color: var(--muted); font-size: .86rem; }
.athlete-card .card-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .45rem; }
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.album-card { display: grid; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; color: var(--ink); box-shadow: 0 2px 7px rgba(44, 37, 32, .04); touch-action: manipulation; }
.album-card:hover, .album-card:focus-visible { border-color: #b47a7d; outline: 3px solid #efd9da; outline-offset: 1px; transform: translateY(-1px); }
.album-card:active { transform: translateY(0); background: #fff8f8; }
.album-cover { display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; background: linear-gradient(135deg, #341519, #a02e32); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover-placeholder { color: #fff; font-size: 2.4rem; opacity: .85; }
.album-copy { display: block; padding: .85rem .95rem; }
.album-copy small { color: var(--wine); font-weight: 800; }
.album-copy h2 { margin: .15rem 0 .3rem; font-size: 1.05rem; }
.album-copy p { margin: 0; color: var(--muted); font-size: .88rem; }
.gallery-job-status { display: grid; gap: .2rem; margin-bottom: 1rem; padding: .8rem 1rem; border: 1px solid #d89a3d; border-radius: 10px; background: #fff6e6; color: #603b08; }
.gallery-job-status small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-drafts { display: grid; gap: .75rem; margin: 0 0 1rem; padding: .9rem; border: 1px solid #ded1c8; border-radius: 12px; background: #fffaf7; }
.gallery-drafts-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.gallery-drafts-heading .eyebrow { margin-bottom: .18rem; }
.gallery-drafts-heading h2 { margin-bottom: .16rem; color: var(--wine); font-size: 1.08rem; }
.gallery-drafts-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .84rem; }
.gallery-drafts-heading > span { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 999px; background: #f1e4db; color: var(--wine); font-size: .8rem; font-weight: 900; }
.gallery-draft-list { display: grid; gap: .55rem; }
.gallery-draft-card { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem; border: 1px solid #e7ddd7; border-radius: 9px; background: #fff; }
.gallery-draft-card small { color: var(--wine); font-size: .76rem; font-weight: 900; }
.gallery-draft-card h3 { margin: .15rem 0; color: var(--ink); font-size: .98rem; }
.gallery-draft-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.gallery-draft-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.gallery-draft-actions .button { min-height: 38px; }
.gallery-draft-actions .button.danger { border-color: #e5c3c1; color: #9c241d; }
.gallery-draft-actions .button.danger:hover { background: #fff2f1; }
.gallery-hidden-albums { display: grid; gap: .75rem; margin: 0 0 1rem; padding: .9rem; border: 1px solid #d8d0cb; border-radius: 12px; background: #f8f6f4; }
.gallery-hidden-heading { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.gallery-hidden-heading .eyebrow { margin-bottom: .18rem; color: #795d50; }
.gallery-hidden-heading h2 { margin-bottom: .16rem; color: var(--ink); font-size: 1.08rem; }
.gallery-hidden-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .84rem; }
.gallery-hidden-heading > span { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 999px; background: #e8e1dc; color: #5d5048; font-size: .8rem; font-weight: 900; }
.gallery-hidden-list { display: grid; gap: .55rem; }
.gallery-hidden-card { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem; border: 1px solid #e1d9d3; border-radius: 9px; background: #fff; }
.gallery-hidden-card small { color: #735a4d; font-size: .76rem; font-weight: 900; }
.gallery-hidden-card h3 { margin: .15rem 0; color: var(--ink); font-size: .98rem; }
.gallery-hidden-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.gallery-hidden-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.gallery-hidden-actions .button, .gallery-detail-actions .button { min-height: 38px; }
.gallery-hidden-actions .button.danger, .gallery-detail-actions .button.danger { border-color: #e5c3c1; color: #9c241d; }
.gallery-hidden-actions .button.danger:hover, .gallery-detail-actions .button.danger:hover { background: #fff2f1; }
.gallery-detail { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.gallery-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.gallery-detail-heading h2 { margin-bottom: .15rem; color: var(--wine); }
.gallery-detail-actions { display: flex; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.gallery-loading { margin: 0; padding: 1rem; border-radius: 10px; background: #f1ece8; color: #5d5048; font-weight: 700; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--wine); font-weight: 800; }
.text-button:hover { text-decoration: underline; }
.gallery-pending { margin: .8rem 0; padding: .7rem .85rem; border-radius: 9px; background: #f1ece8; color: #5d5048; }
.gallery-media-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; margin-top: 1rem; }
.gallery-media-wrap { position: relative; min-width: 0; }
.gallery-media { position: relative; display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; border: 0; border-radius: 8px; padding: 0; background: #e8e1dc; color: var(--ink); }
.gallery-media-wrap > .gallery-media { width: 100%; }
.gallery-media:hover { outline: 3px solid #bd7779; outline-offset: 1px; }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery-media-delete { position: absolute; z-index: 2; top: .28rem; right: .28rem; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.86); border-radius: 50%; padding: 0; background: rgba(123, 25, 30, .95); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.28); font-size: 1.25rem; font-weight: 900; line-height: 1; }
.gallery-media-delete:hover, .gallery-media-delete:focus-visible { background: #8c121b; outline: 3px solid #f2c4c7; outline-offset: 1px; }
.gallery-media-pending { align-content: center; gap: .3rem; border: 1px dashed #b9a89e; background: #f7f3ef; color: #6e5d54; font-size: .76rem; font-weight: 800; text-align: center; }
.gallery-media-pending small { color: #8a7064; font-size: .7rem; font-weight: 700; }
.video-media { gap: .3rem; padding: .4rem; background: linear-gradient(140deg, #291417, #843138); color: #fff; font-size: .78rem; font-weight: 800; text-align: center; }
.video-play { display: grid; width: 38px; height: 38px; place-items: center; border: 2px solid #fff; border-radius: 50%; padding-left: 2px; }
.gallery-upload-modal-card { width: min(780px, 100%); }
.gallery-manage-modal-card { width: min(560px, 100%); }
.gallery-upload-modal-card > h2 { margin-bottom: .25rem; }
.gallery-upload-intro, .gallery-manage-intro { margin: 0; color: var(--muted); }
.gallery-upload-dropzone { display: grid; min-height: 148px; gap: .35rem; place-items: center; align-content: center; border: 2px dashed #c8b7ae; border-radius: 11px; padding: 1rem; background: #fffcfa; color: var(--ink); text-align: center; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.gallery-upload-dropzone:hover, .gallery-upload-dropzone:focus-visible, .gallery-upload-dropzone.is-dragging { border-color: #9a2630; background: #fff5f5; outline: 0; }
.gallery-upload-dropzone.is-dragging { transform: scale(1.005); }
.gallery-upload-dropzone strong { color: var(--wine); font-size: 1.02rem; }
.gallery-upload-dropzone span { color: var(--muted); font-size: .9rem; }
.gallery-upload-dropzone small { max-width: 570px; color: #766a64; font-size: .78rem; line-height: 1.42; }
.gallery-upload-selection { margin-top: .7rem; border: 1px solid #e4dbd6; border-radius: 10px; background: #fff; }
.gallery-upload-selection > p { margin: 0; padding: .75rem .85rem; color: var(--muted); font-size: .86rem; }
.gallery-upload-selection-heading { display: flex; justify-content: space-between; gap: .7rem; padding: .7rem .85rem; border-bottom: 1px solid #eee6e2; color: var(--ink); font-size: .87rem; }
.gallery-upload-selection-heading span { color: var(--muted); font-weight: 750; white-space: nowrap; }
.gallery-upload-selection ul { display: grid; max-height: 188px; margin: 0; padding: .25rem; overflow: auto; list-style: none; }
.gallery-upload-file { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: .45rem; align-items: center; padding: .5rem; border-radius: 7px; }
.gallery-upload-file + .gallery-upload-file { border-top: 1px solid #f0ebe8; }
.gallery-upload-file-kind { display: grid; grid-row: 1 / span 2; width: 25px; height: 25px; place-items: center; border-radius: 6px; background: #f2e7e2; color: var(--wine); font-size: .76rem; font-weight: 900; }
.gallery-upload-file-name { overflow: hidden; color: var(--ink); font-size: .86rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.gallery-upload-file small { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.gallery-upload-file-uploading { background: #fff8e7; }
.gallery-upload-file-uploaded { background: #eff9f2; }
.gallery-upload-file-uploaded .gallery-upload-file-kind { background: #d7f1df; color: #07633f; }
.gallery-upload-file-failed { background: #fff4f3; }
.gallery-upload-file-failed .gallery-upload-file-kind { background: #f7dcda; color: #a21f19; }
.gallery-upload-progress { display: grid; gap: .35rem; padding: .75rem .85rem; border: 1px solid #e0d4cd; border-radius: 10px; background: #faf7f5; }
.gallery-upload-progress-heading { display: flex; justify-content: space-between; gap: .7rem; color: var(--ink); font-size: .87rem; }
.gallery-upload-progress-heading span, .gallery-upload-progress small { color: var(--muted); font-size: .78rem; font-weight: 750; }
.gallery-upload-progress progress { width: 100%; height: .7rem; accent-color: var(--wine); }
.gallery-upload-help { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
#gallery-modal { padding: .5rem; }
.gallery-modal-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(1100px, 100%); max-height: calc(100dvh - 1rem); overflow: hidden; padding: .7rem; border: 1px solid #3e3737; background: #151315; color: #fff; }
.gallery-modal-card > .close-button { z-index: 2; top: .5rem; right: .5rem; border: 2px solid #fff; background: #8d2029; color: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.45); font-weight: 900; }
.gallery-modal-card > .close-button:hover { background: #b12c36; color: #fff; }
.gallery-modal-header { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: .8rem; padding: 0 48px 0 .25rem; }
.gallery-modal-header h2 { margin: 0; color: #fff; font-size: 1rem; }
.gallery-modal-header span { color: #ddd; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.gallery-media-stage { display: grid; min-height: 0; align-items: center; justify-items: center; overflow: hidden; border-radius: 9px; background: #020202; }
.gallery-media-stage > img, .gallery-media-stage > video { display: block; max-width: 100%; max-height: calc(100dvh - 8rem); width: auto; height: auto; object-fit: contain; background: #020202; }
.gallery-media-stage > video { width: min(100%, 920px); }
.gallery-slide-navigation { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .65rem; }
.gallery-slide-button { min-height: 40px; border: 1px solid #86777a; border-radius: 8px; padding: .45rem .7rem; background: #292426; color: #fff; font-size: .85rem; font-weight: 800; }
.gallery-slide-button:hover { background: #8d2029; border-color: #dca8aa; }
#poster-modal { z-index: 60; padding: .7rem; }
.poster-modal-card { width: min(680px, 100%); max-height: calc(100dvh - 1.4rem); padding: .8rem; background: #151315; color: #fff; }
.poster-modal-card > .close-button { z-index: 2; border: 2px solid #fff; background: #8d2029; color: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.45); font-weight: 900; }
.poster-modal-heading { padding: .15rem 48px .65rem .2rem; }
.poster-modal-heading .eyebrow { color: #f2a2a2; }
.poster-modal-heading h2 { margin-bottom: .25rem; color: #fff; font-size: 1.1rem; }
.poster-modal-heading p:not(.eyebrow) { margin: 0; color: #ddd; font-size: .84rem; }
.poster-modal-image { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 9rem); margin: 0 auto; border-radius: 7px; object-fit: contain; }
.athlete-photo-modal-card { width: min(620px, 100%); max-height: calc(100dvh - 1.4rem); padding: .8rem; background: #151315; color: #fff; }
.athlete-photo-modal-card > .close-button { z-index: 2; border: 2px solid #fff; background: #8d2029; color: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.45); font-weight: 900; }
.athlete-photo-heading { padding: .15rem 48px .65rem .2rem; }
.athlete-photo-heading .eyebrow { color: #f2a2a2; }
.athlete-photo-heading h2 { margin: 0; color: #fff; font-size: 1.1rem; }
.athlete-photo-image { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 7rem); margin: 0 auto; border-radius: 7px; object-fit: contain; }
.avatar { display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden; border-radius: 50%; background: #f0e2de; color: var(--wine); font-size: .76rem; font-weight: 900; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.athlete-photo-button { position: relative; display: grid; overflow: hidden; border: 0; border-radius: 50%; padding: 0; background: transparent; cursor: zoom-in; }
.athlete-photo-button .avatar { grid-area: 1 / 1; }
.athlete-photo-button > span:last-child { z-index: 1; grid-area: 1 / 1; display: grid; width: 100%; height: 100%; place-items: center; background: rgba(31, 13, 16, .7); color: #fff; font-size: .56rem; font-weight: 900; opacity: 0; transition: opacity .16s ease; }
.athlete-photo-button:hover > span:last-child, .athlete-photo-button:focus-visible > span:last-child { opacity: 1; }
.athlete-photo-button:focus-visible { outline: 3px solid #bd7779; outline-offset: 3px; }
.badge { display: inline-block; border-radius: 999px; padding: .18rem .5rem; font-size: .74rem; font-weight: 900; }
.badge.active, .badge.present, .badge.passed { background: var(--green-pale); color: #07553d; }
.badge.inactive, .badge.absent, .badge.failed { background: #fbe5e3; color: #a21f19; }
.badge.registered, .badge.type { background: #ede9e4; color: #665b52; }
.badge.payment-paid, .badge.finance-credit { background: var(--green-pale); color: #07553d; }
.badge.payment-pending { background: #fff2d9; color: #895414; }
.badge.payment-exempt { background: #eeeaf7; color: #59498e; }
.badge.registration-submitted { background: #e5e8f5; color: #374d91; }
.badge.registration-needs_correction { background: #fff2d9; color: #895414; }
.badge.registration-validated { background: var(--green-pale); color: #07553d; }
.badge.registration-cancelled { background: #fbe5e3; color: #a21f19; }
.badge.finance-debit { background: #fbe5e3; color: #a21f19; }
.belt { display: inline-flex; align-items: center; gap: .4rem; }
.belt img { width: 112px; height: 19px; object-fit: contain; object-position: left center; }

.step-list { display: grid; gap: .7rem; margin: 1rem 0 0; padding-left: 1.5rem; }
.step-list li { padding-left: .2rem; }
.step-list li::marker { color: var(--wine); font-weight: 900; }
.step-list strong { display: block; color: var(--wine); font-size: .87rem; letter-spacing: .03em; }
.program-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.program-tab { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: .5rem; background: #fff; color: var(--muted); font-weight: 800; }
.program-tab.active { border-color: var(--wine); background: var(--wine); color: #fff; }
.program-detail h2 { color: var(--wine); }
.study-panel { margin-top: 1rem; padding: 1rem; border: 1px solid #e3d6d3; border-radius: 12px; background: #fffaf9; }
.study-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.study-heading h3, .program-practice > h3 { margin-bottom: .15rem; color: var(--wine); }
.study-progress { display: grid; min-width: 88px; place-items: center; padding: .45rem .65rem; border-radius: 10px; background: var(--wine); color: #fff; line-height: 1.1; }
.study-progress strong { font-size: 1.1rem; }
.study-progress span { margin-top: .14rem; font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.study-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.study-group { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.study-group h3 { margin: 0; padding: .6rem .75rem; border-bottom: 1px solid var(--line); background: #f4edeb; color: var(--wine); font-size: .9rem; }
.study-group ul { display: grid; gap: .25rem; margin: 0; padding: .45rem; list-style: none; }
.study-item { display: grid; grid-template-columns: 21px minmax(0, 1fr); gap: .55rem; width: 100%; align-items: start; border: 0; border-radius: 7px; padding: .45rem; background: transparent; color: var(--ink); text-align: left; line-height: 1.35; }
.study-item:hover, .study-item:focus-visible { background: #fff1f1; outline: 0; }
.study-item.complete { color: #456156; }
.study-item.complete > span:last-child { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.study-check { display: grid; width: 19px; height: 19px; place-items: center; border: 2px solid #a89c96; border-radius: 5px; color: #fff; font-size: .78rem; font-weight: 900; }
.study-item.complete .study-check { border-color: var(--green); background: var(--green); }
.program-practice { margin-top: 1.2rem; }
.table-scroll { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.program-table { width: 100%; border-collapse: collapse; text-align: left; }
.program-table th, .program-table td { padding: .8rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.program-table thead th { background: #f2ebe7; color: var(--wine); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.program-table tbody th { width: 29%; color: var(--wine); font-size: .9rem; }
.program-table td { color: #3e4852; line-height: 1.5; }
.program-table tr:last-child th, .program-table tr:last-child td { border-bottom: 0; }
.rule-grid, .term-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.rule-card, .term-card { padding: .95rem; }
.rule-card h2, .term-card h2 { margin-bottom: .35rem; color: var(--wine); font-size: 1rem; }
.rule-card p, .term-card p { margin: 0; color: #3e4852; font-size: .91rem; }
.exam-rule-note { display: grid; gap: .22rem; margin-top: .85rem; border-left: 3px solid #b46a18; padding: .65rem .75rem; background: #fff6e6; color: #603b08; font-size: .86rem; line-height: 1.42; }
.exam-rule-note strong { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.term-search { width: min(100%, 520px); margin-bottom: .65rem; }

.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.finance-filter-bar { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
.payment-filter-bar { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
.finance-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.finance-summary .summary-card small { display: block; margin-top: .2rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.credit-summary { border-top: 3px solid var(--green); }
.debit-summary { border-top: 3px solid var(--red); }
.monthly-dojo-panel { margin-bottom: 1rem; }
.monthly-dojo-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.monthly-dojo-toggle { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 76px; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; background: #fbfaf8; }
.monthly-dojo-toggle strong, .monthly-dojo-toggle small { display: block; }
.monthly-dojo-toggle small { margin-top: .12rem; color: var(--muted); font-size: .78rem; font-weight: 600; }
.monthly-dojo-toggle input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--wine); }
.record-list { display: grid; gap: .65rem; }
.list-section-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 1rem 0 .65rem; }
.list-section-heading h2 { margin: 0; }
.list-layout-toggle { display: inline-flex; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; background: #f8f5f2; }
.list-layout-toggle button { display: inline-flex; min-height: 34px; align-items: center; gap: .28rem; border: 0; border-right: 1px solid var(--line); padding: .35rem .55rem; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 850; }
.list-layout-toggle button:last-child { border-right: 0; }
.list-layout-toggle button:hover, .list-layout-toggle button.active { background: var(--wine); color: #fff; }
.record-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); border-radius: 12px; padding: .95rem 1rem; background: var(--white); box-shadow: 0 2px 7px rgba(44, 37, 32, .04); }
.record-copy { min-width: 0; }
.record-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .4rem; }
.record-copy h2 { margin: 0; color: var(--wine); font-size: 1.04rem; }
.record-copy p { margin: .16rem 0; color: var(--muted); }
.record-copy small { display: block; margin-top: .18rem; color: var(--muted); }
.record-actions { display: grid; justify-items: end; gap: .25rem; flex: 0 0 auto; }
.record-actions > strong { color: var(--ink); font-size: 1.05rem; }
.record-card.compact { padding: .75rem .85rem; }
.record-card.compact h3 { margin: 0; color: var(--wine); font-size: 1rem; }
.invite-link { display: grid; gap: .22rem; margin-top: .55rem; max-width: 620px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.invite-link input { min-width: 0; padding: .45rem .55rem; color: var(--ink); font-size: .78rem; font-weight: 600; }
.registration-activity-card { align-items: stretch; }
.registration-activity-card > .record-copy { flex: 1 1 300px; }
.registration-activity-card > .record-actions { display: flex; width: auto; align-items: center; align-self: center; justify-content: flex-end; }
.registration-activity-card > .record-actions .button { min-height: 40px; padding: .55rem .8rem; font-size: .86rem; white-space: nowrap; }
.registration-new-section { display: grid; gap: .8rem; margin-bottom: 1.1rem; padding: 1.05rem; border: 1px solid #decfca; border-radius: 14px; background: linear-gradient(135deg, #fff9f8 0%, #fff 58%); }
.registration-section-heading h2 { margin: 0 0 .2rem; color: var(--wine); }
.registration-section-heading p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); }
.registration-new-section .record-list { gap: .75rem; }
.registration-new-section .registration-open-filter { margin: 0; border-color: #e4d7d2; background: #fff; }
.registration-new-section .registration-activity-card { border-color: #e0d4cf; box-shadow: none; }
.registration-history-section { margin-top: 1.2rem; }
.registration-history-section .panel-heading { align-items: flex-start; margin-bottom: .9rem; }
.registration-history-section .panel-heading h2 { margin-bottom: .2rem; }
.registration-history-section .panel-heading p:not(.eyebrow) { max-width: 610px; margin: 0; color: var(--muted); font-size: .9rem; }
.registration-download-step { display: flex; align-items: flex-start; gap: .6rem; margin-top: .9rem; border-top: 1px solid #ebe3de; padding-top: .75rem; }
.registration-download-step > span { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: #f1dfde; color: var(--wine); font-size: .78rem; font-weight: 900; }
.registration-download-step > div { display: grid; gap: .08rem; }
.registration-download-step strong { font-size: .88rem; }
.registration-download-step .text-button { justify-self: start; font-size: .86rem; }
.registration-upload-form { display: grid; gap: .5rem; width: min(340px, 100%); padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff9f8; }
.registration-upload-form small, .registration-instructions, .registration-proof-upload-form small, .registration-document-upload-form small { color: var(--muted); font-size: .86rem; }
.registration-upload-form .form-error { min-height: 0; margin: 0; }
.registration-proof-upload-form, .registration-document-upload-form { display: grid; gap: .35rem; width: min(320px, 100%); margin-top: .25rem; padding: .6rem; border: 1px solid #e7d9d7; border-radius: 8px; background: #fff9f8; font-size: .82rem; }
.registration-proof-upload-form input, .registration-document-upload-form input { max-width: 100%; font-size: .78rem; }
.registration-proof-upload-form .form-error, .registration-document-upload-form .form-error { min-height: 0; margin: 0; }
.registration-rejection-reason { margin: .45rem 0 0; color: #8a281f !important; font-size: .88rem; line-height: 1.4; }
.activity-registrations { display: grid; gap: .65rem; margin: 1rem 0; padding: .95rem; border: 1px solid #e7d9d7; border-radius: 10px; background: #fffafa; }
.activity-registration-tools, .attendance-heading-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .55rem; }
.activity-registration-tools > span { color: var(--muted); font-size: .86rem; font-weight: 800; }
.attendance-section-heading { align-items: flex-start; }
.attendance-section-heading h2 { margin-bottom: .2rem; }
.attendance-section-heading p { margin: 0; color: var(--muted); font-size: .86rem; }
.attendance-scope-toggle { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f8f5f2; }
.attendance-scope-toggle button { min-height: 34px; border: 0; border-right: 1px solid var(--line); padding: .35rem .55rem; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 850; }
.attendance-scope-toggle button:last-child { border-right: 0; }
.attendance-scope-toggle button:hover, .attendance-scope-toggle button.active { background: var(--ink); color: #fff; }
.attendance-empty { margin: 0; padding: .9rem; border: 1px dashed #d8cbc4; border-radius: 9px; background: #fbf8f5; color: var(--muted); }
.delete-button { color: var(--red); }
.account-security-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; background: linear-gradient(135deg, #fff 20%, #faf1f0 100%); }
.account-security-panel h2 { margin: .12rem 0 .28rem; color: var(--wine); }
.account-security-panel p:not(.eyebrow) { margin: 0; color: var(--muted); }
.login-recovery-link { justify-self: start; margin-top: -.2rem; color: var(--wine); font-size: .84rem; }
.recovery-code-once { display: grid; gap: .5rem; border: 1px solid #dfc3be; border-radius: 10px; padding: .8rem; background: #fff8f7; }
.recovery-code-once p { margin: 0; color: var(--ink); }
.recovery-code-value { display: block; overflow-wrap: anywhere; border: 1px dashed #b98d87; border-radius: 7px; padding: .65rem; background: #fff; color: var(--wine); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; font-weight: 800; letter-spacing: .035em; line-height: 1.5; user-select: all; }
.recovery-code-actions { justify-content: space-between; }
.mfa-modal-card { width: min(540px, 100%); }
.mfa-modal-card > section { display: grid; gap: .75rem; }
.mfa-modal-card > section > p { margin: 0; }
.mfa-secret-panel { display: grid; gap: .7rem; border: 1px solid #dfc3be; border-radius: 10px; padding: .8rem; background: #fff8f7; }
.mfa-secret-panel p { margin: 0; color: var(--ink); }
.mfa-secret-panel input[readonly] { background: #fff; color: var(--wine); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; font-weight: 750; letter-spacing: .02em; }
.mfa-secret-panel #mfa-secret-value { font-size: .92rem; }
.audit-log-modal-card { width: min(780px, 100%); }
.audit-log-heading { align-items: flex-start; margin-bottom: .8rem; padding-right: 2.4rem; }
.audit-log-heading h2 { margin: .1rem 0 .25rem; }
.audit-log-heading .muted { margin: 0; }
.audit-log-list { display: grid; gap: .55rem; }
.audit-log-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .8rem; border: 1px solid #e2d9d4; border-radius: 9px; padding: .7rem .8rem; background: #fffdfc; }
.audit-log-entry strong { color: var(--ink); font-size: .9rem; }
.audit-log-entry p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.42; }
.audit-log-entry small { align-self: center; color: var(--muted); font-size: .76rem; text-align: right; }
.user-role-note { margin-top: .22rem; color: var(--muted); font-size: .84rem; }
.finance-amount.credit { color: var(--green); }
.finance-amount.debit { color: var(--red); }
.finance-chart-panel { margin-bottom: 1rem; }
.finance-chart { display: grid; grid-template-columns: repeat(12, minmax(34px, 1fr)); gap: .45rem; min-width: 540px; min-height: 210px; padding: .5rem .35rem 0; border-bottom: 1px solid var(--line); }
.finance-chart-panel { overflow-x: auto; }
.finance-month { display: grid; grid-template-rows: 170px auto; gap: .4rem; min-width: 0; text-align: center; }
.finance-month small { color: var(--muted); font-size: .7rem; font-weight: 800; }
.finance-bars { display: flex; align-items: end; justify-content: center; gap: 4px; height: 170px; border-bottom: 1px solid #e8e2dd; }
.finance-bar { display: block; width: 42%; min-height: 0; border-radius: 5px 5px 0 0; }
.finance-bar.credit { background: var(--green); }
.finance-bar.debit { background: var(--red); }
.finance-legend { display: flex; gap: 1rem; margin-top: .75rem; color: var(--muted); font-size: .84rem; font-weight: 700; }
.finance-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.finance-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.finance-legend .credit { background: var(--green); }
.finance-legend .debit { background: var(--red); }
.calendar-panel { overflow: hidden; padding: 0; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.calendar-heading h2 { margin: 0; color: var(--wine); font-size: 1.12rem; text-align: center; text-transform: capitalize; }
.calendar-heading .button { min-width: 44px; padding: .5rem; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); background: #f6f1ee; color: var(--wine); font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.calendar-weekdays span { padding: .6rem .2rem; }
.calendar-day { min-height: 108px; overflow: hidden; border-right: 1px solid #eee8e3; border-bottom: 1px solid #eee8e3; padding: .38rem; background: #fff; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day-number { display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: var(--muted); font-size: .78rem; font-weight: 800; }
.calendar-day.today .calendar-day-number { background: var(--wine); color: #fff; }
.calendar-day.outside-month { background: #faf8f6; }
.calendar-day.outside-month .calendar-day-number { opacity: .45; }
.calendar-day-events { display: grid; gap: .22rem; margin-top: .32rem; }
.calendar-info-item { display: block; width: 100%; overflow: hidden; border: 0; border-radius: 5px; padding: .2rem .3rem; font: inherit; font-size: .67rem; font-weight: 800; line-height: 1.22; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.calendar-info-item:hover, .calendar-info-item:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.calendar-event { background: #f0e4e3; color: #681b23; }
.calendar-event { cursor: pointer; }
.calendar-event.exam { background: #f8dfcb; color: #82410d; }
.calendar-event.stage, .calendar-event.seminar { background: #e2eee5; color: #17613f; }
.calendar-event.event { background: #e5e8f5; color: #374d91; }
.calendar-birthday { background: #f6e6f2; color: #87245d; }
.calendar-birthday.today-birthday { background: #fff0ba; color: #7b5000; }
.calendar-popover { position: fixed; z-index: 80; display: grid; gap: .2rem; max-width: calc(100vw - 20px); padding: .75rem .85rem; border: 1px solid #b47a7d; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(46, 30, 24, .2); pointer-events: none; }
.calendar-popover strong { color: var(--wine); font-size: .9rem; line-height: 1.25; }
.calendar-popover span { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.upcoming-events { margin-top: 1rem; }
.calendar-list-item { align-items: center; }
.calendar-list-copy { display: grid; min-width: 0; gap: .28rem; }
.calendar-list-copy > strong, .calendar-list-copy > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-list-copy > small { color: var(--muted); }
.calendar-list-copy .badge.type { width: 108px; justify-self: start; text-align: center; }
.calendar-list-main { display: grid; min-width: 0; flex: 1; gap: .28rem; border: 0; padding: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; }
.calendar-list-main > strong, .calendar-list-main > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-list-main > small { color: var(--muted); }
.calendar-list-main .badge.type { width: 108px; justify-self: start; text-align: center; }
.calendar-list-main:hover strong, .calendar-list-main:focus-visible strong { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.calendar-list-date { max-width: 145px; margin-left: auto; color: var(--wine); font-size: .82rem; text-align: right; }
.calendar-event-poster { flex: 0 0 56px; width: 56px; height: 80px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; padding: 0; background: #f1ece8; }
.calendar-event-poster:hover, .calendar-event-poster:focus-visible { border-color: var(--wine); outline: 2px solid #efd9da; outline-offset: 1px; }
.calendar-event-poster img { width: 100%; height: 100%; object-fit: cover; }
.activity-card { min-height: 124px; border-top: 3px solid transparent; padding: 1rem; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
button.activity-card { color: inherit; }
.activity-card:hover, .activity-card.selected { border-color: var(--wine); background: #fff9f8; box-shadow: 0 10px 22px rgba(71, 33, 35, .1); transform: translateY(-1px); }
.activity-card h3 { margin: .15rem 0 0; }
.activity-card p { margin: .35rem 0 0; color: var(--muted); }
.activity-meta { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .45rem; }
.activity-detail { margin-top: 1rem; }
.activity-registrations .record-card { align-items: center; }
.activity-registrations .record-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .42rem; }
.activity-registrations .record-actions .text-button { border: 1px solid #d7cbc5; border-radius: 8px; padding: .38rem .55rem; background: #fff; color: var(--wine); font-size: .8rem; font-weight: 850; text-decoration: none; }
.activity-registrations .record-actions .text-button:hover { border-color: #b47a7d; background: #fff4f3; }
.activity-registrations .record-actions small { color: var(--muted); font-size: .78rem; }
.activity-registrations .record-list.cards .record-actions { justify-content: flex-start; }
.record-list.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem; }
.record-list.cards .record-card { display: grid; grid-template-columns: 1fr; align-content: start; gap: .7rem; min-height: 178px; padding: .9rem; }
.record-list.cards .record-actions { width: 100%; align-items: center; justify-content: flex-start; }
.record-list.cards .record-actions > strong { margin-right: auto; }
.record-list.cards .record-actions .button { min-height: 38px; }
.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; margin: 1rem 0; }
.fact { color: var(--muted); font-size: .78rem; }
.fact strong { display: block; color: var(--ink); font-size: .94rem; }
.notes { padding: .75rem; border-radius: 8px; background: #f6f3ef; white-space: pre-wrap; }
.attendance-list { display: grid; gap: .45rem; margin-top: 1rem; }
.attendance-list.cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .75rem; }
.attendance-list.cards .attendance-row { grid-template-columns: 24px minmax(0, 1fr); align-items: start; min-height: 145px; padding: .8rem; }
.attendance-list.cards .attendance-controls { grid-column: 1 / -1; }
.attendance-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(150px, 280px); gap: .6rem; align-items: center; padding: .55rem; border-radius: 8px; background: #f7f5f2; }
.attendance-row input { width: 18px; height: 18px; }
.attendance-athlete { display: grid; min-width: 0; gap: .15rem; }
.attendance-controls { display: grid; grid-template-columns: 1fr; gap: .4rem; }
.attendance-controls.is-seminar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attendance-controls select { min-width: 0; padding: .45rem; }
.attendance-next-grade { color: var(--muted); font-size: .78rem; }
.save-attendance { margin-top: 1rem; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; overflow: auto; padding: 1rem; background: rgba(29, 16, 18, .72); }
.modal-card { position: relative; width: min(700px, 100%); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.3rem; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(15, 7, 8, .46); }
.athlete-modal-card { width: min(760px, 100%); }
.login-card { width: min(430px, 100%); display: grid; gap: .8rem; }
.login-card > p { color: var(--muted); }
.close-button { position: absolute; top: .55rem; right: .7rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.8rem; line-height: 1; }
.close-button:hover { background: #f4efeb; color: var(--wine); }
.modal-card > h2 { padding-right: 2.3rem; }
.modal-card .detail-title { padding-right: 2.3rem; }
.timeline { margin: 1rem 0 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 1rem 1rem; border-left: 2px solid #e3ddd6; }
.timeline li::before { position: absolute; top: .2rem; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); content: ""; }
.timeline p { margin: 0; }
.timeline small { color: var(--muted); }
.timeline-delete { margin-top: .45rem; color: #a21f19; font-size: .78rem; }
.photo-form { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: 10px; }
.photo-form label { flex: 1 1 260px; }
.photo-form .form-error { flex: 1 0 100%; min-height: 0; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; }
.wide { grid-column: 1 / -1; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; align-self: end; }
.checkbox-label input { width: auto; }
.form-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 10px; }
.form-section legend, .user-athletes-field legend { padding: 0 .3rem; color: var(--wine); font-size: .86rem; font-weight: 900; }
.form-section .checkbox-label { grid-column: 1 / -1; }
.user-athletes-field { display: grid; gap: .55rem; margin: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 10px; }
.user-athletes-field > .muted { margin: 0; }
.athlete-multiselect { position: relative; }
.athlete-multiselect summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 750; list-style: none; }
.athlete-multiselect summary::-webkit-details-marker { display: none; }
.athlete-multiselect[open] summary { border-color: #ad7b7f; border-radius: 8px 8px 0 0; }
.athlete-multiselect-panel { position: absolute; z-index: 3; top: calc(100% - 1px); left: 0; right: 0; display: grid; gap: .55rem; padding: .7rem; border: 1px solid #ad7b7f; border-radius: 0 0 8px 8px; background: #fff; box-shadow: 0 12px 26px rgba(50, 24, 26, .16); }
.checkbox-options { display: grid; grid-template-columns: 1fr; gap: .12rem; max-height: 250px; overflow: auto; }
.checkbox-options .checkbox-label { align-items: flex-start; padding: .42rem .32rem; border-radius: 5px; }
.checkbox-options .checkbox-label:hover { background: #fff7f6; }
.checkbox-options small { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1rem; }
.form-error { min-height: 1.3rem; margin: .8rem 0 0; color: var(--red); font-size: .9rem; }
.activity-poster-status { display: flex; align-items: center; gap: .65rem; min-height: 1.5rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
.activity-poster-preview { width: 54px; height: 76px; border: 1px solid var(--line); border-radius: 5px; object-fit: cover; }
.activity-detail-poster { display: block; width: min(100%, 280px); max-height: 395px; margin: 1rem auto; border: 1px solid var(--line); border-radius: 9px; object-fit: contain; background: #f1ece8; }

.personal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.personal-summary-card { display: grid; align-content: start; gap: .22rem; min-height: 130px; padding: 1rem; }
.personal-summary-card > span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.personal-summary-card > strong { color: var(--wine); font-size: 2rem; line-height: 1.05; }
.personal-summary-card > small { color: var(--muted); font-size: .78rem; line-height: 1.36; }
.personal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.personal-panel { min-width: 0; }
.personal-registrations { grid-column: 1 / -1; }
.personal-athlete-list, .personal-event-list, .personal-record-list { display: grid; gap: .5rem; }
.personal-athlete-card { display: flex; min-width: 0; align-items: center; gap: .65rem; border: 1px solid #e8e1db; border-radius: 9px; padding: .6rem; background: #fff; color: var(--ink); text-align: left; }
.personal-athlete-card:hover, .personal-athlete-card:focus-visible { border-color: #b47a7d; background: #fff9f8; }
.personal-athlete-card .avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: .72rem; }
.personal-athlete-card > span:last-child { display: grid; min-width: 0; gap: .1rem; }
.personal-athlete-card strong, .personal-athlete-card small, .personal-event-card strong, .personal-event-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personal-athlete-card small, .personal-event-card small { color: var(--muted); font-size: .78rem; }
.personal-event-card { display: grid; min-width: 0; gap: .22rem; border: 1px solid #e8e1db; border-radius: 9px; padding: .65rem .7rem; background: #fff; color: var(--ink); text-align: left; }
.personal-event-card:hover, .personal-event-card:focus-visible { border-color: #b47a7d; background: #fff9f8; }
.personal-event-card .badge { justify-self: start; }
.personal-record { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: .75rem; border-bottom: 1px solid #ebe5e0; padding: .55rem 0; }
.personal-record:first-child { padding-top: 0; }
.personal-record:last-child { border-bottom: 0; padding-bottom: 0; }
.personal-record > div:first-child { display: grid; min-width: 0; gap: .12rem; }
.personal-record strong, .personal-record small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personal-record small { color: var(--muted); font-size: .78rem; }
.personal-record .record-meta { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }

.event-detail-modal-card { width: min(850px, 100%); }
.event-detail-heading { padding: .15rem 48px .75rem .15rem; border-bottom: 1px solid var(--line); }
.event-detail-heading h2 { margin-bottom: .22rem; color: var(--wine); }
.event-detail-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.event-detail-layout { display: grid; grid-template-columns: minmax(180px, 270px) minmax(0, 1fr); gap: 1rem; padding-top: 1rem; }
.event-detail-layout.without-poster { display: block; }
.event-detail-poster { position: relative; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; padding: 0; background: #171315; color: #fff; }
.event-detail-poster img { display: block; width: 100%; max-height: 490px; object-fit: contain; }
.event-detail-poster span { position: absolute; right: 0; bottom: 0; left: 0; padding: .42rem .55rem; background: rgba(0, 0, 0, .72); font-size: .76rem; font-weight: 800; text-align: center; }
.event-detail-poster:hover span, .event-detail-poster:focus-visible span { background: rgba(141, 32, 41, .92); }
.event-detail-copy { min-width: 0; }
.event-detail-facts { display: grid; gap: .65rem; margin: 0 0 .9rem; }
.event-detail-facts div { padding-bottom: .55rem; border-bottom: 1px solid #ece6e0; }
.event-detail-facts dt { color: var(--muted); font-size: .77rem; font-weight: 800; }
.event-detail-facts dd { margin: .08rem 0 0; color: var(--ink); font-weight: 800; }
.event-detail-actions { margin-top: 1rem; }

.global-search-card { width: min(720px, 100%); display: grid; gap: .85rem; }
.global-search-card > h2 { margin: -.3rem 0 0; padding-right: 2.4rem; color: var(--wine); }
.global-search-input { gap: .35rem; }
.global-search-input small { color: var(--muted); font-size: .78rem; font-weight: 600; }
.global-search-results { display: grid; max-height: min(57dvh, 480px); gap: .8rem; overflow-y: auto; }
.global-search-group { display: grid; gap: .35rem; }
.global-search-group h3 { margin: 0; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.global-search-group > div { display: grid; gap: .4rem; }
.global-search-result { display: grid; min-width: 0; grid-template-columns: 115px minmax(0, 1fr); column-gap: .7rem; border: 1px solid #e6ded8; border-radius: 9px; padding: .6rem .7rem; background: #fff; color: var(--ink); text-align: left; }
.global-search-result:hover, .global-search-result:focus-visible { border-color: #b47a7d; background: #fff9f8; }
.global-search-result .global-search-kind { grid-row: span 2; align-self: center; color: var(--wine); font-size: .73rem; font-weight: 900; text-transform: uppercase; }
.global-search-result strong, .global-search-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result small { color: var(--muted); font-size: .78rem; }
.global-search-empty { margin: 0; padding: 1rem; border: 1px dashed #cec5bd; border-radius: 9px; color: var(--muted); text-align: center; }

.view-heading-actions { align-items: flex-start; }
.registrations-v2-intro { display: grid; gap: .2rem; margin-bottom: 1rem; border-color: #dfd3ce; background: linear-gradient(135deg, #fff9f8 0%, #fff 65%); }
.registrations-v2-intro h2 { margin: 0; color: var(--wine); }
.registrations-v2-intro p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); }
.registration-forms-v2-list { display: grid; gap: 1rem; }
.registration-forms-v2-empty { display: grid; gap: .2rem; text-align: center; }
.registration-forms-v2-empty h2 { margin: 0; }
.registration-forms-v2-empty p:not(.eyebrow) { max-width: 560px; margin: 0 auto; color: var(--muted); }
.registration-form-v2-admin-card, .registration-form-v2-user-card { display: grid; gap: .8rem; }
.registration-form-v2-user-card-compact { align-content: start; min-height: 0; }
.registration-form-v2-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .85rem; border-top: 1px solid #ebe4df; padding-top: .8rem; }
.registration-form-v2-card-footer .button { flex: 0 0 auto; }
.registration-form-v2-response-status { display: inline-flex; margin-left: .35rem; border-radius: 999px; padding: .14rem .44rem; background: #e0f3e9; color: #006b47; font-size: .72rem; font-weight: 900; }
.registration-form-v2-submission-modal-card { width: min(760px, 100%); display: grid; gap: 1rem; }
.registration-form-v2-submission-heading { display: grid; gap: .35rem; padding-right: 2.4rem; }
.registration-form-v2-submission-heading h2 { margin: 0; color: var(--wine); }
.registration-form-v2-submission-heading > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.registration-form-v2-submission-modal-card .registration-form-v2-submission-form { margin-top: 0; }

.registration-form-v2-admin-card.is-closed { border-color: #d8d0cb; background: #fcfbfa; }
.registration-form-v2-admin-card .panel-heading { align-items: flex-start; gap: 1rem; margin: 0; }
.registration-form-v2-admin-card .panel-heading h2, .registration-form-v2-user-card h2 { margin: .1rem 0 .25rem; color: var(--wine); }
.registration-form-v2-admin-card .panel-heading p:not(.eyebrow), .registration-form-v2-user-card > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.registration-form-v2-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.registration-form-v2-context { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin: 0; color: var(--ink) !important; font-size: .9rem; font-weight: 700; }
.registration-form-v2-meta { margin: 0 !important; color: var(--muted) !important; font-size: .86rem; font-weight: 700; }
.registration-form-v2-responses { border-top: 1px solid #ebe4df; padding-top: .8rem; }
.registration-form-v2-responses summary { color: var(--wine); cursor: pointer; font-weight: 900; }
.registration-form-v2-answers { display: grid; gap: .65rem; margin-top: .8rem; }
.registration-form-v2-answer { display: grid; gap: .65rem; border: 1px solid #e3dcd7; border-radius: 10px; padding: .75rem; background: #fff; }
.registration-form-v2-answer > div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.registration-form-v2-answer small { color: var(--muted); font-size: .77rem; }
.registration-form-v2-answer dl { display: grid; gap: .45rem; margin: 0; }
.registration-form-v2-answer dl > div { display: grid; grid-template-columns: minmax(140px, 35%) minmax(0, 1fr); gap: .55rem; }
.registration-form-v2-answer dt { color: var(--muted); font-size: .8rem; font-weight: 800; }
.registration-form-v2-answer dd { margin: 0; white-space: pre-wrap; }
.registration-form-v2-submission-form { display: grid; gap: 1rem; max-width: 760px; margin-top: .15rem; }
.registration-form-v2-athlete { display: grid; gap: .35rem; max-width: 360px; color: var(--ink); font-weight: 850; }
.registration-form-v2-questions { display: grid; gap: .8rem; }
.registration-form-v2-question { display: grid; gap: .42rem; border-top: 1px solid #ebe4df; padding-top: .85rem; color: var(--ink); font-weight: 800; }
.registration-form-v2-question > span { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.registration-form-v2-question small { color: var(--muted); font-size: .82rem; font-weight: 600; }
.registration-form-v2-consent { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .6rem; border: 1px solid #e5d7d2; border-radius: 10px; padding: .8rem; background: #fffaf9; }
.registration-form-v2-consent input { width: 18px; height: 18px; margin-top: .08rem; }
.registration-form-v2-consent small { grid-column: 2; }
.registration-form-v2-required-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .14rem .42rem; background: #f5e4c8; color: #8e5900; font-size: .67rem; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.registration-form-v2-closed-note { margin: 0; border: 1px dashed #d7cbc4; border-radius: 9px; padding: .8rem; color: var(--muted); font-weight: 700; }
.registration-form-v2-my-responses { display: grid; gap: .65rem; border-top: 1px solid #ebe4df; padding-top: .9rem; }
.registration-form-v2-my-responses > strong { color: var(--wine); }
.registration-form-v2-builder { display: grid; gap: .8rem; }
.registration-form-v2-builder > .muted { margin: -.1rem 0 0; }
.registration-form-v2-fields { display: grid; gap: .8rem; }
.registration-form-v2-builder-field { display: grid; gap: .7rem; border: 1px solid #dfd4ce; border-radius: 10px; padding: .85rem; background: #fff; }
.registration-form-v2-builder-field-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; color: var(--wine); }
.registration-form-v2-required { align-self: end; min-height: 44px; }
.registration-form-v2-options textarea { resize: vertical; }
.registration-form-v2-open { align-self: end; min-height: 44px; }
.registration-form-v2-modal-card { width: min(820px, 100%); }
.registration-form-v2-user-layout { display: grid; grid-template-columns: minmax(132px, 190px) minmax(0, 1fr); gap: 1rem; align-items: start; }
.registration-form-v2-user-layout.without-poster { grid-template-columns: minmax(0, 1fr); }
.registration-form-v2-card-footer .registration-form-v2-closed-note { border: 0; padding: .42rem .6rem; background: #f7f3f0; font-size: .84rem; }
.registration-form-v2-activity-poster { display: block; width: min(190px, 100%); max-height: 270px; border: 1px solid #ded5cf; border-radius: 10px; object-fit: cover; object-position: center; background: #f3efeb; }
.registration-form-v2-admin-card > .registration-form-v2-activity-poster { float: right; width: 112px; max-height: 158px; margin: 0 0 .55rem .8rem; }
.registration-form-v2-answer .record-actions { border-top: 1px solid #eee6e1; padding-top: .6rem; }
.registration-form-v2-answer-details { display: grid; gap: .7rem; margin: .9rem 0; border-top: 1px solid #e7ddd8; padding-top: .9rem; }
.registration-form-v2-answer-details > div { display: grid; gap: .2rem; }
.registration-form-v2-answer-details dt { color: var(--muted); font-size: .82rem; font-weight: 850; }
.registration-form-v2-answer-details dd { margin: 0; white-space: pre-wrap; }
.digital-registration-section { border-color: #d9d0ea; background: linear-gradient(135deg, #fcfbff 0%, #fff 70%); }
.danger-text { color: var(--red); }

.demo-reset-panel { display: grid; gap: .8rem; max-width: 820px; border-color: #dfc5c5; background: linear-gradient(135deg, #fff8f8 0%, #fff 70%); }
.demo-reset-panel h2 { margin: 0; color: var(--wine); }
.demo-reset-panel > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.demo-reset-list { display: grid; gap: .35rem; margin: 0; padding: .8rem 1rem .8rem 2rem; border: 1px solid #eadbd7; border-radius: 10px; background: #fff; }
.demo-reset-list code { border-radius: 4px; padding: .08rem .28rem; background: #f3efeb; color: var(--ink); font-weight: 800; }
.demo-reset-form { display: grid; gap: .65rem; max-width: 440px; border-top: 1px solid #eadfd9; padding-top: .9rem; }
.demo-reset-form label { display: grid; gap: .4rem; color: var(--ink); font-weight: 800; }
.demo-reset-form .button { justify-self: start; background: #8d1d25; }
.demo-reset-result { margin: 0; border-radius: 9px; padding: .7rem .8rem; background: #e3f4e9; color: #006b47; font-weight: 800; }
.demo-reset-result:empty { display: none; }

@media (min-width: 681px) {
    .navigation { flex-wrap: wrap; gap: 0; overflow: visible; }
    .nav-link { padding: .55rem .62rem; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
    .side-menu-overlay, .side-menu { transition: none; }
}

@media (max-width: 980px) {
    .athlete-grid, .activity-grid, .rule-grid, .term-grid, .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .monthly-dojo-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-dojo-grid, .home-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-resource-grid > :last-child { grid-column: 1 / -1; }
    .gallery-media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .program-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .study-groups { grid-template-columns: 1fr; }
    .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .personal-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .app-shell { width: calc(100% - 1rem); padding-top: .65rem; }
    .site-header { min-height: 56px; align-items: center; padding: 0 0 .7rem; }
    .brand-navigation { align-items: center; gap: .45rem; }
    .site-menu-toggle { width: 42px; height: 42px; min-height: 42px; }
    .brand { gap: .45rem; }
    .brand-logo { width: 40px; height: 40px; }
    .brand small { display: none; }
    .brand strong { font-size: 1.02rem; }
    .account { flex-direction: row; align-items: center; gap: .35rem; }
    .session-label, #account-password-button, #logout-button { display: none !important; }
    .search-button { display: grid; width: 42px; min-height: 42px; place-items: center; padding: 0; }
    .search-button > span:first-child { font-size: 1.32rem; }
    .search-button > span:last-child { display: none; }
    .notification-button { width: 42px; height: 42px; }
    .mobile-account-toggle { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #c9c1ba; border-radius: 9px; padding: 0; background: #fff; color: var(--ink); }
    .mobile-account-toggle:hover, .mobile-account-toggle[aria-expanded="true"] { border-color: #ad7b7f; background: #fff7f7; color: var(--wine); }
    .mobile-account-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
    .mobile-account-menu { position: absolute; z-index: 45; top: calc(100% + .5rem); right: 0; display: grid; width: min(270px, calc(100vw - 1rem)); gap: .45rem; border: 1px solid var(--line); border-radius: 12px; padding: .75rem; background: #fff; box-shadow: var(--shadow); }
    .mobile-account-menu p { margin: 0 0 .1rem; color: var(--muted); font-size: .82rem; font-weight: 750; }
    .mobile-account-action { min-height: 44px; border: 1px solid #d6cec7; border-radius: 8px; padding: .6rem .7rem; background: #fff; color: var(--ink); font-weight: 800; text-align: left; }
    .mobile-account-action:hover { border-color: #ad7b7f; background: #fff7f7; color: var(--wine); }
    .mobile-account-action.danger { color: var(--red); }
    .navigation { display: none; }
    .card-grid, .two-columns, .home-highlights, .home-dojo-grid, .home-resource-grid, .athlete-grid, .activity-grid, .rule-grid, .term-grid, .album-grid, .form-grid, .detail-facts, .schedule-grid, .schedule-grid-single, .contact-grid, .contact-location-grid, .finance-summary, .monthly-dojo-settings, .form-section, .checkbox-options, .help-grid, .admin-pending-grid, .personal-summary, .personal-grid { grid-template-columns: 1fr; max-width: none; }
    .home-resource-grid > :last-child { grid-column: auto; }
    .pending-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pending-summary-card { min-height: 138px; padding: .75rem; }
    .pending-summary-card strong { font-size: 1.7rem; }
    .pending-summary-card > span:not(.pending-summary-icon) { font-size: .82rem; line-height: 1.2; }
    .pending-summary-card small { font-size: .7rem; }
    .pending-panel { padding: .8rem; }
    .pending-panel-heading { align-items: stretch; flex-direction: column; }
    .pending-layout-toggle, .list-layout-toggle { display: inline-flex !important; max-width: 100%; }
    .pending-layout-toggle button, .list-layout-toggle button { flex: 1 1 auto; min-height: 42px; justify-content: center; }
    .pending-panel-heading .pending-layout-toggle, .list-section-heading .list-layout-toggle, .activity-registration-tools .list-layout-toggle { align-self: stretch; }
    .pending-filter-bar { grid-template-columns: 1fr; }
    .pending-work-header { display: none; }
    .pending-work-row, .pending-work-list.cards .pending-work-row { grid-template-columns: 1fr; gap: .65rem; padding: .8rem; }
    .pending-work-context, .pending-work-list.cards .pending-work-context { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: .6rem; border-top: 1px solid #eee8e3; }
    .pending-work-context span::before { display: block; color: #8f837e; font-size: .67rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; content: attr(data-label); }
    .pending-work-action, .pending-work-list.cards .pending-work-action { width: 100%; justify-self: stretch; }
    .pending-work-action .button, .pending-work-list.cards .pending-work-action .button { width: 100%; min-height: 42px; }
    .pending-action-group { justify-content: stretch; }
    .pending-action-group .button { flex: 1 1 135px; }
    .gallery-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gallery-detail-heading { flex-direction: column; }
    .gallery-detail-heading .button { width: 100%; }
    .gallery-detail-actions { width: 100%; justify-content: stretch; }
    .gallery-detail-actions .button { flex: 1 1 145px; }
    .gallery-draft-card { align-items: stretch; flex-direction: column; }
    .gallery-draft-actions { justify-content: stretch; }
    .gallery-draft-actions .button { flex: 1; min-height: 42px; }
    .gallery-hidden-card { align-items: stretch; flex-direction: column; }
    .gallery-hidden-actions { justify-content: stretch; }
    .gallery-hidden-actions .button { flex: 1 1 130px; min-height: 42px; }
    .gallery-media-delete { width: 40px; height: 40px; font-size: 1.45rem; }
    #gallery-upload-modal { padding: .25rem; }
    .gallery-upload-modal-card { max-height: calc(100dvh - .5rem); padding: .9rem; border-radius: 13px 13px 0 0; }
    .gallery-upload-modal-card > .close-button { top: .35rem; right: .35rem; width: 44px; height: 44px; }
    .gallery-upload-dropzone { min-height: 136px; padding: .85rem; }
    .gallery-upload-selection ul { max-height: 155px; }
    .gallery-upload-file { grid-template-columns: 27px minmax(0, 1fr); padding: .45rem; }
    .gallery-upload-help { font-size: .78rem; }
    #gallery-modal { padding: .25rem; }
    .gallery-modal-card { height: calc(100dvh - .5rem); max-height: none; border-radius: 11px; padding: .55rem; }
    .gallery-modal-card > .close-button { top: .35rem; right: .35rem; width: 44px; height: 44px; background: #a51f2a; }
    .gallery-modal-header { padding-right: 52px; }
    .gallery-media-stage > img, .gallery-media-stage > video { max-height: calc(100dvh - 8.7rem); }
    .gallery-slide-button { min-height: 44px; }
    .program-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .study-panel { padding: .8rem; }
    .study-heading { align-items: flex-start; }
    .program-table th, .program-table td { padding: .7rem; }
    .program-table tbody th { width: 34%; }
    .filter-bar { grid-template-columns: 1fr; padding: .8rem; }
    .finance-filter-bar { grid-template-columns: 1fr; }
    .view-heading { gap: .75rem; }
    .view-heading .button { min-height: 44px; }
    .view-actions { width: 100%; justify-content: stretch; }
    .view-actions .button { flex: 1; }
    .home-identity { grid-template-columns: 1fr; }
    .home-identity-copy { padding: 1.6rem; }
    .home-identity-emblem { display: flex; align-items: center; justify-content: flex-start; gap: .8rem; padding: .85rem 1.6rem; border-top: 1px solid rgba(255,255,255,.16); border-left: 0; text-align: left; }
    .home-identity-emblem img { width: 56px; height: 56px; }
    .home-identity-emblem p { margin: 0; }
    .home-featured-event-card { grid-template-columns: 1fr; }
    .home-featured-poster { min-height: 0; aspect-ratio: 1 / 1.414; }
    .home-featured-poster-button { min-height: 0; aspect-ratio: 1 / 1.414; }
    .home-featured-copy { padding: 1.6rem; }
    .home-featured-copy h2 { font-size: clamp(2rem, 11vw, 3.2rem); }
    .home-featured-logo { aspect-ratio: auto; min-height: 155px; }
    .home-featured-logo img { width: 120px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .list-section-heading { align-items: flex-start; flex-direction: column; }
    #my-registrations-list, #payments-list, .activity-registrations .record-list { grid-template-columns: 1fr; gap: .75rem; }
    #my-registrations-list .record-card, #payments-list .record-card, .activity-registrations .record-list .record-card { display: grid; grid-template-columns: 1fr; align-content: start; gap: .7rem; min-height: 0; padding: .9rem; }
    #my-registrations-list .record-actions, #payments-list .record-actions, .activity-registrations .record-list .record-actions { width: 100%; align-items: center; justify-content: flex-start; }
    .home-dojo-card, .home-resource-card { min-height: 0; }
    .home-gallery-preview { grid-template-columns: 108px minmax(0, 1fr); min-height: 165px; }
    .athlete-card { min-height: 84px; }
    .record-card { gap: .65rem; flex-direction: column; }
    .demo-reset-form { max-width: none; }
    .demo-reset-form .button { width: 100%; min-height: 44px; }
    .registration-form-v2-user-layout { grid-template-columns: 1fr; }
    .registration-form-v2-activity-poster, .registration-form-v2-admin-card > .registration-form-v2-activity-poster { float: none; width: min(100%, 250px); max-height: none; margin: 0; }
    .registration-form-v2-card-footer { align-items: stretch; flex-direction: column; }
    .registration-form-v2-card-footer .button { width: 100%; min-height: 44px; }
    .registration-form-v2-answer > div { align-items: flex-start; flex-direction: column; gap: .15rem; }
    .registration-form-v2-answer dl > div { grid-template-columns: 1fr; gap: .15rem; }
    .registration-form-v2-submission-modal-card { max-height: min(92dvh, 820px); overflow-y: auto; }
    .registration-new-section { padding: .8rem; }
    .registration-section-heading h2 { font-size: 1.12rem; }
    .registration-history-section .panel-heading { gap: .65rem; }
    .registration-activity-card > .record-actions { width: 100%; justify-content: stretch; }
    .registration-activity-card > .record-actions .button { width: 100%; min-height: 42px; }
    .registration-upload-form, .registration-proof-upload-form, .registration-document-upload-form { width: 100%; }
    .record-actions { display: flex; width: 100%; align-items: flex-start; justify-items: initial; justify-content: flex-start; flex-wrap: wrap; gap: .7rem; }
    .activity-registrations .record-card .record-actions { justify-content: flex-start; }
    .activity-registrations .record-actions .text-button { min-height: 38px; }
    .activity-registration-tools, .attendance-heading-tools { width: 100%; align-items: stretch; justify-content: stretch; }
    .activity-registration-tools > span { width: 100%; }
    .attendance-scope-toggle { flex: 1; }
    .attendance-scope-toggle button { flex: 1; min-height: 40px; }
    .record-actions > strong { margin-right: auto; }
    #my-registrations-list .record-actions, #registration-forms-v2-list .record-actions { display: grid; grid-template-columns: 1fr; gap: .45rem; }
    #my-registrations-list .record-actions .text-button, #registration-forms-v2-list .record-actions .text-button { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: flex-start; border: 1px solid #d7cbc5; border-radius: 8px; padding: .55rem .65rem; background: #fff; color: var(--wine); text-decoration: none; }
    #my-registrations-list .record-actions .text-button.danger-text, #registration-forms-v2-list .record-actions .text-button.danger-text { border-color: #e4c5c3; background: #fff8f7; }
    .account-security-panel { align-items: flex-start; flex-direction: column; }
    .account-security-panel .button { width: 100%; min-height: 44px; }
    .recovery-code-actions { width: 100%; flex-direction: column-reverse; align-items: stretch; }
    .recovery-code-actions .button { width: 100%; min-height: 44px; }
    .audit-log-heading { gap: .6rem; padding-right: 2.4rem; }
    .audit-log-heading .button { min-height: 40px; }
    .audit-log-entry { grid-template-columns: 1fr; }
    .audit-log-entry small { text-align: left; }
    .modal-backdrop { align-items: end; padding: 0; }
    .modal-card { width: 100%; max-height: min(92dvh, 820px); padding: 1rem; border-radius: 16px 16px 0 0; }
    .attendance-list { grid-template-columns: 1fr; gap: .75rem; }
    .attendance-row { grid-template-columns: 24px minmax(0, 1fr); align-items: start; min-height: 145px; padding: .8rem; }
    .attendance-controls { grid-column: 1 / -1; }
    .attendance-controls.is-seminar { grid-template-columns: 1fr; }
    .save-attendance { width: 100%; min-height: 44px; }
    .dialog-actions .button { flex: 1; }
    .calendar-day { min-height: 74px; padding: .25rem; }
    .calendar-day-number { width: 22px; height: 22px; font-size: .72rem; }
    .calendar-day-events { gap: .16rem; margin-top: .2rem; }
    .calendar-event { padding: .14rem .18rem; font-size: .56rem; }
    .calendar-weekdays { font-size: .62rem; }
    .calendar-heading { padding: .75rem; }
    .calendar-list-item { align-items: flex-start; }
    .calendar-list-date { max-width: 88px; font-size: .75rem; }
    .calendar-event-poster { flex-basis: 48px; width: 48px; height: 68px; }
    .calendar-list-main .badge.type { width: auto; }
    .personal-registrations { grid-column: auto; }
    .personal-summary-card { min-height: 0; }
    .personal-record { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .personal-record .record-meta { justify-content: flex-start; }
    .event-detail-modal-card { max-height: calc(100dvh - .5rem); border-radius: 11px; padding: .85rem; }
    .event-detail-layout { grid-template-columns: minmax(120px, 35%) minmax(0, 1fr); gap: .75rem; }
    .event-detail-poster img { max-height: 55dvh; }
    .event-detail-heading { padding-right: 52px; }
    .global-search-card { max-height: calc(100dvh - .5rem); border-radius: 11px; padding: .85rem; }
    .global-search-results { max-height: 54dvh; }
    .global-search-result { grid-template-columns: 1fr; gap: .12rem; }
    .global-search-result .global-search-kind { grid-row: auto; }
    #poster-modal { padding: .25rem; }
    .poster-modal-card { max-height: calc(100dvh - .5rem); border-radius: 11px; padding: .55rem; }
    .poster-modal-card > .close-button { top: .35rem; right: .35rem; width: 44px; height: 44px; background: #a51f2a; }
    .poster-modal-heading { padding-right: 52px; }
    .poster-modal-image { max-height: calc(100dvh - 8.2rem); }
    .athlete-photo-modal-card { max-height: calc(100dvh - .5rem); border-radius: 11px; padding: .55rem; }
    .athlete-photo-modal-card > .close-button { top: .35rem; right: .35rem; width: 44px; height: 44px; background: #a51f2a; }
    .athlete-photo-heading { padding-right: 52px; }
    .athlete-photo-image { max-height: calc(100dvh - 6.6rem); }
    .schedule-day li { grid-template-columns: 1fr; gap: .08rem; }
}
