:root {
    --hs-primary: #0f766e;
    --hs-primary-dark: #0b4f4a;
    --hs-accent: #f59e0b;
    --hs-ink: #13202b;
    --hs-muted: #627083;
    --hs-soft: #f3f8f7;
    --hs-line: #dbe7e5;
    --hs-radius: 8px;
    --hs-shadow: 0 14px 40px rgba(15, 118, 110, .12);
}

html,
body.ss-demo-preview-page {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

body.ss-demo-preview-page {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--hs-ink);
}

.ss-demo-shell {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.ss-demo-toolbar {
    min-height: 72px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--hs-line);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(245, 158, 11, .05)),
        #fff;
    box-shadow: 0 1px 0 rgba(19, 32, 43, .03);
    z-index: 2;
}

.ss-demo-toolbar__left,
.ss-demo-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ss-demo-toolbar__actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ss-demo-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--hs-ink);
    text-decoration: none;
    font-weight: 850;
}

.ss-demo-brand img {
    max-height: 38px;
    width: auto;
    display: block;
}

.ss-demo-brand-text {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--hs-primary-dark);
    font-size: 1rem;
    font-weight: 850;
}

.ss-demo-toolbar__center {
    min-width: 0;
    text-align: center;
}

.ss-demo-product-title {
    display: block;
    overflow: hidden;
    color: var(--hs-ink);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-demo-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--hs-line);
    border-radius: var(--hs-radius);
    background: #fff;
    color: var(--hs-ink);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.ss-demo-btn:hover,
.ss-demo-btn:focus {
    border-color: var(--hs-primary);
    background: var(--hs-soft);
    color: var(--hs-primary-dark);
    outline: 3px solid rgba(15, 118, 110, .14);
    outline-offset: 0;
}

.ss-demo-btn--active {
    border-color: var(--hs-primary);
    background: var(--hs-soft);
    color: var(--hs-primary-dark);
}

.ss-demo-btn--primary {
    border-color: var(--hs-primary);
    background: var(--hs-primary);
    color: #fff;
}

.ss-demo-btn--primary:hover,
.ss-demo-btn--primary:focus {
    border-color: var(--hs-primary-dark);
    background: var(--hs-primary-dark);
    color: #fff;
}

.ss-demo-frame-wrap {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--hs-soft);
}

.ss-demo-frame {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #fff;
}

@media (max-width: 991.98px) {
    .ss-demo-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
    }

    .ss-demo-toolbar__center {
        text-align: left;
        order: -1;
    }

    .ss-demo-toolbar__left,
    .ss-demo-toolbar__actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ss-demo-product-title {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    html,
    body.ss-demo-preview-page {
        overflow: auto;
    }

    .ss-demo-shell {
        min-height: 100vh;
        height: auto;
    }

    .ss-demo-toolbar {
        padding: 10px;
    }

    .ss-demo-toolbar__left,
    .ss-demo-toolbar__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ss-demo-btn,
    .ss-demo-brand {
        width: 100%;
    }

    .ss-demo-frame-wrap {
        min-height: calc(100vh - 260px);
    }
}
