@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    font-family: 'DM Sans', sans-serif;
    color: #f4f8f1;
    background: #173b34;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box
}

*,
*::before,
*::after {
    box-sizing: inherit
}

html,
body {
    margin: 0;
    min-width: 320px;
    width: 100%;
    max-width: 100%;
    overflow-x: clip
}

body {
    min-height: 100vh;
    background: #173b34
}

.cleaner-toolbar {
    position: fixed;
    z-index: 10000;
    inset: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
    min-width: 0;
    padding: 0 8px 8px;
    border-bottom: 4px solid #9bd293;
    background: rgba(23, 59, 52, .99);
    color: #f4f8f1;
    box-shadow: 0 8px 26px #10151755
}

.cleaner-home {
    flex: 0 0 auto;
    width: 77px;
    height: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #9bd293;
    border-radius: 3px;
    color: #ddf0d5;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap
}

.cleaner-home:hover {
    background: #ddf0d5;
    color: #173b34;
    text-decoration: none
}

.cleaner-control {
    display: flex;
    flex: 1 1 145px;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    gap: 4px;
    margin: 0;
    color: #dce8dc;
    font-size: 11px;
    font-weight: 700
}

.cleaner-control>span {
    display: block;
    min-height: 14px;
    line-height: 1.1
}

.cleaner-control input,
.cleaner-control select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 38px;
    min-height: 38px;
    padding: 6px 9px;
    border: 1px solid #82998b;
    border-radius: 3px;
    background: #f7faf6;
    color: #18352e;
    font-size: 13px
}

.cleaner-control input[type=color] {
    width: 100%;
    padding: 3px
}

.cleaner-design {
    flex-basis: 190px
}

.cleaner-color {
    flex: 0 0 70px
}

.cleaner-business {
    max-width: none
}

.cleaner-phone {
    max-width: 160px
}

.cleaner-settings {
    position: static;
    display: block;
    flex: 0 0 auto
}

.cleaner-settings summary {
    box-sizing: border-box;
    width: 121px;
    height: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid #9bd293;
    border-radius: 3px;
    background: #9bd293;
    color: #173b34;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    list-style: none
}

.cleaner-settings summary::-webkit-details-marker {
    display: none
}

.cleaner-settings summary::after {
    content: '+';
    font: 700 16px/1 'DM Sans', sans-serif
}

.cleaner-settings[open] summary::after {
    content: '−'
}

.cleaner-settings-panel {
    position: fixed;
    z-index: 10001;
    top: var(--cleaner-toolbar-height, 76px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 70dvh;
    overflow: auto;
    display: grid;
    box-sizing: border-box;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px clamp(12px, 2vw, 28px) 20px;
    border: 1px solid #6d8a7c;
    border-top: 2px solid #9bd293;
    background: #173b34;
    color: #f4f8f1;
    box-shadow: 0 18px 34px #10151788
}

.cleaner-settings[open] .cleaner-settings-panel {
    animation: cleaner-settings-in .15s ease-out
}

@keyframes cleaner-settings-in {
    from {
        opacity: .65;
        transform: translateY(-5px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.cleaner-settings-panel .cleaner-control {
    min-width: 0;
    align-self: start
}

.cleaner-settings-panel .cleaner-control input,
.cleaner-settings-panel .cleaner-control textarea {
    width: 100%;
    min-width: 0
}

.cleaner-settings-panel .cleaner-control textarea {
    height: 94px;
    min-height: 94px;
    padding: 8px;
    font: 12px/1.4 'DM Sans', sans-serif;
    resize: vertical
}

.cleaner-wide {
    grid-column: span 2
}

.cleaner-settings-panel small {
    display: block;
    color: #d4c1b1;
    font-size: 11px;
    line-height: 1.35
}

.cleaner-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    color: #f5efe6;
    font-size: 12px
}

.cleaner-toggle-group {
    grid-column: 1 / -1;
    justify-self: center;
    width: max-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.cleaner-toggle-group>.cleaner-toggle {
    width: max-content;
    max-width: 100%;
}

.cleaner-toggle input {
    width: 17px;
    height: 17px;
    accent-color: #e18b45
}

.cleaner-note {
    grid-column: 1/-1;
    margin: 0;
    color: #d4c1b1;
    font-size: 12px;
    text-align: center
}

.cleaner-stage {
    width: 100%;
    max-width: 100%;
    padding-top: var(--cleaner-toolbar-height, 76px);
    overflow-x: clip
}

.cleaner-stage iframe {
    display: block;
    width: 100%;
    height: calc(100dvh - var(--cleaner-toolbar-height, 76px));
    min-height: 600px;
    border: 0;
    background: #f3efe6
}

.cleaner-loading {
    padding: 20px;
    color: #f5efe6;
    text-align: center
}

@media(max-width:1120px) {
    .cleaner-toolbar {
        gap: 8px 12px
    }

    .cleaner-design {
        flex-basis: 165px
    }

}

@media(max-width:760px) {
    .cleaner-toolbar {
        padding: 0 10px 6px;
        gap: 7px 9px;
        justify-content: center
    }

    .cleaner-control {
        flex-basis: calc(50% - 8px);
        font-size: 10px
    }

    .cleaner-color {
        flex: 0 0 58px
    }

    .cleaner-design,
    .cleaner-business,
    .cleaner-phone {
        flex-basis: calc(50% - 8px);
        width: auto
    }

    .cleaner-design,
    .cleaner-business {
        max-width: none
    }

    .cleaner-settings summary {
        padding-inline: 8px;
        font-size: 11px
    }

    .cleaner-settings-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 62dvh;
        padding: 12px
    }

    .cleaner-stage iframe {
        height: calc(100dvh - var(--cleaner-toolbar-height, 150px));
        min-height: 560px
    }
}

@media(max-width:430px) {
    .cleaner-toolbar {
        gap: 7px 9px;
        padding-inline: 10px
    }

    .cleaner-control input,
    .cleaner-control select {
        font-size: 12px;
        padding-inline: 6px
    }

    .cleaner-settings summary {
        width: 108px;
        padding-inline: 8px;
        font-size: 11px
    }

}

@media(prefers-reduced-motion:reduce) {

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