/* Guide controls in the editor tool rail and side panel. */

@media (min-width: 769px) {
    .editor-page .editor-body>.left-panel .guide-tool-btn {
        margin-top: auto !important;
    }
    .editor-page .editor-body>.left-panel .guide-tool-btn::before {
        content: '';
        display: block;
        position: absolute;
        top: -12px;
        left: 14px;
        width: 26px;
        height: 1px;
        background: #dce5f2;
    }
}


/* Guide uses the drawer surface directly, with the same header as clipart. */

.editor-page #sidePanel:has(#tab-guide.active)>.side-panel-floating-header {
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
    flex: 0 0 57px;
    width: 100%;
    height: 57px !important;
    min-height: 57px !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 17px 17px 0 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.editor-page #sidePanel:has(#tab-guide.active)>.side-panel-floating-header::before {
    content: none !important;
    display: none !important;
}

.editor-page #sidePanel:has(#tab-guide.active) .side-panel-heading {
    min-width: 0;
    flex: 1;
}

.editor-page #sidePanel:has(#tab-guide.active) .side-panel-heading strong {
    color: #000 !important;
    font: 600 14px/1.3 Geologica Auto, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

.editor-page #sidePanel:has(#tab-guide.active) .side-panel-heading small {
    display: none !important;
}

.editor-page #sidePanel:has(#tab-guide.active) #sidePanelCloseButton {
    box-sizing: border-box;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 1px solid #dce3ec !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #334155 !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, .035) !important;
    transform: none !important;
}

.editor-page #sidePanel:has(#tab-guide.active) #sidePanelCloseButton:hover {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    color: #0051bb !important;
}

.editor-page #sidePanel:has(#tab-guide.active) #sidePanelCloseButton svg {
    width: 16px !important;
    height: 16px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.editor-page #tab-guide {
    padding: 10px 0 20px;
}

.editor-page .editor-guide-intro {
    margin: 4px 0 18px;
    padding: 20px 18px;
    border: 1px solid #dbe7fb;
    border-radius: 18px;
    background: linear-gradient(155deg, #eff6ff 0%, #fff 78%);
}

.editor-page .editor-guide-eyebrow {
    color: #0051bb;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .1em;
}

.editor-page .editor-guide-intro h2 {
    margin: 9px 0 7px;
    color: #14213a;
    font-size: 19px;
    line-height: 1.25;
}

.editor-page .editor-guide-intro p {
    margin: 0;
    color: #52627b;
    font-size: 12px;
    line-height: 1.65;
}

.editor-page .editor-guide-options {
    display: grid;
    gap: 10px;
}

.editor-page .editor-guide-option {
    position: relative;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    min-height: 78px;
    padding: 12px;
    border: 1px solid #dce5f2;
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}

.editor-page .editor-guide-option:hover {
    border-color: #a9c7f4;
    background: #f8fbff;
}

.editor-page .editor-guide-option-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #eff6ff;
    color: #0051bb;
}

.editor-page .editor-guide-option-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.editor-page .editor-guide-option-copy {
    display: grid;
    min-width: 0;
}

.editor-page .editor-guide-option-copy strong {
    color: #172033;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
}

.editor-page .editor-guide-option-copy small {
    color: #4c4c4c;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 200;
}

.editor-page .editor-guide-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.editor-page .editor-guide-switch {
    position: relative;
    width: 36px;
    height: 21px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background .16s ease;
}

.editor-page .editor-guide-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px #17203333;
    transition: transform .16s ease;
}

.editor-page .editor-guide-option input:checked+.editor-guide-switch {
    background: #0051bb;
}

.editor-page .editor-guide-option input:checked+.editor-guide-switch::after {
    transform: translateX(15px);
}

.editor-page .editor-guide-option input:focus-visible+.editor-guide-switch {
    outline: 2px solid #6385e1;
    outline-offset: 3px;
}

.editor-page .editor-guide-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 16px 3px 0;
    color: #4c4c4c;
    font-size: 11px;
    line-height: 1.5;
}

.editor-page .editor-guide-note i {
    flex: none;
    color: #0051bb;
    font-size: 16px;
}

@media (max-width: 768px) {
    .editor-page .editor-body>.left-panel {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }
    .editor-page .editor-body>.left-panel .guide-tool-btn {
        margin-top: 0 !important;
    }
}