:root {
    --sand: #d7c9aa;
    --sand-25: #f5f2ea;
    --sand-50: #ebe4d5;
    --sand-75: #e1d7bf;
    --sand-deep: #6c6555;
    --burgundy: #7b2d26;
    --burgundy-125: #5c221d;
    --burgundy-soft: #decbc9;
    --ink: #2a221f;
    --muted: rgba(42, 34, 31, 0.65);
    --line: rgba(123, 45, 38, 0.16);
    --card: rgba(255, 252, 247, 0.92);
    --shadow: 0 18px 40px rgba(62, 23, 19, 0.08);
    --shadow-soft: 0 8px 22px rgba(62, 23, 19, 0.06);
    --radius: 16px;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Raleway", "Helvetica Neue", sans-serif;
    --topbar-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.45;
    background:
        radial-gradient(1100px 520px at 8% -8%, rgba(215, 201, 170, 0.62), transparent 58%),
        radial-gradient(900px 480px at 100% 0%, rgba(222, 203, 201, 0.5), transparent 52%),
        linear-gradient(180deg, #f8f3ea 0%, #efe5d4 42%, #f7f1e7 100%);
    -webkit-text-size-adjust: 100%;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 0;
}

a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-125); }

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--topbar-h);
    padding: 0.65rem 1.15rem;
    background: rgba(247, 242, 232, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    overflow: visible;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    min-width: 0;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-text span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sand-deep);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 252, 247, 0.8);
    color: var(--burgundy);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bars {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.45rem;
    overflow: visible;
}

.nav a,
.nav-group-toggle {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.nav a.active,
.nav a:hover,
.nav-group-toggle.active,
.nav-group-toggle:hover,
.nav-group.is-open > .nav-group-toggle {
    background: rgba(123, 45, 38, 0.1);
    color: var(--burgundy);
}

.nav-group {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.nav-group.is-open {
    z-index: 50;
}

.nav-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    line-height: inherit;
}

.nav-group-caret {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.75;
    transition: transform 0.15s ease;
}

.nav-group.is-open .nav-group-caret {
    transform: rotate(225deg) translateY(-1px);
}

.nav-submenu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 11.5rem;
    padding: 0.4rem;
    border-radius: 14px;
    background: rgba(255, 252, 247, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 40;
}

.nav-group.is-open .nav-submenu,
.nav-submenu[data-open] {
    display: grid;
    gap: 0.15rem;
}

.nav-submenu a {
    display: block;
    border-radius: 10px;
    white-space: nowrap;
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 0.35rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

.main {
    width: min(1120px, calc(100% - 2rem));
    margin: 1.35rem auto calc(2.5rem + var(--safe-bottom));
    flex: 1;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.crumbs a { color: var(--burgundy); font-weight: 600; }
.crumbs .sep { opacity: 0.45; }
.crumbs .current { color: var(--ink); }

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.page-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.85rem, 3.4vw, 2.55rem);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.page-head p {
    margin: 0.4rem 0 0;
    color: var(--muted);
    max-width: 40rem;
}

.jump-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.15rem;
}

.jump-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 247, 0.72);
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 600;
}

.jump-pill:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
    background: rgba(123, 45, 38, 0.06);
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.3rem;
}

.panel + .panel { margin-top: 1.15rem; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.stat {
    padding: 1.05rem 1.1rem;
    border-radius: var(--radius);
    background:
        linear-gradient(155deg, rgba(255, 252, 247, 0.96), rgba(215, 201, 170, 0.38));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.stat span { color: var(--muted); font-size: 0.84rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    text-align: center;
    appearance: none;
    background: none;
    color: inherit;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--burgundy);
    color: #fff8f4;
}

.btn-primary:hover { background: var(--burgundy-125); color: #fff; }

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

.btn-danger {
    background: transparent;
    border-color: rgba(123, 45, 38, 0.35);
    color: var(--burgundy);
}

.btn-danger:hover {
    background: rgba(123, 45, 38, 0.08);
}

.btn-tiny {
    min-height: 34px;
    padding: 0.28rem 0.75rem;
    font-size: 0.82rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
}

.form-grid .full { grid-column: 1 / -1; }

.form-section-label {
    margin: 0.85rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sand-deep);
    font-weight: 600;
}

label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sand-deep);
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="file"],
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(123, 45, 38, 0.22);
    border-color: var(--burgundy);
}

.help { margin-top: 0.3rem; font-size: 0.8rem; color: var(--muted); }

.alert {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(108, 101, 85, 0.08);
    border: 1px solid var(--line);
}

.alert-error {
    background: rgba(123, 45, 38, 0.08);
    border: 1px solid rgba(123, 45, 38, 0.25);
    color: var(--burgundy-125);
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

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

th, td {
    text-align: left;
    padding: 0.85rem 0.55rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--sand-deep);
}

.client-avatar,
.avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--sand-50);
    border: 1px solid var(--line);
}

.avatar-lg {
    width: 132px;
    height: 132px;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--sand), var(--burgundy-soft));
    color: var(--burgundy-125);
    font-family: var(--font-display);
    font-weight: 700;
}

.badge {
    display: inline-flex;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    background: rgba(123, 45, 38, 0.09);
    color: var(--burgundy);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: min(440px, 100%);
    padding: 2.1rem 1.6rem;
    border-radius: calc(var(--radius) + 6px);
    background: rgba(255, 252, 247, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    animation: rise 0.55s ease both;
}

.auth-card h1 {
    margin: 0.75rem 0 0.25rem;
    font-family: var(--font-display);
    font-weight: 500;
    text-align: center;
}

.auth-card .sub {
    text-align: center;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.auth-logo {
    display: block;
    width: 78px;
    height: 78px;
    margin: 0 auto;
    object-fit: contain;
}

.auth-footer-link {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.95rem;
}

.auth-footer-link a {
    color: var(--burgundy-125, #7b2d26);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.auth-footer-link a:hover {
    color: var(--burgundy, #5c201b);
}

.stack { display: grid; gap: 0.95rem; }

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.35rem;
    align-items: start;
}

/* Event booking details: full-width scannable field tiles */
.booking-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem 1.5rem;
    margin: 0.35rem 0 0;
    width: 100%;
}

.booking-field {
    margin: 0;
    min-width: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: rgba(108, 101, 85, 0.05);
    border: 1px solid rgba(108, 101, 85, 0.08);
}

.booking-field.full {
    grid-column: 1 / -1;
}

.booking-field dt {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sand-deep);
    font-weight: 600;
}

.booking-field dd {
    margin: 0.55rem 0 0;
    font-size: 1.02rem;
    line-height: 1.45;
    color: var(--ink);
    word-break: break-word;
}

@media (max-width: 1100px) and (min-width: 861px) {
    .booking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.detail-list {
    display: grid;
    gap: 0.9rem;
}

.detail-list dt {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sand-deep);
    font-weight: 600;
}

.detail-list dd {
    margin: 0.15rem 0 0;
}

.empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel, .stat, .client-row, .list-card {
    animation: rise 0.45s ease both;
}

.client-row:nth-child(2), .list-card:nth-child(2) { animation-delay: 0.04s; }
.client-row:nth-child(3), .list-card:nth-child(3) { animation-delay: 0.08s; }
.client-row:nth-child(4), .list-card:nth-child(4) { animation-delay: 0.12s; }

.section-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.4rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.section-head .section-title { margin: 0; }

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.choice {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.95rem !important;
    color: var(--ink) !important;
    margin: 0;
    font-weight: 500 !important;
}

.choice input { width: auto; min-height: auto; }

.attendee-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.45rem 0.85rem;
    max-height: 240px;
    overflow: auto;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 252, 247, 0.7);
}

.attendee-option {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.attendee-option input {
    width: auto;
    min-height: auto;
    margin-top: 0.2rem;
}

.file-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-height: 118px;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--sand-50);
    color: inherit;
    text-decoration: none;
}

.file-tile span {
    color: var(--muted);
    font-size: 0.82rem;
}

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

.photo-tile {
    margin: 0;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--sand-50);
    aspect-ratio: 1;
    display: block;
    box-shadow: var(--shadow-soft);
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.28s ease;
}

.photo-tile:hover img { transform: scale(1.04); }

.photo-tile .btn {
    position: absolute;
    left: 0.4rem;
    bottom: 0.4rem;
}

.photo-field {
    border: 1px dashed rgba(123, 45, 38, 0.28);
    border-radius: 14px;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.7), rgba(215, 201, 170, 0.18));
}

.photo-field-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.photo-field-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.photo-field-previews:empty { display: none; }

.photo-field-previews img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.photo-field input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.chart-stack { display: grid; gap: 0.65rem; }

.chart-region {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    padding: 0.35rem 0.85rem 0.85rem;
}

.chart-region summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.05rem;
    padding: 0.55rem 0;
    list-style: none;
}

.chart-region summary::-webkit-details-marker { display: none; }

.chart-region summary::after {
    content: "+";
    float: right;
    color: var(--burgundy);
}

.chart-region[open] summary::after { content: "–"; }

.chart-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.42);
}

.chart-card h3 {
    margin: 0 0 0.55rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
}

.mini-dl {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.mini-dl dt {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sand-deep);
}

.mini-dl dd {
    margin: 0.1rem 0 0;
    white-space: pre-wrap;
}

.type-row {
    display: grid;
    grid-template-columns: 1.5fr 100px auto auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.8rem 0.55rem 0.35rem;
}

.link-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.42);
    animation: rise 0.4s ease both;
}

.link-card-highlight {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 2px rgba(123, 45, 38, 0.12);
}

.copy-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.copy-row input {
    flex: 1;
    min-width: 180px;
    font-size: 0.85rem;
}

.payload-pre {
    margin: 0.5rem 0 0;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    overflow: auto;
    font-size: 0.8rem;
    white-space: pre-wrap;
}

.list-stack { display: grid; gap: 0.65rem; }

.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
}

.list-card-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.list-card-text { min-width: 0; }
.list-card-text strong { display: block; }
.list-card-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.profile-hero {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.35rem;
    align-items: start;
}

.profile-hero-photo {
    display: grid;
    gap: 0.65rem;
    justify-items: start;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }

    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 0px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 0.75rem 1rem calc(0.9rem + var(--safe-bottom));
        background: rgba(247, 242, 232, 0.98);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .topbar.is-open .nav { display: flex; }

    .nav a,
    .nav-group-toggle {
        padding: 0.75rem 0.9rem;
        border-radius: 12px;
        font-size: 1rem;
    }

    .nav-group {
        display: grid;
        gap: 0.15rem;
    }

    .nav-group-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-submenu {
        position: static;
        min-width: 0;
        margin: 0 0 0.15rem;
        padding: 0.25rem 0 0.25rem 0.65rem;
        border: 0;
        border-left: 2px solid rgba(123, 45, 38, 0.18);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-submenu a {
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--sand-deep);
    }

    .nav-meta {
        margin: 0.35rem 0 0;
        padding: 0.75rem 0.2rem 0;
        border-left: 0;
        border-top: 1px solid var(--line);
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main {
        width: min(100% - 1.25rem, 1120px);
        margin-top: 1rem;
    }

    .page-head .actions,
    .actions {
        width: 100%;
    }

    .page-head .actions .btn,
    .actions .btn {
        flex: 1 1 calc(50% - 0.4rem);
    }

    .desktop-table { display: none; }
    .mobile-only { display: block; }
    .desktop-only { display: none; }

    .form-grid { grid-template-columns: 1fr; }
    .detail-grid,
    .booking-grid,
    .profile-hero { grid-template-columns: 1fr; }

    .booking-grid { gap: 0.85rem; }

    .avatar-lg {
        width: min(100%, 220px);
        height: auto;
        aspect-ratio: 1;
    }

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

    .jump-trail { gap: 0.4rem; }
    .jump-pill { flex: 1 1 auto; justify-content: center; }
}

.ledger-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
}

/* Neutralize stacked .panel + .panel margin when panels sit side-by-side */
.ledger-split > .panel + .panel {
    margin-top: 0;
}

.ledger-panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.ledger-panel.is-emphasis {
    border-color: rgba(123, 45, 38, 0.35);
    box-shadow: 0 0 0 2px rgba(123, 45, 38, 0.08), var(--shadow);
}

.ledger-panel-head {
    min-height: 4.6rem;
}

.ledger-panel-head .section-title { margin-bottom: 0.35rem; }

.ledger-panel-head .help {
    margin: 0;
    min-height: 2.6em;
}

.ledger-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.95rem;
    margin-top: 0.85rem;
}

.ledger-form-top {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 6.75rem;
}

.ledger-form-top > label {
    display: block;
    margin: 0;
}

.ledger-form-top .help {
    margin: 0;
    min-height: 2.4em;
}

.ledger-form-top select:disabled {
    opacity: 0.85;
    cursor: default;
    background: rgba(108, 101, 85, 0.06);
}

.ledger-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 1rem;
    align-items: start;
}

.ledger-form-grid .full { grid-column: 1 / -1; }

.ledger-field-placeholder .ledger-placeholder-box {
    height: 46px;
    border-radius: 12px;
    border: 1px dashed transparent;
    background: transparent;
    pointer-events: none;
}

.ledger-form-actions {
    margin-top: auto;
    padding-top: 0.25rem;
}

.badge-completed {
    background: rgba(108, 101, 85, 0.14);
    color: var(--sand-deep);
}

.badge-unpaid {
    background: rgba(123, 45, 38, 0.12);
    color: var(--burgundy-125);
}

.row-completed,
.list-card.row-completed {
    opacity: 0.72;
    background: rgba(108, 101, 85, 0.05);
}

.row-completed td {
    color: var(--sand-deep);
}

.event-status-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.statement-head {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.statement-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.35rem;
}

.statement-brand {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.statement-meta {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.statement-title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.7rem;
}

.statement-section { margin-top: 1.35rem; }

.statement-footer {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.report-filters .choice-row { gap: 0.65rem 1rem; }

.studio-contact {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.studio-contact strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.studio-contact-compact {
    margin-top: 0.25rem;
}

.studio-contact-compact strong { display: none; }

.report-brand {
    display: none;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.print-only { display: none; }

@media (max-width: 860px) {
    .ledger-split { grid-template-columns: 1fr; }
    .statement-head { flex-direction: column; }
}

@media print {
    body {
        background: #fff !important;
        color: #000;
    }
    body::before,
    .topbar,
    .no-print,
    .nav-toggle,
    .alert {
        display: none !important;
    }
    .print-only,
    .report-brand {
        display: flex !important;
    }
    .main {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .panel,
    .statement,
    .stat {
        box-shadow: none !important;
        border-color: #ccc !important;
        break-inside: avoid;
    }
    a { color: inherit; text-decoration: none; }
}

@media (max-width: 420px) {
    .brand-text strong { font-size: 1.05rem; }
    .page-head h1 { font-size: 1.7rem; }
    .stat strong { font-size: 1.7rem; }
}

/* Public interest form */
.interest-wrap {
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.interest-card {
    width: min(720px, 100%);
}

.interest-contact {
    margin: 0 0 1.25rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.interest-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.interest-fieldset legend {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 0.65rem;
    padding: 0;
}

.interest-radios {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
}

.interest-radios label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.98rem;
    color: var(--ink);
    font-weight: 500;
}

.interest-radios input {
    width: auto;
    min-height: auto;
}

.interest-radios-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
}

.interest-inline-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}

.interest-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.45rem 0.75rem;
}

.interest-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    color: var(--ink);
    font-weight: 500;
}

.interest-checkboxes input {
    width: auto;
    min-height: auto;
}

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

.interest-fineprint {
    margin: 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--burgundy, #7b2d26);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}
