@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --navy-950: #071f35;
    --navy-900: #0b2f4d;
    --navy-800: #164765;
    --navy-700: #2b6584;
    --sky-700: #2389bd;
    --sky-500: #72c7ee;
    --sky-300: #b9e4f7;
    --sky-200: #d8f0fb;
    --sky-100: #eaf7fd;
    --canvas: #f4f9fc;
    --line: #dceaf1;
    --line-dark: #c8dce6;
    --ink: #102f47;
    --muted: #728b9a;
    --white: #ffffff;
    --shadow: 0 20px 55px rgba(11, 47, 77, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(35, 137, 189, 0.28);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: var(--white);
    background: var(--navy-900);
    border-radius: 5px;
    transform: translateY(-150%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.app-body {
    min-height: 100vh;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 258px;
    flex-direction: column;
    padding: 25px 16px 17px;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.72);
    background: var(--navy-900);
}

.sidebar-heading,
.topbar-left,
.topbar-actions,
.brand-mark,
.sidebar-account,
.sidebar-link,
.topbar-profile,
.metric-card-top,
.panel-heading,
.chart-toolbar,
.request-name,
.event-item,
.notice-body,
.resource-item,
.auth-brand,
.auth-back-link,
.form-label-row {
    display: flex;
    align-items: center;
}

.sidebar-heading {
    justify-content: space-between;
    min-height: 44px;
}

.brand-mark,
.auth-brand {
    gap: 10px;
}

.brand-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 7px;
}

.brand-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.3;
}

.brand-copy,
.sidebar-account > span:last-of-type,
.sidebar-support > span:last-of-type,
.topbar-profile-copy,
.event-copy,
.resource-item > span:nth-child(2),
.story-image-note > span:last-child,
.visual-note > span:last-child {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.05;
}

.brand-copy small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.icon-button {
    position: relative;
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--navy-800);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
    color: var(--navy-900);
    background: var(--sky-100);
    border-color: var(--sky-200);
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

.sidebar-close {
    display: none;
    color: rgba(255, 255, 255, 0.74);
}

.sidebar-close:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

.sidebar-account {
    gap: 10px;
    margin: 34px 4px 25px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
}

.sidebar-account strong,
.sidebar-support strong {
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
}

.sidebar-account small,
.sidebar-support small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 10px;
}

.sidebar-account-chevron {
    width: 15px;
    height: 15px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.42);
}

.avatar {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    background: var(--sky-500);
    border-radius: 50%;
}

.avatar-small {
    width: 30px;
    height: 30px;
    font-size: 10px;
}

.avatar-medium {
    width: 34px;
    height: 34px;
    font-size: 11px;
}

.sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.nav-label,
.section-kicker {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.nav-label {
    margin: 0 12px 9px;
    color: rgba(255, 255, 255, 0.38);
}

.nav-label-spaced {
    margin-top: 30px;
}

.sidebar-link {
    position: relative;
    gap: 12px;
    min-height: 42px;
    margin: 2px 0;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.62);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sidebar-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.sidebar-link.is-active {
    color: var(--navy-900);
    background: var(--sky-500);
    font-weight: 700;
}

.sidebar-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke-width: 1.9;
}

.nav-count {
    min-width: 22px;
    margin-left: auto;
    padding: 2px 5px;
    color: var(--navy-900);
    background: var(--sky-300);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.sidebar-link.is-active .nav-count {
    background: rgba(11, 47, 77, 0.14);
}

.sidebar-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-support {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 0 8px 12px;
}

.support-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    color: var(--sky-500);
    background: rgba(114, 199, 238, 0.13);
    border-radius: 5px;
}

.support-icon svg {
    width: 14px;
    height: 14px;
}

.sidebar-signout {
    min-height: 38px;
    color: rgba(255, 255, 255, 0.46);
}

.sidebar-backdrop {
    display: none;
}

.app-main {
    width: calc(100% - 258px);
    min-width: 0;
    min-height: 100vh;
    margin-left: 258px;
}

.topbar {
    display: flex;
    height: 78px;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.topbar-left,
.topbar-actions {
    gap: 17px;
}

.menu-toggle {
    display: none;
}

.breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    color: var(--line-dark);
}

.breadcrumb strong {
    color: var(--ink);
    font-weight: 600;
}

.search-field {
    display: flex;
    width: 244px;
    height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    color: var(--muted);
    background: var(--canvas);
    border: 1px solid transparent;
    border-radius: 6px;
    transition: border-color 160ms ease, background 160ms ease;
}

.search-field:focus-within {
    background: var(--white);
    border-color: var(--sky-500);
}

.search-field svg {
    width: 16px;
    height: 16px;
}

.search-field input {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 12px;
}

.search-field input::placeholder {
    color: #8ea3ae;
}

.search-shortcut {
    display: inline-grid;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    place-items: center;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 11px;
}

.notification-button {
    border-color: var(--line);
    background: var(--white);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 5px;
    height: 5px;
    background: var(--sky-700);
    border: 1px solid var(--white);
    border-radius: 50%;
}

.topbar-profile {
    gap: 9px;
    padding: 3px 0 3px 7px;
    color: var(--ink);
    background: transparent;
}

.topbar-profile:hover .topbar-profile-copy strong {
    color: var(--sky-700);
}

.topbar-profile-copy {
    align-items: flex-start;
}

.topbar-profile-copy strong {
    font-size: 12px;
    font-weight: 700;
    transition: color 160ms ease;
}

.topbar-profile-copy small {
    color: var(--muted);
    font-size: 10px;
}

.topbar-profile > svg {
    width: 15px;
    height: 15px;
    color: var(--muted);
}

.dashboard-content {
    width: min(100%, 1500px);
    margin: 0 auto;
    padding: 34px 38px 20px;
}

[data-reveal] {
    animation: rise-in 600ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
    animation-delay: var(--reveal-delay, 0ms);
}

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

.welcome-banner {
    display: grid;
    min-height: 270px;
    grid-template-columns: minmax(0, 1.22fr) minmax(290px, 0.78fr);
    overflow: hidden;
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 8px;
}

.welcome-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 37px 42px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sky-700);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--sky-700);
    border-radius: 50%;
}

.eyebrow-divider {
    width: 18px;
    height: 1px;
    background: var(--sky-300);
}

.welcome-copy h1 {
    margin: 15px 0 11px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 3.2vw, 47px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.02;
}

.welcome-copy h1 span {
    color: var(--sky-700);
}

.welcome-copy p {
    max-width: 510px;
    margin: 0;
    color: var(--navy-700);
    font-size: 13px;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button svg {
    width: 15px;
    height: 15px;
}

.button-primary {
    color: var(--white);
    background: var(--navy-900);
}

.button-primary:hover {
    background: var(--navy-950);
}

.button-light {
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.64);
    border-color: rgba(35, 137, 189, 0.16);
}

.button-light:hover,
.button-outline:hover {
    background: var(--sky-100);
    border-color: var(--sky-300);
}

.welcome-visual {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    background: var(--navy-800);
}

.welcome-visual::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(7, 31, 53, 0.14);
    content: '';
}

.welcome-visual img,
.auth-story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-visual img {
    min-height: 270px;
}

.visual-note {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 18px;
    display: flex;
    max-width: calc(100% - 36px);
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    color: var(--white);
    background: rgba(11, 47, 77, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 6px;
}

.visual-note-icon,
.note-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 4px;
}

.visual-note-icon svg,
.note-icon svg {
    width: 14px;
    height: 14px;
}

.visual-note small,
.story-image-note small {
    color: rgba(255, 255, 255, 0.63);
    font-size: 10px;
}

.visual-note strong,
.story-image-note strong {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
}

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

.metric-card,
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(11, 47, 77, 0.025);
}

.metric-card {
    min-height: 165px;
    padding: 18px 18px 17px;
}

.metric-card-top {
    justify-content: space-between;
}

.metric-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.metric-icon-soft {
    color: var(--sky-700);
    background: var(--sky-100);
}

.metric-icon svg {
    width: 18px;
    height: 18px;
}

.metric-menu {
    color: var(--line-dark);
}

.metric-menu svg {
    width: 18px;
    height: 18px;
}

.metric-label {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.metric-value {
    display: block;
    margin-top: 2px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
}

.metric-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--sky-700);
    font-weight: 700;
}

.metric-trend-dark {
    color: var(--navy-700);
}

.metric-trend svg {
    width: 12px;
    height: 12px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 14px;
    margin-top: 14px;
}

.panel {
    min-width: 0;
    padding: 22px;
}

.panel-heading {
    justify-content: space-between;
    gap: 15px;
}

.panel-heading-compact {
    align-items: flex-start;
}

.panel h2 {
    margin: 5px 0 0;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

.section-kicker {
    display: block;
}

.panel-link,
.text-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--sky-700);
    font-size: 11px;
    font-weight: 700;
}

.panel-link:hover,
.text-action:hover,
.form-link:hover {
    color: var(--navy-900);
}

.panel-link svg,
.text-action svg {
    width: 14px;
    height: 14px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    color: var(--muted);
    font-size: 10px;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend-swatch {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 2px;
}

.legend-swatch-primary {
    background: var(--sky-500);
}

.legend-swatch-secondary {
    background: var(--navy-800);
}

.chart-toolbar {
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.chart-summary {
    color: var(--muted);
    font-size: 11px;
}

.chart-summary strong {
    margin-right: 5px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
}

.segmented-control {
    display: inline-flex;
    padding: 3px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 5px;
}

.segmented-control button {
    padding: 5px 8px;
    color: var(--muted);
    background: transparent;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
}

.segmented-control button:hover,
.segmented-control button.is-active {
    color: var(--navy-900);
    background: var(--white);
    box-shadow: 0 2px 5px rgba(11, 47, 77, 0.08);
}

.chart-wrap {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    height: 250px;
    margin-top: 15px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 23px;
    color: #9ab0bd;
    font-size: 9px;
    text-align: right;
}

.chart-stage {
    position: relative;
    min-width: 0;
    padding-bottom: 23px;
}

.chart-gridlines {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 23px;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-gridlines span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--line);
}

.chart-bars {
    position: relative;
    z-index: 1;
    display: grid;
    height: 100%;
    grid-template-columns: repeat(6, minmax(24px, 1fr));
    column-gap: clamp(7px, 2.2vw, 22px);
}

.chart-bar-group {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
}

.bar-pair {
    display: flex;
    height: calc(100% - 23px);
    align-items: flex-end;
    gap: 4px;
}

.chart-bar {
    display: block;
    width: clamp(9px, 1.45vw, 17px);
    min-height: 4px;
    border-radius: 3px 3px 1px 1px;
    transition: height 400ms cubic-bezier(0.2, 0.75, 0.25, 1), background 160ms ease;
}

.chart-bar:hover {
    background: var(--sky-700);
}

.bar-primary {
    background: var(--sky-500);
}

.bar-secondary {
    background: var(--navy-800);
}

.chart-label {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.event-list {
    margin-top: 22px;
}

.event-item {
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.event-item:first-child {
    padding-top: 0;
}

.event-item:last-child {
    border-bottom: 0;
}

.event-date {
    display: flex;
    width: 42px;
    height: 44px;
    flex: 0 0 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 5px;
}

.event-date strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    line-height: 1;
}

.event-date span {
    margin-top: 3px;
    font-size: 8px;
    font-weight: 700;
}

.event-copy {
    min-width: 0;
}

.event-copy strong {
    color: var(--navy-900);
    font-size: 12px;
    font-weight: 700;
}

.event-copy span {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-arrow {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-left: auto;
    place-items: center;
    color: var(--line-dark);
}

.event-arrow svg {
    width: 15px;
    height: 15px;
}

.schedule-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 13px;
    padding-top: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 10px;
}

.online-dot {
    width: 6px;
    height: 6px;
    background: var(--sky-700);
    border-radius: 50%;
}

.requests-panel {
    margin-top: 14px;
}

.table-scroll {
    overflow-x: auto;
    margin-top: 17px;
}

.request-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.request-table th {
    padding: 0 12px 10px;
    color: #91a6b1;
    border-bottom: 1px solid var(--line);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.request-table th:first-child,
.request-table td:first-child {
    padding-left: 0;
}

.request-table th:last-child,
.request-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.request-table td {
    padding: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    white-space: nowrap;
}

.request-table tr:last-child td {
    border-bottom: 0;
}

.request-name {
    gap: 10px;
    white-space: normal;
}

.request-icon,
.resource-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 5px;
}

.request-icon svg,
.resource-icon svg {
    width: 15px;
    height: 15px;
}

.request-name > span:last-child,
.resource-item > span:nth-child(2) {
    min-width: 150px;
}

.request-name strong,
.resource-item strong {
    color: var(--navy-900);
    font-size: 11px;
    font-weight: 700;
}

.request-name small,
.resource-item small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.status-badge > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.status-progress {
    color: var(--sky-700);
    background: var(--sky-100);
}

.status-progress > span {
    background: var(--sky-700);
}

.status-review {
    color: var(--navy-700);
    background: #eef5f8;
}

.status-review > span {
    background: var(--navy-700);
}

.status-resolved {
    color: var(--navy-900);
    background: var(--sky-200);
}

.status-resolved > span {
    background: var(--navy-900);
}

.table-action {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 5px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.table-action:hover {
    color: var(--navy-900);
    background: var(--sky-100);
    border-color: var(--sky-300);
}

.table-action svg {
    width: 14px;
    height: 14px;
}

.empty-state {
    padding: 24px !important;
    color: var(--muted) !important;
    text-align: center !important;
}

.bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 14px;
    margin-top: 14px;
}

.notice-date {
    color: var(--muted);
    font-size: 10px;
}

.notice-body {
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
}

.notice-symbol {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.notice-symbol svg {
    width: 19px;
    height: 19px;
}

.notice-body h3 {
    margin: 0;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.notice-body p {
    max-width: 600px;
    margin: 7px 0 11px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
}

.resource-list {
    margin-top: 20px;
}

.resource-item {
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.resource-item:first-child {
    padding-top: 0;
}

.resource-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.resource-item > span:nth-child(2) {
    overflow: hidden;
}

.resource-item strong,
.resource-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-arrow {
    width: 15px;
    height: 15px;
    margin-left: auto;
    color: var(--muted);
}

.resource-item:hover .resource-arrow,
.resource-item:hover strong {
    color: var(--sky-700);
}

.page-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    padding: 22px 2px 4px;
    color: #91a6b1;
    font-size: 10px;
}

.page-footer strong {
    color: var(--sky-700);
    font-weight: 700;
}

.toast {
    position: fixed;
    z-index: 90;
    right: 24px;
    bottom: 24px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    color: var(--white);
    background: var(--navy-900);
    border-left: 3px solid var(--sky-500);
    border-radius: 5px;
    box-shadow: var(--shadow);
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.auth-body {
    min-height: 100vh;
    background: var(--canvas);
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: 30px;
}

.auth-layout {
    display: grid;
    width: min(100%, 1250px);
    min-height: min(760px, calc(100vh - 60px));
    grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
    margin: auto;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-story {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 38px 42px 32px;
    color: var(--white);
    background: var(--navy-900);
}

.auth-story .brand-copy small {
    color: rgba(255, 255, 255, 0.5);
}

.auth-story-copy {
    max-width: 520px;
    margin: auto 0 30px;
}

.auth-story-copy .section-kicker {
    color: var(--sky-500);
}

.auth-story-copy h1 {
    margin: 13px 0 14px;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 4vw, 49px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.05;
}

.auth-story-copy p {
    max-width: 440px;
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 13px;
    line-height: 1.7;
}

.auth-story-image {
    position: relative;
    height: 185px;
    overflow: hidden;
    background: var(--navy-800);
    border-radius: 6px;
}

.auth-story-image::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(7, 31, 53, 0.22);
    content: '';
}

.story-image-note {
    position: absolute;
    z-index: 1;
    bottom: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    background: rgba(11, 47, 77, 0.9);
    border-radius: 5px;
}

.auth-story-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.auth-story-footer span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-story-footer svg {
    width: 13px;
    height: 13px;
    color: var(--sky-500);
}

.auth-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 30px 44px 26px;
}

.auth-back-link {
    align-self: flex-start;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.auth-back-link:hover {
    color: var(--navy-900);
}

.auth-back-link svg {
    width: 15px;
    height: 15px;
}

.auth-form-wrap {
    width: min(100%, 370px);
    margin: auto;
}

.auth-form-heading {
    margin-bottom: 27px;
}

.auth-form-icon {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 21px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 6px;
}

.auth-form-icon svg {
    width: 19px;
    height: 19px;
}

.auth-form-heading h2 {
    margin: 8px 0 6px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 31px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.auth-form-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.form-label,
.form-link {
    font-size: 11px;
    font-weight: 700;
}

.form-label {
    margin-bottom: 7px;
    color: var(--navy-900);
}

.form-label-row {
    justify-content: space-between;
    gap: 10px;
    margin-top: 17px;
}

.form-label-row .form-label {
    margin-bottom: 7px;
}

.form-link {
    color: var(--sky-700);
}

.input-wrap {
    position: relative;
    display: flex;
    height: 44px;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    color: var(--muted);
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrap:focus-within {
    border-color: var(--sky-700);
    box-shadow: 0 0 0 3px rgba(114, 199, 238, 0.17);
}

.input-wrap > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.input-wrap input {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 12px;
}

.input-wrap input::placeholder {
    color: #a0b2bc;
}

.input-action {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    color: var(--muted);
    background: transparent;
    border-radius: 4px;
}

.input-action:hover {
    color: var(--navy-900);
    background: var(--sky-100);
}

.input-action svg {
    width: 15px;
    height: 15px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 17px 0 21px;
    color: var(--muted);
    font-size: 11px;
}

.checkbox-label input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--navy-900);
}

.button-wide {
    width: 100%;
}

.button-outline {
    color: var(--navy-900);
    background: var(--white);
    border-color: var(--line-dark);
}

.button-letter {
    display: inline-grid;
    width: 19px;
    height: 19px;
    place-items: center;
    color: var(--white);
    background: var(--navy-900);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 700;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 16px;
    color: #9aadb7;
    font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: '';
}

.auth-signup {
    margin: 23px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.auth-legal {
    margin: 0;
    color: #9aadb7;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 1120px) {
    .topbar {
        padding: 0 26px;
    }

    .dashboard-content {
        padding-right: 26px;
        padding-left: 26px;
    }

    .welcome-copy {
        padding-right: 30px;
        padding-left: 30px;
    }

    .topbar-profile-copy {
        display: none;
    }

    .auth-story {
        padding-right: 32px;
        padding-left: 32px;
    }

    .auth-panel {
        padding-right: 32px;
        padding-left: 32px;
    }
}

@media (max-width: 900px) {
    .sidebar {
        box-shadow: 18px 0 40px rgba(7, 31, 53, 0.18);
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }

    .sidebar-close,
    .menu-toggle {
        display: inline-grid;
    }

    .sidebar-open .sidebar,
    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-open .sidebar-backdrop {
        position: fixed;
        z-index: 20;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        background: rgba(7, 31, 53, 0.4);
    }

    .app-main {
        width: 100%;
        margin-left: 0;
    }

    .content-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-story {
        min-height: 540px;
    }

    .auth-panel {
        min-height: 650px;
    }
}

@media (max-width: 680px) {
    .topbar {
        height: 68px;
        padding: 0 16px;
    }

    .topbar-left,
    .topbar-actions {
        gap: 9px;
    }

    .breadcrumb span,
    .search-field,
    .topbar-profile > svg {
        display: none;
    }

    .breadcrumb {
        gap: 5px;
    }

    .dashboard-content {
        padding: 18px 14px 16px;
    }

    .welcome-banner {
        display: block;
    }

    .welcome-copy {
        padding: 26px 22px 24px;
    }

    .welcome-copy h1 {
        font-size: 34px;
    }

    .welcome-visual,
    .welcome-visual img {
        min-height: 188px;
        height: 188px;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .metric-card {
        min-height: 151px;
        padding: 14px;
    }

    .metric-value {
        font-size: 22px;
    }

    .metric-label {
        margin-top: 13px;
    }

    .panel {
        padding: 17px;
    }

    .panel-heading {
        align-items: flex-start;
    }

    .chart-legend {
        display: none;
    }

    .chart-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-wrap {
        height: 220px;
    }

    .page-footer {
        justify-content: flex-start;
        gap: 7px 15px;
    }

    .page-footer span:last-child {
        width: 100%;
    }

    .auth-shell {
        padding: 0;
    }

    .auth-layout {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .auth-story {
        min-height: auto;
        padding: 24px 22px 25px;
    }

    .auth-story-copy {
        margin: 58px 0 24px;
    }

    .auth-story-copy h1 {
        font-size: 34px;
    }

    .auth-story-image {
        height: 160px;
    }

    .auth-story-footer {
        gap: 9px 15px;
        margin-top: 16px;
    }

    .auth-panel {
        min-height: 0;
        padding: 24px 22px 25px;
    }

    .auth-form-wrap {
        margin: 54px auto 58px;
    }

    .auth-legal {
        margin-top: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.page-intro-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.page-intro h1 {
    margin: 8px 0 9px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 3.5vw, 44px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.06;
}

.page-intro p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.page-intro-meta,
.organizer-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    color: var(--navy-700);
    font-size: 10px;
    font-weight: 700;
}

.page-intro-meta span,
.organizer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 5px;
}

.page-intro-meta svg,
.organizer-badge svg {
    width: 14px;
    height: 14px;
    color: var(--sky-700);
}

.event-tag,
.wallet-status,
.checkin-percent,
.scanner-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.event-tag-dark {
    color: var(--navy-900);
    background: var(--sky-200);
}

.spotlight-card {
    display: grid;
    grid-template-columns: minmax(170px, 0.78fr) minmax(0, 1.22fr);
    gap: 17px;
    margin-top: 20px;
}

.spotlight-card > img {
    width: 100%;
    height: 100%;
    min-height: 212px;
    object-fit: cover;
    border-radius: 6px;
}

.spotlight-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.event-category {
    color: var(--sky-700);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spotlight-copy h3,
.mini-event-content h3 {
    margin: 6px 0 7px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.12;
}

.spotlight-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.event-meta-row,
.ticket-facts,
.event-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
}

.event-meta-row {
    margin: 16px 0 14px;
    color: var(--navy-700);
    font-size: 10px;
}

.event-meta-row span,
.ticket-facts span,
.event-detail-list span,
.mini-event-location {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
}

.event-meta-row svg,
.ticket-facts svg,
.event-detail-list svg,
.mini-event-location svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    color: var(--sky-700);
}

.ticket-summary-panel {
    display: flex;
    flex-direction: column;
}

.wallet-status {
    color: var(--sky-700);
    background: var(--sky-100);
}

.wallet-status span,
.scanner-live span {
    width: 5px;
    height: 5px;
    background: var(--sky-700);
    border-radius: 50%;
}

.wallet-count {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-top: 29px;
}

.wallet-count strong {
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 45px;
    line-height: 1;
}

.wallet-count span,
.wallet-copy {
    color: var(--muted);
    font-size: 11px;
}

.wallet-copy {
    max-width: 270px;
    margin: 7px 0 18px;
    line-height: 1.55;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wallet-list > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.wallet-list-icon {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 5px;
}

.wallet-list-icon svg {
    width: 14px;
    height: 14px;
}

.wallet-list strong,
.wallet-list small {
    display: block;
}

.wallet-list strong {
    color: var(--navy-900);
    font-size: 11px;
}

.wallet-list small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.upcoming-events-panel {
    margin-top: 14px;
}

.mini-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 20px;
}

.mini-event-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.mini-event-card:hover,
.event-card:hover {
    border-color: var(--sky-300);
    box-shadow: 0 12px 28px rgba(11, 47, 77, 0.08);
    transform: translateY(-2px);
}

.mini-event-image {
    position: relative;
    height: 122px;
    overflow: hidden;
    background: var(--navy-800);
}

.mini-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.mini-event-card:hover .mini-event-image img,
.event-card:hover .event-card-image img {
    transform: scale(1.03);
}

.event-date-chip,
.event-category-chip,
.event-feature-label {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.event-date-chip {
    bottom: 9px;
    left: 9px;
}

.mini-event-content {
    padding: 14px;
}

.mini-event-content h3 {
    min-height: 45px;
    margin-top: 6px;
    font-size: 16px;
}

.mini-event-location {
    overflow: hidden;
    width: 100%;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 15px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
}

.mini-event-footer strong {
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
}

.mini-event-footer span {
    color: var(--sky-700);
    font-size: 9px;
    font-weight: 700;
}

.checkin-panel .panel-heading {
    margin-bottom: 26px;
}

.checkin-percent {
    color: var(--sky-700);
    background: var(--sky-100);
}

.checkin-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 10px 0 19px;
    color: var(--muted);
    font-size: 10px;
}

.checkin-copy strong {
    color: var(--navy-900);
    font-size: 12px;
}

.progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    background: var(--sky-100);
    border-radius: 5px;
}

.progress-track span {
    display: block;
    height: 100%;
    background: var(--sky-500);
    border-radius: inherit;
}

.payment-progress-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
}

.payment-progress-row small {
    color: var(--slate-500, #64748b);
    font-size: 11px;
}

.payment-progress-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.payment-progress-item {
    padding: 12px 14px;
    border: 1px solid var(--sky-100);
    border-radius: 12px;
}

.payment-progress-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.event-page .page-intro-row,
.ticket-page .page-intro-row,
.checkin-page .page-intro-row,
.profile-page .page-intro-row {
    padding-top: 4px;
}

.inline-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -7px 0 18px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.inline-alert svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.inline-alert-success {
    color: var(--navy-900);
    background: var(--sky-100);
    border-color: var(--sky-300);
}

.inline-alert-success svg {
    color: var(--sky-700);
}

.inline-alert-success small {
    margin-left: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

.inline-alert-error {
    color: var(--navy-900);
    background: #eef5f8;
    border-color: var(--line-dark);
}

.inline-alert-error svg {
    color: var(--navy-700);
}

.event-filter-row,
.ticket-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 15px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.filter-heading,
.ticket-toolbar > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-heading strong,
.ticket-toolbar > div:first-child > strong {
    color: var(--navy-900);
    font-size: 12px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-button {
    padding: 7px 9px;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
    color: var(--navy-900);
    background: var(--sky-100);
    border-color: var(--sky-200);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.event-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(11, 47, 77, 0.025);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.event-card-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: var(--navy-800);
}

.event-card-image::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(7, 31, 53, 0.1);
    content: '';
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms ease;
}

.event-category-chip {
    top: 12px;
    left: 12px;
    color: var(--navy-900);
    background: var(--sky-500);
}

.event-feature-label {
    right: 12px;
    bottom: 12px;
}

.event-feature-label svg {
    width: 12px;
    height: 12px;
    color: var(--sky-700);
}

.event-card-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.event-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sky-700);
    font-size: 10px;
}

.event-card-date svg {
    width: 14px;
    height: 14px;
}

.event-card-date strong {
    font-weight: 700;
}

.event-card-date span {
    padding-left: 6px;
    color: var(--muted);
    border-left: 1px solid var(--line-dark);
}

.event-card-content h2 {
    margin: 9px 0 7px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.12;
}

.event-card-content p {
    min-height: 52px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.event-detail-list {
    margin-top: 15px;
    color: var(--navy-700);
    font-size: 10px;
}

.event-capacity {
    margin-top: 16px;
}

.event-capacity-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
}

.event-capacity-label strong {
    color: var(--sky-700);
}

.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 19px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.event-price {
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    white-space: nowrap;
}

.event-price small {
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 500;
}

.event-card-footer .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
}

.event-card-footer .button svg {
    width: 13px;
    height: 13px;
}

.event-empty-state,
.ticket-filter-empty {
    margin-top: 14px;
    padding: 24px;
    color: var(--muted);
    background: var(--white);
    border: 1px dashed var(--line-dark);
    border-radius: 7px;
    font-size: 12px;
    text-align: center;
}

.booking-note,
.ticket-trust-note {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 7px;
}

.booking-note-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.booking-note-icon svg {
    width: 16px;
    height: 16px;
}

.booking-note > span:last-child,
.ticket-trust-note > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-note strong,
.ticket-trust-note strong {
    color: var(--navy-900);
    font-size: 11px;
}

.booking-note small,
.ticket-trust-note small {
    color: var(--navy-700);
    font-size: 10px;
}

.purchase-dialog {
    width: min(100% - 32px, 485px);
    padding: 0;
    color: var(--ink);
    background: var(--white);
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.purchase-dialog::backdrop {
    background: rgba(7, 31, 53, 0.55);
}

.site-alert-dialog {
    width: min(100% - 32px, 420px);
    padding: 0;
    color: var(--ink);
    background: var(--white);
    border: 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.site-alert-dialog::backdrop {
    background: rgba(7, 31, 53, 0.55);
}

.site-alert-shell {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding: 28px 24px 24px;
    text-align: center;
}

.site-alert-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    place-items: center;
    color: #b3261e;
    background: #fbe9e7;
    border-radius: 50%;
}

.site-alert-icon svg {
    width: 22px;
    height: 22px;
}

.site-alert-shell h2 {
    margin: 0;
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.site-alert-shell p {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.site-alert-shell .button {
    margin-top: 6px;
}

.dialog-shell {
    padding: 23px;
}

.dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.dialog-header h2 {
    margin: 6px 0 0;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.dialog-event-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 20px;
    padding: 12px;
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 6px;
}

.dialog-event-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.dialog-event-icon svg {
    width: 16px;
    height: 16px;
}

.dialog-event-summary > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.dialog-event-summary strong {
    overflow: hidden;
    color: var(--navy-900);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-event-summary small {
    overflow: hidden;
    margin-top: 3px;
    color: var(--navy-700);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dialog-event-summary b {
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    white-space: nowrap;
}

.purchase-form {
    display: flex;
    flex-direction: column;
}

.dialog-form-label {
    margin-top: 16px;
}

.dialog-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 16px 0 21px;
}

.select-input {
    width: 100%;
    height: 44px;
    padding: 0 10px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    outline: 0;
    font-size: 11px;
}

.select-input:focus {
    border-color: var(--sky-700);
    box-shadow: 0 0 0 3px rgba(114, 199, 238, 0.17);
}

.dialog-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.dialog-footnote svg {
    width: 12px;
    height: 12px;
}

.ticket-stat-grid,
.checkin-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.ticket-stat,
.checkin-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.ticket-stat-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.ticket-stat-icon-soft {
    color: var(--sky-700);
    background: var(--sky-100);
}

.ticket-stat-icon svg {
    width: 17px;
    height: 17px;
}

.ticket-stat > span:last-child,
.checkin-stat > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ticket-stat small,
.checkin-stat small {
    color: var(--muted);
    font-size: 10px;
}

.ticket-stat strong,
.checkin-stat strong {
    margin-top: 2px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    line-height: 1.05;
}

.ticket-toolbar {
    margin: 18px 0 14px;
}

.empty-ticket-state {
    display: flex;
    min-height: 300px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--line-dark);
    border-radius: 8px;
}

.empty-ticket-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 17px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 6px;
}

.empty-ticket-icon svg {
    width: 24px;
    height: 24px;
}

.empty-ticket-state h2 {
    margin: 7px 0 6px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0;
}

.empty-ticket-state p {
    max-width: 390px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 11px;
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.ticket-card {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 185px;
    overflow: hidden;
    isolation: isolate;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--sky-500);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(11, 47, 77, 0.025);
    overflow-x: auto;
}

.ticket-card-background {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: saturate(0.85) contrast(0.95);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.ticket-card-main {
    min-width: 0;
    position: relative;
    z-index: 2;
    padding: 21px 22px;
    background: rgba(255, 255, 255, 0.68);
}
    min-width: 0;
    padding: 21px 22px;
}

.ticket-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ticket-card-main h2 {
    margin: 9px 0 15px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.ticket-facts {
    color: var(--navy-700);
    font-size: 10px;
}

.ticket-id-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 25px;
    padding-top: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 9px;
}

.ticket-id-row strong {
    margin-left: 3px;
    color: var(--navy-900);
    font-weight: 700;
}

.ticket-card-qr {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(234, 247, 253, 0.8);
    border-left: 1px dashed var(--sky-300);
}

.qr-frame {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    color: var(--navy-700);
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}

.qr-code {
    display: grid;
    width: 142px;
    height: 142px;
    place-items: center;
    padding: 5px;
    background: var(--white);
    border: 1px solid var(--sky-300);
    border-radius: 4px;
}

.qr-code img,
.qr-code canvas {
    display: block;
    width: 132px !important;
    height: 132px !important;
}

.qr-unavailable {
    color: var(--navy-700);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 27px;
}

.ticket-stub {
    position: relative;
    padding: 16px 14px;
    background: var(--white);
    border: 1px solid var(--sky-300);
    border-radius: 10px;
}

.ticket-stub-divider {
    width: 100%;
    margin: 4px 0;
    border-top: 1px dashed var(--line-dark);
}

.ticket-stub-meta {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2px;
}

.ticket-stub-meta strong {
    color: var(--ink);
    font-size: 11px;
}

.ticket-stub-meta small {
    color: var(--sky-700);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    letter-spacing: 0.04em;
}

.ticket-card-cancelled {
    opacity: 0.65;
}

.refund-request {
    position: relative;
}

.refund-request summary {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--navy-700);
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    list-style: none;
}

.refund-request summary::-webkit-details-marker {
    display: none;
}

.refund-request summary svg {
    width: 15px;
    height: 15px;
}

.refund-request-form {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(100% + 8px);
    display: flex;
    width: 240px;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.refund-request-form textarea {
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    font-size: 11px;
    resize: vertical;
}

.ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ticket-actions form {
    display: flex;
    margin: 0;
}

.checkin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    gap: 14px;
}

.scanner-live {
    color: var(--sky-700);
    background: var(--sky-100);
}

.scan-illustration {
    display: flex;
    min-height: 165px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    margin: 22px 0 20px;
    color: var(--muted);
    background: var(--sky-100);
    border: 1px dashed var(--sky-300);
    border-radius: 6px;
}

.scan-illustration > span {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 6px;
}

.scan-illustration svg {
    width: 29px;
    height: 29px;
}

.scan-illustration small {
    font-size: 10px;
}

.checkin-form .button {
    margin-top: 17px;
}

.scanner-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.scanner-note svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    color: var(--sky-700);
}

.attendance-total {
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.attendance-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
}

.attendance-progress .progress-track {
    flex: 1;
}

.attendance-progress > span {
    color: var(--sky-700);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.attendance-list {
    display: flex;
    max-height: 260px;
    overflow-y: auto;
    flex-direction: column;
    margin-top: 18px;
}

.attendance-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.attendance-row:last-child {
    border-bottom: 0;
}

.attendance-avatar {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-300);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
}

.attendance-row > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.attendance-row strong {
    overflow: hidden;
    color: var(--navy-900);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-row small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-empty {
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.attendance-empty svg {
    width: 17px;
    height: 17px;
    color: var(--sky-700);
}

.checkin-stat-grid {
    margin-top: 14px;
    margin-bottom: 0;
}

.profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    padding: 24px 26px;
    background: var(--navy-900);
    border-radius: 8px;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-avatar {
    display: grid;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.profile-hero .section-kicker {
    color: var(--sky-500);
}

.profile-hero h1 {
    margin: 6px 0 2px;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.05;
}

.profile-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.59);
    font-size: 11px;
}

.member-since {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
}

.member-since svg {
    width: 15px;
    height: 15px;
    color: var(--sky-500);
}

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

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 15px;
    margin: 24px 0 0;
}

.detail-list div {
    min-width: 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 10px;
}

.detail-list dd {
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--navy-900);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-preference-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 5px;
}

.profile-preference-icon svg {
    width: 15px;
    height: 15px;
}

.preference-list {
    margin-top: 18px;
}

.preference-row {
    position: relative;
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.preference-row:last-child {
    border-bottom: 0;
}

.preference-row > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.preference-row strong {
    color: var(--navy-900);
    font-size: 11px;
}

.preference-row small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.preference-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.preference-row > i {
    position: relative;
    display: block;
    width: 34px;
    height: 20px;
    flex: 0 0 34px;
    background: var(--line-dark);
    border-radius: 12px;
    transition: background 160ms ease;
}

.preference-row > i::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(11, 47, 77, 0.2);
    content: '';
    transition: transform 160ms ease;
}

.preference-row input:checked + i {
    background: var(--sky-700);
}

.preference-row input:checked + i::after {
    transform: translateX(14px);
}

.profile-security {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
}

.profile-security-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.profile-security-icon svg {
    width: 19px;
    height: 19px;
}

.profile-security h2 {
    margin: 5px 0 4px;
    font-size: 15px;
}

.profile-security p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

[hidden] {
    display: none !important;
}

/* Softr-inspired refresh */
:root {
    --navy-950: #101828;
    --navy-900: #182230;
    --navy-800: #344054;
    --navy-700: #475467;
    --sky-700: #0e9384;
    --sky-500: #15b79e;
    --sky-300: #99f6e0;
    --sky-200: #ccfbef;
    --sky-100: #f0fdf9;
    --canvas: #fbfaf7;
    --line: #ece7df;
    --line-dark: #ddd5c9;
    --ink: #1d2939;
    --muted: #667085;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

body {
    background: radial-gradient(circle at top left, rgba(21, 183, 158, 0.14), transparent 34%), linear-gradient(180deg, #fffaf0 0%, #f8fafc 44%, #ffffff 100%);
}

.sidebar {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid rgba(236, 231, 223, 0.86);
    box-shadow: 18px 0 40px rgba(16, 24, 40, 0.04);
    backdrop-filter: blur(18px);
}

.sidebar .brand-copy strong,
.sidebar-account strong,
.sidebar-link.is-active,
.nav-label {
    color: var(--ink);
}

.sidebar .brand-copy small,
.sidebar-account small,
.sidebar-link {
    color: var(--muted);
}

.sidebar-link {
    border-radius: 8px;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: var(--sky-100);
}

.brand-icon,
.button-primary,
.auth-form-icon,
.ticket-stat-icon,
.booking-note-icon,
.profile-security-icon {
    background: linear-gradient(135deg, #15b79e 0%, #f79009 100%);
}

.button,
.panel,
.event-card,
.ticket-card,
.payment-progress-item,
.payment-review-card,
.auth-panel,
.auth-story-image img,
.dialog-shell {
    border-radius: 8px;
}

.button-primary:hover {
    background: linear-gradient(135deg, #0e9384 0%, #dc6803 100%);
}

.avatar-photo,
.profile-avatar-photo {
    object-fit: cover;
}

.file-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 116px;
    padding: 16px;
    color: var(--muted);
    background: var(--sky-100);
    border: 1px dashed var(--sky-700);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.file-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-drop > span {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
}

.file-drop svg {
    width: 25px;
    height: 25px;
    color: var(--sky-700);
}

.file-drop strong {
    color: var(--ink);
    font-size: 12px;
}

.file-drop small {
    font-size: 10px;
}

.input-wrap-readonly {
    color: var(--muted);
    background: var(--canvas);
}

.input-wrap-readonly input {
    color: var(--muted);
    cursor: not-allowed;
}

.event-image-current {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.event-image-current img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 5px;
}

.event-image-current small {
    color: var(--muted);
    font-size: 10px;
}

.qr-frame-locked {
    width: 142px;
    min-height: 142px;
    justify-content: center;
    padding: 13px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed var(--line-dark);
    border-radius: 8px;
}

.qr-frame-locked strong {
    color: var(--ink);
    font-size: 12px;
}

.qr-lock-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 8px;
}

.qr-lock-icon svg {
    width: 18px;
    height: 18px;
}

.reservation-payment-guide {
    margin: 12px 0;
}

.reservation-identity-note,
.reservation-remarks-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 6px;
    font-size: 10px;
    color: var(--navy-700);
}

.reservation-identity-note {
    align-items: center;
    margin-bottom: 4px;
}

.reservation-identity-note strong {
    display: block;
    color: var(--ink);
    font-size: 12px;
}

.reservation-identity-note small {
    color: var(--muted);
}

.reservation-remarks-note {
    margin-bottom: 4px;
    line-height: 1.5;
}

.reservation-identity-note svg,
.reservation-remarks-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--sky-700);
}

.reservation-fixed-quantity {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    color: var(--muted);
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11px;
}

@media (max-width: 900px) {
    .event-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

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

    .checkin-layout {
        grid-template-columns: 1fr;
    }

    .profile-security {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .profile-security .button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 680px) {
    .page-intro-row,
    .event-filter-row,
    .ticket-toolbar,
    .profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-intro-row {
        gap: 16px;
    }

    .page-intro-meta {
        gap: 7px;
    }

    .page-intro-meta span {
        padding: 7px 9px;
    }

    .spotlight-card {
        grid-template-columns: 1fr;
    }

    .spotlight-card > img {
        height: 170px;
        min-height: 0;
    }

    .mini-event-grid {
        grid-template-columns: 1fr;
    }

    .mini-event-content h3 {
        min-height: 0;
    }

    .event-filter-row,
    .ticket-toolbar {
        gap: 11px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-card-image {
        height: 174px;
    }

    .event-card-content {
        padding: 15px;
    }

    .event-card-content h2 {
        font-size: 19px;
    }

    .dialog-form-grid,
    .ticket-stat-grid,
    .checkin-stat-grid {
        grid-template-columns: 1fr;
    }

    .ticket-card {
        grid-template-columns: 1fr;
    }

    .ticket-card-qr {
        justify-content: space-between;
        border-top: 1px dashed var(--sky-300);
        border-left: 0;
    }

    .ticket-actions {
        flex-direction: row;
    }

    .profile-hero {
        gap: 15px;
        padding: 20px;
    }

    .profile-security {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-security .button {
        margin-top: 4px;
    }

    .detail-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.role-preview-auth {
    margin-top: 21px;
    padding: 13px;
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 6px;
}

.role-preview-auth-heading {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.role-preview-auth-heading > svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--sky-700);
}

.role-preview-auth-heading > span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-preview-auth-heading strong {
    color: var(--navy-900);
    font-size: 10px;
}

.role-preview-auth-heading small {
    color: var(--muted);
    font-size: 9px;
}

.role-preview-auth-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin-top: 10px;
}

.role-preview-auth-controls .select-input {
    height: 38px;
}

.role-preview-auth-controls .button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 10px;
}

.role-preview-auth-controls .button svg {
    width: 13px;
    height: 13px;
}

.role-preview-auth-error {
    margin: 8px 0 0;
    color: var(--navy-700);
    font-size: 9px;
}

.access-denied-page {
    display: grid;
    min-height: calc(100vh - 78px);
    place-items: center;
}

.access-denied-panel {
    display: flex;
    width: min(100%, 610px);
    align-items: center;
    flex-direction: column;
    padding: 42px 30px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.access-denied-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 6px;
}

.access-denied-icon svg {
    width: 26px;
    height: 26px;
}

.access-denied-panel h1 {
    margin: 8px 0 9px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(25px, 3.5vw, 34px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.access-denied-panel p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.access-denied-panel p strong {
    color: var(--navy-900);
}

.access-denied-panel code {
    padding: 2px 4px;
    color: var(--navy-700);
    background: var(--sky-100);
    border-radius: 3px;
    font-size: 10px;
}

.access-denied-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 23px;
}

.access-denied-note {
    max-width: 430px;
    margin-top: 24px;
    color: #9aadb7;
    font-size: 9px;
    line-height: 1.5;
}

.approval-inline-form {
    display: inline-block;
    margin-left: 6px;
}

.approval-inline-form .text-action {
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 9px;
}

.approval-inline-form .text-action svg {
    width: 12px;
    height: 12px;
}

.table-muted-action {
    color: var(--muted);
    font-size: 9px;
}

.role-control-grid,
.settings-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    gap: 14px;
}

.role-preview-copy {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.role-preview-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 18px;
    padding-top: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 9px;
    line-height: 1.45;
}

.role-preview-note svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    color: var(--sky-700);
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.role-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.role-name-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.role-symbol {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.role-symbol svg {
    width: 16px;
    height: 16px;
}

.role-name-row h2 {
    margin: 0;
    font-size: 15px;
}

.role-name-row small {
    display: block;
    margin-top: 3px;
    color: var(--sky-700);
    font-size: 9px;
    font-weight: 700;
}

.role-card-heading > div > p {
    max-width: 650px;
    margin: 11px 0 0 41px;
    color: var(--muted);
    font-size: 10px;
}

.role-permission-count {
    display: flex;
    min-width: 48px;
    flex-direction: column;
    align-items: center;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.role-permission-count small {
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 8px;
    font-weight: 500;
}

.role-permission-form {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.role-permission-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px 14px;
}

.permission-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.permission-group-label,
.role-permission-picker legend {
    color: var(--sky-700);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.permission-check {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
}

.permission-check input,
.permission-check-grid input {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    margin: 0;
    accent-color: var(--navy-900);
}

.permission-check input:disabled {
    opacity: 0.75;
}

.role-permission-form > .button {
    margin-top: 18px;
    min-height: 35px;
    padding: 0 10px;
    font-size: 10px;
}

.role-permission-form > .button:disabled {
    color: var(--muted);
    background: var(--canvas);
    border-color: var(--line);
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
}

.role-permission-form > .button svg {
    width: 13px;
    height: 13px;
}

.role-permission-picker {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.permission-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.permission-check-grid label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.35;
}

.user-create-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.user-create-heading {
    display: flex;
    min-width: 155px;
    align-items: center;
    gap: 8px;
}

.user-create-heading > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-create-heading h2 {
    margin: 0;
    font-size: 14px;
}

.user-create-form {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(130px, 1fr) minmax(170px, 1.2fr) minmax(125px, 0.9fr) minmax(150px, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.user-create-form .admin-text-input,
.user-create-form .select-input {
    height: 38px;
}

.user-create-form .button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 10px;
    white-space: nowrap;
}

.admin-user-table-panel,
.audit-table-panel {
    padding-top: 17px;
}

.admin-user-table-panel {
    overflow: hidden;
}

.admin-user-table,
.audit-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.admin-user-table th,
.audit-table th {
    padding: 0 10px 10px;
    color: #91a6b1;
    border-bottom: 1px solid var(--line);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.admin-user-table th:first-child,
.admin-user-table td:first-child,
.audit-table th:first-child,
.audit-table td:first-child {
    padding-left: 0;
}

.admin-user-table th:last-child,
.admin-user-table td:last-child,
.audit-table th:last-child,
.audit-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.admin-user-table td,
.audit-table td {
    padding: 12px 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    white-space: nowrap;
}

.admin-user-table tr:last-child td,
.audit-table tr:last-child td {
    border-bottom: 0;
}

.admin-search-row {
    margin-bottom: 14px;
}

.admin-search-input {
    max-width: 420px;
}

.admin-payment-table-panel {
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-page {
    min-width: 0;
    overflow-x: hidden;
}

.admin-payment-table-scroll {
    overflow-x: auto;
}

.admin-payment-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
}

.admin-payment-table th {
    padding: 0 12px 12px;
    color: #91a6b1;
    border-bottom: 1px solid var(--line);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.admin-payment-table td {
    padding: 13px 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    vertical-align: middle;
}

.admin-payment-table th:first-child,
.admin-payment-table td:first-child {
    padding-left: 0;
}

.admin-payment-table th:last-child,
.admin-payment-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.admin-payment-row:last-child td {
    border-bottom: 0;
}

.admin-empty-table-row td {
    padding: 30px 12px;
    color: var(--muted);
    text-align: center !important;
}

.admin-payment-table-panel [data-payment-table-empty] {
    padding: 20px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

.ticket-admin-search-row {
    margin-top: 0;
}

.admin-table-paginator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 13px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 10px;
}

.admin-table-paginator-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-table-paginator-controls strong {
    min-width: 45px;
    color: var(--navy-700);
    font-size: 10px;
    text-align: center;
}

.admin-table-paginator .table-action:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.admin-ticket-removal-panel {
    margin-bottom: 18px;
}

.admin-ticket-removal-table {
    min-width: 920px;
}

.admin-ticket-removal-table td > strong,
.admin-ticket-removal-table td > small {
    display: block;
}

.admin-ticket-removal-table td > strong {
    color: var(--navy-900);
    font-size: 10px;
}

.admin-ticket-removal-table td > small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.admin-ticket-progress {
    display: flex;
    min-width: 140px;
    flex-direction: column;
    gap: 5px;
}

.admin-ticket-progress .progress-track {
    height: 5px;
}

.admin-ticket-progress small {
    color: var(--muted);
    font-size: 9px;
}

.admin-ticket-restore-panel {
    margin-bottom: 18px;
}

.admin-ticket-restore-table {
    min-width: 930px;
}

.admin-ticket-restore-table td > strong,
.admin-ticket-restore-table td > small {
    display: block;
}

.admin-ticket-restore-table td > strong {
    color: var(--navy-900);
    font-size: 10px;
}

.admin-ticket-restore-table td > small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.table-action-restore {
    color: #087f6d;
    background: #d9f8ef;
    border-color: #a8ead9;
}

.table-action-restore:hover {
    color: #065f54;
    background: #baf1df;
    border-color: #73d9c3;
}

.payment-review-modal .dialog-shell {
    width: min(100%, 560px);
}

.payment-review-modal-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0;
}

.payment-review-modal-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 0 0 14px;
}

.payment-review-modal-facts dt {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.payment-review-modal-facts dd {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
}

.payment-review-modal-attachment {
    display: inline-flex;
    margin: 4px 0 14px;
}

.payment-review-modal-reviewed {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 10px;
}

.payment-review-modal-reviewed svg {
    width: 13px;
    height: 13px;
}

.payment-review-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.payment-review-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button-danger {
    color: var(--white);
    background: #b3261e;
}

.button-danger:hover {
    background: #8c1d17;
}

.inline-role-form .select-input {
    width: 165px;
    height: 34px;
    padding: 0 8px;
    font-size: 9px;
}

.user-row-actions {
    display: inline-flex;
    gap: 5px;
}

.event-row-actions {
    display: inline-flex;
    gap: 5px;
}

.event-row-actions form {
    display: inline-flex;
    margin: 0;
}

.table-action-danger:hover {
    color: #7a3f4b;
    background: #f8edef;
    border-color: #eacfd4;
}

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

.settings-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
}

.settings-toggle-row {
    display: flex;
    min-height: 57px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.settings-toggle-row:last-child {
    border-bottom: 0;
}

.settings-toggle-row > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.settings-toggle-row strong {
    color: var(--navy-900);
    font-size: 10px;
}

.settings-toggle-row small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.settings-toggle-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.settings-toggle-row > i {
    position: relative;
    display: block;
    width: 34px;
    height: 20px;
    flex: 0 0 34px;
    background: var(--line-dark);
    border-radius: 12px;
}

.settings-toggle-row > i::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(11, 47, 77, 0.2);
    content: '';
    transition: transform 160ms ease;
}

.settings-toggle-row input:checked + i {
    background: var(--sky-700);
}

.settings-toggle-row input:checked + i::after {
    transform: translateX(14px);
}

.audit-table td > strong,
.audit-table td > small {
    display: block;
}

.audit-table td > strong {
    color: var(--navy-900);
    font-size: 10px;
}

.audit-table td > small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.audit-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--sky-700);
    font-weight: 700;
}

.audit-action svg {
    width: 13px;
    height: 13px;
}

.ticket-card-pending {
    border-left-color: var(--line-dark);
}

.ticket-pay-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    color: var(--sky-700);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.ticket-pay-link:hover {
    color: var(--navy-900);
}

.ticket-pay-link svg {
    width: 12px;
    height: 12px;
}

.ticket-card-qr .ticket-actions {
    align-items: center;
}

@media (max-width: 1120px) {
    .role-control-grid,
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .user-create-strip {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .user-create-form .button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .role-permission-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .access-denied-panel {
        padding: 30px 20px;
    }

    .access-denied-actions {
        width: 100%;
        flex-direction: column;
    }

    .access-denied-actions .button {
        width: 100%;
    }

    .role-preview-auth-controls,
    .permission-check-grid,
    .role-permission-groups,
    .user-create-form {
        grid-template-columns: 1fr;
    }

    .role-card-heading {
        gap: 10px;
    }

    .role-card-heading > div > p {
        margin-left: 0;
    }

    .role-permission-count {
        min-width: 38px;
        font-size: 15px;
    }

    .role-permission-form > .button {
        width: 100%;
    }

    .user-create-heading {
        min-width: 0;
    }

    .payment-history-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .payment-history-row > .status-badge {
        margin-left: 39px;
    }
}

.event-price-stack {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.event-price-stack small {
    color: var(--muted);
    font-size: 9px;
    white-space: nowrap;
}

.admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
    color: var(--white);
    background: var(--navy-900);
    border-radius: 8px;
}

.admin-hero .section-kicker {
    color: var(--sky-500);
}

.admin-hero h1 {
    margin: 9px 0 8px;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.05;
}

.admin-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button-sky {
    color: var(--navy-900);
    background: var(--sky-500);
}

.button-sky:hover {
    color: var(--navy-900);
    background: var(--sky-300);
}

.admin-metric-grid,
.payment-review-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.admin-metric,
.payment-review-stat {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.admin-metric-icon {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.admin-metric-icon-soft {
    color: var(--sky-700);
    background: var(--sky-100);
}

.admin-metric-icon-alert {
    color: var(--navy-900);
    background: var(--sky-300);
}

.admin-metric-icon svg {
    width: 17px;
    height: 17px;
}

.admin-metric > span:last-child,
.payment-review-stat > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admin-metric small,
.payment-review-stat small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-metric strong,
.payment-review-stat strong {
    overflow: hidden;
    margin-top: 2px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-metric em {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
    gap: 14px;
    margin-top: 14px;
}

.admin-event-list,
.admin-queue-list {
    margin-top: 19px;
}

.admin-event-row,
.admin-queue-row,
.scanner-user-row,
.payment-history-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.admin-event-row:last-child,
.admin-queue-row:last-child,
.scanner-user-row:last-child,
.payment-history-row:last-child {
    border-bottom: 0;
}

.admin-event-date {
    display: flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 5px;
}

.admin-event-date strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    line-height: 1;
}

.admin-event-date small {
    margin-top: 3px;
    font-size: 8px;
    font-weight: 700;
}

.admin-event-row > span:nth-child(2),
.admin-queue-row > span:nth-child(2),
.scanner-user-row > span:nth-child(2),
.payment-history-row > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.admin-event-row strong,
.admin-queue-row strong,
.scanner-user-row strong,
.payment-history-row strong {
    overflow: hidden;
    color: var(--navy-900);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-event-row small,
.admin-queue-row small,
.scanner-user-row small,
.payment-history-row small {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-row-count,
.admin-queue-row > b {
    color: var(--sky-700);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.admin-tool-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-tool-card:hover {
    border-color: var(--sky-300);
    box-shadow: 0 9px 24px rgba(11, 47, 77, 0.06);
    transform: translateY(-2px);
}

.admin-tool-card > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.admin-tool-card strong {
    color: var(--navy-900);
    font-size: 11px;
}

.admin-tool-card small {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.admin-tool-card > svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--muted);
}

.admin-tool-icon,
.admin-table-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.admin-tool-icon-soft {
    color: var(--sky-700);
    background: var(--sky-100);
}

.admin-tool-icon-alert {
    background: var(--sky-300);
}

.backup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 14px;
}

.backup-hero-card {
    display: flex;
    min-height: 285px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 30px 32px;
    background: linear-gradient(135deg, var(--navy-900), #164765);
    border-color: var(--navy-900);
}

.backup-hero-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 10px;
}

.backup-hero-icon svg {
    width: 24px;
    height: 24px;
}

.backup-hero-card .section-kicker {
    color: var(--sky-500);
}

.backup-hero-card h2 {
    margin: 8px 0 9px;
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
}

.backup-hero-card p {
    max-width: 600px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.65;
}

.backup-hero-card .button-primary {
    color: var(--navy-900);
    background: var(--sky-500);
}

.backup-hero-card .button-primary:hover {
    background: var(--white);
}

.backup-inventory-card {
    min-width: 0;
}

.backup-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #087f6d;
    background: #d9f8ef;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 9px;
    font-weight: 700;
}

.backup-status span {
    width: 6px;
    height: 6px;
    background: #15b79e;
    border-radius: 50%;
}

.backup-inventory-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 22px 0 0;
}

.backup-inventory-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.backup-inventory-list div:last-child {
    border-bottom: 0;
}

.backup-inventory-list dt,
.backup-inventory-list dd {
    margin: 0;
    font-size: 10px;
}

.backup-inventory-list dt {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--navy-700);
    font-weight: 700;
}

.backup-inventory-list dt svg {
    width: 15px;
    height: 15px;
    color: var(--sky-700);
}

.backup-inventory-list dd {
    color: var(--navy-900);
    font-weight: 700;
    text-align: right;
}

.backup-warning-strip {
    margin-top: 14px;
}

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

.planner-event-selector {
    margin-bottom: 14px;
    padding: 15px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.planner-event-selector form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.planner-event-selector form > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.planner-event-selector strong {
    overflow: hidden;
    color: var(--navy-900);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planner-event-select {
    width: min(100%, 390px);
}

.planner-event-select .select-input {
    height: 38px;
}

.planner-event-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 14px;
    padding: 22px 26px;
    color: var(--white);
    background: linear-gradient(115deg, var(--navy-900), #164765 68%, #159b8a);
    border-radius: 8px;
}

.planner-event-hero .section-kicker {
    color: var(--sky-500);
}

.planner-event-hero h2 {
    margin: 6px 0 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.06;
}

.planner-event-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
}

.planner-event-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.planner-event-hero-stats span {
    display: flex;
    min-width: 72px;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 6px;
}

.planner-event-hero-stats strong {
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
}

.planner-event-hero-stats small {
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
}

.planner-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.planner-metric {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.planner-metric > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.planner-metric-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-300);
    border-radius: 6px;
}

.planner-metric-icon-soft {
    color: var(--sky-700);
    background: var(--sky-100);
}

.planner-metric-icon-warn {
    color: #946b25;
    background: #fff1c7;
}

.planner-metric-icon-danger {
    color: #a7372f;
    background: #fff0ed;
}

.planner-metric-icon svg {
    width: 17px;
    height: 17px;
}

.planner-metric small,
.planner-metric em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
}

.planner-metric strong {
    overflow: hidden;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.planner-grid-finance {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.planner-panel {
    min-width: 0;
    padding: 18px;
}

.planner-panel-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.planner-add-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
    white-space: nowrap;
}

.planner-add-button svg {
    width: 14px;
    height: 14px;
}

.planner-inline-form,
.planner-task-form,
.planner-finance-form {
    display: grid;
    gap: 7px;
    margin: 17px 0;
}

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

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

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

.planner-grid-finance-ledger {
    grid-template-columns: minmax(0, 1fr);
}

.planner-dialog {
    width: min(100% - 32px, 610px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.planner-dialog .dialog-shell {
    padding: 23px;
}

.dialog-close-button {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: var(--muted);
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 5px;
}

.dialog-close-button:hover {
    color: var(--navy-900);
    background: var(--sky-200);
}

.dialog-close-button svg {
    width: 15px;
    height: 15px;
}

.planner-modal-form {
    margin-top: 21px;
}

.planner-modal-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.planner-modal-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.planner-modal-field > span {
    color: var(--navy-700);
    font-size: 10px;
    font-weight: 700;
}

.planner-modal-field .admin-text-input,
.planner-modal-field .select-input {
    width: 100%;
    min-width: 0;
}

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

.planner-modal-help {
    margin-top: -1px;
    color: var(--muted);
    font-size: 9px;
}

.planner-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 21px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.planner-modal-actions .button {
    min-height: 38px;
    font-size: 10px;
}

.planner-inline-form .admin-text-input,
.planner-task-form .admin-text-input,
.planner-finance-form .admin-text-input,
.planner-task-form .select-input,
.planner-finance-form .select-input {
    width: 100%;
    height: 36px;
    min-width: 0;
    font-size: 10px;
}

.planner-inline-form .button,
.planner-task-form .button,
.planner-finance-form .button {
    justify-self: start;
    min-height: 36px;
    padding: 0 10px;
    font-size: 10px;
    white-space: nowrap;
}

.planner-inline-form input[name="title"],
.planner-task-form input[name="title"],
.planner-finance-form input[name="description"] {
    grid-column: 1 / -1;
}

.planner-form-help {
    display: block;
    margin: -8px 0 14px;
    color: var(--muted);
    font-size: 9px;
}

.planner-agenda-list,
.planner-task-list,
.planner-finance-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.planner-agenda-item,
.planner-task-item,
.planner-finance-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.planner-agenda-item > span:nth-child(2),
.planner-task-item > span:nth-child(2),
.planner-finance-item > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.planner-agenda-item strong,
.planner-task-item strong,
.planner-finance-item strong {
    overflow: hidden;
    color: var(--navy-900);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planner-agenda-item small,
.planner-task-item small,
.planner-finance-item small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.planner-agenda-time {
    display: flex;
    width: 49px;
    flex: 0 0 49px;
    flex-direction: column;
    color: var(--sky-700);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.planner-agenda-time small {
    margin-top: 2px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
}

.planner-task-item {
    gap: 8px;
}

.task-priority {
    width: 6px;
    height: 32px;
    flex: 0 0 6px;
    border-radius: 4px;
}

.task-priority-low { background: #8ec5b8; }
.task-priority-medium { background: var(--sky-500); }
.task-priority-high { background: #e59d50; }

.task-status-button {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 5px;
}

.task-status-button:hover {
    color: var(--navy-900);
    background: var(--sky-200);
}

.task-status-button svg {
    width: 14px;
    height: 14px;
}

.planner-finance-item > strong {
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    white-space: nowrap;
}

.finance-type {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 6px;
}

.finance-type-income { color: #087f6d; background: #d9f8ef; }
.finance-type-expense { color: #946b25; background: #fff1c7; }

.finance-type svg {
    width: 15px;
    height: 15px;
}

.planner-finance-side {
    align-self: start;
    background: #f8fbfc;
}

.planner-position-top {
    margin-bottom: 14px;
}

.planner-position-top .planner-position-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
}

.planner-position-top .planner-position-note {
    margin-top: 14px;
}

.planner-position-list {
    margin: 13px 0 0;
}

.planner-position-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.planner-position-list dt,
.planner-position-list dd {
    margin: 0;
    font-size: 10px;
}

.planner-position-list dt { color: var(--muted); }
.planner-position-list dd { color: var(--navy-900); font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.planner-position-list .position-positive { color: #087f6d; }
.planner-position-list .position-negative { color: #a7372f; }

.planner-position-total {
    margin-top: 5px;
    padding: 16px 0 !important;
    border-bottom: 0 !important;
}

.planner-position-total dt,
.planner-position-total dd { color: var(--navy-900); font-size: 12px; }

.planner-position-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 10px;
    padding: 11px;
    color: var(--navy-700);
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 6px;
    font-size: 9px;
    line-height: 1.5;
}

.planner-position-note svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: var(--sky-700);
}

.planner-empty {
    display: flex;
    min-height: 90px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
}

.planner-empty svg {
    width: 16px;
    height: 16px;
    color: var(--sky-700);
}

@media (max-width: 1120px) {
    .planner-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .planner-grid-top {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    .planner-grid,
    .planner-grid-finance {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 680px) {
    .planner-event-selector form,
    .planner-event-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .planner-event-select {
        width: 100%;
    }

    .planner-metric-grid,
    .planner-inline-form,
    .planner-task-form,
    .planner-finance-form {
        grid-template-columns: 1fr;
    }

    .planner-panel-actions {
        align-items: flex-end;
        flex-direction: column;
        gap: 7px;
    }

    .planner-add-button {
        width: 100%;
        justify-content: center;
    }

    .planner-modal-fields,
    .planner-position-top .planner-position-list {
        grid-template-columns: 1fr;
    }

    .planner-modal-field-full {
        grid-column: auto;
    }

    .planner-modal-actions {
        flex-direction: column-reverse;
    }

    .planner-modal-actions .button {
        width: 100%;
        justify-content: center;
    }

    .planner-panel {
        padding: 15px;
    }
}

.admin-tool-icon svg,
.admin-table-icon svg {
    width: 16px;
    height: 16px;
}

.admin-policy-strip,
.admin-gate-note {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 7px;
}

.admin-policy-strip > span:last-child,
.admin-gate-note > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-policy-strip strong,
.admin-gate-note strong {
    color: var(--navy-900);
    font-size: 11px;
}

.admin-policy-strip small,
.admin-gate-note small {
    color: var(--navy-700);
    font-size: 10px;
}

.admin-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 22px 0 10px;
}

.admin-list-header > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-list-header strong {
    color: var(--navy-900);
    font-size: 13px;
}

.admin-list-hint,
.form-required-note {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
}

.admin-list-hint svg {
    width: 13px;
    height: 13px;
    color: var(--sky-700);
}

.admin-event-table-panel {
    padding-top: 17px;
}

.admin-event-table {
    width: 100%;
    min-width: 830px;
    border-collapse: collapse;
}

.admin-event-table th {
    padding: 0 10px 10px;
    color: #91a6b1;
    border-bottom: 1px solid var(--line);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.admin-event-table th:first-child,
.admin-event-table td:first-child {
    padding-left: 0;
}

.admin-event-table th:last-child,
.admin-event-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.admin-event-table td {
    padding: 13px 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    white-space: nowrap;
}

.admin-event-table tr:last-child td {
    border-bottom: 0;
}

.admin-event-table td > strong,
.admin-event-table td > small {
    display: block;
}

.admin-event-table td > strong {
    color: var(--navy-900);
    font-size: 10px;
}

.admin-event-table td > small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.admin-event-name {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: normal;
}

.admin-event-name > span:last-child {
    display: flex;
    min-width: 170px;
    flex-direction: column;
}

.admin-event-name strong,
.admin-event-name small {
    display: block;
}

.admin-event-name strong {
    color: var(--navy-900);
    font-size: 11px;
}

.admin-event-name small {
    margin-top: 3px;
    color: var(--sky-700);
    font-size: 9px;
}

.capacity-cell {
    display: flex;
    min-width: 93px;
    flex-direction: column;
    gap: 6px;
}

.capacity-cell .progress-track {
    height: 5px;
}

.limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    color: var(--navy-700);
    background: var(--sky-100);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.limit-badge svg {
    width: 12px;
    height: 12px;
}

.table-edit-button {
    min-height: 31px;
    padding: 0 9px;
    font-size: 10px;
}

.table-edit-button svg {
    width: 13px;
    height: 13px;
}

.admin-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
    gap: 14px;
}

.admin-form-side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
}

.admin-form-panel {
    min-width: 0;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 13px;
    margin-top: 24px;
}

.admin-form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 23px;
}

.form-field {
    min-width: 0;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-label span {
    color: var(--sky-700);
}

.admin-text-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-dark);
    border-radius: 5px;
    outline: 0;
    font-size: 11px;
}

.admin-text-input:focus {
    border-color: var(--sky-700);
    box-shadow: 0 0 0 3px rgba(114, 199, 238, 0.17);
}

.admin-textarea {
    height: auto;
    min-height: 104px;
    padding-top: 11px;
    resize: vertical;
}

.admin-number-input {
    display: flex;
    height: 44px;
    align-items: center;
    color: var(--muted);
    border: 1px solid var(--line-dark);
    border-radius: 5px;
}

.admin-number-input:focus-within {
    border-color: var(--sky-700);
    box-shadow: 0 0 0 3px rgba(114, 199, 238, 0.17);
}

.admin-number-input > span {
    padding: 0 10px;
    color: var(--sky-700);
    font-size: 10px;
    font-weight: 700;
}

.admin-number-input input {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 10px 0 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 11px;
}

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.field-help-emphasis {
    color: var(--sky-700);
    font-weight: 700;
}

.form-side-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 5px;
}

.form-side-icon svg {
    width: 15px;
    height: 15px;
}

.admin-gate-note {
    margin-top: 0;
}

.admin-form-side > .button {
    margin-top: auto;
}

.payment-review-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-review-stat {
    padding: 14px;
}

.payment-review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-review-card {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--sky-500);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(11, 47, 77, 0.025);
}

.payment-review-main {
    min-width: 0;
    padding: 19px 20px;
}

.payment-review-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-user-cell {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.admin-user-cell > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.admin-user-cell small {
    max-width: 360px;
}

.payment-review-main h2 {
    margin: 18px 0 11px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
}

.payment-review-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    color: var(--navy-700);
    font-size: 9px;
}

.payment-review-facts span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.payment-review-facts svg {
    width: 12px;
    height: 12px;
    color: var(--sky-700);
}

.payment-review-amount {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 22px;
    padding-top: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 9px;
}

.payment-review-amount strong {
    margin-left: 4px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
}

.payment-review-side {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: var(--sky-100);
    border-left: 1px dashed var(--sky-300);
}

.slip-preview {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 9px;
    background: var(--white);
    border: 1px solid var(--sky-200);
    border-radius: 5px;
}

.slip-preview-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 4px;
}

.slip-preview-icon svg {
    width: 14px;
    height: 14px;
}

.slip-preview > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.slip-preview strong,
.slip-preview small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slip-preview strong {
    color: var(--navy-900);
    font-size: 10px;
}

.slip-preview small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.slip-preview > a,
.slip-sample {
    display: inline-flex;
    align-items: center;
    color: var(--sky-700);
    font-size: 9px;
    font-weight: 700;
}

.slip-preview > a svg {
    width: 14px;
    height: 14px;
}

.payment-review-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(135px, 0.75fr);
    gap: 10px;
    align-items: end;
}

.payment-review-form .form-label {
    margin-bottom: 6px;
}

.payment-review-form-wide {
    grid-column: 1 / -1;
}

.payment-review-form > .button {
    min-height: 37px;
    padding: 0 10px;
    font-size: 10px;
}

.payment-review-form > .button svg {
    width: 13px;
    height: 13px;
}

.payment-completed-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.payment-completed-note small {
    color: var(--muted);
    font-size: 9px;
}

.payment-edit-toggle summary {
    color: var(--sky-700);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    list-style: none;
}

.payment-edit-toggle summary::-webkit-details-marker {
    display: none;
}

.payment-edit-toggle summary svg {
    width: 12px;
    height: 12px;
    vertical-align: -2px;
}

.payment-edit-toggle .payment-review-form {
    margin-top: 12px;
}

.refund-request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.refund-review-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.3fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.refund-review-facts {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: var(--muted);
}

.refund-review-facts strong {
    color: var(--ink);
    font-size: 12px;
}

.refund-reason {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--navy-700);
}

.refund-reason svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    margin-top: 1px;
}

.refund-review-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.refund-review-actions form {
    display: flex;
    margin: 0;
}

.refund-review-actions .button {
    white-space: nowrap;
}

.access-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
    gap: 14px;
}

.access-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 23px;
}

.access-form .button {
    margin-top: 2px;
}

.access-role-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 17px;
    padding-top: 14px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.access-role-note > svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: var(--sky-700);
}

.access-role-note span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.access-role-note strong {
    color: var(--navy-900);
    font-size: 10px;
}

.access-role-note small {
    font-size: 9px;
    line-height: 1.45;
}

.access-count {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.scanner-user-list {
    margin-top: 18px;
}

.scanner-user-row {
    gap: 10px;
}

.scanner-user-row > span:nth-child(2) {
    gap: 0;
}

.scanner-user-row em {
    overflow: hidden;
    margin-top: 3px;
    color: var(--sky-700);
    font-size: 9px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scanner-user-row > form {
    margin-left: auto;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr);
    gap: 14px;
}

.payment-submit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 23px;
}

.payment-submit-launcher {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: space-between;
}

.payment-submit-launcher p {
    max-width: 420px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.payment-submit-dialog .dialog-shell {
    width: min(100%, 650px);
    max-height: min(88vh, 760px);
    overflow-y: auto;
}

.payment-submit-dialog .payment-submit-form {
    margin-top: 18px;
}

.payment-submit-form .form-label {
    margin-bottom: 7px;
}

.payment-secure {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.payment-secure svg {
    width: 13px;
    height: 13px;
}

.payment-amount-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: -3px;
    padding: 12px;
    background: var(--sky-100);
    border: 1px solid var(--sky-200);
    border-radius: 5px;
}

.payment-amount-guide span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.payment-amount-guide small {
    color: var(--muted);
    font-size: 9px;
}

.payment-amount-guide strong {
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
}

.payment-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.file-upload-field {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--muted);
    background: var(--sky-100);
    border: 1px dashed var(--sky-300);
    border-radius: 5px;
    cursor: pointer;
}

.file-upload-field:hover {
    background: var(--sky-200);
}

.file-upload-field > svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: var(--sky-700);
}

.file-upload-field > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.file-upload-field strong {
    overflow: hidden;
    color: var(--navy-900);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-upload-field small {
    font-size: 9px;
}

.file-upload-field input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.payment-side-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
}

.bank-account-card {
    color: var(--white);
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.bank-account-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-account-heading > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bank-account-heading .section-kicker {
    color: var(--sky-500);
}

.bank-account-heading strong {
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
}

.bank-account-icon {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 5px;
}

.bank-account-icon svg {
    width: 18px;
    height: 18px;
}

.bank-account-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    margin: 24px 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.bank-account-details div {
    min-width: 0;
}

.bank-account-details dt {
    color: rgba(255, 255, 255, 0.49);
    font-size: 9px;
}

.bank-account-details dd {
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--white);
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bank-account-remark {
    color: var(--sky-500) !important;
    font-family: 'Space Grotesk', sans-serif;
}

.bank-account-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 19px;
    padding-top: 12px;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 9px;
    line-height: 1.45;
}

.bank-account-warning svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    color: var(--sky-500);
}

.home-bank-account {
    display: grid;
    grid-template-columns: minmax(210px, 0.75fr) minmax(0, 1.7fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 14px;
}

.home-bank-account-top {
    margin-top: 14px;
}

.home-notice-panel {
    margin-top: 14px;
}

.home-bank-account .bank-account-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0 0 0 20px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.home-bank-account-action {
    white-space: nowrap;
}

.installment-card {
    flex: 1;
}

.installment-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.installment-steps li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.installment-steps li > span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 700;
}

.installment-steps li > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.installment-steps strong {
    color: var(--navy-900);
    font-size: 11px;
}

.installment-steps small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.gate-rule-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 19px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.gate-rule-card > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gate-rule-card strong {
    color: var(--navy-900);
    font-size: 10px;
}

.gate-rule-card small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.payment-history-panel {
    margin-top: 14px;
    margin-bottom: 14px;
}

.payment-history-list {
    margin-top: 18px;
}

.history-icon {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    color: var(--sky-700);
    background: var(--sky-100);
    border-radius: 5px;
}

.history-icon svg {
    width: 14px;
    height: 14px;
}

.payment-history-row > strong {
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    white-space: nowrap;
}

.scanner-body {
    min-height: 100vh;
    background: var(--canvas);
}

.scanner-shell {
    width: 100%;
    min-height: 100vh;
}

.scanner-view {
    min-height: 100vh;
}

.scanner-topbar {
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 40px;
    background: var(--navy-900);
}

.scanner-brand,
.scanner-topbar-right,
.scanner-role-badge,
.scanner-exit,
.scanner-card-heading,
.scanner-footer span {
    display: flex;
    align-items: center;
}

.scanner-brand {
    gap: 10px;
}

.scanner-brand .brand-copy strong {
    color: var(--white);
}

.scanner-brand .brand-copy small {
    color: rgba(255, 255, 255, 0.5);
}

.scanner-topbar-right {
    gap: 17px;
}

.scanner-role-badge {
    gap: 6px;
    padding: 7px 10px;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.scanner-role-badge svg {
    width: 14px;
    height: 14px;
}

.scanner-exit {
    gap: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
}

.scanner-exit:hover {
    color: var(--white);
}

.scanner-exit svg {
    width: 14px;
    height: 14px;
}

.scanner-content {
    width: min(100%, 1060px);
    margin: 0 auto;
    padding: 48px 30px 25px;
}

.scanner-heading {
    max-width: 650px;
}

.scanner-heading .section-kicker {
    color: var(--sky-700);
}

.scanner-heading h1 {
    margin: 9px 0 9px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.04;
}

.scanner-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.scanner-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 21px 0 -5px;
    padding: 11px 13px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.scanner-result-success {
    color: var(--navy-900);
    background: var(--sky-200);
    border: 1px solid var(--sky-300);
}

.scanner-result-error {
    color: var(--navy-900);
    background: #eef5f8;
    border: 1px solid var(--line-dark);
}

.scanner-result svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.scanner-result-dialog {
    width: min(calc(100% - 32px), 510px);
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: auto;
    color: var(--ink);
    background: var(--white);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(7, 31, 53, 0.28);
}

.scanner-result-dialog::backdrop {
    background: rgba(7, 31, 53, 0.72);
    backdrop-filter: blur(4px);
}

.scanner-result-shell {
    padding: 28px;
}

.scanner-result-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.scanner-result-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
}

.scanner-result-icon svg {
    width: 29px;
    height: 29px;
    stroke-width: 2.2;
}

.scanner-result-dialog-approved .scanner-result-icon {
    color: #087f6d;
    background: #d9f8ef;
    box-shadow: inset 0 0 0 1px #a8ead9;
}

.scanner-result-dialog-rejected .scanner-result-icon {
    color: #a7372f;
    background: #fff0ed;
    box-shadow: inset 0 0 0 1px #f4c9c2;
}

.scanner-modal-close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--muted);
    background: var(--canvas);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.scanner-modal-close:hover {
    color: var(--navy-900);
    background: var(--sky-100);
    border-color: var(--sky-300);
}

.scanner-modal-close svg {
    width: 17px;
    height: 17px;
}

.scanner-result-copy {
    margin: 21px 0 20px;
}

.scanner-result-dialog-approved .scanner-result-copy .section-kicker {
    color: #087f6d;
}

.scanner-result-dialog-rejected .scanner-result-copy .section-kicker {
    color: #a7372f;
}

.scanner-result-copy h2 {
    margin: 7px 0 8px;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 29px;
    line-height: 1.05;
}

.scanner-result-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.scanner-attendee-panel {
    padding: 16px;
    background: #f7fbfc;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.scanner-attendee-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.scanner-attendee-avatar {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    color: var(--navy-900);
    background: linear-gradient(135deg, var(--sky-300), #baf1df);
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.scanner-attendee-heading > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.scanner-attendee-heading strong {
    overflow: hidden;
    color: var(--navy-900);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scanner-attendee-heading small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scanner-result-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin: 0;
    padding-top: 15px;
}

.scanner-result-details dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.scanner-result-details dd {
    margin: 0;
    color: var(--navy-900);
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.scanner-no-match {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding: 22px 16px;
    background: #fff9ec;
    border: 1px solid #f5dfad;
    border-radius: 10px;
    text-align: center;
}

.scanner-no-match > span {
    display: grid;
    width: 38px;
    height: 38px;
    margin-bottom: 3px;
    place-items: center;
    color: #9a6a1c;
    background: #ffedbd;
    border-radius: 11px;
}

.scanner-no-match svg {
    width: 19px;
    height: 19px;
}

.scanner-no-match strong {
    color: #775823;
    font-size: 12px;
}

.scanner-no-match small {
    max-width: 100%;
    color: #94753f;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.scanner-result-close {
    margin-top: 20px;
}

.scanner-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    gap: 14px;
    margin-top: 31px;
}

.scanner-card {
    min-width: 0;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(11, 47, 77, 0.025);
}

.scanner-card-heading {
    justify-content: space-between;
    gap: 13px;
}

.scanner-card-heading > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.scanner-card h2 {
    margin: 0;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.1;
}

.scanner-lock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.scanner-lock svg {
    width: 13px;
    height: 13px;
}

.qr-reader-frame {
    display: flex;
    min-height: 290px;
    align-items: center;
    justify-content: center;
    margin: 20px 0 14px;
    overflow: hidden;
    background: var(--sky-100);
    border: 1px dashed var(--sky-300);
    border-radius: 6px;
}

.qr-reader-frame video {
    width: 100% !important;
    max-height: 290px;
    object-fit: cover;
}

.scanner-placeholder {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.scanner-placeholder > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 6px;
}

.scanner-placeholder svg {
    width: 27px;
    height: 27px;
}

.scanner-placeholder strong {
    color: var(--navy-900);
    font-size: 11px;
}

.scanner-placeholder small,
.scanner-camera-status {
    font-size: 10px;
}

.scanner-camera-status {
    margin: 10px 0 0;
    color: var(--muted);
    text-align: center;
}

.scanner-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 23px;
}

.scanner-form .button {
    margin-top: 3px;
}

.scanner-gate-rule {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 27px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.scanner-gate-rule > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.scanner-gate-rule strong {
    color: var(--navy-900);
    font-size: 10px;
}

.scanner-gate-rule small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.scanner-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 10px;
}

.scanner-footer span {
    gap: 5px;
}

.scanner-footer svg {
    width: 13px;
    height: 13px;
    color: var(--sky-700);
}

@media (max-width: 1120px) {
    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-content-grid,
    .admin-form-layout,
    .access-layout,
    .payment-layout,
    .scanner-grid {
        grid-template-columns: 1fr;
    }

    .payment-review-card {
        grid-template-columns: 1fr;
    }

    .payment-review-side {
        border-top: 1px dashed var(--sky-300);
        border-left: 0;
    }

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

@media (max-width: 680px) {
    .admin-hero {
        padding: 22px;
    }

    .admin-hero-actions {
        width: 100%;
    }

    .admin-hero-actions .button {
        flex: 1;
    }

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

    .admin-metric,
    .payment-review-stat {
        padding: 12px;
    }

    .admin-metric strong {
        font-size: 17px;
    }

    .admin-tools-grid,
    .payment-review-summary {
        grid-template-columns: 1fr;
    }

    .admin-list-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-form-grid,
    .payment-form-grid,
    .payment-amount-guide,
    .bank-account-details {
        grid-template-columns: 1fr;
    }

    .payment-review-form {
        grid-template-columns: 1fr;
    }

    .payment-review-form-wide {
        grid-column: auto;
    }

    .payment-review-main,
    .payment-review-side {
        padding: 16px;
    }

    .payment-review-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-security .button,
    .admin-form-side > .button {
        width: 100%;
    }

    .scanner-topbar {
        height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 16px;
    }

    .scanner-topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .scanner-content {
        padding: 30px 16px 20px;
    }

    .scanner-heading h1 {
        font-size: 34px;
    }

    .scanner-card {
        padding: 17px;
    }

    .scanner-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .qr-reader-frame {
        min-height: 220px;
    }

    .scanner-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-bank-account {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-bank-account .bank-account-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 15px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-left: 0;
    }

    .home-bank-account-action {
        width: 100%;
    }

    .scanner-result-dialog {
        width: min(calc(100% - 22px), 510px);
    }

    .scanner-result-shell {
        padding: 22px 18px 18px;
    }

    .scanner-result-copy h2 {
        font-size: 26px;
    }

    .scanner-result-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

    .audit-filter-panel {
        margin-bottom: 14px;
        padding: 18px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .audit-filter-form {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .audit-filter-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .audit-filter-heading > span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--navy-900);
        font-size: 12px;
        font-weight: 700;
    }

    .audit-filter-heading svg {
        width: 15px;
        height: 15px;
        color: var(--sky-700);
    }

    .audit-filter-heading small {
        color: var(--muted);
        font-size: 10px;
    }

    .audit-filter-fields {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .audit-filter-field {
        display: flex;
        min-width: 0;
        flex-direction: column;
        gap: 6px;
    }

    .audit-filter-field > span {
        color: var(--navy-700);
        font-size: 10px;
        font-weight: 700;
    }

    .audit-filter-field .admin-text-input,
    .audit-filter-field .select-input {
        width: 100%;
        height: 38px;
    }

    .audit-filter-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }

    .audit-table-panel {
        overflow: hidden;
    }

    .audit-table td:nth-child(4) {
        min-width: 260px;
        white-space: normal;
    }

    .audit-empty-row td {
        padding: 0 !important;
    }

    .audit-empty {
        display: flex;
        min-height: 190px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        color: var(--muted);
        text-align: center;
    }

    .audit-empty svg {
        width: 24px;
        height: 24px;
        margin-bottom: 5px;
        color: var(--sky-700);
    }

    .audit-empty strong {
        color: var(--navy-900);
        font-size: 12px;
    }

    .audit-empty span {
        font-size: 10px;
    }

    .audit-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-top: 17px;
        padding-top: 15px;
        border-top: 1px solid var(--line);
    }

    .audit-pagination-summary {
        color: var(--muted);
        font-size: 10px;
    }

    .audit-pagination-nav {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .audit-page-link,
    .audit-page-ellipsis {
        display: inline-grid;
        min-width: 31px;
        height: 31px;
        place-items: center;
        color: var(--navy-700);
        border-radius: 5px;
        font-size: 10px;
        font-weight: 700;
    }

    .audit-page-link {
        border: 1px solid transparent;
        transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
    }

    .audit-page-link:hover {
        color: var(--navy-900);
        background: var(--sky-100);
        border-color: var(--sky-200);
    }

    .audit-page-link.is-active {
        color: var(--white);
        background: var(--navy-900);
        border-color: var(--navy-900);
    }

    .audit-page-link-icon svg {
        width: 15px;
        height: 15px;
    }

    .audit-page-ellipsis {
        min-width: 20px;
        color: var(--muted);
    }

    @media (max-width: 900px) {
        .audit-filter-fields {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 680px) {
        .audit-filter-heading {
            align-items: flex-start;
            flex-direction: column;
            gap: 5px;
        }

        .audit-filter-fields {
            grid-template-columns: 1fr;
        }

        .audit-filter-actions {
            justify-content: stretch;
        }

        .audit-filter-actions .button {
            flex: 1;
        }

        .audit-pagination {
            align-items: flex-start;
            flex-direction: column;
        }

        .audit-pagination-nav {
            max-width: 100%;
            overflow-x: auto;
        }
    }

.receipt-page {
    --receipt-teal: #159b8a;
    --receipt-gold: #f1ad3e;
}

.receipt-page .page-intro-row,
.receipt-page > .inline-alert {
    width: min(100%, 1040px);
    margin-right: auto;
    margin-left: auto;
}

.receipt-page .page-intro-row {
    align-items: center;
    margin-bottom: 22px;
}

.receipt-page .page-intro h1 {
    margin-bottom: 6px;
    font-size: clamp(28px, 3vw, 39px);
}

.receipt-page .page-intro p {
    font-size: 12px;
}

.receipt-card {
    position: relative;
    width: min(100%, 1040px);
    margin: 0 auto;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(11, 47, 77, 0.12);
}

.receipt-card::before {
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--sky-500), var(--receipt-teal) 54%, var(--receipt-gold));
    content: '';
}

.receipt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 27px 32px;
    color: var(--white);
    background: var(--navy-900);
    background-image: linear-gradient(115deg, rgba(114, 199, 238, 0.12), transparent 48%, rgba(241, 173, 62, 0.1));
}

.receipt-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.receipt-brand .brand-icon {
    color: var(--navy-900);
    background: var(--receipt-gold);
}

.receipt-brand > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.receipt-brand strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    line-height: 1.15;
}

.receipt-brand small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
}

.receipt-stamp {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: #d9fff6;
    background: rgba(21, 155, 138, 0.2);
    border: 1px solid rgba(150, 239, 222, 0.34);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
}

.receipt-stamp svg {
    width: 15px;
    height: 15px;
}

.receipt-amount-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 20px;
    align-items: end;
    padding: 29px 32px 27px;
    background: linear-gradient(135deg, #f1fbfd, #ffffff 62%);
    border-bottom: 1px solid var(--line);
}

.receipt-amount-block small {
    grid-column: 1;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.receipt-amount-block strong {
    grid-column: 1;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1;
}

.receipt-amount-block > span {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    max-width: 220px;
    color: var(--navy-700);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-align: right;
}

.receipt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 20px;
    padding: 15px 32px 19px;
}

.receipt-grid > div {
    min-width: 0;
    padding: 14px 0 15px;
    border-bottom: 1px solid var(--line);
}

.receipt-grid dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.receipt-grid dd {
    margin: 0;
    color: var(--navy-900);
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.receipt-payment-summary {
    margin: 10px 32px 24px;
    padding: 17px 18px 15px;
    background: #f5fbfb;
    border: 1px solid #d5efeb;
    border-radius: 10px;
}

.receipt-payment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.receipt-payment-heading span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--navy-800);
    font-size: 11px;
    font-weight: 700;
}

.receipt-payment-heading svg {
    width: 15px;
    height: 15px;
    color: var(--receipt-teal);
}

.receipt-payment-heading strong {
    color: var(--receipt-teal);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 19px;
}

.receipt-payment-summary .progress-track {
    height: 9px;
    background: #dcefed;
}

.receipt-payment-summary .progress-track span {
    background: linear-gradient(90deg, var(--receipt-teal), #58c8ae);
}

.receipt-payment-summary small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 10px;
}

.receipt-footer {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 32px 30px;
    padding: 13px 15px;
    color: #775823;
    background: #fff9ec;
    border: 1px solid #f5dfad;
    border-radius: 8px;
    font-size: 10px;
    line-height: 1.55;
}

.receipt-footer svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--receipt-gold);
}

.receipt-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

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

@media (max-width: 680px) {
    .receipt-page .page-intro-row {
        align-items: flex-start;
    }

    .receipt-card-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px 20px;
    }

    .receipt-amount-block {
        grid-template-columns: 1fr;
        padding: 25px 20px 23px;
    }

    .receipt-amount-block > span {
        grid-column: 1;
        grid-row: auto;
        max-width: none;
        text-align: left;
    }

    .receipt-grid {
        grid-template-columns: 1fr;
        padding: 7px 20px 14px;
    }

    .receipt-grid > div {
        padding: 13px 0;
    }

    .receipt-payment-summary {
        margin-right: 20px;
        margin-left: 20px;
    }

    .receipt-footer {
        margin-right: 20px;
        margin-left: 20px;
    }
}

@media print {
    @page {
        margin: 14mm;
        size: A4;
    }

    body {
        background: var(--white);
    }

    .sidebar,
    .topbar,
    .receipt-page .page-intro-row,
    .receipt-actions,
    .site-alert-dialog,
    .toast {
        display: none !important;
    }

    .app-main {
        width: 100% !important;
        margin: 0 !important;
    }

    .dashboard-content {
        width: 100% !important;
        padding: 0 !important;
    }

    .receipt-card {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    [data-reveal] {
        animation: none !important;
    }
}

.inline-alert-warning {
    color: #775823;
    background: #fff9ec;
    border-color: #f5dfad;
}

.inline-alert-warning svg {
    color: #b7791f;
}

.reports-page .page-intro-row {
    align-items: center;
}

.report-export-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.report-export-actions .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.report-summary-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.report-summary-card > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.report-summary-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-300);
    border-radius: 7px;
}

.report-summary-icon-soft {
    color: var(--sky-700);
    background: var(--sky-100);
}

.report-summary-icon-warn {
    color: #946b25;
    background: #fff1c7;
}

.report-summary-icon svg {
    width: 17px;
    height: 17px;
}

.report-summary-card small,
.report-summary-card em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
}

.report-summary-card strong {
    overflow: hidden;
    color: var(--navy-900);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-filter-panel {
    margin-bottom: 14px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.report-filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.report-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.report-filter-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--navy-900);
    font-size: 12px;
    font-weight: 700;
}

.report-filter-heading svg {
    width: 15px;
    height: 15px;
    color: var(--sky-700);
}

.report-filter-heading small {
    color: var(--muted);
    font-size: 10px;
}

.report-filter-fields {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr));
    gap: 10px;
}

.report-filter-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.report-filter-field > span {
    color: var(--navy-700);
    font-size: 10px;
    font-weight: 700;
}

.report-filter-field .admin-text-input,
.report-filter-field .select-input {
    width: 100%;
    height: 38px;
}

.report-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.report-reminder-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: linear-gradient(110deg, #eaf7fd, #f2fbf8);
    border: 1px solid var(--sky-200);
    border-radius: 8px;
}

.report-reminder-strip > div {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.report-reminder-strip > div > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.report-reminder-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-500);
    border-radius: 7px;
}

.report-reminder-icon svg {
    width: 17px;
    height: 17px;
}

.report-reminder-strip strong {
    color: var(--navy-900);
    font-size: 11px;
}

.report-reminder-strip small {
    color: var(--navy-700);
    font-size: 10px;
}

.report-table-panel {
    overflow: hidden;
    padding: 17px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.report-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
}

.report-table th {
    padding: 0 10px 11px;
    color: #91a6b1;
    border-bottom: 1px solid var(--line);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.report-table th:first-child,
.report-table td:first-child {
    padding-left: 0;
}

.report-table th:last-child,
.report-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.report-table td {
    padding: 14px 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    vertical-align: top;
}

.report-table tr:last-child td {
    border-bottom: 0;
}

.report-table td > strong,
.report-table td > small {
    display: block;
}

.report-table td > strong {
    color: var(--navy-900);
    font-size: 11px;
}

.report-table td > small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.report-user-cell {
    display: flex;
    min-width: 205px;
    align-items: flex-start;
    gap: 8px;
}

.report-user-cell > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.report-user-cell strong,
.report-user-cell small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-user-cell strong {
    color: var(--navy-900);
    font-size: 11px;
}

.report-user-cell small {
    color: var(--muted);
    font-size: 9px;
}

.report-progress-cell {
    min-width: 150px;
}

.report-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.report-progress-top strong {
    color: var(--navy-900);
    font-size: 10px;
}

.report-progress-top span {
    color: var(--sky-700);
    font-size: 10px;
    font-weight: 700;
}

.report-progress-cell .progress-track {
    height: 6px;
}

.report-progress-cell .progress-track span {
    background: linear-gradient(90deg, var(--sky-500), #15b79e);
}

.report-progress-cell small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 9px;
}

.report-history {
    position: relative;
    min-width: 185px;
}

.report-history summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--navy-700);
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    list-style: none;
}

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

.report-history summary::after {
    content: '+';
    color: var(--sky-700);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
}

.report-history[open] summary::after {
    content: '-';
}

.report-history-count {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--navy-900);
    background: var(--sky-100);
    border-radius: 6px;
    font-size: 9px;
}

.report-history-list {
    display: flex;
    width: 290px;
    max-width: min(290px, 70vw);
    flex-direction: column;
    gap: 8px;
    margin-top: 9px;
    padding: 10px;
    background: #f8fbfc;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.report-history-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.report-history-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.report-history-item > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.report-history-item > span:last-child {
    align-items: flex-end;
    text-align: right;
}

.report-history-item strong {
    color: var(--navy-900);
    font-size: 10px;
}

.report-history-item small,
.report-history-item a {
    color: var(--muted);
    font-size: 9px;
}

.report-history-item a {
    color: var(--sky-700);
    font-weight: 700;
}

.report-history-empty {
    color: var(--muted);
    font-size: 9px;
}

.report-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.report-mail-action {
    color: var(--sky-700);
}

.report-empty-row td {
    padding: 0 !important;
}

.report-empty {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    text-align: center;
}

.report-empty svg {
    width: 25px;
    height: 25px;
    margin-bottom: 4px;
    color: var(--sky-700);
}

.report-empty strong {
    color: var(--navy-900);
    font-size: 12px;
}

.report-empty span {
    font-size: 10px;
}

@media (max-width: 1120px) {
    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 680px) {
    .reports-page .page-intro-row {
        align-items: flex-start;
    }

    .report-export-actions {
        width: 100%;
        justify-content: stretch;
    }

    .report-export-actions .button {
        flex: 1;
    }

    .report-summary-grid,
    .report-filter-fields {
        grid-template-columns: 1fr;
    }

    .report-filter-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .report-filter-actions {
        justify-content: stretch;
    }

    .report-filter-actions .button {
        flex: 1;
    }

    .report-reminder-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-reminder-strip form,
    .report-reminder-strip .button {
        width: 100%;
    }

    .admin-table-paginator {
        align-items: flex-start;
        flex-direction: column;
    }
}