:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #647086;
    --line: #d9e0ec;
    --primary: #1167d8;
    --primary-dark: #0b4da8;
    --accent: #18a999;
    --shadow: 0 24px 60px rgba(23, 32, 51, 0.14);
}

* { box-sizing: border-box; }

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

.public-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.kiosk-shell,
.download-shell {
    width: min(1100px, 100%);
}

.welcome-panel,
.result-panel {
    min-height: min(680px, calc(100vh - 64px));
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 22px;
    padding: clamp(32px, 7vw, 80px);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.event-welcome {
    position: relative;
}

.event-logo-bar {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    pointer-events: none;
}

.event-logo {
    display: grid;
    place-items: center;
    max-width: min(340px, 70vw);
    max-height: 120px;
}

.event-logo--event {
    margin-right: auto;
}

.event-logo--client {
    max-width: min(140px, 24vw);
    margin-left: auto;
}

.event-logo--positioned {
    position: absolute;
    top: calc(var(--logo-y, 12) * 1%);
    left: calc(var(--logo-x, 81) * 1%);
    width: calc(var(--logo-size, 15) * 1%);
    max-width: none;
    max-height: none;
    margin: 0;
    z-index: 4;
}

.event-logo--positioned.event-logo--event {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--event-logo-radius, 0%);
}

.event-page-logo {
    position: absolute;
    top: clamp(24px, 3vw, 42px);
    right: clamp(24px, 3vw, 42px);
    width: clamp(72px, 6vw, 92px);
    height: clamp(72px, 6vw, 92px);
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    z-index: 4;
}

.event-date {
    color: #ffffff;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82), 0 0 2px rgba(0, 0, 0, 0.88);
    white-space: nowrap;
}

.event-date--positioned {
    position: absolute;
    top: calc(var(--logo-y, 82) * 1%);
    left: calc(var(--logo-x, 4) * 1%);
    z-index: 3;
    font-size: clamp(18px, calc(var(--logo-size, 5.5) * 3px), 72px);
}

.event-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.event-logo--positioned img {
    width: 100%;
    max-height: none;
}

.event-page-logo img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.event-logo--positioned.event-logo--event img {
    height: 100%;
    object-fit: contain;
    transform: translate(var(--event-logo-offset-x, 0%), var(--event-logo-offset-y, 0%)) scale(var(--event-logo-zoom-scale, 1));
    transform-origin: center;
}

.event-logo--client img {
    max-height: 90px;
}

.event-logo--white img {
    filter: brightness(0) invert(1);
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 8vw, 92px);
    line-height: 1.02;
}

.lead {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.35;
}

.primary-action {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    min-width: min(420px, 100%);
    min-height: 86px;
    padding: 0 34px;
    color: #ffffff;
    background: var(--primary);
    border-radius: 8px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(17, 103, 216, 0.28);
}

.primary-action:hover,
.primary-action:focus-visible {
    background: var(--primary-dark);
}

.public-start-action {
    min-width: min(560px, 100%);
    min-height: 116px;
    padding: 0 46px;
    font-size: 42px;
}

.public-start-carousel-panel {
    width: min(980px, 100%);
    margin-top: 8px;
    padding: 22px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.12);
}

.public-start-carousel {
    --carousel-slide-width: 230px;
    --carousel-slide-height: 230px;
    --carousel-offset: 230px;
    --carousel-far-offset: 400px;
    position: relative;
    height: var(--carousel-slide-height);
    overflow: hidden;
    perspective: 1100px;
}

.public-start-carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: var(--carousel-slide-width);
    height: var(--carousel-slide-height);
    margin: 0;
    overflow: hidden;
    opacity: 0;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(23, 32, 51, 0.22);
    transform: translate(-50%, -50%) scale(0.72);
    transition: transform 700ms ease, opacity 700ms ease, filter 700ms ease;
    will-change: transform, opacity;
}

.public-start-carousel:not(.is-ready) .public-start-carousel-item:first-child,
.public-start-carousel-item.is-active {
    z-index: 5;
    opacity: 1;
    filter: none;
    transform: translate(-50%, -50%) translateX(0) rotateY(0deg) scale(1);
}

.public-start-carousel-item.is-prev {
    z-index: 4;
    opacity: 0.72;
    filter: saturate(0.86) brightness(0.88);
    transform: translate(-50%, -50%) translateX(calc(var(--carousel-offset) * -1)) rotateY(28deg) scale(0.82);
}

.public-start-carousel-item.is-next {
    z-index: 4;
    opacity: 0.72;
    filter: saturate(0.86) brightness(0.88);
    transform: translate(-50%, -50%) translateX(var(--carousel-offset)) rotateY(-28deg) scale(0.82);
}

.public-start-carousel-item.is-far-prev {
    z-index: 3;
    opacity: 0.28;
    filter: saturate(0.72) brightness(0.78);
    transform: translate(-50%, -50%) translateX(calc(var(--carousel-far-offset) * -1)) rotateY(40deg) scale(0.62);
}

.public-start-carousel-item.is-far-next {
    z-index: 3;
    opacity: 0.28;
    filter: saturate(0.72) brightness(0.78);
    transform: translate(-50%, -50%) translateX(var(--carousel-far-offset)) rotateY(-40deg) scale(0.62);
}

.public-start-carousel-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 24px;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.token-preview {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    word-break: break-all;
}

.public-note {
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 700;
}

.template-choice-panel {
    align-content: start;
    width: min(1320px, 100%);
}

.format-choice-panel h1 {
    font-size: clamp(34px, 4.5vw, 58px);
}

.templates-choice-panel h1 {
    font-size: clamp(30px, 3.8vw, 48px);
}

.public-template-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.public-background-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    min-height: 0;
}

.public-choice-section {
    width: 100%;
    display: grid;
    gap: 18px;
}

.public-choice-carousel {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}

.public-choice-carousel.has-choice-pages {
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    gap: 18px;
}

.public-choice-carousel.has-choice-pages > .public-choice-section {
    grid-column: 2;
    grid-row: 1;
}

.public-choice-carousel.has-choice-pages > .public-choice-arrow--prev {
    grid-column: 1;
    grid-row: 1;
}

.public-choice-carousel.has-choice-pages > .public-choice-arrow--next {
    grid-column: 3;
    grid-row: 1;
}

.public-choice-arrow {
    width: 88px;
    height: 130px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.public-choice-arrow::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 42px solid transparent;
    border-bottom: 42px solid transparent;
}

.public-choice-arrow--prev::before {
    border-right: 52px solid var(--primary);
}

.public-choice-arrow--next::before {
    border-left: 52px solid var(--primary);
}

.public-choice-arrow:hover::before,
.public-choice-arrow:focus-visible::before {
    filter: brightness(0.86);
}

.public-choice-arrow:focus-visible {
    outline: 3px solid rgba(17, 103, 216, 0.26);
    outline-offset: 4px;
}

.public-format-section {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.12);
}

.public-background-section {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 60vh;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 32, 51, 0.12);
}

.public-format-section {
    display: grid;
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
}

.public-format-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: center;
    justify-items: center;
}

.public-format-card {
    width: min(360px, 82%);
    min-height: min(360px, 82%);
    display: grid;
    gap: 18px;
    align-content: center;
    justify-items: center;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.public-format-card:hover,
.public-format-card:focus-visible {
    box-shadow: none;
    transform: translateY(-2px);
}

.public-format-card:focus-visible {
    outline: 0;
}

.public-format-shape {
    position: relative;
    display: block;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(213, 235, 244, 0.72)),
        #f8fbff;
    border: 10px solid #12322f;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.58),
        0 18px 34px rgba(18, 50, 47, 0.18);
}

.public-format-shape::before {
    content: "";
    position: absolute;
    z-index: 2;
    background: #050808;
}

.public-format-shape::after {
    content: "";
    position: absolute;
    z-index: 1;
    background: rgba(255, 255, 255, 0.54);
}

.public-format-shape--portrait {
    width: min(176px, 48%);
    aspect-ratio: 9 / 16;
    border-radius: 30px;
}

.public-format-shape--portrait::before {
    top: -2px;
    left: 50%;
    width: 48%;
    height: 20px;
    border-radius: 0 0 16px 16px;
    transform: translateX(-50%);
}

.public-format-shape--portrait::after {
    top: 17px;
    right: -7px;
    width: 4px;
    height: 36px;
    border-radius: 999px;
}

.public-format-shape--wide {
    width: min(308px, 74%);
    aspect-ratio: 16 / 9;
    border-radius: 24px;
}

.public-format-shape--wide::before {
    top: 50%;
    left: -2px;
    width: 22px;
    height: 42%;
    border-radius: 0 14px 14px 0;
    transform: translateY(-50%);
}

.public-format-shape--wide::after {
    right: 18px;
    bottom: -7px;
    width: 38px;
    height: 4px;
    border-radius: 999px;
}

.public-format-card strong {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1;
}

.public-background-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.public-background-heading .secondary-action {
    min-height: 44px;
    padding: 0 18px;
    font-size: 18px;
}

.public-background-grid .public-template-card {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.public-background-grid .public-template-card[hidden] {
    display: none;
}

.public-background-grid .public-template-thumb {
    min-height: 0;
    background: #fff;
}

.public-background-grid .public-template-thumb--9-16 {
    width: auto;
    height: 100%;
    aspect-ratio: 9 / 16;
    justify-self: center;
}

.public-background-grid .public-template-thumb--16-9 {
    width: 100%;
    height: auto;
    align-self: center;
    aspect-ratio: 16 / 9;
}

.public-background-grid .public-template-thumb img {
    object-fit: contain;
}

.public-background-grid .public-no-background-thumb {
    display: grid;
    gap: 12px;
    align-content: center;
    justify-items: center;
    padding: 16px;
    color: #7f1d1d;
    text-align: center;
    text-decoration: none;
    background: #fff7f7;
    border: 3px solid #dc2626;
    box-shadow: inset 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.public-background-grid .public-no-background-thumb:hover,
.public-background-grid .public-no-background-thumb:focus-visible {
    background: #fff1f1;
    box-shadow: inset 0 0 0 4px rgba(220, 38, 38, 0.14), 0 14px 28px rgba(127, 29, 29, 0.16);
}

.public-no-background-x {
    color: #dc2626;
    font-size: 76px;
    font-weight: 900;
    line-height: 0.8;
}

.public-no-background-label {
    max-width: 100%;
    color: #7f1d1d;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.public-no-background-thumb.public-template-thumb--9-16 {
    gap: 10px;
    padding: 12px;
}

.public-no-background-thumb.public-template-thumb--9-16 .public-no-background-x {
    font-size: 64px;
}

.public-no-background-thumb.public-template-thumb--9-16 .public-no-background-label {
    font-size: 14px;
}

.public-frame-grid .public-no-frame-thumb {
    display: grid;
    gap: 12px;
    align-content: center;
    justify-items: center;
    padding: 16px;
    color: #7f1d1d;
    text-align: center;
    text-decoration: none;
    background: #fff7f7;
    border: 3px solid #dc2626;
    box-shadow: inset 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.public-frame-grid .public-no-frame-thumb:hover,
.public-frame-grid .public-no-frame-thumb:focus-visible {
    background: #fff1f1;
    box-shadow: inset 0 0 0 4px rgba(220, 38, 38, 0.14), 0 14px 28px rgba(127, 29, 29, 0.16);
}

.public-no-frame-x {
    color: #dc2626;
    font-size: 76px;
    font-weight: 900;
    line-height: 0.8;
}

.public-no-frame-label {
    max-width: 100%;
    color: #7f1d1d;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.public-no-frame-thumb.public-template-thumb--9-16 {
    gap: 10px;
    padding: 12px;
}

.public-no-frame-thumb.public-template-thumb--9-16 .public-no-frame-x {
    font-size: 64px;
}

.public-no-frame-thumb.public-template-thumb--9-16 .public-no-frame-label {
    font-size: 14px;
}

.public-background-grid .public-template-card-body {
    gap: 0;
    justify-items: center;
}

.public-background-grid .public-template-card-body strong {
    font-size: 20px;
}

.public-background-grid .template-select-action {
    min-height: 44px;
    font-size: 18px;
}

.public-choice-section h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.public-template-card {
    display: grid;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.10);
}

.public-template-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(28, 105, 214, 0.14), 0 16px 34px rgba(23, 32, 51, 0.10);
}

.public-template-thumb {
    display: block;
    overflow: hidden;
    background: #111827;
    border-radius: 8px;
    aspect-ratio: 9 / 16;
}

.public-template-thumb--16-9 {
    aspect-ratio: 16 / 9;
}

.public-template-thumb--frame {
    background:
        linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.12) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.12) 75%),
        #111827;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.public-template-thumb img,
.selected-template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-template-card-body {
    display: grid;
    gap: 12px;
}

.public-template-card-body strong {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.15;
}

.template-select-action {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

[data-hand-select-button] {
    position: relative;
    overflow: hidden;
}

[data-camera-hand-start] {
    position: relative;
    overflow: hidden;
}

[data-hand-select-button].is-hand-hovered,
[data-camera-hand-start].is-hand-hovered,
.camera-photo-approval-actions button.is-hand-hovered {
    outline: 5px solid rgba(24, 169, 153, 0.38);
    outline-offset: 4px;
}

[data-hand-select-button].is-hand-hovered {
    background: var(--accent);
}

.camera-photo-approval-actions button.is-hand-hovered {
    border-color: rgba(24, 169, 153, 0.72);
    box-shadow:
        0 18px 44px rgba(24, 169, 153, 0.28),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.hand-selection-video {
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hand-selection-pointer {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 30;
    width: 76px;
    height: 76px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-120px, -120px);
    transition: opacity 120ms ease;
}

.hand-selection-pointer::before {
    content: "";
    position: absolute;
    left: -50%;
    top: -50%;
    width: 100%;
    height: 100%;
    border: 5px solid rgba(24, 169, 153, 0.95);
    border-radius: 999px;
    background: rgba(24, 169, 153, 0.16);
    box-shadow: 0 12px 30px rgba(16, 24, 39, 0.24);
}

.hand-selection-pointer::after {
    content: "";
    position: absolute;
    left: -8px;
    top: -8px;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid var(--accent);
    border-radius: 999px;
}

.hand-selection-pointer.is-visible {
    opacity: 1;
}

.hand-selection-setup {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    gap: 12px;
    padding: 32px;
    color: #fff;
    background: rgba(16, 24, 39, 0.86);
    text-align: center;
}

.hand-selection-setup strong,
.hand-selection-setup span {
    display: block;
}

.hand-selection-setup strong {
    font-size: clamp(34px, 7vw, 72px);
    line-height: 1.05;
}

.hand-selection-setup span {
    max-width: 620px;
    margin-top: 12px;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
}

.hand-selection-setup.is-warning {
    background: rgba(103, 65, 12, 0.90);
}

.hand-select-countdown {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    place-items: center;
    color: #fff;
    background: rgba(16, 24, 39, 0.18);
    font-size: clamp(34px, 8vw, 74px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.is-hand-hovered .hand-select-countdown {
    display: grid;
}

.hand-select-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 8px;
    background: rgba(255, 255, 255, 0.88);
    transform: scaleX(var(--hand-select-progress, 0));
    transform-origin: left center;
}

.selected-template-preview {
    width: min(380px, 80vw);
    overflow: hidden;
    background: #111827;
    border-radius: 8px;
    aspect-ratio: 9 / 16;
    box-shadow: 0 18px 34px rgba(23, 32, 51, 0.18);
}

.public-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.public-title-row {
    width: min(820px, 100%);
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
    align-items: center;
    gap: 18px;
}

.public-title-row h1 {
    grid-column: 2;
}

.public-title-back {
    grid-column: 1;
    justify-self: start;
}

.public-selected-summary {
    width: min(760px, 100%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.public-selected-summary span {
    padding: 10px 14px;
    color: var(--text);
    background: #f7fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.camera-stage {
    width: min(1180px, 100%);
    display: grid;
    justify-items: center;
    gap: 24px;
}

.camera-stage-head {
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.camera-stage-head h1 {
    font-size: clamp(36px, 6vw, 70px);
}

.camera-preview-shell {
    position: relative;
    width: min(420px, 82vw);
    overflow: hidden;
    background: #101827;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    aspect-ratio: 9 / 16;
    box-shadow: 0 22px 46px rgba(23, 32, 51, 0.28);
}

.camera-preview-shell--16-9 {
    width: min(760px, 92vw);
    aspect-ratio: 16 / 9;
}

.camera-input-video {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.camera-output-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.background-test-preview {
    width: min(430px, 100%);
}

.camera-message {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #fff;
    background: rgba(16, 24, 39, 0.72);
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
}

.camera-message.is-hidden {
    display: none;
}

.camera-countdown-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 34px;
    color: #fff;
    background: rgba(16, 24, 39, 0.18);
    text-align: center;
    pointer-events: none;
}

.camera-countdown-overlay[hidden] {
    display: none;
}

.camera-capture-overlay-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: clamp(104px, 10.4vw, 150px);
    min-height: clamp(69px, 6.8vw, 94px);
    display: grid;
    place-items: center;
    padding: 14px 22px;
    color: #ffffff;
    opacity: 0.40;
    background:
        linear-gradient(90deg, rgba(16, 10, 27, 0.96), rgba(5, 10, 24, 0.96)) padding-box,
        linear-gradient(90deg, var(--kiosk-pink), var(--kiosk-magenta), var(--kiosk-blue)) border-box;
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow:
        0 0 24px rgba(255, 92, 200, 0.34),
        0 0 26px rgba(46, 164, 255, 0.22);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.camera-capture-overlay-button svg {
    width: min(77px, 100%);
    height: auto;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.camera-capture-overlay-button:disabled {
    opacity: 0;
    pointer-events: none;
}

.camera-photo-approval-actions {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(34px, 6vw, 72px);
    transform: translate(-50%, -50%);
}

.camera-photo-approval-actions[hidden] {
    display: none;
}

.camera-photo-approval-actions button {
    width: clamp(108px, 13vmin, 158px);
    height: clamp(108px, 13vmin, 158px);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(4, 8, 18, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.38),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    cursor: pointer;
    overflow: hidden;
}

.camera-photo-approval-actions button:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.camera-photo-approval-actions button:focus-visible {
    outline: 3px solid rgba(255, 92, 200, 0.72);
    outline-offset: 4px;
}

.camera-photo-approval-actions svg {
    width: clamp(54px, 6.2vmin, 78px);
    height: clamp(54px, 6.2vmin, 78px);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.camera-countdown-number,
.camera-countdown-phrase {
    display: block;
    text-shadow: 0 7px 24px rgba(0, 0, 0, 0.58);
}

.camera-countdown-number {
    font-size: clamp(92px, 18vw, 190px);
    line-height: 0.9;
    font-weight: 900;
}

.camera-countdown-phrase {
    max-width: min(760px, 100%);
    margin-top: 18px;
    padding: 14px 20px;
    background: rgba(16, 24, 39, 0.72);
    border-radius: 8px;
    font-size: clamp(28px, 5vw, 54px);
    line-height: 1.12;
    font-weight: 900;
}

.camera-countdown-phrase[hidden] {
    display: none;
}

.camera-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.camera-controls button {
    cursor: pointer;
}

.camera-controls .primary-action.small {
    width: auto;
    min-width: 220px;
}

.camera-controls .secondary-action {
    min-width: 180px;
}

.camera-controls button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.camera-test-status {
    width: min(430px, 100%);
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.camera-result-panel {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(260px, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(23, 32, 51, 0.12);
}

.camera-result-panel[hidden] {
    display: none;
}

.camera-result-image {
    width: min(360px, 100%);
    overflow: hidden;
    background: #101827;
    border-radius: 8px;
    aspect-ratio: 9 / 16;
}

.camera-result-image.is-format-16-9 {
    width: min(520px, 100%);
    aspect-ratio: 16 / 9;
}

.camera-result-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.camera-result-share {
    display: grid;
    justify-items: center;
    gap: 16px;
    text-align: center;
}

.camera-result-share h1,
.camera-result-share h2 {
    margin: 0;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.05;
}

.camera-local-result-status {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    z-index: 2;
    width: calc(100% - 24px);
    max-width: 560px;
    margin: 0;
    padding: clamp(14px, 2vw, 22px);
    display: grid;
    justify-items: center;
    gap: clamp(8px, 1.1vw, 13px);
    color: #ffffff;
    background: rgba(5, 8, 18, 0.66);
    border: 2px solid rgba(255, 92, 200, 0.76);
    border-right-color: rgba(46, 164, 255, 0.86);
    border-radius: 8px;
    box-shadow:
        0 0 28px rgba(255, 92, 200, 0.46),
        0 0 34px rgba(46, 164, 255, 0.32),
        0 18px 44px rgba(0, 0, 0, 0.62);
    font-size: clamp(18px, 2.2vw, 32px);
    line-height: 1.12;
    text-align: center;
    text-shadow: 0 7px 20px rgba(0, 0, 0, 0.72);
    transform: translate(-50%, -50%);
}

.camera-local-result-icon {
    width: clamp(42px, 5vw, 72px);
    height: clamp(42px, 5vw, 72px);
    display: block;
    color: #ff3b5f;
    filter:
        drop-shadow(0 0 12px rgba(255, 59, 95, 0.68))
        drop-shadow(0 0 14px rgba(255, 59, 95, 0.42));
}

.camera-local-result-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.camera-local-result-title,
.camera-local-result-instructions {
    display: block;
}

.camera-local-result-title {
    font-weight: 900;
}

.camera-local-result-instructions {
    margin-top: clamp(4px, 0.8vw, 12px);
    font-weight: 500;
}

.camera-qr-canvas,
.camera-qr-box {
    width: 280px;
    height: 280px;
    width: min(280px, 70vw);
    height: min(280px, 70vw);
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.camera-qr-box {
    display: grid;
    place-items: center;
}

.camera-qr-box img,
.camera-qr-box canvas,
.camera-qr-box svg {
    width: 100%;
    height: 100%;
    display: block;
}

.result-restart-box {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.result-restart-box p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 2.4vw, 26px);
    font-weight: 800;
}

.result-restart-box strong {
    color: var(--text);
}

.result-restart-action {
    min-width: 260px;
}

.download-photo-preview {
    width: min(420px, 100%);
    display: block;
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(23, 32, 51, 0.18);
}

.download-photo-preview.is-format-16-9 {
    width: min(760px, 100%);
}

.download-actions {
    width: min(520px, 100%);
    display: grid;
    gap: 14px;
}

.download-actions .primary-action,
.download-actions .download-action {
    width: 100%;
}

.download-actions .primary-action {
    border: 0;
    cursor: pointer;
}

.share-fallback {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 720px) {
    .public-screen:not(.public-cabine-screen) { padding: 16px; }
    .public-screen:not(.public-cabine-screen) .welcome-panel,
    .public-screen:not(.public-cabine-screen) .result-panel { min-height: calc(100vh - 32px); }

    .public-screen:not(.public-cabine-screen) .public-start-action {
        min-height: 96px;
        padding: 0 28px;
        font-size: 32px;
    }

    .public-screen:not(.public-cabine-screen) .public-start-carousel-panel {
        padding: 14px;
    }

    .public-screen:not(.public-cabine-screen) .public-start-carousel {
        --carousel-slide-width: 170px;
        --carousel-slide-height: 190px;
        --carousel-offset: 132px;
        --carousel-far-offset: 232px;
    }

    .public-screen:not(.public-cabine-screen) .event-logo-bar {
        top: 16px;
        left: 16px;
        right: 16px;
    }

    .public-screen:not(.public-cabine-screen) .event-logo--event,
    .public-screen:not(.public-cabine-screen) .event-logo--client {
        max-width: 28vw;
    }

    .public-screen:not(.public-cabine-screen) .event-page-logo {
        top: 24px;
        right: 24px;
        width: 64px;
        height: 64px;
    }

    .public-screen:not(.public-cabine-screen) .event-logo img,
    .public-screen:not(.public-cabine-screen) .event-logo--client img {
        max-height: 70px;
    }

    .public-screen:not(.public-cabine-screen) .public-action-row,
    .public-screen:not(.public-cabine-screen) .camera-stage-head {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .public-screen:not(.public-cabine-screen) .camera-preview-shell {
        width: min(520px, 100%);
    }

    .public-screen:not(.public-cabine-screen) .public-background-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .public-screen:not(.public-cabine-screen) .public-background-grid .public-template-thumb {
        aspect-ratio: 9 / 16;
    }

    .public-screen:not(.public-cabine-screen) .public-background-grid .public-template-thumb--16-9 {
        aspect-ratio: 16 / 9;
    }

    .public-screen:not(.public-cabine-screen) .public-choice-carousel.has-choice-pages {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
    }

    .public-screen:not(.public-cabine-screen) .public-choice-arrow {
        width: 44px;
        height: 72px;
    }

    .public-screen:not(.public-cabine-screen) .public-choice-arrow::before {
        border-top-width: 22px;
        border-bottom-width: 22px;
    }

    .public-screen:not(.public-cabine-screen) .public-choice-arrow--prev::before {
        border-right-width: 26px;
    }

    .public-screen:not(.public-cabine-screen) .public-choice-arrow--next::before {
        border-left-width: 26px;
    }

    .public-screen:not(.public-cabine-screen) .public-format-section {
        position: static;
        width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
    }

    .public-screen:not(.public-cabine-screen) .public-background-section {
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 16px;
        box-shadow: none;
    }

    .public-screen:not(.public-cabine-screen) .public-format-grid {
        height: auto;
        grid-template-columns: 1fr;
    }

    .public-screen:not(.public-cabine-screen) .public-format-card {
        width: 100%;
        min-height: 220px;
    }

    .public-screen:not(.public-cabine-screen) .public-background-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .event-logo-settings-grid,
    .event-logo-preview-grid {
        grid-template-columns: 1fr;
    }

    .event-logo-settings-side,
    .event-logo-preview-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .event-logo-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .camera-controls {
        width: 100%;
    }

    .camera-controls .primary-action.small,
    .camera-controls .secondary-action {
        width: 100%;
        min-width: 0;
    }

    .camera-result-panel {
        grid-template-columns: 1fr;
    }
}


.auth-shell {
    width: min(560px, 100%);
}

.auth-panel {
    display: grid;
    gap: 22px;
    padding: clamp(28px, 6vw, 52px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-panel h1 {
    font-size: clamp(34px, 7vw, 54px);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 20px;
}

.primary-action.small {
    min-width: 100%;
    min-height: 62px;
    border: 0;
    cursor: pointer;
    font-size: 24px;
}

.auth-form .primary-action.small.action-icon-button {
    width: 62px;
    min-width: 62px;
    padding: 0;
    border-radius: 16px;
}

.auth-google-button,
.auth-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    width: 100%;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.auth-google-button {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
}

.auth-google-button:hover,
.auth-google-button:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(17, 103, 216, 0.12);
}

.auth-google-mark {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: #2563eb;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-weight: 800;
}

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

.auth-links {
    display: grid;
    gap: 8px;
}

.auth-readable-note {
    margin: 0;
    color: var(--muted);
}

.client-auth-screen {
    background:
        radial-gradient(circle at top, rgba(236, 72, 153, 0.08), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
}

.client-auth-screen .auth-shell {
    width: min(500px, 100%);
}

.client-auth-screen .auth-panel {
    position: relative;
    gap: 14px;
    padding: clamp(22px, 3.8vw, 34px);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.auth-admin-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    color: #5f718d;
    background: rgba(95, 113, 141, 0.08);
    border: 1px solid rgba(95, 113, 141, 0.22);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.client-auth-screen .auth-brand {
    display: grid;
    place-items: center;
    min-height: 116px;
    margin-bottom: 0;
    padding: 0 0 6px;
}

.client-auth-screen .auth-brand img {
    width: min(330px, 82%);
    max-height: 132px;
    object-fit: contain;
    filter: none;
}

.client-auth-screen .auth-brand span {
    color: var(--primary);
    font-size: clamp(28px, 6vw, 46px);
    font-weight: 900;
    line-height: 1;
}

.client-auth-screen .eyebrow {
    display: none;
}

.client-auth-screen .auth-panel h1 {
    display: none;
}

.client-auth-screen .auth-panel h1.auth-login-title {
    display: block;
    margin: 0 0 2px;
    color: #34206f;
    font-size: clamp(28px, 4.5vw, 40px);
    line-height: 1.1;
    text-align: center;
}

.client-auth-screen .auth-readable-note {
    max-width: 620px;
    margin: 0;
    color: #5f718d;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.client-auth-screen .auth-readable-note strong {
    color: #172033;
}

.client-auth-screen .auth-form {
    gap: 12px;
}

.client-auth-screen .auth-form label {
    color: #5f718d;
    font-size: 15px;
}

.client-auth-screen .auth-form input {
    min-height: 48px;
    font-size: 16px;
    border-color: #d8e2f0;
}

.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 56px;
}

.password-toggle-button {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #73788a;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle-button:hover,
.password-toggle-button:focus-visible,
.password-toggle-button.is-visible {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.password-toggle-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-auth-screen .auth-submit-button,
.client-auth-screen .auth-google-button {
    min-height: 48px;
    border-radius: 8px;
    font-size: 17px;
}

.client-auth-screen .auth-submit-button {
    color: #fff;
    background: #2169d6;
    box-shadow: 0 18px 34px rgba(33, 105, 214, 0.24);
}

.client-auth-screen .auth-submit-button:hover,
.client-auth-screen .auth-submit-button:focus-visible {
    background: #1c5fc3;
}

.client-auth-screen .auth-google-button {
    border-color: #d8e2f0;
}

.client-auth-screen .auth-google-mark {
    width: 26px;
    height: 26px;
    color: inherit;
    background: transparent;
    border-radius: 0;
}

.client-auth-screen .auth-google-mark svg {
    display: block;
    width: 26px;
    height: 26px;
}

.client-auth-screen .auth-links {
    margin-top: 0;
}

@media (max-width: 620px) {
    .client-auth-screen .auth-shell {
        width: 100%;
    }

    .client-auth-screen .auth-panel {
        padding: 22px;
    }

    .client-auth-screen .auth-brand {
        min-height: 108px;
    }

    .client-auth-screen .auth-brand img {
        width: min(300px, 88%);
        max-height: 122px;
    }

    .client-auth-screen .auth-panel h1 {
        font-size: 32px;
    }
}

.action-icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-error {
    margin: 0;
    padding: 14px 16px;
    color: #8a1f1f;
    background: #fff1f1;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    font-weight: 700;
}

.form-error p {
    margin: 0;
}

.form-error strong {
    display: block;
    margin-top: 10px;
}

.form-error ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.form-error li {
    margin: 3px 0;
}

.text-link {
    color: var(--primary);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.admin-page {
    --admin-primary: #ec4899;
    --admin-primary-dark: #db2777;
    --admin-primary-soft: #fdf2f8;
    --admin-secondary: #2563eb;
    --admin-secondary-dark: #1d4ed8;
    --admin-secondary-soft: #eff6ff;
    --admin-secondary-shadow: rgba(37, 99, 235, 0.2);
    --admin-selected: #ec4899;
    --admin-selected-text: #ffffff;
    --admin-selected-soft: #fdf2f8;
    --admin-selected-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 56%, #3b82f6 100%);
    --admin-primary-shadow: rgba(236, 72, 153, 0.24);
    --admin-selected-shadow: rgba(139, 92, 246, 0.28);
    --admin-sidebar-closed: 68px;
    --admin-sidebar-open: 228px;
    --admin-sidebar-safe-gap: 10px;
    --admin-sidebar-safe-space: calc(var(--admin-sidebar-closed) + var(--admin-sidebar-safe-gap));
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: var(--admin-secondary);
    --primary-dark: var(--admin-secondary-dark);
    --accent: var(--admin-primary);
    min-height: 100vh;
    background: var(--bg);
}

.admin-page:has(.admin-brand--client-context),
.admin-page.client-mirror-page {
    --admin-primary: #ec4899;
    --admin-primary-dark: #db2777;
    --admin-primary-soft: #fdf2f8;
    --admin-secondary: #2563eb;
    --admin-secondary-dark: #1d4ed8;
    --admin-secondary-soft: #eff6ff;
    --admin-secondary-shadow: rgba(37, 99, 235, 0.2);
    --admin-selected: #ec4899;
    --admin-selected-text: #ffffff;
    --admin-selected-soft: #fdf2f8;
    --admin-selected-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 56%, #3b82f6 100%);
    --admin-primary-shadow: rgba(236, 72, 153, 0.24);
    --admin-selected-shadow: rgba(139, 92, 246, 0.28);
}

.admin-topbar {
    --topbar-button-bg: var(--admin-primary);
    --topbar-button-bg-hover: var(--admin-primary-dark);
    --topbar-button-text: #ffffff;
    --topbar-button-active-bg: var(--admin-selected);
    --topbar-button-active-text: var(--admin-selected-text);
    position: sticky;
    top: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 0;
    padding: 0;
    padding-left: var(--admin-sidebar-safe-space);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.admin-topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-topbar nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--topbar-button-text);
    background: var(--topbar-button-bg);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px var(--admin-primary-shadow);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-topbar nav a:hover,
.admin-topbar nav a:focus-visible {
    color: var(--topbar-button-text);
    background: var(--topbar-button-bg-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

.admin-topbar nav a.is-active,
.admin-topbar nav a[aria-current="page"] {
    color: var(--topbar-button-active-text);
    background: var(--admin-selected-gradient);
    border-color: transparent;
    box-shadow: 0 12px 26px var(--admin-selected-shadow);
}

.admin-brand--client-context ~ nav,
.client-mirror-topbar nav {
    --topbar-button-bg: var(--admin-primary);
    --topbar-button-bg-hover: var(--admin-primary-dark);
    --topbar-button-text: #ffffff;
    --topbar-button-active-bg: var(--admin-selected);
    --topbar-button-active-text: var(--admin-selected-text);
}

.admin-brand--client-context ~ nav a,
.client-mirror-topbar nav a {
    box-shadow: 0 10px 22px var(--admin-primary-shadow);
}

.admin-backoffice-top-logo {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 90;
    height: 96px;
    display: grid;
    grid-template-columns: max(calc((100% - 1180px) / 2), var(--admin-sidebar-safe-space)) minmax(0, 1180px) minmax(32px, 1fr);
    align-items: center;
    justify-items: center;
    padding-left: 0;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 0;
    box-shadow: none;
    pointer-events: none;
    transition: box-shadow 0.24s ease;
}

.admin-backoffice-top-logo img {
    grid-column: 2;
    max-width: 100%;
    max-height: 76px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.20));
    transition: filter 0.24s ease;
}

.admin-page.is-backoffice-logo-compact:not(.admin-home-page) .admin-backoffice-top-logo {
    height: 96px;
    box-shadow: none;
}

.admin-page.is-backoffice-logo-compact:not(.admin-home-page) .admin-backoffice-top-logo img {
    max-height: 76px;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
}

.admin-page.admin-home-page .admin-backoffice-top-logo {
    height: var(--backoffice-logo-height, 300px);
    padding-left: 0;
}

.admin-page.admin-home-page .admin-backoffice-top-logo img {
    width: min(var(--backoffice-logo-width, 800px), calc(100% - 48px));
    height: auto;
    max-height: var(--backoffice-logo-max-height, 315px);
}

.admin-brand--client-context ~ nav a.is-active,
.admin-brand--client-context ~ nav a[aria-current="page"],
.client-mirror-topbar nav a.is-active,
.client-mirror-topbar nav a[aria-current="page"] {
    box-shadow: 0 12px 26px var(--admin-selected-shadow);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.admin-brand-logo {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 132px;
    height: 44px;
    overflow: hidden;
}

.admin-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.admin-brand--force-white .admin-brand-logo img {
    filter: brightness(0) invert(1);
}

.admin-brand--theme-logo .admin-brand-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.94;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 140;
    width: var(--admin-sidebar-closed);
    height: 100vh;
    overflow: hidden;
    color: #f8fafc;
    background:
        linear-gradient(150deg, rgba(236, 72, 153, 0.16), rgba(3, 7, 18, 0) 34%),
        linear-gradient(180deg, #05070d 0%, #071323 100%);
    border-right: 1px solid rgba(46, 164, 255, 0.18);
    box-shadow: 18px 0 42px rgba(3, 7, 18, 0.34);
    transition: width 0.2s ease;
}

.admin-sidebar:hover,
.admin-sidebar:focus-within,
.admin-sidebar.is-held-open,
.is-admin-sidebar-held .admin-sidebar {
    width: var(--admin-sidebar-open);
    overflow: visible;
}

.admin-sidebar-shell {
    display: flex;
    flex-direction: column;
    width: var(--admin-sidebar-open);
    height: 100%;
    padding: 14px 0 18px;
}

.admin-sidebar-brand {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 74px;
    color: #ffffff;
    text-decoration: none;
}

.admin-sidebar-brand-compact,
.admin-sidebar-brand-full {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.admin-sidebar-brand-compact {
    justify-content: center;
    width: var(--admin-sidebar-closed);
    opacity: 1;
}

.admin-sidebar-brand-full {
    justify-content: flex-start;
    gap: 0;
    padding: 0 14px 0 calc(var(--admin-sidebar-closed) + 8px);
    opacity: 0;
    transform: none;
}

.admin-sidebar:hover .admin-sidebar-brand-compact,
.admin-sidebar:focus-within .admin-sidebar-brand-compact,
.admin-sidebar.is-held-open .admin-sidebar-brand-compact,
.is-admin-sidebar-held .admin-sidebar .admin-sidebar-brand-compact {
    opacity: 1;
    transform: none;
}

.admin-sidebar:hover .admin-sidebar-brand-full,
.admin-sidebar:focus-within .admin-sidebar-brand-full,
.admin-sidebar.is-held-open .admin-sidebar-brand-full,
.is-admin-sidebar-held .admin-sidebar .admin-sidebar-brand-full {
    opacity: 1;
    transform: translateX(0);
}

.admin-sidebar-brand-logo,
.admin-sidebar-brand-compact-logo {
    display: inline-grid;
    place-items: center;
    overflow: hidden;
}

.admin-sidebar-brand-logo {
    display: none;
}

.admin-sidebar-brand-compact-logo,
.admin-sidebar-brand-initials {
    width: 52px;
    height: 52px;
    border-radius: 8px;
}

.admin-sidebar-brand-logo img,
.admin-sidebar-brand-compact-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.admin-sidebar-brand-initials {
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(16, 10, 27, 0.96), rgba(5, 10, 24, 0.96)) padding-box,
        var(--admin-selected-gradient) border-box;
    border: 2px solid transparent;
    font-size: 22px;
    font-weight: 900;
}

.admin-sidebar-brand-name {
    max-width: 104px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.12;
    color: #ffffff;
}

.admin-sidebar-links {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding: 8px 0 16px;
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-sidebar-link {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: var(--admin-sidebar-closed) minmax(0, 1fr);
    align-items: center;
    width: calc(var(--admin-sidebar-closed) - 3px);
    min-height: 48px;
    border: 1px solid transparent;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    color: rgba(248, 250, 252, 0.86);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: width 0.2s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.admin-sidebar:hover .admin-sidebar-link,
.admin-sidebar:focus-within .admin-sidebar-link,
.admin-sidebar.is-held-open .admin-sidebar-link,
.is-admin-sidebar-held .admin-sidebar .admin-sidebar-link {
    width: calc(var(--admin-sidebar-open) - 12px);
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 92, 200, 0.20);
    outline: none;
}

.admin-sidebar-link.is-active,
.admin-sidebar-link[aria-current="page"] {
    color: var(--admin-selected-text);
    background: var(--admin-selected-gradient);
    border-color: transparent;
    box-shadow: 0 12px 24px var(--admin-selected-shadow);
}

.admin-sidebar-icon {
    display: inline-grid;
    place-items: center;
    width: var(--admin-sidebar-closed);
    height: 100%;
}

.admin-sidebar-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-sidebar-label {
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.admin-sidebar:hover .admin-sidebar-label,
.admin-sidebar:focus-within .admin-sidebar-label,
.admin-sidebar.is-held-open .admin-sidebar-label,
.is-admin-sidebar-held .admin-sidebar .admin-sidebar-label {
    opacity: 1;
    transform: translateX(0);
}

.admin-sidebar:hover .admin-sidebar-links,
.admin-sidebar:focus-within .admin-sidebar-links,
.admin-sidebar.is-held-open .admin-sidebar-links,
.is-admin-sidebar-held .admin-sidebar .admin-sidebar-links {
    overflow: visible;
}

.admin-sidebar-submenu-item {
    position: relative;
}

.admin-sidebar-submenu-toggle {
    appearance: none;
    padding: 0;
    font-family: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.admin-sidebar-submenu {
    position: absolute;
    top: 50%;
    left: calc(var(--admin-sidebar-open) - 2px);
    z-index: 220;
    display: grid;
    min-width: 168px;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(7, 17, 31, 0.98);
    box-shadow: 18px 18px 36px rgba(3, 7, 18, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translate(10px, -50%);
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.admin-sidebar-submenu::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    width: 10px;
    height: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(7, 17, 31, 0.98);
    transform: translateY(-50%) rotate(45deg);
}

.admin-sidebar-submenu-item.is-submenu-open .admin-sidebar-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.admin-sidebar-submenu-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    color: rgba(248, 250, 252, 0.90);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.admin-sidebar-submenu-link:hover,
.admin-sidebar-submenu-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    outline: none;
}

.admin-sidebar-submenu-link.is-active,
.admin-sidebar-submenu-link[aria-current="page"] {
    color: var(--admin-selected-text);
    background: var(--admin-selected-gradient);
    box-shadow: 0 10px 20px var(--admin-selected-shadow);
}

.admin-main {
    width: min(1180px, calc(100% - var(--admin-sidebar-safe-space) - 32px));
    margin: 0 auto;
    margin-left: max(calc((100% - 1180px) / 2), var(--admin-sidebar-safe-space));
    padding: 32px 0;
}

.admin-page:not(.admin-home-page):has(.admin-backoffice-top-logo) .admin-main {
    padding-top: 74px;
    transition: padding-top 0.24s ease;
}

.admin-page.is-backoffice-logo-compact:not(.admin-home-page):has(.admin-backoffice-top-logo) .admin-main {
    padding-top: 74px;
}

.admin-page:not(.admin-home-page):has(.admin-backoffice-top-logo):has(.admin-sidebar--client-context) .admin-main,
.admin-page.is-backoffice-logo-compact:not(.admin-home-page):has(.admin-backoffice-top-logo):has(.admin-sidebar--client-context) .admin-main {
    padding-top: 104px;
}

.admin-page:not(.admin-home-page):has(.admin-backoffice-top-logo):has(.admin-sidebar-link[href="clients.php"]):has(.admin-hero--compact) .admin-main {
    padding-top: 94px;
}

.admin-page.admin-home-page:has(.admin-backoffice-top-logo) .admin-main {
    padding-top: var(--backoffice-logo-main-padding, 330px);
}

.admin-hero {
    display: grid;
    gap: 16px;
    padding: clamp(28px, 6vw, 56px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.admin-hero--compact {
    gap: 0;
    padding: clamp(10px, 1.6vw, 14px);
    background: var(--admin-selected-gradient);
    border-color: transparent;
    box-shadow: 0 16px 34px var(--admin-selected-shadow);
}

.admin-hero--compact + .admin-panel,
.admin-hero--compact + .admin-grid,
.admin-hero--compact + .filter-bar {
    margin-top: 18px;
}

.admin-hero h1 {
    font-size: clamp(38px, 6vw, 70px);
}

.admin-hero .admin-hero-kicker {
    max-width: none;
    margin: 0;
    color: #ffffff;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-overview,
.dashboard-stat-card,
.dashboard-info-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(23, 32, 51, 0.08);
}

.dashboard-overview {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 5vw, 52px);
}

.dashboard-overview h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.02;
}

.dashboard-overview .lead {
    margin-top: 14px;
}

.dashboard-primary-link {
    flex: 0 0 auto;
    margin-top: 10px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.client-dashboard-stat-grid {
    margin-top: 0;
}

.dashboard-stat-grid + .admin-panel {
    margin-top: 22px;
}

.dashboard-stat-section {
    margin-top: 22px;
}

.dashboard-section-title {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
}

.dashboard-stat-section .dashboard-stat-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 240px));
    margin-top: 12px;
}

.dashboard-stat-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 150px;
    padding: 20px 82px 20px 20px;
    align-content: start;
}

.dashboard-stat-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-stat-card strong {
    color: var(--primary);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1;
}

.dashboard-stat-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
    font-weight: 700;
}

.dashboard-stat-card .button {
    width: auto;
    margin-top: 8px;
}

.dashboard-stat-card > .action-icon-button {
    position: absolute;
    top: 20px;
    right: 20px;
    margin-top: 0;
}

.dashboard-usage {
    display: grid;
    gap: 6px;
    margin-top: 6px;
}

.dashboard-usage small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-stat-card .dashboard-usage-bar {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef8;
}

.dashboard-stat-card .dashboard-usage-bar span {
    display: block;
    height: 100%;
    margin: 0;
    border-radius: inherit;
    background: var(--admin-secondary);
    transition: width 180ms ease;
}

.dashboard-stat-card .dashboard-usage-bar.is-warning span {
    background: #f59e0b;
}

.dashboard-stat-card .dashboard-usage-bar.is-alert span {
    background: #c75a11;
}

.dashboard-stat-card .dashboard-usage-bar.is-danger span {
    background: #d62828;
}

.dashboard-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.dashboard-info-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.dashboard-info-panel h2 {
    margin: 0;
}

.dashboard-step-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
    color: var(--text);
    font-weight: 700;
}

.dashboard-step-list li::marker {
    color: var(--primary);
    font-weight: 900;
}

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

.dashboard-module-list a {
    display: grid;
    gap: 5px;
    min-height: 76px;
    padding: 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.dashboard-module-list a:hover,
.dashboard-module-list a:focus-visible {
    border-color: var(--primary);
}

.dashboard-module-list strong {
    color: var(--primary);
}

.dashboard-module-list span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.dashboard-action-panel {
    margin-top: 22px;
}

.dashboard-action-grid {
    display: grid;
    grid-template-columns: minmax(0, 250px) auto minmax(0, 250px) auto minmax(0, 250px) auto minmax(0, 250px);
    align-items: center;
    justify-content: space-between;
    column-gap: 18px;
    row-gap: 14px;
    margin-top: 18px;
}

.dashboard-action-grid.is-quick-access {
    grid-template-columns: repeat(4, minmax(0, 250px));
    column-gap: 24px;
}

.dashboard-action-card {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 9px;
    min-width: 0;
    padding: 8px 8px 12px;
    color: var(--text);
    text-align: center;
    text-decoration: none;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        var(--admin-selected-gradient) border-box;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow:
        0 14px 28px rgba(23, 32, 51, 0.08),
        0 0 18px var(--admin-primary-shadow);
}

.dashboard-action-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.dashboard-action-card strong {
    color: var(--text);
    font-size: 17px;
    line-height: 1.1;
}

.dashboard-action-button {
    width: min(100%, 190px);
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 10px;
    padding: 0 14px;
    color: #ffffff;
    background: var(--admin-selected-gradient);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 24px var(--admin-primary-shadow);
}

.dashboard-action-button.is-limit-disabled {
    color: var(--muted);
    background: #eef2f8;
    box-shadow: none;
    opacity: 0.72;
}

.dashboard-action-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-action-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    color: var(--admin-primary);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 8px 18px var(--admin-primary-shadow);
}

.event-active-install-card {
    position: relative;
    min-height: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 14px;
    color: var(--admin-secondary);
    text-align: center;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        var(--admin-selected-gradient) border-box;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow:
        0 14px 28px rgba(23, 32, 51, 0.08),
        0 0 18px var(--admin-primary-shadow);
}

.event-active-install-card:hover,
.event-active-install-card:focus-within {
    transform: translateY(-1px);
    box-shadow:
        0 18px 36px rgba(23, 32, 51, 0.12),
        0 0 24px var(--admin-primary-shadow);
}

.event-active-install-button {
    width: 100%;
    min-height: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: center;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.event-active-install-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.34);
    outline-offset: 4px;
    border-radius: 8px;
}

.event-active-install-help {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: var(--admin-secondary);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.10);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.event-active-install-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--admin-secondary);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
}

.event-active-install-title svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-active-install-preview {
    display: grid;
    justify-items: center;
    gap: 7px;
}

.event-active-install-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #13061d;
    border-radius: 18px;
    box-shadow:
        0 14px 24px rgba(23, 32, 51, 0.18),
        0 0 18px var(--admin-primary-shadow);
}

.event-active-install-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.event-active-install-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    overflow-wrap: anywhere;
}

.dashboard-action-card:hover,
.dashboard-action-card:focus-visible {
    transform: translateY(-1px);
    box-shadow:
        0 18px 34px rgba(23, 32, 51, 0.12),
        0 0 24px var(--admin-primary-shadow);
}

.dashboard-action-card.has-limit-reached:hover,
.dashboard-action-card.has-limit-reached:focus-visible {
    box-shadow:
        0 14px 28px rgba(23, 32, 51, 0.08),
        0 0 18px var(--admin-primary-shadow);
}

@media (max-width: 680px) {
    .dashboard-action-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-model-start-panel {
    margin-top: 22px;
}

.dashboard-action-panel .dashboard-model-start-panel {
    margin-top: 0;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.dashboard-model-start-panel .section-heading-row {
    align-items: start;
}

.dashboard-action-panel .dashboard-model-start-panel h2 {
    color: var(--admin-primary);
    font-size: clamp(24px, 3vw, 32px);
}

.dashboard-model-start-panel .muted-note {
    margin: 4px 0 0;
}

.dashboard-model-start-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.dashboard-model-start-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.dashboard-model-start-thumb {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(37, 99, 235, 0.18)),
        #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.08);
}

.dashboard-model-start-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dashboard-model-start-thumb svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--admin-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-model-start-card strong {
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-model-start-card:hover .dashboard-model-start-thumb,
.dashboard-model-start-card:focus-visible .dashboard-model-start-thumb {
    border-color: var(--admin-primary);
    box-shadow: 0 14px 28px var(--admin-primary-shadow);
}

.client-detail-hero {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: clamp(28px, 5vw, 52px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.client-detail-logo {
    width: 150px;
    height: 150px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--primary);
    background: #f5f7fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 58px;
    font-weight: 900;
}

.client-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.client-detail-hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.02;
}

.client-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.client-detail-usage-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 22px;
}

.client-detail-usage-grid .dashboard-stat-card {
    min-height: 142px;
    padding: 18px;
}

.client-detail-usage-grid .dashboard-stat-card strong {
    font-size: clamp(24px, 2.6vw, 32px);
}

.client-detail-usage-grid .dashboard-stat-card.client-detail-validity-card strong {
    font-size: clamp(22px, 2.2vw, 28px);
}

@media (max-width: 980px) {
    .client-detail-usage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .client-detail-usage-grid {
        grid-template-columns: 1fr;
    }
}

.client-detail-info {
    margin-top: 22px;
}

.client-detail-edit-form {
    margin-top: 22px;
}

.client-detail-edit-form + .client-detail-areas {
    margin-top: 18px;
}

.client-detail-info-compact {
    margin-top: 0;
}

.client-detail-areas {
    display: grid;
    gap: 18px;
}

.client-detail-areas h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 14px;
}

.client-detail-areas .client-detail-info dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-detail-areas .client-detail-info dl div {
    min-width: 0;
    min-height: 78px;
    padding: 14px 18px;
    border-color: color-mix(in srgb, var(--admin-primary) 34%, var(--line));
}

.client-detail-areas .client-detail-info dt {
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
}

.client-detail-areas .client-detail-info dd {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.client-detail-areas .client-detail-limits dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-profile-areas {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.settings-profile-areas--single {
    grid-template-columns: minmax(0, 1fr);
}

.settings-profile-left-column {
    display: grid;
    gap: 18px;
}

.settings-profile-card {
    padding: 0 18px 18px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 34%, var(--line));
    border-radius: 8px;
    overflow: hidden;
}

.settings-profile-areas h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 15px;
}

.settings-profile-card > h3:first-child {
    margin: 0 -18px 16px;
    padding: 12px 18px;
    color: var(--admin-selected-text);
    background: var(--admin-selected-gradient);
}

.settings-profile-subtitle {
    margin-top: 20px !important;
}

.settings-profile-card > .settings-profile-subtitle {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    color: var(--text);
    background: transparent;
}

.settings-profile-areas .client-detail-info dl {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.settings-profile-areas .client-detail-info dl div {
    padding: 12px;
    border-color: color-mix(in srgb, var(--admin-primary) 26%, var(--line));
}

.settings-profile-areas .client-detail-info dt {
    font-size: 10px;
    font-weight: 800;
}

.settings-profile-areas .client-detail-info dd {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.settings-profile-areas .settings-profile-client-card dl {
    grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
    gap: 10px;
}

.settings-profile-client-card dl div {
    display: grid;
    gap: 5px;
    align-items: start;
    padding: 12px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 26%, var(--line));
    border-radius: 8px;
}

.settings-profile-client-card dl div:last-child {
    border-bottom: 1px solid color-mix(in srgb, var(--admin-primary) 26%, var(--line));
}

.settings-profile-client-card dd {
    margin-top: 0;
}

.settings-profile-user-card dl {
    grid-template-columns: 1fr;
}

.settings-profile-areas .settings-profile-limits-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.settings-profile-form {
    grid-template-columns: 1fr;
    gap: 10px;
}

.settings-profile-form label {
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.settings-profile-form input {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
}

.settings-profile-form .settings-profile-field-wide {
    grid-column: auto;
}

.settings-profile-form input[readonly] {
    color: var(--muted);
    background: #f6f8fc;
}

@media (max-width: 680px) {
    .settings-profile-areas {
        grid-template-columns: 1fr;
    }

    .settings-profile-client-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .settings-profile-form .settings-profile-field-wide {
        grid-column: auto;
    }
}

.client-service-panel {
    margin-top: 22px;
    box-shadow: 0 16px 36px rgba(23, 32, 51, 0.08);
}

.client-detail-info dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 0;
}

.client-detail-info dl div {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.client-detail-info dt,
.client-detail-info dd {
    margin: 0;
}

.client-detail-info dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.client-detail-info dd {
    margin-top: 8px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.client-tree,
.client-event-tree {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.client-workspace-panel {
    margin-top: 22px;
}

.client-detail-main .client-workspace-panel:first-child {
    margin-top: 0;
}

.client-workspace-panel > .section-heading-row {
    align-items: center;
    padding: 4px 8px;
    color: #fff;
    background: var(--admin-selected-gradient);
    border-radius: 8px;
    box-shadow: 0 16px 34px var(--admin-selected-shadow);
}

.client-workspace-panel > .section-heading-row .eyebrow {
    margin-bottom: 8px;
    color: #fff;
}

.client-workspace-panel > .section-heading-row h2 {
    margin: 0;
    color: #fff;
}

.client-detail-heading-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.client-detail-heading-card .gallery-client-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.94);
}

.client-detail-heading-card .gallery-client-logo span {
    font-size: 20px;
}

.client-detail-heading-card h2 {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.client-workspace-panel > .section-heading-row .action-icon-button {
    width: 34px;
    min-height: 34px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.68);
}

.client-workspace-panel > .section-heading-row .action-icon-button svg {
    width: 17px;
    height: 17px;
}

.client-workspace-panel > .section-heading-row .client-detail-actions {
    align-items: center;
    margin-top: 0;
}

.client-browser-panel {
    gap: 20px;
}

.client-browser-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef3f8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.client-browser-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}

.client-browser-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.client-browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(23, 32, 51, 0.12);
    background: #d5dce8;
}

.client-browser-dots span:nth-child(1) {
    background: #f06a5f;
}

.client-browser-dots span:nth-child(2) {
    background: #f4c04f;
}

.client-browser-dots span:nth-child(3) {
    background: #4fc47a;
}

.client-browser-address {
    min-width: 0;
    padding: 8px 12px;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-browser-frame {
    display: block;
    width: 100%;
    height: min(82vh, 900px);
    min-height: 720px;
    border: 0;
    background: var(--bg);
}

.client-mirror-page {
    background: var(--bg);
}

.client-mirror-topbar {
    position: sticky;
    top: 0;
    z-index: 150;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 0;
}

.client-mirror-topbar nav {
    justify-content: flex-end;
}

.client-mirror-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #a82525;
    border-radius: 0 0 8px 8px;
    color: #ffffff;
    background: #c93434;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(201, 52, 52, 0.16);
}

.client-mirror-alert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 8px;
    color: #c93434;
    background: #ffffff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.client-mirror-alert-link:hover,
.client-mirror-alert-link:focus-visible {
    color: #9f1f1f;
    background: #fff5f5;
}

@media (max-width: 780px) {
    .client-mirror-topbar {
        grid-template-columns: 1fr;
    }

    .client-mirror-topbar nav {
        justify-content: flex-start;
    }

    .client-mirror-alert {
        align-items: flex-start;
        flex-direction: column;
    }
}

.client-mirror-main {
    padding: 24px 0 42px;
}

.client-mirror-main .dashboard-overview h1 {
    font-size: clamp(38px, 5vw, 62px);
}

.client-panel-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.client-tree-grid,
.client-event-card-grid,
.category-card-grid,
.client-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.client-tree-card,
.client-event-card,
.category-card,
.client-entry-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
}

.client-tree-card-root {
    background: var(--surface);
}

.client-tree-card span:not(.status-badge),
.category-card > div:first-child + h3 + p,
.client-entry-body p,
.client-event-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.client-tree-card > span:not(.status-badge),
.category-card > div:first-child,
.client-tree-card-root > span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.client-tree-card h2,
.client-tree-card h3,
.client-event-card h3,
.category-card h3,
.client-entry-card h3 {
    margin: 0;
}

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

.client-tree-number {
    color: var(--primary);
    font-size: 42px;
    line-height: 1;
}

.category-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: 8px;
    margin: 0;
}

.category-meta div {
    display: grid;
    gap: 3px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.category-meta dt,
.category-meta dd {
    margin: 0;
}

.category-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.category-meta dd {
    color: var(--text);
    font-weight: 900;
}

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

.plan-card-meta .plan-card-meta-full {
    grid-column: 1 / -1;
}

.category-client-list {
    display: grid;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.plan-category-group {
    gap: 14px;
}

.plan-category-section {
    display: grid;
    gap: 8px;
}

.plan-category-section > strong {
    color: var(--text);
}

.client-entry-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
}

.client-entry-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--admin-selected-gradient);
}

.client-entry-title {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.client-entry-card .gallery-client-logo {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.92);
}

.client-entry-card .gallery-client-logo span {
    font-size: 20px;
}

.client-entry-card .client-tree-actions {
    justify-content: flex-end;
    align-items: center;
}

.client-status-toggle-form {
    display: inline-flex;
    margin: 0;
}

.admin-page .client-status-toggle-button.is-active {
    color: #fff;
    background: var(--admin-selected-gradient);
    border-color: transparent;
    box-shadow: 0 14px 28px var(--admin-selected-shadow);
}

.admin-page .client-status-toggle-button.is-inactive {
    color: #dc2626;
    background: #fff1f1;
    border-color: #fecaca;
}

.client-entry-card .status-badge {
    min-height: 0;
    padding: 4px 8px;
    font-size: 11px;
    justify-self: start;
    background: rgba(255, 255, 255, 0.92);
}

.client-entry-card h3 {
    color: #fff;
    font-size: 16px;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.client-entry-card .category-meta {
    grid-template-columns: 1fr;
    gap: 8px;
}

.client-entry-card .category-meta div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
}

.client-entry-card .category-meta dt {
    font-size: 10px;
    letter-spacing: 0.04em;
}

.client-entry-card .category-meta dd {
    font-size: 13px;
    line-height: 1.1;
    text-align: right;
    overflow-wrap: anywhere;
}

.context-line {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    font-weight: 700;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

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

.event-management-layout > .event-create-panel {
    order: 3;
}

.event-management-layout > .event-models-panel {
    order: 2;
}

.event-management-layout > .event-active-panel {
    order: 1;
}

.panel-stack {
    display: grid;
    gap: 22px;
}

.admin-panel {
    display: grid;
    gap: 18px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(23, 32, 51, 0.08);
}

.admin-panel.wide {
    min-width: 0;
}

.admin-panel h2,
.admin-panel h3 {
    margin: 0;
}

.event-view-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 22px;
    margin-top: 18px;
    margin-bottom: 18px;
    border-color: color-mix(in srgb, var(--admin-selected) 28%, var(--line));
    background: var(--surface);
}

.event-view-hero-main {
    display: contents;
    min-width: 0;
}

.event-view-hero-main > div {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.event-view-hero h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.event-view-metrics-grid.event-view-hero-metrics {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 14px;
    max-width: 100%;
}

.event-view-code-card-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.event-view-code-card-value > span {
    font-weight: 800;
    white-space: nowrap;
}

.model-view-hero-summary {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.model-view-hero-thumb {
    width: 112px;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(37, 99, 235, 0.16)),
        #f8fafc;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 24%, var(--line));
    border-radius: 8px;
}

.model-view-hero-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.model-view-hero-thumb svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--admin-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-view-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    max-width: 100%;
    flex: 0 0 auto;
}

.event-view-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 24%, var(--line));
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.event-view-metrics-panel {
    margin-bottom: 18px;
    background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--admin-primary-soft) 26%, #fff) 100%);
}

.event-view-metrics-heading {
    margin-bottom: 10px;
}

.event-view-management-grid {
    display: block;
}

.event-view-management-grid > .event-view-metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-view-analysis-grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 12px;
}

.event-view-analysis-grid > *,
.event-view-operational-grid > *,
.event-view-details-panel .event-view-layout > * {
    min-width: 0;
}

.event-view-analysis-grid .event-view-history-panel {
    margin-top: 0;
}

.event-view-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.event-view-metric-card {
    min-width: 0;
    position: relative;
    min-height: 82px;
    padding: 14px 14px 14px 62px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid color-mix(in srgb, var(--admin-primary) 16%, var(--line));
    border-radius: 8px;
}

.event-view-metric-card--wide {
    grid-column: span 2;
}

.event-view-metric-card dt,
.event-view-metric-card dd {
    margin: 0;
}

.event-view-metric-card dt {
    color: var(--admin-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.event-view-metric-card dd {
    margin-top: 5px;
    color: var(--text);
}

.event-view-metric-icon {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--admin-primary);
    background: color-mix(in srgb, var(--admin-primary-soft) 70%, #fff);
    border: 1px solid color-mix(in srgb, var(--admin-primary) 12%, transparent);
    border-radius: 8px;
}

.event-view-metric-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-view-metric-icon--state {
    color: #16a34a;
    background: color-mix(in srgb, #dcfce7 76%, #fff);
    border-color: color-mix(in srgb, #16a34a 16%, transparent);
}

.event-view-metric-icon--start {
    color: #2563eb;
    background: color-mix(in srgb, #dbeafe 76%, #fff);
    border-color: color-mix(in srgb, #2563eb 16%, transparent);
}

.event-view-metric-icon--end {
    color: #9333ea;
    background: color-mix(in srgb, #f3e8ff 76%, #fff);
    border-color: color-mix(in srgb, #9333ea 16%, transparent);
}

.event-view-metric-icon--photos {
    color: #0ea5e9;
    background: color-mix(in srgb, #e0f2fe 76%, #fff);
    border-color: color-mix(in srgb, #0ea5e9 16%, transparent);
}

.event-view-metric-value {
    display: block;
    min-width: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.event-view-metric-note,
.event-view-metric-empty {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.event-view-metric-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.event-view-metric-chip {
    display: inline-grid;
    grid-template-columns: minmax(0, auto) auto;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--admin-secondary) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--admin-secondary) 18%, var(--line));
    border-radius: 999px;
}

.event-view-metric-chip strong,
.event-view-metric-chip small {
    min-width: 0;
    padding: 5px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-view-metric-chip strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.event-view-metric-chip small {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.55);
    border-left: 1px solid color-mix(in srgb, var(--admin-secondary) 16%, var(--line));
    font-size: 11px;
    font-weight: 800;
}

.event-view-metric-chip--cabine {
    background: color-mix(in srgb, var(--admin-primary-soft) 64%, #fff);
    border-color: color-mix(in srgb, var(--admin-primary) 22%, var(--line));
}

.event-view-metric-chip--mobile {
    background: color-mix(in srgb, var(--admin-selected-soft) 36%, #fff);
    border-color: color-mix(in srgb, var(--admin-selected) 22%, var(--line));
}

.event-view-metric-chip.is-muted {
    opacity: 0.58;
}

.event-view-photo-distribution {
    min-width: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 12px 12px 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid color-mix(in srgb, var(--admin-primary) 16%, var(--line));
    border-radius: 8px;
}

.event-view-photo-distribution-heading {
    display: grid;
    gap: 10px;
    justify-items: start;
    margin-bottom: 10px;
}

.event-view-photo-distribution-heading h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.event-view-operational-icon--photos {
    color: var(--admin-primary);
    background: color-mix(in srgb, #ccfbf1 76%, #fff);
    border-color: color-mix(in srgb, #0f766e 16%, transparent);
}

.event-view-photo-distribution-body {
    display: grid;
    grid-template-columns: minmax(112px, 140px) minmax(0, 170px);
    gap: 8px;
    align-items: center;
    width: 318px;
    max-width: 100%;
}

.event-view-photo-pie {
    position: relative;
    display: grid;
    place-items: center;
    width: 150px;
    max-width: 100%;
    aspect-ratio: 1;
    align-self: center;
    justify-self: center;
    background: var(--event-view-photo-pie, color-mix(in srgb, var(--admin-primary-soft) 70%, #fff));
    border: 1px solid color-mix(in srgb, var(--admin-primary) 14%, var(--line));
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74), 0 14px 28px rgba(9, 34, 74, 0.08);
}

.event-view-photo-pie::after {
    content: "";
    position: absolute;
    inset: 18%;
    z-index: 0;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 14%, var(--line));
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 7px 18px rgba(9, 34, 74, 0.08);
    pointer-events: none;
}

.event-view-photo-pie-total {
    appearance: none;
    position: absolute;
    inset: 18%;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--text);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 14%, var(--line));
    border-radius: 50%;
    box-shadow: 0 7px 18px rgba(9, 34, 74, 0.08);
    cursor: pointer;
    font: inherit;
}

.event-view-photo-pie-total > span {
    max-width: 70px;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.02;
    text-align: center;
}

.event-view-photo-pie-total:hover,
.event-view-photo-pie-total:focus-visible,
.event-view-photo-pie-total.is-selected {
    border-color: color-mix(in srgb, var(--admin-primary) 34%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--admin-primary-soft) 64%, transparent), 0 9px 20px rgba(9, 34, 74, 0.1);
}

.event-view-photo-pie-total:focus-visible {
    outline: 0;
}

.event-view-photo-pie:not(.is-empty) {
    cursor: pointer;
}

.event-view-photo-pie.is-empty {
    background: repeating-conic-gradient(
        color-mix(in srgb, var(--admin-primary-soft) 62%, #fff) 0 12deg,
        #fff 12deg 24deg
    );
}

.event-view-photo-legend {
    display: grid;
    gap: 0;
    min-width: 0;
    width: 100%;
    align-self: center;
}

.event-view-photo-legend-item {
    appearance: none;
    display: grid;
    grid-template-columns: 10px minmax(0, 90px) auto;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 1px 0;
    color: inherit;
    font: inherit;
    text-align: left;
    background: transparent;
    border-bottom: 1px solid color-mix(in srgb, var(--admin-primary) 18%, var(--line));
    border-left: 0;
    border-right: 0;
    border-top: 0;
    cursor: pointer;
}

.event-view-photo-legend-item.is-highlighted {
    background: color-mix(in srgb, var(--event-view-photo-swatch, var(--admin-primary)) 16%, #fff);
    border-color: color-mix(in srgb, var(--event-view-photo-swatch, var(--admin-primary)) 42%, var(--line));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--event-view-photo-swatch, var(--admin-primary)) 24%, transparent);
}

.event-view-photo-legend-item.is-selected {
    background: color-mix(in srgb, var(--event-view-photo-swatch, var(--admin-primary)) 20%, #fff);
    border-color: color-mix(in srgb, var(--event-view-photo-swatch, var(--admin-primary)) 56%, var(--line));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--event-view-photo-swatch, var(--admin-primary)) 34%, transparent);
}

.event-view-photo-legend-item:hover,
.event-view-photo-legend-item:focus-visible {
    background: color-mix(in srgb, var(--event-view-photo-swatch, var(--admin-primary)) 12%, #fff);
    outline: none;
}

.event-view-photo-legend-item.is-muted {
    opacity: 0.58;
}

.event-view-photo-legend-swatch {
    width: 10px;
    height: 10px;
    background: var(--event-view-photo-swatch, var(--admin-primary));
    border-radius: 999px;
}

.event-view-photo-legend-label {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.event-view-photo-legend-label strong {
    min-width: 0;
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    white-space: nowrap;
}

.event-view-photo-legend-label small,
.event-view-photo-legend-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.event-view-photo-legend-count {
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    justify-self: start;
    text-align: left;
    white-space: nowrap;
}

.event-view-operational-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(400px, 1.35fr) minmax(280px, 0.9fr);
    gap: 10px;
    margin-top: 12px;
}

.event-view-operational-section {
    min-width: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid color-mix(in srgb, var(--admin-primary) 16%, var(--line));
    border-radius: 8px;
}

.event-view-operational-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.event-view-operational-heading h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.event-view-operational-heading span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.event-view-operational-heading-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.event-view-operational-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    color: var(--admin-primary);
    background: color-mix(in srgb, var(--admin-primary-soft) 70%, #fff);
    border: 1px solid color-mix(in srgb, var(--admin-primary) 12%, transparent);
    border-radius: 8px;
}

.event-view-operational-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-view-operational-icon--cabines {
    color: #7c3aed;
    background: color-mix(in srgb, #ede9fe 76%, #fff);
    border-color: color-mix(in srgb, #7c3aed 16%, transparent);
}

.event-view-operational-icon--mobile {
    color: #2563eb;
    background: color-mix(in srgb, #dbeafe 76%, #fff);
    border-color: color-mix(in srgb, #2563eb 16%, transparent);
}

.event-view-operational-icon--live {
    color: #db2777;
    background: color-mix(in srgb, #fce7f3 76%, #fff);
    border-color: color-mix(in srgb, #db2777 16%, transparent);
}

.event-view-operational-list {
    display: grid;
    gap: 7px;
}

.event-view-operational-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 7px 8px 7px 10px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 12%, var(--line));
    border-radius: 8px;
}

.event-view-operational-row.is-guest-group {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    background: #fafafa;
}

.event-view-operational-row.is-guest-group .event-view-operational-main strong {
    display: grid;
    gap: 4px;
    width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.event-view-guest-title-line,
.event-view-guest-meta-line {
    min-width: 0;
    display: inline-flex;
    align-items: center;
}

.event-view-guest-title-line {
    gap: 7px;
}

.event-view-guest-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--admin-secondary);
}

.event-view-guest-title-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-view-guest-meta-line {
    gap: 8px;
}

.event-view-guest-active-count,
.event-view-guest-photo-count,
.event-view-mobile-photo-count,
.event-view-mobile-count-badge,
.event-view-operational-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 3px 6px;
    background: color-mix(in srgb, var(--admin-primary) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--admin-primary) 22%, transparent);
    border-radius: 999px;
    white-space: nowrap;
}

.event-view-guest-active-count svg,
.event-view-guest-photo-count svg,
.event-view-mobile-photo-count svg,
.event-view-mobile-count-badge svg,
.event-view-operational-count-badge svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-view-operational-heading .event-view-operational-count-badge {
    color: var(--admin-primary);
    font-weight: 900;
}

.event-view-operational-heading .event-view-operational-count-badge span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.event-view-operational-row.is-guest-group .event-view-operational-main span {
    line-height: 1.25;
}

.event-view-operational-row.is-mobile-internal .event-view-operational-main strong {
    display: grid;
    gap: 4px;
    width: 100%;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.event-view-mobile-title-line {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.event-view-operational-main .event-view-mobile-title-text {
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-view-mobile-meta-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.event-view-operational-main .event-view-mobile-role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--admin-secondary);
}

.event-view-operational-main .event-view-mobile-role-icon.is-admin {
    color: #991b1b;
}

.event-view-operational-main .event-view-mobile-role-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-view-operational-row.is-guest-group .event-view-operational-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.event-view-operational-row.is-guest-not-started {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 48px;
    align-items: center;
}

.event-view-operational-row.is-guest-not-started .event-view-operational-main {
    gap: 0;
}

.event-view-operational-row.is-guest-not-started .event-view-operational-main strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.event-view-operational-row.is-guest-not-started .event-view-guest-title-line {
    margin-right: auto;
}

.event-view-operational-row.is-guest-not-started .event-view-operational-actions {
    display: none;
}

.event-view-operational-row.is-guest-not-started .event-view-guest-meta-line {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.event-view-mobile-list-heading {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
    padding: 2px 4px 0;
}

.event-view-mobile-list-heading .action-icon-button {
    flex: 0 0 auto;
}

.event-view-mobile-list-title {
    margin-right: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.event-view-operational-row.is-muted {
    opacity: 0.62;
}

.event-view-operational-section--live .event-view-operational-row.is-muted {
    opacity: 1;
}

.event-view-operational-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.event-view-operational-main strong {
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-view-operational-main span,
.event-view-operational-empty {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.event-view-operational-main .event-view-guest-active-count,
.event-view-operational-main .event-view-guest-photo-count,
.event-view-operational-main .event-view-mobile-photo-count {
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 900;
}

.event-view-operational-empty {
    margin: 0;
    padding: 9px 10px;
    background: #fff;
    border: 1px dashed color-mix(in srgb, var(--admin-primary) 18%, var(--line));
    border-radius: 8px;
}

.event-view-live-accordion {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.event-view-live-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px 10px;
    cursor: pointer;
    list-style: none;
}

.event-view-live-summary::-webkit-details-marker {
    display: none;
}

.event-view-live-summary-main {
    position: relative;
    padding-left: 18px;
}

.event-view-live-summary-main::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid var(--muted);
    transition: transform 0.16s ease;
}

.event-view-live-accordion[open] .event-view-live-summary-main::before {
    transform: rotate(90deg);
}

.event-view-live-source-list {
    display: grid;
    gap: 7px;
    padding: 0 8px 8px 28px;
}

.event-view-live-source-row {
    min-height: 42px;
    background: color-mix(in srgb, #fff 92%, var(--admin-primary-soft));
}

.event-view-live-source-row.is-muted .event-view-operational-main {
    opacity: 0.62;
}

.event-view-live-source-row .event-view-operational-main strong {
    font-size: 13px;
}

.event-view-live-source-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    color: inherit;
    font: inherit;
}

.event-view-live-source-title > span:not(.event-view-live-source-title-icon) {
    min-width: 0;
    color: inherit;
    font: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-view-live-source-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--admin-secondary);
}

.event-view-live-source-title-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-view-operational-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.event-view-operational-form {
    display: inline-flex;
    margin: 0;
}

.event-view-operational-actions .action-icon-button {
    position: relative;
    width: 34px;
    height: 34px;
    min-width: 34px;
}

.event-view-operational-actions .action-icon-button svg {
    width: 15px;
    height: 15px;
}

.event-view-operational-actions .event-view-action-corner-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    color: currentColor;
    background: #fff;
    border-radius: 999px;
    pointer-events: none;
}

.event-view-operational-actions .event-view-action-corner-icon svg {
    width: 9px;
    height: 9px;
    stroke-width: 2.8;
}

.admin-page .event-view-operational-actions .button.event-view-history-button.is-active {
    color: #0f766e;
    border-color: color-mix(in srgb, #0f766e 34%, var(--line));
    background: color-mix(in srgb, #ccfbf1 36%, #fff);
}

.admin-page .event-view-operational-actions .button.event-view-action-inactive {
    color: #991b1b;
    border-color: color-mix(in srgb, #ef4444 34%, var(--line));
    background: color-mix(in srgb, #fee2e2 22%, #fff);
}

.admin-page .event-view-operational-actions .button.event-view-action-blocked {
    color: #fff;
    border-color: #7f1d1d;
    background: #8a1f1f;
    opacity: 1;
    cursor: not-allowed;
}

.admin-page .event-view-operational-actions .button.event-view-action-inactive:hover,
.admin-page .event-view-operational-actions .button.event-view-action-inactive:focus-visible {
    color: #7f1d1d;
    border-color: color-mix(in srgb, #ef4444 54%, var(--line));
    background: color-mix(in srgb, #fee2e2 34%, #fff);
}

.event-view-operational-actions .event-view-action-muted::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transform: rotate(45deg);
    pointer-events: none;
}

.event-view-history-panel {
    min-width: 0;
    overflow: hidden;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid color-mix(in srgb, var(--admin-primary) 16%, var(--line));
    border-radius: 8px;
}

.event-view-history-panel[hidden] {
    display: none;
}

.event-view-history-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.event-view-history-heading h3 {
    margin: 0;
    color: var(--admin-primary);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.event-view-history-heading p {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.event-view-history-heading-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.event-view-history-heading-actions .action-icon-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

.event-view-history-heading-actions .action-icon-button svg {
    width: 15px;
    height: 15px;
}

.event-view-history-heading-actions > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.event-view-history-chart {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.event-view-history-bars {
    display: grid;
    grid-template-columns: repeat(var(--event-view-history-bar-count, 24), minmax(0, 1fr));
    align-items: end;
    gap: 4px;
    min-height: 190px;
    padding: 10px 10px 6px;
    background:
        linear-gradient(to top, color-mix(in srgb, var(--line) 72%, transparent) 1px, transparent 1px) 0 0 / 100% 25%,
        #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 12%, var(--line));
    border-radius: 8px;
}

.event-view-history-bar-item {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(132px, 1fr) auto;
    align-items: end;
    gap: 5px;
}

.event-view-history-bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 2px;
    height: var(--event-view-history-bar-size, 0%);
    background: var(--event-view-history-bar-fill, color-mix(in srgb, #2563eb 72%, #fff));
    border: 1px solid var(--event-view-history-bar-border, color-mix(in srgb, #2563eb 28%, transparent));
    border-radius: 5px 5px 2px 2px;
}

.event-view-history-bar span {
    margin-top: -17px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.event-view-history-bar-item:nth-child(n + 9) .event-view-history-bar {
    --event-view-history-bar-fill: color-mix(in srgb, #f59e0b 68%, #fff);
    --event-view-history-bar-border: color-mix(in srgb, #f59e0b 30%, transparent);
}

.event-view-history-bar-item:nth-child(n + 13) .event-view-history-bar {
    --event-view-history-bar-fill: color-mix(in srgb, #ef4444 68%, #fff);
    --event-view-history-bar-border: color-mix(in srgb, #ef4444 30%, transparent);
}

.event-view-history-bar-item:nth-child(n + 21) .event-view-history-bar {
    --event-view-history-bar-fill: color-mix(in srgb, #10b981 68%, #fff);
    --event-view-history-bar-border: color-mix(in srgb, #10b981 30%, transparent);
}

.event-view-history-bar-item small {
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.event-view-history-bar-item small.is-soft {
    opacity: 0;
}

.event-view-history-summary {
    display: flex;
    justify-content: flex-end;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.event-view-gallery-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--admin-primary) 12%, var(--line));
}

.event-view-gallery-heading {
    align-items: flex-start;
    min-width: 0;
}

.event-view-gallery-heading > div {
    min-width: 0;
}

.event-view-gallery-tools {
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
}

.gallery-card-grid.event-view-operational-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 200px));
    grid-auto-rows: auto;
    align-items: stretch;
    justify-content: start;
    padding-inline: 0;
}

.event-view-operational-gallery-grid .gallery-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.08);
}

.event-view-operational-gallery-grid .gallery-thumb {
    flex: 0 0 180px;
    align-self: stretch;
    justify-self: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 180px;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.event-view-operational-gallery-grid .gallery-thumb.is-format-16-9 {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
}

.event-view-operational-gallery-grid .gallery-thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

.event-view-operational-gallery-grid .gallery-meta {
    flex: 0 0 auto;
}

.event-view-management-notice,
.event-view-management-error {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1000;
    width: min(420px, calc(100vw - 32px));
    margin: 0;
    padding: 14px 18px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 22px 48px rgba(9, 34, 74, 0.18);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.event-view-management-notice.is-hiding,
.event-view-management-error.is-hiding {
    opacity: 0;
    transform: translate(-50%, -44%);
    pointer-events: none;
}

.event-view-management-notice {
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.event-view-management-error {
    color: #7f1d1d;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.event-view-layout {
    display: grid;
    grid-template-columns: minmax(360px, 28%) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.event-view-details-panel {
    margin-top: 18px;
}

.event-view-details-heading {
    margin-bottom: 12px;
}

.event-view-details-panel > .event-view-layout {
    align-items: start;
    margin: 0;
}

.event-view-details-panel .event-view-detail-section {
    align-self: start;
}

.event-view-details-panel .event-view-layout > * {
    min-width: 0;
}

.event-view-detail-heading {
    margin-bottom: 8px;
}

.event-view-detail-heading h3 {
    font-size: 12px;
}

.event-view-layout--model {
    grid-template-columns: minmax(0, 1fr);
}

.event-view-layout > .admin-panel {
    min-width: 0;
}

.event-view-card {
    border-color: color-mix(in srgb, var(--admin-primary) 16%, var(--line));
    box-shadow: 0 18px 42px rgba(9, 34, 74, 0.08);
}

.event-view-identity-panel {
    background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--admin-primary-soft) 45%, #fff) 100%);
}

.event-view-model-image-panel {
    background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--admin-primary-soft) 45%, #fff) 100%);
}

.event-view-details-panel .event-view-identity-panel {
    background: rgba(255, 255, 255, 0.9);
}

.event-view-operational-icon--details-logo {
    color: #db2777;
    background: color-mix(in srgb, #fce7f3 76%, #fff);
    border-color: color-mix(in srgb, #db2777 16%, transparent);
}

.event-view-operational-icon--details-dates {
    color: #2563eb;
    background: color-mix(in srgb, #dbeafe 76%, #fff);
    border-color: color-mix(in srgb, #2563eb 16%, transparent);
}

.event-view-operational-icon--details-collections {
    color: #db2777;
    background: color-mix(in srgb, #fce7f3 76%, #fff);
    border-color: color-mix(in srgb, #db2777 16%, transparent);
}

.event-view-model-image-frame {
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(37, 99, 235, 0.16)),
        #f8fafc;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 24%, var(--line));
    border-radius: 8px;
    aspect-ratio: 16 / 9;
}

.event-view-model-image-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.event-view-model-image-frame svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: var(--admin-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-view-dates-panel,
.event-view-cabine-panel {
    grid-column: auto;
}

.event-view-collections-panel {
    grid-column: auto;
}

.event-view-identity-body {
    display: grid;
    grid-template-columns: minmax(140px, 185px) minmax(180px, 1fr);
    gap: 18px;
    align-items: start;
}

.event-view-logo-frame {
    width: 100%;
    max-width: 185px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 24%, var(--line));
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.event-view-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-view-logo-frame.is-empty {
    background: color-mix(in srgb, var(--admin-primary-soft) 72%, #fff);
}

.event-view-logo-frame span,
.event-view-empty {
    color: var(--muted);
    font-weight: 800;
}

.event-view-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin: 0;
}

.event-view-facts-compact {
    display: contents;
}

.event-view-checklist-block h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 16px;
}

.event-view-checklist-group {
    display: grid;
    gap: 4px;
    align-content: start;
    align-self: start;
}

.event-view-checklist-group + .event-view-checklist-group {
    margin-top: 10px;
}

.event-view-checklist-columns > .event-view-checklist-group + .event-view-checklist-group {
    margin-top: 0;
}

.event-view-checklist-group h4 {
    margin: 0;
    color: var(--admin-primary);
    font-size: 14px;
    font-weight: 800;
}

.event-view-checklist-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px 24px;
    align-items: start;
}

.event-view-cabine-panel .event-view-checklist-columns {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: 14px;
}

.event-view-collections-panel .event-view-checklist-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-view-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-view-checklist li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 23px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.event-view-checklist li > .event-view-checklist-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #fff;
    background: var(--admin-secondary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.event-view-checklist-icon svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-view-checklist li > .event-view-checklist-icon.is-client-origin {
    color: #b01868;
    background: transparent;
    border-radius: 0;
}

.event-view-checklist li > .event-view-checklist-icon.is-system-origin {
    color: var(--admin-secondary);
    background: transparent;
    border-radius: 0;
}

.event-view-checklist .event-view-checklist-text {
    display: inline;
    min-width: 0;
    width: auto;
    height: auto;
    flex: initial;
    color: inherit;
    background: transparent;
    border-radius: 0;
    font-size: inherit;
    font-weight: 400;
}

.event-view-checklist-value {
    color: var(--admin-primary);
    font-weight: 400;
    white-space: nowrap;
}

.event-view-warning-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    font-size: 1.2em;
    line-height: 1;
    vertical-align: -0.1em;
}

.event-view-checklist li.is-inactive {
    color: #8a1f1f;
}

.event-view-checklist li.is-inactive .event-view-checklist-icon {
    background: var(--admin-primary);
}

.event-view-facts div {
    padding: 14px;
    background: color-mix(in srgb, var(--admin-primary-soft) 22%, #fff);
    border: 1px solid color-mix(in srgb, var(--admin-primary) 16%, var(--line));
    border-radius: 8px;
}

.event-view-facts dt,
.event-view-facts dd {
    margin: 0;
}

.event-view-facts dt {
    color: var(--admin-primary);
    font-size: 13px;
    font-weight: 800;
}

.event-view-facts dd {
    margin-top: 8px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.event-view-message-fact {
    grid-column: 1 / -1;
    background: color-mix(in srgb, var(--admin-selected-soft) 38%, #fff) !important;
    border-color: color-mix(in srgb, var(--admin-selected) 28%, var(--line)) !important;
}

@media (max-width: 1140px) {
    .event-view-operational-grid {
        grid-template-columns: minmax(280px, 0.9fr) minmax(400px, 1.35fr);
    }

    .event-view-operational-section--live {
        grid-column: 1 / -1;
    }

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

    .event-view-gallery-heading {
        flex-wrap: wrap;
    }

    .event-view-gallery-tools {
        justify-content: flex-start;
    }

    .gallery-card-grid.event-view-operational-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 190px));
        gap: 12px;
    }
}

@media (max-width: 1080px) {
    .event-view-metrics-grid.event-view-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .event-view-cabine-panel .event-view-checklist-columns,
    .event-view-collections-panel .event-view-checklist-columns {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 760px) {
    .event-view-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .event-view-management-grid > .event-view-metrics-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .event-view-photo-distribution-body {
        grid-template-columns: 132px minmax(150px, 210px);
    }

    .event-view-photo-pie {
        width: 132px;
    }

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

    .model-view-hero-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .model-view-hero-thumb {
        width: 112px;
    }

    .event-view-identity-panel,
    .event-view-dates-panel,
    .event-view-cabine-panel,
    .event-view-collections-panel {
        grid-column: auto;
        grid-row: auto;
    }

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

@media (max-width: 845px) {
    .event-view-operational-grid {
        grid-template-columns: 1fr;
    }

    .event-view-operational-section--live {
        grid-column: auto;
    }

    .gallery-card-grid.event-view-operational-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 620px) {
    .event-editor-card-heading {
        padding-right: 0;
    }

    .event-editor-card .event-form-action-row {
        position: static;
        justify-content: flex-start;
    }

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

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

    .event-view-hero-main > div,
    .event-view-actions,
    .event-view-metrics-grid.event-view-hero-metrics {
        grid-column: 1;
    }

    .event-view-actions {
        grid-row: 3;
        justify-self: start;
        justify-content: flex-start;
    }

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

    .event-view-management-grid > .event-view-metrics-grid {
        grid-template-columns: 1fr;
    }

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

    .event-view-photo-distribution-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-view-photo-distribution-heading {
        display: grid;
        justify-content: stretch;
    }

    .event-view-photo-pie {
        width: 124px;
    }

    .event-view-photo-legend {
        max-width: 340px;
        width: 100%;
        justify-self: center;
    }

    .event-view-metric-card--wide {
        grid-column: auto;
    }

    .event-view-metric-chip {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
    }

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

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

    .event-view-history-heading {
        display: grid;
    }

    .event-view-history-chart {
        overflow-x: auto;
    }

    .event-view-history-bars {
        min-width: 640px;
    }

    .event-view-live-source-list {
        padding-left: 10px;
    }

    .event-view-operational-actions {
        justify-content: flex-start;
    }
}

.admin-accordion {
    gap: 0;
}

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

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

.admin-accordion summary::after {
    content: "";
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.06);
    line-height: 1;
    background:
        linear-gradient(58deg, transparent 41%, currentColor 42% 59%, transparent 60%) 17px 15px / 8px 8px no-repeat,
        linear-gradient(-58deg, transparent 41%, currentColor 42% 59%, transparent 60%) 22px 15px / 8px 8px no-repeat,
        linear-gradient(58deg, transparent 41%, currentColor 42% 59%, transparent 60%) 17px 21px / 8px 8px no-repeat,
        linear-gradient(-58deg, transparent 41%, currentColor 42% 59%, transparent 60%) 22px 21px / 8px 8px no-repeat,
        #fff;
    transition: transform 0.18s ease;
}

.admin-accordion[open] > summary::after {
    transform: rotate(180deg);
}

.admin-accordion--create summary::after {
    content: "+";
    background: #fff;
    font-size: 24px;
    font-weight: 900;
    transform: none;
}

.admin-accordion--create[open] > summary::after {
    content: "-";
}

.admin-accordion--locked-open summary {
    cursor: default;
}

.admin-accordion--locked-open summary::after {
    display: none;
}

.admin-accordion summary strong,
.admin-accordion summary small {
    display: block;
}

.admin-accordion summary strong {
    color: var(--text);
    font-size: 22px;
}

.admin-accordion summary small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.admin-accordion > .admin-form {
    margin-top: 18px;
}

.admin-form {
    display: grid;
    gap: 14px;
}

.event-form {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    column-gap: 16px;
    align-items: start;
}

.event-form > .form-row,
.event-form > .event-field-wide,
.event-form > .toggle-list,
.event-form > .primary-action,
.event-form > .card-action-row,
.event-form > .text-link {
    grid-column: 1 / -1;
}

.event-form .choice-options {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-form > label,
.event-form .form-row > label,
.event-form .event-dates-body > label {
    gap: 10px;
}

.event-form .choice-group {
    gap: 14px;
}

.event-form .choice-group > legend {
    margin-bottom: 6px;
    line-height: 1.25;
}

.event-form .event-logos-fieldset > legend {
    font-size: 24px;
}

.event-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.event-options-grid > .choice-group {
    padding: 0;
}

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

.event-form-action-row {
    margin-bottom: 0;
}

.event-editor-card {
    position: relative;
}

.event-editor-card-heading {
    padding-right: 108px;
}

.event-editor-card .event-form-action-row {
    position: absolute;
    top: 22px;
    right: 22px;
}

.event-status-toggle:not(:has(input:checked)) {
    color: rgba(23, 32, 51, 0.70);
    background: #fff;
    border-color: var(--line);
}

.event-status-toggle:has(input:checked) {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 14px 28px rgba(11, 77, 168, 0.22);
}

.event-cabine-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.event-cabine-options > legend {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.event-funds-section,
.event-collapse-section {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.event-funds-head,
.event-collapse-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.event-funds-head strong,
.event-collapse-head strong {
    color: var(--text);
    font-size: 16px;
}

.event-funds-toggle,
.event-collapse-toggle {
    width: 48px;
    height: 44px;
}

.event-funds-body,
.event-collapse-body {
    display: grid;
    gap: 12px;
    padding: 0 12px 12px;
}

.event-funds-body > .choice-options {
    grid-template-columns: 1fr;
}

.event-dates-body {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    column-gap: 20px;
    row-gap: 16px;
    align-items: start;
}

.event-dates-body:has(.event-date-field--start-date) .event-date-field--start-date {
    grid-column: 1;
    grid-row: 1;
}

.event-dates-body:has(.event-date-field--start-date) .event-date-field--start-time {
    grid-column: 2;
    grid-row: 1;
}

.event-dates-body:has(.event-date-field--start-date) .event-date-field--end-date {
    grid-column: 1;
    grid-row: 2;
}

.event-dates-body:has(.event-date-field--start-date) .event-date-field--end-time {
    grid-column: 2;
    grid-row: 2;
}

.event-dates-body:has(.event-date-field--start-date) .event-date-field--retention {
    grid-column: 1;
    grid-row: 3;
}

.event-date-field-hint {
    display: block;
}

.event-dates-body:has(.event-date-field--start-date) .event-date-field-hint {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-top: 4px;
}

.event-settings-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    align-items: start;
}

.event-settings-body > * {
    min-width: 0;
}

.event-settings-body > .event-field-wide {
    grid-column: 1 / -1;
}

.event-settings-body .field-hint {
    font-weight: 600;
}

.event-settings-toggle-list {
    grid-column: 1 / -1;
}

.event-settings-field-wide {
    grid-column: auto;
    align-self: start;
}

.event-settings-inline-control {
    align-content: start;
}

.admin-form .event-settings-inline-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--admin-primary-dark);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
}

.admin-form .event-settings-inline-line select {
    color: var(--text);
}

.admin-form .event-settings-inline-line input[type="checkbox"] {
    width: 22px;
    min-height: 22px;
    padding: 0;
    flex: 0 0 auto;
}

.admin-form .event-settings-inline-line select {
    width: auto;
    min-width: 50px;
    min-height: 32px;
    padding: 0 20px 0 7px;
    flex: 0 0 auto;
}

.event-settings-field-wide input {
    min-height: 54px;
}

.event-final-message-settings {
    grid-column: 2;
}

.event-settings-message-field {
    display: block;
}

.event-settings-message-field input {
    width: min(260px, 100%);
    min-height: 44px;
}

.event-final-screen-settings {
    gap: 12px;
    min-width: 0;
}

.event-final-screen-settings .field-hint {
    overflow-wrap: anywhere;
}

.event-final-screen-settings .choice-extra {
    min-width: 0;
    overflow: hidden;
}

.event-final-screen-settings input {
    max-width: 100%;
}

.event-funds-body[hidden],
.event-collapse-body[hidden] {
    display: none;
}

.event-fund-choice > span {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-weight: 700;
}

.event-fund-choice strong {
    color: var(--text);
}

.event-fund-choice small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.event-template-category-picker {
    display: grid;
    gap: 12px;
}

.event-validation-missing {
    border-color: #efb8b8 !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 1px rgba(138, 31, 31, 0.05);
}

.event-form label.event-validation-missing,
.event-form fieldset.event-validation-missing {
    padding: 10px;
    border: 1px solid #efb8b8;
    border-radius: 8px;
}

.event-form label.event-validation-missing > span:first-child,
.event-form fieldset.event-validation-missing > legend {
    color: #9b3a3a;
}

.event-form label.event-validation-missing input,
.event-form label.event-validation-missing select,
.event-form fieldset.event-validation-missing select {
    border-color: #e5a4a4;
    background: #fffafa;
}

.event-form .event-logo-upload-card.event-validation-missing {
    border-color: #efb8b8;
    background: #fff8f8;
}

.event-form .event-logo-upload-card.event-validation-missing .logo-preview-frame {
    border-color: #e5a4a4;
    background: #fffafa;
}

.event-template-category-list {
    display: grid;
    gap: 10px;
}

.event-template-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.event-template-category-row .action-icon-button {
    width: 52px;
    height: 48px;
}

.event-template-category-picker > .action-icon-button {
    justify-self: start;
}

.event-form > .toggle-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-form {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    column-gap: 16px;
    align-items: start;
}

.client-form > .form-row,
.client-form > .client-field-wide {
    grid-column: 1 / -1;
}

.client-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-form label,
.filter-bar label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.field-hint {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 16px;
}

.admin-form textarea {
    min-height: 138px;
    padding: 12px;
    resize: vertical;
    line-height: 1.45;
}

.admin-form input[type="range"] {
    padding: 0;
    accent-color: var(--primary);
}

.admin-form hr {
    width: 100%;
    height: 1px;
    margin: 6px 0;
    border: 0;
    background: var(--line);
}

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

.countdown-rule-main-row {
    display: grid;
    grid-template-columns: minmax(76px, 0.55fr) minmax(76px, 0.55fr) minmax(88px, 0.65fr) minmax(88px, 0.65fr) minmax(220px, 1.7fr) auto;
    gap: 12px;
    align-items: end;
}

.countdown-rule-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.countdown-rule-active-toggle:not(:has(input:checked)) {
    color: rgba(23, 32, 51, 0.70);
    background: #fff;
    border-color: var(--line);
}

.countdown-rule-active-toggle:has(input:checked) {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 14px 28px rgba(11, 77, 168, 0.22);
}

.plan-info-readonly {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.plan-info-readonly div {
    display: grid;
    gap: 8px;
    min-height: 86px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.plan-info-readonly span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-info-readonly strong {
    color: var(--text);
    font-size: 22px;
    line-height: 1.15;
}

.choice-group {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: 0;
}

.choice-group legend {
    padding: 0;
    color: var(--muted);
    font-weight: 700;
}

.event-form label > span:first-child,
.event-form .choice-group > legend,
.event-form .event-logo-preview-head > strong,
.event-form .event-logo-preview-card > span,
.event-form .template-upload-guide-title {
    color: var(--admin-primary-dark);
}

.choice-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.choice-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px;
    color: var(--text) !important;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.choice-option:has(input:checked) {
    border-color: var(--primary);
    background: #f7fbff;
}

.choice-option input {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    margin: 0;
    accent-color: var(--primary);
}

.choice-extra {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.choice-extra[hidden] {
    display: none;
}

.inline-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    color: var(--text) !important;
}

.inline-toggle input {
    width: 22px;
    height: 22px;
    min-height: 0;
    padding: 0;
    accent-color: var(--primary);
}

.form-actions-row {
    display: grid;
    gap: 12px;
}

.form-success {
    margin: 18px 0 0;
    padding: 14px 16px;
    color: #135f38;
    background: #ecfff4;
    border: 1px solid #b9f0cf;
    border-radius: 8px;
    font-weight: 700;
}

.filter-bar {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.filter-bar label {
    width: min(420px, 100%);
}

.countdown-filter {
    justify-content: flex-start;
}

.countdown-warnings {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    color: #815314;
    background: #fff7e6;
    border: 1px solid #f6d391;
    border-radius: 8px;
    font-weight: 700;
}

.countdown-warnings p {
    margin: 0;
}

.background-settings-grid {
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
}

.background-settings-form {
    gap: 18px;
}

.settings-group {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.settings-group[hidden] {
    display: none;
}

.settings-group h3 {
    margin: 0;
}

.background-test-stage {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.background-test-picker {
    display: grid;
    gap: 8px;
    width: min(430px, 100%);
}

.background-test-picker span {
    color: var(--muted);
    font-weight: 800;
}

.background-test-picker select {
    width: 100%;
}

.table-actions form {
    margin: 0;
}

.link-button {
    padding: 0;
    color: var(--primary);
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

.admin-table th,
.admin-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.admin-table th {
    color: var(--muted);
    background: #f8fafd;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.admin-table td span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.table-main-link {
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
}

.table-main-link:hover,
.table-main-link:focus-visible {
    color: var(--primary);
}

.public-link-cell {
    display: grid;
    gap: 6px;
    min-width: 150px;
}

.public-link-cell span {
    margin: 0;
}

.table-actions {
    white-space: nowrap;
}

.events-table th:nth-last-child(-n+2) {
    min-width: 132px;
}

.events-table th:first-child,
.events-table td:first-child {
    width: 28%;
    min-width: 320px;
}

.events-table th:nth-last-child(-n+6),
.events-table td:nth-last-child(-n+6) {
    text-align: center;
}

.events-table th:first-child,
.events-table td:first-child {
    text-align: left;
}

.events-table td.table-actions {
    text-align: center;
}

.events-table td.table-actions > .button,
.events-table td.table-actions > .action-icon-button,
.events-table td.table-actions > form {
    margin: 0 4px;
}

.events-table td.table-actions > form {
    display: inline-block;
    vertical-align: middle;
}

.event-photos-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-table td .event-photos-count {
    display: inline;
    margin: 0;
    color: var(--text);
    font-size: inherit;
}

.table-action-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.table-action-group + .table-action-group {
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
}

.event-models-anchor {
    display: block;
}

.event-models-anchor,
.admin-accordion,
.event-models-panel,
.event-editor-card {
    scroll-margin-top: 96px;
}

.client-mirror-page .event-models-anchor,
.client-mirror-page .admin-accordion,
.client-mirror-page .event-models-panel,
.client-mirror-page .event-editor-card {
    scroll-margin-top: 160px;
}

.event-model-scope-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin: 14px 0 18px;
}

.event-models-panel > .section-heading-row > div,
.event-editor-card > .section-heading-row > div {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-page .event-model-create-shortcut.action-icon-button {
    flex: 0 0 auto;
    color: var(--admin-primary);
}

.event-model-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 200px));
    grid-auto-rows: 1fr;
    gap: 14px;
    align-items: stretch;
    justify-content: space-between;
    padding-inline: 12px;
    margin-top: 16px;
}

.event-model-card-grid:has(> .event-model-card:nth-child(1):nth-last-child(-n+4)) {
    justify-content: flex-start;
    gap: 30px;
}

.event-model-card {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 14px;
    height: 100%;
    min-height: 0;
    padding: 0 14px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
    overflow: hidden;
}

.event-model-card-header {
    display: flex;
    align-items: center;
    margin: 0 -14px;
    padding: 12px 16px;
    background: var(--admin-selected-gradient);
    border-bottom: 1px solid transparent;
}

.event-model-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.event-model-card h3 {
    margin: 0;
    max-width: 100%;
    color: #fff;
    font-size: 16px;
    line-height: 1.15;
}

.event-model-card-thumb {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(37, 99, 235, 0.18)),
        #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.14);
}

.event-model-card-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.event-model-card-thumb svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--admin-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-model-origin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 6px 14px rgba(23, 32, 51, 0.08);
    pointer-events: none;
}

.admin-page .event-model-origin-icon.action-icon-button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    border-radius: 9px;
}

.event-model-origin-icon.is-system {
    color: var(--admin-secondary);
}

.event-model-origin-icon.is-client {
    color: #9f1f5f;
}

.event-model-origin-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-model-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.event-model-meta-item {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 9px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    align-content: start;
}

.event-model-meta-item strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    line-height: 1.15;
}

.event-model-info-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: var(--admin-primary);
}

.event-model-info-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-model-collections {
    display: grid;
    gap: 8px;
}

.event-model-collection {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 9px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.event-model-collection h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--text);
    font-size: 12px;
    line-height: 1.2;
}

.event-model-collection p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.event-model-category-list {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-model-category-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.event-model-category-icon {
    display: inline-flex;
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.event-model-category-icon.is-system {
    color: var(--admin-secondary);
}

.event-model-category-icon.is-client {
    color: #9f1f5f;
}

.event-model-category-icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-model-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    align-self: end;
}

.event-model-card-actions form {
    margin: 0;
}

.admin-page .event-model-card-actions .action-icon-button {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    border-radius: 12px;
}

.admin-page .event-model-card-actions .action-icon-button svg {
    width: 15px;
    height: 15px;
}

.event-model-empty {
    margin: 16px 0 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-weight: 700;
}

.event-history-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 200px));
    grid-auto-rows: 1fr;
    gap: 14px;
    align-items: stretch;
    justify-content: space-between;
    padding-inline: 12px;
    margin-top: 18px;
}

.event-history-card-grid:has(> .event-history-card:nth-child(1):nth-last-child(-n+4)) {
    justify-content: flex-start;
    gap: 30px;
}

.event-active-card-grid:has(> .event-active-install-card) {
    justify-content: flex-start;
    gap: 30px;
}

.event-history-note {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.event-history-note strong {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
}

.event-history-note ul {
    display: grid;
    gap: 1px;
    margin: 0;
    padding-left: 18px;
}

.event-history-filter {
    flex: 0 0 auto;
    align-self: flex-start;
    margin-left: auto;
}

.event-history-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 9px;
    height: 100%;
    min-height: 0;
    padding: 4px;
    background: #f4f8fc;
    border: 1px solid #b9cbe0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.event-active-card {
    grid-template-rows: auto 1fr auto;
}

.event-active-card .event-history-card-title {
    background: var(--admin-selected-gradient);
}

.event-history-card-title {
    display: block;
    min-width: 0;
    color: #fff;
    background: #0b8a63;
    font-size: 14px;
    line-height: 1.12;
    padding: 7px 8px;
    margin: -4px -4px 4px;
    border-radius: 8px 8px 4px 4px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-history-card.is-expired .event-history-card-title {
    background: #991b1b;
}

.event-history-card-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 0;
}

.event-history-card-meta div {
    display: grid;
    grid-template-columns: minmax(62px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 8px 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: left;
}

.event-history-card-meta dt,
.event-history-card-meta dd {
    margin: 0;
}

.event-history-card-meta dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-history-card-meta dd {
    color: var(--text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
}

.event-history-card-meta .event-code-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.event-history-card-meta .event-code-value > span {
    font-weight: 800;
}

.event-code-refresh-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.event-history-card-meta .event-live-meta {
    align-items: start;
}

.event-history-card-meta .event-live-meta dd {
    display: contents;
}

.event-live-screen-count {
    grid-column: 2;
    justify-self: end;
    white-space: normal;
}

.event-live-screen-list {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}

.event-live-screen-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    min-height: 28px;
    padding: 4px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.event-live-screen-row[open] {
    background: #f4f8fd;
}

.event-live-screen-code {
    color: #172033;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.event-live-screen-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 20px;
    color: #172033;
    cursor: pointer;
    list-style: none;
}

.event-live-screen-summary::-webkit-details-marker {
    display: none;
}

.event-live-screen-summary::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #64748b;
    transition: transform 0.16s ease;
}

.event-live-screen-row[open] .event-live-screen-summary::before {
    transform: rotate(90deg);
}

.event-live-screen-spacer {
    flex: 1;
}

.event-source-chip-list {
    display: grid;
    gap: 4px;
    width: 100%;
}

.event-source-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
    border: 1px solid #d7deea;
    border-radius: 999px;
    padding: 4px 7px;
    color: #172033;
    background: #eef2f7;
    font-size: 9px;
    line-height: 1;
}

.event-source-chip strong,
.event-source-chip small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-source-chip strong {
    font-weight: 900;
}

.event-source-chip small {
    flex-shrink: 0;
    color: #647086;
    font-weight: 900;
}

.event-source-chip--cabine {
    border-color: #b8d5ff;
    background: #e8f1ff;
}

.event-source-chip--mobile {
    border-color: #d7deea;
}

.event-source-chip.is-muted {
    opacity: 0.6;
}

.event-live-source-filter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 3px;
    max-width: 100%;
}

.event-live-screen-action-form {
    display: inline-flex;
    margin: 0;
}

.event-live-source-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    border-radius: 999px;
    overflow: hidden;
}

.event-live-source-control .event-live-screen-action-form {
    min-width: 0;
}

.event-live-source-chip,
.event-live-source-qr-chip {
    min-width: 24px;
    height: 20px;
    padding: 0 7px;
    color: #475569;
    background: #eef2f7;
    border: 1px solid #d7deea;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.event-live-source-chip {
    width: 100%;
    max-width: none;
    text-align: left;
    border-radius: 999px 0 0 999px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-live-source-qr-chip {
    width: 34px;
    min-width: 26px;
    border-left: 0;
    border-radius: 0 999px 999px 0;
    font-size: 8px;
}

.event-live-source-chip.is-active {
    color: #ffffff;
    background: #1167d8;
    border-color: #1167d8;
}

.event-live-source-qr-chip.is-active {
    color: #ffffff;
    background: #ec1364;
    border-color: #ec1364;
}

.event-live-source-chip:hover,
.event-live-source-chip:focus-visible,
.event-live-source-qr-chip:hover,
.event-live-source-qr-chip:focus-visible {
    color: #ffffff;
    background: #0f4faf;
    border-color: #0f4faf;
    outline: 0;
}

.event-live-source-qr-chip.is-active:hover,
.event-live-source-qr-chip.is-active:focus-visible {
    background: #be0f51;
    border-color: #be0f51;
}

.event-live-screen-delete {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    align-self: center;
    padding: 0;
    color: #991b1b;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.event-live-screen-delete svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-live-screen-delete:hover,
.event-live-screen-delete:focus-visible {
    color: #7f1d1d;
    background: #fee2e2;
    outline: 0;
}

.event-live-screen-share {
    width: 28px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0;
    color: #2563eb;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.event-live-screen-row.is-share-disabled .event-live-screen-share {
    color: #991b1b;
}

.event-live-screen-share svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-live-screen-share:hover,
.event-live-screen-share:focus-visible {
    color: #1d4ed8;
    background: #dbeafe;
    outline: 0;
}

.event-live-screen-row.is-share-disabled .event-live-screen-share:hover,
.event-live-screen-row.is-share-disabled .event-live-screen-share:focus-visible {
    color: #7f1d1d;
    background: #fee2e2;
}

.event-code-copy-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    padding: 0;
    color: #2563eb;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.event-code-copy-action svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #2563eb;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-code-copy-action:hover,
.event-code-copy-action:focus-visible {
    color: #1d4ed8;
    background: #fff;
    outline: none;
}

.event-code-copy-action:hover svg,
.event-code-copy-action:focus-visible svg {
    stroke: #1d4ed8;
}

.event-code-copy-action:focus-visible {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.event-history-actions {
    align-items: center;
    flex-wrap: wrap;
}

.event-history-table th:nth-child(2),
.event-history-table th:nth-child(3),
.event-history-table th:nth-child(4),
.event-history-table td:nth-child(2),
.event-history-table td:nth-child(3),
.event-history-table td:nth-child(4) {
    text-align: center;
}

.event-history-table td.event-history-actions {
    text-align: right;
    min-width: 220px;
}

.event-expired-value {
    color: #991b1b !important;
}

.event-history-card-meta .event-expired-value {
    width: 100%;
    text-align: center;
}

.event-history-card.is-expired .event-history-card-expiry {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.event-history-action-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.event-history-action-form {
    display: inline-flex;
    margin: 0;
}

.event-history-card .event-history-action-row::after {
    content: none;
}

.event-history-card .event-history-action-row > .icon-button--danger,
.event-history-card .event-history-action-row > .event-history-copy-action,
.event-history-card .event-history-action-row > .event-history-action-form:has(.icon-button--danger),
.event-history-card .event-history-action-row > .event-history-action-form:has([name="action"][value="disable_gallery_share"]) {
    order: 2;
}

.event-active-card .event-history-action-row > .event-active-deactivate-action {
    margin-left: auto;
}

.event-history-card .action-icon-button {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 12px;
    line-height: 1;
}

.event-history-card .action-icon-button svg {
    width: 13px;
    height: 13px;
}

.event-error-modal,
.event-unsaved-modal,
.permanent-delete-modal,
.deactivate-event-modal,
.cabine-install-modal,
.live-add-modal,
.mobile-join-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(16, 24, 39, 0.56);
}

.event-error-modal[hidden],
.event-unsaved-modal[hidden],
.permanent-delete-modal[hidden],
.deactivate-event-modal[hidden],
.cabine-install-modal[hidden],
.live-add-modal[hidden],
.mobile-join-modal[hidden] {
    display: none;
}

.event-error-card,
.event-unsaved-card,
.permanent-delete-card,
.deactivate-event-card,
.cabine-install-card,
.live-add-card,
.mobile-join-card {
    width: min(560px, 100%);
    display: grid;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(16, 24, 39, 0.26);
}

.event-error-card h2,
.event-error-card p,
.event-unsaved-card h2,
.event-unsaved-card p,
.permanent-delete-card h2,
.permanent-delete-card p,
.deactivate-event-card h2,
.deactivate-event-card p,
.cabine-install-card h2,
.cabine-install-card p,
.live-add-card h2,
.live-add-card p,
.mobile-join-card h2,
.mobile-join-card p {
    margin: 0;
}

.event-error-card h2,
.event-unsaved-card h2,
.permanent-delete-card h2,
.deactivate-event-card h2,
.cabine-install-card h2 {
    color: #991b1b;
}

.event-error-card p,
.event-unsaved-card p,
.permanent-delete-card p,
.deactivate-event-card p {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.cabine-install-card p {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.cabine-install-card h2 {
    color: var(--admin-secondary);
}

.cabine-install-card,
.live-add-card,
.mobile-join-card {
    border-color: var(--line);
}

.live-add-card h2,
.mobile-join-card h2 {
    color: var(--admin-secondary);
}

.live-add-card p,
.mobile-join-card p {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.live-add-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

.live-add-link-row input,
.live-add-code-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    outline: none;
}

.live-add-link-row input[readonly] {
    color: var(--muted);
    background: #f8fafc;
}

.live-add-code-field,
.mobile-join-nickname-field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.mobile-join-nickname-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    outline: none;
}

.live-add-code-field input:focus,
.mobile-join-nickname-field input:focus {
    border-color: var(--admin-secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.mobile-join-qr {
    width: min(280px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    justify-self: center;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.mobile-join-qr img,
.mobile-join-qr canvas {
    width: 100%;
    height: 100%;
}

.mobile-join-note {
    text-align: center;
}

.event-error-list {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.event-error-list ul {
    margin: 0;
    padding-left: 20px;
}

.permanent-delete-event,
.deactivate-event-name {
    color: var(--text) !important;
}

.permanent-delete-confirm {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    color: var(--text);
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-weight: 400;
    line-height: 1.35;
}

.permanent-delete-confirm input {
    margin-top: 3px;
}

.event-error-actions,
.event-unsaved-actions,
.permanent-delete-actions,
.deactivate-event-actions,
.cabine-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cabine-install-actions .button {
    gap: 8px;
}

.cabine-install-actions .button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cabine-install-more {
    margin: -4px 0 0;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
}

.cabine-install-more a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cabine-install-more a:hover,
.cabine-install-more a:focus-visible {
    color: var(--admin-secondary);
}

.cabine-install-steps {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 24px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.42;
}

.cabine-open-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(16, 24, 39, 0.52);
}

.cabine-open-modal[hidden] {
    display: none;
}

.cabine-open-card {
    width: min(900px, 100%);
    display: grid;
    gap: 20px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(16, 24, 39, 0.24);
}

.cabine-open-head {
    display: grid;
    gap: 8px;
}

.cabine-open-head h2,
.cabine-open-head p {
    margin: 0;
}

.cabine-open-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cabine-open-options form {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    min-height: 310px;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cabine-open-options form:first-child {
    background: var(--admin-secondary-soft);
    border-color: rgba(37, 99, 235, 0.24);
}

.cabine-open-options form:last-child {
    background: var(--admin-primary-soft);
    border-color: rgba(236, 72, 153, 0.24);
}

.cabine-open-options strong {
    color: var(--text);
    font-size: 18px;
}

.cabine-open-options p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 700;
}

.admin-page .cabine-open-options .button,
.admin-page .cabine-open-options .primary-action.small {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
}

.admin-page .cabine-open-options .button {
    color: #ffffff;
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
    box-shadow: 0 14px 28px var(--admin-primary-shadow);
}

.admin-page .cabine-open-options .button:hover,
.admin-page .cabine-open-options .button:focus-visible {
    color: #ffffff;
    background: var(--admin-primary);
    border-color: var(--admin-primary);
}

.cabine-open-cancel {
    justify-self: end;
}

@media (max-width: 780px) {
    .cabine-open-options {
        grid-template-columns: 1fr;
    }

    .cabine-open-cancel {
        justify-self: stretch;
    }
}

.table-actions a,
.admin-table a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.status-badge {
    display: inline-flex;
    min-width: 74px;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.status-active {
    color: #135f38;
    background: #e7f8ee;
}

.status-inactive {
    color: #8a1f1f;
    background: #fff1f1;
}

.status-pending {
    color: #8a5a00;
    background: #fff7d6;
}

.status-blocked {
    color: #8a1f1f;
    background: #fff1f1;
}

.client-auth-card {
    margin: 18px 0;
}

.client-auth-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.client-auth-actions form {
    margin: 0;
}

.security-entry-actions {
    display: grid;
    gap: 12px;
}

.security-settings-grid {
    gap: 18px;
}

.profile-security-grid {
    margin-top: 18px;
}

.profile-security-accordion {
    margin-top: 18px;
}

.profile-security-summary-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.profile-security-accordion-body {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.profile-security-title-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.profile-security-title-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-security-title-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    margin-left: 8px;
    padding: 3px 10px 3px 8px;
    border: 1px solid rgba(22, 138, 69, 0.42);
    border-radius: 999px;
    color: #168a45;
    background: rgba(22, 138, 69, 0.08);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.profile-security-title-status.is-inactive {
    border-color: rgba(217, 45, 32, 0.42);
    color: #d92d20;
    background: rgba(217, 45, 32, 0.08);
}

.security-page-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.security-page-title-status {
    margin-left: 0;
    letter-spacing: 0;
    text-transform: none;
}

.profile-security-accordion .profile-security-grid {
    margin-top: 0;
}

.security-profile-intro {
    display: grid;
    gap: 12px;
}

.security-page-intro {
    margin: 14px 0 18px;
}

.security-profile-intro .muted-note {
    margin: 0;
}

.admin-grid.logo-editor-grid.profile-security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-security-grid .security-profile-summary,
.profile-security-grid .security-profile-history {
    grid-column: 1 / -1;
}

.profile-security-grid .security-profile-card {
    gap: 14px;
    padding: 0 18px 18px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 34%, var(--line));
    border-radius: 8px;
    overflow: hidden;
}

.security-card {
    display: grid;
    gap: 16px;
}

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

.security-card-heading h2 {
    margin: 0;
    font-size: 22px;
}

.profile-security-grid .security-card-heading {
    margin: 0 -18px 2px;
    padding: 12px 18px;
    color: var(--admin-selected-text);
    background: var(--admin-selected-gradient);
}

.profile-security-grid .security-card-heading h2 {
    color: inherit;
    font-size: 15px;
    font-weight: 800;
}

.security-status-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background: #fff;
    border: 1px solid currentColor;
    border-radius: 999px;
}

.security-status-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.security-status-icon.is-active {
    color: #168a45;
}

.security-status-icon.is-inactive {
    color: #d92d20;
}

.security-action-form {
    max-width: 520px;
}

.profile-security-grid .security-action-form {
    gap: 12px;
}

.profile-security-grid .security-action-form label {
    gap: 6px;
}

.profile-security-grid .security-action-form input {
    border-color: color-mix(in srgb, var(--admin-primary) 26%, var(--line));
}

.security-icon-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.security-icon-button svg,
.security-link-action svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.security-icon-button-confirm svg {
    color: #168a45;
}

.security-icon-button-danger svg,
.security-link-action-danger,
.security-link-action-danger svg {
    color: #d92d20;
}

.security-link-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
}

.authenticator-guide {
    display: grid;
    gap: 14px;
}

.authenticator-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.authenticator-app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 76px;
    padding: 12px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 26%, var(--line));
    border-radius: 8px;
}

.authenticator-app-card img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.authenticator-app-card div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.authenticator-app-card strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
}

.authenticator-app-card span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.authenticator-steps {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.email-code-guide {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 26%, var(--line));
    border-radius: 8px;
}

.email-code-guide-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: var(--admin-primary-dark);
    background: color-mix(in srgb, var(--admin-primary) 10%, #fff);
    border-radius: 8px;
}

.email-code-guide-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.email-code-guide-body {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.email-code-guide-body .muted-note {
    margin: 0;
}

.email-code-steps {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .admin-grid.logo-editor-grid.profile-security-grid {
        grid-template-columns: 1fr;
    }

    .profile-security-grid .security-profile-summary,
    .profile-security-grid .security-profile-history {
        grid-column: auto;
    }
}

.security-method-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.security-method-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.security-method-tabs a.is-active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.security-totp-setup {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.security-qr {
    display: grid;
    place-items: center;
    width: 196px;
    min-height: 196px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.security-events-list {
    display: grid;
    gap: 8px;
    margin: 0;
}

.security-events-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #fbfcff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.security-events-list dt,
.security-events-list dd {
    margin: 0;
    font-size: 14px;
}

.security-log-archive {
    grid-column: 1 / -1;
}

.profile-security-grid .security-log-archive {
    gap: 14px;
    padding: 0 18px 18px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 34%, var(--line));
    border-radius: 8px;
    overflow: hidden;
}

.profile-security-grid .security-log-archive .security-log-heading {
    margin: 0 -18px 2px;
    padding: 12px 18px;
    color: var(--admin-selected-text);
    background: var(--admin-selected-gradient);
}

.security-log-heading {
    align-items: flex-start;
}

.security-log-heading > div {
    display: grid;
    gap: 4px;
}

.security-log-heading .muted-note {
    font-size: 14px;
}

.profile-security-grid .security-log-heading h2,
.profile-security-grid .security-log-heading .muted-note {
    color: inherit;
}

.profile-security-grid .security-log-heading h2 {
    font-size: 15px;
    font-weight: 800;
}

.security-log-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.security-log-search-form {
    flex: 1 1 360px;
    max-width: 520px;
}

.security-log-search-shell {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: min(360px, 100%);
    padding: 6px;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--admin-primary) 28%, var(--line));
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.05);
}

.security-log-search-field {
    flex: 1 1 auto;
    min-width: 0;
}

.security-log-search-field input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    color: var(--text);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.security-log-search-field input:focus {
    border: 0;
    box-shadow: none;
    outline: 0;
}

.security-log-search-submit {
    min-width: auto;
    white-space: nowrap;
}

.security-log-status-actions,
.security-log-bulk-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.security-log-status-filter.is-active {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.security-log-per-page-form {
    display: inline-flex;
}

.security-log-per-page-select {
    width: 64px;
    min-width: 64px;
    min-height: 44px;
    padding: 0 8px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    font: inherit;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.06);
}

.security-log-cancel-button[hidden] {
    display: none;
}

.security-log-table-wrap {
    background: #fff;
}

.security-log-table {
    min-width: 900px;
}

.security-log-table th,
.security-log-table td {
    vertical-align: middle;
}

.security-log-table .security-log-date {
    width: 18%;
}

.security-log-table .security-log-user {
    width: 9%;
    white-space: nowrap;
}

.security-log-table .security-log-ip {
    width: 20%;
    white-space: nowrap;
}

.security-log-ip-value {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    cursor: help;
}

.security-log-table .security-log-field {
    width: 30%;
}

.security-log-table .security-log-field span {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.security-log-table .security-log-state {
    width: 76px;
    text-align: center;
}

.security-log-table .security-log-action {
    width: 64px;
    text-align: right;
}

.security-log-single-delete {
    display: inline-flex;
    margin: 0;
}

.security-log-state-indicator {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

.security-log-state-indicator svg {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 17px;
    height: 17px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translate(-50%, -50%);
}

.security-log-state-indicator svg path {
    fill: none;
    stroke: #fff;
    transform: translateY(3px);
}

.security-log-state-indicator--success {
    color: #fff;
    background: var(--primary-dark);
}

.security-log-state-indicator--danger {
    color: #fff;
    background: #8a1f1f;
}

.security-log-select-control {
    position: relative;
    display: none;
    justify-content: flex-end;
    cursor: pointer;
}

.security-log-table.is-selecting .security-log-select-control {
    display: inline-grid;
}

.security-log-table.is-selecting .security-log-single-delete {
    display: none;
}

.security-log-select-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.security-log-select-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: var(--primary-dark);
    border-radius: 16px;
}

.security-log-select-mark svg {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 16px;
    height: 16px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translate(-50%, -50%);
}

.security-log-select-mark svg path {
    fill: none;
    stroke: #fff;
    transform: translateY(3px);
}

.security-log-select-control input:not(:checked) + .security-log-select-mark {
    color: var(--primary-dark);
    background: #fff;
    border: 1px solid var(--line);
}

.security-log-select-control input:not(:checked) + .security-log-select-mark svg {
    opacity: 1;
}

.security-log-select-control input:not(:checked) + .security-log-select-mark svg path {
    stroke: var(--primary-dark);
}

.security-log-bulk-form.is-selecting [data-security-log-bulk-button] {
    color: #8a1f1f;
    border-color: #f0c7c7;
}

.security-log-bulk-form.is-selecting [data-security-log-bulk-button]:hover,
.security-log-bulk-form.is-selecting [data-security-log-bulk-button]:focus-visible {
    color: #fff;
    background: #8a1f1f;
    border-color: #8a1f1f;
}

.security-log-pagination {
    margin-top: 2px;
}

@media (max-width: 760px) {
    .security-log-toolbar,
    .security-log-search-shell {
        align-items: stretch;
    }

    .security-log-search-form,
    .security-log-search-shell,
    .security-log-search-submit {
        width: 100%;
        max-width: none;
    }

    .security-log-status-actions,
    .security-log-per-page-form,
    .security-log-bulk-form {
        flex: 1 1 auto;
    }

    .security-log-status-actions {
        justify-content: flex-start;
    }
}

.toggle-list {
    display: grid;
    gap: 10px;
}

.toggle-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.toggle-list input {
    width: 20px;
    height: 20px;
    min-height: 0;
}

.muted-note {
    margin: 0;
    color: var(--muted);
}

.logo-editor-grid {
    grid-template-columns: 1fr;
}

.settings-section-panel > .settings-section-body,
.settings-subsection-panel > .settings-section-body {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.settings-section-panel {
    position: relative;
}

.settings-subsection-panel {
    display: grid;
    position: relative;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.settings-subsection-panel summary strong {
    font-size: 20px;
}

.settings-summary-actions {
    display: none;
    align-items: center;
    gap: 10px;
    position: absolute;
    top: 22px;
    right: 88px;
    z-index: 1;
}

.settings-subsection-panel > .settings-summary-actions {
    top: 16px;
    right: 76px;
}

.settings-section-panel[open] > .settings-summary-actions,
.settings-subsection-panel[open] > .settings-summary-actions {
    display: flex;
}

.settings-profile-panel > .settings-summary-actions {
    display: flex;
    justify-content: flex-end;
    position: static;
    margin-bottom: 18px;
}

.settings-profile-panel > .settings-section-body {
    margin-top: 0;
}

.settings-embedded-panel {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.settings-embedded-panel h2 {
    margin: 0;
}

.settings-cabine-install-guide,
.settings-pwa-guide {
    gap: 20px;
}

.settings-install-option {
    display: grid;
    gap: 18px;
}

.settings-install-option + .settings-install-option {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.settings-pwa-guide-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.settings-pwa-guide-head > div {
    display: grid;
    gap: 8px;
}

.settings-install-action,
.settings-pwa-install-button {
    flex: 0 0 auto;
}

.settings-pwa-priority p {
    margin: 0;
}

.settings-pwa-guide-content {
    display: grid;
    gap: 18px;
}

.settings-pwa-guide-content section {
    display: grid;
    gap: 8px;
}

.settings-pwa-guide-content h3,
.settings-pwa-guide-content p,
.settings-pwa-guide-content ol,
.settings-pwa-guide-content ul {
    margin: 0;
}

.settings-pwa-guide-content ol,
.settings-pwa-guide-content ul {
    padding-left: 22px;
}

.settings-pwa-guide-content li + li {
    margin-top: 6px;
}

@media (max-width: 760px) {
    .settings-pwa-guide-head {
        flex-direction: column;
    }

    .settings-install-action,
    .settings-pwa-install-button {
        width: 100%;
        justify-content: center;
    }
}

.settings-section-actions {
    display: flex;
    justify-content: flex-end;
}

.settings-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
}

.settings-menu-name-block {
    display: grid;
    align-content: start;
    gap: 14px;
    max-width: 350px;
}

.settings-menu-grid > .logo-upload-card {
    max-width: 350px;
}

.menu-name-settings {
    align-content: start;
}

.menu-name-settings input[name="name"] {
    width: calc(100% - 30px);
}

.settings-shortcut-panel {
    margin-bottom: 22px;
}

.logo-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
}

.logo-upload-grid--single {
    grid-template-columns: minmax(260px, 520px);
}

.logo-upload-grid--single > .logo-upload-card {
    max-width: 350px;
}

.event-logo-settings-grid {
    display: grid;
    grid-template-columns: minmax(240px, 340px) minmax(320px, 1fr);
    align-items: start;
    gap: 18px;
}

.event-logo-settings-grid.is-event-logo-editor-hidden {
    grid-template-columns: minmax(320px, 1fr);
}

.event-logo-toggle-list {
    margin-bottom: 14px;
}

.event-logo-toggle-subtitle {
    margin: 8px 0 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
}

.event-logo-toggle-subtitle:first-child {
    margin-top: 0;
}

.event-logo-settings-side {
    display: grid;
    align-content: start;
    gap: 12px;
}

.event-logo-settings-side[hidden] {
    display: none;
}

.event-logo-upload-card {
    max-width: 340px;
}

.event-logo-guide {
    width: min(100%, 340px);
}

.event-logo-editor-frame {
    position: relative;
    width: min(252px, 100%);
    min-height: 0;
    aspect-ratio: 1;
    background: #fff;
    touch-action: none;
}

.event-logo-editor-frame.is-logo-editing {
    cursor: grab;
}

.event-logo-editor-frame.is-logo-offset-ready {
    cursor: grab;
}

.event-logo-editor-frame.is-offset-dragging {
    cursor: grabbing;
}

.event-logo-editor-frame.is-drag-over {
    border-color: #0f9f7a;
    box-shadow: 0 0 0 3px rgba(15, 159, 122, 0.16);
}

.event-logo-editor-frame.is-empty {
    cursor: pointer;
}

.event-logo-editor-frame.is-logo-editing img[data-logo-editor-image] {
    position: absolute;
    max-width: none;
    max-height: none;
    object-fit: unset;
    transform-origin: top left;
    user-select: none;
    -webkit-user-drag: none;
}

.event-logo-editor-frame .photo-cropper-grid {
    display: none;
}

.event-logo-editor-frame.is-logo-editing .photo-cropper-grid {
    display: block;
}

.event-logo-editor-controls {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.event-logo-upload-card [data-logo-insert] {
    display: none;
}

.event-model-image-field {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.event-model-image-field[hidden] {
    display: none;
}

.event-model-image-head {
    display: grid;
    gap: 3px;
}

.event-model-image-head strong {
    color: var(--text);
    font-size: 15px;
    line-height: 1.2;
}

.event-model-image-head small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.event-model-image-upload {
    display: grid;
    width: min(100%, 420px);
    justify-self: center;
    cursor: pointer;
}

.event-model-image-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.event-model-image-preview {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--admin-primary);
    background:
        linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(37, 99, 235, 0.16)),
        #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.08);
}

.event-model-image-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.event-model-image-placeholder {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--admin-primary);
    font-size: 13px;
    font-weight: 800;
}

.event-model-image-placeholder svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.event-model-image-upload:hover .event-model-image-preview,
.event-model-image-upload:focus-within .event-model-image-preview {
    border-color: var(--admin-primary);
    box-shadow: 0 14px 28px var(--admin-primary-shadow);
}

.event-model-image-field.event-validation-missing .event-model-image-preview {
    border-color: #d62828;
    box-shadow: 0 0 0 2px rgba(214, 40, 40, 0.16);
}

.client-logo-settings-grid {
    --client-logo-radius: 0%;
    --kiosk-panel: #06060d;
    --kiosk-pink: #ff5cc8;
    --kiosk-blue: #2ea4ff;
    display: grid;
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.client-logo-settings-side {
    display: grid;
    align-content: start;
    gap: 12px;
}

.client-logo-upload-card {
    max-width: 230px;
    gap: 12px;
    padding: 16px;
}

.logo-preview-frame.event-logo-editor-frame.client-logo-editor-frame {
    width: min(142px, 100%);
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--client-logo-radius, 0%);
}

.client-logo-upload-card .photo-action-row {
    gap: 10px;
}

.client-logo-upload-card .icon-button {
    width: 48px;
    height: 48px;
    min-height: 48px;
}

.client-logo-upload-card .event-logo-range-control,
.client-logo-upload-card .event-logo-radius-control {
    margin-top: 8px;
    gap: 6px;
}

.client-logo-upload-card .event-logo-range-scale output,
.client-logo-upload-card .event-logo-radius-scale output {
    min-width: 54px;
}

.client-logo-preview-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.client-logo-preview-panel > strong {
    color: var(--muted);
    font-weight: 900;
}

.client-logo-kiosk-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.8vw, 11px);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: clamp(12px, 1.55vw, 20px);
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 17% 48%, rgba(255, 92, 200, 0.11), transparent 31%),
        radial-gradient(circle at 82% 51%, rgba(46, 164, 255, 0.10), transparent 29%),
        linear-gradient(90deg, rgba(255, 92, 200, 0.10), rgba(46, 164, 255, 0.09)),
        var(--kiosk-panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 92, 200, 0.36),
        inset 0 0 0 2px rgba(46, 164, 255, 0.22),
        0 0 28px rgba(255, 92, 200, 0.12),
        0 0 34px rgba(46, 164, 255, 0.10);
}

.client-logo-kiosk-preview::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    border: 1px solid rgba(46, 164, 255, 0.34);
    border-left-color: rgba(255, 92, 200, 0.62);
    border-radius: 8px;
    z-index: 0;
}

.client-logo-kiosk-preview > * {
    position: relative;
    z-index: 1;
}

.client-logo-kiosk-preview-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(10px, 1.45vw, 18px);
}

.client-logo-kiosk-preview-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    height: clamp(36px, 4.4vw, 54px);
}

.client-logo-kiosk-preview-brand img {
    display: block;
    width: min(178px, 100%);
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
}

.client-logo-kiosk-preview-brand-fallback {
    color: #ffffff;
    font-size: clamp(13px, 1.5vw, 20px);
    font-weight: 900;
    text-shadow: 0 0 12px rgba(255, 92, 200, 0.28);
}

.client-logo-kiosk-preview-event-name {
    display: grid;
    grid-template-columns: minmax(18px, 40px) auto minmax(18px, 40px);
    align-items: center;
    gap: 9px;
    width: min(100%, 300px);
    max-width: 300px;
    margin: 0;
    color: #f67cff;
    font-size: clamp(11px, 1.05vw, 16px);
    font-weight: 900;
    line-height: 1.04;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 0 14px rgba(255, 92, 200, 0.38);
}

.client-logo-kiosk-preview-event-name::before,
.client-logo-kiosk-preview-event-name::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 92, 200, 0.75));
}

.client-logo-kiosk-preview-event-name::after {
    background: linear-gradient(90deg, rgba(255, 92, 200, 0.75), transparent);
}

.client-logo-kiosk-preview-title {
    margin-top: clamp(-4px, -0.25vw, -1px);
    color: #ffffff;
    font-size: clamp(20px, 2.65vw, 36px);
    font-weight: 900;
    line-height: 0.95;
    text-align: center;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.52);
}

.client-logo-kiosk-preview-choice-panel {
    width: min(62%, 620px);
    margin: 0 auto;
    padding: clamp(9px, 1.2vw, 15px);
    border: 1px solid rgba(255, 92, 200, 0.38);
    border-radius: 8px;
    background: rgba(4, 4, 12, 0.54);
    box-shadow:
        0 20px 44px rgba(0, 0, 0, 0.22),
        inset 0 0 26px rgba(46, 164, 255, 0.05);
}

.client-logo-kiosk-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(8px, 1.05vw, 14px);
    align-items: center;
}

.client-logo-kiosk-preview-card {
    display: grid;
    place-items: center;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    color: #ffffff;
    border: 2px solid rgba(255, 92, 200, 0.78);
    border-right-color: rgba(46, 164, 255, 0.54);
    border-radius: 8px;
    background: rgba(2, 4, 12, 0.86);
    box-shadow: 0 0 10px rgba(255, 92, 200, 0.24);
}

.client-logo-kiosk-preview-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-logo-kiosk-preview-no-bg {
    gap: 4px;
    padding: 7px;
    font-size: clamp(8px, 0.78vw, 12px);
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
}

.client-logo-kiosk-preview-x {
    display: block;
    font-size: clamp(26px, 3.6vw, 46px);
    font-weight: 900;
    line-height: 1;
}

.client-logo-kiosk-preview-footer {
    display: grid;
    grid-template-columns: minmax(64px, 98px) minmax(0, 1fr);
    align-items: end;
    gap: clamp(12px, 2.1vw, 30px);
    margin-top: auto;
}

.client-logo-kiosk-preview-back {
    display: inline-grid;
    place-items: center;
    min-height: clamp(28px, 3vw, 40px);
    padding: 0 11px;
    color: #ffffff;
    font-size: clamp(11px, 1.35vw, 18px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    border: 2px solid rgba(255, 92, 200, 0.86);
    border-right-color: rgba(46, 164, 255, 0.94);
    border-radius: 8px;
    background: rgba(3, 6, 16, 0.84);
    box-shadow:
        0 0 14px rgba(255, 92, 200, 0.22),
        0 0 18px rgba(46, 164, 255, 0.18);
}

.client-logo-kiosk-preview-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 0.9vw, 12px);
    align-items: end;
}

.client-logo-kiosk-preview-feature {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-width: 0;
    color: #ffffff;
    font-size: clamp(7px, 0.65vw, 9px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.50);
}

.client-logo-kiosk-preview-feature svg {
    width: clamp(18px, 2.2vw, 28px);
    height: clamp(18px, 2.2vw, 28px);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px currentColor);
}

.client-logo-kiosk-preview-feature--pink {
    color: #ff57c4;
}

.client-logo-kiosk-preview-feature--violet {
    color: #d65cff;
}

.client-logo-kiosk-preview-feature--purple {
    color: #835cff;
}

.client-logo-kiosk-preview-feature--blue {
    color: #32aaff;
}

.client-logo-kiosk-preview-logo {
    justify-self: end;
    display: grid;
    place-items: center;
    width: clamp(50px, 5.7vw, 76px);
    height: clamp(50px, 5.7vw, 76px);
    padding: 0;
    overflow: hidden;
    color: #ffffff;
    background: #030307;
    border: 2px solid rgba(255, 92, 200, 0.86);
    border-right-color: rgba(46, 164, 255, 0.94);
    border-radius: var(--client-logo-radius, 0%);
    box-shadow:
        0 0 0 4px rgba(255, 92, 200, 0.12),
        0 0 0 7px rgba(46, 164, 255, 0.10),
        0 0 22px rgba(255, 92, 200, 0.42),
        0 0 28px rgba(46, 164, 255, 0.34);
}

.client-logo-kiosk-preview-logo img {
    width: 100%;
    height: 100%;
    border-radius: var(--client-logo-radius, 0%);
    object-fit: cover;
}

.client-logo-kiosk-preview-logo span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: clamp(15px, 1.9vw, 25px);
    font-weight: 900;
}

@media (max-width: 1180px) {
    .client-logo-kiosk-preview-choice-panel {
        width: min(76%, 620px);
    }

    .client-logo-kiosk-preview-grid {
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .client-logo-settings-grid {
        grid-template-columns: 1fr;
    }

    .client-logo-preview-panel {
        width: min(100%, 520px);
    }

    .client-logo-kiosk-preview {
        aspect-ratio: auto;
        min-height: 390px;
    }

    .client-logo-kiosk-preview-topbar {
        align-items: center;
    }

    .client-logo-kiosk-preview-choice-panel {
        width: min(100%, 620px);
    }
}

@media (max-width: 500px) {
    .client-logo-settings-grid {
        grid-template-columns: 1fr;
    }

    .client-logo-preview-panel {
        width: min(100%, 720px);
    }

    .client-logo-kiosk-preview {
        padding: 14px;
    }

    .client-logo-kiosk-preview-topbar {
        grid-template-columns: 1fr auto;
    }

    .client-logo-kiosk-preview-event-name {
        display: none;
    }

    .client-logo-kiosk-preview-title {
        font-size: 24px;
    }

    .client-logo-kiosk-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .client-logo-kiosk-preview-footer {
        grid-template-columns: 1fr;
    }

    .client-logo-kiosk-preview-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.event-logo-preview-panel {
    --event-logo-preview-bg: #101827;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.event-logo-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.event-logo-preview-swatches {
    display: flex;
    align-items: center;
    gap: 9px;
}

.event-logo-swatch {
    width: 24px;
    height: 24px;
    min-height: 0;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--swatch-color);
    box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.26);
    cursor: pointer;
}

.event-logo-swatch--light {
    box-shadow: 0 0 0 1px rgba(23, 32, 51, 0.18), inset 0 0 0 1px rgba(23, 32, 51, 0.08);
}

.event-logo-swatch.is-active,
.event-logo-swatch:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary);
}

.event-logo-preview-grid {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(240px, 1fr);
    gap: 16px;
    align-items: start;
}

.event-logo-preview-card {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.event-logo-preview-surface {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--event-logo-preview-bg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.event-logo-preview-surface--final {
    width: min(220px, 100%);
    aspect-ratio: 9 / 16;
}

.event-logo-preview-surface--cabine {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 170px;
}

.event-logo-preview-surface img {
    position: absolute;
    object-fit: contain;
}

.event-logo-preview-surface em {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.event-logo-preview-surface--final [data-event-logo-preview-event-frame],
.event-logo-preview-surface--final [data-event-logo-preview-event-empty] {
    top: 5.5%;
    left: 5.5%;
    width: 18%;
    aspect-ratio: 1;
}

.event-logo-preview-surface--cabine .event-logo-preview-event-mark {
    top: 12%;
    left: 4%;
    width: 18%;
    aspect-ratio: 1;
}

.event-logo-preview-surface--cabine .event-logo-preview-client-mark {
    top: 12%;
    right: 4%;
    width: 15%;
    aspect-ratio: 1;
}

.event-logo-preview-surface [data-event-logo-preview-event-frame],
.event-logo-preview-surface [data-event-logo-preview-event-empty] {
    overflow: hidden;
    border-radius: var(--event-logo-radius, 0%);
}

.event-logo-preview-event-frame img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(var(--event-logo-offset-x, 0%), var(--event-logo-offset-y, 0%)) scale(var(--event-logo-zoom-scale, 1));
    transform-origin: center;
}

.event-logo-preview-surface [data-logo-position-marker] {
    position: absolute;
    top: calc(var(--logo-y, 0) * 1%);
    left: calc(var(--logo-x, 0) * 1%);
    right: auto;
    width: calc(var(--logo-size, 15) * 1%);
    aspect-ratio: 1;
    cursor: grab;
    touch-action: none;
}

.event-logo-preview-surface .event-logo-preview-date-mark[data-logo-position-marker] {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: max-content;
    height: auto;
    aspect-ratio: auto;
    padding: 0.16em 0.28em;
    border: 1px dashed rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    color: #ffffff;
    font-size: var(--date-font-size, calc(var(--logo-size, 6) * 1.55px));
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.86), 0 0 2px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
}

.event-logo-preview-surface [data-logo-position-marker].is-positioning {
    cursor: grabbing;
    outline: 2px solid #0f9f7a;
    outline-offset: 3px;
}

.event-logo-position-size {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 800;
}

.event-logo-position-size input {
    width: 100%;
}

.event-logo-range-control,
.event-logo-radius-control {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.event-logo-range-control input,
.event-logo-radius-control input {
    width: 100%;
}

.event-logo-range-scale,
.event-logo-radius-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
}

.event-logo-range-scale output,
.event-logo-radius-scale output {
    min-width: 42px;
    padding: 4px 8px;
    color: var(--primary-dark);
    background: #ecfdf5;
    border: 1px solid #b7ecd6;
    border-radius: 8px;
    text-align: center;
}

.logo-upload-card {
    display: grid;
    align-self: start;
    align-content: start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.logo-preview-frame {
    display: grid;
    place-items: center;
    min-height: 156px;
    padding: 18px;
    overflow: hidden;
    background: #111827;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.logo-preview-frame.event-logo-editor-frame {
    background: #fff;
    border-radius: var(--event-logo-radius, 0%);
}

.logo-preview-frame.event-logo-editor-frame img[data-logo-editor-image] {
    transform: translate(var(--event-logo-offset-x, 0%), var(--event-logo-offset-y, 0%)) scale(var(--event-logo-zoom-scale, 1));
    transform-origin: center;
}

.logo-preview-frame.event-logo-editor-frame.is-empty {
    border-color: #0f9f7a;
    border-style: dashed;
    border-width: 3px;
}

.logo-preview-frame--wide {
    width: min(520px, 100%);
    aspect-ratio: 3 / 1;
}

.settings-cabine-brand-logo-card {
    width: min(620px, 100%);
}

.settings-backoffice-logo-card {
    width: min(620px, 100%);
}

.settings-backoffice-logo-card .logo-preview-frame {
    background: #fff;
}

@media (max-width: 720px) {
    .admin-backoffice-top-logo {
        height: 80px;
        padding-left: 0;
    }

    .admin-backoffice-top-logo img {
        max-height: 58px;
    }

    .admin-page:not(.admin-home-page):has(.admin-backoffice-top-logo) .admin-main {
        padding-top: 80px;
    }

    .admin-page.admin-home-page .admin-backoffice-top-logo {
        height: var(--backoffice-logo-height, 250px);
    }

    .admin-page.admin-home-page .admin-backoffice-top-logo img {
        max-height: var(--backoffice-logo-max-height, 200px);
    }

    .admin-page.admin-home-page:has(.admin-backoffice-top-logo) .admin-main {
        padding-top: var(--backoffice-logo-main-padding, 274px);
    }

    .admin-page.is-backoffice-logo-compact:not(.admin-home-page) .admin-backoffice-top-logo {
        height: 80px;
    }

    .admin-page.is-backoffice-logo-compact:not(.admin-home-page) .admin-backoffice-top-logo img {
        max-height: 58px;
    }

    .admin-page.is-backoffice-logo-compact:not(.admin-home-page):has(.admin-backoffice-top-logo) .admin-main {
        padding-top: 80px;
    }

    .admin-page:not(.admin-home-page):has(.admin-backoffice-top-logo):has(.admin-sidebar--client-context) .admin-main,
    .admin-page.is-backoffice-logo-compact:not(.admin-home-page):has(.admin-backoffice-top-logo):has(.admin-sidebar--client-context) .admin-main {
        padding-top: 110px;
    }

    .admin-page:not(.admin-home-page):has(.admin-backoffice-top-logo):has(.admin-sidebar-link[href="clients.php"]):has(.admin-hero--compact) .admin-main {
        padding-top: 100px;
    }
}

.logo-preview-frame--square {
    width: min(220px, 100%);
    aspect-ratio: 1 / 1;
}

.logo-preview-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-preview-frame.is-empty span,
.logo-theme-surface span {
    display: inline-grid;
    place-items: center;
    min-width: 74px;
    min-height: 54px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.logo-preview-frame.event-logo-editor-frame.is-empty span[data-logo-fallback] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    color: #0f766e;
    background: transparent;
    border: 0;
    font-size: 0.95rem;
    letter-spacing: 0;
    text-align: center;
}

.logo-preview-frame.event-logo-editor-frame.is-empty span[data-logo-fallback] b {
    font: inherit;
}

.logo-preview-frame.event-logo-editor-frame.is-empty span[data-logo-fallback] i {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: #0f9f7a;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    font-style: normal;
}

.logo-preview-frame.event-logo-editor-frame.is-empty span[data-logo-fallback] svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.photo-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.icon-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    color: var(--primary);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
}

.icon-button--danger {
    color: #8a1f1f;
    border-color: #ffd0d0;
    background: #fff7f7;
}

.button-small {
    min-height: 36px;
    padding: 0 12px;
}

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

.admin-page .button,
.admin-page .icon-button,
.admin-page .primary-action.small,
.admin-page .secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    color: var(--admin-secondary);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.06);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-page .button:hover,
.admin-page .button:focus-visible,
.admin-page .icon-button:hover,
.admin-page .icon-button:focus-visible,
.admin-page .primary-action.small:hover,
.admin-page .primary-action.small:focus-visible,
.admin-page .secondary-action:hover,
.admin-page .secondary-action:focus-visible {
    border-color: var(--admin-secondary);
    box-shadow: 0 14px 28px var(--admin-secondary-shadow);
    transform: translateY(-1px);
}

.admin-page .primary-action.small,
.admin-page .button.is-primary,
.admin-page .icon-button.is-primary {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 14px 28px rgba(11, 77, 168, 0.22);
}

.admin-page .primary-action.small:hover,
.admin-page .primary-action.small:focus-visible,
.admin-page .button.is-primary:hover,
.admin-page .button.is-primary:focus-visible,
.admin-page .icon-button.is-primary:hover,
.admin-page .icon-button.is-primary:focus-visible {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.admin-page .icon-button--danger,
.admin-page .button.icon-button--danger {
    color: #8a1f1f;
    background: #fff;
    border-color: #f0c7c7;
}

.admin-page .icon-button--danger:hover,
.admin-page .icon-button--danger:focus-visible,
.admin-page .button.icon-button--danger:hover,
.admin-page .button.icon-button--danger:focus-visible {
    color: #fff;
    background: #8a1f1f;
    border-color: #8a1f1f;
}

.admin-page .button-small {
    min-height: 44px;
    padding: 0 14px;
}

.admin-page .action-icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 16px;
}

.admin-page .action-icon-button:disabled,
.admin-page .action-icon-button.is-limit-disabled {
    color: var(--muted);
    background: #eef2f8;
    border-color: var(--line);
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.admin-page .action-icon-button:disabled:hover,
.admin-page .action-icon-button:disabled:focus-visible,
.admin-page .action-icon-button.is-limit-disabled:hover,
.admin-page .action-icon-button.is-limit-disabled:focus-visible {
    color: var(--muted);
    background: #eef2f8;
    border-color: var(--line);
    box-shadow: none;
    transform: none;
}

.admin-page .action-icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asset-limit-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    color: var(--admin-primary-dark);
    background: var(--admin-primary-soft);
    border: 1px solid rgba(226, 31, 125, 0.22);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.admin-page .action-icon-button--double {
    width: 62px;
    gap: 4px;
}

.admin-page .action-icon-button--double svg {
    width: 16px;
    height: 16px;
}

.admin-page .dashboard-stat-card > .action-icon-button {
    position: absolute;
    top: 20px;
    right: 20px;
    margin-top: 0;
}

.plan-card-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 2px;
}

.plan-form-action-row {
    margin-bottom: 6px;
}

.plan-status-toggle.is-active,
.template-status-toggle.is-active {
    color: #fff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 14px 28px rgba(11, 77, 168, 0.22);
}

.plan-status-toggle.is-inactive,
.template-status-toggle.is-inactive {
    color: rgba(23, 32, 51, 0.70);
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.04);
}

.plan-status-toggle.is-saving,
.template-status-toggle.is-saving {
    opacity: 0.62;
    cursor: wait;
}

.admin-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.autosave-status {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.autosave-status[data-state="saving"] {
    color: var(--primary);
}

.autosave-status[data-state="saved"] {
    color: #0b6e45;
}

.autosave-status[data-state="error"] {
    color: #8a1f1f;
}

.logo-cropper {
    display: grid;
    gap: 12px;
}

.photo-cropper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo-cropper-viewport {
    position: relative;
    width: min(100%, 420px);
    overflow: hidden;
    touch-action: none;
    background:
        linear-gradient(45deg, rgba(100, 112, 134, 0.18) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(100, 112, 134, 0.18) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(100, 112, 134, 0.18) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(100, 112, 134, 0.18) 75%),
        #fff;
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.logo-cropper-viewport--wide {
    aspect-ratio: 3 / 1;
}

.logo-cropper-viewport--square {
    width: min(100%, 260px);
    aspect-ratio: 1 / 1;
}

[data-pwa-icon-preview] .logo-preview-frame--square,
[data-pwa-icon-preview] .logo-cropper-viewport--square {
    background:
        linear-gradient(145deg, rgba(226, 45, 176, 0.28), transparent 38%),
        linear-gradient(320deg, rgba(46, 171, 255, 0.28), transparent 42%),
        linear-gradient(135deg, #16071b 0%, #080b18 52%, #071524 100%);
    background-size: auto;
    background-position: center;
}

.logo-cropper-viewport img {
    position: absolute;
    user-select: none;
    -webkit-user-drag: none;
}

.photo-cropper-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to right, transparent 33%, rgba(17, 103, 216, 0.25) 33%, rgba(17, 103, 216, 0.25) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(17, 103, 216, 0.25) 66%, rgba(17, 103, 216, 0.25) calc(66% + 1px), transparent calc(66% + 1px)),
        linear-gradient(to bottom, transparent 33%, rgba(17, 103, 216, 0.25) 33%, rgba(17, 103, 216, 0.25) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(17, 103, 216, 0.25) 66%, rgba(17, 103, 216, 0.25) calc(66% + 1px), transparent calc(66% + 1px));
}

.event-logo-editor-frame .photo-cropper-grid {
    background:
        linear-gradient(to right, transparent 33%, rgba(148, 163, 184, 0.45) 33%, rgba(148, 163, 184, 0.45) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(148, 163, 184, 0.45) 66%, rgba(148, 163, 184, 0.45) calc(66% + 1px), transparent calc(66% + 1px)),
        linear-gradient(to bottom, transparent 33%, rgba(148, 163, 184, 0.45) 33%, rgba(148, 163, 184, 0.45) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(148, 163, 184, 0.45) 66%, rgba(148, 163, 184, 0.45) calc(66% + 1px), transparent calc(66% + 1px));
}

.field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.field input[type="range"] {
    width: 100%;
}

.toggle-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
}

.toggle-line input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 0;
}

.color-input {
    min-height: 52px;
    padding: 4px;
}

.logo-theme-preview {
    display: grid;
    gap: 10px;
}

.logo-preview-title {
    color: var(--muted);
    font-weight: 800;
}

.logo-theme-surface {
    display: grid;
    place-items: center;
    min-height: 120px;
    padding: 18px;
    background: #111827;
    border-radius: 8px;
}

.logo-theme-surface img {
    max-width: 220px;
    max-height: 74px;
    object-fit: contain;
}

.logo-theme-preview.is-force-white img {
    filter: brightness(0) invert(1);
}

.logo-theme-preview.is-theme-logo img {
    filter: brightness(0) saturate(100%);
    opacity: 0.92;
}

.asset-category-tree,
.asset-items-panel {
    margin-top: 22px;
}

.asset-category-tree {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.asset-category-top-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.asset-category-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-left: auto;
}

.admin-page .asset-category-header-actions .action-icon-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    padding: 0;
    border-radius: 14px;
}

.admin-page .asset-category-header-actions .action-icon-button svg {
    width: 16px;
    height: 16px;
}

.admin-page .asset-category-header-actions [data-category-submit] {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    padding: 0;
    border-radius: 14px;
}

.asset-category-order-form {
    margin: 0;
}

.asset-category-tabs {
    display: grid;
    gap: 10px;
    align-items: flex-start;
    flex: 1 1 auto;
}

.asset-category-tabs.event-model-scope-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.asset-category-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.asset-category-group-title {
    flex: 0 0 100%;
    margin: 0;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
}

.asset-category-tab {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--admin-primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.asset-category-tab svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.asset-category-tab:hover,
.asset-category-tab:focus-visible,
.asset-category-tab.is-active {
    color: #fff;
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
    box-shadow: 0 12px 24px var(--admin-primary-shadow);
}

.asset-category-tab--system {
    color: var(--admin-secondary);
    border-color: var(--admin-secondary);
}

.asset-category-tab--system:hover,
.asset-category-tab--system:focus-visible,
.asset-category-tab--system.is-active {
    color: #fff;
    background: var(--admin-secondary);
    border-color: var(--admin-secondary);
    box-shadow: 0 12px 24px var(--admin-secondary-shadow);
}

.asset-category-tab--mine {
    color: #9f1f5f;
    border-color: #c64b86;
}

.asset-category-tab--mine:hover,
.asset-category-tab--mine:focus-visible,
.asset-category-tab--mine.is-active {
    color: #fff;
    background: #9f1f5f;
    border-color: #9f1f5f;
    box-shadow: 0 12px 24px rgba(159, 31, 95, 0.18);
}

.asset-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.asset-category-edit-note {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.asset-category-pills-row {
    align-items: flex-start;
}

.asset-category-empty {
    margin: 0;
}

.asset-category-section {
    display: grid;
    gap: 10px;
}

.asset-category-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 900;
}

.asset-category-section-title svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asset-category-section-title--system {
    color: var(--admin-secondary);
}

.asset-category-section-title--mine {
    color: #9f1f5f;
}

.asset-category-pill-wrap {
    position: relative;
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(40px, 1fr));
    align-items: stretch;
    width: max-content;
    min-width: 120px;
}

.asset-category-pill-wrap .asset-category-pill {
    grid-column: 1 / -1;
}

.asset-category-pill {
    width: auto;
    min-width: 120px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--admin-primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.asset-category-pill svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.asset-category-pill-icon--system {
    color: var(--admin-secondary);
}

.asset-category-pill-icon--mine {
    color: #9f1f5f;
}

.asset-category-pill:hover .asset-category-pill-icon,
.asset-category-pill:focus-visible .asset-category-pill-icon,
.asset-category-pill.is-active .asset-category-pill-icon {
    color: currentColor;
}

.asset-category-tree.is-editing .asset-category-pill-wrap .asset-category-pill {
    border-radius: 8px 8px 0 0;
}

.asset-category-drag-button,
.asset-category-edit-button,
.asset-category-delete-button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--admin-primary);
    border-top: 0;
    border-left: 1px solid var(--admin-primary);
    border-radius: 0;
    cursor: pointer;
    display: none;
}

.asset-category-pill-wrap > .asset-category-delete-button {
    border-radius: 0 0 8px 0;
}

.asset-category-pill-wrap > button:nth-child(2) {
    border-radius: 0 0 0 8px;
}

.asset-category-drag-button {
    cursor: grab;
}

.asset-category-delete-button {
    color: #8a1f1f;
    border-color: #f0c7c7;
}

.asset-category-drag-button:active {
    cursor: grabbing;
}

.asset-category-drag-button svg,
.asset-category-edit-button svg,
.asset-category-delete-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asset-category-tree.is-editing .asset-category-drag-button,
.asset-category-tree.is-editing .asset-category-edit-button,
.asset-category-tree.is-editing .asset-category-delete-button {
    display: inline-grid;
}

.asset-category-pill-wrap.is-dragging {
    opacity: 0.45;
}

.asset-category-pill:hover,
.asset-category-pill:focus-visible,
.asset-category-pill.is-active,
.asset-category-drag-button:hover,
.asset-category-drag-button:focus-visible,
.asset-category-edit-button:hover,
.asset-category-edit-button:focus-visible {
    color: #fff;
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
    box-shadow: 0 12px 24px var(--admin-primary-shadow);
}

.asset-category-delete-button:hover,
.asset-category-delete-button:focus-visible {
    color: #fff;
    background: #8a1f1f;
    border-color: #8a1f1f;
    box-shadow: 0 12px 24px rgba(138, 31, 31, 0.18);
}

.asset-category-inline-delete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 8;
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(23, 32, 51, 0.12);
}

.asset-category-inline-delete .button {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    gap: 7px;
    border-radius: 8px;
    font-size: 14px;
    white-space: normal;
}

.asset-category-inline-delete .button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.asset-category-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr) max-content;
    justify-content: stretch;
    column-gap: 14px;
    align-items: end;
    overflow: hidden;
}

.asset-category-form > label {
    width: min(250px, 100%);
}

.asset-category-form--picker {
    grid-template-columns: 1fr;
}

.asset-category-name-hint {
    font-weight: 400;
}

.asset-category-form .card-action-row {
    align-self: start;
    padding-top: 28px;
}

.asset-category-selection-tools {
    display: grid;
    gap: 8px;
    align-self: start;
    min-width: 0;
    padding-top: 26px;
}

.asset-category-form--picker > .asset-category-selection-tools {
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 400px) minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 12px;
    align-items: end;
    width: 100%;
    padding-top: 0;
}

.asset-category-form--selection-card > .asset-category-selection-tools {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
}

.asset-category-form--picker .asset-category-title-field {
    grid-column: 1;
    grid-row: 1;
    display: inline-grid;
    align-items: center;
    grid-template-columns: 24px minmax(0, max-content);
    gap: 10px;
    box-sizing: border-box;
    width: max-content;
    min-width: 180px;
    max-width: 100%;
    min-height: 58px;
    padding: 10px 16px;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--admin-selected);
    border-radius: 8px;
    box-shadow: 0 10px 22px var(--admin-selected-shadow);
    justify-self: start;
}

.asset-category-form--picker .asset-category-title-field:focus-within {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--admin-selected) 22%, transparent), 0 10px 22px var(--admin-selected-shadow);
}

.asset-category-form--picker .asset-category-title-field > span:not(.asset-category-title-icon),
.asset-category-form--picker .asset-category-title-field .asset-category-name-hint {
    display: none;
}

.asset-category-title-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    color: var(--admin-primary-dark);
}

.asset-category-title-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asset-category-form--picker .asset-category-title-field input {
    min-width: 0;
    width: auto;
    max-width: calc(100vw - 170px);
    min-height: 0;
    padding: 0;
    color: var(--admin-primary-dark);
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.asset-category-form--picker .asset-category-title-field input:focus {
    outline: none;
    box-shadow: none;
}

.asset-category-form--picker .asset-category-title-field input::placeholder {
    color: var(--admin-primary-dark);
    opacity: 0.72;
}

.asset-category-cart-tools {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    gap: 8px;
    align-self: end;
    justify-self: end;
    min-width: 0;
}

.asset-category-cart-summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.asset-category-cart-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 40px;
    flex: 0 0 auto;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(23, 32, 51, 0.08);
}

.asset-category-form--picker .asset-category-cart-icon {
    width: 60px;
    height: 60px;
}

.asset-category-cart-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asset-category-form--picker .asset-category-cart-icon svg {
    width: 48px;
    height: 48px;
}

.asset-category-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    color: #fff;
    background: var(--admin-selected-gradient);
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px var(--admin-selected-shadow);
}

.asset-category-selection-tools strong {
    color: var(--text);
    font-size: 13px;
}

.asset-category-selection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.asset-category-selected-section {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 10px;
    background: color-mix(in srgb, var(--admin-selected-soft) 48%, #fff);
    border: 1px solid color-mix(in srgb, var(--admin-selected) 28%, var(--line));
    border-radius: 8px;
}

.asset-category-selected-section[hidden] {
    display: none;
}

.asset-category-selected-section h3 {
    margin: 0;
    color: var(--text);
    font-size: 13px;
}

.asset-category-selected-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 118px));
    gap: 8px;
    align-items: stretch;
    max-height: 230px;
    min-width: 0;
    overflow: auto;
}

.asset-category-selected-card {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 4px;
    min-width: 0;
    padding: 7px 6px 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);
}

.asset-category-selected-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    width: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    padding: 0;
    color: var(--admin-primary-dark);
    background: #fff;
    border-color: var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(23, 32, 51, 0.10);
}

.asset-category-selected-remove svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asset-category-selected-card .template-picker-thumb {
    order: 0;
    align-self: center;
    width: min(54px, 100%);
    min-width: 44px;
    margin: 0 auto;
}

.asset-category-selected-card .template-picker-thumb.is-format-16-9 {
    width: 100%;
    max-width: 100px;
}

.asset-category-selected-title,
.asset-category-selected-origin {
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-category-selected-title {
    color: var(--ink);
    font-size: 12px;
    line-height: 1.12;
}

.asset-category-selected-origin {
    color: var(--muted);
    font-size: 10px;
}

.asset-category-selected-origin.is-system {
    color: var(--admin-secondary);
}

.asset-category-selected-origin.is-mine {
    color: #b01868;
}

.asset-category-picker {
    grid-column: 1 / -1;
    display: grid;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
    padding-top: 8px;
    overflow: hidden;
}

.asset-category-shopping-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.asset-category-shopping-toolbar {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.asset-category-shopping-filter {
    margin-left: auto;
}

.asset-category-shopping-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.asset-category-shopping-group h3 {
    margin: 0;
    color: var(--text);
    font-size: 14px;
}

.asset-category-shopping-button {
    min-height: 48px;
    display: inline-grid;
    align-content: center;
    gap: 2px;
    padding: 6px 14px;
    color: var(--admin-primary-dark);
    background: var(--admin-selected-soft);
    border: 1px solid var(--admin-selected);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 10px 22px var(--admin-selected-shadow);
}

.asset-category-shopping-button span {
    color: var(--admin-secondary);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.asset-category-shopping-button .asset-category-shopping-source-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: var(--admin-secondary);
}

.asset-category-shopping-button .asset-category-shopping-source-icon.is-mine {
    color: #b01868;
}

.asset-category-shopping-source-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asset-category-shopping-button strong {
    color: inherit;
    font-size: 14px;
    line-height: 1.1;
}

.asset-category-shopping-button:hover,
.asset-category-shopping-button:focus-visible,
.asset-category-shopping-button.is-active {
    color: var(--admin-selected-text);
    background: var(--admin-selected-gradient);
    border-color: transparent;
    box-shadow: 0 14px 28px var(--admin-selected-shadow);
}

.asset-category-shopping-button:hover span,
.asset-category-shopping-button:focus-visible span,
.asset-category-shopping-button.is-active span {
    color: var(--admin-selected-text);
}

.asset-category-shopping-button:hover .asset-category-shopping-source-icon,
.asset-category-shopping-button:focus-visible .asset-category-shopping-source-icon,
.asset-category-shopping-button.is-active .asset-category-shopping-source-icon {
    color: var(--admin-selected-text);
}

.asset-category-shopping-panels {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.asset-category-picker-block {
    display: grid;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.asset-category-picker-block h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
}

.asset-category-picker-section {
    display: grid;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.asset-category-picker-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.asset-category-picker-heading strong {
    color: var(--text);
    font-size: 14px;
}

.asset-category-picker-heading .button,
.asset-category-selection-actions .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
}

.template-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 200px));
    grid-auto-rows: 1fr;
    gap: 14px;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
}

.template-picker-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 1px;
    height: 100%;
    width: 100%;
    min-width: 0;
    padding: 4px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: default;
    overflow: hidden;
}

.template-picker-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.template-picker-card:has(input:checked) {
    border-color: var(--admin-primary-dark);
    box-shadow: 0 0 0 2px var(--admin-selected);
}

.template-picker-actions {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 5px;
    background: var(--admin-selected-gradient);
    border-radius: 6px;
}

.template-picker-actions .action-icon-button,
.template-picker-card-check {
    width: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    display: grid;
    place-items: center;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--admin-primary);
    border-radius: 12px;
    box-shadow: none;
    padding: 0;
}

.template-picker-card-check {
    order: -1;
    margin-right: auto;
}

.template-picker-actions .action-icon-button svg,
.template-picker-card-check svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.template-picker-card:has(input:checked) .template-picker-card-check {
    color: #fff;
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
}

.template-picker-thumb {
    order: 3;
    display: block;
    justify-self: center;
    align-self: center;
    width: min(34%, 74px);
    min-width: 62px;
    padding: 0;
    overflow: hidden;
    background: #111827;
    border: 0;
    border-radius: 8px;
    aspect-ratio: 9 / 16;
    appearance: none;
    cursor: zoom-in;
}

.template-picker-thumb.is-format-16-9 {
    width: calc(100% - 4px);
    max-width: 218px;
    aspect-ratio: 16 / 9;
}

.template-picker-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.template-picker-title,
.template-picker-origin {
    min-width: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-picker-title {
    order: 2;
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.12;
    padding: 3px 2px 2px;
}

.template-picker-origin {
    order: 4;
    align-self: end;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}

.template-picker-origin.is-system {
    color: var(--admin-secondary);
}

.template-picker-origin.is-mine {
    color: #b01868;
}

.asset-category-form-inline {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.asset-category-tool-form {
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 360px) auto;
    align-items: end;
}

.asset-category-delete-form {
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
}

.asset-category-tool-copy {
    display: grid;
    gap: 4px;
}

.asset-category-tool-copy strong {
    color: var(--text);
    font-size: 18px;
}

.asset-category-tool-copy span {
    color: var(--muted);
    font-weight: 700;
}

.asset-category-delete-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.asset-category-delete-choice {
    display: inline-flex;
    align-items: center;
}

.asset-category-delete-options .button {
    width: auto;
    min-width: 0;
    padding: 0 16px;
    gap: 8px;
    white-space: normal;
}

.asset-category-delete-options .button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.asset-help-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
}

.asset-help-button {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: help;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.asset-help-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 5;
    width: max-content;
    max-width: 260px;
    padding: 8px 10px;
    color: rgba(0, 0, 0, 0.9);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(23, 32, 51, 0.18);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.asset-help-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    border: 6px solid transparent;
    border-top-color: #fff;
    transform: translateX(-50%);
}

.asset-help-tip:hover .asset-help-bubble,
.asset-help-tip:focus-within .asset-help-bubble {
    opacity: 1;
    transform: translate(-50%, 0);
}

.asset-items-panel {
    display: grid;
    gap: 18px;
}

.asset-items-heading {
    width: 100%;
    align-items: center;
    justify-content: flex-end;
}

.asset-items-heading .template-format-filter {
    margin-left: auto;
}

.asset-items-heading .action-icon-button {
    margin-left: 0;
}

.template-format-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.template-format-filter-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--admin-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.template-format-filter-button svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.template-format-filter-button.is-icon-only {
    width: 36px;
    padding: 0;
}

.template-format-filter-button:hover,
.template-format-filter-button:focus-visible,
.template-format-filter-button.is-active {
    color: #fff;
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
    box-shadow: 0 10px 20px var(--admin-primary-shadow);
}

.asset-inline-form {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.asset-inline-form > .admin-form {
    margin: 0;
}

.asset-template-form {
    grid-template-columns: minmax(360px, 30%) minmax(0, 1fr);
    column-gap: 40px;
    align-items: start;
}

.asset-template-form > label:not(.template-name-field):not(.template-collection-field),
.asset-template-form > .template-current-preview,
.asset-template-form > .card-action-row {
    grid-column: 1 / -1;
}

.template-name-field,
.template-collection-field {
    grid-column: 1;
    align-self: start;
}

.template-name-field input {
    width: min(100%, calc(24ch + 60px));
    padding-inline: 12px;
}

.template-name-hint {
    font-weight: 400;
}

.template-upload-guide {
    grid-column: 1;
    align-self: start;
    display: grid;
    gap: 10px;
    width: min(100%, 350px);
    padding: 14px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.35;
}

.template-upload-guide ol {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px;
}

.template-upload-guide li::marker {
    color: var(--admin-primary-dark);
    font-weight: 700;
}

.template-upload-guide-title {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.template-upload-guide-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px;
    align-items: start;
    margin: 0;
}

.template-upload-guide-note > div {
    display: grid;
    gap: 3px;
}

.template-upload-guide-note ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding-left: 12px;
    color: var(--admin-primary-dark);
}

.template-upload-guide-note-title {
    color: var(--admin-primary-dark);
    font-weight: 700;
}

.template-upload-guide svg {
    width: 16px;
    height: 16px;
    color: var(--admin-primary-dark);
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.template-upload-guide strong {
    color: var(--admin-primary-dark);
    font-weight: 700;
}

.template-upload-field {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.template-upload-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.template-upload-heading .card-action-row {
    margin: 0;
}

.template-upload-label {
    color: var(--muted);
    font-weight: 700;
}

.template-upload-options {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: start;
    gap: 24px;
}

.template-upload-options.is-selected {
    grid-template-columns: minmax(0, 1fr);
}

.template-upload-dropzone {
    --template-upload-border: var(--admin-primary);
    position: relative;
    min-height: 180px;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 16px;
    color: var(--muted);
    background: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.template-upload-dropzone::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, var(--template-upload-border) 0 18px, transparent 18px 32px) top left / 32px 3px repeat-x,
        repeating-linear-gradient(90deg, var(--template-upload-border) 0 18px, transparent 18px 32px) bottom left / 32px 3px repeat-x,
        repeating-linear-gradient(180deg, var(--template-upload-border) 0 18px, transparent 18px 32px) top left / 3px 32px repeat-y,
        repeating-linear-gradient(180deg, var(--template-upload-border) 0 18px, transparent 18px 32px) top right / 3px 32px repeat-y;
}

.template-upload-dropzone:hover,
.template-upload-dropzone:focus-within,
.template-upload-dropzone:focus-visible,
.template-upload-dropzone.is-dragover,
.template-upload-dropzone.is-selected {
    --template-upload-border: var(--admin-primary-dark);
    box-shadow: 0 14px 28px var(--admin-primary-shadow);
}

.template-upload-format-dropzone--portrait {
    width: min(100%, 151px);
    aspect-ratio: 9 / 16;
}

.template-upload-format-dropzone--wide {
    width: min(100%, 476px);
    aspect-ratio: 16 / 9;
}

.template-upload-format-dropzone.has-preview {
    aspect-ratio: auto;
    width: clamp(210px, min(32vw, var(--template-preview-width-by-height, 460px)), 460px);
    align-content: start;
    min-height: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.template-upload-format-dropzone.has-preview::before {
    content: none;
}

.template-upload-format-dropzone.has-preview:hover,
.template-upload-format-dropzone.has-preview:focus-within,
.template-upload-format-dropzone.has-preview:focus-visible,
.template-upload-format-dropzone.has-preview.is-selected {
    box-shadow: none;
}

.template-upload-format-dropzone--portrait.has-preview {
    width: clamp(210px, min(24vw, var(--template-preview-width-by-height, 320px)), 320px);
}

.template-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.template-upload-prompt,
.template-upload-preview {
    position: relative;
    z-index: 1;
}

.template-upload-prompt {
    display: grid;
    justify-items: center;
    gap: 5px;
}

.template-upload-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--admin-primary-dark);
    background: var(--admin-primary-soft);
    border-radius: 999px;
}

.template-upload-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.template-upload-dropzone strong {
    color: var(--admin-primary-dark);
    font-size: 17px;
    line-height: 1.2;
}

.template-upload-prompt span:not(:first-of-type) {
    font-size: 11px;
    line-height: 1.25;
    font-weight: 400;
}

.template-upload-prompt b {
    color: var(--admin-primary-dark);
    font-weight: 400;
}

.template-upload-format-dropzone.has-preview .template-upload-prompt {
    display: none;
}

.template-upload-preview {
    width: 100%;
    display: grid;
    gap: 10px;
}

.template-upload-preview-frame {
    position: relative;
    width: 100%;
    aspect-ratio: var(--template-preview-ratio, 4 / 3);
    overflow: hidden;
    background: #17202b;
    border-radius: 8px;
    touch-action: none;
}

.template-upload-preview-frame::before {
    content: none;
}

.template-upload-preview-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.template-upload-crop-window {
    position: absolute;
    z-index: 2;
    border: 3px solid #fff;
    border-radius: 2px;
    box-shadow: 0 0 0 9999px rgba(11, 17, 24, 0.58), 0 8px 22px rgba(0, 0, 0, 0.22);
    cursor: move;
    touch-action: none;
}

.template-upload-crop-window.is-dragging {
    cursor: grabbing;
}

.template-upload-crop-window::after {
    content: "";
    position: absolute;
    inset: -7px;
    pointer-events: none;
    background:
        linear-gradient(#fff, #fff) top left / 18px 4px no-repeat,
        linear-gradient(#fff, #fff) top right / 18px 4px no-repeat,
        linear-gradient(#fff, #fff) bottom left / 18px 4px no-repeat,
        linear-gradient(#fff, #fff) bottom right / 18px 4px no-repeat,
        linear-gradient(#fff, #fff) top left / 4px 18px no-repeat,
        linear-gradient(#fff, #fff) top right / 4px 18px no-repeat,
        linear-gradient(#fff, #fff) bottom left / 4px 18px no-repeat,
        linear-gradient(#fff, #fff) bottom right / 4px 18px no-repeat;
}

.template-upload-preview-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 8px;
    width: 100%;
}

.template-upload-preview-controls label {
    display: contents;
}

.template-upload-preview-controls label > span {
    grid-column: 1;
    grid-row: 1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.template-upload-preview-controls input[type="range"] {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-height: 24px;
}

.template-upload-preview-controls .button {
    grid-column: 2;
    grid-row: 1;
    width: 32px;
    min-width: 32px;
    min-height: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    font-size: 14px;
    justify-self: end;
    white-space: nowrap;
}

.template-upload-preview-controls .button svg {
    width: 16px;
    height: 16px;
}

.template-upload-file-name {
    max-width: 100%;
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-items-list {
    min-width: 0;
}

.template-current-preview {
    display: grid;
    justify-items: start;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.template-current-preview img {
    width: min(100%, 300px);
    aspect-ratio: 9 / 16;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.template-current-preview img.is-format-16-9 {
    width: min(100%, 560px);
    aspect-ratio: 16 / 9;
}

.template-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 200px));
    grid-auto-rows: 1fr;
    gap: 14px;
    align-items: stretch;
    justify-content: space-between;
    padding-inline: 12px;
}

.template-card-grid:has(> .template-card:nth-child(1):nth-last-child(-n+4)) {
    justify-content: flex-start;
    gap: 30px;
}

.template-load-more-row {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.template-load-more-button {
    min-height: 46px;
    padding: 0 22px;
    font-weight: 900;
}

.template-card {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr auto;
    gap: 7px;
    height: 100%;
    min-height: 0;
    padding: 4px;
    background: #f4f8fc;
    border: 1px solid #b9cbe0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.template-card-top {
    display: block;
    min-width: 0;
    margin: -4px -4px 0;
    padding: 8px 10px;
    background: var(--admin-selected-gradient);
    border-radius: 8px 8px 4px 4px;
}

.template-card-title {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.12;
    padding: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-thumb {
    display: grid;
    place-items: center;
    align-self: center;
    justify-self: center;
    width: calc(100% - 4px);
    min-width: 0;
    height: 170px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 8px;
    appearance: none;
    cursor: zoom-in;
}

.template-thumb.is-format-9-16 {
    width: min(42%, 86px);
}

.template-thumb.is-format-16-9 {
    width: calc(100% - 4px);
    max-width: none;
}

.template-thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.template-card-meta-list {
    display: grid;
    gap: 3px;
    align-self: end;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.template-card-meta {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 0;
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
}

.template-card-meta svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.template-card-meta.is-system {
    color: var(--admin-secondary);
}

.template-card-meta.is-mine {
    color: #b01868;
}

.template-card-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.template-quality-warning {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #f3d6c6;
    min-width: 0;
    color: #9a3412;
    font-size: 9px;
    font-weight: 400;
}

.template-quality-warning svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.template-quality-warning span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-actions {
    display: flex;
    grid-row: -1;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    align-self: end;
    margin-top: -6px;
    padding-top: 8px;
    border-top: 1px solid #dbe6f2;
    background: transparent;
    border-radius: 0;
}

.template-actions .template-status-action {
    margin-right: 0;
}

.frames-page .template-card-grid {
    justify-content: flex-start;
}

.template-actions form {
    margin: 0;
}

.template-card .action-icon-button {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 12px;
    line-height: 1;
}

.template-card .action-icon-button svg {
    width: 15px;
    height: 15px;
}

.template-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(23, 32, 51, 0.58);
    cursor: zoom-out;
}

.template-preview-dialog {
    width: min(70vw, 980px);
    height: min(70vh, 760px);
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: default;
}

.template-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.template-preview-header strong {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-preview-body {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.template-preview-frame {
    width: auto;
    height: min(100%, 70vh);
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    background: #111827;
    border-radius: 8px;
    aspect-ratio: 9 / 16;
    cursor: zoom-out;
}

.template-preview-frame.is-format-16-9 {
    width: min(100%, 70vw);
    height: auto;
    aspect-ratio: 16 / 9;
}

.template-preview-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-out;
}

.gallery-panel {
    margin-top: 22px;
}

.gallery-expiry-summary {
    display: grid;
    min-width: 140px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.gallery-expiry-summary span {
    padding: 10px 14px;
    color: var(--muted);
    background: #f8fafd;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.gallery-expiry-summary strong {
    padding: 14px;
    color: var(--text);
    font-size: 18px;
    font-weight: 400;
}

.gallery-share-panel {
    margin-top: 22px;
}

.gallery-client-panel {
    margin-top: 22px;
}

.gallery-client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}

.gallery-client-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    justify-items: center;
    text-align: center;
}

.gallery-client-logo {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--primary);
    background: #f5f7fb;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 26px;
    font-weight: 900;
}

.gallery-client-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.gallery-client-info {
    display: grid;
    gap: 4px;
}

.gallery-client-info strong {
    color: var(--text);
    font-size: 20px;
}

.gallery-client-info span,
.gallery-client-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.gallery-client-card p b {
    color: var(--primary);
    font-size: 30px;
}

.gallery-client-card .button {
    width: 100%;
}

.gallery-event-panel {
    margin-top: 22px;
}

.gallery-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.gallery-event-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    justify-items: center;
    text-align: center;
}

.gallery-event-card strong {
    color: var(--text);
    font-size: 22px;
}

.gallery-event-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.gallery-event-card dl div {
    display: grid;
    gap: 3px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    justify-items: center;
}

.gallery-event-card dt,
.gallery-event-card dd {
    margin: 0;
}

.gallery-event-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.gallery-event-card dd {
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
}

.gallery-event-card .button {
    width: 100%;
}

.gallery-share-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.gallery-share-form {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.gallery-share-form h3,
.gallery-share-card > h3 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
}

.gallery-share-settings-row {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(260px, 1fr) minmax(220px, 300px);
    gap: 16px;
    align-items: start;
}

.gallery-share-state {
    display: grid;
    gap: 8px;
    align-content: start;
}

.gallery-share-state .status-badge {
    width: 100%;
    justify-content: center;
}

.gallery-share-state small {
    color: var(--muted);
    line-height: 1.35;
    font-weight: 700;
}

.gallery-share-settings-row .primary-action {
    width: 100%;
    min-width: 0;
}

.gallery-share-settings-row .gallery-disable-action {
    background: #8a1f1f;
    box-shadow: 0 18px 34px rgba(138, 31, 31, 0.18);
}

.gallery-share-card {
    display: grid;
    gap: 16px;
}

.gallery-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.gallery-link-row .button {
    min-height: 44px;
}

.gallery-share-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
    gap: 24px;
    align-items: start;
}

.gallery-share-direct,
.gallery-share-side {
    display: grid;
    gap: 16px;
}

.gallery-share-disabled {
    align-content: start;
    min-height: 180px;
    padding: 18px;
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.gallery-share-card label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.copy-field,
.gallery-share-message {
    width: 100%;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
}

.copy-field {
    min-height: 44px;
    padding: 0 12px;
}

.gallery-share-message {
    min-height: 190px;
    padding: 12px;
    resize: vertical;
    line-height: 1.45;
}

.gallery-share-qr {
    width: 236px;
    max-width: 100%;
    min-height: 236px;
    display: grid;
    place-items: center;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.gallery-share-qr-wrap {
    display: grid;
    justify-items: start;
}

.gallery-share-main {
    display: grid;
    grid-template-columns: auto minmax(220px, 320px);
    gap: 18px;
    align-items: center;
}

.gallery-share-feature {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.gallery-share-feature span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.gallery-share-feature small {
    color: var(--muted);
    line-height: 1.35;
    font-weight: 700;
}

.gallery-share-featured {
    width: 100%;
    min-width: 0;
}

.gallery-share-subtitle {
    margin: 4px 0 -4px;
    color: var(--text);
    font-size: 22px;
}

.gallery-share-qr img,
.gallery-share-qr canvas {
    max-width: 100%;
    height: auto !important;
}

.gallery-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 760px;
}

.gallery-share-actions .gallery-share-brand-button {
    color: var(--share-brand-color, #0f9f7a);
}

.gallery-share-actions .gallery-share-brand-button:hover,
.gallery-share-actions .gallery-share-brand-button:focus-visible {
    color: var(--share-brand-color, #0f9f7a);
}

.gallery-share-actions .gallery-share-brand-button svg.brand-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: none;
    stroke-width: 0;
}

.gallery-share-actions .gallery-share-brand-button--whatsapp {
    --share-brand-color: #25d366;
}

.gallery-share-actions .gallery-share-brand-button--telegram {
    --share-brand-color: #229ed9;
}

.gallery-share-actions .gallery-share-brand-button--facebook {
    --share-brand-color: #1877f2;
}

.gallery-share-actions .gallery-share-brand-button--x {
    --share-brand-color: #111827;
}

.gallery-share-actions .gallery-share-brand-button--linkedin {
    --share-brand-color: #0a66c2;
}

.gallery-share-actions .gallery-share-brand-button--viber {
    --share-brand-color: #7360f2;
}

.gallery-share-actions .gallery-share-brand-button--instagram {
    --share-brand-color: #e4405f;
}

.gallery-share-actions .gallery-share-brand-button--tiktok {
    --share-brand-color: #111827;
}

.gallery-summary {
    margin: 6px 0 0;
}

.gallery-panel-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: flex-end;
    gap: 12px;
}

.gallery-status-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.gallery-status-filter a,
.gallery-status-filter button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 7px;
    padding: 7px 12px;
    color: var(--muted);
    background: transparent;
    border: 0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.gallery-status-filter button.is-icon-only {
    min-width: 48px;
    padding-inline: 12px;
}

.gallery-status-filter svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-status-filter a:hover,
.gallery-status-filter a:focus-visible,
.gallery-status-filter a.is-active,
.gallery-status-filter button:hover,
.gallery-status-filter button:focus-visible,
.gallery-status-filter button.is-active {
    color: var(--text);
    background: #fff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
}

.gallery-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 200px));
    grid-auto-rows: 1fr;
    gap: 14px;
    align-items: stretch;
    justify-content: space-between;
    padding-inline: 12px;
    margin-top: 18px;
}

.gallery-card-grid.is-short-row {
    justify-content: flex-start;
    gap: 30px;
}

.gallery-card {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 1px;
    height: 100%;
    min-height: 0;
    padding: 4px;
    background: #f4f8fc;
    border: 1px solid #b9cbe0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.gallery-card.is-removed {
    border-color: #f2a2ad;
    background: #fff1f3;
}

.gallery-thumb {
    position: relative;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: min(34%, 74px);
    min-width: 62px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
    background: #111827;
    border-radius: 8px;
    aspect-ratio: 9 / 16;
    text-decoration: none;
    font-weight: 800;
}

.gallery-thumb.is-format-16-9 {
    width: calc(100% - 4px);
    max-width: 218px;
    aspect-ratio: 16 / 9;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card.is-removed .gallery-thumb img {
    filter: grayscale(0.48) contrast(0.92);
    opacity: 0.78;
}

.gallery-removed-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    border-radius: 999px;
    padding: 4px 7px;
    color: #fff;
    background: #9f1d35;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.gallery-thumb[data-public-gallery-lightbox] {
    cursor: zoom-in;
}

.gallery-card-body {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.gallery-card-body strong,
.gallery-card-body span {
    display: block;
}

.gallery-card-body span:not(.status-badge) {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.gallery-meta {
    grid-row: 2;
    display: grid;
    gap: 8px;
    margin: 0;
}

.gallery-meta div {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.gallery-meta dt,
.gallery-meta dd {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.gallery-meta dt {
    display: inline-flex;
    align-items: center;
}

.gallery-meta dt svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-meta dd {
    color: var(--text);
    text-align: left;
}

.gallery-download-value {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gallery-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #f5b2d0;
    border-radius: 12px;
    background: #fff1f7;
    color: #db2777;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.gallery-count-badge:hover,
.gallery-count-badge:focus-visible {
    border-color: #db2777;
    color: #db2777;
}

.gallery-combined-badge {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: max-content;
    min-width: 46px;
    height: 30px;
    gap: 5px;
    padding: 0 7px;
    border-radius: 15px;
    white-space: nowrap;
}

.gallery-combined-badge .gallery-badge-icon,
.gallery-combined-badge .gallery-badge-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-combined-badge .gallery-badge-icon {
    color: #61728e;
}

.gallery-combined-badge .gallery-badge-number {
    color: #db2777;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    min-width: 1ch;
    text-align: center;
}

.gallery-combined-badge svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-download-combined-badge {
    text-decoration: none;
}

.gallery-share-value small,
.gallery-share-value span:not(.gallery-count-badge):not(.gallery-badge-icon):not(.gallery-badge-number) {
    display: block;
}

.gallery-share-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-share-line + .gallery-share-line {
    margin-top: 4px;
}

.event-view-gallery-share-lines-row {
    grid-template-columns: minmax(0, 1fr);
}

.event-view-gallery-share-lines-row dt {
    display: none;
}

.event-view-gallery-share-lines-row dd {
    grid-column: 1;
}

.gallery-share-origin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    min-width: 26px;
    height: 26px;
    color: #61728e;
}

.gallery-share-origin-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-share-value small {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 26px;
}

.gallery-share-value small > span:last-child {
    line-height: 1.35;
    white-space: nowrap;
}

.event-view-gallery-created-row dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gallery-photo-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.event-view-gallery-created-row .event-view-photo-download-button,
.event-view-gallery-created-row .event-view-photo-remove-button,
.event-view-gallery-created-row .event-view-photo-restore-button {
    flex: 0 0 auto;
}

.gallery-meta dt .action-icon-button {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    padding: 0;
    border-radius: 12px;
}

.gallery-meta dt .action-icon-button svg {
    width: 13px;
    height: 13px;
}

.event-view-gallery-remove-row dd {
    color: #9f1d35;
    font-weight: 700;
}

.gallery-meta .event-view-gallery-photo-actions-row {
    grid-template-columns: minmax(0, 1fr);
}

.gallery-meta .event-view-gallery-photo-actions-row dd {
    display: none;
}

.gallery-meta .event-view-gallery-photo-actions-row .gallery-photo-download-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.gallery-meta .event-view-gallery-photo-actions-row .gallery-photo-download-cell::after {
    content: attr(data-downloaded-at);
    color: var(--muted);
    line-height: 1.35;
    white-space: nowrap;
}


.event-view-gallery-restore-row dd {
    color: #15803d;
    font-weight: 700;
}

.gallery-card .event-view-photo-remove-button {
    color: #9f1d35;
    border-color: #f5b2bf;
    background: #fff1f3;
}

.gallery-card .event-view-photo-remove-button:hover,
.gallery-card .event-view-photo-remove-button:focus-visible {
    color: #fff;
    border-color: #9f1d35;
    background: #9f1d35;
}

.gallery-card .event-view-photo-restore-button {
    color: #15803d;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.gallery-card .event-view-photo-restore-button:hover,
.gallery-card .event-view-photo-restore-button:focus-visible {
    color: #fff;
    border-color: #15803d;
    background: #15803d;
}

.gallery-actions {
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.gallery-card .action-icon-button {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 12px;
    line-height: 1;
}

.gallery-card .action-icon-button svg {
    width: 13px;
    height: 13px;
}

.gallery-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.gallery-pagination[hidden] {
    display: none;
}

.gallery-pagination span {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gallery-pagination button,
.gallery-pagination a,
.gallery-pagination .pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--admin-primary);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.gallery-pagination button:hover,
.gallery-pagination button:focus-visible,
.gallery-pagination button.is-active,
.gallery-pagination a:hover,
.gallery-pagination a:focus-visible,
.gallery-pagination .pagination-link.is-active {
    color: #fff;
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
}

.gallery-pagination button:disabled,
.gallery-pagination .pagination-link.is-disabled {
    cursor: default;
    opacity: 0.42;
    color: var(--muted);
    background: #fff;
    border-color: var(--line);
}

.gallery-public-page {
    display: block;
    padding: 0;
    background: #f5f7fb;
}

.public-gallery-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px 0 46px;
}

.public-gallery-hero {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    gap: 14px;
    padding: clamp(28px, 7vw, 56px) 0 24px;
    background: rgba(245, 247, 251, 0.96);
    border-bottom: 1px solid rgba(217, 224, 236, 0.86);
}

.public-gallery-hero h1 {
    font-size: clamp(28px, 4.8vw, 36px);
}

.public-gallery-hero .lead {
    font-size: clamp(12px, 2vw, 16px);
}

.public-gallery-title-row {
    display: grid;
    justify-items: start;
    gap: 14px;
}

.public-gallery-event-logo {
    width: clamp(82px, 10vw, 124px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.public-gallery-event-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.public-gallery-bulk-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.public-gallery-download-all,
.public-gallery-download-zip,
.public-gallery-download-status button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    color: #fff;
    background: #ff7918;
    border: 1px solid #ff7918;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}

.public-gallery-download-all:hover,
.public-gallery-download-all:focus-visible,
.public-gallery-download-zip:hover,
.public-gallery-download-zip:focus-visible,
.public-gallery-download-status button:hover,
.public-gallery-download-status button:focus-visible {
    color: #fff;
    background: #e9660b;
    border-color: #e9660b;
}

.public-gallery-download-all:disabled {
    cursor: default;
    opacity: 0.7;
}

.public-gallery-download-all svg,
.public-gallery-download-zip svg,
.public-gallery-download-status button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-gallery-download-status {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 8px 6px 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.public-gallery-download-status[hidden] {
    display: none;
}

.public-gallery-download-status button {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 13px;
    box-shadow: none;
}

.public-gallery-grid {
    display: block;
    column-width: 180px;
    column-gap: 14px;
    padding-inline: 12px;
}

@media (min-width: 481px) {
    .public-gallery-hero,
    .public-gallery-grid {
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }

    .public-gallery-hero {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: 18px;
        padding: 12px 18px;
        margin-bottom: 22px;
    }

    .public-gallery-title-row {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        grid-column: 1;
        grid-row: 1;
    }

    .public-gallery-event-logo {
        width: 76px;
    }

    .public-gallery-bulk-download {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        margin-top: 0;
    }

    .public-gallery-grid {
        padding: 14px;
    }
}

.public-gallery-card {
    display: grid;
    width: 100%;
    margin: 0 0 14px;
    padding: 4px;
    background: #f4f8fc;
    border: 1px solid #b9cbe0;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
    break-inside: avoid;
    page-break-inside: avoid;
    overflow: hidden;
}

.public-gallery-card.is-selected {
    border-color: #ff7918;
    box-shadow: 0 0 0 2px rgba(255, 121, 24, 0.22), 0 8px 18px rgba(15, 23, 42, 0.10);
}

.public-gallery-media {
    display: grid;
    place-items: center;
}

.public-gallery-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
}

.public-gallery-photo-wrap.is-format-16-9 {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
}

.public-gallery-photo {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #111827;
    border-radius: 8px;
    text-decoration: none;
}

.public-gallery-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-gallery-select {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    cursor: pointer;
}

.public-gallery-select[aria-pressed="true"] {
    color: #fff;
    background: #ff7918;
    border-color: #ff7918;
}

.public-gallery-select svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    padding: clamp(8px, 2dvw, 24px);
    background: #f5f7fb;
    cursor: zoom-out;
}

.public-gallery-lightbox[hidden] {
    display: none;
}

.public-gallery-lightbox-frame {
    position: relative;
    display: inline-grid;
    max-width: calc(100vw - clamp(16px, 4vw, 48px));
    max-width: calc(100dvw - clamp(16px, 4dvw, 48px));
    max-height: calc(100vh - clamp(16px, 4vh, 48px));
    max-height: calc(100dvh - clamp(16px, 4dvh, 48px));
}

.public-gallery-lightbox-frame img {
    max-width: calc(100vw - clamp(16px, 4vw, 48px));
    max-width: calc(100dvw - clamp(16px, 4dvw, 48px));
    max-height: calc(100vh - clamp(16px, 4vh, 48px));
    max-height: calc(100dvh - clamp(16px, 4dvh, 48px));
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

.public-gallery-lightbox-download {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    text-decoration: none;
}

.public-gallery-lightbox-download:hover,
.public-gallery-lightbox-download:focus-visible {
    color: #fff;
    background: var(--admin-primary);
    border-color: var(--admin-primary);
}

.public-gallery-lightbox-download svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-gallery-selection-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    color: #fff;
    background: rgba(7, 12, 21, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.public-gallery-selection-bar[hidden] {
    display: none;
}

.public-gallery-selection-copy {
    min-width: 0;
    margin-right: auto;
    padding-left: 16px;
    display: grid;
    gap: 2px;
}

.public-gallery-selection-copy strong {
    font-size: 14px;
    font-weight: 400;
}

.public-gallery-selection-copy small {
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

.public-gallery-selection-note-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 5px;
    color: #111827;
    background: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.public-gallery-selection-bar button {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    align-self: stretch;
    padding: 0 12px;
    color: #fff;
    background: #ff7918;
    border: 1px solid #ff7918;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.public-gallery-selection-bar button:hover,
.public-gallery-selection-bar button:focus-visible {
    background: #e9660b;
    border-color: #e9660b;
}

.public-gallery-selection-bar button:disabled {
    cursor: default;
    opacity: 0.72;
}

.public-gallery-selection-bar button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-gallery-selection-bar [data-public-gallery-selection-download] span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.public-gallery-selection-bar .public-gallery-selection-clear {
    width: 38px;
    min-width: 38px;
    margin-right: 14px;
    padding: 0;
    border-radius: 8px 0 0 8px;
}

.public-gallery-selection-bar .public-gallery-selection-clear[hidden] {
    display: none;
}

.public-gallery-resume {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    color: #172033;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    font-size: 13px;
    font-weight: 700;
}

.public-gallery-resume[hidden] {
    display: none;
}

.public-gallery-resume-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-gallery-resume button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: var(--admin-primary-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.public-gallery-resume button:hover,
.public-gallery-resume button:focus-visible {
    color: #fff;
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
}

@media (min-width: 481px) {
    .public-gallery-selection-bar {
        position: static;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        width: 100%;
        min-height: 40px;
        gap: 10px;
        padding: 6px 0 6px 14px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 8px;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
    }

    .public-gallery-selection-copy {
        padding-left: 0;
    }

    .public-gallery-selection-copy strong,
    .public-gallery-selection-copy small {
        white-space: normal;
    }

    .public-gallery-selection-bar button {
        align-self: center;
        min-height: 34px;
        border-radius: 8px;
    }

    .public-gallery-selection-bar .public-gallery-selection-clear {
        width: 38px;
        min-width: 38px;
        margin-right: 10px;
        border-radius: 8px;
    }

    .public-gallery-resume {
        grid-column: 1 / -1;
        width: 100%;
    }
}

body.is-public-gallery-lightbox-open {
    overflow: hidden;
}

/* Click&Share2U Mobile */
.mobile-app-page {
    min-height: 100dvh;
    display: block;
    overflow: hidden;
    padding: 0;
    background: #060812;
    color: #fff;
}

.mobile-app-shell {
    position: relative;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(226, 27, 90, 0.22), transparent 34%),
        linear-gradient(160deg, #060812 0%, #101827 52%, #18111f 100%);
}

.mobile-app-topbar {
    position: absolute;
    inset: env(safe-area-inset-top) 0 auto 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    min-height: 64px;
    padding: 3px max(10px, env(safe-area-inset-right)) 2px max(10px, env(safe-area-inset-left));
    pointer-events: none;
}

.mobile-app-brand {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 90%;
    max-width: 90%;
}

.mobile-app-brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.mobile-app-topbar > .mobile-icon-button:first-child {
    grid-column: 1;
    justify-self: start;
}

.mobile-app-topbar > .mobile-icon-button[hidden]:first-child + .mobile-app-brand {
    grid-column: 1 / -1;
    width: 90vw;
    max-width: 90vw;
}

.mobile-app-topbar > .mobile-install-button {
    position: absolute;
    right: max(10px, env(safe-area-inset-right));
    top: 50%;
    transform: translateY(-50%);
}

.mobile-icon-button,
.mobile-photo-actions button,
.mobile-photo-approval-actions button,
.mobile-live-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(4, 8, 18, 0.64);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.mobile-icon-button[hidden],
.mobile-install-button[hidden] {
    display: none;
}

.mobile-icon-button svg,
.mobile-photo-actions svg,
.mobile-photo-approval-actions svg,
.mobile-live-actions svg,
.mobile-home-action svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu-lines,
.mobile-menu-lines::before,
.mobile-menu-lines::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-menu-lines {
    position: relative;
}

.mobile-menu-lines::before,
.mobile-menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.mobile-menu-lines::before {
    top: -7px;
}

.mobile-menu-lines::after {
    top: 7px;
}

.mobile-app-shell.is-mobile-photo-flow .mobile-menu-lines {
    background: transparent;
}

.mobile-app-shell.is-mobile-photo-flow .mobile-menu-lines::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-app-shell.is-mobile-photo-flow .mobile-menu-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.mobile-screen[hidden] {
    display: none;
}

.mobile-login-screen,
.mobile-events-screen,
.mobile-event-pin-screen,
.mobile-home-screen {
    align-items: center;
    justify-content: flex-start;
    padding: calc(74px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.mobile-login-screen,
.mobile-event-pin-screen {
    justify-content: flex-start;
    padding-top: max(122px, calc(env(safe-area-inset-top) + 20dvh));
}

.mobile-events-screen {
    gap: 14px;
    padding-top: calc(92px + env(safe-area-inset-top));
}

.mobile-home-screen {
    padding-top: calc(92px + env(safe-area-inset-top));
}

.mobile-login-card {
    display: grid;
    gap: 12px;
    width: min(100%, 340px);
}

.mobile-login-fields {
    display: grid;
    gap: 12px;
}

.mobile-event-entry-choice,
.mobile-event-entry-fields {
    display: grid;
    gap: 12px;
}

.mobile-login-fields h1,
.mobile-event-pin-screen h1,
.mobile-events-head h1 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 28px;
    line-height: 1.1;
    text-align: center;
}

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

.mobile-code-field span,
.mobile-live-manual-form span {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
}

.mobile-code-field small {
    font: inherit;
    color: rgba(255, 255, 255, 0.58);
}

.mobile-code-field input,
.mobile-live-manual-form input {
    width: 100%;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    font-size: 19px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0;
    outline: none;
}

.mobile-login-fields .mobile-code-field input {
    text-align: left;
    font-size: 17px;
    font-weight: 800;
}

.mobile-primary-button,
.mobile-live-manual-form button {
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #e21b5a;
    font-size: 17px;
    font-weight: 900;
}

.mobile-text-button {
    min-height: 42px;
    border: 0;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    font-size: 15px;
    font-weight: 900;
}

.mobile-message,
.mobile-pending-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.mobile-message.is-error {
    color: #ffb4c9;
}

.mobile-message.is-success {
    color: #a7f3d0;
}

.mobile-events-head {
    width: min(100%, 420px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-events-head h1 {
    text-align: left;
}

.mobile-events-list {
    width: min(100%, 420px);
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow: auto;
    padding: 0 0 max(16px, env(safe-area-inset-bottom));
}

.mobile-event-card {
    position: relative;
    width: 100%;
    min-height: 84px;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
    text-align: left;
}

.mobile-event-card.is-current {
    padding-right: 58px;
    border-color: rgba(226, 27, 90, 0.86);
    background: rgba(226, 27, 90, 0.14);
    cursor: default;
}

.mobile-event-card-current-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 999px;
    color: #fff;
    background: #e21b5a;
}

.mobile-event-card-current-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-event-card strong {
    min-width: 0;
    font-size: 18px;
    line-height: 1.18;
}

.mobile-event-card span,
.mobile-event-card small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 800;
}

.mobile-event-status {
    text-align: center;
}

.mobile-event-status p {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.mobile-event-status h1 {
    margin: 0;
    max-width: min(90vw, 300px);
    font-size: 21px;
    line-height: 1.12;
}

.mobile-event-status small {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
    font-weight: 800;
}

.mobile-current-device-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
}

.mobile-current-device-name > span:not(.mobile-current-device-icon) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-current-device-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: currentColor;
}

.mobile-current-device-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-home-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 110px));
    justify-content: center;
    gap: 17px;
    width: min(100%, 340px);
    margin: 24px 0 18px;
}

.mobile-home-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.mobile-home-action svg {
    width: 55px;
    height: 55px;
}

.mobile-home-action[hidden],
.mobile-menu-card button[hidden] {
    display: none;
}

.mobile-flow-screen {
    padding-top: calc(108px + env(safe-area-inset-top));
    background: #060812;
}

.mobile-app-shell.is-mobile-photo-flow .mobile-flow-screen {
    padding-top: calc(66px + env(safe-area-inset-top));
}

.mobile-flow-head {
    position: absolute;
    inset: calc(68px + env(safe-area-inset-top)) 0 auto 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    min-height: 54px;
    padding: 4px max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left));
}

.mobile-app-shell.is-mobile-photo-flow .mobile-flow-head {
    display: none;
}

.mobile-flow-head h1 {
    grid-column: 2;
    margin: 0;
    min-width: 0;
    font-size: 15px;
    line-height: 1.16;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.mobile-flow-actions {
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.mobile-flow-actions[hidden] {
    display: none;
}

.mobile-gallery-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-flow-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(4, 8, 18, 0.54);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(10px);
}

.mobile-flow-action-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-flow-action-button.is-gallery-removed {
    color: #ff6b81;
}

.mobile-flow-action-button.is-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.16);
}

.mobile-flow-action-button.is-title-add {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
}

.mobile-flow-action-button.is-gallery-removed.is-active {
    border-color: rgba(255, 107, 129, 0.48);
    background: rgba(138, 31, 31, 0.72);
}

.mobile-flow-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 16px max(10px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}

.mobile-app-shell.is-mobile-photo-flow .mobile-flow-content {
    padding-top: 4px;
}

.mobile-format-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
}

.mobile-format-button,
.mobile-choice-button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 22px;
    font-weight: 900;
}

.mobile-app-shell.is-mobile-photo-flow .mobile-format-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    font-size: 0;
}

.mobile-format-button--portrait::before,
.mobile-format-button--landscape::before {
    content: "";
    display: block;
    margin: 0 auto 14px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.mobile-app-shell.is-mobile-photo-flow .mobile-format-button::before {
    margin: 0;
}

.mobile-format-button--portrait::before {
    width: 72px;
    height: 124px;
}

.mobile-format-button--landscape::before {
    width: 140px;
    height: 78px;
}

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

.mobile-gallery-grid {
    display: block;
    column-width: 164px;
    column-gap: 10px;
}

.mobile-frame-card,
.mobile-gallery-card {
    position: relative;
    display: block;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-gallery-card {
    width: 100%;
    margin: 0 0 10px;
    break-inside: avoid;
    page-break-inside: avoid;
    vertical-align: top;
}

.mobile-frame-card.is-format-9-16,
.mobile-gallery-card.is-format-9-16 {
    aspect-ratio: 9 / 16;
}

.mobile-frame-card.is-format-16-9,
.mobile-gallery-card.is-format-16-9 {
    aspect-ratio: 16 / 9;
}

.mobile-frame-card img,
.mobile-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-gallery-card.is-removed {
    border-color: rgba(255, 107, 129, 0.42);
    background: rgba(138, 31, 31, 0.24);
}

.mobile-gallery-card.is-removed img {
    filter: grayscale(0.5) contrast(0.9);
    opacity: 0.76;
}

.mobile-no-frame-card {
    display: grid;
    place-items: center;
}

.mobile-no-frame-icon {
    position: relative;
    display: block;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
}

.mobile-no-frame-icon::before,
.mobile-no-frame-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
    transform-origin: center;
}

.mobile-no-frame-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-no-frame-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-gallery-card span,
.mobile-sync-badge {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 8px;
    padding: 6px 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.mobile-gallery-card .mobile-gallery-date {
    top: 8px;
    bottom: auto;
    left: 6px;
    right: 6px;
    border-radius: 999px;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.62);
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0;
}

.mobile-gallery-card .mobile-gallery-meta-line {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    text-align: left;
    white-space: nowrap;
}

.mobile-gallery-card .mobile-gallery-meta-line svg {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-gallery-card .mobile-gallery-meta-line b {
    min-width: 0;
    color: inherit;
    font: inherit;
    font-weight: 800;
    line-height: inherit;
}

.mobile-gallery-card.is-removed .mobile-gallery-date {
    right: auto;
    max-width: calc(100% - 104px);
    text-align: left;
}

.mobile-gallery-card .mobile-gallery-removed-badge {
    top: 8px;
    bottom: auto;
    left: auto;
    right: 8px;
    width: auto;
    border-radius: 999px;
    background: rgba(138, 31, 31, 0.88);
    font-size: 10px;
    line-height: 1.1;
}

.mobile-gallery-card .mobile-gallery-source {
    bottom: 36px;
    text-align: left;
    background: rgba(0, 0, 0, 0.68);
}

.mobile-gallery-card .mobile-gallery-removed-at {
    bottom: 8px;
    padding-block: 5px;
    font-size: 10px;
    line-height: 1.1;
    text-align: left;
    background: rgba(0, 0, 0, 0.68);
}

.mobile-gallery-card.is-removed .mobile-gallery-removed-at {
    right: 58px;
}

.mobile-gallery-restore-button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(74, 222, 128, 0.46);
    border-radius: 999px;
    color: #fff;
    background: rgba(21, 128, 61, 0.72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(12px);
}

.mobile-gallery-restore-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-gallery-restore-button:disabled {
    opacity: 0.44;
}

.mobile-camera-screen {
    background: #000;
}

.mobile-camera-stage,
.mobile-camera-canvas,
.mobile-camera-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mobile-camera-video {
    opacity: 0;
    pointer-events: none;
}

.mobile-camera-canvas {
    object-fit: contain;
    background: #000;
}

.mobile-camera-capture {
    position: absolute;
    left: 50%;
    bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
    z-index: 15;
    width: 76px;
    height: 76px;
    transform: translateX(-50%);
    border: 4px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    color: #fff;
    background: #e21b5a;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.mobile-camera-capture svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-camera-switch {
    position: absolute;
    right: max(18px, calc(18px + env(safe-area-inset-right)));
    bottom: max(34px, calc(34px + env(safe-area-inset-bottom)));
    z-index: 16;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: #fff;
    background: rgba(5, 8, 22, 0.72);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px);
}

.mobile-camera-switch:disabled {
    opacity: 0.44;
}

.mobile-camera-switch svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-camera-message {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: max(110px, calc(110px + env(safe-area-inset-bottom)));
    z-index: 14;
    margin: 0;
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.56);
    font-size: 13px;
    text-align: center;
}

.mobile-camera-message:empty {
    display: none;
}

.mobile-photo-result {
    display: grid;
    gap: 10px;
    min-height: calc(100dvh - 90px);
}

.mobile-photo-result-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.mobile-photo-result-image.is-format-9-16 {
    max-height: calc(100dvh - 180px);
    aspect-ratio: 9 / 16;
    justify-self: center;
}

.mobile-photo-result-image.is-format-16-9 {
    aspect-ratio: 16 / 9;
}

.mobile-photo-result-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-photo-result.is-removed {
    min-height: 0;
}

.mobile-photo-audit {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(255, 107, 129, 0.32);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    background: rgba(138, 31, 31, 0.22);
}

.mobile-photo-audit span {
    justify-self: start;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(138, 31, 31, 0.82);
    font-size: 11px;
    font-weight: 900;
}

.mobile-photo-audit p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.3;
}

.mobile-photo-audit strong {
    color: #fff;
}

.mobile-photo-approval {
    grid-template-columns: 1fr;
}

.mobile-photo-approval-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(18px, calc(18px + env(safe-area-inset-bottom)));
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 18px;
    pointer-events: none;
}

.mobile-photo-approval-actions button {
    width: 56px;
    height: 56px;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(17, 20, 32, 0.34);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    opacity: 0.78;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.mobile-photo-approval-actions button:disabled {
    opacity: 0.38;
}

.mobile-photo-actions button.is-danger {
    color: #fff;
    border-color: rgba(255, 107, 129, 0.42);
    background: rgba(138, 31, 31, 0.74);
}

.mobile-photo-actions button.is-restore {
    color: #fff;
    border-color: rgba(74, 222, 128, 0.46);
    background: rgba(21, 128, 61, 0.72);
}

.mobile-photo-actions button:disabled {
    opacity: 0.42;
}

.mobile-photo-approval-actions button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 3px;
}

.mobile-photo-approval-status {
    top: 12px;
    bottom: auto;
    z-index: 5;
}

.mobile-photo-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.mobile-photo-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.mobile-photo-qr[hidden] {
    display: none;
}

.mobile-photo-qr img,
.mobile-photo-qr canvas {
    display: block;
    width: min(78vw, 320px);
    height: min(78vw, 320px);
}

.mobile-live-scanner {
    display: grid;
    gap: 10px;
}

.mobile-live-video {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    object-fit: cover;
    background: #000;
}

.mobile-live-manual-form {
    display: grid;
    gap: 8px;
}

.mobile-live-list {
    display: grid;
    gap: 8px;
}

.mobile-live-row {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 7px 9px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-live-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    cursor: pointer;
    list-style: none;
}

.mobile-live-summary::-webkit-details-marker {
    display: none;
}

.mobile-live-summary::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid rgba(255, 255, 255, 0.70);
    transition: transform 0.16s ease;
}

.mobile-live-row[open] .mobile-live-summary::before {
    transform: rotate(90deg);
}

.mobile-live-summary-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.mobile-live-summary-main strong {
    min-width: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-live-summary-main small {
    min-width: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-live-summary-spacer {
    flex: 1;
}

.mobile-live-actions {
    display: flex;
    gap: 6px;
}

.mobile-live-actions button {
    width: 36px;
    height: 36px;
}

.mobile-live-actions svg {
    width: 17px;
    height: 17px;
}

.mobile-live-actions .mobile-live-share-toggle.is-muted {
    color: rgba(148, 163, 184, 0.96);
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.78);
}

.mobile-live-source-toggle-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-live-row:not([open]) .mobile-live-source-toggle-list {
    display: none;
}

.mobile-live-source-toggle-list p {
    width: 100%;
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 15px;
}

.mobile-live-source-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.mobile-live-source-control.is-muted .mobile-live-source-main {
    opacity: 0.62;
}

.mobile-live-source-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.mobile-live-source-main strong {
    min-width: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-live-source-main span {
    min-width: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-live-source-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-live-source-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.74);
}

.mobile-live-source-action svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-live-source-action.is-inactive {
    border-color: rgba(248, 113, 113, 0.56);
    background: rgba(127, 29, 29, 0.32);
}

.mobile-live-source-action.is-muted::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transform: rotate(45deg);
    pointer-events: none;
}

.mobile-live-source-action:disabled {
    opacity: 0.55;
}

.mobile-device-form,
.mobile-device-invite,
.mobile-device-list {
    display: grid;
    gap: 12px;
}

.mobile-live-manager,
.mobile-device-manager {
    display: grid;
    gap: 12px;
}

.mobile-flow-actions-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-device-section {
    display: grid;
    gap: 8px;
}

.mobile-device-section h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-live-manager {
    min-height: 0;
    padding-bottom: 0;
}

.mobile-live-manager.has-live-sessions {
    padding-bottom: 0;
}

.mobile-live-manager .mobile-live-list {
    align-self: start;
}

.mobile-live-manager.has-live-sessions .mobile-live-list {
    align-self: start;
}

.mobile-live-manager .mobile-live-list .mobile-empty-state {
    min-height: 0;
    padding-bottom: 0;
}

.mobile-live-entry-flow {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 0;
    padding-top: 12px;
}

.mobile-live-entry-panel {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-live-entry-panel h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
}

.mobile-live-entry-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.mobile-live-entry-panel strong {
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.mobile-live-entry-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
}

.mobile-live-entry-button svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-live-add-button,
.mobile-device-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.mobile-live-add-button svg,
.mobile-device-add-button svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-device-form label {
    display: grid;
    gap: 8px;
}

.mobile-device-form span,
.mobile-device-invite p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 800;
}

.mobile-device-form input,
.mobile-device-form select {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    font-size: 17px;
    font-weight: 900;
}

.mobile-device-form button,
.mobile-device-invite-actions button,
.mobile-device-blocked button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    color: #fff;
    background: #e21b5a;
    font-weight: 900;
}

.mobile-device-form-actions,
.mobile-device-invite-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-device-form-actions button:only-child {
    grid-column: 1 / -1;
}

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

.mobile-device-form-actions--three button:last-child {
    grid-column: 1 / -1;
}

.mobile-device-invite {
    align-content: start;
    text-align: center;
}

.mobile-device-invite h2 {
    margin: 0;
    font-size: 28px;
}

.mobile-device-invite-qr {
    display: grid;
    place-items: center;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.mobile-device-invite-qr img,
.mobile-device-invite-qr canvas {
    display: block;
    width: min(78vw, 320px);
    height: min(78vw, 320px);
}

.mobile-device-invite-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-device-invite-actions svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 9px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-device-row.is-disabled {
    opacity: 1;
}

.mobile-device-row.is-disabled .mobile-device-info {
    opacity: 0.62;
}

.mobile-device-row.is-cabine {
    background: rgba(20, 124, 255, 0.10);
}

.mobile-device-row.is-guest-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
}

.mobile-admin-request-row {
    border-color: rgba(219, 39, 119, 0.34);
    background: rgba(252, 231, 243, 0.95);
}

.mobile-device-row div:first-child,
.mobile-device-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mobile-device-row.is-guest-group .mobile-device-info {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.mobile-device-row strong {
    min-width: 0;
    font-size: 19px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.mobile-device-title--guest {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
}

.mobile-device-title--guest > span:first-child {
    min-width: 0;
}

.mobile-device-guest-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.mobile-device-guest-title > span:not(.mobile-device-guest-title-icon) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-device-guest-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: #2563eb;
}

.mobile-device-guest-title-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-device-guest-meta-line {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.mobile-device-guest-count,
.mobile-device-guest-photo-count,
.mobile-device-photo-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    padding: 7px 10px;
    color: #ff4aa2;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    background: rgba(255, 74, 162, 0.16);
    border: 1px solid rgba(255, 74, 162, 0.36);
    border-radius: 999px;
}

.mobile-device-guest-count svg,
.mobile-device-guest-photo-count svg,
.mobile-device-photo-badge svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-device-row small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 15px;
    font-weight: 800;
}

.mobile-device-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.mobile-device-actions {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
}

.mobile-device-row.is-guest-group .mobile-device-actions {
    grid-row: 2;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.mobile-device-row.is-guest-not-started .mobile-device-actions {
    align-self: center;
}

.mobile-device-row.is-guest-not-started {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.mobile-device-row.is-guest-not-started .mobile-device-info {
    display: block;
    grid-column: 1;
    grid-row: 1;
}

.mobile-device-row.is-guest-not-started .mobile-device-meta {
    display: none;
}

.mobile-device-row.is-guest-not-started .mobile-device-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
}

.mobile-device-actions button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(4, 8, 18, 0.64);
}

.mobile-device-actions button:disabled {
    opacity: 0.35;
}

.mobile-device-action-corner-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 11px;
    height: 11px;
    color: #2d6cff;
    background: #fff;
    border-radius: 999px;
    pointer-events: none;
}

.mobile-device-action-corner-icon svg {
    width: 8px;
    height: 8px;
    stroke-width: 2.8;
}

.mobile-device-actions .mobile-device-toggle-action.is-inactive {
    border-color: rgba(248, 113, 113, 0.56);
    background: rgba(127, 29, 29, 0.32);
}

.mobile-device-actions .mobile-device-toggle-action.is-blocked {
    color: #fff;
    border-color: rgba(248, 113, 113, 0.76);
    background: rgba(127, 29, 29, 0.72);
    opacity: 1;
    cursor: not-allowed;
}

.mobile-device-actions svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-device-accordion {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.mobile-device-accordion.is-guest-not-started {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.mobile-device-accordion > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.mobile-device-accordion > summary::-webkit-details-marker {
    display: none;
}

.mobile-device-accordion > summary::marker {
    content: "";
}

.mobile-device-accordion .mobile-device-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
}

.mobile-device-accordion.is-guest-group .mobile-device-info,
.mobile-device-accordion.is-guest-not-started .mobile-device-info {
    display: grid;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: minmax(0, 1fr);
}

.mobile-device-accordion .mobile-device-meta {
    display: flex;
    min-width: 0;
    gap: 4px 8px;
}

.mobile-device-title-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.mobile-device-title-line strong {
    min-width: 0;
}

.mobile-device-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.mobile-device-status-icon.is-admin {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(37, 99, 235, 0.18);
}

.mobile-device-status-icon.is-blocked {
    color: #fff;
    border-color: rgba(248, 113, 113, 0.62);
    background: rgba(127, 29, 29, 0.72);
}

.mobile-device-status-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-device-summary-badges {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: max-content;
}

.mobile-device-accordion .mobile-device-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 0 16px 16px;
}

.mobile-device-accordion.is-guest-group .mobile-device-actions,
.mobile-device-accordion.is-guest-not-started .mobile-device-actions {
    grid-column: auto;
    grid-row: auto;
    display: grid;
    justify-content: stretch;
    flex-wrap: initial;
}

.mobile-device-accordion .mobile-device-actions button {
    width: 100%;
    height: auto;
    min-height: 110px;
    aspect-ratio: 1;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-device-accordion .mobile-device-actions svg {
    width: 55px;
    height: 55px;
    stroke-width: 2.2;
}

.mobile-device-accordion .mobile-device-action-corner-icon {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
}

.mobile-device-accordion .mobile-device-action-corner-icon svg {
    width: 22px;
    height: 22px;
}

.mobile-transfer-list {
    display: grid;
    gap: 12px;
}

.mobile-transfer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.10);
}

.mobile-transfer-row div:first-child {
    min-width: 0;
}

.mobile-transfer-row strong {
    display: block;
    min-width: 0;
    font-size: 20px;
    line-height: 1.1;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.mobile-transfer-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #fff;
    background: rgba(4, 8, 18, 0.64);
}

.mobile-transfer-row button:disabled {
    opacity: 0.55;
}

.mobile-transfer-row svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-empty-state {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: calc(100dvh - 120px);
    color: rgba(255, 255, 255, 0.76);
    gap: 14px;
    padding: 0 12px;
    text-align: center;
}

.mobile-empty-state h2 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.mobile-empty-state p {
    margin: 0;
    max-width: 280px;
    font-size: 15px;
    line-height: 1.25;
}

.mobile-device-blocked h2 {
    font-size: 28px;
}

.mobile-device-blocked-warning {
    color: #ff6b7f;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.mobile-device-blocked-warning {
    font-size: 0;
}

.mobile-device-blocked-warning::before {
    content: "||";
    font-size: 24px;
}

.mobile-device-blocked {
    min-height: calc(100dvh - 190px);
    gap: 10px;
}

.mobile-device-blocked p {
    max-width: 250px;
    font-size: 14px;
}

.mobile-device-blocked-note {
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.mobile-device-blocked-status {
    color: #ffcf66;
    font-size: 12px;
    font-weight: 900;
}

.mobile-device-blocked-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: min(100%, 210px);
    margin-top: 6px;
}

.mobile-device-blocked-actions button {
    min-height: 42px;
    padding: 0 12px;
    white-space: normal;
}

.mobile-device-blocked-actions button:first-child {
    background: rgba(255, 255, 255, 0.14);
}

.mobile-menu-panel[hidden] {
    display: none;
}

.mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.mobile-menu-card {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    display: grid;
    gap: 8px;
    width: min(420px, calc(100vw - 20px));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 14px;
    background: rgba(7, 11, 24, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.mobile-menu-card button {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 62px;
    border: 0;
    border-radius: 8px;
    padding: 0 17px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
    text-align: left;
}

.mobile-menu-card button svg,
.mobile-menu-install svg {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (orientation: landscape) {
    .mobile-home-actions {
        grid-template-columns: repeat(auto-fit, minmax(120px, 134px));
        margin-top: 22px;
    }

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

    .mobile-photo-result {
        grid-template-columns: minmax(0, 1fr) 70px;
        align-items: center;
    }

    .mobile-photo-result.mobile-photo-approval {
        grid-template-columns: 1fr;
    }

    .mobile-photo-actions {
        flex-direction: column;
    }
}

.gallery-password-panel {
    width: min(720px, 100%);
    margin: 32px auto;
}

.gallery-password-form {
    width: min(460px, 100%);
    display: grid;
    gap: 14px;
}

.gallery-password-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
    text-align: left;
}

.gallery-password-form input {
    width: 100%;
    min-height: 54px;
    padding: 0 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 18px;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.phrase-list {
    display: grid;
    gap: 14px;
}

.phrase-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.phrase-card blockquote {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.phrase-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.phrase-meta > span:first-child {
    color: var(--muted);
    font-weight: 700;
}

.phrase-list-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(360px, 1fr));
    column-gap: 14px;
    row-gap: 1px;
}

.phrase-list-grid::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--line);
    transform: translateX(-0.5px);
    pointer-events: none;
}

.phrase-list-item {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 7px 10px;
    background: #fff;
}

.phrase-list-item[hidden] {
    display: none;
}

.phrase-list-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 22px;
    background: #fff;
}

.phrase-list-origin-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--admin-primary-dark);
}

.phrase-list-origin-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.phrase-list-origin-icon.is-mine {
    color: #b01868;
}

.phrase-list-origin-icon.is-system {
    color: var(--admin-secondary);
}

.phrase-table-text {
    min-width: 0;
}

.phrase-table-text strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
}

.phrase-table-text span {
    margin-top: 4px;
    font-size: 13px;
}

.phrase-table-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.phrase-table-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0 !important;
}

.phrase-table-actions form {
    margin: 0;
}

.phrase-text-field {
    width: min(100%, 250px);
    max-width: 250px;
}

.phrase-table-controls .action-icon-button,
.phrase-table-actions .action-icon-button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 14px;
}

.phrase-table-controls .action-icon-button svg,
.phrase-table-actions .action-icon-button svg {
    width: 16px;
    height: 16px;
}

.phrase-status-toggle.is-active svg {
    color: #fff;
    stroke: #fff;
}

.phrase-origin {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 0 !important;
    font-weight: 800;
    white-space: nowrap;
}

.phrase-origin svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.phrase-origin.is-system {
    color: var(--admin-secondary);
}

.phrase-origin.is-mine {
    color: #b01868;
}

.phrase-picker-list {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.phrase-picker-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(120px, 180px) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.phrase-picker-row:has(input:checked) {
    border-color: var(--admin-primary-dark);
    box-shadow: 0 0 0 2px var(--admin-selected);
}

.phrase-picker-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.phrase-picker-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.phrase-picker-main strong {
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phrase-picker-main span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.phrase-picker-check {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
    padding: 0;
}

.phrase-picker-row:has(input:checked) .phrase-picker-check {
    color: #fff;
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
}

.admin-page .dashboard-stat-card strong,
.admin-page .client-tree-number,
.admin-page .dashboard-module-list strong,
.admin-page .table-actions a,
.admin-page .admin-table a,
.admin-page .link-button,
.admin-page .text-link {
    color: var(--admin-primary);
}

.admin-page .dashboard-module-list a:hover,
.admin-page .dashboard-module-list a:focus-visible,
.admin-page .choice-option:hover,
.admin-page .choice-option:focus-within {
    border-color: var(--admin-primary);
}

.admin-page .choice-option:has(input:checked) {
    border-color: var(--admin-selected);
    background: var(--admin-selected-soft);
    box-shadow: 0 12px 24px var(--admin-selected-shadow);
}

.admin-page .choice-option input,
.admin-page .admin-form input[type="range"],
.admin-page .toggle-line input,
.admin-page .inline-toggle input {
    accent-color: var(--admin-primary);
}

.admin-page .choice-option:has(input:checked) input {
    accent-color: var(--admin-selected);
}

.admin-page .admin-accordion summary::after {
    color: var(--admin-primary);
}

.admin-page .button,
.admin-page .icon-button,
.admin-page .primary-action.small,
.admin-page .secondary-action {
    color: var(--admin-secondary);
}

.admin-page .button:hover,
.admin-page .button:focus-visible,
.admin-page .icon-button:hover,
.admin-page .icon-button:focus-visible,
.admin-page .primary-action.small:hover,
.admin-page .primary-action.small:focus-visible,
.admin-page .secondary-action:hover,
.admin-page .secondary-action:focus-visible {
    border-color: var(--admin-secondary);
    box-shadow: 0 14px 28px var(--admin-secondary-shadow);
}

.admin-page .primary-action.small,
.admin-page .button.is-primary,
.admin-page .icon-button.is-primary,
.admin-page .plan-status-toggle.is-active,
.admin-page .template-status-toggle.is-active {
    color: #fff;
    background: var(--admin-primary-dark);
    border-color: var(--admin-primary-dark);
    box-shadow: 0 14px 28px var(--admin-primary-shadow);
}

.admin-page .primary-action.small:hover,
.admin-page .primary-action.small:focus-visible,
.admin-page .button.is-primary:hover,
.admin-page .button.is-primary:focus-visible,
.admin-page .icon-button.is-primary:hover,
.admin-page .icon-button.is-primary:focus-visible,
.admin-page .plan-status-toggle.is-active:hover,
.admin-page .plan-status-toggle.is-active:focus-visible,
.admin-page .template-status-toggle.is-active:hover,
.admin-page .template-status-toggle.is-active:focus-visible {
    color: #fff;
    background: var(--admin-primary);
    border-color: var(--admin-primary);
}

.admin-page .client-entry-card .client-status-toggle-button.is-active {
    color: #fff;
    background: var(--admin-selected-gradient);
    border-color: transparent;
    box-shadow: 0 14px 28px var(--admin-selected-shadow);
}

.plan-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    justify-content: stretch;
    margin-top: 10px;
}

.plan-summary-card {
    display: grid;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(23, 32, 51, 0.06);
}

.plan-summary-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 7px 6px 10px;
    background: var(--admin-selected-gradient);
}

.plan-summary-header h3 {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.plan-summary-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-page .plan-summary-actions .action-icon-button,
.admin-page .plan-summary-actions .plan-status-toggle.is-active,
.admin-page .plan-summary-actions .plan-status-toggle.is-inactive {
    width: 26px;
    height: 26px;
    min-height: 26px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    box-shadow: none;
}

.admin-page .plan-summary-actions .action-icon-button:hover,
.admin-page .plan-summary-actions .action-icon-button:focus-visible,
.admin-page .plan-summary-actions .plan-status-toggle.is-active:hover,
.admin-page .plan-summary-actions .plan-status-toggle.is-active:focus-visible,
.admin-page .plan-summary-actions .plan-status-toggle.is-inactive:hover,
.admin-page .plan-summary-actions .plan-status-toggle.is-inactive:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: none;
}

.admin-page .plan-summary-actions .action-icon-button svg {
    width: 12px;
    height: 12px;
}

.plan-summary-meta {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 8px;
}

.plan-summary-meta div {
    display: grid;
    grid-template-columns: minmax(60px, 1fr) minmax(0, auto);
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 7px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.plan-summary-meta dt,
.plan-summary-meta dd {
    margin: 0;
}

.plan-summary-meta dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.plan-summary-meta dd {
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    text-align: right;
    overflow-wrap: anywhere;
}

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

@media (max-width: 620px) {
    .plan-summary-grid {
        grid-template-columns: 1fr;
    }

    .plan-summary-header {
        padding-right: 9px;
    }
}

.client-status-toggle-button .client-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.client-status-toggle-button .client-status-icon-x,
.client-status-toggle-button.is-inactive .client-status-icon-check,
.client-status-toggle-button.is-active:hover .client-status-icon-check,
.client-status-toggle-button.is-active:focus-visible .client-status-icon-check {
    display: none;
}

.client-status-toggle-button.is-inactive .client-status-icon-x,
.client-status-toggle-button.is-active:hover .client-status-icon-x,
.client-status-toggle-button.is-active:focus-visible .client-status-icon-x {
    display: inline-flex;
}

.client-status-toggle-button.is-inactive:hover .client-status-icon-x,
.client-status-toggle-button.is-inactive:focus-visible .client-status-icon-x {
    display: none;
}

.client-status-toggle-button.is-inactive:hover .client-status-icon-check,
.client-status-toggle-button.is-inactive:focus-visible .client-status-icon-check {
    display: inline-flex;
}

.admin-page .client-entry-card .client-status-toggle-button.is-active:hover,
.admin-page .client-entry-card .client-status-toggle-button.is-active:focus-visible {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

.admin-page .client-entry-card .client-status-toggle-button.is-inactive {
    color: #dc2626;
    background: #fff1f1;
    border-color: #fecaca;
}

.admin-page .client-entry-card .client-status-toggle-button.is-inactive:hover,
.admin-page .client-entry-card .client-status-toggle-button.is-inactive:focus-visible {
    color: #fff;
    background: var(--admin-selected-gradient);
    border-color: transparent;
}

.admin-page .status-badge.status-active:not(.status-inactive):not(.status-blocked) {
    color: var(--admin-primary-dark);
    background: var(--admin-primary-soft);
}

@media (max-width: 980px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .phrase-list-grid {
        grid-template-columns: 1fr;
    }

    .phrase-list-grid::before {
        display: none;
    }

    .phrase-list-item {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .phrase-table-controls {
        grid-column: 2;
        justify-content: flex-start;
    }

    .phrase-picker-row {
        grid-template-columns: 1fr auto;
    }

    .phrase-picker-row > .phrase-origin,
    .phrase-picker-row > span:not(.phrase-origin) {
        justify-self: start;
    }

    .dashboard-overview,
    .section-heading-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-info-grid,
    .dashboard-module-list {
        grid-template-columns: 1fr;
    }

    .dashboard-action-grid {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
    }

    .dashboard-action-grid.is-quick-access {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-action-separator {
        transform: rotate(90deg);
        justify-self: center;
    }

    .dashboard-model-start-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .client-detail-hero {
        grid-template-columns: 1fr;
    }

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

    .client-browser-bar {
        grid-template-columns: 1fr;
    }

    .client-browser-dots {
        display: none;
    }

    .client-browser-frame {
        height: 760px;
        min-height: 760px;
    }

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

    .gallery-share-main {
        grid-template-columns: 1fr;
    }

    .asset-category-form,
    .asset-category-tool-form,
    .asset-category-delete-form {
        grid-template-columns: 1fr;
    }

    .asset-category-form--picker > .asset-category-selection-tools {
        grid-template-columns: 1fr;
    }

    .asset-category-title-field {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        justify-self: stretch;
    }

    .asset-category-cart-tools {
        grid-column: 1;
        grid-row: auto;
    }

    .asset-template-form {
        grid-template-columns: 1fr;
    }

    .template-name-field,
    .template-collection-field,
    .template-upload-field {
        grid-column: 1;
        grid-row: auto;
    }

    .template-upload-options,
    .template-upload-options.is-selected {
        grid-template-columns: 1fr;
    }

    .gallery-link-row,
    .gallery-share-body {
        grid-template-columns: 1fr;
    }

    .gallery-share-settings-row {
        grid-template-columns: 1fr;
    }

    .gallery-share-qr-wrap {
        justify-items: center;
    }

    .event-form,
    .client-form,
    .event-options-grid,
    .event-cabine-options,
    .event-settings-body,
    .event-dates-body,
    .event-form > .toggle-list {
        grid-template-columns: 1fr;
    }

    .event-dates-body:has(.event-date-field--start-date) .event-date-field,
    .event-dates-body:has(.event-date-field--start-date) .event-date-field-hint {
        grid-column: 1;
        grid-row: auto;
    }

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

    .countdown-rule-main-row {
        grid-template-columns: 1fr;
    }

    .choice-options {
        grid-template-columns: 1fr;
    }

    .settings-menu-grid,
    .logo-upload-grid {
        grid-template-columns: 1fr;
    }

    .template-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 200px));
    }

    .template-card {
        width: 100%;
    }

    .template-thumb {
        width: calc(100% - 4px);
        min-width: 0;
        height: 170px;
    }

    .template-thumb.is-format-9-16 {
        width: min(42%, 86px);
    }

    .template-thumb.is-format-16-9 {
        width: calc(100% - 4px);
        max-width: none;
    }

    .template-preview-dialog {
        width: min(70vw, 100%);
        height: min(70vh, 100%);
    }

    .public-gallery-title-row {
        display: contents;
    }

    .public-gallery-hero {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: repeat(4, auto);
        align-items: center;
        gap: 6px;
        padding: 2px 0 10px;
    }

    .public-gallery-hero h1 {
        font-size: 24px;
        line-height: 1.05;
    }

    .public-gallery-hero .lead {
        font-size: 13px;
    }

    .public-gallery-event-logo {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 74px;
        justify-self: start;
    }

    .public-gallery-title-row > div:not(.public-gallery-event-logo) {
        grid-column: 1 / -1;
        grid-row: 3 / 5;
        justify-self: center;
        text-align: center;
    }

    .public-gallery-bulk-download {
        display: contents;
        margin-top: 0;
    }

    .public-gallery-download-all,
    .public-gallery-download-zip {
        width: 104px;
        min-width: 0;
        min-height: 34px;
        padding: 0 10px;
        font-size: 14px;
    }

    .public-gallery-download-zip {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .public-gallery-download-all {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .public-gallery-download-status {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

/* Public shared gallery cabine colors */
.gallery-public-page {
    --gallery-bg: #030307;
    --gallery-panel: #06060d;
    --gallery-text: #ffffff;
    --gallery-muted: #c9cae8;
    --gallery-pink: #ff5cc8;
    --gallery-magenta: #d75cff;
    --gallery-blue: #2ea4ff;
    --gallery-line: rgba(255, 255, 255, 0.14);
    color: var(--gallery-text);
    background:
        linear-gradient(115deg, rgba(255, 92, 200, 0.18), rgba(3, 3, 7, 0) 34%, rgba(46, 164, 255, 0.18)),
        linear-gradient(180deg, #010104, #05050b 58%, #010104);
}

.gallery-public-page .public-gallery-shell {
    width: min(1180px, calc(100% - 12px));
    padding: 12px 0 34px;
}

.gallery-public-page .public-gallery-hero {
    color: var(--gallery-text);
    background:
        linear-gradient(90deg, rgba(255, 92, 200, 0.10), rgba(46, 164, 255, 0.10)),
        rgba(3, 3, 7, 0.92);
    border: 1px solid rgba(255, 92, 200, 0.44);
    border-right-color: rgba(46, 164, 255, 0.58);
    border-radius: 8px;
    box-shadow:
        0 0 22px rgba(255, 92, 200, 0.16),
        0 0 26px rgba(46, 164, 255, 0.14);
}

.gallery-public-page .public-gallery-hero h1 {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.14);
}

.gallery-public-page .public-gallery-hero .lead {
    color: var(--gallery-muted);
}

.gallery-public-page .public-gallery-event-logo,
.gallery-public-page .public-gallery-card {
    background: #05050b;
    border-color: rgba(255, 92, 200, 0.50);
    border-right-color: rgba(46, 164, 255, 0.58);
    box-shadow:
        0 0 16px rgba(255, 92, 200, 0.20),
        0 0 20px rgba(46, 164, 255, 0.16);
}

.gallery-public-page .public-gallery-grid {
    padding-inline: 4px;
}

.gallery-public-page .public-gallery-card {
    margin-bottom: 8px;
    padding: 2px;
}

.gallery-public-page .public-gallery-card.is-selected {
    border-color: rgba(255, 92, 200, 0.92);
    border-right-color: rgba(46, 164, 255, 0.98);
    box-shadow:
        0 0 0 2px rgba(255, 92, 200, 0.22),
        0 0 22px rgba(255, 92, 200, 0.32),
        0 0 28px rgba(46, 164, 255, 0.24);
}

.gallery-public-page .public-gallery-photo {
    background: #05050b;
}

.gallery-public-page .public-gallery-download-all,
.gallery-public-page .public-gallery-download-zip,
.gallery-public-page .public-gallery-download-status button,
.gallery-public-page .public-gallery-selection-bar button,
.gallery-public-page .public-gallery-resume button {
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(16, 10, 27, 0.96), rgba(5, 10, 24, 0.96)) padding-box,
        linear-gradient(90deg, var(--gallery-pink), var(--gallery-magenta), var(--gallery-blue)) border-box;
    border: 2px solid transparent;
    box-shadow:
        0 0 18px rgba(255, 92, 200, 0.24),
        0 0 22px rgba(46, 164, 255, 0.18),
        inset 0 0 16px rgba(255, 255, 255, 0.06);
}

.gallery-public-page .public-gallery-download-all:hover,
.gallery-public-page .public-gallery-download-all:focus-visible,
.gallery-public-page .public-gallery-download-zip:hover,
.gallery-public-page .public-gallery-download-zip:focus-visible,
.gallery-public-page .public-gallery-download-status button:hover,
.gallery-public-page .public-gallery-download-status button:focus-visible,
.gallery-public-page .public-gallery-selection-bar button:hover,
.gallery-public-page .public-gallery-selection-bar button:focus-visible,
.gallery-public-page .public-gallery-resume button:hover,
.gallery-public-page .public-gallery-resume button:focus-visible {
    background:
        linear-gradient(90deg, rgba(54, 13, 50, 0.98), rgba(9, 31, 63, 0.98)) padding-box,
        linear-gradient(90deg, var(--gallery-pink), var(--gallery-blue)) border-box;
}

.gallery-public-page .public-gallery-select,
.gallery-public-page .public-gallery-lightbox-download {
    color: #ffffff;
    background: rgba(3, 3, 7, 0.74);
    border-color: rgba(255, 92, 200, 0.58);
    box-shadow:
        0 0 16px rgba(255, 92, 200, 0.24),
        0 0 18px rgba(46, 164, 255, 0.18);
    backdrop-filter: blur(12px);
}

.gallery-public-page .public-gallery-select[aria-pressed="true"] {
    color: #05050b;
    background:
        linear-gradient(135deg, #ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--gallery-pink), var(--gallery-blue)) border-box;
    border: 2px solid transparent;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.18),
        0 0 18px rgba(255, 92, 200, 0.38),
        0 0 22px rgba(46, 164, 255, 0.32);
}

.gallery-public-page .public-gallery-download-status,
.gallery-public-page .public-gallery-resume,
.gallery-public-page .gallery-password-panel {
    color: var(--gallery-text);
    background:
        linear-gradient(90deg, rgba(255, 92, 200, 0.10), rgba(46, 164, 255, 0.10)),
        rgba(3, 3, 7, 0.86);
    border-color: rgba(255, 92, 200, 0.42);
    border-right-color: rgba(46, 164, 255, 0.54);
}

.gallery-public-page .public-gallery-download-status,
.gallery-public-page .public-gallery-resume,
.gallery-public-page .public-gallery-selection-copy small {
    color: var(--gallery-muted);
}

.gallery-public-page .public-gallery-selection-bar {
    background:
        linear-gradient(90deg, rgba(255, 92, 200, 0.14), rgba(46, 164, 255, 0.14)),
        rgba(3, 3, 7, 0.84);
    border-color: rgba(255, 92, 200, 0.44);
    box-shadow:
        0 0 24px rgba(255, 92, 200, 0.20),
        0 0 28px rgba(46, 164, 255, 0.16),
        0 18px 40px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.gallery-public-page .public-gallery-selection-copy strong {
    color: #ffffff;
}

.gallery-public-page .public-gallery-selection-note-badge {
    color: #ffffff;
    background:
        linear-gradient(90deg, var(--gallery-pink), var(--gallery-blue));
}

.gallery-public-page .public-gallery-lightbox {
    background:
        linear-gradient(115deg, rgba(255, 92, 200, 0.18), rgba(3, 3, 7, 0) 34%, rgba(46, 164, 255, 0.18)),
        rgba(3, 3, 7, 0.96);
}

.gallery-public-page .public-gallery-lightbox-frame img {
    border: 2px solid rgba(255, 92, 200, 0.74);
    border-right-color: rgba(46, 164, 255, 0.86);
    box-shadow:
        0 0 24px rgba(255, 92, 200, 0.28),
        0 0 30px rgba(46, 164, 255, 0.22);
}

.event-view-gallery-lightbox {
    background:
        linear-gradient(115deg, rgba(255, 92, 200, 0.18), rgba(3, 3, 7, 0) 34%, rgba(46, 164, 255, 0.18)),
        rgba(3, 3, 7, 0.96);
}

.event-view-gallery-lightbox .public-gallery-lightbox-frame img {
    border: 2px solid rgba(255, 92, 200, 0.74);
    border-right-color: rgba(46, 164, 255, 0.86);
    box-shadow:
        0 0 24px rgba(255, 92, 200, 0.28),
        0 0 30px rgba(46, 164, 255, 0.22);
}

.event-view-gallery-lightbox .public-gallery-lightbox-download {
    color: #ffffff;
    background: rgba(3, 3, 7, 0.74);
    border-color: rgba(255, 92, 200, 0.58);
    box-shadow:
        0 0 16px rgba(255, 92, 200, 0.24),
        0 0 18px rgba(46, 164, 255, 0.18);
    backdrop-filter: blur(12px);
}

@media (min-width: 481px) {
    .gallery-public-page .public-gallery-hero,
    .gallery-public-page .public-gallery-grid {
        background:
            linear-gradient(90deg, rgba(255, 92, 200, 0.08), rgba(46, 164, 255, 0.08)),
            rgba(3, 3, 7, 0.84);
        border-color: rgba(255, 92, 200, 0.36);
        border-right-color: rgba(46, 164, 255, 0.48);
        box-shadow:
            0 0 24px rgba(255, 92, 200, 0.14),
            0 0 28px rgba(46, 164, 255, 0.12);
    }

    .gallery-public-page .public-gallery-grid {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .gallery-public-page.public-screen {
        padding: 0;
    }

    .gallery-public-page .public-gallery-shell {
        width: 100%;
        padding: 8px 2px 34px;
    }

    .gallery-public-page .public-gallery-hero {
        margin-inline: 2px;
        padding: 8px 6px 10px;
    }

    .gallery-public-page .public-gallery-grid {
        column-gap: 6px;
        padding-inline: 2px;
    }

    .gallery-public-page .public-gallery-card {
        margin-bottom: 6px;
        padding: 2px;
    }
}

.gallery-public-page .public-gallery-hero {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 8px 6px;
}

.gallery-public-page .public-gallery-brand-row,
.gallery-public-page .public-gallery-title-row,
.gallery-public-page .public-gallery-bulk-download {
    grid-column: 1;
    width: 100%;
}

.gallery-public-page .public-gallery-brand-row {
    display: flex;
    justify-content: center;
}

.gallery-public-page .public-gallery-click-brand {
    width: min(360px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    color: #ffffff;
}

.gallery-public-page .public-gallery-click-brand img {
    width: min(240px, 100%);
    max-height: 66px;
    display: block;
    object-fit: contain;
}

.gallery-public-page .public-gallery-click-camera {
    position: relative;
    width: 48px;
    height: 42px;
    flex: 0 0 auto;
    display: block;
    border: 3px solid #ffffff;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 43%, #05050b 0 10px, #ffffff 11px 16px, transparent 17px),
        linear-gradient(90deg, rgba(255, 92, 200, 0.92), rgba(46, 164, 255, 0.92));
    box-shadow:
        -5px 4px 0 rgba(255, 92, 200, 0.44),
        6px -4px 0 rgba(46, 164, 255, 0.34),
        0 0 20px rgba(255, 92, 200, 0.30),
        0 0 24px rgba(46, 164, 255, 0.22);
}

.gallery-public-page .public-gallery-click-camera::before {
    content: "";
    position: absolute;
    left: 10px;
    top: -8px;
    width: 20px;
    height: 9px;
    border: 2px solid #ffffff;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #05050b;
}

.gallery-public-page .public-gallery-click-camera-slot {
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 6px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.gallery-public-page .public-gallery-click-word {
    min-width: 0;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.gallery-public-page .public-gallery-click-word span {
    background: linear-gradient(90deg, #ffffff, var(--gallery-pink), var(--gallery-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gallery-public-page .public-gallery-click-word strong {
    color: transparent;
    background: linear-gradient(135deg, var(--gallery-pink), var(--gallery-blue));
    -webkit-background-clip: text;
    background-clip: text;
}

.gallery-public-page .public-gallery-bulk-download {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(260px, 100%);
    justify-content: center;
    margin: 0;
}

.gallery-public-page .public-gallery-download-all,
.gallery-public-page .public-gallery-download-zip {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    font-size: 14px;
}

.gallery-public-page .public-gallery-download-status {
    grid-column: 1 / -1;
    width: 100%;
}

.gallery-public-page .public-gallery-title-row {
    display: grid;
    justify-items: center;
    gap: 3px;
    text-align: center;
}

.gallery-public-page .public-gallery-title-row h1 {
    max-width: min(330px, 100%);
    margin: 0;
    font-size: clamp(16px, 4.4vw, 21px);
    line-height: 1.06;
}

.gallery-public-page .public-gallery-title-row .lead {
    max-width: min(300px, 100%);
    margin: 0;
    font-size: clamp(9px, 2.8vw, 11px);
    line-height: 1.2;
}

.gallery-public-page.is-public-gallery-scrolled .public-gallery-hero,
.gallery-public-page.is-public-gallery-selection-active .public-gallery-hero {
    gap: 4px;
    padding: 4px 6px 2px;
}

.gallery-public-page.is-public-gallery-scrolled .public-gallery-click-brand img,
.gallery-public-page.is-public-gallery-selection-active .public-gallery-click-brand img {
    width: min(150px, 100%);
    max-height: 42px;
}

.gallery-public-page.is-public-gallery-scrolled .public-gallery-click-camera,
.gallery-public-page.is-public-gallery-selection-active .public-gallery-click-camera {
    width: 34px;
    height: 30px;
}

.gallery-public-page.is-public-gallery-scrolled .public-gallery-click-word,
.gallery-public-page.is-public-gallery-selection-active .public-gallery-click-word {
    font-size: 16px;
}

.gallery-public-page.is-public-gallery-scrolled .public-gallery-bulk-download {
    width: min(190px, 100%);
    gap: 6px;
}

.gallery-public-page.is-public-gallery-scrolled .public-gallery-download-all,
.gallery-public-page.is-public-gallery-scrolled .public-gallery-download-zip {
    min-height: 28px;
    padding-inline: 8px;
    font-size: 12px;
}

.gallery-public-page.is-public-gallery-scrolled .public-gallery-title-row,
.gallery-public-page.is-public-gallery-selection-active .public-gallery-title-row,
.gallery-public-page.is-public-gallery-selection-active .public-gallery-bulk-download {
    display: none;
}

@media (min-width: 481px) {
    .gallery-public-page .public-gallery-hero {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 8px;
    }

    .gallery-public-page .public-gallery-title-row,
    .gallery-public-page .public-gallery-bulk-download {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 480px) {
    .gallery-public-page .public-gallery-hero {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 6px;
        margin-inline: 2px;
        padding: 8px 5px;
    }

    .gallery-public-page .public-gallery-title-row {
        display: grid;
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
    }

    .gallery-public-page .public-gallery-brand-row,
    .gallery-public-page .public-gallery-bulk-download {
        grid-column: 1;
        grid-row: auto;
    }

    .gallery-public-page .public-gallery-click-brand {
        width: min(240px, 100%);
    }

    .gallery-public-page .public-gallery-click-brand img {
        width: min(230px, 100%);
        max-height: 62px;
    }

    .gallery-public-page .public-gallery-bulk-download {
        width: min(250px, 100%);
        display: grid;
    }

    .gallery-public-page .public-gallery-download-all,
    .gallery-public-page .public-gallery-download-zip {
        grid-column: auto;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        min-height: 34px;
        font-size: 14px;
    }

    .gallery-public-page .public-gallery-title-row h1 {
        font-size: clamp(16px, 5vw, 20px);
    }

    .gallery-public-page .public-gallery-title-row .lead {
        font-size: clamp(9px, 3vw, 11px);
    }

    .gallery-public-page .public-gallery-selection-bar {
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 8px;
        align-items: center;
        padding: 6px 8px 7px;
    }

    .gallery-public-page .public-gallery-selection-copy {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        margin: 0;
        padding-left: 0;
        text-align: center;
    }

    .gallery-public-page .public-gallery-selection-copy strong {
        font-size: clamp(10px, 2.8vw, 11px);
        line-height: 1.1;
        white-space: nowrap;
    }

    .gallery-public-page .public-gallery-selection-copy small {
        font-size: 10px;
    }

    .gallery-public-page .public-gallery-selection-bar button {
        grid-row: 1;
        align-self: center;
        min-height: 28px;
        padding: 0 10px;
        border-radius: 8px;
    }

    .gallery-public-page .public-gallery-selection-bar [data-public-gallery-selection-download] {
        grid-column: 1;
    }

    .gallery-public-page .public-gallery-selection-bar .public-gallery-selection-clear {
        grid-column: 2;
        width: auto;
        min-width: 0;
        margin-right: 0;
        border-radius: 8px;
    }

    .gallery-public-page .public-gallery-selection-bar button svg {
        width: 16px;
        height: 16px;
    }
}

/* Click&share2u public cabine skin */
.public-kiosk-theme {
    --kiosk-bg: #030307;
    --kiosk-panel: #06060d;
    --kiosk-text: #ffffff;
    --kiosk-muted: #c9cae8;
    --kiosk-pink: #ff5cc8;
    --kiosk-magenta: #d75cff;
    --kiosk-violet: #805cff;
    --kiosk-blue: #2ea4ff;
    --kiosk-line: rgba(255, 255, 255, 0.14);
    color: var(--kiosk-text);
    background:
        linear-gradient(115deg, rgba(255, 92, 200, 0.18), rgba(3, 3, 7, 0) 34%, rgba(46, 164, 255, 0.18)),
        linear-gradient(180deg, #010104, #05050b 58%, #010104);
}

.public-screen.public-kiosk-theme {
    padding: 2.5vmin;
}

.public-screen.public-kiosk-theme.public-cabine-screen {
    width: max(100vw, 920px);
    height: max(100vh, 608px);
    min-width: 920px;
    min-height: 608px;
    padding: max(15px, 2.5vmin);
    align-items: start;
    justify-items: center;
}

.public-kiosk-theme .kiosk-shell {
    width: min(1240px, 100%);
}

.public-kiosk-theme.public-cabine-screen .welcome-panel {
    min-height: min(820px, calc(max(100vh, 608px) - 24px));
}

.public-kiosk-theme.public-cabine-screen .kiosk-brand img,
.public-kiosk-theme.public-cabine-screen .kiosk-topbar-event-name {
    width: min(360px, max(313px, 34vw));
}

.public-kiosk-theme.public-cabine-screen .public-format-section,
.public-kiosk-theme.public-cabine-screen .public-background-section,
.public-kiosk-theme.public-cabine-screen .public-frame-section {
    height: max(430px, 68vh);
}

.public-kiosk-theme.public-cabine-screen .public-background-section--16-9 .public-background-grid {
    height: 100%;
    align-items: center;
    justify-items: center;
}

.public-kiosk-theme.public-cabine-screen .public-background-section--16-9 .public-background-grid--wide-two {
    width: min(100%, 760px);
    height: 100%;
    justify-self: center;
    grid-row: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 214px);
    align-self: center;
    align-content: center;
    gap: 20px;
}

.public-kiosk-theme.public-cabine-screen .public-background-section--16-9 .public-background-grid--wide-two .public-template-card {
    width: 100%;
    height: 100%;
    justify-self: stretch;
}

.public-kiosk-theme.public-cabine-screen .public-background-section--16-9 .public-background-grid--wide-two .public-template-thumb--16-9 {
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.public-kiosk-theme.public-cabine-screen .public-background-section--16-9 .public-background-grid--wide-two-rows {
    width: min(100%, 760px);
    justify-self: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 20px;
}

.public-kiosk-theme.public-cabine-screen .public-background-section--16-9 .public-background-grid--wide-two-rows .public-template-card {
    width: 100%;
    height: 100%;
    justify-self: stretch;
}

.public-kiosk-theme.public-cabine-screen .public-background-section--16-9 .public-background-grid--wide-two-rows .public-template-thumb--16-9 {
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.public-kiosk-theme.public-cabine-screen .public-background-section--16-9 .public-background-grid--wide-three .public-template-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc((100% - 20px) / 2);
    justify-self: center;
}

.public-kiosk-theme.public-cabine-screen .public-choice-carousel.has-wide-choice-pages .public-background-section--16-9 .public-background-grid {
    width: 100%;
    height: 100%;
    grid-row: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-content: center;
    align-items: center;
    justify-items: stretch;
    gap: clamp(18px, 2vw, 28px);
}

.public-kiosk-theme.public-cabine-screen .public-choice-carousel.has-wide-choice-pages .public-background-section--16-9 .public-background-grid .public-template-card {
    width: 100%;
    justify-self: stretch;
}

.public-kiosk-theme.public-cabine-screen .public-background-section--9-16 .public-background-grid--single-row {
    grid-template-columns: repeat(var(--public-choice-count), minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
}

.public-kiosk-theme.public-cabine-screen .result-panel {
    gap: 26px;
    padding: 114px 42px 42px;
}

.public-kiosk-theme.public-cabine-screen .camera-result-panel--page {
    --result-card-height: 620px;
    width: min(1160px, calc(100% - 96px));
    gap: 42px;
    padding: 28px;
}

.public-kiosk-theme.public-cabine-screen .camera-result-panel--page .camera-result-photo,
.public-kiosk-theme.public-cabine-screen .camera-result-panel--page .camera-result-share {
    gap: 18px;
}

.public-kiosk-theme.public-cabine-screen .camera-result-panel--page .camera-result-image {
    width: min(320px, 100%, calc((var(--result-card-height) - 120px) * 9 / 16));
}

.public-kiosk-theme.public-cabine-screen .camera-result-panel--page .camera-result-image.is-format-16-9 {
    width: min(540px, 100%, calc((var(--result-card-height) - 120px) * 16 / 9));
}

.public-kiosk-theme.public-cabine-screen .camera-result-panel--page .camera-result-share h1 {
    font-size: 58px;
}

.public-kiosk-theme.public-cabine-screen .camera-result-panel--page .camera-qr-box {
    width: 280px;
    height: 280px;
    padding: 12px;
}

.public-kiosk-theme.public-cabine-screen .camera-result-panel--page .result-restart-box p {
    font-size: 28px;
}

.public-kiosk-theme.public-cabine-screen .camera-result-panel--page .result-restart-action {
    min-height: 68px;
    padding: 0 28px;
    font-size: 24px;
}

.public-kiosk-theme .welcome-panel {
    position: relative;
    overflow: hidden;
    min-height: min(820px, calc(100vh - 24px));
    gap: 26px;
    padding: 114px 42px 128px;
    color: var(--kiosk-text);
    background:
        linear-gradient(90deg, rgba(255, 92, 200, 0.08), rgba(46, 164, 255, 0.08)),
        var(--kiosk-panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 92, 200, 0.36),
        inset 0 0 0 2px rgba(46, 164, 255, 0.22),
        0 0 40px rgba(255, 92, 200, 0.14),
        0 0 46px rgba(46, 164, 255, 0.12);
}

.public-kiosk-theme .welcome-panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(46, 164, 255, 0.34);
    border-left-color: rgba(255, 92, 200, 0.62);
    border-radius: 8px;
}

.public-kiosk-theme .welcome-panel > * {
    position: relative;
    z-index: 1;
}

.public-kiosk-theme .result-panel {
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: calc(100vh - 5vmin);
    align-content: stretch;
    gap: clamp(14px, 2vmin, 26px);
    padding: clamp(96px, 12vmin, 132px) clamp(20px, 3vmin, 42px) clamp(18px, 3vmin, 42px);
    color: var(--kiosk-text);
    background:
        linear-gradient(90deg, rgba(255, 92, 200, 0.08), rgba(46, 164, 255, 0.08)),
        var(--kiosk-panel);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 92, 200, 0.36),
        inset 0 0 0 2px rgba(46, 164, 255, 0.22),
        0 0 40px rgba(255, 92, 200, 0.14),
        0 0 46px rgba(46, 164, 255, 0.12);
}

.public-kiosk-theme .result-panel::before {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(46, 164, 255, 0.34);
    border-left-color: rgba(255, 92, 200, 0.62);
    border-radius: 8px;
}

.public-kiosk-theme .result-panel > * {
    position: relative;
    z-index: 1;
}

.public-kiosk-theme .camera-result-panel--page {
    --result-card-height: min(680px, calc(100vh - clamp(210px, 21vmin, 250px)));
    width: min(1160px, calc(100% - clamp(16px, 5vw, 96px)));
    height: var(--result-card-height);
    grid-template-columns: minmax(240px, min(46%, 540px)) minmax(280px, 1fr);
    gap: clamp(18px, 3vmin, 42px);
    align-self: center;
    align-items: center;
    padding: clamp(16px, 2.4vmin, 28px);
    background: rgba(4, 4, 10, 0.82);
    border: 1px solid rgba(255, 92, 200, 0.36);
    border-right-color: rgba(46, 164, 255, 0.48);
    box-shadow:
        inset 0 0 30px rgba(255, 92, 200, 0.08),
        inset 0 0 30px rgba(46, 164, 255, 0.08),
        0 0 26px rgba(255, 92, 200, 0.16),
        0 0 30px rgba(46, 164, 255, 0.14);
}

.public-kiosk-theme .camera-result-panel--page .camera-result-photo {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: clamp(10px, 1.7vmin, 18px);
    min-height: 0;
    min-width: 0;
    max-height: 100%;
}

.public-kiosk-theme .camera-result-panel--page .camera-result-photo-title {
    margin: 0;
}

.public-kiosk-theme .camera-result-panel--page .camera-result-image {
    width: min(320px, 100%, calc((var(--result-card-height) - clamp(96px, 10vmin, 136px)) * 9 / 16));
    justify-self: center;
    border: 2px solid rgba(255, 92, 200, 0.78);
    border-right-color: rgba(46, 164, 255, 0.86);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.64),
        0 0 30px rgba(255, 92, 200, 0.42),
        0 0 36px rgba(46, 164, 255, 0.32);
}

.public-kiosk-theme .camera-result-panel--page .camera-result-image.is-format-16-9 {
    width: min(540px, 100%, calc((100vh - clamp(260px, 30vmin, 330px)) * 16 / 9));
}

.public-kiosk-theme .camera-result-panel--page.camera-local-result .camera-result-image {
    position: relative;
}

.public-kiosk-theme .camera-result-panel--page .camera-result-share {
    gap: clamp(10px, 1.7vmin, 18px);
}

.public-kiosk-theme .camera-result-panel--page .camera-result-share h1 {
    max-width: 560px;
    color: #ffffff;
    font-size: clamp(28px, min(4.2vw, 5vh), 58px);
    text-shadow: 0 0 26px rgba(255, 255, 255, 0.18);
}

.public-kiosk-theme .camera-result-panel--page .camera-qr-box {
    width: min(280px, 25vw, 28vh);
    height: min(280px, 25vw, 28vh);
    padding: clamp(8px, 1vmin, 12px);
    background: #ffffff;
    border: 2px solid rgba(255, 92, 200, 0.72);
    border-right-color: rgba(46, 164, 255, 0.84);
    box-shadow:
        0 0 26px rgba(255, 92, 200, 0.30),
        0 0 30px rgba(46, 164, 255, 0.24);
}

.public-kiosk-theme .camera-result-panel--page .camera-qr-box img,
.public-kiosk-theme .camera-result-panel--page .camera-qr-box canvas {
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.public-kiosk-theme .camera-result-panel--page .result-restart-box p {
    color: var(--kiosk-muted);
    font-size: clamp(16px, min(2.1vw, 3vh), 28px);
}

.public-kiosk-theme .camera-result-panel--page .result-restart-box strong {
    color: #ffffff;
}

.public-kiosk-theme .camera-result-panel--page .camera-local-result-status {
    color: #ffffff;
    font-size: clamp(18px, min(2.5vw, 3.4vh), 32px);
}

.public-kiosk-theme .camera-result-panel--page .result-restart-action {
    min-width: min(260px, 100%);
    min-height: clamp(52px, 6vh, 68px);
    padding: 0 clamp(20px, 2.4vmin, 28px);
    font-size: clamp(18px, min(2vw, 2.8vh), 24px);
    font-weight: 900;
}

.public-kiosk-theme .kiosk-topbar {
    position: absolute;
    top: 26px;
    left: 36px;
    right: 36px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    pointer-events: none;
}

.public-kiosk-theme .kiosk-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: #ffffff;
}

.public-kiosk-theme .kiosk-brand img {
    width: min(360px, 34vw);
    max-height: 96px;
    display: block;
    object-fit: contain;
}

.public-kiosk-theme .kiosk-brand-camera {
    position: relative;
    width: 72px;
    height: 64px;
    flex: 0 0 auto;
    display: block;
    border: 3px solid #ffffff;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 43%, #05050b 0 11px, #ffffff 12px 18px, transparent 19px),
        linear-gradient(90deg, rgba(255, 92, 200, 0.92), rgba(46, 164, 255, 0.92));
    box-shadow:
        -6px 4px 0 rgba(255, 92, 200, 0.54),
        7px -4px 0 rgba(46, 164, 255, 0.42),
        0 0 24px rgba(255, 92, 200, 0.34),
        0 0 30px rgba(46, 164, 255, 0.26);
}

.public-kiosk-theme .kiosk-brand-camera::before {
    content: "";
    position: absolute;
    left: 16px;
    top: -10px;
    width: 28px;
    height: 12px;
    border: 3px solid #ffffff;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #05050b;
}

.public-kiosk-theme .kiosk-brand-camera::after {
    content: "";
    position: absolute;
    right: -17px;
    top: 18px;
    width: 12px;
    height: 20px;
    border: 3px solid var(--kiosk-violet);
    border-radius: 999px;
    background: #05050b;
    box-shadow: 0 0 14px rgba(128, 92, 255, 0.76);
}

.public-kiosk-theme .kiosk-brand-camera-slot {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.public-kiosk-theme .kiosk-brand-word {
    min-width: 0;
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.public-kiosk-theme .kiosk-brand-word span {
    background: linear-gradient(90deg, #ffffff, var(--kiosk-pink), var(--kiosk-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.public-kiosk-theme .kiosk-brand-word strong {
    color: transparent;
    background: linear-gradient(135deg, var(--kiosk-pink), var(--kiosk-blue));
    -webkit-background-clip: text;
    background-clip: text;
}

.public-kiosk-theme .kiosk-topbar-event-name {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(360px, 34vw);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #f77bff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 0 18px rgba(255, 92, 200, 0.72);
    transform: translate(-50%, -50%);
}

.public-kiosk-theme .kiosk-topbar-event-name::before,
.public-kiosk-theme .kiosk-topbar-event-name::after {
    content: "";
    height: 1px;
    flex: 1 1 72px;
    background: linear-gradient(90deg, transparent, currentColor);
    box-shadow: 0 0 14px currentColor;
}

.public-kiosk-theme .kiosk-topbar-event-name::after {
    background: linear-gradient(90deg, currentColor, transparent);
}

.public-kiosk-theme .event-page-logo {
    position: static;
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    padding: 0;
    background: #030307;
    border: 2px solid rgba(255, 92, 200, 0.86);
    border-right-color: rgba(46, 164, 255, 0.94);
    border-radius: var(--client-logo-radius, 50%);
    box-shadow:
        0 0 0 5px rgba(255, 92, 200, 0.12),
        0 0 0 9px rgba(46, 164, 255, 0.10),
        0 0 28px rgba(255, 92, 200, 0.42),
        0 0 36px rgba(46, 164, 255, 0.34);
}

.public-kiosk-theme .event-page-logo img {
    border-radius: var(--client-logo-radius, 50%);
    object-fit: cover;
}

.public-kiosk-theme .eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: min(340px, 100%);
    color: #f77bff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 0 18px rgba(255, 92, 200, 0.72);
}

.public-kiosk-theme .eyebrow::before,
.public-kiosk-theme .eyebrow::after {
    content: "";
    height: 1px;
    flex: 1 1 72px;
    background: linear-gradient(90deg, transparent, currentColor);
    box-shadow: 0 0 14px currentColor;
}

.public-kiosk-theme .eyebrow::after {
    background: linear-gradient(90deg, currentColor, transparent);
}

.public-kiosk-theme h1 {
    color: #ffffff;
    font-size: 54px;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 0 26px rgba(255, 255, 255, 0.18);
}

.public-kiosk-theme .lead,
.public-kiosk-theme .public-note {
    color: var(--kiosk-muted);
}

.public-kiosk-theme .primary-action,
.public-kiosk-theme .secondary-action,
.public-kiosk-theme .template-select-action {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0;
    border: 2px solid transparent;
    background:
        linear-gradient(90deg, rgba(16, 10, 27, 0.96), rgba(5, 10, 24, 0.96)) padding-box,
        linear-gradient(90deg, var(--kiosk-pink), var(--kiosk-magenta), var(--kiosk-blue)) border-box;
    border-radius: 8px;
    box-shadow:
        0 0 24px rgba(255, 92, 200, 0.34),
        0 0 28px rgba(46, 164, 255, 0.26),
        inset 0 0 20px rgba(255, 255, 255, 0.06);
}

.public-kiosk-theme .primary-action:hover,
.public-kiosk-theme .primary-action:focus-visible,
.public-kiosk-theme .secondary-action:hover,
.public-kiosk-theme .secondary-action:focus-visible,
.public-kiosk-theme .template-select-action:hover,
.public-kiosk-theme .template-select-action:focus-visible {
    background:
        linear-gradient(90deg, rgba(54, 13, 50, 0.98), rgba(9, 31, 63, 0.98)) padding-box,
        linear-gradient(90deg, var(--kiosk-pink), var(--kiosk-blue)) border-box;
    box-shadow:
        0 0 30px rgba(255, 92, 200, 0.48),
        0 0 36px rgba(46, 164, 255, 0.38),
        inset 0 0 28px rgba(255, 255, 255, 0.08);
}

.public-kiosk-theme .public-kiosk-back-action {
    position: absolute;
    left: 36px;
    bottom: 26px;
    z-index: 6;
    min-width: 168px;
    min-height: 76px;
    padding: 0 28px;
    border-radius: 8px;
    font-size: 26px;
    font-weight: 900;
}

.public-kiosk-theme .public-start-action {
    min-width: min(690px, 100%);
    min-height: 122px;
    gap: 26px;
    padding: 0 42px;
    font-size: 42px;
    font-weight: 900;
}

.public-kiosk-theme .public-start-action::before {
    content: "";
    width: 74px;
    height: 54px;
    flex: 0 0 auto;
    display: block;
    border: 5px solid currentColor;
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 56%, transparent 0 12px, currentColor 13px 18px, transparent 19px),
        linear-gradient(currentColor, currentColor) 17px -13px / 34px 16px no-repeat;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.20);
}

.public-kiosk-theme .public-start-carousel-panel {
    width: min(1000px, 100%);
    margin-top: -2px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.public-kiosk-theme .public-start-carousel {
    --carousel-slide-width: 232px;
    --carousel-slide-height: 348px;
    --carousel-offset: 230px;
    --carousel-far-offset: 405px;
    height: 370px;
    overflow: visible;
}

.public-kiosk-theme.public-cabine-screen .public-start-carousel .public-start-carousel-item[data-format="is-format-16-9"] {
    width: clamp(260px, 28vw, 420px);
    height: clamp(146px, 15.75vw, 236px);
}

.public-kiosk-theme .public-start-carousel-item {
    background: #05050b;
    border: 2px solid rgba(255, 92, 200, 0.78);
    border-right-color: rgba(46, 164, 255, 0.82);
    border-radius: 8px;
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.62),
        0 0 24px rgba(255, 92, 200, 0.36),
        0 0 30px rgba(46, 164, 255, 0.28);
}

.public-kiosk-theme .public-start-carousel-item.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.public-kiosk-theme .public-start-carousel-item.is-active {
    border-color: rgba(255, 112, 216, 0.94);
    border-right-color: rgba(46, 164, 255, 0.98);
    box-shadow:
        0 26px 56px rgba(0, 0, 0, 0.70),
        0 0 34px rgba(255, 92, 200, 0.58),
        0 0 42px rgba(46, 164, 255, 0.42);
}

.public-kiosk-theme .public-start-carousel-item img {
    object-fit: cover;
}

.public-kiosk-theme .public-format-section,
.public-kiosk-theme .public-background-section {
    background: rgba(4, 4, 10, 0.82);
    border: 1px solid rgba(255, 92, 200, 0.36);
    border-right-color: rgba(46, 164, 255, 0.48);
    box-shadow:
        inset 0 0 30px rgba(255, 92, 200, 0.08),
        inset 0 0 30px rgba(46, 164, 255, 0.08),
        0 0 26px rgba(255, 92, 200, 0.16),
        0 0 30px rgba(46, 164, 255, 0.14);
}

.public-kiosk-theme .public-format-section {
    width: calc(85% - 180px);
    justify-self: center;
}

.public-kiosk-theme .public-background-section {
    width: 85%;
    justify-self: center;
}

.public-kiosk-theme .public-frame-section {
    width: calc(85% - 180px);
}

.public-kiosk-theme .public-format-card strong {
    display: none;
}

.public-kiosk-theme .public-format-card {
    color: #ffffff;
}

.public-kiosk-theme .public-format-shape {
    background:
        linear-gradient(135deg, rgba(255, 92, 200, 0.20), rgba(46, 164, 255, 0.22)),
        #05050b;
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.12),
        0 0 24px rgba(255, 92, 200, 0.42),
        0 0 28px rgba(46, 164, 255, 0.34);
}

.public-kiosk-theme .public-format-card strong,
.public-kiosk-theme .public-choice-section h2 {
    color: #ffffff;
    font-size: 34px;
    letter-spacing: 0;
}

.public-kiosk-theme .public-template-thumb {
    background: #05050b;
    border: 2px solid rgba(255, 92, 200, 0.50);
    box-shadow:
        0 0 16px rgba(255, 92, 200, 0.24),
        0 0 20px rgba(46, 164, 255, 0.18);
}

.public-kiosk-theme .public-template-card.is-selected .public-template-thumb,
.public-kiosk-theme .public-template-thumb:hover,
.public-kiosk-theme .public-template-thumb:focus-visible {
    border-color: rgba(255, 92, 200, 0.92);
    border-right-color: rgba(46, 164, 255, 0.98);
    box-shadow:
        0 0 26px rgba(255, 92, 200, 0.46),
        0 0 32px rgba(46, 164, 255, 0.38);
}

.public-kiosk-theme .public-background-grid .public-template-thumb {
    background: #05050b;
}

.public-kiosk-theme .public-no-background-thumb,
.public-kiosk-theme .public-frame-grid .public-no-frame-thumb {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 92, 200, 0.18), rgba(46, 164, 255, 0.12)),
        #05050b;
    border-color: rgba(255, 92, 200, 0.74);
    box-shadow:
        inset 0 0 18px rgba(255, 92, 200, 0.12),
        0 0 22px rgba(255, 92, 200, 0.28);
}

.public-kiosk-theme .public-no-background-label,
.public-kiosk-theme .public-no-frame-label,
.public-kiosk-theme .public-no-background-x,
.public-kiosk-theme .public-no-frame-x {
    color: #ffffff;
}

.public-kiosk-theme .public-choice-arrow--prev::before {
    border-right-color: var(--kiosk-pink);
    filter: drop-shadow(0 0 10px rgba(255, 92, 200, 0.78));
}

.public-kiosk-theme .public-choice-arrow--next::before {
    border-left-color: var(--kiosk-blue);
    filter: drop-shadow(0 0 10px rgba(46, 164, 255, 0.78));
}

.public-kiosk-theme.public-cabine-screen .public-choice-arrow {
    width: 112px;
    height: 164px;
    justify-self: center;
}

.public-kiosk-theme.public-cabine-screen .public-choice-carousel.has-choice-pages {
    grid-template-columns: 136px minmax(0, 1fr) 136px;
}

.public-kiosk-theme.public-cabine-screen .public-choice-arrow::before {
    border-top-width: 54px;
    border-bottom-width: 54px;
}

.public-kiosk-theme.public-cabine-screen .public-choice-arrow--prev::before {
    border-right-width: 66px;
}

.public-kiosk-theme.public-cabine-screen .public-choice-arrow--next::before {
    border-left-width: 66px;
}

.public-kiosk-theme .public-selected-summary span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--kiosk-line);
}

.public-kiosk-theme .camera-stage {
    gap: 20px;
}

.public-kiosk-theme .camera-panel {
    gap: 14px;
    padding: 146px 42px 104px;
}

.public-kiosk-theme .camera-panel .camera-stage {
    width: min(1000px, 100%);
    gap: 0;
    position: relative;
}

.public-kiosk-theme .camera-stage-head {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.public-kiosk-theme .camera-stage-head h1 {
    font-size: 48px;
    letter-spacing: 0;
}

.public-kiosk-theme .camera-preview-shell {
    background: #030307;
    border: 2px solid rgba(255, 92, 200, 0.78);
    border-right-color: rgba(46, 164, 255, 0.86);
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.64),
        0 0 30px rgba(255, 92, 200, 0.42),
        0 0 36px rgba(46, 164, 255, 0.32);
}

.public-kiosk-theme .camera-panel .camera-preview-shell {
    width: min(320px, calc(100% - 64px));
}

.public-kiosk-theme .camera-panel .camera-preview-shell--16-9 {
    width: min(960px, calc(100% - 64px));
}

.public-kiosk-theme .camera-panel--9-16 {
    padding: 132px 42px 28px;
}

.public-kiosk-theme .camera-panel--9-16 .kiosk-topbar-event-name {
    top: 38%;
}

.public-kiosk-theme .camera-panel--9-16 .camera-stage {
    width: min(760px, 100%);
}

.public-kiosk-theme .camera-panel--9-16 .camera-preview-shell {
    width: min(360px, calc(100% - 64px));
}

.public-kiosk-theme .camera-panel--9-16 .kiosk-feature-strip {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    width: min(720px, calc(100% - 220px));
    grid-template-columns: 112px minmax(420px, 1fr) 112px;
    grid-template-rows: repeat(2, auto);
    gap: 92px 0;
    transform: translate(-50%, -34%);
}

.public-kiosk-theme .camera-panel--9-16 .kiosk-feature:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.public-kiosk-theme .camera-panel--9-16 .kiosk-feature:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.public-kiosk-theme .camera-panel--9-16 .kiosk-feature:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.public-kiosk-theme .camera-panel--9-16 .kiosk-feature:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

.public-kiosk-theme .camera-panel .camera-controls {
    position: absolute;
    left: 50%;
    bottom: clamp(12px, 2.2vmin, 22px);
    z-index: 7;
    width: min(300px, calc(100% - 40px));
    margin-top: 0;
    transform: translateX(-50%);
}

.public-kiosk-theme .camera-panel .camera-controls .primary-action.small,
.public-kiosk-theme .camera-panel .camera-controls .secondary-action {
    width: 100%;
    min-width: 0;
    min-height: clamp(54px, 6.2vmin, 68px);
    padding: 0 clamp(18px, 2.6vmin, 26px);
    font-size: clamp(20px, 2.4vmin, 28px);
    line-height: 1.05;
}

.public-kiosk-theme .camera-message,
.public-kiosk-theme .camera-countdown-phrase {
    color: #ffffff;
    background: rgba(3, 3, 7, 0.76);
}

.public-kiosk-theme .camera-countdown-number {
    color: #ffffff;
    text-shadow:
        0 0 24px rgba(255, 92, 200, 0.68),
        0 0 28px rgba(46, 164, 255, 0.56);
}

.public-kiosk-theme [data-hand-select-button].is-hand-hovered {
    outline-color: rgba(255, 92, 200, 0.64);
    background:
        linear-gradient(90deg, rgba(54, 13, 50, 0.98), rgba(9, 31, 63, 0.98)) padding-box,
        linear-gradient(90deg, var(--kiosk-pink), var(--kiosk-blue)) border-box;
}

.public-kiosk-theme .kiosk-feature-strip {
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 26px;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    pointer-events: none;
}

.public-kiosk-theme .kiosk-feature {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    color: #ffffff;
}

.public-kiosk-theme .kiosk-feature strong {
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
}

.public-kiosk-theme .kiosk-feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 0 12px currentColor);
}

.public-kiosk-theme .kiosk-feature-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-kiosk-theme .welcome-panel.is-local-result-active {
    min-height: 0;
    height: calc(100vh - 5vmin);
    align-content: stretch;
    gap: 26px;
    padding: 114px 42px 42px;
}

.public-kiosk-theme .welcome-panel.is-local-result-active .kiosk-topbar-event-name {
    top: 50%;
}

.public-kiosk-theme .welcome-panel.is-local-result-active .camera-stage {
    width: 100%;
    max-width: none;
    height: 100%;
    align-content: stretch;
    justify-items: center;
}

.public-kiosk-theme .welcome-panel.is-local-result-active .public-kiosk-back-action,
.public-kiosk-theme .welcome-panel.is-local-result-active .camera-preview-shell,
.public-kiosk-theme .welcome-panel.is-local-result-active .camera-controls,
.public-kiosk-theme .welcome-panel.is-local-result-active .kiosk-feature-strip {
    display: none;
}

.public-kiosk-theme .welcome-panel.is-local-result-active .camera-local-result {
    --result-card-height: 620px;
    width: min(1160px, calc(100% - 96px));
    height: var(--result-card-height);
    grid-template-columns: minmax(240px, min(46%, 540px)) minmax(280px, 1fr);
    gap: 42px;
    align-self: center;
    align-items: center;
    padding: 28px;
}

.public-kiosk-theme .kiosk-feature-icon--pink {
    color: var(--kiosk-pink);
}

.public-kiosk-theme .kiosk-feature-icon--magenta {
    color: var(--kiosk-magenta);
}

.public-kiosk-theme .kiosk-feature-icon--violet {
    color: var(--kiosk-violet);
}

.public-kiosk-theme .kiosk-feature-icon--blue {
    color: var(--kiosk-blue);
}

@media (max-width: 920px) {
    .public-screen.public-kiosk-theme:not(.public-cabine-screen) {
        padding: 12px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-shell {
        width: min(1240px, 100%);
        height: auto;
        aspect-ratio: auto;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .welcome-panel {
        min-height: calc(100vh - 24px);
        height: auto;
        align-content: start;
        padding: 18px;
        gap: 20px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .result-panel {
        min-height: calc(100vh - 24px);
        height: auto;
        align-content: start;
        padding: 18px;
        gap: 20px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-result-panel--page {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 16px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-result-panel--page .camera-result-image {
        width: min(330px, 100%);
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-result-panel--page .camera-result-image.is-format-16-9 {
        width: 100%;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-result-panel--page .camera-result-share h1 {
        font-size: 34px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-result-panel--page .camera-qr-box {
        width: min(240px, 72vw);
        height: min(240px, 72vw);
    }

    .public-kiosk-theme:not(.public-cabine-screen) .welcome-panel.has-kiosk-back-action {
        padding-bottom: 118px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .public-kiosk-back-action {
        left: 24px;
        bottom: 24px;
        min-width: 148px;
        min-height: 62px;
        padding: 0 24px;
        font-size: 20px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-topbar,
    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-feature-strip {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-panel .kiosk-topbar {
        flex-wrap: wrap;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-topbar-event-name {
        position: static;
        order: 3;
        width: 100%;
        flex: 1 0 100%;
        transform: none;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-brand-camera {
        width: 54px;
        height: 48px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-brand-word {
        font-size: 22px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-brand img {
        width: min(260px, 62vw);
        max-height: 74px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .event-page-logo {
        width: 72px;
        height: 72px;
        padding: 8px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .eyebrow {
        width: 100%;
        font-size: 16px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) h1 {
        font-size: 34px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .public-start-action {
        min-height: 94px;
        gap: 16px;
        padding: 0 24px;
        font-size: 28px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .public-start-action::before {
        width: 52px;
        height: 40px;
        border-width: 4px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .public-start-carousel {
        --carousel-slide-width: 160px;
        --carousel-slide-height: 238px;
        --carousel-offset: 132px;
        --carousel-far-offset: 232px;
        height: 254px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .public-format-section,
    .public-kiosk-theme:not(.public-cabine-screen) .public-background-section {
        width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 16px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .public-background-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .public-choice-carousel.has-choice-pages {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-stage-head {
        align-items: stretch;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-stage-head h1 {
        font-size: 34px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-panel .camera-preview-shell,
    .public-kiosk-theme:not(.public-cabine-screen) .camera-panel .camera-preview-shell--16-9 {
        width: 100%;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-feature-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-feature-icon {
        width: 40px;
        height: 40px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-feature strong {
        font-size: 11px;
    }
}

@media (max-width: 560px) {
    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-topbar {
        align-items: flex-start;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-brand {
        gap: 10px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-brand-camera {
        width: 44px;
        height: 40px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-brand-word {
        font-size: 18px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .event-page-logo {
        width: 58px;
        height: 58px;
        padding: 7px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .public-start-action {
        min-width: 0;
        width: 100%;
        font-size: 24px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .public-start-carousel {
        --carousel-slide-width: 132px;
        --carousel-slide-height: 198px;
        --carousel-offset: 102px;
        --carousel-far-offset: 172px;
        height: 214px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .camera-result-panel--page .result-restart-action {
        min-width: 0;
        width: 100%;
        min-height: 62px;
        font-size: 21px;
    }

    .public-kiosk-theme:not(.public-cabine-screen) .kiosk-feature-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 12px;
    }
}

/* Public live event screen */
.public-live-screen {
    padding: clamp(12px, 2.5vmin, 24px);
    place-items: stretch;
}

.public-live-screen .public-live-shell {
    width: 100%;
    height: calc(100vh - clamp(24px, 5vmin, 48px));
}

.public-live-screen .public-live-panel {
    min-height: 0;
    height: 100%;
    align-content: stretch;
    overflow: hidden;
}

.public-live-screen .public-live-topbar {
    z-index: 4;
}

.public-live-entry {
    width: min(1040px, 100%);
    align-self: center;
    justify-self: center;
    display: grid;
    grid-template-columns: minmax(190px, 0.78fr) minmax(320px, 1fr);
    grid-template-areas:
        "title title"
        "pairing lead"
        "pairing error"
        "pairing form";
    align-items: center;
    justify-items: center;
    column-gap: clamp(24px, 4vw, 64px);
    row-gap: clamp(8px, 1.4vmin, 14px);
    text-align: center;
}

.public-live-entry > .eyebrow {
    grid-area: eyebrow;
}

.public-live-entry > h1 {
    grid-area: title;
    font-size: 54px;
}

.public-live-entry > .lead {
    grid-area: lead;
    max-width: 560px;
    font-size: 20px;
    line-height: 1.25;
}

.public-live-entry > .form-error {
    grid-area: error;
}

.public-live-code-form {
    grid-area: form;
    width: min(520px, 100%);
    display: grid;
    gap: 14px;
}

.public-live-pairing-box {
    grid-area: pairing;
    display: grid;
    justify-items: center;
    gap: 10px;
}

.public-live-pairing-qr {
    width: 280px;
    height: 280px;
    width: clamp(160px, min(30vw, 38vh), 280px);
    height: clamp(160px, min(30vw, 38vh), 280px);
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
}

.public-live-pairing-qr img,
.public-live-pairing-qr canvas,
.public-live-pairing-qr svg {
    width: 100%;
    height: 100%;
    display: block;
}

.public-live-pairing-qr table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

.public-live-connection-status {
    position: absolute;
    z-index: 5;
    top: 92px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(23, 32, 51, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.public-live-code-form label {
    display: grid;
    gap: 8px;
    color: var(--kiosk-muted);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.public-live-code-form input {
    width: 100%;
    min-height: 70px;
    padding: 0 18px;
    color: #ffffff;
    text-align: center;
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 900;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 92, 200, 0.44);
    border-right-color: rgba(46, 164, 255, 0.56);
    border-radius: 8px;
    outline: 0;
}

.public-live-code-form input:focus {
    box-shadow:
        0 0 0 3px rgba(255, 92, 200, 0.24),
        0 0 0 6px rgba(46, 164, 255, 0.12);
}

.public-live-stage,
.public-live-feature,
.public-live-carousel-state {
    width: 100%;
    min-height: 0;
    height: 100%;
}

.public-live-stage {
    position: relative;
}

.public-live-screen-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 8;
    min-width: 42px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    background: rgba(10, 17, 31, 0.78);
    border: 1px solid rgba(255, 92, 200, 0.62);
    border-right-color: rgba(46, 164, 255, 0.72);
    border-radius: 8px;
    box-shadow:
        0 0 18px rgba(255, 92, 200, 0.28),
        0 0 22px rgba(46, 164, 255, 0.20);
}

.public-live-guest-qr {
    position: absolute;
    left: clamp(12px, 2.2vw, 34px);
    bottom: clamp(12px, 2.2vw, 34px);
    z-index: 9;
    display: grid;
    justify-items: center;
    gap: 6px;
    width: clamp(92px, 7vw, 132px);
    padding: 7px;
    color: #172033;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 92, 200, 0.38);
    border-radius: 8px;
    box-shadow:
        0 14px 34px rgba(5, 12, 25, 0.28),
        0 0 18px rgba(46, 164, 255, 0.16);
}

.public-live-guest-qr[hidden] {
    display: none;
}

.public-live-guest-qr h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(13px, 1.05vw, 18px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.public-live-guest-qr-box,
.public-live-guest-qr-box img,
.public-live-guest-qr-box canvas {
    width: 100%;
    height: auto;
    display: block;
}

.public-live-guest-qr-box {
    aspect-ratio: 1;
    padding: 4px;
    background: #fff;
    border-radius: 6px;
}

.public-live-feature,
.public-live-carousel-state {
    display: grid;
    align-content: center;
    justify-items: center;
}

.public-live-feature[hidden],
.public-live-carousel-state[hidden] {
    display: none;
}

.public-live-screen .public-live-feature-panel {
    --result-card-height: min(660px, calc(100vh - clamp(210px, 22vmin, 260px)));
    width: min(1160px, calc(100% - clamp(20px, 5vw, 96px)));
    height: var(--result-card-height);
}

.public-live-screen .public-live-feature-panel .camera-result-image {
    width: min(340px, 100%, calc((var(--result-card-height) - 116px) * 9 / 16));
}

.public-live-screen .public-live-feature-panel .camera-result-image.is-format-16-9 {
    width: min(560px, 100%, calc((var(--result-card-height) - 116px) * 16 / 9));
}

.public-live-carousel-state {
    align-content: start;
    gap: clamp(36px, 5vh, 78px);
    padding-top: clamp(38px, 8vh - 20px, 84px);
    text-align: center;
}

.public-live-carousel-state h1 {
    margin-bottom: 0;
    font-size: clamp(42px, min(4.6vw, 6.2vh), 64px);
    line-height: 1;
}

.public-live-carousel-panel {
    width: min(980px, 92vw);
    min-height: 0;
    margin-top: clamp(36px, calc(2.2vmin + 20px), 50px);
}

.public-live-screen .public-live-carousel {
    --carousel-slide-width: clamp(180px, 17vw, 260px);
    --carousel-slide-height: clamp(250px, 23.5vw, 360px);
    --carousel-offset: clamp(150px, 18vw, 260px);
    --carousel-far-offset: clamp(260px, 30vw, 420px);
    height: min(400px, 40vh);
    transform: translateY(20px);
}

.public-live-screen .public-live-carousel .public-start-carousel-item[data-format="is-format-16-9"] {
    width: clamp(260px, 28vw, 420px);
    height: clamp(146px, 15.75vw, 236px);
    align-self: center;
}

@media (max-width: 920px) {
    .public-live-screen .public-live-shell {
        height: auto;
        min-height: calc(100vh - 24px);
    }

    .public-live-screen .public-live-panel {
        min-height: calc(100vh - 24px);
        height: auto;
    }

    .public-live-screen .public-live-feature-panel {
        width: 100%;
        height: auto;
    }

    .public-live-screen .public-live-carousel {
        height: 260px;
    }

    .public-live-carousel-state {
        padding-top: 24px;
    }

    .public-live-carousel-state h1 {
        font-size: 42px;
    }

    .public-live-entry {
        width: min(760px, 100%);
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "lead"
            "error"
            "pairing"
            "form";
        gap: 18px;
    }

    .public-live-entry > h1 {
        font-size: 34px;
    }

    .public-live-entry > .lead {
        font-size: 18px;
    }
}

/* Public individual photo share page */
.public-photo-page {
    place-items: center;
}

.public-photo-page .public-photo-shell {
    width: min(760px, 100%);
}

.public-photo-page .public-photo-panel {
    min-height: calc(100vh - 5vmin);
    height: auto;
    align-content: start;
    justify-items: center;
    gap: clamp(14px, 2.2vmin, 22px);
    padding: clamp(14px, 3vmin, 28px);
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.public-photo-page .public-photo-panel::before {
    display: none;
}

.public-photo-page .public-photo-topbar {
    position: static;
    width: min(430px, 100%);
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.public-photo-page .public-photo-topbar .kiosk-brand {
    justify-content: center;
}

.public-photo-page .public-photo-topbar .kiosk-brand img {
    width: min(360px, 100%);
    max-height: 110px;
}

.public-photo-content {
    width: min(520px, 100%);
    display: grid;
    justify-items: center;
    gap: 0;
    margin-top: 0;
}

.public-photo-frame {
    position: relative;
    width: min(430px, 100%);
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    background: #05050b;
    border: 2px solid rgba(255, 92, 200, 0.78);
    border-right-color: rgba(46, 164, 255, 0.86);
    border-radius: 8px;
    box-shadow:
        0 24px 54px rgba(0, 0, 0, 0.64),
        0 0 30px rgba(255, 92, 200, 0.42),
        0 0 36px rgba(46, 164, 255, 0.32);
}

.public-photo-frame.is-format-16-9 {
    width: min(760px, 100%);
}

.public-photo-frame.is-format-16-9 .public-photo-action-bar {
    position: static;
    width: calc(100% - 16px);
    margin: 8px;
    justify-self: stretch;
}

.public-photo-page .download-photo-preview {
    width: 100%;
    max-height: min(66vh, 720px);
    display: block;
    object-fit: contain;
    background: #05050b;
    border-radius: 6px;
    box-shadow: none;
}

.public-photo-page .download-photo-preview.is-format-16-9 {
    width: 100%;
    max-height: min(52vh, 430px);
}

.public-photo-actions {
    width: min(560px, 100%);
}

.public-photo-actions .primary-action,
.public-photo-actions .download-action {
    min-height: 72px;
    gap: 12px;
    padding-inline: 28px;
    font-size: clamp(22px, 3vw, 34px);
}

.public-photo-actions .download-action.primary-action {
    font-weight: 900;
}

.public-photo-actions .public-photo-share-action {
    width: 100%;
    min-height: 58px;
    font-size: clamp(18px, 2.4vw, 24px);
    cursor: pointer;
}

.public-photo-actions svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-photo-page .share-fallback {
    color: var(--kiosk-muted);
}

.public-photo-action-bar {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: clamp(8px, 2.2vw, 14px);
    z-index: 4;
    width: auto;
    min-height: 64px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    padding: 8px;
    background:
        linear-gradient(90deg, rgba(255, 92, 200, 0.14), rgba(46, 164, 255, 0.14)),
        rgba(3, 3, 7, 0.66);
    border: 1px solid rgba(255, 92, 200, 0.62);
    border-right-color: rgba(46, 164, 255, 0.78);
    border-radius: 8px;
    box-shadow:
        0 0 24px rgba(255, 92, 200, 0.30),
        0 0 30px rgba(46, 164, 255, 0.24),
        0 18px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
}

.public-photo-icon-action {
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(16, 10, 27, 0.94), rgba(5, 10, 24, 0.94)) padding-box,
        linear-gradient(90deg, var(--kiosk-pink), var(--kiosk-magenta), var(--kiosk-blue)) border-box;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        inset 0 0 18px rgba(255, 255, 255, 0.06),
        0 0 18px rgba(255, 92, 200, 0.22),
        0 0 22px rgba(46, 164, 255, 0.18);
}

.public-photo-icon-action:hover,
.public-photo-icon-action:focus-visible {
    background:
        linear-gradient(90deg, rgba(54, 13, 50, 0.98), rgba(9, 31, 63, 0.98)) padding-box,
        linear-gradient(90deg, var(--kiosk-pink), var(--kiosk-blue)) border-box;
    box-shadow:
        0 0 28px rgba(255, 92, 200, 0.42),
        0 0 34px rgba(46, 164, 255, 0.34),
        inset 0 0 24px rgba(255, 255, 255, 0.08);
}

.public-photo-icon-action svg {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-photo-share-fallback {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--kiosk-muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 920px) {
    .public-photo-page .public-photo-panel {
        min-height: calc(100vh - 24px);
        align-content: start;
        padding: 10px 2px;
        gap: 12px;
    }

    .public-photo-page .public-photo-topbar {
        width: min(100%, 360px);
    }

    .public-photo-content {
        width: 100%;
        margin-top: 0;
    }

    .public-photo-frame,
    .public-photo-frame.is-format-16-9 {
        width: min(100%, 560px);
    }

    .public-photo-page .download-photo-preview {
        max-height: none;
    }

    .public-photo-page .download-photo-preview.is-format-16-9 {
        max-height: none;
    }

    .public-photo-actions .primary-action,
    .public-photo-actions .download-action {
        min-height: 68px;
        font-size: 22px;
    }

    .public-photo-actions .public-photo-share-action {
        min-height: 54px;
        font-size: 18px;
    }

    .public-photo-action-bar {
        left: 7px;
        right: 7px;
        width: auto;
        min-height: 58px;
        gap: 8px;
        padding: 7px;
    }

    .public-photo-icon-action {
        min-height: 44px;
    }
}

@media (max-width: 560px) {
    .public-screen.public-kiosk-theme.public-photo-page {
        padding: 0;
    }

    .public-photo-actions {
        width: 100%;
    }

    .public-photo-actions .primary-action,
    .public-photo-actions .download-action {
        min-width: 0;
        width: 100%;
        padding-inline: 18px;
    }

    .public-photo-page .download-photo-preview {
        max-height: none;
    }

    .public-photo-page .download-photo-preview.is-format-16-9 {
        max-height: none;
    }

    .public-photo-frame.is-format-16-9 {
        width: calc(100% - 4px);
    }

    .public-photo-frame.is-format-16-9 .public-photo-action-bar {
        width: calc(100% - 8px);
        margin: 4px;
    }

    .public-photo-action-bar {
        bottom: 8px;
    }
}
/* Active cabine limit popup */
.cabine-limit-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(8, 15, 30, 0.58);
}

.cabine-limit-card {
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.cabine-limit-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.12;
}

.cabine-limit-card p {
    margin: 0 0 18px;
    color: #647086;
}

.cabine-limit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 620px) {
    .cabine-limit-card {
        padding: 22px;
    }

    .cabine-limit-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Cabine PWA entry */
.public-cabine-entry-page {
    place-items: center;
}

.cabine-pwa-shell {
    width: min(1180px, calc(100% - 24px));
}

.cabine-pwa-panel {
    min-height: calc(100vh - 24px);
    justify-content: center;
    gap: clamp(24px, 5vw, 48px);
}

.cabine-pwa-content {
    width: min(620px, 100%);
    display: grid;
    justify-items: center;
    gap: 22px;
    text-align: center;
}

.cabine-pwa-content h1 {
    margin: 0;
    color: #fff;
    font-size: 64px;
    line-height: 1;
}

.cabine-pwa-form {
    width: min(560px, 100%);
    display: grid;
    gap: 16px;
}

.cabine-pwa-code-field {
    display: grid;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-align: left;
}

.cabine-pwa-code-field input {
    width: 100%;
    min-height: 74px;
    padding: 0 24px;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
}

.cabine-pwa-code-field input:focus {
    outline: 3px solid rgba(35, 213, 195, 0.36);
    outline-offset: 3px;
}

.cabine-pwa-submit {
    min-width: 0;
    width: 100%;
    min-height: 86px;
}

.cabine-pwa-install-action {
    width: 100%;
    min-height: 66px;
    color: #ffffff;
    border-color: rgba(255, 92, 200, 0.58);
    background: rgba(255, 255, 255, 0.08);
    font-size: 22px;
    font-weight: 900;
}

.cabine-pwa-submit:disabled {
    cursor: wait;
    opacity: 0.72;
}

.cabine-pwa-message {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
}

.cabine-pwa-message.is-error {
    color: #fff;
    background: rgba(220, 38, 38, 0.86);
}

.cabine-pwa-message.is-success {
    color: #102a2a;
    background: #23d5c3;
}

.cabine-pwa-pending {
    width: min(560px, 100%);
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 205, 86, 0.46);
    border-radius: 8px;
    background: rgba(255, 205, 86, 0.13);
    box-shadow: 0 0 24px rgba(255, 205, 86, 0.18);
}

.cabine-pwa-pending[hidden] {
    display: none;
}

.cabine-pwa-pending strong {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cabine-pwa-pending p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.42;
}

.cabine-pwa-last-event {
    width: min(560px, 100%);
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.cabine-pwa-last-event strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cabine-pwa-last-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 720px) {
    .cabine-pwa-panel {
        padding: 22px;
    }

    .cabine-pwa-content h1 {
        font-size: 40px;
    }

    .cabine-pwa-code-field input {
        font-size: 32px;
    }

    .cabine-pwa-last-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
