/* ==========================================================================
   SKETCH STUDIO EDITOR - CLASSIC & PREMIUM MINIMALIST REDESIGN
   Brand Theme: Olive Leaf (#558222, #466d1b), Celadon Tint (#eef5e6), Slate
   Desktop: 100% No-Scroll Fit, Large Artboard Height, Sleek Accordion Drawers
   ========================================================================== */

/* Main Container with generous top & bottom breathing room */
.sketch-page-wrapper {
    max-width: 1160px;
    margin: 36px auto 56px;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
}

/* --------------------------------------------------------------------------
   THE WORKSPACE / EDITOR BLOCK
   -------------------------------------------------------------------------- */
.sketch-editor-block {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    margin-bottom: 48px;
    overflow: hidden;
    position: relative;
}

/* Desktop Viewport Constraint: Fits large canvas comfortably without scrolling */
@media (min-width: 1024px) {
    .sketch-editor-block {
        height: min(calc(100vh - 120px), 730px);
        min-height: 580px;
    }
}

/* --------------------------------------------------------------------------
   LEFT: ARTBOARD CANVAS STAGE
   -------------------------------------------------------------------------- */
.sketch-artboard-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
    background-size: 20px 20px;
    position: relative;
    padding: 10px 16px;
    border-right: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Floating Artboard Controls */
.artboard-floating-toolbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 4px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
    z-index: 25;
    user-select: none;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.toolbar-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.artboard-tool-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #475569;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s ease;
    padding: 0;
}

.artboard-tool-btn:hover {
    background: #eef5e6;
    color: #466d1b;
    border-color: #d9ecc9;
    transform: scale(1.05);
}

.artboard-tool-btn:active {
    transform: scale(0.95);
}

.artboard-tool-btn.active {
    background: #558222 !important;
    color: #ffffff !important;
    border-color: #466d1b !important;
}

.artboard-tool-btn.btn-text {
    width: auto;
    border-radius: 100px;
    padding: 0 9px;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
}

.artboard-tool-val {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    min-width: 38px;
    text-align: center;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.artboard-tool-val:hover {
    background: #eef5e6;
    color: #558222;
}

.artboard-tool-divider {
    width: 1px;
    height: 14px;
    background: #e2e8f0;
    margin: 0 4px;
}

.artboard-tool-reset {
    width: auto;
    border-radius: 100px;
    padding: 0 10px;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Manual Zoom Popup Menu on Floating Toolbar */
.zoom-val-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.zoom-quick-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 5px;
    display: flex;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    white-space: nowrap;
}

.zoom-quick-popup.show,
.zoom-val-wrapper:hover .zoom-quick-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.zoom-quick-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.zoom-quick-pill:hover {
    background: #eef5e6;
    color: #558222;
    border-color: #558222;
}

.zoom-quick-pill.active {
    background: #558222;
    color: #ffffff;
    border-color: #466d1b;
}

/* The Artboard Paper / Canvas - Enlarged Height with 9:16 Ratio */
.artboard-paper {
    position: relative;
    background: #ffffff;
    box-shadow: 0 18px 42px -10px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    transform-style: preserve-3d;
    
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100% - 95px);
    aspect-ratio: 9/16;
    width: auto;
    max-width: calc((100% - 95px) * 9 / 16);
    
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
    transition: max-width 0.25s ease, max-height 0.25s ease, aspect-ratio 0.25s ease, background 0.3s ease;
    background-size: cover;
    background-position: center;
}

.artboard-paper.is-panning {
    cursor: grabbing !important;
    user-select: none;
}

canvas#sketchCanvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: filter 0.2s ease;
}

/* Timeline Control Bar */
.artboard-timeline-bar {
    margin-top: 8px;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

#btnPlayPause {
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #558222;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(85, 130, 34, 0.25);
    font-size: 11px;
    padding: 0;
}

#btnPlayPause:hover {
    background: #466d1b;
    transform: scale(1.05);
    box-shadow: 0 5px 14px rgba(85, 130, 34, 0.35);
}

#animTimeline {
    accent-color: #558222;
    width: 100%;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   RIGHT: SIDEBAR INSPECTOR
   -------------------------------------------------------------------------- */
.sketch-sidebar {
    width: 350px;
    min-width: 350px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* Tabs */
.editor-tabs {
    display: flex;
    padding: 12px 20px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 10px;
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    padding: 9px 4px 11px;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover {
    color: #1e293b;
}

.tab-btn.active {
    color: #558222;
    border-bottom-color: #558222;
}

/* Mobile Quick Nav Hidden on Desktop */
.mobile-quick-nav {
    display: none;
}

/* Scrollable Tab Content */
.tab-content {
    display: none;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 18px 20px;
}

.tab-content.active {
    display: block;
}

/* Custom Sleek Scrollbar */
.tab-content::-webkit-scrollbar {
    width: 5px;
}

.tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --------------------------------------------------------------------------
   ACCORDION SYSTEM (Design Studio Tools)
   -------------------------------------------------------------------------- */
.sidebar-accordion {
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.sidebar-accordion:hover {
    border-color: #e2e8f0;
}

.sidebar-accordion.open {
    border-color: #d9ecc9;
    box-shadow: 0 4px 12px rgba(85, 130, 34, 0.06);
}

.sidebar-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
    background: #ffffff;
}

.sidebar-accordion:hover .sidebar-accordion-header {
    background: #fbfdfa;
}

.sidebar-accordion.open .sidebar-accordion-header {
    background: #fefcf9;
    border-bottom: 1px solid #eef5e6;
}

.acc-header-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.acc-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #eef5e6;
    color: #558222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.acc-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.2px;
}

.acc-header-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.acc-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #466d1b;
    background: #eef5e6;
    border: 1px solid #d9ecc9;
    padding: 1.5px 7px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.35;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.toggle-icon {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
    transform: rotate(-90deg);
}

.sidebar-accordion.open .toggle-icon {
    transform: rotate(0deg);
    color: #558222;
}

/* Accordion Body */
.sidebar-accordion-body {
    display: none;
    padding: 12px;
    background: #ffffff;
}

.sidebar-accordion.open .sidebar-accordion-body {
    display: block;
    animation: fadeInDrawer 0.2s ease-out;
}

@keyframes fadeInDrawer {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.drawer-sub-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.drawer-sub-val {
    font-size: 10.5px;
    font-weight: 700;
    color: #558222;
}

/* --------------------------------------------------------------------------
   INPUT CONTROLS, SWATCHES & PILLS
   -------------------------------------------------------------------------- */
.swatches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.color-swatch {
    width: 27px;
    height: 27px;
    min-width: 27px;
    min-height: 27px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.color-swatch:hover {
    transform: scale(1.15) translateY(-1px);
    border-color: #cbd5e1;
}

.color-swatch.active {
    transform: scale(1.15);
    border-color: #558222 !important;
    box-shadow: 0 0 0 2px #d9ecc9, 0 2px 6px rgba(85, 130, 34, 0.25) !important;
}

/* Custom Color Palette Picker Swatch */
.color-swatch.custom-picker-swatch {
    position: relative;
    background: conic-gradient(from 180deg at 50% 50%, #ff0000 0deg, #ffa500 51.4deg, #ffff00 102.8deg, #008000 154.2deg, #0000ff 205.7deg, #4b0082 257.1deg, #ee82ee 308.5deg, #ff0000 360deg);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.color-swatch.custom-picker-swatch i {
    font-size: 11px;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

.color-swatch.custom-picker-swatch .native-color-input {
    position: absolute;
    inset: -10px;
    opacity: 0;
    width: 200%;
    height: 200%;
    cursor: pointer;
}

.theme-grid {
    display: grid;
    gap: 6px;
}

.theme-card {
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.theme-card-pip {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: transform 0.15s ease;
}

.theme-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.theme-card:hover .theme-card-pip {
    transform: scale(1.2);
}

.theme-card.active {
    border-color: #558222 !important;
    box-shadow: 0 0 0 2px #d9ecc9, 0 3px 8px rgba(85, 130, 34, 0.25) !important;
}

/* Aesthetic Themes Category Filter */
.theme-category-filter,
.theme-cat-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 2px 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.theme-category-filter::-webkit-scrollbar,
.theme-cat-filter::-webkit-scrollbar {
    display: none;
}

.theme-cat-pill {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.theme-cat-pill:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.theme-cat-pill.active {
    background: #558222 !important;
    color: #ffffff !important;
    border-color: #558222 !important;
    box-shadow: 0 2px 6px rgba(85, 130, 34, 0.28) !important;
}

/* 3D Hologram Parallax Dimension Box */
.hologram-dimension-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(85, 130, 34, 0.05));
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s ease;
}

.preset-pill-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.preset-pill-btn:hover {
    background: #ffffff;
    border-color: #558222;
    color: #558222;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.preset-pill-btn:active {
    transform: scale(0.97);
}

.preset-pill-btn.active {
    background: #eef5e6 !important;
    border-color: #558222 !important;
    color: #3f6219 !important;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(85, 130, 34, 0.2);
}

.slider-wrapper {
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    margin: 3px 0;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #558222;
    cursor: pointer;
    margin-top: -5.5px;
    box-shadow: 0 2px 5px rgba(85, 130, 34, 0.35);
    transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 2px;
}

.bg-upload-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.bg-upload-btn:hover {
    border-color: #558222;
    color: #558222;
    background: #eef5e6;
}

/* --------------------------------------------------------------------------
   EXPORT PANEL & BUTTONS (CLASSIC STUDIO GRADE)
   -------------------------------------------------------------------------- */
.export-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.export-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.export-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.export-card-title i {
    color: #558222;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   CLASSIC HORIZONTAL SEGMENTED TABS (Frame Composition & Export Studio Suite)
   -------------------------------------------------------------------------- */
.sg-classic-htabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    background: #f8fafc;
    padding: 4px;
    border-radius: 11px;
    border: 1.5px solid #e2e8f0;
}

.sg-engine-htabs {
    grid-template-columns: repeat(2, 1fr);
}

.sg-htab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    user-select: none;
}

.sg-htab-btn i {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 1px;
    transition: color 0.18s ease;
}

.sg-htab-main,
.ratio-btn-name {
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.15;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sg-htab-sub,
.ratio-btn-sub {
    font-size: 9.5px;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.1;
}

.sg-htab-btn:hover {
    background: #ffffff;
    color: #558222;
    border-color: rgba(85, 130, 34, 0.25);
}

.sg-htab-btn:hover i {
    color: #558222;
}

.sg-htab-btn.active,
.ratio-btn.active,
.engine-tab-btn.active {
    background: #ffffff !important;
    border-color: #558222 !important;
    color: #3f6219 !important;
    box-shadow: 0 2px 8px rgba(85, 130, 34, 0.16) !important;
}

.sg-htab-btn.active i,
.ratio-btn.active i,
.engine-tab-btn.active i {
    color: #558222 !important;
}

.sg-htab-btn.active .sg-htab-sub,
.ratio-btn.active .ratio-btn-sub,
.engine-tab-btn.active .sg-htab-sub {
    color: #558222 !important;
    font-weight: 700;
}

.sg-pro-crown {
    font-size: 9px !important;
    color: #d97706 !important;
    margin: 0 !important;
}

.sg-export-studio-card {
    padding: 14px;
}

.sg-export-section {
    margin-bottom: 13px;
}

.sg-export-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.sg-export-step-title {
    font-size: 11px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sg-export-step-title i {
    color: #558222;
    font-size: 11.5px;
}

.sg-export-step-badge {
    font-size: 10.5px;
    font-weight: 700;
    color: #558222;
    background: #eef5e6;
    padding: 2px 8px;
    border-radius: 100px;
}

.sg-svg-info-box {
    background: #fefcf9;
    border: 1.5px dashed #558222;
    border-radius: 10px;
    padding: 10px 12px;
}

.sg-svg-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sg-svg-badge-row i {
    font-size: 16px;
    color: #558222;
}

.sg-svg-badge-row strong {
    display: block;
    font-size: 11.5px;
    color: #0f172a;
    margin-bottom: 2px;
}

.sg-svg-badge-row span {
    display: block;
    font-size: 10.5px;
    color: #64748b;
}

.sg-master-export-btn {
    height: 44px;
    font-size: 13px;
    border-radius: 10px;
    letter-spacing: 0.1px;
}

.sg-upgrade-pill-btn {
    width: 100%;
    margin-top: 9px;
    padding: 9px 12px;
    border-radius: 100px;
    border: 1.5px solid #0f172a;
    background: rgba(85, 130, 34, 0.08);
    color: var(--primary-color, #558222);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
}

.sg-upgrade-pill-btn:hover {
    background: rgba(85, 130, 34, 0.15);
    transform: translateY(-1px);
}

.engine-tab-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.export-select-wrap {
    position: relative;
    width: 100%;
}

.res-select {
    width: 100%;
    height: 42px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    border-radius: 9px;
    padding: 0 34px 0 12px;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.res-select:hover, .res-select:focus {
    border-color: #558222;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(85, 130, 34, 0.1);
}

.export-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 11px;
}

.btn-export-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #558222 0%, #3e6317 100%);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(85, 130, 34, 0.25);
    transition: all 0.2s ease;
}

.btn-export-primary:hover {
    background: #9a4710;
    box-shadow: 0 5px 14px rgba(85, 130, 34, 0.35);
    transform: translateY(-1px);
}

.btn-export-primary:active {
    transform: scale(0.98);
}

.btn-export-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155;
    transition: all 0.2s ease;
}

.btn-export-secondary:hover {
    border-color: #558222;
    color: #558222;
    background: #fbfdfa;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.btn-export-secondary:active {
    transform: scale(0.98);
}

.export-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 10.5px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    text-align: center;
    margin-top: 8px;
}

.export-guarantee i {
    color: #558222;
    font-size: 12px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    width: 100%;
    height: 44px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #558222 0%, #466d1b 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(85, 130, 34, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #466d1b 0%, #3f6219 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(85, 130, 34, 0.35);
}

.btn-secondary {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #558222;
    color: #558222;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(85, 130, 34, 0.08);
}

/* Instant Poster Placeholder & Smooth Transition */
.canvas-poster-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}
.canvas-poster-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Loading & Spinners */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.spinner-badge {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    pointer-events: auto;
}

.spinner-dot {
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: #558222;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid #e2e8f0;
    border-top-color: #558222;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Social Share */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.share-btn.fb { background: #1877F2; }
.share-btn.tw { background: #000000; }
.share-btn.wa { background: #25D366; }
.share-btn.cp { background: #64748b; }

/* SEO Block Below Editor with luxurious breathing room */
.sketch-seo-block {
    margin-top: 0;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.sketch-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sketch-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sketch-badge {
    font-size: 11px;
    text-transform: uppercase;
    background: #558222;
    color: white;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.sketch-duration {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Favorite Heart Button */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: #eef5e6;
    transform: scale(1.1);
}

.favorite-btn.active svg {
    animation: heartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Zero-Scroll App Studio for Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .sketch-page-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    /* App-Grade Fixed Viewport Studio Container — Edge-to-Edge on Mobile (Zero Left/Right Border or Margin) */
    .sketch-editor-block {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 56px);
        min-height: 540px;
        max-height: 980px;
        margin-bottom: 14px !important;
        border-radius: 0 !important;
        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: 2px solid #000000 !important;
        overflow: hidden;
        box-shadow: none !important;
        background: #ffffff;
    }
    
    /* Top: Fixed Live Canvas Stage (Maximum Edge-to-Edge Width & Height) */
    .sketch-artboard-area {
        flex: 0 0 auto;
        height: 55%;
        min-height: 320px;
        max-height: 59%;
        padding: 6px 0 4px !important;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 2px solid #000000 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: #f5efe6;
        background-image: radial-gradient(#d6cbba 1.2px, transparent 1.2px);
        background-size: 16px 16px;
        overflow: hidden;
        position: relative;
    }
    
    .artboard-floating-toolbar {
        display: flex !important;
        left: 5px !important;
        padding: 5px 3px !important;
        gap: 2px !important;
    }
    
    .artboard-tool-btn,
    .artboard-tool-btn.btn-text,
    .artboard-tool-reset {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
    
    .artboard-tool-val {
        font-size: 8.5px !important;
        min-width: 26px !important;
        padding: 1px 2px !important;
    }
    
    .artboard-paper-wrapper {
        flex: 1;
        min-height: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px 10px;
        overflow: hidden;
    }
    
    .artboard-paper {
        max-height: calc(100% - 8px);
        height: 100%;
        max-width: 94vw;
        aspect-ratio: 9/16;
        width: auto;
        margin: auto;
        border-radius: 12px !important;
        overflow: hidden;
    }
    
    .artboard-timeline-bar {
        margin-top: 0 !important;
        padding: 2px 12px !important;
        max-width: min(94vw, 360px) !important;
        gap: 8px !important;
        flex-shrink: 0;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    #btnPlayPause {
        width: 26px !important;
        min-width: 26px !important;
        height: 26px !important;
        font-size: 9px !important;
    }
    
    #animTimeline {
        height: 4px !important;
    }
    
    .artboard-time-display {
        font-size: 10.5px !important;
        min-width: 54px !important;
    }
    
    /* Bottom: Sleek Mobile Studio Drawer */
    .sketch-sidebar {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        min-width: 100%;
        height: 51%;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .editor-tabs {
        padding: 6px 10px;
        border-bottom: 1px solid #f1f5f9;
        flex-shrink: 0;
        display: flex;
        gap: 6px;
    }
    
    .tab-btn {
        flex: 1;
        padding: 7px 10px;
        font-size: 11.5px;
        border-radius: 8px;
    }
    
    /* Mobile Quick Navigation Chip Bar */
    .mobile-quick-nav {
        display: flex !important;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0;
        scrollbar-width: none;
    }
    
    .mobile-quick-nav::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-nav-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 10px;
        border-radius: 100px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        color: #475569;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
        flex-shrink: 0;
    }
    
    .mobile-nav-chip i {
        font-size: 10px;
        color: #64748b;
    }
    
    .mobile-nav-chip:hover, .mobile-nav-chip.active {
        background: #eef5e6;
        border-color: #558222;
        color: #3f6219;
        font-weight: 700;
    }
    
    .mobile-nav-chip:hover i, .mobile-nav-chip.active i {
        color: #558222;
    }
    
    .tab-content {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 8px 12px 20px;
    }
    
    /* Mobile Single-Panel Tool Drawer Mode (Canva / CapCut Style) */
    #tab-design .sidebar-accordion {
        display: none !important;
        margin-bottom: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    #tab-design .sidebar-accordion.mobile-panel-active {
        display: block !important;
        animation: mobileToolFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    #tab-design .sidebar-accordion.mobile-panel-active .sidebar-accordion-header {
        display: none !important;
    }
    
    #tab-design .sidebar-accordion.mobile-panel-active .sidebar-accordion-body {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        padding: 4px 2px 14px !important;
    }
    
    @keyframes mobileToolFadeIn {
        from {
            opacity: 0;
            transform: translateY(4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .swatches-grid {
        gap: 6px;
    }
    
    .color-swatch {
        width: 25px;
        height: 25px;
        min-width: 25px;
        min-height: 25px;
    }
    
    #quickThemes.theme-grid {
        gap: 5px;
    }
    
    .theme-card {
        height: 26px;
        border-radius: 5px;
    }
    
    .preset-pill-btn {
        padding: 5px 6px;
        font-size: 10.5px;
    }
    
    .export-card {
        padding: 10px 12px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .ratio-grid {
        gap: 6px;
    }
    
    .ratio-btn {
        padding: 8px 4px;
    }
    
    .ratio-btn-name {
        font-size: 11px;
    }
    
    .res-select {
        height: 38px;
        font-size: 11px;
    }
    
    .btn-export-primary {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .btn-export-secondary {
        padding: 9px 14px;
        font-size: 11.5px;
    }
    
    .sidebar-social-share,
    .sketch-sidebar > div[style*="margin-top: auto"] {
        padding: 8px 12px !important;
        flex-shrink: 0;
    }
}

/* Tablet Optimizations (769px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .sketch-page-wrapper {
        margin: 12px auto 20px;
        padding: 0 16px;
        max-width: 920px;
    }
    .sketch-editor-block {
        height: calc(100dvh - 66px);
        min-height: 680px;
        max-height: 1080px;
        border-radius: 18px;
    }
    .sketch-artboard-area {
        height: 50%;
        min-height: 360px;
        max-height: 54%;
        padding: 10px 18px 8px;
    }
    .artboard-paper {
        max-width: min(85vw, 680px);
        border-radius: 14px;
    }
    .artboard-floating-toolbar {
        padding: 4px 12px;
        margin-bottom: 6px;
        gap: 5px;
        transform: none;
    }
    .artboard-tool-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .artboard-timeline-bar {
        margin-top: 6px;
        padding: 6px 14px;
        max-width: 440px;
        gap: 12px;
        transform: none;
    }
    #btnPlayPause {
        width: 32px;
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .sketch-sidebar {
        height: 50%;
    }
    .sidebar-social-share {
        padding: 12px 18px !important;
    }
}

/* --------------------------------------------------------------------------
   DARK THEME COMPATIBILITY
   -------------------------------------------------------------------------- */
body.dark-theme .sketch-editor-block {
    background: var(--bg-body, #1a1a1a);
    border-color: var(--border-color, #2c2c2c);
    box-shadow: 0 20px 45px -12px rgba(0, 0, 0, 0.6);
}

body.dark-theme .sketch-artboard-area {
    background: #141414;
    background-image: radial-gradient(#2c2c2c 1.2px, transparent 1.2px);
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .artboard-floating-toolbar,
body.dark-theme .artboard-timeline-bar {
    background: rgba(26, 26, 26, 0.95);
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .zoom-quick-popup {
    background: #1a1a1a;
    border-color: #2c2c2c;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.7);
}

body.dark-theme .zoom-quick-pill {
    background: #222222;
    border-color: #2c2c2c;
    color: var(--text-muted, #a1a1aa);
}

body.dark-theme .zoom-quick-pill:hover {
    background: rgba(85, 130, 34, 0.25);
    color: #82b741;
    border-color: #558222;
}

body.dark-theme .artboard-tool-btn {
    color: var(--text-muted, #a1a1aa);
}

body.dark-theme .artboard-tool-btn:hover {
    background: rgba(85, 130, 34, 0.25);
    color: #82b741;
    border-color: #558222;
}

body.dark-theme .artboard-tool-val {
    color: var(--text-dark, #f8fafc);
}

body.dark-theme .sketch-sidebar {
    background: var(--bg-white, #1a1a1a);
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .editor-tabs {
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .tab-btn {
    color: var(--text-muted, #a1a1aa);
}

body.dark-theme .tab-btn:hover {
    color: var(--text-dark, #f8fafc);
}

body.dark-theme .sidebar-accordion {
    background: var(--bg-white, #1a1a1a);
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .sidebar-accordion-header {
    background: var(--bg-white, #1a1a1a);
}

body.dark-theme .sidebar-accordion:hover .sidebar-accordion-header {
    background: #222222;
}

body.dark-theme .sidebar-accordion.open .sidebar-accordion-header {
    background: #1f271a;
    border-color: rgba(85, 130, 34, 0.3);
}

body.dark-theme .acc-title {
    color: var(--text-dark, #f8fafc);
}

body.dark-theme .sidebar-accordion-body {
    background: var(--bg-white, #1a1a1a);
}

body.dark-theme .slider-wrapper {
    background: #222222;
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .preset-pill-btn {
    background: #222222;
    border-color: var(--border-color, #2c2c2c);
    color: var(--text-muted, #a1a1aa);
}

body.dark-theme .preset-pill-btn:hover {
    background: #2a2a2a;
    border-color: #558222;
    color: #82b741;
}

body.dark-theme .preset-pill-btn.active {
    background: rgba(85, 130, 34, 0.25) !important;
    border-color: #558222 !important;
    color: #82b741 !important;
}

body.dark-theme .theme-btn {
    background: #222222;
    border-color: var(--border-color, #2c2c2c);
    color: var(--text-muted, #a1a1aa);
}

body.dark-theme .theme-btn:hover {
    border-color: #558222;
    color: #82b741;
}

body.dark-theme .theme-btn.active {
    background: rgba(85, 130, 34, 0.25);
    border-color: #558222;
    color: #82b741;
}

body.dark-theme .res-select {
    background: #222222;
    color: var(--text-dark, #f8fafc);
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .btn-secondary {
    background: #222222;
    color: var(--text-dark, #f8fafc);
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .bg-upload-btn {
    background: #222222;
    border-color: var(--border-color, #2c2c2c);
    color: var(--text-muted, #a1a1aa);
}

body.dark-theme .sketch-title {
    color: var(--text-dark, #f8fafc);
}

body.dark-theme .sketch-seo-block {
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .mobile-quick-nav {
    background: #181818;
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .mobile-nav-chip {
    background: #222222;
    border-color: var(--border-color, #2c2c2c);
    color: var(--text-muted, #a1a1aa);
}

body.dark-theme .mobile-nav-chip i {
    color: #71717a;
}

body.dark-theme .mobile-nav-chip:hover,
body.dark-theme .mobile-nav-chip.active {
    background: rgba(85, 130, 34, 0.25);
    border-color: #558222;
    color: #82b741;
}

body.dark-theme .mobile-nav-chip:hover i,
body.dark-theme .mobile-nav-chip.active i {
    color: #82b741;
}

body.dark-theme .theme-category-filter,
body.dark-theme .theme-cat-filter {
    border-bottom-color: #2c2c2c;
}

body.dark-theme .theme-cat-pill {
    background: #1e1e1e;
    border-color: #2c2c2c;
    color: #94a3b8;
}

body.dark-theme .theme-cat-pill:hover {
    background: #262626;
    color: #f8fafc;
    border-color: #3f3f46;
}

body.dark-theme .theme-cat-pill.active {
    background: #558222 !important;
    color: #ffffff !important;
    border-color: #558222 !important;
}

body.dark-theme .hologram-dimension-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(85, 130, 34, 0.08));
    border-top-color: #2c2c2c !important;
}

body.dark-theme .export-card {
    background: #1e1e1e;
    border-color: var(--border-color, #2c2c2c);
}

body.dark-theme .export-card-title {
    color: var(--text-dark, #f8fafc);
}

body.dark-theme .ratio-btn {
    background: #222222;
    border-color: var(--border-color, #2c2c2c);
    color: var(--text-muted, #a1a1aa);
}

body.dark-theme .ratio-btn:hover {
    border-color: #558222;
    color: #82b741;
}

body.dark-theme .ratio-btn.active {
    background: rgba(85, 130, 34, 0.25) !important;
    border-color: #558222 !important;
    color: #82b741 !important;
}

body.dark-theme .btn-export-secondary {
    background: #222222;
    border-color: var(--border-color, #2c2c2c);
    color: var(--text-dark, #f8fafc);
}

body.dark-theme .btn-export-secondary:hover {
    border-color: #558222;
    color: #82b741;
}

body.dark-theme .engine-toggle-group {
    background: #222222;
    border-color: var(--border-color, #2c2c2c);
}
body.dark-theme .engine-tab-btn {
    color: #a1a1aa;
}
body.dark-theme .engine-tab-btn:hover {
    color: #f8fafc;
}
body.dark-theme .engine-tab-btn.active {
    background: #558222;
    color: #ffffff;
}

body.dark-theme .export-guarantee {
    background: #181818;
    border-color: var(--border-color, #2c2c2c);
    color: #71717a;
}

/* ==========================================================================
   DRAGGABLE & ANIMATED CANVAS TEXT OVERLAY (QUOTES / FACTS / CAPTIONS)
   ========================================================================== */
.artboard-draggable-text {
    position: absolute;
    left: 50%;
    top: 82%;
    transform: translate(-50%, -50%);
    max-width: 84%;
    width: max-content;
    padding: 9px 15px;
    border-radius: 13px;
    font-weight: 700;
    line-height: 1.38;
    text-align: center;
    cursor: grab;
    user-select: none;
    z-index: 18;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.artboard-draggable-text.is-dragging,
.artboard-draggable-text.is-selected {
    outline: 2px dashed #558222;
    outline-offset: 2px;
}

.artboard-draggable-text.is-dragging {
    cursor: grabbing !important;
}

/* Interactive Selection Highlight Box Around Drawing / Animation on Canvas */
.artboard-anim-selection-box {
    position: absolute;
    pointer-events: none;
    z-index: 16;
    outline: 2px dashed #558222;
    outline-offset: 0;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset;
    transition: opacity 0.15s ease;
}

.artboard-anim-selection-box.is-dragging {
    outline-color: #466d1b;
    background: rgba(85, 130, 34, 0.04);
}

.anim-sel-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border: 2px solid #558222;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.anim-sel-corner.tl { top: -5px; left: -5px; }
.anim-sel-corner.tr { top: -5px; right: -5px; }
.anim-sel-corner.bl { bottom: -5px; left: -5px; }
.anim-sel-corner.br { bottom: -5px; right: -5px; }

.artboard-draggable-text.badge-dark {
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.artboard-draggable-text.badge-light {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
    color: #0f172a;
}

.artboard-draggable-text.badge-gold {
    background: rgba(12, 13, 18, 0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid #fbbf24;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.28);
    color: #fef3c7;
}

.artboard-draggable-text.shadow {
    background: transparent;
    border: none;
    padding: 4px 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.88), 0 1px 3px rgba(0, 0, 0, 0.95);
}

.artboard-draggable-text.none {
    background: transparent;
    border: none;
    padding: 4px 8px;
    box-shadow: none;
}

.text-preset-chip:hover {
    border-color: #558222 !important;
    background: #eef5e6 !important;
    color: #1e293b !important;
}

.text-preset-chip.active {
    border-color: #558222 !important;
    background: #eef5e6 !important;
    box-shadow: 0 0 0 1px #558222;
}

/* ==========================================================================
   MINIMALIST & MODERN DRAWING OVERVIEW & QUOTES / FACTS CARDS (BELOW EDITOR)
   ========================================================================== */
.sketch-blueprint-card {
    margin: 26px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.06);
}

.sketch-blueprint-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.sketch-blueprint-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sketch-blueprint-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #eef5e6;
    color: #558222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sketch-blueprint-title {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.sketch-blueprint-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: #64748b;
}

.sketch-blueprint-badge {
    background: #eef5e6;
    color: #3f6219;
    border: 1px solid #d9ecc9;
    padding: 5px 13px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.sketch-blueprint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 10px;
}

.blueprint-metric-box {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.blueprint-metric-box:hover {
    background: #ffffff;
    border-color: #d9ecc9;
    transform: translateY(-1px);
}

.blueprint-metric-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blueprint-metric-label i {
    color: #558222;
    font-size: 11px;
}

.blueprint-metric-value {
    font-size: 15.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.blueprint-metric-note {
    font-size: 11px;
    color: #64748b;
}

.sketch-seo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
    margin: 24px 0 12px;
}

.sketch-seo-list-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.05);
}

.sketch-seo-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sketch-seo-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef5e6;
    color: #558222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sketch-seo-card-icon.facts-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.sketch-seo-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.sketch-seo-card-sub {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #64748b;
}

.sketch-seo-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sketch-seo-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.sketch-seo-list-item:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.sketch-seo-item-text {
    font-size: 13px;
    line-height: 1.5;
    color: #1e293b;
    flex: 1;
}

.btn-try-on-canvas {
    flex-shrink: 0;
    background: #eef5e6;
    color: #3f6219;
    border: 1px solid #d9ecc9;
    border-radius: 100px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-try-on-canvas:hover {
    background: #558222;
    color: #ffffff;
    border-color: #466d1b;
    transform: translateY(-1px);
}

body.dark-theme .sketch-blueprint-card,
body.dark-theme .sketch-seo-list-card {
    background: #1a1a1a;
    border-color: #2c2c2c;
}

body.dark-theme .sketch-blueprint-header,
body.dark-theme .sketch-seo-card-head {
    border-color: #2c2c2c;
}

body.dark-theme .sketch-blueprint-title,
body.dark-theme .sketch-seo-card-title,
body.dark-theme .blueprint-metric-value {
    color: #f8fafc;
}

body.dark-theme .blueprint-metric-box,
body.dark-theme .sketch-seo-list-item {
    background: #222222;
    border-color: #2c2c2c;
}

body.dark-theme .sketch-seo-item-text {
    color: #e2e8f0;
}




/* Japandi Hanko Seal Stamp (Theme 01) */
.hanko-seal {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1.5px solid #558222;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    color: #558222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    z-index: 20;
    pointer-events: none;
    user-select: none;
    box-shadow: 0 2px 5px rgba(85, 130, 34, 0.15);
}


/* ==========================================================================
   THEME 01: KINTSUGI ARTISAN STUDIO - OFFICIAL SIGNATURE STYLING OVERRIDES
   Linen (#f8f6f0, #f5efe6), Kintsugi Amber (#558222), 2px Solid Black Borders
   ========================================================================== */

/* Page container */
.sketch-page-wrapper {
    max-width: 1240px !important;
    margin: 26px auto 56px !important;
    padding: 0 20px !important;
}

/* Studio Editor Shell */
.sketch-editor-block {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 20px !important;
    box-shadow: 5px 5px 0px #000000 !important;
    overflow: hidden;
}

/* Left: Artboard Canvas Stage (Ultra-Light Ivory + Soft Olive Tint Dot-Grid Stage) */
.sketch-artboard-area {
    background-color: #fdfcf9 !important;
    background-image:
        radial-gradient(rgba(85, 130, 34, 0.22) 1.3px, transparent 1.3px),
        linear-gradient(135deg, #ffffff 0%, #fdfcf9 58%, #f2f7ec 100%) !important;
    background-size: 20px 20px, 100% 100% !important;
    border-right: 2px solid #000000 !important;
    padding: 14px 18px 12px 60px !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Mobile / Studio Full Mode Toggle Button (Top-Right of Artboard) */
.artboard-fullmode-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 32;
    background: #ffffff;
    color: #000000;
    border: 1.5px solid #000000;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #000000;
    transition: all 0.15s ease;
    line-height: 1.2;
}

.artboard-fullmode-btn:hover,
.artboard-fullmode-btn.active {
    background: #558222;
    color: #ffffff;
    border-color: #000000;
}

.artboard-fullmode-btn i {
    font-size: 10.5px;
}

/* Floating Transform Toolbar — Docked Vertically on Left Edge */
.artboard-floating-toolbar {
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 999px !important;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.12) !important;
    padding: 8px 5px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    margin-bottom: 0 !important;
    z-index: 30 !important;
}

.toolbar-btn-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
}

.artboard-tool-btn {
    color: #000000 !important;
    border: 1.5px solid transparent !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

.artboard-tool-btn:hover {
    background: #f4f4f5 !important;
    color: #558222 !important;
    border-color: #000000 !important;
}

.artboard-tool-btn.active {
    background: #558222 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.artboard-tool-btn.btn-text,
.artboard-tool-reset {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border: 1.5px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 50% !important;
    font-weight: 700 !important;
}

.artboard-tool-btn.btn-text:hover,
.artboard-tool-reset:hover {
    background: #f4f4f5 !important;
    color: #558222 !important;
}

.artboard-tool-divider {
    background: #000000 !important;
    width: 18px !important;
    height: 1.5px !important;
    margin: 2px 0 !important;
}

.artboard-tool-val {
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 9.5px !important;
    min-width: 30px !important;
    padding: 2px 3px !important;
    text-align: center !important;
}

.artboard-tool-val:hover {
    background: #eef5e6 !important;
    color: #558222 !important;
}

/* Vertical Toolbar Zoom Quick Popup opens to the Right */
.zoom-quick-popup {
    top: 50% !important;
    left: calc(100% + 10px) !important;
    transform: translateY(-50%) translateX(-4px) !important;
    flex-direction: column !important;
    border: 2px solid #000000 !important;
    box-shadow: 3px 3px 0px #000000 !important;
}

.zoom-quick-popup.show,
.zoom-val-wrapper:hover .zoom-quick-popup {
    transform: translateY(-50%) translateX(0) !important;
}

/* Artboard Paper / Canvas (No !important on background so live JS theme/bg updates work!) */
.artboard-paper {
    background: #ffffff;
    border: 2px solid #000000 !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.16), 4px 4px 0px rgba(0, 0, 0, 0.08) !important;
    max-height: calc(100% - 46px);
}

/* Timeline Control Bar — Classic Centered Line + Play Button + Live Time (No White Box) */
.artboard-timeline-bar {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 5px 12px !important;
    margin: 6px auto 0 auto !important;
    width: 100% !important;
    max-width: 390px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 11px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.artboard-timeline-track-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.artboard-time-display {
    font-size: 11.5px;
    font-weight: 800;
    color: #000000;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 64px;
    text-align: right;
    user-select: none;
}

#btnPlayPause {
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
}

#btnPlayPause:hover {
    background: #558222 !important;
    border-color: #000000 !important;
    transform: scale(1.05) !important;
}

#animTimeline {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 4px !important;
    background: #000000 !important;
    border-radius: 999px !important;
    outline: none !important;
    cursor: pointer !important;
    margin: 0 !important;
}

#animTimeline::-webkit-slider-runnable-track {
    height: 4px !important;
    background: #000000 !important;
    border-radius: 999px !important;
}

#animTimeline::-moz-range-track {
    height: 4px !important;
    background: #000000 !important;
    border-radius: 999px !important;
}

#animTimeline::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: #558222 !important;
    border: 2px solid #000000 !important;
    margin-top: -5px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.15s ease !important;
}

#animTimeline::-moz-range-thumb {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background: #558222 !important;
    border: 2px solid #000000 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.15s ease !important;
}

#animTimeline::-webkit-slider-thumb:hover {
    transform: scale(1.18) !important;
}

/* Right Sidebar: Inspector */
.sketch-sidebar {
    background: #ffffff !important;
}

/* Tabs */
.editor-tabs {
    border-bottom: 2px solid #000000 !important;
    background: #ffffff !important;
}

.tab-btn {
    color: #71717a !important;
    font-weight: 700 !important;
    border-bottom: 3px solid transparent !important;
}

.tab-btn:hover {
    color: #000000 !important;
}

.tab-btn.active {
    color: #000000 !important;
    font-weight: 800 !important;
    border-bottom-color: #558222 !important;
}

/* Mobile Quick Nav */
.mobile-quick-nav {
    border-bottom: 2px solid #000000 !important;
}

.mobile-nav-chip {
    border: 1.5px solid #000000 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #18181b !important;
    font-weight: 700 !important;
}

.mobile-nav-chip:hover,
.mobile-nav-chip.active {
    background: #558222 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.mobile-nav-chip:hover i,
.mobile-nav-chip.active i {
    color: #ffffff !important;
}

/* Accordion Drawer Cards */
.sidebar-accordion {
    border: 1.5px solid #000000 !important;
    border-radius: 12px !important;
    background: #fdfcf9 !important;
    margin-bottom: 10px !important;
    transition: all 0.2s ease !important;
}

.sidebar-accordion:hover {
    border-color: #000000 !important;
    background: #ffffff !important;
    box-shadow: 2px 2px 0px #000000 !important;
}

.sidebar-accordion.open {
    border-color: #000000 !important;
    background: #ffffff !important;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.08) !important;
}

.sidebar-accordion-header {
    background: transparent !important;
}

.sidebar-accordion.open .sidebar-accordion-header {
    background: #fefcf9 !important;
    border-bottom: 1.5px solid #000000 !important;
}

.acc-icon-box {
    background: #eef5e6 !important;
    color: #558222 !important;
    border: 1px solid #000000 !important;
    border-radius: 8px !important;
}

.acc-title {
    color: #18181b !important;
    font-weight: 700 !important;
}

.acc-badge {
    background: #eef5e6 !important;
    color: #3f6219 !important;
    border: 1.5px solid #558222 !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

/* Preset Pill Buttons */
.preset-pill-btn {
    border: 1.5px solid #000000 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #18181b !important;
    font-weight: 600 !important;
}

.preset-pill-btn:hover {
    background: #f4f4f5 !important;
    color: #558222 !important;
    border-color: #000000 !important;
}

.preset-pill-btn.active {
    background: #558222 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

/* Theme Category Filter Pills */
.theme-cat-pill {
    border: 1.5px solid #000000 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #18181b !important;
    font-weight: 600 !important;
}

.theme-cat-pill:hover {
    background: #f4f4f5 !important;
}

.theme-cat-pill.active {
    background: #558222 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}

/* Theme Cards & Color Swatches */
.theme-card {
    border: 1.5px solid #000000 !important;
    border-radius: 8px !important;
}

.theme-card.active {
    border-color: #000000 !important;
    box-shadow: 0 0 0 2px #558222, 0 3px 8px rgba(85, 130, 34, 0.25) !important;
}

.color-swatch.active {
    border-color: #000000 !important;
    box-shadow: 0 0 0 2px #558222, 0 2px 6px rgba(85, 130, 34, 0.25) !important;
}

.custom-picker-swatch {
    border: 1.5px solid #000000 !important;
}

/* Export Cards */
.export-card {
    border: 1.5px solid #000000 !important;
    border-radius: 14px !important;
    background: #fdfcf9 !important;
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
}

.export-card-title {
    color: #18181b !important;
    font-weight: 700 !important;
}

.export-card-title i {
    color: #558222 !important;
}

.ratio-btn {
    border: 1.5px solid #000000 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #18181b !important;
    font-weight: 600 !important;
}

.ratio-btn:hover {
    background: #f4f4f5 !important;
    color: #558222 !important;
    border-color: #000000 !important;
}

.ratio-btn.active {
    background: #eef5e6 !important;
    border-color: #000000 !important;
    color: #3f6219 !important;
    box-shadow: none !important;
}

.ratio-btn.active i,
.ratio-btn.active .ratio-btn-sub {
    color: #558222 !important;
}

.engine-tab-btn {
    border: 1.5px solid #000000 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #18181b !important;
    font-weight: 600 !important;
}

.engine-tab-btn.active {
    background: #558222 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.res-select {
    border: 1.5px solid #000000 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #18181b !important;
    font-weight: 600 !important;
}

.res-select:hover,
.res-select:focus {
    border-color: #558222 !important;
    box-shadow: 0 0 0 3px rgba(85, 130, 34, 0.12) !important;
}

/* Export Buttons */
.btn-export-primary {
    background: #558222 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    box-shadow: 3px 3px 0px #000000 !important;
}

.btn-export-primary:hover {
    background: #466d1b !important;
    transform: translateY(-1px) !important;
    box-shadow: 4px 4px 0px #000000 !important;
}

.btn-export-secondary {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: 2px 2px 0px #000000 !important;
}

.btn-export-secondary:hover {
    background: #f4f4f5 !important;
    color: #558222 !important;
    transform: translateY(-1px) !important;
    box-shadow: 3px 3px 0px #000000 !important;
}

/* Drawing Overview & Practice Guide Blueprint Card */
.sketch-blueprint-card {
    border: 2px solid #000000 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.06) !important;
}

.blueprint-metric-box {
    border: 1.5px solid #000000 !important;
    border-radius: 10px !important;
    background: #fbf9f5 !important;
}

.sketch-blueprint-icon {
    border: 1.5px solid #000000 !important;
    background: #eef5e6 !important;
    color: #558222 !important;
    border-radius: 10px !important;
}

.sketch-blueprint-badge {
    border: 1.5px solid #000000 !important;
    background: #eef5e6 !important;
    color: #3f6219 !important;
    border-radius: 8px !important;
}

.blueprint-metric-label i {
    color: #558222 !important;
}

/* SEO Cards (Quotes & Captions Studio Card) */
.sketch-seo-list-card {
    border: 2px solid #000000 !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    padding: 22px 24px !important;
    box-shadow: 4px 4px 0px #000000 !important;
}

.sketch-seo-list-card .sketch-seo-card-head {
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.12) !important;
    padding-bottom: 14px !important;
    margin-bottom: 16px !important;
}

.sketch-seo-card-icon {
    border: 1.5px solid #000000 !important;
    background: #eef5e6 !important;
    color: #558222 !important;
    border-radius: 10px !important;
    box-shadow: 2px 2px 0px #000000 !important;
}

.sketch-seo-list-card .sketch-seo-card-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

.sketch-quotes-count-pill {
    font-size: 11px;
    font-weight: 800;
    color: #3f6219;
    background: #eef5e6;
    border: 1.5px solid #000000;
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.sketch-seo-list-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 15px 16px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcf9 100%) !important;
    border: 1.5px solid #000000 !important;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}

.sketch-seo-list-item:hover {
    background: #ffffff !important;
    border-color: #000000 !important;
    transform: translate(-1px, -2px);
    box-shadow: 3px 3px 0px #000000 !important;
}

.sketch-seo-item-quote-wrap {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.sketch-seo-quote-mark {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    line-height: 0.9;
    font-weight: 700;
    color: #558222;
    flex-shrink: 0;
    margin-top: 2px;
}

.sketch-seo-item-text {
    font-size: 13.8px !important;
    line-height: 1.55 !important;
    color: #18181b !important;
    font-weight: 500 !important;
}

.sketch-seo-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.btn-copy-quote {
    flex-shrink: 0;
    background: #ffffff;
    color: #18181b;
    border: 1.5px solid #000000;
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-copy-quote:hover {
    background: #f2f7ec;
    color: #3f6219;
}

.btn-copy-quote.copied {
    background: #eef5e6;
    color: #3f6219;
    border-color: #558222;
}

.btn-try-on-canvas {
    border: 1.5px solid #000000 !important;
    background: #558222 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 2px 2px 0px #000000 !important;
}

.btn-try-on-canvas:hover {
    background: #466d1b !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    transform: translate(-1px, -1px) !important;
    box-shadow: 3px 3px 0px #000000 !important;
}

.sketch-badge {
    background: #558222 !important;
    color: #ffffff !important;
    border: 1.5px solid #000000 !important;
    border-radius: 999px !important;
    padding: 4px 12px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    box-shadow: 2px 2px 0px #000000 !important;
}

/* Selection Highlight Box */
.artboard-anim-selection-box {
    outline: 2px dashed #558222 !important;
}

.anim-sel-corner {
    border-color: #558222 !important;
}

.artboard-draggable-text.is-dragging,
.artboard-draggable-text.is-selected {
    outline: 2px dashed #558222 !important;
}

/* Upgrade Modal Overrides */
#sketchUpgradeModal > div {
    border: 2px solid #000000 !important;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   PREMIUM SIDEBAR "TEXT & QUOTES" STUDIO PANEL & 2-COL QUOTES CARD (V2)
   ========================================================================== */
.sidebar-accordion > .sidebar-accordion-body.sg-tq-panel {
    display: none;
}

.sidebar-accordion.open > .sidebar-accordion-body.sg-tq-panel,
.sidebar-accordion.mobile-panel-active > .sidebar-accordion-body.sg-tq-panel {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px !important;
}

/* 2 Sub-Tabs Inside Text & Quotes Accordion (Quotes vs Design) */
.sg-tq-subtabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 3px;
    background: #eef5e6;
    border: 1.5px solid #000000;
    border-radius: 999px;
}

.sg-tq-subtab-btn {
    appearance: none;
    border: 1.5px solid transparent;
    background: transparent;
    color: #18181b;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.18s ease;
    font-family: inherit;
}

.sg-tq-subtab-btn i {
    font-size: 10.5px;
    color: #558222;
}

.sg-tq-subtab-btn:hover {
    background: rgba(255, 255, 255, 0.7);
}

.sg-tq-subtab-btn.active {
    background: #558222 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 1.5px 1.5px 0px #000000;
}

.sg-tq-subtab-btn.active i {
    color: #ffffff !important;
}

.sg-tq-subpane {
    display: none;
    flex-direction: column;
    gap: 9px;
}

.sg-tq-subpane.active {
    display: flex !important;
}

.sg-tq-master-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, #fdfcf9 0%, #f1f5f9 100%);
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sg-tq-master-toggle:hover {
    border-color: #558222;
    background: #ffffff;
}

.sg-tq-toggle-left {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sg-tq-toggle-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(85, 130, 34, 0.12);
    color: #558222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sg-tq-toggle-title {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.sg-tq-toggle-sub {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

.sg-tq-checkbox {
    accent-color: #558222;
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.sg-tq-controls-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.2s ease;
}

.sg-tq-field-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 9px 10px;
}

.sg-tq-textarea {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
    line-height: 1.45;
}

.sg-tq-textarea:focus {
    border-color: #558222;
    box-shadow: 0 0 0 3px rgba(85, 130, 34, 0.12);
}

.sg-tq-count-pill {
    font-size: 10px;
    font-weight: 700;
    color: #558222;
    background: rgba(85, 130, 34, 0.12);
    padding: 2px 8px;
    border-radius: 100px;
}

.sg-tq-quotes-list {
    max-height: 145px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 3px;
}

.sg-tq-quote-chip {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    text-align: left !important;
    font-size: 11.2px !important;
    line-height: 1.4 !important;
    padding: 7px 9px !important;
    border-radius: 9px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
}

.sg-tq-quote-chip:hover {
    border-color: #558222 !important;
    background: #fdfcf9 !important;
    transform: translateY(-1px);
}

.sg-tq-quote-chip.active {
    border-color: #558222 !important;
    background: rgba(85, 130, 34, 0.08) !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}

.sg-tq-chip-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #558222;
    font-size: 9.5px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.sg-tq-quote-chip.active .sg-tq-chip-num {
    background: #558222;
    color: #ffffff;
}

.sg-tq-chip-text {
    flex: 1;
}

.sg-tq-select {
    height: 36px !important;
    font-size: 11.5px !important;
    border-radius: 9px !important;
    background-color: #ffffff !important;
}

.sg-tq-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.sg-tq-select-sm {
    height: 34px !important;
    font-size: 11px !important;
    padding: 0 22px 0 8px !important;
    border-radius: 8px !important;
}

.sg-tq-size-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 7px 9px;
}

.sg-tq-color-col {
    width: 68px;
    text-align: center;
}

.sg-tq-color-input {
    width: 100%;
    height: 30px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    padding: 2px;
}

.sg-tq-pos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.sg-tq-pos-grid .preset-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* 2-Column Responsive Layout for Below-Editor Quotes List */
.sg-quotes-2col-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

@media (max-width: 768px) {
    .sg-quotes-2col-list {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   CLASSIC TITLE BANNER, EDITORIAL GUIDE & QUOTES BELOW CANVAS (UPGRADED)
   ========================================================================== */
.sketch-seo-block {
    margin: 22px 0 16px !important;
    padding: 20px 24px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcf9 70%, #f2f7ec 100%) !important;
    border: 2px solid #000000 !important;
    border-radius: 18px !important;
    box-shadow: 4px 4px 0px #000000 !important;
}

.sketch-seo-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.sketch-seo-breadcrumbs a {
    color: #558222;
    text-decoration: none;
    font-weight: 700;
}

.sketch-seo-breadcrumbs a:hover {
    text-decoration: underline;
}

.sketch-seo-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.sketch-seo-block .sketch-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(22px, 2.8vw, 30px) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #000000 !important;
    margin: 0 !important;
    flex: 1 1 320px;
}

.sketch-seo-block .favorite-btn {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    border-radius: 999px !important;
    padding: 7px 14px !important;
    gap: 7px !important;
    box-shadow: 2px 2px 0px #000000 !important;
    font-size: 12.5px;
    font-weight: 700;
    color: #18181b;
    font-family: inherit;
    flex-shrink: 0;
}

.sketch-seo-block .favorite-btn:hover {
    background: #fef2f2 !important;
    transform: translate(-1px, -1px) !important;
    box-shadow: 3px 3px 0px #000000 !important;
}

.sketch-seo-block .favorite-btn.active {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
}

.sketch-seo-block .sketch-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sketch-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #18181b;
    background: #ffffff;
    border: 1.5px solid #000000;
    border-radius: 999px;
    padding: 4px 12px;
}

.sketch-meta-chip i {
    color: #558222;
}

.sg-share-bar {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.sg-share-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #57534e;
    margin-right: 2px;
}

.sg-share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    color: #18181b;
    border: 1.5px solid #000000;
    box-shadow: 2px 2px 0px #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sg-share-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000000;
    color: #ffffff;
}

.sg-share-btn.is-pinterest:hover { background: #e60023; border-color: #000000; }
.sg-share-btn.is-whatsapp:hover  { background: #16a34a; border-color: #000000; }
.sg-share-btn.is-x:hover         { background: #18181b; border-color: #000000; }
.sg-share-btn.is-facebook:hover  { background: #1877f2; border-color: #000000; }
.sg-share-btn.is-copy:hover,
.sg-share-btn.is-copy.copied     { background: #558222; border-color: #000000; color: #ffffff; }
.sg-share-btn.is-native          { width: auto; padding: 0 11px; border-radius: 999px; gap: 5px; font-size: 11.5px; font-weight: 700; display: none; }
.sg-share-btn.is-native:hover    { background: #558222; }

.sg-post-export-share {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f2f7ec;
    border: 1.5px solid #000000;
    border-radius: 12px;
    box-shadow: 2px 2px 0px #000000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: #1c1917;
}

.sg-post-export-btns {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sg-share-mini {
    background: #ffffff;
    color: #18181b;
    border: 1.5px solid #000000;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.sg-share-mini:hover {
    background: #558222;
    color: #ffffff;
}

body.dark-theme .sg-share-label,
body.dark-mode .sg-share-label {
    color: #a1a1aa;
}

body.dark-theme .sg-share-btn,
body.dark-mode .sg-share-btn,
body.dark-theme .sg-share-mini,
body.dark-mode .sg-share-mini {
    background: #1e201c;
    color: #e4e4e7;
    border-color: #2e322b;
    box-shadow: 2px 2px 0px #060706;
}

body.dark-theme .sg-post-export-share,
body.dark-mode .sg-post-export-share {
    background: #1a2115;
    border-color: #2e322b;
    color: #e4e4e7;
}

@media (max-width: 768px) {
    .sg-share-bar {
        margin-left: 0;
        width: 100%;
        padding-top: 4px;
    }
}

.classic-editorial-box {
    margin: 0 0 18px !important;
    padding: 18px 22px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fdfcf9 100%) !important;
    border: 2px solid #000000 !important;
    border-radius: 18px !important;
    box-shadow: 4px 4px 0px #000000 !important;
}

.sg-unified-below-card {
    margin: 22px 0 18px !important;
    padding: 22px 26px !important;
}

.sg-unified-below-card .classic-editorial-box {
    margin: 16px 0 0 !important;
    padding: 16px 0 0 !important;
    background: transparent !important;
    border: none !important;
    border-top: 1.5px dashed rgba(0, 0, 0, 0.14) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sg-unified-below-card .sketch-tags-bar {
    margin: 16px 0 0 !important;
    padding: 14px 0 0 !important;
    background: transparent !important;
    border: none !important;
    border-top: 1.5px dashed rgba(0, 0, 0, 0.14) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.dark-theme .sg-unified-below-card .classic-editorial-box,
body.dark-mode .sg-unified-below-card .classic-editorial-box,
body.dark-theme .sg-unified-below-card .sketch-tags-bar,
body.dark-mode .sg-unified-below-card .sketch-tags-bar {
    background: transparent !important;
    border: none !important;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
}

.classic-editorial-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.classic-summary-lead {
    margin: 0 !important;
    font-size: 14.2px !important;
    line-height: 1.65 !important;
    color: #27272a !important;
    flex: 1 1 320px;
}

.classic-lead-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef5e6;
    color: #3f6219;
    border: 1.5px solid #000000;
    box-shadow: 1.5px 1.5px 0px #000000;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-right: 8px;
    vertical-align: baseline;
}

.btn-toggle-editorial {
    appearance: none;
    background: #ffffff;
    color: #000000;
    border: 1.5px solid #000000;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 2px 2px 0px #000000;
    transition: all 0.16s ease;
    font-family: inherit;
}

.btn-toggle-editorial:hover {
    background: #558222;
    color: #ffffff;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #000000;
}

.classic-editorial-full {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1.5px dashed rgba(0, 0, 0, 0.16);
    font-size: 14.5px;
    line-height: 1.75;
    color: #27272a;
}

.classic-editorial-box.is-expanded .classic-editorial-full {
    display: block;
}

.classic-editorial-box.is-expanded .btn-toggle-editorial i {
    transform: rotate(180deg);
}

.classic-editorial-article h2,
.classic-editorial-article h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #000000;
    margin: 20px 0 8px;
    line-height: 1.3;
    padding-left: 10px;
    border-left: 3px solid #558222;
}

.classic-editorial-article p {
    margin: 0 0 12px;
}

.classic-editorial-article ul,
.classic-editorial-article ol {
    margin: 8px 0 14px 20px;
    padding: 0;
}

.classic-editorial-article li {
    margin-bottom: 6px;
}

.classic-editorial-article blockquote {
    margin: 14px 0;
    padding: 12px 16px;
    background: #f2f7ec;
    border: 1.5px solid #000000;
    border-left: 4px solid #558222;
    border-radius: 10px;
    font-style: italic;
}

.classic-blueprint-card {
    margin: 4px 0 18px !important;
    padding: 16px 18px !important;
    border: 2px solid #000000 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 3px 3px 0px #000000 !important;
}

.classic-blueprint-card .sketch-blueprint-header {
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.1) !important;
}

.classic-blueprint-card .sketch-blueprint-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #000000 !important;
}

.classic-blueprint-card .sketch-blueprint-sub {
    font-size: 12px !important;
    color: #52525b !important;
}

.classic-blueprint-card .classic-specs-strip {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.classic-blueprint-card .blueprint-metric-box {
    padding: 10px 11px !important;
    border-radius: 11px !important;
    border: 1.5px solid #000000 !important;
    background: #fdfcf9 !important;
    gap: 3px !important;
}

.classic-blueprint-card .blueprint-metric-label {
    font-size: 10px !important;
    color: #52525b !important;
}

.classic-blueprint-card .blueprint-metric-value {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #000000 !important;
}

.sketch-tags-bar {
    margin: 20px 0 8px !important;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 14px;
    box-shadow: 3px 3px 0px #000000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sketch-tags-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sg-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1.5px solid #000000;
    background: #fdfcf9;
    color: #18181b;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.16s ease;
}

.sg-tag-pill:hover {
    background: #558222;
    color: #ffffff;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0px #000000;
}

/* Classic Obsidian Dark Mode Sync (Zero Harsh White Borders / Lines) */
body.dark-theme .sketch-editor-block,
body.dark-mode .sketch-editor-block {
    background: #181a17 !important;
    border-color: #2e322b !important;
    box-shadow: 5px 5px 0px #060706 !important;
}

body.dark-theme .sketch-artboard-area,
body.dark-mode .sketch-artboard-area {
    background-color: #131412 !important;
    background-image:
        radial-gradient(rgba(163, 217, 108, 0.14) 1.2px, transparent 1.2px),
        linear-gradient(135deg, #181a17 0%, #131412 100%) !important;
    border-right-color: #2b2e28 !important;
}

body.dark-theme .sketch-sidebar,
body.dark-mode .sketch-sidebar,
body.dark-theme .editor-tabs,
body.dark-mode .editor-tabs {
    background: #181a17 !important;
    border-color: #2b2e28 !important;
}

body.dark-theme .tab-btn,
body.dark-mode .tab-btn {
    color: #a1a1aa !important;
}

body.dark-theme .tab-btn.active,
body.dark-mode .tab-btn.active {
    color: #f4f4f5 !important;
    border-bottom-color: #6da82b !important;
}

body.dark-theme .mobile-quick-nav,
body.dark-mode .mobile-quick-nav {
    background: #141513 !important;
    border-bottom-color: #2b2e28 !important;
}

body.dark-theme .mobile-nav-chip,
body.dark-mode .mobile-nav-chip {
    background: #1e201c !important;
    border-color: #2e322b !important;
    color: #e4e4e7 !important;
}

body.dark-theme .sidebar-accordion,
body.dark-mode .sidebar-accordion,
body.dark-theme .export-card,
body.dark-mode .export-card {
    background: #1e201c !important;
    border-color: #2e322b !important;
}

body.dark-theme .sidebar-accordion.open,
body.dark-mode .sidebar-accordion.open,
body.dark-theme .sidebar-accordion:hover,
body.dark-mode .sidebar-accordion:hover {
    background: #20231e !important;
    border-color: #383d34 !important;
    box-shadow: 3px 3px 0px #060706 !important;
}

body.dark-theme .sidebar-accordion.open .sidebar-accordion-header,
body.dark-mode .sidebar-accordion.open .sidebar-accordion-header {
    background: #1c2217 !important;
    border-bottom-color: #2e322b !important;
}

body.dark-theme .acc-title,
body.dark-mode .acc-title,
body.dark-theme .export-card-title,
body.dark-mode .export-card-title,
body.dark-theme .sg-export-step-title,
body.dark-mode .sg-export-step-title {
    color: #f4f4f5 !important;
}

body.dark-theme .acc-icon-box,
body.dark-mode .acc-icon-box,
body.dark-theme .acc-badge,
body.dark-mode .acc-badge {
    background: #1f2818 !important;
    border-color: #2e322b !important;
    color: #a3d96c !important;
}

body.dark-theme .preset-pill-btn,
body.dark-mode .preset-pill-btn,
body.dark-theme .theme-cat-pill,
body.dark-mode .theme-cat-pill,
body.dark-theme .ratio-btn,
body.dark-mode .ratio-btn,
body.dark-theme .engine-tab-btn,
body.dark-mode .engine-tab-btn,
body.dark-theme .sg-htab-btn,
body.dark-mode .sg-htab-btn,
body.dark-theme .res-select,
body.dark-mode .res-select {
    background: #181a17 !important;
    border-color: #2e322b !important;
    color: #e4e4e7 !important;
}

body.dark-theme .preset-pill-btn.active,
body.dark-mode .preset-pill-btn.active,
body.dark-theme .theme-cat-pill.active,
body.dark-mode .theme-cat-pill.active,
body.dark-theme .engine-tab-btn.active,
body.dark-mode .engine-tab-btn.active,
body.dark-theme .sg-htab-btn.active,
body.dark-mode .sg-htab-btn.active {
    background: #558222 !important;
    border-color: #6da82b !important;
    color: #ffffff !important;
}

body.dark-theme .artboard-floating-toolbar,
body.dark-mode .artboard-floating-toolbar,
body.dark-theme .artboard-fullmode-btn,
body.dark-mode .artboard-fullmode-btn,
body.dark-theme .zoom-quick-popup,
body.dark-mode .zoom-quick-popup {
    background: #181a17 !important;
    border-color: #2e322b !important;
    color: #f4f4f5 !important;
    box-shadow: 3px 3px 0px #060706 !important;
}

body.dark-theme .artboard-tool-btn,
body.dark-mode .artboard-tool-btn,
body.dark-theme .artboard-tool-val,
body.dark-mode .artboard-tool-val {
    color: #e4e4e7 !important;
}

body.dark-theme .artboard-tool-divider,
body.dark-mode .artboard-tool-divider {
    background: #2e322b !important;
}

body.dark-theme .btn-export-primary,
body.dark-mode .btn-export-primary,
body.dark-theme .btn-try-on-canvas,
body.dark-mode .btn-try-on-canvas,
body.dark-theme .sketch-badge,
body.dark-mode .sketch-badge {
    border-color: #2e322b !important;
    box-shadow: 2px 2px 0px #060706 !important;
}

body.dark-theme .sketch-seo-block,
body.dark-mode .sketch-seo-block,
body.dark-theme .classic-editorial-box,
body.dark-mode .classic-editorial-box,
body.dark-theme .sketch-seo-list-card,
body.dark-mode .sketch-seo-list-card,
body.dark-theme .sketch-tags-bar,
body.dark-mode .sketch-tags-bar {
    background: #181a17 !important;
    border-color: #2e322b !important;
    box-shadow: 4px 4px 0px #060706 !important;
}

body.dark-theme .sketch-seo-block .sketch-title,
body.dark-mode .sketch-seo-block .sketch-title,
body.dark-theme .sketch-seo-list-card .sketch-seo-card-title,
body.dark-mode .sketch-seo-list-card .sketch-seo-card-title,
body.dark-theme .classic-editorial-article h2,
body.dark-mode .classic-editorial-article h2,
body.dark-theme .classic-editorial-article h3,
body.dark-mode .classic-editorial-article h3,
body.dark-theme .sketch-tags-label,
body.dark-mode .sketch-tags-label {
    color: #f4f4f5 !important;
}

body.dark-theme .classic-summary-lead,
body.dark-mode .classic-summary-lead,
body.dark-theme .classic-editorial-full,
body.dark-mode .classic-editorial-full,
body.dark-theme .sketch-seo-item-text,
body.dark-mode .sketch-seo-item-text {
    color: #d4d4d8 !important;
}

body.dark-theme .sketch-seo-list-item,
body.dark-mode .sketch-seo-list-item,
body.dark-theme .sketch-meta-chip,
body.dark-mode .sketch-meta-chip,
body.dark-theme .sg-tag-pill,
body.dark-mode .sg-tag-pill,
body.dark-theme .btn-copy-quote,
body.dark-mode .btn-copy-quote,
body.dark-theme .sketch-seo-block .favorite-btn,
body.dark-mode .sketch-seo-block .favorite-btn {
    background: #1e201c !important;
    color: #e4e4e7 !important;
    border-color: #2e322b !important;
    box-shadow: 2px 2px 0px #060706 !important;
}

body.dark-theme .sketch-seo-list-item:hover,
body.dark-mode .sketch-seo-list-item:hover,
body.dark-theme .sg-tag-pill:hover,
body.dark-mode .sg-tag-pill:hover {
    border-color: #558222 !important;
    background: #23281d !important;
    color: #ffffff !important;
}

body.dark-theme .sketch-seo-card-icon,
body.dark-mode .sketch-seo-card-icon,
body.dark-theme .sketch-quotes-count-pill,
body.dark-mode .sketch-quotes-count-pill,
body.dark-theme .classic-lead-tag,
body.dark-mode .classic-lead-tag,
body.dark-theme .sketch-blueprint-icon,
body.dark-mode .sketch-blueprint-icon,
body.dark-theme .sketch-blueprint-badge,
body.dark-mode .sketch-blueprint-badge {
    background: #1f2818 !important;
    border-color: #2e322b !important;
    color: #a3d96c !important;
    box-shadow: none !important;
}

body.dark-theme .sketch-seo-list-card .sketch-seo-card-head,
body.dark-mode .sketch-seo-list-card .sketch-seo-card-head,
body.dark-theme .classic-blueprint-card .sketch-blueprint-header,
body.dark-mode .classic-blueprint-card .sketch-blueprint-header,
body.dark-theme .sketch-seo-item-actions,
body.dark-mode .sketch-seo-item-actions,
body.dark-theme .classic-editorial-full,
body.dark-mode .classic-editorial-full {
    border-color: #2b2e28 !important;
}

body.dark-theme .artboard-time-display,
body.dark-mode .artboard-time-display {
    color: #e4e4e7 !important;
}

body.dark-theme #animTimeline,
body.dark-mode #animTimeline,
body.dark-theme #animTimeline::-webkit-slider-runnable-track,
body.dark-mode #animTimeline::-webkit-slider-runnable-track,
body.dark-theme #animTimeline::-moz-range-track,
body.dark-mode #animTimeline::-moz-range-track {
    background: #32362d !important;
}

body.dark-theme #btnPlayPause,
body.dark-mode #btnPlayPause {
    background: #558222 !important;
    border-color: #2e322b !important;
}

body.dark-theme .classic-blueprint-card,
body.dark-mode .classic-blueprint-card {
    background: #141513 !important;
    border-color: #2e322b !important;
    box-shadow: 3px 3px 0px #060706 !important;
}

body.dark-theme .classic-blueprint-card .blueprint-metric-box,
body.dark-mode .classic-blueprint-card .blueprint-metric-box,
body.dark-theme .btn-toggle-editorial,
body.dark-mode .btn-toggle-editorial {
    background: #1e201c !important;
    border-color: #2e322b !important;
    color: #e4e4e7 !important;
    box-shadow: 2px 2px 0px #060706 !important;
}

body.dark-theme .classic-blueprint-card .sketch-blueprint-title,
body.dark-mode .classic-blueprint-card .sketch-blueprint-title,
body.dark-theme .classic-blueprint-card .blueprint-metric-value,
body.dark-mode .classic-blueprint-card .blueprint-metric-value {
    color: #f4f4f5 !important;
}

body.dark-theme .classic-editorial-article blockquote,
body.dark-mode .classic-editorial-article blockquote {
    background: #1f2818;
    border-color: #2e322b;
    border-left-color: #6da82b;
    color: #e4e4e7;
}

@media (max-width: 900px) {
    .classic-blueprint-card .classic-specs-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .sketch-seo-block,
    .classic-editorial-box,
    .sketch-seo-list-card {
        padding: 16px 16px !important;
        border-radius: 15px !important;
    }
    .classic-blueprint-card .classic-specs-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ==========================================================================
   MOBILE & STUDIO FULL MODE + EDGE-TO-EDGE MOBILE CANVAS OVERRIDES
   ========================================================================== */
/* Desktop hides mobile tools trigger button */
.artboard-mobile-tools-trigger {
    display: none;
}

/* Full Mode: ONLY the Studio Editor is visible — hide header, below-editor text/SEO, and footer */
body.sketch-full-mode {
    overflow: hidden !important;
}

body.sketch-full-mode .site-header-outer,
body.sketch-full-mode .sketch-seo-block,
body.sketch-full-mode .sketch-content-preview,
body.sketch-full-mode .sketch-blueprint-card,
body.sketch-full-mode .sketch-seo-cards-grid,
body.sketch-full-mode .sketch-tags-bar,
body.sketch-full-mode .related-videos-section,
body.sketch-full-mode .platform-footer-divider,
body.sketch-full-mode .site-platform-footer,
body.sketch-full-mode footer {
    display: none !important;
}

body.sketch-full-mode .sketch-page-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
}

body.sketch-full-mode .sketch-editor-block {
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 1023px) {
    .sketch-page-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .sketch-editor-block {
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: 2px solid #000000 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 14px !important;
        height: calc(100dvh - 56px) !important;
    }

    .sketch-artboard-area {
        padding: 6px 0 4px !important;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 2px solid #000000 !important;
    }

    /* Normal Mobile Mode: Hide left floating canvas control toolbar & trigger completely */
    body:not(.sketch-full-mode) .artboard-floating-toolbar,
    body:not(.sketch-full-mode) .artboard-mobile-tools-trigger {
        display: none !important;
    }

    /* Mobile Full Mode: Show 1 compact small toggle button on top-left; open mini toolbar on click */
    body.sketch-full-mode .artboard-mobile-tools-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        z-index: 35 !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: 1.5px solid #000000 !important;
        box-shadow: 2px 2px 0px #000000 !important;
        font-size: 11.5px !important;
        cursor: pointer !important;
        padding: 0 !important;
        transition: all 0.16s ease !important;
    }

    body.sketch-full-mode .artboard-mobile-tools-trigger.active {
        background: #558222 !important;
        color: #ffffff !important;
    }

    body.sketch-full-mode .artboard-floating-toolbar {
        display: none !important;
    }

    body.sketch-full-mode .artboard-floating-toolbar.mobile-tools-open {
        display: flex !important;
        position: absolute !important;
        left: 8px !important;
        top: 40px !important;
        transform: none !important;
        padding: 4px 3px !important;
        gap: 2px !important;
        border-radius: 14px !important;
        border: 1.5px solid #000000 !important;
        box-shadow: 2px 2px 0px #000000 !important;
        z-index: 34 !important;
    }

    body.sketch-full-mode .artboard-floating-toolbar.mobile-tools-open .artboard-tool-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 9.5px !important;
    }

    body.sketch-full-mode .artboard-floating-toolbar.mobile-tools-open .artboard-tool-val {
        font-size: 8.5px !important;
        min-width: 24px !important;
        padding: 1px 2px !important;
    }

    body.sketch-full-mode .artboard-floating-toolbar.mobile-tools-open .artboard-tool-divider {
        width: 14px !important;
        margin: 1px 0 !important;
    }

    body.sketch-full-mode .sketch-editor-block {
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-bottom: none !important;
    }

    body.sketch-full-mode .sketch-artboard-area {
        height: 62% !important;
        max-height: 66% !important;
    }

    body.sketch-full-mode .sketch-sidebar {
        height: 38% !important;
    }

    /* Mobile Dark Mode Artboard Divider */
    body.dark-theme .sketch-artboard-area,
    body.dark-mode .sketch-artboard-area {
        border-bottom-color: #2b2e28 !important;
    }

    /* Classic compact timeline bar on mobile */
    .artboard-timeline-bar {
        padding: 3px 10px !important;
        margin: 4px auto 0 auto !important;
        max-width: 340px !important;
        gap: 8px !important;
    }

    #btnPlayPause {
        width: 26px !important;
        min-width: 26px !important;
        height: 26px !important;
        font-size: 10px !important;
    }

    .artboard-time-display {
        font-size: 10.5px !important;
        min-width: 56px !important;
    }

    /* Keep below-editor SEO / Blueprint cards nicely padded on mobile while editor is edge-to-edge */
    .sketch-seo-block,
    .sketch-content-preview,
    .sketch-blueprint-card,
    .sketch-seo-cards-grid,
    .sketch-tags-bar,
    .sketch-seo-grid,
    .related-videos-section {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
}
