.builder-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
}

:root {
    --preview-frame-chrome: #1f2326;
}

.builder-preview-title {
    margin: 0;
    color: var(--color-brand-teal-700);
    font-weight: 700;
}

.builder-preview-devices {
    display: flex;
    align-items: center;
    gap: 8px;
}

.builder-device-toggle {
    min-height: 32px;
    width: 38px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.24);
    background: var(--color-grey-1000);
    color: var(--color-brand-teal-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.builder-device-toggle.is-active,
.builder-device-toggle:hover {
    background: var(--color-brand-teal-200);
}

.builder-preview-frame {
    margin: 0 auto;
    background: var(--preview-frame-chrome);
    --preview-fit-scale: 1;
    --preview-effective-scale: calc(var(--preview-scale, 1) * var(--preview-fit-scale, 1));
    --preview-frame-base-width: calc((var(--preview-screen-width, 390px) * var(--preview-effective-scale)) + (var(--preview-frame-border, 3px) * 2) + (var(--preview-frame-padding-x, 6px) * 2));
    --preview-frame-base-height: calc((var(--preview-screen-height, 844px) * var(--preview-effective-scale)) + (var(--preview-frame-border, 3px) * 2) + (var(--preview-frame-padding-y, 8px) * 2));
    width: min(var(--preview-frame-base-width), 100%);
    height: var(--preview-frame-base-height);
    max-width: 100%;
    border-radius: var(--preview-frame-radius, 32px);
    border: var(--preview-frame-border, 3px) solid #2a3136;
    padding: var(--preview-frame-padding-y, 8px) var(--preview-frame-padding-x, 8px);
    box-sizing: border-box;
    transition: width 0.2s ease, height 0.2s ease;
}

.builder-preview-root {
    width: 100%;
}

.builder-preview-mode {
    width: 100%;
    display: none;
}

.builder-preview-mode.is-active {
    display: block;
}

.builder-preview-mode[hidden] {
    display: none !important;
}

.builder-preview-stack {
    display: grid;
    gap: 16px;
    justify-items: center;
    width: 100%;
}

/* Apple device dimensions — do not round to 8px grid */
.preview-device-phone {
    --preview-frame-radius: 18px;
    --preview-frame-border: 3px;
    --preview-frame-padding-y: 7px;
    --preview-frame-padding-x: 8px;
    --preview-screen-width: 390px;
    --preview-screen-height: 839.53px;
    --preview-screen-radius: 12px;
    --preview-chrome-top: 101px;
    --preview-chrome-bottom: 81px;
    --preview-status-height: 42px;
    --preview-address-height: 59px;
    --preview-status-font-size: 17px;
    --preview-status-icon-size: 13px;
    --preview-island-width: 126px;
    --preview-island-height: 34px;
    --preview-nav-icon-size: 24px;
    --preview-toolbar-height: 50px;
    --preview-toolbar-bottom-inset: 11px;
    --preview-toolbar-radius: 18px;
    --preview-toolbar-padding-x: 15px;
    --preview-toolbar-icon-gap: 10px;
    --preview-toolbar-stroke: 2.25px;
    --preview-address-button-size: 26px;
    --preview-address-button-font-size: 13px;
    --preview-icon-offset-y: 0px;
    --preview-icon-chevron-size: 10px;
    --preview-scale: 0.538;
}

/* Apple device dimensions — do not round to 8px grid */
.preview-device-tablet-portrait {
    --preview-frame-radius: 16px;
    --preview-frame-border: 2px;
    --preview-frame-padding-y: 9px;
    --preview-frame-padding-x: 10px;
    --preview-screen-width: 768px;
    --preview-screen-height: 1170.84px;
    --preview-frame-ratio: 792 / 1192.84;
    --preview-screen-radius: 8px;
    --preview-chrome-top: 100px;
    --preview-chrome-bottom: 52px;
    --preview-status-height: 18px;
    --preview-address-height: 68px;
    --preview-status-font-size: 12px;
    --preview-status-icon-size: 11px;
    --preview-status-side-inset: 16px;
    --preview-address-side-inset: 28px;
    --preview-island-width: 92px;
    --preview-island-height: 18px;
    --preview-nav-icon-size: 20px;
    --preview-toolbar-height: 44px;
    --preview-toolbar-bottom-inset: 8px;
    --preview-toolbar-radius: 15px;
    --preview-toolbar-padding-x: 13px;
    --preview-toolbar-icon-gap: 9px;
    --preview-toolbar-stroke: 2px;
    --preview-tablet-address-icon-size: 20px;
    --preview-tablet-address-icon-stroke: 1.9px;
    --preview-address-button-size: 22px;
    --preview-address-button-font-size: 11px;
    --preview-icon-offset-y: 0px;
    --preview-icon-chevron-size: 9px;
    --preview-scale: 0.286;
}

/* Apple device dimensions — do not round to 8px grid */
.preview-device-tablet-landscape {
    --preview-frame-radius: 14px;
    --preview-frame-border: 2px;
    --preview-frame-padding-y: 8px;
    --preview-frame-padding-x: 10px;
    --preview-screen-width: 1024px;
    --preview-screen-height: 672.63px;
    --preview-frame-ratio: 1048 / 692.63;
    --preview-screen-radius: 8px;
    --preview-chrome-top: 92px;
    --preview-chrome-bottom: 48px;
    --preview-status-height: 18px;
    --preview-address-height: 60px;
    --preview-status-font-size: 12px;
    --preview-status-icon-size: 11px;
    --preview-status-side-inset: 18px;
    --preview-address-side-inset: 34px;
    --preview-island-width: 90px;
    --preview-island-height: 18px;
    --preview-nav-icon-size: 20px;
    --preview-toolbar-height: 42px;
    --preview-toolbar-bottom-inset: 8px;
    --preview-toolbar-radius: 15px;
    --preview-toolbar-padding-x: 12px;
    --preview-toolbar-icon-gap: 9px;
    --preview-toolbar-stroke: 1.95px;
    --preview-tablet-address-icon-size: 20px;
    --preview-tablet-address-icon-stroke: 1.85px;
    --preview-address-button-size: 22px;
    --preview-address-button-font-size: 11px;
    --preview-icon-offset-y: 0px;
    --preview-icon-chevron-size: 9px;
    --preview-scale: 0.232;
}

@media (max-resolution: 1.49dppx) {
    .preview-browser-wrapper {
        --preview-icon-offset-y: 0px;
    }
}

@media (min-resolution: 1.5dppx) and (max-resolution: 2.49dppx) {
    .preview-browser-wrapper {
        --preview-toolbar-stroke: 2px;
        --preview-icon-offset-y: 0.25px;
    }
}

@media (min-resolution: 2.5dppx) {
    .preview-browser-wrapper {
        --preview-toolbar-stroke: 1.85px;
        --preview-icon-offset-y: 0.35px;
    }
}

.builder-preview-screen {
    background: var(--color-grey-1000);
    border-radius: var(--preview-screen-radius, 16px);
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
    overflow: auto;
}

.builder-preview-screen.has-iframe {
    padding: 0;
    overflow: hidden;
    position: relative;
}

.preview-browser-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: top center;
    transform: translateX(-50%) scale(var(--preview-effective-scale, var(--preview-scale, 1)));
    width: var(--preview-screen-width, 390px);
    height: var(--preview-screen-height, 844px);
    display: flex;
    flex-direction: column;
    background: var(--color-grey-1000);
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}

.preview-browser-chrome-top {
    flex-shrink: 0;
    height: var(--preview-chrome-top, 101px);
    background: #f2f2f7;
    border-bottom: 1px solid #d1d1d6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.preview-browser-status-bar {
    height: var(--preview-status-height, 34px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.preview-status-time {
    justify-self: start;
    font-size: var(--preview-status-font-size, 14px);
    line-height: 1;
    font-weight: 600;
    color: #111111;
    letter-spacing: 0.01em;
}

.preview-browser-status-bar-tablet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--preview-status-side-inset, 9px);
}

.preview-browser-status-bar-tablet .preview-status-time {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}

.preview-browser-status-bar-tablet .preview-status-icons {
    gap: 3px;
    font-size: 10px;
    transform: translateY(-0.2px);
}

.preview-status-location {
    width: calc(var(--preview-status-icon-size, 11px) - 2px);
    height: calc(var(--preview-status-icon-size, 11px) - 2px);
    display: inline-block;
    position: relative;
}

.preview-status-location::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 1px;
    width: 6px;
    height: 6px;
    border-top: 1.2px solid currentColor;
    border-right: 1.2px solid currentColor;
    transform: rotate(-45deg);
}

.preview-status-battery-percent {
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}

.preview-browser-status-bar-tablet .preview-status-cell::before {
    width: 1.3px;
    height: 2.8px;
    box-shadow: 2.2px -0.4px 0 0 currentColor, 4.4px -1.8px 0 0 currentColor, 6.6px -3.1px 0 0 currentColor;
}

.preview-browser-status-bar-tablet .preview-status-wifi::before,
.preview-browser-status-bar-tablet .preview-status-wifi::after {
    border-width: 1.2px;
}

.preview-browser-status-bar-tablet .preview-status-battery {
    border-width: 1.2px;
}

.participant-preview-card {
    border: 1px solid var(--color-brand-teal-300);
    border-radius: 8px;
    padding: 16px;
    background: var(--color-grey-1000);
}

.participant-preview-label {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: var(--color-brand-teal-700);
}

.participant-preview-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.35;
}

.participant-preview-meta {
    margin: 0 0 16px 0;
    color: var(--color-brand-teal-700);
}

.participant-preview-textarea {
    width: 100%;
    border: 1px solid var(--color-brand-teal-300);
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
}

.participant-preview-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.participant-preview-send {
    border: 1px solid var(--color-brand-teal-300);
    background: var(--color-brand-teal-200);
    color: var(--color-brand-teal-700);
    border-radius: 8px;
    padding: 8px 16px;
}

.preview-option-line {
    --preview-option-border-color: var(--color-grey-1000);
    --preview-option-bg: var(--color-brand-teal-100);
    --preview-option-color: var(--color-brand-teal-700);
    --preview-option-hover-border-color: var(--color-brand-teal-800);
    --preview-option-hover-bg: var(--color-brand-teal-700);
    --preview-option-hover-color: var(--color-grey-1000);
    --preview-option-transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    display: block;
    margin: 4px 0;
}

.preview-option-line-single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--preview-option-gap, 12px);
    line-height: var(--preview-option-line-height, normal);
    min-height: var(--preview-option-min-height, 48px);
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--preview-option-radius, 8px);
    border: 1px solid var(--preview-option-border-color, var(--color-brand-teal-500));
    background: var(--preview-option-bg, var(--color-brand-teal-100));
    color: var(--preview-option-color, var(--color-brand-teal-700));
    padding: var(--preview-option-padding, 8px 12px);
    transition: var(--preview-option-transition, background-color 160ms ease, color 160ms ease);
}

.preview-option-line-single:hover,
.preview-option-line-single:has(input[type="radio"]:checked) {
    border-color: var(--preview-option-hover-border-color, currentColor);
    background: var(--preview-option-hover-bg, var(--preview-option-bg, var(--color-brand-teal-100)));
    color: var(--preview-option-hover-color, var(--preview-option-color, var(--color-brand-teal-700)));
    font-weight: 600;
}

.preview-option-line-single .preview-option-text {
    order: 1;
    flex: 1 1 auto;
    text-align: left;
}

.preview-option-line-single input[type="radio"] {
    order: 2;
    margin: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: var(--preview-option-radio-radius, 50%);
    border: 1px solid var(--preview-option-radio-border, none);
    background-color: var(--preview-option-radio-bg, rgb(var(--color-grey-1000-rgb) / 0.9));
    accent-color: var(--preview-option-radio-accent, var(--color-brand-teal-500));
    flex: 0 0 22px;
}

/* ------------------------------------------------------------------ */
/* Multiple Choice (Text + Picture)                                    */
/* ------------------------------------------------------------------ */

.preview-option-line-multiple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--preview-option-gap, 12px);
    line-height: var(--preview-option-line-height, normal);
    min-height: var(--preview-option-min-height, 48px);
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--preview-option-radius, 8px);
    border: 1px solid var(--preview-option-border-color, var(--color-brand-teal-500));
    background: var(--preview-option-bg, var(--color-brand-teal-100));
    color: var(--preview-option-color, var(--color-brand-teal-700));
    padding: var(--preview-option-padding, 8px 12px);
    transition: var(--preview-option-transition, background-color 160ms ease, color 160ms ease);
}

.preview-option-line-multiple:hover,
.preview-option-line-multiple:has(input[type="checkbox"]:checked) {
    border-color: var(--preview-option-hover-border-color, currentColor);
    background: var(--preview-option-hover-bg, var(--preview-option-bg, var(--color-brand-teal-100)));
    color: var(--preview-option-hover-color, var(--preview-option-color, var(--color-brand-teal-700)));
    font-weight: 600;
}

.preview-option-line-multiple .preview-option-text {
    order: 2;
    flex: 1 1 auto;
    text-align: left;
}

.preview-option-line-multiple input[type="checkbox"] {
    order: 1;
    margin: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: 4px;
    border: 1px solid rgb(var(--color-brand-teal-700-rgb) / 0.55);
    background-color: rgb(var(--color-grey-1000-rgb) / 0.9);
    accent-color: var(--color-brand-teal-500);
    flex: 0 0 22px;
}

/* ------------------------------------------------------------------ */
/* Freitext: Zeichenz&auml;hler im Preview-Kontext                    */
/* brand-participant.css ist im Editor nicht eingebunden,              */
/* daher hier eigene Basisstile f&uuml;r den Preview.                 */
/* ------------------------------------------------------------------ */

.participant-preview-char-counter {
    display: block;
    width: 100%;
    text-align: right;
    font-size: 0.66rem;
    color: var(--color-brand-teal-700);
    line-height: 1.2;
    margin-top: 4px;
}

.participant-rating-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 132px;
}

.participant-rating-list {
    --rating-count: 5;
    --rating-gap: 3px;
    width: 83.3333%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--rating-gap);
}

.participant-rating-list[data-is-readonly='1'] {
    pointer-events: none;
    opacity: 0.6;
}

.participant-rating-list > span {
    flex: 0 0 calc((100% - ((var(--rating-count) - 1) * var(--rating-gap))) / var(--rating-count));
    max-width: calc((100% - ((var(--rating-count) - 1) * var(--rating-gap))) / var(--rating-count));
    min-width: 0;
    display: flex;
    position: relative;
    justify-content: center;
}

.participant-rating-list > span::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 100%;
}

.participant-rating-list input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.participant-rating-list label {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    display: block;
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-image: url('/assets/icons/star.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.participant-rating-list label.is-filled,
.participant-rating-list input[type="radio"]:checked + label {
    background-image: none;
    -webkit-mask-image: url('/assets/icons/star-solid.svg');
    mask-image: url('/assets/icons/star-solid.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: var(--color-state-warning-soft);
}

.participant-rating-readonly {
    --rating-count: 5;
    --rating-gap: 3px;
    width: 83.3333%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: var(--rating-gap);
    align-items: center;
}

.participant-rating-readonly-slot {
    flex: 0 0 auto;
    width: calc((100% - ((var(--rating-count) - 1) * var(--rating-gap))) / var(--rating-count));
    aspect-ratio: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.participant-rating-readonly-star {
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.participant-rating-readonly-star.is-filled {
    background-image: none;
    -webkit-mask-image: url('/assets/icons/star-solid.svg');
    mask-image: url('/assets/icons/star-solid.svg');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: var(--color-state-warning-soft);
}

.participant-rating-readonly-star.is-outline {
    background-image: url('/assets/icons/star.svg');
}

.participant-rating-label-row {
    --rating-count: 5;
    width: 83.3333%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    font-size: clamp(0.68rem, calc(1.1rem - (var(--rating-count) * 0.04rem)), 0.95rem);
    line-height: 1.25;
}

.participant-rating-label-left,
.participant-rating-label-right {
    min-width: 0;
    color: var(--color-grey-500);
    font-weight: 700;
}

.participant-rating-label-left {
    text-align: left;
}

.participant-rating-label-right {
    text-align: right;
}

.participant-rating-label-text {
    display: block;
    width: 100%;
    max-width: none;
    font-size: 1em;
    text-align: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.participant-rating-label-left .participant-rating-label-text {
    text-align: left;
}

.participant-rating-label-right .participant-rating-label-text {
    text-align: right;
}

.participant-rating-label-row.is-overlap .participant-rating-label-text {
    display: block;
    width: 100%;
    max-width: 100%;
}

.participant-rating-list.rating-count-1,
.participant-rating-label-row.rating-count-1,
.participant-rating-readonly.rating-count-1 {
    --rating-count: 1;
}

.participant-rating-list.rating-count-2,
.participant-rating-label-row.rating-count-2,
.participant-rating-readonly.rating-count-2 {
    --rating-count: 2;
}

.participant-rating-list.rating-count-3,
.participant-rating-label-row.rating-count-3,
.participant-rating-readonly.rating-count-3 {
    --rating-count: 3;
}

.participant-rating-list.rating-count-4,
.participant-rating-label-row.rating-count-4,
.participant-rating-readonly.rating-count-4 {
    --rating-count: 4;
}

.participant-rating-list.rating-count-5,
.participant-rating-label-row.rating-count-5,
.participant-rating-readonly.rating-count-5 {
    --rating-count: 5;
}

.participant-rating-list.rating-count-6,
.participant-rating-label-row.rating-count-6,
.participant-rating-readonly.rating-count-6 {
    --rating-count: 6;
}

.participant-rating-list.rating-count-7,
.participant-rating-label-row.rating-count-7,
.participant-rating-readonly.rating-count-7 {
    --rating-count: 7;
}

.participant-rating-list.rating-count-8,
.participant-rating-label-row.rating-count-8,
.participant-rating-readonly.rating-count-8 {
    --rating-count: 8;
}

.participant-rating-list.rating-count-9,
.participant-rating-label-row.rating-count-9,
.participant-rating-readonly.rating-count-9 {
    --rating-count: 9;
}

.participant-rating-list.rating-count-10,
.participant-rating-label-row.rating-count-10,
.participant-rating-readonly.rating-count-10 {
    --rating-count: 10;
}

.preview-rating {
    font-size: 24px;
    letter-spacing: 4px;
}

.preview-caesar-wrap {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
}

.preview-caesar-wrap.is-with-neutral {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-caesar-icon {
    width: 36px;
    height: 36px;
    justify-self: center;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.preview-caesar-icon-down {
    background-color: var(--color-state-error-soft);
    background-image: none;
    -webkit-mask-image: url('/assets/icons/hand-thumb-down.svg');
    mask-image: url('/assets/icons/hand-thumb-down.svg');
    transform: translateY(6px);
}

.preview-caesar-icon-neutral {
    background-color: var(--color-state-warning-soft);
    background-image: none;
    -webkit-mask-image: url('/assets/icons/hand-thumb-left.svg');
    mask-image: url('/assets/icons/hand-thumb-left.svg');
    transform: translateY(0);
}

.preview-caesar-icon-up {
    background-color: var(--color-state-success-soft);
    background-image: none;
    -webkit-mask-image: url('/assets/icons/hand-thumb-up.svg');
    mask-image: url('/assets/icons/hand-thumb-up.svg');
    transform: translateY(-6px);
}

.preview-scale-head,
.preview-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-brand-teal-700);
}

.preview-range {
    width: 100%;
}

.preview-ranking-list {
    margin: 8px 0 0 18px;
    padding: 0;
}

.preview-ranking-item {
    margin: 8px 0;
}

.preview-generic-note {
    margin: 0;
    color: var(--color-brand-teal-700);
}

.preview-generic-note + .preview-generic-note {
    margin-top: 0.9em;
}

.participant-divider-picture-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
}

.participant-divider-picture-item {
    position: relative;
    display: table;
    margin: 0 auto;
    max-width: 100%;
}

.participant-divider-picture-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(calc(52dvh - var(--safe-area-top) - var(--safe-area-bottom)), 480px);
    object-fit: contain;
    margin: 0 auto;
    border-radius: var(--border-radius, 8px);
    background: var(--color-surface-muted, #f5f5f5);
}

.participant-divider-picture-title {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgb(var(--color-grey-000-rgb) / 0.58);
    backdrop-filter: blur(2px);
    color: var(--color-grey-1000, #111111);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.preview-empty-note {
    margin: 12px 0 0 0;
    color: var(--color-brand-teal-700);
}

.preview-browser-status-bar-tablet .preview-status-battery-percent {
    margin-right: 1px;
}

.preview-status-island {
    width: var(--preview-island-width, 100px);
    height: var(--preview-island-height, 24px);
    border-radius: 999px;
    background: var(--color-grey-000);
    justify-self: center;
}

.preview-status-icons {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #111111;
    font-size: var(--preview-status-font-size, 12px);
    line-height: 1;
}

.preview-status-cell {
    width: calc(var(--preview-status-icon-size, 11px) + 1px);
    height: calc(var(--preview-status-icon-size, 11px) - 2px);
    display: inline-block;
    position: relative;
}

.preview-status-cell::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2px;
    height: 4px;
    background: currentColor;
    box-shadow: 3px -1px 0 0 currentColor, 6px -3px 0 0 currentColor, 9px -5px 0 0 currentColor;
    border-radius: 1px;
}

.preview-status-wifi {
    width: calc(var(--preview-status-icon-size, 11px) + 2px);
    height: var(--preview-status-icon-size, 11px);
    display: inline-block;
    position: relative;
}

.preview-status-wifi::before,
.preview-status-wifi::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 1.5px solid currentColor;
    border-bottom: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.preview-status-wifi::before {
    width: 12px;
    height: 6px;
    bottom: 2px;
}

.preview-status-wifi::after {
    width: 8px;
    height: 4px;
    bottom: 2px;
}

.preview-status-battery {
    width: calc(var(--preview-status-icon-size, 11px) + 16px);
    height: calc(var(--preview-status-icon-size, 11px) - 1px);
    border: 1.5px solid currentColor;
    border-radius: 3px;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 1px;
    box-sizing: border-box;
}

.preview-status-battery::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 5px;
    border-radius: 1px;
    background: currentColor;
}

.preview-status-battery-level {
    width: 50%;
    height: 100%;
    border-radius: 2px;
    background: currentColor;
}

.preview-browser-address-bar {
    height: var(--preview-address-height, 42px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
}

.preview-browser-address-button {
    width: var(--preview-address-button-size, 24px);
    height: var(--preview-address-button-size, 24px);
    border-radius: 999px;
    background: transparent;
    color: #7b7f87;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.preview-browser-address-button-left::before {
    content: "aA";
    font-size: var(--preview-address-button-font-size, 12px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
}

.preview-browser-address-button-right::before {
    content: "↻";
    font-size: calc(var(--preview-address-button-font-size, 12px) + 2px);
    line-height: 1;
    transform: translateY(-0.5px);
}

.preview-browser-address-bar-tablet {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 var(--preview-address-side-inset, 16px) 2px;
}

.preview-browser-address-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.preview-browser-address-group-right {
    margin-right: 0;
    justify-self: end;
}

.preview-browser-address-bar-tablet .preview-browser-url-pill {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    box-sizing: border-box;
}

.preview-browser-address-bar-tablet .preview-browser-url-text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-browser-address-icon {
    width: var(--preview-tablet-address-icon-size, 20px);
    height: var(--preview-tablet-address-icon-size, 20px);
    display: inline-block;
    position: relative;
    color: #7f858f;
}

.preview-browser-address-icon-sidebar::before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 3px;
    bottom: 3px;
    border: var(--preview-tablet-address-icon-stroke, 1.9px) solid currentColor;
    border-radius: 4px;
}

.preview-browser-address-icon-sidebar::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    border-left: var(--preview-tablet-address-icon-stroke, 1.9px) solid currentColor;
}

.preview-browser-address-icon-back::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: var(--preview-tablet-address-icon-stroke, 1.9px) solid currentColor;
    border-left: var(--preview-tablet-address-icon-stroke, 1.9px) solid currentColor;
    border-radius: 1px;
    transform: translateY(-50%) rotate(-45deg);
}

.preview-browser-address-icon-share::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 4px;
    height: 8px;
    border: var(--preview-tablet-address-icon-stroke, 1.9px) solid currentColor;
    border-top: 0;
    border-radius: 2px;
}

.preview-browser-address-icon-share::after {
    content: "";
    position: absolute;
    left: calc(50% - 3.5px);
    top: 3px;
    width: 7px;
    height: 7px;
    border-top: var(--preview-tablet-address-icon-stroke, 1.9px) solid currentColor;
    border-left: var(--preview-tablet-address-icon-stroke, 1.9px) solid currentColor;
    border-right: 0;
    border-bottom: 0;
    transform: rotate(45deg);
}

.preview-browser-address-icon-newtab::before {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border: var(--preview-tablet-address-icon-stroke, 1.9px) solid currentColor;
    border-radius: 3px;
}

.preview-browser-address-icon-newtab::after {
    content: "+";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -54%);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

.preview-browser-address-icon-tablist::before,
.preview-browser-address-icon-tablist::after {
    content: "";
    position: absolute;
    border: var(--preview-tablet-address-icon-stroke, 1.9px) solid currentColor;
    border-radius: 2.5px;
}

.preview-browser-address-icon-tablist::before {
    left: 7px;
    top: 4px;
    width: 9px;
    height: 10px;
}

.preview-browser-address-icon-tablist::after {
    left: 4px;
    top: 8px;
    width: 9px;
    height: 10px;
}

.preview-browser-url-pill {
    flex: 1;
    height: 32px;
    background: #e3e3ea;
    border-radius: 8px;
    display: grid;
    grid-template-columns: var(--preview-address-button-size, 24px) 1fr var(--preview-address-button-size, 24px);
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    box-sizing: border-box;
}

.preview-browser-url-text {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: calc(var(--preview-status-font-size, 12px) - 1px);
    line-height: 1;
    font-weight: 500;
    color: #5f646c;
    text-align: center;
}

.preview-browser-iframe {
    flex: 1;
    width: 100%;
    border: 0;
    display: block;
    pointer-events: auto;
    min-height: 0;
    max-height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.preview-browser-chrome-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: var(--preview-toolbar-bottom-inset, 10px);
    width: calc(100% - 20px);
    height: var(--preview-toolbar-height, 50px);
    background: rgb(var(--color-grey-1000-rgb) / 0.82);
    border: 1px solid rgb(var(--color-grey-800-rgb) / 0.64);
    border-radius: var(--preview-toolbar-radius, 16px);
    box-shadow: 0 6px 18px rgb(var(--color-grey-000-rgb) / 0.14), inset 0 1px 0 rgb(var(--color-grey-1000-rgb) / 0.78);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0 var(--preview-toolbar-padding-x, 15px);
    box-sizing: border-box;
    z-index: 3;
    pointer-events: none;
}

.preview-browser-nav-icon {
    width: var(--preview-nav-icon-size, 22px);
    height: var(--preview-nav-icon-size, 22px);
    display: inline-block;
    position: relative;
    color: #8d9097;
    opacity: 1;
}

.preview-nav-forward {
    margin-right: 0;
}

.preview-nav-share {
    margin-left: 0;
}

.preview-nav-back::before,
.preview-nav-forward::before {
    content: "";
    position: absolute;
    top: calc(50% + var(--preview-icon-offset-y, 0px));
    width: var(--preview-icon-chevron-size, 10px);
    height: var(--preview-icon-chevron-size, 10px);
    border-top: var(--preview-toolbar-stroke, 2.2px) solid currentColor;
    border-left: var(--preview-toolbar-stroke, 2.2px) solid currentColor;
    border-radius: 1px;
}

.preview-nav-back::before {
    left: 8px;
    transform: translateY(-50%) rotate(-45deg);
}

.preview-nav-forward::before {
    right: 8px;
    transform: translateY(-50%) rotate(135deg);
}

.preview-nav-share::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: calc(3px + var(--preview-icon-offset-y, 0px));
    height: 12px;
    border: var(--preview-toolbar-stroke, 2.2px) solid currentColor;
    border-top: 0;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

.preview-nav-share::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(1px + var(--preview-icon-offset-y, 0px));
    width: 8px;
    height: 12px;
    background: currentColor;
    clip-path: polygon(50% 0, 100% 34%, 72% 34%, 72% 100%, 28% 100%, 28% 34%, 0 34%);
    transform: translateX(-50%);
}

.preview-nav-share {
    position: relative;
    box-sizing: border-box;
}

.preview-nav-reading-list::before,
.preview-nav-reading-list::after {
    content: "";
    position: absolute;
    border: var(--preview-toolbar-stroke, 2.2px) solid currentColor;
    border-radius: 2.5px;
}

.preview-nav-reading-list::before {
    left: 4px;
    right: 4px;
    top: calc(3px + var(--preview-icon-offset-y, 0px));
    bottom: calc(3px - var(--preview-icon-offset-y, 0px));
}

.preview-nav-reading-list::after {
    left: 50%;
    top: calc(5px + var(--preview-icon-offset-y, 0px));
    bottom: calc(5px - var(--preview-icon-offset-y, 0px));
    width: 0;
    border-top: 0;
    border-right: 0;
}

.preview-nav-tabs::before,
.preview-nav-tabs::after {
    content: "";
    position: absolute;
    border: var(--preview-toolbar-stroke, 2.2px) solid currentColor;
    border-radius: 3px;
}

.preview-nav-tabs::before {
    left: 8px;
    top: calc(3px + var(--preview-icon-offset-y, 0px));
    width: 10px;
    height: 13px;
}

.preview-nav-tabs::after {
    left: 4px;
    top: calc(8px + var(--preview-icon-offset-y, 0px));
    width: 10px;
    height: 13px;
}

.builder-preview-paused {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-grey-1000);
}

.builder-preview-paused span {
    width: 10px;
    height: 52px;
    border-radius: 999px;
    background: var(--color-grey-300);
}

.preview-device-tablet-landscape .builder-preview-screen {
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .builder-preview-frame {
        transition: none;
    }
}
