.auth-page {
    display: grid;
    min-height: calc(100vh - 145px);
    place-items: center;
    padding: 48px 16px;
}

.auth-panel {
    width: min(100%, 460px);
    padding: 32px;
    border: 1px solid var(--color-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.auth-panel h1 {
    margin: 0 0 22px;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.02;
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--color-muted);
}

.auth-switch a,
.dashboard-card a:not(.button):not(.subtle-button):not(.icon-button),
.table-actions a:not(.button):not(.subtle-button):not(.icon-button) {
    color: var(--color-primary);
    font-weight: 800;
}

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

body.dashboard-page {
    --admin-radius-xs: 6px;
    --admin-radius-sm: 8px;
    --admin-radius-md: 10px;
    --admin-radius-lg: 14px;
    --admin-border: rgba(219, 228, 242, 0.88);
    --admin-border-strong: rgba(199, 212, 232, 0.94);
    --admin-panel-bg: rgba(255, 255, 255, 0.94);
    --admin-muted-bg: rgba(246, 249, 255, 0.86);
    --admin-tint-bg: rgba(8, 90, 239, 0.07);
    --admin-shadow-soft: 0 10px 24px rgba(8, 20, 68, 0.045);
    --admin-shadow-menu: 0 16px 36px rgba(8, 20, 68, 0.12);
}

body.dashboard-page .button,
body.dashboard-page .subtle-button {
    min-height: 40px;
    border-radius: var(--admin-radius-sm);
    box-shadow: none;
    font-size: 0.91rem;
}

body.dashboard-page .button-primary {
    box-shadow: 0 8px 18px rgba(8, 90, 239, 0.14);
}

body.dashboard-page .button:hover,
body.dashboard-page .subtle-button:hover {
    box-shadow: var(--admin-shadow-soft);
}

body.dashboard-page input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    flex: 0 0 20px;
    border: 1px solid rgba(127, 143, 169, 0.9);
    border-radius: var(--admin-radius-xs);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
    vertical-align: middle;
    cursor: pointer;
}

body.dashboard-page input[type="checkbox"]::before {
    content: "";
    width: 5px;
    height: 10px;
    margin-top: -2px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transform-origin: center;
    transition: transform 120ms ease;
}

body.dashboard-page input[type="checkbox"]:checked {
    border-color: transparent;
    background: var(--color-primary);
}

body.dashboard-page input[type="checkbox"]:checked::before {
    transform: rotate(45deg) scale(1);
}

body.dashboard-page input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(8, 90, 239, 0.18);
    outline-offset: 2px;
}

body.dashboard-page input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

body.dashboard-page .dashboard-card,
body.dashboard-page .table-card,
body.dashboard-page .flow-intro-card,
body.dashboard-page .next-step-panel,
body.dashboard-page .qr-hero-card,
body.dashboard-page .qr-manager-list-card,
body.dashboard-page .qr-manager-editor-card,
body.dashboard-page .qr-info-card,
body.dashboard-page .builder-outline-card,
body.dashboard-page .mobile-record-card,
body.dashboard-page .hotel-settings-card,
body.dashboard-page .project-list-toolbar,
body.dashboard-page .project-template-section {
    border-radius: var(--admin-radius-lg);
    box-shadow: var(--admin-shadow-soft);
}

body.dashboard-page .status-pill,
body.dashboard-page .flow-pill,
body.dashboard-page .language-chip,
body.dashboard-page .record-chip-list span,
body.dashboard-page .mini-group-type,
body.dashboard-page .mini-item-meta span,
body.dashboard-page .qr-manager-main-badge,
body.dashboard-page .qr-manager-tags span,
body.dashboard-page .page-stat-chip,
body.dashboard-page .form-section-tag,
body.dashboard-page .project-current-label {
    border-radius: var(--admin-radius-xs);
}

.dashboard-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(234, 241, 255, 0.72), transparent 24%),
        radial-gradient(circle at top right, rgba(8, 90, 239, 0.05), transparent 18%),
        linear-gradient(180deg, #f7faff, #eef4ff 42%, #f7faff);
}

.dashboard-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgba(8, 20, 68, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

body.dashboard-menu-open .dashboard-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: grid;
    align-content: start;
    gap: 10px;
    width: min(86vw, 340px);
    padding: 18px 16px 20px;
    border-right: 1px solid rgba(219, 228, 242, 0.82);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 54px rgba(8, 20, 68, 0.12);
    transform: translateX(-108%);
    transition: transform 220ms ease;
    overflow-y: auto;
}

body.dashboard-menu-open .dashboard-sidebar {
    transform: translateX(0);
}

.dashboard-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-sidebar-body {
    display: grid;
    gap: 18px;
}

.dashboard-header-menu-slot {
    display: none;
    flex: 0 0 auto;
}

.dashboard-header-menu-toggle {
    margin-left: auto;
}

.dashboard-menu-close,
.dashboard-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(219, 228, 242, 0.9);
    border-radius: var(--admin-radius-md);
    background: rgba(255, 255, 255, 0.94);
    color: var(--color-ink);
    cursor: pointer;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-menu-close:hover,
.dashboard-menu-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(8, 90, 239, 0.22);
    box-shadow: var(--shadow-card);
}

.dashboard-menu-close span {
    font-size: 1.55rem;
    line-height: 1;
}

.dashboard-menu-toggle {
    gap: 4px;
    flex-direction: column;
    margin-left: auto;
    flex: none;
}

.dashboard-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: var(--admin-radius-xs);
    background: currentColor;
}

.dashboard-project-switcher,
.dashboard-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: var(--admin-radius-sm);
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dashboard-project-switcher:hover,
.dashboard-nav-link:hover {
    background: rgba(8, 90, 239, 0.06);
    color: var(--color-primary-dark);
    transform: translateX(1px);
}

.dashboard-project-switcher.is-active,
.dashboard-nav-link.is-active {
    background: rgba(8, 90, 239, 0.11);
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1px rgba(8, 90, 239, 0.04);
}

.dashboard-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: currentColor;
}

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

.dashboard-nav {
    display: grid;
    gap: 18px;
    width: 100%;
}

.dashboard-nav-group {
    display: grid;
    gap: 6px;
}

.dashboard-nav-label {
    margin: 0 0 2px;
    padding: 0 10px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 820;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-sidebar-title {
    margin: 0;
}

.dashboard-main {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 24px 14px 56px;
}

[data-adaptive-thumbnail] img {
    object-position: center center !important;
}

[data-adaptive-thumbnail] img.is-top-anchored-thumbnail-crop {
    object-position: center top !important;
}

.dashboard-main-frame {
    width: min(100%, 980px);
    margin: 0 auto;
}

.dashboard-main-frame-wide {
    width: min(100%, 1180px);
}

.project-preview-frame {
    width: min(100%, 1180px);
}

.project-preview-stage {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(360px, 1fr);
    align-items: start;
    justify-content: stretch;
    gap: clamp(34px, 5vw, 80px);
    min-height: calc(100dvh - var(--site-header-height, 72px) - 132px);
    padding: 0 0 8px;
}

.project-preview-left-column {
    align-self: start;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.project-preview-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.project-preview-heading h1 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2rem, 4vw, 2.45rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.project-preview-controls-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(219, 228, 242, 0.82);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 42px rgba(8, 20, 68, 0.06);
}

.project-preview-controls-card h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: 1.12rem;
    line-height: 1.12;
}

.project-preview-theme-list {
    --theme-scroll-fade-left: #000;
    --theme-scroll-fade-right: #000;
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, var(--theme-scroll-fade-left), #000 10px, #000 calc(100% - 10px), var(--theme-scroll-fade-right));
    mask-image: linear-gradient(90deg, var(--theme-scroll-fade-left), #000 10px, #000 calc(100% - 10px), var(--theme-scroll-fade-right));
}

.project-preview-theme-list::-webkit-scrollbar {
    display: none;
}

.project-preview-theme-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(219, 228, 242, 0.86);
    border-radius: var(--admin-radius-sm);
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-muted);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 820;
    cursor: pointer;
}

.project-preview-theme-button.is-selected {
    border-color: rgba(8, 90, 239, 0.22);
    background: rgba(8, 90, 239, 0.1);
    color: var(--color-primary);
}

.project-preview-theme-scroller {
    position: relative;
    display: block;
    min-width: 0;
}

.project-preview-theme-scroller::before,
.project-preview-theme-scroller::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 44px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 120ms ease;
}

.project-preview-theme-scroller::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff 0 34px, rgba(255, 255, 255, 0));
}

.project-preview-theme-scroller::after {
    right: 0;
    background: linear-gradient(270deg, #ffffff 0 34px, rgba(255, 255, 255, 0));
}

.project-preview-theme-scroller.has-left-overflow .project-preview-theme-list {
    --theme-scroll-fade-left: transparent;
}

.project-preview-theme-scroller.has-right-overflow .project-preview-theme-list {
    --theme-scroll-fade-right: transparent;
}

.project-preview-theme-scroller.has-left-overflow::before,
.project-preview-theme-scroller.has-right-overflow::after {
    opacity: 1;
}

.project-preview-theme-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(219, 228, 242, 0.86);
    border-radius: var(--admin-radius-sm);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-ink);
    cursor: pointer;
    transform: translateY(-50%);
}

.project-preview-theme-arrow[data-theme-scroll="left"] {
    left: 0;
}

.project-preview-theme-arrow[data-theme-scroll="right"] {
    right: 0;
}

.project-preview-theme-arrow[hidden] {
    display: none;
}

.project-preview-theme-arrow span {
    font-size: 1.35rem;
    line-height: 1;
    transform: translateY(-1px);
}

.project-preview-phone-column {
    display: grid;
    justify-items: center;
    min-width: 0;
}

.project-preview-phone-viewport {
    width: min(100%, clamp(340px, 30vw, 380px));
    height: clamp(640px, calc(100dvh - var(--site-header-height, 72px) - 132px), 820px);
    overflow: hidden;
    border: 1px solid rgba(199, 212, 232, 0.9);
    border-radius: var(--admin-radius-lg);
    background: #fff;
    box-shadow: var(--admin-shadow-soft);
}

.project-preview-phone-viewport iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.dashboard-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-eyebrow {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-topbar h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.dashboard-title-group,
.dashboard-topbar-meta {
    display: grid;
    gap: 12px;
}

.dashboard-title-group {
    min-width: 0;
    width: 100%;
}

.dashboard-mobile-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
}

.dashboard-topbar-meta {
    justify-items: end;
}

.dashboard-user {
    padding: 10px 14px;
    border: 1px solid rgba(219, 228, 242, 0.88);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-muted);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(8, 20, 68, 0.05);
}

@keyframes dashboard-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(8, 90, 239, 0.32);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(8, 90, 239, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(8, 90, 239, 0);
    }
}

@keyframes dashboard-draft-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(216, 139, 54, 0.3);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(216, 139, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(216, 139, 54, 0);
    }
}

.dashboard-grid,
.dashboard-overview-hero {
    display: grid;
    gap: 18px;
}

.dashboard-grid-halves,
.dashboard-grid-thirds,
.dashboard-grid-feature {
    grid-template-columns: 1fr;
}

.compact-grid {
    margin-bottom: 16px;
}

.dashboard-inline-helper {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.page-stat-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 9px 13px;
    border-radius: var(--admin-radius-sm);
    background: rgba(8, 90, 239, 0.08);
    color: var(--color-primary);
    font-size: 0.86rem;
    font-weight: 850;
}

.compact-tip-banner {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid rgba(219, 228, 242, 0.82);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.9);
}

.compact-tip-banner p {
    margin: 0;
    color: var(--color-muted);
}

.compact-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--admin-radius-sm);
    background: rgba(8, 90, 239, 0.12);
    color: var(--color-primary);
    font-size: 0.84rem;
    font-weight: 900;
}

.dashboard-card,
.table-card,
.flow-intro-card,
.next-step-panel,
.qr-hero-card {
    border: 1px solid rgba(219, 228, 242, 0.82);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--admin-shadow-soft);
}

.dashboard-card,
.flow-intro-card,
.next-step-panel {
    padding: 22px;
}

.table-card {
    overflow-x: auto;
    padding: 0;
}

.dashboard-card-wide {
    width: 100%;
}

.dashboard-card h2,
.flow-intro-card h2,
.next-step-panel h2,
.qr-hero-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 3vw, 1.85rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.dashboard-card p,
.flow-intro-card p,
.next-step-panel p,
.qr-hero-card p {
    margin: 0 0 12px;
    color: var(--color-muted);
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(8, 90, 239, 0.09), rgba(234, 241, 255, 0.36)),
        #fff;
}

.dashboard-overview-page .dashboard-main-frame {
    width: min(100%, 1040px);
}

.dashboard-overview-grid {
    gap: 16px;
}

.dashboard-overview-page .dashboard-overview-hero {
    grid-template-columns: 1fr;
}

.dashboard-overview-page .dashboard-card {
    border-radius: var(--admin-radius-lg);
    box-shadow: var(--admin-shadow-soft);
}

.dashboard-overview-page .dashboard-card {
    padding: 20px;
}

.overview-hero-card {
    --overview-title-row-height: 44px;
    --overview-action-row-height: 94px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.94);
}

.overview-hero-card.is-access-inactive {
    border-color: rgba(225, 194, 138, 0.3);
    background:
        linear-gradient(135deg, rgba(255, 249, 238, 0.76), rgba(255, 255, 255, 0.92) 42%),
        #fff;
}

.overview-hero-card.is-access-active {
    border-color: rgba(128, 170, 134, 0.26);
    background:
        linear-gradient(135deg, rgba(241, 248, 242, 0.78), rgba(255, 255, 255, 0.92) 42%),
        #fff;
}

.overview-hero-main,
.overview-qr-box,
.overview-support-card,
.overview-empty-card {
    display: grid;
    gap: 14px;
}

.overview-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.overview-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.overview-status-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.overview-hero-head h2,
.overview-support-card h2,
.overview-empty-card h2 {
    margin-bottom: 0;
}

.overview-hero-copy {
    max-width: 720px;
}

.overview-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(8, 90, 239, 0.14);
    border-radius: var(--admin-radius-sm);
    background: rgba(8, 90, 239, 0.06);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 780;
}

.overview-status-badge.is-draft {
    border-color: rgba(216, 139, 54, 0.2);
    background: rgba(216, 139, 54, 0.09);
    color: #8a4d13;
}

.overview-status-badge.is-access {
    border-color: rgba(20, 122, 70, 0.14);
    background: rgba(20, 122, 70, 0.08);
    color: #17653c;
}

.overview-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.overview-stat {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid rgba(219, 228, 242, 0.9);
    border-radius: var(--admin-radius-md);
    background: rgba(255, 255, 255, 0.64);
}

.overview-stat strong {
    color: var(--color-ink);
    font-size: 1.05rem;
    line-height: 1.1;
}

.overview-stat span {
    color: var(--color-muted);
    font-size: 0.81rem;
    font-weight: 720;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.overview-actions {
    gap: 10px;
}

.overview-qr-box {
    grid-template-rows: var(--overview-title-row-height, 34px) minmax(0, 1fr) var(--overview-action-row-height, 48px);
    align-content: start;
    justify-items: center;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.overview-qr-image {
    box-sizing: border-box;
    align-self: stretch;
    width: min(100%, 214px);
    aspect-ratio: 1;
    height: 100%;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-sm);
    background: #fff;
    object-fit: contain;
}

.overview-qr-copy {
    display: grid;
    gap: 3px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.overview-qr-copy strong {
    color: var(--color-ink);
    font-size: 0.98rem;
}

.overview-qr-copy span {
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.overview-qr-actions {
    display: grid;
    align-self: end;
    gap: 10px;
    width: min(100%, 220px);
}

.overview-qr-actions .button {
    min-height: 42px;
    justify-content: center;
}

.overview-activation-strip,
.overview-activation-actions,
.overview-subscription-modal-head {
    display: flex;
    gap: 12px;
}

.overview-activation-strip {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(168px, 188px);
    align-items: center;
    gap: 18px;
    overflow: hidden;
    min-height: 138px;
    padding: 18px 24px;
    border: 1px solid rgba(225, 194, 138, 0.26);
    border-radius: var(--admin-radius-md);
    background: linear-gradient(135deg, rgba(255, 246, 229, 0.44), rgba(255, 255, 255, 0.32));
}

.overview-activation-strip::after {
    content: none;
}

.overview-activation-strip.is-active {
    border-color: rgba(128, 170, 134, 0.24);
    background: linear-gradient(135deg, rgba(235, 247, 237, 0.48), rgba(255, 255, 255, 0.36));
}

.overview-activation-mark {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid rgba(186, 137, 50, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(255, 246, 229, 0.72));
    color: #a26c16;
    font-family: var(--portal-title-font, Georgia, serif);
    font-size: 1.15rem;
    font-weight: 850;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.overview-activation-strip.is-active .overview-activation-mark {
    border-color: rgba(20, 122, 70, 0.18);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(235, 247, 237, 0.78));
    color: #17653c;
}

.overview-activation-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-activation-lock {
    position: relative;
    display: block;
    width: 24px;
    height: 20px;
    margin-top: 8px;
    border: 3px solid currentColor;
    border-radius: 5px;
}

.overview-activation-lock::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% - 2px);
    width: 18px;
    height: 18px;
    border: 3px solid currentColor;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    transform: translateX(-50%);
}

.overview-activation-lock::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
}

.overview-activation-check::before {
    content: "\2713";
    font-size: 2rem;
    line-height: 1;
}

.overview-activation-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
    max-width: 560px;
}

.overview-activation-copy strong {
    color: var(--color-ink);
    font-size: 1.05rem;
    line-height: 1.18;
}

.overview-activation-copy p {
    margin: 0;
    color: #303b56;
    font-size: 0.91rem;
    line-height: 1.52;
}

.overview-activation-copy a {
    color: var(--color-primary);
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.overview-activation-helper {
    margin-top: 6px !important;
    color: var(--color-muted) !important;
    font-size: 0.88rem !important;
}

.overview-activation-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 168px;
    padding-top: 3px;
}

.overview-activation-actions form,
.overview-activation-actions .button {
    width: 100%;
}

.overview-activation-actions .button {
    min-height: 48px;
    justify-content: center;
    border-color: rgba(190, 201, 220, 0.82);
    background: rgba(255, 255, 255, 0.72);
    color: var(--color-ink);
    box-shadow: none;
}

.overview-activation-actions .button-primary {
    border-color: rgba(8, 90, 239, 0.2);
    background: rgba(8, 90, 239, 0.08);
    color: var(--color-primary);
}

.overview-activation-actions .button:hover,
.overview-actions .button:hover,
.overview-qr-actions .button:hover {
    border-color: rgba(8, 90, 239, 0.22);
    background: rgba(255, 255, 255, 0.9);
}

.overview-actions .button,
.overview-qr-actions .button {
    border-color: rgba(190, 201, 220, 0.76);
    background: rgba(255, 255, 255, 0.64);
    color: var(--color-ink);
    box-shadow: none;
}

.overview-actions .button-primary,
.overview-qr-actions .button-primary {
    border-color: rgba(8, 90, 239, 0.2);
    background: rgba(8, 90, 239, 0.08);
    color: var(--color-primary);
}

.overview-subscription-modal-head {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.overview-subscription-modal-head h2 {
    margin: 2px 0 0;
}

.overview-subscription-kicker {
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overview-subscription-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(8, 20, 68, 0.38);
    backdrop-filter: blur(5px);
}

.overview-subscription-modal {
    display: grid;
    gap: 16px;
    width: min(100%, 780px);
    padding: 22px;
    border: 1px solid rgba(219, 228, 242, 0.92);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--admin-shadow-menu);
}

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

.overview-plan-card {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 18px;
    min-height: 330px;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(219, 228, 242, 0.9);
    border-radius: var(--admin-radius-md);
    background: rgba(246, 249, 255, 0.72);
}

.overview-plan-card.is-featured {
    border-color: rgba(8, 90, 239, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.88));
}

.overview-plan-featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.overview-plan-card h3 {
    margin: 0 0 3px;
    color: var(--color-ink);
    font-size: 1.05rem;
}

.overview-plan-cycle {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 760;
}

.overview-plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin: 18px 0 8px;
}

.overview-plan-original {
    color: var(--color-muted);
    font-size: 0.82rem;
    text-decoration: line-through;
}

.overview-plan-price strong {
    color: var(--color-ink);
    font-size: 2.05rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.overview-plan-price small {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 760;
}

.overview-plan-savings {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(214, 178, 113, 0.16);
    color: #8a5f17;
    font-size: 0.72rem;
    font-weight: 850;
}

.overview-plan-card p {
    margin: 0;
    font-size: 0.9rem;
}

.overview-plan-benefits {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.overview-plan-benefits li {
    position: relative;
    padding-left: 22px;
    color: var(--color-ink);
    font-size: 0.86rem;
    font-weight: 760;
}

.overview-plan-benefits li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 900;
}

@media (min-width: 900px) {
    .overview-hero-card {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
    }
}

@media (max-width: 760px) {
    .overview-activation-strip,
    .overview-plan-grid {
        grid-template-columns: 1fr;
    }

    .overview-activation-actions,
    .overview-activation-actions .button,
    .overview-activation-actions form {
        width: 100%;
    }
}

.stat-card h2 {
    margin-bottom: 6px;
    font-size: 2rem;
}

.status-row,
.action-row,
.dashboard-actions,
.heading-actions,
.flow-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.status-row {
    margin: 14px 0;
    color: var(--color-muted);
    font-weight: 750;
}

.status-pill,
.flow-pill,
.mini-group-type,
.mini-item-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--admin-radius-xs);
    background: #eef4ff;
    color: var(--color-muted);
    font-size: 0.83rem;
    font-weight: 780;
}

.status-pill.is-live,
.flow-pill.is-active {
    background: rgba(8, 90, 239, 0.12);
    color: var(--color-primary);
}

.subtle-pill {
    background: rgba(216, 139, 54, 0.14);
    color: #8a4d13;
}

.button-full {
    width: 100%;
}

.dashboard-actions {
    justify-content: flex-end;
    margin-bottom: 14px;
}

.dashboard-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    color: var(--color-muted);
    font-size: 0.87rem;
    font-weight: 780;
}

.dashboard-breadcrumbs a {
    color: var(--color-primary);
}

.dashboard-breadcrumbs a::after {
    content: "/";
    margin-left: 8px;
    color: var(--color-muted);
}

.dashboard-section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.hero-inline {
    align-items: flex-start;
}

.dashboard-section-heading h2 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.dashboard-section-heading p:not(.dashboard-eyebrow) {
    margin: 0;
    color: var(--color-muted);
    max-width: 760px;
}

.flow-intro-card {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
    background:
        linear-gradient(135deg, rgba(8, 90, 239, 0.08), rgba(255, 255, 255, 0.98)),
        #fff;
}

.flow-pill-group-vertical {
    display: grid;
    gap: 10px;
    align-items: start;
}

.section-intro {
    margin-bottom: 18px;
}

.template-section {
    margin-bottom: 18px;
}

.template-grid {
    display: grid;
    gap: 14px;
}

.template-card {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(219, 228, 242, 0.88);
    border-radius: var(--admin-radius-lg);
    background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(255, 255, 255, 0.98));
    color: var(--color-ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.template-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 90, 239, 0.24);
    box-shadow: var(--shadow-card-hover);
}

.template-card strong {
    font-size: 1rem;
}

.template-card span {
    color: var(--color-muted);
}

.template-card small {
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.preview-card {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, var(--hotel-primary-soft, rgba(8, 90, 239, 0.14)), transparent 38%),
        rgba(255, 255, 255, 0.96);
    --hotel-primary: #085AEF;
    --hotel-secondary: #d88b36;
    --hotel-primary-soft: rgba(8, 90, 239, 0.14);
    --hotel-secondary-soft: rgba(216, 139, 54, 0.16);
    --hotel-primary-strong: #0648C5;
    --hotel-secondary-strong: #8a4d13;
    --hotel-primary-contrast: #ffffff;
    --hotel-secondary-contrast: #081444;
    --preview-ui-primary: #085AEF;
    --preview-ui-primary-soft: rgba(8, 90, 239, 0.1);
    --preview-ui-primary-strong: #0648C5;
    --preview-ui-primary-contrast: #ffffff;
    --preview-ui-tag-bg: rgba(24, 33, 31, 0.06);
    --preview-ui-tag-text: #62708f;
}

.mini-phone-preview {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 2px 0;
}

.mini-phone-screen {
    display: grid;
    gap: 12px;
    width: min(100%, 292px);
    min-height: 380px;
    padding: 18px 14px 16px;
    border: 10px solid #081444;
    border-radius: 36px;
    background:
        radial-gradient(circle at top left, rgba(234, 241, 255, 0.65), transparent 40%),
        linear-gradient(180deg, rgba(248, 251, 249, 0.98), rgba(255, 255, 255, 0.98)),
        #fff;
    box-shadow: 0 24px 44px rgba(8, 20, 68, 0.14);
    overflow: hidden;
}

.mini-page-preview .mini-phone-screen {
    min-height: 380px;
}

.mini-page-header,
.mini-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.mini-page-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: var(--admin-radius-md);
    background: linear-gradient(135deg, var(--preview-ui-primary), var(--preview-ui-primary-strong));
    color: var(--preview-ui-primary-contrast);
    font-weight: 900;
    box-shadow: 0 14px 26px var(--preview-ui-primary-soft);
}

.mini-page-header strong,
.mini-group-preview strong,
.mini-item-row strong {
    display: block;
    color: var(--color-ink);
    font-size: 1rem;
    line-height: 1.2;
}

.mini-page-header span,
.mini-page-meta,
.mini-preview-kicker,
.mini-group-preview p,
.mini-item-description,
.mini-item-value {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.mini-page-header div,
.mini-group-preview,
.mini-item-preview {
    display: grid;
    gap: 8px;
}

.mini-portal-topbar,
.mini-portal-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mini-portal-topbar strong {
    overflow: hidden;
    color: var(--color-ink);
    font-size: 0.82rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-portal-topbar span,
.mini-portal-tabs span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid rgba(219, 228, 242, 0.95);
    border-radius: var(--admin-radius-xs);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 820;
}

.mini-portal-topbar span {
    border-color: rgba(8, 90, 239, 0.18);
    background: var(--preview-ui-primary-soft);
    color: var(--preview-ui-primary);
}

.mini-portal-tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.mini-portal-tabs span.is-active {
    border-color: rgba(8, 90, 239, 0.18);
    background: var(--preview-ui-primary-soft);
    color: var(--preview-ui-primary);
}

.mini-portal-page-head,
.mini-portal-card-list {
    display: grid;
    gap: 10px;
}

.mini-portal-page-head {
    padding: 14px;
    border: 1px solid rgba(219, 228, 242, 0.95);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.9);
}

.mini-portal-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(219, 228, 242, 0.9);
    border-radius: var(--admin-radius-md);
    background: rgba(248, 250, 248, 0.92);
}

.mini-portal-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.mini-page-meta {
    display: inline-flex;
    gap: 4px;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.mini-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-preview-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--admin-radius-xs);
    background: var(--preview-ui-tag-bg);
    color: var(--preview-ui-tag-text);
    font-size: 0.78rem;
    font-weight: 800;
}

.mini-preview-kicker {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mini-group-preview {
    padding: 16px;
    border: 1px solid rgba(219, 228, 242, 0.95);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.88);
}

.mini-item-preview {
    gap: 10px;
}

.mini-item-image {
    width: 100%;
    height: 132px;
    border-radius: var(--admin-radius-md);
    object-fit: cover;
    background: #eef4ff;
}

.mini-item-price {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: var(--admin-radius-xs);
    background: rgba(8, 90, 239, 0.08);
    color: var(--preview-ui-primary);
    font-size: 0.82rem;
    font-weight: 850;
}

.mini-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-card .mini-item-meta span {
    background: var(--preview-ui-tag-bg);
    color: var(--preview-ui-tag-text);
}

.is-hidden {
    display: none;
}

.form-section {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(219, 228, 242, 0.72);
}

.form-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.form-section-header {
    display: grid;
    gap: 6px;
}

.form-section-admin {
    padding: 16px;
    border: 1px solid rgba(219, 228, 242, 0.9);
    border-radius: var(--admin-radius-lg);
    background: rgba(246, 249, 255, 0.92);
}

.dashboard-form .form-section-admin {
    border-top: 1px solid rgba(219, 228, 242, 0.9);
}

.form-section-tag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 5px 9px;
    border-radius: var(--admin-radius-xs);
    background: rgba(8, 90, 239, 0.08);
    color: var(--color-primary);
    font-size: 0.74rem;
    font-weight: 820;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-section-header h3 {
    margin: 0;
    font-size: 1.08rem;
}

.form-section-header p {
    margin: 0;
    color: var(--color-muted);
}

.status-banner {
    display: grid;
    gap: 4px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid rgba(8, 90, 239, 0.14);
    border-radius: var(--admin-radius-md);
    background: rgba(8, 90, 239, 0.06);
}

.status-banner strong {
    color: var(--color-ink);
}

.status-banner span {
    color: var(--color-muted);
    font-size: 0.94rem;
}

.status-banner.is-muted {
    border-color: rgba(98, 112, 109, 0.14);
    background: rgba(240, 243, 239, 0.9);
}

.next-step-panel {
    margin-top: 16px;
    border-color: rgba(8, 90, 239, 0.18);
    background: linear-gradient(135deg, rgba(8, 90, 239, 0.09), rgba(234, 241, 255, 0.5));
}

.next-step-panel p:not(.dashboard-eyebrow) {
    margin: 0 0 16px;
}

.helper-list,
.checklist,
.stacked-form,
.dashboard-form,
.form-grid {
    display: grid;
    gap: 14px;
}

.helper-list p,
.checklist p {
    margin: 0;
}

.compact-helper-list {
    gap: 10px;
}

.compact-helper-list p {
    font-size: 0.95rem;
}

.checklist-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.dashboard-overview-page .checklist {
    gap: 0;
}

.dashboard-overview-page .checklist-row {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid rgba(219, 228, 242, 0.7);
}

.dashboard-overview-page .checklist-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.checkmark {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #fff;
}

.dashboard-overview-page .checkmark {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: var(--admin-radius-xs);
}

.checkmark.is-done {
    border-color: transparent;
    background: radial-gradient(circle at center, #fff 22%, transparent 24%), var(--color-primary);
}

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

.stacked-form label,
.dashboard-form label {
    display: grid;
    gap: 8px;
    color: var(--color-ink);
    font-weight: 800;
}

.dashboard-form label > span:first-child {
    font-size: 0.94rem;
}

.stacked-form input,
.dashboard-form input,
.dashboard-form select,
.dashboard-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    border: 1px solid rgba(219, 228, 242, 0.94);
    border-radius: var(--admin-radius-sm);
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-ink);
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.stacked-form input:focus,
.dashboard-form input:focus,
.dashboard-form select:focus,
.dashboard-form textarea:focus {
    outline: 0;
    border-color: rgba(8, 90, 239, 0.32);
    box-shadow: 0 0 0 4px rgba(8, 90, 239, 0.08);
}

.dashboard-form textarea {
    min-height: 138px;
    resize: vertical;
}

.dashboard-form input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    margin: 0;
}

.dashboard-form input[type="color"] {
    min-height: 56px;
    padding: 6px;
}

.checkbox-row {
    align-items: center;
    grid-template-columns: 1fr auto;
}

.checkbox-row input {
    order: 2;
}

.checkbox-row small,
.checkbox-row .errorlist {
    order: 3;
    grid-column: 1 / -1;
}

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

.presentation-toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px;
    min-height: 74px;
    padding: 12px 14px;
    border: 1px solid rgba(213, 223, 218, 0.92);
    border-radius: var(--admin-radius-sm);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.presentation-toggle input[type="checkbox"] {
    margin-top: 2px;
}

.presentation-toggle > span {
    display: grid;
    gap: 3px;
}

.presentation-toggle strong {
    font-size: 0.86rem;
    line-height: 1.2;
}

.presentation-toggle small,
.presentation-toggle .errorlist {
    color: var(--color-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.presentation-toggle .errorlist {
    grid-column: 1 / -1;
}

@media (max-width: 620px) {
    .presentation-toggle-row {
        grid-template-columns: 1fr;
    }
}

.language-card {
    gap: 14px;
    margin-bottom: 18px;
}

.compact-section-intro {
    margin-bottom: 4px;
}

.language-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.language-tab {
    display: grid;
    gap: 2px;
    min-width: 88px;
    padding: 10px 12px;
    border: 1px solid rgba(213, 223, 218, 0.94);
    border-radius: var(--admin-radius-sm);
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-ink);
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.language-tab strong {
    font-size: 0.94rem;
    font-weight: 850;
}

.language-tab small {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.language-tab:hover {
    border-color: rgba(8, 90, 239, 0.2);
    box-shadow: 0 10px 22px rgba(8, 20, 68, 0.06);
    transform: translateY(-1px);
}

.language-tab.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(8, 90, 239, 0.12), rgba(216, 139, 54, 0.12));
    box-shadow: inset 0 0 0 1px rgba(8, 90, 239, 0.18);
}

.language-tab.is-disabled {
    opacity: 0.65;
    box-shadow: none;
    transform: none;
}

.checkbox-group-field > div,
.checkbox-group-field ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkbox-group-field label {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(219, 228, 242, 0.94);
    border-radius: var(--admin-radius-sm);
    background: rgba(255, 255, 255, 0.94);
    font-weight: 700;
}

.checkbox-group-field label input[type="checkbox"] {
    width: 20px;
    min-height: 20px;
    margin: 0;
}

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

.language-picker {
    border: 1px solid rgba(219, 228, 242, 0.94);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.language-picker[open] {
    border-color: rgba(8, 90, 239, 0.18);
}

.language-picker-summary {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}

.language-picker-summary::-webkit-details-marker {
    display: none;
}

.language-picker-summary-text {
    color: var(--color-ink);
    font-size: 0.9rem;
    font-weight: 800;
}

.language-picker-panel {
    padding: 0 14px 14px;
}

.language-picker-panel.checkbox-group-field {
    gap: 10px;
}

.language-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.language-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: var(--admin-radius-xs);
    background: rgba(8, 90, 239, 0.08);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 780;
}

.language-chip.is-muted {
    background: rgba(230, 235, 231, 0.9);
    color: var(--color-muted);
}

.readonly-language-panel {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(219, 228, 242, 0.94);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.readonly-language-copy,
.readonly-language-note {
    margin: 0;
}

.readonly-language-copy {
    color: var(--color-ink);
    font-weight: 780;
}

.stacked-form small,
.dashboard-form small,
.errorlist {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.errorlist {
    color: #a53420;
}

.mobile-record-list {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.compact-page-footer-actions {
    margin-top: 14px;
}

.impact-list {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.impact-list p {
    margin: 0;
}

.builder-outline-card {
    margin-bottom: 18px;
}

.builder-outline,
.builder-outline-children,
.builder-outline-items {
    display: grid;
    gap: 14px;
}

.builder-outline-node,
.builder-outline-item,
.builder-outline-empty {
    padding: 18px;
    border: 1px solid rgba(219, 228, 242, 0.78);
    border-radius: var(--admin-radius-lg);
    background: rgba(250, 251, 249, 0.84);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.builder-outline-node.is-page {
    background: linear-gradient(180deg, rgba(234, 241, 255, 0.26), rgba(255, 255, 255, 0.96));
}

.builder-outline-node.is-group {
    background: rgba(255, 255, 255, 0.88);
    border-left: 4px solid rgba(8, 90, 239, 0.12);
}

.builder-outline-node.is-element {
    background: rgba(246, 249, 255, 0.82);
    border-left: 4px solid rgba(216, 139, 54, 0.15);
}

.builder-outline-node:hover,
.builder-outline-item:hover {
    border-color: rgba(8, 90, 239, 0.18);
    box-shadow: var(--shadow-card);
}

.builder-outline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.builder-outline-header strong,
.builder-outline-item strong {
    display: block;
    margin-top: 4px;
    font-size: 1.02rem;
    line-height: 1.25;
}

.builder-outline-header small,
.builder-outline-item small {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.builder-outline-label {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.builder-outline-empty {
    color: var(--color-muted);
    text-align: center;
}

.builder-outline-item-muted {
    background: rgba(240, 243, 239, 0.9);
}

.builder-outline-item-list,
.record-chip-list,
.inline-action-row,
.summary-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.builder-outline-item-list,
.record-chip-list {
    margin-top: 14px;
}

.builder-outline-item-list span,
.record-chip-list span {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: var(--admin-radius-xs);
    background: rgba(8, 90, 239, 0.08);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 780;
}

.inline-action-row form,
.table-actions form {
    margin: 0;
}

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

.summary-stack p {
    margin: 0;
}

.compact-outline {
    gap: 10px;
}

.mobile-record-card {
    padding: 16px;
    border: 1px solid rgba(219, 228, 242, 0.78);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(8, 20, 68, 0.05);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.mobile-record-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 90, 239, 0.18);
    box-shadow: var(--shadow-card-hover);
}

.empty-record-card {
    background: linear-gradient(180deg, rgba(234, 241, 255, 0.45), rgba(255, 255, 255, 0.96));
}

.record-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.record-heading-copy {
    min-width: 0;
}

.record-heading h3 {
    margin: 0;
    font-size: 1.15rem;
}

.record-heading p,
.mobile-record-card > p,
.record-note {
    margin: 6px 0 0;
    color: var(--color-muted);
}

.record-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.record-meta.is-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 10px;
}

.record-meta div {
    min-width: 0;
}

.record-meta dt {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.record-meta dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    color: var(--color-ink);
    font-weight: 750;
}

.record-hint {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.record-actions {
    display: grid;
    gap: 8px;
}

.record-actions.is-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.record-primary-action {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.record-icon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.record-primary-action svg,
.icon-button svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(219, 228, 242, 0.94);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-muted);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease;
}

.icon-button:hover {
    transform: translateY(-1px);
    border-color: rgba(8, 90, 239, 0.22);
    color: var(--color-primary);
    box-shadow: var(--shadow-card);
}

.icon-button:disabled,
.icon-button[aria-disabled="true"],
.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.46;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.icon-button:disabled:hover,
.icon-button[aria-disabled="true"]:hover,
.button:disabled:hover,
.button[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
}

.icon-button.is-danger {
    border-color: rgba(165, 52, 32, 0.16);
    background: rgba(165, 52, 32, 0.05);
    color: #9a3827;
}

.button-compact {
    min-height: 38px;
    padding: 8px 12px;
}

.dashboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 760px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(219, 228, 242, 0.72);
    text-align: left;
    vertical-align: top;
}

.dashboard-table th {
    color: var(--color-muted);
    font-size: 0.77rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-table td span {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.table-action-cell {
    width: 28%;
}

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

.table-action-cell .table-actions {
    justify-content: flex-start;
}

.project-list-table-card .dashboard-table th:last-child,
.project-list-table-card .table-action-cell {
    text-align: center;
}

.project-list-table-card .table-actions {
    justify-content: center;
}

.danger-link {
    color: #9a3827;
}

.page-content-summary {
    font-size: 0.88rem;
}

.dashboard-project-panel {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(219, 228, 242, 0.88);
    border-radius: var(--admin-radius-md);
    background: rgba(249, 251, 249, 0.92);
    box-shadow: none;
}

.dashboard-project-panel strong {
    font-size: 1rem;
    line-height: 1.2;
}

.dashboard-project-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.dashboard-project-card.is-empty {
    align-items: start;
}

.dashboard-project-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: var(--admin-radius-sm);
    background: linear-gradient(135deg, rgba(8, 90, 239, 0.16), rgba(230, 238, 255, 0.92));
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1px rgba(8, 90, 239, 0.06);
}

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

.dashboard-project-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 850;
}

.dashboard-project-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.dashboard-project-copy > strong,
.dashboard-project-copy > span,
.dashboard-project-copy > small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-project-copy > span {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 650;
}

.dashboard-project-panel small,
.dashboard-project-label,
.project-list-summary,
.project-search-field small,
.project-current-label {
    color: var(--color-muted);
}

.dashboard-project-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.dashboard-project-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.dashboard-project-status-value {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-primary);
}

.dashboard-project-status.is-draft .dashboard-project-status-value {
    color: #8a4d13;
}

.dashboard-project-status-value strong {
    font-size: 0.8rem;
    font-weight: 820;
}

.dashboard-project-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.dashboard-project-status.is-live .dashboard-project-status-dot {
    box-shadow: 0 0 0 0 rgba(8, 90, 239, 0.34);
    animation: dashboard-live-pulse 1.8s ease-out infinite;
}

.dashboard-project-status.is-draft .dashboard-project-status-dot {
    box-shadow: 0 0 0 0 rgba(216, 139, 54, 0.3);
    animation: dashboard-draft-pulse 1.8s ease-out infinite;
}

.project-list-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.project-search-form {
    display: grid;
    gap: 10px;
}

.project-search-field {
    display: grid;
}

.project-search-field input {
    min-height: 48px;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-sm);
    background: #fff;
    color: var(--color-ink);
    font: inherit;
}

.project-search-field input:focus {
    outline: 0;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(8, 90, 239, 0.08);
}

.project-list-summary {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

.project-current-label {
    font-size: 0.84rem;
    font-weight: 780;
}

.project-record-card {
    gap: 14px;
}

.project-record-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.project-record-head h2 {
    margin-bottom: 0;
}

.dashboard-overview-hero {
    margin-bottom: 2px;
}

.qr-side-card {
    align-content: start;
}

.qr-preview-image {
    width: min(100%, 220px);
    padding: 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-lg);
    background: #fff;
}

.qr-preview-image.large {
    width: min(100%, 280px);
}

.qr-preview-image.compact {
    width: min(100%, 180px);
    margin-bottom: 14px;
}

.qr-empty-state {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 24px;
    border: 1px dashed var(--color-line);
    border-radius: var(--admin-radius-lg);
    color: var(--color-muted);
    text-align: center;
}

.qr-manager {
    display: grid;
    gap: 16px;
}

.qr-manager-intro {
    margin: -8px 0 8px;
    color: var(--color-muted);
    font-weight: 650;
}

.qr-manager-toolbar {
    display: grid;
    gap: 10px;
}

.qr-manager-search input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-sm);
    background: #fff;
    color: var(--color-ink);
    font: inherit;
}

.qr-manager-layout {
    display: grid;
    gap: 16px;
    align-items: start;
}

.qr-manager-list-card,
.qr-manager-editor-card,
.qr-info-card {
    border: 1px solid rgba(219, 228, 242, 0.82);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--admin-shadow-soft);
}

.qr-manager-list-card {
    padding: 12px;
}

.qr-manager-editor-card {
    padding: 16px;
}

.qr-info-card {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.qr-info-header h2 {
    margin: 0 0 8px;
    font-size: 1.22rem;
}

.qr-info-image {
    justify-self: center;
    width: min(100%, 190px);
    aspect-ratio: 1;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-md);
    background: #fff;
}

.qr-info-details {
    display: grid;
    gap: 11px;
    margin: 0;
}

.qr-info-details div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.qr-info-details dt,
.qr-info-notes strong {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.qr-info-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--color-ink);
    font-weight: 780;
}

.qr-info-actions {
    display: grid;
    gap: 8px;
}

.qr-info-actions .subtle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    text-decoration: none;
    font: inherit;
    font-weight: 820;
    line-height: 1.2;
}

.qr-info-actions .qr-manager-menu {
    display: grid;
}

.qr-info-notes {
    display: grid;
    gap: 6px;
}

.qr-info-notes p {
    margin: 0;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.qr-manager-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 12px;
}

.qr-manager-list {
    display: grid;
    gap: 6px;
}

.qr-manager-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
}

.qr-manager-row.is-selected {
    background: rgba(8, 90, 239, 0.07);
}

.qr-manager-row-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 10px;
    color: inherit;
    text-decoration: none;
}

.qr-manager-thumb,
.qr-utility-image {
    display: block;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #fff;
}

.qr-manager-thumb {
    width: 48px;
    height: 48px;
    padding: 4px;
}

.qr-manager-row-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.qr-manager-row-copy strong,
.qr-manager-row-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qr-manager-row-copy strong {
    display: flex;
    align-items: center;
    gap: 7px;
}

.qr-manager-main-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: var(--admin-radius-xs);
    background: rgba(8, 90, 239, 0.1);
    color: var(--color-primary);
    font-size: 0.68rem;
    font-weight: 900;
}

.qr-manager-path {
    opacity: 0.78;
}

.qr-manager-row-copy small,
.qr-manager-row time {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.qr-manager-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.qr-manager-tags span {
    padding: 3px 7px;
    border-radius: var(--admin-radius-xs);
    background: rgba(8, 90, 239, 0.1);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 820;
}

.qr-manager-menu {
    position: relative;
}

.qr-manager-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--admin-radius-sm);
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
}

.qr-manager-menu-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 15;
    display: grid;
    min-width: 138px;
    padding: 6px;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(8, 20, 68, 0.14);
}

.qr-manager-menu-popover[hidden] {
    display: none;
}

.qr-manager-menu-popover a,
.qr-manager-menu-popover button {
    display: flex;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--color-ink);
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.qr-manager-menu-popover button {
    color: #b42318;
}

.qr-manager-menu-popover button:disabled,
.qr-manager-editor-actions .is-disabled {
    color: var(--color-muted);
    cursor: not-allowed;
    opacity: 0.55;
}

.qr-manager-editor-form {
    display: grid;
    gap: 13px;
}

.qr-manager-editor-form h2 {
    margin: 0;
    font-size: 1.25rem;
}

.qr-manager-editor-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.qr-modal-close,
.qr-mobile-editor-backdrop {
    display: none;
}

.qr-editor-modal .visual-modal-panel {
    width: min(100%, 720px);
}

.qr-editor-modal .qr-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-sm);
    color: var(--color-ink);
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1;
}

.qr-manager-editor-form label {
    display: grid;
    gap: 6px;
}

.qr-manager-editor-form [hidden] {
    display: none;
}

.qr-manager-editor-form label > span,
.qr-manager-editor-form .visual-label-builder > span,
.qr-manager-editor-form .link-target-picker-field strong {
    font-size: 0.86rem;
    font-weight: 850;
}

.qr-manager-editor-form input,
.qr-manager-editor-form select,
.qr-manager-editor-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: #fff;
    color: var(--color-ink);
    font: inherit;
}

.qr-manager-editor-form small {
    color: var(--color-muted);
    font-size: 0.78rem;
}

.qr-utility-block {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-md);
    background: rgba(246, 249, 255, 0.72);
}

.qr-utility-image {
    width: 112px;
    height: 112px;
    padding: 8px;
}

.qr-utility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qr-utility-actions .subtle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 36px;
    padding: 7px 12px;
    text-decoration: none;
    font: inherit;
    font-weight: 820;
    line-height: 1.2;
}

.qr-permanent-notice {
    grid-column: 1 / -1;
    align-self: start;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(8, 90, 239, 0.12);
    border-radius: 12px;
    background: rgba(8, 90, 239, 0.07);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 760;
}

.qr-manager-editor-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
}

.qr-manager-editor-actions .button,
.qr-manager-editor-actions .subtle-button {
    width: auto;
    min-width: 140px;
}

.qr-danger-button {
    border-color: #b42318;
    background: #b42318;
    color: #fff;
}

.qr-danger-button:hover,
.qr-danger-button:focus-visible {
    background: #9f1f16;
    color: #fff;
}

.qr-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 6px 2px;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.qr-pagination .subtle-button {
    width: auto;
    min-height: 36px;
    padding: 8px 12px;
    text-decoration: none;
}

.qr-pagination .is-disabled {
    opacity: 0.46;
    pointer-events: none;
}

@media (min-width: 760px) {
    .qr-manager-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

@media (min-width: 1080px) {
    .qr-manager-layout {
        grid-template-columns: minmax(420px, 1fr) minmax(280px, 0.42fr);
    }
}

@media (min-width: 900px) {
    .dashboard-grid-halves {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid-thirds {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid-feature {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    }

    .dashboard-overview-hero {
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
        align-items: stretch;
    }
}

@media (min-width: 1100px) {
    .dashboard-shell {
        grid-template-columns: 296px minmax(0, 1fr);
        align-items: start;
        gap: 26px;
        padding: 22px;
    }

    .dashboard-sidebar {
        position: sticky;
        top: 22px;
        z-index: 5;
        display: grid;
        align-content: start;
        gap: 10px;
        min-height: calc(100vh - 44px);
        padding: 22px 20px;
        border: 1px solid rgba(219, 228, 242, 0.82);
        border-radius: var(--admin-radius-lg);
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 18px 46px rgba(8, 20, 68, 0.06);
    }

    .dashboard-nav {
        width: 100%;
    }

    .dashboard-project-switcher,
    .dashboard-nav-link {
        justify-content: flex-start;
        width: 100%;
    }

    .dashboard-main {
        width: 100%;
        margin: 0;
        padding: 0 8px 72px 0;
    }
}

@media (max-width: 759px) {
    .project-template-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-card,
    .flow-intro-card,
    .next-step-panel {
        padding: 18px;
        border-radius: var(--admin-radius-lg);
    }

    .dashboard-topbar h1 {
        font-size: clamp(1.6rem, 8vw, 2.1rem);
    }
}

.qr-hero-card {
    display: grid;
    gap: 24px;
    margin-bottom: 18px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(216, 139, 54, 0.12), transparent 36%),
        linear-gradient(135deg, rgba(8, 90, 239, 0.08), rgba(255, 255, 255, 0.98)),
        #fff;
}

.hotel-settings-layout {
    display: grid;
    gap: 16px;
    width: min(100%, 980px);
    margin: 0 auto;
}

.hotel-settings-hero,
.hotel-settings-card {
    width: min(100%, 920px);
    margin-inline: auto;
}

.hotel-settings-hero {
    gap: 18px;
    margin-bottom: 0;
    padding: 18px;
}

.hotel-settings-card {
    padding: 18px;
    border-radius: var(--admin-radius-lg);
}

.hotel-settings-card .section-intro {
    gap: 6px;
    margin-bottom: 6px;
}

.hotel-settings-card .section-intro p:last-child {
    margin-bottom: 0;
}

.hotel-settings-form {
    gap: 12px;
}

.hotel-settings-section {
    gap: 10px;
    padding-top: 12px;
}

.hotel-settings-section-compact {
    padding: 14px;
    border-radius: var(--admin-radius-lg);
}

.hotel-settings-grid {
    gap: 12px;
}

.project-template-section {
    border: 1px solid rgba(8, 90, 239, 0.14);
    border-radius: var(--admin-radius-lg);
    background: rgba(247, 251, 249, 0.82);
    padding: 14px;
}

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

.project-template-card {
    position: relative;
    display: grid;
    gap: 7px;
    min-height: 158px;
    padding: 14px;
    border: 1px solid rgba(219, 228, 242, 0.96);
    border-radius: var(--admin-radius-md);
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-ink);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.project-template-card:hover,
.project-template-card:focus-within {
    border-color: rgba(8, 90, 239, 0.32);
}

.project-template-card.is-selected,
.project-template-card:has(input:checked) {
    border-color: rgba(8, 90, 239, 0.58);
    background: rgba(241, 250, 247, 0.98);
    box-shadow: inset 0 0 0 1px rgba(8, 90, 239, 0.12);
}

.project-template-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.project-template-card__eyebrow,
.project-template-card__meta {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 760;
    line-height: 1.25;
}

.project-template-card strong {
    color: var(--color-ink);
    font-size: 0.98rem;
    line-height: 1.2;
}

.project-template-card small {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 520;
    line-height: 1.36;
}

.project-template-note {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 620;
    line-height: 1.4;
}

.hotel-settings-form label {
    gap: 6px;
}

.hotel-settings-form label > span:first-child {
    font-size: 0.9rem;
}

.hotel-settings-form input,
.hotel-settings-form select,
.hotel-settings-form textarea {
    min-height: 48px;
    padding: 11px 13px;
    border-radius: var(--admin-radius-sm);
}

.hotel-settings-form textarea {
    min-height: 118px;
}

.hotel-settings-form input[type="color"] {
    min-height: 50px;
    padding: 4px;
}

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

.hotel-range-field > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hotel-range-field strong {
    color: var(--color-primary);
    font-size: 0.92rem;
}

.hotel-range-field input[type="range"] {
    width: 100%;
    accent-color: var(--color-primary);
}

.standard-icon-settings-preview {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.74);
}

.standard-icon-settings-preview > span {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.standard-icon-settings-preview > div {
    display: flex;
    gap: 10px;
}

.standard-icon-settings-preview .standard-icon-badge {
    display: grid;
    width: calc(44px * var(--hotel-standard-icon-scale-factor, 1));
    height: calc(44px * var(--hotel-standard-icon-scale-factor, 1));
    place-items: center;
    border-radius: var(--admin-radius-sm);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, calc(0.45 * var(--hotel-standard-icon-bg-visible-alpha, var(--hotel-standard-icon-bg-opacity-alpha, 1)))),
            rgba(0, 0, 0, calc(0.04 * var(--hotel-standard-icon-bg-visible-alpha, var(--hotel-standard-icon-bg-opacity-alpha, 1))))
        ),
        rgba(var(--hotel-standard-icon-bg-bottom-rgb, 230, 238, 255), var(--hotel-standard-icon-bg-visible-alpha, var(--hotel-standard-icon-bg-opacity-alpha, 1)));
    color: var(--hotel-standard-icon-color, #0648C5);
}

.standard-icon-settings-preview svg {
    width: var(--hotel-standard-icon-glyph-size, 24px);
    height: var(--hotel-standard-icon-glyph-size, 24px);
}

.hotel-settings-form .form-section-header {
    gap: 4px;
}

.hotel-settings-form .form-section-header h3 {
    font-size: 1rem;
}

.hotel-settings-form .form-section-header p,
.hotel-settings-form small {
    font-size: 0.82rem;
}

.hotel-settings-form .language-tabs {
    gap: 8px;
}

.hotel-settings-form .language-tab {
    min-width: 82px;
    padding: 8px 10px;
    border-radius: var(--admin-radius-sm);
}

.hotel-settings-form .language-tab strong {
    font-size: 0.88rem;
}

.hotel-settings-form .language-tab small {
    font-size: 0.72rem;
}

.hotel-settings-form .language-picker,
.hotel-settings-form .readonly-language-panel,
.hotel-settings-form .qr-link-box,
.hotel-settings-form .portal-link-placeholder {
    border-radius: var(--admin-radius-lg);
}

.hotel-settings-form .language-picker-summary,
.hotel-settings-form .readonly-language-panel,
.hotel-settings-form .qr-link-box,
.hotel-settings-form .portal-link-placeholder {
    padding: 12px 14px;
}

.hotel-settings-form .language-picker-panel {
    padding: 0 12px 12px;
}

.hotel-settings-form .checkbox-group-field label {
    padding: 10px 12px;
    border-radius: var(--admin-radius-sm);
}

.hotel-settings-form .language-chip {
    padding: 6px 10px;
    font-size: 0.77rem;
}

.hotel-settings-form .portal-link-warning {
    font-size: 0.84rem;
}

.hotel-settings-actions {
    margin-top: 4px;
}

body.hotel-settings-page {
    background: #f7faff;
}

.settings-page {
    width: min(100%, 860px);
    max-width: 860px;
    margin: 0 auto;
    padding: 8px 0 96px;
}

.settings-header {
    margin-bottom: 24px;
}

.settings-title {
    margin: 0 0 8px;
    color: #081444;
    font-size: 2rem;
    font-weight: 850;
    line-height: 1.15;
}

.settings-subtitle {
    margin: 0;
    color: #5f6f95;
    font-size: 0.95rem;
    line-height: 1.45;
}

.settings-stack {
    display: grid;
    gap: 18px;
}

.settings-card {
    padding: 22px;
    border: 1px solid rgba(8, 90, 239, 0.14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(8, 20, 68, 0.04);
    overflow: visible;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.settings-card-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid #d6e0f2;
    border-radius: 999px;
    color: #5f6f95;
}

.settings-card-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-card-title {
    margin: 0;
    color: #081444;
    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1.2;
}

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

.settings-language-grid {
    grid-template-columns: minmax(170px, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
}

.settings-language-grid .settings-field {
    position: relative;
}

.settings-language-grid select {
    height: 52px;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #d6e0f2;
    border-radius: 10px;
    background: #fff;
    color: #081444;
    font-size: 0.94rem;
    font-weight: 750;
    box-sizing: border-box;
}

.settings-field,
.settings-form .settings-field {
    display: grid;
    gap: 0;
    min-width: 0;
}

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

.settings-label,
.settings-form label > .settings-label:first-child,
.settings-form .language-picker-field > .settings-label:first-child {
    display: block;
    margin: 0 0 7px;
    color: #081444;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.settings-label-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 7px;
}

.settings-label-row .settings-label {
    margin: 0;
}

.settings-info-popover {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.settings-info-popover summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #cfd9ec;
    border-radius: 50%;
    background: #f8fbff;
    color: #506184;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1;
    list-style: none;
}

.settings-info-popover summary::-webkit-details-marker {
    display: none;
}

.settings-info-popover summary:focus-visible {
    outline: 3px solid rgba(8, 90, 239, 0.18);
    outline-offset: 2px;
}

.settings-info-popover-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 70;
    width: min(280px, 72vw);
    padding: 10px 12px;
    border: 1px solid #d6e0f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(8, 20, 68, 0.14);
    color: #4f5f7f;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.45;
    transform: translateX(-50%);
}

.settings-control-with-lock {
    position: relative;
    display: block;
    min-width: 0;
}

.settings-control-with-lock.is-locked select {
    padding-right: 64px;
}

.settings-control-with-lock.is-locked select:disabled {
    border-color: #d7deeb;
    background: #f4f6fa;
    color: #485677;
    cursor: not-allowed;
    opacity: 1;
}

.settings-lock-icon {
    position: absolute;
    top: 50%;
    right: 34px;
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #c58a1e;
    pointer-events: none;
    transform: translateY(-50%);
}

.settings-lock-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.settings-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.settings-form select,
.settings-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 11px 13px;
    border: 1px solid #d6e0f2;
    border-radius: 8px;
    background: #fff;
    color: #081444;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    box-shadow: none;
}

.settings-form textarea {
    min-height: 100px;
    resize: vertical;
}

.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus,
.settings-language-picker:focus-within {
    border-color: rgba(8, 90, 239, 0.48);
    box-shadow: 0 0 0 3px rgba(8, 90, 239, 0.1);
    outline: none;
}

.settings-help {
    margin: 7px 0 0;
    color: #6a789b;
    font-size: 0.82rem;
    line-height: 1.4;
}

.settings-slug-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.settings-public-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 360px;
    color: #085AEF;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
}

.settings-public-link span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-public-link:hover,
.settings-public-link:focus-visible {
    text-decoration: underline;
}

.settings-logo-zone .project-file-picker-field {
    gap: 14px;
    padding: 18px;
    border: 1px dashed #cbd9ef;
    border-radius: 12px;
    background: #fbfdff;
}

.settings-logo-zone .project-file-picker-field-header > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.settings-logo-zone .project-file-picker-field-header span {
    color: #081444;
    font-size: 0.82rem;
    font-weight: 800;
}

.settings-logo-zone .project-file-picker-field-subrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-logo-zone .project-file-picker-field small,
.settings-logo-zone .project-file-picker-disabled-note {
    color: #6a789b;
    font-size: 0.82rem;
}

.settings-logo-zone .project-file-picker-selection {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 70px;
    padding: 0;
    border: 0;
    background: transparent;
}

.settings-logo-zone .project-file-picker-selection-preview {
    width: 70px;
    height: 70px;
    border: 1px solid #e1e9f7;
    border-radius: 10px;
    background: #eef5ff;
}

.settings-logo-zone .project-file-picker-selection-preview span {
    padding: 8px;
    color: #5f6f95;
    font-size: 0.72rem;
    line-height: 1.25;
    text-align: center;
}

.settings-logo-zone .project-file-picker-selection-copy strong {
    color: #081444;
}

.settings-logo-zone .project-file-picker-selection-copy span {
    color: #6a789b;
}

.settings-logo-zone .logo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 74px;
    padding: 16px 20px;
    border: 1px dashed #cbd9ef;
    border-radius: 12px;
    background: #fbfdff;
}

.settings-logo-zone .logo-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-height: 0;
    flex: 0 0 56px;
    overflow: hidden;
    padding: 0;
    border: 1px solid #d8e4f7;
    border-radius: 10px;
    background: #fff;
    color: #607099;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.settings-logo-zone .logo-preview:not(.has-selection) {
    display: none;
}

.settings-logo-zone .logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-meta {
    min-width: 0;
    flex: 1;
}

.logo-meta strong {
    display: block;
    overflow: hidden;
    color: #081444;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo-meta span {
    display: block;
    margin-top: 4px;
    color: #617196;
    font-size: 0.88rem;
    line-height: 1.35;
}

.logo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.logo-actions .button {
    width: auto;
    white-space: nowrap;
}

.secondary-danger {
    color: #b42318;
}

.secondary-danger:hover,
.secondary-danger:focus-visible {
    border-color: rgba(180, 35, 24, 0.26);
    background: rgba(180, 35, 24, 0.06);
    color: #9f1f16;
}

.settings-language-picker,
.settings-readonly-languages {
    position: relative;
    width: 100%;
    min-height: 52px;
    height: 52px;
    border: 1px solid #d6e0f2;
    border-radius: 10px;
    background: #fff;
    overflow: visible;
    box-sizing: border-box;
}

.settings-language-picker summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    width: 100%;
    height: 52px;
    overflow: hidden;
    padding: 0 14px;
    cursor: pointer;
    list-style: none;
    color: #081444;
    font-size: 0.94rem;
    font-weight: 750;
    box-sizing: border-box;
}

.settings-language-picker summary::-webkit-details-marker {
    display: none;
}

.settings-language-picker summary::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-right: 2px solid #6a789b;
    border-bottom: 2px solid #6a789b;
    transform: rotate(45deg) translateY(-2px);
}

.settings-language-picker[open] summary::after {
    transform: rotate(225deg) translateY(-1px);
}

.settings-language-chip-list {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.settings-language-picker summary .settings-language-chip-list,
.settings-readonly-languages .settings-language-chip-list {
    flex-wrap: nowrap;
    overflow: hidden;
}

.settings-language-chip {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 5px 8px;
    border: 1px solid #d6e0f2;
    border-radius: 999px;
    background: #f8fbff;
    color: #081444;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-language-picker summary .settings-language-chip,
.settings-readonly-languages .settings-language-chip {
    max-width: min(140px, 100%);
}

.settings-language-picker summary .language-more-chip,
.settings-readonly-languages .language-more-chip {
    flex: 0 0 auto;
    max-width: none;
    background: #eef4ff;
    color: #085AEF;
}

.settings-language-chip.is-muted {
    color: #6a789b;
}

.settings-language-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 50;
    display: grid;
    gap: 6px;
    max-height: 240px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #cbd9ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(8, 20, 68, 0.14);
}

.settings-language-panel label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 7px;
    color: #081444;
    font-size: 0.86rem;
    font-weight: 650;
}

.settings-language-panel label:hover {
    background: #f5f8fe;
}

.settings-readonly-languages {
    display: flex;
    align-items: center;
    min-height: 52px;
    height: 52px;
    padding: 0 14px;
    box-sizing: border-box;
}

.settings-readonly-languages.is-locked {
    padding-right: 64px;
    border-color: #d7deeb;
    background: #f4f6fa;
    color: #485677;
    cursor: not-allowed;
}

.settings-publishing-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.settings-publishing-card .settings-card-header {
    margin-bottom: 4px;
}

.settings-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #081444;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.settings-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.settings-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-toggle-track {
    position: relative;
    display: block;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #d8e1f0;
    transition: background 200ms ease;
}

.settings-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(8, 20, 68, 0.18);
    transition: transform 200ms ease;
}

.settings-toggle input[type="checkbox"]:checked + .settings-toggle-track {
    background: #085AEF;
}

.settings-toggle input[type="checkbox"]:checked + .settings-toggle-track .settings-toggle-thumb {
    transform: translateX(20px);
}

.settings-toggle input[type="checkbox"]:focus-visible + .settings-toggle-track {
    box-shadow: 0 0 0 3px rgba(8, 90, 239, 0.16);
}

.settings-actions {
    position: static;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding: 0;
    background: transparent;
}

.settings-actions .button {
    width: auto;
}

.settings-form .errorlist {
    display: grid;
    gap: 3px;
    margin: 7px 0 0;
    padding-left: 0;
    list-style: none;
    color: #b42318;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

.qr-hero-copy,
.qr-hero-code {
    display: grid;
    gap: 16px;
}

.qr-link-box {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(219, 228, 242, 0.95);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.78);
}

.qr-link-box span {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.qr-link-box strong {
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.4;
}

.qr-link-box input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-sm);
    background: #fff;
    color: var(--color-ink);
    font: inherit;
}

.portal-link-card strong {
    color: var(--color-ink);
}

.portal-link-warning {
    margin: 0;
    color: #8a4d13;
    font-size: 0.9rem;
    line-height: 1.5;
}

.portal-link-placeholder {
    padding: 16px;
    border: 1px dashed rgba(219, 228, 242, 0.94);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.7);
    color: var(--color-muted);
    font-weight: 700;
}

.portal-link-actions {
    align-items: stretch;
}

.qr-code-frame {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 18px;
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.72);
}

.danger-button {
    background: #a53420;
    color: #fff;
}

.subtle-button {
    border: 1px solid var(--color-line);
    border-radius: var(--admin-radius-sm);
    background: #fff;
    color: var(--color-ink);
}

@media (min-width: 760px) {
    .dashboard-inline-helper {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

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

    .dashboard-grid-thirds {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid-feature {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    }

    .dashboard-overview-hero {
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    }

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

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

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

    .qr-hero-card {
        grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
        align-items: center;
    }

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

    .hotel-settings-hero {
        grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
        align-items: center;
    }

    .project-search-form {
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
    }
}

@media (min-width: 1080px) {
    .dashboard-shell {
        grid-template-columns: 236px minmax(0, 1fr);
    }

    .dashboard-mobile-backdrop,
    .dashboard-mobile-toolbar,
    .dashboard-menu-close {
        display: none !important;
    }

    .dashboard-sidebar {
        position: sticky;
        top: 0;
        min-height: 100vh;
        width: auto;
        padding: 24px 14px;
        border-right: 1px solid rgba(219, 228, 242, 0.9);
        box-shadow: none;
        transform: none;
    }

    .dashboard-nav,
    .logout-form {
        width: 100%;
    }

    .dashboard-project-switcher,
    .dashboard-nav-link,
    .logout-form button {
        justify-content: flex-start;
    }

    .mobile-record-list {
        display: none;
    }
}

@media (max-width: 1079px) {
    .table-card.has-mobile-cards {
        display: none;
    }

    .dashboard-user {
        display: none;
    }
}

@media (max-width: 759px) {
    body.dashboard-page .site-nav {
        position: relative;
    }

    body.dashboard-page .brand {
        position: relative;
        z-index: 2;
    }

    body.dashboard-page .nav-links {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 1;
        margin-left: 0;
        max-width: calc(100% - 132px);
        transform: translate(-50%, -50%);
    }

    body.dashboard-page .nav-admin-actions {
        max-width: 100%;
    }

    body.dashboard-page .dashboard-header-menu-slot {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
    }

    body.dashboard-page .dashboard-mobile-toolbar {
        display: none;
    }

    .dashboard-main {
        padding-top: 18px;
    }

    .dashboard-card,
    .flow-intro-card,
    .table-card,
    .next-step-panel,
    .qr-hero-card {
        padding: 15px;
        border-radius: var(--admin-radius-lg);
    }

    .mini-phone-screen {
        min-height: 356px;
        border-width: 8px;
    }

    .button,
    .subtle-button {
        width: 100%;
    }

    .record-actions.is-compact .record-primary-action,
    .record-icon-actions .icon-button {
        width: auto;
    }

    .heading-actions,
    .action-row {
        width: 100%;
    }

    .record-meta {
        grid-template-columns: 1fr;
    }

    .record-meta.is-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .record-actions.is-compact {
        align-items: stretch;
        flex-direction: column;
    }

    .record-primary-action {
        width: 100%;
        justify-content: center;
    }

    .record-icon-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
    }

    .icon-button {
        width: 100%;
    }

    .dashboard-topbar {
        margin-bottom: 14px;
    }

    .dashboard-topbar h1 {
        font-size: clamp(1.5rem, 8vw, 1.95rem);
    }

    .dashboard-eyebrow {
        margin-bottom: 6px;
    }

    .dashboard-topbar-meta {
        width: 100%;
        justify-items: start;
    }

    .dashboard-mobile-toolbar {
        align-items: flex-start;
    }

    .hotel-settings-layout {
        gap: 14px;
    }

    .hotel-settings-card,
    .hotel-settings-hero {
        width: 100%;
        padding: 15px;
    }

    body.project-preview-page .dashboard-topbar {
        display: none;
    }

    body.project-preview-page .dashboard-shell,
    body.project-preview-page .dashboard-main,
    body.project-preview-page .project-preview-frame,
    body.project-preview-page .project-preview-stage {
        display: block;
        min-height: calc(100vh - var(--site-header-height));
        width: 100%;
        margin: 0;
        padding: 0;
        background: #fff;
        overflow: hidden;
    }

    body.project-preview-page,
    body.project-preview-page .dashboard-shell,
    body.project-preview-page .dashboard-main {
        overflow: hidden;
    }

    body.project-preview-page .project-preview-left-column {
        display: none;
    }

    body.project-preview-page .project-preview-heading {
        display: none;
    }

    body.project-preview-page .project-preview-phone-viewport {
        width: 100%;
        height: calc(100vh - var(--site-header-height));
        min-height: calc(100vh - var(--site-header-height));
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .qr-manager-row-main {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 9px;
    }

    .qr-manager-row time {
        font-size: 0.72rem;
    }

    .qr-manager-row.is-selected {
        background: transparent;
    }

    .qr-info-card {
        display: none;
    }

    .qr-utility-block {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .qr-utility-image {
        width: 92px;
        height: 92px;
    }

    .qr-permanent-notice {
        grid-column: 1 / -1;
        margin: 0;
    }

    .qr-manager-editor-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .qr-manager-editor-actions .button,
    .qr-manager-editor-actions .subtle-button {
        width: 100%;
    }
}

.project-preview-page .dashboard-topbar {
    display: none;
}

.theme-editor-frame {
    width: min(100%, 1180px);
}

.theme-editor-page .dashboard-main {
    width: min(100%, 1220px);
    padding-inline: 10px;
}

@media (min-width: 1080px) {
    .theme-editor-page .dashboard-main {
        width: 100%;
    }

    .theme-editor-page .dashboard-main-frame {
        width: min(100%, 1180px);
    }
}

.theme-workspace {
    display: grid;
    gap: 14px;
}

.theme-editor-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: min(100%, calc(720px + 365px + 24px));
    margin: 0 auto;
}

.theme-editor-heading h1,
.theme-preview-header h2,
.theme-panel-heading h2 {
    margin: 0;
    color: var(--color-ink);
}

.theme-editor-heading h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.35rem);
    line-height: 1.02;
}

.theme-editor-heading p,
.theme-preview-header p,
.theme-panel-heading p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.theme-editor-heading p {
    margin-top: 6px;
    max-width: 980px;
    font-size: 1rem;
    line-height: 1.5;
}

.theme-editor-stage {
    display: grid;
    grid-template-columns: minmax(420px, 720px) minmax(350px, 385px);
    align-items: start;
    justify-content: center;
    gap: clamp(14px, 1.5vw, 24px);
    width: min(100%, calc(720px + 385px + 24px));
    margin: 0 auto;
}

.theme-editor-controls,
.theme-editor-preview {
    min-width: 0;
}

.theme-editor-controls {
    display: grid;
    gap: 0;
}

.theme-editor-panel {
    border: 1px solid rgba(219, 228, 242, 0.82);
    border-radius: var(--admin-radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(8, 20, 68, 0.06);
}

.theme-editor-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.theme-editor-preset-panel {
    padding: 10px 12px;
    border-bottom: 0;
    border-radius: var(--admin-radius-lg) var(--admin-radius-lg) 0 0;
    box-shadow: 0 10px 24px rgba(8, 20, 68, 0.04);
}

.theme-editor-preset-panel + .theme-settings-panel {
    border-radius: 0 0 var(--admin-radius-lg) var(--admin-radius-lg);
}

.theme-settings-panel {
    padding-top: 0;
    overflow: visible;
}

.theme-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.theme-panel-heading > div:first-child {
    min-width: 0;
}

.theme-panel-heading h2 {
    font-size: 1rem;
    line-height: 1.12;
    font-weight: 760;
}

.theme-panel-heading select {
    width: 100%;
    min-height: 36px;
    padding-block: 6px;
}

.theme-preset-actions {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    width: min(100%, 346px);
    flex: 0 0 min(100%, 346px);
}

.theme-preset-actions .button {
    min-width: 96px;
    white-space: nowrap;
}

.theme-revert-button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--color-ink);
}

.theme-revert-button svg {
    width: 22px;
    height: 22px;
    transform: translateY(-1px);
}

.theme-editor-preset-panel .theme-panel-heading {
    align-items: center;
}

.theme-editor-preset-panel .theme-panel-heading > div:first-child {
    max-width: 260px;
}

.theme-editor-preset-panel .theme-panel-heading p {
    font-size: 0.86rem;
    line-height: 1.45;
}

.theme-editor-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0 -14px;
    padding: 8px 6px 6px;
    overflow: hidden;
    border-bottom: 0;
    background: transparent;
}

.theme-editor-tabs::-webkit-scrollbar {
    display: none;
}

.theme-editor-tab,
.theme-segment {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-muted);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 780;
    cursor: pointer;
}

.theme-editor-tab {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 56px;
    padding: 0 2px 8px;
    white-space: nowrap;
}

.theme-editor-tab + .theme-editor-tab {
    border-left: 0;
}

.theme-editor-tab svg {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.theme-editor-tab span {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.theme-editor-tab.is-active,
.theme-segment.is-active {
    background: transparent;
    color: var(--color-primary);
}

.theme-editor-tab.is-active::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--color-primary);
}

.theme-control-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    align-items: start;
}

.theme-control-full {
    grid-column: 1 / -1;
}

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

.theme-tab-panel[data-theme-panel="top-card"] .theme-control-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 8px 12px;
}

.theme-tab-panel[data-theme-panel="top-card"] .theme-field,
.theme-tab-panel[data-theme-panel="top-card"] .theme-toggle-field {
    min-height: 0;
}

.theme-field,
.theme-toggle-field {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    min-height: 0;
}

.theme-field > span,
.theme-toggle-field strong {
    color: var(--color-ink);
    font-size: 0.88rem;
    font-weight: 760;
    line-height: 1.2;
}

.theme-field small,
.theme-toggle-field small {
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 520;
    line-height: 1.32;
}

.theme-field small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.theme-field input:not([type="checkbox"]):not([type="range"]):not([type="color"]),
.theme-field select,
.theme-field textarea,
.theme-panel-heading select {
    width: 100%;
    min-height: 36px;
    height: 36px;
    padding: 6px 13px 8px;
    border: 1px solid rgba(209, 219, 236, 0.9);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-ink);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 520;
    line-height: 20px;
}

.theme-field select,
.theme-panel-heading select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23081444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: right 12px center;
}

body.dashboard-page .theme-workspace .button {
    min-height: 36px;
    height: 36px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 20px;
}

.theme-color-control {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.theme-color-control input[type="color"] {
    width: 36px;
    height: 36px;
    aspect-ratio: 1;
    min-height: 36px;
    padding: 0;
    border: 1px solid rgba(127, 143, 169, 0.72);
    border-radius: var(--admin-radius-sm);
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.theme-color-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.theme-color-control input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: calc(var(--admin-radius-sm) - 1px);
}

.theme-color-control input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: calc(var(--admin-radius-sm) - 1px);
}

.theme-color-control .theme-color-text {
    min-height: 36px;
    height: 36px;
    padding: 6px 13px 8px;
    border: 1px solid rgba(209, 219, 236, 0.9);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-ink);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 520;
    line-height: 20px;
}

.theme-range-field > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.theme-range-field strong {
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 760;
}

.theme-range-field input[type="range"] {
    display: block;
    width: 100%;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
}

.theme-select-field em {
    display: block;
    min-height: 0;
    padding: 2px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-ink);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 760;
}

.theme-font-search {
    min-height: 36px !important;
    height: 36px;
    padding-top: 6px !important;
    padding-bottom: 8px !important;
    padding-inline: 12px;
    font-size: 0.82rem !important;
}

.theme-font-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.theme-font-picker {
    position: relative;
    min-width: 0;
}

.theme-font-picker-button,
.theme-font-picker-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.9fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    border: 1px solid rgba(209, 219, 236, 0.9);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-ink);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 520;
    line-height: 20px;
    text-align: left;
    cursor: pointer;
}

.theme-font-picker-button {
    padding: 6px 13px 8px;
}

.theme-font-picker-option {
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
}

.theme-font-picker-button:hover,
.theme-font-picker-button:focus-visible,
.theme-font-picker-option:hover,
.theme-font-picker-option:focus-visible,
.theme-font-picker-option.is-selected {
    background: rgba(8, 90, 239, 0.07);
    outline: 0;
}

.theme-font-picker-option.is-selected {
    color: var(--color-primary);
}

.theme-font-picker-button span,
.theme-font-picker-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-font-picker-option-name,
[data-font-picker-selected-name] {
    font-weight: 520;
}

.theme-font-picker-option-preview,
[data-font-picker-selected-preview] {
    justify-self: end;
    max-width: 100%;
    font-size: 0.88rem;
    font-weight: 500;
}

.theme-font-picker-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    gap: 2px;
    max-height: 260px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid rgba(209, 219, 236, 0.94);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(8, 20, 68, 0.12);
}

.theme-font-picker-group {
    display: grid;
    gap: 2px;
}

.theme-font-picker-group + .theme-font-picker-group {
    margin-top: 6px;
}

.theme-font-picker-group-heading {
    padding: 4px 8px 3px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 16px;
    text-transform: uppercase;
}

.theme-font-picker-menu[hidden] {
    display: none;
}

.theme-segmented {
    display: flex;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
}

.theme-native-segment-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.theme-segment {
    flex: 1 1 0;
    min-height: 36px;
    height: 36px;
    padding: 6px 10px 8px;
    line-height: 20px;
}

.theme-segment + .theme-segment {
    border-left: 0;
}

.theme-segment.is-active {
    background: transparent;
    box-shadow: inset 0 -3px 0 var(--color-primary);
}

.theme-toggle-field {
    cursor: pointer;
}

.theme-toggle-control {
    display: flex;
    align-items: center;
    min-height: 36px;
}

.theme-toggle-control input[type="checkbox"] {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    min-width: 0;
    min-height: 0 !important;
    margin: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.theme-toggle-track {
    position: relative;
    display: inline-flex;
    width: 32px;
    height: 18px;
    flex: 0 0 32px;
    border-radius: 999px;
    background: #c7d4e8;
    box-shadow: inset 0 0 0 1px rgba(8, 20, 68, 0.08);
    transition: background 160ms ease, box-shadow 160ms ease;
}

.theme-toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(8, 20, 68, 0.22);
    transition: transform 160ms ease;
}

.theme-toggle-control input[type="checkbox"]:checked + .theme-toggle-track {
    background: #085AEF;
    box-shadow: inset 0 0 0 1px rgba(8, 90, 239, 0.16);
}

.theme-toggle-control input[type="checkbox"]:checked + .theme-toggle-track::after {
    transform: translateX(14px);
}

.theme-toggle-control input[type="checkbox"]:focus-visible + .theme-toggle-track {
    box-shadow: 0 0 0 4px rgba(8, 90, 239, 0.12);
}

.theme-compact-picker .project-file-picker-field {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.theme-compact-picker .project-file-picker-field-header {
    display: contents;
}

.theme-compact-picker .project-file-picker-field-header > div {
    display: contents;
}

.theme-compact-picker .project-file-picker-field-header span {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    color: var(--color-ink);
    font-size: 0.88rem;
    font-weight: 760;
    line-height: 1.2;
}

.theme-compact-picker .project-file-picker-field-header small {
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 520;
    line-height: 1.32;
}

.theme-compact-picker .project-file-picker-field-subrow {
    display: contents;
}

.theme-compact-picker .project-file-picker-field-subrow small {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0;
}

.theme-compact-picker .project-file-picker-field-subrow .action-row {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.theme-compact-picker .project-file-picker-field-header .action-row {
    justify-self: end;
}

.theme-compact-picker .project-file-picker-trigger,
.theme-compact-picker .project-file-picker-selection-actions .button {
    width: auto;
    min-height: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 760;
    line-height: 20px;
    justify-content: center;
    white-space: nowrap;
}

.theme-compact-picker .project-file-picker-selection {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 0;
    padding: 8px;
    border: 1px solid #dbe4f2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(8, 20, 68, 0.05);
}

.theme-compact-picker .project-file-picker-selection.has-selection {
    grid-template-columns: 112px minmax(0, 1fr) 34px;
}

.theme-compact-picker .project-file-picker-selection-preview {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    padding: 0;
    background: #f5f8ff;
}

.theme-compact-picker .project-file-picker-selection-preview img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center center;
}

.theme-compact-picker .project-file-picker-selection-preview img[hidden] {
    display: none;
}

.theme-compact-picker .project-file-picker-selection-preview span {
    overflow: hidden;
    width: 1px;
    height: 1px;
    white-space: nowrap;
}

.theme-compact-picker .project-file-picker-selection:not(.has-selection) .project-file-picker-selection-preview::before {
    content: "\00d7";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(209, 219, 236, 0.95);
    border-radius: inherit;
    color: #8a99a4;
    font-size: 1.45rem;
    font-weight: 520;
    line-height: 1;
    box-sizing: border-box;
}

.theme-compact-picker .project-file-picker-selection-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.theme-compact-picker .project-file-picker-selection-copy strong,
.theme-compact-picker .project-file-picker-selection-copy span {
    grid-column: 1;
    overflow: hidden;
    color: var(--color-ink);
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-compact-picker .project-file-picker-selection-copy strong {
    font-weight: 760;
    line-height: 1.2;
}

.theme-compact-picker .project-file-picker-selection-copy span {
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 520;
    line-height: 1.32;
}

.theme-compact-picker .project-file-picker-selection-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.theme-compact-picker .project-file-picker-selection-actions .button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(8, 90, 239, 0.045), rgba(8, 90, 239, 0.045)),
        rgba(248, 251, 255, 0.62);
    overflow: hidden;
    color: transparent;
    font-size: 0;
}

.theme-compact-picker .project-file-picker-selection-actions .button::before {
    content: "\00d7";
    color: #b13528;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1;
}

.theme-compact-picker .project-file-picker-selection.feed-image-picker-chip {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid #dbe4f2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(8, 20, 68, 0.05);
}

.theme-compact-picker .project-file-picker-selection.feed-image-picker-chip:not(.has-selection) {
    grid-template-columns: 112px minmax(0, 1fr);
}

.theme-compact-picker .feed-image-picker-thumb {
    position: relative;
    display: grid;
    gap: 8px;
}

.theme-compact-picker .feed-image-picker-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    object-fit: cover;
    object-position: center center;
}

.theme-compact-picker .feed-image-picker-order {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(8, 20, 68, 0.82);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
}

.theme-compact-picker .project-file-picker-selection:not(.has-selection) .feed-image-picker-order {
    display: none;
}

.theme-compact-picker .feed-image-picker-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.theme-compact-picker .feed-image-picker-meta strong {
    min-width: 0;
    overflow: hidden;
    color: #081444;
    font-size: 0.82rem;
    font-weight: 760;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-compact-picker .feed-image-picker-meta span {
    min-width: 0;
    overflow: hidden;
    color: #71828a;
    font-size: 0.76rem;
    font-weight: 620;
    line-height: 1.32;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-compact-picker .feed-image-picker-chip > button[data-project-file-picker-clear] {
    grid-column: 3;
    align-self: center;
    justify-self: center;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(8, 90, 239, 0.045), rgba(8, 90, 239, 0.045)),
        rgba(248, 251, 255, 0.62);
    color: #b13528;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.theme-compact-picker .feed-image-picker-chip > button[data-project-file-picker-clear][hidden] {
    display: none;
}

.theme-icon-preview {
    gap: 5px;
    align-self: start;
    grid-template-rows: auto calc(36px + 0.98rem);
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.theme-icon-preview > span {
    color: var(--color-ink);
    font-size: 0.88rem;
    font-weight: 760;
    line-height: 1.2;
}

.theme-icon-preview > div {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: calc(36px + 0.98rem);
    align-self: start;
}

.theme-icon-preview::after {
    content: none;
}

.theme-icon-preview .standard-icon-badge {
    width: calc(36px + 0.98rem);
    height: calc(36px + 0.98rem);
    border-radius: 11px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, calc(0.45 * var(--hotel-standard-icon-bg-visible-alpha, var(--hotel-standard-icon-bg-opacity-alpha, 1)))),
            rgba(0, 0, 0, calc(0.04 * var(--hotel-standard-icon-bg-visible-alpha, var(--hotel-standard-icon-bg-opacity-alpha, 1))))
        ),
        linear-gradient(
            180deg,
            rgba(var(--hotel-standard-icon-bg-bottom-rgb, 230, 238, 255), var(--hotel-standard-icon-bg-visible-alpha, var(--hotel-standard-icon-bg-opacity-alpha, 1))),
            rgba(var(--hotel-standard-icon-bg-bottom-rgb, 230, 238, 255), var(--hotel-standard-icon-bg-visible-alpha, var(--hotel-standard-icon-bg-opacity-alpha, 1)))
        ),
        #e2e5ea !important;
}

.theme-icon-preview .standard-icon-badge svg {
    width: var(--hotel-standard-icon-glyph-size, 26px);
    height: var(--hotel-standard-icon-glyph-size, 26px);
}

.theme-editor-preview {
    position: sticky;
    top: calc(var(--site-header-height, 72px) + 16px);
    display: grid;
    justify-items: center;
    gap: 0;
}

.theme-preview-header {
    display: none;
    justify-content: space-between;
    width: min(100%, clamp(340px, 30vw, 380px));
}

.theme-preview-phone {
    --theme-phone-chrome-x: 18px;
    --theme-phone-screen-width: clamp(330px, 29vw, 367px);
    --theme-phone-width: calc(var(--theme-phone-screen-width) + var(--theme-phone-chrome-x));
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: var(--theme-phone-width);
    height: clamp(600px, calc(100dvh - var(--site-header-height, 72px) - 126px), 740px);
    overflow: visible;
    padding: 9px 5px 10px;
    border: 5px solid #050807;
    border-radius: 35px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 10%, transparent 90%, rgba(255, 255, 255, 0.12)),
        linear-gradient(180deg, #202927, #060908 18%, #050807 82%, #18211f);
    box-shadow:
        0 22px 46px rgba(8, 20, 68, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.14) inset,
        0 0 0 1px rgba(3, 7, 6, 0.86);
}

.theme-preview-phone::after {
    content: "";
    position: absolute;
    top: 76px;
    left: -8px;
    z-index: -1;
    width: 6px;
    height: 24px;
    border-radius: 5px 0 0 5px;
    background: linear-gradient(90deg, #050807 0 58%, #27312e 100%);
    box-shadow:
        0 48px 0 #050807;
}

.theme-preview-phone iframe {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 26px;
    clip-path: inset(0 round 26px);
    background: #050807;
    box-shadow: 0 0 0 1px #050807;
}

.theme-tab-panel[hidden] {
    display: none !important;
}

.theme-tab-panel {
    display: grid;
    gap: 12px;
}

@media (max-width: 980px) {
    .theme-editor-stage {
        grid-template-columns: 1fr;
    }

    .theme-editor-preview {
        position: static;
    }
}

@media (max-width: 680px) {
    .theme-editor-heading,
    .theme-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .theme-editor-preset-panel .theme-panel-heading {
        align-items: stretch;
        text-align: left;
    }

    .theme-settings-panel .theme-panel-heading h2 {
        display: block;
    }

    .theme-preset-actions {
        grid-template-columns: minmax(0, 1fr) auto auto;
        width: 100%;
        flex-basis: auto;
    }

    .theme-preset-actions .button {
        width: auto;
    }

    .theme-control-grid {
        grid-template-columns: 1fr;
    }

    .theme-compact-picker .project-file-picker-selection {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .theme-compact-picker .project-file-picker-selection.has-selection {
        grid-template-columns: 88px minmax(0, 1fr) 34px;
    }

    .theme-compact-picker .project-file-picker-selection-preview {
        height: auto;
    }

    .theme-compact-picker .project-file-picker-field-header .action-row {
        justify-self: end;
        width: auto;
        margin-top: 0;
    }

    .theme-tab-panel[data-theme-panel="top-card"] .theme-control-stack {
        grid-template-columns: 1fr;
    }

    .theme-preview-phone {
        width: min(100%, 380px);
        height: 640px;
    }

    .theme-editor-tabs {
        grid-template-columns: repeat(6, minmax(42px, 1fr));
    }

    .theme-editor-tab {
        min-height: 58px;
        padding-inline: 4px;
    }

    .theme-editor-tab svg {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .theme-editor-tab span {
        display: none;
    }
}

@media (max-width: 720px) {
    .settings-page {
        padding: 6px 0 88px;
    }

    .settings-title {
        font-size: 1.75rem;
    }

    .settings-card {
        padding: 18px;
    }

    .settings-grid,
    .settings-language-grid,
    .settings-slug-row {
        grid-template-columns: 1fr;
    }

    .settings-public-link {
        max-width: 100%;
    }

    .settings-logo-zone .project-file-picker-field-header > div,
    .settings-logo-zone .project-file-picker-field-subrow,
    .settings-publishing-card {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-logo-zone .logo-row {
        align-items: flex-start;
    }

    .logo-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-logo-zone .project-file-picker-field-subrow .action-row,
    .settings-logo-zone .project-file-picker-trigger,
    .settings-logo-zone .project-file-picker-selection-actions .button,
    .logo-actions .button {
        width: 100%;
    }

    .settings-toggle-row {
        justify-content: space-between;
        width: 100%;
    }

    .settings-actions {
        flex-direction: column-reverse;
    }

    .settings-actions .button {
        width: 100%;
    }
}

body.dashboard-page .site-header {
    z-index: 50;
}

body.dashboard-page .dashboard-shell {
    min-height: calc(100vh - var(--site-header-height));
}

body.dashboard-page .dashboard-mobile-backdrop {
    top: var(--site-header-height);
}

body.dashboard-page .dashboard-sidebar {
    inset: var(--site-header-height) auto 0 0;
    height: calc(100vh - var(--site-header-height));
}

@media (min-width: 1080px) {
    body.dashboard-page .dashboard-shell {
        min-height: auto;
    }

    body.dashboard-page .dashboard-sidebar {
        inset: auto;
        height: auto;
        top: calc(var(--site-header-height) + 18px);
        min-height: calc(100vh - var(--site-header-height) - 36px);
    }
}

.project-team-page .dashboard-main-frame {
    display: grid;
    gap: 20px;
}

.project-team-page .team-page-heading {
    margin-bottom: 4px;
}

.project-team-page .team-page-heading h1,
.project-team-page .team-page-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.team-invite-card,
.team-section-card,
.team-invite-alert {
    display: grid;
    gap: 18px;
    border-color: rgba(209, 219, 236, 0.92);
    background: rgba(255, 255, 255, 0.96);
}

.team-invite-card {
    padding: 28px;
}

.team-invite-alert {
    padding: 18px 20px;
}

.team-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 18px;
    background: rgba(8, 90, 239, 0.09);
    color: var(--color-primary);
}

.team-section-icon svg {
    width: 24px;
    height: 24px;
}

.team-section-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.team-section-copy h2,
.team-title-row h2 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.team-section-copy p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.team-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.team-help {
    position: relative;
    display: inline-flex;
}

.team-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(184, 198, 220, 0.88);
    border-radius: 999px;
    background: rgba(246, 249, 255, 0.96);
    color: var(--color-primary);
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.team-help-trigger:hover,
.team-help-trigger:focus-visible,
.team-help.is-open .team-help-trigger {
    border-color: rgba(8, 90, 239, 0.34);
    background: rgba(8, 90, 239, 0.1);
}

.team-help-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 10;
    width: min(330px, calc(100vw - 42px));
    padding: 12px 14px;
    border: 1px solid rgba(202, 214, 233, 0.94);
    border-radius: var(--admin-radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--admin-shadow-menu);
    color: var(--color-ink);
    font-size: 0.84rem;
    line-height: 1.45;
    transform: translateX(-50%);
}

.team-help-popover::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(202, 214, 233, 0.94);
    border-left: 1px solid rgba(202, 214, 233, 0.94);
    background: rgba(255, 255, 255, 0.98);
    transform: translateX(-50%) rotate(45deg);
}

.team-invite-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 22px;
    align-items: start;
    margin-top: 10px;
}

.team-email-field {
    position: relative;
    display: grid;
    align-items: center;
    margin: 0;
}

.team-email-field input {
    width: 100%;
    min-height: 56px;
    padding-left: 54px;
    border: 1px solid rgba(202, 214, 233, 0.94);
    border-radius: var(--admin-radius-md);
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-ink);
    font-size: 0.98rem;
}

.team-email-field input:focus {
    border-color: rgba(8, 90, 239, 0.45);
    outline: 3px solid rgba(8, 90, 239, 0.12);
}

.team-email-icon {
    position: absolute;
    left: 20px;
    z-index: 1;
    display: inline-flex;
    color: rgba(73, 91, 125, 0.78);
}

.team-email-icon svg,
.team-button-icon svg {
    width: 22px;
    height: 22px;
}

.team-send-button {
    min-width: 178px;
    min-height: 56px;
    justify-content: center;
    gap: 10px;
}

.team-button-icon {
    display: inline-flex;
}

.team-table-header {
    padding: 26px 26px 4px;
}

.team-section-card {
    overflow-x: auto;
}

.team-table {
    min-width: 820px;
}

.team-table th,
.team-table td {
    padding: 16px 26px;
    vertical-align: middle;
}

.team-table th {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.team-table td strong {
    overflow-wrap: anywhere;
}

.team-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: max-content;
    max-width: 100%;
    min-width: 70px;
    min-height: 30px;
    margin: 0;
    padding: 6px 12px;
    border-radius: var(--admin-radius-xs);
    background: rgba(8, 90, 239, 0.1);
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.team-members-table .team-col-member {
    width: 38%;
}

.team-members-table .team-col-role {
    width: 20%;
}

.team-members-table .team-col-joined {
    width: 23%;
}

.team-members-table .team-col-actions {
    width: 19%;
}

.team-invitations-table {
    min-width: 940px;
    table-layout: fixed;
}

.team-invitations-table .team-col-email {
    width: 22%;
}

.team-invitations-table .team-col-invite-role {
    width: 11%;
}

.team-invitations-table .team-col-expires {
    width: 14%;
}

.team-invitations-table .team-col-status {
    width: 14%;
}

.team-invitations-table .team-col-link {
    width: 28%;
}

.team-invitations-table .team-col-invite-actions {
    width: 11%;
}

.team-invitations-table th,
.team-invitations-table td {
    padding-right: 18px;
    padding-left: 18px;
}

.team-link-field input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 42px;
    padding-right: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(202, 214, 233, 0.94);
    border-radius: var(--admin-radius-sm);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-ink);
    font-size: 0.86rem;
    white-space: nowrap;
}

.team-link-field.is-table {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.team-copy-button {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: var(--admin-radius-xs);
    background: transparent;
    color: rgba(73, 91, 125, 0.78);
    cursor: pointer;
    transform: translateY(-50%);
}

.team-copy-button:hover,
.team-copy-button:focus-visible,
.team-copy-button.is-copied {
    background: rgba(8, 90, 239, 0.1);
    color: var(--color-primary);
}

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

.team-inline-form {
    display: inline-flex;
    margin: 0;
}

.team-muted-action {
    color: var(--color-muted);
    font-weight: 700;
}

.team-section-card .table-action-cell {
    width: auto;
}

.team-section-card .table-actions {
    display: grid;
    justify-items: start;
    gap: 8px;
}

.team-section-card .button-compact {
    min-width: 86px;
    justify-content: center;
}

.team-section-card .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    margin: 0;
    padding: 5px 10px;
    background: rgba(8, 90, 239, 0.1);
    color: var(--color-primary);
}

.team-section-card .status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
}

.project-invitation-panel .action-row,
.project-invitation-panel .stacked-form {
    align-items: stretch;
}

@media (max-width: 1079px) {
    .project-team-page .table-card.has-mobile-cards {
        display: grid;
    }
}

@media (max-width: 760px) {
    .team-invite-card {
        padding: 20px;
    }

    .team-section-header {
        align-items: flex-start;
    }

    .team-section-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 15px;
    }

    .team-help-popover {
        left: auto;
        right: -8px;
        transform: none;
    }

    .team-help-popover::before {
        left: auto;
        right: 13px;
        transform: rotate(45deg);
    }

    .team-invite-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .team-invite-form .button {
        width: 100%;
    }

    .team-table {
        min-width: 720px;
    }

    .team-invitations-table {
        min-width: 900px;
    }
}
