:root {
    --bg: #100906;
    --bg-2: #1a100c;
    --card: rgba(28, 16, 12, 0.92);
    --line: rgba(255, 122, 46, 0.22);
    --ember: #ff6a1a;
    --ember-2: #ffd27a;
    --gold: #f4c56d;
    --ink: #fff3e6;
    --muted: #b79a86;
    --danger: #ff5d6c;
    --ok: #6dffb0;
    --rest: #7d8ea3;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Cairo', sans-serif;
    background: #100906;
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.65;
}
.ember-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 420px at 90% -10%, rgba(255, 90, 20, 0.22), transparent 58%),
        radial-gradient(700px 380px at -10% 10%, rgba(244, 197, 109, 0.08), transparent 50%),
        linear-gradient(180deg, #160c08 0%, #100906 42%, #0c0806 100%);
    pointer-events: none;
}
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.page { padding: 22px 0 64px; }
.stack { display: grid; gap: 16px; }

.top {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: rgba(16, 9, 6, 0.82);
    border-bottom: 1px solid var(--line);
}
.top-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-family: Teko, Cairo, sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(160deg, #ff8a2a, #c43a00);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 106, 26, 0.45);
}
.logo-text {
    font-family: Teko, Cairo, sans-serif;
    font-size: 34px;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.logo-text span { color: var(--ember); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
    color: var(--ink);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}
.nav a:hover { background: rgba(255, 106, 26, 0.14); }
.nav a.on {
    background: rgba(255, 106, 26, 0.2);
    color: var(--ember-2);
}
.top-user { display: flex; align-items: center; gap: 12px; font-size: 14px; position: relative; }
.ghost-link { color: var(--muted); }
.user-menu { position: relative; }
.user-menu-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    cursor: pointer;
}
.user-menu-btn:hover, .user-menu.open .user-menu-btn {
    background: rgba(255, 106, 26, 0.14);
}
.user-menu-drop[hidden] { display: none !important; }
.user-menu-drop {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 230px;
    background: rgba(22, 12, 8, 0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 60;
    display: grid;
    gap: 4px;
}
.user-menu-drop a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
}
.user-menu-drop a:hover { background: rgba(255, 106, 26, 0.14); }
.user-menu-gym {
    border-bottom: 1px solid rgba(255, 122, 46, 0.16);
    margin-bottom: 4px;
    padding-bottom: 12px !important;
    border-radius: 12px;
}
.user-menu-gym img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.user-menu-gym span { display: grid; line-height: 1.25; }
.user-menu-gym small { color: var(--muted); font-size: 11px; }
.user-menu-out { color: var(--danger) !important; }
.menu-ico {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--gold);
}
.menu-ico svg { width: 18px; height: 18px; }
.user-menu-out .menu-ico { color: var(--danger); }

.hero {
    display: grid;
    grid-template-columns: 1.3fr .8fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}
.hero-copy h1, .display {
    font-family: Teko, Cairo, sans-serif;
    font-size: clamp(42px, 7vw, 74px);
    line-height: .92;
    margin: 8px 0 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.kicker {
    color: var(--ember-2);
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 12px;
}
.lead { color: var(--muted); max-width: 52ch; font-size: 16px; }
.quote {
    margin-top: 18px;
    padding: 14px 16px;
    border-right: 3px solid var(--ember);
    background: rgba(255, 106, 26, 0.08);
    font-weight: 700;
}

.card, .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.panel-hot {
    background:
        linear-gradient(180deg, rgba(255, 106, 26, 0.16), rgba(28, 16, 12, 0.94)),
        var(--card);
}
.grid-3, .grid-2, .stats { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.stats { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 16px; }
.stat b {
    display: block;
    font-family: Teko, Cairo, sans-serif;
    font-size: 40px;
    line-height: 1;
    color: var(--gold);
}
.muted { color: var(--muted); }
.tiny { font-size: 12px; font-weight: 800; letter-spacing: .04em; }

.streak-board {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    margin: 0 0 16px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 122, 46, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 106, 26, 0.16), rgba(16, 9, 6, 0.92) 55%),
        var(--card);
    box-shadow: var(--shadow);
}
.streak-board.on {
    border-color: rgba(255, 106, 26, 0.5);
    box-shadow: 0 0 32px rgba(255, 106, 26, 0.18), var(--shadow);
}
.streak-mark {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    font-family: Teko, Cairo, sans-serif;
    font-size: 48px;
    line-height: 1;
    color: #1a0c06;
    background: linear-gradient(160deg, #ffd27a, #ff6a1a);
    border-radius: 22px;
    box-shadow: 0 0 24px rgba(255, 106, 26, 0.45);
}
.streak-board:not(.on) .streak-mark {
    background: #2a1810;
    color: var(--muted);
    box-shadow: none;
}
.streak-copy h2 {
    font-family: Teko, Cairo, sans-serif;
    font-size: clamp(28px, 4vw, 40px);
    margin: 4px 0 6px;
    line-height: .95;
}
.streak-bits { margin: 8px 0 0; color: var(--gold); }
.streak-best {
    text-align: center;
    min-width: 90px;
}
.streak-best b {
    display: block;
    font-family: Teko, Cairo, sans-serif;
    font-size: 42px;
    line-height: 1;
    color: var(--gold);
}
.streak-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(18, 11, 8, 0.8);
    color: var(--ink);
}
.streak-mini b {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    font-family: Teko, Cairo, sans-serif;
    font-size: 28px;
    line-height: 1;
    border-radius: 12px;
    background: #2a1810;
    color: var(--muted);
}
.streak-mini.on b {
    background: linear-gradient(160deg, #ffd27a, #ff6a1a);
    color: #1a0c06;
}
.streak-mini strong, .streak-mini small { display: block; }
.streak-mini small { color: var(--muted); font-weight: 800; }
.day-cell.in-streak { box-shadow: inset 0 0 0 1px rgba(255, 106, 26, 0.45); }
.day-cell.is-off.in-streak { opacity: 1; }

.gym-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    background: rgba(255, 106, 26, 0.14);
    color: var(--ember-2);
    font-weight: 800;
    font-size: 13px;
    max-width: 160px;
}
.gym-chip img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.gym-preview {
    margin-top: 12px;
    width: min(280px, 100%);
    height: 160px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
}
.gym-admin-grid, .gym-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.gym-admin-card {
    background: rgba(10, 6, 4, 0.55);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    gap: 10px;
    padding-bottom: 12px;
}
.gym-admin-card img, .gym-pick img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #1a100c;
}
.gym-admin-card div, .gym-admin-card form { padding: 0 12px; }
.gym-pick {
    position: relative;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(10, 6, 4, 0.55);
    display: grid;
    gap: 0;
    transition: border-color .15s ease, transform .15s ease;
}
.gym-pick strong {
    display: block;
    padding: 10px 12px 12px;
}
.gym-pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gym-pick:hover, .gym-pick:has(input:checked) {
    border-color: var(--ember);
    transform: translateY(-2px);
}
.gym-pick:has(input:checked) {
    box-shadow: 0 0 0 2px var(--ember);
}
.captain-pick-grid, .captain-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-top: 10px;
}
.captain-pick {
    position: relative;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 12px 12px;
    background: rgba(10, 6, 4, 0.55);
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
}
.captain-pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.captain-pick:hover, .captain-pick:has(input:checked) {
    border-color: var(--ember);
}
.captain-pick:has(input:checked) { box-shadow: 0 0 0 2px var(--ember); }
.captain-pick.none { border-style: dashed; }
.captain-pick small { color: var(--muted); font-size: 12px; font-weight: 800; }
.captain-pick-photo, .captain-card-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: #2a1810;
    font-family: Teko, Cairo, sans-serif;
    font-size: 32px;
    color: var(--gold);
}
.captain-card {
    background: rgba(22, 12, 8, 0.92);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px 16px;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
    box-shadow: var(--shadow);
}
.captain-card h3, .captain-card h2 { margin: 8px 0 0; }
.captain-card-photo { width: 110px; height: 110px; font-size: 42px; }
.captain-card.inline {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: right;
    margin-bottom: 14px;
}
.captain-card-hero { margin-inline: auto; max-width: 420px; }
.admin-captain-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.admin-captain-card {
    padding: 28px 22px 22px;
    gap: 8px;
    min-height: 420px;
}
.admin-captain-card .captain-card-photo {
    width: 158px;
    height: 158px;
    font-size: 58px;
}
.admin-captain-card h3 {
    font-size: 28px;
    line-height: 1.1;
}
.admin-captain-card.is-open {
    border-color: var(--ember);
    box-shadow: 0 0 0 2px var(--ember);
}
.captain-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}
.captain-card-actions .btn,
.captain-card-actions form {
    margin: 0;
}
.captain-info-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}
.captain-info-head .captain-card-photo {
    width: 132px;
    height: 132px;
    font-size: 48px;
}
.captain-info-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px 18px;
    margin: 0;
}
.captain-info-list div {
    background: rgba(10, 6, 4, 0.45);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
}
.captain-info-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 4px;
}
.captain-info-list dd {
    margin: 0;
    font-weight: 800;
    word-break: break-word;
}
.captain-rate { color: var(--gold); font-weight: 900; margin: 0; }
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.showcase-card {
    background: rgba(22, 12, 8, 0.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px 16px 20px;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
    box-shadow: var(--shadow);
}
.showcase-card h3 {
    margin: 8px 0 0;
    font-size: 26px;
    line-height: 1.15;
}
.showcase-card.is-mine {
    border-color: var(--ember);
    box-shadow: 0 0 0 2px var(--ember);
}
.showcase-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    background: #2a1810;
}
.showcase-fallback {
    display: grid;
    place-items: center;
    font-family: Teko, Cairo, sans-serif;
    font-size: 72px;
    color: var(--gold);
}
.showcase-avatar {
    width: 148px;
    height: 148px;
    font-size: 54px;
}
a.showcase-card {
    color: inherit;
    text-decoration: none;
}
a.showcase-card:hover {
    border-color: var(--ember);
    transform: translateY(-2px);
}
.profile-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 640px;
}
.invite-pass {
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.06em;
}
.star-pick {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 8px;
}
.star-pick label {
    cursor: pointer;
    margin: 0;
}
.star-pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
.star-pick span {
    display: block;
    font-size: 44px;
    line-height: 1;
    color: rgba(255, 243, 230, 0.16);
    transition: color .12s ease, transform .12s ease;
}
.star-pick label:hover span,
.star-pick label:hover ~ label span,
.star-pick label:has(input:checked) span,
.star-pick label:has(input:checked) ~ label span {
    color: var(--gold);
}
.star-pick label:hover span {
    transform: scale(1.12);
}
.star-view {
    display: inline-flex;
    gap: 2px;
    font-size: 22px;
    line-height: 1;
    color: rgba(255, 243, 230, 0.16);
}
.star-view .on { color: var(--gold); }
.star-view.empty {
    font-size: 13px;
    color: var(--muted);
    font-weight: 800;
}
.captain-pick .star-view { font-size: 16px; }
.captain-clients { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.captain-clients li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 122, 46, 0.12);
}
.captain-clients small { display: block; color: var(--muted); }
body.gym-locked { overflow: hidden; }
.gym-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(8, 4, 2, 0.78);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
    padding: 20px;
}
.gym-overlay[hidden] { display: none !important; }
.gym-modal {
    width: min(860px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.gym-modal h2 {
    font-family: Teko, Cairo, sans-serif;
    font-size: clamp(32px, 5vw, 46px);
    margin: 4px 0 8px;
    line-height: .95;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}
.admin-side {
    background: rgba(12, 7, 5, 0.96);
    border-inline-end: 1px solid var(--line);
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-side .logo { margin-bottom: 6px; }
.admin-side-kicker { margin: 4px 6px 12px; }
.admin-nav { display: grid; gap: 6px; }
.admin-nav a {
    color: var(--ink);
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
}
.admin-nav a:hover { background: rgba(255, 106, 26, 0.12); }
.admin-nav a.on {
    background: rgba(255, 106, 26, 0.2);
    color: var(--ember-2);
}
.admin-side-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 6px;
}
.admin-bar { display: none; }
.admin-scrim { display: none; }
.admin-page {
    padding: 22px 28px 64px;
    width: min(1100px, 100%);
}
.admin-page:has(.diet-work) { width: min(1280px, 100%); }
.admin-page a.card {
    color: inherit;
    display: block;
    transition: border-color .15s ease, transform .15s ease;
}
.admin-page a.card:hover {
    border-color: var(--ember);
    transform: translateY(-2px);
}

.cap-table-wrap { padding: 0; overflow: hidden; }
.cap-table-wrap > .muted { padding: 18px 20px; }
.cap-table-scroll { overflow-x: auto; }
.cap-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}
.cap-table th,
.cap-table td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.cap-table th {
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--muted);
    font-weight: 800;
    background: rgba(10, 6, 4, 0.45);
}
.cap-table tbody tr:last-child td { border-bottom: 0; }
.cap-table-who {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cap-table-who span { display: grid; gap: 2px; }
.cap-table-who small { color: var(--muted); font-size: 12px; font-weight: 800; }
.cap-table-streak {
    color: var(--gold);
    font-weight: 900;
    display: block;
}
.cap-table td small { display: block; margin-top: 2px; }
.cap-status {
    display: inline-block;
    min-width: 72px;
    text-align: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 13px;
}
.cap-status-went {
    color: #6dffb0;
    background: rgba(109, 255, 176, 0.12);
}
.cap-status-pending {
    color: var(--ember);
    background: rgba(255, 106, 26, 0.16);
}
.cap-status-rest {
    color: #9aa8b8;
    background: rgba(125, 142, 163, 0.16);
}

.cap-client-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-bottom: 8px;
}
.cap-client-head .display { margin: 0; }
.cap-client-head .btn-row { margin-inline-start: auto; }
.cap-day-card { padding: 18px 20px; }
.cap-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cap-ex-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.cap-ex-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(10, 6, 4, 0.45);
    border: 1px solid var(--line);
}
.cap-ex-list small { color: var(--gold); font-weight: 800; }

.meal-head input[name="meal_time[]"] {
    width: 180px;
    flex: 0 0 180px;
}
.meal-head input[name="meal_name[]"] { flex: 1; }
.meal > input[name="meal_note[]"] { margin-top: 8px; }

.diet-work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: 18px;
    align-items: start;
    margin-top: 16px;
}
.diet-preview-col {
    position: sticky;
    top: 16px;
}
.diet-preview-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}
.diet-preview-bar h2 { margin: 0; font-size: 22px; }
.diet-preview-col .diet-sheet { margin-top: 0; }

.diet-sheet {
    position: relative;
    background: #0d0b09;
    color: #f6efe4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 14px;
    border: 1px solid rgba(212, 175, 55, 0.28);
}
.diet-sheet-watermark {
    position: absolute;
    inset: 18% 0 auto;
    text-align: center;
    font-family: Teko, Cairo, sans-serif;
    font-size: clamp(28px, 6vw, 64px);
    letter-spacing: .28em;
    color: rgba(212, 175, 55, 0.06);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}
.diet-sheet-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    padding: 22px 24px 18px;
    background: linear-gradient(180deg, #16110c, #0d0b09);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}
.diet-sheet-kicker {
    margin: 0;
    color: #d4af37;
    letter-spacing: .22em;
    font-weight: 900;
    font-size: 12px;
}
.diet-sheet-top h2 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.2;
}
.diet-sheet-coach { text-align: left; }
.diet-sheet-coach small {
    display: block;
    color: #d4af37;
    letter-spacing: .16em;
    font-size: 11px;
    font-weight: 800;
}
.diet-sheet-coach b { font-size: 22px; display: block; }
.diet-profile { padding: 18px 22px 8px; }
.diet-profile-title,
.diet-facts-title {
    margin: 0 0 10px;
    font-weight: 900;
    color: #d4af37;
}
.diet-profile-title span,
.diet-facts-title span,
.diet-extra h4 span {
    color: #8d7a5c;
    font-size: 11px;
    letter-spacing: .08em;
    margin-inline-start: 8px;
    font-weight: 800;
}
.diet-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.diet-profile-grid div {
    background: #16110c;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
}
.diet-profile-grid span,
.diet-facts-grid span {
    display: block;
    font-size: 11px;
    color: #9a866c;
    font-weight: 800;
}
.diet-profile-grid b { font-size: 18px; }
.diet-profile-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 10px 0 0;
    color: #9a866c;
    font-size: 13px;
    font-weight: 800;
}
.diet-day { padding: 8px 22px 18px; }
.diet-day h3 {
    margin: 8px 0 12px;
    font-size: 20px;
}
.diet-empty { color: #9a866c; }
.diet-meal {
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 12px;
    overflow: hidden;
    background: #14100c;
}
.diet-meal-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #1c1510;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.diet-meal-head span { color: #d4af37; font-weight: 800; }
.diet-meal-tip {
    margin: 0;
    padding: 8px 14px;
    background: rgba(212, 175, 55, 0.08);
    color: #e6d3a8;
    font-size: 13px;
}
.diet-meal table {
    width: 100%;
    border-collapse: collapse;
}
.diet-meal th,
.diet-meal td {
    padding: 8px 14px;
    text-align: right;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}
.diet-meal th {
    color: #9a866c;
    font-size: 12px;
    font-weight: 800;
}
.diet-facts {
    padding: 6px 22px 18px;
}
.diet-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.diet-facts-grid div {
    background: #16110c;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}
.diet-facts-grid b {
    display: block;
    font-family: Teko, Cairo, sans-serif;
    font-size: 32px;
    color: #d4af37;
    line-height: 1;
}
.diet-extra {
    padding: 0 22px 18px;
    display: grid;
    gap: 12px;
}
.diet-extra h4 { margin: 0 0 6px; color: #d4af37; }
.diet-extra p { margin: 0; white-space: pre-wrap; color: #e8dcc8; }
.diet-sheet-foot {
    text-align: center;
    padding: 16px;
    background: #16110c;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}
.diet-sheet-foot b {
    display: block;
    letter-spacing: .18em;
    font-family: Teko, Cairo, sans-serif;
    font-size: 22px;
    color: #d4af37;
}
.diet-sheet-foot small { color: #9a866c; }

.avatar, .avatar-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #2a1810;
}
.avatar-fallback {
    font-family: Teko, Cairo, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    background: linear-gradient(160deg, rgba(255, 106, 26, 0.45), #2a1810);
}
.avatar-sm { width: 28px; height: 28px; font-size: 16px; }
.avatar-lg { width: 64px; height: 64px; font-size: 30px; }
.avatar-xl { width: 96px; height: 96px; font-size: 42px; }
.avatar-preview {
    margin-top: 12px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}
.top-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}
.board-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}
.board-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.board-me {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}
.board-me h2 { margin: 0; }
.board-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.board-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(28, 16, 12, 0.92);
    border: 1px solid var(--line);
}
.board-row.me { box-shadow: inset 0 0 0 1px rgba(255, 106, 26, 0.45); }
.board-row.gold { border-color: rgba(244, 197, 109, 0.55); }
.board-row.silver { border-color: rgba(200, 210, 220, 0.35); }
.board-row.bronze { border-color: rgba(205, 127, 50, 0.45); }
.board-rank {
    font-family: Teko, Cairo, sans-serif;
    font-size: 28px;
    color: var(--gold);
    line-height: 1;
}
.board-who {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    min-width: 0;
}
.board-who strong, .board-who small { display: block; }
.board-who small { color: var(--muted); font-size: 12px; font-weight: 800; }
.board-streak {
    text-align: center;
    min-width: 72px;
}
.board-streak b {
    display: block;
    font-family: Teko, Cairo, sans-serif;
    font-size: 32px;
    line-height: 1;
    color: var(--gold);
}
.board-streak small { color: var(--muted); font-weight: 800; font-size: 11px; }
.follow-form { margin: 0; }
.follow-form .btn { padding: 8px 12px; font-size: 13px; }
.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}
.profile-hero h1 {
    font-family: Teko, Cairo, sans-serif;
    font-size: clamp(36px, 5vw, 52px);
    margin: 4px 0 8px;
    line-height: .95;
}
.profile-gym {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 800;
}
.showcase-photo-link {
    display: block;
    width: 100%;
    color: inherit;
}
.captain-card.inline .showcase-photo-link { width: auto; }
.showcase-photo-link .showcase-cover,
.showcase-photo-link .showcase-avatar,
.showcase-photo-link .captain-card-photo {
    margin-inline: auto;
}
.entity-hero {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 18px;
    align-items: center;
}
.entity-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 18px;
    background: #2a1810;
}
.people-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    width: 100%;
}
.profile-gym a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
}
.profile-gym img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.btn, button.btn {
    appearance: none;
    border: 0;
    background: linear-gradient(180deg, #ff8a2a, #e24d00);
    color: #1a0c06;
    font-family: inherit;
    font-weight: 900;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(226, 77, 0, 0.28);
}
.btn:hover { filter: brightness(1.06); }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

label { display: block; font-weight: 800; margin: 12px 0 6px; }
input, select, textarea {
    width: 100%;
    background: #120b08;
    color: var(--ink);
    border: 1px solid rgba(255, 122, 46, 0.28);
    border-radius: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: 2px solid rgba(255, 106, 26, 0.45);
}

.flash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
}
.flash-error { background: rgba(255, 93, 108, 0.14); color: #ffb3bb; }
.flash-ok { background: rgba(109, 255, 176, 0.12); color: #b6ffd8; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px 0; }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { margin: 6px 0 4px; }

.split-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.split-card {
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: rgba(18, 11, 8, 0.7);
    position: relative;
}
.split-card input { position: absolute; opacity: 0; pointer-events: none; }
.split-card.on, .split-card:has(input:checked) {
    border-color: var(--ember);
    box-shadow: inset 0 0 0 1px var(--ember);
    background: rgba(255, 106, 26, 0.12);
}
.split-card .tag {
    display: inline-block;
    background: rgba(255, 210, 122, 0.12);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-head span {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.day-cell, .week-cell {
    min-height: 92px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(18, 11, 8, 0.72);
    padding: 8px;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.day-cell.today { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.day-cell.empty { opacity: .25; }
.pill {
    font-size: 11px;
    font-weight: 900;
    border-radius: 999px;
    padding: 3px 7px;
    background: rgba(255, 106, 26, 0.18);
    color: var(--ember-2);
    width: fit-content;
}
.pill.rest { background: rgba(125, 142, 163, 0.16); color: var(--rest); }
.pill.done { background: rgba(109, 255, 176, 0.16); color: var(--ok); }

.meal { margin-top: 14px; }
.meal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.item-row {
    display: grid;
    grid-template-columns: 1.5fr .55fr .7fr .5fr .5fr .5fr .5fr auto;
    gap: 6px;
    margin-bottom: 6px;
}
.delta-up { color: var(--ok); font-weight: 900; }
.delta-down { color: var(--ember); font-weight: 900; }
.delta-flat { color: var(--muted); }

.ex-card { margin-bottom: 14px; }
.set-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.set-table th, .set-table td { padding: 8px 6px; border-bottom: 1px solid rgba(255,122,46,.12); text-align: right; }
.set-table input { padding: 8px; }
.prev { color: var(--muted); font-size: 12px; }

.diet-photo {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 14px;
    background: #0c0806;
}

.ocr-box { display: none; margin-top: 12px; }
.ocr-box.show { display: block; }
.progress {
    height: 8px;
    background: #2a1810;
    border-radius: 99px;
    overflow: hidden;
    margin: 8px 0;
}
.progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff6a1a, #ffd27a);
}

.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0;
    margin: 0 0 22px;
}
.steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
    background: rgba(18, 11, 8, 0.7);
}
.steps li span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #2a1810;
    font-family: Teko, Cairo, sans-serif;
    font-size: 18px;
}
.steps li.on {
    color: var(--ink);
    border-color: var(--ember);
    background: rgba(255, 106, 26, 0.14);
}
.steps li.on span,
.steps li.done span {
    background: linear-gradient(180deg, #ff8a2a, #e24d00);
    color: #1a0c06;
}
.steps li.done { color: var(--gold); }
.cycle-row {
    display: grid;
    grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
.cycle-row select { min-width: 0; width: 100%; }
.cycle-name { font-weight: 900; }
.ex-row, .ex-cols {
    display: grid;
    grid-template-columns: minmax(180px, 1.6fr) 110px 130px 56px;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.ex-cols { margin-bottom: 6px; }
.btn small {
    display: block;
    font-size: 10px;
    opacity: .75;
    font-weight: 700;
}

.cal-board {
    background: linear-gradient(180deg, rgba(40, 20, 12, 0.92), rgba(16, 9, 6, 0.96));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}
.cal-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.cal-top h1 {
    font-family: Teko, Cairo, sans-serif;
    font-size: clamp(36px, 6vw, 58px);
    margin: 4px 0 6px;
    line-height: .95;
}
.cal-grid { margin-top: 10px; }
.day-cell {
    min-height: 108px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    background: rgba(10, 6, 4, 0.55);
    border: 1px solid rgba(255, 122, 46, 0.16);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform .15s ease, border-color .15s ease;
}
.day-cell:hover { transform: translateY(-2px); border-color: var(--ember); }
.day-cell .cal-num {
    font-family: Teko, Cairo, sans-serif;
    font-size: 30px;
    line-height: 1;
}
.day-cell .cal-tag {
    font-size: 12px;
    font-weight: 900;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}
.day-cell .cal-check { color: var(--ok); font-size: 11px; font-weight: 900; }
.day-cell.today { box-shadow: 0 0 0 2px var(--ember); }
.day-cell.done { background: rgba(109, 255, 176, 0.06); }
.day-cell.tone-push { border-color: rgba(255, 106, 26, 0.55); }
.day-cell.tone-push .cal-tag { background: rgba(255, 106, 26, 0.2); color: #ffd0b0; }
.day-cell.tone-pull { border-color: rgba(90, 180, 255, 0.5); }
.day-cell.tone-pull .cal-tag { background: rgba(90, 180, 255, 0.16); color: #cfe8ff; }
.day-cell.tone-legs { border-color: rgba(109, 255, 176, 0.45); }
.day-cell.tone-legs .cal-tag { background: rgba(109, 255, 176, 0.14); color: #c8ffe4; }
.day-cell.tone-core { border-color: rgba(244, 197, 109, 0.5); }
.day-cell.tone-core .cal-tag { background: rgba(244, 197, 109, 0.16); color: #ffe7b0; }
.day-cell.tone-mix { border-color: rgba(200, 160, 255, 0.4); }
.day-cell.is-off { opacity: .62; }
.day-cell.empty { min-height: 108px; opacity: .18; pointer-events: none; }

.log-hero, .lift-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.log-hero { margin-bottom: 16px; }
.log-hero h1 {
    font-family: Teko, Cairo, sans-serif;
    font-size: clamp(40px, 7vw, 64px);
    margin: 4px 0;
    line-height: .92;
}
.pr-chip {
    color: var(--gold);
    font-weight: 900;
    background: rgba(244, 197, 109, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}
.set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.set-box {
    background: rgba(10, 6, 4, 0.55);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
}
.set-box strong { display: block; margin-bottom: 4px; }
.cmp-table { margin-top: 14px; display: grid; gap: 8px; }
.cmp-row {
    display: grid;
    grid-template-columns: 110px 1fr 1fr 1fr 1fr 80px;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(10, 6, 4, 0.5);
    border: 1px solid rgba(255, 122, 46, 0.14);
}
.cmp-head {
    background: rgba(255, 106, 26, 0.08);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.cmp-set { font-weight: 900; }
.cmp-old {
    font-family: Teko, Cairo, sans-serif;
    font-size: 28px;
    line-height: 1;
    color: var(--gold);
    display: grid;
    gap: 2px;
}
.cmp-old small {
    font-family: Cairo, sans-serif;
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
}
.cmp-new { margin: 0; }
.cmp-copy { padding: 8px 10px; }
.pr-board { margin-top: 8px; }
.pr-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
}
.pr-head h2 {
    font-family: Teko, Cairo, sans-serif;
    font-size: clamp(32px, 5vw, 46px);
    margin: 4px 0 0;
    line-height: .95;
}
.pr-count {
    background: rgba(255, 106, 26, 0.14);
    color: var(--ember-2);
    border: 1px solid rgba(255, 122, 46, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.pr-groups { display: grid; gap: 18px; margin-top: 18px; }
.pr-group-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}
.pr-group-date::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 122, 46, 0.16);
}
.pr-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.pr-card {
    background: rgba(10, 6, 4, 0.55);
    border: 1px solid rgba(255, 122, 46, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    display: grid;
    gap: 10px;
}
.pr-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.pr-card-top strong {
    font-size: 16px;
    line-height: 1.35;
}
.pr-gain {
    background: rgba(109, 255, 176, 0.12);
    color: var(--ok);
    font-weight: 900;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.pr-gain.first {
    background: rgba(244, 197, 109, 0.12);
    color: var(--gold);
}
.pr-jump {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: Teko, Cairo, sans-serif;
    unicode-bidi: isolate;
}
.pr-old {
    font-size: 28px;
    line-height: 1;
    color: var(--muted);
}
.pr-arrow {
    color: var(--ember);
    font-size: 22px;
    font-weight: 700;
}
.pr-new {
    font-size: 36px;
    line-height: 1;
    color: var(--gold);
}
.pr-unit {
    font-family: Cairo, sans-serif;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
}

.foot {
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    padding: 20px 0 28px;
    font-weight: 700;
}

@media (max-width: 920px) {
    .hero, .grid-3, .grid-2, .stats, .split-grid { grid-template-columns: 1fr; }
    .diet-work { grid-template-columns: 1fr; }
    .diet-preview-col { position: static; }
    .diet-profile-grid, .diet-facts-grid { grid-template-columns: 1fr 1fr; }
    .diet-sheet-meta { grid-template-columns: 1fr 1fr; }
    .item-row { grid-template-columns: 1fr 1fr; }
    .top-inner { flex-wrap: wrap; padding: 10px 0; }
    .nav { order: 3; width: 100%; }
    .week-grid { grid-template-columns: 1fr 1fr; }
    .cal-grid, .cal-head { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .day-cell { min-height: 72px; padding: 5px; font-size: 12px; }
    .pill { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .set-table { display: block; overflow-x: auto; }
    .steps { grid-template-columns: 1fr; }
    .cycle-row { grid-template-columns: 1fr; }
    .streak-board { grid-template-columns: 1fr; justify-items: start; }
    .streak-best { text-align: right; }
    .profile-hero, .entity-hero, .board-top, .board-me, .board-row {
        grid-template-columns: 1fr;
        justify-items: start;
    }
    .board-top { flex-direction: column; align-items: flex-start; }
    .board-row { grid-template-columns: 48px 1fr auto; }
    .board-row .follow-form { grid-column: 1 / -1; }
    .cal-top, .log-hero, .lift-head, .pr-head { flex-direction: column; }
    .pr-head { align-items: flex-start; }
    .day-cell { min-height: 84px; }
    .day-cell .cal-num { font-size: 22px; }
    .cmp-head { display: none; }
    .cmp-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .cmp-set { grid-column: 1 / -1; }
    .cmp-copy { grid-column: 1 / -1; }
    .ex-cols { display: none; }
    .ex-row { grid-template-columns: 1fr 1fr; }
    .ex-row input:first-child { grid-column: 1 / -1; }
    .captain-pick-grid, .captain-card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .showcase-grid { grid-template-columns: 1fr; }
    .cap-table th, .cap-table td { padding: 12px 12px; }
    .cap-client-head .btn-row { margin-inline-start: 0; width: 100%; }
    .profile-pick-grid { grid-template-columns: 1fr; }
    .admin-captain-grid { grid-template-columns: 1fr; }
    .admin-captain-card { min-height: 0; }
    .captain-info-head { flex-direction: column; align-items: flex-start; }
    .gym-chip { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 30;
        padding: 10px 16px;
        background: rgba(16, 9, 6, 0.9);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(12px);
    }
    .admin-page { padding: 18px 16px 48px; }
    .admin-side {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(260px, 86vw);
        height: 100vh;
        z-index: 70;
        transform: translateX(110%);
        transition: transform .2s ease;
        border-inline-end: 0;
        border-inline-start: 1px solid var(--line);
    }
    body.admin-side-open .admin-side { transform: none; }
    body.admin-side-open .admin-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(8, 4, 2, 0.55);
        z-index: 60;
    }
}
