h1:focus {
    outline: none;
}

html,
body {
    -webkit-touch-callout: none;
}

img,
video,
canvas,
svg {
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.login-shell {
    min-height: calc(100vh - 96px);
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.login-panel {
    width: min(100%, 420px);
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    padding: 2rem;
    background: #ffffff;
}

.login-logo {
    margin-inline: auto;
}

.nav-logo-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.home-dashboard-page {
    max-width: 1100px;
    margin-inline: auto;
}

.home-dashboard-grid {
    align-items: stretch;
}

.home-dashboard-card {
    min-height: 220px;
    padding: 28px 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(18, 38, 63, 0.12);
}

.home-dashboard-card-icon {
    font-size: 42px;
}

.home-dashboard-card-school {
    background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
    border-color: rgba(72, 136, 218, 0.24);
}

.home-dashboard-card-event {
    background: linear-gradient(180deg, #f2fbf7 0%, #ffffff 100%);
    border-color: rgba(42, 140, 95, 0.24);
}

.home-dashboard-card-kindergarten {
    background: linear-gradient(180deg, #fff9ef 0%, #ffffff 100%);
    border-color: rgba(205, 145, 50, 0.24);
}

.home-dashboard-card-disabled {
    cursor: default;
}

.home-dashboard-card-disabled:hover {
    transform: none;
    box-shadow: none;
}

.login-subtitle {
    color: #5f6f82;
    margin-top: -0.5rem;
}

.login-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.login-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fbff;
    color: #5f6f82;
}

.login-step strong,
.login-step small {
    display: block;
}

.login-step strong {
    color: #243447;
    font-size: 0.92rem;
}

.login-step small {
    margin-top: 0.2rem;
    font-size: 0.78rem;
}

.login-step-badge {
    width: 1.85rem;
    height: 1.85rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #e4edf8;
    color: #355d8f;
    font-weight: 700;
}

.login-step-active {
    border-color: #4888da;
    background: #eef5ff;
    box-shadow: 0 0 0 1px rgba(72, 136, 218, 0.08);
}

.login-step-active .login-step-badge,
.login-step-complete .login-step-badge {
    background: #4888da;
    color: #ffffff;
}

.login-step-complete {
    background: #f4f8fc;
}

.event-cart-badge {
    display: inline-flex;
    align-items: center;
}

.event-cart-appbar {
    gap: 10px;
}

.event-cart-appbar-copy {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    line-height: 1;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.event-cart-appbar-copy span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.event-cart-badge.mud-badge-root {
    padding-top: 6px;
}

.event-cart-badge.mud-badge-root .mud-badge,
.event-cart-badge.mud-badge-root .mud-badge-content,
.event-cart-badge.mud-badge-root .mud-badge.mud-badge-top.mud-badge-right.mud-badge-overlap {
    top: 8px !important;
    right: 2px !important;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-field {
    display: grid;
    gap: 0.4rem;
    color: #243447;
    font-size: 0.875rem;
    font-weight: 600;
}

.login-field input {
    min-height: 3.25rem;
    width: 100%;
    border: 1px solid #b8c5d6;
    border-radius: 4px;
    padding: 0.75rem 0.9rem;
    color: #182536;
    background: #fff;
    font: inherit;
    font-weight: 400;
}

.login-field input:focus {
    border-color: #4888da;
    box-shadow: 0 0 0 3px rgba(72, 136, 218, 0.18);
    outline: none;
}

.login-step-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fbff;
}

.login-step-summary-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #5f6f82;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-step-summary-value {
    color: #243447;
    overflow-wrap: anywhere;
}

.login-helper-text {
    margin-top: -0.4rem;
    color: #5f6f82;
}

.login-action-row {
    align-items: stretch;
}

.login-action-row .mud-button-root {
    flex: 1 1 0;
}

input,
textarea,
select,
.mud-input,
.mud-input-root,
.mud-input-slot,
.mud-input-control,
.mud-input-adornment,
.mud-picker,
.mud-picker input,
.mud-picker .mud-input,
.mud-picker .mud-input-slot,
.mud-select,
.mud-select-input,
.mud-popover .mud-list-item {
    cursor: pointer !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.event-files-page {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.event-files-header {
    gap: 16px;
}

.event-files-grid {
    flex: 1 1 auto;
    align-items: stretch;
}

.event-files-grid-item {
    display: flex;
}

.event-files-panel,
.event-files-preview {
    min-height: 620px;
    height: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.event-events-controls {
    flex: 0 0 auto;
}

.event-events-title-row {
    margin-bottom: 8px;
}

.event-events-controls .mud-input-control {
    margin-top: 0;
    margin-bottom: 8px;
}

.event-events-divider {
    margin: 0 0 12px;
}

.event-files-panel-body {
    flex: 1 1 auto;
    min-height: 0;
}

.event-events-scroll,
.event-items-scroll {
    min-height: 0;
    overflow: auto;
}

.event-files-table-scroll {
    min-height: 0;
    overflow: auto;
}

.event-upload-progress {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 12px;
}

.event-upload-progress-copy {
    margin-bottom: 4px;
}

.event-events-panel .event-events-scroll {
    flex: 1 1 auto;
}

.event-files-selected {
    background: rgba(72, 136, 218, 0.12);
    border-radius: 6px;
}

.event-folder-header {
    gap: 12px;
}

.event-folder-actions {
    max-width: 100%;
    margin-left: auto;
}

.event-folder-input {
    flex: 0 1 180px;
    min-width: 0;
    width: 180px;
}

.event-inline-rename-input {
    flex: 0 1 220px;
    min-width: 160px;
    width: 220px;
}

.event-file-breadcrumbs {
    padding: 0;
    flex-wrap: wrap;
    row-gap: 6px;
    max-width: 100%;
}

.event-file-breadcrumb-button {
    min-width: 0;
    padding: 0 4px;
    text-transform: none;
    border-radius: 999px;
    opacity: 1;
    max-width: 100%;
    white-space: normal;
}

.event-file-breadcrumb-button .mud-button-label {
    white-space: normal;
    text-align: left;
    line-height: 1.2;
}

.event-file-breadcrumb-button-active {
    background: rgba(72, 136, 218, 0.16);
    font-weight: 600;
}

.event-file-breadcrumb-button-inactive {
    opacity: 0.58;
}

.event-file-table .mud-table-cell {
    vertical-align: middle;
}

.event-file-table {
    margin-top: 0;
}

.upload-review-grid-scroll {
    max-height: 640px;
    overflow: auto;
}

.upload-review-grade-group {
    background: rgba(72, 136, 218, 0.08);
    font-weight: 600;
}

.grouped-package-preview {
    background: rgba(0, 0, 0, 0.02);
}

.grouped-package-row {
    background: #fff;
}

.event-file-name-button {
    max-width: 100%;
    justify-content: flex-start;
    text-transform: none;
}

.event-file-name-button .mud-button-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-file-display {
    min-height: 520px;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff;
}

.event-file-preview-image {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.event-file-preview-frame {
    display: block;
    width: 100%;
    min-height: 520px;
    border: 0;
}

.event-file-preview-empty {
    min-height: 520px;
    padding: 24px;
}

.client-events-page {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-events-heading {
    margin-bottom: 0;
}

.client-event-search {
    max-width: 720px;
    display: block;
}

.client-event-search,
.client-event-search.mud-input-control {
    margin-top: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.client-event-search .mud-input-control-helper-container {
    display: none;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.client-event-results {
    margin-top: 0;
}

.client-event-grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.client-event-card {
    height: 100%;
    min-height: 180px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.client-event-card:hover {
    transform: translateY(-2px);
    border-color: rgba(72, 136, 218, 0.55);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.client-event-card-icon {
    margin-bottom: 16px;
}

.client-event-card-title,
.event-cart-card-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-event-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 16px;
}

.event-viewer-page {
    min-height: 0;
}

.event-cart-page {
    min-height: calc(100vh - 120px);
}

.event-viewer-header,
.event-cart-header {
    gap: 16px;
}

.event-viewer-back {
    margin-left: -8px;
    text-transform: none;
}

.event-viewer-price-summary {
    margin-top: 10px;
}

.event-sport-card {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.event-sport-card:hover {
    background: #f1f6fd;
    border-color: rgba(72, 136, 218, 0.5);
}

.event-sport-card-selected {
    background: rgba(72, 136, 218, 0.12);
    border-color: rgba(72, 136, 218, 0.65);
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.07);
}

.event-sport-card-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.event-sport-card .mud-typography {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.uploaded-picture-school-copy {
    min-width: 0;
}

.uploaded-picture-school-copy .mud-typography {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-age-chipset {
    gap: 8px;
}

.event-viewer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.event-viewer-photo-card {
    overflow: hidden;
    border-radius: 8px;
}

.event-viewer-photo-card-in-cart {
    border-color: #d64545 !important;
    box-shadow: 0 0 0 1px rgba(214, 69, 69, 0.14);
}

.event-viewer-photo-button {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    display: block;
    background: #f7fafc;
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

.event-viewer-photo-button-in-cart {
    background: #fff2f2;
}

.event-viewer-photo-button-loading {
    background: linear-gradient(110deg, #eef3f8 8%, #f8fbfd 18%, #eef3f8 33%);
    background-size: 200% 100%;
    animation: event-viewer-skeleton 1.2s linear infinite;
}

.event-viewer-photo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: opacity 180ms ease;
}

.event-viewer-photo-image-loaded {
    opacity: 1;
}

.event-viewer-photo-actions {
    min-height: 56px;
    padding: 8px;
}

.event-viewer-load-more-sentinel {
    width: 100%;
    height: 1px;
}

.uploaded-picture-card-copy {
    min-height: 76px;
    padding: 10px 12px;
}

.uploaded-picture-card-copy .mud-typography {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-preview-modal {
    width: min(97vw, 1600px);
    max-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    border-radius: 18px;
    overflow: hidden;
}

.event-preview-modal .mud-dialog-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0 !important;
}

.event-preview-modal .mud-dialog-actions {
    flex: 0 0 auto;
    padding: 10px 0 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #f8fafc);
}

.event-preview-dialog {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    display: flex;
    overflow: hidden;
    padding: 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.event-preview-dialog-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.event-preview-dialog-arrow-left {
    left: 14px;
}

.event-preview-dialog-arrow-right {
    right: 14px;
}

.event-preview-modal .mud-dialog-title {
    width: 100%;
    text-align: center;
    padding-right: 48px;
    padding-left: 48px;
}

.event-preview-dialog-frame {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-height: min(72dvh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-preview-dialog-mobile-actions {
    display: none;
}

.event-preview-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.event-preview-dialog-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 14px;
    justify-items: center;
}

.event-preview-dialog-cart {
    justify-self: center;
}

.event-cart-card {
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.event-cart-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: #f7fafc;
}

.event-cart-summary {
    position: sticky;
    top: 112px;
    border-radius: 8px;
}

.photo-order-options {
    border-radius: 8px;
}

.photo-order-options-mobile {
    display: none;
}

.photo-order-product-card {
    padding: 14px;
    border-radius: 8px;
}

.photo-order-product-card + .photo-order-product-card {
    margin-top: 12px;
}

.photo-order-product-header,
.photo-order-mobile-total {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.photo-order-product-header .mud-typography:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.photo-order-product-name {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.photo-order-mobile-options {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.photo-order-mobile-option {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: 12px;
}

.photo-order-mobile-option .mud-input-control {
    margin: 0;
}

.photo-order-quantity {
    width: 96px;
}

.photo-order-mobile-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    align-items: center;
}

.service-sample-modal {
    width: min(94vw, 900px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
}

.service-sample-modal .mud-dialog-content {
    min-height: 0;
    overflow: hidden;
    padding: 12px 16px;
}

.service-sample-dialog {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7fafc;
    border-radius: 8px;
}

.service-sample-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(78dvh, calc(100dvh - 120px));
    object-fit: contain;
}

@keyframes event-viewer-skeleton {
    to {
        background-position-x: -200%;
    }
}

@media (max-width: 960px) {
    .event-files-page,
    .event-files-grid,
    .event-files-grid-item,
    .event-files-panel,
    .event-files-preview {
        min-height: auto;
        height: auto;
    }

    .event-files-panel,
    .event-files-preview {
        overflow: visible;
    }

    .event-files-panel-body,
    .event-events-scroll,
    .event-items-scroll,
    .event-files-table-scroll {
        min-height: auto;
        overflow: visible;
    }

    .event-folder-input {
        flex: 1 1 auto;
        width: auto;
    }

    .event-folder-actions {
        width: 100%;
        margin-left: 0;
    }

    .event-viewer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .client-event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-viewer-header,
    .event-cart-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

}

@media (max-width: 720px) {
    .event-preview-dialog-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-preview-dialog {
        height: auto;
        max-height: none;
        padding: 4px;
        border-radius: 0;
    }

    .event-preview-dialog-frame {
        max-height: min(56dvh, 460px);
        margin-bottom: 54px;
    }

    .event-preview-dialog-arrow {
        display: none;
    }

    .event-preview-modal {
        width: 100vw;
        max-width: 100vw;
        max-height: 100dvh;
        border-radius: 0;
        margin: 0 !important;
    }

    .event-preview-modal .mud-dialog-content {
        padding: 4px 4px 0 !important;
    }

    .event-preview-modal .mud-dialog-actions {
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    }

    .event-preview-dialog-frame {
        padding: 0 4px;
    }

    .event-preview-dialog-mobile-actions {
        position: absolute;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 8px 10px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(10px);
    }

    .event-preview-dialog-mobile-actions .mud-stack {
        flex: 0 0 auto;
    }
}

@media (max-width: 600px) {
    .login-panel {
        padding: 1.5rem;
    }

    .login-steps {
        grid-template-columns: 1fr;
    }

    .login-action-row {
        flex-direction: column;
    }

    .login-step-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .photo-order-options {
        padding: 16px !important;
    }

    .photo-order-options-table {
        display: none;
    }

    .photo-order-options-mobile {
        display: block;
    }

    .service-sample-dialog {
        overflow: auto;
    }

    .event-sport-filter-grid {
        align-items: center;
    }

    .event-sport-filter-grid.mud-grid {
        margin: -4px;
        width: calc(100% + 8px);
    }

    .event-sport-filter-item.mud-grid-item {
        flex: 0 0 auto;
        max-width: none;
        padding: 4px;
        width: auto;
    }

    .event-viewer-page .event-sport-card {
        min-height: 40px;
        display: inline-grid;
        grid-template-columns: auto minmax(0, auto);
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        box-shadow: none;
    }

    .event-viewer-page .event-sport-card-selected {
        box-shadow: none;
    }

    .event-viewer-page .event-sport-card-icon {
        width: 20px;
        height: 20px;
    }

    .event-viewer-page .event-sport-card .mud-typography {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    .event-viewer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .client-event-card {
        min-height: 160px;
    }

    .client-event-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

}
