@font-face {
    font-family: 'Bryson';
    src: url('/assets/fonts/Bryson-Regular.otf') format('opentype');
    font-display: block;
}

@font-face {
    font-family: 'Anton';
    src: url('/assets/fonts/Anton-Regular.ttf') format('truetype');
    font-display: block;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Regular.otf') format('opentype');
    font-display: block;
}

:root {
    --brand-navy: #272b58;
    --brand-orange: #ea8000;
    --app-bg: #f4f5fb;
    --text-dark: #1f2438;
    --text-soft: #5e647f;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-soft: 0 12px 30px rgba(22, 27, 60, 0.2);
    --shadow-card: 0 14px 28px rgba(39, 43, 88, 0.1);
    --font-title: 'Bryson', 'Anton', 'Arial Black', sans-serif;
    --font-subtitle: 'Anton', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --widget-stack-gap: 11px;
    --widget-pill-height: 84px;
    --widget-pill-radius: 999px;
    --surface-inline-offset: 0px;
    --bottom-row-offset: var(--widget-stack-gap);
    --bottom-row-height: var(--widget-pill-height);
    --bottom-row-scroll-gap: calc(var(--bottom-row-height) * 0.28125);
    --top-advert-mid: calc(var(--widget-pill-height) / 2);
    --top-row-mid-clip: calc(var(--widget-pill-height) / 2);
    --bottom-row-mid-clip: calc(var(--bottom-row-offset) + (var(--bottom-row-height) / 2));
    --widget-icon-inset: calc(var(--widget-pill-height) * 0.15);
    --widget-icon-size: calc(var(--widget-pill-height) * 0.70);
    --bottom-icon-size: calc(var(--widget-pill-height) - (var(--widget-stack-gap) * 2));
    --view-switch-speed-percent: 100;
    --view-switch-speed-scale: calc(var(--view-switch-speed-percent) / 100);
    --view-switch-phase-duration: calc(840ms * var(--view-switch-speed-scale));
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--app-bg);
}

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

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-wrap {
    width: min(1120px, 94vw);
    margin: 0 auto;
}

.btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    box-shadow: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--brand-orange);
    color: #fff;
    border: 1px solid rgba(39, 43, 88, 0.12);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: rgba(255, 255, 255, 0.55);
    color: var(--brand-navy);
    border-color: rgba(39, 43, 88, 0.2);
}

.btn-secondary {
    background: #eff1f7;
    color: var(--brand-navy);
    border: 1px solid rgba(39, 43, 88, 0.1);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.55);
    color: var(--brand-navy);
    border-color: rgba(39, 43, 88, 0.2);
}

.btn-danger {
    background: #b6362e;
    color: #fff;
    border: 1px solid rgba(39, 43, 88, 0.12);
}

.btn-danger:hover,
.btn-danger:focus-visible {
    background: rgba(255, 255, 255, 0.55);
    color: var(--brand-navy);
    border-color: rgba(39, 43, 88, 0.2);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
}

.tag-ok {
    color: #1c6c4a;
    background: #d7f5e9;
}

.tag-off {
    color: #843e1c;
    background: #ffe2d4;
}

.tag-preview {
    color: #6c32a9;
    background: #f0e2ff;
}

.flash {
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 14px;
    font-size: 14px;
}

.flash-error {
    background: #ffe2df;
    color: #74271f;
}

.flash-success {
    background: #daf6ea;
    color: #17553c;
}

.field,
.field-row {
    margin-bottom: 14px;
}

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 600;
}

.input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfd4e8;
    border-radius: 12px;
    background: #fff;
    padding: 11px 12px;
    color: var(--text-dark);
}

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

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

/* Login */
.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    background: var(--brand-navy);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
}

.login-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
}

.login-bg-video,
.login-bg-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    border: 0;
    pointer-events: none;
}

.utility-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8;
    backdrop-filter: none;
    background: transparent;
    border-bottom: 0;
}

.utility-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
}

.utility-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
}

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

.utility-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.utility-link {
    display: grid;
    place-items: center;
    border-radius: 999px;
    width: 38px;
    height: 38px;
    color: #fff;
    background: transparent;
    border: 0;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.utility-link:hover,
.utility-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.login-page .utility-link:hover,
.login-page .utility-link:focus-visible {
    background: transparent;
}

.login-page .utility-link:hover .utility-link-icon,
.login-page .utility-link:focus-visible .utility-link-icon {
    filter: brightness(0) saturate(100%) invert(100%);
}

.utility-link-icon {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.utility-link span {
    display: none;
}

.login-shell {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: grid;
    place-items: center;
    padding: 25px 18px 80px;
    overflow: hidden;
}

.login-stack {
    width: min(430px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.login-brand-floating {
    width: min(430px, 100%);
    max-height: px;
    object-fit: contain;
    display: block;
}

.login-card {
    width: min(430px, 100%);
    border-radius: var(--radius-xl);
    background: rgba(245, 248, 255, 0.95);
    box-shadow: var(--shadow-soft);
    color: var(--text-dark);
    overflow: hidden;
    position: relative;
    z-index: 6;
}

.login-card-top {
    padding: 22px;
    text-align: center;
}

.login-brand-stack {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.login-card-body {
    padding: 20px 22px 24px;
}

.login-card-body .btn {
    width: 100%;
}

.login-password-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.login-password-input {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.login-card-body .btn.login-show-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 11px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-toggle-track {
    position: relative;
    display: block;
    min-width: 46px;
    height: 1em;
    overflow: hidden;
}

.login-toggle-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(0);
    transition: transform 0.22s ease;
    will-change: transform;
}

.login-toggle-label.is-next {
    transform: translateX(100%);
}

.login-show-btn[data-slide='right'] .login-toggle-label.is-next {
    transform: translateX(-100%);
}

.login-show-btn.is-animating[data-slide='left'] .login-toggle-label.is-current {
    transform: translateX(-100%);
}

.login-show-btn.is-animating[data-slide='left'] .login-toggle-label.is-next {
    transform: translateX(0);
}

.login-show-btn.is-animating[data-slide='right'] .login-toggle-label.is-current {
    transform: translateX(100%);
}

.login-show-btn.is-animating[data-slide='right'] .login-toggle-label.is-next {
    transform: translateX(0);
}

.meta-brand {
    color: #fff;
}

/* Admin */
.admin-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef1fb, #f7f8fc);
}

.admin-shell {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
}

.admin-nav {
    background: var(--brand-navy);
    color: #f5f7ff;
    padding: 20px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin: 0 0 8px;
    border-radius: 12px;
}

.admin-brand img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.admin-nav .admin-nav-link {
    display: block;
    padding: 11px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    color: #edf1ff;
    font-size: 14px;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.admin-nav .admin-nav-link.active {
    background: #fff;
    color: var(--brand-navy);
}

.admin-nav .admin-nav-link:hover,
.admin-nav .admin-nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.5);
    color: var(--brand-navy);
}

.admin-main {
    padding: 22px 18px 34px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-title {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 800;
    color: var(--brand-navy);
    font-size: 30px;
    letter-spacing: 0.01em;
}

.admin-title-body {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.kpi {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.kpi h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--text-soft);
}

.kpi p {
    margin: 0;
    font-size: 24px;
    color: var(--brand-navy);
    font-family: var(--font-subtitle);
}

.panel {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    padding: 16px;
    margin-bottom: 16px;
}

.panel.is-edit-target {
    box-shadow: 0 0 0 2px rgba(234, 128, 0, 0.28), var(--shadow-card);
}

.panel h2 {
    margin: 0 0 12px;
    color: var(--brand-navy);
    font-size: 20px;
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.settings-phone-heading {
    font-family: var(--font-body) !important;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.default-order-sortable {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.default-order-sortable + .inline-actions {
    margin-top: 10px;
}

.js-default-order-form .inline-actions + .inline-actions {
    margin-top: 10px;
}

.default-order-sortable.is-reordering,
.default-order-sortable.is-reordering * {
    user-select: none;
    -webkit-user-select: none;
}

.default-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    border-radius: 999px;
    padding: 10px 16px;
    background: #f2f5ff;
    border: 1px solid #ccd3ee;
    cursor: grab;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.default-order-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(39, 43, 88, 0.12);
}

.default-order-item.is-fixed {
    cursor: default;
    background: #e9f0ff;
}

.default-order-item.is-dragging {
    opacity: 1;
}

.default-order-item.is-over {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 2px rgba(234, 128, 0, 0.25);
}

.default-order-item-handle {
    font-size: 18px;
    line-height: 1;
    color: #7380ad;
    letter-spacing: -1px;
    user-select: none;
}

.default-order-item-label {
    flex: 1 1 auto;
    color: var(--brand-navy);
    font-weight: 700;
    font-size: 19px;
}

.default-order-item-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.default-order-item-tool {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.default-icon-sortable {
    list-style: none;
    margin: 10px 0 12px;
    padding: 14px;
    border-radius: 999px;
    background: var(--brand-navy);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 12px;
    flex-wrap: wrap;
}

.default-icon-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--brand-orange);
    color: #fff;
    cursor: grab;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.default-icon-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.default-icon-item.is-dragging {
    opacity: 0.45;
}

.default-icon-item-handle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    user-select: none;
    letter-spacing: -1px;
}

.default-icon-item-label {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.default-icon-item-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.default-icon-item-tools .default-order-item-tool {
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
}

.default-icon-item-tools .default-order-item-tool:hover,
.default-icon-item-tools .default-order-item-tool:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.48);
}

.default-icon-item-tools .default-icon-item-tool-delete {
    background: rgba(182, 54, 46, 0.35);
    border-color: rgba(255, 210, 205, 0.48);
}

.default-icon-item-tools .default-icon-item-tool-delete:hover,
.default-icon-item-tools .default-icon-item-tool-delete:focus-visible {
    background: rgba(182, 54, 46, 0.58);
    border-color: rgba(255, 225, 222, 0.7);
}

.icon-slot-empty {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px dashed #c4cce9;
    background: repeating-linear-gradient(
        135deg,
        rgba(39, 43, 88, 0.06),
        rgba(39, 43, 88, 0.06) 6px,
        transparent 6px,
        transparent 12px
    );
    display: inline-block;
}

.panel-title-body {
    font-family: var(--font-body) !important;
    font-weight: 700;
    letter-spacing: 0;
}

.table-wrap {
    overflow-x: auto;
}

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

th,
td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid #edf1f8;
    font-size: 14px;
}

th {
    color: #576086;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.client-cards {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.client-card {
    border: 1px solid #e2e6f3;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.client-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.client-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #f2f4fb;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(34, 39, 82, 0.18);
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-avatar-initial {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--brand-orange);
    color: #fff;
    font-family: var(--font-title);
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
}

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

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

.hint {
    font-size: 12px;
    color: #687198;
    margin: 3px 0 0;
}

.section-title {
    margin: 0 0 10px;
    color: var(--brand-navy);
    font-family: var(--font-subtitle);
    font-size: 17px;
}

.mobile-only {
    display: none;
}

/* Client */
.client-page {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    background: var(--brand-navy);
    color: #fff;
    overflow: hidden;
}

.client-bg {
    --client-bg-position: 50% 50%;
    --client-bg-opacity: 0.45;
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(39, 43, 88, 0.9), rgba(39, 43, 88, 0.94));
    overflow: hidden;
}

.client-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
}

.client-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--client-bg-position);
    opacity: var(--client-bg-opacity);
}

.client-bg-video,
.client-bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, calc(100vh * 1.7778));
    height: max(100vh, calc(100vw / 1.7778));
    transform: translate(-50%, -50%);
    opacity: var(--client-bg-opacity);
    border: 0;
    pointer-events: none;
}

@supports (height: 100dvh) {
    .client-bg-video,
    .client-bg-iframe {
        width: max(100vw, calc(100dvh * 1.7778));
        height: max(100dvh, calc(100vw / 1.7778));
    }
}

.client-bg-video {
    object-fit: cover;
    object-position: var(--client-bg-position);
}

.client-page.mobile-bg-fade .client-bg img,
.client-page.mobile-bg-fade .client-bg-video,
.client-page.mobile-bg-fade .client-bg-iframe {
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 8%,
        rgba(0, 0, 0, 1) 92%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 8%,
        rgba(0, 0, 0, 1) 92%,
        rgba(0, 0, 0, 0) 100%
    );
}

.client-shell {
    --shell-inline-pad: 14px;
    --top-region-lift: 0px;
    position: relative;
    z-index: 1;
    width: min(590px, 100vw);
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 10px var(--shell-inline-pad) 16px;
}

.client-topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
}

.client-logo-tap {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    overflow: visible;
}

.client-logo-content {
    position: absolute;
    inset: 0;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    transform: translateX(0);
    opacity: 1;
    transition: transform var(--view-switch-phase-duration) cubic-bezier(0.22, 0.61, 0.36, 1), opacity var(--view-switch-phase-duration) ease;
    will-change: transform;
}

.client-logo-content-incoming {
    transform: translateX(calc(var(--switch-distance, 140px) * -1));
    opacity: 1;
    z-index: 3;
}

.client-logo-content.is-outgoing {
    z-index: 2;
}

.client-logo-tap.is-view-switching .client-logo-content.is-outgoing {
    transform: translateX(calc(var(--switch-distance, 140px) * -1));
}

.client-logo-tap.is-view-switching-incoming .client-logo-content-incoming {
    transform: translateX(0);
}

.client-logo-image,
.client-logo-tap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.18s ease;
}

.client-back-arrow-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.client-back-arrow {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 42px;
    line-height: 1;
    color: var(--brand-orange);
    transform: translateY(-1px);
    font-family: var(--font-subtitle);
}

.top-action-row {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.top-action-btn {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    border: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.top-action-btn img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    transition: filter 0.18s ease;
}

@media (min-width: 981px) {
    .client-shell {
        --top-control-gap: 8px;
    }

    .client-shell {
        padding-top: 14px;
    }

    .client-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: var(--top-control-gap) var(--top-control-gap) 0 var(--top-control-gap);
        z-index: 35;
    }

    .client-logo-tap {
        margin-left: 4px;
    }

    .top-action-row {
        gap: 12px;
    }

    .top-action-btn {
        width: 48px;
        height: 48px;
    }

    .top-action-btn img {
        width: 34px;
        height: 34px;
    }
}

.company-block {
    position: sticky;
    top: 68px;
    z-index: 22;
    text-align: center;
    padding: 10px 0 12px;
    background: transparent;
}

.company-block-inner {
    position: relative;
    transition: transform var(--view-switch-phase-duration) cubic-bezier(0.22, 0.61, 0.36, 1), opacity var(--view-switch-phase-duration) ease;
    will-change: transform;
}

.company-block-inner.is-incoming {
    position: absolute;
    inset: 0;
    transform: translateY(calc(-1 * var(--company-switch-distance, 220px)));
    opacity: 1;
    z-index: 3;
}

.company-block-inner.is-outgoing {
    z-index: 2;
}

.company-block.is-switching .company-block-inner.is-outgoing {
    transform: translateY(calc(-1 * var(--company-switch-distance, 220px)));
}

.company-block.is-switching-incoming .company-block-inner.is-incoming {
    transform: translateY(0);
}

.company-avatar {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 10px 20px rgba(8, 10, 29, 0.4);
    background: #fff;
}

.company-avatar.is-premium-avatar {
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-avatar.is-premium-avatar img {
    object-fit: contain;
}

.company-name {
    margin: 0;
    font-size: 30px;
    color: #fff;
    font-family: var(--font-subtitle);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.company-slogan {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.advert-zone {
    position: sticky;
    top: 220px;
    z-index: 18;
    min-height: var(--widget-pill-height);
    margin: 0 0 var(--widget-stack-gap);
    overflow: hidden;
}

.advert-card {
    min-height: var(--widget-pill-height);
    border-radius: var(--widget-pill-radius);
    overflow: hidden;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity 260ms ease;
    position: relative;
}

.advert-card.is-fading-out {
    opacity: 0;
}

.advert-card.advert-has-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.advert-card.advert-has-progress.has-progress-anim::after {
    opacity: 1;
    animation: advertProgress var(--advert-progress-duration, 8s) linear forwards;
}

@keyframes advertProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.advert-card > * {
    width: 100%;
}

.advert-card.advert-card-freeform {
    min-height: var(--widget-pill-height);
    border-radius: var(--widget-pill-radius);
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.advert-card.advert-card-freeform > * {
    width: 100%;
    min-height: var(--widget-pill-height);
}

.advert-card.advert-card-html {
    min-height: calc(var(--widget-pill-height) * var(--advert-html-height-multiplier, 1.5));
    border-radius: calc(var(--widget-pill-height) / 2);
    overflow: hidden;
    background: transparent;
}

.advert-card.advert-card-html > * {
    width: 100%;
    min-height: calc(var(--widget-pill-height) * var(--advert-html-height-multiplier, 1.5));
    border-radius: calc(var(--widget-pill-height) / 2);
    margin: 0;
}

.advert-card.advert-card-full-width {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: calc(var(--widget-pill-height) / 2);
}

.advert-card img,
.advert-card video {
    width: 100%;
    height: auto;
    display: block;
}

.widget-region {
    position: relative;
    flex: 1;
    min-height: 0;
    margin-top: var(--top-region-lift);
}

.widget-top-slot {
    position: absolute;
    top: var(--widget-stack-gap);
    left: var(--surface-inline-offset);
    right: var(--surface-inline-offset);
    z-index: 20;
}

.widget-top-slot:empty {
    display: none;
}

.widget-scroll {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: calc(var(--widget-stack-gap) + var(--sticky-top-space, 0px)) var(--surface-inline-offset) 24px;
    scrollbar-width: none;
    --sticky-crop-offset: 0px;
    --sticky-top-space: 0px;
    --bottom-mid-clip: 0px;
    clip-path: inset(var(--sticky-crop-offset) 0 var(--bottom-mid-clip) 0);
    will-change: scroll-position;
}

.widget-scroll.is-view-switching {
    overflow: visible;
    clip-path: none;
}

.client-shell.has-bottom-icons .widget-scroll {
    padding-bottom: calc(var(--bottom-row-mid-clip) + var(--bottom-row-scroll-gap));
    --bottom-mid-clip: var(--bottom-row-mid-clip);
}

.client-shell.has-advert .widget-scroll {
    padding-top: var(--sticky-top-space, 0px);
    clip-path: inset(var(--sticky-crop-offset) 0 var(--bottom-mid-clip) 0);
}

.widget-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.widget-fade-top,
.widget-fade-bottom {
    display: none;
}

.widget-stack {
    min-height: 100%;
    position: relative;
    overflow: visible;
    transition: transform var(--view-switch-phase-duration) cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.widget-stack.is-view-switch-exit,
.widget-stack.is-view-switch-enter {
    overflow: hidden;
}

.widget-stack.is-view-switch-exit[data-switch-dir="left"] {
    transform: translateX(calc(-1 * var(--widget-switch-distance, 120vw)));
}

.widget-stack.is-view-switch-exit[data-switch-dir="right"] {
    transform: translateX(var(--widget-switch-distance, 120vw));
}

.widget-stack.is-view-switch-enter[data-switch-dir="left"] {
    transform: translateX(var(--widget-switch-distance, 120vw));
}

.widget-stack.is-view-switch-enter[data-switch-dir="right"] {
    transform: translateX(calc(-1 * var(--widget-switch-distance, 120vw)));
}

.widget-stack.is-view-switch-enter.is-view-switch-enter-active {
    transform: translateX(0);
}

.widget-stack-switch-preview {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.widget-stack-switch-preview .widget-btn,
.widget-stack-switch-preview .widget-back {
    pointer-events: none;
}

.widget-level {
    width: 100%;
    position: relative;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.widget-btn.widget-btn-sticky-top {
    z-index: 20;
}

.widget-top-slot .widget-btn {
    margin-bottom: var(--widget-stack-gap);
    background: #eeeff6;
}

.widget-back-row {
    margin-bottom: 10px;
}

.widget-btn,
.widget-back {
    width: 100%;
    border: 0;
    background: #eeeff6;
    color: #1e2438;
    border-radius: var(--widget-pill-radius);
    min-height: var(--widget-pill-height);
    margin-bottom: var(--widget-stack-gap);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(5, 6, 17, 0.19);
    text-align: left;
    transform: translateY(0);
    transition: transform 0.18s linear, box-shadow 0.18s linear, background-color 0.18s linear, color 0.18s linear;
}

.widget-btn {
    position: relative;
    justify-content: center;
    z-index: 1;
}

.widget-btn[draggable="true"] {
    cursor: grab;
}

.widget-btn.is-dragging {
    opacity: 1;
}

.widget-stack.is-reordering,
.widget-stack.is-reordering * {
    user-select: none;
}

.widget-btn.is-drag-over {
    outline: 2px dashed rgba(234, 128, 0, 0.65);
    outline-offset: -6px;
}

.widget-btn-icon {
    width: var(--widget-icon-size);
    height: var(--widget-icon-size);
    padding: 0;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
    background: transparent;
    outline: 0;
    display: grid;
    place-items: center;
    position: absolute;
    left: var(--widget-icon-inset);
    top: var(--widget-icon-inset);
}

.client-page.show-icon-circle-guides .widget-btn-icon {
    border-radius: 50%;
    background: rgba(39, 43, 88, 0.18);
    outline: 1px solid rgba(39, 43, 88, 0.35);
}

.widget-btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.widget-btn-icon img[src*="Storage.svg"] {
    width: 88%;
    height: 88%;
}

.widget-btn-text {
    display: block;
    width: 100%;
    font-size: clamp(17px, 3.2vw, 24px);
    line-height: 1.2;
    text-align: center;
    margin: 0;
    padding: 0 96px;
}

.widget-btn.has-icon .widget-btn-text {
    margin-right: 0;
}

.widget-arrow {
    font-size: 22px;
    color: #7b83a8;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    transition: color 0.18s linear;
}

.widget-inline-tools {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    gap: 8px;
}

.widget-inline-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 24px;
    padding: 4px 10px;
    background: rgba(39, 43, 88, 0.12);
    color: var(--brand-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.widget-inline-tool.widget-inline-tool-danger {
    background: rgba(180, 55, 45, 0.12);
    color: #9f2f27;
}

@keyframes widget-float {
    0% { transform: translateY(0); }
    25% { transform: translateY(-2px); }
    50% { transform: translateY(-4px); }
    75% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
    .widget-btn:hover,
    .widget-back:hover {
        background: var(--brand-orange);
        color: #fff;
        animation: widget-float 1.8s linear infinite;
        box-shadow: 0 14px 22px rgba(10, 14, 35, 0.32);
    }

    .widget-btn:hover .widget-arrow,
    .widget-back:hover .widget-arrow {
        color: #fff;
    }

    .widget-btn:hover .widget-btn-text {
        color: #fff;
    }

    .widget-btn:hover .widget-btn-icon img {
        filter: brightness(0) saturate(100%) invert(100%);
    }
}

.widget-btn:focus-visible,
.widget-back:focus-visible {
    outline: 0;
    background: var(--brand-orange);
    color: #fff;
    box-shadow: 0 14px 22px rgba(10, 14, 35, 0.32);
}

.widget-btn:focus-visible .widget-arrow,
.widget-back:focus-visible .widget-arrow {
    color: #fff;
}

.widget-btn:focus-visible .widget-btn-text {
    color: #fff;
}

.widget-btn:focus-visible .widget-btn-icon img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.widget-btn.widget-btn-rich {
    min-height: 0;
    display: block;
    padding: 12px;
    border-radius: 24px;
    overflow: hidden;
}

.widget-rich-title {
    display: block;
    margin: 0 0 8px;
    text-align: center;
    font-weight: 700;
    color: var(--brand-navy);
}

.widget-rich-wrap {
    display: block;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #1f2550;
    position: relative;
}

.widget-rich-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
}

.widget-btn.widget-btn-rich.widget-btn-rich-instagram {
    width: 100%;
    padding: 0;
    border-radius: calc(var(--widget-pill-height) / 2);
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: var(--widget-stack-gap);
}

.widget-btn.widget-btn-rich.widget-btn-rich-instagram .widget-rich-wrap {
    border-radius: calc(var(--widget-pill-height) / 2);
    background: transparent;
    overflow: hidden;
}

.widget-btn.widget-btn-rich.widget-btn-rich-instagram .widget-rich-frame {
    border-radius: calc(var(--widget-pill-height) / 2);
}

.advert-zone:has(.advert-card-full-width) {
    overflow: visible;
}

@media (hover: hover) and (pointer: fine) {
    .widget-btn.widget-btn-rich:hover .widget-rich-title {
        color: #fff;
    }

    .widget-btn.widget-btn-rich.widget-btn-rich-instagram:hover {
        background: transparent;
        animation: none;
        box-shadow: none;
        color: inherit;
    }
}

.widget-btn.widget-btn-rich:focus-visible .widget-rich-title {
    color: #fff;
}

.widget-btn.widget-btn-rich.widget-btn-rich-instagram:focus-visible {
    background: transparent;
    box-shadow: none;
    color: inherit;
}

.bottom-icon-row {
    position: absolute;
    left: calc(var(--shell-inline-pad) + var(--surface-inline-offset));
    right: calc(var(--shell-inline-pad) + var(--surface-inline-offset));
    bottom: var(--bottom-row-offset);
    z-index: 20;
    margin-top: 0;
    padding: 0;
    height: var(--widget-pill-height);
    min-height: var(--widget-pill-height);
    border-radius: var(--widget-pill-radius);
    background: var(--brand-navy);
    border: 0;
    backdrop-filter: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 0;
    width: auto;
    overflow: hidden;
}

.bottom-icon-row.is-scrollable {
    justify-content: flex-start;
    gap: var(--widget-stack-gap);
    padding: 0 var(--widget-stack-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.bottom-icon-row.is-scrollable::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.bottom-icon-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #fff;
    font-size: 11px;
    flex: 0 0 auto;
    width: var(--bottom-icon-size);
    height: var(--bottom-icon-size);
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transform: translateY(0);
    transition: transform var(--view-switch-phase-duration) cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.client-page.show-icon-circle-guides .bottom-icon-link {
    background: rgba(39, 43, 88, 0.18);
    border-radius: 50%;
    outline: 1px solid rgba(39, 43, 88, 0.35);
}

.bottom-icon-row.is-scrollable .bottom-icon-link {
    flex: 0 0 calc((100% - (var(--widget-stack-gap) * 5)) / 4);
    min-width: calc((100% - (var(--widget-stack-gap) * 5)) / 4);
    scroll-snap-align: start;
}

.bottom-icon-row.is-view-switch-exit[data-switch-dir="down"] .bottom-icon-link {
    transform: translateY(var(--bottom-icon-switch-distance, 120px));
}

.bottom-icon-row.is-view-switch-exit[data-switch-dir="up"] .bottom-icon-link {
    transform: translateY(calc(-1 * var(--bottom-icon-switch-distance, 120px)));
}

.bottom-icon-row.is-view-switch-enter[data-switch-dir="down"] .bottom-icon-link {
    transform: translateY(calc(-1 * var(--bottom-icon-switch-distance, 120px)));
}

.bottom-icon-row.is-view-switch-enter[data-switch-dir="up"] .bottom-icon-link {
    transform: translateY(var(--bottom-icon-switch-distance, 120px));
}

.bottom-icon-row.is-view-switch-enter.is-view-switch-enter-active .bottom-icon-link {
    transform: translateY(0);
}

.bottom-icon-row-switch-preview {
    pointer-events: none;
    z-index: 22;
}

.bottom-icon-row-switch-preview .bottom-icon-link {
    pointer-events: none;
}

.bottom-icon-link span {
    display: none;
}

.bottom-icon-link img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    transition: filter 0.18s ease;
    object-position: center;
}

.bottom-icon-link img[src*="Storage.svg"] {
    width: 88%;
    height: 88%;
}

.bottom-icon-link[draggable="true"] {
    cursor: grab;
}

.bottom-icon-link.is-dragging {
    opacity: 0.45;
}

.bottom-icon-link.is-drag-over {
    outline: 2px dashed rgba(234, 128, 0, 0.65);
    outline-offset: -6px;
    border-radius: 10px;
}

.bottom-inline-tools {
    position: absolute;
    inset: auto 0 -18px 0;
    display: none;
    justify-content: center;
    gap: 6px;
}

.preview-editing .bottom-inline-tools {
    display: inline-flex;
}

.bottom-inline-tool {
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    background: #fff;
    color: var(--brand-navy);
}

.bottom-inline-tool.bottom-inline-tool-danger {
    color: #9f2f27;
}

.client-logo-tap:hover img,
.client-logo-tap:focus-visible img,
.top-action-btn:hover img,
.top-action-btn:focus-visible img,
.bottom-icon-link:hover img,
.bottom-icon-link:focus-visible img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.preview-badge {
    position: fixed;
    right: 12px;
    top: 78px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.preview-badge .preview-mode-pill {
    background: #fedb09;
    color: var(--brand-navy);
    border: 1px solid rgba(39, 43, 88, 0.22);
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 8px 14px;
    box-shadow: 0 6px 14px rgba(9, 12, 32, 0.28);
}

.preview-badge .preview-exit-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-navy);
    border: 1px solid rgba(39, 43, 88, 0.25);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;
}

.preview-badge .preview-edit-pill,
.preview-badge .preview-defaults-pill,
.preview-badge .preview-global-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.preview-badge .preview-edit-pill.is-active,
.preview-badge .preview-defaults-pill.is-active {
    background: var(--brand-orange);
    border-color: rgba(0, 0, 0, 0.15);
    color: #fff;
}

.preview-badge .preview-global-pill {
    text-decoration: none;
}

.preview-editor-panel {
    position: fixed;
    right: 12px;
    top: 122px;
    z-index: 60;
    width: min(340px, 90vw);
    border-radius: 18px;
    background: rgba(15, 20, 52, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 34px rgba(7, 10, 30, 0.46);
    color: #fff;
    padding: 14px;
}

.preview-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.preview-editor-head h2 {
    margin: 0;
    font-family: var(--font-subtitle);
    font-size: 22px;
    letter-spacing: 0.03em;
}

.preview-editor-close {
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.preview-editor-copy,
.preview-editor-tip {
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.45;
}

.preview-editor-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.preview-editor-actions button {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    min-height: 38px;
    font-weight: 700;
    cursor: pointer;
}

.preview-editor-alignment {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
}

.preview-editor-alignment h3 {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.84);
}

.preview-editor-alignment p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: #fff;
}

.preview-editor-alignment-detail {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 4px !important;
}

.preview-editor-links {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
}

.preview-editor-links h3 {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.84);
}

.preview-editor-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.preview-editor-toggle-row span {
    font-size: 12px;
    line-height: 1.3;
    color: #fff;
    font-weight: 600;
}

.preview-editor-toggle-btn {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    min-height: 30px;
    min-width: 86px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.preview-editor-toggle-btn.is-on {
    background: #ea8000;
    border-color: rgba(234, 128, 0, 0.95);
    color: #fff;
}

.preview-editor-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(10, 14, 36, 0.68);
    display: grid;
    place-items: center;
    padding: 16px;
}

.preview-editor-modal[hidden],
.preview-editor-panel[hidden] {
    display: none !important;
}

.preview-editor-modal-card {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    max-height: min(90vh, 780px);
    overflow: auto;
}

#preview-editor-form:empty::before {
    content: 'Choose an action from Edit Studio.';
    display: block;
    color: var(--text-soft);
    font-size: 14px;
    padding: 8px 0 2px;
}

.preview-editor-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.preview-editor-modal-head h3 {
    margin: 0;
    color: var(--brand-navy);
    font-family: var(--font-subtitle);
    font-size: 24px;
}

.preview-editor-modal-head .preview-editor-close {
    background: #eff1f7;
    color: var(--brand-navy);
}

.preview-form-copy {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-soft);
}

.social-links-grid {
    display: grid;
    gap: 10px;
}

.social-link-row {
    border: 1px solid #d8dced;
    border-radius: 12px;
    background: #f8f9fd;
    padding: 10px;
}

.social-link-row .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.social-link-row .field {
    margin-bottom: 0;
}

.social-link-row-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.social-link-row-head img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.social-link-row-head strong {
    font-size: 13px;
    color: var(--brand-navy);
}

.preview-social-links-actions {
    margin-top: 14px;
}

.preview-show-defaults .preview-editor-actions button[data-editor-action="add-widget"],
.preview-show-defaults .preview-editor-actions button[data-editor-action="add-icon"],
.preview-show-defaults .preview-editor-actions button[data-editor-action="upload-logo"] {
    opacity: 0.55;
}

.preview-badge .preview-exit-pill:hover,
.preview-badge .preview-exit-pill:focus-visible {
    background: var(--brand-orange);
    color: #fff;
}

.embed-layer {
    position: fixed;
    inset: 0;
    background: var(--brand-navy);
    z-index: 110;
    display: none;
    flex-direction: column;
}

.embed-layer.active {
    display: flex;
}

.login-intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 170;
    background: #0b102f;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.login-intro-overlay.is-closing {
    opacity: 0;
}

.login-intro-media-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.login-intro-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.login-intro-actions {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    gap: 8px;
    z-index: 2;
}

.login-intro-actions .btn {
    min-width: 122px;
}

.login-intro-actions .btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.embed-toolbar {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--brand-navy);
}

.embed-frame-wrap {
    flex: 1;
    background: var(--brand-navy);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    position: relative;
}

.embed-frame-wrap::before,
.embed-frame-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--brand-navy);
    z-index: 3;
    pointer-events: none;
}

.embed-frame-wrap::before {
    left: 0;
    border-bottom-right-radius: 22px;
}

.embed-frame-wrap::after {
    right: 0;
    border-bottom-left-radius: 22px;
}

.embed-frame {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 18px 18px 0 0;
    background: #fff;
    display: block;
    position: relative;
    z-index: 1;
}

.embed-fallback {
    padding: 16px;
    display: none;
}

.embed-fallback.active {
    display: block;
}

/* Responsive */
@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        position: sticky;
        top: 0;
        z-index: 50;
        height: auto;
        display: flex;
        align-items: center;
        overflow-x: auto;
        gap: 8px;
        padding: 12px;
    }

    .admin-brand {
        margin: 0 8px 0 0;
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0;
        flex: 0 0 42px;
        border-radius: 10px;
    }

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

    .admin-nav .admin-nav-link {
        margin: 0;
        min-width: max-content;
    }

    .admin-main {
        padding-top: 14px;
    }

    .admin-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .mobile-only {
        display: inline-flex;
    }

    .desktop-only {
        display: none;
    }
}

@media (max-width: 760px) {
    .utility-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .utility-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .login-shell {
        min-height: 100dvh;
        height: 100dvh;
        padding: 68px 12px 12px;
    }

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

    .table-wrap {
        display: none;
    }

    .client-cards {
        display: grid;
    }

    .company-name {
        font-size: 25px;
    }

    .client-shell {
        --shell-inline-pad: 10px;
        --bottom-row-offset: 0px;
        height: 100dvh;
        min-height: 100dvh;
        padding: 0 var(--shell-inline-pad) env(safe-area-inset-bottom, 0px);
    }

    .client-topbar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 2px var(--shell-inline-pad) 0;
    }

    .company-block {
        position: relative;
        top: 0;
        margin-top: 0;
        padding: 0;
        margin-bottom: var(--widget-stack-gap) !important;
    }

    .company-block-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--widget-stack-gap) !important;
    }

    .company-avatar {
        width: 84px;
        height: 84px;
        margin: 0 !important;
        box-shadow: none;
    }

    .company-avatar.is-premium-avatar {
        width: 84px;
        height: 84px;
    }

    .company-name {
        margin: 0 !important;
        line-height: 0.82;
    }

    .company-slogan {
        margin: 0 !important;
        line-height: 1;
    }

    .advert-zone {
        position: relative;
        top: 0;
        margin: 0 0 var(--widget-stack-gap) !important;
        min-height: 0;
    }

    .client-shell.has-advert .widget-region {
        margin-top: var(--top-region-lift);
    }

    .client-shell.has-advert .widget-top-slot {
        top: 0;
    }

    .client-shell.has-advert .widget-scroll {
        padding-top: var(--sticky-top-space, 0px);
    }

    .top-action-row {
        display: none;
    }

    .client-logo-content,
    .client-logo-image,
    .client-logo-tap img,
    .client-back-arrow-img {
        width: 42px;
        height: 42px;
        max-width: 42px;
        max-height: 42px;
        transition: none !important;
        filter: none !important;
    }

    .client-logo-tap {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
    }

    .client-logo-tap:hover img,
    .client-logo-tap:focus-visible img {
        filter: none !important;
    }

    .widget-btn {
        min-height: 84px;
    }

    .login-page {
        height: 100dvh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .login-page .utility-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .login-page .utility-inner {
        min-height: 56px;
        padding: 8px 10px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .login-page .utility-actions {
        display: flex;
        width: auto;
        grid-template-columns: none;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .login-page .utility-link {
        width: 42px;
        height: 42px;
    }

    .login-page .utility-link-icon {
        width: 24px;
        height: 24px;
    }

    .login-intro-overlay {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .login-intro-media-wrap {
        height: calc(100% - 84px);
    }

    img.login-intro-media {
        object-fit: contain;
        background: #0b102f;
    }

    video.login-intro-media {
        object-fit: cover;
    }

    .login-intro-actions {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }

    .login-intro-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 9px 10px;
    }

    .login-page .login-shell {
        height: 100dvh;
        min-height: 100dvh;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-page .login-stack {
        --pps-logo-gap-x: 12px;
        --pps-logo-optical-offset: calc(var(--pps-logo-gap-x) * -0.67);
        width: min(430px, 100%);
        gap: var(--pps-logo-gap-x);
        max-height: calc(100dvh - 20px);
    }

    .login-page .login-brand-floating {
        width: min(430px, 100%);
        max-height: min(40dvh, 248px);
        object-fit: contain;
        margin-bottom: var(--pps-logo-optical-offset);
    }

    .login-page .login-card {
        width: min(430px, 100%);
        height: auto;
        max-height: calc(100dvh - 20px - min(40dvh, 248px) - var(--pps-logo-gap-x));
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .login-page .login-card-top {
        padding: 8px 10px 4px;
        flex: 0 0 auto;
    }

    .login-page .login-card-body {
        padding: 8px 10px 8px;
        flex: 1 1 auto;
        min-height: 0;
    }

    .login-page .login-brand-stack {
        max-height: min(20dvh, 128px);
        width: 100%;
        object-fit: contain;
        transform: none;
        margin: 0;
    }

    .login-page.login-has-message .login-brand-stack {
        max-height: min(15dvh, 96px);
    }

    .login-page .flash {
        padding: 8px 11px;
        margin: 0 0 6px;
        font-size: 12px;
        line-height: 1.25;
    }

    .login-page .field,
    .login-page .field-row {
        margin-bottom: 6px;
    }

    .login-page .field label {
        margin-bottom: 3px;
        font-size: 11px;
    }

    .login-page .input,
    .login-page select,
    .login-page textarea {
        padding: 7px 10px;
        border-radius: 11px;
        font-size: 14px;
    }

    .login-page .hint {
        margin: 3px 0 0;
        font-size: 10px;
        line-height: 1.2;
    }

    .login-page .btn {
        min-height: 38px;
        padding: 8px 12px;
    }
}

@media (min-width: 981px) {
    .login-page .utility-inner.page-wrap {
        width: 100%;
        margin: 0;
        padding: var(--top-control-gap, 8px);
    }

    .utility-actions {
        gap: var(--top-control-gap, 8px);
    }

    .utility-link {
        width: 48px;
        height: 48px;
    }

    .utility-link-icon {
        width: 34px;
        height: 34px;
    }

    .company-block {
        top: 14px;
        padding-top: 0;
    }

    .advert-zone {
        top: 166px;
    }

    .bottom-icon-row {
        bottom: var(--bottom-row-offset);
    }
}
