/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./public/LiveEdit.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* CSS RESET*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

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

img {
    max-width: 100%;
    height: auto;
}

html {
    box-sizing: border-box;
}

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

.section-header>br:only-child,
.section-content>br:only-child,
.section-footer>br:only-child,
.item-header>br:only-child,
.item-content>br:only-child,
.item-footer>br:only-child {
    display: none !important;
}

@keyframes liveEditRotation {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* IFRAMES STYLE */
.live-edit_loading:not(.live-edit_button-icon) {
    opacity: 0.5;
    pointer-events: none !important;
}

.no-events {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.live-edit {
    background: #212134;
    position: fixed;
    top: 0;
    z-index: 999999;
    left: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    overflow: hidden;
}

@media (min-width: 1079px) {
    .live-edit .live-edit_panel {
        height: 100% !important;
    }

    .live-edit .live-edit_panel:has(#backend-iframe) {
        width: calc(25% + 55px);
        z-index: 1;
    }

    .live-edit .live-edit_panel:has(#frontend-iframe) {
        width: calc(75% - 55px);
    }

    .live-edit:not(:has(iframe[src="about:blank"])) .live-edit_panel:has(#backend-iframe) {
        max-width: calc(100% - 55px);
    }

    .live-edit:not(:has(iframe[src="about:blank"])) .live-edit_panel:has(#frontend-iframe) {
        min-width: 55px;
    }

    .live-edit:not(:has(iframe[src="about:blank"])) .live-edit_panel:has(#backend-iframe) {
        min-width: 455px;
    }

    .live-edit:has(#frontend-iframe[src="about:blank"]) .live-edit_panel:has(#backend-iframe),
    .live-edit:has(#backend-iframe[src="about:blank"]) .live-edit_panel:has(#frontend-iframe) {
        width: 100% !important;
    }

    .live-edit:has(#frontend-iframe[src="about:blank"]) .live-edit_panel:has(#frontend-iframe),
    .live-edit:has(#backend-iframe[src="about:blank"]) .live-edit_panel:has(#backend-iframe) {
        width: 0% !important;
    }

    .live-edit {
        flex-direction: row;
    }

    .live-edit_divider:before {
        content: "|";
        position: absolute;
        top: 50%;
        bottom: 50%;
        text-align: center;
        width: 100%;
        transform: scaleY(1.5);
        transform-origin: center;
        color: #c0c0cf;
    }

    .live-edit_divider[aria-label]:after {
        /*transform: translate(5px, calc(50% + 14px));*/
        bottom: 50%;
        min-width: 120px;
        text-align: center;
    }

    .live-edit .live-edit_divider {
        width: 6px;
        cursor: col-resize;
        z-index: 1;
    }
}

.live-edit .live-edit_panel {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
        "Helvetica Neue", sans-serif;
    overflow: hidden;
    transition: width 0.3s linear;
    position: relative;
}

.live-edit .live-edit_panel iframe {
    background: #fff;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-edit_divider.actived:after {
    display: none !important;
}

.live-edit .live-edit_divider {
    background: #32324d;
    position: relative;
    touch-action: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
        "Helvetica Neue", sans-serif;
}

body.resizing-col {
    cursor: col-resize !important;
}

body.resizing-row {
    cursor: row-resize !important;
}

.live-edit .live-edit_options {
    position: absolute;
    top: 0;
    right: 0;
    width: 55px;
    height: 100%;
}

@media (max-width: 1078px) {
    .live-edit_divider[aria-label]:after {
        transform: translateY(calc(100% - 63px));
        left: calc(50% - 60px);
        right: calc(50% - 60px);
    }

    .live-edit .live-edit_panel {
        height: 50%;
        width: 100% !important;
    }

    .live-edit .live-edit_panel:has(#backend-iframe),
    .live-edit .live-edit_panel:has(#backend-iframe) {
        width: 100%;
    }

    .live-edit {
        left: 0;
        height: 100vh;
        width: 100%;
        top: 0;
        flex-direction: column;
    }

    .live-edit .live-edit_divider {
        height: 6px;
        cursor: row-resize;
    }

    .live-edit:has(#frontend-iframe[src="about:blank"]) .live-edit_panel:has(#backend-iframe),
    .live-edit:has(#backend-iframe[src="about:blank"]) .live-edit_panel:has(#frontend-iframe) {
        height: 100% !important;
    }

    .live-edit:has(#frontend-iframe[src="about:blank"]) .live-edit_panel:has(#frontend-iframe),
    .live-edit:has(#backend-iframe[src="about:blank"]) .live-edit_panel:has(#backend-iframe) {
        height: 0% !important;
    }
}

.dialog-section {
    background: #212134;
    border-color: #32324d;
}

.live-edit_textarea {
    display: block;
    border: none;
    resize: vertical;
    min-height: 105px;
    field-sizing: content;
    resize: none;
    font-size: 14px;
    border-radius: 4px;
    color: #ffffff;
    line-height: 1.43;
    padding-block-start: 16px;
    padding-inline-end: 16px;
    padding-block-end: 16px;
    padding-inline-start: 16px;
    width: 100%;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans","Helvetica Neue", sans-serif;
}

/* DEVICE RESOLULTION STYLES */
[aria-label]:after {
    content: attr(aria-label);
    font-size: 13px;
    display: none;
    position: absolute;
    z-index: 1;
    transform: translate(calc(-50% + 10px), calc(100% - 15px));
    background: #fff;
    color: #000;
    border-radius: 5px;
    border: .1px solid #cecece;
    padding: 8px;
    bottom: -10px;
}

[aria-label]:hover:after {
    display: block;
}

button[data-device="custom"].active,
.device-buttons:has(button[data-device="custom"].active) button:not([data-device="custom"]):not(#rotateBtn):not([data-device="default"]) {
    display: none !important;
}

.device-buttons:has(button[data-device="custom"].active) [data-device="default"] svg {
    opacity: 0;
}

button[data-device="default"] {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.device-buttons:has(button[data-device="custom"].active) button[data-device="default"] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="%23c0c0cf" d="M512 80L224 80c-8.8 0-16 7.2-16 16l0 16-48 0 0-16c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-48 48 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16zM368 288l-320 0 0 128c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-128zM64 160l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.device-buttons:has(button[data-device="custom"].active) button[data-device="default"]:after {
    content: "Preset views";
}

@media screen and (prefers-color-scheme: light) {
    .device-buttons:has(button[data-device="custom"].active) button[data-device="default"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path fill="%238e8ea9" d="M512 80L224 80c-8.8 0-16 7.2-16 16l0 16-48 0 0-16c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-48 48 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16zM368 288l-320 0 0 128c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16l0-128zM64 160l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"/></svg>');
    }
}

.frontend-panel:not(:has(iframe[src="about:blank"])) {
    container-type: inline-size;
}

.frontend-panel {
    position: relative;
    color: #FFF;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.frontend-controls {
    align-self: center;
    position: relative;
    display: flex;
    padding:12px;
    width: 100%;
    /*padding: 7px;*/
}

/*
.frontend-controls > *:not(:last-child):not(:only-child):after {
    content: "";
    width: 0.5px;
    height: 50%;
    display: grid;
    align-self: center;
    margin-right: 0.5rem;
}

.frontend-controls > *:not(:last-child):not(:only-child):after {
    background-color: #c0c0cf;
}
*/

.device-buttons,
.selector-buttons,
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.live-edit_button-icon {
    height: 40px;
    padding: 6px 12px;
    /*padding: 6px;*/
    border-radius: 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease
}

.live-edit_button-icon:hover,
.live-edit_button-icon.active {
    background: #181826
}

.live-edit_button-icon.live-edit_loading > svg > path {
    opacity: 0;
}

.live-edit_button-icon[data-action="export"].live-edit_loading {
    pointer-events: none !important;
}

.live-edit_button-icon.live-edit_loading > svg {
    background-image: url('data:image/svg+xml,<svg className="live-edit_rotation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" height="20" fill="%23c0c0cf"><path d="M30.5 7v6a1.5 1.5 0 0 1-1.5 1.5h-6a1.5 1.5 0 0 1 0-3h2.137l-2.375-2.173-.047-.046a9.5 9.5 0 1 0-6.84 16.219H16a9.44 9.44 0 0 0 6.519-2.59 1.5 1.5 0 1 1 2.061 2.181A12.43 12.43 0 0 1 16 28.5h-.171a12.5 12.5 0 1 1 8.985-21.368L27.5 9.59V7a1.5 1.5 0 0 1 3 0"></path></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-animation: liveEditRotation 2s linear infinite;
    -moz-animation: liveEditRotation 2s linear infinite;
    -ms-animation: liveEditRotation 2s linear infinite;
    -o-animation: liveEditRotation 2s linear infinite;
    animation: liveEditRotation 2s linear infinite;
}

.live-edit_button-icon.active svg>path {
    fill: #7b79ff;
}

.live-edit_button-icon:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.live-edit_button-icon.notification:before {
    content: "";
    margin-left: 15px;
    margin-top: -5px;
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background-color: #7b79ff;
}

.dialog-section input {
    border-radius: 4px;
    color: #ffffff;
    background: inherit;
    border: 1px solid #4a4a6a;
}

.dialog-section {
    margin-top: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.dialog-section.hidden {
    display: none
}

.dialog-section label {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    gap: 4px;
    font-weight: 600;
}

.custom-controls input[type="number"] {
    width: 100px;
    padding: 4px 6px;
}

summary {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
    cursor: pointer;
}

details input, details select {
    max-width: calc(100% - 30px);
}

.frontend-viewport {
    background: #181826;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-style: solid;
    border-color: #32324d;
    flex: 1;
    height: 100%;
}

.frontend-stage {
    height: 100%
}

#frontend-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block
}

.frontend-panel.emulation-active .frontend-viewport {
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box
}

.frontend-panel.emulation-active:has(button.active[data-device="custom"]) .frontend-viewport {
    overflow: auto;
}

.frontend-panel.emulation-active .frontend-stage {
    position: relative
}

.frontend-panel.emulation-active #frontend-iframe {
    background: #fff;
    box-shadow: 1px 1px 10px rgba(3, 3, 5, 0.2);
    border-color: #32324d;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    transition: width 0.25s ease, height 0.25s ease, transform 0.25s ease;
    transform-origin: top center
}

[data-action="export"] svg {
    transform: rotate(-90deg);
}

@media screen and (prefers-color-scheme: light) {
    .live-edit_divider:before {
        color: #8f8ea9;
    }

    .live-edit .live-edit_divider {
        background: #eaeaef;
    }

    .live-edit {
        background: #fff;
    }

    /*
    .frontend-controls > *:not(:last-child):not(:only-child):after {
        background-color: #8e8ea9;
    }
    */
}

/* START STYLES FOR WHEN CONTROLS ARE NOT ALWAYS ON THE RIGHT */
@container (min-width: calc(100vw - 1085px)) {
    .bottom [aria-label]:after {
        transform: translate(calc(-50% + 10px), calc(-100% - 33px));
    }
}
@container (max-width: calc(100vw - 1085px)) {
    .frontend-controls {
        position: absolute;
        display: grid;
        right: 0px;
        width: 55px;
        padding-left: 7px;
        height: 50%;
        align-content: flex-start;
    }
    .frontend-controls.bottom {
        align-content: flex-end;
        bottom: 0;
    }
    .frontend-viewport {
        width: calc(100% - 55px);
        border-top-width: 0px;
        border-bottom-width: 0px;
        border-right-width: 1px;
        border-left-width: 1px;
    }
    .frontend-panel:has(button[data-device="custom"].active) .frontend-viewport {
        width: calc(100% - 187px);
    }
    .frontend-controls > *:not(:last-child):not(:only-child):after {
        width: 50%;
        height: 0.5px;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 0.75rem;
    }
    /*
    .frontend-panel:has(button.active:not([data-device="default"])) .frontend-viewport {  
        padding-top: 55px;  
    }
    */
    .dialog-section {
        position: fixed;
        right: 56px;
        top: 0;
        left: auto;
        width: auto;
        padding: 15px;
        height: 100%;
        background: #212134;
        flex-flow: column;
        border-right-width: 1px;
        border-style: solid;
        border-color: #32324d;
    }
    .live-edit_button-icon {
        width: 40px;
        overflow: hidden;
        text-align: center;
    }
    [aria-label]:after {
        transform: translate(calc(-100% - 20px), calc(-50% - 10px));
        min-width: 85px;
    }
}
.dialog-section {
    background: #212134;
    border-color: #32324d;
}
@container (max-width: calc(-1085px + 100vw)) {
    .dialog-section {
        background-color: #fff;
        border-color: #eaeaef;
    }
}

/* END STYLES FOR WHEN CONTROLS ARE NOT ALWAYS ON THE RIGHT */

/* START FORM INPUTS AND VISUAL CHANGES TO KEEP CONTROLS ALWAYS ON THE RIGHT */
/*
@media (min-width: 1079px) {
    .frontend-controls {
        position: absolute;
        right: 0px;
        width: 55px;
        height: 50%;
        align-content: flex-start;
    }

    .frontend-controls.bottom {
        align-content: flex-end;
        bottom: 0;
    }

    .frontend-viewport {
        width: calc(100% - 55px);
        border-top-width: 0px;
        border-right-width: 1px;
    }

    .frontend-panel:has(button[data-device="custom"].active) .frontend-viewport {
        width: calc(100% - 187px);
    }

    .dialog-section {
        position: fixed;
        right: 56px;
        top: 0;
        left: auto;
        width: auto;
        padding: 15px;
        height: 100%;
        flex-flow: column;
        border-right-width: 1px;
        border-style: solid;
    }

    .live-edit_button-icon {
        width: 40px;
        overflow: hidden;
        text-align: center;
    }

    .device-buttons [aria-label]:after,
    .selector-buttons [aria-label]:after {
        transform: translate(calc(-100% - 14px), calc(-50% - 10px));
        min-width: 85px;
    }
}
*/
/* END FORM INPUTS AND VISUAL CHANGES TO KEEP CONTROLS ALWAYS ON THE RIGHT */

@media (max-width: 1078px) {
    .frontend-controls {
        left: 0;
        right: auto;
    }

    .frontend-viewport {
        width: 100%;
    }
}

.live-edit_select, .live-edit_input {
    padding-inline-start: 16px;
    padding-inline-end: 12px;
    padding-block: calc(12px - 1px);
    cursor: pointer;
    outline: none;
    box-shadow: none;
    transition-property: border-color, box-shadow, fill;
    transition-duration: 0.2s;
    border-radius: 4px;
    width: 100%;
}

.dialog-section p {
    font-size: 12px;
    line-height: 1.33;
}

.live-edit_input-container {
    margin-bottom: 16px;
}

.live-edit_label,
.live-edit_input,
.live-edit_textarea,
.live-edit_select {
    margin-bottom: 4px;
}

.live-edit_buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    position: sticky;
    bottom: 0;
}

.live-edit_button {
    cursor: pointer;
    border-radius: 4px;
    height: 40px;
    text-decoration: none;
    width: 100%;
    text-align: center;
    align-items: center;
    display: grid;
}

.live-edit_button:is(:hover, :focus-within) {
    filter: brightness(1.35);
}

.live-edit_submit {
    height: 40px;
    text-decoration: none;
}

.live-edit_textarea {
    background-color: #212134;
    color: #ffffff;
    border-color: #4a4a6a;
}

.live-edit_select {
    border: 1px solid #4a4a6a;
    background: #212134;
    color: #FFF;
}

.dialog-section p {
    color: #a5a5ba;
}

.live-edit_button {
    border: 1px solid #4a4a6a;
    background: #181826;
    color: #7b79ff;
}

.live-edit_submit {
    border: 1px solid #4945ff;
    background: #4945ff;
    color: #ffffff;
}

@media screen and (prefers-color-scheme:light) {

    .live-edit_button:is(:hover, :focus-within) {
        filter: brightness(1.1);
    }

    .dialog-section {
        background: #ffffff;
        border-color: #eaeaef;
    }

    [aria-label]:after {
        background: #000;
        color: #fff;
        border: .1px solid #eaeaef
    }

    .frontend-panel {
        color: #000;
    }

    .frontend-viewport {
        background: #f6f6f9;
        border-color: #eaeaef;
    }

    .live-edit_button-icon:hover:not(.active) {
        background: #f6f6f9;
    }

    .live-edit_button-icon.active {
        background: #f0f0ff;
    }

    .live-edit_button-icon svg>path {
        fill: #8e8ea9;
    }

    .live-edit_button-icon.active svg>path {
        fill: #4945ff;
    }

    .frontend-panel.emulation-active #frontend-iframe {
        border-color: #eaeaef;
        border-radius: 4px;
        border-style: solid;
        border-width: 1px;
        box-shadow: 0px 1px 4px rgba(33, 33, 52, 0.1);
    }

    .dialog-section input {
        color: #000000;
        background: inherit;
        border: 1px solid #dcdce4;
    }

    .live-edit_select {
        border: 1px solid #dcdce4;
        background: #ffffff;
        color: #32324d;
    }

    .live-edit_button:not(.live-edit_submit) {
        border: 1px solid #d9d8ff;
        background: #f0f0ff;
        color: #271fe0;
    }

    .live-edit_textarea {
        background-color: #fff;
        color: #32324d;
        border-color: #dcdce4;
    }
}
/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./public/Tips.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
.hidden {
    display: none !important;
}

.dialog-section.tips-dialog {
    position: absolute !important;
    z-index: 1;
    overflow: auto;
    /*width: calc(100% - 53px);*/
    width: 100%;
    right: 0;
    top: 0;
    height: 100%;
    flex-direction: column;
    align-items: normal;
}

.tips-dialog > .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    margin-left: 28px;
    margin-top: 49px;
    width: calc(100% - 28px - 28px);
    height: calc(100% - 49px - 49px);
    border-radius: 4px;
    overflow: auto;
}


.dialog-section.tips-dialog {
    background-color: rgba(255,255,255,0.25);
}

.dialog-section.tips-dialog>.container {
    background: #181826;
    border-left: 1px solid #32324d;
    color: #FFF;
}

.dialog-section.tips-dialog>.container>div:first-child {
    color: #FFF;
}

.dialog-section.tips-dialog>.container>div:first-child {
    font-weight: 600;
    font-size: 28px;
    line-height: 1.14;
    text-align: left;
    width: 100%;
}

.tips-controls, .ai-response:not(:empty) .ai-tip {
    background: #212134;
    border-color: #32324d;
    box-shadow: 1px 1px 10px rgba(3, 3, 5, 0.2);
}

.live-edit:has(iframe[src="about:blank"]) .dialog-section.tips-dialog,
body.live-edit_selector-tips_loading .dialog-section.tips-dialog {
    display: none !important;
}

.ai-response {
    display: grid;
    font-size: 0;
}

.ai-response > * {
    font-size: 16px;
}

.tips-controls, .ai-response:not(:empty) .ai-tip {
    width: 100%;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    padding-block-start: 16px;
    padding-inline-end: 16px;
    padding-block-end: 16px;
    padding-inline-start: 16px;
}

.ai-response:not(:empty) .ai-tip {
    margin-bottom: 16px;
}

.ai-response:not(:empty) .ai-tip.saved {
    opacity: 0.5;
    order: 1;
    display: none;
}

.ai-response:not(:empty) .ai-tip.saved,
.ai-response:not(:empty) .ai-tip.saved * {
    pointer-events: none;
    cursor: not-allowed;
}

.ai-text:not(:empty):before,
.ai-suggestions:not(:empty):before {
    color: #FFF;
}

.ai-text:not(:empty),
.ai-comment:not(:empty) {
    color: #a5a5ba;
}

.ai-text:not(:empty) {
    border: 1px solid #4a4a6a;
    color: #a5a5ba;
}
.ai-replace_textarea {
    min-height: inherit;
    border: 0;
    padding: 0;
    padding-right: 25px;
}
.ai-replace_textarea:focus-within {
    outline: 0;
}
.ai-replace_textarea:not(:focus-within) {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="2rem" height="2rem" fill="%23666687"><path d="m28.414 9.171-5.585-5.586a2 2 0 0 0-2.829 0L4.586 19A1.98 1.98 0 0 0 4 20.414V26a2 2 0 0 0 2 2h5.586A1.98 1.98 0 0 0 13 27.414L28.414 12a2 2 0 0 0 0-2.829M24 13.585 18.414 8l3-3L27 10.585z"></path></svg>');
    background-repeat: no-repeat;
    background-position: top 3px right 5px;
    background-size: 15px;
}

.tips-dialog:has(#ai-services option[value="openai"]:not(:checked)) #ai-agent option[value="images"],
.tips-dialog:has(#ai-services option[value="openai"]:not(:checked)) .live-edit_input-container:has(#live-edit_ai-imgmodel),
.tips-dialog:has(#ai-agent option[value="custom"]:not(:checked)) .live-edit_input-container:has(#live-edit_ai-systemprompt) {
    display: none;
}

.tips-dialog:has(#ai-agent option[value="custom"]:not(:checked)) #live-edit_ai-systemprompt:not(:focus) {
    opacity: 0.5;
    height: 100px;
}

body:has(button[data-editor="tips"].active) .ai-response:not(:empty) {
    display: block;
}

.tips-dialog strong {
    font-weight: 700;
}

.ai-text:not(:empty):before,
.ai-suggestions:not(:empty):before {
    content: "";
    margin-bottom: 4px;
    display: block;
    font-weight: 700;
}

.ai-suggestions:not(:empty):before {
    content: "Suggestions:";
    font-size: 14px;
}

.ai-suggestion {
    display: flex;
    gap: 8px;
}

.ai-subject:not(:empty) {
    margin-bottom: 4px;
    line-height: 1.33;
}

.ai-text:not(:empty),
.ai-comment:not(:empty) {
    width: 100%;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.33;
}

.ai-text:not(:empty) {
    padding: 15px;
    border-radius: 4px;
    height: 100%;
}

.ai-suggestion:not(.no-events) .ai-find:not(:empty):before {
    content: "Find:";
}

.ai-suggestion:not(.no-events) .ai-replace:not(:empty):before {
    content: "Replace:";
}

#ai-context:has([value="current-entry"]:checked)+p,
#ai-context:has([value="prompt-only"]:checked)+p+p {
    display: none;
}

#ai-context:has(#ai-context_specific-content:checked)+p {
    margin-bottom: 10px;
}

#ai-context:not(:has(#ai-context_specific-content:checked))+p,
#ai-context:has(#ai-context_specific-content:checked)+p+p {
    display: none;
}

#ai-context:has(#ai-context_specific-content:checked[value="0"])+p:before {
    content: "Click on a item to select it's HTML as context."
}

.live-edit:has(#ai-context_specific-content[value="0"]:checked) #live-edit_tips-submit {
    display: none;
}

/* START STYLES FOR WHEN CONTROLS ARE NOT ALWAYS ON THE RIGHT */
@container (max-width: calc(100vw - 1085px)) {
    .ai-response:not(:empty) .ai-tip {
        position: fixed;
        right: 56px;
        top: 0;
        left: auto;
        width: auto;
        padding: 15px;
        height: 100%;
        background: #212134;
        flex-flow: column;
        border-right-width: 1px;
        border-style: solid;
        border-color: #32324d;
    }
}

@container (max-width: calc(-1085px + 100vw)) {
    .ai-response:not(:empty) .ai-tip {
        background-color: #fff;
        border-color: #eaeaef;
    }
}

@media screen and (prefers-color-scheme:light) {

    .ai-response:not(:empty) .ai-tip {
        background: #ffffff;
        border-color: #eaeaef;
    }

    .tips-controls, .ai-response:not(:empty) .ai-tip {
        background: #ffffff;
        border-color: #eaeaef;
        box-shadow: 0px 1px 4px rgba(33, 33, 52, 0.1);
    }

    .ai-text:not(:empty):before, .ai-suggestions:not(:empty):before {
        color: #32324d;
    }

    .ai-text:not(:empty) {
        border: 1px solid #dcdce4;
        color: #32324d;
    }

    .ai-replace_textarea:not(:focus-within) {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="2rem" height="2rem" fill="%23c0c0cf"><path d="m28.414 9.171-5.585-5.586a2 2 0 0 0-2.829 0L4.586 19A1.98 1.98 0 0 0 4 20.414V26a2 2 0 0 0 2 2h5.586A1.98 1.98 0 0 0 13 27.414L28.414 12a2 2 0 0 0 0-2.829M24 13.585 18.414 8l3-3L27 10.585z"></path></svg>');
    }

    .dialog-section.tips-dialog {
        background-color: rgba(0,0,0,0.25);
    }

    .dialog-section.tips-dialog>.container {
        background: #f6f6f9;
        border-left: 1px solid #eaeaef;
        color: #32324d;
    }

    .dialog-section.tips-dialog>.container>div:first-child {
        color: #32324d;
    }
}

/* Hide technical fields in content creator tips — D tips keep them visible so user can verify which entry will be translated */
/*
.ai-tip.ai-dependency:not([dependency]) .ai-suggestion:has(textarea[name="ai-entry"]),
.ai-tip.ai-dependency:not([dependency]) .ai-suggestion:has(textarea[name="ai-entry_collection"]) {
    display: none;
}
*/

/* Lock dependency tips until their entry is created */
.ai-response:not(:empty) .ai-tip:not(.saved) + .ai-tip[dependency]:not([dependency="0"]):not([data-created]) {
    position: relative;
    margin-left: 1rem;
    width: calc(100% - 1rem);
}

.ai-response:not(:empty) .ai-tip:not(.saved) + .ai-tip[dependency]:not([dependency="0"]):not([data-created]) .live-edit_buttons {
    display: none;
}

.tips-dialog:has(#live-edit_tips-submit.live-edit_loading) .live-edit_buttons button {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.no-events textarea {
    background-image: none !important;
}

.ai-response:not(:empty) .ai-tip:not(.saved) + .ai-tip[dependency]:not([dependency="0"]):not([data-created])::after {
    content: "This tip is waiting for an entry task above.";
    position: sticky;
    font-weight: 600;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 4px;
}

.tips-dialog:has(.ai-bulk-actions:not(.hidden)) .tips-controls {
    position: sticky;
    top: 0;
    z-index: 1;
}

.tips-dialog:has(.ai-bulk-actions:not(.hidden)) .tips-controls > *:not(.ai-bulk-actions) {
    display: none;
}

.ai-clear {
    max-width: 70px;
}

.tips-controls:has(#live-edit_tips-submit.live-edit_loading) .live-edit_input-container,
.tips-controls:has(#live-edit_tips-submit.live-edit_loading) details {
    display: none;
}
