:root {
    --bg: #f4f0e8;
    --panel: rgba(255, 252, 246, 0.92);
    --panel-border: rgba(46, 59, 54, 0.08);
    --text: #1e2724;
    --muted: #5c675f;
    --line: rgba(30, 39, 36, 0.09);
    --green: #8dbf4d;
    --green-deep: #56733d;
    --clay: #c96a3d;
    --ink: #21313d;
    --shadow: 0 24px 80px rgba(27, 28, 24, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(141, 191, 77, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(201, 106, 61, 0.16), transparent 26%),
        linear-gradient(180deg, #f8f4ec 0%, #f1ece3 100%);
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-frame {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    border-right: 1px solid var(--panel-border);
    background:
        linear-gradient(180deg, rgba(255, 251, 243, 0.92), rgba(245, 238, 226, 0.92)),
        repeating-linear-gradient(-45deg, transparent 0, transparent 16px, rgba(86, 115, 61, 0.03) 16px, rgba(86, 115, 61, 0.03) 18px);
}

.brand-block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.brand-lockup {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.brand-lockup > span,
.mobile-brand > span {
    font-family: "Iowan Old Style", "Baskerville", serif;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand-divider {
    display: block;
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, rgba(33, 49, 61, 0.45), rgba(33, 49, 61, 0.14));
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--green), #d4e779);
    display: grid;
    place-items: center;
}

.brand-mark span {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f7ffcf;
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-block h1,
.page-intro h2,
.panel h3,
.panel h4 {
    margin: 0;
    font-family: "Iowan Old Style", "Baskerville", serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-block h1 {
    font-size: 1.08rem;
    line-height: 1;
}

.nav-stack {
    display: grid;
    gap: 8px;
}

.nav-link {
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--muted);
}

.nav-link-active,
.nav-link:hover {
    background: linear-gradient(135deg, rgba(86, 115, 61, 0.15), rgba(201, 106, 61, 0.10));
    color: var(--text);
}

.sidebar-note {
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.auth-card {
    display: grid;
    gap: 10px;
}

.sidebar-note p,
.sidebar-note span {
    margin: 0;
}

.sidebar-note p {
    font-weight: 600;
}

.sidebar-note span {
    color: var(--muted);
}

.main-panel {
    padding: 28px;
}

.mobile-brand {
    display: none;
}

.mobile-shell {
    display: none;
}

.mobile-auth {
    display: none;
}

.page-stack {
    display: grid;
    gap: 24px;
}

.page-intro {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.page-intro h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.98;
}

.page-intro p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.stats-grid,
.panel-grid,
.program-grid,
.action-grid,
.form-grid {
    display: grid;
    gap: 16px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-grid-two {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
}

.calendar-layout {
    grid-template-columns: minmax(0, 1.5fr) 320px;
}

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

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

.report-filter-bar {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1.2fr) minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.report-filter-actions {
    display: flex;
    align-items: end;
}

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

.stat-card,
.panel {
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.stat-card,
.panel {
    padding: 22px;
}

.stat-card strong {
    display: block;
    margin: 14px 0 10px;
    font-size: 2rem;
}

.muted,
.stat-card span,
.stat-card p,
.panel p,
.panel li,
.data-table,
.field-help {
    color: var(--muted);
}

.panel-header,
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-title-stack {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.day-nav {
    display: inline-flex;
    gap: 6px;
    flex: 0 0 auto;
}

.day-nav-arrow {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(30, 39, 36, 0.1);
    background: rgba(255, 255, 255, 0.72);
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.day-nav-arrow::before {
    content: "";
    width: 0;
    height: 0;
}

.day-nav-prev::before {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid var(--ink);
}

.day-nav-next::before {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--ink);
}

a.day-nav-arrow:hover {
    background: rgba(141, 191, 77, 0.15);
    border-color: rgba(86, 115, 61, 0.25);
    transform: translateY(-1px);
}

.day-nav-disabled {
    opacity: 0.38;
}

.status-pill {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    background: rgba(141, 191, 77, 0.15);
    color: var(--green-deep);
}

.status-warning {
    background: rgba(201, 106, 61, 0.12);
    color: #9a4f2d;
}

.status-complete {
    background: rgba(141, 191, 77, 0.2);
    color: #46672f;
}

.status-muted {
    background: rgba(33, 49, 61, 0.09);
    color: var(--ink);
}

.session-list,
.session-stack,
.payment-stack,
.feature-list {
    display: grid;
    gap: 14px;
}

.session-row,
.mini-session-card,
.payment-row,
.empty-state,
.action-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.session-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
}

.session-row-cancelled {
    background:
        linear-gradient(135deg, rgba(201, 106, 61, 0.1), rgba(255, 255, 255, 0.78)),
        rgba(255, 255, 255, 0.72);
    border-color: rgba(201, 106, 61, 0.24);
}

.session-row-cancelled .session-time,
.session-row-cancelled .session-main strong {
    color: #8d4427;
}

.session-time {
    font-weight: 700;
    color: var(--ink);
}

.session-main,
.session-meta,
.program-meta,
.payment-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.program-counts {
    display: grid;
    gap: 4px;
}

.program-session-pill {
    margin-left: auto;
    white-space: nowrap;
}

.session-cancel-reason {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(201, 106, 61, 0.1);
    color: #8d4427;
    line-height: 1.35;
}

.snapshot-shell {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    min-height: 260px;
}

.snapshot-hours,
.snapshot-board {
    position: relative;
}

.snapshot-hours span {
    position: absolute;
    right: 0;
    transform: translateY(-50%);
    font-size: 0.78rem;
    color: var(--muted);
}

.snapshot-board {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    overflow: hidden;
    min-height: 260px;
}

.snapshot-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(30, 39, 36, 0.09);
}

.snapshot-card {
    position: absolute;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--session-color) 16%, white), rgba(255, 255, 255, 0.94));
    border: 1px solid color-mix(in srgb, var(--session-color) 32%, rgba(30, 39, 36, 0.08));
    box-shadow: 0 12px 30px rgba(27, 28, 24, 0.06);
}

.snapshot-card-cancelled {
    background:
        linear-gradient(135deg, rgba(201, 106, 61, 0.16), rgba(255, 255, 255, 0.94));
    border-color: rgba(201, 106, 61, 0.32);
    box-shadow: inset 4px 0 0 rgba(201, 106, 61, 0.55), 0 12px 30px rgba(27, 28, 24, 0.06);
}

.snapshot-card strong,
.mini-session-card strong {
    display: block;
    margin-bottom: 4px;
}

.snapshot-card span,
.mini-session-card span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

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

.trend-card {
    border-radius: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.trend-card-green {
    background:
        radial-gradient(circle at top right, rgba(141, 191, 77, 0.16), transparent 36%),
        rgba(255, 255, 255, 0.72);
}

.trend-card-clay {
    background:
        radial-gradient(circle at top right, rgba(201, 106, 61, 0.14), transparent 36%),
        rgba(255, 255, 255, 0.72);
}

.trend-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.trend-card-head strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
}

.trend-card-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.trend-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 8px 16px rgba(27, 28, 24, 0.08));
}

.trend-line-green {
    stroke: var(--green);
}

.trend-line-clay {
    stroke: var(--clay);
}

.trend-point-green {
    fill: var(--green);
}

.trend-point-clay {
    fill: var(--clay);
}

.trend-card-foot {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: center;
}

.trend-card-foot span {
    display: grid;
    gap: 3px;
}

.trend-card-foot strong {
    color: var(--muted);
    font-size: 0.72rem;
}

.trend-card-foot small {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

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

.table-cell-stack {
    display: grid;
    gap: 4px;
}

.table-cell-stack strong {
    color: var(--ink);
}

.table-cell-stack span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.presence-count {
    display: inline-flex;
    min-width: 32px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(141, 191, 77, 0.16);
    color: var(--green-deep);
    font-weight: 700;
}

.report-metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.report-metric-strip-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-metric-strip span {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
}

.report-metric-strip strong {
    color: var(--ink);
    font-size: 1.35rem;
}

.report-ledger {
    display: grid;
    gap: 12px;
}

.report-payment-row {
    background:
        linear-gradient(135deg, rgba(141, 191, 77, 0.12), rgba(255, 255, 255, 0.78)),
        rgba(255, 255, 255, 0.72);
}

.makeup-credit-card {
    background:
        linear-gradient(135deg, rgba(141, 191, 77, 0.12), rgba(255, 255, 255, 0.82)),
        rgba(255, 255, 255, 0.72);
    border-color: rgba(86, 115, 61, 0.18);
}

.report-accordion {
    padding: 0;
    overflow: hidden;
}

.report-accordion-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px;
    cursor: pointer;
    list-style: none;
}

.report-accordion-summary::-webkit-details-marker {
    display: none;
}

.report-accordion-summary:hover {
    background: rgba(255, 255, 255, 0.36);
}

.report-accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.report-accordion-toggle {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 12px;
    border: 1px solid rgba(33, 49, 61, 0.08);
    background: rgba(255, 255, 255, 0.78);
    position: relative;
}

.report-accordion-toggle::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 11px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
    transition: transform 160ms ease, top 160ms ease;
}

.report-accordion[open] .report-accordion-toggle::before {
    top: 8px;
    transform: rotate(45deg);
}

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

.report-accordion-body {
    padding: 0 22px 22px;
}

.week-accordion-stack {
    display: grid;
    gap: 14px;
}

.week-accordion {
    border: 1px solid rgba(86, 115, 61, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(27, 28, 24, 0.05);
}

.week-accordion-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    background:
        linear-gradient(90deg, rgba(141, 191, 77, 0.2), rgba(255, 255, 255, 0.92) 38%, rgba(201, 106, 61, 0.12)),
        rgba(255, 255, 255, 0.9);
    border-left: 6px solid var(--green);
    transition: background 160ms ease, transform 160ms ease;
}

.week-accordion-summary::-webkit-details-marker {
    display: none;
}

.week-accordion-summary:hover {
    background:
        linear-gradient(90deg, rgba(141, 191, 77, 0.24), rgba(255, 255, 255, 0.96) 38%, rgba(201, 106, 61, 0.16)),
        rgba(255, 255, 255, 0.95);
}

.week-accordion[open] .week-accordion-summary {
    background:
        linear-gradient(90deg, rgba(141, 191, 77, 0.3), rgba(255, 255, 255, 0.96) 34%, rgba(201, 106, 61, 0.18)),
        rgba(255, 255, 255, 0.95);
}

.week-accordion-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.week-accordion-toggle {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(33, 49, 61, 0.08);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.week-accordion-toggle::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 12px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg);
    transition: transform 160ms ease, top 160ms ease;
}

.week-accordion[open] .week-accordion-toggle::before {
    top: 9px;
    transform: rotate(45deg);
}

.week-accordion-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.week-accordion-title {
    font-family: "Iowan Old Style", "Baskerville", serif;
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.week-accordion-subtitle {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.week-accordion-body {
    padding: 12px 16px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.78));
}

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

.data-table th,
.data-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.data-table th {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-table tbody tr.session-row-processed td {
    background:
        linear-gradient(90deg, rgba(141, 191, 77, 0.18), rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.72)),
        rgba(246, 252, 239, 0.88);
    border-bottom-color: rgba(86, 115, 61, 0.12);
}

.data-table tbody tr.session-row-processed td:first-child {
    box-shadow: inset 5px 0 0 rgba(141, 191, 77, 0.62);
}

.data-table tbody tr.session-row-processed .table-cell-stack strong {
    color: #365a2a;
}

.data-table tbody tr.session-row-processed .presence-count {
    background: rgba(141, 191, 77, 0.22);
    color: #46672f;
}

.calendar-shell {
    min-height: 480px;
}

.empty-state {
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.table-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(86, 115, 61, 0.15);
    background: linear-gradient(135deg, rgba(141, 191, 77, 0.18), rgba(201, 106, 61, 0.10));
    color: var(--text);
    cursor: pointer;
}

.auth-button {
    width: 100%;
}

.auth-actions {
    display: grid;
    gap: 10px;
    width: 100%;
}

.auth-form {
    max-width: 760px;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.76);
    border-color: var(--line);
}

.button-danger {
    background: rgba(201, 106, 61, 0.12);
    border-color: rgba(201, 106, 61, 0.28);
    color: #8d4427;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-span-2 {
    grid-column: 1 / -1;
}

.field-group label {
    font-weight: 600;
}

.field-group input,
.field-group select,
.field-group textarea {
    min-height: 44px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(30, 39, 36, 0.14);
    background: rgba(255, 255, 255, 0.85);
}

.field-group input[type="checkbox"] {
    min-height: auto;
    width: auto;
    padding: 0;
}

.payment-current-filter {
    align-items: center;
}

.payment-search-field {
    position: relative;
}

.search-select {
    position: relative;
}

.search-select-options {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 252, 246, 0.98);
    box-shadow: 0 18px 48px rgba(27, 28, 24, 0.14);
}

.search-select-options.is-open {
    display: grid;
    gap: 6px;
}

.search-select-option[hidden],
.search-select-empty[hidden],
.search-select-option.is-filtered-out,
.search-select-empty.is-filtered-out {
    display: none !important;
}

.search-select-option {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.search-select-option:hover,
.search-select-option:focus {
    border-color: rgba(141, 191, 77, 0.28);
    background: rgba(141, 191, 77, 0.12);
    outline: none;
}

.search-select-option span {
    display: block;
    color: var(--text);
    line-height: 1.35;
}

.search-select-empty {
    padding: 12px;
    color: var(--muted);
    text-align: center;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.field-group textarea {
    min-height: 120px;
    resize: vertical;
}

.flash {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(141, 191, 77, 0.15);
}

.flash-error {
    background: rgba(201, 106, 61, 0.12);
    color: #9a4f2d;
}

.flash-warning {
    background: rgba(201, 106, 61, 0.12);
    color: #9a4f2d;
}

@media (max-width: 1080px) {
    .stats-grid,
    .report-summary-grid,
    .panel-grid-two,
    .calendar-layout,
    .program-grid,
    .action-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .snapshot-shell {
        grid-template-columns: 56px 1fr;
    }

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

    .report-filter-bar {
        grid-template-columns: 1fr;
    }

    .report-filter-actions,
    .report-filter-actions button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .app-frame {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-panel {
        padding: 18px;
    }

    .report-metric-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-accordion-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-accordion-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .mobile-shell {
        display: block;
        margin-bottom: 22px;
        position: sticky;
        top: 12px;
        z-index: 100;
    }

    .mobile-menu-toggle {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
        appearance: none;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 16px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 24px;
        background: rgba(255, 252, 246, 0.75);
        backdrop-filter: blur(16px) saturate(1.8);
        -webkit-backdrop-filter: blur(16px) saturate(1.8);
        box-shadow: 0 12px 36px rgba(27, 28, 24, 0.08);
    }

    .mobile-topbar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
        transition: transform 0.2s ease;
    }

    .mobile-topbar-brand:active {
        transform: scale(0.98);
    }

    .mobile-topbar-brand .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--green), #d4e779);
        box-shadow: inset 0 2px 4px rgba(255,255,255,0.4);
        display: grid;
        place-items: center;
    }

    .mobile-topbar-brand .brand-mark span {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #f7ffcf;
    }

    .mobile-topbar-brand .brand-lockup {
        gap: 2px;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }

    .mobile-topbar-brand .brand-lockup > span {
        font-size: 0.85rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-weight: 700;
        line-height: 1;
    }

    .mobile-topbar-brand .brand-lockup h1 {
        font-size: 1.15rem;
        font-family: 'Iowan Old Style', 'Baskerville', serif;
        color: var(--ink);
        margin: 0;
        line-height: 1;
    }

    .mobile-topbar-brand .brand-divider {
        display: none;
    }

    .mobile-menu-trigger {
        width: 48px;
        height: 48px;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        border-radius: 16px;
        border: 1px solid rgba(86, 115, 61, 0.15);
        background: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: background 0.3s ease, border-color 0.3s ease;
    }

    .mobile-menu-trigger:hover {
        background: rgba(255, 255, 255, 0.9);
        border-color: var(--green);
    }

    .mobile-menu-trigger span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 2px;
        background: var(--text);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, background 0.3s ease;
        transform-origin: center;
    }

    .mobile-menu-toggle:checked ~ .mobile-topbar .mobile-menu-trigger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background: var(--clay);
    }

    .mobile-menu-toggle:checked ~ .mobile-topbar .mobile-menu-trigger span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-toggle:checked ~ .mobile-topbar .mobile-menu-trigger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background: var(--clay);
    }
    
    .mobile-menu-toggle:checked ~ .mobile-topbar .mobile-menu-trigger {
        background: rgba(201, 106, 61, 0.08);
        border-color: rgba(201, 106, 61, 0.2);
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 100;
        background: rgba(18, 23, 20, 0.4);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 110;
        width: min(85vw, 360px);
        padding: 28px 24px;
        border-left: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 36px 0 0 36px;
        background:
            radial-gradient(circle at top right, rgba(141, 191, 77, 0.12), transparent 40%),
            radial-gradient(circle at bottom left, rgba(201, 106, 61, 0.1), transparent 40%),
            linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(247, 241, 231, 0.98));
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transform: translateX(105%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-toggle:checked ~ .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-toggle:checked ~ .mobile-drawer {
        transform: translateX(0);
    }

    .mobile-drawer-head {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 32px;
    }

    .mobile-drawer-head > div {
        display: flex;
        flex-direction: column;
    }

    .mobile-drawer-head p.eyebrow {
        margin: 0 0 4px;
        color: var(--green-deep);
        font-weight: 700;
        font-size: 0.8rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
    }

    .mobile-drawer-head h2 {
        margin: 0;
        font-family: 'Iowan Old Style', 'Baskerville', serif;
        font-size: 2.2rem;
        line-height: 1;
        color: var(--ink);
    }

    .mobile-menu-close {
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        border-radius: 50%;
        border: 1px solid rgba(30, 39, 36, 0.1);
        background: rgba(255, 255, 255, 0.8);
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease;
        position: relative;
    }

    .mobile-menu-close:hover {
        background: white;
        transform: scale(1.05);
    }

    .mobile-menu-close span {
        position: absolute;
        width: 16px;
        height: 2px;
        border-radius: 2px;
        background: var(--muted);
    }

    .mobile-menu-close span:first-child {
        transform: rotate(45deg);
    }

    .mobile-menu-close span:last-child {
        transform: rotate(-45deg);
    }

    .mobile-drawer-nav {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-drawer-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px;
        border-radius: 20px;
        color: var(--text);
        border: 1px solid transparent;
        background: transparent;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.2s ease;
    }

    .mobile-drawer-link span:last-child {
        color: var(--muted);
        font-size: 1.4rem;
        font-weight: 400;
        transition: transform 0.2s ease;
    }

    .mobile-drawer-link:hover,
    .mobile-drawer-link:active {
        background: rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.8);
    }

    .mobile-drawer-link:hover span:last-child {
        transform: translateX(4px);
        color: var(--clay);
    }

    .mobile-drawer-link-active {
        background: linear-gradient(135deg, rgba(141, 191, 77, 0.15), rgba(201, 106, 61, 0.08));
        border-color: rgba(86, 115, 61, 0.15);
        color: var(--ink);
    }

    .mobile-drawer-link-active span:last-child {
        color: var(--green-deep);
    }

    .mobile-drawer-auth {
        margin-top: auto;
        padding-top: 32px;
    }

    .mobile-drawer-auth > div {
        background: rgba(255, 255, 255, 0.7);
        padding: 20px;
        border-radius: 24px;
        border: 1px solid rgba(30, 39, 36, 0.08);
        box-shadow: 0 8px 24px rgba(27, 28, 24, 0.04);
        margin-bottom: 12px;
        text-align: center;
    }

    .mobile-drawer-auth > div p {
        margin: 0 0 6px;
        font-weight: 700;
        color: var(--ink);
        font-size: 1.05rem;
    }

    .mobile-drawer-auth > div span {
        margin: 0;
        display: block;
        color: var(--muted);
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .mobile-drawer-auth .auth-button {
        width: 100%;
        padding: 16px;
        font-size: 1.05rem;
        font-weight: 600;
        border-radius: 20px;
        box-shadow: 0 4px 12px rgba(27, 28, 24, 0.05);
    }
}
