
    #btnHeaderImport { display:inline-flex !important;align-items:center;white-space:nowrap;padding:5px 10px;background:var(--ee-accent);border:1px solid var(--ee-accent);color:#fff;font-weight:700; }
    #studioImportStatus {position:fixed;bottom:9px;left:12px;max-width:min(80vw,600px);padding:5px 9px;border-radius:6px;background:#fff;color:var(--ee-muted);font-size:12px;z-index:70;pointer-events:none;}
    #studioImportStatus:empty {display:none;}
    body.legal-page-active .app-shell, body.legal-page-active #studioImportStatus {display:none !important;}
    body.home-active #studioImportStatus {display:none;}
    #qtDropZone:focus-visible,button:focus-visible {outline:3px solid var(--ee-accent);outline-offset:3px;}
    @media(max-width:760px){#btnHeaderImport{position:fixed;bottom:42px;right:12px;z-index:90;padding:10px 14px;border-radius:10px;}body.home-active #btnHeaderImport,body.quick-tool-page-active #btnHeaderImport,body.learn-blog-page-active #btnHeaderImport{display:none !important;}}
.ee-layer-tools{padding:7px 9px;border-bottom:1px solid var(--border,#554451);font-size:11px;flex:none;max-height:44vh;overflow:auto;color:inherit;background:rgba(231,155,182,.05)}
.ee-layer-tools details{padding:5px 0}.ee-layer-tools summary{cursor:pointer;font-weight:600;min-height:25px;display:list-item}.ee-layer-tools button,.ee-folder-row button,.ee-recovery-dialog button,.ee-recovery-notice button{border:1px solid rgba(180,125,148,.35);border-radius:7px;background:rgba(216,148,174,.10);color:inherit;padding:5px 7px;cursor:pointer;font-size:11px;line-height:1.4}
.ee-layer-tools button:disabled{opacity:.4;cursor:default}.ee-layer-tools button:focus-visible,.ee-folder-row button:focus-visible,.ee-recovery-dialog button:focus-visible{outline:2px solid #cf6b96;outline-offset:2px}
.ee-layer-tool-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:5px 0}.ee-layer-tool-row input{min-width:0;width:110px;max-width:100%;font-size:11px}.ee-layer-tool-row input[type=number]{width:52px}.ee-layer-hint{font-size:10px;line-height:1.5;opacity:.8;margin:5px 0}
.ee-recovery-status{display:flex;gap:4px;flex-wrap:wrap;font-size:10px;line-height:1.5}.ee-recovery-status span{width:100%;overflow-wrap:anywhere}.ee-recovery-status [data-error=true]{color:#e99f9f}body.theme-light .ee-recovery-status [data-error=true]{color:#a32343}
.ee-folder-row{display:flex;align-items:center;gap:3px;border-radius:7px;padding:5px 2px;margin-top:5px;background:rgba(216,148,174,.10);min-width:0}.ee-folder-row .ee-folder-name{flex:1;min-width:0;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ee-folder-row button{padding:4px;font-size:10px}.ee-folder-child{margin-inline-start:12px!important}.ee-mask-badge{font-size:9px;color:inherit;border:1px solid #ba7e98;border-radius:4px;padding:1px 3px;white-space:nowrap}
.ee-recovery-notice{position:fixed;z-index:14000;inset-inline-end:18px;bottom:48px;max-width:min(430px,calc(100vw - 36px));display:flex;gap:10px;align-items:center;padding:14px;border:1px solid #97667d;border-radius:14px;background:#29222d;color:#fbeef5;box-shadow:0 10px 35px #0004;font-size:12px}.ee-recovery-backdrop{position:fixed;inset:0;z-index:100000 !important;background:#100a16cc !important;display:flex;align-items:center;justify-content:center;padding:18px}.ee-recovery-dialog{position:relative;z-index:100001 !important;width:600px;max-width:100%;max-height:80vh;overflow:auto;padding:22px;border-radius:18px;border:1px solid #97667d;background:#29222d;color:#fbeef5;font-size:13px}.ee-recovery-dialog h2{margin:0;flex:1;font-size:20px}.ee-recovery-dialog p{line-height:1.6}.ee-recovery-entry{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid #97667d55}.ee-recovery-entry span{flex-basis:100%;overflow-wrap:anywhere}body.theme-light .ee-recovery-dialog,body.theme-light .ee-recovery-notice{background:#fff4f8;color:#3d2936}.ee-recovery-notice.hidden,.ee-recovery-backdrop.hidden{display:none!important}


/* Recovery Notice must ONLY appear when Studio workspace is active, NEVER on homepage; relocated to safe top-center zone */
.ee-recovery-notice {
  display: none !important;
  position: fixed !important;
  top: max(225px, calc(var(--recovery-notice-top, 225px))) !important;
  bottom: auto !important;
  left: 50% !important;
  inset-inline-end: auto !important;
  transform: translateX(-50%) !important;
  z-index: 14000 !important;
}
body.studio-active .ee-recovery-notice:not(.hidden),
body:has(#easyEditStudioShell:not([hidden])) .ee-recovery-notice:not(.hidden) {
  display: flex !important;
}
#canvaLandingHome:not([hidden]) ~ * .ee-recovery-notice,
body:has(#canvaLandingHome:not([hidden])) .ee-recovery-notice,
body:not(.studio-active) .ee-recovery-notice {
  display: none !important;
}

body .ee-scroll-dock{overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;display:block!important;padding-bottom:18px;overscroll-behavior:contain}
.ee-dock-details{border-bottom:1px solid var(--ee-border);flex:none}.ee-dock-details>summary,.ee-property-details>summary{padding:10px 12px;cursor:pointer;color:var(--ee-heading);font-weight:600;font-size:12px;background:var(--ee-raised);min-height:36px;box-sizing:border-box}.ee-property-details>summary{font-size:11px;padding:7px}.ee-dock-body>section{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;display:block!important}.ee-scroll-dock #layersListContainer{height:auto!important;min-height:160px;max-height:50dvh;overflow:auto!important}.ee-scroll-dock #historyListContainer{min-height:90px;max-height:220px;overflow:auto!important}.ee-scroll-dock .ee-layer-tools{max-height:none!important;overflow:visible!important}.ee-property-details{margin-block:5px}.ee-property-details>div{padding:6px}body #curvesCanvas{height:180px!important}body #eeStudioHeader .ee-studio-wordmark{display:none!important}body #eeStudioHeader .ee-studio-actions{flex-wrap:wrap;gap:5px}body #eeStudioHeader .ee-studio-menubar{min-height:0!important}body #eeStudioHeader .ee-studio-actions button{flex-shrink:0}body #eeStudioHeader .ee-studio-menu-row{min-height:0!important}body #eeStudioHeader :is(#btnHeaderPathfinder,#btnHeaderStockPhotos,#btnHeaderExportPNG,#btnHeaderExportSVG,#btnExportSelectedFormat){display:none!important}

/* Template Section & Grid Layout Isolation */
#canvaSectionTemplates, .canva-section.ee-live-templates {
  scroll-margin-top: 90px;
  position: relative;
  z-index: 1;
  clear: both;
}
.canva-filter-pills {
  position: relative;
  z-index: 2;
  margin-bottom: 24px !important;
  clear: both;
}
body #canvaLandingHome.ee-live-home #canvaTemplatesGrid,
body #canvaTemplatesGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 22px !important;
  align-items: start;
  position: relative;
  z-index: 1;
  margin-top: 24px;
  clear: both;
}
body #canvaLandingHome.ee-live-home #canvaTemplatesGrid > *,
body #canvaTemplatesGrid > * {
  display: flex !important;
}
.ee-original-card{padding:0;text-align:start;overflow:hidden;cursor:pointer;border:1px solid var(--ee-border)!important;background:var(--ee-surface)!important;border-radius:16px!important;transition:transform .2s,box-shadow .2s}.ee-original-card:hover{transform:translateY(-4px);box-shadow:0 15px 40px #8a406018}.ee-original-card:focus-visible{outline:3px solid var(--ee-accent);outline-offset:4px}.ee-original-thumb{height:280px;padding:18px;box-sizing:border-box;background:var(--ee-raised);display:flex;align-items:center;justify-content:center;overflow:hidden}.ee-original-thumb img{display:block;width:100%;height:100%;object-fit:contain;box-shadow:0 7px 22px #00000012;transition:transform .25s}.ee-original-card:hover img{transform:scale(1.035)}.ee-original-card-body{padding:18px}.ee-original-category{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--ee-muted)}.ee-original-card h3{font-size:15px;line-height:1.4;font-weight:600;color:var(--ee-heading);margin:7px 0}.ee-original-card p{font-size:11px;color:var(--ee-muted);margin:0 0 14px}.ee-original-open{font-size:12px;font-weight:600;color:var(--ee-accent-text)}.ee-original-description{font-size:13px;color:var(--ee-muted);padding:4px 0 15px}.ee-template-empty{grid-column:1/-1;padding:35px;text-align:center;color:var(--ee-muted)}@media(max-width:540px){body #canvaLandingHome.ee-live-home #canvaTemplatesGrid,body #canvaTemplatesGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin-top:16px}.ee-original-thumb{height:210px;padding:10px}.ee-original-card-body{padding:12px}.ee-original-card h3{font-size:12px}.ee-original-card p{font-size:10px}}@media(prefers-reduced-motion:reduce){.ee-original-card,.ee-original-thumb img{transition:none!important}}

/* ==================== EASYEDIT TEMPLATE NAVIGATION & FILTER SYSTEM ==================== */
/* EasyEdit Signature Light Theme with Pink/Rose Accents */
body.theme-light #canvaLandingHome.ee-live-home .ee-template-nav-section,
body:not(.theme-dark) #canvaLandingHome.ee-live-home .ee-template-nav-section,
body:not(.theme-dark) .ee-template-nav-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  margin-bottom: 28px !important;
  padding: 18px 20px !important;
  background:#ffffff !important;
  border:1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  position: relative !important;
  z-index: 2 !important;
  clear: both !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

/* Row 1: Category Navigation Tabs / Pills */
body #canvaLandingHome.ee-live-home .ee-template-category-row,
.ee-template-category-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 2px 0 !important;
}

body.theme-light #canvaLandingHome.ee-live-home .canva-pill.ee-cat-pill,
body:not(.theme-dark) #canvaLandingHome.ee-live-home .canva-pill.ee-cat-pill,
body:not(.theme-dark) .canva-pill.ee-cat-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 16px !important;
  border-radius: 9999px !important;
  border:1px solid #e2e5eb !important;
  background:#ffffff !important;
  color:#5e6475 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

body #canvaLandingHome.ee-live-home .canva-pill.ee-cat-pill:hover,
.canva-pill.ee-cat-pill:hover {
  background:#fff5f9 !important;
  color:#ee529c !important;
  border-color:#fbcfe8 !important;
  transform: translateY(-1px) !important;
}

body #canvaLandingHome.ee-live-home .canva-pill.ee-cat-pill.active,
.canva-pill.ee-cat-pill.active {
  background:#ee529c !important;
  border-color:#ee529c !important;
  color:#ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 10px rgba(238, 82, 156, 0.35) !important;
}

/* Row 2: Search + 4 Dropdowns + Reset in One Horizontal Desktop Row */
body #canvaLandingHome.ee-live-home .ee-template-filter-row,
.ee-template-filter-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.ee-search-input-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 180px;
  display: flex;
  align-items: center;
}

.ee-search-icon {
  position: absolute;
  left: 14px;
  color:var(--ee-muted) !important;
  pointer-events: none;
}

body #canvaLandingHome.ee-live-home .ee-filter-search-input,
.ee-filter-search-input {
  width: 100% !important;
  height: 40px !important;
  padding: 0 16px 0 38px !important;
  border-radius: 9999px !important;
  border:1px solid #e2e8f0 !important;
  background:#ffffff !important;
  color:#1e1e24 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  outline:none !important;
  transition: all 0.18s ease !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.ee-filter-search-input::placeholder {
  color:var(--ee-muted) !important;
}

.ee-filter-search-input:hover {
  border-color:var(--ee-border) !important;
}

.ee-filter-search-input:focus {
  border-color:#ee529c !important;
  box-shadow: 0 0 0 3px rgba(238, 82, 156, 0.15) !important;
}

.ee-filter-select-wrap {
  position: relative;
  flex: 0 0 auto;
}

.ee-filter-select-wrap:has(#eeFilterRatio),
#eeFilterRatio {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border:0 !important;
  pointer-events: none !important;
}

body #canvaLandingHome.ee-live-home .ee-filter-select,
.ee-filter-select {
  height: 40px !important;
  padding: 0 32px 0 16px !important;
  border-radius: 9999px !important;
  border:1px solid #e2e8f0 !important;
  background-color:#ffffff !important;
  color:#1e1e24 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  cursor: pointer !important;
  outline:none !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  min-width: 105px !important;
}

.ee-filter-select option {
  background:#ffffff !important;
  color:#1e1e24 !important;
}

.ee-filter-select:hover {
  background-color:#f8fafc !important;
  border-color:var(--ee-border) !important;
  transform: translateY(-1px) !important;
}

.ee-filter-select:focus {
  border-color:#ee529c !important;
  box-shadow: 0 0 0 3px rgba(238, 82, 156, 0.15) !important;
}

body #canvaLandingHome.ee-live-home .ee-filter-reset-btn,
.ee-filter-reset-btn {
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 9999px !important;
  border:1px solid #e2e8f0 !important;
  background:#ffffff !important;
  color:#5e6475 !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
  outline:none !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.ee-filter-reset-btn svg {
  flex-shrink: 0;
  stroke:currentColor;
}

.ee-filter-reset-btn:hover {
  background:#fff5f9 !important;
  border-color:#ee529c !important;
  color:#ee529c !important;
  transform: translateY(-1px) !important;
}

.ee-filter-reset-btn:focus-visible {
  border-color:#ee529c !important;
  box-shadow: 0 0 0 3px rgba(238, 82, 156, 0.15) !important;
}

/* Badge for Pro templates on card thumbnail */
.ee-badge-pro {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  background:linear-gradient(135deg, #ee529c, #d84177);
  color:#ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(216, 65, 119, 0.35);
  z-index: 2;
}

/* Load More & Pagination Status Styling */
.ee-gallery-load-more {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#btnCanvaLoadMore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  background:#ee529c;
  color:#ffffff;
  border:0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(238, 82, 156, 0.35);
}

#btnCanvaLoadMore:hover {
  background:#d84177;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(238, 82, 156, 0.45);
}

#btnCanvaLoadMore:active {
  transform: translateY(0);
}

.ee-gallery-status-text {
  font-size: 13px;
  color:#8e95a5;
  font-weight: 500;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 960px) {
  body #canvaLandingHome.ee-live-home .ee-template-category-row,
  .ee-template-category-row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
  }
  .ee-template-category-row::-webkit-scrollbar {
    display: none !important;
  }
  body #canvaLandingHome.ee-live-home .ee-template-filter-row,
  .ee-template-filter-row {
    flex-wrap: wrap !important;
  }
  .ee-search-input-wrap {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }
  .ee-filter-select-wrap {
    flex: 1 1 calc(50% - 6px) !important;
  }
  .ee-filter-select-wrap:has(#eeFilterRatio),
  #eeFilterRatio {
    display: none !important;
  }
  .ee-filter-select {
    width: 100% !important;
  }
  body #canvaLandingHome.ee-live-home .ee-filter-reset-btn,
  .ee-filter-reset-btn {
    flex: 1 1 100% !important;
    justify-content: center !important;
  }
}


.ee-original-thumb{position:relative;height:340px;padding:0;background:var(--ee-raised)}.ee-original-thumb img{box-shadow:none}.ee-photo-badge{position:absolute;left:12px;bottom:12px;padding:6px 9px;border:1px solid #ffffff66;border-radius:7px;background:#fff7efed;color:#493934;font-size:10px;letter-spacing:.03em;opacity:0;transition:opacity .2s}.ee-original-card:is(:hover,:focus-visible) .ee-photo-badge{opacity:1}.ee-original-card:hover .ee-original-open{color:#3269c7}.ee-original-card-body{padding:17px 18px}.ee-original-card h3{min-height:42px}.ee-original-description{max-width:650px;line-height:1.7}@media(max-width:540px){.ee-original-thumb{height:240px}.ee-original-card-body{padding:12px}.ee-original-card h3{min-height:36px}.ee-photo-badge{display:none}}@media(prefers-reduced-motion:reduce){.ee-photo-badge{transition:none}}

#floatingPenBar{max-width:calc(100% - 24px);flex-wrap:wrap;justify-content:center}#penStatusText{white-space:normal;max-width:680px;line-height:1.5;font-size:11px}
.ee-pro{margin:8px 0;font-size:12px}.ee-pro>summary{font-weight:700;padding:10px;background:rgba(236,141,171,.14);border-radius:10px}.ee-pro details{margin:6px 0;border:1px solid rgba(160,130,150,.25);border-radius:8px}.ee-pro summary{cursor:pointer;padding:8px}.ee-pro .pro-controls{display:flex;gap:7px;flex-wrap:wrap;padding:9px}.ee-pro p,.ee-pro label,.ee-pro #pro-effect-list{width:100%;line-height:1.5}.ee-pro p{opacity:.75;margin:3px 0 7px}.ee-pro label{display:flex;gap:6px;align-items:center;justify-content:space-between}.ee-pro input:not([type=checkbox]),.ee-pro select{width:53%;min-width:0}.ee-pro textarea{width:100%;min-height:100px}.ee-pro label:has(textarea){display:block}.ee-pro input,.ee-pro select,.ee-pro textarea{color:inherit;background:var(--panel-bg,#22202b);border:1px solid rgba(160,130,150,.4);border-radius:6px;padding:5px}.theme-light .ee-pro input,.theme-light .ee-pro select,.theme-light .ee-pro textarea{background:#fff8fb}.ee-pro button{padding:6px 8px;border:1px solid rgba(185,120,150,.4);border-radius:6px;background:rgba(236,141,171,.1);color:inherit;cursor:pointer}.ee-pro button:hover{background:rgba(236,141,171,.28)}.ee-pro .pro-row{display:flex;gap:4px;flex-wrap:wrap;margin:5px 0}.ee-pro #pro-glyph-grid{display:grid;grid-template-columns:repeat(6,1fr);width:100%;max-height:240px;overflow:auto}.ee-pro #pro-glyph-grid button{font-size:20px}.ee-pro :focus-visible{outline:2px solid #de7299;outline-offset:2px}

/* The application menus stay beside the logo, including when no dropdown is open. */
body #eeStudioHeader.top-header {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "brand menus mode align actions";
  padding: 4px 12px !important;
  gap: 4px 8px !important;
}
body #eeStudioHeader .ee-studio-brand { align-self: center; }
body #eeStudioHeader .ee-studio-home { min-height: 28px !important; }
body #eeStudioHeader .ee-studio-home img { height: 22px !important; width: auto !important; }
body #eeStudioHeader #eeStudioMenuNav {
  grid-area: menus;
  display: flex !important;
  flex-flow: row wrap !important;
  flex-basis: auto;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  height: auto !important;
  min-height: 28px !important;
  padding: 0 !important;
  order: initial;
  overflow: visible;
}
body #eeStudioHeader #eeStudioMenuNav .menu-trigger {
  width: auto;
  min-height: 28px;
  padding: 3px 7px;
  font-size: 11.5px;
  white-space: nowrap;
  text-align: start;
}
body #eeStudioHeader .ee-studio-mode {
  padding: 2px !important;
  gap: 2px !important;
}
body #eeStudioHeader .mode-btn {
  min-height: 26px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
}
body #eeStudioHeader #optGroupAlign {
  grid-area: align;
  display: inline-flex !important;
  align-items: center;
  align-self: center;
  justify-self: end;
  gap: 2px;
  height: 26px;
  padding: 1px 4px !important;
  margin: 0 !important;
  background:var(--ee-surface-subtle, rgba(255, 255, 255, 0.05)) !important;
  border:1px solid var(--ee-border-subtle, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 6px;
}
body.theme-light #eeStudioHeader #optGroupAlign {
  background:#f1f5f9 !important;
  border-color:var(--ee-border) !important;
}
body #eeStudioHeader #optGroupAlign > span {
  display: none !important;
}
body #eeStudioHeader #optGroupAlign .hdr-align-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 2px !important;
  border-radius: 4px !important;
  border:1px solid transparent !important;
  background:transparent !important;
  color:var(--ee-text, var(--ee-muted)) !important;
  cursor: pointer;
}
body.theme-light #eeStudioHeader #optGroupAlign .hdr-align-btn {
  color:var(--ee-muted) !important;
}
body #eeStudioHeader #optGroupAlign .hdr-align-btn:hover {
  background:var(--ee-raised, rgba(255, 255, 255, 0.12)) !important;
  border-color:var(--ee-accent) !important;
  color:var(--ee-accent-text) !important;
}
body.theme-light #eeStudioHeader #optGroupAlign .hdr-align-btn:hover {
  background:var(--ee-accent-soft) !important;
  border-color:#7dd3fc !important;
  color:var(--ee-accent-text) !important;
}
body #eeStudioHeader #optGroupAlign .hdr-align-btn svg {
  width: 13px !important;
  height: 13px !important;
  fill:currentColor !important;
}
body #eeStudioHeader :is(.ee-studio-history, #btnQuickUndo, #btnQuickRedo, #btnHeaderUndo, #btnHeaderRedo) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}
body #eeStudioHeader .ee-icon-button {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 4px !important;
}
body #eeStudioHeader :is(.ee-import-action,.ee-export-action) {
  min-height: 28px !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
}
body #eeStudioHeader #eeHeaderSecondaryControls { display: none !important; }
body #eeStudioHeader .ee-studio-actions { flex-wrap: nowrap; gap: 6px !important; }
@media (max-width: 1280px) {
  body #eeStudioHeader.top-header {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "brand menus menus menus" ". mode align actions";
  }
  body #eeStudioHeader .ee-studio-mode { justify-self: end; }
}
@media (max-width: 600px) {
  body #eeStudioHeader.top-header {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas: "brand menus" "mode mode" "align actions";
    padding: 6px 8px !important;
    gap: 4px 6px !important;
  }
  body #eeStudioHeader .ee-studio-brand { align-self: start; }
  body #eeStudioHeader .ee-studio-home img { width: 96px !important; }
  body #eeStudioHeader #eeStudioMenuNav .menu-trigger { padding-inline: 6px; }
  body #eeStudioHeader .ee-studio-mode { justify-self: start; }
  body #eeStudioHeader #optGroupAlign { justify-self: start; }
  body #eeStudioHeader .ee-studio-actions { flex-wrap: wrap; justify-content: flex-end; }
}


/* Language dropdown enabled */



/* EasyEdit Studio Header Compaction & Complete Align Panel CSS */
body #eeStudioHeader.top-header,
#eeStudioHeader {
  position: relative !important;
  z-index: 70 !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 2px 10px !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
}

body #eeStudioHeader .ee-studio-brand {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  gap: 6px !important;
  align-self: center !important;
}

body #eeStudioHeader .ee-studio-home {
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 4px !important;
  display: inline-flex !important;
  align-items: center !important;
}

body #eeStudioHeader .ee-studio-home img {
  height: 20px !important;
  width: auto !important;
}

body #eeStudioHeader #eeStudioMenuNav {
  display: flex !important;
  flex-flow: row nowrap !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

body #eeStudioHeader #eeStudioMenuNav .menu-trigger {
  min-height: 24px !important;
  height: 24px !important;
  padding: 2px 6px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

body #eeStudioHeader .ee-studio-mode {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 1px 3px !important;
  gap: 2px !important;
  border-radius: 9999px !important;
  align-self: center !important;
}

body #eeStudioHeader .mode-btn {
  min-height: 22px !important;
  height: 22px !important;
  padding: 1px 7px !important;
  font-size: 10.5px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body #eeStudioHeader #optGroupAlign {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  align-self: center !important;
  gap: 1px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 1px 3px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  background:var(--ee-surface-subtle, rgba(255, 255, 255, 0.05)) !important;
  border:1px solid var(--ee-border-subtle, rgba(255, 255, 255, 0.12)) !important;
}

body.theme-light #eeStudioHeader #optGroupAlign {
  background:#f1f5f9 !important;
  border-color:var(--ee-border) !important;
}

body #eeStudioHeader #optGroupAlign .hdr-align-btn {
  width: 22px !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  border:1px solid transparent !important;
  background:transparent !important;
  color:var(--ee-text, var(--ee-muted)) !important;
  cursor: pointer !important;
}

body.theme-light #eeStudioHeader #optGroupAlign .hdr-align-btn {
  color:var(--ee-muted) !important;
}

body #eeStudioHeader #optGroupAlign .hdr-align-btn:hover {
  background:var(--ee-raised, rgba(255, 255, 255, 0.12)) !important;
  border-color:var(--ee-accent) !important;
  color:var(--ee-accent-text) !important;
}

body.theme-light #eeStudioHeader #optGroupAlign .hdr-align-btn:hover {
  background:var(--ee-accent-soft) !important;
  border-color:#7dd3fc !important;
  color:var(--ee-accent-text) !important;
}

body #eeStudioHeader #optGroupAlign .hdr-align-btn svg {
  width: 13px !important;
  height: 13px !important;
  fill:currentColor !important;
}

body #eeStudioHeader .ee-studio-actions {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  align-self: center !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
}

body #eeStudioHeader :is(.ee-import-action, .ee-export-action, .studio-import-button) {
  min-height: 24px !important;
  height: 24px !important;
  padding: 2px 9px !important;
  font-size: 11px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
}

body #eeStudioHeader .ee-icon-button {
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  padding: 2px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media (max-width: 1280px) {
  body #eeStudioHeader.top-header,
  #eeStudioHeader {
    grid-template-columns: none !important;
    grid-template-areas: none !important;
    flex-flow: row nowrap !important;
    height: 36px !important;
  }
}

/* Floating Complete Align Popover Panel */
.ee-align-popover {
  position: absolute;
  top: 40px;
  right: 180px;
  z-index: 1000000;
  width: 295px;
  padding: 12px 14px;
  background:var(--ee-surface, #232328);
  border:1px solid var(--ee-border, rgba(255, 255, 255, 0.15));
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color:var(--ee-text, var(--ee-muted));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  box-sizing: border-box;
}

body.theme-light .ee-align-popover {
  background:#ffffff !important;
  border-color:var(--ee-border) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
  color:var(--ee-heading) !important;
}

.ee-align-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom:1px solid var(--ee-border, rgba(255, 255, 255, 0.08));
}

body.theme-light .ee-align-popover-header {
  border-bottom-color: #e2e8f0;
}

.ee-align-popover-title {
  font-size: 12px;
  font-weight: 700;
  color:var(--ee-heading, #f1f5f9);
  letter-spacing: 0.2px;
}

body.theme-light .ee-align-popover-title {
  color:var(--ee-heading);
}

.ee-align-popover-close {
  background:transparent;
  border:none;
  color:var(--ee-muted, var(--ee-muted));
  font-size: 14px;
  line-height: 1;
  padding: 2px 5px;
  cursor: pointer;
  border-radius: 4px;
}

.ee-align-popover-close:hover {
  background:rgba(255, 255, 255, 0.1);
  color:#ffffff;
}

body.theme-light .ee-align-popover-close:hover {
  background:#f1f5f9;
  color:var(--ee-heading);
}

.ee-align-section {
  margin-bottom: 6px;
}

.ee-align-section-label {
  font-size: 11px;
  font-weight: 600;
  color:var(--ee-heading, #e2e8f0);
  margin-bottom: 5px;
}

body.theme-light .ee-align-section-label {
  color:var(--ee-muted);
}

.ee-align-btn-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.ee-align-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border:1px solid transparent;
  border-radius: 4px;
  background:transparent;
  color:var(--ee-text, var(--ee-muted));
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.theme-light .ee-align-btn {
  color:var(--ee-muted);
}

.ee-align-btn:hover {
  background:var(--ee-raised, rgba(255, 255, 255, 0.12));
  border-color:var(--ee-accent);
  color:var(--ee-accent-text);
}

body.theme-light .ee-align-btn:hover {
  background:var(--ee-accent-soft);
  border-color:#7dd3fc;
  color:var(--ee-accent-text);
}

.ee-align-btn.active {
  background:rgba(56, 189, 248, 0.18) !important;
  border-color:var(--ee-accent) !important;
  color:var(--ee-accent-text) !important;
}

body.theme-light .ee-align-btn.active {
  background:var(--ee-accent-soft) !important;
  border-color:var(--ee-accent) !important;
  color:var(--ee-accent-text) !important;
}

.ee-align-divider {
  height: 1px;
  background:var(--ee-border, rgba(255, 255, 255, 0.1));
  margin: 8px 0;
}

body.theme-light .ee-align-divider {
  background:#e2e8f0;
}

.ee-align-split-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ee-align-split-col {
  flex: 1 1 50%;
  min-width: 0;
}

.ee-align-spacing-input-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}

.ee-align-spacing-input {
  width: 52px;
  height: 26px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  border:1px solid var(--ee-border, rgba(255, 255, 255, 0.2));
  background:var(--ee-input-bg, rgba(0, 0, 0, 0.25));
  color:var(--ee-heading, #f1f5f9);
  text-align: center;
}

body.theme-light .ee-align-spacing-input {
  border-color:var(--ee-border);
  background:#f8fafc;
  color:var(--ee-heading);
}

body #canvaLandingHome.ee-live-home{--color-primary:#ee529c;--color-primary-dark:#d84177;--color-accent-1:#f5968e;--color-accent-2:#fabe9e;--color-accent-3:#ffe888;--color-white:#fff;--color-bg:#f8f9fc;--color-text-main:#1e1e24;--color-text-muted:#5e6475;--color-border:#e2e5eb;--color-surface-1:#fff;--color-surface-2:#f0f3f9;--max-width:1360px;--max-width-wide:1440px;--header-height:80px;--font-family-en:"Inter", system-ui, -apple-system, sans-serif;--font-family-ar:"Noto Sans Arabic", system-ui, -apple-system, sans-serif;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-pill:9999px;--shadow-sm:0 2px 4px #0000000d;--shadow-md:0 4px 12px #00000014;--shadow-lg:0 12px 24px #0000001f;--transition-fast:.15s ease-in-out;--transition-normal:.25s ease-in-out}body #canvaLandingHome.ee-live-home[dir=rtl]{--font-family:var(--font-family-ar)}body #canvaLandingHome.ee-live-home[dir=ltr]{--font-family:var(--font-family-en)}body #canvaLandingHome.ee-live-home *,body #canvaLandingHome.ee-live-home :before,body #canvaLandingHome.ee-live-home :after{box-sizing:border-box}body #canvaLandingHome.ee-live-home{scroll-behavior:smooth;margin:0;padding:0}body #canvaLandingHome.ee-live-home{min-width:320px;font-family:var(--font-family,system-ui, sans-serif);color:var(--color-text-main);background-color:var(--color-bg);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;padding-bottom:calc(64px + env(safe-area-inset-bottom));margin:0;line-height:1.5}@media (width>=768px){body #canvaLandingHome.ee-live-home{padding-bottom:0}}body #canvaLandingHome.ee-live-home img,body #canvaLandingHome.ee-live-home svg{max-width:100%;display:block}body #canvaLandingHome.ee-live-home button,body #canvaLandingHome.ee-live-home input,body #canvaLandingHome.ee-live-home textarea,body #canvaLandingHome.ee-live-home select{font:inherit;color:inherit}body #canvaLandingHome.ee-live-home a{color:inherit;text-decoration:none}body #canvaLandingHome.ee-live-home h1,body #canvaLandingHome.ee-live-home h2,body #canvaLandingHome.ee-live-home h3,body #canvaLandingHome.ee-live-home h4,body #canvaLandingHome.ee-live-home h5,body #canvaLandingHome.ee-live-home h6{margin-top:0;line-height:1.2}body #canvaLandingHome.ee-live-home p{margin-top:0}body #canvaLandingHome.ee-live-home .container{max-width:var(--max-width);margin:0 auto;padding:0 16px}body #canvaLandingHome.ee-live-home .container-wide{max-width:var(--max-width-wide);margin:0 auto;padding:0 16px}@media (width>=768px){body #canvaLandingHome.ee-live-home .container,body #canvaLandingHome.ee-live-home .container-wide{padding:0 32px}}body #canvaLandingHome.ee-live-home .btn{border-radius:var(--radius-pill);cursor:pointer;transition:all var(--transition-fast);text-align:center;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:12px 24px;font-size:16px;font-weight:600;line-height:1;display:inline-flex}body #canvaLandingHome.ee-live-home .btn[aria-disabled=true]{cursor:default}body #canvaLandingHome.ee-live-home .btn-primary{background:var(--color-text-main);color:var(--color-white)}body #canvaLandingHome.ee-live-home .btn-primary:hover:not([aria-disabled=true]){background:#000;transform:translateY(-2px);box-shadow:0 4px 12px #00000026}body #canvaLandingHome.ee-live-home .btn-secondary{background:var(--color-surface-1);color:var(--color-text-main);border:1px solid var(--color-border)}body #canvaLandingHome.ee-live-home .btn-secondary:hover:not([aria-disabled=true]){background:var(--color-surface-2);border-color:var(--color-text-muted);transform:translateY(-2px)}body #canvaLandingHome.ee-live-home .header[data-astro-cid-nen7h5rs]{height:var(--header-height);background:var(--color-surface-1);border-bottom:1px solid var(--color-border);z-index:100;transition:margin-bottom var(--transition-fast);position:sticky;top:0}body #canvaLandingHome.ee-live-home .header[data-astro-cid-nen7h5rs].search-is-active{margin-bottom:72px}@media (width>=768px){body #canvaLandingHome.ee-live-home .header[data-astro-cid-nen7h5rs].search-is-active{margin-bottom:0}}body #canvaLandingHome.ee-live-home .header-inner[data-astro-cid-nen7h5rs]{justify-content:space-between;align-items:center;height:100%;display:flex}body #canvaLandingHome.ee-live-home .header-left[data-astro-cid-nen7h5rs],body #canvaLandingHome.ee-live-home .header-right[data-astro-cid-nen7h5rs]{align-items:center;gap:8px;display:flex}@media (width>=1024px){body #canvaLandingHome.ee-live-home .header-left[data-astro-cid-nen7h5rs],body #canvaLandingHome.ee-live-home .header-right[data-astro-cid-nen7h5rs]{gap:24px}}body #canvaLandingHome.ee-live-home .logo[data-astro-cid-nen7h5rs]{align-items:center;margin-right:16px;display:flex}body #canvaLandingHome.ee-live-home .desktop-nav[data-astro-cid-nen7h5rs]{display:none}body #canvaLandingHome.ee-live-home .nav-list[data-astro-cid-nen7h5rs]{align-items:center;gap:8px;margin:0;padding:0;list-style:none;display:flex}body #canvaLandingHome.ee-live-home .nav-link[data-astro-cid-nen7h5rs]{color:var(--color-text-main);border-radius:var(--radius-sm);transition:var(--transition-fast);cursor:default;background:0 0;border:none;align-items:center;gap:4px;padding:8px 12px;font-size:15px;font-weight:500;display:flex}body #canvaLandingHome.ee-live-home .nav-link[data-astro-cid-nen7h5rs]:hover,body #canvaLandingHome.ee-live-home .nav-link[data-astro-cid-nen7h5rs]:focus-visible{background:var(--color-surface-2)}body #canvaLandingHome.ee-live-home .nav-item-dropdown[data-astro-cid-nen7h5rs]{position:relative}body #canvaLandingHome.ee-live-home .dropdown-menu[data-astro-cid-nen7h5rs]{background:var(--color-surface-1);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);opacity:0;visibility:hidden;min-width:220px;transition:var(--transition-fast);z-index:110;padding:8px;position:absolute;top:100%;left:0;transform:translateY(10px)}body #canvaLandingHome.ee-live-home .nav-item-dropdown[data-astro-cid-nen7h5rs].is-active .dropdown-menu[data-astro-cid-nen7h5rs],body #canvaLandingHome.ee-live-home .nav-item-dropdown[data-astro-cid-nen7h5rs]:hover .dropdown-menu[data-astro-cid-nen7h5rs],body #canvaLandingHome.ee-live-home .nav-item-dropdown[data-astro-cid-nen7h5rs]:focus-within .dropdown-menu[data-astro-cid-nen7h5rs]{opacity:1;visibility:visible;transform:translateY(0)}body #canvaLandingHome.ee-live-home .dropdown-menu[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]{color:var(--color-text-muted);border-radius:var(--radius-sm);transition:var(--transition-fast);cursor:default;padding:8px 12px;font-size:14px;display:block}body #canvaLandingHome.ee-live-home .dropdown-menu[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]:hover,body #canvaLandingHome.ee-live-home .dropdown-menu[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]:focus-visible{background:var(--color-surface-2);color:var(--color-text-main)}body #canvaLandingHome.ee-live-home .dropdown-menu[data-astro-cid-nen7h5rs] hr[data-astro-cid-nen7h5rs]{border:none;border-top:1px solid var(--color-border);margin:8px 0}body #canvaLandingHome.ee-live-home .search-container[data-astro-cid-nen7h5rs]{position:static}body #canvaLandingHome.ee-live-home .header-search-trigger[data-astro-cid-nen7h5rs]{display:none!important}@media (width>=768px){body #canvaLandingHome.ee-live-home .search-container[data-astro-cid-nen7h5rs]{position:relative}body #canvaLandingHome.ee-live-home .header-search-trigger[data-astro-cid-nen7h5rs]{display:flex!important}}body #canvaLandingHome.ee-live-home .search-panel[data-astro-cid-nen7h5rs]{width:auto;box-shadow:none;opacity:0;visibility:hidden;transition:var(--transition-fast);z-index:120;background:0 0;border:none;margin-top:12px;padding:0;position:absolute;top:100%;left:16px;right:16px;transform:translateY(10px)}body #canvaLandingHome.ee-live-home .search-input-wrapper[data-astro-cid-nen7h5rs]{background:var(--color-surface-1);border:1px solid var(--color-border);border-radius:var(--radius-pill);box-shadow:var(--shadow-md);align-items:center;gap:8px;padding:6px 8px 6px 20px;transition:all .2s;display:flex}body #canvaLandingHome.ee-live-home .search-input-wrapper[data-astro-cid-nen7h5rs]:focus-within{border:1.5px solid var(--color-primary);box-shadow:0 0 0 3px #ee529c26}body #canvaLandingHome.ee-live-home .search-input[data-astro-cid-nen7h5rs]{color:var(--color-text-main);background:0 0;border:none;outline:none;flex:1;padding:10px 0;font-size:15px}body #canvaLandingHome.ee-live-home .search-input[data-astro-cid-nen7h5rs]::placeholder{color:var(--color-text-muted)}body #canvaLandingHome.ee-live-home .search-close-btn[data-astro-cid-nen7h5rs]{min-width:36px;min-height:36px;color:var(--color-text-muted);padding:6px}body #canvaLandingHome.ee-live-home .search-results[data-astro-cid-nen7h5rs]{background:var(--color-surface-1);border:1px solid var(--color-border);border-radius:var(--radius-md);max-height:300px;box-shadow:var(--shadow-lg);margin-top:8px;overflow-y:auto}body #canvaLandingHome.ee-live-home .search-results[data-astro-cid-nen7h5rs]:empty{display:none}@media (width>=768px){body #canvaLandingHome.ee-live-home .search-panel[data-astro-cid-nen7h5rs]{background:var(--color-surface-1);border:1px solid var(--color-border);border-radius:var(--radius-md);width:320px;box-shadow:var(--shadow-lg);margin-top:8px;padding:12px;left:auto;right:0}body #canvaLandingHome.ee-live-home .search-input-wrapper[data-astro-cid-nen7h5rs]{background:var(--color-surface-2);border-radius:var(--radius-sm);box-shadow:none;border:1px solid #0000;padding:4px 8px}body #canvaLandingHome.ee-live-home .search-input-wrapper[data-astro-cid-nen7h5rs]:focus-within{box-shadow:none;border:1px solid #0000}body #canvaLandingHome.ee-live-home .search-input[data-astro-cid-nen7h5rs]{padding:8px;font-size:14px}body #canvaLandingHome.ee-live-home .search-close-btn[data-astro-cid-nen7h5rs]{min-width:44px;min-height:44px;padding:8px}body #canvaLandingHome.ee-live-home .search-results[data-astro-cid-nen7h5rs]{box-shadow:none;background:0 0;border:none;border-radius:0;margin-top:12px}}body #canvaLandingHome.ee-live-home .search-panel[data-astro-cid-nen7h5rs].is-active{opacity:1;visibility:visible;transform:translateY(0)}body #canvaLandingHome.ee-live-home .search-result-item[data-astro-cid-nen7h5rs]{border-radius:var(--radius-sm);color:var(--color-text-main);transition:var(--transition-fast);cursor:pointer;padding:10px;font-size:14px;display:block}body #canvaLandingHome.ee-live-home .search-result-item[data-astro-cid-nen7h5rs]:hover,body #canvaLandingHome.ee-live-home .search-result-item[data-astro-cid-nen7h5rs]:focus-visible{background:var(--color-surface-2)}body #canvaLandingHome.ee-live-home .search-result-type[data-astro-cid-nen7h5rs]{color:var(--color-primary);text-transform:uppercase;margin-bottom:2px;font-size:11px;font-weight:700}body #canvaLandingHome.ee-live-home .icon-btn[data-astro-cid-nen7h5rs]{cursor:pointer;color:var(--color-text-main);border-radius:var(--radius-sm);min-width:44px;min-height:44px;transition:var(--transition-fast);background:0 0;border:none;justify-content:center;align-items:center;padding:8px;display:flex}body #canvaLandingHome.ee-live-home .icon-btn[data-astro-cid-nen7h5rs]:hover{background:var(--color-surface-2)}body #canvaLandingHome.ee-live-home .lang-toggle[data-astro-cid-nen7h5rs]{background:var(--color-surface-2);border-radius:var(--radius-pill);align-items:center;padding:2px;display:flex}body #canvaLandingHome.ee-live-home .lang-segment[data-astro-cid-nen7h5rs]{border-radius:var(--radius-pill);color:var(--color-text-muted);cursor:pointer;transition:var(--transition-fast);background:0 0;border:none;padding:4px 10px;font-size:13px;font-weight:600}body #canvaLandingHome.ee-live-home .lang-segment[data-astro-cid-nen7h5rs].is-active{background:var(--color-surface-1);color:var(--color-primary);box-shadow:var(--shadow-sm)}body #canvaLandingHome.ee-live-home .header-cta[data-astro-cid-nen7h5rs],body #canvaLandingHome.ee-live-home .mobile-menu-toggle[data-astro-cid-nen7h5rs]{display:none!important}body #canvaLandingHome.ee-live-home .mobile-nav-overlay[data-astro-cid-nen7h5rs]{top:calc(var(--header-height) + 12px);background:var(--color-surface-1);z-index:120;border:1px solid #ee529c59;border-radius:16px;width:auto;padding:20px 0;display:none;position:absolute;left:16px;right:16px;box-shadow:0 10px 35px #ee529c26}body #canvaLandingHome.ee-live-home .mobile-nav-overlay[data-astro-cid-nen7h5rs].is-active{display:block}body #canvaLandingHome.ee-live-home .mobile-nav-link[data-astro-cid-nen7h5rs]{color:var(--color-text-main);border-bottom:1px solid var(--color-surface-2);cursor:default;padding:12px 0;font-size:18px;font-weight:600;display:block}body #canvaLandingHome.ee-live-home .mobile-accordion-toggle[data-astro-cid-nen7h5rs]{width:100%;color:var(--color-text-main);border:none;border-bottom:1px solid var(--color-surface-2);cursor:pointer;background:0 0;justify-content:space-between;align-items:center;padding:12px 0;font-size:18px;font-weight:600;display:flex}body #canvaLandingHome.ee-live-home .mobile-accordion-content[data-astro-cid-nen7h5rs]{padding:12px 0 12px 16px;display:none}body #canvaLandingHome.ee-live-home .mobile-accordion-content[data-astro-cid-nen7h5rs].is-active{display:block}body #canvaLandingHome.ee-live-home .mobile-accordion-content[data-astro-cid-nen7h5rs] a[data-astro-cid-nen7h5rs]{color:var(--color-text-muted);cursor:default;padding:10px 0;display:block}body #canvaLandingHome.ee-live-home .mobile-nav-footer[data-astro-cid-nen7h5rs]{margin-top:24px}body #canvaLandingHome.ee-live-home .mobile-bottom-ribbon[data-astro-cid-nen7h5rs]{height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);backdrop-filter:blur(8px);border-top:1px solid var(--color-border);z-index:100;background:#fffffff2;justify-content:space-around;align-items:center;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -2px 10px #0000000d}body #canvaLandingHome.ee-live-home .ribbon-btn[data-astro-cid-nen7h5rs]{color:var(--color-text-muted);cursor:pointer;background:0 0;border:none;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:44px;min-height:44px;font-size:10px;font-weight:500;display:flex}body #canvaLandingHome.ee-live-home .ribbon-btn[data-astro-cid-nen7h5rs].is-active{color:var(--color-primary)}@media (width>=768px){body #canvaLandingHome.ee-live-home .mobile-bottom-ribbon[data-astro-cid-nen7h5rs]{display:none}}@media (width>=1024px){body #canvaLandingHome.ee-live-home .desktop-nav[data-astro-cid-nen7h5rs]{display:block}body #canvaLandingHome.ee-live-home .header-cta[data-astro-cid-nen7h5rs]{display:inline-flex!important}body #canvaLandingHome.ee-live-home .mobile-menu-toggle[data-astro-cid-nen7h5rs],body #canvaLandingHome.ee-live-home .mobile-nav-overlay[data-astro-cid-nen7h5rs]{display:none!important}}@media (width>=768px) and (width<=1023px){body #canvaLandingHome.ee-live-home .mobile-menu-toggle[data-astro-cid-nen7h5rs]{visibility:visible!important;display:flex!important}}body #canvaLandingHome.ee-live-home .hero[data-astro-cid-ge2uvauf]{padding:36px 0 40px;position:relative;overflow:hidden}@media (width>=768px){body #canvaLandingHome.ee-live-home .hero[data-astro-cid-ge2uvauf]{padding:60px 0 80px}}body #canvaLandingHome.ee-live-home .hero[data-astro-cid-ge2uvauf]:before{content:"";z-index:-1;background:radial-gradient(circle,#ee529c14 0%,#fff0 70%);width:60%;height:120%;position:absolute;top:-10%;left:40%}body #canvaLandingHome.ee-live-home .hero-inner[data-astro-cid-ge2uvauf]{grid-template-columns:1fr;align-items:center;gap:48px;display:grid}@media (width>=1024px){body #canvaLandingHome.ee-live-home .hero-inner[data-astro-cid-ge2uvauf]{grid-template-columns:1fr 1fr}}body #canvaLandingHome.ee-live-home .badge[data-astro-cid-ge2uvauf]{background:var(--color-surface-2);color:var(--color-primary-dark);border-radius:var(--radius-pill);margin-bottom:24px;padding:6px 12px;font-size:14px;font-weight:600;display:inline-block}body #canvaLandingHome.ee-live-home .hero-title[data-astro-cid-ge2uvauf]{letter-spacing:-.02em;margin-bottom:16px;font-size:clamp(42px,11vw,48px);font-weight:800;line-height:1}@media (width>=768px){body #canvaLandingHome.ee-live-home .hero-title[data-astro-cid-ge2uvauf]{margin-bottom:24px;font-size:64px;line-height:1.1}}body #canvaLandingHome.ee-live-home .gradient-text[data-astro-cid-ge2uvauf]{background:linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text}body #canvaLandingHome.ee-live-home .hero-description[data-astro-cid-ge2uvauf]{color:var(--color-text-muted);max-width:540px;margin-bottom:24px;font-size:16px;line-height:1.5}@media (width>=768px){body #canvaLandingHome.ee-live-home .hero-description[data-astro-cid-ge2uvauf]{margin-bottom:32px;font-size:18px}}body #canvaLandingHome.ee-live-home .hero-actions[data-astro-cid-ge2uvauf]{flex-wrap:wrap;gap:12px;margin-bottom:32px;display:flex}@media (width>=768px){body #canvaLandingHome.ee-live-home .hero-actions[data-astro-cid-ge2uvauf]{gap:16px;margin-bottom:40px}}body #canvaLandingHome.ee-live-home .trust-items[data-astro-cid-ge2uvauf]{grid-template-columns:1fr 1fr;gap:12px 16px;display:grid}@media (width>=768px){body #canvaLandingHome.ee-live-home .trust-items[data-astro-cid-ge2uvauf]{flex-wrap:wrap;gap:20px;display:flex}}body #canvaLandingHome.ee-live-home .trust-item[data-astro-cid-ge2uvauf]{color:var(--color-text-muted);align-items:center;gap:6px;font-size:14px;display:flex}body #canvaLandingHome.ee-live-home .trust-item[data-astro-cid-ge2uvauf] svg[data-astro-cid-ge2uvauf]{color:var(--color-text-main)}body #canvaLandingHome.ee-live-home .hero-visual[data-astro-cid-ge2uvauf]{margin-top:28px}@media (width>=1024px){body #canvaLandingHome.ee-live-home .hero-visual[data-astro-cid-ge2uvauf]{margin-top:0}}body #canvaLandingHome.ee-live-home .editor-mockup[data-astro-cid-ge2uvauf]{background:var(--color-surface-1);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);border:1px solid var(--color-border);flex-direction:column;height:400px;transition:transform .3s;display:flex;position:relative;overflow:hidden;transform:perspective(1000px)rotateY(-2deg)rotateX(2deg)}body #canvaLandingHome.ee-live-home .editor-mockup[data-astro-cid-ge2uvauf]:hover{transform:perspective(1000px)rotateY(0)rotateX(0)}body #canvaLandingHome.ee-live-home .editor-header[data-astro-cid-ge2uvauf]{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;height:48px;padding:0 16px;display:flex}body #canvaLandingHome.ee-live-home .mockup-logo[data-astro-cid-ge2uvauf]{align-items:center;gap:6px;font-size:14px;font-weight:700;display:flex}body #canvaLandingHome.ee-live-home .editor-tabs[data-astro-cid-ge2uvauf]{gap:16px;display:flex}body #canvaLandingHome.ee-live-home .editor-tabs[data-astro-cid-ge2uvauf] .tab[data-astro-cid-ge2uvauf]{color:var(--color-text-muted);cursor:pointer;font-size:13px;font-weight:500}body #canvaLandingHome.ee-live-home .editor-tabs[data-astro-cid-ge2uvauf] .tab[data-astro-cid-ge2uvauf].active{color:var(--color-primary);position:relative}body #canvaLandingHome.ee-live-home .editor-tabs[data-astro-cid-ge2uvauf] .tab[data-astro-cid-ge2uvauf].active:after{content:"";background:var(--color-primary);height:2px;position:absolute;bottom:-15px;left:0;right:0}body #canvaLandingHome.ee-live-home .editor-tools-right[data-astro-cid-ge2uvauf]{color:var(--color-text-muted);align-items:center;gap:12px;display:flex}body #canvaLandingHome.ee-live-home .btn-download[data-astro-cid-ge2uvauf]{color:#fff;border-radius:var(--radius-sm);background:var(--ee-accent);align-items:center;gap:6px;padding:6px 12px;font-size:13px;font-weight:600;display:flex}body #canvaLandingHome.ee-live-home .editor-body[data-astro-cid-ge2uvauf]{flex:1;display:flex;overflow:hidden}body #canvaLandingHome.ee-live-home .editor-sidebar[data-astro-cid-ge2uvauf]{border-right:1px solid var(--color-border);flex-direction:column;align-items:center;gap:20px;width:72px;padding:16px 0;display:flex}body #canvaLandingHome.ee-live-home .sidebar-item[data-astro-cid-ge2uvauf]{color:var(--color-text-muted);cursor:pointer;flex-direction:column;align-items:center;gap:4px;font-size:10px;display:flex}body #canvaLandingHome.ee-live-home .sidebar-item[data-astro-cid-ge2uvauf].active{color:var(--color-primary)}body #canvaLandingHome.ee-live-home .editor-canvas-wrapper[data-astro-cid-ge2uvauf]{background:var(--color-surface-2);flex:1;justify-content:center;align-items:center;padding:24px;display:flex;position:relative}body #canvaLandingHome.ee-live-home .editor-canvas[data-astro-cid-ge2uvauf]{width:100%;height:100%;box-shadow:var(--shadow-sm);background:#fff linear-gradient(135deg,#a3c4f3 0%,#fbc2eb 100%);border-radius:4px;position:relative;overflow:hidden}body #canvaLandingHome.ee-live-home .canvas-text[data-astro-cid-ge2uvauf]{color:#fff;text-shadow:2px 2px 4px #0003;font-size:42px;font-style:italic;font-weight:800;line-height:1;position:absolute;top:30%;left:15%}body #canvaLandingHome.ee-live-home .canvas-btn[data-astro-cid-ge2uvauf]{backdrop-filter:blur(4px);color:#fff;background:#fff3;border:1px solid #ffffff80;border-radius:20px;align-items:center;gap:6px;padding:8px 16px;font-size:12px;font-weight:600;display:flex;position:absolute;bottom:20%;left:15%}body #canvaLandingHome.ee-live-home .floating-photo[data-astro-cid-ge2uvauf]{width:100px;height:120px;box-shadow:var(--shadow-md);background:#fff;border-radius:4px;flex-direction:column;justify-content:space-between;padding:6px;display:flex;position:absolute;bottom:10%;right:10%;transform:rotate(5deg)}body #canvaLandingHome.ee-live-home .floating-photo[data-astro-cid-ge2uvauf]:before{content:"";background:#4ecdc4;border-radius:2px;width:100%;height:80px;display:block}body #canvaLandingHome.ee-live-home .floating-photo[data-astro-cid-ge2uvauf]{text-align:center;color:var(--color-text-main);font-size:12px;font-weight:600}body #canvaLandingHome.ee-live-home .editor-floating-toolbar[data-astro-cid-ge2uvauf]{border-radius:var(--radius-md);box-shadow:var(--shadow-md);background:#fff;flex-direction:column;gap:12px;padding:12px;font-size:12px;display:flex;position:absolute;top:24px;right:24px}body #canvaLandingHome.ee-live-home .toolbar-top[data-astro-cid-ge2uvauf]{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:8px;padding-bottom:8px;display:flex}body #canvaLandingHome.ee-live-home .toolbar-mid[data-astro-cid-ge2uvauf]{border-bottom:1px solid var(--color-border);justify-content:center;gap:12px;padding-bottom:8px;display:flex}body #canvaLandingHome.ee-live-home .toolbar-colors[data-astro-cid-ge2uvauf]{justify-content:center;gap:6px;display:flex}body #canvaLandingHome.ee-live-home .toolbar-colors[data-astro-cid-ge2uvauf] span[data-astro-cid-ge2uvauf]{border-radius:50%;width:16px;height:16px;display:block}@media (width<=767px){body #canvaLandingHome.ee-live-home .hero[data-astro-cid-ge2uvauf]{background:linear-gradient(#fff0f6 0%,#fff 100%);padding:24px 0 32px}body #canvaLandingHome.ee-live-home .hero-content[data-astro-cid-ge2uvauf]{text-align:center;flex-direction:column;align-items:center;display:flex}body #canvaLandingHome.ee-live-home .badge[data-astro-cid-ge2uvauf]{color:var(--color-primary);background:0 0;margin-bottom:8px;padding:0;font-size:14px}body #canvaLandingHome.ee-live-home .hero-title[data-astro-cid-ge2uvauf]{margin-bottom:8px;font-size:clamp(34px,9vw,40px);line-height:1.1}body #canvaLandingHome.ee-live-home .hero-description[data-astro-cid-ge2uvauf]{margin-bottom:20px;font-size:15px}body #canvaLandingHome.ee-live-home .hero-actions[data-astro-cid-ge2uvauf]{flex-wrap:wrap;justify-content:center;gap:12px;width:100%}body #canvaLandingHome.ee-live-home .hero-actions[data-astro-cid-ge2uvauf] .btn[data-astro-cid-ge2uvauf]{white-space:nowrap;flex:1;justify-content:center;min-width:fit-content;padding:12px;font-size:14px}body #canvaLandingHome.ee-live-home .trust-items[data-astro-cid-ge2uvauf]{flex-wrap:wrap;justify-content:center;gap:8px 12px;margin-top:24px;padding:0;display:flex}body #canvaLandingHome.ee-live-home .trust-item[data-astro-cid-ge2uvauf]{color:var(--color-text-muted);font-size:11px}body #canvaLandingHome.ee-live-home .trust-item[data-astro-cid-ge2uvauf] svg[data-astro-cid-ge2uvauf]{color:var(--color-primary);width:14px;height:14px}body #canvaLandingHome.ee-live-home .hero-visual[data-astro-cid-ge2uvauf]{width:100%;margin-top:24px}body #canvaLandingHome.ee-live-home .editor-mockup[data-astro-cid-ge2uvauf]{width:100%;height:320px;transform:scale(1)!important}}@media (width>=768px) and (width<=1023px){body #canvaLandingHome.ee-live-home .hero-inner[data-astro-cid-ge2uvauf]{flex-direction:column;align-items:center;display:flex}body #canvaLandingHome.ee-live-home .hero-content[data-astro-cid-ge2uvauf]{text-align:center;flex-direction:column;align-items:center;max-width:720px;margin-inline:auto;display:flex}body #canvaLandingHome.ee-live-home .hero-title[data-astro-cid-ge2uvauf]{font-size:clamp(48px,7vw,64px)}body #canvaLandingHome.ee-live-home .hero-description[data-astro-cid-ge2uvauf]{max-width:620px;margin-inline:auto}body #canvaLandingHome.ee-live-home .hero-actions[data-astro-cid-ge2uvauf],body #canvaLandingHome.ee-live-home .trust-items[data-astro-cid-ge2uvauf]{justify-content:center}body #canvaLandingHome.ee-live-home .hero-visual[data-astro-cid-ge2uvauf]{width:min(92vw,720px);margin-inline:auto}}body #canvaLandingHome.ee-live-home .categories[data-astro-cid-772xozct]{padding:0 0 60px}body #canvaLandingHome.ee-live-home .category-grid[data-astro-cid-772xozct]{grid-template-columns:1fr;gap:16px;display:grid}@media (width>=480px){body #canvaLandingHome.ee-live-home .category-grid[data-astro-cid-772xozct]{grid-template-columns:repeat(2,1fr)}}@media (width>=768px){body #canvaLandingHome.ee-live-home .category-grid[data-astro-cid-772xozct]{grid-template-columns:repeat(3,1fr)}}@media (width>=1024px){body #canvaLandingHome.ee-live-home .category-grid[data-astro-cid-772xozct]{grid-template-columns:repeat(5,1fr)}}body #canvaLandingHome.ee-live-home .category-card[data-astro-cid-772xozct]{border-radius:var(--radius-lg);text-align:center;transition:transform var(--transition-fast), box-shadow var(--transition-fast);cursor:default;border:1px solid #0000;flex-direction:column;align-items:center;height:100%;padding:24px 16px;display:flex}body #canvaLandingHome.ee-live-home .category-card[data-astro-cid-772xozct]:hover,body #canvaLandingHome.ee-live-home .category-card[data-astro-cid-772xozct]:focus-visible{box-shadow:var(--shadow-md);outline:2px solid var(--color-primary);outline-offset:2px;transform:translateY(-4px)}body #canvaLandingHome.ee-live-home .category-icon-wrapper[data-astro-cid-772xozct]{border-radius:var(--radius-md);justify-content:center;align-items:center;width:64px;height:64px;margin-bottom:16px;display:flex}body #canvaLandingHome.ee-live-home .category-icon-wrapper[data-astro-cid-772xozct] svg[data-astro-cid-772xozct]{width:32px;height:32px}body #canvaLandingHome.ee-live-home .category-title[data-astro-cid-772xozct]{margin-bottom:8px;font-size:18px;font-weight:700}body #canvaLandingHome.ee-live-home .category-desc[data-astro-cid-772xozct]{color:var(--color-text-muted);margin:0;font-size:14px}body #canvaLandingHome.ee-live-home .tool-card[data-astro-cid-rr62mfgb]{background:var(--color-surface-1);border:1px solid var(--color-border);border-radius:var(--radius-lg);text-align:center;transition:var(--transition-fast);flex-direction:column;align-items:center;padding:24px 12px;display:flex}body #canvaLandingHome.ee-live-home .tool-card[data-astro-cid-rr62mfgb]:hover,body #canvaLandingHome.ee-live-home .tool-card[data-astro-cid-rr62mfgb]:focus-visible{box-shadow:var(--shadow-sm);border-color:var(--color-text-muted);outline:2px solid var(--color-primary);outline-offset:2px;transform:translateY(-2px)}body #canvaLandingHome.ee-live-home .tool-icon[data-astro-cid-rr62mfgb]{border-radius:var(--radius-md);justify-content:center;align-items:center;width:56px;height:56px;margin-bottom:12px;display:flex}body #canvaLandingHome.ee-live-home .tool-icon[data-astro-cid-rr62mfgb] svg{width:28px;height:28px}body #canvaLandingHome.ee-live-home .tool-title[data-astro-cid-rr62mfgb]{color:var(--color-text-main);font-size:15px;font-weight:600}body #canvaLandingHome.ee-live-home .tools-section[data-astro-cid-wmyrfl64]{padding:60px 0}body #canvaLandingHome.ee-live-home .section-header[data-astro-cid-wmyrfl64]{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:32px;display:flex}body #canvaLandingHome.ee-live-home .section-title[data-astro-cid-wmyrfl64]{margin:0;font-size:28px;font-weight:800}body #canvaLandingHome.ee-live-home .section-link[data-astro-cid-wmyrfl64]{color:var(--color-primary);transition:var(--transition-fast);align-items:center;gap:4px;font-weight:600;display:inline-flex}body #canvaLandingHome.ee-live-home .section-link[data-astro-cid-wmyrfl64]:hover{color:var(--color-primary-dark)}body #canvaLandingHome.ee-live-home .tools-grid[data-astro-cid-wmyrfl64]{grid-template-columns:repeat(2,1fr);gap:16px;display:grid}@media (width>=640px){body #canvaLandingHome.ee-live-home .tools-grid[data-astro-cid-wmyrfl64]{grid-template-columns:repeat(3,1fr)}}@media (width>=768px){body #canvaLandingHome.ee-live-home .tools-grid[data-astro-cid-wmyrfl64]{grid-template-columns:repeat(4,1fr)}}@media (width>=1024px){body #canvaLandingHome.ee-live-home .tools-grid[data-astro-cid-wmyrfl64]{grid-template-columns:repeat(7,1fr)}}body #canvaLandingHome.ee-live-home .templates-section[data-astro-cid-qtoijckv]{background:var(--color-surface-2);padding:60px 0}body #canvaLandingHome.ee-live-home .section-header[data-astro-cid-qtoijckv]{flex-direction:column;gap:16px;margin-bottom:40px;display:flex}@media (width>=768px){body #canvaLandingHome.ee-live-home .section-header[data-astro-cid-qtoijckv]{flex-direction:row;justify-content:space-between;align-items:flex-end}}body #canvaLandingHome.ee-live-home .header-content[data-astro-cid-qtoijckv]{max-width:600px}body #canvaLandingHome.ee-live-home .section-title[data-astro-cid-qtoijckv]{margin-bottom:8px;font-size:28px;font-weight:800}body #canvaLandingHome.ee-live-home .section-desc[data-astro-cid-qtoijckv]{color:var(--color-text-muted);margin:0;font-size:16px}body #canvaLandingHome.ee-live-home .section-link[data-astro-cid-qtoijckv]{color:var(--color-primary);transition:var(--transition-fast);white-space:nowrap;align-items:center;gap:4px;font-weight:600;display:inline-flex}body #canvaLandingHome.ee-live-home .section-link[data-astro-cid-qtoijckv]:hover{color:var(--color-primary-dark)}body #canvaLandingHome.ee-live-home .templates-grid[data-astro-cid-qtoijckv]{grid-template-columns:1fr;gap:24px;display:grid}@media (width>=480px){body #canvaLandingHome.ee-live-home .templates-grid[data-astro-cid-qtoijckv]{grid-template-columns:repeat(2,1fr)}}@media (width>=768px){body #canvaLandingHome.ee-live-home .templates-grid[data-astro-cid-qtoijckv]{grid-template-columns:repeat(3,1fr);gap:32px}}@media (width>=1024px){body #canvaLandingHome.ee-live-home .templates-grid[data-astro-cid-qtoijckv]{grid-template-columns:repeat(6,1fr);gap:20px}}body #canvaLandingHome.ee-live-home .template-card[data-astro-cid-qtoijckv]{transition:var(--transition-fast);display:block}body #canvaLandingHome.ee-live-home .template-card[data-astro-cid-qtoijckv]:hover .template-img-wrapper[data-astro-cid-qtoijckv],body #canvaLandingHome.ee-live-home .template-card[data-astro-cid-qtoijckv]:focus-visible .template-img-wrapper[data-astro-cid-qtoijckv]{box-shadow:var(--shadow-md);outline:2px solid var(--color-primary);outline-offset:2px;transform:translateY(-4px)}body #canvaLandingHome.ee-live-home .template-card[data-astro-cid-qtoijckv]:hover .template-title[data-astro-cid-qtoijckv]{color:var(--color-primary)}body #canvaLandingHome.ee-live-home .template-img-wrapper[data-astro-cid-qtoijckv]{border-radius:var(--radius-md);aspect-ratio:4/3;transition:var(--transition-fast);background:#e2e5eb;margin-bottom:16px;overflow:hidden}body #canvaLandingHome.ee-live-home .template-img[data-astro-cid-qtoijckv]{object-fit:cover;width:100%;height:100%}body #canvaLandingHome.ee-live-home .template-title[data-astro-cid-qtoijckv]{transition:var(--transition-fast);margin:0;font-size:16px;font-weight:700}body #canvaLandingHome.ee-live-home .showcase[data-astro-cid-fej3bsya]{padding:80px 0;overflow:hidden}body #canvaLandingHome.ee-live-home .showcase-inner[data-astro-cid-fej3bsya]{grid-template-columns:1fr;align-items:center;gap:48px;display:grid}@media (width>=1024px){body #canvaLandingHome.ee-live-home .showcase-inner[data-astro-cid-fej3bsya]{grid-template-columns:1fr 1fr}}body #canvaLandingHome.ee-live-home .badge[data-astro-cid-fej3bsya]{background:var(--color-surface-2);color:var(--color-primary-dark);border-radius:var(--radius-pill);margin-bottom:24px;padding:6px 12px;font-size:14px;font-weight:600;display:inline-block}body #canvaLandingHome.ee-live-home .showcase-title[data-astro-cid-fej3bsya]{letter-spacing:-.02em;margin-bottom:24px;font-size:40px;font-weight:800;line-height:1.1}@media (width>=768px){body #canvaLandingHome.ee-live-home .showcase-title[data-astro-cid-fej3bsya]{font-size:48px}}body #canvaLandingHome.ee-live-home .gradient-text[data-astro-cid-fej3bsya]{background:linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text}body #canvaLandingHome.ee-live-home .showcase-desc[data-astro-cid-fej3bsya]{color:var(--color-text-muted);max-width:540px;margin-bottom:40px;font-size:18px}body #canvaLandingHome.ee-live-home .trust-features[data-astro-cid-fej3bsya]{flex-direction:column;gap:24px;display:flex}@media (width>=640px){body #canvaLandingHome.ee-live-home .trust-features[data-astro-cid-fej3bsya]{flex-direction:row;gap:32px}}body #canvaLandingHome.ee-live-home .trust-feature[data-astro-cid-fej3bsya]{align-items:center;gap:16px;display:flex}body #canvaLandingHome.ee-live-home .trust-icon[data-astro-cid-fej3bsya]{background:var(--color-surface-2);width:48px;height:48px;color:var(--color-primary);border-radius:var(--radius-md);justify-content:center;align-items:center;display:flex}body #canvaLandingHome.ee-live-home .trust-text[data-astro-cid-fej3bsya] h4[data-astro-cid-fej3bsya]{margin:0 0 4px;font-size:16px;font-weight:700}body #canvaLandingHome.ee-live-home .trust-text[data-astro-cid-fej3bsya] p[data-astro-cid-fej3bsya]{color:var(--color-text-muted);margin:0;font-size:14px}body #canvaLandingHome.ee-live-home .showcase-visual[data-astro-cid-fej3bsya]{width:100%;height:300px;position:relative}@media (width>=640px){body #canvaLandingHome.ee-live-home .showcase-visual[data-astro-cid-fej3bsya]{height:400px}}body #canvaLandingHome.ee-live-home .composition[data-astro-cid-fej3bsya]{width:500px;height:400px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)scale(.65)}@media (width>=640px){body #canvaLandingHome.ee-live-home .composition[data-astro-cid-fej3bsya]{transform:translate(-50%,-50%)scale(1)}}body #canvaLandingHome.ee-live-home .comp-bg-shape[data-astro-cid-fej3bsya]{background:radial-gradient(circle,#a64ece1a 0%,#fff0 70%);border-radius:50%;width:250px;height:250px;position:absolute;top:10%;right:5%}body #canvaLandingHome.ee-live-home .panel[data-astro-cid-fej3bsya]{background:var(--color-surface-1);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);position:absolute}body #canvaLandingHome.ee-live-home .main-canvas[data-astro-cid-fej3bsya]{flex-direction:column;width:320px;height:240px;display:flex;top:50px;left:80px;overflow:hidden}body #canvaLandingHome.ee-live-home .canvas-header[data-astro-cid-fej3bsya]{border-bottom:1px solid var(--color-border);background:#f0f3f9;align-items:center;gap:6px;height:24px;padding:0 8px;display:flex}body #canvaLandingHome.ee-live-home .canvas-header[data-astro-cid-fej3bsya] span[data-astro-cid-fej3bsya]{background:#ccc;border-radius:50%;width:8px;height:8px;display:block}body #canvaLandingHome.ee-live-home .canvas-inner[data-astro-cid-fej3bsya]{background:#fdf5e6;flex-direction:column;flex:1;justify-content:center;padding:24px;display:flex;position:relative}body #canvaLandingHome.ee-live-home .canvas-heading[data-astro-cid-fej3bsya]{color:#333;margin-bottom:16px;font-size:32px;font-weight:800;line-height:1}body #canvaLandingHome.ee-live-home .canvas-sub[data-astro-cid-fej3bsya]{letter-spacing:2px;color:#666;font-size:10px}body #canvaLandingHome.ee-live-home .layers-panel[data-astro-cid-fej3bsya]{z-index:10;width:140px;font-size:11px;bottom:20px;right:20px}body #canvaLandingHome.ee-live-home .panel-header[data-astro-cid-fej3bsya]{border-bottom:1px solid var(--color-border);align-items:center;gap:6px;padding:8px 12px;font-weight:600;display:flex}body #canvaLandingHome.ee-live-home .layer-item[data-astro-cid-fej3bsya]{border-bottom:1px solid var(--color-border);align-items:center;gap:8px;padding:8px 12px;display:flex}body #canvaLandingHome.ee-live-home .layer-item[data-astro-cid-fej3bsya]:last-child{border-bottom:none}body #canvaLandingHome.ee-live-home .layer-item[data-astro-cid-fej3bsya].active{background:var(--color-surface-2)}body #canvaLandingHome.ee-live-home .layer-thumb[data-astro-cid-fej3bsya]{color:#fff;background:#ccc;border-radius:2px;justify-content:center;align-items:center;width:20px;height:20px;font-weight:700;display:flex}body #canvaLandingHome.ee-live-home .layer-thumb[data-astro-cid-fej3bsya].txt{background:#333}body #canvaLandingHome.ee-live-home .layer-thumb[data-astro-cid-fej3bsya].img{background:#4ecdc4}body #canvaLandingHome.ee-live-home .layer-thumb[data-astro-cid-fej3bsya].shape{background:#ff6b6b;border-radius:50%}body #canvaLandingHome.ee-live-home .floating-item[data-astro-cid-fej3bsya]{box-shadow:var(--shadow-md);border-radius:var(--radius-sm);z-index:20;background:#fff;padding:6px;position:absolute}body #canvaLandingHome.ee-live-home .floating-item[data-astro-cid-fej3bsya].plant{top:60px;right:40px;transform:rotate(15deg)}body #canvaLandingHome.ee-live-home .floating-item[data-astro-cid-fej3bsya].sneaker{bottom:40px;left:30px;transform:rotate(-10deg)}body #canvaLandingHome.ee-live-home .annotation[data-astro-cid-fej3bsya]{color:var(--color-primary-dark);align-items:flex-start;gap:8px;font-family:Comic Sans MS,cursive,sans-serif;font-size:14px;font-weight:700;display:flex;position:absolute;bottom:-20px;right:0;transform:rotate(-10deg)}body #canvaLandingHome.ee-live-home .footer[data-astro-cid-jo6i4kqk]{color:#fff;background:#1e1e24;padding:40px 0 24px}@media (width>=768px){body #canvaLandingHome.ee-live-home .footer[data-astro-cid-jo6i4kqk]{padding:60px 0 24px}}body #canvaLandingHome.ee-live-home .footer-top[data-astro-cid-jo6i4kqk]{flex-direction:column;gap:32px;margin-bottom:40px;display:flex}@media (width>=1024px){body #canvaLandingHome.ee-live-home .footer-top[data-astro-cid-jo6i4kqk]{flex-direction:row;justify-content:space-between;gap:48px;margin-bottom:60px}}body #canvaLandingHome.ee-live-home .footer-brand[data-astro-cid-jo6i4kqk]{max-width:320px}body #canvaLandingHome.ee-live-home .logo[data-astro-cid-jo6i4kqk]{margin-bottom:16px}body #canvaLandingHome.ee-live-home .brand-desc[data-astro-cid-jo6i4kqk]{color:#a0a6b5;margin:0;font-size:15px;line-height:1.6}body #canvaLandingHome.ee-live-home .footer-links-grid[data-astro-cid-jo6i4kqk]{flex:1;grid-template-columns:1fr 1fr;gap:32px 16px;max-width:700px;display:grid}@media (width>=768px){body #canvaLandingHome.ee-live-home .footer-links-grid[data-astro-cid-jo6i4kqk]{grid-template-columns:repeat(4,1fr);gap:32px 24px}}body #canvaLandingHome.ee-live-home .col-title[data-astro-cid-jo6i4kqk]{letter-spacing:1px;color:#fff;margin-bottom:16px;font-size:13px;font-weight:700}body #canvaLandingHome.ee-live-home .col-list[data-astro-cid-jo6i4kqk]{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}body #canvaLandingHome.ee-live-home .footer-link[data-astro-cid-jo6i4kqk]{color:#a0a6b5;transition:var(--transition-fast);cursor:default;font-size:14px}body #canvaLandingHome.ee-live-home .footer-bottom[data-astro-cid-jo6i4kqk]{text-align:center;color:#a0a6b5;border-top:1px solid #ffffff1a;padding-top:24px;font-size:13px}

/* Live-site visual system; every rule is confined to the homepage. */
body #canvaLandingHome.ee-live-home{position:fixed;inset:0;z-index:50;display:block!important;width:100%;height:100dvh;min-width:320px;max-width:none;margin:0;padding:0 0 env(safe-area-inset-bottom);overflow:auto;overscroll-behavior:contain;background:var(--ee-page,#f8f9fc)!important;color:var(--ee-heading,#1e1e24)!important;font-family:Inter,system-ui,-apple-system,sans-serif;--ee-heading:#1e1e24;--ee-copy:#5e6475;--ee-muted:#5e6475;--ee-surface:#fff;--ee-raised:#f0f3f9;--ee-border:#e2e5eb;--ee-accent:#ee529c;--ee-accent-text:#d84177;--ee-accent-soft:#fff0f6;--ee-accent-hover:#d84177}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #canvaLandingHome.ee-live-home {
  --ee-page: #0f172a !important;
  --ee-surface: #1e293b !important;
  --ee-raised: #334155 !important;
  --ee-border: #334155 !important;
  --ee-heading: #f8fafc !important;
  --ee-copy: #cbd5e1 !important;
  --ee-muted: #94a3b8 !important;
  background:var(--ee-surface) !important;
  color:#f8fafc !important;
}
body #canvaLandingHome.ee-live-home.hidden{display:none!important}
body #canvaLandingHome.ee-live-home .ee-live-retired,body #canvaLandingHome.ee-live-home [data-home-studio-only]{display:none!important}
body #canvaLandingHome.ee-live-home button{font-family:inherit;letter-spacing:normal;text-transform:none;cursor:pointer}
body #canvaLandingHome.ee-live-home :is(button,input,a,[tabindex]):focus-visible{outline:2px solid #d84177;outline-offset:3px}
body #canvaLandingHome.ee-live-home .container,body #canvaLandingHome.ee-live-home .container-wide{width:100%;min-width:0}
body #canvaLandingHome.ee-live-home .header{flex:none;backdrop-filter:none;min-height:80px}
body #canvaLandingHome.ee-live-home .header .logo{padding:0;border:0;background:none;flex-shrink:0;margin-inline-end:10px;margin-right:0}
body #canvaLandingHome.ee-live-home .logo-img{object-fit:contain;width:140px;height:40px}
body #canvaLandingHome.ee-live-home .nav-list{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;}
body #canvaLandingHome.ee-live-home .nav-link{font-size:13px;padding:6px 8px;white-space:nowrap;cursor:pointer;}
body #canvaLandingHome.ee-live-home .header-right{gap:8px;flex-shrink:0;}
body #canvaLandingHome.ee-live-home .header-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;}

/* Arabic font fallback and RTL glyph rendering (BUG-015) */
html[lang="ar"], body[dir="rtl"], .ee-lang-ar {
  font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif !important;
}
body #canvaLandingHome.ee-live-home .lang-toggle{border:0;gap:0;box-shadow:none;background:#f0f3f9;flex-shrink:0}
body #canvaLandingHome.ee-live-home .lang-toggle button{border:0;border-radius:999px;padding:5px 10px;font-size:13px;font-weight:600;background:none;color:#5e6475;min-height:30px}
body #canvaLandingHome.ee-live-home .lang-toggle button[aria-pressed=true]{background:#fff;color:#ee529c;box-shadow:0 2px 4px #0000000d}
body #canvaLandingHome.ee-live-home .dropdown-menu{opacity:0!important;visibility:hidden!important;pointer-events:none;transform:translateY(10px)!important;inset-inline-start:0;left:auto;max-height:calc(100dvh - 100px);overflow:auto;text-align:start}
body #canvaLandingHome.ee-live-home .nav-item-dropdown.is-active .dropdown-menu{opacity:1!important;visibility:visible!important;pointer-events:auto;transform:translateY(0)!important}
body #canvaLandingHome.ee-live-home .dropdown-menu button{display:block;width:100%;background:transparent;border:0;color:#5e6475;border-radius:8px;padding:10px 12px;text-align:start;font-size:14px}
body #canvaLandingHome.ee-live-home .dropdown-menu button:hover{color:#1e1e24;background:#f0f3f9}
body #canvaLandingHome.ee-live-home .mobile-nav-menu>button,body #canvaLandingHome.ee-live-home .mobile-accordion-content>button{background:none;border:0;border-bottom:1px solid #f0f3f9;width:100%;text-align:start}
body #canvaLandingHome.ee-live-home .mobile-accordion-content>button{padding:10px 0;font-size:14px;color:#5e6475}
body #canvaLandingHome.ee-live-home .mobile-nav-overlay{max-height:calc(100dvh - 174px);overflow:auto;overscroll-behavior:contain}
body #canvaLandingHome.ee-live-home .search-panel{max-width:calc(100vw - 32px)}
body #canvaLandingHome.ee-live-home .search-input{min-width:0;width:100%;background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important}
body #canvaLandingHome.ee-live-home .search-result-item{display:block;width:100%;background:none;border:0;text-align:start;padding:10px;border-radius:8px;color:#1e1e24;font-size:14px}
body #canvaLandingHome.ee-live-home .search-result-item:hover{background:#f0f3f9}
body #canvaLandingHome.ee-live-home .search-result-type{display:block;font-size:10px;font-weight:700;text-transform:uppercase;color:#d84177;margin-bottom:3px}
body #canvaLandingHome.ee-live-home .header-cta{font-size:14px;white-space:nowrap;padding:12px 20px}
body #canvaLandingHome.ee-live-home .hero-inner{gap:44px}
body #canvaLandingHome.ee-live-home .hero-content,body #canvaLandingHome.ee-live-home .hero-visual{min-width:0}
body #canvaLandingHome.ee-live-home .hero:before{z-index:0;pointer-events:none}
body #canvaLandingHome.ee-live-home .hero-inner{position:relative}
body:not(.theme-dark) #canvaLandingHome.ee-live-home .hero-title{color:#1e1e24!important}
body #canvaLandingHome.ee-live-home .hero-title .gradient-text{color:#ee529c!important}
body #canvaLandingHome.ee-live-home .ee-live-photo-frame{padding:0;isolation:isolate;height:400px;background:#fff;border-radius:16px;border:1px solid #e2e5eb;box-shadow:0 12px 24px #0000001f}
body #canvaLandingHome.ee-live-home .ee-live-preview-heading{height:48px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #e2e5eb;font-size:12px;color:#5e6475;background:#fff;gap:12px}
body #canvaLandingHome.ee-live-home .ee-live-preview-heading>span:first-child{display:flex;align-items:center;gap:7px;font-weight:700;color:#1e1e24;font-size:14px}
body #canvaLandingHome.ee-live-home .ee-live-preview-heading i{width:12px;height:12px;border-radius:50%;background:#ee529c}
body #canvaLandingHome.ee-live-home #eeHeroPreviewPanel{height:calc(100% - 48px);min-height:0;padding:14px;background:#f0f3f9;display:block}
body #canvaLandingHome.ee-live-home .ee-preview-launch{display:block;position:relative;isolation:isolate;width:100%;height:100%;min-height:0;aspect-ratio:auto;margin:0;padding:0;border:0;border-radius:8px;overflow:hidden;text-align:start;background:#252834;color:#fff;cursor:pointer}
body #canvaLandingHome.ee-live-home .ee-preview-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;transform:scale(1);transition:transform .55s cubic-bezier(.2,.7,.2,1);filter:none}
body #canvaLandingHome.ee-live-home .ee-preview-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,#10121a26 50%,#10121adb 100%);pointer-events:none}
body #canvaLandingHome.ee-live-home .ee-preview-bottom{position:absolute;inset:auto 24px 24px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;z-index:2;color:#fff}
body #canvaLandingHome.ee-live-home .ee-preview-caption{display:flex;flex-direction:column;gap:7px;min-width:0}
body #canvaLandingHome.ee-live-home .ee-preview-kicker{font-size:9px;letter-spacing:.15em;font-weight:600;color:#fff}
body #canvaLandingHome.ee-live-home .ee-preview-title{font-size:clamp(20px,2.2vw,29px);line-height:1.1;font-weight:700;color:#fff}
body #canvaLandingHome.ee-live-home .ee-preview-description{font-size:11px;color:#e9e9f0}
body #canvaLandingHome.ee-live-home .ee-preview-cta{flex-shrink:0;display:flex;align-items:center;gap:10px;padding:12px 15px;border-radius:999px;background:#fff;color:#1e1e24;font-weight:600;font-size:12px;transition:background .2s,color .2s,box-shadow .2s;white-space:nowrap}
body #canvaLandingHome.ee-live-home .ee-preview-launch:focus-visible .ee-preview-photo{transform:scale(1.045)}
body #canvaLandingHome.ee-live-home .ee-preview-launch:focus-visible .ee-preview-cta{background:#315fc7;color:#fff;box-shadow:0 5px 18px #315fc740}
@media(hover:hover) and (pointer:fine){body #canvaLandingHome.ee-live-home .ee-preview-launch:hover .ee-preview-photo{transform:scale(1.045)}body #canvaLandingHome.ee-live-home .ee-preview-launch:hover .ee-preview-cta{background:#315fc7;color:#fff;box-shadow:0 5px 18px #315fc740}}
body #canvaLandingHome.ee-live-home .category-card{width:100%;color:#1e1e24}
body #canvaLandingHome.ee-live-home .tool-card{width:100%;cursor:pointer}
body #canvaLandingHome.ee-live-home .section-link{background:none;border:0;padding:0}
body #canvaLandingHome.ee-live-home .ee-live-template-band{padding:60px 0;background:var(--ee-raised,#f0f3f9)}
body #canvaLandingHome.ee-live-home .ee-live-templates{padding:0!important;margin:0!important;background:none;border:0;max-width:none}
body #canvaLandingHome.ee-live-home .ee-live-template-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
body #canvaLandingHome.ee-live-home .ee-live-template-heading>div{max-width:620px}
body #canvaLandingHome.ee-live-home .ee-live-template-heading h2{font-size:28px;font-weight:800;margin:0 0 8px;color:var(--ee-heading,#1e1e24)}
body #canvaLandingHome.ee-live-home .ee-live-template-heading p{font-size:16px;line-height:1.5;color:var(--ee-copy,#5e6475);margin:0}
body #canvaLandingHome.ee-live-home .ee-live-browse{flex-shrink:0;background:none;border:0;color:#d84177;font-size:15px;font-weight:600}
body #canvaLandingHome.ee-live-home #canvaTemplateCountBadge{display:inline-block;color:var(--ee-muted,#5e6475);background:transparent;border:0;padding:0;font-size:12px;margin-bottom:12px}
body #canvaLandingHome.ee-live-home .canva-filter-pills{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 24px}
body.theme-light #canvaLandingHome.ee-live-home .canva-pill, body:not(.theme-dark) #canvaLandingHome.ee-live-home .canva-pill{background:#fff!important;color:#5e6475!important;border:1px solid #e2e5eb!important;border-radius:999px;padding:8px 14px;font-size:12px;box-shadow:none!important}
body.theme-light #canvaLandingHome.ee-live-home .canva-pill.active, body:not(.theme-dark) #canvaLandingHome.ee-live-home .canva-pill.active{color:#fff!important;background:#1e1e24!important;border-color:#1e1e24!important}
body #canvaLandingHome.ee-live-home #canvaTemplatesGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px;position:relative;z-index:1;margin-top:20px;clear:both}
/* Legacy 6-card clamp removed to allow full 1,855 template gallery browsing */
body #canvaLandingHome.ee-live-home .ee-original-card{border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none;overflow:visible}
body #canvaLandingHome.ee-live-home .ee-original-thumb{height:auto;aspect-ratio:4/3;padding:10px;background:#e2e5eb;border-radius:12px;transition:box-shadow .15s,transform .15s}
body #canvaLandingHome.ee-live-home .ee-original-card:hover{transform:none}
body #canvaLandingHome.ee-live-home .ee-original-card:hover .ee-original-thumb{transform:translateY(-4px);box-shadow:0 4px 12px #00000014;outline:2px solid #ee529c;outline-offset:2px}
body #canvaLandingHome.ee-live-home .ee-original-card:hover h3{color:#d84177}
body #canvaLandingHome.ee-live-home .ee-original-card-body{padding:14px 0 0}
body #canvaLandingHome.ee-live-home .ee-original-card h3{font-size:14px;margin:5px 0;color:#1e1e24}
body #canvaLandingHome.ee-live-home .ee-original-card p{font-size:11px;margin:0 0 8px}
body #canvaLandingHome.ee-live-home .ee-photo-badge{display:none}
body #canvaLandingHome.ee-live-home .ee-live-library{padding-bottom:60px}
body #canvaLandingHome.ee-live-home .ee-live-library>details{border:1px solid var(--ee-border,#e2e5eb);border-radius:12px;background:var(--ee-surface,#fff);margin-bottom:14px;padding:0 20px;color:var(--ee-heading,#1e1e24)}
body #canvaLandingHome.ee-live-home .ee-live-library summary{cursor:pointer;padding:18px 0;font-weight:600;color:var(--ee-heading,#1e1e24)}
body #canvaLandingHome.ee-live-home .ee-live-library .canva-section{background:none;margin:0;padding:20px 0;color:var(--ee-heading,#1e1e24)}
body #canvaLandingHome.ee-live-home .footer .footer-link{border:0;background:none;padding:0;text-align:start;cursor:pointer}
body #canvaLandingHome.ee-live-home .footer .footer-link:hover{color:#fff}
body #canvaLandingHome.ee-live-home .ee-live-footer-extra{display:flex;gap:24px;align-items:center;justify-content:center;margin-top:16px}
body #canvaLandingHome.ee-live-home .ee-live-footer-extra button{display:flex;align-items:center;gap:6px;background:none!important;border:0;color:#a0a6b5!important;font-size:12px;padding:6px}
body #canvaLandingHome.ee-live-home [id]{scroll-margin-top:100px}
[dir=rtl] #canvaLandingHome.ee-live-home{font-family:"Noto Sans Arabic",Tahoma,system-ui,sans-serif}
[dir=rtl] #canvaLandingHome.ee-live-home .hero-content,[dir=rtl] #canvaLandingHome.ee-live-home .showcase-content{text-align:start}
[dir=rtl] #canvaLandingHome.ee-live-home .search-panel{right:auto;left:0}
@media(max-width:1100px){body #canvaLandingHome.ee-live-home .header-left,body #canvaLandingHome.ee-live-home .header-right{gap:8px}body #canvaLandingHome.ee-live-home .nav-link{padding-inline:7px;font-size:13px}body #canvaLandingHome.ee-live-home .header .logo-img{width:126px}body #canvaLandingHome.ee-live-home .header-cta{padding-inline:14px}}
@media(max-width:1023px){body #canvaLandingHome.ee-live-home #canvaTemplatesGrid{grid-template-columns:repeat(3,minmax(0,1fr))}body #canvaLandingHome.ee-live-home .hero-inner{gap:28px}body #canvaLandingHome.ee-live-home .ee-preview-title{font-size:28px}}
@media(max-width:767px){body #canvaLandingHome.ee-live-home{padding-bottom:calc(64px + env(safe-area-inset-bottom))}body #canvaLandingHome.ee-live-home .hero-visual{margin-top:0}body #canvaLandingHome.ee-live-home .ee-live-photo-frame{height:340px}body #canvaLandingHome.ee-live-home .ee-preview-bottom{inset:auto 16px 18px;gap:12px;flex-wrap:wrap}body #canvaLandingHome.ee-live-home .ee-preview-description{display:none}body #canvaLandingHome.ee-live-home .ee-preview-title{font-size:23px}body #canvaLandingHome.ee-live-home .ee-preview-cta{padding:10px 13px;font-size:11px}body #canvaLandingHome.ee-live-home .ee-live-template-heading{align-items:flex-start;flex-direction:column;gap:16px}body #canvaLandingHome.ee-live-home .ee-live-template-heading h2{font-size:25px}body #canvaLandingHome.ee-live-home #canvaTemplatesGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}body #canvaLandingHome.ee-live-home .ee-original-description{font-size:12px}[dir=rtl] #canvaLandingHome.ee-live-home .hero-content{text-align:center}[dir=rtl] #canvaLandingHome.ee-live-home .search-panel{left:16px;right:16px}}
@media(prefers-reduced-motion:reduce){body #canvaLandingHome.ee-live-home *,body #canvaLandingHome.ee-live-home *:before{transition:none!important;animation:none!important;scroll-behavior:auto!important}body #canvaLandingHome.ee-live-home .ee-preview-photo{transform:none!important}}

/* Item 1 & 13: Hide Template Count Badge and Ad Placeholders */
#canvaTemplateCountBadge,
.canva-tpl-count-badge,
.adsense-slot-banner,
.canva-template-adsense-card,
.adsense-badge-pill,
[aria-label*="Advertisement Space"],
[aria-label*="AdSense"] {
  display: none !important;
}

/* BUG-015 Responsive Header Spacing & Layout */
@media (max-width: 1140px) {
  body #canvaLandingHome.ee-live-home .desktop-nav[data-astro-cid-nen7h5rs] {
    display: none !important;
  }
  body #canvaLandingHome.ee-live-home .mobile-menu-toggle[data-astro-cid-nen7h5rs] {
    display: flex !important;
    visibility: visible !important;
  }
}
@media (min-width: 1141px) {
  body #canvaLandingHome.ee-live-home .header-left[data-astro-cid-nen7h5rs] {
    gap: 12px !important;
  }
  body #canvaLandingHome.ee-live-home .nav-list {
    gap: 4px !important;
  }
  body #canvaLandingHome.ee-live-home .nav-link {
    font-size: 13px !important;
    padding: 6px 8px !important;
  }
  body #canvaLandingHome.ee-live-home .header-right[data-astro-cid-nen7h5rs] {
    gap: 8px !important;
  }
  body #canvaLandingHome.ee-live-home .header-right .btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
}

/* ========================================================
   EASYEDIT RESPONSIVE MOBILE HEADER & ZERO-OVERFLOW SYSTEM
   ======================================================== */
@media (max-width: 768px) {
  body #canvaLandingHome.ee-live-home .header {
    min-height: 56px !important;
    padding-block: 4px !important;
  }
  body #canvaLandingHome.ee-live-home .header-inner {
    padding-inline: 12px !important;
    gap: 6px !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body #canvaLandingHome.ee-live-home .header-left {
    flex-shrink: 0 !important;
    min-width: 0 !important;
    gap: 0 !important;
  }
  body #canvaLandingHome.ee-live-home .header .logo {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }
  body #canvaLandingHome.ee-live-home .logo-img {
    width: 104px !important;
    height: 30px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }
  body #canvaLandingHome.ee-live-home .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }
  body #canvaLandingHome.ee-live-home .mobile-menu-toggle {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    min-width: 34px !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 480px) {
  body #canvaLandingHome.ee-live-home .search-container {
    display: none !important;
  }
  body #canvaLandingHome.ee-live-home .header-inner {
    padding-inline: 8px !important;
    gap: 4px !important;
  }
  body #canvaLandingHome.ee-live-home .logo-img {
    width: 92px !important;
    height: 28px !important;
  }
  body #canvaLandingHome.ee-live-home .header-right {
    gap: 4px !important;
  }
}

@media (max-width: 360px) {
  body #canvaLandingHome.ee-live-home .header-inner {
    padding-inline: 6px !important;
    gap: 3px !important;
  }
  body #canvaLandingHome.ee-live-home .logo-img {
    width: 84px !important;
    height: 26px !important;
  }
  body #canvaLandingHome.ee-live-home .header-right {
    gap: 3px !important;
  }
  body #canvaLandingHome.ee-live-home .mobile-menu-toggle {
    width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    min-width: 30px !important;
    padding: 4px !important;
  }
  body #canvaLandingHome.ee-live-home .mobile-menu-toggle svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* RTL Arabic header alignments */
[dir="rtl"] body #canvaLandingHome.ee-live-home .header-inner {
  flex-direction: row-reverse !important;
}
[dir="rtl"] body #canvaLandingHome.ee-live-home .header-left {
  flex-direction: row !important;
}
[dir="rtl"] body #canvaLandingHome.ee-live-home .header-right {
  flex-direction: row !important;
}

/* Prevent inactive desktop dropdown menus from causing scrollWidth overflow in RTL */
body #canvaLandingHome.ee-live-home .dropdown-menu {
  display: none !important;
}
body #canvaLandingHome.ee-live-home .nav-item-dropdown:hover .dropdown-menu,
body #canvaLandingHome.ee-live-home .nav-item-dropdown.is-active .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
[dir="rtl"] body #canvaLandingHome.ee-live-home .dropdown-menu {
  right: 0 !important;
  left: auto !important;
}

/* One brand palette for Studio, utility pages, dialogs and the homepage. */
body,body.theme-light{
 --ee-page:#f8f9fc!important;--ee-surface:#fff!important;--ee-raised:#f0f3f9!important;--ee-border:#fecdd3!important;--ee-heading:#0f172a!important;--ee-copy:#475569!important;--ee-muted:#64748b!important;
 --ee-accent:#e11d48!important;--ee-accent-hover:#be123c!important;--ee-accent-text:#e11d48!important;--ee-accent-soft:#ffe4e6!important;--ee-title-secondary:#be123c!important;
 --ee-glass:#ffffffed!important;--ee-glass-edge:#fecdd3!important;--ee-glass-glint:#fff!important;--ee-home-gradient:#f8f9fc!important;--ee-aura-one:#e11d4814!important;--ee-aura-two:#e11d4808!important;--ee-card-shadow:0 12px 24px #e11d4814!important;
 --bg-app:var(--ee-page)!important;--bg-header:var(--ee-surface)!important;--bg-options:var(--ee-raised)!important;--bg-panel:var(--ee-surface)!important;--bg-panel-header:var(--ee-raised)!important;--bg-canvas:var(--ee-raised)!important;
 --border-color:var(--ee-border)!important;--text-main:var(--ee-heading)!important;--text-muted:var(--ee-muted)!important;--accent-active:var(--ee-accent)!important;--accent-photo:var(--ee-accent)!important;--accent-vector:var(--ee-accent)!important;
}
body:not(.theme-light),body.theme-dark{--ee-page:#18181b!important;--ee-surface:#202026!important;--ee-raised:#27272a!important;--ee-border:#3f3f46!important;--ee-heading:#f8fafc!important;--ee-copy:#cbd5e1!important;--ee-muted:#94a3b8!important;--ee-accent:#e11d48!important;--ee-accent-hover:#be123c!important;--ee-accent-text:#fb7185!important;--ee-accent-soft:rgba(225, 29, 72, 0.15)!important;--ee-glass:#202026f2!important;--ee-glass-edge:#3f3f46!important;--ee-glass-glint:#ffffff0d!important;--bg-app:var(--ee-page)!important;--bg-header:var(--ee-surface)!important;--bg-options:var(--ee-raised)!important;--bg-panel:var(--ee-surface)!important;--bg-panel-header:var(--ee-raised)!important;--bg-canvas:var(--ee-raised)!important;--border-color:var(--ee-border)!important;--text-main:var(--ee-heading)!important;--text-muted:var(--ee-muted)!important;--accent-active:var(--ee-accent)!important;--accent-photo:var(--ee-accent)!important;--accent-vector:var(--ee-accent)!important;}
/* The live homepage stays light even if the user has selected a dark Studio. */
/* Scoped strictly to non-dark mode so dark theme can override cohesively */
body.theme-light:is(body, main, #canvaLandingHome),
:not(.theme-dark):not(.dark):not([data-theme="dark"]).theme-light:is(body, main, #canvaLandingHome){--ee-page:#f8f9fc!important;--ee-surface:#fff!important;--ee-raised:#fff1f2!important;--ee-border:#fecdd3!important;--ee-heading:#0f172a!important;--ee-copy:#475569!important;--ee-muted:#64748b!important;--ee-accent:#e11d48!important;--ee-accent-hover:#be123c!important;--ee-accent-text:#e11d48!important;--ee-accent-soft:#ffe4e6!important}

/* ==================== COMPREHENSIVE DARK MODE RULES (WCAG AAA >= 7:1) ==================== */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) {
  --ee-page: #0f172a !important;
  --ee-surface: #1e293b !important;
  --ee-raised: #334155 !important;
  --ee-border: #475569 !important;
  --ee-heading: #f8fafc !important;
  --ee-copy: #cbd5e1 !important;
  --ee-muted: #94a3b8 !important;
  --ee-accent-soft: rgba(225, 29, 72, 0.2) !important;
  --ee-accent-text: #fb7185 !important;
  background: #0f172a !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, body.dark, html.dark, [data-theme="dark"], body:not(.theme-light)) :is(#canvaLandingHome, .ee-live-home, .footer, main) {
  background: #0f172a !important;
  color: #f8fafc !important;
}

/* 1. DUAL BRAND LOGO SWITCHING (EE-V01) */
body.theme-light .ee-logo-light { display: inline-block !important; }
body.theme-light .ee-logo-dark { display: none !important; }
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-logo-light { display: none !important; }
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-logo-dark { display: inline-block !important; }

/* 2. GLOBAL HEADER & CONTROLS (EE-V01, EE-V06) */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) {
  background: #0f172a !important;
  border-bottom: 1px solid #334155 !important;
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .nav-link {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .nav-link:hover,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .nav-link svg {
  stroke: #cbd5e1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .dropdown-menu {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .dropdown-menu button,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .dropdown-menu a {
  color: #cbd5e1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .dropdown-menu button:hover,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .dropdown-menu a:hover {
  background: #334155 !important;
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .header-search-trigger {
  background: transparent !important;
  color: #cbd5e1 !important;
  border: 1px solid transparent !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .header-search-trigger:is(:hover, :focus-visible, [aria-expanded="true"]) {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .header-search-trigger:focus-visible {
  outline: 2px solid #ee529c !important;
  outline-offset: 2px !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .header-search-trigger svg {
  stroke: currentColor !important;
  color: inherit !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-panel {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.55) !important;
  color: #f8fafc !important;
}
@media (max-width: 767px) {
  :is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-panel {
    border-radius: 14px !important;
    padding: 8px !important;
  }
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-input-wrapper,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-input-wrapper[data-astro-cid-nen7h5rs] {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-input-wrapper:focus-within,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-input-wrapper[data-astro-cid-nen7h5rs]:focus-within {
  background: #0f172a !important;
  border: 1px solid #ee529c !important;
  box-shadow: 0 0 0 3px rgba(238, 82, 156, 0.22) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-input,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-input[data-astro-cid-nen7h5rs] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-close-btn,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-close-btn[data-astro-cid-nen7h5rs] {
  background: transparent !important;
  color: #cbd5e1 !important;
  border: 1px solid transparent !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-close-btn:is(:hover, :focus-visible),
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-close-btn[data-astro-cid-nen7h5rs]:is(:hover, :focus-visible) {
  background: #334155 !important;
  color: #ffffff !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-close-btn:focus-visible {
  outline: 2px solid #ee529c !important;
  outline-offset: 2px !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-close-btn svg {
  stroke: currentColor !important;
  color: inherit !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-results {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-results p {
  color: #94a3b8 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-result-item {
  color: #e2e8f0 !important;
  background: transparent !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-result-item:is(:hover, :focus-visible) {
  background: #334155 !important;
  color: #ffffff !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-result-type {
  color: #fb7185 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) :is(.header, #eeLiveHeader) .search-result-item:is(:hover, :focus-visible) .search-result-type {
  color: #fda4af !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .lang-toggle {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .lang-segment {
  color: #94a3b8 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .lang-segment.is-active,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.header, #eeLiveHeader) .lang-segment[aria-pressed="true"] {
  background: #334155 !important;
  color: #f8fafc !important;
}

/* Google Auth Client in Dark Mode */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-user-name {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-user-btn {
  border-color: #475569 !important;
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-user-btn:hover {
  background: #334155 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-dropdown {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-dropdown-header {
  border-bottom-color: #334155 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-dropdown-title {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-dropdown-email {
  color: #94a3b8 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-dropdown-item {
  color: #cbd5e1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-logout-btn:hover {
  background: rgba(220, 38, 38, 0.15) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-credits-badge {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-auth-credits-badge.guest {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
}

/* 3. HOMEPAGE HERO (EE-V02) */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaHeroSection, .hero) {
  background: #0f172a !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.hero-title, .hero-title *, #canvaHeroSection h1, .hero h1) {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .hero-title .highlight {
  color: #fb7185 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.hero-description, .hero p) {
  color: #cbd5e1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.trust-item, .trust-item span, .trust-text h4) {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .trust-text p {
  color: #94a3b8 !important;
}

/* 4. TEMPLATES SECTION (EE-V03) */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-live-template-band {
  background: #0f172a !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-live-template-heading h2 {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-live-template-heading p {
  color: #cbd5e1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-live-browse {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-live-browse:hover {
  background: #334155 !important;
  color: #ffffff !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-template-nav-section {
  background: #1e293b !important;
  border-color: #334155 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .canva-pill {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .canva-pill:hover {
  background: #334155 !important;
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .canva-pill.active {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-search-icon {
  color: #cbd5e1 !important;
  stroke: #cbd5e1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-search-input {
  background-color: #1e293b !important;
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-search-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-search-input:hover {
  background-color: #273549 !important;
  background: #273549 !important;
  border-color: #475569 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-search-input:focus,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-search-input:focus-visible {
  background-color: #1e293b !important;
  background: #1e293b !important;
  border-color: #ee529c !important;
  box-shadow: 0 0 0 3px rgba(238, 82, 156, 0.25) !important;
  outline: none !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-select {
  background-color: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-select option {
  background-color: #1e293b !important;
  background: #1e293b !important;
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-select:hover {
  background-color: #273549 !important;
  border-color: #475569 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-select:focus,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-select:focus-visible {
  background-color: #1e293b !important;
  border-color: #ee529c !important;
  box-shadow: 0 0 0 3px rgba(238, 82, 156, 0.25) !important;
  outline: none !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-reset-btn {
  background-color: #1e293b !important;
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-reset-btn svg {
  stroke: currentColor !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-reset-btn:hover {
  background-color: #334155 !important;
  background: #334155 !important;
  border-color: #fb7185 !important;
  color: #fda4af !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome.ee-live-home, body) #eeTemplateFilterBar .ee-filter-reset-btn:focus-visible {
  background-color: #1e293b !important;
  background: #1e293b !important;
  border-color: #ee529c !important;
  color: #f8fafc !important;
  box-shadow: 0 0 0 3px rgba(238, 82, 156, 0.25) !important;
  outline: none !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-original-card h3 {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-original-card p {
  color: #94a3b8 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-original-thumb {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
}

/* 5. QUICK TOOLS & SURFACES (EE-V04, EE-V05) */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.category-card, .quick-img-pills-strip, .quick-pdf-card, .quick-img-pill-btn, .recent-project-card, .tool-card) {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.category-card, .quick-img-pills-strip, .quick-pdf-card, .quick-img-pill-btn, .recent-project-card, .tool-card):hover {
  background: #273549 !important;
  border-color: #475569 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.quick-pdf-link-title, .quick-img-pill-btn strong, .category-card h3, .tool-card h3) {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.quick-pdf-desc, .quick-pdf-url-crumb, .quick-img-pill-btn>div>span:last-child, .category-card p, .tool-card-desc) {
  color: #cbd5e1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-live-library>details {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-live-library summary {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(input:not([type=color]):not([type=range]):not([type=checkbox]), textarea, select) {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(.contact-page, #standaloneLegalPage) {
  background: #0f172a !important;
  color: #f8fafc !important;
}

/* Scoped Light-mode fallbacks */
body.theme-light :is(body, main, #canvaLandingHome) :is(.quick-img-pills-strip,.quick-pdf-card,.quick-img-pill-btn,.recent-project-card){background:var(--ee-surface)!important;border-color:var(--ee-border)!important;color:var(--ee-heading)!important;box-shadow:0 4px 20px -2px rgba(244, 63, 94, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03)!important}
body.theme-light :is(body, main, #canvaLandingHome) .quick-img-pills-strip{background:#ffffff!important}
body.theme-light :is(body, main, #canvaLandingHome) :is(.quick-pdf-card,.quick-img-pill-btn,.recent-project-card):hover{background:var(--ee-raised)!important;border-color:#fda4af!important;box-shadow:0 16px 32px -4px rgba(244, 63, 94, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05)!important}
body.theme-light :is(body, main, #canvaLandingHome) :is(.quick-pdf-link-title,.recent-project-card-title,.canva-section-title){color:var(--ee-heading)!important}
body.theme-light :is(body, main, #canvaLandingHome) :is(.canva-section-sub,.quick-pdf-desc,.quick-pdf-url-crumb,.recent-project-meta),body.theme-light :is(body, main, #canvaLandingHome) .quick-img-pill-btn>div>span:last-child{color:var(--ee-copy)!important}
/* Standardized Icons & Typography for Quick Image Tools & PDF Tools */
body.theme-light :is(body, main, #canvaLandingHome) .quick-img-blue-icon{background:#eff6ff!important;color:#0284c7!important;border:1px solid #bfdbfe!important;box-shadow:0 2px 8px rgba(2, 132, 199, 0.08)!important}
body.theme-light :is(body, main, #canvaLandingHome) .quick-pdf-badge-icon{background:#fee2e2!important;color:#dc2626!important;border:1px solid #fca5a5!important;box-shadow:0 2px 8px rgba(220, 38, 38, 0.08)!important}
body.theme-light :is(body, main, #canvaLandingHome) .quick-pdf-url-crumb>span{color:#64748b!important}
body.theme-light :is(body, main, #canvaLandingHome) .quick-pdf-footer{color:#64748b!important;border-color:#f1f5f9!important}
body.theme-light :is(body, main, #canvaLandingHome) .quick-pdf-footer span:last-child{color:#0284c7!important;font-weight:700!important}
:is(body, main, #canvaLandingHome) .canva-tpl-count-badge{background:var(--ee-accent-soft)!important;color:var(--ee-accent-text)!important;border-color:#fecdd3!important}
body.theme-light :is(body, main, #canvaLandingHome) .category-card{background:#ffffff!important;border-color:#fecdd3!important;border-radius:20px!important}
:is(body, main, #canvaLandingHome) :is(.category-icon-wrapper,.tool-icon){background:var(--ee-accent-soft)!important;color:var(--ee-accent-text)!important;box-shadow:0 2px 8px rgba(225, 29, 72, 0.1)!important}
:is(body, main, #canvaLandingHome) .tool-icon{background:var(--ee-accent-soft)!important}
body :is(#standaloneQuickToolPage,#standaloneLearnBlogPage,#standaloneLegalPage){background:var(--ee-page)!important;color:var(--ee-heading)!important}
body :is(.qt-topbar,.qt-panel-card,.qt-guide-article-card,.learn-topbar,.learn-article-card,.learn-featured-card,.learn-blog-card,.legal-topbar,.legal-article-card,.legal-nav-card,.modal-card,.stock-modal-card,.gfonts-modal-card){background:var(--ee-surface)!important;border-color:var(--ee-border)!important;color:var(--ee-heading)!important;box-shadow:0 6px 24px #0000000d}
body :is(.qt-subnav-strip,.qt-preview-stage,.qt-dropzone){background:var(--ee-raised)!important;border-color:var(--ee-border)!important;color:var(--ee-copy)!important}
body .qt-dropzone:hover{background:var(--ee-accent-soft)!important;border-color:var(--ee-accent)!important}
body .qt-tab-pill{background:var(--ee-surface)!important;color:var(--ee-copy)!important;border-color:var(--ee-border)!important}
body .qt-tab-pill:is(.active-img,.active-pdf){background:var(--ee-accent-soft)!important;border-color:var(--ee-accent)!important;color:var(--ee-accent-text)!important}
body :is(#qtHeaderCategoryBadge,#qtRightBadge,#btnQtSwitchToPdfHub,#btnQtSwitchToImgHub,#btnQuickToolBackHome){background:var(--ee-accent-soft)!important;border-color:var(--ee-border)!important;color:var(--ee-accent-text)!important}
body #standaloneQuickToolPage :is(h1,h2,h3,h4){color:var(--ee-heading)!important}
body #standaloneQuickToolPage :is(input:not([type=color]):not([type=range]):not([type=checkbox]),select,textarea){background:var(--ee-surface)!important;color:var(--ee-heading)!important;border-color:var(--ee-border)!important}
body #easyEditStudioShell :is(.top-header,.left-dock,.right-dock,.panel,.panel-content,.layers-panel,.status-bar){background:var(--ee-surface)!important;color:var(--ee-heading)!important;border-color:var(--ee-border)!important}
body #easyEditStudioShell :is(.panel-header,.panel-title,.dock-tabs,.doc-artboard-bar,.ee-dock-details>summary,.ee-property-details>summary){background:var(--ee-raised)!important;color:var(--ee-heading)!important;border-color:var(--ee-border)!important}
body #easyEditStudioShell :is(.tool-btn.active,.dock-tab.active,.layer-row.active-vector,.layer-row.active-raster,.mode-btn.active){background:var(--ee-accent-soft)!important;border-color:var(--ee-accent)!important;color:var(--ee-accent-text)!important;box-shadow:none!important}
body #eeStudioHeader :is(.menu-dropdown,.ee-language-switch){background:var(--ee-surface)!important;color:var(--ee-heading)!important;border-color:var(--ee-border)!important}
body #eeStudioHeader :is(.menu-trigger:hover,.menu-group.open>.menu-trigger,.menu-item:hover,.ee-language-switch>button[aria-pressed=true]){background:var(--ee-accent-soft)!important;color:var(--ee-accent-text)!important}
body #eeStudioHeader .ee-export-action{background:#1e1e24!important;color:#fff!important;border-color:#1e1e24!important}
body:not(.theme-light) #eeStudioHeader .ee-export-action{background:#f6f6f8!important;color:#1e1e24!important;border-color:#f6f6f8!important}
body .ee-brand-svg-logo{filter:none!important;mix-blend-mode:normal!important;opacity:1!important}
body :is(input[type=range],input[type=checkbox],progress){accent-color:var(--ee-accent)}
body :is(#easyEditStudioShell,#standaloneQuickToolPage,#standaloneLearnBlogPage,#standaloneLegalPage) :is(button,input,select,textarea):focus-visible{outline:2px solid var(--ee-accent-text);outline-offset:3px}
body #standaloneQuickToolPage #btnQtExecuteAction {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}
body #standaloneQuickToolPage #btnQtExecuteAction:hover:not(:disabled) {
  background: #be123c !important;
  border-color: #be123c !important;
}
body.theme-light #standaloneQuickToolPage #btnQtExecuteAction:disabled,
body.theme-light #standaloneQuickToolPage #btnQtExecuteAction[disabled] {
  background: #e2e8f0 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
  opacity: 0.9 !important;
}
body:not(.theme-light) #standaloneQuickToolPage #btnQtExecuteAction:disabled,
body:not(.theme-light) #standaloneQuickToolPage #btnQtExecuteAction[disabled],
.theme-dark #standaloneQuickToolPage #btnQtExecuteAction:disabled,
[data-theme="dark"] #standaloneQuickToolPage #btnQtExecuteAction:disabled {
  background: #334155 !important;
  color: #cbd5e1 !important;
  border-color: #475569 !important;
  cursor: not-allowed !important;
  opacity: 0.9 !important;
}
body #standaloneQuickToolPage :is(#qtOpenedDetailBadge,#qtOpenedDetailIcon){background:var(--ee-accent-soft)!important;color:var(--ee-accent-text)!important;border-color:var(--ee-border)!important}

#canvaTemplateCountBadge, .canva-tpl-count-badge { display: none !important; }


/* User Corrections: Hide language toggle, undo/redo in header, count badge and ad placeholders */
#canvaTemplateCountBadge,
.canva-tpl-count-badge,
.adsense-slot-banner,
.canva-template-adsense-card,
.adsense-badge-pill,
[aria-label*="Advertisement Space"],
[aria-label*="AdSense"],
.ad-container,
.adsbygoogle {
  display: none !important;
}

/* language selector displayed */


/* Language dropdown enabled */

/* ==================== P0 ACCESSIBILITY: LEGAL PAGES THEME REPAIR ==================== */
/* Standalone Legal Page Root Container */
#standaloneLegalPage {
  background: var(--ee-page, #f8fafc) !important;
  color: var(--ee-heading, #0f172a) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #standaloneLegalPage {
  background: #0f172a !important;
  color: #f8fafc !important;
}

/* Legal Page Header Topbar */
#standaloneLegalPage .qt-topbar {
  background: var(--ee-surface, #ffffff) !important;
  border-bottom: 1px solid var(--ee-border, #e2e8f0) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #standaloneLegalPage .qt-topbar {
  background: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
}

/* Legal Card Containers (Sidebar Navigation & Article) */
.legal-nav-card,
.legal-article-card,
#legalArticleContentContainer {
  background: var(--ee-surface, #ffffff) !important;
  border: 1px solid var(--ee-border, #e2e8f0) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05) !important;
}

/* Light Mode Standards (WCAG AAA Contrast >= 7:1) */
body.theme-light .legal-nav-card,
body.theme-light .legal-article-card,
body.theme-light #legalArticleContentContainer {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
body.theme-light #legalArticleContentContainer :is(h1, h2, h3, h4) {
  color: #0f172a !important;
}
body.theme-light #legalArticleContentContainer :is(p, li, td, th, label) {
  color: #334155 !important;
}
body.theme-light #legalArticleContentContainer .ee-legal-lead {
  color: #0f172a !important;
}
body.theme-light #legalArticleContentContainer .ee-legal-date {
  color: #64748b !important;
}
body.theme-light #legalArticleContentContainer a {
  color: #2563eb !important;
}
body.theme-light #legalArticleContentContainer a:hover {
  color: #1d4ed8 !important;
}
body.theme-light .legal-side-btn {
  color: #334155 !important;
  background: transparent !important;
}
body.theme-light .legal-side-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
body.theme-light .legal-side-btn.active {
  background: #e11d48 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25) !important;
}
body.theme-light #btnLegalBackHome {
  background: #ffe4e6 !important;
  border: 1px solid #fecdd3 !important;
  color: #9f1239 !important; /* 5.18:1 contrast on #ffe4e6 - WCAG AA pass */
}

/* Dark Mode Standards (WCAG AAA Contrast >= 9.9:1) */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .legal-nav-card,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .legal-article-card,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4) !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer :is(h1, h2, h3, h4) {
  color: #f8fafc !important; /* 14.11:1 contrast on #1e293b - WCAG AAA */
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer :is(p, li, td, th, label) {
  color: #cbd5e1 !important; /* 9.93:1 contrast on #1e293b - WCAG AAA */
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer .ee-legal-lead {
  color: #e2e8f0 !important; /* 12.4:1 contrast on #1e293b - WCAG AAA */
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer .ee-legal-date {
  color: #94a3b8 !important; /* 5.8:1 contrast on #1e293b - WCAG AA */
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer a {
  color: #38bdf8 !important; /* 8.2:1 contrast on #1e293b - WCAG AAA */
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer a:hover {
  color: #7dd3fc !important; /* > 10:1 contrast */
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer section {
  border-color: #334155 !important;
}

/* Sidebar Navigation Buttons in Dark Mode */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .legal-side-btn {
  color: #cbd5e1 !important; /* 9.93:1 contrast on #1e293b */
  background: transparent !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .legal-side-btn:hover {
  background: #334155 !important;
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .legal-side-btn.active {
  background: #e11d48 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4) !important;
}

/* Support Box in Sidebar */
body.theme-light .legal-nav-card div[style*="rgba(16,185,129"] {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #1e293b !important;
}
body.theme-light .legal-nav-card div[style*="rgba(16,185,129"] div[style*="var(--ee-accent-text)"] {
  color: #15803d !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .legal-nav-card div[style*="rgba(16,185,129"] {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
  color: #e2e8f0 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .legal-nav-card div[style*="rgba(16,185,129"] div[style*="var(--ee-accent-text)"] {
  color: #34d399 !important; /* 8.5:1 contrast on #1e293b */
}

/* Breadcrumb / Back to Home Button in Dark Mode */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #btnLegalBackHome {
  background: #334155 !important;
  border: 1px solid #475569 !important;
  color: #f8fafc !important; /* 10.5:1 contrast on #334155 */
}

/* Quick Tool Tabs in Legal Topbar */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #standaloneLegalPage .qt-tab-pill {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #standaloneLegalPage .qt-tab-pill:hover {
  background: #334155 !important;
  color: #f8fafc !important;
}

/* Header Badge & Title in Dark Mode */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalHeaderTitle {
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalHeaderCanonical {
  color: #94a3b8 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #btnLegalThemeSwitch {
  background: #334155 !important;
  border: 1px solid #475569 !important;
  color: #f8fafc !important;
}

/* Contact Form (/contact-us/) in Dark Mode */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-contact-form {
  background: #1e293b !important;
  border-color: #334155 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-contact-form label {
  color: #e2e8f0 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-contact-form :is(input, textarea) {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-contact-form button[type="submit"] {
  background: #e11d48 !important;
  color: #ffffff !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ee-legal-feedback {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Cookie Policy reset button (/cookie-policy/) in Dark Mode */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #btnResetUiPreferences {
  background: #334155 !important;
  border: 1px solid #475569 !important;
  color: #f8fafc !important;
}

/* Sitemap List (/sitemap/) in Dark Mode */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer ul li a {
  color: #38bdf8 !important;
}
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #legalArticleContentContainer ul li a:hover {
  color: #7dd3fc !important;
}

/* High-specificity overrides for Quick Tools and Template Nav in Dark Mode */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome, body) :is(#canvaSectionQuickImageTools, #canvaSectionQuickPdfTools, #canvaSectionRecentProjects) :is(.quick-img-pills-strip, .quick-img-pill-btn, .quick-pdf-card, .recent-project-card),
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome, body) #canvaSectionQuickImageTools .quick-img-pills-strip,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome, body) #canvaSectionQuickImageTools .quick-img-pill-btn,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome, body) #canvaSectionQuickImageTools [data-quick-tool="img-converter"],
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome, body) #canvaSectionQuickImageTools [data-quick-tool="img-compress"],
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome, body) #canvaSectionQuickPdfTools .quick-pdf-card,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome, body) .ee-template-nav-section {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome, body) :is(.quick-pdf-link-title, .quick-img-pill-btn strong, .quick-pdf-card h3, .canva-section-title, .recent-project-card-title) {
  color: #f8fafc !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) :is(#canvaLandingHome, body) :is(.quick-pdf-desc, .quick-pdf-url-crumb, .quick-img-pill-btn>div>span:last-child, .canva-section-sub, .recent-project-meta) {
  color: #cbd5e1 !important;
}

/* Header theme toggle button */
#btnHeaderThemeSwitch.ee-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: transparent;
  color: var(--text-main, #1e293b);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
:is(body.theme-dark, html.dark, [data-theme="dark"]) #btnHeaderThemeSwitch.ee-theme-toggle-btn {
  border-color: rgba(148, 163, 184, 0.25);
  color: #f8fafc !important;
  background: rgba(30, 41, 59, 0.6);
}
#btnHeaderThemeSwitch.ee-theme-toggle-btn:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #0b5cff;
}
:is(body.theme-dark, html.dark, [data-theme="dark"]) #btnHeaderThemeSwitch.ee-theme-toggle-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #38bdf8 !important;
}

/* Mobile nav theme toggle button */
.mobile-nav-theme-row {
  padding: 12px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 10px;
}
#btnMobileNavThemeSwitch.mobile-nav-theme-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(241, 245, 249, 0.8);
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
:is(body.theme-dark, html.dark, [data-theme="dark"]) #btnMobileNavThemeSwitch.mobile-nav-theme-btn {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f8fafc !important;
}

/* Homepage remaining contrast polish */
.ee-live-template-heading p {
  color: #475569;
}
:is(body.theme-dark, html.dark, [data-theme="dark"]) .ee-live-template-heading p {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) :is(.hero-description, .categories p, .tools-section p, .showcase p, .ee-live-home p) {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) input::placeholder {
  color: #94a3b8 !important;
}
body.theme-light input::placeholder {
  color: #64748b !important;
}

/* One sticky stack allows the header to wrap without overlapping the tool tabs. */
body #standaloneQuickToolPage { scroll-padding-top: calc(var(--qt-navigation-height, 144px) + 16px); }
body #standaloneQuickToolPage #qtStickyNavigation {
  position: sticky;
  top: 0;
  z-index: 30;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  background: var(--ee-surface);
  box-shadow: 0 4px 16px #0000000a;
}
body #standaloneQuickToolPage .qt-header-tool-meta { display: none !important; }
body #standaloneQuickToolPage .qt-topbar { flex-wrap: wrap; box-sizing: border-box; box-shadow: none !important; }
body #standaloneQuickToolPage .qt-topbar > div { min-width: 0; flex-wrap: wrap; }
body #standaloneQuickToolPage .qt-topbar > div:last-child { margin-inline-start: auto; justify-content: flex-end; }
body #standaloneQuickToolPage .qt-topbar button { flex-shrink: 0; }
body #standaloneQuickToolPage #qtSubnavStrip { box-sizing: border-box; max-width: 100%; background: var(--ee-surface); }
@media (max-width: 640px) {
  body #standaloneQuickToolPage #qtHeaderCategoryBadge { display: none !important; }
  body #standaloneQuickToolPage .qt-topbar > div:last-child {
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block: 4px;
  }
}

/* Six compact categories without min-content overflow. */
body #canvaLandingHome.ee-live-home .categories .category-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
body #canvaLandingHome.ee-live-home .categories .category-card{box-sizing:border-box;min-width:0;padding:20px 10px;cursor:pointer}
body #canvaLandingHome.ee-live-home .categories .category-icon-wrapper{width:52px;height:52px;margin-bottom:12px}
body #canvaLandingHome.ee-live-home .categories .category-title{font-size:16px;line-height:1.3;margin:0 0 8px;overflow-wrap:anywhere}
body #canvaLandingHome.ee-live-home .categories .category-desc{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:1023px){body #canvaLandingHome.ee-live-home .categories .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){body #canvaLandingHome.ee-live-home .categories .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
body #standaloneQuickToolPage #qrGeneratorPanel{display:none}
body #standaloneQuickToolPage.ee-qr-mode>#qrGeneratorPanel{display:block;flex:none}
body #standaloneQuickToolPage.ee-qr-mode>:not(#qtStickyNavigation):not(#qrGeneratorPanel){display:none!important}
body #standaloneQuickToolPage.ee-qr-mode #btnQtReadSeoBlog{display:none!important}
#qrGeneratorPanel{padding:36px 24px 60px;max-width:1140px;width:100%;margin:0 auto;box-sizing:border-box;color:var(--ee-heading)}
#qrGeneratorPanel h1{font-size:clamp(28px,4vw,40px);line-height:1.15;margin:12px 0}
#qrGeneratorPanel p{color:var(--ee-muted);line-height:1.6}
#qrGeneratorPanel .qr-eyebrow{font-size:11px;letter-spacing:.1em;font-weight:800;color:var(--ee-accent-text);text-transform:uppercase}
#qrGeneratorPanel .qr-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-top:28px}
#qrGeneratorPanel .qr-card{min-width:0;background:var(--ee-surface);border:1px solid var(--ee-border);border-radius:20px;padding:24px;box-shadow:0 8px 24px #00000005}
#qrGeneratorPanel label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin-bottom:18px}
#qrGeneratorPanel :is(input,select,textarea){width:100%;box-sizing:border-box;border:1px solid var(--ee-border);border-radius:10px;padding:11px;font:inherit}
#qrGeneratorPanel textarea{resize:vertical;min-height:140px;line-height:1.5}
#qrGeneratorPanel input[type=color]{height:44px;padding:4px;background:var(--ee-surface)}
#qrGeneratorPanel .qr-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#qrGeneratorPanel .qr-primary{width:100%;background:var(--ee-heading);color:var(--ee-surface);border:0;border-radius:12px;font:inherit;font-weight:700;padding:14px;cursor:pointer}
#qrGeneratorPanel .qr-preview{min-height:280px;display:grid;place-items:center;background:#fff;border:1px solid var(--ee-border);border-radius:12px;padding:16px;aspect-ratio:1;box-sizing:border-box}
#qrGeneratorPanel canvas{width:100%;height:auto;max-width:360px;display:block}
#qrGeneratorPanel [hidden]{display:none!important}
#qrGeneratorPanel #qrPlaceholder{max-width:220px;text-align:center;color:#5e6475}
#qrGeneratorPanel .qr-downloads{display:flex;gap:12px;margin-top:20px}
#qrGeneratorPanel .qr-downloads button{flex:1;background:var(--ee-accent-soft);color:var(--ee-accent-text);border:1px solid var(--ee-border);border-radius:10px;padding:12px;font:inherit;font-weight:700;cursor:pointer}
#qrGeneratorPanel button:disabled{opacity:.45;cursor:not-allowed}
#qrGeneratorPanel #qrStatus{font-size:13px;min-height:42px;margin-bottom:0}
#qrGeneratorPanel .qr-error{color:var(--ee-accent-text)!important;font-weight:600}
#qrGeneratorPanel .qr-note{font-size:12px;margin-bottom:0}
#qrGeneratorPanel .qr-guide{margin-top:28px;padding:24px;border-radius:16px;background:var(--ee-accent-soft)}
#qrGeneratorPanel .qr-guide h2{font-size:18px;margin-top:0}
@media(max-width:700px){#qrGeneratorPanel{padding:24px 16px}#qrGeneratorPanel .qr-layout{grid-template-columns:1fr}#qrGeneratorPanel .qr-card{padding:18px}#qrGeneratorPanel .qr-preview{min-height:0}}

body #canvaLandingHome.ee-live-home a{font-family:inherit;text-decoration:none;cursor:pointer}
body #canvaLandingHome.ee-live-home .dropdown-menu a{display:block;padding:10px 12px;border-radius:8px;color:var(--ee-copy);font-size:14px;text-align:start}
body #canvaLandingHome.ee-live-home .dropdown-menu a:hover{background:var(--ee-raised);color:var(--ee-heading)}
body #canvaLandingHome.ee-live-home .mobile-nav-menu>a,body #canvaLandingHome.ee-live-home .mobile-accordion-content>a{display:block;padding:10px 0;color:var(--ee-heading)}
body #canvaLandingHome.ee-live-home .ee-live-footer-extra a{color:inherit}
.qt-tab-pill{text-decoration:none;display:inline-block}
.ee-seo-retired{display:none!important}
.ee-seo-article{direction:inherit;text-align:start}
.ee-seo-article h1{font-size:30px;line-height:1.25}
.ee-seo-article h2{font-size:20px;margin-top:28px}
.ee-seo-article p,.ee-seo-article li{font-size:15px;line-height:1.8}
.ee-seo-link-list{display:flex;flex-wrap:wrap;gap:8px 20px;padding:20px}
.ee-seo-link-list a{color:var(--ee-accent-text);text-decoration:underline}
#eeNotFound{position:fixed;inset:0;z-index:11000;display:grid;place-content:center;text-align:center;background:var(--ee-page);color:var(--ee-heading);padding:24px}
#eeNotFound.hidden{display:none!important}
#eeNotFound a{color:var(--ee-accent-text)}
#standaloneQuickToolPage .ee-seo-tool-heading{display:inline;font-size:inherit;margin:0}

#standaloneLearnBlogPage .ee-language-note,#standaloneQuickToolPage .ee-language-note{display:none!important}

#easyEditTemplateWorkspace{--te-pink:#d72d7b;--te-ink:#27232b;--te-muted:#766d7c;--te-line:#ece6ed;position:fixed;inset:0;z-index:10000;display:grid;grid-template-columns:76px 292px minmax(0,1fr);grid-template-rows:68px minmax(0,1fr);background:#f5f3f6;color:var(--te-ink);font:14px/1.5 Arial,sans-serif;text-align:start}
#easyEditTemplateWorkspace.hidden,#easyEditTemplateWorkspace[hidden],#easyEditTemplateWorkspace [hidden]{display:none!important}
#easyEditTemplateWorkspace *{box-sizing:border-box}#easyEditTemplateWorkspace button,#easyEditTemplateWorkspace input,#easyEditTemplateWorkspace select,#easyEditTemplateWorkspace textarea{font:inherit;color:inherit}
#easyEditTemplateWorkspace button{cursor:pointer;border:1px solid var(--te-line);background:#fff;border-radius:9px;padding:8px 12px;transition:background .15s,border-color .15s;white-space:nowrap;line-height:1.4;box-shadow:none}
#easyEditTemplateWorkspace button:hover{background:#fff0f7;border-color:#ecb3cf}#easyEditTemplateWorkspace button:disabled{opacity:.4;cursor:default}#easyEditTemplateWorkspace :focus-visible{outline:2px solid var(--te-pink);outline-offset:3px}
#easyEditTemplateWorkspace input:not([type=color]):not([type=range]),#easyEditTemplateWorkspace select,#easyEditTemplateWorkspace textarea{background:#fff;border:1px solid var(--te-line);border-radius:8px;padding:8px;min-width:0}
#easyEditTemplateWorkspace input[type=color]{width:30px;height:30px;padding:2px;border:0;border-radius:50%;background:transparent;cursor:pointer}
.te-header{grid-column:1/-1;display:flex;align-items:center;gap:15px;padding:0 24px;background:linear-gradient(110deg,#fff,#fff0f7 60%,#f9e5f0);border-bottom:1px solid #ecdce6;min-width:0;z-index:4}
.te-brand{width:103px;display:flex;align-items:center;flex-shrink:0}.te-brand svg,.te-brand img{width:103px;max-height:40px;object-fit:contain}.te-workspace-name{font-size:12px;color:#93516e;border-inline-start:1px solid #e4c7d6;padding-inline-start:14px;white-space:nowrap}
#easyEditTemplateWorkspace .te-title{background:transparent;border-color:transparent;text-align:center;flex:1;max-width:420px;margin-inline:auto;min-width:100px;font-weight:600}
.te-file{position:relative}.te-file summary{cursor:pointer;list-style:none;padding:8px}.te-file-menu{position:absolute;top:40px;inset-inline-start:0;min-width:220px;background:#fff;box-shadow:0 10px 40px #46304422;border:1px solid var(--te-line);padding:8px;border-radius:12px;display:grid;gap:5px}.te-history{display:flex;gap:3px}#easyEditTemplateWorkspace .te-history button{border:0;background:transparent;font-size:24px;padding:0 8px}
#easyEditTemplateWorkspace .te-download,#easyEditTemplateWorkspace .te-accent-button{background:#252128;color:#fff;border-color:#252128;font-weight:600;padding:11px 18px}#easyEditTemplateWorkspace .te-download:hover,#easyEditTemplateWorkspace .te-accent-button:hover{background:var(--te-pink);border-color:var(--te-pink)}.te-save-status{font-size:11px;color:var(--te-muted);max-width:150px}
.te-rail{grid-column:1;grid-row:2;background:#fff;border-inline-end:1px solid var(--te-line);padding:20px 5px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;z-index:3}
#easyEditTemplateWorkspace .te-rail button{border:0;background:transparent;display:flex;align-items:center;flex-direction:column;gap:7px;padding:8px 1px;font-size:10px;min-height:63px;white-space:normal}
.te-rail svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#easyEditTemplateWorkspace .te-rail button[aria-pressed=true]{background:#fff0f7;color:var(--te-pink);font-weight:700}.te-sidebar{grid-column:2;grid-row:2;background:#fff;border-inline-end:1px solid var(--te-line);padding:22px 20px;overflow:auto;min-height:0;z-index:2}
.te-sidebar-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.te-sidebar-heading h2{font-size:17px;font-weight:700;margin:0}#easyEditTemplateWorkspace .te-sidebar-heading button{border:0;padding:3px 8px;color:var(--te-muted)}
.te-eyebrow{font-size:9px;color:#a65e80;font-weight:700;letter-spacing:1.5px;margin:0 0 8px}.te-intro{font:30px/1.15 Georgia,serif;margin:0 0 10px}.te-muted{font-size:12px;color:var(--te-muted);line-height:1.65;margin:8px 0 18px}.te-sidebar input[type=search],.te-sidebar select{width:100%;margin:0 0 14px;box-sizing:border-box;position:relative;z-index:2;flex-shrink:0}
.te-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px;margin-top:16px;position:relative;z-index:1;clear:both}#easyEditTemplateWorkspace .te-template-card{padding:0;border:0;border-radius:7px;overflow:hidden;text-align:start;white-space:normal;background:transparent;display:flex;flex-direction:column;gap:6px}
.te-template-card img{width:100%;height:147px;object-fit:cover;display:block;border-radius:7px;transition:transform .2s}.te-template-card:hover img{transform:scale(1.03)}.te-template-card span{font-size:10px;line-height:1.4;color:#655d6a}.te-template-card small{font-size:9px;color:#9b909f}
.te-main{grid-column:3;grid-row:2;display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;background:radial-gradient(ellipse at 70% 20%,#fcf3f8,transparent 60%),#f3f2f5}.te-toolbar{align-self:center;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--te-line);box-shadow:0 3px 10px #35233d0a;border-radius:13px;margin:17px 14px 8px;padding:8px 12px;max-width:calc(100% - 28px);min-height:54px;flex-shrink:0;overflow-x:auto}
.te-toolbar label,.te-text-controls,.te-page-controls{display:flex;align-items:center;gap:6px;white-space:nowrap}.te-toolbar label>span{font-size:10px;color:var(--te-muted)}.te-toolbar .te-selection-label{font-size:11px;color:#7f6474;white-space:nowrap;border-inline-end:1px solid var(--te-line);padding-inline-end:10px;max-width:100px;overflow:hidden;text-overflow:ellipsis}
#easyEditTemplateWorkspace .te-toolbar button{border-color:transparent;font-size:12px;padding:5px 8px}#easyEditTemplateWorkspace .te-toolbar input[type=number]{width:62px;padding:5px;font-size:12px}#easyEditTemplateWorkspace .te-toolbar select{max-width:130px;padding:5px;font-size:12px}
.te-stage{flex:1;overflow:auto;min-height:0;padding:25px 32px 40px;overscroll-behavior:contain}.te-stage-inner{width:max-content;min-width:100%;display:flex;flex-direction:column;align-items:center;gap:20px}.te-paper{position:relative;background:#fff;box-shadow:0 10px 35px #35233d16;flex-shrink:0}.te-paper canvas{display:block;width:100%;height:100%}#teSelection{position:absolute;inset:0;touch-action:none;cursor:default}#easyEditTemplateWorkspace .te-add-page{background:transparent;border-color:#d8ceda;min-width:230px;color:#6f6474;font-size:12px}
.te-footer{min-height:57px;display:flex;align-items:center;gap:8px;padding:8px 18px;border-top:1px solid #e7e1e9;background:#fcfbfd;flex-shrink:0;overflow-x:auto}.te-pages{display:flex;gap:5px;max-width:35%;overflow:auto}#easyEditTemplateWorkspace .te-pages button{padding:5px 10px;font-size:11px}#easyEditTemplateWorkspace .te-pages button[aria-current=true]{background:#fce6f1;border-color:#e8aac9;color:#b32669}.te-footer>button{font-size:11px!important}.te-zoom{margin-inline-start:auto;display:flex;align-items:center;gap:10px;flex-shrink:0}.te-zoom input{width:110px;accent-color:var(--te-pink)}.te-zoom output{font-size:11px;width:36px}
.te-elements{display:grid;grid-template-columns:1fr 1fr;gap:12px}.te-elements button{display:flex;align-items:center;flex-direction:column;gap:16px;padding:20px 5px!important;font-size:12px!important}.te-shape-square,.te-shape-circle{height:50px;width:50px;background:#e790b9;border-radius:4px}.te-shape-circle{border-radius:50%}.te-shape-line{width:54px;height:4px;margin:23px 0;background:#31252c}
#easyEditTemplateWorkspace .te-add-heading,#easyEditTemplateWorkspace .te-add-subheading,#easyEditTemplateWorkspace .te-add-body{display:block;width:100%;margin-bottom:12px;text-align:start;white-space:normal;padding:15px}.te-add-heading{font-size:24px!important;font-weight:700!important}.te-add-subheading{font-size:17px!important;font-weight:600!important}.te-field{display:grid;gap:8px;font-size:12px;margin-top:24px}.te-field textarea{width:100%;resize:vertical}.te-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.te-upload-grid img{width:100%;height:100px;object-fit:cover;border-radius:5px}.te-upload-grid button{padding:3px!important}
.te-layer-list{display:grid;gap:5px}.te-layer-list button{white-space:normal!important;text-align:start;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px!important}.te-layer-list button[aria-pressed=true]{border-color:#df75a8!important;background:#fff0f7!important}.te-layer-list small{font-size:9px;color:#9b788b}.te-layer-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:15px}.te-layer-actions button{font-size:11px!important}.te-recovery{padding:12px;background:#fff1f7;border:1px solid #edc6d9;border-radius:10px;margin-top:20px;font-size:12px}.te-recovery button{font-size:11px!important}
.te-notice{position:absolute;bottom:75px;left:50%;transform:translateX(-50%);max-width:85%;padding:12px 20px;background:#302630;color:#fff;border-radius:12px;box-shadow:0 6px 30px #34213822;font-size:13px;z-index:20}.te-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#easyEditTemplateWorkspace.te-panel-collapsed{grid-template-columns:76px 0 minmax(0,1fr)}.te-panel-collapsed .te-sidebar{display:none}body.template-editor-active{overflow:hidden!important}
@media(min-width:1500px){#easyEditTemplateWorkspace{grid-template-columns:82px 320px minmax(0,1fr)}.te-template-card img{height:171px}}
@media(max-width:1050px){.te-workspace-name,.te-save-status{display:none}.te-header{gap:10px;padding:0 15px}#easyEditTemplateWorkspace{grid-template-columns:66px 245px minmax(0,1fr)}.te-sidebar{padding:18px 14px}.te-template-card img{height:128px}.te-footer{padding:8px;gap:4px}.te-zoom input{width:70px}.te-footer>button{display:none}.te-stage{padding:20px}}
@media(max-width:700px){#easyEditTemplateWorkspace,#easyEditTemplateWorkspace.te-panel-collapsed{grid-template-columns:1fr;grid-template-rows:60px minmax(0,1fr) 65px}.te-header{padding:0 10px;gap:6px}.te-brand,.te-brand svg,.te-brand img{width:78px}.te-file summary{font-size:12px;padding:4px}.te-header .te-title{font-size:11px;min-width:40px;width:100%;padding:5px!important}.te-history button{font-size:20px!important;padding:0 4px!important}.te-download{font-size:11px!important;padding:9px!important}.te-rail{grid-column:1;grid-row:3;flex-direction:row;padding:0 5px;justify-content:space-around;border-top:1px solid var(--te-line);overflow:hidden}.te-rail button{min-width:60px;min-height:60px!important;gap:4px!important}.te-rail svg{width:20px;height:20px}.te-main{grid-column:1;grid-row:2}.te-sidebar{position:absolute;inset-inline-start:0;top:60px;bottom:65px;width:min(310px,85vw);box-shadow:15px 0 40px #35233d22;z-index:5}.te-toolbar{margin:10px 8px 0;max-width:calc(100% - 16px);align-self:flex-start;min-height:48px;padding:5px 8px}.te-stage{padding:22px 15px 30px}.te-footer{min-height:48px}.te-notice{bottom:125px}.te-template-card img{height:165px}}
@media(prefers-reduced-motion:reduce){#easyEditTemplateWorkspace *{transition:none!important}}

/* Position button and quick alignment */
.te-position-btn{display:flex;align-items:center;gap:6px;background:#fdf2f8!important;border:1px solid #f472b6!important;color:#db2777!important;font-weight:600!important;border-radius:8px!important;padding:5px 10px!important}
.te-position-btn:hover{background:#fce7f3!important;border-color:#ec4899!important}
.te-quick-align-group{display:flex;align-items:center;gap:3px;border-inline-start:1px solid var(--te-line);padding-inline-start:8px;margin-inline-start:4px}
.te-align-btn{border:1px solid transparent!important;background:transparent!important;padding:4px 6px!important;border-radius:6px!important;color:#6b7280!important;display:flex;align-items:center;justify-content:center}
.te-align-btn:hover{background:#f3f4f6!important;color:#111827!important;border-color:#e5e7eb!important}

/* Position Floating Panel */
.te-position-panel{position:absolute;top:80px;right:40px;width:300px;background:#ffffff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 12px 36px rgba(0,0,0,0.12),0 4px 12px rgba(0,0,0,0.06);padding:16px;z-index:25;display:flex;flex-direction:column;gap:14px;animation:teFadeIn 0.15s ease-out}
.te-position-panel.hidden{display:none!important}
@keyframes teFadeIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.te-pos-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f3f4f6;padding-bottom:10px}
.te-pos-title{font-size:14px;font-weight:700;color:#1f2937}
.te-pos-close{border:0!important;background:transparent!important;padding:2px 6px!important;font-size:14px;color:#9ca3af;border-radius:6px}
.te-pos-close:hover{color:#111827;background:#f3f4f6!important}
.te-pos-section{display:flex;flex-direction:column;gap:8px}
.te-pos-sub{font-size:11px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:0.5px}
.te-pos-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.te-pos-btn{display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px!important;font-size:11px!important;border:1px solid #e5e7eb!important;border-radius:8px!important;background:#ffffff!important;color:#374151!important}
.te-pos-btn:hover{background:#f9fafb!important;border-color:#d1d5db!important;color:#111827!important}
.te-pos-full-btn{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px!important;font-size:12px!important;font-weight:600!important;border:1px solid #e5e7eb!important;border-radius:8px!important;background:#f8fafc!important;color:#1e293b!important;width:100%}
.te-pos-full-btn:hover{background:#f1f5f9!important;border-color:#cbd5e1!important}
.te-pos-row{display:flex;gap:6px}
.te-pos-row .flex-1{flex:1}
.te-pos-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.te-pos-inputs label{display:flex;align-items:center;gap:6px;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:3px 8px}
.te-pos-inputs label span{font-size:11px;font-weight:700;color:#6b7280;min-width:14px}
.te-pos-inputs input{border:0!important;background:transparent!important;padding:4px 0!important;width:100%!important;font-size:12px;font-weight:600;text-align:right}
.te-pos-ratio-row{display:flex;align-items:center;margin-top:2px}
.te-ratio-toggle{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#4b5563;cursor:pointer}
.te-ratio-toggle input{cursor:pointer;accent-color:var(--te-pink)}

/* Download dropdown */
.te-download-dropdown{position:relative}
.te-download-dropdown summary{list-style:none;cursor:pointer}
.te-download-dropdown summary::-webkit-details-marker{display:none}
.te-download-menu{position:absolute;top:44px;right:0;width:240px;background:#ffffff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 12px 32px rgba(0,0,0,0.12);padding:6px;display:flex;flex-direction:column;gap:4px;z-index:30}
.te-download-menu button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px!important;border:0!important;border-radius:8px!important;background:transparent!important;width:100%;text-align:left}
.te-download-menu button:hover{background:#fce7f3!important}
.te-download-menu b{font-size:12px;color:#1f2937}
.te-download-menu small{font-size:10px;color:#6b7280}


/* ==================== RECENT TEMPLATES STYLES ==================== */
.te-recent-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.te-recent-topbar .te-muted {
  margin: 0;
  font-size: 11px;
}
#easyEditTemplateWorkspace .te-clear-recent-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
#easyEditTemplateWorkspace .te-clear-recent-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}
.te-recent-card {
  position: relative;
}
.te-recent-thumb-btn {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: start;
  cursor: pointer;
}
.te-recent-thumb-btn img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}
.te-recent-thumb-btn:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.te-recent-thumb-btn span {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.te-recent-thumb-btn small {
  font-size: 9px;
  color: #9ca3af;
}
.te-recent-del-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, transform 0.15s;
  z-index: 2;
}
.te-recent-card:hover .te-recent-del-btn {
  opacity: 1;
}
.te-recent-del-btn:hover {
  background: #ef4444;
  transform: scale(1.1);
}
.te-recent-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 15px;
  gap: 8px;
  color: #94a3b8;
}
.te-recent-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin: 0;
}
.te-recent-empty-desc {
  font-size: 11px;
  color: #94a3b8;
}

/* ==================== ADVANCED LAYERS STYLES ==================== */
.te-layers-header {
  margin-bottom: 12px;
}
.te-layer-global-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
#easyEditTemplateWorkspace .te-layer-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 42px;
}
#easyEditTemplateWorkspace .te-layer-action-btn:hover {
  background: #fdf2f8;
  border-color: #f472b6;
  color: #db2777;
  transform: translateY(-1px);
}
#easyEditTemplateWorkspace .te-layer-action-btn:active {
  transform: translateY(0);
}
.te-layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 290px);
  overflow-y: auto;
  padding-right: 2px;
}
.te-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.te-layer-row:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.te-layer-row.active {
  background: #fff0f7 !important;
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 1px #ec4899;
}
.te-layer-row.locked {
  opacity: 0.65;
  background: #f1f5f9;
}
.te-layer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.te-layer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.te-layer-badge.badge-text {
  background: #ede9fe;
  color: #7c3aed;
}
.te-layer-badge.badge-shape {
  background: #e0f2fe;
  color: #0284c7;
}
.te-layer-badge.badge-image {
  background: #fef3c7;
  color: #d97706;
}
.te-layer-name {
  font-size: 12px;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.te-layer-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.te-layer-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.te-layer-mini-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
}
.te-layer-mini-btn.del:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}
.te-layer-mini-btn.locked {
  color: #e11d48;
}

/* ==================== FONT DROPDOWN ENHANCEMENT ==================== */
#easyEditTemplateWorkspace #teFont {
  max-width: 200px;
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #fff;
  color: #1f2937;
  cursor: pointer;
}
#easyEditTemplateWorkspace #teFont optgroup {
  font-weight: 700;
  color: #db2777;
  background: #fff;
}
#easyEditTemplateWorkspace #teFont option {
  font-weight: normal;
  color: #1f2937;
  padding: 4px 6px;
}


/* ==================== RECENT TEMPLATES STYLES ==================== */
.te-recent-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.te-recent-topbar .te-muted {
  margin: 0;
  font-size: 11px;
}
#easyEditTemplateWorkspace .te-clear-recent-btn {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
#easyEditTemplateWorkspace .te-clear-recent-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}
.te-recent-card {
  position: relative;
}
.te-recent-thumb-btn {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: start;
  cursor: pointer;
}
.te-recent-thumb-btn img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}
.te-recent-thumb-btn:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.te-recent-thumb-btn span {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.te-recent-thumb-btn small {
  font-size: 9px;
  color: #9ca3af;
}
.te-recent-del-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, transform 0.15s;
  z-index: 2;
}
.te-recent-card:hover .te-recent-del-btn {
  opacity: 1;
}
.te-recent-del-btn:hover {
  background: #ef4444;
  transform: scale(1.1);
}
.te-recent-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 15px;
  gap: 8px;
  color: #94a3b8;
}
.te-recent-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin: 0;
}
.te-recent-empty-desc {
  font-size: 11px;
  color: #94a3b8;
}

/* ==================== ADVANCED LAYERS STYLES ==================== */
.te-layers-header {
  margin-bottom: 12px;
}
.te-layer-global-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 10px;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
#easyEditTemplateWorkspace .te-layer-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 42px;
}
#easyEditTemplateWorkspace .te-layer-action-btn:hover {
  background: #fdf2f8;
  border-color: #f472b6;
  color: #db2777;
  transform: translateY(-1px);
}
#easyEditTemplateWorkspace .te-layer-action-btn:active {
  transform: translateY(0);
}
.te-layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 290px);
  overflow-y: auto;
  padding-right: 2px;
}
.te-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.te-layer-row:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.te-layer-row.active {
  background: #fff0f7 !important;
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 1px #ec4899;
}
.te-layer-row.locked {
  opacity: 0.65;
  background: #f1f5f9;
}
.te-layer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.te-layer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.te-layer-badge.badge-text {
  background: #ede9fe;
  color: #7c3aed;
}
.te-layer-badge.badge-shape {
  background: #e0f2fe;
  color: #0284c7;
}
.te-layer-badge.badge-image {
  background: #fef3c7;
  color: #d97706;
}
.te-layer-name {
  font-size: 12px;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.te-layer-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.te-layer-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.te-layer-mini-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
}
.te-layer-mini-btn.del:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}
.te-layer-mini-btn.locked {
  color: #e11d48;
}

/* ==================== FONT DROPDOWN ENHANCEMENT ==================== */
#easyEditTemplateWorkspace #teFont {
  max-width: 200px;
  padding: 6px 8px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #fff;
  color: #1f2937;
  cursor: pointer;
}
#easyEditTemplateWorkspace #teFont optgroup {
  font-weight: 700;
  color: #db2777;
  background: #fff;
}
#easyEditTemplateWorkspace #teFont option {
  font-weight: normal;
  color: #1f2937;
  padding: 4px 6px;
}


/* ==================== ENHANCED REPLACE PHOTO / IMAGE CONTROL ==================== */
.te-replace-photo-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.16s ease !important;
}
.te-replace-photo-btn:hover {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}
.te-replace-photo-btn svg {
  flex-shrink: 0;
}
.te-layer-mini-btn.replace {
  font-size: 11px !important;
  color: #0284c7 !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  border-radius: 6px !important;
  padding: 2px 5px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.te-layer-mini-btn.replace:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Template Editor Theme Switch Button */
#btnTeThemeSwitch.te-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--te-line, #ece6ed);
  background: #ffffff;
  color: var(--te-ink, #27232b);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
#btnTeThemeSwitch.te-theme-switch:hover {
  background: #fff0f7;
  border-color: #ecb3cf;
}

/* Template Editor Dark Mode */
.theme-dark #easyEditTemplateWorkspace,
[data-theme="dark"] #easyEditTemplateWorkspace,
html.dark #easyEditTemplateWorkspace {
  background: #0f172a;
  color: #f8fafc;
  --te-ink: #f8fafc;
  --te-muted: #94a3b8;
  --te-line: #334155;
}

.theme-dark #easyEditTemplateWorkspace .te-header,
[data-theme="dark"] #easyEditTemplateWorkspace .te-header,
html.dark #easyEditTemplateWorkspace .te-header {
  background: #1e293b !important;
  border-bottom-color: #334155 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-title,
[data-theme="dark"] #easyEditTemplateWorkspace .te-title,
html.dark #easyEditTemplateWorkspace .te-title {
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-workspace-name,
[data-theme="dark"] #easyEditTemplateWorkspace .te-workspace-name,
html.dark #easyEditTemplateWorkspace .te-workspace-name {
  color: #f472b6 !important;
  border-inline-start-color: #334155 !important;
}

.theme-dark #easyEditTemplateWorkspace #btnTeThemeSwitch.te-theme-switch,
[data-theme="dark"] #easyEditTemplateWorkspace #btnTeThemeSwitch.te-theme-switch,
html.dark #easyEditTemplateWorkspace #btnTeThemeSwitch.te-theme-switch {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace #btnTeThemeSwitch.te-theme-switch:hover,
[data-theme="dark"] #easyEditTemplateWorkspace #btnTeThemeSwitch.te-theme-switch:hover,
html.dark #easyEditTemplateWorkspace #btnTeThemeSwitch.te-theme-switch:hover {
  background: #475569 !important;
  border-color: #64748b !important;
  color: #38bdf8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-rail,
[data-theme="dark"] #easyEditTemplateWorkspace .te-rail,
html.dark #easyEditTemplateWorkspace .te-rail {
  background: #1e293b !important;
  border-inline-end-color: #334155 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-rail button,
[data-theme="dark"] #easyEditTemplateWorkspace .te-rail button,
html.dark #easyEditTemplateWorkspace .te-rail button {
  color: #94a3b8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-rail button:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-rail button:hover,
html.dark #easyEditTemplateWorkspace .te-rail button:hover {
  color: #f8fafc !important;
  background: #334155 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-rail button[aria-pressed=true],
[data-theme="dark"] #easyEditTemplateWorkspace .te-rail button[aria-pressed=true],
html.dark #easyEditTemplateWorkspace .te-rail button[aria-pressed=true] {
  background: rgba(215, 45, 123, 0.25) !important;
  color: #f472b6 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-sidebar,
[data-theme="dark"] #easyEditTemplateWorkspace .te-sidebar,
html.dark #easyEditTemplateWorkspace .te-sidebar {
  background: #1e293b !important;
  border-inline-end-color: #334155 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-sidebar h2,
.theme-dark #easyEditTemplateWorkspace .te-intro,
[data-theme="dark"] #easyEditTemplateWorkspace .te-sidebar h2,
[data-theme="dark"] #easyEditTemplateWorkspace .te-intro,
html.dark #easyEditTemplateWorkspace .te-sidebar h2,
html.dark #easyEditTemplateWorkspace .te-intro {
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-muted,
[data-theme="dark"] #easyEditTemplateWorkspace .te-muted,
html.dark #easyEditTemplateWorkspace .te-muted {
  color: #94a3b8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-toolbar,
[data-theme="dark"] #easyEditTemplateWorkspace .te-toolbar,
html.dark #easyEditTemplateWorkspace .te-toolbar {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

.theme-dark #easyEditTemplateWorkspace .te-toolbar button,
[data-theme="dark"] #easyEditTemplateWorkspace .te-toolbar button,
html.dark #easyEditTemplateWorkspace .te-toolbar button {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-toolbar button:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-toolbar button:hover,
html.dark #easyEditTemplateWorkspace .te-toolbar button:hover {
  background: #475569 !important;
  color: #38bdf8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-footer,
[data-theme="dark"] #easyEditTemplateWorkspace .te-footer,
html.dark #easyEditTemplateWorkspace .te-footer {
  background: #1e293b !important;
  border-top-color: #334155 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace input:not([type=color]):not([type=range]),
.theme-dark #easyEditTemplateWorkspace select,
.theme-dark #easyEditTemplateWorkspace textarea,
[data-theme="dark"] #easyEditTemplateWorkspace input:not([type=color]):not([type=range]),
[data-theme="dark"] #easyEditTemplateWorkspace select,
[data-theme="dark"] #easyEditTemplateWorkspace textarea,
html.dark #easyEditTemplateWorkspace input:not([type=color]):not([type=range]),
html.dark #easyEditTemplateWorkspace select,
html.dark #easyEditTemplateWorkspace textarea {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-file-menu,
.theme-dark #easyEditTemplateWorkspace .te-download-menu,
.theme-dark #easyEditTemplateWorkspace .te-position-panel,
[data-theme="dark"] #easyEditTemplateWorkspace .te-file-menu,
[data-theme="dark"] #easyEditTemplateWorkspace .te-download-menu,
[data-theme="dark"] #easyEditTemplateWorkspace .te-position-panel,
html.dark #easyEditTemplateWorkspace .te-file-menu,
html.dark #easyEditTemplateWorkspace .te-download-menu,
html.dark #easyEditTemplateWorkspace .te-position-panel {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.theme-dark #easyEditTemplateWorkspace .te-download-menu button,
[data-theme="dark"] #easyEditTemplateWorkspace .te-download-menu button,
html.dark #easyEditTemplateWorkspace .te-download-menu button {
  background: transparent !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-download-menu button:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-download-menu button:hover,
html.dark #easyEditTemplateWorkspace .te-download-menu button:hover {
  background: #334155 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-download-menu small,
[data-theme="dark"] #easyEditTemplateWorkspace .te-download-menu small,
html.dark #easyEditTemplateWorkspace .te-download-menu small {
  color: #94a3b8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-pos-header,
[data-theme="dark"] #easyEditTemplateWorkspace .te-pos-header,
html.dark #easyEditTemplateWorkspace .te-pos-header {
  border-bottom-color: #334155 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-pos-title,
[data-theme="dark"] #easyEditTemplateWorkspace .te-pos-title,
html.dark #easyEditTemplateWorkspace .te-pos-title {
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-pos-close,
[data-theme="dark"] #easyEditTemplateWorkspace .te-pos-close,
html.dark #easyEditTemplateWorkspace .te-pos-close {
  color: #94a3b8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-template-card,
[data-theme="dark"] #easyEditTemplateWorkspace .te-template-card,
html.dark #easyEditTemplateWorkspace .te-template-card {
  background: transparent !important;
  border: 0 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-template-card span,
[data-theme="dark"] #easyEditTemplateWorkspace .te-template-card span,
html.dark #easyEditTemplateWorkspace .te-template-card span {
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-list button,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-list button,
html.dark #easyEditTemplateWorkspace .te-layer-list button {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-list button[aria-pressed=true],
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-list button[aria-pressed=true],
html.dark #easyEditTemplateWorkspace .te-layer-list button[aria-pressed=true] {
  background: rgba(215, 45, 123, 0.2) !important;
  border-color: #f472b6 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-list small,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-list small,
html.dark #easyEditTemplateWorkspace .te-layer-list small {
  color: #94a3b8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-stage,
[data-theme="dark"] #easyEditTemplateWorkspace .te-stage,
html.dark #easyEditTemplateWorkspace .te-stage {
  background: #0f172a !important;
}

/* STRICT CANVAS PROTECTION: Never recolor artwork, canvas document, template designs, or export pixels */
#easyEditTemplateWorkspace .te-paper,
#easyEditTemplateWorkspace #teCanvas,
.theme-dark #easyEditTemplateWorkspace .te-paper,
.theme-dark #easyEditTemplateWorkspace #teCanvas,
[data-theme="dark"] #easyEditTemplateWorkspace .te-paper,
[data-theme="dark"] #easyEditTemplateWorkspace #teCanvas,
html.dark #easyEditTemplateWorkspace .te-paper,
html.dark #easyEditTemplateWorkspace #teCanvas {
  /* Strictly protected */
}


/* =========================================================================
   EE-C04: TEMPLATE EDITOR LEFT SIDEBAR & TOOLBAR COMPREHENSIVE THEME RULES
   Dark & Light mode support for Elements, Text, Recent, Layers, Toolbar
   STRICT CANVAS PROTECTION: Never filter, color-shift or distort .te-paper or #teCanvas
   ========================================================================= */

/* Elements Panel Dark Mode */
.theme-dark #easyEditTemplateWorkspace .te-elements button,
[data-theme="dark"] #easyEditTemplateWorkspace .te-elements button,
html.dark #easyEditTemplateWorkspace .te-elements button {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.15s ease !important;
}

.theme-dark #easyEditTemplateWorkspace .te-elements button:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-elements button:hover,
html.dark #easyEditTemplateWorkspace .te-elements button:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #38bdf8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
}

.theme-dark #easyEditTemplateWorkspace .te-shape-line,
[data-theme="dark"] #easyEditTemplateWorkspace .te-shape-line,
html.dark #easyEditTemplateWorkspace .te-shape-line {
  background: #94a3b8 !important;
}

/* Text Panel Dark Mode */
.theme-dark #easyEditTemplateWorkspace .te-add-heading,
.theme-dark #easyEditTemplateWorkspace .te-add-subheading,
.theme-dark #easyEditTemplateWorkspace .te-add-body,
[data-theme="dark"] #easyEditTemplateWorkspace .te-add-heading,
[data-theme="dark"] #easyEditTemplateWorkspace .te-add-subheading,
[data-theme="dark"] #easyEditTemplateWorkspace .te-add-body,
html.dark #easyEditTemplateWorkspace .te-add-heading,
html.dark #easyEditTemplateWorkspace .te-add-subheading,
html.dark #easyEditTemplateWorkspace .te-add-body {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.15s ease !important;
}

.theme-dark #easyEditTemplateWorkspace .te-add-heading:hover,
.theme-dark #easyEditTemplateWorkspace .te-add-subheading:hover,
.theme-dark #easyEditTemplateWorkspace .te-add-body:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-add-heading:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-add-subheading:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-add-body:hover,
html.dark #easyEditTemplateWorkspace .te-add-heading:hover,
html.dark #easyEditTemplateWorkspace .te-add-subheading:hover,
html.dark #easyEditTemplateWorkspace .te-add-body:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #38bdf8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
}

/* Recent Projects Panel Dark Mode */
.theme-dark #easyEditTemplateWorkspace .te-recent-topbar,
[data-theme="dark"] #easyEditTemplateWorkspace .te-recent-topbar,
html.dark #easyEditTemplateWorkspace .te-recent-topbar {
  color: #cbd5e1 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-clear-recent-btn,
[data-theme="dark"] #easyEditTemplateWorkspace .te-clear-recent-btn,
html.dark #easyEditTemplateWorkspace .te-clear-recent-btn {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-clear-recent-btn:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-clear-recent-btn:hover,
html.dark #easyEditTemplateWorkspace .te-clear-recent-btn:hover {
  background: #334155 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-recent-empty,
[data-theme="dark"] #easyEditTemplateWorkspace .te-recent-empty,
html.dark #easyEditTemplateWorkspace .te-recent-empty {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-recent-empty-title,
[data-theme="dark"] #easyEditTemplateWorkspace .te-recent-empty-title,
html.dark #easyEditTemplateWorkspace .te-recent-empty-title {
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-recent-empty-desc,
[data-theme="dark"] #easyEditTemplateWorkspace .te-recent-empty-desc,
html.dark #easyEditTemplateWorkspace .te-recent-empty-desc {
  color: #94a3b8 !important;
}

/* Layers Panel Dark Mode */
.theme-dark #easyEditTemplateWorkspace .te-layer-global-actions,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-global-actions,
html.dark #easyEditTemplateWorkspace .te-layer-global-actions {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-action-btn,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-action-btn,
html.dark #easyEditTemplateWorkspace .te-layer-action-btn {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #cbd5e1 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-action-btn:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-action-btn:hover,
html.dark #easyEditTemplateWorkspace .te-layer-action-btn:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #38bdf8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-row,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-row,
html.dark #easyEditTemplateWorkspace .te-layer-row {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-row:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-row:hover,
html.dark #easyEditTemplateWorkspace .te-layer-row:hover {
  background: #273549 !important;
  border-color: #475569 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-row.active,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-row.active,
html.dark #easyEditTemplateWorkspace .te-layer-row.active {
  background: rgba(215, 45, 123, 0.25) !important;
  border-color: #f472b6 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-name,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-name,
html.dark #easyEditTemplateWorkspace .te-layer-name {
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-mini-btn,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-mini-btn,
html.dark #easyEditTemplateWorkspace .te-layer-mini-btn {
  color: #94a3b8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-layer-mini-btn:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-layer-mini-btn:hover,
html.dark #easyEditTemplateWorkspace .te-layer-mini-btn:hover {
  background: #334155 !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}

/* Toolbar Controls Dark Mode */
.theme-dark #easyEditTemplateWorkspace .te-selection-label,
[data-theme="dark"] #easyEditTemplateWorkspace .te-selection-label,
html.dark #easyEditTemplateWorkspace .te-selection-label {
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-object-control,
[data-theme="dark"] #easyEditTemplateWorkspace .te-object-control,
html.dark #easyEditTemplateWorkspace .te-object-control {
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-quick-align-group button,
[data-theme="dark"] #easyEditTemplateWorkspace .te-quick-align-group button,
html.dark #easyEditTemplateWorkspace .te-quick-align-group button {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-quick-align-group button:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-quick-align-group button:hover,
html.dark #easyEditTemplateWorkspace .te-quick-align-group button:hover {
  background: #475569 !important;
  color: #38bdf8 !important;
}

/* ==========================================================================
   EASYEDIT PROFESSIONAL TEMPLATE EDITOR TOOLS & CONTEXTUAL EXPANSION
   ========================================================================== */

.te-main {
  position: relative !important;
}

/* RIGHT-SIDE FLOATING MAIN TOOLS PANEL (8 PRIMARY TOOLS) */
.te-right-toolbar {
  position: absolute;
  right: 16px;
  top: 60px;
  width: 48px;
  background: #ffffff;
  border: 1px solid #e2d9e4;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(45, 30, 48, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 6px;
  z-index: 60;
  backdrop-filter: blur(8px);
}

.te-tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  border: 0 !important;
  background: transparent !important;
  color: #4b3d52 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.te-tool-btn:hover {
  background: #fdf2f7 !important;
  color: var(--te-pink, #d72d7b) !important;
  transform: scale(1.05);
}

.te-tool-btn.active {
  background: #fff0f7 !important;
  color: var(--te-pink, #d72d7b) !important;
  box-shadow: inset 0 0 0 1.5px var(--te-pink, #d72d7b);
}

/* SUBTOOL FLYOUT PANELS (OPEN STRICTLY TO THE LEFT OF THE MAIN TOOLS PANEL) */
.te-subpanel {
  position: absolute;
  right: 70px; /* STRICTLY TO THE LEFT OF THE 48px TOOLBAR (16px + 48px + 6px gap = 70px) */
  top: 60px;
  width: 310px;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #ecdce6;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(45, 25, 45, 0.18);
  z-index: 65;
  display: flex;
  flex-direction: column;
  animation: teSubmenuSlideLeft 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes teSubmenuSlideLeft {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.te-subpanel.hidden {
  display: none !important;
}

.te-subpanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1e8ee;
  background: #faf7f9;
  border-radius: 14px 14px 0 0;
}

.te-subpanel-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #27232b;
}

.te-subpanel-close {
  border: 0 !important;
  background: transparent !important;
  font-size: 14px;
  color: #766d7c;
  cursor: pointer;
  padding: 4px 8px !important;
}

.te-subpanel-close:hover {
  color: #d72d7b !important;
}

.te-subpanel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.te-subpanel-section h4 {
  margin: 0 0 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: #554a5c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* DRAWING SUBMENU */
.te-brush-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.te-brush-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 8px 4px !important;
  border: 1px solid #e5dbe3 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  font-size: 11px !important;
  cursor: pointer;
}

.te-brush-btn:hover {
  border-color: #d72d7b !important;
  background: #fff8fb !important;
}

.te-brush-btn.active {
  border-color: #d72d7b !important;
  background: #fff0f7 !important;
  color: #d72d7b !important;
  font-weight: 700;
}

.te-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.te-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50% !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  transition: transform 0.1s;
}

.te-swatch:hover, .te-swatch.active {
  transform: scale(1.2);
  outline: 2px solid #d72d7b;
  outline-offset: 1px;
}

.te-custom-swatch {
  display: inline-flex;
  cursor: pointer;
}

.te-slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 4px;
  color: #4b3d52;
}

.te-slider-row span {
  font-weight: 600;
  color: #d72d7b;
}

.te-draw-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.te-draw-actions button {
  flex: 1;
}

/* SHAPES LIBRARY */
.te-shape-category {
  margin-bottom: 8px;
}

.te-shape-category h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: #766d7c;
  margin: 0 0 6px 0;
  font-weight: 700;
}

.te-shapes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.te-shape-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 2px !important;
  border: 1px solid #ebe2ea !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  cursor: pointer;
  color: #44374a !important;
}

.te-shape-item:hover {
  border-color: #d72d7b !important;
  background: #fff8fb !important;
  color: #d72d7b !important;
  transform: translateY(-1px);
}

.te-shape-item svg {
  width: 28px;
  height: 28px;
}

.te-shape-item span {
  font-size: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* LINES SUBMENU */
.te-line-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.te-line-type-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 4px !important;
  border: 1px solid #e5dbe3 !important;
  border-radius: 8px !important;
  font-size: 11px !important;
}

.te-line-type-btn svg {
  width: 100%;
  height: 18px;
}

.te-line-type-btn.active {
  border-color: #d72d7b !important;
  background: #fff0f7 !important;
  color: #d72d7b !important;
}

.te-line-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.te-style-btn {
  font-size: 11px !important;
  padding: 6px !important;
}

.te-style-btn.active {
  border-color: #d72d7b !important;
  background: #fff0f7 !important;
  color: #d72d7b !important;
  font-weight: 700;
}

.te-arrow-options {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.te-arrow-options select {
  font-size: 11px;
  padding: 4px 6px;
}

/* STICKY NOTES SUBMENU */
.te-subpanel-intro {
  margin: 0;
  font-size: 12px;
  color: #645a6b;
}

.te-sticky-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.te-sticky-card {
  position: relative;
  height: 80px;
  border-radius: 6px 6px 0 6px !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s;
}

.te-sticky-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.te-sticky-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 16px 16px;
  border-color: transparent transparent #d1c7a3 transparent;
  filter: drop-shadow(-1px -1px 1px rgba(0,0,0,0.15));
}

.te-sticky-label {
  font-weight: 700;
  font-size: 13px;
  color: #27232b;
}

/* TEXT SUBMENU */
.te-text-add-btn {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  text-align: start;
  white-space: normal;
  border: 1px solid #ebdbe5 !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  cursor: pointer;
}

.te-text-add-btn:hover {
  border-color: #d72d7b !important;
  background: #fff8fb !important;
}

/* SIGNATURES SUBMENU */
.te-sig-actions {
  display: flex;
  gap: 8px;
}

.te-sig-actions button {
  flex: 1;
  font-size: 12px !important;
}

.te-saved-sig-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.te-sig-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border: 1px solid #e7dbe3;
  border-radius: 8px;
  background: #faf7f9;
  cursor: pointer;
}

.te-sig-item:hover {
  border-color: #d72d7b;
  background: #fff0f7;
}

.te-sig-preview {
  max-height: 36px;
  max-width: 180px;
  object-fit: contain;
}

.te-sig-del {
  border: 0 !important;
  background: transparent !important;
  color: #9c27b0;
  font-size: 14px;
  padding: 4px !important;
}

.te-sig-empty {
  font-size: 12px;
  color: #8c8192;
  text-align: center;
  padding: 16px 8px;
}

.te-privacy-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* TABLES SUBMENU */
.te-table-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #faf7f9;
  border-radius: 8px;
}

.te-table-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 24px);
  grid-template-rows: repeat(6, 24px);
  gap: 3px;
}

.te-picker-cell {
  width: 24px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}

.te-picker-cell.highlight {
  background: #fce7f3;
  border-color: #d72d7b;
}

.te-table-size-label {
  font-size: 12px;
  font-weight: 600;
  color: #4b3d52;
}

.te-table-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.te-table-presets button {
  padding: 6px 2px !important;
  font-size: 11px !important;
}

/* FLOATING OBJECT QUICK-ACTION BAR */
.te-quick-action-bar {
  position: absolute;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: #ffffff;
  border: 1px solid #dcd4df;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(35, 20, 40, 0.16);
  transform: translate(-50%, -100%);
  margin-top: -10px;
  pointer-events: auto;
}

.te-quick-action-bar.hidden {
  display: none !important;
}

.te-quick-btn {
  width: 28px;
  height: 28px;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 6px !important;
  color: #3b2d42 !important;
  cursor: pointer;
}

.te-quick-btn:hover {
  background: #fdf2f7 !important;
  color: #d72d7b !important;
}

.te-quick-more-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #e0d5e2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  padding: 4px;
  min-width: 140px;
  z-index: 75;
}

.te-quick-more-menu.hidden {
  display: none !important;
}

.te-quick-more-menu button {
  text-align: start !important;
  padding: 6px 10px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  cursor: pointer;
}

.te-quick-more-menu button:hover {
  background: #fff0f7 !important;
  color: #d72d7b !important;
}

/* IMAGE ADJUSTMENTS PANEL */
.te-image-adjust-panel {
  position: absolute;
  left: 20px;
  top: 60px;
  width: 300px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #ecdce6;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(45, 25, 45, 0.16);
  z-index: 65;
  display: flex;
  flex-direction: column;
}

.te-image-adjust-panel.hidden {
  display: none !important;
}

.te-adjust-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1e8ee;
  background: #faf7f9;
  border-radius: 12px 12px 0 0;
}

.te-adjust-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #27232b;
}

.te-adjust-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.te-adjust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.te-adjust-row label {
  width: 72px;
  font-weight: 500;
  color: #4b3d52;
}

.te-adjust-row input[type=range] {
  flex: 1;
  accent-color: #d72d7b;
}

.te-adj-val {
  width: 28px;
  text-align: end;
  font-weight: 600;
  color: #d72d7b;
}

.te-adjust-section h4 {
  font-size: 11px;
  margin: 8px 0 6px 0;
  text-transform: uppercase;
  color: #766d7c;
}

.te-filter-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.te-preset-btn {
  padding: 4px !important;
  font-size: 10px !important;
  border-radius: 6px !important;
}

.te-preset-btn.active {
  border-color: #d72d7b !important;
  background: #fff0f7 !important;
  color: #d72d7b !important;
  font-weight: 700;
}

.te-reset-adj {
  margin-top: 8px;
  font-size: 11px !important;
}

/* SIGNATURE MODAL */
.te-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  backdrop-filter: blur(4px);
}

.te-modal-backdrop.hidden {
  display: none !important;
}

.te-modal-box {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
  width: 500px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.te-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  background: #faf7f9;
}

.te-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.te-modal-close {
  border: 0 !important;
  background: transparent !important;
  font-size: 16px;
  cursor: pointer;
}

.te-modal-body {
  padding: 20px;
}

.te-modal-body p {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #555;
}

.te-sig-pad-wrap {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  touch-action: none;
}

#teSignaturePad {
  display: block;
  width: 100%;
  height: 200px;
  cursor: crosshair;
}

.te-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  background: #fcfbfd;
}

/* DARK THEME STYLING FOR NEW TOOLS & SUBPANELS */
.theme-dark .te-right-toolbar,
[data-theme="dark"] .te-right-toolbar,
html.dark .te-right-toolbar {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}

.theme-dark .te-tool-btn,
[data-theme="dark"] .te-tool-btn,
html.dark .te-tool-btn {
  color: #cbd5e1 !important;
}

.theme-dark .te-tool-btn:hover,
[data-theme="dark"] .te-tool-btn:hover,
html.dark .te-tool-btn:hover {
  background: #334155 !important;
  color: #f472b6 !important;
}

.theme-dark .te-tool-btn.active,
[data-theme="dark"] .te-tool-btn.active,
html.dark .te-tool-btn.active {
  background: #3b172a !important;
  color: #f472b6 !important;
  box-shadow: inset 0 0 0 1.5px #f472b6 !important;
}

.theme-dark .te-subpanel,
[data-theme="dark"] .te-subpanel,
html.dark .te-subpanel,
.theme-dark .te-image-adjust-panel,
[data-theme="dark"] .te-image-adjust-panel,
html.dark .te-image-adjust-panel {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 10px 32px rgba(0,0,0,0.5) !important;
  color: #f8fafc !important;
}

.theme-dark .te-subpanel-header,
[data-theme="dark"] .te-subpanel-header,
html.dark .te-subpanel-header,
.theme-dark .te-adjust-header,
[data-theme="dark"] .te-adjust-header,
html.dark .te-adjust-header {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.theme-dark .te-subpanel-header h3,
[data-theme="dark"] .te-subpanel-header h3,
html.dark .te-subpanel-header h3,
.theme-dark .te-adjust-header h3,
[data-theme="dark"] .te-adjust-header h3,
html.dark .te-adjust-header h3 {
  color: #f8fafc !important;
}

.theme-dark .te-shape-item,
[data-theme="dark"] .te-shape-item,
html.dark .te-shape-item,
.theme-dark .te-brush-btn,
[data-theme="dark"] .te-brush-btn,
html.dark .te-brush-btn,
.theme-dark .te-line-type-btn,
[data-theme="dark"] .te-line-type-btn,
html.dark .te-line-type-btn {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

.theme-dark .te-quick-action-bar,
[data-theme="dark"] .te-quick-action-bar,
html.dark .te-quick-action-bar {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5) !important;
}

.theme-dark .te-quick-btn,
[data-theme="dark"] .te-quick-btn,
html.dark .te-quick-btn {
  color: #cbd5e1 !important;
}

.theme-dark .te-quick-more-menu,
[data-theme="dark"] .te-quick-more-menu,
html.dark .te-quick-more-menu {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.theme-dark .te-modal-box,
[data-theme="dark"] .te-modal-box,
html.dark .te-modal-box {
  background: #1e293b !important;
  color: #f8fafc !important;
}

.theme-dark .te-modal-header,
[data-theme="dark"] .te-modal-header,
html.dark .te-modal-header {
  background: #0f172a !important;
  border-color: #334155 !important;
}

.theme-dark .te-modal-footer,
[data-theme="dark"] .te-modal-footer,
html.dark .te-modal-footer {
  background: #0f172a !important;
  border-color: #334155 !important;
}

/* DRAWING CUSTOM COLOR & PREVIEW */
.te-draw-custom-picker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--te-line);
  cursor: pointer;
  padding: 0;
  background: none;
}
.te-draw-preview-wrap {
  margin-top: 14px;
}
.te-draw-preview-box {
  height: 36px;
  background: var(--te-surface-alt, #1e293b);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}
#teDrawPreviewLine {
  width: 100%;
  height: 4px;
  background: #d72d7b;
  border-radius: 4px;
  transition: all 0.15s ease;
}

/* INLINE CELL EDITOR */
.te-inline-cell-input {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #d72d7b;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-family: inherit;
  font-size: 13px;
  padding: 2px 4px;
  box-sizing: border-box;
  text-align: center;
}


/* ==================== LEFT CONTEXTUAL EDITING TOOLBAR (VERTICAL) ==================== */
.te-left-toolbar {
  position: absolute;
  left: 16px;
  top: 24px;
  width: 54px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: none;
  background: #ffffff;
  border: 1px solid #e2d9e4;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(45, 30, 48, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 4px;
  z-index: 60;
  backdrop-filter: blur(8px);
}

.te-ctx-btn {
  width: 46px;
  min-height: 44px;
  border-radius: 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: #4b3d52 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 2px !important;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  text-decoration: none;
  font-family: inherit;
}

.te-ctx-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.te-ctx-btn span {
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 3px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.te-ctx-btn:hover {
  background: #fdf2f7 !important;
  color: var(--te-pink, #d72d7b) !important;
  transform: scale(1.04);
}

.te-ctx-btn.active {
  background: #fce6f1 !important;
  color: var(--te-pink, #d72d7b) !important;
}

.te-ctx-btn.active::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid var(--te-pink, #d72d7b);
}

/* ==================== RIGHT-OPENING FLYOUT SUBPANELS (.te-left-subpanel) ==================== */
.te-left-subpanel {
  position: absolute;
  left: 78px !important; /* STRICTLY RIGHT OF THE 54px LEFT TOOLBAR (16px + 54px + 8px gap) */
  right: auto !important;
  top: 24px;
  width: 290px;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #ecdce6;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(45, 25, 45, 0.18);
  z-index: 65;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.te-flyout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1e4ee;
  padding-bottom: 8px;
  margin-bottom: 2px;
}

.te-flyout-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: #2d1e30;
  margin: 0;
}

.te-flyout-close {
  background: transparent !important;
  border: 0 !important;
  color: #7f6474 !important;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 6px !important;
  border-radius: 6px;
}

.te-flyout-close:hover {
  background: #fdf2f7 !important;
  color: var(--te-pink, #d72d7b) !important;
}

.te-flyout-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.te-flyout-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #4b3d52;
}

.te-flyout-val {
  font-size: 11px;
  color: var(--te-pink, #d72d7b);
  font-weight: 700;
}

.te-flyout-swatch-row {
  flex-direction: row;
  align-items: center;
}

.te-flyout-swatch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #2d1e30;
  position: relative;
}

.te-flyout-swatch-label input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.te-flyout-swatch-preview {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d4c4d2;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.te-left-subpanel input[type="range"] {
  width: 100%;
  accent-color: var(--te-pink, #d72d7b);
  height: 6px;
  border-radius: 3px;
  background: #ecdce6;
  cursor: pointer;
}

.te-flyout-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ecdce6;
  background: #fdfafd;
  font-size: 13px;
  color: #2d1e30;
  cursor: pointer;
}

.te-flyout-select:focus {
  outline: none;
  border-color: var(--te-pink, #d72d7b);
  box-shadow: 0 0 0 2px rgba(215, 45, 123, 0.15);
}

.te-flyout-btns-row {
  flex-direction: row;
  gap: 8px;
}

.te-flyout-action-btn {
  flex: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #ecdce6 !important;
  background: #ffffff !important;
  color: #4b3d52 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.te-flyout-action-btn:hover {
  background: #fdf2f7 !important;
  border-color: var(--te-pink, #d72d7b) !important;
  color: var(--te-pink, #d72d7b) !important;
}

.te-flyout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.te-color-palette-label {
  font-size: 11px;
  font-weight: 700;
  color: #7f6474;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.te-color-palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.te-palette-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  cursor: pointer;
  padding: 0 !important;
  transition: transform 0.1s ease;
}

.te-palette-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.te-flyout-input-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #ecdce6;
  border-radius: 8px;
  overflow: hidden;
}

.te-stepper-btn {
  width: 34px;
  height: 34px;
  border: 0 !important;
  background: #f8f4f7 !important;
  color: #4b3d52 !important;
  font-size: 16px;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.te-stepper-btn:hover {
  background: #fce6f1 !important;
  color: var(--te-pink, #d72d7b) !important;
}

.te-flyout-input-stepper input {
  flex: 1;
  border: 0 !important;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px !important;
  background: #ffffff !important;
}

.te-format-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px !important;
  border: 1px solid #ecdce6 !important;
  background: #ffffff !important;
  color: #4b3d52 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.te-format-btn:hover {
  background: #fdf2f7 !important;
  color: var(--te-pink, #d72d7b) !important;
}

.te-format-btn[aria-pressed="true"], .te-format-btn.active {
  background: #fce6f1 !important;
  border-color: var(--te-pink, #d72d7b) !important;
  color: var(--te-pink, #d72d7b) !important;
}

.te-page-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Dark Theme Overrides for Left Toolbar and Left Subpanels */
.theme-dark #easyEditTemplateWorkspace .te-left-toolbar,
[data-theme="dark"] #easyEditTemplateWorkspace .te-left-toolbar,
html.dark #easyEditTemplateWorkspace .te-left-toolbar {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.theme-dark #easyEditTemplateWorkspace .te-ctx-btn,
[data-theme="dark"] #easyEditTemplateWorkspace .te-ctx-btn,
html.dark #easyEditTemplateWorkspace .te-ctx-btn {
  color: #cbd5e1 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-ctx-btn:hover,
[data-theme="dark"] #easyEditTemplateWorkspace .te-ctx-btn:hover,
html.dark #easyEditTemplateWorkspace .te-ctx-btn:hover {
  background: #334155 !important;
  color: #f472b6 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-ctx-btn.active,
[data-theme="dark"] #easyEditTemplateWorkspace .te-ctx-btn.active,
html.dark #easyEditTemplateWorkspace .te-ctx-btn.active {
  background: #831843 !important;
  color: #fbcfe8 !important;
}

.theme-dark #easyEditTemplateWorkspace .te-left-subpanel,
[data-theme="dark"] #easyEditTemplateWorkspace .te-left-subpanel,
html.dark #easyEditTemplateWorkspace .te-left-subpanel {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5) !important;
}

.theme-dark #easyEditTemplateWorkspace .te-flyout-header h3,
[data-theme="dark"] #easyEditTemplateWorkspace .te-flyout-header h3,
html.dark #easyEditTemplateWorkspace .te-flyout-header h3 {
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-flyout-select,
[data-theme="dark"] #easyEditTemplateWorkspace .te-flyout-select,
html.dark #easyEditTemplateWorkspace .te-flyout-select {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

.theme-dark #easyEditTemplateWorkspace .te-flyout-action-btn,
[data-theme="dark"] #easyEditTemplateWorkspace .te-flyout-action-btn,
html.dark #easyEditTemplateWorkspace .te-flyout-action-btn {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

@media (max-width: 700px) {
  .te-left-toolbar {
    left: 8px;
    top: 12px;
    width: 48px;
  }
  .te-left-subpanel {
    left: 60px !important;
    top: 12px;
    width: calc(100vw - 80px);
  }
}


.te-left-subpanel.hidden,
.te-ctx-btn.hidden,
.te-ctx-btn[hidden] {
  display: none !important;
}

/* Crop Action Bar & UI */
#teCropActionBar {
  position: absolute;
  z-index: 95;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  transform: translateX(-50%);
  white-space: nowrap;
}

#teCropActionBar.hidden {
  display: none !important;
}

.theme-dark #teCropActionBar,
[data-theme="dark"] #teCropActionBar,
html.dark #teCropActionBar {
  background: rgba(30, 41, 59, 0.96);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.theme-dark #teCropActionBar .te-btn-secondary,
[data-theme="dark"] #teCropActionBar .te-btn-secondary,
html.dark #teCropActionBar .te-btn-secondary {
  background: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}



/* ==================== PROFESSIONAL ELEMENTS LIBRARY ==================== */
.te-elements-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 12px;
  box-sizing: border-box;
}

.te-elements-search-wrap {
  margin-bottom: 12px;
  position: relative;
}

.te-elements-search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  gap: 8px;
  transition: all 0.15s ease;
}

.te-elements-search-box:focus-within {
  border-color: #ee529c;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(238, 82, 156, 0.12);
}

.te-elements-search-box svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.te-elements-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #0f172a;
  width: 100%;
}

.te-elements-clear-btn {
  border: none;
  background: #e2e8f0;
  color: #64748b;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.te-elements-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px 0;
}

.te-elements-section-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.te-elements-text-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
}

.te-elements-text-btn:hover {
  color: #ee529c;
}

/* 3-column x 2-row category cards */
.te-elements-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.te-element-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 84px;
  box-sizing: border-box;
}

.te-element-cat-card:hover {
  background: #ffffff;
  border-color: #ee529c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 82, 156, 0.12);
}

.te-cat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.te-cat-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
  line-height: 1.2;
}

.te-cat-card-sub {
  font-size: 10px;
  color: #64748b;
  line-height: 1;
}

/* Recent items list */
.te-elements-recent-sec {
  margin-bottom: 12px;
}

.te-elements-recent-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  scrollbar-width: thin;
}

.te-elements-recent-item {
  width: 52px;
  height: 52px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.te-elements-recent-item:hover {
  border-color: #ee529c;
  transform: scale(1.05);
}

.te-elements-recent-item svg,
.te-elements-recent-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Category drill-down view */
.te-elements-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.te-elements-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.te-elements-back-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.te-elements-cat-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.te-elements-count-badge {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Subcategory pills */
.te-elements-subcat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.te-elements-subcat-bar::-webkit-scrollbar {
  display: none;
}

.te-subcat-pill {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.te-subcat-pill:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.te-subcat-pill.active {
  background: #ee529c;
  border-color: #ee529c;
  color: #ffffff;
  font-weight: 600;
}

/* Items Grid */
.te-elements-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  padding-right: 2px;
  padding-bottom: 20px;
  scrollbar-width: thin;
}

.te-element-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 4px;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.te-element-item-card:hover {
  border-color: #ee529c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 82, 156, 0.15);
}

.te-element-item-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.te-element-item-thumb svg,
.te-element-item-thumb img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.te-element-item-card .te-element-item-title {
  display: none;
}

/* Dark mode support */
[data-theme="dark"] .te-elements-search-box,
html.dark .te-elements-search-box {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .te-elements-search-box input,
html.dark .te-elements-search-box input {
  color: #f8fafc;
}
[data-theme="dark"] .te-element-cat-card,
html.dark .te-element-cat-card {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .te-cat-card-title,
html.dark .te-cat-card-title {
  color: #f8fafc;
}
[data-theme="dark"] .te-elements-section-header h4,
html.dark .te-elements-section-header h4 {
  color: #f8fafc;
}
[data-theme="dark"] .te-subcat-pill,
html.dark .te-subcat-pill {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}
[data-theme="dark"] .te-subcat-pill.active,
html.dark .te-subcat-pill.active {
  background: #ee529c;
  border-color: #ee529c;
  color: #ffffff;
}
[data-theme="dark"] .te-element-item-card,
html.dark .te-element-item-card {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .te-elements-recent-item,
html.dark .te-elements-recent-item {
  background: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .te-elements-back-btn,
html.dark .te-elements-back-btn {
  background: #334155;
  color: #f8fafc;
}
[data-theme="dark"] .te-elements-cat-header-title,
html.dark .te-elements-cat-header-title {
  color: #f8fafc;
}


/* ==================== 3D DIRECT 360° ROTATION CONTROLLER ==================== */
.te-3d-rotate-btn {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  height: 34px;
  background: #ffffff;
  border: 1.5px solid #a855f7;
  color: #6d28d9;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: grab !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.18);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  z-index: 1000;
  user-select: none;
  touch-action: none;
  white-space: nowrap;
}
.te-3d-rotate-btn::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 14px;
  background: #ec4899;
}
.te-3d-rotate-btn:hover {
  background: #f5f3ff;
  color: #5b21b6;
  border-color: #7c3aed;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}
.te-3d-rotate-btn:active,
.te-3d-rotate-btn.dragging {
  cursor: grabbing !important;
  background: #7c3aed;
  color: #ffffff;
  border-color: #6d28d9;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}
.te-3d-rotate-btn svg {
  flex-shrink: 0;
  pointer-events: none;
}

/* ==================== INTERACTIVE EMPTY "+" UPLOAD CONTROLS ==================== */
.te-paper-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 15;
}

.te-empty-upload-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer !important;
  pointer-events: auto !important;
  color: #475569;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
  z-index: 20;
  padding: 0;
  margin: 0;
  outline: none;
  user-select: none;
}

.te-empty-upload-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
  border-color: #ec4899;
  color: #ec4899;
  background: #fff5f8;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.te-empty-upload-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.te-empty-upload-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ==================== IMAGE REPOSITIONING CONTROL BAR ==================== */
.te-image-reposition-bar {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  height: 36px;
  background: #ffffff;
  border: 1.5px solid #ec4899;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.22);
  z-index: 1000;
  user-select: none;
  white-space: nowrap;
  animation: teFadeInScale 0.15s ease-out;
}

@keyframes teFadeInScale {
  from { opacity: 0; transform: translateX(-50%) scale(0.92); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

.te-repo-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ec4899;
  padding-right: 6px;
  border-right: 1px solid #fce7f3;
}

.te-repo-field {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.te-repo-input {
  width: 54px;
  height: 26px;
  padding: 2px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  text-align: right;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.te-repo-input:focus {
  border-color: #ec4899;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.15);
}

.te-repo-unit {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.te-repo-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  user-select: none;
}

.te-repo-reset-btn {
  background: #f1f5f9;
  color: #475569;
}

.te-repo-reset-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.te-repo-done-btn {
  background: #ec4899;
  color: #ffffff;
}

.te-repo-done-btn:hover {
  background: #db2777;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

.te-3d-cancel-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}
.te-3d-cancel-btn:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}
.te-3d-apply-btn {
  background: #ee529c !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.te-3d-apply-btn:hover {
  background: #db2777 !important;
  box-shadow: 0 4px 12px rgba(238, 82, 156, 0.3) !important;
}

/* Subcategory Pills Horizontally Scrollable Bar (Attachment 2) */
.te-elements-subcat-bar {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 2px 8px 2px !important;
  margin-bottom: 8px !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
  flex-wrap: nowrap !important;
}
.te-subcat-pill {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
.te-subcat-pill.active {
  background: rgba(238, 82, 156, 0.08) !important;
  border-color: #ee529c !important;
  color: #ee529c !important;
  font-weight: 600 !important;
}

/* Recently Used Items Horizontally Scrollable Bar */
.te-elements-recent-list {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 4px 2px 8px 2px !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
  flex-wrap: nowrap !important;
}
.te-elements-recent-item {
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
}

/* 3-column Elements Grid (Attachment 2) */
.te-elements-items-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}
.te-element-item-card {
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
}
.te-element-item-card .te-element-item-title {
  display: none !important;
}

/* Dark mode for 360 controller */
.theme-dark .te-3d-rotate-btn,
[data-theme="dark"] .te-3d-rotate-btn,
html.dark .te-3d-rotate-btn {
  background: #1e293b !important;
  border-color: #a78bfa !important;
  color: #c4b5fd !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
}
.theme-dark .te-3d-rotate-btn:hover,
[data-theme="dark"] .te-3d-rotate-btn:hover,
html.dark .te-3d-rotate-btn:hover {
  background: #2e1065 !important;
  color: #ede9fe !important;
  border-color: #c4b5fd !important;
}

/* Dark mode for empty upload & reposition bar */
.theme-dark .te-empty-upload-btn,
[data-theme="dark"] .te-empty-upload-btn,
html.dark .te-empty-upload-btn {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}
.theme-dark .te-empty-upload-btn:hover,
[data-theme="dark"] .te-empty-upload-btn:hover,
html.dark .te-empty-upload-btn:hover {
  background: #2e1065 !important;
  border-color: #ec4899 !important;
  color: #f472b6 !important;
}
.theme-dark .te-image-reposition-bar,
[data-theme="dark"] .te-image-reposition-bar,
html.dark .te-image-reposition-bar {
  background: #1e293b !important;
  border-color: #ec4899 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
}
.theme-dark .te-repo-badge,
[data-theme="dark"] .te-repo-badge,
html.dark .te-repo-badge {
  border-right-color: #334155 !important;
  color: #f472b6 !important;
}
.theme-dark .te-repo-field,
[data-theme="dark"] .te-repo-field,
html.dark .te-repo-field {
  color: #cbd5e1 !important;
}
.theme-dark .te-repo-input,
[data-theme="dark"] .te-repo-input,
html.dark .te-repo-input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
.theme-dark .te-repo-reset-btn,
[data-theme="dark"] .te-repo-reset-btn,
html.dark .te-repo-reset-btn {
  background: #334155 !important;
  color: #cbd5e1 !important;
}
.theme-dark .te-repo-reset-btn:hover,
[data-theme="dark"] .te-repo-reset-btn:hover,
html.dark .te-repo-reset-btn:hover {
  background: #475569 !important;
  color: #f8fafc !important;
}

.te-drop-target-active {
  outline: 3px dashed #ec4899 !important;
  outline-offset: 4px !important;
}

#canvasViewport { min-width:0;min-height:0; }
#studioArtboardSurface { position:absolute;inset:0;pointer-events:none; }
.studio-board-preview { position:absolute;background:white;box-shadow:0 6px 20px #0002;pointer-events:auto; }
.studio-board-preview canvas { width:100%;height:100%;display:block; }
.studio-board-preview.is-active { outline:1px solid #ec4899;pointer-events:none; }
.studio-board-label { position:absolute;bottom:calc(100% + 6px);left:0;white-space:nowrap;border:0!important;background:transparent!important;color:var(--text-secondary,#697080)!important;padding:2px 0!important;font-size:11px!important;pointer-events:auto; }
.studio-board-preview.is-active .studio-board-label { color:#dc2779!important;font-weight:600; }
#canvasViewport #artboardStage { flex:none;border:0;box-shadow:none!important; }
.studio-scroll-horizontal,.studio-scroll-vertical { position:absolute;z-index:55;background:var(--bg-panel,#f5f1f4);scrollbar-color:#a9a0aa #eee9ef;scrollbar-width:auto; }
.studio-scroll-horizontal { bottom:0;left:0;right:16px;height:16px;overflow-x:scroll;overflow-y:hidden; }
.studio-scroll-horizontal>div { height:1px; }
.studio-scroll-vertical { right:0;top:0;bottom:16px;width:16px;overflow-y:scroll;overflow-x:hidden; }
.studio-scroll-vertical>div { width:1px; }
.studio-board-controls { position:absolute;z-index:40;left:50%;transform:translateX(-50%);bottom:26px;display:flex;align-items:center;gap:4px;padding:5px 7px;border-radius:8px;background:var(--bg-panel,#fff);box-shadow:0 3px 14px rgba(0,0,0,0.12),0 1px 3px rgba(0,0,0,0.08);border:1px solid var(--border-color,#ebdce4);max-width:95%;cursor:grab;user-select:none;touch-action:none;transition:box-shadow 0.15s ease; }
.studio-board-controls.is-dragging { cursor:grabbing!important;box-shadow:0 12px 28px rgba(0,0,0,0.22),0 2px 6px rgba(0,0,0,0.1)!important;opacity:0.96; }
.studio-board-controls-drag-handle { display:flex;align-items:center;justify-content:center;padding:3px 5px;cursor:grab;color:var(--text-muted,#9ca3af);border-radius:4px;user-select:none; }
.studio-board-controls-drag-handle:hover { color:var(--ee-accent,#38bdf8);background:rgba(56,189,248,0.12); }
.studio-board-controls.is-dragging .studio-board-controls-drag-handle { cursor:grabbing!important;color:var(--ee-accent,#38bdf8); }
.studio-board-controls button,.studio-board-controls select { font-size:11px;padding:5px 7px;border:1px solid #ebdce4;background:var(--bg-panel,#fff);color:var(--text-primary,#252028);border-radius:5px;white-space:nowrap; }
#pasteboardArtboardsDock { display:none!important; }
#pro-panel.ee-dock-details { margin:0;padding:10px;border-bottom:1px solid var(--border-color,#eadce5); }
#pro-panel.ee-dock-details>summary { font-weight:600;padding:8px; }
@media(max-width:700px){.studio-board-controls{left:8px;transform:none;bottom:48px}.studio-board-controls button,.studio-board-controls select{font-size:10px;padding:4px}.studio-board-label{max-width:160px;overflow:hidden;text-overflow:ellipsis}}
#canvasViewport .hud-bottom-left,#canvasViewport .hud-bottom-right { bottom:22px!important; }
#canvasViewport .hud-bottom-right { right:24px; }
#canvasViewport .studio-board-controls { bottom:58px; }
@media(max-width:900px){#canvasViewport .hud-bottom-right { display:none; }}

#studioSelectionOverlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:24}#artboardStage canvas{image-rendering:-webkit-optimize-contrast;image-rendering:pixelated}

#studioAlignPanel{flex:none;order:-1;border-bottom:1px solid var(--border-color,#ded5df)}#legacyAlignToArtboardBlock,#legacyAlignToArtboardTitle,#inspectorVectorPane button[data-align],#inspectorVectorPane>div:has(button[data-align]),details.ee-property-details:has([data-align]),details.ee-property-details:has(#legacyAlignToArtboardTitle){display:none!important}

.studio-align-body{padding:10px 12px 14px}.studio-align-body>label{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:8px}.studio-align-body select{max-width:150px;background:var(--bg-panel);color:inherit;border:1px solid var(--border-color,#ddd);border-radius:4px;padding:4px}

.studio-align-label{font-size:11px;color:var(--text-secondary);margin:12px 0 6px}.studio-align-icons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.studio-align-icons button{display:flex;align-items:center;justify-content:center;height:32px;padding:4px!important;background:transparent!important;border:1px solid transparent!important;border-radius:4px;color:inherit!important}.studio-align-icons button:hover:not(:disabled){background:var(--ee-accent-soft,#fce7f3)!important;border-color:#ee93bd!important}.studio-align-icons button:disabled{opacity:.3;cursor:default}.studio-clip-action{margin-top:12px;width:100%;font-size:11px;padding:6px}

.layer-row{position:relative;min-height:43px;padding-top:5px!important;padding-bottom:6px!important}.studio-layer-thumb{width:32px;height:32px;flex:none;border:1px solid #a39aa6;border-radius:2px;background:repeating-conic-gradient(#d8d5dc 0 25%,#fff 0 50%) 0/8px 8px}.studio-clip-arrow{font-size:17px;width:10px;color:var(--text-secondary);flex:none}.studio-clip-base .layer-name-label{text-decoration:underline;text-underline-offset:3px}.studio-clipped-layer .studio-layer-thumb{margin-left:2px}.studio-clip-seam{position:absolute!important;bottom:-4px;left:22px;right:3px;width:calc(100% - 25px);height:8px!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;z-index:4;opacity:0;cursor:default}.studio-alt-clip .studio-clip-seam:hover,.studio-clip-seam:focus-visible{opacity:1;background:#ec489944!important;outline:1px solid #ec4899;cursor:copy}.studio-alt-clip .studio-clip-seam:hover::after{content:'↳';position:absolute;left:40%;top:-12px;border-radius:3px;background:var(--bg-panel,#fff);color:#d92a80;padding:0 4px;font-size:18px}

/* Header Modernization: Remove EP/EV badges and apply Sleek Capsule (Pill) Shape */

#brandBadgePs,#brandBadgeAi,.brand-badge{display:none!important}

body #eeStudioHeader .ee-studio-mode,body .mode-switch-track{border-radius:9999px!important;padding:3px 4px!important;background:var(--ee-raised,#f3f4f7)!important;border:1px solid var(--ee-border,#dbe2ea)!important;display:inline-flex!important;align-items:center!important;gap:2px!important;box-shadow:none!important}

body #eeStudioHeader .mode-btn{border-radius:9999px!important;padding:5px 14px!important;min-height:28px!important;font-size:11.5px!important;font-weight:600!important;border:0!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;gap:6px!important;background:transparent!important;color:var(--ee-copy,#475569)!important;cursor:pointer!important;transition:all .18s cubic-bezier(0.16,1,0.3,1)!important}

body #eeStudioHeader .mode-btn>span:first-child{display:inline-block!important;width:6px!important;height:6px!important;border-radius:50%!important;flex-shrink:0!important}

body #eeStudioHeader :is(.mode-btn.active-ps,.mode-btn.active-ai,.mode-btn.active){border-radius:9999px!important;background:#ffffff!important;box-shadow:0 1px 4px rgba(0,0,0,0.12),0 0 1px rgba(0,0,0,0.08)!important}

body:not(.theme-light) #eeStudioHeader :is(.mode-btn.active-ps,.mode-btn.active-ai,.mode-btn.active){background:var(--ee-surface,#1e293b)!important;box-shadow:0 1px 4px rgba(0,0,0,0.35)!important}

body #eeStudioHeader .mode-btn.active-ps{color:#0284c7!important}

body:not(.theme-light) #eeStudioHeader .mode-btn.active-ps{color:#38bdf8!important}

body #eeStudioHeader .mode-btn.active-ai{color:#ea580c!important}

body:not(.theme-light) #eeStudioHeader .mode-btn.active-ai{color:#fb923c!important}



body #eeStudioHeader #eeLanguage-studio,body .ee-language-switch{border-radius:9999px!important;padding:3px 4px!important;background:var(--ee-raised,#f3f4f7)!important;border:1px solid var(--ee-border,#dbe2ea)!important;display:inline-flex!important;align-items:center!important;gap:2px!important;box-shadow:none!important}

body #eeStudioHeader #eeLanguage-studio>button,body .ee-language-switch>button{border-radius:9999px!important;padding:5px 14px!important;min-height:28px!important;font-size:11.5px!important;font-weight:600!important;border:0!important;box-shadow:none!important;cursor:pointer!important;transition:all .18s cubic-bezier(0.16,1,0.3,1)!important}

body #eeStudioHeader #eeLanguage-studio>button[aria-pressed=true],body .ee-language-switch>button[aria-pressed=true]{border-radius:9999px!important;color:#ffffff!important;background:var(--ee-accent,#ae3e70)!important;box-shadow:0 1px 4px rgba(0,0,0,0.15)!important}

body .ee-language-caption{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding-inline:4px!important;color:var(--ee-copy,#64748b)!important}



body #eeStudioHeader :is(.ee-import-action,.ee-export-action,.studio-import-button){border-radius:9999px!important;min-height:34px!important;padding:6px 16px!important;font-size:12px!important;font-weight:600!important;display:inline-flex!important;align-items:center!important;gap:7px!important;transition:all .18s cubic-bezier(0.16,1,0.3,1)!important}

body #eeStudioHeader .ee-import-action{background:var(--ee-surface,#ffffff)!important;border:1px solid var(--ee-border,#dbe2ea)!important;color:var(--ee-heading,#0f172a)!important}

body #eeStudioHeader .ee-import-action:hover{background:var(--ee-raised,#f3f4f7)!important;border-color:var(--ee-accent,#ae3e70)!important}

body #eeStudioHeader .ee-export-action{background:#1e1e24!important;color:#ffffff!important;border:1px solid #1e1e24!important;padding:6px 18px!important}

body #eeStudioHeader .ee-export-action:hover{opacity:.92!important;box-shadow:0 2px 8px rgba(0,0,0,0.18)!important}

body:not(.theme-light) #eeStudioHeader .ee-export-action{background:#f6f6f8!important;color:#1e1e24!important;border-color:#f6f6f8!important}



body #eeStudioHeader .ee-icon-button{border-radius:9999px!important;width:32px!important;height:32px!important;min-width:32px!important;padding:4px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;transition:all .18s cubic-bezier(0.16,1,0.3,1)!important}

body #eeStudioHeader .ee-icon-button:hover{background:var(--ee-raised,#f3f4f7)!important;border-color:var(--ee-border,#dbe2ea)!important;color:var(--ee-heading,#0f172a)!important}



body #eeStudioHeader .menu-trigger{border-radius:9999px!important;min-height:28px!important;padding:5px 11px!important;font-size:12px!important;font-weight:500!important;transition:all .15s cubic-bezier(0.16,1,0.3,1)!important}

body #eeStudioHeader :is(.menu-trigger:hover,.menu-group.open .menu-trigger){border-radius:9999px!important}

/* Mode-based Toolbar Filtering: strictly isolate Vector and Photo tools */

body.mode-photo #toolsGrid :is([data-group-id="grp-curve"], [data-engine="ai"], [data-tool="vector-brush"], [data-tool="knife"], [data-tool="scissors"], [data-tool="pathfinder"], [data-tool="flare"]) {

  display: none !important;

}



body.mode-vector #toolsGrid :is([data-group-id="grp-marquee"], [data-group-id="grp-lasso"], [data-group-id="grp-wand"], [data-group-id="grp-brush"], [data-group-id="grp-retouch"], [data-group-id="grp-fill"], [data-engine="ps"], [data-tool="marquee-rect"], [data-tool="marquee-ellipse"], [data-tool="lasso"], [data-tool="wand"], [data-tool="brush"], [data-tool="pencil"], [data-tool="clone"], [data-tool="heal"], [data-tool="dodge"], [data-tool="bucket"], [data-tool="gradient"]) {

  display: none !important;

}



/* Tool Flyout subtool filtering */

body.mode-photo #toolFlyoutList [data-flyout-engine="ai"],

body.mode-vector #toolFlyoutList [data-flyout-engine="ps"] {

  display: none !important;

}

/* New Document / Artboard Units Modal Enhancements */

#modalNewDoc select {

  background: var(--ee-raised, #1f1f27);

  color: var(--ee-heading, #fff);

  border: 1px solid var(--border-color, #3a3a46);

  border-radius: 6px;

  padding: 6px 8px;

  font-size: 11.5px;

  font-weight: 600;

  transition: border-color 0.15s ease;

}

body.theme-light #modalNewDoc select {

  background: #ffffff !important;

  color: #1e293b !important;

  border-color: #cbd5e1 !important;

}

#modalNewDoc select:focus-visible {

  outline: 2px solid var(--ee-accent, #4f46e5);

  border-color: var(--ee-accent, #4f46e5);

}

.ee-doc-calc-badge {

  background: var(--ee-raised, rgba(79,70,229,0.06));

  border: 1px solid var(--ee-border, #3a3a46);

  border-radius: 6px;

}

body.theme-light .ee-doc-calc-badge {

  background: #f1f5f9 !important;

  border-color: #e2e8f0 !important;

}

#rulerOriginCorner {

  user-select: none;

  font-weight: 800;

  font-size: 10px;

  color: var(--ee-accent-text, #38bdf8);

  transition: all 0.15s ease;

}

#rulerOriginCorner:hover {

  background: var(--ee-accent-soft, rgba(56,189,248,0.2)) !important;

  color: #ffffff;

}

/* ==========================================================================

   ADOBE ILLUSTRATOR-STYLE OUTLINE / WIREFRAME MODE (Ctrl + Y)

   ========================================================================== */

body.studio-outline-mode #mainCanvas {

  background: #ffffff !important;

  box-shadow: 0 0 0 1px #000000, 0 12px 30px -6px rgba(0, 0, 0, 0.35) !important;

}



body.studio-outline-mode .artboard-stage {

  background: #ffffff !important;

}



.studio-outline-pill {

  position: absolute;

  top: 14px;

  left: 50%;

  transform: translateX(-50%);

  z-index: 45;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: #09090b;

  color: #f8fafc;

  padding: 6px 14px;

  border-radius: 9999px;

  border: 1.5px solid #27272a;

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.05em;

  cursor: pointer;

  user-select: none;

  pointer-events: auto;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}



.studio-outline-pill:hover {

  background: #18181b;

  border-color: #38bdf8;

  transform: translateX(-50%) scale(1.04);

}



.studio-outline-pill .outline-dot {

  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: #38bdf8;

  box-shadow: 0 0 8px #38bdf8;

  animation: studioOutlinePulse 1.8s infinite ease-in-out;

}



@keyframes studioOutlinePulse {

  0%, 100% { opacity: 1; transform: scale(1); }

  50% { opacity: 0.4; transform: scale(0.85); }

}



.studio-outline-pill .outline-shortcut {

  background: #27272a;

  padding: 2px 6px;

  border-radius: 4px;

  font-size: 10px;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  color: #94a3b8;

}



.studio-outline-pill.hidden {

  display: none !important;

}

/* ==========================================================================

   OFFICIAL ADOBE PHOTOSHOP FILE MENU & FLYOUT SUBMENUS

   ========================================================================== */

#menuFile-panel.menu-dropdown {

  width: 290px !important;

  min-width: 280px !important;

  max-width: 320px !important;

  padding: 4px 0 !important;

  border-radius: 6px !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  user-select: none;

}



body.theme-light #menuFile-panel.menu-dropdown,

body.theme-light .ps-submenu-flyout {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}



.ps-menu-item {

  width: 100% !important;

  display: flex !important;

  align-items: center !important;

  justify-content: space-between !important;

  padding: 5px 12px 5px 20px !important;

  background: transparent !important;

  border: none !important;

  color: var(--text-main, #f1f5f9) !important;

  font-size: 11.5px !important;

  font-weight: 500 !important;

  line-height: 1.4 !important;

  text-align: left !important;

  cursor: pointer !important;

  transition: background 0.08s ease, color 0.08s ease !important;

  box-sizing: border-box !important;

}



body.theme-light .ps-menu-item {

  color: #1e293b !important;

}



.ps-menu-item:hover:not(.ps-disabled),

.ps-menu-item.ps-active:not(.ps-disabled) {

  background: #0078d4 !important; /* Photoshop selection blue */

  color: #ffffff !important;

}



.ps-menu-item:hover:not(.ps-disabled) .ps-menu-shortcut,

.ps-menu-item:hover:not(.ps-disabled) .ps-submenu-arrow,

.ps-menu-item.ps-active:not(.ps-disabled) .ps-menu-shortcut,

.ps-menu-item.ps-active:not(.ps-disabled) .ps-submenu-arrow {

  color: #ffffff !important;

  opacity: 1 !important;

}



.ps-menu-label {

  flex: 1 1 auto;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}



.ps-menu-shortcut {

  flex: 0 0 auto;

  margin-left: 20px;

  font-size: 10.5px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  color: var(--text-muted, #94a3b8);

  letter-spacing: 0.02em;

}



.ps-submenu-arrow {

  flex: 0 0 auto;

  margin-left: 12px;

  font-size: 9px;

  color: var(--text-muted, #94a3b8);

}



.ps-menu-divider {

  height: 1px;

  background: var(--border-color, rgba(255, 255, 255, 0.12));

  margin: 4px 8px;

}



body.theme-light .ps-menu-divider {

  background: #e2e8f0;

}



.ps-disabled {

  opacity: 0.42 !important;

  cursor: default !important;

  pointer-events: none !important;

}



/* Flyout Submenus */

.ps-submenu-flyout {

  position: fixed;

  z-index: 1050;

  display: none;

  min-width: 230px;

  max-width: 320px;

  max-height: calc(100vh - 16px);

  overflow-y: auto;

  overflow-x: hidden;

  scrollbar-width: thin;

  padding: 4px 0;

  border-radius: 6px;

  background: var(--ee-surface, #232328);

  border: 1px solid var(--ee-border, #3a3a46);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25);

  user-select: none;

  box-sizing: border-box;

}

.ps-submenu-flyout::-webkit-scrollbar {

  width: 6px;

}

.ps-submenu-flyout::-webkit-scrollbar-track {

  background: transparent;

}

.ps-submenu-flyout::-webkit-scrollbar-thumb {

  background: #3f3f46;

  border-radius: 3px;

}



.ps-submenu-flyout.is-open,

.ps-submenu-flyout.visible,

.ps-submenu-flyout[data-visible="true"] {

  display: block !important;

  visibility: visible !important;

  opacity: 1 !important;

  pointer-events: auto !important;

}



body.theme-light .ps-submenu-flyout {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08) !important;

  color: #0f172a !important;

}

body.theme-light .ps-submenu-flyout .ps-menu-item {

  color: #1e293b !important;

}

body.theme-light .ps-submenu-flyout .ps-menu-item:hover {

  background: #f1f5f9 !important;

  color: #0284c7 !important;

}

body.theme-light .ps-submenu-flyout .ps-menu-divider {

  background: #e2e8f0 !important;

}

body.theme-light .ps-submenu-flyout .ps-menu-header-label {

  color: #64748b !important;

}



/* Elimination of backdrop dimming and blur across all studio floating dialogs */

.ps-modal-backdrop.hidden,

.ps-modal-backdrop[hidden],

.modal-backdrop.hidden,

.modal-backdrop[hidden],

#modalPhotoshopCurves.hidden,

#modalPhotoshopCurves[hidden],

#modalPhotoshopLevels.hidden,

#modalPhotoshopLevels[hidden],

#modalPhotoshopHueSaturation.hidden,

#modalPhotoshopHueSaturation[hidden],

#modalPhotoshopColorBalance.hidden,

#modalPhotoshopColorBalance[hidden],

#modalPhotoshopExposure.hidden,

#modalPhotoshopExposure[hidden],

#modalLayerStyle.hidden,

#modalLayerStyle[hidden],

#modalQuickExport.hidden,

#modalQuickExport[hidden],

#modalExportHub.hidden,

#modalExportHub[hidden] {

  display: none !important;

}



#modalLayerStyle,

#modalQuickExport {

  position: fixed !important;

  inset: 0 !important;

  z-index: 99999 !important;

  background: transparent !important;

  backdrop-filter: none !important;

  -webkit-backdrop-filter: none !important;

  box-shadow: none !important;

  pointer-events: none !important;

}



.ps-modal-backdrop > *,

.modal-backdrop > *,

.ps-dialog-box,

.ps-modal-box,

#psLayerStyleDialogBox,

#modalLayerStyle > * {

  pointer-events: auto !important;

}



/* Light Mode Overrides for Photoshop Dialogs & Right Dock */

body.theme-light .ps-dialog-box,

body.theme-light #psLayerStyleDialogBox {

  background: #ffffff !important;

  color: #0f172a !important;

  border: 1px solid #cbd5e1 !important;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16) !important;

}



body.theme-light .ps-dialog-header,

body.theme-light #fxModalTitleBar {

  background: #f8fafc !important;

  color: #0f172a !important;

  border-bottom: 1px solid #e2e8f0 !important;

}



body.theme-light .ps-dialog-body {

  background: #ffffff !important;

  color: #0f172a !important;

}



body.theme-light .ps-dialog-footer {

  background: #f8fafc !important;

  border-top: 1px solid #e2e8f0 !important;

}



body.theme-light .ps-dialog-input,

body.theme-light .ps-dialog-box input:not([type="checkbox"]):not([type="radio"]),

body.theme-light .ps-dialog-box select {

  background: #ffffff !important;

  color: #0f172a !important;

  border: 1px solid #cbd5e1 !important;

}



body.theme-light .right-dock,

body.theme-light #psRightDockContainer,

body.theme-light .ps-dock-container {

  background-color: #ffffff !important;

  color: #0f172a !important;

  border-left: 1px solid #e2e8f0 !important;

}

body.theme-light #psRightDockDrawer,

body.theme-light .ps-dock-drawer {

  background-color: #f8fafc !important;

  border-right: 1px solid #e2e8f0 !important;

}

body.theme-light #psSlimIconStrip,

body.theme-light .ps-slim-icon-strip {

  background-color: #f1f5f9 !important;

  border-left: 1px solid #e2e8f0 !important;

}

body.theme-light .ps-slim-btn {

  color: #475569 !important;

}

body.theme-light .ps-slim-btn:hover {

  background: #e2e8f0 !important;

  color: #0284c7 !important;

}

body.theme-light #psDockTier1,

body.theme-light #psDockTier2,

body.theme-light #psDockTier3,

body.theme-light .ps-dock-tier {

  border-bottom: 1px solid #e2e8f0 !important;

}

body.theme-light .ps-dock-tabs {

  background-color: #f8fafc !important;

  border-bottom: 1px solid #e2e8f0 !important;

}

body.theme-light .ps-tab-btn {

  background: transparent !important;

  color: #64748b !important;

  border-top: 2px solid transparent !important;

}

body.theme-light .ps-tab-btn:hover {

  color: #0f172a !important;

}

body.theme-light .ps-tab-btn.active {

  background: #ffffff !important;

  color: #0284c7 !important;

  border-top: 2px solid #0284c7 !important;

}

body.theme-light #psTier1Content,

body.theme-light #psTier2Content,

body.theme-light #psTier3Content,

body.theme-light #psLayersStackList,

body.theme-light #psChannelsList,

body.theme-light #psPathsList {

  background-color: #ffffff !important;

}



.ps-modal-box {

  width: 520px;

  max-width: 90vw;

  background: var(--ee-surface, #1e1e24);

  color: var(--text-main, #ffffff);

  border: 1px solid var(--ee-border, #3a3a46);

  border-radius: 8px;

  box-shadow: 0 16px 40px rgba(0,0,0,0.6);

  display: flex;

  flex-direction: column;

  overflow: hidden;

}



body.theme-light .ps-modal-box {

  background: #ffffff;

  color: #0f172a;

  border-color: #cbd5e1;

}



.ps-modal-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 12px 18px;

  border-bottom: 1px solid var(--ee-border, #3a3a46);

  font-weight: 700;

  font-size: 14px;

}



body.theme-light .ps-modal-header {

  border-color: #e2e8f0;

}



.ps-modal-body {

  padding: 16px 20px;

  display: flex;

  flex-direction: column;

  gap: 12px;

  font-size: 12px;

}



.ps-modal-row {

  display: grid;

  grid-template-columns: 140px 1fr;

  align-items: center;

  gap: 12px;

}



.ps-modal-row label {

  font-weight: 600;

  color: var(--text-muted, #94a3b8);

}



.ps-modal-row input, .ps-modal-row span {

  font-size: 12px;

}



.ps-modal-row input {

  padding: 5px 8px;

  border-radius: 4px;

  border: 1px solid var(--ee-border, #3a3a46);

  background: var(--ee-raised, #272730);

  color: var(--text-main, #fff);

}



body.theme-light .ps-modal-row input {

  background: #f8fafc;

  border-color: #cbd5e1;

  color: #0f172a;

}



.ps-modal-footer {

  display: flex;

  justify-content: flex-end;

  gap: 10px;

  padding: 12px 18px;

  border-top: 1px solid var(--ee-border, #3a3a46);

  background: var(--ee-raised, rgba(0,0,0,0.1));

}



body.theme-light .ps-modal-footer {

  border-color: #e2e8f0;

  background: #f8fafc;

}



.ps-modal-footer button {

  padding: 6px 16px;

  border-radius: 5px;

  font-size: 12px;

  font-weight: 600;

  cursor: pointer;

}

/* ==========================================================================

   OFFICIAL ADOBE PHOTOSHOP EDIT MENU & PREFERENCES DIALOG

   ========================================================================== */

#menuEdit-panel.menu-dropdown {

  width: 290px !important;

  min-width: 280px !important;

  max-width: 320px !important;

  padding: 4px 0 !important;

  border-radius: 6px !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  user-select: none;

}



body.theme-light #menuEdit-panel.menu-dropdown {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}



/* Preferences Dialog */

.ps-pref-dialog {

  width: 720px;

  max-width: 95vw;

  height: 520px;

  max-height: 85vh;

  display: grid;

  grid-template-columns: 200px 1fr;

  grid-template-rows: auto 1fr auto;

  border-radius: 8px;

  background: var(--ee-surface, #1e1e24);

  color: var(--text-main, #f8fafc);

  border: 1px solid var(--ee-border, #3a3a46);

  box-shadow: 0 20px 50px rgba(0,0,0,0.6);

  overflow: hidden;

}



body.theme-light .ps-pref-dialog {

  background: #ffffff;

  color: #0f172a;

  border-color: #cbd5e1;

}



.ps-pref-header {

  grid-column: 1 / -1;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 10px 16px;

  border-bottom: 1px solid var(--ee-border, #3a3a46);

  font-weight: 700;

  font-size: 13.5px;

}



.ps-pref-sidebar {

  border-right: 1px solid var(--ee-border, #3a3a46);

  padding: 8px 0;

  overflow-y: auto;

  background: var(--ee-raised, rgba(0,0,0,0.15));

}



body.theme-light .ps-pref-sidebar {

  background: #f8fafc;

  border-color: #e2e8f0;

}



.ps-pref-nav-btn {

  width: 100%;

  display: block;

  text-align: left;

  padding: 6px 16px;

  font-size: 11.5px;

  font-weight: 500;

  color: var(--text-muted, #94a3b8);

  background: transparent;

  border: none;

  cursor: pointer;

  transition: all 0.1s ease;

}



.ps-pref-nav-btn:hover {

  color: var(--text-main, #fff);

  background: rgba(255,255,255,0.05);

}



.ps-pref-nav-btn.active {

  background: #0078d4 !important;

  color: #ffffff !important;

  font-weight: 700;

}



.ps-pref-content {

  padding: 18px 24px;

  overflow-y: auto;

  font-size: 12px;

  display: flex;

  flex-direction: column;

  gap: 14px;

}



.ps-pref-footer {

  grid-column: 1 / -1;

  display: flex;

  justify-content: flex-end;

  gap: 10px;

  padding: 10px 16px;

  border-top: 1px solid var(--ee-border, #3a3a46);

  background: var(--ee-raised, rgba(0,0,0,0.1));

}





/* Guarantee that when parent menu-group is closed, all flyout submenus are instantly hidden */

.menu-group:not(.open) .ps-submenu-flyout {

  display: none !important;

}

.ps-submenu-flyout {

  z-index: 99999 !important;

}





/* Photoshop Image Menu & Modal Dialogs */

#menuImage-panel.menu-dropdown {

  width: 250px !important;

  min-width: 250px !important;

  max-width: 280px !important;

  padding: 4px 0 !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  border-radius: 6px !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  max-height: 82vh !important;

  overflow-y: auto !important;

}



body.theme-light #menuImage-panel.menu-dropdown {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}



/* Dark Mode Defaults for Photoshop Dialogs */

body:not(.theme-light) .ps-dialog-box,

body.theme-dark .ps-dialog-box,

.ps-dialog-box {

  background: #1e1e24 !important;

  color: #f3f4f6 !important;

  border: 1px solid #3f3f46 !important;

}



body:not(.theme-light) .ps-dialog-header,

body.theme-dark .ps-dialog-header,

.ps-dialog-header {

  background: #141418 !important;

  color: #f3f4f6 !important;

  border-bottom: 1px solid #3f3f46 !important;

}



body:not(.theme-light) .ps-dialog-footer,

body.theme-dark .ps-dialog-footer,

.ps-dialog-footer {

  background: #141418 !important;

  border-top: 1px solid #3f3f46 !important;

}



body:not(.theme-light) .ps-dialog-input,

body:not(.theme-light) .ps-dialog-box input:not([type="checkbox"]):not([type="radio"]),

body:not(.theme-light) .ps-dialog-box select,

body.theme-dark .ps-dialog-input,

body.theme-dark .ps-dialog-box input:not([type="checkbox"]):not([type="radio"]),

body.theme-dark .ps-dialog-box select {

  background: #141418 !important;

  border: 1px solid #475569 !important;

  color: #ffffff !important;

}



/* Image Size & Canvas Size Dialogs */

.ps-dialog-box {

  width: 440px;

  max-width: 95vw;

  background: var(--ee-surface, #24242a);

  color: var(--ee-text, #e4e4e7);

  border: 1px solid var(--ee-border, #3a3a46);

  border-radius: 8px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);

  overflow: hidden;

  font-family: inherit;

  font-size: 12px;

}



body.theme-light .ps-dialog-box {

  background: #ffffff;

  color: #0f172a;

  border-color: #cbd5e1;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);

}



.ps-dialog-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 10px 16px;

  background: var(--ee-raised, #1c1c22);

  border-bottom: 1px solid var(--ee-border, #3a3a46);

  font-weight: 700;

  font-size: 13px;

}



body.theme-light .ps-dialog-header {

  background: #f8fafc;

  border-color: #e2e8f0;

}



.ps-dialog-body {

  padding: 16px;

  display: flex;

  flex-direction: column;

  gap: 12px;

}



.ps-dialog-footer {

  display: flex;

  justify-content: flex-end;

  gap: 10px;

  padding: 10px 16px;

  background: var(--ee-raised, #1c1c22);

  border-top: 1px solid var(--ee-border, #3a3a46);

}



body.theme-light .ps-dialog-footer {

  background: #f8fafc;

  border-color: #e2e8f0;

}



.ps-form-row {

  display: grid;

  grid-template-columns: 120px 1fr;

  align-items: center;

  gap: 8px;

}



.ps-form-row label {

  font-size: 11px;

  font-weight: 600;

  color: var(--ee-text-muted, #94a3b8);

}



.ps-input-group {

  display: flex;

  align-items: center;

  gap: 6px;

}



.ps-dialog-input {

  flex: 1;

  min-width: 0;

  padding: 5px 8px;

  border-radius: 4px;

  border: 1px solid var(--ee-border, #3a3a46);

  background: var(--ee-raised, #1a1a20);

  color: inherit;

  font-size: 12px;

}



body.theme-light .ps-dialog-input {

  background: #f8fafc;

  border-color: #cbd5e1;

}



/* 3x3 Anchor Grid for Canvas Size */

.ps-anchor-grid {

  display: grid;

  grid-template-columns: repeat(3, 28px);

  grid-template-rows: repeat(3, 28px);

  gap: 4px;

}



.ps-anchor-cell {

  width: 28px;

  height: 28px;

  border-radius: 3px;

  border: 1px solid var(--ee-border, #444);

  background: var(--ee-raised, #1f1f26);

  color: inherit;

  font-size: 12px;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: all 0.15s ease;

}



.ps-anchor-cell:hover {

  background: #0078d4;

  color: #fff;

  border-color: #0078d4;

}



.ps-anchor-cell.active {

  background: #0078d4;

  color: #fff;

  border-color: #0078d4;

  font-weight: 700;

}





/* Photoshop Layer Menu */

#menuLayer-panel.menu-dropdown {

  width: 250px !important;

  min-width: 250px !important;

  max-width: 280px !important;

  padding: 4px 0 !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  border-radius: 6px !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  max-height: 82vh !important;

  overflow-y: auto !important;

}



body.theme-light #menuLayer-panel.menu-dropdown {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}





/* Photoshop Type Menu */

#menuType-panel.menu-dropdown {

  width: 250px !important;

  min-width: 250px !important;

  max-width: 280px !important;

  padding: 4px 0 !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  border-radius: 6px !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  max-height: 82vh !important;

  overflow-y: auto !important;

}



body.theme-light #menuType-panel.menu-dropdown {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}





/* Photoshop Select Menu */

#menuSelect-panel.menu-dropdown {

  width: 250px !important;

  min-width: 250px !important;

  max-width: 280px !important;

  padding: 4px 0 !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  border-radius: 6px !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  max-height: 85vh !important;

  overflow-y: auto !important;

}



body.theme-light #menuSelect-panel.menu-dropdown {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}



/* Quick Mask Mode Indicator */

.ps-quick-mask-badge {

  position: absolute;

  top: 16px;

  left: 50%;

  transform: translateX(-50%);

  background: rgba(220, 38, 38, 0.92);

  color: #ffffff;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.5px;

  padding: 4px 14px;

  border-radius: 20px;

  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5);

  pointer-events: none;

  z-index: 9999;

  display: flex;

  align-items: center;

  gap: 6px;

  animation: psPulseBadge 1.8s infinite ease-in-out;

}



@keyframes psPulseBadge {

  0%, 100% { opacity: 0.95; transform: translateX(-50%) scale(1); }

  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }

}



.ps-quick-mask-overlay {

  position: absolute;

  inset: 0;

  background: rgba(239, 68, 68, 0.35);

  pointer-events: none;

  z-index: 100;

  border: 2px dashed rgba(220, 38, 38, 0.8);

}





/* Photoshop Filter Menu */

#menuFilter-panel.menu-dropdown {

  width: 250px !important;

  min-width: 250px !important;

  max-width: 280px !important;

  padding: 4px 0 !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  border-radius: 6px !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  max-height: 85vh !important;

  overflow-y: auto !important;

}



body.theme-light #menuFilter-panel.menu-dropdown {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}





/* Photoshop View Menu */

#menuView-panel.menu-dropdown {

  width: 250px !important;

  min-width: 250px !important;

  max-width: 280px !important;

  padding: 4px 0 !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  border-radius: 6px !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  max-height: 85vh !important;

  overflow-y: auto !important;

}



body.theme-light #menuView-panel.menu-dropdown {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}





/* Photoshop Window Menu */

#menuWindow-panel.menu-dropdown {

  width: 250px !important;

  min-width: 250px !important;

  max-width: 280px !important;

  padding: 4px 0 !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  border-radius: 6px !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  max-height: 85vh !important;

  overflow-y: auto !important;

}



body.theme-light #menuWindow-panel.menu-dropdown {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}





/* Photoshop Help Menu */

#menuHelp-panel.menu-dropdown {

  width: 260px !important;

  min-width: 260px !important;

  max-width: 290px !important;

  padding: 4px 0 !important;

  background: var(--ee-surface, #232328) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  border-radius: 6px !important;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.25) !important;

  max-height: 85vh !important;

  overflow-y: auto !important;

}



body.theme-light #menuHelp-panel.menu-dropdown {

  background: #ffffff !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 5px rgba(0, 0, 0, 0.08) !important;

}



/* Pricing / Subscription Cards in Pro Modal */

.ps-pricing-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 14px;

  margin: 16px 0;

}



.ps-pricing-card {

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid var(--ee-border, #3a3a46);

  border-radius: 8px;

  padding: 16px;

  display: flex;

  flex-direction: column;

  transition: all 0.2s ease;

}



.ps-pricing-card.featured {

  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(14, 165, 233, 0.15) 100%);

  border: 1px solid #6366f1;

  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);

}



.ps-pricing-title {

  font-size: 15px;

  font-weight: 700;

  color: var(--ee-text, #fff);

  margin-bottom: 4px;

}



.ps-pricing-price {

  font-size: 24px;

  font-weight: 800;

  color: #38bdf8;

  margin-bottom: 12px;

}



.ps-pricing-features {

  list-style: none;

  padding: 0;

  margin: 0 0 16px 0;

  font-size: 12px;

  color: #cbd5e1;

  display: flex;

  flex-direction: column;

  gap: 6px;

  flex: 1;

}



.ps-pricing-features li {

  display: flex;

  align-items: center;

  gap: 6px;

}





/* Modal Dialog Fixes - Solid Photoshop Dark Styling */

.ps-modal-dialog,

.ps-modal-box {

  width: 520px !important;

  max-width: 90vw !important;

  background: #1e1e24 !important;

  color: #f1f5f9 !important;

  border: 1px solid #3a3a46 !important;

  border-radius: 8px !important;

  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75) !important;

  display: flex !important;

  flex-direction: column !important;

  overflow: hidden !important;

}



.ps-modal-header {

  background: #1e1e24 !important;

  color: #ffffff !important;

  border-bottom: 1px solid #33333f !important;

}



.ps-modal-title {

  color: #ffffff !important;

  font-weight: 700 !important;

  font-size: 14px !important;

}



.ps-modal-close {

  background: transparent !important;

  border: none !important;

  color: #94a3b8 !important;

  font-size: 20px !important;

  cursor: pointer !important;

  padding: 4px 8px !important;

  line-height: 1 !important;

  border-radius: 4px !important;

}



.ps-modal-close:hover {

  color: #ffffff !important;

  background: rgba(255, 255, 255, 0.1) !important;

}



.ps-modal-footer {

  background: #18181c !important;

  border-top: 1px solid #2d2d38 !important;

}



.ps-modal-btn {

  background: #2a2a34 !important;

  color: #e2e8f0 !important;

  border: 1px solid #3a3a46 !important;

}



.ps-modal-btn.ps-primary {

  background: #0078d4 !important;

  color: #ffffff !important;

  border-color: #0078d4 !important;

}



/* ==========================================================================

   STUDIO CORRECTIONS: ITEMS 1, 3, 4, 6, 10, 12, 13

   ========================================================================== */



/* Item 1 & 13: Hide Template Count Badge & Dummy Ads Everywhere */

#canvaTemplateCountBadge,

.canva-tpl-count-badge,

.adsense-slot-banner,

.canva-template-adsense-card,

.adsense-badge-pill,

[aria-label*="Advertisement Space"],

[aria-label*="AdSense"],

[id*="adsense"] {

  display: none !important;

}



/* language selector displayed */



/* Item 4: Studio Header History visible */



/* Item 6 & 10: Modal Backdrop and Export Hub Visibility */

#modalExportHub:not(.hidden):not([hidden]),

.modal-backdrop:not(.hidden):not([hidden]) {

  position: fixed !important;

  inset: 0 !important;

  z-index: 99999 !important;

  background: rgba(0, 0, 0, 0.6) !important;

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

}



#modalExportHub .modal-card,

.modal-backdrop .modal-card {

  background: var(--ee-surface, #1e1e24) !important;

  color: var(--ee-text, #ffffff) !important;

  border: 1px solid var(--ee-border, #3a3a46) !important;

  border-radius: 10px !important;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75) !important;

}



body.theme-light #modalExportHub .modal-card,

body.theme-light .modal-backdrop .modal-card {

  background: #ffffff !important;

  color: #0f172a !important;

  border-color: #cbd5e1 !important;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;

}



/* Item 12: Smart Object Badge on Layer Thumbnail */

.ps-smart-object-badge {

  position: absolute !important;

  right: 0px !important;

  bottom: 0px !important;

  width: 10px !important;

  height: 10px !important;

  background: #18181c !important;

  border: 1px solid #38bdf8 !important;

  border-radius: 1px !important;

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;

  pointer-events: none !important;

}





/* Language dropdown enabled */





/* ================================================================

   AI VECTOR 2-COLUMN TOOLBAR & ALL TOOLS DRAWER STYLES

   ================================================================ */



/* Left dock in Vector mode */
body.mode-vector .left-dock {
  width: 108px !important;
  min-width: 108px !important;
  max-width: 108px !important;
  padding: 6px 5px 0 5px !important;
  background: #262626 !important;
  border-right: 1px solid #333333 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: calc(100vh - 44px - 32px) !important;
  max-height: calc(100vh - 44px - 32px) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body.mode-vector .left-dock > div:first-child {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: #555 #262626 !important;
}

body.mode-vector .left-dock #toolsGrid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 4px !important;
  justify-content: center !important;
  margin-bottom: 6px !important;
}

body.mode-vector .left-dock #toolsGrid.single-col {
  grid-template-columns: 1fr !important;
}

body.mode-vector #vectorDockBottom {
  flex: 0 0 auto !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  background: #262626 !important;
  border-top: 1px solid #383838 !important;
  padding: 6px 0 !important;
  width: 100% !important;
}



/* Vector Tool Button */

.vector-tool-btn {

  position: relative !important;

  width: auto !important;

  min-height: 38px !important;

  padding: 6px 2px 5px 2px !important;

  margin: 0 !important;

  background: #2b2b33 !important;

  border: 1px solid #3a3a46 !important;

  border-radius: 4px !important;

  color: #d4d4d8 !important;

  cursor: pointer !important;

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;

  justify-content: center !important;

  gap: 2px !important;

  overflow: hidden !important;

  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease !important;

}



.vector-tool-btn:hover {

  background: #383844 !important;

  border-color: #565668 !important;

  color: #ffffff !important;

}



.vector-tool-btn.active {

  background: #1d1d24 !important;

  border-color: #f97316 !important;

  color: #ffffff !important;

  box-shadow: inset 0 0 0 1px #f97316, 0 0 10px rgba(249, 115, 22, 0.2) !important;

}



.vector-tool-btn svg.tool-main-icon {

  width: 17px !important;

  height: 17px !important;

  flex-shrink: 0 !important;

  pointer-events: none !important;

}



.vector-tool-btn .tool-lbl {

  font-size: 8.5px !important;

  line-height: 1 !important;

  opacity: 0.92 !important;

  pointer-events: none !important;

  max-width: 44px !important;

  overflow: hidden !important;

  text-overflow: ellipsis !important;

  white-space: nowrap !important;

  color: #d4d4d8 !important;

}



.vector-tool-btn:hover .tool-lbl,

.vector-tool-btn.active .tool-lbl {

  color: #ffffff !important;

}



.vector-flyout-arrow {

  position: absolute !important;

  bottom: 2px !important;

  right: 2px !important;

  width: 7px !important;

  height: 7px !important;

  opacity: 0.75 !important;

  cursor: pointer !important;

  pointer-events: auto !important;

  color: #d4d4d8 !important;

}



.vector-tool-btn:hover .vector-flyout-arrow,

.vector-tool-btn.active .vector-flyout-arrow {

  color: #ffffff !important;

  opacity: 1 !important;

}



.vector-flyout-arrow:hover {

  opacity: 1 !important;

}



/* ================================================================
   VECTOR BOTTOM WIDGETS - COMPACT & THEME ADAPTIVE
   ================================================================ */

.vector-dock-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px 3px 2px;
  border-top: 1px solid var(--ee-border, #3a3a3a);
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

/* Compact Swatches Box */
.vector-swatches-box {
  position: relative;
  width: 40px;
  height: 36px;
  margin: 0 auto;
}

.vector-swatch-fill {
  position: absolute;
  top: 0;
  left: 2px;
  width: 22px;
  height: 22px;
  border: 1.5px solid #525264;
  border-radius: 3px;
  cursor: pointer;
  z-index: 10;
  background: #1a364a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.vector-swatch-stroke {
  position: absolute;
  bottom: 0;
  right: 2px;
  width: 22px;
  height: 22px;
  border: 1.5px solid #525264;
  border-radius: 3px;
  cursor: pointer;
  z-index: 5;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: transform 0.1s ease, border-color 0.15s ease;
  overflow: hidden;
}

.vector-swatch-fill.active-swatch,
.vector-swatch-stroke.active-swatch {
  z-index: 12 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.4) !important;
}

.swatch-none-slash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top right, transparent calc(50% - 1px), #e11d48 calc(50% - 1px), #e11d48 calc(50% + 1px), transparent calc(50% + 1px));
}

.vector-swatch-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  line-height: 1;
}

.vector-swatch-btn:hover {
  color: #ffffff;
}

.vector-swatch-btn.swap-btn {
  top: -2px;
  right: 0;
  width: 13px;
  height: 13px;
}

.vector-swatch-btn.default-btn {
  bottom: -2px;
  left: 0;
  width: 13px;
  height: 13px;
}

.mini-default-swatches {
  position: relative;
  width: 10px;
  height: 10px;
}

.mini-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border: 1px solid #000000;
  z-index: 2;
}

.mini-stroke {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background: #000000;
  border: 1px solid #ffffff;
  z-index: 1;
}

/* Quick Selectors (<, >, /) */
.vector-color-quick-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 2px;
}

.vector-quick-btn {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1px solid #3f3f4e;
  border-radius: 2px;
  background: #272732;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.vector-quick-btn:hover {
  border-color: #5b5b6f;
  background: #353545;
}

.vector-quick-btn.active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1.5px rgba(56,189,248,0.4);
}

.quick-icon-color {
  width: 9px;
  height: 9px;
  background: #ec4899;
  border: 1px solid #222222;
}

.quick-icon-grad {
  width: 9px;
  height: 9px;
  background: linear-gradient(to right, #ffffff, #000000);
  border: 1px solid #222222;
}

.quick-icon-none {
  position: relative;
  width: 9px;
  height: 9px;
  background: #ffffff;
  border: 1px solid #222222;
  overflow: hidden;
}

.quick-icon-none::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), #e11d48 calc(50% - 1px), #e11d48 calc(50% + 1px), transparent calc(50% + 1px));
}

/* Compact Draw Modes */
.vector-draw-modes-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 1px;
}

.vector-mode-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vector-mode-btn:hover {
  background: #272732;
  color: #ffffff;
}

.vector-mode-btn.active {
  background: #182234;
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Screen Mode & Edit Toolbar */
.vector-screen-mode-row,
.vector-edit-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.vector-screen-btn,
.vector-edit-toolbar-btn {
  width: 20px;
  height: 18px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vector-screen-btn:hover,
.vector-edit-toolbar-btn:hover {
  background: #272732;
  color: #ffffff;
}

.vector-edit-toolbar-btn.active {
  background: #182234;
  border-color: #38bdf8;
  color: #38bdf8;
}

/* ================================================================
   CRITICAL LIGHT MODE THEME RULES FOR VECTOR COLOR WIDGETS
   ================================================================ */

body.theme-light #vectorDockBottom,
body.theme-light .vector-dock-bottom {
  background: transparent !important;
  border-top: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-light .vector-swatch-fill,
body.theme-light .vector-swatch-stroke {
  border: 1.5px solid #94a3b8 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

body.theme-light .vector-swatch-fill.active-swatch,
body.theme-light .vector-swatch-stroke.active-swatch {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.35) !important;
}

body.theme-light .vector-swatch-btn {
  color: #64748b !important;
}

body.theme-light .vector-swatch-btn:hover {
  color: #0f172a !important;
}

body.theme-light .mini-fill {
  background: #ffffff !important;
  border: 1px solid #0f172a !important;
}

body.theme-light .mini-stroke {
  background: #0f172a !important;
  border: 1px solid #94a3b8 !important;
}

body.theme-light .vector-quick-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.theme-light .vector-quick-btn:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}

body.theme-light .vector-quick-btn.active {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 1.5px rgba(2, 132, 199, 0.35) !important;
}

body.theme-light .quick-icon-none {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
}

body.theme-light .vector-mode-btn,
body.theme-light .vector-screen-btn,
body.theme-light .vector-edit-toolbar-btn {
  color: #64748b !important;
  background: transparent !important;
  border-color: transparent !important;
}

body.theme-light .vector-mode-btn:hover,
body.theme-light .vector-screen-btn:hover,
body.theme-light .vector-edit-toolbar-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

body.theme-light .vector-mode-btn.active,
body.theme-light .vector-edit-toolbar-btn.active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* ================================================================

   ALL TOOLS DRAWER

   ================================================================ */

.all-tools-drawer {

  position: fixed;

  left: 78px;

  top: 48px;

  width: 236px;

  max-height: calc(100vh - 60px);

  background: #262626;

  border: 1px solid #3c3c3c;

  border-radius: 5px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.7);

  z-index: 9999;

  display: flex;

  flex-direction: column;

  overflow: hidden;

  font-family: inherit;

  user-select: none;

}



.all-tools-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 8px 12px;

  background: #2b2b2b;

  border-bottom: 1px solid #383838;

}



.all-tools-title {

  font-size: 12px;

  font-weight: 700;

  color: #e0e0e0;

  letter-spacing: 0.02em;

}



.all-tools-view-toggle {

  display: flex;

  align-items: center;

  gap: 2px;

  background: #202020;

  padding: 2px;

  border-radius: 4px;

  border: 1px solid #333333;

}



.all-tools-toggle-btn {

  width: 24px;

  height: 22px;

  padding: 0;

  border: 1px solid transparent;

  border-radius: 3px;

  background: transparent;

  color: #888888;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

}



.all-tools-toggle-btn:hover {

  color: #ffffff;

}



.all-tools-toggle-btn.active {

  background: #333333;

  border-color: #444444;

  color: #ffffff;

}



.all-tools-content {

  overflow-y: auto;

  padding: 6px 8px;

  flex: 1;

}



.all-tools-section-title {

  font-size: 11px;

  font-weight: 700;

  color: #9e9e9e;

  margin: 8px 0 4px 4px;

  text-transform: capitalize;

}



/* Grid View */

.all-tools-content.view-grid .all-tools-section-grid {

  display: grid;

  grid-template-columns: repeat(5, 34px);

  gap: 3px;

  margin-bottom: 6px;

}



.all-tools-content.view-grid .all-tools-item-btn {

  width: 34px;

  height: 34px;

  padding: 0;

  border: 1px solid #383838;

  background: #2e2e2e;

  border-radius: 3px;

  color: #cccccc;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;

  transition: all 0.1s ease;

}



.all-tools-content.view-grid .all-tools-item-btn:hover {

  background: #3c3c3c;

  border-color: #555555;

  color: #ffffff;

}



.all-tools-content.view-grid .all-tools-item-btn.active {

  border-color: #3b82f6;

  background: #333333;

  color: #3b82f6;

}



.all-tools-content.view-grid .all-tools-item-btn.active::after {

  content: '';

  position: absolute;

  top: 3px;

  right: 3px;

  width: 5px;

  height: 5px;

  border-radius: 50%;

  background: #3b82f6;

}



.all-tools-content.view-grid .all-tools-item-btn svg {

  width: 18px;

  height: 18px;

  pointer-events: none;

}



/* List View */

.all-tools-content.view-list {

  width: 270px;

}



.all-tools-content.view-list .all-tools-section-grid {

  display: flex;

  flex-direction: column;

  gap: 1px;

  margin-bottom: 8px;

}



.all-tools-content.view-list .all-tools-item-btn {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 5px 8px;

  border: 1px solid transparent;

  border-radius: 4px;

  background: transparent;

  color: #d4d4d4;

  cursor: pointer;

  font-size: 11.5px;

  text-align: left;

  transition: background 0.1s ease;

}



.all-tools-content.view-list .all-tools-item-btn:hover {

  background: #383838;

  color: #ffffff;

}



.all-tools-content.view-list .all-tools-item-btn.active {

  background: #333333;

  color: #3b82f6;

  border-color: #3b82f6;

}



.all-tools-content.view-list .all-tools-item-left {

  display: flex;

  align-items: center;

  gap: 8px;

}



.all-tools-content.view-list .all-tools-item-left svg {

  width: 16px;

  height: 16px;

  flex-shrink: 0;

}



.all-tools-content.view-list .all-tools-item-shortcut {

  font-size: 11px;

  color: #71717a;

  font-family: monospace;

}



/* P2-C: Left toolbar sticky containment and independent tool scrolling */
body.mode-vector .left-dock {
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}

body.mode-vector .left-dock > div:first-child {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  scrollbar-color: #555 #262626 !important;
}

body.mode-vector #vectorDockBottom {
  flex: 0 0 auto !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  background: #262626 !important;
  border-top: 1px solid #383838 !important;
  padding: 6px 0 !important;
}

/* P2-D: Centralized collision-free studio notification layout */
#studioToast,
.toast-container,
#studioToastContainer,
.ee-toast {
  position: fixed !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  max-width: min(460px, 90vw) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* P2-F: Suppress inner arrows on numeric inputs for clean fit */
.v-input-text[type="number"]::-webkit-outer-spin-button,
.v-input-text[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.v-input-text[type="number"] {
  -moz-appearance: textfield !important;
}

/* P2-E: Right dock layout stability & tab strip preservation across all panels */
#vectorSlimIconStrip {
  width: 138px !important;
  min-width: 138px !important;
  max-width: 138px !important;
  flex: 0 0 138px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
body.mode-vector .right-dock:not(.dock-collapsed) {
  width: 388px !important;
  min-width: 388px !important;
  max-width: 388px !important;
}
body.mode-vector .right-dock.dock-collapsed,
body.mode-vector .right-dock:has(#vectorRightDockContainer.collapsed) {
  width: 138px !important;
  min-width: 138px !important;
  max-width: 138px !important;
}
#vectorRightDockDrawer {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}
#vectorDockDrawerContent {
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
#vectorRightDockContainer {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
#vectorSlimIconStrip .v-strip-item-btn {
  padding: 5px 6px !important;
  gap: 5px !important;
}

/* P2-G: Export modal title & description responsive wrapping */
.brand-blue-title {
  white-space: normal !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
}
#modalExportHub [data-export-fmt] .brand-blue-title {
  white-space: normal !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
}
#modalExportHub [data-export-fmt] div {
  white-space: normal !important;
  word-break: break-word !important;
}


/* =========================================================================
   EE-C03: STUDIO EXPORT ARTWORK DIALOG DESIGN SYSTEM UNIFICATION
   Accessible Dark & Light Tokens, No Harsh Red Font Overrides
   ========================================================================= */
#modalExportHub:not(.hidden):not([hidden]) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#modalExportHub .modal-card {
  max-width: 680px !important;
  width: 92vw !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7) !important;
  transition: all 0.2s ease !important;
}

/* Dark Mode (Default Studio Shell) */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub .modal-card {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub h3,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub h3 span {
  color: #f8fafc !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub p {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub [data-export-fmt] {
  background: #0f172a !important;
  border: 1.5px solid #334155 !important;
  border-radius: 10px !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub [data-export-fmt]:hover {
  background: #1e293b !important;
  border-color: #38bdf8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.15) !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub [data-export-fmt] .brand-blue-title {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub [data-export-fmt] div:last-child {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub #exportModalStatusBanner {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid #10b981 !important;
  color: #34d399 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub #exportModalDirectLink {
  color: #38bdf8 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub #btnCloseExportModal,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub #btnCloseExportModalBottom {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub #btnCloseExportModalBottom {
  background: #334155 !important;
  border: 1px solid #475569 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #modalExportHub #btnCloseExportModalBottom:hover {
  background: #475569 !important;
  color: #f8fafc !important;
}

/* Light Mode Studio Export Modal */
body.theme-light #modalExportHub .modal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12) !important;
}

body.theme-light #modalExportHub h3,
body.theme-light #modalExportHub h3 span {
  color: #0f172a !important;
}

body.theme-light #modalExportHub p {
  color: #475569 !important;
}

body.theme-light #modalExportHub [data-export-fmt] {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease !important;
}

body.theme-light #modalExportHub [data-export-fmt]:hover {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12) !important;
}

body.theme-light #modalExportHub [data-export-fmt] .brand-blue-title {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

body.theme-light #modalExportHub [data-export-fmt] div:last-child {
  color: #64748b !important;
}

body.theme-light #modalExportHub #exportModalStatusBanner {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid #10b981 !important;
  color: #047857 !important;
}

body.theme-light #modalExportHub #exportModalDirectLink {
  color: #0284c7 !important;
}

body.theme-light #modalExportHub #btnCloseExportModal,
body.theme-light #modalExportHub #btnCloseExportModalBottom {
  color: #475569 !important;
}

body.theme-light #modalExportHub #btnCloseExportModalBottom {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}

body.theme-light #modalExportHub #btnCloseExportModalBottom:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* =========================================================================
   EE-C05: PHOTO AND VECTOR STUDIO RIGHT DOCK HARMONIZATION & PARITY
   Slate-800 (#1e293b) Dock + Slate-900 (#0f172a) Slim Strip Parity
   ========================================================================= */

/* Dark Mode (Default) - Harmonized Slate Palette for Photo & Vector Docks */
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .right-dock,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #psRightDockContainer,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #vectorRightDockContainer {
  background-color: #1e293b !important;
  border-left: 1px solid #334155 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #psRightDockDrawer,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #vectorRightDockDrawer,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ps-dock-drawer,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #vectorDockDrawerContent {
  background-color: #1e293b !important;
  border-right: 1px solid #334155 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #psSlimIconStrip,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #vectorSlimIconStrip,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) .ps-slim-icon-strip {
  background-color: #0f172a !important;
  border-left: 1px solid #334155 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #psSlimIconStrip .ps-slim-btn,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #vectorSlimIconStrip .v-strip-item-btn {
  color: #94a3b8 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #psSlimIconStrip .ps-slim-btn:hover,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #vectorSlimIconStrip .v-strip-item-btn:hover {
  background: #334155 !important;
  color: #38bdf8 !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #psSlimIconStrip .ps-slim-btn.active,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)) #vectorSlimIconStrip .v-strip-item-btn.active {
  background: #1e293b !important;
  color: #38bdf8 !important;
}

/* Light Mode Harmonization for Vector and Photo Docks */
body.theme-light .right-dock,
body.theme-light #psRightDockContainer,
body.theme-light #vectorRightDockContainer {
  background-color: #ffffff !important;
  border-left: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

body.theme-light #psRightDockDrawer,
body.theme-light #vectorRightDockDrawer,
body.theme-light .ps-dock-drawer,
body.theme-light #vectorDockDrawerContent {
  background-color: #f8fafc !important;
  border-right: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

body.theme-light #psSlimIconStrip,
body.theme-light #vectorSlimIconStrip,
body.theme-light .ps-slim-icon-strip {
  background-color: #f1f5f9 !important;
  border-left: 1px solid #e2e8f0 !important;
}

body.theme-light #psSlimIconStrip .ps-slim-btn,
body.theme-light #vectorSlimIconStrip .v-strip-item-btn {
  color: #475569 !important;
}

body.theme-light #psSlimIconStrip .ps-slim-btn:hover,
body.theme-light #vectorSlimIconStrip .v-strip-item-btn:hover {
  background: #e2e8f0 !important;
  color: #0284c7 !important;
}

body.theme-light #psSlimIconStrip .ps-slim-btn.active,
body.theme-light #vectorSlimIconStrip .v-strip-item-btn.active {
  background: #ffffff !important;
  color: #0284c7 !important;
}

#studioOutsideArtwork{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:14}
/* EasyEdit SynthID Removal & Watermark Robustness Tool CSS */

/* Category Grid updates to support 7 cards seamlessly */
body #canvaLandingHome.ee-live-home .categories .category-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
@media (min-width: 1240px) {
  body #canvaLandingHome.ee-live-home .categories .category-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1239px) and (min-width: 820px) {
  body #canvaLandingHome.ee-live-home .categories .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 819px) and (min-width: 520px) {
  body #canvaLandingHome.ee-live-home .categories .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 519px) {
  body #canvaLandingHome.ee-live-home .categories .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Standalone Tool Page visibility for SynthID */
body #standaloneQuickToolPage #synthidRemovalPanel {
  display: none;
}
body #standaloneQuickToolPage.ee-synthid-mode > #synthidRemovalPanel {
  display: block;
  flex: none;
}
body #standaloneQuickToolPage.ee-synthid-mode > :not(#qtStickyNavigation):not(#synthidRemovalPanel) {
  display: none !important;
}
body #standaloneQuickToolPage.ee-synthid-mode #btnQtReadSeoBlog {
  display: none !important;
}

/* SynthID Removal Panel Layout */
#synthidRemovalPanel {
  padding: 36px 24px 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  color: var(--ee-heading, #1e1e24);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.synthid-header-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.synthid-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
#synthidPageTitle {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin: 8px 0 10px;
  font-weight: 800;
}
.synthid-lead {
  font-size: 16px;
  color: var(--ee-muted, #64748b);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* 2-Column Responsive Layout */
.synthid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .synthid-layout {
    grid-template-columns: 1fr;
  }
}

/* Card Container */
.synthid-card {
  min-width: 0;
  background: var(--ee-surface, #ffffff);
  border: 1px solid var(--ee-border, #e2e8f0);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

/* File Dropzone */
.synthid-dropzone {
  border: 2px dashed #93c5fd;
  background: #f8fafc;
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
.synthid-dropzone:hover, .synthid-dropzone.synthid-dragover {
  border-color: #0284c7;
  background: #f0f9ff;
  transform: translateY(-2px);
}
.synthid-drop-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.synthid-drop-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ee-heading, #0f172a);
}
.synthid-drop-hint {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px;
}
.synthid-browse-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.synthid-browse-btn:hover {
  background: #0369a1;
}
.synthid-formats-pill {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.synthid-formats-pill span {
  font-size: 11px;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Analysis Box */
.synthid-analysis-box {
  margin-top: 20px;
  border-top: 1px solid var(--ee-border, #e2e8f0);
  padding-top: 18px;
}
.synthid-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.synthid-section-tag {
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.synthid-section-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ee-heading, #0f172a);
}

.synthid-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
}
.synthid-meta-item {
  display: flex;
  justify-content: space-between;
}
.synthid-meta-label {
  color: #64748b;
}
.synthid-meta-val {
  font-weight: 600;
  color: #0f172a;
}

/* Provenance Status Box */
.synthid-provenance-status, .synthid-perturbation-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-top: 12px;
}
.synthid-prov-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.synthid-prov-list {
  margin: 0;
  padding-left: 18px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.5;
}
.synthid-distinction-note {
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
  margin: 8px 0 0;
  background: #ffffff;
  padding: 8px;
  border-radius: 6px;
  border-left: 3px solid #0284c7;
}

/* Perturbation stats */
.synthid-pert-stats {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 8px;
}
.synthid-status-badge-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.synthid-badge-status {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.synthid-status-unknown {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.synthid-badge-note {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.35;
}

/* Processing Controls */
.synthid-controls {
  margin-top: 14px;
}
.synthid-field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}
.synthid-select {
  padding: 8px 10px;
  font-size: 12.5px;
  border: 1px solid var(--ee-border, #cbd5e1);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
}
.synthid-slider-row {
  margin-bottom: 14px;
}
.synthid-slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.synthid-val-tag {
  color: #0284c7;
  font-weight: 700;
}
.synthid-slider {
  width: 100%;
  accent-color: #0284c7;
  cursor: pointer;
}

/* Progress bar */
.synthid-progress-wrap {
  margin: 16px 0;
}
.synthid-progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.synthid-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  transition: width 0.2s ease;
}
.synthid-progress-text {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 6px;
  text-align: center;
}

/* Action Buttons */
.synthid-action-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.synthid-btn-primary {
  flex: 1;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.synthid-btn-primary:hover {
  background: #0369a1;
}
.synthid-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.synthid-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Empty Placeholder in Results */
.synthid-empty-placeholder {
  min-height: 380px;
  border: 2px dashed #e2e8f0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}
.synthid-empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}
.synthid-empty-placeholder h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}
.synthid-empty-placeholder p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  max-width: 380px;
  line-height: 1.5;
}

/* Before / After Interactive Slider */
.synthid-slider-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.synthid-compare-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: contain;
}
.synthid-clipped-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #ffffff;
}
.synthid-clipped-wrap .synthid-compare-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
}

/* Floating labels */
.synthid-badge-label {
  position: absolute;
  top: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.synthid-badge-before {
  right: 12px;
}
.synthid-badge-after {
  left: 12px;
}

/* Slider Divider Handle */
.synthid-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.synthid-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.synthid-slider-instruction {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin: 10px 0 16px;
}

/* Metrics Grid */
.synthid-metrics-container h5 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.synthid-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .synthid-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.synthid-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.synthid-metric-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.synthid-metric-val {
  font-size: 17px;
  font-weight: 800;
  color: #0284c7;
  margin: 4px 0 2px;
}
.synthid-metric-sub {
  font-size: 9.5px;
  color: #94a3b8;
  line-height: 1.2;
}

/* Status evaluation box */
.synthid-eval-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 16px;
}
.synthid-eval-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.synthid-status-pill {
  font-size: 11px;
  font-weight: 800;
  background: #16a34a;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
}
.synthid-verify-pill {
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
}
.synthid-eval-desc {
  font-size: 11.5px;
  line-height: 1.5;
  color: #166534;
  margin: 0;
}

/* Download Controls */
.synthid-download-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.synthid-format-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.synthid-select-sm {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  background: #ffffff;
}
.synthid-btn-download {
  flex: 1;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
  min-width: 200px;
}
.synthid-btn-download:hover {
  background: #059669;
}
.synthid-btn-reset {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Research Guide Section */
.synthid-research-section {
  margin-top: 48px;
  border-top: 1px solid var(--ee-border, #e2e8f0);
  padding-top: 32px;
}
.synthid-research-section h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--ee-heading, #0f172a);
}
.synthid-research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .synthid-research-grid {
    grid-template-columns: 1fr;
  }
}
.synthid-research-card {
  background: var(--ee-surface, #ffffff);
  border: 1px solid var(--ee-border, #e2e8f0);
  border-radius: 14px;
  padding: 18px;
}
.synthid-research-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0284c7;
  margin: 0 0 8px;
}
.synthid-research-card p {
  font-size: 12.5px;
  color: var(--ee-muted, #475569);
  line-height: 1.55;
  margin: 0;
}

/* ==================== HERO THUMBNAIL REPLACEMENT & INTERACTIVE HOTSPOTS ==================== */
:is(body, main, #canvaLandingHome) .editor-mockup.ee-hero-thumbnail-wrapper {
  height: auto !important;
  max-height: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
}

:is(body, main, #canvaLandingHome) .editor-mockup.ee-hero-thumbnail-wrapper:hover {
  transform: none !important;
}

:is(body, main, #canvaLandingHome) #eeHeroPreviewPanel.ee-hero-thumbnail-panel {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 966 / 614 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.12), 0 10px 24px -8px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
  display: block !important;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease !important;
  cursor: pointer !important;
}

/* Smooth zoom-in on hover */
:is(body, main, #canvaLandingHome) #eeHeroPreviewPanel.ee-hero-thumbnail-panel:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.18), 0 16px 32px -8px rgba(15, 23, 42, 0.1) !important;
}

:is(body, main, #canvaLandingHome) .ee-hero-thumbnail-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 966 / 614 !important;
  object-fit: fill !important;
  pointer-events: none !important;
  border: none !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
  filter: none !important;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

:is(body, main, #canvaLandingHome) #eeHeroPreviewPanel.ee-hero-thumbnail-panel:hover .ee-hero-thumbnail-img {
  transform: scale(1.025) !important;
}

/* Base Hotspot Button Styling - Strict NO WHITE FLASH on pink buttons */
:is(body, main, #canvaLandingHome) .ee-hero-overlay-btn {
  position: absolute !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  z-index: 20 !important;
  display: block !important;
  text-decoration: none !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
  transition: transform 0.15s ease !important;
}

:is(body, main, #canvaLandingHome) .ee-hero-overlay-btn:hover {
  background: transparent !important;
  box-shadow: none !important;
}

:is(body, main, #canvaLandingHome) .ee-hero-overlay-btn:active {
  transform: scale(0.98) !important;
  background: transparent !important;
  box-shadow: none !important;
}

:is(body, main, #canvaLandingHome) .ee-hero-overlay-btn:focus-visible {
  outline: 2px solid #ec4899 !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* 1. Open Studio Center Pill Hotspot */
:is(body, main, #canvaLandingHome) .ee-hero-overlay-open-studio {
  left: 22.77% !important;
  top: 65.15% !important;
  width: 27.02% !important;
  height: 12.70% !important;
  border-radius: 9999px !important;
}
:is(body, main, #canvaLandingHome) .ee-hero-overlay-open-studio:hover {
  background: transparent !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.35) !important;
}

:is(body, main, #canvaLandingHome) .ee-hero-overlay-open-studio .ee-hero-pill-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: clamp(12px, 1.4vw, 18px) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45), inset 0 1px 0 rgba(255,255,255,0.3) !important;
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%) !important;
  letter-spacing: -0.01em !important;
  pointer-events: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
}

:is(body, main, #canvaLandingHome) .ee-hero-overlay-open-studio:hover .ee-hero-pill-text {
  transform: scale(1.03) !important;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.6), inset 0 1px 0 rgba(255,255,255,0.4) !important;
}

/* 2. Templates Left Sidebar Hotspot */
:is(body, main, #canvaLandingHome) .ee-hero-overlay-templates {
  left: 1.00% !important;
  top: 13.00% !important;
  width: 10.50% !important;
  height: 17.00% !important;
  border-radius: 12px !important;
}
:is(body, main, #canvaLandingHome) .ee-hero-overlay-templates:hover {
  background: transparent !important;
  box-shadow: none !important;
}

/* 3. Photo Top Header Hotspot */
:is(body, main, #canvaLandingHome) .ee-hero-overlay-photo {
  left: 36.50% !important;
  top: 2.50% !important;
  width: 10.00% !important;
  height: 9.50% !important;
  border-radius: 8px !important;
}
:is(body, main, #canvaLandingHome) .ee-hero-overlay-photo:hover {
  background: transparent !important;
  box-shadow: none !important;
}

/* 4. Design Top Header Hotspot */
:is(body, main, #canvaLandingHome) .ee-hero-overlay-design {
  left: 47.50% !important;
  top: 2.50% !important;
  width: 10.00% !important;
  height: 9.50% !important;
  border-radius: 8px !important;
}
:is(body, main, #canvaLandingHome) .ee-hero-overlay-design:hover {
  background: transparent !important;
  box-shadow: none !important;
}

.ee-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==================== HOMEPAGE AI TOOLS COLOR HARMONIZATION (IMAGE, PDF, HISTORY) ==================== */

/* 1. Quick Access Image Tools */
:is(body, main, #canvaLandingHome) #canvaSectionQuickImageTools .canva-tpl-count-badge {
  display: inline-flex !important;
  background: #ffe4e6 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.06) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

body:not(.theme-dark):is(body, main, #canvaLandingHome) #canvaSectionQuickImageTools .quick-img-pills-strip {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
}

body:not(.theme-dark):is(body, main, #canvaLandingHome) .quick-img-pill-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)):is(body, main, #canvaLandingHome) .quick-img-pill-btn,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)):is(body, main, #canvaLandingHome) [data-quick-tool="img-converter"] {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 14px !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)):is(body, main, #canvaLandingHome) .quick-img-pill-btn span,
:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)):is(body, main, #canvaLandingHome) .quick-img-pill-btn div > span:first-child {
  color: #f8fafc !important;
}

:is(body.theme-dark, body.dark, html.dark body, [data-theme="dark"] body, body:not(.theme-light)):is(body, main, #canvaLandingHome) .quick-img-pill-btn div > span:last-child {
  color: #cbd5e1 !important;
}

:is(body, main, #canvaLandingHome) .quick-img-pill-btn:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0284c7 !important;
  box-shadow: 0 12px 24px -2px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-3px) !important;
}

:is(body, main, #canvaLandingHome) .quick-img-blue-icon {
  background: #eff6ff !important;
  color: #0284c7 !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:is(body, main, #canvaLandingHome) .quick-img-pill-btn:hover .quick-img-blue-icon {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
  transform: scale(1.06) !important;
}

/* Image Converter Pill */
/* Image Converter Pill - Standardized with siblings */
:is(body, main, #canvaLandingHome) [data-quick-tool="img-converter"] {
  /* Inherits standard .quick-img-pill-btn styles */
}

/* 2. Quick Access PDF Tools */
:is(body, main, #canvaLandingHome) #canvaSectionQuickPdfTools .canva-tpl-count-badge {
  display: inline-flex !important;
  background: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
  color: #b91c1c !important;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.06) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

body:not(.theme-dark):is(body, main, #canvaLandingHome) .quick-pdf-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

:is(body, main, #canvaLandingHome) .quick-pdf-card:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04) !important;
  transform: translateY(-4px) !important;
}

:is(body, main, #canvaLandingHome) .quick-pdf-card :is(.quick-img-blue-icon, .quick-pdf-badge-icon) {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:is(body, main, #canvaLandingHome) .quick-pdf-card:hover :is(.quick-img-blue-icon, .quick-pdf-badge-icon) {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3) !important;
  transform: scale(1.06) !important;
}

:is(body, main, #canvaLandingHome) .quick-pdf-url-crumb,
:is(body, main, #canvaLandingHome) .quick-pdf-url-crumb > span {
  color: #64748b !important;
}

:is(body, main, #canvaLandingHome) .quick-pdf-card .quick-pdf-link-title {
  color: #0f172a !important;
}

:is(body, main, #canvaLandingHome) .quick-pdf-card:hover .quick-pdf-link-title {
  color: #0284c7 !important;
  text-decoration: none !important;
}

:is(body, main, #canvaLandingHome) .quick-pdf-card .quick-pdf-desc {
  color: #475569 !important;
}

:is(body, main, #canvaLandingHome) .quick-pdf-footer {
  border-top: 1px solid #f1f5f9 !important;
  color: #64748b !important;
}

:is(body, main, #canvaLandingHome) .quick-pdf-footer span:last-child {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

/* 3. History / Recent Projects (.ee) */
:is(body, main, #canvaLandingHome) #recentProjectsCountBadge {
  display: inline-flex !important;
  background: #ffe4e6 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  box-shadow: 0 1px 2px rgba(225, 29, 72, 0.06) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

:is(body, main, #canvaLandingHome) #btnHomeNewBlankProject {
  background: #e11d48 !important;
  border: 1px solid #e11d48 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 9px 16px !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

:is(body, main, #canvaLandingHome) #btnHomeNewBlankProject:hover {
  background: #be123c !important;
  border-color: #be123c !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35) !important;
  transform: translateY(-2px) !important;
}

:is(body, main, #canvaLandingHome) #btnHomeOpenEeFile {
  background: #ffe4e6 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 9px 16px !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.08) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

:is(body, main, #canvaLandingHome) #btnHomeOpenEeFile:hover {
  background: #fecdd3 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15) !important;
  transform: translateY(-2px) !important;
}

:is(body, main, #canvaLandingHome) #btnHomeClearRecentProjects {
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

:is(body, main, #canvaLandingHome) #btnHomeClearRecentProjects:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #e11d48 !important;
}

:is(body, main, #canvaLandingHome) #btnEmptyRecentStartBlank {
  background: #e11d48 !important;
  border: 1px solid #e11d48 !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:is(body, main, #canvaLandingHome) #btnEmptyRecentStartBlank:hover {
  background: #be123c !important;
  border-color: #be123c !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35) !important;
  transform: translateY(-2px) !important;
}

/* EE-C03: Scoped strictly to homepage sections, NEVER leak to Studio Export modal or modals */
#canvaLandingHome .brand-blue-title {
  color: #0284c7 !important;
}

#modalExportHub .brand-blue-title,
.modal-card .brand-blue-title {
  color: inherit !important;
}

:is(body, main, #canvaLandingHome) .recent-project-card {
  background: #ffffff !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px -2px rgba(244, 63, 94, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

:is(body, main, #canvaLandingHome) .recent-project-card:hover {
  border-color: #fda4af !important;
  box-shadow: 0 16px 32px -4px rgba(244, 63, 94, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
  transform: translateY(-4px) !important;
}

:is(body, main, #canvaLandingHome) .recent-project-ext-badge {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
}

:is(body, main, #canvaLandingHome) [data-open-recent-id] {
  background: #e11d48 !important;
  border: 1px solid #e11d48 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25) !important;
  transition: all 0.2s ease !important;
}

:is(body, main, #canvaLandingHome) [data-open-recent-id]:hover {
  background: #be123c !important;
  border-color: #be123c !important;
  transform: translateY(-1px) !important;
}

:is(body, main, #canvaLandingHome) [data-dl-recent-id] {
  background: #ffe4e6 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

:is(body, main, #canvaLandingHome) [data-dl-recent-id]:hover {
  background: #fecdd3 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
  transform: translateY(-1px) !important;
}

/* 4. Category Cards: QR Code, SynthID, Image Tools, Document Tools, Photo & Design */
:is(body, main, #canvaLandingHome) .category-card {
  background: #ffffff !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px -2px rgba(244, 63, 94, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

:is(body, main, #canvaLandingHome) .category-card:hover {
  border-color: #fda4af !important;
  background: #ffffff !important;
  box-shadow: 0 16px 32px -4px rgba(244, 63, 94, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
  transform: translateY(-4px) !important;
}

:is(body, main, #canvaLandingHome) .category-icon-wrapper {
  background: #ffe4e6 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.12) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:is(body, main, #canvaLandingHome) .category-card:hover .category-icon-wrapper {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.25) !important;
}

/* 5. Popular Tools Grid: Image & PDF Tools */
:is(body, main, #canvaLandingHome) #popular-tools .tool-card {
  background: #ffffff !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 20px -2px rgba(244, 63, 94, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

:is(body, main, #canvaLandingHome) #popular-tools .tool-card:hover {
  border-color: #fda4af !important;
  box-shadow: 0 16px 32px -4px rgba(244, 63, 94, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05) !important;
  transform: translateY(-4px) !important;
}

:is(body, main, #canvaLandingHome) #popular-tools .tool-icon {
  background: #ffe4e6 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.1) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:is(body, main, #canvaLandingHome) #popular-tools .tool-card:hover .tool-icon {
  transform: scale(1.08) !important;
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3) !important;
}

:is(body, main, #canvaLandingHome) #popular-tools .section-link {
  color: #e11d48 !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

:is(body, main, #canvaLandingHome) #popular-tools .section-link:hover {
  color: #be123c !important;
}

:is(body, main, #canvaLandingHome) #popular-tools .section-link svg {
  transition: transform 0.2s ease !important;
}

:is(body, main, #canvaLandingHome) #popular-tools .section-link:hover svg {
  transform: translateX(4px) !important;
}

:is(body, main, #canvaLandingHome) .ee-live-library > details[open] {
  border-color: #fecdd3 !important;
}

:is(body, main, #canvaLandingHome) .ee-live-library summary:hover {
  color: #e11d48 !important;
}


/* ==================== ABSOLUTE HERO OVERLAY TRANSPARENCY ENFORCEMENT ==================== */
:is(body, main, #canvaLandingHome) .ee-hero-thumbnail-panel .ee-hero-overlay-btn,
:is(body, main, #canvaLandingHome) .ee-hero-thumbnail-panel .ee-hero-overlay-btn:hover,
:is(body, main, #canvaLandingHome) .ee-hero-thumbnail-panel .ee-hero-overlay-btn:focus,
:is(body, main, #canvaLandingHome) .ee-hero-thumbnail-panel .ee-hero-overlay-btn:active,
:is(body, main, #canvaLandingHome) .ee-hero-thumbnail-panel a.ee-hero-overlay-btn:hover,
:is(body, main, #canvaLandingHome) #btnHeroPreviewLaunch,
:is(body, main, #canvaLandingHome) #btnHeroPreviewLaunch:hover,
:is(body, main, #canvaLandingHome) #btnHeroPreviewLaunch:focus,
:is(body, main, #canvaLandingHome) #btnHeroPreviewLaunch:active,
:is(body, main, #canvaLandingHome) #btnHeroOverlayPhoto,
:is(body, main, #canvaLandingHome) #btnHeroOverlayPhoto:hover,
:is(body, main, #canvaLandingHome) #btnHeroOverlayPhoto:focus,
:is(body, main, #canvaLandingHome) #btnHeroOverlayPhoto:active,
:is(body, main, #canvaLandingHome) #btnHeroOverlayDesign,
:is(body, main, #canvaLandingHome) #btnHeroOverlayDesign:hover,
:is(body, main, #canvaLandingHome) #btnHeroOverlayDesign:focus,
:is(body, main, #canvaLandingHome) #btnHeroOverlayDesign:active,
:is(body, main, #canvaLandingHome) #btnHeroOverlayTemplates,
:is(body, main, #canvaLandingHome) #btnHeroOverlayTemplates:hover,
:is(body, main, #canvaLandingHome) #btnHeroOverlayTemplates:focus,
:is(body, main, #canvaLandingHome) #btnHeroOverlayTemplates:active {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
}

/* EasyEdit AI Blur Faces Tool CSS */

/* Standalone Tool Page Visibility */
body #standaloneQuickToolPage #aiBlurFacesPanel {
  display: none;
}
body #standaloneQuickToolPage.ee-blur-faces-mode > #aiBlurFacesPanel {
  display: block;
  flex: none;
}
body #standaloneQuickToolPage.ee-blur-faces-mode > :not(#qtStickyNavigation):not(#aiBlurFacesPanel) {
  display: none !important;
}
body #standaloneQuickToolPage.ee-blur-faces-mode #btnQtReadSeoBlog {
  display: none !important;
}

/* AI Blur Panel Shell */
.ai-blur-panel {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 60px;
  box-sizing: border-box;
  color: var(--ee-heading, #0f172a);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header & Eyebrow */
.ai-blur-header-wrap {
  text-align: center;
  margin-bottom: 28px;
}
.ai-blur-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ai-blur-pulse-dot {
  width: 7px;
  height: 7px;
  background: #0284c7;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  animation: ai-pulse 2s infinite;
}
@keyframes ai-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

#blurFacesPageTitle {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  margin: 8px 0 10px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ee-heading, #0f172a);
}
.ai-blur-lead {
  font-size: 16px;
  color: var(--ee-muted, #64748b);
  max-width: 660px;
  margin: 0 auto 16px;
  line-height: 1.55;
}

/* Privacy Guarantee Banner */
.ai-blur-privacy-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  max-width: 780px;
}
.ai-privacy-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Layout Grid */
.ai-blur-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .ai-blur-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Cards */
.ai-blur-canvas-card,
.ai-blur-controls-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 18px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  box-sizing: border-box;
}

/* Dropzone */
.ai-blur-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  margin: 20px;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ai-blur-dropzone:hover,
.ai-blur-dropzone.dragover {
  border-color: #0284c7;
  background: #f0f9ff;
}
.ai-blur-drop-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.ai-blur-drop-title {
  font-size: 20px;
  font-weight: 750;
  margin: 0 0 6px;
  color: var(--ee-heading, #0f172a);
}
.ai-blur-drop-hint {
  font-size: 14px;
  color: var(--ee-muted, #64748b);
  margin: 0 0 20px;
}
.ai-blur-formats-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.ai-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  background: #e2e8f0;
  color: #475569;
  border-radius: 6px;
}

/* Samples Row */
.ai-blur-samples-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  justify-content: center;
}
.ai-samples-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.ai-sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ai-sample-chip:hover {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0284c7;
}
.ai-sample-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: inline-block;
}

/* Active Workspace Viewport */
.ai-blur-workspace {
  padding: 16px;
}
.ai-blur-viewport-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.ai-blur-status-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-badge-success {
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 8px;
}
.ai-badge-subtle {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

/* View Mode Tabs */
.ai-blur-view-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.ai-tab-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ai-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Stage Container & Interactive Overlay */
.ai-blur-stage-container {
  position: relative;
  width: 100%;
  min-height: 380px;
  max-height: 640px;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.ai-blur-stage-canvas {
  max-width: 100%;
  max-height: 640px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.ai-blur-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* Face Bounding Box */
.ai-face-box {
  position: absolute;
  border: 2px solid #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  box-sizing: border-box;
  cursor: move;
  border-radius: 8px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ai-face-box:hover,
.ai-face-box.selected {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.ai-face-box.disabled {
  border-color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border-style: dashed;
}

/* Face Box Label Pill */
.ai-box-label {
  position: absolute;
  top: -22px;
  left: 0;
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 750;
  padding: 1px 6px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
}
.ai-face-box.disabled .ai-box-label {
  background: #64748b;
}

/* Box Resize Handles */
.ai-box-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid #0284c7;
  border-radius: 50%;
  box-sizing: border-box;
}
.ai-handle-nw { top: -5px; left: -5px; cursor: nwse-resize; }
.ai-handle-ne { top: -5px; right: -5px; cursor: nesw-resize; }
.ai-handle-sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
.ai-handle-se { bottom: -5px; right: -5px; cursor: nwse-resize; }

/* Box Quick Delete Handle */
.ai-box-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Comparison Split Slider */
.ai-blur-split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  transform: translateX(-50%);
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  outline: none;
}
.ai-split-divider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
.ai-split-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.ai-split-arrow {
  font-size: 10px;
  color: #0f172a;
  font-weight: 800;
}

/* Loading Overlay */
.ai-blur-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  z-index: 20;
}
.ai-blur-spinner {
  width: 40px;
  height: 40px;
  border: 3.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
}
@keyframes ai-spin {
  to { transform: rotate(360deg); }
}
.ai-blur-loading-label {
  font-size: 14px;
  font-weight: 600;
}

/* Human Review Notice Bar */
.ai-blur-notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-top: 12px;
  line-height: 1.5;
}
.ai-notice-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* Controls Card Sections */
.ai-blur-controls-card {
  padding: 24px;
}
.ai-blur-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}
.ai-meta-name {
  font-size: 13.5px;
  font-weight: 750;
  display: block;
}
.ai-meta-dims {
  font-size: 11.5px;
  color: var(--ee-muted, #64748b);
}

.ai-ctrl-section {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
}
.ai-ctrl-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.ai-ctrl-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ai-ctrl-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ee-heading, #0f172a);
  margin: 0 0 12px;
}

/* Effect Radios Grid */
.ai-effect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ai-effect-card {
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #ffffff);
}
.ai-effect-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ai-effect-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}
.ai-effect-card.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px #0284c7;
}
.ai-effect-preview {
  width: 100%;
  height: 38px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.ai-effect-preview-strong {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  filter: blur(6px);
  transform: scale(0.9);
}
.ai-effect-preview-gaussian {
  background: linear-gradient(135deg, #64748b, #94a3b8);
  filter: blur(4px);
  transform: scale(0.9);
}
.ai-effect-preview-pixelate {
  background: repeating-conic-gradient(#0284c7 0% 25%, #bae6fd 0% 50%) 50% / 12px 12px;
}
.ai-effect-preview-solid {
  background: #18181b;
}
.ai-effect-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--ee-heading, #0f172a);
}
.ai-effect-desc {
  font-size: 11px;
  color: var(--ee-muted, #64748b);
}

/* Sliders */
.ai-slider-row {
  margin-bottom: 14px;
}
.ai-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 6px;
}
.ai-slider-val {
  color: #0284c7;
  font-weight: 800;
}
input[type="range"] {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  accent-color: #0284c7;
}
.ai-hint-small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

/* Shape Group */
.ai-shape-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.ai-shape-label {
  font-size: 12.5px;
  font-weight: 650;
}
.ai-btn-group {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.ai-shape-btn {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
}
.ai-shape-btn.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Face List */
.ai-face-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  background: #fafafa;
  margin-bottom: 8px;
}
.ai-empty-faces {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}
.ai-face-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
  transition: background-color 0.1s ease;
}
.ai-face-item:last-child {
  border-bottom: none;
}
.ai-face-item:hover {
  background: #f1f5f9;
}
.ai-face-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-face-item-title {
  font-weight: 650;
}
.ai-face-item-score {
  font-size: 11px;
  color: #64748b;
}
.ai-btn-icon-del {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 14px;
}
.ai-btn-icon-del:hover {
  color: #ef4444;
  background: #fee2e2;
}

.ai-face-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.ai-btn-link {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.ai-btn-link:hover {
  text-decoration: underline;
}
.ai-sep {
  color: #cbd5e1;
}

/* Advanced Detection Settings */
.ai-advanced-details {
  margin-bottom: 22px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 10px 14px;
  background: #f8fafc;
}
.ai-advanced-summary {
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  color: #334155;
}
.ai-advanced-content {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.ai-model-select-row {
  margin-top: 10px;
}
.ai-model-select-row label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 4px;
}
.ai-select {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  color: #0f172a;
}

/* Export Section */
.ai-export-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.ai-export-field label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 4px;
}
.ai-quality-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-quality-val {
  font-size: 12px;
  font-weight: 750;
  color: #0284c7;
  min-width: 34px;
}
.ai-export-clean-note {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  margin: 10px 0 0;
}

/* Common Buttons */
.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 750;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  text-decoration: none;
}
.ai-blur-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 750;
  border-radius: 12px;
  cursor: pointer;
  padding: 11px 22px;
  border: none;
}
.ai-btn-primary {
  background: #0284c7;
  color: #ffffff !important;
}
.ai-btn-primary:hover {
  background: #0369a1;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.ai-btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 8px 14px;
}
.ai-btn-outline:hover {
  border-color: #0284c7;
  color: #0284c7;
}
.ai-btn-sm {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}
.ai-btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}
.ai-btn-block {
  width: 100%;
}
.ai-btn-text {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* RTL Support */
[dir="rtl"] .ai-blur-layout {
  direction: rtl;
}
[dir="rtl"] .ai-box-label {
  left: auto;
  right: 0;
}
[dir="rtl"] .ai-box-delete {
  right: auto;
  left: -10px;
}

/* AI Blur Faces Dark Mode */
:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-blur-controls-card,
:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-blur-canvas-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-blur-dropzone {
  background: #0f172a !important;
  border-color: #334155 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-blur-drop-title {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-blur-drop-hint {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-ctrl-title {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-effect-card {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-effect-card:hover {
  background: #1e293b !important;
  border-color: #38bdf8 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-effect-card.active {
  background: #0c4a6e !important;
  border-color: #38bdf8 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-effect-name {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-effect-card.active .ai-effect-name {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-effect-desc {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-effect-card.active .ai-effect-desc {
  color: #bae6fd !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-slider-header label {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-slider-val {
  color: #38bdf8 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-hint-small {
  color: #94a3b8 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-shape-label {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-shape-btn {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-shape-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-advanced-summary {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-empty-faces {
  color: #94a3b8 !important;
  background: #0f172a !important;
  border-color: #334155 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-blur-meta-bar {
  background: #0f172a !important;
  border-bottom-color: #334155 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-meta-name {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-meta-dims {
  color: #94a3b8 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-samples-label {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-sample-chip {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-pill {
  background: #334155 !important;
  color: #cbd5e1 !important;
}

/* EasyEdit AI Image Upscaler Scoped Styles */

/* Standalone Tool Page Visibility */
body #standaloneQuickToolPage #aiUpscalerPanel {
  display: none;
}
body #standaloneQuickToolPage.ee-upscaler-mode > #aiUpscalerPanel {
  display: block;
  flex: none;
}
body #standaloneQuickToolPage.ee-upscaler-mode > :not(#qtStickyNavigation):not(#aiUpscalerPanel) {
  display: none !important;
}
body #standaloneQuickToolPage.ee-upscaler-mode #btnQtReadSeoBlog {
  display: none !important;
}

#aiUpscalerPanel {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  font-family: inherit;
  box-sizing: border-box;
  color: var(--text-main, #0f172a);
}

.ai-upscaler-privacy-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #059669;
  margin: 0 auto 24px;
  max-width: 680px;
  text-align: center;
}

[data-theme="dark"] .ai-upscaler-privacy-banner {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.ai-upscaler-privacy-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Upload Dropzone */
.ai-upscaler-dropzone {
  border: 2px dashed var(--border-color, #cbd5e1);
  border-radius: 20px;
  background: var(--card-bg, #ffffff);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.ai-upscaler-dropzone:hover,
.ai-upscaler-dropzone.dragover {
  border-color: var(--ee-accent, #0b5cff);
  background: rgba(11, 92, 255, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(11, 92, 255, 0.08);
}

.ai-upscaler-upload-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(11, 92, 255, 0.08);
  color: var(--ee-accent, #0b5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.2s;
}

.ai-upscaler-dropzone:hover .ai-upscaler-upload-icon {
  transform: scale(1.08);
}

.ai-upscaler-upload-icon svg {
  width: 32px;
  height: 32px;
}

.ai-upscaler-dropzone h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-main, #0f172a);
}

.ai-upscaler-dropzone p {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  margin: 0 0 20px;
}

.ai-upscaler-btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ee-accent, #0b5cff);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(11, 92, 255, 0.28);
}

.ai-upscaler-btn-browse:hover {
  background: #0047e0;
  transform: translateY(-1px);
}

/* Sample chips */
.ai-upscaler-samples {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ai-upscaler-samples-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.ai-sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main, #0f172a);
  cursor: pointer;
  transition: all 0.2s;
}

.ai-sample-chip:hover {
  border-color: var(--ee-accent, #0b5cff);
  color: var(--ee-accent, #0b5cff);
  background: rgba(11, 92, 255, 0.04);
}

.ai-sample-thumb {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background-size: cover;
  background-position: center;
}

/* Workspace Layout */
.ai-upscaler-workspace {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .ai-upscaler-workspace {
    grid-template-columns: 1fr;
  }
}

/* Stage container */
.ai-upscaler-stage-container {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.ai-upscaler-viewport-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-soft, #f8fafc);
  font-size: 13.5px;
  font-weight: 600;
}

.ai-upscaler-viewport-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.ai-upscaler-tab-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all 0.2s;
}

.ai-upscaler-tab-btn.active {
  background: var(--card-bg, #ffffff);
  color: var(--ee-accent, #0b5cff);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ai-upscaler-stage-wrap {
  position: relative;
  flex: 1;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  background: repeating-conic-gradient(#f1f5f9 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}

[data-theme="dark"] .ai-upscaler-stage-wrap {
  background: repeating-conic-gradient(#1e293b 0% 25%, #0f172a 0% 50%) 50% / 16px 16px;
}

.ai-upscaler-comparison-box {
  position: relative;
  max-width: 100%;
  max-height: 540px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
}

.ai-upscaler-comparison-box img,
.ai-upscaler-comparison-box canvas {
  display: block;
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
}

.ai-upscaler-layer-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ai-upscaler-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  cursor: ew-resize;
  z-index: 10;
}

.ai-upscaler-slider-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.ai-upscaler-slider-knob svg {
  width: 20px;
  height: 20px;
}

.ai-upscaler-tag {
  position: absolute;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 12;
}

.ai-upscaler-tag-original {
  left: 14px;
}

.ai-upscaler-tag-upscaled {
  right: 14px;
}

/* Sidebar Controls */
.ai-upscaler-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-upscaler-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.ai-upscaler-card-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Scale Factor Selector (2x / 4x) */
.ai-upscaler-factor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ai-factor-btn {
  padding: 14px 12px;
  border-radius: 12px;
  border: 2px solid var(--border-color, #e2e8f0);
  background: var(--card-bg, #ffffff);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.ai-factor-btn:hover {
  border-color: var(--ee-accent, #0b5cff);
}

.ai-factor-btn.active {
  border-color: var(--ee-accent, #0b5cff);
  background: rgba(11, 92, 255, 0.05);
}

.ai-factor-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-main, #0f172a);
  display: block;
}

.ai-factor-btn.active .ai-factor-val {
  color: var(--ee-accent, #0b5cff);
}

.ai-factor-desc {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  display: block;
  margin-top: 4px;
}

/* Dimensions Comparison */
.ai-dims-box {
  background: var(--bg-soft, #f8fafc);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.ai-dims-label {
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

.ai-dims-val {
  font-weight: 800;
  color: var(--text-main, #0f172a);
}

.ai-dims-arrow {
  color: var(--ee-accent, #0b5cff);
  font-weight: 900;
}

/* Action Buttons */
.ai-btn-upscale {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--ee-accent, #0b5cff);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(11, 92, 255, 0.28);
  transition: all 0.2s;
}

.ai-btn-upscale:hover {
  background: #0047e0;
  transform: translateY(-1px);
}

.ai-btn-upscale:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ai-btn-cancel {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border-color, #e2e8f0);
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.ai-btn-cancel:hover {
  background: rgba(239, 68, 68, 0.06);
  border-color: #ef4444;
}

/* Progress bar */
.ai-upscaler-progress-wrap {
  margin-top: 14px;
  display: none;
}

.ai-upscaler-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-muted, #64748b);
}

.ai-upscaler-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border-color, #e2e8f0);
  overflow: hidden;
}

.ai-upscaler-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0b5cff, #38bdf8);
  border-radius: 999px;
  transition: width 0.2s linear;
}

/* Export bar */
.ai-export-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ai-export-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--card-bg, #ffffff);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  cursor: pointer;
  transition: all 0.2s;
}

.ai-export-btn:hover {
  border-color: var(--ee-accent, #0b5cff);
  color: var(--ee-accent, #0b5cff);
  background: rgba(11, 92, 255, 0.04);
}

.ai-export-btn.primary {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.ai-export-btn.primary:hover {
  background: #059669;
}

/* Reset Button */
.ai-btn-reset {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: transparent;
  color: var(--text-muted, #64748b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}

.ai-btn-reset:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main, #0f172a);
}

/* Arabic RTL support */
[dir="rtl"] #aiUpscalerPanel {
  text-align: right;
}

[dir="rtl"] .ai-upscaler-tag-original {
  left: auto;
  right: 14px;
}

[dir="rtl"] .ai-upscaler-tag-upscaled {
  right: auto;
  left: 14px;
}

/* AI Image Upscaler Dark Mode */
:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-upscaler-dropzone {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-upscaler-dropzone h3 {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) :is(.ai-upscaler-dropzone .ai-upscaler-drop-sub, .ai-upscaler-dropzone p, .ai-upscaler-drop-hint) {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-upscaler-sample-btn {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-upscaler-sample-btn:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-upscaler-controls-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-upscaler-controls-card h3 {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-upscaler-samples-label {
  color: #cbd5e1 !important;
}

/* ==========================================================================
   EasyEdit AI Colorize Image — Scoped UI Stylesheet
   ========================================================================== */

/* Standalone Tool Page Visibility */
body #standaloneQuickToolPage #aiColorizePanel {
  display: none;
}
body #standaloneQuickToolPage.ee-colorize-mode > #aiColorizePanel {
  display: block;
  flex: none;
}
body #standaloneQuickToolPage.ee-colorize-mode > :not(#qtStickyNavigation):not(#aiColorizePanel) {
  display: none !important;
}
body #standaloneQuickToolPage.ee-colorize-mode #btnQtReadSeoBlog {
  display: none !important;
}

#aiColorizePanel {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  box-sizing: border-box;
  font-family: inherit;
}

/* Privacy Shield Banner */
.ai-colorize-privacy-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

[data-theme="dark"] .ai-colorize-privacy-banner,
.theme-dark .ai-colorize-privacy-banner {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.ai-colorize-privacy-banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dropzone Area */
.ai-colorize-dropzone {
  background: var(--surface-color, #ffffff);
  border: 2px dashed var(--border-color, #cbd5e1);
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
  max-width: 760px;
  margin: 0 auto 32px;
}

.ai-colorize-dropzone:hover,
.ai-colorize-dropzone.dragover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.04);
  transform: translateY(-2px);
}

.ai-colorize-upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .ai-colorize-upload-icon,
.theme-dark .ai-colorize-upload-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.ai-colorize-upload-icon svg {
  width: 32px;
  height: 32px;
}

.ai-colorize-dropzone h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-main, #0f172a);
}

.ai-colorize-dropzone p {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  margin: 0 0 20px;
}

.ai-colorize-btn-browse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ai-colorize-btn-browse:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Sample Chips */
.ai-colorize-samples {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-colorize-samples-label {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.ai-sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main, #1e293b);
  cursor: pointer;
  transition: all 0.15s;
}

.ai-sample-chip:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.ai-sample-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Workspace Grid */
.ai-colorize-workspace {
  display: none; /* revealed when image loaded */
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

/* Top Toolbar */
.ai-colorize-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
}

.ai-colorize-toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-colorize-intensity-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-colorize-intensity-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-colorize-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color, #e2e8f0);
  outline: none;
  cursor: pointer;
}

.ai-colorize-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
  transition: transform 0.1s;
}

.ai-colorize-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.ai-colorize-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.ai-colorize-intensity-badge {
  font-size: 13px;
  font-weight: 700;
  color: #d97706;
  min-width: 42px;
  text-align: right;
}

[data-theme="dark"] .ai-colorize-intensity-badge,
.theme-dark .ai-colorize-intensity-badge {
  color: #fbbf24;
}

.ai-colorize-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.ai-colorize-status-chip.color-detected {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

.ai-colorize-status-chip.mono-detected {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* Comparison Container */
.ai-colorize-comparison-container {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 70vh;
  background: #090d16;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base layer: Original Black & White (Right side) */
.ai-colorize-layer-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-colorize-layer-before img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Overlay layer: Colorized Result (Left side) */
.ai-colorize-layer-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ai-colorize-layer-after canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Draggable Divider Handle */
.ai-colorize-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.ai-colorize-slider-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
}

.ai-colorize-slider-knob svg {
  width: 18px;
  height: 18px;
}

/* Floating Badges */
.ai-colorize-badge-left,
.ai-colorize-badge-right {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  z-index: 5;
  pointer-events: none;
}

.ai-colorize-badge-left {
  left: 14px;
}

.ai-colorize-badge-right {
  right: 14px;
}

/* Split Presets Bar */
.ai-colorize-presets-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.ai-colorize-preset-btn {
  padding: 6px 14px;
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  transition: all 0.15s;
}

.ai-colorize-preset-btn:hover,
.ai-colorize-preset-btn.active {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border-color: #f59e0b;
}

[data-theme="dark"] .ai-colorize-preset-btn.active,
.theme-dark .ai-colorize-preset-btn.active {
  color: #fbbf24;
}

/* Progress & Status Wrap */
.ai-colorize-progress-wrap {
  display: none;
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}

.ai-colorize-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-colorize-status-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #0f172a);
}

.ai-colorize-progress-percent {
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
}

.ai-colorize-progress-track {
  width: 100%;
  height: 8px;
  background: var(--border-color, #e2e8f0);
  border-radius: 4px;
  overflow: hidden;
}

.ai-colorize-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  border-radius: 4px;
  transition: width 0.25s ease-out;
}

/* Export / Actions Footer */
.ai-colorize-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
}

.ai-colorize-downloads {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-colorize-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
  transition: all 0.15s;
}

.ai-colorize-btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.ai-colorize-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #1e293b);
  cursor: pointer;
  transition: all 0.15s;
}

.ai-colorize-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Arabic RTL Layout */
[dir="rtl"] #aiColorizePanel .ai-colorize-slider-handle {
  /* In RTL, left and right clip-paths coordinate correctly */
}

[dir="rtl"] #aiColorizePanel .ai-colorize-badge-left {
  left: auto;
  right: 14px;
}

[dir="rtl"] #aiColorizePanel .ai-colorize-badge-right {
  right: auto;
  left: 14px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .ai-colorize-comparison-container {
    height: 380px;
  }
  .ai-colorize-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .ai-colorize-toolbar-group {
    justify-content: space-between;
  }
  .ai-colorize-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ai-colorize-downloads {
    width: 100%;
    justify-content: space-between;
  }
}

/* AI Colorize Dark Mode */
:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-colorize-dropzone {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-colorize-dropzone h3 {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) :is(.ai-colorize-dropzone .ai-colorize-drop-sub, .ai-colorize-dropzone p, .ai-colorize-drop-hint) {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-colorize-sample-btn {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-colorize-sample-btn:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-colorize-controls-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-colorize-controls-card h3 {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-colorize-samples-label {
  color: #cbd5e1 !important;
}

/* EasyEdit AI Art Generator — Scoped Stylesheet */

/* Standalone Tool Page Visibility */
body #standaloneQuickToolPage #aiArtGeneratorPanel {
  display: none;
}
body #standaloneQuickToolPage.ee-art-generator-mode > #aiArtGeneratorPanel {
  display: block;
  flex: none;
}
body #standaloneQuickToolPage.ee-art-generator-mode > :not(#qtStickyNavigation):not(#aiArtGeneratorPanel) {
  display: none !important;
}
body #standaloneQuickToolPage.ee-art-generator-mode #btnQtReadSeoBlog {
  display: none !important;
}

#standaloneQuickToolPage:not(.ee-art-generator-mode) #aiArtGeneratorPanel {
  display: none !important;
}

/* Base Panel Container */
.ai-art-panel-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* Privacy & Capability Banners */
.ai-art-privacy-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  color: #059669;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ai-art-privacy-banner svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.ai-art-gpu-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 13.5px;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.ai-art-gpu-banner.gpu-supported {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.ai-art-gpu-banner.gpu-unsupported {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.ai-art-gpu-banner svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.ai-art-gpu-banner strong {
  font-weight: 800;
}

/* Generator Card / Form Container */
.ai-art-card {
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}

/* Prompt Input Group */
.ai-art-prompt-group {
  margin-bottom: 20px;
}

.ai-art-prompt-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ai-art-prompt-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main, #1e293b);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-art-prompt-counter {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.ai-art-prompt-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  font-family: inherit;
  color: var(--text-main, #1e293b);
  background: var(--background-color, #f8fafc);
  border: 1.5px solid var(--border-color, #cbd5e1);
  border-radius: 12px;
  resize: vertical;
  min-height: 96px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-art-prompt-textarea:focus {
  outline: none;
  border-color: #0b5cff;
  box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.15);
  background: #ffffff;
}

/* Prompt Sample Inspiration Chips */
.ai-art-samples-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.ai-art-samples-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

.ai-art-sample-chip {
  padding: 5px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ai-art-sample-chip:hover {
  background: #e2e8f0;
  color: #0b5cff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Style Presets Chips */
.ai-art-section-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main, #1e293b);
  margin-bottom: 10px;
}

.ai-art-styles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ai-art-style-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface-color, #ffffff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ai-art-style-chip:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.ai-art-style-chip.active {
  background: #eff6ff;
  border-color: #0b5cff;
  color: #0b5cff;
  box-shadow: 0 0 0 2px rgba(11, 92, 255, 0.2);
}

/* Seed & Configuration Row */
.ai-art-options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, #f1f5f9);
  margin-bottom: 24px;
}

.ai-art-seed-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-art-seed-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

.ai-art-seed-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-art-seed-input {
  width: 120px;
  padding: 6px 10px;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 8px;
  font-size: 13px;
  font-family: monospace;
  color: var(--text-main, #1e293b);
  background: var(--surface-color, #ffffff);
}

.ai-art-btn-dice {
  padding: 6px 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s ease;
}

.ai-art-btn-dice:hover {
  background: #e2e8f0;
}

.ai-art-random-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #475569);
  cursor: pointer;
}

/* Action Buttons */
.ai-art-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-art-btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: #0b5cff;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 92, 255, 0.3);
  transition: all 0.2s ease;
}

.ai-art-btn-generate:hover:not(:disabled) {
  background: #0047d4;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 92, 255, 0.4);
}

.ai-art-btn-generate:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.ai-art-btn-cancel {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ai-art-btn-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Progress Section */
.ai-art-progress-wrap {
  margin-top: 20px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: none;
}

.ai-art-progress-wrap.active {
  display: block;
}

.ai-art-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.ai-art-status-text {
  font-weight: 700;
  color: var(--text-main, #1e293b);
}

.ai-art-progress-pct {
  font-weight: 800;
  color: #0b5cff;
  font-family: monospace;
}

.ai-art-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.ai-art-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0b5cff, #38bdf8);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Result Workspace */
.ai-art-workspace {
  display: none;
  margin-top: 28px;
  padding: 24px;
  background: var(--surface-color, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.ai-art-workspace.active {
  display: block;
}

.ai-art-result-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ai-art-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 512px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color, #cbd5e1);
  background: repeating-conic-gradient(#f1f5f9 0% 25%, #ffffff 0% 50%) 50% / 16px 16px;
}

.ai-art-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.ai-art-meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted, #64748b);
  padding: 6px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
}

.ai-art-meta-item strong {
  color: var(--text-main, #1e293b);
  font-weight: 700;
}

/* Download & Action Toolbar */
.ai-art-export-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.ai-art-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #0b5cff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-art-btn-download:hover {
  background: #0047d4;
  transform: translateY(-1px);
}

.ai-art-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-art-btn-secondary:hover {
  background: #e2e8f0;
  color: #0b5cff;
}

/* Cache & Local Storage Management Footer */
.ai-art-cache-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 14px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--text-muted, #64748b);
}

.ai-art-cache-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-art-btn-clear-cache {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #dc2626;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-art-btn-clear-cache:hover {
  background: #fee2e2;
  border-color: #f87171;
}

/* Native RTL layout support */
[dir="rtl"] .ai-art-privacy-banner,
[dir="rtl"] .ai-art-gpu-banner,
[dir="rtl"] .ai-art-style-chip,
[dir="rtl"] .ai-art-actions-row,
[dir="rtl"] .ai-art-export-toolbar {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .ai-art-prompt-label-row,
[dir="rtl"] .ai-art-options-row,
[dir="rtl"] .ai-art-cache-footer {
  flex-direction: row-reverse;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ai-art-panel-container {
    padding: 16px 12px 36px;
  }
  .ai-art-card {
    padding: 16px;
  }
  .ai-art-options-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ai-art-actions-row {
    width: 100%;
  }
  .ai-art-btn-generate {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .ai-art-export-toolbar {
    flex-direction: column;
  }
  .ai-art-btn-download,
  .ai-art-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* AI Art Generator Dark Mode */
:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-prompt-label {
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-prompt-counter {
  color: #94a3b8 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-prompt-textarea {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-prompt-textarea:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  background: #0f172a !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-samples-label {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-sample-chip {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-sample-chip:hover {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-style-pill {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) :is(.ai-art-style-pill.active, .ai-art-style-pill:hover) {
  background: rgba(11, 92, 255, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-option-label {
  color: #cbd5e1 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-seed-input {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-gpu-banner.gpu-supported {
  background: rgba(22, 101, 52, 0.25) !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
  color: #86efac !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-gpu-banner.gpu-unsupported {
  background: rgba(146, 64, 14, 0.25) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fde047 !important;
}

:is(body.theme-dark, html.dark, [data-theme="dark"]) .ai-art-styles-label {
  color: #f8fafc !important;
}

/* ================================================================ */
/* EASYEDIT SIMILAR IMAGE CREATION — SCOPED STYLESHEET               */
/* Scoped to #standaloneQuickToolPage.ee-similar-image-mode         */
/* ================================================================ */

/* Standalone Tool Page Visibility */
body #standaloneQuickToolPage #similarImagePanel {
  display: none;
}
body #standaloneQuickToolPage.ee-similar-image-mode > #similarImagePanel {
  display: block !important;
  flex: none;
}
body #standaloneQuickToolPage.ee-similar-image-mode > :not(#qtStickyNavigation):not(#similarImagePanel) {
  display: none !important;
}
body #standaloneQuickToolPage.ee-similar-image-mode #btnQtReadSeoBlog {
  display: none !important;
}

#standaloneQuickToolPage.ee-similar-image-mode {
  display: block !important;
}

#standaloneQuickToolPage.ee-similar-image-mode #qtPreviewWorkspace,
#standaloneQuickToolPage.ee-similar-image-mode #qtUploadDropzone,
#standaloneQuickToolPage.ee-similar-image-mode #qtDynamicControlsContainer,
#standaloneQuickToolPage.ee-similar-image-mode #btnQtExecuteAction,
#standaloneQuickToolPage.ee-similar-image-mode #qtStatusMessage,
#standaloneQuickToolPage.ee-similar-image-mode #qtResultBanner,
#standaloneQuickToolPage.ee-similar-image-mode #qtFilesQueueBox,
#standaloneQuickToolPage.ee-similar-image-mode #qtHeaderLeadTitle,
#standaloneQuickToolPage.ee-similar-image-mode #qtHeaderLeadSubtitle,
#standaloneQuickToolPage.ee-similar-image-mode #aiBlurFacesPanel,
#standaloneQuickToolPage.ee-similar-image-mode #aiUpscalerPanel,
#standaloneQuickToolPage.ee-similar-image-mode #aiColorizePanel,
#standaloneQuickToolPage.ee-similar-image-mode #aiArtGeneratorPanel {
  display: none !important;
}

#standaloneQuickToolPage.ee-similar-image-mode #similarImagePanel {
  display: block !important;
}

.similar-image-panel-container {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  box-sizing: border-box;
}

/* Privacy & Hardware Banners */
.similar-privacy-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.similar-privacy-banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.similar-gpu-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}
.similar-gpu-banner.gpu-unsupported {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}
.similar-gpu-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* 2-Column Responsive Workspace Grid */
.similar-workspace-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .similar-workspace-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Controls Column Card */
.similar-controls-card {
  background: var(--bg-panel, #1e1e24);
  border: 1px solid var(--border-color, #2e2e38);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Upload Dropzone */
.similar-dropzone {
  border: 2px dashed var(--border-color, #383848);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
  position: relative;
}
.similar-dropzone:hover,
.similar-dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}
.similar-dropzone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: #38bdf8;
}
.similar-dropzone-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main, #f3f4f6);
  margin-bottom: 4px;
}
.similar-dropzone-hint {
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
}

/* Reference Thumbnail Preview Card */
.similar-ref-preview-card {
  display: none;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color, #2e2e38);
  border-radius: 10px;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.similar-ref-thumb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.similar-ref-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  flex-shrink: 0;
}
.similar-ref-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.similar-ref-filename {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main, #f3f4f6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.similar-ref-specs {
  font-size: 11px;
  color: var(--text-muted, #9ca3af);
}
.similar-btn-change-ref {
  background: transparent;
  border: 1px solid var(--border-color, #383848);
  color: var(--text-muted, #9ca3af);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.similar-btn-change-ref:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* Sample Inspiration Selector */
.similar-samples-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.similar-samples-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #9ca3af);
  width: 100%;
  margin-bottom: 2px;
}
.similar-sample-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color, #2e2e38);
  color: var(--text-main, #e5e7eb);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.similar-sample-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Section Labels & Controls */
.similar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.similar-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #f3f4f6);
}
.similar-section-readout {
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
}

/* Variation Strength Chips & Slider */
.similar-strength-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.similar-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, #2e2e38);
  color: var(--text-main, #e5e7eb);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}
.similar-chip:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
}
.similar-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.similar-range-slider {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
  margin-top: 4px;
}

/* Change Direction Grid */
.similar-directions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.similar-dir-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, #2e2e38);
  color: var(--text-main, #e5e7eb);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.similar-dir-chip:hover {
  border-color: rgba(56, 189, 248, 0.3);
}
.similar-dir-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Prompt Textarea */
.similar-prompt-textarea {
  width: 100%;
  min-height: 64px;
  max-height: 120px;
  padding: 10px 12px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2e2e38);
  border-radius: 8px;
  color: var(--text-main, #f3f4f6);
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.similar-prompt-textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

/* Variations Count Chips */
.similar-count-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.similar-count-chip {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, #2e2e38);
  color: var(--text-main, #e5e7eb);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.similar-count-chip.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Advanced Options Accordion */
.similar-advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #9ca3af);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 0;
  width: 100%;
  text-align: left;
}
.similar-advanced-toggle:hover {
  color: var(--text-main, #f3f4f6);
}
.similar-advanced-body {
  display: none;
  padding-top: 8px;
  flex-direction: column;
  gap: 10px;
}
.similar-advanced-body.open {
  display: flex;
}
.similar-seed-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.similar-seed-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #2e2e38);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-main, #f3f4f6);
  font-size: 12px;
}
.similar-btn-dice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color, #2e2e38);
  color: var(--text-main, #f3f4f6);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

/* Action Buttons */
.similar-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.similar-btn-generate {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  transition: all 0.2s ease;
  min-height: 46px;
}
.similar-btn-generate:hover:not(:disabled) {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.45);
}
.similar-btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.similar-btn-cancel {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
}

/* Progress Indicator */
.similar-progress-wrap {
  display: none;
  flex-direction: column;
  gap: 6px;
}
.similar-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
}
.similar-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}
.similar-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 9999px;
  transition: width 0.2s ease;
}

/* Right Column: Preview & Comparison Card */
.similar-preview-card {
  background: var(--bg-panel, #1e1e24);
  border: 1px solid var(--border-color, #2e2e38);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Before / After Dual-Layer Slider */
.similar-slider-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d12;
  border: 1px solid var(--border-color, #2e2e38);
  user-select: none;
  cursor: ew-resize;
  touch-action: none;
}
.similar-slider-underlay,
.similar-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.similar-slider-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.similar-slider-overlay {
  /* Overlay clipped to left side using CSS var */
  clip-path: inset(0 calc(100% - var(--sim-pos, 50%)) 0 0);
  pointer-events: none;
}

/* Vertical Divider & Draggable Handle */
.similar-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--sim-pos, 50%);
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 10;
}
.similar-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: auto;
  border: 2px solid #38bdf8;
  outline: none;
}
.similar-slider-handle:focus-visible {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.4);
}
.similar-slider-handle svg {
  width: 18px;
  height: 18px;
}

/* Floating Badges */
.similar-tag {
  position: absolute;
  top: 14px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  z-index: 5;
  pointer-events: none;
}
.similar-tag-left {
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.similar-tag-right {
  right: 14px;
  background: rgba(2, 132, 199, 0.85);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

/* Slider Controls Strip */
.similar-slider-controls-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.similar-split-readout {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #9ca3af);
}
.similar-jump-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.similar-jump-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color, #2e2e38);
  color: var(--text-muted, #9ca3af);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.similar-jump-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Multi-Variation Gallery */
.similar-gallery-section {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.similar-gallery-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main, #f3f4f6);
}
.similar-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}
.similar-gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-color, #2e2e38);
  aspect-ratio: 1;
  background: #000;
  cursor: pointer;
  transition: all 0.15s ease;
}
.similar-gallery-item:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}
.similar-gallery-item.active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}
.similar-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.similar-gallery-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Export Toolbar */
.similar-export-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color, #2e2e38);
}
.similar-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.similar-btn-download:hover {
  background: #0369a1;
}
.similar-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color, #2e2e38);
  color: var(--text-main, #e5e7eb);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.similar-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Cache Info Footer */
.similar-cache-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #2e2e38);
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-muted, #9ca3af);
  gap: 12px;
  flex-wrap: wrap;
}
.similar-cache-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.similar-btn-clear-cache {
  background: transparent;
  border: 1px solid var(--border-color, #383848);
  color: var(--text-muted, #9ca3af);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.similar-btn-clear-cache:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* RTL Layout Support */
[dir="rtl"] #standaloneQuickToolPage.ee-similar-image-mode .similar-tag-left {
  left: auto;
  right: 14px;
}
[dir="rtl"] #standaloneQuickToolPage.ee-similar-image-mode .similar-tag-right {
  right: auto;
  left: 14px;
}
[dir="rtl"] #standaloneQuickToolPage.ee-similar-image-mode .similar-advanced-toggle {
  text-align: right;
}

  