:root {
    --playground-ink: #191916;
    --playground-paper: #f4f1e9;
    --playground-surface: #fffefb;
    --playground-soft: #ebe6da;
    --playground-line: #d9d2c4;
    --playground-muted: #716c62;
    --playground-accent: #d66b16;
    --playground-accent-soft: #fff0e3;
    --playground-danger: #a43a31;
    --playground-editor: #eef1f3;
    --playground-editor-line: #b8c0c7;
    --playground-ease: cubic-bezier(.2, .8, .2, 1);
    --editor-scale: 1;
    --preview-scale: 1;
    --widget-scale: 1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body.playground-page {
    width: 100%;
    min-width: 0;
}

html.playground-embed-document,
html.playground-embed-document body {
    min-height: 0;
    background: transparent;
}

body.playground-page {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    color: var(--playground-ink);
    background:
        radial-gradient(circle at 20% -10%, rgba(214, 107, 22, .1), transparent 28rem),
        var(--playground-paper);
    font-family: var(--mk-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.playground-page .material-icons {
    width: 1.25em;
    max-width: 1.25em;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    line-height: 1;
    white-space: nowrap;
}

body.playground-page--embed {
    min-height: 0;
    background: transparent;
}

.playground-page button,
.playground-page a {
    -webkit-tap-highlight-color: transparent;
}

.playground-page button {
    font: inherit;
}

.playground-page :focus-visible {
    outline: 3px solid rgba(214, 107, 22, .4);
    outline-offset: 3px;
}

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

.playground-header {
    width: min(1420px, calc(100% - 48px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(25, 25, 22, .1);
}

.playground-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--playground-ink);
    font-family: var(--mk-font-bold, sans-serif);
    font-size: .94rem;
    font-weight: 750;
    text-decoration: none;
}

.playground-brand img {
    width: 30px;
    height: 30px;
}

.playground-header__product {
    color: var(--playground-muted);
    font-size: .86rem;
    letter-spacing: .04em;
}

.playground-hero {
    width: min(1420px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(38px, 5vw, 66px) 0 clamp(30px, 4vw, 50px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: end;
    gap: clamp(36px, 7vw, 110px);
}

.playground-eyebrow {
    margin: 0 0 10px;
    color: var(--playground-accent);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.playground-hero h1 {
    margin: 0;
    font-family: var(--mk-font-display, sans-serif);
    font-size: clamp(3.4rem, 7vw, 7rem);
    line-height: .9;
    letter-spacing: -.06em;
}

.playground-lede {
    max-width: 620px;
    margin: 0;
    color: var(--playground-muted);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.55;
}

.playground-value-list {
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    list-style: none;
}

.playground-value-list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--playground-ink);
    font-size: .78rem;
    font-weight: 750;
}

.playground-value-list .material-icons {
    color: var(--playground-accent);
    font-size: 17px;
}

.playground-experience {
    width: min(1480px, calc(100% - 32px));
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
}

.playground-page--embed .playground-experience {
    width: 100%;
    padding: clamp(12px, 2vw, 24px);
}

.playground-experience__intro {
    margin: 0 8px 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.playground-experience__intro h2 {
    margin: 0;
    font-family: var(--mk-font-display, sans-serif);
    font-size: clamp(1.9rem, 3.4vw, 3.35rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.playground-experience__intro > p {
    max-width: 470px;
    margin: 0 0 3px;
    color: var(--playground-muted);
    font-size: .87rem;
    line-height: 1.5;
    text-align: right;
}

.playground-product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(600px, 1.55fr) minmax(350px, .85fr);
    align-items: stretch;
    gap: 14px;
}

.playground-editor-panel,
.playground-preview-panel {
    min-width: 0;
    border: 1px solid rgba(25, 25, 22, .12);
    border-radius: 28px;
    background: rgba(255, 254, 251, .9);
    box-shadow: 0 24px 70px rgba(49, 43, 32, .09);
}

.playground-editor-panel {
    padding: 18px;
}

.playground-preview-panel {
    padding: 18px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 50% 32%, rgba(255, 255, 255, .86), transparent 19rem),
        #e8e3d8;
}

.playground-panel-heading {
    min-height: 52px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.playground-panel-heading > div:first-child {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.playground-panel-heading__step {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--playground-ink);
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.playground-panel-heading h3 {
    margin: 0;
    font-family: var(--mk-font-bold, sans-serif);
    font-size: 1rem;
    letter-spacing: -.01em;
}

.playground-panel-heading p {
    margin: 3px 0 0;
    color: var(--playground-muted);
    font-size: .76rem;
}

.playground-orientation {
    padding: 3px;
    display: inline-flex;
    gap: 2px;
    border: 1px solid var(--playground-line);
    border-radius: 999px;
    background: #f0ece4;
}

.playground-orientation button {
    min-height: 44px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 999px;
    color: var(--playground-muted);
    background: transparent;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 800;
    transition:
        color 180ms var(--playground-ease),
        background 180ms var(--playground-ease),
        box-shadow 180ms var(--playground-ease),
        transform 180ms var(--playground-ease);
}

.playground-orientation button:active {
    transform: scale(.97);
}

.playground-orientation button.is-active {
    color: var(--playground-ink);
    background: #fff;
    box-shadow: 0 4px 12px rgba(25, 25, 22, .1);
}

.playground-orientation .material-icons {
    font-size: 17px;
}

.playground-builder {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 14px;
}

.playground-library {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 8px 14px 14px;
    border: 1px solid #d8dde0;
    border-radius: 20px;
    background: #f5f7f8;
}

.playground-library__heading {
    padding: 2px 5px 10px;
}

.playground-library__heading h4 {
    margin: 0;
    font-size: .84rem;
}

.playground-library__heading p {
    margin: 3px 0 0;
    color: #667078;
    font-size: .7rem;
}

.playground-widget-tray {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 500px;
    padding: 2px 6px 2px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aeb5ba transparent;
}

.playground-widget-tray::-webkit-scrollbar {
    width: 6px;
}

.playground-widget-tray::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #aeb5ba;
}

.playground-widget-choice {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 8px 7px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #24292d;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition:
        transform 180ms var(--playground-ease),
        border-color 180ms var(--playground-ease),
        background 180ms var(--playground-ease),
        box-shadow 180ms var(--playground-ease);
}

.playground-widget-choice > span {
    min-width: 0;
}

.playground-widget-choice:hover {
    transform: translateX(2px);
    border-color: #d9dde0;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 38, 43, .07);
}

.playground-widget-choice[aria-selected="true"] {
    border-color: rgba(214, 107, 22, .42);
    background: var(--playground-accent-soft);
}

.playground-widget-choice__icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: #24292d;
    font-size: 19px;
}

.playground-widget-choice__icon svg {
    width: 21px;
    height: 21px;
    display: block;
    overflow: hidden;
}

.playground-widget-choice strong,
.playground-widget-choice small {
    display: block;
}

.playground-widget-choice strong {
    font-size: .76rem;
}

.playground-widget-choice small {
    margin-top: 2px;
    overflow: hidden;
    color: #737c83;
    font-size: .62rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playground-widget-choice__arrow {
    color: #92999e;
    font-size: 17px;
}

.playground-editor-workspace {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.playground-editor-instruction {
    min-height: 28px;
    margin: 0 3px 7px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #626d74;
    font-size: .7rem;
}

.playground-editor-instruction .material-icons {
    font-size: 17px;
}

.playground-editor-stage {
    width: 100%;
    min-width: 0;
    min-height: 210px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd1d5;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .6), transparent),
        var(--playground-editor);
}

.playground-editor-canvas {
    max-width: 100%;
    position: relative;
    flex: 0 0 auto;
    border: 1px solid #aab3b9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(31, 38, 43, .12);
    transition: width 340ms var(--playground-ease), height 340ms var(--playground-ease);
}

#playground-grid {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(69, 84, 94, .15) 1px, transparent 1px),
        linear-gradient(rgba(69, 84, 94, .15) 1px, transparent 1px),
        #fbfcfc;
    background-size:
        calc(160px * var(--editor-scale)) calc(160px * var(--editor-scale)),
        calc(160px * var(--editor-scale)) calc(160px * var(--editor-scale));
}

#playground-grid .grid-stack-item {
    cursor: default;
}

#playground-grid .grid-stack-item:focus {
    outline: none;
}

#playground-grid .grid-stack-item-content {
    border: 1px solid rgba(77, 89, 97, .42);
    border-radius: calc(7px * var(--editor-scale));
    background: #fff;
    box-shadow: 0 2px calc(8px * var(--editor-scale)) rgba(31, 38, 43, .1);
    transition:
        border-color 180ms var(--playground-ease),
        box-shadow 180ms var(--playground-ease),
        transform 180ms var(--playground-ease);
}

#playground-grid .grid-stack-item:hover .grid-stack-item-content,
#playground-grid .grid-stack-item:focus-visible .grid-stack-item-content {
    border-color: var(--playground-accent);
    box-shadow: 0 0 0 2px rgba(214, 107, 22, .16), 0 8px 22px rgba(31, 38, 43, .14);
}

#playground-grid .grid-stack-item.is-selected .grid-stack-item-content {
    border-color: var(--playground-accent);
    box-shadow: 0 0 0 3px rgba(214, 107, 22, .2), 0 9px 24px rgba(31, 38, 43, .15);
}

#playground-grid.is-dragging .grid-stack-item.ui-draggable-dragging .grid-stack-item-content {
    cursor: grabbing;
    transform: scale(1.018);
    box-shadow: 0 18px 40px rgba(31, 38, 43, .22);
}

.playground-editor-widget {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.playground-editor-widget .playground-widget-native {
    opacity: .62;
    filter: grayscale(.38) contrast(.94);
    pointer-events: none;
}

.playground-widget-native {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Open Sans", sans-serif;
    transform: scale(var(--widget-scale));
    transform-origin: top left;
}

.playground-generated-preview,
.playground-generated-preview img {
    width: 100%;
    height: 100%;
    display: block;
}

.playground-generated-preview img {
    object-fit: fill;
    user-select: none;
    -webkit-user-drag: none;
}

.playground-editor-widget__chrome {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.playground-drag-handle,
.playground-widget-remove {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    position: absolute;
    top: 2px;
    z-index: 7;
    border: 1px solid rgba(25, 25, 22, .18);
    border-radius: 50%;
    color: #222;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 14px rgba(25, 25, 22, .14);
    pointer-events: auto;
    transition:
        opacity 160ms var(--playground-ease),
        transform 160ms var(--playground-ease),
        background 160ms var(--playground-ease);
}

.playground-drag-handle {
    left: 2px;
    opacity: .94;
    cursor: grab;
    touch-action: none;
}

.playground-drag-handle:active {
    cursor: grabbing;
}

.playground-widget-remove {
    right: 2px;
    top: 2px;
    bottom: auto;
    border: 0;
    color: var(--playground-danger);
    cursor: pointer;
    opacity: 0;
    transform: scale(.86);
}

.playground-drag-handle .material-icons,
.playground-widget-remove .material-icons {
    font-size: 20px;
}

.grid-stack-item:hover .playground-widget-remove,
.grid-stack-item.is-selected .playground-widget-remove,
.playground-widget-remove:focus-visible {
    opacity: 1;
    transform: scale(1);
}

.playground-editor-widget__label {
    max-width: calc(100% - 12px);
    min-height: 20px;
    padding: 5px 8px;
    position: absolute;
    left: 6px;
    bottom: 5px;
    overflow: hidden;
    border-radius: 999px;
    color: #fff;
    background: rgba(25, 25, 22, .82);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    opacity: .92;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition:
        color 160ms var(--playground-ease),
        background 160ms var(--playground-ease),
        opacity 160ms var(--playground-ease);
}

.grid-stack-item:hover .playground-editor-widget__label,
.grid-stack-item.is-selected .playground-editor-widget__label {
    opacity: 1;
}

.grid-stack-item.is-selected .playground-editor-widget__label {
    color: #21180f;
    background: rgba(255, 240, 227, .96);
}

.playground-editor-empty,
.playground-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #687178;
    text-align: center;
    pointer-events: none;
}

.playground-editor-empty[hidden],
.playground-preview-empty[hidden] {
    display: none;
}

.playground-editor-empty {
    z-index: 10;
    background: rgba(251, 252, 252, .92);
}

.playground-editor-empty .material-icons {
    color: var(--playground-accent);
    font-size: 30px;
}

.playground-editor-empty strong {
    font-size: .8rem;
}

.playground-editor-empty span:last-child {
    font-size: .67rem;
}

.playground-selection-bar {
    min-height: 54px;
    margin-top: 9px;
    padding: 5px 5px 5px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(214, 107, 22, .28);
    border-radius: 15px;
    background: var(--playground-accent-soft);
}

.playground-selection-bar[hidden] {
    display: none;
}

.playground-selection-bar > span {
    min-width: 0;
    overflow: hidden;
    font-size: .73rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playground-selection-bar > div {
    display: flex;
    gap: 3px;
}

.playground-selection-bar button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #353633;
    background: rgba(255, 255, 255, .8);
    cursor: pointer;
}

.playground-selection-bar button:hover {
    background: #fff;
}

.playground-selection-bar button.is-destructive {
    color: var(--playground-danger);
}

.playground-selection-bar .material-icons {
    font-size: 18px;
}

.playground-actions {
    margin-top: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
}

.playground-actions button {
    min-height: 44px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    border-radius: 10px;
    color: #606970;
    background: transparent;
    cursor: pointer;
    font-size: .69rem;
    font-weight: 800;
}

.playground-actions button:hover:not(:disabled) {
    color: #202529;
    background: #f2f4f5;
}

.playground-actions button:disabled {
    cursor: not-allowed;
    opacity: .38;
}

.playground-actions .material-icons {
    font-size: 17px;
}

.playground-live-badge {
    min-height: 30px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    color: #40604b;
    background: rgba(255, 255, 255, .68);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.playground-live-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5b8c69;
    box-shadow: 0 0 0 4px rgba(91, 140, 105, .13);
}

.playground-preview-stage {
    width: 100%;
    min-width: 0;
    min-height: 250px;
    padding: 16px clamp(12px, 2vw, 20px) 24px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
}

.playground-frame {
    padding: var(--preview-bezel);
    position: relative;
    flex: 0 0 auto;
    border: max(1px, calc(1px * var(--preview-scale))) solid #050505;
    border-radius: calc(26px * var(--preview-scale));
    background:
        linear-gradient(145deg, #373737 0%, #090909 50%, #242424 100%);
    box-shadow:
        0 calc(28px * var(--preview-scale)) calc(48px * var(--preview-scale)) rgba(16, 15, 12, .3),
        inset 0 calc(1px * var(--preview-scale)) calc(1px * var(--preview-scale)) rgba(255, 255, 255, .24),
        inset 0 calc(-2px * var(--preview-scale)) calc(3px * var(--preview-scale)) rgba(0, 0, 0, .8);
    transition:
        width 380ms var(--playground-ease),
        height 380ms var(--playground-ease),
        padding 380ms var(--playground-ease);
}

.playground-screen {
    position: relative;
    overflow: hidden;
    border-radius: calc(3px * var(--preview-scale));
    background: #fff;
    box-shadow: inset 0 0 0 max(1px, calc(1px * var(--preview-scale))) rgba(0, 0, 0, .28);
    transition: width 380ms var(--playground-ease), height 380ms var(--playground-ease);
}

.playground-preview-layout {
    position: absolute;
    inset: 0;
}

.playground-preview-widget {
    position: absolute;
    overflow: hidden;
    background: #fff;
    transition:
        left 300ms var(--playground-ease),
        top 300ms var(--playground-ease),
        width 300ms var(--playground-ease),
        height 300ms var(--playground-ease),
        opacity 180ms var(--playground-ease);
}

.playground-preview-empty {
    z-index: 2;
    color: #777;
    background: #f8f8f6;
    font-size: calc(13px * var(--preview-scale));
}

.playground-refresh-wash {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #262626;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: saturation;
}

.playground-refresh-wash.is-refreshing {
    animation: playground-refresh 360ms var(--playground-ease);
}

@keyframes playground-refresh {
    0% { opacity: 0; }
    38% { opacity: .12; }
    100% { opacity: 0; }
}

.playground-frame-mark {
    position: absolute;
    left: 50%;
    bottom: calc(9px * var(--preview-scale));
    color: rgba(255, 255, 255, .55);
    font-size: calc(7px * var(--preview-scale));
    font-weight: 800;
    letter-spacing: calc(1.5px * var(--preview-scale));
    transform: translateX(-50%);
}

.playground-preview-note {
    max-width: 380px;
    margin: 8px auto 0;
    color: #746f65;
    font-size: .68rem;
    line-height: 1.45;
    text-align: center;
}

.playground-mobile-tabs {
    display: none;
}

.playground-size-sheet {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
}

.playground-size-sheet[hidden] {
    display: none;
}

.playground-size-sheet__scrim {
    position: absolute;
    inset: 0;
    background: rgba(19, 19, 17, .44);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.playground-size-sheet__panel {
    width: min(620px, calc(100% - 28px));
    max-height: min(720px, calc(100dvh - 28px));
    padding: 20px;
    position: relative;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 26px;
    background: var(--playground-surface);
    box-shadow: 0 32px 90px rgba(19, 19, 17, .28);
}

.playground-size-sheet__panel > header {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.playground-size-sheet__panel header p {
    margin: 0 0 4px;
    color: var(--playground-accent);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.playground-size-sheet__panel header h3 {
    margin: 0;
    font-family: var(--mk-font-display, sans-serif);
    font-size: 1.65rem;
    letter-spacing: -.035em;
}

.playground-size-sheet__panel header button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--playground-line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.playground-size-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.playground-size-option {
    min-height: 112px;
    padding: 12px;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    border: 1px solid var(--playground-line);
    border-radius: 18px;
    color: var(--playground-ink);
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition:
        transform 180ms var(--playground-ease),
        border-color 180ms var(--playground-ease),
        box-shadow 180ms var(--playground-ease);
}

.playground-size-option:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: var(--playground-accent);
    box-shadow: 0 12px 28px rgba(49, 43, 32, .1);
}

.playground-size-option.is-replacement {
    border-color: rgba(164, 58, 49, .35);
    background: #fff9f8;
}

.playground-size-option:disabled {
    cursor: not-allowed;
    opacity: .52;
}

.playground-footprint {
    position: relative;
    justify-self: center;
    border: 1px solid #aeb5ba;
    border-radius: 5px;
    background:
        linear-gradient(90deg, rgba(77, 89, 97, .15) 1px, transparent 1px),
        linear-gradient(rgba(77, 89, 97, .15) 1px, transparent 1px),
        #f5f7f8;
}

.playground-footprint i {
    position: absolute;
    left: 0;
    top: 0;
    border: 1px solid var(--playground-accent);
    border-radius: 3px;
    background: rgba(214, 107, 22, .28);
}

.playground-size-option__copy strong,
.playground-size-option__copy > span,
.playground-size-option__copy small {
    display: block;
}

.playground-size-option__copy strong {
    font-size: .9rem;
}

.playground-size-option__copy > span {
    margin-top: 3px;
    color: var(--playground-muted);
    font-size: .72rem;
}

.playground-size-option__copy small {
    margin-top: 8px;
    color: #4f785b;
    font-size: .65rem;
    font-weight: 800;
}

.playground-size-option.needs-space small {
    color: var(--playground-muted);
}

.playground-size-option.is-replacement small {
    color: var(--playground-danger);
}

.playground-action-bar {
    min-width: min(520px, calc(100% - 28px));
    max-width: calc(100% - 28px);
    min-height: 58px;
    padding: 8px 9px 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 120;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    color: #fff;
    background: rgba(25, 25, 22, .94);
    box-shadow: 0 18px 55px rgba(18, 18, 16, .28);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
}

.playground-action-bar[hidden] {
    display: none;
}

.playground-action-bar > span {
    font-size: .78rem;
    line-height: 1.35;
}

.playground-action-bar > div {
    display: flex;
    gap: 5px;
}

.playground-action-bar button {
    min-height: 44px;
    padding: 8px 13px;
    border: 0;
    border-radius: 12px;
    color: var(--playground-ink);
    background: #fff;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 850;
    white-space: nowrap;
}

.playground-action-bar button + button {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.playground-cta {
    width: min(920px, calc(100% - 40px));
    margin: clamp(62px, 8vw, 105px) auto;
    padding: clamp(32px, 6vw, 58px);
    border-radius: 30px;
    color: #fff;
    background: var(--playground-ink);
    text-align: center;
    box-shadow: 0 28px 70px rgba(25, 25, 22, .2);
}

.playground-cta p {
    max-width: 700px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(.96rem, 1.6vw, 1.12rem);
    line-height: 1.6;
}

.playground-cta__button {
    min-height: 50px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    color: var(--playground-ink);
    background: #fff;
    font-weight: 850;
    text-decoration: none;
    transition: transform 180ms var(--playground-ease), box-shadow 180ms var(--playground-ease);
}

.playground-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .26);
}

.playground-cta__button .material-icons {
    font-size: 18px;
}

.playground-footer {
    width: min(1420px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(25, 25, 22, .1);
    color: var(--playground-muted);
    font-size: .76rem;
}

.playground-embed-fallback {
    margin: 10px 0 0;
    text-align: center;
}

.playground-embed-fallback a {
    color: var(--playground-muted);
    font-size: .72rem;
    text-underline-offset: 3px;
}

/* Minimal utility layer required by the production widget templates. */
.playground-widget-native .w-100 { width: 100% !important; }
.playground-widget-native .h-100 { height: 100% !important; }
.playground-widget-native .mw-100 { max-width: 100% !important; }
.playground-widget-native .mh-100 { max-height: 100% !important; }
.playground-widget-native .d-flex { display: flex !important; }
.playground-widget-native .d-grid { display: grid !important; }
.playground-widget-native .flex-column { flex-direction: column !important; }
.playground-widget-native .flex-row { flex-direction: row !important; }
.playground-widget-native .flex-grow-1 { flex-grow: 1 !important; min-width: 0; min-height: 0; }
.playground-widget-native .justify-content-between { justify-content: space-between !important; }
.playground-widget-native .justify-content-center { justify-content: center !important; }
.playground-widget-native .align-items-center { align-items: center !important; }
.playground-widget-native .align-items-start { align-items: flex-start !important; }
.playground-widget-native .align-items-end { align-items: flex-end !important; }
.playground-widget-native .align-self-start { align-self: flex-start !important; }
.playground-widget-native .text-center { text-align: center !important; }
.playground-widget-native .text-end { text-align: right !important; }
.playground-widget-native .overflow-hidden { overflow: hidden !important; }
.playground-widget-native .p-1 { padding: 4px !important; }
.playground-widget-native .p-2 { padding: 8px !important; }
.playground-widget-native .p-3 { padding: 16px !important; }
.playground-widget-native .px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.playground-widget-native .py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.playground-widget-native .py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.playground-widget-native .mb-1 { margin-bottom: 4px !important; }
.playground-widget-native .mb-2 { margin-bottom: 8px !important; }
.playground-widget-native .mt-2 { margin-top: 8px !important; }
.playground-widget-native .m-0 { margin: 0 !important; }
.playground-widget-native .gap-1 { gap: 4px !important; }
.playground-widget-native .gap-2 { gap: 8px !important; }
.playground-widget-native .border { border: 1px solid #111 !important; }
.playground-widget-native .border-top { border-top: 1px solid #111 !important; }
.playground-widget-native .border-dark { border-color: #111 !important; }
.playground-widget-native .rounded { border-radius: 6px !important; }
.playground-widget-native .rounded-2 { border-radius: 6px !important; }
.playground-widget-native .rounded-3 { border-radius: 10px !important; }
.playground-widget-native .rounded-pill { border-radius: 999px !important; }
.playground-widget-native .badge { padding: 3px 6px; display: inline-block; font-weight: 700; }
.playground-widget-native .img-fluid { max-width: 100%; height: auto; }

@media (max-width: 1180px) {
    .playground-product {
        grid-template-columns: minmax(560px, 1.4fr) minmax(320px, .8fr);
    }

    .playground-builder {
        grid-template-columns: 1fr;
    }

    .playground-library {
        padding: 11px;
    }

    .playground-library__heading {
        display: none;
    }

    .playground-widget-tray {
        max-height: none;
        padding: 0 0 3px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .playground-widget-choice {
        min-height: 52px;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .playground-widget-choice__arrow,
    .playground-widget-choice small {
        display: none;
    }
}

@media (min-width: 1021px) and (max-height: 820px) {
    .playground-header {
        min-height: 54px;
    }

    .playground-brand img {
        width: 26px;
        height: 26px;
    }

    .playground-hero {
        padding: 18px 0 16px;
        gap: clamp(28px, 5vw, 72px);
    }

    .playground-hero h1 {
        font-size: clamp(3.4rem, 5vw, 4.8rem);
    }

    .playground-lede {
        font-size: .96rem;
        line-height: 1.42;
    }

    .playground-value-list {
        margin-top: 9px;
        gap-block: 5px;
    }

    .playground-experience__intro {
        margin-bottom: 10px;
    }

    .playground-experience__intro .playground-eyebrow {
        display: none;
    }

    .playground-experience__intro h2 {
        font-size: clamp(1.8rem, 2.6vw, 2.45rem);
    }

    .playground-editor-panel,
    .playground-preview-panel {
        padding: 14px;
    }

    .playground-panel-heading {
        min-height: 44px;
        margin-bottom: 9px;
    }

    .playground-widget-tray {
        max-height: 330px;
    }

    .playground-preview-stage {
        min-height: 200px;
        padding-top: 8px;
        padding-bottom: 14px;
    }
}

@media (max-width: 1020px) {
    .playground-hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .playground-hero__copy {
        max-width: 680px;
    }

    .playground-experience__intro {
        align-items: start;
    }

    .playground-experience__intro > p {
        max-width: 340px;
    }

    .playground-mobile-tabs {
        width: min(360px, 100%);
        margin: 0 auto 12px;
        padding: 4px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        border: 1px solid var(--playground-line);
        border-radius: 999px;
        background: rgba(255, 255, 255, .64);
    }

    .playground-mobile-tabs button {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 0;
        border-radius: 999px;
        color: var(--playground-muted);
        background: transparent;
        cursor: pointer;
        font-size: .78rem;
        font-weight: 850;
        transition: color 180ms var(--playground-ease), background 180ms var(--playground-ease), box-shadow 180ms var(--playground-ease);
    }

    .playground-mobile-tabs button[aria-selected="true"] {
        color: var(--playground-ink);
        background: #fff;
        box-shadow: 0 4px 14px rgba(25, 25, 22, .1);
    }

    .playground-mobile-tabs .material-icons {
        font-size: 18px;
    }

    .playground-product {
        display: block;
    }

    body[data-playground-mobile-view="build"] .playground-preview-panel,
    body[data-playground-mobile-view="preview"] .playground-editor-panel {
        display: none;
    }

    .playground-preview-panel {
        min-height: 560px;
    }

    .playground-preview-stage {
        min-height: 400px;
        align-items: center;
    }
}

@media (max-width: 680px) {
    .playground-header,
    .playground-hero {
        width: min(100% - 28px, 1420px);
    }

    .playground-header {
        min-height: 52px;
    }

    .playground-hero {
        padding: 18px 0 18px;
        gap: 12px;
    }

    .playground-hero h1 {
        font-size: clamp(2.8rem, 14.5vw, 4.8rem);
        line-height: .92;
    }

    .playground-lede {
        max-width: 36rem;
        font-size: .94rem;
        line-height: 1.42;
    }

    .playground-value-list {
        margin-top: 10px;
        gap: 6px 14px;
    }

    .playground-value-list li {
        font-size: .71rem;
    }

    .playground-experience {
        width: min(100% - 16px, 1480px);
    }

    .playground-experience__intro {
        margin: 0 5px 10px;
        display: block;
    }

    .playground-experience__intro .playground-eyebrow,
    .playground-experience__intro > p {
        display: none;
    }

    .playground-experience__intro h2 {
        font-size: clamp(1.6rem, 8vw, 2.15rem);
    }

    .playground-editor-panel,
    .playground-preview-panel {
        padding: 12px;
        border-radius: 22px;
    }

    .playground-panel-heading {
        align-items: start;
        flex-wrap: wrap;
    }

    .playground-orientation {
        width: 100%;
    }

    .playground-orientation button {
        flex: 1;
    }

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

    .playground-widget-choice {
        width: 100%;
        min-width: 0;
        min-height: 64px;
        padding: 8px 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        text-align: center;
    }

    .playground-widget-choice strong {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 1.4em;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        font-size: .66rem;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .playground-widget-choice__icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        max-width: 32px;
        min-height: 32px;
        max-height: 32px;
        font-size: 17px;
    }

    .playground-widget-choice__icon svg {
        width: 19px;
        height: 19px;
    }

    .playground-editor-stage {
        min-height: 170px;
        padding: 8px;
    }

    .playground-selection-bar {
        align-items: start;
        flex-direction: column;
    }

    .playground-selection-bar > div {
        width: 100%;
        justify-content: space-between;
    }

    .playground-selection-bar button {
        flex: 1;
    }

    .playground-preview-panel {
        min-height: 480px;
    }

    .playground-preview-stage {
        min-height: 350px;
        padding: 8px;
    }

    .playground-size-options {
        grid-template-columns: 1fr;
    }

    .playground-action-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .playground-action-bar > div {
        width: 100%;
    }

    .playground-action-bar button {
        flex: 1;
    }
}

@media (max-width: 380px) {
    .playground-widget-tray {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .playground-actions button {
        padding-inline: 7px;
        font-size: .64rem;
    }

    .playground-editor-panel,
    .playground-preview-panel,
    .playground-builder,
    .playground-library,
    .playground-widget-tray,
    .playground-widget-choice {
        min-width: 0;
        max-width: 100%;
    }

    .playground-panel-heading__step {
        display: none;
    }
}

@media (hover: none) {
    .grid-stack-item.is-selected .playground-widget-remove,
    .grid-stack-item.is-selected .playground-editor-widget__label {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }

    .playground-refresh-wash {
        display: none;
    }
}
