/* =====================================================================
   Screenshot Maker — Editor UI (v2)
   Drop-in replacement for public/css/edgfqs2e.css
   Presentation only: every class / id / attribute used by
   ewsmcxsi.js, prejhgyu.js and lajcnhg.js is kept intact.
   ===================================================================== */

:root {
    --ed-rail: #0f172a;
    --ed-rail-hover: #1e293b;
    --ed-rail-text: #94a3b8;

    --ed-accent: #4f46e5;
    --ed-accent-hover: #4338ca;
    --ed-accent-soft: #eef2ff;

    --ed-bg: #f1f5f9;
    --ed-surface: #ffffff;
    --ed-border: #e2e8f0;
    --ed-border-strong: #cbd5e1;
    --ed-text: #0f172a;
    --ed-text-2: #334155;
    --ed-muted: #64748b;
    --ed-danger: #dc2626;
    --ed-danger-soft: #fef2f2;

    --ed-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --ed-shadow: 0 4px 14px rgba(15, 23, 42, .08);
    --ed-shadow-lg: 0 16px 40px rgba(15, 23, 42, .18);

    --ed-rail-w: 84px;
    --ed-header-h: 60px;
    --ed-left-w: 320px;
    --ed-right-w: 288px;

    --ed-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
#page-container { padding-top: 0 !important; }
#progress-bar { height: 0; }

.edit_screen {
    font-family: var(--ed-font);
    color: var(--ed-text);
    -webkit-font-smoothing: antialiased;
}
.edit_screen .row { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.edit_screen svg { display: inline-block; flex-shrink: 0; }

.edit_screen ::-webkit-scrollbar { width: 6px; height: 6px; }
.edit_screen ::-webkit-scrollbar-thumb { background: var(--ed-border-strong); border-radius: 6px; }
.edit_screen ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.edit_screen ::-webkit-scrollbar-track { background: transparent; box-shadow: none; }

.click-animation {
    transform: scale(.95);
    transition: transform .1s ease;
}
.tooltip { transition: none; font-family: var(--ed-font); }

.edit_screen kbd {
    display: inline-block;
    min-width: 18px;
    padding: 1px 5px;
    font: 600 10px/1.5 var(--ed-font);
    color: var(--ed-muted);
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 4px;
    box-shadow: none;
    text-align: center;
}

/* ---------------------------------------------------------------------
   Left rail
   --------------------------------------------------------------------- */
.edit_screen .sdchge.col-md-2 {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--ed-rail-w);
    padding: 0;
    display: block;
    background: var(--ed-rail);
    overflow-y: auto;
    z-index: 30;
}
.edit_screen .sdchge::-webkit-scrollbar { width: 0; }
.edit_screen .edit_cl1 {
    background: transparent;
    color: #fff;
    text-align: center;
    padding: 12px 8px;
    min-height: 100%;
}
.edit_screen .stn1 {
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.kjh_jhtbq {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 10px 4px;
    border-radius: 10px;
    color: var(--ed-rail-text);
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: background .15s, color .15s;
}
.kjh_jhtbq svg { width: 20px; height: 20px; }
.kjh_jhtbq:hover { background: var(--ed-rail-hover); color: #fff; }

.edit_cl1 .chld {
    width: 100%;
    margin: 0 0 4px;
    padding: 11px 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 0 !important;
    border-radius: 10px;
    color: var(--ed-rail-text);
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.edit_cl1 .chld > div { line-height: 0; }
.edit_screen .icns1q { width: 22px; height: 22px; margin: 0; filter: none; }
.tablinks span { font-size: 11px; font-weight: 500; line-height: 1.2; letter-spacing: .01em; }
.edit_cl1 .chld:hover { background: var(--ed-rail-hover); color: #e2e8f0; }
.edit_cl1 .chld.active {
    background: var(--ed-accent);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(79, 70, 229, .4);
}

/* ---------------------------------------------------------------------
   Workspace + top bar
   --------------------------------------------------------------------- */
.edit_screen .rstkarea {
    position: fixed;
    top: 0; left: var(--ed-rail-w); right: 0; bottom: 0;
    width: auto !important;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--ed-bg);
}
.bghdr1 {
    flex: 0 0 var(--ed-header-h);
    height: var(--ed-header-h);
    margin: 0;
    padding: 0 20px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    background: var(--ed-surface);
    border-bottom: 1px solid var(--ed-border);
    position: relative;
    z-index: 20;
}
.bghdr1 > .col-md-4 { flex: 0 0 auto; width: auto; }
.bghdr1 > .col-md-8 { flex: 1 1 auto; width: auto; min-width: 0; }

.ed-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 34px;
    padding-right: 16px;
    margin-right: 12px;
    border-right: 1px solid var(--ed-border);
}
.ed-brand-mark {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, var(--ed-accent), #7c3aed);
    box-shadow: 0 4px 10px rgba(79, 70, 229, .3);
}
.ed-brand-mark svg { width: 17px; height: 17px; }
.ed-brand-text { font-size: 14px; font-weight: 600; line-height: 1.15; color: var(--ed-text); white-space: nowrap; }
.ed-brand-text small { display: block; font-size: 11px; font-weight: 500; color: var(--ed-muted); }

form.project_name { margin: 0; }
form.project_name > .row { display: flex; flex-wrap: nowrap; align-items: center; }
form.project_name > .row > .col-md-4 { flex: 1 1 auto; width: auto; min-width: 0; }
form.project_name > .row > .col-md-8 {
    flex: 0 0 auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.edit-header { position: relative; }
.edit-header h5 { margin: 0; }

.rstkarea .change_tl1 {
    position: static;
    transform: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid transparent !important;
    border-radius: 8px;
    background: transparent;
    color: var(--ed-text);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    box-shadow: none;
    transition: background .15s, border-color .15s;
}
.rstkarea .change_tl1:hover { background: var(--ed-bg); border-color: var(--ed-border) !important; }
.rstkarea .change_tl1:focus-within {
    background: #fff;
    border-color: var(--ed-accent) !important;
    box-shadow: 0 0 0 3px var(--ed-accent-soft);
}
.change_tl1 .prj_name { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prj_name.extend_input {
    width: 220px !important;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ed-text);
    font: inherit;
    text-align: left;
}
.ed-edit-ic { display: inline-flex; color: var(--ed-muted); }
.ed-edit-ic svg { width: 14px; height: 14px; }

/* buttons */
button.save,
button.export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-family: var(--ed-font);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
button.save svg, button.export svg { width: 16px; height: 16px; }
button.save {
    border: 0;
    background: var(--ed-accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 4px 12px rgba(79, 70, 229, .25);
}
button.save:hover { background: var(--ed-accent-hover); }
button.save small { font-size: 14px; }
button.export {
    border: 1px solid var(--ed-border);
    background: #fff;
    color: var(--ed-text);
}
button.export:hover { border-color: var(--ed-border-strong); background: var(--ed-bg); }

select#layout_type {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--ed-text);
    outline: none;
    cursor: pointer;
}

/* toast (appended by statusAlert) */
.extract-div { position: relative; }
.extract-div .toast_ok {
    position: fixed;
    top: auto; bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--ed-text);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    box-shadow: var(--ed-shadow-lg);
    animation: edToastIn .18s ease-out;
}
.toast_ok img { width: 16px; margin: 0; filter: brightness(0) invert(1); }
@keyframes edToastIn {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------------------------------------------------------------
   Three-column layout
   --------------------------------------------------------------------- */
.edit-section {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    overflow: hidden;
}
.fl_rvw {
    height: 100%;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
}
.fl_rvw > .list-options {
    flex: 0 0 var(--ed-left-w);
    width: var(--ed-left-w) !important;
    max-width: none;
    height: 100%;
    padding: 0;
    background: var(--ed-surface);
    border-right: 1px solid var(--ed-border);
    overflow: hidden;
}
.fl_rvw > .custom_editsqw2 {
    flex: 0 0 var(--ed-right-w);
    width: var(--ed-right-w) !important;
    max-width: none;
    height: 100%;
    padding: 0;
    background: var(--ed-surface);
    border-left: 1px solid var(--ed-border);
    overflow: hidden;
}
.fl_rvw > .parent_screens {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--ed-bg);
    background-image: radial-gradient(#d5dde8 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ---------------------------------------------------------------------
   Left panel (tab contents)
   --------------------------------------------------------------------- */
.lists_r {
    height: 100%;
    margin: 0;
    border: 0;
    text-align: left;
    overflow: hidden;
}
.lists_r .tabcontent {
    height: 100%;
    padding: 0 20px 32px;
    overflow-y: auto;
}

.panel-head {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -20px 18px;
    padding: 18px 20px 14px;
    background: var(--ed-surface);
    border-bottom: 1px solid var(--ed-border);
}
.panel-head h5 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ed-text); }
.panel-head p { margin: 3px 0 0; font-size: 12px; line-height: 1.45; color: var(--ed-muted); }

.backtab {
    display: none !important;
    width: 32px; height: 32px;
    flex: 0 0 32px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ed-text);
}
.backtab svg { width: 16px; height: 16px; }

/* sections + fields */
.ed-section {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ed-border);
}
.ed-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.ed-section-title {
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ed-muted);
}
.ed-field { margin-bottom: 14px; }
.ed-field > label,
.ed-field-head label,
.ed-label,
.text-heads1 {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ed-text-2);
}
.ed-field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.ed-field-head label { margin: 0; }
.ed-field-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ed-field-inline > label { margin: 0; }

.lists_r .form-control,
.lists_r .form-select {
    padding: 8px 10px;
    font-family: var(--ed-font);
    font-size: 13px;
    color: var(--ed-text);
    background-color: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.lists_r .form-select { height: 38px; padding-right: 32px; cursor: pointer; }
.lists_r textarea.form-control { min-height: 76px; resize: vertical; line-height: 1.5; }
.lists_r .form-control:focus,
.lists_r .form-select:focus {
    border-color: var(--ed-accent);
    box-shadow: 0 0 0 3px var(--ed-accent-soft);
    outline: none;
}
.lists_r .ed-num {
    width: 64px !important;
    height: 30px;
    padding: 4px 6px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* segmented tabs */
.lists_r .nav-tabs,
.lists_r .custom-tabs1 { border: 0; }
.lists_r .custom-tabs1 {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    background: var(--ed-bg);
    border-radius: 10px;
}
.lists_r .custom-tabs1 > div { flex: 1 1 0; width: auto; min-width: 0; }
.lists_r .custom-tabs1 .nav-link {
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0 10px;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent;
    color: var(--ed-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
    white-space: nowrap;
    box-shadow: none;
    transition: background .15s, color .15s;
}
.lists_r .custom-tabs1 .nav-link:hover { color: var(--ed-text); }
.lists_r .custom-tabs1 .nav-link.active {
    background: #fff !important;
    color: var(--ed-text) !important;
    box-shadow: var(--ed-shadow-sm);
}
#device .custom-tabs1 { overflow-x: auto; overflow-y: hidden; }
#device .custom-tabs1 > div { flex: 0 0 auto; }

/* colour field */
.ed-color {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: 150px;
    height: 38px;
    padding: 3px;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
}
.ed-color .de_clrlay {
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 30px !important;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    cursor: pointer;
}
.ed-color .de_clrlay::-webkit-color-swatch-wrapper { padding: 0; }
.ed-color .de_clrlay::-webkit-color-swatch { border: 1px solid rgba(15, 23, 42, .12); border-radius: 6px; }
.ed-color .de_clrlay::-moz-color-swatch { border: 1px solid rgba(15, 23, 42, .12); border-radius: 6px; }
.ed-color .input-group-append { flex: 1 1 auto; min-width: 0; }
.ed-color .mwcw1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    height: 30px;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ed-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    text-transform: uppercase;
    outline: none;
    box-shadow: none !important;
}

/* range sliders */
.edit_screen input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 4px;
    margin: 8px 0 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--ed-border);
    outline: none;
    cursor: pointer;
}
.edit_screen input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ed-accent);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
    cursor: pointer;
}
.edit_screen input[type=range]::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ed-accent);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
    cursor: pointer;
}
.edit_screen input[type=range]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--ed-accent); }

/* toggle groups (align / decoration) */
.ed-toggle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
    background: var(--ed-bg);
    border-radius: 10px;
}
#text .item_aligs,
#text .tabs_decr {
    width: auto;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: transparent;
    color: var(--ed-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
#text .item_aligs svg { width: 17px; height: 17px; }
#text .item_aligs:hover,
#text .tabs_decr:hover { color: var(--ed-text); }
#text .item_aligs.active,
#text .tabs_decr.active {
    background: #fff !important;
    color: var(--ed-text);
    box-shadow: var(--ed-shadow-sm);
}

/* devices */
#device .tab-pane > .row { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
#device .tab-pane > .row > div { flex: 0 0 50%; width: 50%; }
.bg_mocukpsb {
    height: 100%;
    margin: 0;
    padding: 14px 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--ed-border) !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bg_mocukpsb:hover { border-color: var(--ed-border-strong) !important; box-shadow: var(--ed-shadow); transform: translateY(-1px); }
.bg_mocukpsb.active {
    border-color: var(--ed-accent) !important;
    box-shadow: 0 0 0 3px var(--ed-accent-soft) !important;
}
.bg_mocukpsb img { width: auto !important; max-width: 80%; height: 140px; object-fit: contain; }
.bg_mocukpsb small { font-size: 12px; font-weight: 500; color: var(--ed-text); }

/* layouts */
.lists_r .list-div { --bs-gutter-x: 12px; --bs-gutter-y: 12px; }
.lists_r .list-div > div { flex: 0 0 50%; width: 50%; }
#layouts .card {
    position: relative;
    margin: 0 !important;
    padding: 0;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
#layouts .card > img { display: block; width: 100%; margin: 0; padding: 0; border: 0; }
#layouts .card:hover { box-shadow: var(--ed-shadow); transform: translateY(-1px); }
#layouts .card.active {
    border-color: var(--ed-accent) !important;
    box-shadow: 0 0 0 3px var(--ed-accent-soft);
}
#layouts .premium {
    position: absolute;
    top: 8px; right: 8px; bottom: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 5px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    box-shadow: 0 2px 6px rgba(249, 115, 22, .4);
}
#layouts .premium::after { content: 'PRO'; }
#layouts .card .premium img {
    width: 12px !important;
    height: 12px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0;
    filter: brightness(0) invert(1);
}

/* background */
.default_colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}
.default_colors div {
    width: 32px; height: 32px;
    margin: 0;
    display: grid !important;
    place-items: center;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .1);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}
.default_colors div:hover { transform: scale(1.08); }
.default_colors div.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ed-accent); }
.default_colors .tick { width: 14px; filter: brightness(0) invert(1); }

#background .layt_temp {
    display: block;
    width: 100% !important;
    height: 150px;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover;
    border: 1px solid var(--ed-border);
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow .15s, transform .15s;
}
#background .layt_temp:hover { box-shadow: var(--ed-shadow); transform: translateY(-1px); }
#background .layt_temp.active {
    border-color: var(--ed-accent);
    box-shadow: 0 0 0 3px var(--ed-accent-soft);
}

/* upload drop zone */
.cutom_up {
    width: 100%;
    margin: 0;
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    background: var(--ed-bg);
    border: 1.5px dashed var(--ed-border-strong);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.cutom_up:hover { border-color: var(--ed-accent); background: var(--ed-accent-soft); }
.cutom_up .ed-up-ic {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    margin-bottom: 4px;
    border-radius: 12px;
    background: #fff;
    color: var(--ed-accent);
    box-shadow: var(--ed-shadow-sm);
}
.cutom_up .ed-up-ic svg { width: 20px; height: 20px; }
.cutom_up strong { font-size: 13px; font-weight: 600; color: var(--ed-text); }
.cutom_up small { font-size: 12px; color: var(--ed-muted); }

/* templates */
#template .temp_scrn {
    margin-bottom: 12px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
#template .temp_scrn:hover { border-color: var(--ed-accent); box-shadow: var(--ed-shadow); }
.temp_scrn .row {
    --bs-gutter-x: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
}
.temp_scrn .row > div { flex: 0 0 31%; width: 31%; }
.temp_scrn img { display: block; padding: 0; border-radius: 6px; object-fit: cover; }

/* empty states */
.lists_r .remove_h { padding: 40px 0; color: var(--ed-muted); }
.lists_r .remove_h img { width: 72px !important; margin: 0 auto 12px; opacity: .8; }
.lists_r .remove_h span { font-size: 14px; }

/* ---------------------------------------------------------------------
   Canvas — list mode
   --------------------------------------------------------------------- */
.parent_screens .actionfirstDiv {
    flex: 0 0 auto;
    max-width: none;
    padding: 20px 28px 0;
}
.ed-screens-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ed-screens-title h6 { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--ed-text); }
.ed-screens-title span { font-size: 12px; color: var(--ed-muted); }
.ed-screens-title b { color: var(--ed-text-2); font-weight: 600; }

.move-copy {
    display: inline-flex;
    gap: 2px;
    margin: 0;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 10px;
    box-shadow: var(--ed-shadow-sm);
}
.move-copy span {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ed-text-2);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.move-copy span:hover { background: var(--ed-bg); color: var(--ed-text); }
.move-copy span[hjgnem="remove"]:hover { background: var(--ed-danger-soft); color: var(--ed-danger); }
.move-copy svg { width: 17px; height: 17px; }

.div_editohjm.container-lg {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.div_editohjm > .ed-mobile-toggles { flex: 0 0 auto; }
.div_editohjm .kjghmio { display: none; }

.list_screens {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 20px 28px 36px;
}
.list_screens .card_div {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: max-content;
    min-height: 100%;
    margin: 0 auto;
}
.list_screens .div_card { padding: 0; }
.list_screens .card { border: none; border-radius: 0; overflow: hidden; cursor: pointer; }
.list_screens .card-header { padding: 0; background: none; border: 0; }

.list_screens .card-header > .pageid {
    margin: 0 0 10px !important;
    font-size: 12px;
    font-weight: 600 !important;
    line-height: 18px;
    letter-spacing: .02em;
    color: var(--ed-muted);
}
.list_screens .card-header > .pageid::before { content: 'Screen '; }
.list_screens .div_card > .fw-bold.opacity-0 { margin-bottom: 10px !important; font-size: 12px; line-height: 18px; }

.continueNext {
    position: relative;
    border: 0;
    border-radius: 3px;
    outline: 2px solid transparent;
    outline-offset: 6px;
    transition: outline-color .15s;
}
.list_screens .div_card .continueNext { cursor: pointer; }
.list_screens .div_card .continueNext:hover { outline-color: var(--ed-border-strong); }
.continueNext.duplicate { border: 0; outline-color: var(--ed-accent) !important; }

/* shadow lives only on-screen (html2canvas clones outside .list_screens) */
.list_screens .main_div {
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 12px 32px rgba(15, 23, 42, .14);
}

.edit_thiss {
    position: absolute;
    left: 50%;
    bottom: 16px;
    top: auto;
    transform: translateX(-50%);
    z-index: 999;
}
.edit_thiss button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--ed-accent);
    color: #fff;
    font-family: var(--ed-font);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .45);
    transition: background .15s, transform .15s;
}
.edit_thiss button::before {
    content: '';
    width: 14px; height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.edit_thiss button:hover { background: var(--ed-accent-hover); transform: translateY(-1px); }

/* add card */
.card.add_more {
    height: 525px !important;
    width: 170px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .6);
    border: 1.5px dashed var(--ed-border-strong) !important;
    border-radius: 12px !important;
    cursor: default;
}
.add_more span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    color: var(--ed-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--ed-shadow-sm);
    transition: border-color .15s, color .15s;
}
.add_more span:hover { border-color: var(--ed-accent); color: var(--ed-accent); }
.add_more .plus_add { margin: 0; font-size: 18px; line-height: 1; }

/* ---------------------------------------------------------------------
   Canvas — edit mode (markup generated by appendTemplateSize)
   --------------------------------------------------------------------- */
.list_screens .card_div:has(> .template_size) { padding: 0 84px; }
.list_screens .template_size {
    position: relative;
    align-self: stretch;
    height: auto;
    min-height: 100%;
    width: auto;
    min-width: 310px;
    margin: 0 auto;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.template_size .main_div { position: relative; overflow: hidden; }

.template_size > .d-flex {
    position: absolute;
    top: 50%;
    left: -76px; right: -76px;
    margin: 0 !important;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 5;
}
.btn_previous,
.btn_next {
    width: 44px; height: 44px;
    margin: 0 !important;
    display: grid; place-items: center;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 50%;
    box-shadow: var(--ed-shadow);
    pointer-events: auto;
    cursor: pointer;
    transition: border-color .15s, transform .15s;
}
.btn_previous:hover, .btn_next:hover { border-color: var(--ed-accent); transform: scale(1.05); }
.btn_previous img, .btn_next img { width: 18px !important; filter: brightness(0); opacity: .75; }

.template_size .action_scrn {
    width: 100%;
    margin: 0 !important;
    padding: 6px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 12px;
    box-shadow: var(--ed-shadow-sm);
}
.action_scrn > .col-5 { flex: 0 0 auto; width: auto; }
.action_scrn > .col-7 { flex: 1 1 auto; width: auto; }
.action_scrn .form-select {
    width: 128px;
    height: 34px;
    padding: 0 28px 0 10px;
    font-family: var(--ed-font);
    font-size: 13px;
    font-weight: 600 !important;
    text-transform: capitalize;
    color: var(--ed-text);
    background-color: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
}
.action_scrn .text-end { align-items: center; justify-content: flex-end; gap: 2px; }
.action_scrn span {
    width: 32px; height: 32px;
    display: inline-grid; place-items: center;
    margin: 0 !important;
    padding: 0;
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    transition: background .15s;
}
.action_scrn span:hover { background: var(--ed-bg); }
.action_scrn span.remove:hover { background: var(--ed-danger-soft); }
.action_scrn img { width: 16px; height: 16px; object-fit: contain; filter: brightness(0); opacity: .7; }
.action_scrn .add_template {
    margin-left: 6px !important;
    height: 32px;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--ed-accent) !important;
    color: #fff !important;
    font-family: var(--ed-font);
    font-size: 13px;
    font-weight: 600 !important;
    white-space: nowrap;
}
.action_scrn .add_template:hover { background: var(--ed-accent-hover) !important; }

/* ---------------------------------------------------------------------
   Right panel (tools)
   --------------------------------------------------------------------- */
.main_edit {
    height: 100%;
    padding: 18px 18px 24px;
    overflow-y: auto;
    text-align: left;
    border: 0;
    border-radius: 0;
}
.mob_jhbrd { display: none; }
.mob_jhbrd .panel-head { margin: -18px -18px 16px; padding: 14px 18px; }

.main_edit .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 12px;
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 10px;
}
input#screenshots {
    width: 16px; height: 16px;
    margin: 0;
    accent-color: var(--ed-accent);
    cursor: pointer;
}
.main_edit .form-check-label { margin: 0; font-size: 13px; font-weight: 500; color: var(--ed-text); cursor: pointer; }

.insert_mg button {
    width: 100%;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    color: var(--ed-text);
    font-family: var(--ed-font);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--ed-shadow-sm);
    transition: border-color .15s, color .15s;
}
.insert_mg button svg { width: 16px; height: 16px; }
.insert_mg button:hover { border-color: var(--ed-accent); color: var(--ed-accent); }

.actnbrdf_lne { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.main_edit .bgs_cvr {
    height: 38px;
    margin: 0;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 8px;
    color: var(--ed-text-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    box-shadow: none;
    transition: border-color .15s, background .15s, color .15s;
}
.main_edit .bgs_cvr svg { width: 16px; height: 16px; color: var(--ed-muted); }
.main_edit .bgs_cvr span { flex: 1 1 auto; }
.main_edit .bgs_cvr:hover { border-color: var(--ed-accent); background: var(--ed-accent-soft); color: var(--ed-accent); }
.main_edit .bgs_cvr:hover svg { color: var(--ed-accent); }

.keys1_bgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keys1_bgs .frn_key1 {
    width: auto;
    height: 68px;
    margin: 0;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--ed-border);
    border-radius: 10px;
    color: var(--ed-text-2);
    font-size: 11.5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    user-select: none;
    box-shadow: none;
    transition: border-color .15s, background .15s, color .15s;
}
.keys1_bgs .frn_key1 svg { width: 18px; height: 18px; }
.keys1_bgs .frn_key1:hover { border-color: var(--ed-accent); background: var(--ed-accent-soft); color: var(--ed-accent); }
.keys1_bgs #remove_ele:hover { border-color: #fca5a5; background: var(--ed-danger-soft); color: var(--ed-danger); }

.main_edit .dvce_edt1 { margin-top: 4px; }
.main_edit .dvce_edt1 button {
    width: 100%;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--ed-text);
    color: #fff;
    font-family: var(--ed-font);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--ed-shadow) !important;
    transition: background .15s;
}
.main_edit .dvce_edt1 button svg { width: 17px; height: 17px; }
.main_edit .dvce_edt1 button:hover { background: #1e293b; }
.ed-hint { margin: 14px 0 0; font-size: 11px; line-height: 1.9; color: var(--ed-muted); text-align: center; }

/* ---------------------------------------------------------------------
   On-canvas selection + handles
   --------------------------------------------------------------------- */
.edit_border { border: 1px solid transparent; }
.edit_border.comm1 { border: 1px solid var(--ed-accent); }
.editevent.layer { margin: 0 auto; }
.layer { background-color: transparent; cursor: move; user-select: none; }
.layer::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background-color: var(--ed-accent);
    transform-origin: center;
    transform: scaleX(0);
}
.layer.dragging::before { transform: scaleX(1); }

.resize-handle {
    position: absolute;
    width: 10px; height: 10px;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid var(--ed-accent);
    border-radius: 2px;
    cursor: nwse-resize;
    z-index: 3;
}
.resize-handle.top-left     { top: -5px; left: -5px; }
.resize-handle.top-right    { top: -5px; right: -5px; cursor: nesw-resize; }
.resize-handle.bottom-left  { bottom: -5px; left: -5px; cursor: nesw-resize; }
.resize-handle.bottom-right { bottom: -5px; right: -5px; }

.rotation-handle {
    position: absolute;
    top: -50px; left: 50%;
    width: 2px; height: 50px;
    background-color: var(--ed-accent);
    transform: translateX(-1px);
    transform-origin: center top;
    cursor: grab;
}
.rotation-handle::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 100%;
    transform: translateX(-1px);
    background-color: var(--ed-accent);
}
.rotation-handle::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 12px; height: 12px;
    transform: translate(-6px, -6px);
    box-sizing: border-box;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--ed-accent);
}
.orderchanging { background-color: #f0f0f0; padding: 10px; margin: 5px; cursor: grab; }

/* ---------------------------------------------------------------------
   Banners & modals (outside .edit_screen too)
   --------------------------------------------------------------------- */
.info_premium {
    position: fixed;
    top: 14px; left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    width: auto;
    max-width: min(640px, calc(100vw - 32px));
    padding: 12px 44px 12px 16px;
    background: var(--ed-text);
    color: #fff;
    border-radius: 12px;
    box-shadow: var(--ed-shadow-lg);
}
.info_premium p { margin: 0; padding: 0; font-size: 14px; text-align: left; }
.info_premium p a { color: #a5b4fc; font-weight: 600; }
.info_premium .close img {
    position: absolute;
    top: 50%; right: 14px;
    width: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    filter: brightness(0) invert(1);
}

#preview_scrn.modal-content,
.exportOption.modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: var(--ed-shadow-lg);
    font-family: var(--ed-font);
}
.exportOption.modal-content { width: 85%; margin: 0 auto; padding: 32px; }
.exportOption .save-imgfr1 { text-align: center; }
.exportOption .save-imgfr1 img { width: 88px; }
.exportOption .save-imgfr1 h5 { margin-bottom: 1.5rem; font-weight: 700; }
.export-imgfr1 label { margin-bottom: 16px; }
.save_fr1btn, .save_projectbn {
    background: var(--ed-accent) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 600;
}

#preview_screens .save_flfr1 { margin: 0; }
#preview_scrn .save_flfr1 { padding: 28px; }
#preview_scrn h4 { font-size: 20px; }
.roll_images {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 8px 4px 16px;
}
.roll_images .range_prev {
    flex: 0 0 auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.roll_images .main_div { border-radius: 4px; box-shadow: var(--ed-shadow); }
.roll_images .title { font-size: 12px; font-weight: 600; color: var(--ed-muted); }
.roll_images div { cursor: unset !important; }
.random1_div .text_pt { position: absolute; left: 30%; transform: translate(0%, 0%); }

.owl-prev { position: absolute; top: 50%; transform: translate(-550%, -50%); }
.owl-next { position: absolute; top: 50%; transform: translate(400%, -50%); }
.owl-prev, .owl-next {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background-color: rgba(15, 23, 42, .45);
    color: #fff !important;
    font-size: 32px !important;
}

.network-error { margin: 0 auto; padding: 35px; text-align: center; border-radius: 16px; }
.network-error img { width: 120px; margin: 0 auto 24px; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1299.98px) {
    :root { --ed-left-w: 290px; --ed-right-w: 260px; }
}

@media (max-width: 991.98px) {
    :root { --ed-rail-w: 72px; --ed-left-w: 250px; --ed-right-w: 230px; }
    .ed-brand-text { display: none; }
    .ed-brand { padding-right: 12px; margin-right: 8px; }
    .keys1_bgs { grid-template-columns: repeat(2, 1fr); }
    .actnbrdf_lne { grid-template-columns: 1fr; }
    .ed-screens-title span { display: none; }
    .list_screens .card_div:has(> .template_size) { padding: 0 64px; }
    .template_size > .d-flex { left: -58px; right: -58px; }
    .btn_previous, .btn_next { width: 40px; height: 40px; }
}

@media (max-width: 767.98px) {
    :root { --ed-rail-w: 60px; --ed-header-h: 56px; }

    .tablinks span, .kjh_jhtbq span { display: none; }
    .edit_cl1 { padding: 10px 6px; }
    .edit_cl1 .chld { padding: 12px 4px; }
    .edit_screen .icns1q { width: 20px; height: 20px; }

    .ed-brand { display: none; }
    .bghdr1 { padding: 0 12px; }
    .rstkarea .change_tl1 { font-size: 14px; }
    .change_tl1 .prj_name { max-width: 110px; }
    .prj_name.extend_input { width: 120px !important; }
    button.save, button.export { padding: 0 12px; }
    button.export .ed-btn-text { display: none; }

    .edit-section { overflow-y: auto; }
    .fl_rvw { flex-wrap: wrap; height: auto; min-height: 100%; }
    .fl_rvw > .list-options,
    .fl_rvw > .custom_editsqw2 {
        flex: 0 0 100%;
        width: 100% !important;
        height: auto;
        border: 0;
    }
    .fl_rvw > .parent_screens {
        flex: 0 0 100%;
        height: auto;
        min-height: calc(100vh - var(--ed-header-h));
    }
    .fl_rvw div.lists_r, .fl_rvw div.main_edit { display: none; }
    .lists_r .tabcontent, .main_edit { height: auto; max-height: none; }

    .backtab { display: grid !important; }
    .main_edit .mob_jhbrd { display: block; }

    .parent_screens.col-md-6 .kjghmio { display: inline-block; }
    .ed-mobile-toggles { padding: 12px 16px 0; }
    .kjghmio img {
        width: 38px; height: 38px;
        padding: 10px;
        background: #fff;
        border: 1px solid var(--ed-border);
        border-radius: 10px;
        box-shadow: var(--ed-shadow-sm);
    }

    .parent_screens .actionfirstDiv { padding: 14px 16px 0; }
    .list_screens { padding: 16px; }
    .list_screens .card_div:has(> .template_size) { padding: 0; }
    .template_size > .d-flex { left: -6px; right: -6px; }

    .default_colors div { width: 30px; height: 30px; }
    .keys1_bgs { grid-template-columns: repeat(3, 1fr); }
    .actnbrdf_lne { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .modal .modal-content.alertDelete { width: 100%; height: auto; border-radius: 12px; }
    .modal .alertDelete h5 { font-size: 18px; }
    img.close { width: 14px; top: 12px; right: 12px; }
}