/* Slider Design Studio - Canva-like UI */

/* ---- Studio UI tipografisi: tüm yüzeylerde Inter ----
   Bu CSS admin hub, frontend ayarlar ve ürün stüdyosunda yüklendiği için
   @font-face burada tanımlanır (PHP inline tanımlarından bağımsız). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/Inter-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../font/Inter-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../font/Inter-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../font/Inter-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../font/Inter-Black.ttf") format("truetype");
}

/* Stüdyo kökü + body'ye eklenen tüm taşan katmanlar (menü, modal, flyout,
   yüzen araç çubukları) aynı UI fontunu kullanır. Tuvaldeki tasarım
   öğeleri kendi inline font-family değerlerini korur. */
.awp-studio-root,
.awp-slider-studio,
.awp-slider-studio-rightbar,
.awp-studio-context-menu,
.awp-studio-contextual-bar,
.awp-studio-meta-strip,
.awp-studio-selection-float-toolbar,
.awp-studio-float-color,
.awp-studio-safe-toast,
.awp-studio-font-picker-panel,
.awp-studio-ui-modal,
.awp-studio-busy-overlay,
.awp-studio-print-ready-modal,
.awp-ps-color-flyouts,
.awp-ps-keys,
.awp-ps-keys-palette-host,
.awp-ps-guide-settings-panel,
.awp-studio-help-menu,
.awp-studio-help-modal,
.awp-studio-tour-popover,
.awp-studio-help-tip {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* Native form kontrolleri fontu miras almaz — Inter'e hizala */
.awp-studio-root button,
.awp-studio-root input,
.awp-studio-root select,
.awp-studio-root textarea,
.awp-slider-studio button,
.awp-slider-studio input,
.awp-slider-studio select,
.awp-slider-studio textarea,
.awp-slider-studio-rightbar button,
.awp-slider-studio-rightbar input,
.awp-slider-studio-rightbar select,
.awp-slider-studio-rightbar textarea,
.awp-studio-context-menu button,
.awp-studio-contextual-bar button,
.awp-studio-contextual-bar input,
.awp-studio-contextual-bar select,
.awp-studio-selection-float-toolbar button,
.awp-studio-font-picker-panel button,
.awp-studio-font-picker-panel input,
.awp-studio-ui-modal button,
.awp-studio-ui-modal input,
.awp-studio-ui-modal textarea,
.awp-ps-color-flyouts button,
.awp-ps-color-flyouts input,
.awp-ps-keys button,
.awp-ps-guide-settings-panel button,
.awp-ps-guide-settings-panel input,
.awp-ps-guide-settings-panel select {
  font-family: inherit;
}

#tab-panel-slider-studio .ders-notu-admin-card-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  padding: 16px 20px;
  border-radius: 6px 6px 0 0;
  margin: -1px -1px 0 -1px;
}

#tab-panel-slider-studio .ders-notu-admin-card-title,
#tab-panel-slider-studio .ders-notu-admin-card-description {
  color: #ffffff;
}

/* Canva/Express-style root: sol ray + panel + canvas */
.awp-studio-root,
.awp-slider-studio,
.awp-studio-context-menu,
.awp-studio-contextual-bar {
  --awp-studio-slider-thumb: #ff5c61;
  --awp-studio-slider-thumb-size: 16px;
  --awp-studio-slider-track-h: 8px;
  --awp-studio-slider-track: #722428;
  --awp-studio-slider-track-on-dark: #722428;
  --awp-studio-slider-frame: 6px;
  --awp-studio-slider-frame-bg: #c5ccd6;
  --awp-studio-slider-frame-hi: rgba(255, 255, 255, 0.72);
  --awp-studio-slider-frame-sh: rgba(15, 23, 42, 0.38);
}

.awp-studio-context-menu {
  --awp-studio-slider-frame-bg: #3a4252;
  --awp-studio-slider-frame-hi: rgba(255, 255, 255, 0.16);
  --awp-studio-slider-frame-sh: rgba(0, 0, 0, 0.55);
}

.awp-studio-root,
.awp-slider-studio {
  --awp-studio-chrome-row-height: 48px;
  --awp-studio-tools-rail-width: 58px;
  --awp-studio-rail-btn-size: 40px;
  --awp-studio-rail-btn-gap: 6px;
  --awp-studio-rail-group-gap: 12px;
  --awp-studio-item-hover-border: #6366f1;
  --awp-studio-item-hover-bg: #eef2ff;
  --awp-studio-item-hover-shadow:
    0 8px 22px rgba(79, 70, 229, 0.2),
    0 0 0 2px rgba(99, 102, 241, 0.32);
  --awp-studio-item-hover-transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
  position: relative;
  display: flex;
  gap: 0;
  align-items: stretch;
  min-height: 640px;
  height: calc(100vh - 200px);
  max-height: 900px;
  background: #e8ecf1;
  border-radius: 12px;
  overflow: hidden;
}

/* Admin Slider Studio — tam ekran çalışma alanı */
html.awp-studio-admin-fs-html,
html.awp-studio-admin-fs-html body.awp-studio-admin-fs {
  overflow: hidden !important;
  height: 100% !important;
}

body.awp-studio-admin-fs {
  overflow: hidden !important;
}

body.awp-studio-admin-fs #wpadminbar,
body.awp-studio-admin-fs #adminmenumain,
body.awp-studio-admin-fs #adminmenuback,
body.awp-studio-admin-fs #adminmenuwrap {
  display: none !important;
}

body.awp-studio-admin-fs #wpcontent,
body.awp-studio-admin-fs #wpbody,
body.awp-studio-admin-fs #wpbody-content {
  margin: 0 !important;
  padding: 0 !important;
}

body.awp-studio-admin-fs .ders-notu-admin-wrap > .ders-notu-admin-header,
body.awp-studio-admin-fs .ders-notu-admin-tabs,
body.awp-studio-admin-fs .ders-notu-admin-sidebar,
body.awp-studio-admin-fs .ders-notu-admin-nav,
body.awp-studio-admin-fs #tab-panel-slider-studio .ders-notu-admin-card-header,
body.awp-studio-admin-fs #tab-panel-slider-studio > .ders-notu-admin-card > .ders-notu-admin-card-body > .ders-notu-admin-field-grid-2,
body.awp-studio-admin-fs .notice,
body.awp-studio-admin-fs .update-nag {
  display: none !important;
}

body.awp-studio-admin-fs #wpwrap,
body.awp-studio-admin-fs #wpcontent,
body.awp-studio-admin-fs #wpbody,
body.awp-studio-admin-fs #wpbody-content,
body.awp-studio-admin-fs .ders-notu-admin-wrap,
body.awp-studio-admin-fs .ders-notu-admin-content,
body.awp-studio-admin-fs .ders-notu-admin-main {
  height: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
}

body.awp-studio-admin-fs #tab-panel-slider-studio,
body.awp-studio-admin-fs #tab-panel-slider-studio.active {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #e8ecf1 !important;
  overflow: hidden !important;
}

body.awp-studio-admin-fs #tab-panel-slider-studio .ders-notu-admin-card,
body.awp-studio-admin-fs #tab-panel-slider-studio .ders-notu-admin-card-body {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  height: 100% !important;
  max-width: none !important;
}

body.awp-studio-admin-fs #awp-slider-studio.awp-studio-root,
body.awp-studio-admin-fs .awp-studio-root:not(.awp-product-studio-mode) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100001 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body.awp-studio-admin-fs .awp-studio-admin-fs-btn.is-active {
  background: rgba(249, 115, 22, 0.2);
  color: #ea580c;
}

.awp-studio-left-toolbar {
  order: 1;
}

/* Tuval, sol rayın hemen yanında kalsın — panel overlay, layout’u itmesin */
.awp-studio-canvas-area,
.awp-slider-studio-canvas {
  order: 2;
}

.awp-studio-right-panel-wrap {
  order: 3;
}

/* Sol: Express tarzı koyu ray (ikon + etiket) — slider densitesi ürün stüdyosuna yakın */
.awp-studio-left-toolbar {
  width: var(--awp-studio-left-rail-width, 72px);
  flex: 0 0 var(--awp-studio-left-rail-width, 72px);
  background: #2c2c2c;
  border-right: 1px solid #1f1f1f;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 6px 3px;
  gap: 2px;
  position: relative;
  z-index: 90;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

.awp-studio-left-toolbar > [data-panel="preflight"] {
  margin-top: auto;
}

#awp-studio-left-toolbar.awp-studio-left-toolbar > .awp-studio-toolbar-icon,
.awp-studio-left-toolbar > .awp-studio-toolbar-icon {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 42px;
  min-width: 0 !important;
  border: none;
  box-shadow: none;
  border-radius: 3px;
  color: #d4d4d4;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1px;
  padding: 3px 2px !important;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 1.1;
  font-size: inherit;
}

.awp-studio-left-toolbar > .awp-studio-toolbar-icon:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-radius: 3px;
  box-shadow: none;
}

.awp-studio-left-toolbar > .awp-studio-toolbar-icon[aria-pressed="true"] {
  background: #4f46e5;
  color: #fff;
  border-radius: 3px;
  box-shadow: none;
}

.awp-studio-left-toolbar .awp-studio-rail-label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  width: 100%;
  max-width: 100%;
  flex: 0 0 2em;
  height: 2em;
  max-height: 2em;
  font-size: 7.5px;
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  overflow: hidden;
  padding: 0 1px;
  box-sizing: border-box;
}

.awp-studio-left-toolbar .dashicons,
.awp-studio-left-toolbar .awp-studio-rail-svg {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1 !important;
  flex: 0 0 auto;
  display: block;
}

.awp-studio-toolbar-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.awp-studio-toolbar-icon:hover {
  background: #e2e8f0;
  color: #334155;
}

.awp-studio-toolbar-icon[aria-pressed="true"] {
  background: #2563eb;
  color: #fff;
}

.awp-studio-toolbar-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.awp-studio-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.awp-studio-pdf-viewer {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: #fff;
}

.awp-studio-element[data-element-type="image"],
.awp-studio-element[data-element-type="shape"],
.awp-studio-element[data-element-type="clipart"] {
  padding: 0 !important;
  box-sizing: border-box;
}

.awp-studio-element[data-element-type="clipart"],
.awp-studio-clipart-container,
.awp-studio-clipart-container svg {
  color: #000000 !important;
}

.awp-studio-element[data-element-type="image"] img,
.awp-studio-element[data-element-type="clipart"] img {
  display: block;
  image-rendering: auto;
}

.awp-studio-canvas-inner svg {
  shape-rendering: geometricPrecision;
}

.awp-studio-image-placeholder {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #334155;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.awp-studio-image-placeholder:hover {
  border-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #e0e7ff 100%);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.awp-studio-image-placeholder .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #2563eb;
}

.awp-studio-image-placeholder-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.awp-studio-image-placeholder-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
}

.awp-studio-image-placeholder.is-uploading {
  pointer-events: none;
  opacity: 0.85;
}

.awp-studio-image-placeholder.is-uploading .dashicons {
  animation: awp-studio-spin 0.9s linear infinite;
}

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

.is-media-busy > img,
.is-media-busy > svg,
.is-media-busy > canvas {
  filter: blur(8px) saturate(0.85);
  transition: filter 0.3s ease;
}

.awp-studio-media-busy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65em;
  padding: 0.65em;
  background: rgba(15, 23, 42, 0.18);
  font-size: 12px;
  pointer-events: none;
  text-align: center;
}

.awp-studio-media-busy-spinner {
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  border: 0.25em solid rgba(255, 255, 255, 0.45);
  border-top-color: #6366f1;
  animation: awp-studio-spin 0.8s linear infinite;
  box-shadow: 0 0.15em 0.8em rgba(15, 23, 42, 0.25);
}

.awp-studio-media-busy-text {
  max-width: 92%;
  padding: 0.4em 1em;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 0.3em 1.1em rgba(15, 23, 42, 0.3);
}

.is-media-reveal > img,
.is-media-reveal > svg,
.is-media-reveal > canvas {
  animation: awp-studio-media-reveal 0.6s ease-out both;
}

@keyframes awp-studio-media-reveal {
  from {
    filter: blur(8px);
    opacity: 0.85;
  }
  to {
    filter: blur(0);
    opacity: 1;
  }
}

.awp-studio-image-prop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.awp-studio-zoom-display {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  min-width: 50px;
  text-align: center;
}

.awp-studio-zoom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: calc(
    var(--awp-studio-slider-track-h, 8px) + var(--awp-studio-slider-frame, 6px) *
      2
  );
  margin: 0 4px;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
  vertical-align: middle;
}

.awp-studio-contextual-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: var(--awp-studio-chrome-row-height);
  min-height: var(--awp-studio-chrome-row-height);
  max-height: var(--awp-studio-chrome-row-height);
  padding: 0 16px;
  margin: 0 0 8px;
  margin-left: var(--awp-panel-overlap-left, 0px);
  margin-right: var(--awp-panel-overlap-right, 0px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  scrollbar-gutter: auto;
  transition: margin-left 0.2s ease, margin-right 0.2s ease;
}

.awp-studio-contextual-bar::-webkit-scrollbar {
  height: 3px;
}

.awp-studio-contextual-bar::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.awp-studio-contextual-bar::-webkit-scrollbar-track {
  background: transparent;
}

.awp-studio-contextual-bar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.38);
  border-radius: 6px;
}

.awp-studio-contextual-bar:hover::-webkit-scrollbar-thumb,
.awp-studio-contextual-bar:focus-within::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.55);
}

.awp-studio-contextual-bar .awp-studio-toolbar-icon,
.awp-studio-contextual-bar .awp-studio-ctx-format {
  flex: 0 0 32px;
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0;
  aspect-ratio: 1;
}

.awp-studio-contextual-bar input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.awp-studio-contextual-bar input[type="number"]::-webkit-inner-spin-button,
.awp-studio-contextual-bar input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  display: none;
}

.awp-studio-contextual-bar .awp-studio-ctx-stroke-width-select,
.awp-studio-context-stroke-width-select,
.awp-studio-prop-stroke-width-select {
  min-width: 72px;
  max-width: 96px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  background: #f8fafc;
  color: #0f172a;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.awp-studio-contextual-bar .awp-studio-ctx-stroke-width-select::-webkit-scrollbar,
.awp-studio-context-stroke-width-select::-webkit-scrollbar {
  width: 6px;
}

.awp-studio-contextual-bar .awp-studio-ctx-stroke-width-select::-webkit-scrollbar-track,
.awp-studio-context-stroke-width-select::-webkit-scrollbar-track {
  background: transparent;
}

.awp-studio-contextual-bar .awp-studio-ctx-stroke-width-select::-webkit-scrollbar-thumb,
.awp-studio-context-stroke-width-select::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.awp-studio-contextual-bar .awp-studio-ctx-stroke-width-select::-webkit-scrollbar-thumb:hover,
.awp-studio-context-stroke-width-select::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.awp-studio-contextual-bar .awp-studio-stroke-join-btns {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
  width: auto;
  grid-template-columns: none;
}

.awp-studio-contextual-bar .awp-studio-stroke-join-btn,
.awp-studio-contextual-bar .awp-studio-stroke-join-btn--icon {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  background: #f8fafc;
  color: #334155;
  -webkit-text-fill-color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.awp-studio-contextual-bar .awp-studio-stroke-join-divider,
.awp-studio-contextual-bar .awp-studio-stroke-join-copy {
  display: none !important;
}

.awp-studio-contextual-bar .awp-studio-stroke-join-btn:hover {
  background: #eef2ff;
  color: #312e81;
  -webkit-text-fill-color: #312e81;
  border-color: #818cf8;
  box-shadow:
    0 1px 2px rgba(79, 70, 229, 0.12),
    0 0 0 1px rgba(129, 140, 248, 0.35);
  transform: translateY(-1px);
}

.awp-studio-contextual-bar .awp-studio-stroke-join-btn:focus-visible {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.38);
}

.awp-studio-contextual-bar .awp-studio-stroke-join-btn.is-active,
.awp-studio-contextual-bar .awp-studio-stroke-join-btn.is-active:hover {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: #4338ca;
  box-shadow:
    0 2px 6px rgba(79, 70, 229, 0.35),
    0 0 0 2px #fff,
    0 0 0 4px rgba(99, 102, 241, 0.42);
  transform: none;
}

.awp-studio-contextual-bar .awp-studio-stroke-join-btn.is-active .awp-studio-stroke-join-copy,
.awp-studio-contextual-bar .awp-studio-stroke-join-btn.is-active .awp-studio-stroke-join-copy span {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.awp-studio-contextual-bar[hidden] {
  display: none !important;
}

.awp-studio-contextual-bar .awp-studio-ctx-font-picker,
.awp-studio-contextual-bar .awp-studio-ctx-font {
  max-width: 336px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  background: #f8fafc;
}

.awp-studio-contextual-bar .awp-studio-ctx-effect-tune {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.awp-studio-contextual-bar .awp-studio-ctx-effect-depth {
  width: 52px;
  min-width: 48px;
  max-width: 64px;
}

.awp-studio-prop-field-row--effect-tune {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.awp-studio-contextual-bar .awp-studio-ctx-weight {
  width: 108px;
  min-width: 96px;
  max-width: 120px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  cursor: pointer;
}

.awp-studio-contextual-bar .awp-studio-ctx-font-picker {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  width: 336px;
  min-width: 336px;
  max-width: 336px;
  display: flex;
  align-items: center;
}

.awp-studio-contextual-bar .awp-studio-font-picker,
.awp-studio-contextual-bar .awp-studio-font-picker-trigger {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
}

.awp-studio-contextual-bar .awp-studio-font-picker--compact,
.awp-studio-contextual-bar .awp-studio-font-picker--compact .awp-studio-font-picker-trigger {
  width: 336px;
  min-width: 336px;
  max-width: 336px;
}

.awp-studio-contextual-bar .awp-studio-ctx-size {
  width: 64px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 6px;
  font-size: 12px;
}

.awp-studio-contextual-bar .awp-studio-ctx-color {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  appearance: auto;
  -webkit-appearance: color;
}

.awp-studio-contextual-bar .awp-studio-ctx-color::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.awp-studio-contextual-bar .awp-studio-ctx-color::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}

.awp-studio-ctx-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 6px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
  user-select: none;
}

.awp-studio-ctx-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.awp-studio-contextual-bar .awp-studio-toolbar-icon.is-active,
.awp-studio-format-toggle.is-active,
.awp-studio-selection-float-toolbar .awp-studio-toolbar-icon.is-active {
  background: #2563eb !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.awp-studio-contextual-bar .awp-studio-format-toggle,
.awp-studio-contextual-bar .awp-studio-ctx-format,
.awp-studio-contextual-bar .awp-studio-ctx-group > .awp-studio-toolbar-icon {
  min-width: 32px;
  max-width: 32px;
  font-weight: 700;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.awp-studio-contextual-bar .awp-studio-ctx-format[data-format-key="italic"] {
  font-style: italic;
}

.awp-studio-contextual-bar .awp-studio-ctx-format[data-format-key="underline"] {
  text-decoration: underline;
}

/* Harf biçimi: büyük / küçük / baş harf — ikonlar işleve göre ayrı görünür */
.awp-studio-contextual-bar .awp-studio-ctx-case {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none !important;
}

.awp-studio-contextual-bar .awp-studio-ctx-case-glyph {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.awp-studio-contextual-bar .awp-studio-ctx-case-glyph--upper {
  text-transform: uppercase;
}

.awp-studio-contextual-bar .awp-studio-ctx-case-glyph--lower {
  text-transform: lowercase;
}

.awp-studio-contextual-bar .awp-studio-ctx-case-glyph--cap .awp-studio-ctx-case-cap-a {
  text-transform: none;
}

.awp-studio-contextual-bar .awp-studio-ctx-case-glyph--cap .awp-studio-ctx-case-cap-rest {
  text-transform: lowercase;
}

.awp-studio-contextual-bar .awp-studio-ctx-case.is-active .awp-studio-ctx-case-glyph,
.awp-studio-contextual-bar .awp-studio-ctx-case.is-active .awp-studio-ctx-case-cap-a,
.awp-studio-contextual-bar .awp-studio-ctx-case.is-active .awp-studio-ctx-case-cap-rest {
  color: inherit;
  -webkit-text-fill-color: inherit;
}

.awp-studio-ctx-opacity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 120px;
  font-size: 11px;
  color: #64748b;
}

.awp-studio-ctx-opacity input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: calc(
    var(--awp-studio-slider-track-h, 8px) + var(--awp-studio-slider-frame, 6px) *
      2
  );
  padding: 0;
  box-sizing: border-box;
}

.awp-studio-safe-toast {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(154, 52, 18, 0.12);
  pointer-events: none;
  white-space: nowrap;
}

.awp-studio-safe-toast[hidden] {
  display: none !important;
}

/* Slider: wrapper çocukları eski flex akışında kalsın */
.awp-studio-meta-strip {
  display: contents;
}

.awp-studio-selection-box--unsafe {
  outline: 2px solid #f97316;
  outline-offset: 1px;
}

.awp-studio-format-toggle-row,
.awp-studio-color-row,
.awp-studio-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.awp-studio-format-toggle-row {
  flex-wrap: nowrap;
  min-width: 0;
}

.awp-studio-format-toggle {
  flex: 0 0 32px;
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.awp-studio-format-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

.awp-studio-format-toggle[title="İtalik"] {
  font-style: italic;
}

.awp-studio-format-toggle[title="Altı çizili"] {
  text-decoration: underline;
}

.awp-studio-range-input {
  flex: 1;
  accent-color: transparent;
}

.awp-studio-range-value {
  width: 56px;
}

.awp-studio-range-unit {
  font-size: 12px;
  color: #64748b;
}

.awp-studio-text-templates {
  margin: 10px 0 8px;
}

.awp-studio-text-template-tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: #f1f5f9;
  border-radius: 6px;
  border-bottom: 0;
  margin-bottom: 8px;
}

.awp-studio-text-template-tab {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0 6px;
  height: 28px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 0;
  border-radius: 4px;
  line-height: 1;
}

.awp-studio-text-template-tab.is-active {
  color: #0f172a;
  background: #fff;
  border-bottom-color: transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.awp-studio-text-template-actions {
  margin-bottom: 8px;
}

.awp-studio-text-template-actions .awp-studio-tpl-action {
  width: 100%;
  flex: 1 1 auto;
}

.awp-studio-text-template-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.awp-studio-text-template-filter-input {
  width: 100%;
  box-sizing: border-box;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  color: #0f172a;
  background: #fff;
  box-shadow: none;
}

.awp-studio-text-template-filter-input:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.awp-studio-text-template-filter-chips {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: #f1f5f9;
  border-radius: 6px;
  flex-wrap: nowrap;
}

.awp-studio-text-template-filter-chip {
  flex: 1 1 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 4px;
  padding: 0 6px;
  height: 26px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.awp-studio-text-template-filter-chip.is-active {
  border-color: transparent;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.awp-studio-text-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.awp-studio-text-template-card {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.awp-studio-text-template-card-wrap {
  position: relative;
  min-width: 0;
}

.awp-studio-text-template-card-wrap .awp-studio-text-template-card {
  width: 100%;
}

.awp-studio-text-template-card.is-shared {
  border-color: #e2e8f0;
  box-shadow: none;
}

.awp-studio-text-template-card.is-group {
  border-color: #e2e8f0;
}

.awp-studio-text-template-card-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.awp-studio-text-template-card-wrap:hover .awp-studio-text-template-card-delete,
.awp-studio-text-template-card-wrap:focus-within .awp-studio-text-template-card-delete {
  opacity: 1;
}

/* Panel / galeri öğeleri — ortak hover (metin şablonu stili) */
.awp-studio-clipart-item,
.awp-studio-shape-item,
.awp-studio-icon-card,
.awp-studio-media-card,
.awp-studio-lib-card,
.awp-studio-my-design-item,
.awp-studio-add-card,
.awp-studio-mini-card,
.awp-studio-template-card,
.awp-studio-template-item,
.awp-studio-text-template-card,
.awp-studio-effect-chip,
.awp-studio-align-chip,
.awp-studio-fill-mode-tab,
.awp-studio-bg-swatch,
.awp-studio-bg-upload-btn,
.awp-studio-layer-row,
.awp-studio-layer-item,
.awp-studio-slide-item,
.awp-studio-preflight-item,
.awp-studio-prop-btn,
.awp-studio-prop-select-trigger,
.awp-studio-font-picker-trigger,
.awp-ps-ai-card-visual,
.awp-ps-codes-dl {
  transition: var(--awp-studio-item-hover-transition);
}

.awp-studio-text-template-card-wrap:hover .awp-studio-text-template-card,
.awp-studio-text-template-card:hover,
.awp-studio-text-template-card:focus-visible,
.awp-studio-template-item:hover,
.awp-studio-template-item:focus-within,
.awp-studio-clipart-item:hover:not(.selected),
.awp-studio-shape-item:hover:not(.selected),
.awp-studio-icon-card:hover:not(.selected),
.awp-studio-icon-card:focus-visible:not(.selected),
.awp-studio-media-card:hover,
.awp-studio-media-card:focus-visible,
.awp-studio-lib-card:hover,
.awp-studio-my-design-item:hover,
.awp-studio-add-card:hover,
.awp-studio-mini-card:hover,
.awp-studio-template-card:hover,
.awp-studio-effect-chip:hover:not(.is-active),
.awp-studio-align-chip:hover:not(.is-active),
.awp-studio-fill-mode-tab:hover:not(.is-active),
.awp-studio-bg-upload-btn:hover,
.awp-studio-layer-row:hover,
.awp-studio-layer-item:hover,
.awp-studio-slide-item:hover,
.awp-studio-preflight-item:hover,
.awp-ps-ai-card:hover .awp-ps-ai-card-visual,
.awp-ps-ai-card:focus-within .awp-ps-ai-card-visual,
.awp-ps-codes-dl:hover {
  border-color: var(--awp-studio-item-hover-border);
  background: var(--awp-studio-item-hover-bg);
  box-shadow: var(--awp-studio-item-hover-shadow);
  transform: translateY(-2px);
  z-index: 1;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

/* Renk kutucukları — indigo hover (swatch rengi korunur) */
.awp-studio-bg-swatch,
.awp-ps-color-swatch,
.awp-ps-color-swatch--gradient {
  transition: var(--awp-studio-item-hover-transition);
}

.awp-studio-bg-swatch:hover:not(.is-active),
.awp-studio-bg-swatch:focus-visible:not(.is-active),
.awp-ps-color-swatch:hover:not(.is-selected),
.awp-ps-color-swatch:focus-visible:not(.is-selected),
.awp-ps-color-swatch--gradient:hover:not(.is-selected),
.awp-ps-color-swatch--gradient:focus-visible:not(.is-selected) {
  border-color: var(--awp-studio-item-hover-border);
  outline: none;
  box-shadow: var(--awp-studio-item-hover-shadow);
  transform: translateY(-2px);
  z-index: 2;
}

.awp-studio-text-template-card-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
}

.awp-studio-text-template-group-preview {
  width: 100%;
  max-height: 100%;
  background: transparent;
}

.awp-studio-text-template-group-preview .awp-tpl-text,
.awp-studio-text-template-group-preview .awp-tpl-text * {
  max-width: 100%;
}

.awp-studio-text-template-group-preview .awp-tpl-text {
  pointer-events: none;
}

.awp-studio-media-add-cards {
  margin-top: 8px;
}

/* Renk paleti — dişli/palet altında; sola+aşağı çok sütunlu */
.awp-ps-guide-tools-wrap {
  position: relative;
  overflow: visible;
  z-index: 70;
}

.awp-ps-guide-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.awp-ps-guide-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.awp-ps-guide-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.awp-ps-guide-btn.is-active {
  border-color: #ea580c;
  background: #fff7ed;
  color: #9a3412;
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.25);
}

.awp-studio-root:not(.awp-product-studio-mode) .awp-studio-toolbar {
  overflow: visible;
}

.awp-ps-color-flyouts {
  position: absolute;
  top: 0;
  right: calc(100% + var(--awp-studio-dock-gap, 0px));
  z-index: 60;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  max-width: min(420px, calc(100vw - 100px));
  pointer-events: none;
}

.awp-studio-root:not(.awp-product-studio-mode) .awp-ps-color-flyouts,
.awp-ps-color-flyouts.is-slider-portal {
  z-index: 100080;
}

.awp-ps-color-flyouts.is-slider-portal {
  position: fixed !important;
  pointer-events: none;
}

.awp-ps-color-flyouts.is-slider-portal .awp-ps-color-palette-panel.is-open {
  display: flex !important;
  pointer-events: auto;
}

.awp-ps-color-palette-panel.is-open:not([hidden]) {
  display: flex !important;
}

/* Slider: renk paleti — body overlay modal (admin FS z-index üstü) */
.awp-studio-slider-palette-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  box-sizing: border-box;
  pointer-events: none;
}

.awp-studio-slider-palette-modal[hidden] {
  display: none !important;
}

.awp-studio-slider-palette-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  pointer-events: auto;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.awp-studio-slider-palette-modal__panel {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  max-width: min(480px, calc(100vw - 24px));
  max-height: min(78vh, 640px);
}

.awp-studio-slider-palette-modal__panel .awp-ps-color-flyouts {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  max-width: none;
  pointer-events: none;
}

.awp-studio-slider-palette-modal__panel .awp-ps-color-palette-panel.is-open {
  display: flex !important;
  pointer-events: auto;
  max-height: min(72vh, 600px);
  visibility: visible !important;
  opacity: 1 !important;
}

.awp-studio-slider-palette-modal__panel .awp-ps-color-palette-panel.is-open:not([hidden]) {
  display: flex !important;
}

.awp-studio-publish-panel .awp-studio-label {
  display: block;
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.awp-studio-publish-panel .awp-studio-select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 8px 32px 8px 12px;
  line-height: 1.45;
  font-size: 13px;
  color: #1f2937;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: clip;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.2 1.3L6 6.1l4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.awp-studio-publish-panel input.awp-studio-select {
  padding-right: 12px;
  background-image: none;
}

.awp-studio-publish-panel .awp-studio-prop-hint {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

.awp-studio-publish-summary {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}

.awp-studio-publish-summary__kicker {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-publish-summary__text {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.awp-studio-publish-optional {
  margin-top: 10px;
}

.awp-studio-publish-req {
  color: #dc2626;
  font-weight: 800;
}

.awp-studio-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.awp-studio-publish-slides {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.awp-studio-publish-slides__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-publish-slide {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.awp-studio-publish-slide.is-current {
  background: #fff7ed;
  margin: 0 -8px;
  padding: 8px;
  border-radius: 6px;
  border-bottom-color: transparent;
}

.awp-studio-publish-slide__name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.awp-studio-publish-slide__place {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

.awp-studio-publish-slide__go {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #ea580c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.awp-studio-publish-slide.is-current .awp-studio-publish-slide__go {
  color: #9a3412;
  cursor: default;
}

.awp-studio-publish-fork {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.4;
}

.awp-studio-publish-legacy {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

.awp-ps-color-palette-panel {
  display: none;
  pointer-events: auto;
  width: auto;
  min-width: 148px;
  max-width: min(220px, calc(100vw - 100px));
  max-height: min(78vh, 640px);
  padding: 8px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #1e293b;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
  flex-direction: column;
  gap: 6px;
}

.awp-ps-color-palette-panel.is-open {
  display: flex;
}

.awp-ps-color-palette-panel--page {
  min-width: 108px;
}

.awp-ps-color-palette-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
  flex-shrink: 0;
  position: relative;
}

.awp-ps-color-palette-close,
.awp-studio-color-popover__close {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0;
  text-indent: -999px;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 32px;
  appearance: none;
  -webkit-appearance: none;
}

.awp-ps-color-palette-close {
  display: none;
}

.awp-ps-color-palette-close::before,
.awp-ps-color-palette-close::after,
.awp-studio-color-popover__close::before,
.awp-studio-color-popover__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: #334155;
  pointer-events: none;
}

.awp-ps-color-palette-close::before,
.awp-studio-color-popover__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.awp-ps-color-palette-close::after,
.awp-studio-color-popover__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.awp-ps-color-palette-close:hover,
.awp-ps-color-palette-close:focus-visible,
.awp-studio-color-popover__close:hover,
.awp-studio-color-popover__close:focus-visible {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.awp-studio-palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100070;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html.awp-studio-palette-sheet-open .awp-ps-color-flyouts.is-palette-open {
  position: fixed !important;
  top: auto !important;
  right: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  z-index: 100080 !important;
  pointer-events: none !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow: visible !important;
}

html.awp-studio-palette-sheet-open .awp-ps-color-palette-panel.is-open {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  display: flex;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  max-height: min(68dvh, 560px) !important;
  pointer-events: auto !important;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  border-radius: 16px 16px 0 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
  box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.18) !important;
}

html.awp-studio-palette-sheet-open .awp-ps-color-palette-close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  font-size: 0;
  border-radius: 50%;
  box-sizing: border-box;
}

html.awp-studio-palette-sheet-open .awp-ps-color-palette-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html.awp-studio-palette-sheet-open .awp-ps-color-palette-targets {
  flex-direction: row !important;
  flex-wrap: nowrap;
  width: auto !important;
  flex: 1 1 auto;
  align-items: center;
}

html.awp-studio-palette-sheet-open .awp-ps-color-scroll {
  display: none !important;
}

html.awp-studio-palette-sheet-open .awp-ps-color-swatch-rail {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 4px 4px 9px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(37, 99, 235, 0.52) rgba(226, 232, 240, 0.72);
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 10px,
    #000 calc(100% - 10px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 10px,
    #000 calc(100% - 10px),
    transparent 100%
  );
}

html.awp-studio-palette-sheet-open .awp-ps-color-swatch-rail::-webkit-scrollbar {
  height: 4px;
}

html.awp-studio-palette-sheet-open .awp-ps-color-swatch-rail::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.72);
  border-radius: 999px;
}

html.awp-studio-palette-sheet-open .awp-ps-color-swatch-rail::-webkit-scrollbar-thumb {
  min-width: 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

html.awp-studio-palette-sheet-open .awp-ps-color-swatch-rail::-webkit-scrollbar-thumb:active {
  background: #1d4ed8;
}

html.awp-studio-palette-sheet-open .awp-ps-color-swatches--cols,
html.awp-studio-palette-sheet-open .awp-ps-color-gradient-swatches,
html.awp-studio-palette-sheet-open .awp-ps-color-swatch-col {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-height: none !important;
  overflow: visible !important;
  align-items: center;
}

html.awp-studio-palette-sheet-open .awp-ps-color-swatch,
html.awp-studio-palette-sheet-open .awp-ps-color-swatch--gradient {
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

html.awp-studio-palette-sheet-open .awp-ps-color-palette-panel.is-open {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
}

html.awp-studio-palette-sheet-open .awp-ps-color-palette-head {
  grid-column: 1 / -1;
}

html.awp-studio-palette-sheet-open .awp-ps-color-swatch-rail {
  grid-column: 1;
}

html.awp-studio-palette-sheet-open .awp-ps-color-custom {
  grid-column: 2;
  flex-direction: row;
  margin: 0 0 0 8px;
  padding: 0;
  align-items: center;
}

html.awp-studio-palette-sheet-open .awp-ps-color-custom input[type="color"] {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
}

html.awp-studio-palette-sheet-open .awp-ps-color-gradients.is-open,
html.awp-studio-palette-sheet-open .awp-ps-color-flyouts.is-gradient-open .awp-ps-color-gradients {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: none !important;
  max-height: min(28dvh, 220px) !important;
  pointer-events: auto !important;
  border-radius: 0 !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

.awp-ps-color-palette-title {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.awp-ps-color-palette-head-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.awp-ps-color-palette-clear {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.awp-ps-color-clear-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 8px 8px;
  background-position:
    0 0,
    0 4px,
    4px -4px,
    -4px 0;
  cursor: pointer;
  position: relative;
}

.awp-ps-color-clear-btn.is-stroke::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid #0f172a;
  border-radius: 2px;
  pointer-events: none;
}

.awp-ps-color-clear-btn:hover {
  border-color: #fb923c;
}

.awp-ps-color-palette-targets {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}


.awp-ps-color-target {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #475569;
  background: #0f172a;
  color: #94a3b8;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.awp-ps-color-target .awp-studio-icon {
  margin: 0;
}

.awp-ps-color-target.is-active {
  border-color: #fb923c;
  background: #431407;
  color: #fdba74;
}

.awp-ps-color-target.is-disabled,
.awp-ps-color-target:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.85);
  pointer-events: none;
}

.awp-ps-color-palette-panel.is-palette-locked .awp-ps-color-swatch-rail,
.awp-ps-color-palette-panel.is-palette-locked .awp-ps-color-custom,
.awp-ps-color-gradients.is-palette-locked {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.7);
}

.awp-ps-color-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.awp-ps-color-swatches--cols {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: min(42vh, 320px);
  padding: 2px 2px 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

.awp-ps-color-gradients {
  display: none;
  pointer-events: auto;
  flex-direction: column;
  gap: 6px;
  min-width: 108px;
  max-width: min(180px, calc(100vw - 100px));
  max-height: min(78vh, 640px);
  padding: 8px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #1e293b;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.45);
}

.awp-ps-color-gradients.is-open,
.awp-ps-color-flyouts.is-gradient-open .awp-ps-color-gradients {
  display: flex;
}

.awp-ps-color-gradients[hidden] {
  display: none !important;
}

.awp-ps-color-gradients-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #94a3b8;
  line-height: 1.2;
}

.awp-ps-color-gradient-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-height: min(28vh, 200px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #64748b #0f172a;
}

.awp-ps-color-swatch--gradient {
  width: 100%;
  min-width: 28px;
  height: 22px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
}

.awp-ps-color-swatch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}

.awp-ps-color-swatch {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
  transform: none;
  -webkit-user-select: none;
  user-select: none;
}

.awp-ps-color-swatch.is-selected {
  outline: 1px solid rgba(255, 255, 255, 0.92);
  outline-offset: 1px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.55);
}

.awp-ps-color-swatch.is-selected::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid var(--awp-swatch-fg, #fff);
  border-radius: 1px;
  pointer-events: none;
}

.awp-ps-color-swatch.is-light {
  border-color: #64748b;
}

.awp-ps-color-swatch.is-none {
  background-color: #fff !important;
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%) !important;
  background-size: 8px 8px !important;
  background-position:
    0 0,
    0 4px,
    4px -4px,
    -4px 0 !important;
  border-color: #94a3b8;
}

.awp-ps-color-swatch.is-none::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    #ef4444 calc(50% - 1px),
    #ef4444 calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  pointer-events: none;
}

.awp-ps-color-swatch.is-none.is-selected::before {
  border-color: #111827;
}

.awp-ps-color-swatch.awp-ps-color-swatch--gradient {
  width: 100%;
  min-width: 0;
  height: 28px;
}

.awp-ps-color-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  flex-shrink: 0;
}

.awp-ps-color-custom input[type="color"] {
  width: 36px;
  height: 26px;
  padding: 0;
  border: 1px solid #475569;
  border-radius: 5px;
  background: #0f172a;
  cursor: pointer;
}

.awp-studio-format-painter-armed,
.awp-studio-format-painter-armed .awp-studio-canvas-inner {
  cursor: copy;
}

.awp-studio-eyedropper-armed,
.awp-studio-eyedropper-armed .awp-studio-canvas-viewport,
.awp-studio-eyedropper-armed .awp-studio-canvas-inner {
  cursor: crosshair;
}

.awp-studio-eyedropper-armed .awp-studio-selection-float-toolbar,
.awp-studio-eyedropper-armed .awp-studio-selection-rotate,
.awp-studio-eyedropper-armed .awp-studio-selection-chrome-cluster,
.awp-studio-eyedropper-armed .awp-resize-handle,
.awp-studio-eyedropper-armed .awp-studio-hover-box,
.awp-studio-eyedropper-armed .awp-studio-contextual-bar,
.awp-studio-eyedropper-armed .awp-studio-left-toolbar,
.awp-studio-eyedropper-armed .awp-studio-toolbar-group,
.awp-studio-eyedropper-armed .awp-studio-color-popover {
  pointer-events: none !important;
}

.awp-studio-eyedropper-armed .awp-studio-selection-float-toolbar,
.awp-studio-eyedropper-armed .awp-studio-selection-rotate,
.awp-studio-eyedropper-armed .awp-studio-selection-chrome-cluster,
.awp-studio-eyedropper-armed .awp-resize-handle,
.awp-studio-eyedropper-armed .awp-studio-hover-box {
  visibility: hidden !important;
}

.awp-studio-eyedropper-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  cursor: crosshair;
  background: transparent;
  pointer-events: auto;
}

.awp-studio-eyedropper-preview {
  position: fixed;
  width: 22px;
  height: 22px;
  margin: 16px 0 0 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35), 0 4px 10px rgba(15, 23, 42, 0.2);
  pointer-events: none;
  background: #ffffff;
}

/* Orta: Tuval alanı - Canva/Figma benzeri stage */
.awp-studio-canvas-area,
.awp-slider-studio-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 480px;
  overflow: hidden;
  position: relative;
  padding: 10px 12px 12px;
  background: #e8ecf1;
}

.awp-studio-canvas-chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.awp-studio-chrome-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.awp-studio-chrome-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.awp-studio-chrome-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.awp-studio-toolbar-group--pulse {
  outline: 2px solid #5258e4;
  outline-offset: 2px;
  border-radius: 8px;
}

#awp-studio-content-elements.awp-studio-content-section {
  display: none;
}

#awp-studio-content-elements.awp-studio-content-section--active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.awp-studio-text-panel .awp-studio-add-stack {
  margin: 0;
}

.awp-studio-panel-lead {
  margin: 0 0 8px;
  font-size: 12px;
  color: #6b7280;
}

.awp-studio-section-label {
  margin: 12px 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.awp-studio-add-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.awp-studio-add-card {
  width: 100%;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.awp-studio-add-card-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.awp-studio-add-card-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
}

.awp-studio-button-group--cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.awp-studio-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.awp-studio-mini-card .dashicons {
  font-size: 22px;
  width: 22px;
  height: 22px;
  color: #5258e4;
}

.awp-studio-page-fab {
  position: absolute;
  right: 18px;
  bottom: 64px;
  z-index: 5;
  pointer-events: none;
}

.awp-studio-page-fab-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: #5258e4;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(82, 88, 228, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.awp-studio-page-fab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(82, 88, 228, 0.4);
}

.awp-studio-page-fab-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Panel sarmalayıcı: sol rayın yanında overlay — tuval genişliği değişmesin */
.awp-studio-right-panel-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--awp-studio-left-rail-width, 88px);
  z-index: 80;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  width: auto;
  max-height: none;
  isolation: isolate;
  pointer-events: auto;
  overflow: visible;
}

.awp-studio-right-panel-wrap .awp-studio-right-panel {
  order: 1;
}

.awp-studio-right-panel-wrap .awp-studio-panel-collapse-btn {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
}

/* Kapalı panel: compact !important genişliğini de ezer; wrap tamamen daralır */
.awp-studio-root:not(.awp-product-studio-mode)
  .awp-studio-right-panel-wrap.awp-studio-right-panel--closed,
.awp-studio-right-panel-wrap.awp-studio-right-panel--closed {
  left: var(--awp-studio-left-rail-width, 88px);
  width: 0;
}

.awp-studio-root:not(.awp-product-studio-mode)
  .awp-studio-right-panel-wrap.awp-studio-right-panel--closed
  .awp-studio-right-panel,
.awp-studio-right-panel-wrap.awp-studio-right-panel--closed .awp-studio-right-panel {
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0 !important;
  opacity: 0;
  overflow: hidden;
  border-right: none;
  pointer-events: none;
}

/* Panel kapalıyken daraltma pili tamamen kalkar: paneli sol ikon rayı geri açar */
.awp-studio-right-panel-wrap.awp-studio-right-panel--closed .awp-studio-panel-collapse-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Daraltma pili: panel kenarına oturan yuvarlak buton */
.awp-studio-panel-collapse-btn {
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 40px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s,
    opacity 0.2s, visibility 0.2s;
}

.awp-studio-panel-collapse-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.awp-studio-panel-collapse-btn:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14),
    0 0 0 3px rgba(37, 99, 235, 0.28);
}

.awp-studio-panel-collapse-btn:active {
  background: #eef2f7;
}

/* Chevron: dashicons yerine ince CSS oku */
.awp-studio-panel-collapse-btn__chev {
  width: 7px;
  height: 7px;
  border-top: 1.6px solid currentColor;
  border-left: 1.6px solid currentColor;
  transform: rotate(-45deg);
  margin-right: 1px;
}

.awp-studio-right-panel-wrap.awp-studio-right-panel--closed
  .awp-studio-panel-collapse-btn__chev {
  transform: rotate(135deg);
  margin-right: 0;
  margin-left: 1px;
}

.awp-studio-panel-collapse-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Tooltip: etiket + klavye kısayolu */
.awp-studio-panel-collapse-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 7px;
  border-radius: 10px;
  background: #1f2530;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  pointer-events: none;
}

.awp-studio-panel-collapse-btn:hover .awp-studio-panel-collapse-tooltip,
.awp-studio-panel-collapse-btn:focus-visible .awp-studio-panel-collapse-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.awp-studio-panel-collapse-tooltip__keys {
  display: flex;
  align-items: center;
  gap: 4px;
}

.awp-studio-panel-collapse-tooltip__keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: none;
  border-radius: 5px;
  background: rgba(248, 250, 252, 0.16);
  box-shadow: none;
  color: #e2e8f0;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .awp-studio-panel-collapse-tooltip {
    transition: none;
  }
}

/* İçerik paneli: Express gibi rayın hemen yanında */
.awp-studio-right-panel {
  width: 320px;
  min-width: 320px;
  max-width: 360px;
  background: #f5f5f5;
  border: none;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    min-width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
  contain: layout paint;
  box-shadow: none;
}

.awp-studio-right-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  height: var(--awp-studio-chrome-row-height);
  min-height: var(--awp-studio-chrome-row-height);
  max-height: var(--awp-studio-chrome-row-height);
  padding: 0 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f5f5f5;
  flex-shrink: 0;
}

.awp-studio-right-panel-title {
  margin: 0;
  display: flex;
  align-items: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
  letter-spacing: -0.01em;
}

.awp-studio-right-panel-close {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  line-height: 0;
  transition: background 0.2s, color 0.2s;
}

.awp-studio-right-panel-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.awp-studio-right-panel-close .dashicons {
  display: none !important;
}

/* Font bağımsız × — Inter/dashicons çakışmasından etkilenmez */
.awp-studio-right-panel-close__x {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  pointer-events: none;
}

.awp-studio-right-panel-close__x::before,
.awp-studio-right-panel-close__x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: 0;
  border-radius: 1px;
  background: currentColor;
}

.awp-studio-right-panel-close__x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.awp-studio-right-panel-close__x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.awp-studio-right-panel-close__icon {
  display: none !important;
}

.awp-studio-right-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 0;
}

.awp-studio-content-section {
  display: none;
}

.awp-studio-content-section.awp-studio-content-section--active {
  display: block;
}

.awp-studio-ai-panel,
.awp-studio-codes-panel {
  display: none;
  padding: 4px 2px 12px;
}

.awp-studio-ai-panel.awp-studio-content-section--active,
.awp-studio-codes-panel.awp-studio-content-section--active {
  display: block;
}

.awp-ps-ai-prompt,
.awp-studio-codes-panel .awp-studio-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0 0 10px;
  font-size: 13px;
}

.awp-ps-ai-prompt {
  min-height: 96px;
  resize: vertical;
}

.awp-studio-ai-hint,
.awp-ps-codes-hint,
.awp-studio-ai-disabled,
.awp-ps-codes-status,
.awp-ps-ai-status {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.awp-ps-codes-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.awp-ps-codes-tab {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.awp-ps-codes-tab.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.awp-ps-codes-preview-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
  display: flex;
  justify-content: center;
}

.awp-ps-codes-preview-box svg {
  width: 180px;
  height: auto;
}

.awp-ps-codes-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

#awp-studio-content-properties.awp-studio-content-section--active {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#awp-studio-content-layers.awp-studio-content-section--active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

#awp-studio-content-cliparts.awp-studio-content-section--active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 0;
}

#awp-studio-content-cliparts .awp-studio-cliparts-grid {
  flex: 1;
  min-height: 0;
}

#awp-studio-content-shapes.awp-studio-content-section--active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 10px;
  gap: 8px;
}

.awp-studio-toolbar-toggle {
  font-size: 11px;
  padding: 2px 6px;
  line-height: 1.4;
}

.awp-studio-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.awp-studio-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.awp-studio-panel-title {
  margin: 0 0 8px 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

.awp-studio-label {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
  display: block;
}

.awp-studio-select,
.awp-studio-font-select,
#awp-studio-autoplay-duration {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
}

.awp-studio-animation-content .awp-studio-animation-group {
  margin-bottom: 14px;
}
.awp-studio-animation-content .awp-studio-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: calc(
    var(--awp-studio-slider-track-h, 8px) + var(--awp-studio-slider-frame, 6px) *
      2
  );
  margin-top: 4px;
  padding: 0;
  box-sizing: border-box;
}

.awp-studio-font-select-wrap {
  margin-bottom: 0;
}

.awp-studio-font-search-wrap {
  margin-bottom: 6px;
}

.awp-studio-font-search {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

/* Font önizlemeli özel seçici — isimler kendi yazı tipinde */
.awp-studio-font-picker {
  position: relative;
  width: 100%;
}

.awp-studio-font-picker-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  text-align: left;
  cursor: pointer;
  background: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.awp-studio-font-picker-trigger:hover,
.awp-studio-font-picker-trigger:focus,
.awp-studio-font-picker-trigger:focus-visible {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background: #fff;
}

.awp-studio-font-picker-trigger.awp-studio-font-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.awp-studio-font-picker.is-open .awp-studio-font-picker-trigger {
  border-color: #94a3b8;
}

.awp-studio-font-picker-panel {
  position: fixed;
  z-index: 2147483001;
  display: flex;
  flex-direction: column;
  max-height: 320px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  box-sizing: border-box;
}

.awp-studio-font-picker-panel[hidden] {
  display: none !important;
}

.awp-studio-font-picker-search {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.awp-studio-font-picker-list {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.awp-studio-font-picker-heading {
  margin: 2px 2px 0;
  padding: 6px 8px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  pointer-events: none;
}

.awp-studio-font-picker-recent-end {
  height: 1px;
  margin: 6px 8px 8px;
  background: #e2e8f0;
  pointer-events: none;
  flex-shrink: 0;
}

.awp-studio-font-picker-option {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.awp-studio-font-picker-option-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: inherit;
  -webkit-text-fill-color: inherit;
  font-family: inherit !important;
}

.awp-studio-font-picker-option-sample {
  flex: 0 0 auto;
  min-width: 3.2em;
  max-width: 4.5em;
  padding: 2px 4px;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: none;
  font-synthesis: none;
  overflow: hidden;
}

.awp-studio-font-picker-option:hover,
.awp-studio-font-picker-option:focus,
.awp-studio-font-picker-option:focus-visible {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.awp-studio-font-picker-option:hover .awp-studio-font-picker-option-sample,
.awp-studio-font-picker-option:focus .awp-studio-font-picker-option-sample,
.awp-studio-font-picker-option:focus-visible
  .awp-studio-font-picker-option-sample {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.awp-studio-font-picker-option.is-selected,
.awp-studio-font-picker-option.is-selected:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  -webkit-text-fill-color: #1d4ed8 !important;
}

.awp-studio-font-picker-option.is-selected .awp-studio-font-picker-option-sample,
.awp-studio-font-picker-option.is-selected:hover
  .awp-studio-font-picker-option-sample {
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
}

.awp-studio-font-picker--compact {
  width: auto;
  max-width: 168px;
  flex-shrink: 0;
}

.awp-studio-contextual-bar .awp-studio-font-picker--compact,
.awp-studio-contextual-bar .awp-studio-font-picker--compact .awp-studio-font-picker-trigger {
  width: 336px;
  min-width: 336px;
  max-width: 336px;
}

.awp-studio-font-picker--compact .awp-studio-font-picker-trigger {
  max-width: 168px;
  height: 32px;
  min-height: 32px;
  padding: 0 26px 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.awp-studio-font-picker--compact .awp-studio-font-picker-panel {
  z-index: 2147483001;
}

.awp-studio-size-custom input {
  min-width: 80px;
  width: 80px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.awp-studio-button-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.awp-studio-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 12px;
}

.awp-studio-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.awp-studio-toolbar-sep {
  width: 1px;
  height: 18px;
  background: #e5e7eb;
  margin: 0 2px;
  flex-shrink: 0;
}

.awp-studio-align-toolbar {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  min-height: 32px;
}

.awp-studio-align-toolbar .awp-studio-toolbar-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.awp-studio-align-toolbar.is-disabled .awp-studio-toolbar-sep {
  opacity: 0.45;
}

.awp-studio-animation-replay {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  line-height: 1.2;
  min-height: 36px;
}

.awp-studio-animation-replay .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0;
  vertical-align: middle;
  position: relative;
  top: 0;
  flex: 0 0 16px;
}

.awp-studio-animation-replay .dashicons:before {
  line-height: 1 !important;
  width: 16px;
  height: 16px;
  display: block;
}

.awp-studio-animation-replay-label {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-weight: 600;
}

.awp-studio-effect-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
}

.awp-studio-fill-mode-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 2px;
}

.awp-studio-fill-mode-tab {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  min-height: 28px;
  height: auto;
  padding: 4px 5px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #334155;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.awp-studio-fill-mode-tab.is-active {
  border-color: #6366f1;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  color: #3730a3;
}

.awp-studio-color-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.awp-studio-color-popover {
  position: fixed;
  z-index: 2147483000;
  width: min(304px, calc(100vw - 16px));
  max-height: min(92dvh, calc(100vh - 16px), 720px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.22);
  scrollbar-width: none;
  box-sizing: border-box;
}

.awp-studio-color-popover::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.awp-studio-color-popover.is-sheet {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100%;
  max-width: none;
  max-height: min(72dvh, 560px);
  overflow: auto;
  scrollbar-width: thin;
  border-radius: 6px 6px 0 0;
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.2);
}

.awp-studio-color-popover__sheet-head {
  display: none;
  justify-content: flex-end;
  margin: 0 0 4px;
}

.awp-studio-color-popover.is-sheet .awp-studio-color-popover__sheet-head,
.awp-studio-color-popover.is-persist .awp-studio-color-popover__sheet-head {
  display: flex;
}

.awp-studio-color-popover .awp-studio-color-panel {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 6px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.awp-studio-contextual-bar .awp-studio-color-swatch {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: var(--awp-swatch-bg, #111827);
  color: var(--awp-swatch-fg, #ffffff);
  cursor: pointer;
}

.awp-studio-contextual-bar .awp-studio-color-swatch[aria-expanded="true"],
.awp-studio-selection-float-toolbar .awp-studio-color-swatch[aria-expanded="true"] {
  outline: 2px solid #5258e4;
  outline-offset: 1px;
}

.awp-studio-color-panel__title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.awp-studio-color-panel__picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.awp-studio-color-panel__sv {
  position: relative;
  height: 96px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  cursor: crosshair;
  touch-action: none;
  overflow: hidden;
}

.awp-studio-color-panel__sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.45);
  pointer-events: none;
}

.awp-studio-color-panel__hue {
  width: 100%;
  height: 14px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #ff0000,
    #ffff00,
    #00ff00,
    #00ffff,
    #0000ff,
    #ff00ff,
    #ff0000
  );
}

.awp-studio-color-panel__hue::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #334155;
  cursor: pointer;
}

.awp-studio-color-panel__spaces {
  display: flex;
  gap: 3px;
}

.awp-studio-color-panel__space {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  min-height: 26px;
  height: auto;
  padding: 4px 2px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awp-studio-color-panel__space.is-active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #3730a3;
}

.awp-studio-color-panel__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  align-items: end;
}

.awp-studio-color-panel__hex {
  width: 100%;
  height: 28px;
  grid-column: 1 / -1;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 8px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

.awp-studio-color-panel__chan {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.awp-studio-color-panel__chan input {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 4px;
  font: inherit;
  font-size: 12px;
  box-sizing: border-box;
  appearance: textfield;
  -moz-appearance: textfield;
}

.awp-studio-color-panel__chan input::-webkit-inner-spin-button,
.awp-studio-color-panel__chan input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  display: none;
}

.awp-studio-color-panel__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.awp-studio-color-panel__eyedropper {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}

.awp-studio-color-panel__apply-chip {
  flex: 0 0 32px;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: #111827;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
}

.awp-studio-color-panel__apply-chip[hidden] {
  display: none !important;
}

.awp-studio-color-panel__quick {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
}

.awp-studio-color-panel__quick-swatch {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.awp-studio-color-panel__quick-swatch.is-none {
  background-color: #fff !important;
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%) !important;
  background-size: 8px 8px !important;
  background-position:
    0 0,
    0 4px,
    4px -4px,
    -4px 0 !important;
  border-color: #94a3b8;
}

.awp-studio-color-panel__quick-swatch.is-none::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    #ef4444 calc(50% - 1px),
    #ef4444 calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  pointer-events: none;
}

.awp-studio-color-panel__gradient {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}

.awp-studio-color-panel__gradient[hidden] {
  display: none !important;
}

.awp-studio-color-panel__stop-hint {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: #64748b;
}

.awp-studio-color-panel__stop-bar {
  --awp-stop-handle: 16px;
  --awp-stop-inset: 2px;
  position: relative;
  box-sizing: border-box;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(90deg, #111827, #64748b);
  touch-action: none;
  cursor: copy;
  overflow: hidden;
}

.awp-studio-color-panel__stop-handle {
  position: absolute;
  top: 50%;
  left: var(--awp-stop-inset);
  width: var(--awp-stop-handle);
  height: var(--awp-stop-handle);
  margin: 0;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #334155;
  box-sizing: border-box;
  cursor: grab;
  padding: 0;
  touch-action: none;
  z-index: 1;
}

.awp-studio-color-panel__stop-handle.is-active {
  box-shadow: 0 0 0 2px #6366f1;
  z-index: 2;
}

.awp-studio-color-panel__stop-handle.is-dragging {
  cursor: grabbing;
  z-index: 3;
}

.awp-studio-color-panel__stop-handle.is-remove {
  box-shadow: 0 0 0 2px #dc2626;
  opacity: 0.55;
  transform: translateY(-50%) scale(0.85);
}

.awp-studio-color-panel__stop-actions {
  display: flex;
  gap: 6px;
}

.awp-studio-color-panel__stop-btn {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.awp-studio-color-panel__stop-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.awp-studio-color-panel__stop-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.awp-studio-color-popover .awp-studio-color-panel__stop-btn {
  background: #fff !important;
  background-image: none !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

.awp-studio-color-popover .awp-studio-color-panel__stop-btn:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

.awp-studio-color-panel__angle {
  display: grid;
  grid-template-columns: auto 1fr 56px;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.awp-studio-color-panel__angle input[type="number"] {
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 6px;
  font: inherit;
}

.awp-studio-color-panel__presets-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-top: 0;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.awp-studio-color-popover .awp-studio-prop-hint {
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.awp-studio-color-panel__presets-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
}

.awp-studio-color-panel__preset {
  aspect-ratio: 1;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  padding: 0;
  background-size: cover;
}

.awp-studio-color-panel__kind-tabs {
  margin: 0;
}

.awp-studio-color-panel__angle[hidden] {
  display: none !important;
}

.awp-studio-color-panel__preset--gradient {
  background-color: #e2e8f0;
}

.awp-studio-color-panel__presets--gradients {
  margin-top: 2px;
}

.awp-studio-bg-color-panel-host {
  margin: 0 0 10px;
}

.awp-studio-bg-color-panel-host .awp-studio-bg-color-field .awp-studio-color-row {
  width: 100%;
}

.awp-studio-bg-color-panel-host .awp-studio-bg-color-field .awp-studio-color-row .awp-studio-prop-color-swatch {
  flex: 1 1 auto;
  width: auto;
  min-width: 48px;
  max-width: none;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  border-radius: 10px;
}

.awp-studio-background-color-picker--secondary {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

.awp-studio-background-color-input {
  display: none !important;
}

.awp-studio-bg-presets {
  opacity: 0.92;
}

.awp-studio-bg-presets--secondary {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  opacity: 0.88;
}

.awp-studio-bg-presets-secondary-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 8px;
}

.awp-studio-bg-presets-label::before {
  content: "";
}

.awp-studio-gradient-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.awp-studio-gradient-editor__preview {
  height: 28px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(120deg, #111827, #64748b);
}

.awp-studio-gradient-editor__stops {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.awp-studio-gradient-editor__stop {
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  gap: 6px;
  align-items: center;
}

.awp-studio-gradient-editor__stop input[type="color"] {
  width: 36px;
  height: 28px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.awp-studio-gradient-editor__stop input[type="number"] {
  width: 100%;
  height: 28px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 6px;
  font: inherit;
  font-size: 12px;
}

.awp-studio-gradient-editor__remove {
  appearance: none;
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  border-radius: 6px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.awp-studio-gradient-editor__remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.awp-studio-gradient-editor__add {
  align-self: flex-start;
}

.awp-studio-cmyk-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 4px 0 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  font-size: 11px;
  color: #475569;
}

.awp-studio-cmyk-readout__label {
  font-weight: 700;
  color: #334155;
}

.awp-studio-cmyk-readout__values {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.awp-studio-element.has-live-canvas-paint > :not(.awp-studio-live-paint) {
  visibility: hidden;
}

/* Kontur/gölge taşması: genel img kuralı (100% + object-fit:cover) üstü kesmesin */
.awp-studio-element.has-live-canvas-paint > .awp-studio-live-paint {
  display: block;
  position: absolute;
  max-width: none !important;
  max-height: none !important;
  width: auto;
  height: auto;
  object-fit: fill !important;
  object-position: top left;
  flex-shrink: 0;
}

.awp-studio-effect-chip {
  appearance: none;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  height: 28px;
  max-width: 100%;
  min-width: 0;
  padding: 0 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-align: center;
  box-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awp-studio-effect-chip.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

.awp-studio-text-path-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}

#awp-printwise-root svg.awp-studio-text-path-svg,
.awp-studio-canvas svg.awp-studio-text-path-svg,
.awp-studio-element > svg.awp-studio-text-path-svg {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex-shrink: 1 !important;
  vertical-align: top !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.awp-studio-element[data-element-type="text"]:has(> .awp-studio-text-path-svg) {
  overflow: visible !important;
}

.awp-studio-text-fill-clip {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.awp-studio-text-fill-clip * {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.awp-studio-text-rich .awp-studio-text-fill-clip {
  display: inline;
}

.awp-studio-selection-float-toolbar {
  position: absolute;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 4px 6px;
  width: max-content;
  max-width: none;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  pointer-events: auto;
  z-index: 6;
  transform: translateX(-50%);
  white-space: nowrap;
}

.awp-studio-selection-float-toolbar > * {
  flex: 0 0 auto;
}

.awp-studio-selection-float-toolbar .awp-studio-toolbar-sep {
  width: 1px !important;
  max-width: none !important;
  height: 18px !important;
  margin: 0 4px !important;
  align-self: center !important;
  background: #e5e7eb !important;
  flex-shrink: 0;
}

.awp-studio-selection-float-toolbar--below {
  /* konum JS ile seçimin altına verilir; z-index üstte kalsın */
  z-index: 7;
}

.awp-studio-selection-float-toolbar .awp-studio-toolbar-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.awp-studio-selection-float-toolbar .awp-studio-toolbar-icon:hover:not(.awp-studio-float-color):not(:disabled),
.awp-studio-selection-float-toolbar .awp-studio-toolbar-icon:focus-visible:not(.awp-studio-float-color):not(:disabled) {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
  outline: none;
}

.awp-studio-selection-float-toolbar .awp-studio-toolbar-icon:active:not(.awp-studio-float-color):not(:disabled) {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
  box-shadow: none;
}

.awp-studio-selection-float-toolbar .awp-studio-toolbar-icon.is-active:not(.awp-studio-float-color) {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.awp-studio-selection-float-toolbar .awp-studio-rotate-preset {
  width: auto;
  min-width: 36px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.awp-studio-prop-field-row.awp-studio-rotate-presets {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 2px;
}

.awp-studio-rotate-preset-btn {
  appearance: none;
  height: 28px;
  margin: 0;
  padding: 0 4px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.awp-studio-rotate-preset-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.awp-studio-selection-float-toolbar .awp-studio-float-color {
  position: relative;
  overflow: hidden;
  background: var(--awp-swatch-bg, #111827);
  color: var(--awp-swatch-fg, #ffffff);
  border: 1px solid rgba(15, 23, 42, 0.16);
}

.awp-studio-selection-float-toolbar .awp-studio-float-color:hover,
.awp-studio-selection-float-toolbar .awp-studio-float-color:focus-within {
  background: var(--awp-swatch-bg, #111827);
  color: var(--awp-swatch-fg, #ffffff);
}

.awp-studio-selection-float-toolbar .awp-studio-float-color:focus-within {
  outline: 2px solid #5258e4;
  outline-offset: 1px;
}

.awp-studio-selection-float-toolbar .awp-studio-float-color input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.awp-studio-selection-float-toolbar .awp-studio-float-color .awp-studio-icon {
  position: relative;
  z-index: 1;
  pointer-events: none;
  color: inherit;
}

.awp-studio-selection-float-toolbar .awp-studio-toolbar-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.awp-studio-size-custom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.awp-studio-size-custom span {
  font-weight: 500;
  color: #374151;
}

.awp-studio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  box-sizing: border-box;
}

.awp-studio-toggle input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  max-width: 16px;
  margin: 0;
  padding: 0 !important;
  flex: 0 0 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

.awp-studio-toggle > span {
  flex: 0 1 auto;
  line-height: 1.2;
  white-space: nowrap;
}

.awp-studio-properties-content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
.awp-studio-properties-content textarea,
.awp-studio-properties-content select,
.awp-studio-prop-select-trigger {
  width: 100%;
  height: 32px;
  box-sizing: border-box;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  box-shadow: none;
}

.awp-studio-properties-content textarea {
  height: auto;
  min-height: 64px;
  padding: 8px;
  resize: vertical;
  line-height: 1.4;
}

.awp-studio-properties-content input[type="color"] {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}

.awp-studio-prop-color-swatch,
.awp-studio-color-field--swatch .awp-studio-prop-color-swatch {
  box-sizing: border-box;
  display: block;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: var(--awp-swatch-bg, #111827);
  background-clip: padding-box;
  cursor: pointer;
  flex: 0 0 32px;
  align-self: stretch;
  overflow: visible;
}

.awp-studio-prop-color-swatch[aria-expanded="true"] {
  outline: none;
  box-shadow: 0 0 0 2px #5258e4;
}

.awp-studio-color-field--swatch.is-empty .awp-studio-prop-color-swatch {
  background: repeating-conic-gradient(#e2e8f0 0 25%, #ffffff 0 50%) 50% / 10px 10px;
}

.awp-studio-properties-content input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.awp-studio-properties-content input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}

.awp-studio-properties-content input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 7px;
}

.awp-studio-color-field--swatch .awp-studio-color-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-height: 32px;
}

.awp-studio-color-field--swatch .awp-studio-color-row .awp-studio-prop-color-swatch {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  align-self: stretch;
}

.awp-studio-color-field--inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.awp-studio-color-field--inline > .awp-studio-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.awp-studio-color-field--inline > .awp-studio-color-row {
  flex: 0 1 auto;
  min-width: 0;
}

.awp-studio-color-field--inline .awp-studio-color-clear {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0 10px;
}

.awp-studio-properties-content .awp-studio-label {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-properties-content .awp-studio-label--check {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.awp-studio-prop-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.awp-studio-prop-select-trigger {
  position: relative;
  display: block;
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding-right: 28px;
  text-align: left;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  cursor: pointer;
  line-height: 30px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.awp-studio-prop-select-menu {
  position: fixed;
  z-index: 2147483002;
  box-sizing: border-box;
  max-height: min(280px, 50vh);
  overflow-y: auto;
  padding: 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.awp-studio-prop-select-option {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 7px 10px;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  color: #0f172a;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease;
  transform: none;
  box-shadow: none;
}

.awp-studio-prop-select-option:hover,
.awp-studio-prop-select-option:focus-visible {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #0f172a;
  transform: none;
  box-shadow: none;
}

.awp-studio-prop-select-option.is-selected {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 600;
}

.awp-studio-toolbar .button.awp-studio-mode-button,
.awp-studio-toolbar .awp-studio-toolbar-icon,
.awp-studio-toolbar .awp-ps-guide-btn {
  border: none !important;
  border-left: none !important;
  box-shadow: none !important;
  border-radius: 3px;
}

.awp-studio-toolbar .button.awp-studio-mode-button {
  background: #eef2ff;
  color: #1e293b;
  min-height: 32px;
  line-height: 30px;
  padding: 0 12px;
}

.awp-studio-toolbar .button.awp-studio-mode-button:hover {
  background: #e0e7ff;
  color: #1e1b4b;
  box-shadow: none !important;
}

.awp-studio-toolbar .awp-studio-toolbar-icon {
  background: #f1f5f9;
  color: #334155;
}

.awp-studio-toolbar .awp-studio-toolbar-icon:hover {
  background: #e2e8f0;
  color: #0f172a;
  box-shadow: none !important;
}

.awp-studio-toolbar .awp-ps-guide-btn {
  background: #f8fafc;
  color: #334155;
}

.awp-studio-toolbar .awp-ps-guide-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border: none !important;
  box-shadow: none !important;
}

.awp-studio-toolbar .awp-ps-guide-btn.is-active {
  background: #fff7ed;
  color: #9a3412;
  border: none !important;
  box-shadow: none !important;
}

.awp-studio-mode-button {
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.awp-studio-mode-button:hover {
  box-shadow: none;
}

.awp-studio-mode-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.awp-studio-mode-button:active {
  transform: scale(0.97);
}

.awp-studio-toolbar .button.awp-studio-mode-button.active,
.awp-studio-mode-button.active {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

/* Stage Viewport - Canva/Figma benzeri çalışma alanı */
.awp-studio-canvas-viewport:focus,
.awp-studio-canvas-viewport:focus-visible,
.awp-studio-editor-wrapper:focus,
.awp-studio-editor-wrapper:focus-visible,
#awp-studio-canvas:focus,
.awp-studio-canvas-inner:focus,
.awp-studio-canvas-inner:focus-visible {
  outline: none !important;
}

.awp-studio-canvas-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 480px; /* Viewport en az 480px yüksekliğinde olsun */
  background-color: #f5f7fa; /* Light neutral background */
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
  background-size: 20px 20px; /* Larger grid for better visibility */
  background-position: 0 0;
  overflow: auto; /* Scrollbars when artboard is larger than viewport */
  /* Grid is background only - artboard is centered absolutely */
  touch-action: pan-x pan-y;
  /* Shift/Ctrl+tekerlek zoom’da WP admin sayfasının kaymasını / overscroll’unu kes */
  overscroll-behavior: none;
}

/* Scroll spacer - invisible element that creates scrollable area */
.awp-studio-scroll-spacer {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 0;
}

/* Ölçü alanı dışı silik (frontend’de kesilecek alan) */
/* Tasarım alanı altı: cihaz tasarımı geçişi (Desktop / Tablet / Mobil) */
.awp-studio-device-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 12px;
  margin-top: 8px;
  margin-left: var(--awp-panel-overlap-left, 0px);
  margin-right: var(--awp-panel-overlap-right, 0px);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-sizing: border-box;
  transition: margin-left 0.2s ease, margin-right 0.2s ease;
}

.awp-studio-device-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12px;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.awp-studio-device-nav-btn:hover {
  background: #e2e8f0;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.awp-studio-device-nav-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
  border-color: #2563eb;
}

.awp-studio-device-nav-btn:active {
  transform: scale(0.97);
  background: #cbd5e1;
}

.awp-studio-device-nav-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.awp-studio-device-nav-current {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  min-width: 72px;
  text-align: center;
}

.awp-studio-banner-devices,
.awp-studio-banner-list {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.awp-studio-banner-device,
.awp-studio-banner-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.awp-studio-banner-device.is-active,
.awp-studio-banner-chip.is-active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.awp-studio-banner-empty {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 480px) {
  .awp-studio-device-nav-label {
    display: none;
  }
}

/* Artboard Wrapper - no clipping; objects remain visible/editable outside canvas when rulers or guides are on */
.awp-studio-canvas-wrapper {
  position: absolute;
  box-sizing: border-box;
  overflow: visible;
  transform: none;
  will-change: auto;
}

.awp-studio-editor-wrapper.awp-studio-canvas--panel-shift,
.awp-studio-canvas-wrapper.awp-studio-canvas--panel-shift {
  transition: left 0.28s ease;
}

/* Canvas (Artboard) — sağ + alt sert gölge (blur yok).
   Offset ekranda ~14px kalsın: CSS zoom ile büyüyen artboard px’ini / scale ile dengeler. */
.awp-studio-canvas-inner {
  position: relative;
  background: #ffffff;
  --awp-artboard-shadow-offset: calc(14px / var(--awp-canvas-scale, 1));
  --awp-artboard-shadow-color: rgba(148, 163, 184, 0.72);
  box-shadow:
    var(--awp-artboard-shadow-offset) var(--awp-artboard-shadow-offset) 0 0
    var(--awp-artboard-shadow-color);
  border-radius: 0;
  overflow: visible; /* Allow elements to extend beyond artboard */
  transform: none;
  transform-origin: center center;
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/* Ürün mockup'ı (tişört vb.): tuvalin arkasında, yalnız ekranda; baskı alanı kesikli çerçeve */
.awp-studio-canvas-wrapper > .awp-studio-product-mockup {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.awp-studio-canvas-wrapper:has(> .awp-studio-facing-partner) > .awp-studio-canvas-inner {
  box-shadow: none;
  z-index: 1;
}
.awp-studio-canvas-wrapper > .awp-studio-facing-partner {
  position: absolute;
  z-index: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
}
.awp-studio-canvas-wrapper > .awp-studio-facing-partner.is-left {
  left: -100%;
}
.awp-studio-canvas-wrapper > .awp-studio-facing-partner.is-right {
  left: 100%;
}
.awp-studio-canvas-wrapper > .awp-studio-facing-partner:hover,
.awp-studio-canvas-wrapper > .awp-studio-facing-partner:focus-visible {
  outline: calc(2px / var(--awp-canvas-scale, 1)) solid rgba(99, 102, 241, 0.8);
  outline-offset: calc(-2px / var(--awp-canvas-scale, 1));
}
.awp-studio-facing-partner > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.awp-studio-facing-partner:hover > img,
.awp-studio-facing-partner:focus-visible > img {
  opacity: 1;
}
.awp-studio-facing-partner__guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.awp-studio-facing-partner__bleed,
.awp-studio-facing-partner__safe {
  position: absolute;
  box-sizing: border-box;
}
.awp-studio-canvas-wrapper > .awp-studio-facing-spine-line {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 2px;
  background: #9ca3af;
  transform: translateX(-50%);
  pointer-events: none;
}
.awp-studio-canvas-wrapper > .awp-studio-facing-spine-line.is-left {
  left: 0;
}
.awp-studio-canvas-wrapper > .awp-studio-facing-spine-line.is-right {
  left: 100%;
}
.awp-studio-spill-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.awp-studio-canvas-wrapper.awp-studio-has-mockup > .awp-studio-canvas-inner {
  box-shadow: none;
  outline: calc(1.5px / var(--awp-canvas-scale, 1)) dashed rgba(219, 39, 119, 0.9);
  outline-offset: 0;
}

.awp-studio-canvas-wrapper.awp-studio-has-mockup.awp-studio-preview-mode > .awp-studio-canvas-inner {
  outline: none;
}

/* Zoom: CSS zoom ile yeniden raster — bitmap stretch yok (PitchPrint benzeri prensip) */
.awp-studio-canvas-wrapper.awp-studio-artboard--zoomed-in,
.awp-studio-canvas-inner.awp-studio-artboard--zoomed-in {
  text-rendering: geometricPrecision;
}

.awp-studio-artboard--zoomed-in .awp-studio-element[data-element-type="clipart"] svg,
.awp-studio-artboard--zoomed-in .awp-studio-element[data-element-type="shape"] svg {
  shape-rendering: geometricPrecision;
}

.awp-studio-artboard--zoomed-in .awp-studio-element[data-element-type="image"] img {
  image-rendering: auto;
}

/* PDF/ön yüz etiketi kaldırıldı; cetvel ile değiştirildi */
.awp-studio-canvas-inner::before {
  content: none;
}

/* Editor wrapper: rulers outside canvas; do not clip so objects stay visible/editable beyond canvas */
.awp-studio-editor-wrapper {
  display: grid;
  box-sizing: border-box;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}

.awp-studio-ruler-corner {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 20;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1;
  user-select: none;
  isolation: isolate;
}

.awp-studio-ruler-corner--cm {
  letter-spacing: 0.02em;
}

/* Modern minimal rulers – light, airy, thin ticks */
.awp-studio-ruler-top,
.awp-studio-ruler-left {
  position: relative;
  z-index: 20;
  background: #f8fafc;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  padding: 0;
  isolation: isolate;
  box-shadow: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.awp-studio-ruler-top {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.awp-studio-ruler-left {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid #e2e8f0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  justify-self: stretch;
}

.awp-studio-canvas-container {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  z-index: 40;
  overflow: visible;
}

.awp-studio-ruler-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 4px;
  background: #cbd5e1;
  transform: translateX(-50%);
}

.awp-studio-ruler-tick.is-minor {
  height: 3px;
  background: #dbe2ea;
}

.awp-studio-ruler-tick.is-medium {
  height: 6px;
  background: #b0bcc9;
}

.awp-studio-ruler-tick.is-major {
  height: 9px;
  background: #94a3b8;
}

.awp-studio-ruler-tick.is-label,
.awp-studio-ruler-tick.awp-studio-ruler-origin {
  height: 10px;
  background: #64748b;
}

.awp-studio-ruler-tick-vertical {
  position: absolute;
  left: auto;
  right: 0;
  width: 4px;
  height: 1px;
  background: #cbd5e1;
  transform: translateY(-50%);
}

.awp-studio-ruler-tick-vertical.is-minor {
  width: 4px;
  background: #dbe2ea;
}

.awp-studio-ruler-tick-vertical.is-medium {
  width: 6px;
  background: #b0bcc9;
}

.awp-studio-ruler-tick-vertical.is-major {
  width: 9px;
  background: #94a3b8;
}

.awp-studio-ruler-tick-vertical.is-label,
.awp-studio-ruler-tick-vertical.awp-studio-ruler-origin {
  width: 10px;
  background: #64748b;
}

.awp-studio-ruler-label {
  position: absolute;
  font-size: 9px;
  color: #64748b;
  font-weight: 400;
  line-height: 1;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  letter-spacing: 0.01em;
}

.awp-studio-ruler-top .awp-studio-ruler-label {
  top: 5px;
  transform: translateX(-50%);
}

.awp-studio-ruler-top .awp-studio-ruler-label.is-origin {
  transform: none;
  left: 1px !important;
}

.awp-studio-ruler-top .awp-studio-ruler-label.is-end {
  transform: translateX(-100%);
}

.awp-studio-ruler-left .awp-studio-ruler-label {
  left: 4px;
  right: auto;
  writing-mode: horizontal-tb;
  text-align: left;
  transform: translateY(-50%);
}

.awp-studio-ruler-left .awp-studio-ruler-label.is-origin {
  transform: none;
  top: 1px !important;
}

.awp-studio-ruler-left .awp-studio-ruler-label.is-end {
  transform: translateY(-100%);
}

/* İmleç üçgenleri (ürün cetveli) */
.awp-studio-ruler-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  width: 0;
  height: 0;
}

.awp-studio-ruler-cursor--x {
  bottom: 0;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #ef4444;
}

.awp-studio-ruler-cursor--y {
  right: 0;
  left: auto;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #ef4444;
}

.awp-studio-editor-wrapper.awp-studio-preview-mode .awp-studio-ruler-top,
.awp-studio-editor-wrapper.awp-studio-preview-mode .awp-studio-ruler-left,
.awp-studio-editor-wrapper.awp-studio-preview-mode .awp-studio-ruler-corner {
  display: none;
}

.awp-studio-editor-wrapper.awp-studio-preview-mode {
  grid-template-columns: 0 1fr;
  grid-template-rows: 0 1fr;
}

/* Smart guides — ince kesikli, zoom’dan bağımsız ekran kalınlığı */
.awp-studio-smart-guides-layer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 40;
}

.awp-studio-smart-guide-line {
  position: absolute;
  display: none;
  background: none;
  box-shadow: none;
}

.awp-studio-smart-guide-v {
  width: calc(0.5px / var(--awp-canvas-scale, 1));
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(124, 58, 237, 0.78) 0,
    rgba(124, 58, 237, 0.78) calc(3px / var(--awp-canvas-scale, 1)),
    transparent calc(3px / var(--awp-canvas-scale, 1)),
    transparent calc(6px / var(--awp-canvas-scale, 1))
  );
  background-color: transparent;
}

.awp-studio-smart-guide-h {
  height: calc(0.5px / var(--awp-canvas-scale, 1));
  left: 0;
  right: 0;
  transform: translateY(-50%);
  background-image: repeating-linear-gradient(
    to right,
    rgba(124, 58, 237, 0.78) 0,
    rgba(124, 58, 237, 0.78) calc(3px / var(--awp-canvas-scale, 1)),
    transparent calc(3px / var(--awp-canvas-scale, 1)),
    transparent calc(6px / var(--awp-canvas-scale, 1))
  );
  background-color: transparent;
}

.awp-studio-smart-guide-line.is-grid {
  background-color: transparent;
  box-shadow: none;
}

.awp-studio-smart-guide-v.is-grid {
  width: calc(0.5px / var(--awp-canvas-scale, 1));
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(234, 88, 12, 0.82) 0,
    rgba(234, 88, 12, 0.82) calc(3px / var(--awp-canvas-scale, 1)),
    transparent calc(3px / var(--awp-canvas-scale, 1)),
    transparent calc(6px / var(--awp-canvas-scale, 1))
  );
}

.awp-studio-smart-guide-h.is-grid {
  height: calc(0.5px / var(--awp-canvas-scale, 1));
  background-image: repeating-linear-gradient(
    to right,
    rgba(234, 88, 12, 0.82) 0,
    rgba(234, 88, 12, 0.82) calc(3px / var(--awp-canvas-scale, 1)),
    transparent calc(3px / var(--awp-canvas-scale, 1)),
    transparent calc(6px / var(--awp-canvas-scale, 1))
  );
}

.awp-studio-canvas-inner.is-magnet-snap .awp-studio-grid {
  opacity: 0.92 !important;
  visibility: visible !important;
  display: block !important;
}

.awp-studio-smart-guide-gap {
  position: absolute;
  pointer-events: none;
  display: none;
  box-sizing: border-box;
  background: rgba(124, 58, 237, 0.12);
  border: calc(1px / var(--awp-canvas-scale, 1)) dashed rgba(124, 58, 237, 0.9);
  color: #6d28d9;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  font-size: calc(
    10px / var(--awp-canvas-scale, 1) * var(--awp-layout-scale, 1)
  );
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
}

.awp-studio-smart-guide-gap.is-axis-x {
  display: flex;
  align-items: center;
  justify-content: center;
}

.awp-studio-smart-guide-gap.is-axis-y {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: horizontal-tb;
}

.awp-studio-measure-hud {
  position: absolute;
  z-index: 45;
  display: none;
  transform: translate(
    -50%,
    calc(-100% - var(--awp-studio-selection-chrome-gap, 14px))
  );
  pointer-events: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: calc(
    11px / var(--awp-canvas-scale, 1) * var(--awp-layout-scale, 1)
  );
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
}

.awp-studio-canvas-viewport.awp-studio-space-pan {
  cursor: grab;
}

.awp-studio-canvas-viewport.is-panning,
body.awp-studio-is-panning .awp-studio-canvas-viewport,
body.awp-studio-is-panning .awp-studio-element,
body.awp-studio-is-panning .awp-studio-selection-box {
  cursor: grabbing !important;
  touch-action: none;
  user-select: none;
}

/* Pan sırasında tarayıcı scroll-snap / overscroll titremesini kes */
body.awp-studio-is-panning .awp-studio-canvas-viewport {
  overscroll-behavior: none;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

html.awp-studio-drag-copy,
html.awp-studio-drag-copy * {
  cursor: copy !important;
}

.awp-studio-selection-overlay {
  position: absolute;
  left: 0;
  top: 0;
  /* Boyutlar JS tarafından scroll spacer ile senkronize ayarlanır */
  pointer-events: none;
  z-index: 20;
  overflow: visible;
}

.awp-studio-selection-overlay-inner {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

.awp-studio-selection-overlay .awp-studio-selection-box,
.awp-studio-selection-overlay .awp-resize-handle,
.awp-studio-selection-overlay .awp-studio-selection-float-toolbar,
.awp-studio-selection-overlay .awp-studio-selection-rotate,
.awp-studio-selection-overlay .awp-studio-selection-chrome-cluster,
.awp-studio-selection-overlay .awp-studio-text-link-port,
.awp-studio-selection-overlay .awp-studio-shape-path-edit,
.awp-studio-selection-overlay .awp-studio-path-point-handle,
.awp-studio-selection-overlay .awp-studio-path-bezier-handle {
  pointer-events: auto;
}

.awp-studio-selection-box {
  position: absolute;
  border: 1.5px dashed #3b82f6;
  box-sizing: border-box;
  cursor: move;
  background: transparent;
  overflow: visible;
}

.awp-studio-selection-box--circle,
.awp-studio-hover-box--circle {
  border-radius: 50%;
}

/* Hover: seçim overlay gibi ekran pikseli — zoom’dan bağımsız kalınlık */
.awp-studio-hover-box {
  position: absolute;
  border: 2px dashed #e879b8;
  box-sizing: border-box;
  pointer-events: none;
  background: transparent;
  z-index: 1;
}

/* Sürükleyerek çoklu seçim (marquee) */
.awp-studio-marquee {
  position: absolute;
  border: 1.5px dashed #2563eb;
  background: rgba(37, 99, 235, 0.1);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 24;
  border-radius: 2px;
}

.awp-studio-canvas-viewport.awp-studio-marquee-active {
  cursor: crosshair;
}

.awp-studio-canvas-viewport.awp-studio-marquee-active .awp-studio-canvas-inner {
  cursor: crosshair;
}

/* Ölçü alanı: PDF / frontend çıktısı bu sınırın içi; kesikli çizgi ile belirgin */
/* Canvas styling moved above - using Canva-style definition */

.awp-studio-background-image,
.awp-studio-background-video,
.awp-studio-background-tone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.awp-studio-canvas-inner.show-safe .awp-studio-safe-area {
  opacity: 1;
}

.awp-studio-canvas-inner.show-grid .awp-studio-grid,
.awp-studio-canvas-inner .awp-studio-grid.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.awp-studio-safe-area {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px dashed #34d399;
  pointer-events: none;
  opacity: 0;
}

.awp-etiket-cut-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
  overflow: visible;
}

.awp-etiket-cut-dim {
  fill: rgba(6, 16, 30, 0.38);
}

.awp-etiket-cut-line {
  fill: none;
  stroke: #ff6a00;
  stroke-width: 1.75px;
  vector-effect: non-scaling-stroke;
}

.awp-etiket-cut-safe {
  fill: none;
  stroke: rgba(16, 185, 129, 0.95);
  stroke-width: 1.25px;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
}

.awp-studio-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.35) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  transition: opacity 0.15s ease;
}

.awp-studio-element {
  position: absolute;
  border: 0 solid transparent;
  box-sizing: border-box;
  padding: 0;
  cursor: move;
  z-index: 1;
  contain: layout style;
}

.awp-studio-element[data-element-type="text"].has-text-stroke,
.awp-studio-element[data-element-type="text"].is-editing-text,
.awp-studio-element[data-element-type="text"].has-live-canvas-paint {
  contain: none !important;
  overflow: visible !important;
}

.awp-studio-canvas.is-interacting .awp-studio-element:not(.selected) {
  pointer-events: none;
}

.awp-studio-canvas.is-interacting .awp-studio-element.selected {
  will-change: auto;
}

/* Seçim UI sadece overlay'da; eleman border'ı gizle (çiftlenmeyi önle) */
.awp-studio-element.selected {
  border-color: transparent;
  border-width: 0;
}

.awp-studio-element[data-element-type="text"] {
  min-height: auto;
  padding: 0;
  overflow: visible !important;
  contain: none;
  box-sizing: border-box;
}

.awp-studio-element[data-element-type="text"] .awp-studio-text-stack,
.awp-studio-element[data-element-type="text"] .awp-studio-text-face,
.awp-studio-element[data-element-type="text"] .awp-studio-text-stroke,
.awp-studio-element[data-element-type="text"] .awp-studio-text-fx,
.awp-studio-element[data-element-type="text"] .awp-studio-text-rich {
  overflow: visible !important;
}

/* 4’lü bağlı metin kutuları: boşta silik gri; hover/seçim overlay’i ezmesin */
.awp-studio-element.is-linked-text-frame:not(.selected):not(:hover):not(.is-editing-text) {
  box-shadow: inset 0 0 0 max(0.5px, calc(1px / var(--awp-canvas-scale, 1)))
    rgba(148, 163, 184, 0.55);
}

.awp-studio-preview .awp-studio-element.is-linked-text-frame,
.awp-studio-exporting .awp-studio-element.is-linked-text-frame {
  box-shadow: none;
}

.awp-studio-element[data-element-type="text"] > div {
  min-height: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

.awp-studio-element img:not(.awp-studio-live-paint) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.awp-studio-element.locked {
  cursor: not-allowed;
  opacity: 0.8;
}

.awp-studio-element[data-element-type="button"] {
  border-radius: var(--awp-btn-radius, 999px);
}

.awp-studio-element[data-element-type="button"][data-button-shadow="none"] {
  box-shadow: none;
}

.awp-studio-element[data-element-type="button"][data-button-shadow="soft"] {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.awp-studio-element[data-element-type="button"][data-button-shadow="medium"] {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.awp-studio-element[data-element-type="button"][data-button-shadow="strong"] {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
}

/* Hover/tıklama: yalnızca önizlemede. Panel açıkken (düzenleme) tuvali oynatma. */
body.awp-ps-previewing .awp-studio-element[data-element-type="button"][data-button-hover-effect="lift"]:hover,
.awp-studio-preview-mode .awp-studio-element[data-element-type="button"][data-button-hover-effect="lift"]:hover,
.awp-studio-preview .awp-studio-element[data-element-type="button"][data-button-hover-effect="lift"]:hover {
  transform: translateY(-2px) scale(1.02);
}

body.awp-ps-previewing .awp-studio-element[data-element-type="button"][data-button-hover-effect="glow"]:hover,
.awp-studio-preview-mode .awp-studio-element[data-element-type="button"][data-button-hover-effect="glow"]:hover,
.awp-studio-preview .awp-studio-element[data-element-type="button"][data-button-hover-effect="glow"]:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.3),
    0 14px 30px rgba(59, 130, 246, 0.35);
}

body.awp-ps-previewing .awp-studio-element[data-element-type="button"][data-button-hover-effect="pulse"]:hover,
.awp-studio-preview-mode .awp-studio-element[data-element-type="button"][data-button-hover-effect="pulse"]:hover,
.awp-studio-preview .awp-studio-element[data-element-type="button"][data-button-hover-effect="pulse"]:hover {
  animation: awp-studio-button-pulse 0.8s ease-in-out infinite;
}

body.awp-ps-previewing .awp-studio-element[data-element-type="button"][data-button-active-effect="press"]:active,
.awp-studio-preview-mode .awp-studio-element[data-element-type="button"][data-button-active-effect="press"]:active,
.awp-studio-preview .awp-studio-element[data-element-type="button"][data-button-active-effect="press"]:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.awp-studio-element[data-element-type="button"] {
  overflow: hidden;
  box-sizing: border-box;
}

.awp-studio-element[data-element-type="button"] .awp-studio-button-inner {
  /* metin butona sabit: taşma yok, kutu içinde ortalanmış */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  pointer-events: none;
  line-height: 1.2;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
  /* taşmayı iç boyutla engelle; JS shrinkToFit hesabını tamamla */
  max-width: 100%;
  max-height: 100%;
}

@keyframes awp-studio-button-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.awp-studio-element[data-element-type="clipart"] {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.awp-studio-element[data-element-type="image"].has-svg-stroke,
.awp-studio-element[data-element-type="clipart"].has-svg-stroke {
  overflow: visible;
}

.awp-studio-element.has-svg-stroke .awp-studio-image-wrap,
.awp-studio-element.has-svg-stroke .awp-studio-clipart-container {
  overflow: visible !important;
}

.awp-studio-element.has-svg-stroke svg {
  overflow: visible;
}

.awp-studio-element[data-element-type="clipart"] svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Clipart Panel - compact araç çubuğu + grid */
.awp-studio-clipart-toolbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.awp-studio-clipart-search-row,
.awp-studio-clipart-filter-row,
.awp-studio-clipart-meta-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.awp-studio-clipart-search {
  width: 100%;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  background: #fff;
  color: #0f172a;
  box-shadow: none;
}

.awp-studio-clipart-search:focus {
  outline: none;
  border-color: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.awp-studio-clipart-select {
  flex: 1;
  min-width: 0;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 11px;
  background: #fff;
  color: #334155;
}

.awp-studio-clipart-quick-filters {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: #f1f5f9;
  border-radius: 6px;
  flex-wrap: nowrap;
}

.awp-studio-clipart-chip {
  flex: 1 1 0;
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  border-radius: 4px;
  padding: 0 4px;
  height: 26px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awp-studio-clipart-chip:hover {
  color: #0f172a;
}

.awp-studio-clipart-chip.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.awp-studio-icons-chips {
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

.awp-studio-icons-chips .awp-studio-clipart-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
}

.awp-studio-icons-chips .awp-studio-clipart-chip svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.awp-studio-clipart-more {
  margin: 0;
}

.awp-studio-clipart-more > summary {
  list-style: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  padding: 2px 0;
}

.awp-studio-clipart-more > summary::-webkit-details-marker {
  display: none;
}

.awp-studio-clipart-more > summary::after {
  content: " ▾";
  font-size: 9px;
}

.awp-studio-clipart-more[open] > summary::after {
  content: " ▴";
}

.awp-studio-clipart-more > .awp-studio-clipart-filter-row {
  margin-top: 6px;
}

.awp-studio-clipart-meta-row {
  justify-content: space-between;
}

.awp-studio-clipart-count {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.awp-studio-clipart-clear {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.awp-studio-clipart-clear:hover {
  color: #0f172a;
  text-decoration: none;
}

.awp-studio-cliparts-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  padding: 16px 8px;
  font-size: 12px;
}

.awp-studio-cliparts-grid .awp-studio-clipart-preview {
  padding: 6px;
  box-sizing: border-box;
}

.awp-studio-cliparts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(72px, 72px);
  grid-auto-flow: row;
  gap: 6px;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 8px 10px 10px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
  scrollbar-gutter: auto;
}

.awp-studio-shapes-pane.is-active,
.awp-studio-shapes-grid,
.awp-studio-icons-grid,
#awp-studio-shapes-library,
#awp-studio-shapes-pane-maps.is-active {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
  scrollbar-gutter: auto;
}

.awp-studio-cliparts-grid:hover,
.awp-studio-cliparts-grid:focus-within,
.awp-studio-shapes-pane.is-active:hover,
.awp-studio-shapes-pane.is-active:focus-within,
.awp-studio-shapes-grid:hover,
.awp-studio-shapes-grid:focus-within,
.awp-studio-icons-grid:hover,
.awp-studio-icons-grid:focus-within,
#awp-studio-shapes-library:hover,
#awp-studio-shapes-library:focus-within,
#awp-studio-shapes-pane-maps.is-active:hover,
#awp-studio-shapes-pane-maps.is-active:focus-within {
  scrollbar-color: rgba(100, 116, 139, 0.55) transparent;
}

.awp-studio-cliparts-grid::-webkit-scrollbar,
.awp-studio-shapes-pane.is-active::-webkit-scrollbar,
.awp-studio-shapes-grid::-webkit-scrollbar,
.awp-studio-icons-grid::-webkit-scrollbar,
#awp-studio-shapes-library::-webkit-scrollbar,
#awp-studio-shapes-pane-maps.is-active::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.awp-studio-cliparts-grid::-webkit-scrollbar-button,
.awp-studio-shapes-pane.is-active::-webkit-scrollbar-button,
.awp-studio-shapes-grid::-webkit-scrollbar-button,
.awp-studio-icons-grid::-webkit-scrollbar-button,
#awp-studio-shapes-library::-webkit-scrollbar-button,
#awp-studio-shapes-pane-maps.is-active::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.awp-studio-cliparts-grid::-webkit-scrollbar-track,
.awp-studio-shapes-pane.is-active::-webkit-scrollbar-track,
.awp-studio-shapes-grid::-webkit-scrollbar-track,
.awp-studio-icons-grid::-webkit-scrollbar-track,
#awp-studio-shapes-library::-webkit-scrollbar-track,
#awp-studio-shapes-pane-maps.is-active::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

.awp-studio-cliparts-grid::-webkit-scrollbar-thumb,
.awp-studio-shapes-pane.is-active::-webkit-scrollbar-thumb,
.awp-studio-shapes-grid::-webkit-scrollbar-thumb,
.awp-studio-icons-grid::-webkit-scrollbar-thumb,
#awp-studio-shapes-library::-webkit-scrollbar-thumb,
#awp-studio-shapes-pane-maps.is-active::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.28);
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 999px;
}

.awp-studio-cliparts-grid:hover::-webkit-scrollbar-thumb,
.awp-studio-cliparts-grid:focus-within::-webkit-scrollbar-thumb,
.awp-studio-shapes-pane.is-active:hover::-webkit-scrollbar-thumb,
.awp-studio-shapes-pane.is-active:focus-within::-webkit-scrollbar-thumb,
.awp-studio-shapes-grid:hover::-webkit-scrollbar-thumb,
.awp-studio-shapes-grid:focus-within::-webkit-scrollbar-thumb,
.awp-studio-icons-grid:hover::-webkit-scrollbar-thumb,
.awp-studio-icons-grid:focus-within::-webkit-scrollbar-thumb,
#awp-studio-shapes-library:hover::-webkit-scrollbar-thumb,
#awp-studio-shapes-library:focus-within::-webkit-scrollbar-thumb,
#awp-studio-shapes-pane-maps.is-active:hover::-webkit-scrollbar-thumb,
#awp-studio-shapes-pane-maps.is-active:focus-within::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.5);
}

.awp-studio-cliparts-grid::-webkit-scrollbar-thumb:hover,
.awp-studio-shapes-pane.is-active::-webkit-scrollbar-thumb:hover,
.awp-studio-shapes-grid::-webkit-scrollbar-thumb:hover,
.awp-studio-icons-grid::-webkit-scrollbar-thumb:hover,
#awp-studio-shapes-library::-webkit-scrollbar-thumb:hover,
#awp-studio-shapes-pane-maps.is-active::-webkit-scrollbar-thumb:hover {
  background-color: rgba(71, 85, 105, 0.65);
}

.awp-studio-cliparts-grid::-webkit-scrollbar-thumb:active,
.awp-studio-shapes-pane.is-active::-webkit-scrollbar-thumb:active,
.awp-studio-shapes-grid::-webkit-scrollbar-thumb:active,
.awp-studio-icons-grid::-webkit-scrollbar-thumb:active,
#awp-studio-shapes-library::-webkit-scrollbar-thumb:active,
#awp-studio-shapes-pane-maps.is-active::-webkit-scrollbar-thumb:active {
  background-color: rgba(51, 65, 85, 0.8);
}

.awp-studio-cliparts-grid::-webkit-scrollbar-corner,
.awp-studio-shapes-pane.is-active::-webkit-scrollbar-corner,
.awp-studio-shapes-grid::-webkit-scrollbar-corner,
.awp-studio-icons-grid::-webkit-scrollbar-corner,
#awp-studio-shapes-library::-webkit-scrollbar-corner,
#awp-studio-shapes-pane-maps.is-active::-webkit-scrollbar-corner {
  background: transparent;
}

.awp-studio-clipart-item {
  aspect-ratio: 1;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0;
  background: #ffffff;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.awp-studio-clipart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  color: #fff;
  pointer-events: none;
}

.awp-studio-clipart-badge--high {
  background: #059669;
}

.awp-studio-clipart-badge--medium {
  background: #2563eb;
}

.awp-studio-clipart-badge--low {
  background: #94a3b8;
}

.awp-studio-clipart-item:active {
  cursor: grabbing;
  transform: none;
}

.awp-studio-clipart-item.selected {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: none;
}

.awp-studio-clipart-preview {
  width: 100%;
  height: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.awp-studio-clipart-preview svg,
.awp-studio-clipart-preview img,
.awp-studio-clipart-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  max-width: 100%;
  max-height: 100%;
}

.awp-studio-clipart-item--video .awp-studio-clipart-preview video {
  object-fit: cover;
  background: #0f172a;
}

.awp-studio-clipart-video-tag {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Legacy clipart structure compatibility: direct SVG under item */
.awp-studio-clipart-item svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Shapes Panel — tek satır, yalnızca ikon */
.awp-studio-shapes-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
  flex-shrink: 0;
}

.awp-studio-shapes-tab {
  position: relative;
  width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  cursor: pointer;
}

.awp-studio-shapes-tab svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.awp-studio-shapes-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.55);
}

.awp-studio-shapes-tab > span:not(.awp-studio-shapes-tab-count) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awp-studio-shapes-tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.awp-studio-shapes-tab-count {
  position: absolute;
  top: 2px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.awp-studio-shapes-tab-count[hidden] {
  display: none !important;
}

.awp-studio-shapes-pane[hidden],
.awp-studio-shapes-pane:not(.is-active) {
  display: none;
}

.awp-studio-shapes-pane.is-active {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
  overflow: auto;
}

/* Form / butonlar dikeyde şişmesin (Harita Oluştur siyah blok olmasın) */
.awp-studio-shapes-pane.is-active > * {
  flex: 0 0 auto;
}

/* Sadece kaydırılabilir galeriler — hazır şekiller grid’i sıkışmasın */
.awp-studio-shapes-pane.is-active .awp-studio-icons-grid {
  flex: 0 0 auto !important;
  min-height: 0;
  height: auto !important;
  max-height: none;
  align-content: start;
  overflow: visible;
}

.awp-studio-shapes-pane.is-active #awp-studio-shapes-library,
.awp-studio-shapes-pane.is-active .awp-studio-cliparts-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

#awp-studio-shapes-pane-icons.is-active {
  overflow-x: hidden !important;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.awp-studio-shapes-pane .awp-studio-tpl-action,
.awp-studio-shapes-pane .awp-studio-input {
  flex: 0 0 auto !important;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

/* Yalnız harita zoom — çizim kalınlık slider’ını ezme */
#awp-studio-shapes-pane-maps input[type="range"] {
  flex: 0 0 auto !important;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.awp-studio-shapes-pane .awp-studio-tpl-action {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 40px !important;
}

/* Harita paneli: yatay scroll yok */
#awp-studio-shapes-pane-maps.is-active {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-width: 0;
}

/* Arama: input geniş, Ara butonu kompakt */
#awp-studio-shapes-pane-maps .awp-studio-media-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

#awp-studio-shapes-pane-maps .awp-studio-media-search {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

#awp-studio-shapes-pane-maps #awp-studio-maps-go.awp-studio-tpl-action {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 52px !important;
  max-width: 72px !important;
  padding: 0 10px !important;
  align-self: center !important;
}

/* İkon arama: kutu geniş, Ara butonu kutuyla aynı yükseklikte */
#awp-studio-shapes-pane-icons .awp-studio-media-search-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

#awp-studio-shapes-pane-icons .awp-studio-media-search {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 32px !important;
  align-self: center !important;
}

#awp-studio-shapes-pane-icons #awp-studio-icons-go.awp-studio-tpl-action {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 52px !important;
  max-width: 72px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 10px !important;
  align-self: center !important;
}

#awp-studio-shapes-pane-maps #awp-studio-maps-add.awp-studio-tpl-action {
  width: 100% !important;
  max-width: 100% !important;
}

.awp-studio-shapes-pane .awp-studio-label {
  margin: 0;
}

#awp-studio-shapes-pane-maps .awp-studio-media-stock-status {
  color: #334155 !important;
  background: transparent;
  min-height: 1.2em;
  word-break: break-word;
}

.awp-studio-shapes-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}

.awp-studio-icons-social-label {
  margin: 10px 0 0;
  font-weight: 600;
  color: #334155;
}

.awp-studio-shapes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-content: start;
  align-items: start;
  gap: 8px;
  padding: 0 0 8px;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0;
  overflow: visible;
}

.awp-studio-shapes-heading {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 2px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-shape-item {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  isolation: isolate;
}

.awp-studio-shape-item:active {
  transform: none;
}

.awp-studio-shape-item.selected {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: none;
}

.awp-studio-shape-item--frame {
  background: #f8fafc;
}

.awp-studio-shape-preview {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.awp-studio-shape-preview svg {
  width: 88%;
  height: 88%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  pointer-events: none;
  overflow: visible;
}

.awp-studio-shape-item--frame .awp-studio-shape-preview svg {
  width: 90%;
  height: 90%;
}

#awp-studio-shapes-library,
.awp-studio-bg-library-grid {
  padding: 0;
  max-height: none;
}

.awp-studio-bg-library-section .awp-studio-shapes-hint {
  display: none;
}

.awp-studio-label--check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Background Panel */
.awp-studio-background-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.awp-studio-background-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.awp-studio-bg-tone-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 2px;
  background: #f1f5f9;
  border-radius: 6px;
}

.awp-studio-bg-tone-btn {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  height: 30px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
}

.awp-studio-bg-tone-btn.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.awp-studio-bg-tone-color {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.awp-studio-bg-tone-color[hidden] {
  display: none;
}

.awp-studio-bg-tone-color .awp-studio-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.awp-studio-bg-tone-opacity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
}

.awp-studio-bg-tone-opacity-range {
  width: 100%;
  margin: 0;
  accent-color: #2271b1;
  cursor: pointer;
}

.awp-studio-bg-tone-opacity-value {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.awp-studio-background-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-bg-tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: #f1f5f9;
  border-radius: 6px;
}

.awp-studio-bg-tab {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.awp-studio-bg-tab.is-active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.awp-studio-bg-pane[hidden],
.awp-studio-bg-pane:not(.is-active) {
  display: none;
}

.awp-studio-bg-pane.is-active {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.awp-studio-background-color-picker {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.awp-studio-background-color-input {
  display: none !important;
}

.awp-studio-bg-color-clear {
  appearance: none;
  flex: 0 0 auto;
  max-width: 46%;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.awp-studio-bg-color-clear:hover:not(:disabled) {
  border-color: #f87171;
  color: #b91c1c;
  background: #fef2f2;
}

.awp-studio-bg-color-clear:disabled,
.awp-studio-bg-color-clear.is-muted {
  opacity: 0.45;
  cursor: default;
}

.awp-studio-bg-presets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.awp-studio-bg-presets-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-bg-swatches {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

.awp-studio-bg-swatch {
  appearance: none;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: none;
}

.awp-studio-bg-swatch:focus-visible:not(.is-active) {
  outline: none;
}

.awp-studio-bg-swatch.is-active {
  border-color: #ea580c;
  box-shadow: none;
}

.awp-studio-bg-swatch[data-preset-kind="granite"] {
  background-size: auto, auto, auto, auto, auto, auto, cover;
}

.awp-studio-bg-swatch[data-color="#ffffff"],
.awp-studio-bg-swatch[data-color="#FFFFFF"] {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

@media (max-width: 420px) {
  .awp-studio-bg-swatches {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.awp-studio-background-image-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.awp-studio-bg-upload-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.awp-studio-background-image-preview {
  width: 100%;
  aspect-ratio: 16/9;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.awp-studio-background-image-preview img,
.awp-studio-background-image-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.awp-studio-background-image-preview .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}

.awp-studio-background-fit-select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
}

.awp-studio-cliparts-grid-old {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}





/* Clipart Library styles: assets/css/admin-clipart-library.css */


/* Köşe / kenar tutamaçları — dolu, ince çerçeveli */
.awp-resize-handle {
  width: 9px;
  height: 9px;
  background: #2563eb;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  z-index: 10;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.35),
    0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.awp-resize-handle:hover {
  transform: scale(1.15);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.45),
    0 2px 6px rgba(15, 23, 42, 0.28);
}

.awp-resize-handle.top-left {
  top: -4.5px;
  left: -4.5px;
  cursor: nwse-resize;
}

.awp-resize-handle.top-right {
  top: -4.5px;
  right: -4.5px;
  cursor: nesw-resize;
}

.awp-resize-handle.bottom-left {
  bottom: -4.5px;
  left: -4.5px;
  cursor: nesw-resize;
}

.awp-resize-handle.bottom-right {
  bottom: -4.5px;
  right: -4.5px;
  cursor: nwse-resize;
}

/* Kenar tutamaçları: dolu, kısa kapsül */
.awp-resize-handle.left,
.awp-resize-handle.right {
  width: 5px;
  height: 14px;
  border-radius: 999px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.awp-resize-handle.left:hover,
.awp-resize-handle.right:hover {
  transform: translateY(-50%) scale(1.12);
}

.awp-resize-handle.left {
  left: -2.5px;
}

.awp-resize-handle.right {
  right: -2.5px;
}

.awp-resize-handle.top,
.awp-resize-handle.bottom {
  width: 14px;
  height: 5px;
  border-radius: 999px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.awp-resize-handle.top:hover,
.awp-resize-handle.bottom:hover {
  transform: translateX(-50%) scale(1.12);
}

.awp-resize-handle.top {
  top: -2.5px;
}

.awp-resize-handle.bottom {
  bottom: -2.5px;
}

.awp-studio-selection-rotate {
  position: absolute;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 6;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
  padding: 0;
}

.awp-studio-selection-rotate:active {
  cursor: grabbing;
}

.awp-studio-selection-rotate .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.awp-studio-selection-chrome-cluster {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 8;
  pointer-events: auto;
}

.awp-studio-selection-chrome-cluster .awp-studio-selection-rotate {
  position: relative;
  transform: none;
  left: auto;
  top: auto;
}

.awp-studio-selection-more {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.awp-studio-selection-more:hover,
.awp-studio-selection-more[aria-expanded="true"] {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.awp-studio-selection-tools-modal-backdrop,
.awp-studio-selection-tools-flyout-layer {
  position: fixed;
  inset: 0;
  z-index: 100060;
  background: transparent;
  display: block;
  padding: 0;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.awp-studio-selection-tools-modal-backdrop.is-open,
.awp-studio-selection-tools-flyout-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.awp-studio-selection-tools-modal-backdrop.is-closing,
.awp-studio-selection-tools-flyout-layer.is-closing {
  opacity: 0;
  pointer-events: none;
}

.awp-studio-selection-tools-modal,
.awp-studio-selection-tools-flyout {
  position: fixed;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(96vw, 720px);
  max-height: min(78dvh, 560px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  padding: 8px;
  opacity: 0;
  will-change: opacity, transform;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.awp-studio-selection-tools-modal::-webkit-scrollbar,
.awp-studio-selection-tools-flyout::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.awp-studio-selection-tools-modal::-webkit-scrollbar-button,
.awp-studio-selection-tools-flyout::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.awp-studio-selection-tools-modal::-webkit-scrollbar-track,
.awp-studio-selection-tools-flyout::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

.awp-studio-selection-tools-modal::-webkit-scrollbar-thumb,
.awp-studio-selection-tools-flyout::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.awp-studio-selection-tools-modal::-webkit-scrollbar-thumb:hover,
.awp-studio-selection-tools-flyout::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.65);
  background-clip: padding-box;
}

.awp-studio-selection-tools-modal::-webkit-scrollbar-corner,
.awp-studio-selection-tools-flyout::-webkit-scrollbar-corner {
  background: transparent;
}

/* Tuvale ekleme ile aynı giriş: yukarıdan 50px + fade (awp-studio-just-added) */
.awp-studio-selection-tools-modal.is-open,
.awp-studio-selection-tools-flyout.is-open {
  animation: awp-studio-selection-tools-flyout-in 0.4s
    cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.awp-studio-selection-tools-modal.is-closing,
.awp-studio-selection-tools-flyout.is-closing {
  animation: awp-studio-selection-tools-flyout-out 0.28s
    cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

.awp-studio-selection-tools-modal.is-vertical,
.awp-studio-selection-tools-flyout.is-vertical {
  width: min(92vw, 304px);
  min-width: 168px;
  max-width: min(92vw, 304px);
  padding: 8px 6px;
}

.awp-studio-selection-tools-modal.is-vertical.is-open,
.awp-studio-selection-tools-flyout.is-vertical.is-open {
  animation-name: awp-studio-selection-tools-flyout-in-vertical;
}

.awp-studio-selection-tools-modal.is-vertical.is-closing,
.awp-studio-selection-tools-flyout.is-vertical.is-closing {
  animation-name: awp-studio-selection-tools-flyout-out-vertical;
}

.awp-studio-selection-tools-modal.is-horizontal,
.awp-studio-selection-tools-flyout.is-horizontal {
  width: max-content;
}

@keyframes awp-studio-selection-tools-flyout-in {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes awp-studio-selection-tools-flyout-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-28px);
  }
}

@keyframes awp-studio-selection-tools-flyout-in-vertical {
  from {
    opacity: 0;
    transform: translate(-20px, -20px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes awp-studio-selection-tools-flyout-out-vertical {
  from {
    opacity: 1;
    transform: translate(0, 0);
  }
  to {
    opacity: 0;
    transform: translate(-12px, -12px);
  }
}

.awp-studio-selection-tools-modal-head {
  display: none;
}

.awp-studio-selection-float-toolbar--in-modal {
  position: relative !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  width: auto;
  max-width: 100%;
  flex-wrap: nowrap;
  white-space: nowrap;
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 2px;
}

/* Mobil dikey: üst araçlar ELEMAN gibi kare kutucuk ızgarası */
.awp-studio-selection-float-toolbar--in-modal.awp-studio-selection-float-toolbar--stack {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  white-space: normal;
  width: 100%;
  gap: 4px;
  padding: 2px;
}

.awp-studio-selection-float-toolbar--stack .awp-studio-toolbar-sep {
  flex: 1 0 100%;
  width: 100% !important;
  max-width: none !important;
  height: 1px !important;
  margin: 4px 0 !important;
  align-self: stretch !important;
  background: #e2e8f0 !important;
}

.awp-studio-selection-float-toolbar--stack .awp-studio-toolbar-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  flex: 0 0 34px !important;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  box-sizing: border-box;
}

.awp-studio-selection-float-toolbar--stack .awp-studio-toolbar-icon:hover:not(.awp-studio-float-color):not(:disabled),
.awp-studio-selection-float-toolbar--stack .awp-studio-toolbar-icon:focus-visible:not(.awp-studio-float-color):not(:disabled) {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.awp-studio-selection-float-toolbar--stack .awp-studio-rotate-preset {
  width: auto !important;
  min-width: 40px !important;
  height: 34px !important;
  min-height: 34px !important;
  flex: 0 0 auto !important;
  padding: 0 6px !important;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  box-sizing: border-box;
}

.awp-studio-selection-float-toolbar--stack .awp-studio-rotate-preset:hover:not(:disabled),
.awp-studio-selection-float-toolbar--stack .awp-studio-rotate-preset:focus-visible:not(:disabled) {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
}

.awp-studio-selection-tools-modal.is-vertical .awp-studio-selection-tools-modal-layout {
  margin-top: 6px;
  padding-top: 8px;
}

.awp-studio-selection-tools-modal.is-vertical .awp-studio-selection-tools-modal-grid {
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  gap: 4px;
}

.awp-studio-selection-tools-modal.is-vertical .awp-studio-selection-tools-modal-grid .awp-studio-toolbar-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
}

.awp-studio-selection-tools-modal-layout {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.awp-studio-selection-tools-modal-label {
  padding: 0 4px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  text-transform: uppercase;
}

.awp-studio-selection-tools-modal-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  padding: 0 2px 2px;
  width: max-content;
  max-width: none;
}

.awp-studio-selection-tools-modal.is-vertical .awp-studio-selection-tools-modal-grid {
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.awp-studio-selection-tools-modal-grid .awp-studio-toolbar-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.awp-studio-selection-tools-modal-grid .awp-studio-toolbar-icon:hover:not(:disabled),
.awp-studio-selection-tools-modal-grid .awp-studio-toolbar-icon:focus-visible:not(:disabled) {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
  outline: none;
}

.awp-studio-selection-tools-modal-grid .awp-studio-toolbar-icon:active:not(:disabled) {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
  box-shadow: none;
}

.awp-studio-selection-float-toolbar {
  gap: 4px;
  padding: 4px 8px;
}

.awp-studio-prop-section {
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: 0;
}

/* Özellikler paneli: daraltılabilir gruplar */
.awp-studio-prop-group {
  margin: 0 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: visible;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.awp-studio-prop-group.is-collapsed {
  overflow: hidden;
}

.awp-studio-prop-group.is-collapsed .awp-studio-prop-group-header {
  border-radius: 10px;
}

.awp-studio-prop-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.awp-studio-prop-group-header:hover {
  background: #eef2ff;
  box-shadow: inset 0 -2px 0 #6366f1;
}

.awp-studio-prop-group-title {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.awp-studio-prop-group-chevron {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 14px;
  color: #94a3b8;
  transition: transform 0.18s ease;
}

.awp-studio-prop-group.is-collapsed .awp-studio-prop-group-chevron {
  transform: rotate(-90deg);
}

.awp-studio-prop-group-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #f1f5f9;
  overflow: visible;
  min-width: 0;
}

.awp-studio-prop-group.is-collapsed .awp-studio-prop-group-body {
  display: none;
}

.awp-studio-prop-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  align-items: end;
  width: 100%;
  max-width: 100%;
}

#awp-studio-publish-schedule-row[hidden] {
  display: none !important;
}

#awp-studio-publish-schedule-row.is-campaign-readonly input {
  background: #f8fafc;
  color: #475569;
  cursor: not-allowed;
  opacity: 0.95;
}

.awp-studio-prop-field-row--type {
  align-items: end;
}

.awp-studio-prop-field-row--type > .awp-studio-prop-field,
.awp-studio-prop-field-row--type > .awp-studio-prop-select {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  height: 100%;
}

.awp-studio-prop-field-row--type .awp-studio-label,
.awp-studio-prop-field-row--type .awp-studio-prop-select > .awp-studio-label {
  min-height: 1.2em;
  line-height: 1.2;
}

.awp-studio-prop-field-row--type input[type="number"],
.awp-studio-prop-field-row--type .awp-studio-prop-select-trigger {
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  box-sizing: border-box;
  line-height: 30px;
  margin: 0;
}

.awp-studio-prop-field-row--color-format,
.awp-studio-prop-field-row--pair-cards {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.awp-studio-prop-field-row--shadow {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
}

.awp-studio-prop-field-row--stroke {
  display: grid;
  grid-template-columns: auto minmax(108px, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  row-gap: 0;
  flex-wrap: nowrap;
}

.awp-studio-prop-field-row--stroke > .awp-studio-color-field--swatch,
.awp-studio-prop-field-row--stroke > .awp-studio-prop-stroke-mm-field,
.awp-studio-prop-field-row--stroke > .awp-studio-prop-stroke-join-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.awp-studio-prop-field-row--stroke > .awp-studio-color-field--swatch {
  flex: 0 0 auto;
  justify-self: start;
}

.awp-studio-prop-field-row--stroke > .awp-studio-prop-stroke-mm-field {
  flex: 1 1 auto;
  min-width: 108px;
  max-width: none;
}

.awp-studio-prop-field-row--stroke > .awp-studio-prop-stroke-join-field {
  flex: 0 0 auto;
  justify-self: end;
}

.awp-studio-prop-field-row--stroke .awp-studio-label {
  display: block;
  height: 14px;
  min-height: 14px;
  max-height: 14px;
  line-height: 14px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-self: stretch;
}

.awp-studio-prop-field-row--stroke .awp-studio-label--spacer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

.awp-studio-prop-field-row--stroke .awp-studio-color-row {
  display: flex;
  align-items: center;
  height: 32px;
  width: 32px;
  margin: 0;
  padding: 0;
}

.awp-studio-prop-field-row--stroke .awp-studio-prop-color-swatch {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  margin: 0;
}

.awp-studio-prop-field-row--stroke .awp-studio-prop-stroke-width-select {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 32px;
  margin: 0;
  box-sizing: border-box;
}

.awp-studio-prop-field-row--stroke .awp-studio-stroke-join-btns {
  display: inline-flex;
  flex: 0 0 auto;
  grid-template-columns: none;
  width: auto;
  height: 32px;
  gap: 4px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.awp-studio-prop-field-row--stroke .awp-studio-stroke-join-btn,
.awp-studio-prop-field-row--stroke .awp-studio-stroke-join-btn--icon {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
}

.awp-studio-prop-field-row--stroke .awp-studio-stroke-join-divider,
.awp-studio-prop-field-row--stroke .awp-studio-stroke-join-copy {
  display: none !important;
}

.awp-studio-prop-stroke-mm-field .awp-studio-prop-stroke-width-select {
  width: 100%;
}

.awp-studio-prop-field-row > * {
  min-width: 0;
  max-width: 100%;
}

.awp-studio-prop-field-row > .awp-studio-prop-field,
.awp-studio-prop-field-row > .awp-studio-prop-select,
.awp-studio-prop-field-row > .awp-studio-color-field,
.awp-studio-prop-field-row > .awp-studio-format-toggles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.awp-studio-prop-field-row .awp-studio-label {
  display: block;
  flex: 0 0 auto;
  min-height: 1.25em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}

.awp-studio-prop-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.awp-studio-prop-range-field .awp-studio-range-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.awp-studio-range-well {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: var(--awp-studio-slider-frame, 6px);
  border-radius: 999px;
  background: var(--awp-studio-slider-frame-bg, #c5ccd6);
  box-shadow:
    inset 1px 1px 2px var(--awp-studio-slider-frame-hi, rgba(255, 255, 255, 0.72)),
    inset -1px -1px 2px var(--awp-studio-slider-frame-sh, rgba(15, 23, 42, 0.38));
}

.awp-studio-context-menu .awp-studio-range-well {
  background: var(--awp-studio-slider-frame-bg, #3a4252);
  box-shadow:
    inset 1px 1px 2px var(--awp-studio-slider-frame-hi, rgba(255, 255, 255, 0.16)),
    inset -1px -1px 2px var(--awp-studio-slider-frame-sh, rgba(0, 0, 0, 0.55));
}

.awp-studio-ctx-opacity .awp-studio-range-well {
  width: 72px;
  flex: 0 0 auto;
}

.awp-studio-context-stroke-widths .awp-studio-range-well {
  flex: 1 1 auto;
  min-width: 0;
}

.awp-studio-range-row .awp-studio-range-well {
  flex: 1 1 auto;
  min-width: 0;
}

.awp-studio-range-well input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0;
  height: var(--awp-studio-slider-track-h, 8px) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  accent-color: transparent !important;
}

.awp-studio-prop-range-field .awp-studio-range-readout {
  display: block;
  align-self: center;
  min-height: 1.1em;
  padding: 0 2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}

.awp-studio-prop-range-field .awp-studio-range-input {
  width: 100%;
  min-width: 0;
  height: calc(
    var(--awp-studio-slider-track-h, 8px) + var(--awp-studio-slider-frame, 6px) *
      2
  );
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.awp-studio-root .awp-studio-range-input,
.awp-studio-root .awp-studio-zoom-range,
.awp-studio-root .awp-studio-ctx-opacity input[type="range"],
.awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue),
.awp-studio-animation-content .awp-studio-range {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: calc(
    var(--awp-studio-slider-track-h, 8px) + var(--awp-studio-slider-frame, 6px) *
      2
  );
  padding: 0;
  overflow: visible;
  background: transparent;
  border: var(--awp-studio-slider-frame, 6px) solid
    var(--awp-studio-slider-frame-bg, #c5ccd6);
  border-radius: 999px;
  outline: none;
  box-shadow:
    inset 0 1px 2px var(--awp-studio-slider-frame-sh, rgba(15, 23, 42, 0.38)),
    inset 0 -1px 1px var(--awp-studio-slider-frame-hi, rgba(255, 255, 255, 0.72)),
    0 1px 0 var(--awp-studio-slider-frame-hi, rgba(255, 255, 255, 0.72)),
    0 -1px 1px var(--awp-studio-slider-frame-sh, rgba(15, 23, 42, 0.38));
  filter: none;
  accent-color: transparent;
  cursor: pointer;
}

.awp-studio-root .awp-studio-range-input::-webkit-slider-container,
.awp-studio-root .awp-studio-zoom-range::-webkit-slider-container,
.awp-studio-root .awp-studio-ctx-opacity input[type="range"]::-webkit-slider-container,
.awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue)::-webkit-slider-container,
.awp-studio-animation-content .awp-studio-range::-webkit-slider-container {
  appearance: none;
  background: transparent;
  box-shadow: none;
}

.awp-studio-root .awp-studio-range-input::-webkit-slider-runnable-track,
.awp-studio-root .awp-studio-zoom-range::-webkit-slider-runnable-track,
.awp-studio-root .awp-studio-ctx-opacity input[type="range"]::-webkit-slider-runnable-track,
.awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue)::-webkit-slider-runnable-track,
.awp-studio-animation-content .awp-studio-range::-webkit-slider-runnable-track,
.awp-studio-context-stroke-slider::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  height: var(--awp-studio-slider-track-h, 8px);
  border-radius: 999px;
  background: var(--awp-studio-slider-track, #722428);
  border: 0;
  box-shadow: none;
  filter: none;
}

.awp-studio-context-stroke-slider::-webkit-slider-runnable-track {
  background: var(--awp-studio-slider-track-on-dark, #722428);
}

.awp-studio-root .awp-studio-range-input::-webkit-slider-thumb,
.awp-studio-root .awp-studio-zoom-range::-webkit-slider-thumb,
.awp-studio-root .awp-studio-ctx-opacity input[type="range"]::-webkit-slider-thumb,
.awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue)::-webkit-slider-thumb,
.awp-studio-animation-content .awp-studio-range::-webkit-slider-thumb,
.awp-studio-context-stroke-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--awp-studio-slider-thumb-size, 16px);
  height: var(--awp-studio-slider-thumb-size, 16px);
  margin-top: calc((var(--awp-studio-slider-track-h, 8px) - var(--awp-studio-slider-thumb-size, 16px)) / 2);
  border: 0;
  border-radius: 50%;
  background: var(--awp-studio-slider-thumb, #ff5c61);
  box-shadow: none;
  cursor: grab;
}

.awp-studio-root .awp-studio-range-input::-moz-range-track,
.awp-studio-root .awp-studio-zoom-range::-moz-range-track,
.awp-studio-root .awp-studio-ctx-opacity input[type="range"]::-moz-range-track,
.awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue)::-moz-range-track,
.awp-studio-animation-content .awp-studio-range::-moz-range-track,
.awp-studio-context-stroke-slider::-moz-range-track {
  height: var(--awp-studio-slider-track-h, 8px);
  border-radius: 999px;
  background: var(--awp-studio-slider-track, #722428);
  border: 0;
  box-shadow: none;
}

.awp-studio-context-stroke-slider::-moz-range-track {
  background: var(--awp-studio-slider-track-on-dark, #722428);
}

.awp-studio-root .awp-studio-range-input::-moz-range-thumb,
.awp-studio-root .awp-studio-zoom-range::-moz-range-thumb,
.awp-studio-root .awp-studio-ctx-opacity input[type="range"]::-moz-range-thumb,
.awp-studio-properties-content input[type="range"]:not(.awp-studio-color-panel__hue)::-moz-range-thumb,
.awp-studio-animation-content .awp-studio-range::-moz-range-thumb,
.awp-studio-context-stroke-slider::-moz-range-thumb {
  width: var(--awp-studio-slider-thumb-size, 16px);
  height: var(--awp-studio-slider-thumb-size, 16px);
  border: 0;
  border-radius: 50%;
  background: var(--awp-studio-slider-thumb, #ff5c61);
  box-shadow: none;
  cursor: grab;
}

.awp-studio-prop-field-row input,
.awp-studio-prop-field-row select,
.awp-studio-prop-field-row textarea,
.awp-studio-prop-field-row .button,
.awp-studio-prop-field-row .awp-studio-prop-btn {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.awp-studio-prop-field-row .awp-studio-color-field--swatch input[type="color"],
.awp-studio-prop-field-row .awp-studio-prop-color-swatch {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
}

.awp-studio-prop-field-row > .awp-studio-color-field--swatch:not(.awp-studio-color-field--inline) {
  box-sizing: border-box;
  width: auto;
  min-width: min-content;
  max-width: none;
  padding: 2px;
}

.awp-studio-prop-field-row--stroke > .awp-studio-color-field--swatch:not(.awp-studio-color-field--inline) {
  padding: 0;
}

.awp-studio-prop-field-row > .awp-studio-color-field--swatch:not(.awp-studio-color-field--inline) .awp-studio-color-row {
  width: 32px;
}

.awp-studio-prop-field-row--shadow > .awp-studio-color-field--swatch,
.awp-studio-prop-field-row--stroke > .awp-studio-color-field--swatch {
  min-width: min-content;
  max-width: none;
  padding: 0;
}

.awp-studio-prop-field-row--pair-cards > .awp-studio-color-field--swatch,
.awp-studio-prop-field-row--color-format > .awp-studio-color-field--swatch {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 10px;
  box-sizing: border-box;
}

.awp-studio-prop-field-row--pair-cards
  > .awp-studio-color-field--swatch
  .awp-studio-color-row,
.awp-studio-prop-field-row--color-format
  > .awp-studio-color-field--swatch
  .awp-studio-color-row {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.awp-studio-prop-field-row--pair-cards .awp-studio-prop-color-swatch,
.awp-studio-prop-field-row--color-format .awp-studio-prop-color-swatch {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 36px;
  max-height: 36px;
  height: 36px;
  flex: 1 1 auto;
}

.awp-studio-prop-field-row--pair-cards > .awp-studio-color-field--swatch,
.awp-studio-prop-field-row--pair-cards > .awp-studio-format-toggles,
.awp-studio-prop-field-row--pair-cards > .awp-studio-prop-icon-toggles {
  display: grid;
  grid-template-rows: auto minmax(36px, 36px);
  align-content: stretch;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: visible;
  box-sizing: border-box;
}

.awp-studio-prop-field-row--pair-cards
  > .awp-studio-color-field--swatch
  .awp-studio-color-row {
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-height: 36px;
  height: 36px;
  max-height: 36px;
}

.awp-studio-prop-field-row--pair-cards
  > .awp-studio-color-field--swatch
  .awp-studio-color-row
  .awp-studio-prop-color-swatch {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 100%;
}

.awp-studio-prop-field-row--pair-cards .awp-studio-format-toggle-row,
.awp-studio-prop-field-row--pair-cards .awp-studio-prop-icon-toggle-row {
  align-self: stretch;
  min-height: 36px;
  height: 36px;
  max-height: 36px;
}

.awp-studio-prop-field-row--pair-cards .awp-studio-format-toggle,
.awp-studio-prop-field-row--pair-cards .awp-studio-prop-icon-toggle {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 36px;
  min-height: 36px;
  aspect-ratio: 1;
}

.awp-studio-prop-field-row--pair-cards .awp-studio-label,
.awp-studio-prop-field-row--color-format .awp-studio-label,
.awp-studio-prop-field-row--shadow .awp-studio-label,
.awp-studio-prop-field-row--stroke .awp-studio-label {
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.awp-studio-text-frame-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  margin-top: 0;
}

.awp-studio-text-overflow-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 6;
  min-width: 12px;
  height: 12px;
  padding: 0 3px;
  border-radius: 3px;
  background: #ea580c;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(234, 88, 12, 0.4);
  /* Tuval zoom’undan bağımsız ekran boyutu */
  transform: scale(calc(1 / max(var(--awp-canvas-scale, 1), 0.05)));
  transform-origin: 100% 100%;
}

.awp-studio-text-link-port {
  position: absolute;
  z-index: 24;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #38bdf8;
  border-radius: 2px;
  background: #fff;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.awp-studio-text-link-port--in {
  left: -20px;
  top: -20px;
}

.awp-studio-text-link-port--out {
  right: -20px;
  bottom: -20px;
  left: auto;
  top: auto;
}

.awp-studio-selection-box:hover .awp-studio-text-link-port,
.awp-studio-text-link-port.is-overset,
.awp-studio-text-link-port.is-linked,
.awp-studio-root.is-text-linking .awp-studio-text-link-port {
  opacity: 1;
  pointer-events: auto;
}

.awp-studio-text-link-port.is-linked {
  background: #0ea5e9;
  border-color: #0284c7;
}

.awp-studio-text-link-port.is-overset {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-width: 1.5px;
  border-radius: 3px;
  background: #ea580c;
  border-color: #c2410c;
  color: #fff;
  font-size: 10px;
  line-height: 9px;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(234, 88, 12, 0.45);
  z-index: 26;
}

.awp-studio-text-link-port--out.is-overset {
  right: -16px;
  bottom: -4px;
}

.awp-studio-text-link-port:hover {
  transform: scale(1.15);
}

.awp-studio-text-thread {
  z-index: 18;
  opacity: 0.85;
}

.awp-studio-text-link-target {
  position: absolute;
  pointer-events: none;
  border: 2px dashed #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
  border-radius: 4px;
  box-sizing: border-box;
}

.awp-studio-text-link-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 30;
  pointer-events: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
}

.awp-studio-canvas-viewport.is-text-linking,
.awp-studio-root.is-text-linking .awp-studio-canvas-inner {
  cursor: alias;
}

.awp-studio-clip-frame-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.awp-studio-clip-frame-host--svg,
.awp-studio-element.is-powerclip-frame > .awp-studio-clip-frame-host--svg {
  overflow: hidden;
  background: transparent;
}

.awp-studio-element.is-powerclip-frame {
  overflow: visible;
}

.awp-studio-powerclip-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.awp-studio-clip-frame-host.is-clip-drop-target,
.awp-studio-element.is-clip-drop-target {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.awp-studio-clip-content {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.awp-studio-clip-content.is-clip-editing {
  pointer-events: auto;
  cursor: grab;
  z-index: 2;
  overflow: visible;
}

.awp-studio-element.is-powerclip-editing {
  overflow: visible !important;
  z-index: 8;
}

.awp-studio-element.is-powerclip-editing > .awp-studio-clip-frame-host,
.awp-studio-clip-frame-host.is-clip-editing-host {
  z-index: 5;
  overflow: visible !important;
}

.awp-studio-element.is-powerclip-editing > .awp-studio-shape-container {
  z-index: 1;
  opacity: 0.35;
  pointer-events: none;
}

.awp-studio-powerclip-edit-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  box-sizing: border-box;
  border: 2px dashed #38bdf8;
  border-radius: 2px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.28);
}

.awp-studio-powerclip-edit-hint {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  white-space: nowrap;
  max-width: min(320px, 70vw);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.awp-studio-clip-media {
  display: block;
  pointer-events: none;
}

.awp-studio-clip-content.is-clip-editing .awp-studio-clip-media {
  pointer-events: auto;
  cursor: grab;
  outline: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
}

.awp-studio-clip-content.is-clip-editing .awp-studio-clip-media:active {
  cursor: grabbing;
}

.awp-studio-clip-scale-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  padding: 0;
  border: 2px solid #0ea5e9;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
  z-index: 7;
  pointer-events: auto;
  cursor: nwse-resize;
}

.awp-studio-clip-scale-handle--ne,
.awp-studio-clip-scale-handle--sw {
  cursor: nesw-resize;
}

.awp-studio-element.is-powerclip-frame > .awp-studio-shape-container {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.awp-studio-element.is-powerclip-frame > .awp-studio-clip-frame-host {
  z-index: 0;
}

.awp-studio-element.is-powerclip-frame > .awp-studio-clipart-container.is-powerclip-svg-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.awp-studio-powerclip-outline {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.awp-studio-powerclip-outline svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.awp-studio-prop-hint {
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

.awp-studio-templates-inline {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.awp-studio-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 6px 0 8px;
}

.awp-studio-template-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.awp-studio-template-list--compact,
.awp-studio-template-grid--compact {
  max-height: none;
}

.awp-studio-template-grid.awp-studio-template-list {
  display: grid;
}

.awp-studio-template-empty {
  margin: 8px 0;
  grid-column: 1 / -1;
}

.awp-studio-tpl-section-title {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-tpl-section-title--drafts {
  margin-top: 0;
  color: #b45309;
}

.awp-studio-template-item--draft {
  border-color: #fcd34d;
}

.awp-studio-template-item--draft.is-active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.awp-studio-template-draft-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #78350f;
  background: #fde68a;
  pointer-events: none;
}

.awp-studio-tpl-orient-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.awp-studio-tpl-orient-chip {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
}

.awp-studio-tpl-orient-chip.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.awp-studio-template-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.awp-studio-template-item.is-active {
  border-color: #94a3b8;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.awp-studio-template-thumb {
  position: relative;
  width: 100%;
  container-type: size;
  /* aspect-ratio JS tarafından inline style olarak da set edilir;
     bu CSS değişkeni önizleme görseli yüklenmeden önceki fallback içindir */
  aspect-ratio: var(--tpl-ratio, 4 / 3);
  max-height: none;
  /* min-height sadece dikey/kare için: yatay şablonlarda bu kısıtlama
     aspect-ratio'yu bozarak görüntünün kenarlardan kesilmesine neden olur */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #e2e8f0;
}

.awp-studio-template-thumb[data-orientation="portrait"] {
  aspect-ratio: var(--tpl-ratio, 3 / 4);
  max-width: 78%;
  margin-inline: auto;
  min-height: 88px; /* Dikey kartlar için minimum yükseklik */
}

.awp-studio-template-thumb[data-orientation="square"] {
  min-height: 72px; /* Kare kartlar için minimum yükseklik */
}

.awp-studio-template-thumb[data-orientation="landscape"] {
  aspect-ratio: var(--tpl-ratio, 4 / 3);
  width: 100%;
  max-width: 100%;
  /* min-height YOK — yatay kartlarda min-height aspect-ratio'yu override
     ederek container'ı kare/dikey yapıp görüntüyü kenarlardan kesiyor */
}

/* Ön + arka yan yana: kart sütunu genişlemez, yükseklik görsele göre kısalır */
.awp-studio-template-thumb.is-page-spread {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  margin-inline: 0;
  aspect-ratio: var(--tpl-ratio, 2 / 1);
}

.awp-studio-template-thumb.is-page-spread .awp-studio-template-thumb-img {
  object-fit: contain;
  object-position: center;
}

.awp-studio-template-thumb[data-orientation="square"] {
  aspect-ratio: 1 / 1;
  max-width: 88%;
  margin-inline: auto;
}

.awp-studio-template-thumb.has-photo {
  background: #f1f5f9;
}

.awp-studio-template-thumb-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.awp-studio-template-thumb .awp-tpl-mini-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--stage-w, 100%);
  height: var(--stage-h, 100%);
  transform: scale(calc(100cqw / var(--stage-w, 1px)));
  transform-origin: top left;
  overflow: hidden;
  background: #fff;
  pointer-events: none;
}

.awp-studio-template-thumb .awp-tpl-mini-el {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  transform-origin: center center;
}

.awp-studio-template-thumb .awp-tpl-mini-el img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.awp-studio-template-thumb[data-orientation="portrait"] .awp-studio-template-thumb-img,
.awp-studio-template-thumb[data-orientation="square"] .awp-studio-template-thumb-img {
  width: 100%;
  height: 100%;
  max-height: none;
}

.awp-studio-template-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
  box-sizing: border-box;
}

.awp-studio-template-photo-placeholder .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.awp-studio-template-photo-placeholder-title {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.awp-studio-template-photo-placeholder-sub {
  display: none;
}

.awp-studio-template-item-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  padding: 0 2px 2px;
}

.awp-studio-template-item-name {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awp-studio-template-item-sub {
  font-size: 10px;
  color: #94a3b8;
}

.awp-studio-template-item-actions {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.awp-studio-template-item:hover .awp-studio-template-item-actions,
.awp-studio-template-item:focus-within .awp-studio-template-item-actions {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .awp-studio-template-item-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

.awp-studio-template-item-actions .button {
  flex: 0 0 auto;
  justify-content: center;
  min-height: 26px;
  line-height: 1.2;
}

/* legacy text-only cards (geriye dönük) */
.awp-studio-template-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.awp-studio-template-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.awp-studio-template-card-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.awp-studio-template-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.awp-studio-text-stack,
.awp-showcase-text-stack {
  position: relative;
  display: block;
  width: 100%;
  overflow: visible;
}

.awp-studio-text-fx,
.awp-showcase-text-fx {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  /* Efekt katmanı asla dolu metin çizmesin (çift başlık görüntüsü) */
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  background-image: none !important;
}

.awp-studio-text-stroke,
.awp-showcase-text-stroke {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Yuvarlak kontur: glyph dolgusu + dairesel text-shadow (köşe kesilmesin) */
.awp-studio-text-stroke.is-round,
.awp-showcase-text-stroke.is-round {
  color: var(--awp-stroke-color, #000) !important;
  -webkit-text-fill-color: var(--awp-stroke-color, #000) !important;
}

.awp-studio-text-stroke.is-round *,
.awp-showcase-text-stroke.is-round * {
  -webkit-text-fill-color: var(--awp-stroke-color, #000) !important;
}

.awp-studio-text-stroke.is-gradient,
.awp-showcase-text-stroke.is-gradient {
  overflow: visible;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.awp-studio-text-stroke *,
.awp-showcase-text-stroke * {
  -webkit-text-fill-color: transparent !important;
}

.awp-studio-text-stroke.is-gradient *,
.awp-showcase-text-stroke.is-gradient * {
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.awp-studio-text-face,
.awp-showcase-text-face {
  position: relative;
  z-index: 2;
}

/* Zengin metin efekt katmanı: alt span'ların dolgu/arka planı görünmesin,
   yalnızca kapsayıcının text-shadow'u çizilsin */
.awp-studio-text-fx-rich,
.awp-studio-text-fx-rich * {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

/* Word benzeri satır içi metin düzenleme */
.awp-studio-element.is-editing-text {
  z-index: 15 !important;
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  cursor: text;
  overflow: visible !important;
  contain: none !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}

.awp-studio-element.is-editing-text .awp-studio-text-stack,
.awp-studio-element.is-editing-text .awp-studio-text-face,
.awp-studio-element.is-editing-text .awp-studio-text-stroke,
.awp-studio-element.is-editing-text .awp-studio-text-fx {
  overflow: visible !important;
}

.awp-studio-element.is-editing-text,
.awp-studio-element.is-editing-text * {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text !important;
}

.awp-studio-element.is-editing-text .awp-studio-text-fx,
.awp-studio-element.is-editing-text .awp-studio-text-fx *,
.awp-studio-element.is-editing-text .awp-studio-text-stroke,
.awp-studio-element.is-editing-text .awp-studio-text-stroke * {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: text !important;
  pointer-events: none !important;
  /* Yazımda kontur/efekt katmanı: gradyan arka plan kutuyu boyamasın */
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
  -webkit-text-stroke: 0 transparent !important;
  text-shadow: none !important;
  filter: none !important;
}

.awp-studio-text-editing {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text !important;
  outline: none;
  pointer-events: auto !important;
  min-height: 1em;
  width: 100%;
  /* Native imleç gizli — özel kalın imleç overlay kullanılır */
  caret-color: transparent;
  /* Kontur/dolgu clip yazımda kutuyu boyamasın */
  background: transparent !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-stroke: 0 transparent !important;
  text-shadow: none !important;
  filter: none !important;
}

.awp-studio-text-editing.awp-studio-text-fill-clip,
.awp-studio-text-editing.awp-studio-text-fill-clip * {
  -webkit-text-fill-color: inherit !important;
  color: inherit !important;
  background: none !important;
  background-image: none !important;
}

.awp-studio-text-editing::selection,
.awp-studio-text-editing *::selection {
  background: rgba(37, 99, 235, 0.4);
  color: inherit;
}

/* Belirgin yanıp sönen metin imleci (ölçekli tuvalde de görünür) */
.awp-studio-inline-caret {
  position: fixed;
  z-index: 2147483000;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: #ea580c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 6px rgba(234, 88, 12, 0.7);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateZ(0);
  max-height: 40vh; /* güvenlik: asla ekranın yarısını kaplamasın */
}

.awp-studio-inline-caret.is-visible {
  visibility: visible;
  animation: awp-studio-caret-blink 1s steps(1, end) infinite;
}

@keyframes awp-studio-caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .awp-studio-inline-caret.is-visible {
    animation: none;
    opacity: 1;
  }

  .awp-studio-right-panel-wrap,
  .awp-studio-right-panel {
    transition: none !important;
  }
}

.awp-studio-selection-overlay.is-text-editing {
  pointer-events: none !important;
}

.awp-studio-selection-overlay.is-text-editing .awp-resize-handle,
.awp-studio-selection-overlay.is-text-editing .awp-studio-selection-float-toolbar,
.awp-studio-selection-overlay.is-text-editing .awp-studio-selection-rotate,
.awp-studio-selection-overlay.is-text-editing .awp-studio-selection-chrome-cluster,
.awp-studio-selection-overlay.is-text-editing .awp-studio-selection-box,
.awp-studio-selection-overlay.is-text-editing .awp-studio-text-link-port,
.awp-studio-selection-overlay.is-text-editing .awp-studio-text-thread {
  display: none !important;
  pointer-events: none !important;
}

.awp-studio-text-edit-done {
  position: absolute;
  z-index: 40;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  pointer-events: auto !important;
}

.awp-studio-text-edit-done:hover {
  background: #1d4ed8;
}

.awp-studio-selection-overlay.is-text-editing .awp-studio-text-edit-done {
  display: inline-flex !important;
  pointer-events: auto !important;
}

.awp-studio-curved-text-edit {
  position: absolute;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  max-width: min(360px, 90vw);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  pointer-events: auto;
}

.awp-studio-curved-text-edit__label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.awp-studio-curved-text-edit__input {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: #0f172a;
  box-sizing: border-box;
}

.awp-studio-curved-text-edit__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.awp-studio-curved-text-edit__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.awp-studio-curved-text-edit__done,
.awp-studio-curved-text-edit__cancel {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.awp-studio-curved-text-edit__done {
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #fff;
}

.awp-studio-curved-text-edit__cancel {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
}

.awp-studio-align-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.awp-studio-align-grid--2 {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
}

.awp-studio-align-chip {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  height: 28px;
  padding: 0 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  box-shadow: none;
}

/* Ensure resize handles are properly positioned on clipart/shape (corners only) */
.awp-studio-element[data-element-type="clipart"] .awp-resize-handle.top-left,
.awp-studio-element[data-element-type="shape"] .awp-resize-handle.top-left {
  top: -5px;
  left: -5px;
}

.awp-studio-element[data-element-type="clipart"] .awp-resize-handle.top-right,
.awp-studio-element[data-element-type="shape"] .awp-resize-handle.top-right {
  top: -5px;
  right: -5px;
}

.awp-studio-element[data-element-type="clipart"] .awp-resize-handle.bottom-left,
.awp-studio-element[data-element-type="shape"] .awp-resize-handle.bottom-left {
  bottom: -5px;
  left: -5px;
}

.awp-studio-element[data-element-type="clipart"]
  .awp-resize-handle.bottom-right,
.awp-studio-element[data-element-type="shape"] .awp-resize-handle.bottom-right {
  bottom: -5px;
  right: -5px;
}

.awp-rotate-handle {
  width: 16px;
  height: 16px;
  background: #111827;
  border-radius: 50%;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.awp-rotate-handle::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 18px;
  background: #111827;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.awp-rotate-handle::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.awp-studio-preview .awp-studio-element {
  pointer-events: none;
  border-color: transparent;
}

.awp-studio-preview .awp-resize-handle {
  display: none;
}

.awp-studio-properties-content {
  --awp-prop-ring: #6366f1;
  --awp-prop-ring-soft: rgba(99, 102, 241, 0.35);
  --awp-prop-hover-bg: #eef2ff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 2px 12px;
}

.awp-studio-properties-content .awp-studio-toggle {
  align-self: stretch;
  min-height: 28px;
  height: auto;
  padding: 4px 8px;
  font-size: 11px;
  white-space: normal;
}

.awp-studio-properties-content .awp-studio-toggle > span {
  white-space: normal;
}

.awp-studio-properties-content .awp-studio-toggle input[type="checkbox"] {
  accent-color: #0f172a;
}

.awp-studio-properties-content .awp-studio-format-toggle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.awp-studio-properties-content .awp-studio-format-toggle {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 36px;
  min-height: 36px;
  border-radius: 8px;
  box-shadow: none;
  background: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.awp-studio-prop-field-row--color-format > .awp-studio-color-field--swatch,
.awp-studio-prop-field-row--color-format > .awp-studio-format-toggles {
  display: grid;
  grid-template-rows: auto minmax(36px, 36px);
  align-content: stretch;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: visible;
  box-sizing: border-box;
}

.awp-studio-prop-field-row--color-format
  > .awp-studio-color-field--swatch
  .awp-studio-color-row {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  max-height: 36px;
}

.awp-studio-prop-field-row--color-format .awp-studio-format-toggle-row {
  align-self: stretch;
  min-height: 36px;
  height: 36px;
  max-height: 36px;
}

.awp-studio-prop-field-row--color-format .awp-studio-format-toggle {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 36px;
  min-height: 36px;
  aspect-ratio: 1;
}

.awp-studio-prop-field-row--color-format .awp-studio-prop-color-swatch {
  border-radius: 8px;
}

.awp-studio-prop-icon-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.awp-studio-prop-icon-toggle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.awp-studio-properties-content .awp-studio-prop-icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 0;
  aspect-ratio: 1;
}

.awp-studio-properties-content .awp-studio-prop-icon-toggle .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 1;
}

.awp-studio-properties-content .awp-studio-ctx-case {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none !important;
}

.awp-studio-properties-content .awp-studio-ctx-case-glyph {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.awp-studio-properties-content .awp-studio-ctx-case-glyph--upper {
  text-transform: uppercase;
}

.awp-studio-properties-content .awp-studio-ctx-case-glyph--lower {
  text-transform: lowercase;
}

.awp-studio-properties-content .awp-studio-ctx-case-glyph--cap .awp-studio-ctx-case-cap-a {
  text-transform: none;
}

.awp-studio-properties-content .awp-studio-ctx-case-glyph--cap .awp-studio-ctx-case-cap-rest {
  text-transform: lowercase;
}

.awp-studio-color-field--swatch .awp-studio-color-clear--icon {
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  padding: 0;
}

.awp-studio-prop-field-row--shadow .awp-studio-label,
.awp-studio-prop-field-row--pair-cards .awp-studio-label,
.awp-studio-prop-field-row--color-format .awp-studio-label {
  line-height: 1.3;
  min-height: 14px;
  margin: 0;
  padding: 0;
  align-self: stretch;
}

.awp-studio-prop-field-row--stroke .awp-studio-label {
  line-height: 14px;
  height: 14px;
  min-height: 14px;
  max-height: 14px;
  margin: 0;
  padding: 0;
  align-self: stretch;
}

.awp-studio-properties-content .awp-studio-format-toggle.is-active {
  background: #0f172a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-color: #0f172a !important;
  box-shadow: inset 0 0 0 1px #0f172a !important;
}

/* Özellikler paneli — halka hover (kesilmez, transform yok) */
.awp-studio-properties-content .awp-studio-format-toggle:hover:not(.is-active),
.awp-studio-properties-content .awp-studio-format-toggle:focus-visible:not(.is-active),
.awp-studio-properties-content .awp-studio-prop-icon-toggle:hover:not(.is-active),
.awp-studio-properties-content .awp-studio-prop-icon-toggle:focus-visible:not(.is-active),
.awp-studio-properties-content .awp-studio-prop-color-swatch:hover:not([aria-expanded="true"]),
.awp-studio-properties-content .awp-studio-prop-color-swatch:focus-visible:not([aria-expanded="true"]),
.awp-studio-properties-content .awp-studio-prop-btn--curves:hover:not(:disabled),
.awp-studio-properties-content .awp-studio-prop-btn--curves:focus-visible:not(:disabled),
.awp-studio-properties-content .awp-studio-prop-btn:hover:not(.awp-studio-prop-btn--primary):not(.awp-studio-prop-btn--curves):not(:disabled),
.awp-studio-properties-content .awp-studio-prop-select-trigger:hover,
.awp-studio-properties-content .awp-studio-prop-select.is-open .awp-studio-prop-select-trigger,
.awp-studio-properties-content .awp-studio-font-picker-trigger:hover,
.awp-studio-properties-content .awp-studio-align-chip:hover:not(.is-active),
.awp-studio-properties-content .awp-studio-effect-chip:hover:not(.is-active),
.awp-studio-properties-content .awp-studio-fill-mode-tab:hover:not(.is-active),
.awp-studio-properties-content .awp-studio-stroke-style-btn:hover:not(.is-active),
.awp-studio-properties-content .awp-studio-color-clear:hover,
.awp-studio-properties-content select:hover {
  border-color: var(--awp-prop-ring);
  background-color: var(--awp-prop-hover-bg);
  box-shadow: inset 0 0 0 1px var(--awp-prop-ring);
  transform: none;
  z-index: 1;
}

.awp-studio-properties-content .awp-studio-prop-color-swatch:hover:not([aria-expanded="true"]),
.awp-studio-properties-content .awp-studio-prop-color-swatch:focus-visible:not([aria-expanded="true"]) {
  background-color: var(--awp-swatch-bg, #111827);
  box-shadow:
    inset 0 0 0 2px var(--awp-prop-ring),
    0 0 0 1px var(--awp-prop-ring-soft);
}

.awp-studio-properties-content .awp-studio-prop-field-row .awp-studio-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.awp-studio-properties-content .awp-studio-prop-field-row {
  align-items: stretch;
}

.awp-studio-properties-content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
.awp-studio-properties-content textarea,
.awp-studio-properties-content select,
.awp-studio-properties-content .awp-studio-prop-select-trigger,
.awp-studio-properties-content .awp-studio-font-picker-trigger {
  border-radius: 8px;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

/* Sağ panel: açık zemin kontrollerinde her zaman koyu metin (hover şart değil) */
.awp-studio-right-panel-content,
.awp-studio-properties-content,
.awp-studio-prop-select-menu,
.awp-studio-font-picker-panel {
  color: #0f172a;
}

.awp-studio-properties-content .awp-studio-prop-select-trigger,
.awp-studio-properties-content .awp-studio-font-picker-trigger,
.awp-studio-properties-content select,
.awp-studio-prop-select-option,
.awp-studio-font-picker-option,
.awp-studio-properties-content .awp-studio-stroke-style-btn:not(.awp-studio-stroke-join-btn),
.awp-studio-properties-content .awp-studio-align-chip,
.awp-studio-properties-content .awp-studio-effect-chip,
.awp-studio-properties-content .awp-studio-fill-mode-tab,
.awp-studio-properties-content .awp-studio-prop-btn:not(.awp-studio-prop-btn--primary),
.awp-studio-properties-content .awp-studio-color-clear,
.awp-studio-properties-content .awp-studio-prop-group-header {
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

.awp-studio-properties-content .awp-studio-stroke-style-btn.is-active:not(.awp-studio-stroke-join-btn),
.awp-studio-properties-content .awp-studio-align-chip.is-active,
.awp-studio-properties-content .awp-studio-effect-chip.is-active,
.awp-studio-properties-content .awp-studio-prop-btn--primary {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.awp-studio-properties-content .awp-studio-fill-mode-tab.is-active {
  color: #3730a3;
  -webkit-text-fill-color: #3730a3;
}

.awp-studio-properties-content .awp-studio-stroke-style-btn svg,
.awp-studio-properties-content .awp-studio-stroke-join-icon .awp-studio-icon {
  width: 16px;
  height: 16px;
  color: inherit;
  stroke: currentColor;
}

.awp-studio-stroke-style-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.awp-studio-stroke-style-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.awp-studio-stroke-style-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.awp-studio-stroke-join-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.awp-studio-stroke-style-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  -webkit-text-fill-color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.awp-studio-stroke-join-btn {
  height: auto;
  min-height: 40px;
  padding: 6px 8px;
  justify-content: flex-start;
  gap: 0;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  -webkit-text-fill-color: #334155;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.awp-studio-stroke-join-btn--icon {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  justify-content: center;
}

.awp-studio-stroke-join-btn--icon .awp-studio-stroke-join-divider,
.awp-studio-stroke-join-btn--icon .awp-studio-stroke-join-copy {
  display: none !important;
}

.awp-studio-stroke-join-btns:has(.awp-studio-stroke-join-btn--icon) {
  display: inline-flex;
  grid-template-columns: none;
  width: auto;
  gap: 4px;
  align-items: center;
}

.awp-studio-stroke-join-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.awp-studio-stroke-join-icon .awp-studio-icon {
  width: 18px;
  height: 18px;
  color: inherit;
  fill: currentColor;
}

.awp-studio-stroke-join-divider {
  flex: 0 0 1px;
  width: 1px;
  align-self: stretch;
  margin: 2px 6px;
  background: currentColor;
  opacity: 0.55;
}

.awp-studio-stroke-join-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  color: inherit;
  -webkit-text-fill-color: inherit;
}

.awp-studio-stroke-join-copy span {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: inherit;
  -webkit-text-fill-color: inherit;
}

.awp-studio-stroke-style-btn:hover:not(.is-active) {
  border-color: var(--awp-studio-item-hover-border);
  background: var(--awp-studio-item-hover-bg);
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  box-shadow: var(--awp-studio-item-hover-shadow);
  transform: translateY(-2px);
}

.awp-studio-stroke-style-btn:focus-visible {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
}

.awp-studio-stroke-join-btn:hover:not(.is-active) {
  border-color: var(--awp-studio-item-hover-border);
  background: var(--awp-studio-item-hover-bg);
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  box-shadow: var(--awp-studio-item-hover-shadow);
  transform: translateY(-2px);
}

.awp-studio-stroke-join-btn:focus-visible {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.38);
}

.awp-studio-stroke-style-btn.is-active {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: #4338ca;
  box-shadow:
    0 2px 5px rgba(79, 70, 229, 0.32),
    0 0 0 2px #fff,
    0 0 0 4px rgba(99, 102, 241, 0.38);
  transform: none;
}

.awp-studio-stroke-style-btn.is-active:hover {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: #4338ca;
}

.awp-studio-stroke-join-btn.is-active,
.awp-studio-stroke-join-btn.is-active:hover {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: #4338ca;
  box-shadow:
    0 2px 6px rgba(79, 70, 229, 0.35),
    0 0 0 2px #fff,
    0 0 0 4px rgba(99, 102, 241, 0.42);
  transform: none;
}

.awp-studio-stroke-join-btn.is-active .awp-studio-stroke-join-copy,
.awp-studio-stroke-join-btn.is-active .awp-studio-stroke-join-copy span {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.awp-studio-stroke-style-btn .awp-studio-icon {
  pointer-events: none;
}

.awp-studio-properties-content .awp-studio-stroke-join-btn {
  color: #334155;
  -webkit-text-fill-color: #334155;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.awp-studio-properties-content .awp-studio-stroke-join-btn:hover {
  background: #eef2ff;
  color: #312e81;
  -webkit-text-fill-color: #312e81;
  border-color: #818cf8;
}

.awp-studio-properties-content .awp-studio-stroke-join-btn.is-active,
.awp-studio-properties-content .awp-studio-stroke-join-btn.is-active:hover {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  border-color: #4338ca;
}

.awp-studio-properties-content .awp-studio-stroke-join-btn.is-active .awp-studio-stroke-join-copy,
.awp-studio-properties-content
  .awp-studio-stroke-join-btn.is-active
  .awp-studio-stroke-join-copy
  span {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

@media (pointer: coarse) {
  .awp-studio-stroke-style-btn {
    min-height: 44px;
    height: 44px;
  }

  .awp-studio-stroke-join-btn {
    height: auto;
    min-height: 44px;
  }
}

.awp-studio-properties-content .awp-studio-font-picker-trigger {
  min-height: 32px;
  height: 32px;
}

.awp-studio-properties-content .awp-studio-prop-section {
  margin: 0;
  padding: 0;
  border: 0;
}

.awp-studio-prop-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
}

.awp-studio-prop-btn--primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.awp-studio-prop-btn--primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}

.awp-studio-image-prop-actions .awp-studio-prop-btn,
.awp-studio-text-frame-controls .awp-studio-prop-btn {
  width: 100%;
}

.awp-studio-prop-btn--curves {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  flex: none;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.awp-studio-prop-btn--curves .awp-studio-prop-btn__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awp-studio-prop-btn--curves .awp-studio-prop-btn__kbd {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.awp-studio-prop-group[data-prop-group="typography"]
  > .awp-studio-prop-group-body
  > .awp-studio-prop-btn--curves {
  width: 100%;
  margin-top: 0;
}

.awp-studio-color-row .awp-studio-color-clear {
  flex: 1 1 auto;
  height: 32px;
  min-height: 32px;
  min-width: 0;
  width: auto;
  max-width: 100%;
  align-self: center;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awp-studio-color-field--inline .awp-studio-color-clear {
  flex: 0 0 auto;
  width: auto;
}

/* color/range/checkbox yukarıdaki genel kurala dahil değil */

/* Katmanlar paneli: compact sayfalar + katman listesi */
.awp-studio-layers-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
  gap: 8px;
}

.awp-studio-pages-in-layers {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.awp-studio-layers-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.awp-studio-layers-toolbar .awp-studio-layers-header {
  flex: 1 1 auto;
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
}

.awp-studio-layers-toolbar #awp-studio-add-slide {
  flex: 0 0 auto;
  width: auto;
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
}

.awp-studio-pages-in-layers .awp-studio-slides {
  padding: 0;
  max-height: 160px;
  overflow-y: auto;
}

.awp-studio-layers-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0 2px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  background: transparent;
  border-bottom: 0;
  flex-shrink: 0;
}

.awp-studio-layers-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  min-height: 0;
}

.awp-studio-layers,
.awp-studio-slides {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.awp-studio-layers {
  max-height: none;
  overflow-y: visible;
}

.awp-studio-layer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  box-shadow: none;
}

.awp-studio-layer-row.awp-studio-layer-row--active {
  border-color: #0f172a;
  background: #f8fafc;
}

.awp-studio-layer-row.awp-studio-layer-row--drag-over {
  border-color: #ea580c;
  background: #fff7ed;
}

.awp-studio-layer-drag {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: grab;
  overflow: hidden;
}

/* Dashicons varsayılan 20px – drag kapsayıcısına (16px) sığdır */
.awp-studio-layer-drag .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  line-height: 14px;
  display: block;
  flex-shrink: 0;
}

.awp-studio-layer-drag:active {
  cursor: grabbing;
}

.awp-studio-layer-row:hover .awp-studio-layer-drag {
  color: #64748b;
}

.awp-studio-layer-thumb {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
}

.awp-studio-layer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tip ikonlarının (SVG) thumb içinde tam ortalanması */
.awp-studio-layer-thumb .awp-studio-icon {
  display: block;
  flex-shrink: 0;
  margin: auto;
}

.awp-studio-layer-name-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.awp-studio-layer-name,
.awp-studio-slide-name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awp-studio-layer-name[contenteditable="true"] {
  white-space: normal;
  outline: 1px solid #0f172a;
  outline-offset: 1px;
  border-radius: 4px;
  padding: 1px 4px;
  background: #fff;
}

.awp-studio-layer-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: 0.85;
}

.awp-studio-layer-row:hover .awp-studio-layer-actions {
  opacity: 1;
}

.awp-studio-layer-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.awp-studio-layer-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: none;
}

.awp-studio-layer-btn:focus-visible {
  outline: none;
  border: 1px solid #ea580c;
  background: #fff7ed;
  box-shadow: none;
}

.awp-studio-layer-btn:active {
  transform: none;
  background: #e2e8f0;
}

.awp-studio-layer-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.awp-studio-layer-btn.is-hidden,
.awp-studio-layer-btn.is-locked {
  color: #94a3b8;
}

.awp-studio-layers-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
}

.awp-studio-layers-empty-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.awp-studio-layers-empty-icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.awp-studio-layer-item,
.awp-studio-slide-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.awp-studio-layer-item:focus-visible,
.awp-studio-slide-item:focus-visible {
  outline: none;
  border-color: #ea580c;
  box-shadow: none;
}

.awp-studio-layer-item:active,
.awp-studio-slide-item:active {
  transform: none;
  background: #ffedd5;
}

.awp-studio-layer-item.active,
.awp-studio-slide-item.active {
  border-color: #0f172a;
  background: #f8fafc;
}

.awp-studio-slides {
  max-height: 160px;
  overflow-y: auto;
}

.awp-studio-layer-controls,
.awp-studio-slide-controls {
  margin-left: auto;
  display: flex;
  gap: 0;
}

.awp-studio-empty-state {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

.awp-studio-context-menu {
  position: fixed;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #161b27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* Admin FS stüdyo 100001; renk popover 2147483000 üstünde kalsın */
  z-index: 100090;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 16px));
  overflow: visible;
  box-sizing: border-box;
  will-change: opacity, transform;
}

/* Tuvale eleman düşümü ile aynı: yukarıdan 50px + fade */
.awp-studio-context-menu.is-open {
  animation: awp-studio-context-menu-in 0.4s cubic-bezier(0.25, 0.1, 0.25, 1)
    both;
}

@keyframes awp-studio-context-menu-in {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.awp-studio-context-menu.is-scrollable {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.awp-studio-context-menu.is-scrollable::-webkit-scrollbar,
.awp-studio-context-menu.is-touch::-webkit-scrollbar,
.awp-studio-context-submenu.is-scrollable::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.awp-studio-context-menu.is-scrollable::-webkit-scrollbar-button,
.awp-studio-context-menu.is-touch::-webkit-scrollbar-button,
.awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.awp-studio-context-menu.is-scrollable::-webkit-scrollbar-track,
.awp-studio-context-menu.is-touch::-webkit-scrollbar-track,
.awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
  margin: 6px 0;
}

.awp-studio-context-menu.is-scrollable::-webkit-scrollbar-thumb,
.awp-studio-context-menu.is-touch::-webkit-scrollbar-thumb,
.awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.42);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.awp-studio-context-menu.is-scrollable::-webkit-scrollbar-thumb:hover,
.awp-studio-context-menu.is-touch::-webkit-scrollbar-thumb:hover,
.awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 213, 225, 0.62);
  background-clip: padding-box;
}

.awp-studio-context-menu.is-scrollable::-webkit-scrollbar-corner,
.awp-studio-context-menu.is-touch::-webkit-scrollbar-corner,
.awp-studio-context-submenu.is-scrollable::-webkit-scrollbar-corner {
  background: transparent;
}

.awp-studio-context-menu > button {
  background: transparent;
  border: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none !important;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.awp-studio-context-menu > button:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.awp-studio-context-menu > button[data-action="ungroup"]:hover:not(:disabled):not(.is-disabled) {
  background: #4f46e5;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-weight: 700;
  box-shadow: inset 4px 0 0 #e0e7ff;
}

.awp-studio-context-menu > button:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.6);
}

.awp-studio-context-menu > button.is-disabled,
.awp-studio-context-menu > button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.awp-studio-context-menu > button.is-disabled:hover,
.awp-studio-context-menu > button:disabled:hover {
  background: transparent;
}

.awp-studio-context-submenu-wrap {
  position: relative;
  display: block;
}

.awp-studio-context-submenu-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 10px;
}

.awp-studio-context-submenu-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none !important;
}

.awp-studio-context-submenu-trigger:hover,
.awp-studio-context-submenu-trigger.is-open,
.awp-studio-context-submenu-wrap:hover > .awp-studio-context-submenu-trigger {
  background: rgba(255, 255, 255, 0.18);
}

.awp-studio-context-submenu-caret {
  opacity: 0.7;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.awp-studio-context-submenu {
  position: absolute;
  left: calc(100% + 4px);
  top: -8px;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  background: #161b27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  z-index: 2;
  overflow: visible;
  box-sizing: border-box;
}

.awp-studio-context-submenu.is-fixed-portal {
  position: fixed;
  z-index: 100095;
}

.awp-studio-context-submenu.is-scrollable {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.awp-studio-context-submenu.is-flip-left {
  left: auto;
  right: calc(100% + 4px);
}

.awp-studio-context-submenu.is-flip-up {
  top: auto;
  bottom: -8px;
}

.awp-studio-context-submenu.is-fixed-portal.is-flip-left,
.awp-studio-context-submenu.is-fixed-portal.is-flip-up {
  /* fixed konumda left/top JS ile verilir; absolute flip kuralları geçersiz */
  right: auto;
  bottom: auto;
}

.awp-studio-context-submenu-wrap:has(.awp-studio-context-submenu.is-flip-left)::after {
  left: auto;
  right: 100%;
}

.awp-studio-context-submenu[hidden] {
  display: none !important;
}

.awp-studio-context-submenu > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none !important;
}

.awp-studio-context-submenu > button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.awp-studio-context-submenu > button.is-disabled,
.awp-studio-context-submenu > button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.awp-studio-context-submenu kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 4px;
  padding: 1px 6px;
  min-width: 1.25rem;
  text-align: center;
}

.awp-studio-context-submenu-sep {
  height: 1px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, 0.1);
}

.awp-studio-context-stroke {
  --awp-studio-slider-track-h: 8px;
  --awp-studio-slider-thumb-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 12px;
}

.awp-studio-context-stroke-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 2px;
}

.awp-studio-context-stroke-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.awp-studio-context-stroke-row--tools {
  gap: 6px;
  width: 100%;
}

.awp-studio-context-stroke-row--tools .awp-studio-context-stroke-width-select {
  flex: 1 1 auto;
  min-width: 56px;
  max-width: 88px;
}

.awp-studio-context-stroke-row--tools .awp-studio-context-stroke-joins {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Sağ tık menü: kontur kalınlığı — koyu zemin (menü ile uyumlu) */
.awp-studio-context-menu .awp-studio-context-stroke-width-select,
.awp-studio-context-menu .awp-studio-ctx-stroke-width-select {
  background: #0f141f;
  background-color: #0f141f;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color-scheme: dark;
  scrollbar-color: #475569 transparent;
}

.awp-studio-context-menu .awp-studio-context-stroke-width-select:hover,
.awp-studio-context-menu .awp-studio-context-stroke-width-select:focus,
.awp-studio-context-menu .awp-studio-ctx-stroke-width-select:hover,
.awp-studio-context-menu .awp-studio-ctx-stroke-width-select:focus {
  background: #151b28;
  background-color: #151b28;
  border-color: #818cf8;
  color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

.awp-studio-context-menu .awp-studio-context-stroke-width-select option,
.awp-studio-context-menu .awp-studio-ctx-stroke-width-select option {
  background-color: #161b27;
  color: #f1f5f9;
}

.awp-studio-context-menu .awp-studio-context-stroke-width-select::-webkit-scrollbar-thumb,
.awp-studio-context-menu .awp-studio-ctx-stroke-width-select::-webkit-scrollbar-thumb {
  background: #475569;
}

.awp-studio-context-menu .awp-studio-context-stroke-width-select::-webkit-scrollbar-thumb:hover,
.awp-studio-context-menu .awp-studio-ctx-stroke-width-select::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.awp-studio-context-stroke-swatch,
.awp-studio-context-stroke-color {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.awp-studio-context-stroke-swatch {
  position: relative;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  overflow: hidden;
  background: var(--awp-swatch-bg, #0f172a);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.awp-studio-context-stroke-swatch:hover {
  border-color: #818cf8;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.38);
  transform: scale(1.06);
}

.awp-studio-context-stroke-swatch:focus-visible {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45);
}

.awp-studio-context-stroke-row .awp-studio-context-stroke-width-select:hover,
.awp-studio-context-stroke-row .awp-studio-context-stroke-width-select:focus {
  border-color: #818cf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35);
}

.awp-studio-context-menu .awp-studio-context-stroke-row .awp-studio-context-stroke-width-select:hover,
.awp-studio-context-menu .awp-studio-context-stroke-row .awp-studio-context-stroke-width-select:focus {
  background: #151b28;
  background-color: #151b28;
  color: #ffffff;
}

.awp-studio-context-stroke-color input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.awp-studio-context-stroke-widths {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.awp-studio-context-menu input[type="range"].awp-studio-context-stroke-slider,
.awp-studio-context-stroke-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  flex: 1 1 auto;
  min-width: 0;
  height: calc(
    var(--awp-studio-slider-track-h, 8px) + var(--awp-studio-slider-frame, 6px) *
      2
  ) !important;
  margin: 4px 0;
  padding: 0 !important;
  overflow: visible;
  background: transparent !important;
  border: var(--awp-studio-slider-frame, 6px) solid
    var(--awp-studio-slider-frame-bg, #3a4252) !important;
  border-radius: 999px !important;
  outline: none !important;
  box-shadow:
    inset 0 1px 2px var(--awp-studio-slider-frame-sh, rgba(0, 0, 0, 0.55)),
    inset 0 -1px 1px var(--awp-studio-slider-frame-hi, rgba(255, 255, 255, 0.16)),
    0 1px 0 var(--awp-studio-slider-frame-hi, rgba(255, 255, 255, 0.16)),
    0 -1px 1px var(--awp-studio-slider-frame-sh, rgba(0, 0, 0, 0.55)) !important;
  filter: none !important;
  accent-color: transparent;
  cursor: pointer;
}

.awp-studio-context-menu input[type="range"].awp-studio-context-stroke-slider::-webkit-slider-container,
.awp-studio-context-stroke-slider::-webkit-slider-container {
  appearance: none;
  background: transparent !important;
  box-shadow: none !important;
}

.awp-studio-context-menu input[type="range"].awp-studio-context-stroke-slider::-webkit-slider-runnable-track,
.awp-studio-context-stroke-slider::-webkit-slider-runnable-track {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--awp-studio-slider-track, #722428) !important;
  box-shadow: none !important;
  filter: none !important;
}

.awp-studio-context-menu input[type="range"].awp-studio-context-stroke-slider::-webkit-slider-thumb,
.awp-studio-context-stroke-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  margin-top: -4px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--awp-studio-slider-thumb, #ff5c61) !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: grab;
}

.awp-studio-context-menu input[type="range"].awp-studio-context-stroke-slider::-moz-range-track,
.awp-studio-context-stroke-slider::-moz-range-track {
  height: 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--awp-studio-slider-track, #722428) !important;
  box-shadow: none !important;
}

.awp-studio-context-menu input[type="range"].awp-studio-context-stroke-slider::-moz-range-progress,
.awp-studio-context-stroke-slider::-moz-range-progress {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.awp-studio-context-menu input[type="range"].awp-studio-context-stroke-slider::-moz-range-thumb,
.awp-studio-context-stroke-slider::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--awp-studio-slider-thumb, #ff5c61) !important;
  box-shadow: none !important;
  cursor: grab;
}

.awp-studio-context-stroke-slider-val {
  flex: 0 0 auto;
  min-width: 1.8em;
  padding-left: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.awp-studio-context-stroke-widths button {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 700;
}

.awp-studio-context-stroke-joins {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  grid-template-columns: none;
}

.awp-studio-context-stroke-joins button.awp-studio-stroke-join-btn,
.awp-studio-context-stroke-joins button.awp-studio-stroke-join-btn--icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  color: #e2e8f0;
  -webkit-text-fill-color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.awp-studio-context-stroke-joins .awp-studio-stroke-join-divider,
.awp-studio-context-stroke-joins .awp-studio-stroke-join-copy {
  display: none !important;
}

.awp-studio-context-stroke-joins button.awp-studio-stroke-join-btn:hover {
  background: rgba(99, 102, 241, 0.22);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: #818cf8;
  box-shadow:
    0 2px 8px rgba(79, 70, 229, 0.28),
    0 0 0 1px rgba(129, 140, 248, 0.35);
  transform: translateY(-1px);
}

.awp-studio-context-stroke-joins button.awp-studio-stroke-join-btn:focus-visible {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.45);
}

.awp-studio-context-stroke-joins button.awp-studio-stroke-join-btn.is-active,
.awp-studio-context-stroke-joins button.awp-studio-stroke-join-btn.is-active:hover {
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: #a5b4fc;
  box-shadow:
    0 3px 10px rgba(99, 102, 241, 0.42),
    0 0 0 2px rgba(22, 27, 39, 0.95),
    0 0 0 4px rgba(129, 140, 248, 0.55);
  transform: none;
}

.awp-studio-context-stroke-joins button.awp-studio-stroke-join-btn.is-active .awp-studio-stroke-join-copy,
.awp-studio-context-stroke-joins button.awp-studio-stroke-join-btn.is-active .awp-studio-stroke-join-copy span {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.awp-studio-context-stroke-joins .awp-studio-stroke-join-divider {
  background: currentColor;
}

.awp-studio-context-stroke-joins .awp-studio-icon {
  pointer-events: none;
  color: inherit;
  fill: currentColor;
}

.awp-studio-stroke-join-btn--icon {
  justify-content: center;
}

.awp-studio-context-menu button[data-context-group] {
  display: flex;
  align-items: center;
  font-weight: 600;
}

.awp-studio-canvas,
.awp-studio-element,
.awp-studio-selection-overlay {
  -webkit-touch-callout: none;
}

.awp-studio-context-menu.is-touch {
  min-width: min(280px, calc(100vw - 16px));
  max-height: min(70vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.awp-studio-context-menu.is-touch > button {
  padding: 12px 14px;
  font-size: 14px;
  min-height: 44px;
}

.awp-studio-context-menu.is-touch .awp-studio-context-stroke-widths button {
  min-height: 44px;
  font-size: 14px;
}

/*
 * Tuvale ekleme düşüşü: inline `transform` (rotate) ile çakışmasın diye
 * yalnızca `translate` / `scale` / `opacity` animate edilir (WAAPI + CSS yedek).
 */
.awp-studio-element--just-added {
  animation: awp-studio-just-added 0.9s cubic-bezier(0.16, 0.84, 0.28, 1) both;
  will-change: translate, scale, opacity;
}

@keyframes awp-studio-just-added {
  from {
    opacity: 0;
    translate: 0 -150px;
    scale: 0.86;
  }
  to {
    opacity: var(--awp-element-opacity, 1);
    translate: 0 0;
    scale: 1;
  }
}

.awp-studio-selection--just-added {
  animation: awp-studio-selection-just-added 0.9s cubic-bezier(0.16, 0.84, 0.28, 1)
    both;
  will-change: translate, scale, opacity;
}

@keyframes awp-studio-selection-just-added {
  from {
    opacity: 0;
    translate: 0 -150px;
    scale: 0.86;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* Araç → tuval: kısa, hafif uçuş (öğe konumunu kaydırmaz) */
.awp-studio-add-fly-ghost {
  position: fixed;
  z-index: 100050;
  pointer-events: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    left 0.36s cubic-bezier(0.25, 0.1, 0.25, 1),
    top 0.36s cubic-bezier(0.25, 0.1, 0.25, 1),
    width 0.36s cubic-bezier(0.25, 0.1, 0.25, 1),
    height 0.36s cubic-bezier(0.25, 0.1, 0.25, 1),
    opacity 0.36s ease,
    transform 0.36s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: left, top, width, height, opacity, transform;
}

.awp-studio-add-fly-ghost img,
.awp-studio-add-fly-ghost video,
.awp-studio-add-fly-ghost svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .awp-studio-element--just-added,
  .awp-studio-element--just-added-copy,
  .awp-studio-selection--just-added,
  .awp-studio-selection--just-added-copy {
    animation: none !important;
  }
  .awp-studio-add-fly-ghost {
    display: none !important;
  }
}

/* Kopya / yapıştır: çapraz düşüş */
.awp-studio-element--just-added-copy {
  animation: awp-studio-just-added-copy 0.85s cubic-bezier(0.55, 0.085, 0.68, 0.53)
    both;
  will-change: translate, scale, opacity;
}

@keyframes awp-studio-just-added-copy {
  from {
    opacity: 0;
    translate: -48px -150px;
    scale: 0.86;
  }
  to {
    opacity: var(--awp-element-opacity, 1);
    translate: 0 0;
    scale: 1;
  }
}

.awp-studio-selection--just-added-copy {
  animation: awp-studio-selection-just-added-copy 0.85s
    cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
  will-change: translate, scale, opacity;
}

@keyframes awp-studio-selection-just-added-copy {
  from {
    opacity: 0;
    translate: -48px -150px;
    scale: 0.86;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* Sürüklerken seçim çerçevesi / tutamaçlar (borderOpacityWhenMoving: 0) */
.awp-slider-studio.awp-studio--element-dragging .awp-studio-selection-box {
  border-color: transparent;
}

.awp-slider-studio.awp-studio--element-dragging .awp-resize-handle,
.awp-slider-studio.awp-studio--element-dragging .awp-rotate-handle,
.awp-slider-studio.awp-studio--element-dragging .awp-studio-selection-rotate,
.awp-slider-studio.awp-studio--element-dragging .awp-studio-selection-float-toolbar,
.awp-slider-studio.awp-studio--element-dragging .awp-studio-selection-chrome-cluster,
.awp-slider-studio.awp-studio--element-dragging .awp-studio-alpha-mask-overlay {
  opacity: 0;
  pointer-events: none;
}

.awp-studio-exporting .awp-studio-alpha-mask-overlay {
  display: none !important;
}

/* Corel-benzeri şeffaflık aracı tutamaçları */
.awp-studio-alpha-mask-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 26;
  transform-origin: center center;
}

.awp-studio-alpha-mask-line {
  position: absolute;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, #fff 0%, #0f172a 100%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35);
  transform-origin: 0 50%;
  pointer-events: none;
}

.awp-studio-alpha-mask-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #0f172a;
  transform: translateY(-50%);
}

.awp-studio-alpha-mask-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  padding: 0;
  border: 2px solid #2563eb;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  cursor: grab;
  pointer-events: auto;
  z-index: 2;
}

.awp-studio-alpha-mask-handle.is-end {
  background: #0f172a;
  border-color: #0f172a;
}

.awp-studio-alpha-mask-handle.is-mid {
  width: 14px;
  height: 8px;
  margin: -4px 0 0 -7px;
  border-radius: 2px;
  background: #fff;
}

.awp-studio-alpha-mask-handle:active {
  cursor: grabbing;
}

.awp-studio-alpha-mask-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.awp-studio-alpha-mask-kind {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.awp-studio-alpha-mask-kind.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.awp-studio-alpha-mask-control .awp-studio-field-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.awp-studio-alpha-mask-control .awp-studio-btn {
  margin-top: 8px;
}

.awp-slider-studio.awp-studio-transparency-armed {
  cursor: crosshair;
}

.awp-studio-element.has-alpha-mask {
  /* mask stilleri JS ile uygulanır */
}

.awp-studio-exporting .awp-resize-handle,
.awp-studio-exporting .awp-rotate-handle,
.awp-studio-exporting .awp-studio-safe-area,
.awp-studio-exporting .awp-studio-grid,
.awp-studio-exporting .awp-studio-guide-layer,
.awp-studio-exporting .awp-etiket-cut-overlay,
.awp-studio-exporting .awp-studio-selection-overlay {
  display: none !important;
}

.awp-studio-export {
  margin-left: auto;
  gap: 8px;
}

.awp-studio-export .button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.awp-studio-export .button:hover {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
  box-shadow: none;
}

.awp-studio-export .button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.awp-studio-export .button:active {
  transform: translateY(1px);
}

.awp-studio-context-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 4px 0;
}

/* ====== Responsive Viewport Yüksekliği ====== */
/* 1920px Full HD ve üzeri ekranlar */
@media (min-height: 900px) {
  .awp-studio-root,
  .awp-slider-studio {
    min-height: 680px;
    height: calc(100vh - 180px);
    max-height: 960px;
  }
  .awp-studio-canvas-viewport {
    min-height: 540px;
  }
}

/* 2K (1440p) ekranlar */
@media (min-height: 1200px) {
  .awp-studio-root,
  .awp-slider-studio {
    min-height: 780px;
    height: calc(100vh - 180px);
    max-height: 1100px;
  }
  .awp-studio-canvas-viewport {
    min-height: 640px;
  }
}

/* 4K ekranlar */
@media (min-height: 1800px) {
  .awp-studio-root,
  .awp-slider-studio {
    min-height: 900px;
    height: calc(100vh - 200px);
    max-height: 1400px;
  }
  .awp-studio-canvas-viewport {
    min-height: 760px;
  }
}

/* Küçük ekranlar (laptop vb.) */
@media (max-height: 768px) {
  .awp-studio-root,
  .awp-slider-studio {
    min-height: 500px;
    height: calc(100vh - 160px);
    max-height: 700px;
  }
  .awp-studio-canvas-viewport {
    min-height: 360px;
  }
}

/* ---- Admin canvas: Adobe tarzı giriş, vurgu ve görünüm efektleri ---- */
.awp-studio-element {
  --awp-element-transform: rotate(0deg);
  --awp-visual-filter: none;
  filter: var(--awp-visual-filter);
}
.awp-studio-element[data-visual-effect="softShadow"] { --awp-visual-filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.24)); }
.awp-studio-element[data-visual-effect="glow"] { --awp-visual-filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.85)); }
.awp-studio-element[data-visual-effect="vivid"] { --awp-visual-filter: saturate(1.45) contrast(1.08); }
.awp-studio-element[data-visual-effect="monochrome"] { --awp-visual-filter: grayscale(1) contrast(1.08); }
.awp-studio-element[data-visual-effect="warm"] { --awp-visual-filter: sepia(0.28) saturate(1.25) hue-rotate(-8deg); }
.awp-studio-element[data-visual-effect="cool"] { --awp-visual-filter: saturate(1.1) hue-rotate(18deg) brightness(1.02); }
.awp-studio-element[data-visual-effect="vintage"] { --awp-visual-filter: sepia(0.42) contrast(1.05) brightness(0.96); }
.awp-studio-element[data-visual-effect="highContrast"] { --awp-visual-filter: contrast(1.35) saturate(1.15); }
.awp-studio-element[data-visual-effect="softBlur"] { --awp-visual-filter: blur(1.2px) brightness(1.02); }
.awp-studio-element[data-visual-effect="noir"] { --awp-visual-filter: grayscale(1) contrast(1.35) brightness(0.92); }
.awp-studio-element[data-visual-effect="filmGrain"] { --awp-visual-filter: contrast(1.12) saturate(0.88) brightness(1.04); }
.awp-studio-element[data-visual-effect="spotlight"] { --awp-visual-filter: brightness(1.12) contrast(1.18) drop-shadow(0 0 18px rgba(255, 255, 255, 0.35)); }
.awp-studio-element[data-ani-effect="none"] { opacity: var(--awp-element-opacity, 1); }

.awp-studio-element[data-ani-effect="fadeIn"] { animation: awp-studio-fadeIn var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="fadeInSlow"] { animation: awp-studio-fadeIn 1.2s ease-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="fadeInFast"] { animation: awp-studio-fadeIn 0.5s ease-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="slideUp"] { animation: awp-studio-slideUp var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="slideDown"] { animation: awp-studio-slideDown var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="slideLeft"] { animation: awp-studio-slideLeft var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="slideRight"] { animation: awp-studio-slideRight var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="zoomIn"] { animation: awp-studio-zoomIn var(--awp-ani-duration, 1s) cubic-bezier(.16, 1, .3, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="zoomOut"] { animation: awp-studio-zoomOut var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="blurIn"] { animation: awp-studio-blurIn var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="popIn"] { animation: awp-studio-popIn var(--awp-ani-duration, 1s) cubic-bezier(.34, 1.56, .64, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="revealUp"] { animation: awp-studio-revealUp var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="swingIn"] { transform-origin: top center; animation: awp-studio-swingIn var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="elasticIn"] { animation: awp-studio-elasticIn var(--awp-ani-duration, 1s) cubic-bezier(.68, -.55, .27, 1.55) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="wipeRight"] { animation: awp-studio-wipeRight var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="flipIn"] { transform-origin: center; animation: awp-studio-flipIn var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="dropIn"] { animation: awp-studio-dropIn var(--awp-ani-duration, 1s) cubic-bezier(.34, 1.4, .64, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="spiralIn"] { animation: awp-studio-spiralIn var(--awp-ani-duration, 1.05s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="rollIn"] { transform-origin: left bottom; animation: awp-studio-rollIn var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="flipXIn"] { transform-origin: center; animation: awp-studio-flipXIn var(--awp-ani-duration, 1s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="bounceIn"] { animation: awp-studio-bounceIn var(--awp-ani-duration, 1s) cubic-bezier(.34, 1.56, .64, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="rotate360"] { animation: awp-studio-rotate360 var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="rotate180"] { animation: awp-studio-rotate180 var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="bounce"] { animation: awp-studio-bounce var(--awp-ani-duration, 1s) ease-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="pulse"] { animation: awp-studio-pulse var(--awp-ani-duration, 1s) ease-in-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="shake"] { animation: awp-studio-shake var(--awp-ani-duration, 1s) ease-in-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="float"] { animation: awp-studio-float var(--awp-ani-duration, 2.6s) ease-in-out var(--awp-ani-delay, 0s) infinite alternate; }
.awp-studio-element[data-ani-effect="breathe"] { animation: awp-studio-breathe var(--awp-ani-duration, 2.8s) ease-in-out var(--awp-ani-delay, 0s) infinite; }
.awp-studio-element[data-ani-effect="heartbeat"] { animation: awp-studio-heartbeat var(--awp-ani-duration, 1.5s) ease-in-out var(--awp-ani-delay, 0s) infinite; }
.awp-studio-element[data-ani-effect="sway"] { transform-origin: bottom center; animation: awp-studio-sway var(--awp-ani-duration, 2.5s) ease-in-out var(--awp-ani-delay, 0s) infinite alternate; }
.awp-studio-element[data-ani-effect="shimmer"] { animation: awp-studio-shimmer var(--awp-ani-duration, 2.2s) ease-in-out var(--awp-ani-delay, 0s) infinite; }
.awp-studio-element[data-ani-effect="wiggle"] { animation: awp-studio-wiggle var(--awp-ani-duration, 1.2s) ease-in-out var(--awp-ani-delay, 0s) infinite; }
.awp-studio-element[data-ani-effect="spinSlow"] { animation: awp-studio-spinSlow var(--awp-ani-duration, 4s) linear var(--awp-ani-delay, 0s) infinite; }
.awp-studio-element[data-ani-effect="glitch"] { animation: awp-studio-glitch var(--awp-ani-duration, 1.4s) steps(2, end) var(--awp-ani-delay, 0s) infinite; }
.awp-studio-element[data-ani-effect="neonPulse"] { animation: awp-studio-neonPulse var(--awp-ani-duration, 1.8s) ease-in-out var(--awp-ani-delay, 0s) infinite; }
.awp-studio-element[data-ani-effect="skewIn"] { animation: awp-studio-skewIn var(--awp-ani-duration, 0.85s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="rise3d"] { transform-origin: center bottom; animation: awp-studio-rise3d var(--awp-ani-duration, 0.9s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="snapIn"] { animation: awp-studio-snapIn var(--awp-ani-duration, 0.7s) cubic-bezier(.2, 1.4, .4, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="blurSlide"] { animation: awp-studio-blurSlide var(--awp-ani-duration, 0.85s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="curtain"] { animation: awp-studio-curtain var(--awp-ani-duration, 0.9s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="slingIn"] { transform-origin: left center; animation: awp-studio-slingIn var(--awp-ani-duration, 0.9s) cubic-bezier(.22, 1, .36, 1) var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="jello"] { animation: awp-studio-jello var(--awp-ani-duration, 1s) ease-in-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="flash"] { animation: awp-studio-flash var(--awp-ani-duration, 1.1s) ease-in-out var(--awp-ani-delay, 0s) both; }
.awp-studio-element[data-ani-effect="kenBurns"] { animation: awp-studio-kenBurns var(--awp-ani-duration, 5s) ease-in-out var(--awp-ani-delay, 0s) infinite alternate; }

@keyframes awp-studio-fadeIn { from { opacity: 0; } to { opacity: var(--awp-element-opacity, 1); } }
@keyframes awp-studio-slideUp { from { opacity: 0; transform: var(--awp-element-transform) translateY(42px); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) translateY(0); } }
@keyframes awp-studio-slideDown { from { opacity: 0; transform: var(--awp-element-transform) translateY(-42px); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) translateY(0); } }
@keyframes awp-studio-slideLeft { from { opacity: 0; transform: var(--awp-element-transform) translateX(52px); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) translateX(0); } }
@keyframes awp-studio-slideRight { from { opacity: 0; transform: var(--awp-element-transform) translateX(-52px); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) translateX(0); } }
@keyframes awp-studio-zoomIn { from { opacity: 0; transform: var(--awp-element-transform) scale(.72); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-studio-zoomOut { from { opacity: 0; transform: var(--awp-element-transform) scale(1.22); } to { opacity: var(--awp-element-opacity, 1); transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-studio-blurIn { from { opacity: 0; filter: var(--awp-visual-filter) blur(14px); transform: var(--awp-element-transform) scale(.94); } to { opacity: var(--awp-element-opacity, 1); filter: var(--awp-visual-filter) blur(0); transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-studio-popIn { 0% { opacity: 0; transform: var(--awp-element-transform) scale(.35); } 70% { opacity: 1; transform: var(--awp-element-transform) scale(1.08); } 100% { transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-studio-revealUp { from { opacity: 0; clip-path: inset(100% 0 0); transform: var(--awp-element-transform) translateY(24px); } to { opacity: 1; clip-path: inset(0); transform: var(--awp-element-transform) translateY(0); } }
@keyframes awp-studio-swingIn { 0% { opacity: 0; transform: var(--awp-element-transform) perspective(600px) rotateX(-70deg); } 100% { opacity: 1; transform: var(--awp-element-transform) perspective(600px) rotateX(0); } }
@keyframes awp-studio-elasticIn { 0% { opacity: 0; transform: var(--awp-element-transform) scale(.25); } 55% { opacity: 1; transform: var(--awp-element-transform) scale(1.12); } 75% { transform: var(--awp-element-transform) scale(.96); } 100% { transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-studio-wipeRight { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes awp-studio-flipIn { 0% { opacity: 0; transform: var(--awp-element-transform) perspective(700px) rotateY(-85deg); } 100% { opacity: 1; transform: var(--awp-element-transform) perspective(700px) rotateY(0); } }
@keyframes awp-studio-dropIn { 0% { opacity: 0; transform: var(--awp-element-transform) translateY(-48px) scale(.92); } 70% { opacity: 1; transform: var(--awp-element-transform) translateY(6px) scale(1.02); } 100% { transform: var(--awp-element-transform) translateY(0) scale(1); } }
@keyframes awp-studio-spiralIn { 0% { opacity: 0; transform: var(--awp-element-transform) rotate(-180deg) scale(.2); } 100% { opacity: 1; transform: var(--awp-element-transform) rotate(0) scale(1); } }
@keyframes awp-studio-rollIn { 0% { opacity: 0; transform: var(--awp-element-transform) translateX(-40%) rotate(-120deg); } 100% { opacity: 1; transform: var(--awp-element-transform) translateX(0) rotate(0); } }
@keyframes awp-studio-flipXIn { 0% { opacity: 0; transform: var(--awp-element-transform) perspective(700px) rotateX(82deg); } 100% { opacity: 1; transform: var(--awp-element-transform) perspective(700px) rotateX(0); } }
@keyframes awp-studio-bounceIn { 0% { opacity: 0; transform: var(--awp-element-transform) translateY(-60px) scale(.7); } 55% { opacity: 1; transform: var(--awp-element-transform) translateY(8px) scale(1.06); } 75% { transform: var(--awp-element-transform) translateY(-4px) scale(.98); } 100% { transform: var(--awp-element-transform) translateY(0) scale(1); } }
@keyframes awp-studio-rotate360 { from { opacity: 0; transform: var(--awp-element-transform) rotate(-360deg) scale(.7); } to { opacity: 1; transform: var(--awp-element-transform) rotate(0) scale(1); } }
@keyframes awp-studio-rotate180 { from { opacity: 0; transform: var(--awp-element-transform) rotate(-180deg); } to { opacity: 1; transform: var(--awp-element-transform) rotate(0); } }
@keyframes awp-studio-bounce { 0% { opacity: 0; transform: var(--awp-element-transform) scale(.3); } 45% { opacity: 1; transform: var(--awp-element-transform) scale(1.12); } 65% { transform: var(--awp-element-transform) scale(.94); } 82% { transform: var(--awp-element-transform) scale(1.04); } 100% { transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-studio-pulse { from, to { transform: var(--awp-element-transform) scale(1); } 50% { transform: var(--awp-element-transform) scale(1.06); } }
@keyframes awp-studio-shake { from, to { transform: var(--awp-element-transform) translateX(0); } 20%, 60% { transform: var(--awp-element-transform) translateX(-6px); } 40%, 80% { transform: var(--awp-element-transform) translateX(6px); } }
@keyframes awp-studio-float { from { transform: var(--awp-element-transform) translateY(0); } to { transform: var(--awp-element-transform) translateY(-12px); } }
@keyframes awp-studio-breathe { 0%, 100% { transform: var(--awp-element-transform) scale(1); } 50% { transform: var(--awp-element-transform) scale(1.045); } }
@keyframes awp-studio-heartbeat { 0%, 28%, 100% { transform: var(--awp-element-transform) scale(1); } 12% { transform: var(--awp-element-transform) scale(1.08); } 20% { transform: var(--awp-element-transform) scale(1.03); } }
@keyframes awp-studio-sway { from { transform: var(--awp-element-transform) rotate(-2.5deg); } to { transform: var(--awp-element-transform) rotate(2.5deg); } }
@keyframes awp-studio-shimmer { 0%, 100% { filter: var(--awp-visual-filter) brightness(1); } 50% { filter: var(--awp-visual-filter) brightness(1.28) saturate(1.15); } }
@keyframes awp-studio-wiggle { 0%, 100% { transform: var(--awp-element-transform) rotate(0); } 25% { transform: var(--awp-element-transform) rotate(3deg); } 75% { transform: var(--awp-element-transform) rotate(-3deg); } }
@keyframes awp-studio-spinSlow { from { transform: var(--awp-element-transform) rotate(0deg); } to { transform: var(--awp-element-transform) rotate(360deg); } }
@keyframes awp-studio-glitch {
  0%, 100% { transform: var(--awp-element-transform) translate(0, 0); filter: var(--awp-visual-filter); }
  20% { transform: var(--awp-element-transform) translate(-2px, 1px); filter: var(--awp-visual-filter) hue-rotate(20deg); }
  40% { transform: var(--awp-element-transform) translate(2px, -1px); }
  60% { transform: var(--awp-element-transform) translate(-1px, 2px); filter: var(--awp-visual-filter) saturate(1.4); }
  80% { transform: var(--awp-element-transform) translate(1px, -2px); }
}
@keyframes awp-studio-neonPulse {
  0%, 100% { filter: var(--awp-visual-filter) drop-shadow(0 0 2px rgba(56, 189, 248, 0.35)); }
  50% { filter: var(--awp-visual-filter) drop-shadow(0 0 14px rgba(56, 189, 248, 0.95)) brightness(1.12); }
}
@keyframes awp-studio-kenBurns { from { transform: var(--awp-element-transform) scale(1) translate(0, 0); } to { transform: var(--awp-element-transform) scale(1.12) translate(-2%, -1%); } }
@keyframes awp-studio-skewIn { 0% { opacity: 0; transform: var(--awp-element-transform) translateX(-36px) skewX(-14deg); } 100% { opacity: 1; transform: var(--awp-element-transform) translateX(0) skewX(0); } }
@keyframes awp-studio-rise3d { 0% { opacity: 0; transform: var(--awp-element-transform) perspective(800px) translateY(48px) rotateX(55deg); } 100% { opacity: 1; transform: var(--awp-element-transform) perspective(800px) translateY(0) rotateX(0); } }
@keyframes awp-studio-snapIn { 0% { opacity: 0; transform: var(--awp-element-transform) scale(.2); } 60% { opacity: 1; transform: var(--awp-element-transform) scale(1.12); } 100% { transform: var(--awp-element-transform) scale(1); } }
@keyframes awp-studio-blurSlide { 0% { opacity: 0; filter: var(--awp-visual-filter) blur(16px); transform: var(--awp-element-transform) translateY(36px); } 100% { opacity: 1; filter: var(--awp-visual-filter) blur(0); transform: var(--awp-element-transform) translateY(0); } }
@keyframes awp-studio-curtain { 0% { opacity: 0; clip-path: inset(50% 0 50% 0); } 100% { opacity: 1; clip-path: inset(0); } }
@keyframes awp-studio-slingIn { 0% { opacity: 0; transform: var(--awp-element-transform) translateX(-70%) rotate(-18deg); } 70% { opacity: 1; transform: var(--awp-element-transform) translateX(6%) rotate(3deg); } 100% { transform: var(--awp-element-transform) translateX(0) rotate(0); } }
@keyframes awp-studio-jello { 0%, 100% { transform: var(--awp-element-transform) skewX(0) skewY(0); } 30% { transform: var(--awp-element-transform) skewX(-10deg) skewY(-6deg); } 50% { transform: var(--awp-element-transform) skewX(8deg) skewY(4deg); } 70% { transform: var(--awp-element-transform) skewX(-4deg) skewY(-2deg); } }
@keyframes awp-studio-flash { 0%, 50%, 100% { opacity: var(--awp-element-opacity, 1); filter: var(--awp-visual-filter) brightness(1); } 25%, 75% { opacity: .35; filter: var(--awp-visual-filter) brightness(1.8); } }

@media (prefers-reduced-motion: reduce) {
  .awp-studio-element[data-ani-effect] {
    animation: none !important;
  }
}

/* In-app name / confirm modal (window.prompt / confirm yerine) */
.awp-studio-ui-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

/* Ürün stüdyosu: onay modalı her zaman ortada ve en üstte */
body.awp-ps-fullscreen-body .awp-studio-ui-modal,
.awp-product-studio-mode .awp-studio-ui-modal,
#awp-studio-ui-modal.awp-studio-ui-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.awp-ps-fullscreen-body .awp-studio-ui-modal__panel,
.awp-product-studio-mode .awp-studio-ui-modal__panel {
  margin: auto;
}

.awp-studio-ui-modal[hidden] {
  display: none !important;
}

.awp-studio-ui-modal__panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 20px 20px 16px;
  color: #0f172a;
}

.awp-studio-ui-modal__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.awp-studio-ui-modal__desc {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}

.awp-studio-ui-modal__label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.awp-studio-ui-modal__input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  background: #fff;
}

.awp-studio-ui-modal__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.awp-studio-ui-modal__choices {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.awp-studio-ui-modal__choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.875rem;
  color: #0f172a;
}

.awp-studio-ui-modal__choice:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
}

.awp-studio-ui-modal__choice input {
  margin-top: 2px;
}

.awp-studio-ui-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.awp-studio-ui-modal__btn {
  appearance: none;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.awp-studio-ui-modal__btn:hover {
  background: #f8fafc;
}

.awp-studio-ui-modal__btn--primary {
  border-color: transparent;
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
}

.awp-studio-ui-modal__btn--primary:hover {
  background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
}

/* Export / busy overlay (form dönüşü product-studio.css ile de gelir) */
.awp-studio-busy-overlay {
  position: fixed;
  inset: 0;
  z-index: 100080;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(1.5px);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

.awp-product-studio-mode .awp-studio-busy-overlay,
body.awp-ps-fullscreen-body .awp-studio-busy-overlay {
  z-index: 2147483645 !important;
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
}

.awp-studio-busy-overlay[hidden] {
  display: none !important;
}

.awp-studio-busy-overlay__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 24px 28px;
  border-radius: 10px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
  line-height: 1.4;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

.awp-studio-busy-overlay__mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.awp-studio-busy-overlay__mark::after {
  content: none;
}

.awp-studio-busy-overlay__logo {
  position: absolute;
  inset: 8px;
  width: 20px;
  height: 20px;
  margin: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.awp-studio-busy-overlay__title,
.awp-studio-busy-overlay__sub,
.awp-studio-busy-overlay__hint {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.awp-studio-busy-overlay__title {
  color: #f8fafc;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.awp-studio-busy-overlay__sub {
  color: #94a3b8;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 12px;
  line-height: 1.4;
}

.awp-studio-busy-overlay__spinner {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2.5px solid rgba(148, 163, 184, 0.25);
  border-top-color: #fb923c;
  animation: awp-studio-busy-spin 0.75s linear infinite;
}

@keyframes awp-studio-busy-spin {
  to {
    transform: rotate(360deg);
  }
}

.awp-studio-busy-overlay--print .awp-studio-busy-overlay__card {
  min-width: min(420px, calc(100vw - 32px));
  max-width: 440px;
  padding: 28px 28px 22px;
  gap: 12px;
  text-align: center;
}

.awp-studio-busy-overlay__hint {
  margin: 0;
  color: #fdba74;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 12px;
  font-weight: 600;
}

.awp-studio-busy-overlay__stages {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  width: 100%;
  text-align: left;
  display: grid;
  gap: 8px;
}

.awp-studio-busy-overlay__stage {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 13px;
  color: #64748b;
  transition: color 0.2s ease;
}

.awp-studio-busy-overlay__stage.is-done {
  color: #86efac;
}

.awp-studio-busy-overlay__stage.is-active {
  color: #f8fafc;
  font-weight: 650;
}

.awp-studio-busy-overlay__stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
  background: #475569;
}

.awp-studio-busy-overlay__stage.is-done .awp-studio-busy-overlay__stage-dot {
  background: #22c55e;
}

.awp-studio-busy-overlay__stage.is-active .awp-studio-busy-overlay__stage-dot {
  background: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.22);
}

.awp-studio-busy-overlay--print .awp-studio-busy-overlay__stage {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 96px;
  align-items: center;
  column-gap: 10px;
}

.awp-studio-busy-overlay__stage-label {
  min-width: 0;
  line-height: 1.3;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

.awp-studio-busy-overlay__stage-bar {
  display: block;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: #334155;
  overflow: hidden;
  flex: 0 0 96px;
}

.awp-studio-busy-overlay__stage-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #fb923c;
  transform: translateZ(0);
  transition: width 0.18s ease-out;
}

.awp-studio-busy-overlay__stage.is-error {
  color: #fca5a5;
}

.awp-studio-busy-overlay__stage.is-error .awp-studio-busy-overlay__stage-dot {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.awp-studio-busy-overlay__stage.is-error .awp-studio-busy-overlay__stage-fill {
  background: #ef4444;
}

.awp-studio-print-ready-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

.awp-studio-print-ready-modal.is-open {
  opacity: 1;
}

.awp-studio-print-ready-modal__panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  transform: scale(0.42);
  transform-origin: center center;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

.awp-studio-print-ready-modal.is-open .awp-studio-print-ready-modal__panel {
  transform: scale(1);
}

.awp-studio-print-ready-modal__title {
  margin: 0 0 8px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.awp-studio-print-ready-modal__desc {
  margin: 0 0 12px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 13.5px;
  line-height: 1.45;
  color: #475569;
}

.awp-studio-print-ready-modal__file {
  margin: 0 0 18px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
  font-size: 13px;
  font-weight: 650;
  word-break: break-all;
}

.awp-studio-print-ready-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.awp-studio-print-ready-modal__actions .awp-studio-ui-modal__btn {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif !important;
}

/* Dokunmatik: tutamaç / hover-only aksiyonlar */
@media (pointer: coarse) {
  .awp-resize-handle {
    width: 18px;
    height: 18px;
  }

  .awp-resize-handle.top-left,
  .awp-resize-handle.top-right,
  .awp-resize-handle.bottom-left,
  .awp-resize-handle.bottom-right {
    margin: -4px;
  }

  .awp-resize-handle.left,
  .awp-resize-handle.right {
    width: 12px;
    height: 28px;
  }

  .awp-resize-handle.top,
  .awp-resize-handle.bottom {
    width: 28px;
    height: 12px;
  }

  .awp-clipart-grid-item-actions,
  .awp-studio-text-template-card-wrap .awp-studio-text-template-card-delete {
    opacity: 1;
  }

  .awp-studio-toolbar-icon,
  .awp-studio-device-nav-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .awp-studio-selection-float-toolbar .awp-studio-toolbar-icon {
    min-width: 28px;
    min-height: 28px;
    width: 28px;
    height: 28px;
  }

  .awp-product-studio-mode .awp-studio-canvas-viewport,
  body.awp-ps-fullscreen-body .awp-studio-canvas-viewport {
    touch-action: none;
  }
}

#awp-studio-left-toolbar.awp-studio-left-toolbar > .awp-studio-toolbar-icon[data-panel="preflight"],
.awp-studio-left-toolbar > .awp-studio-toolbar-icon[data-panel="preflight"] {
  position: relative;
  overflow: visible !important;
}

.awp-studio-rail-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
  box-sizing: border-box;
  box-shadow: 0 0 0 1.5px #fff;
}

.awp-studio-rail-badge.is-error {
  background: #ef4444;
  color: #fff;
}

.awp-product-studio-mode .awp-studio-rail-badge {
  box-shadow: 0 0 0 1.5px #fff;
}

@media (max-width: 768px) {
  .awp-studio-rail-badge {
    top: 2px;
    right: 2px;
    min-width: 12px;
    height: 12px;
    padding: 0 2px;
    font-size: 8px;
    line-height: 12px;
    box-shadow: 0 0 0 1px #fff;
  }

  .awp-product-studio-mode .awp-studio-left-toolbar > .awp-studio-toolbar-icon[data-panel="preflight"] {
    overflow: visible !important;
  }
}

.awp-studio-canvas-inner.awp-studio-cmyk-preview {
  filter: sepia(0.16) saturate(0.76) contrast(1.07) hue-rotate(-12deg);
}

.awp-studio-cmyk-banner {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 24;
  width: min(520px, calc(100% - 24px));
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  pointer-events: none;
}

.awp-studio-cmyk-banner[hidden] {
  display: none !important;
}

.awp-studio-preflight {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.awp-studio-preflight-status {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.awp-studio-preflight-status.is-ready {
  border-color: #6ee7b7;
  background: #ecfdf5;
}

.awp-studio-preflight-status.is-warn {
  border-color: #fdba74;
  background: #fff7ed;
}

.awp-studio-preflight-status strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.awp-studio-preflight-status p {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}

.awp-studio-preflight-actions {
  display: flex;
  gap: 6px;
}

.awp-studio-preflight-actions .awp-studio-prop-btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.awp-studio-preflight-cmyk {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  min-height: 28px;
  height: auto;
  padding: 4px 8px;
  font-size: 11px;
  color: #334155;
}

.awp-studio-preflight-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.awp-studio-preflight-item {
  display: flex;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  box-shadow: none;
  text-transform: none !important;
  letter-spacing: 0;
}

.awp-studio-preflight-item--error {
  border-color: #fecaca;
  background: #fef2f2;
}

.awp-studio-preflight-item--warning {
  border-color: #fdba74;
  background: #fffbeb;
}

.awp-studio-preflight-item--info {
  border-color: #e2e8f0;
}

.awp-studio-preflight-sev {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  padding-top: 1px;
}

.awp-studio-preflight-item--error .awp-studio-preflight-sev {
  color: #dc2626;
}

.awp-studio-preflight-item--warning .awp-studio-preflight-sev {
  color: #c2410c;
}

.awp-studio-preflight-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.awp-studio-preflight-item-body strong {
  font-size: 12px;
  color: #0f172a;
}

.awp-studio-preflight-item-body span {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  text-transform: none;
}

.awp-studio-preflight-fix {
  margin-top: 4px;
  color: #0f172a !important;
  font-weight: 600;
}

#awp-studio-content-preflight.awp-studio-content-section--active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.awp-studio-exporting .awp-studio-element[data-element-type="text"],
.awp-studio-exporting .awp-studio-text-stack,
.awp-studio-exporting .awp-studio-text-fx,
.awp-studio-exporting .awp-studio-text-stroke,
.awp-studio-exporting .awp-studio-text-face {
  overflow: visible !important;
}

.awp-studio-proof-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.awp-studio-proof-modal__panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 20px;
  color: #0f172a;
}

.awp-studio-proof-modal__panel h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.awp-studio-proof-modal__panel p {
  margin: 0 0 14px;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}

.awp-studio-proof-modal__panel img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 14px;
}

/* Mobil tuval — admin/slider: stage büyüsün, etiketler kalksın */
@media (max-width: 768px) {
  .awp-studio-root:not(.awp-product-studio-mode) {
    min-height: 0;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .awp-studio-root:not(.awp-product-studio-mode) .awp-studio-left-toolbar {
    width: 48px;
    flex: 0 0 48px;
    padding: 4px 2px;
  }

  .awp-studio-root:not(.awp-product-studio-mode) .awp-studio-rail-label {
    display: none;
  }

  .awp-studio-root:not(.awp-product-studio-mode) .awp-studio-left-toolbar > .awp-studio-toolbar-icon {
    min-height: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 3px;
  }

  .awp-studio-canvas-area,
  .awp-studio-canvas-viewport {
    min-height: 0;
  }

  .awp-studio-canvas-area {
    padding: 0;
    gap: 0;
  }

  .awp-studio-device-nav {
    gap: 4px;
    padding: 4px 8px;
    margin-top: 0;
    overflow-x: auto;
  }

  .awp-studio-device-nav-label {
    display: none;
  }

  .awp-studio-device-nav-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0 8px;
    box-shadow: none;
  }

  .awp-studio-page-fab {
    right: 10px;
    bottom: 56px;
  }

  .awp-studio-page-fab-btn {
    border-radius: 6px;
    box-shadow: none;
    padding: 8px 10px;
  }

  .awp-studio-selection-float-toolbar {
    border-radius: 6px;
    box-shadow: none;
  }
}

/* Sol araç hover önizlemesi — Öğeler denemesi */
.awp-studio-tool-preview {
  position: fixed;
  z-index: 240;
  width: 300px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  overflow: visible;
  pointer-events: auto;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.awp-studio-tool-preview[hidden] {
  display: none !important;
}

.awp-studio-tool-preview__media {
  position: relative;
  height: 168px;
  background: #e8ecf1;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.awp-studio-tool-preview__media video,
.awp-studio-tool-preview__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.awp-studio-tool-preview__body {
  padding: 10px 12px 12px;
  background: #fff;
  border-radius: 0 0 14px 14px;
}

.awp-studio-tool-preview__badge {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(82, 88, 228, 0.1);
  color: #4338ca;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.awp-studio-tool-preview__body strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.awp-studio-tool-preview__body p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

.awp-stp-scene {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
  --stp-x0: 24px;
  --stp-y0: 74px;
  --stp-x1: 154px;
  --stp-y1: 78px;
}

.awp-stp-page {
  position: absolute;
  left: 72px;
  right: 14px;
  top: 22px;
  bottom: 22px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.awp-stp-lib {
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 18px;
  width: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.awp-stp-sticker {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: 0 0 28px;
}

.awp-stp-sticker--a {
  background: linear-gradient(135deg, #93c5fd, #3b82f6);
}

.awp-stp-sticker--b {
  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
  clip-path: polygon(50% 4%, 61% 38%, 98% 38%, 68% 59%, 79% 93%, 50% 72%, 21% 93%, 32% 59%, 2% 38%, 39% 38%);
}

.awp-stp-sticker--c {
  background: linear-gradient(135deg, #6ee7b7, #059669);
  border-radius: 50%;
}

.awp-stp-ghost {
  position: absolute;
  left: 148px;
  top: 70px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
  clip-path: polygon(50% 4%, 61% 38%, 98% 38%, 68% 59%, 79% 93%, 50% 72%, 21% 93%, 32% 59%, 2% 38%, 39% 38%);
  opacity: 0;
  transform: scale(0.4);
}

.awp-stp-cursor {
  position: absolute;
  left: 24px;
  top: 74px;
  width: 22px;
  height: 22px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.35));
}

.awp-stp-cursor svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  overflow: visible;
}

.awp-stp-cursor__grab {
  opacity: 0;
}

.awp-stp-scene.is-playing .awp-stp-cursor {
  animation: awp-stp-cursor 3.4s ease-in-out infinite;
}

.awp-stp-scene.is-playing .awp-stp-cursor__ptr {
  animation: awp-stp-ptr-vis 3.4s ease-in-out infinite;
}

.awp-stp-scene.is-playing .awp-stp-cursor__grab {
  animation: awp-stp-grab-vis 3.4s ease-in-out infinite;
}

.awp-stp-scene.is-playing .awp-stp-ghost {
  animation: awp-stp-ghost 3.4s ease-in-out infinite;
}

.awp-stp-scene.is-playing .awp-stp-sticker--b {
  animation: awp-stp-pick 3.4s ease-in-out infinite;
}

@keyframes awp-stp-cursor {
  0%,
  12% {
    left: var(--stp-x0);
    top: var(--stp-y0);
    transform: scale(1);
  }
  18% {
    transform: scale(0.86);
  }
  48%,
  62% {
    left: var(--stp-x1);
    top: var(--stp-y1);
    transform: scale(1);
  }
  70%,
  100% {
    left: var(--stp-x0);
    top: var(--stp-y0);
    transform: scale(1);
  }
}

@keyframes awp-stp-ptr-vis {
  0%,
  16% {
    opacity: 1;
  }
  20%,
  68% {
    opacity: 0;
  }
  74%,
  100% {
    opacity: 1;
  }
}

@keyframes awp-stp-grab-vis {
  0%,
  16% {
    opacity: 0;
  }
  20%,
  68% {
    opacity: 1;
  }
  74%,
  100% {
    opacity: 0;
  }
}

@keyframes awp-stp-ghost {
  0%,
  44% {
    opacity: 0;
    transform: scale(0.4);
  }
  52%,
  78% {
    opacity: 1;
    transform: scale(1);
  }
  90%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes awp-stp-pick {
  0%,
  16% {
    opacity: 1;
    transform: scale(1);
  }
  22%,
  70% {
    opacity: 0.28;
    transform: scale(0.86);
  }
  82%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.awp-stp-scene--tap.is-playing .awp-stp-cursor__ptr {
  animation: none;
  opacity: 1;
}

.awp-stp-scene--tap.is-playing .awp-stp-cursor__grab {
  animation: none;
  opacity: 0;
}

.awp-stp-page--wide {
  left: 16px;
}

.awp-stp-drop {
  position: absolute;
  opacity: 0;
  transform: scale(0.4);
}

.awp-stp-scene.is-playing .awp-stp-drop:not(.awp-stp-drop--anim) {
  animation: awp-stp-ghost 3.4s ease-in-out infinite;
}

.awp-stp-scene--templates {
  --stp-x0: 22px;
  --stp-y0: 48px;
  --stp-x1: 148px;
  --stp-y1: 70px;
}

.awp-stp-tpl {
  width: 30px;
  height: 38px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.awp-stp-tpl::before {
  content: "";
  display: block;
  height: 10px;
  background: linear-gradient(90deg, #818cf8, #6366f1);
}

.awp-stp-tpl--b::before {
  background: linear-gradient(90deg, #fb7185, #f43f5e);
}

.awp-stp-drop--tpl {
  left: 18px;
  right: 18px;
  top: 16px;
  bottom: 16px;
  border-radius: 4px;
  background:
    linear-gradient(#6366f1, #6366f1) 0 0 / 100% 18px no-repeat,
    repeating-linear-gradient(#e2e8f0 0 3px, transparent 3px 12px);
  transform-origin: top center;
}

.awp-stp-scene--elements {
  --stp-x0: 26px;
  --stp-y0: 78px;
  --stp-x1: 130px;
  --stp-y1: 82px;
}

.awp-stp-tchip {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font: 700 14px/28px Georgia, "Times New Roman", serif;
  text-align: center;
}

.awp-stp-type {
  position: absolute;
  left: 22px;
  top: 58px;
  font: 700 22px/1 Georgia, "Times New Roman", serif;
  color: #0f172a;
  overflow: hidden;
  max-width: 0;
  white-space: nowrap;
}

.awp-stp-scene--elements.is-playing .awp-stp-type {
  animation: awp-stp-type 3.4s steps(4, end) infinite;
}

@keyframes awp-stp-type {
  0%,
  40% {
    max-width: 0;
  }
  62%,
  100% {
    max-width: 48px;
  }
}

.awp-stp-scene--shapes {
  --stp-x0: 24px;
  --stp-y0: 86px;
  --stp-x1: 150px;
  --stp-y1: 78px;
}

.awp-stp-sh {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.awp-stp-sh--rect {
  border-radius: 4px;
}

.awp-stp-sh--circle {
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
}

.awp-stp-sh--tri {
  width: 0;
  height: 0;
  background: none;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 22px solid #059669;
}

.awp-stp-drop--circle {
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
}

.awp-stp-scene--media {
  --stp-x0: 22px;
  --stp-y0: 58px;
  --stp-x1: 142px;
  --stp-y1: 72px;
}

.awp-stp-photo {
  width: 30px;
  height: 24px;
  border-radius: 5px;
  background:
    linear-gradient(#fde68a 55%, #34d399 55%),
    #93c5fd;
  background-size: 10px 10px, auto;
  background-position: 6px 10px, 0 0;
  background-repeat: no-repeat, no-repeat;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.awp-stp-photo--b {
  background:
    linear-gradient(#fda4af 50%, #fb7185 50%),
    #c4b5fd;
  background-size: 8px 8px, auto;
  background-position: 16px 12px, 0 0;
  background-repeat: no-repeat, no-repeat;
}

.awp-stp-drop--photo {
  left: 22px;
  right: 22px;
  top: 28px;
  height: 72px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 62%, #fde68a 0 10px, transparent 11px),
    linear-gradient(180deg, #93c5fd 0 42%, #34d399 42%);
}

.awp-stp-scene--ai {
  --stp-x0: 24px;
  --stp-y0: 78px;
  --stp-x1: 148px;
  --stp-y1: 78px;
}

.awp-stp-aibtn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font: 800 10px/32px Inter, sans-serif;
  text-align: center;
  letter-spacing: 0.02em;
}

.awp-stp-drop--ai {
  left: 22px;
  right: 22px;
  top: 26px;
  height: 78px;
  border-radius: 8px;
  background: linear-gradient(135deg, #c4b5fd, #818cf8 40%, #38bdf8);
}

.awp-stp-spark {
  position: absolute;
  left: 50%;
  top: 36px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
}

.awp-stp-scene--ai.is-playing .awp-stp-spark {
  animation: awp-stp-spark 3.4s ease-in-out infinite;
}

@keyframes awp-stp-spark {
  0%,
  28% {
    opacity: 0;
    transform: scale(0.4);
  }
  40%,
  58% {
    opacity: 1;
    transform: scale(1.4);
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(0.6) translateY(-12px);
  }
}

.awp-stp-scene--background {
  --stp-x0: 24px;
  --stp-y0: 86px;
  --stp-x1: 24px;
  --stp-y1: 86px;
}

.awp-stp-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 22px;
  box-shadow: inset 0 0 0 2px #fff, 0 1px 4px rgba(15, 23, 42, 0.15);
}

.awp-stp-swatch--a {
  background: #f8fafc;
}

.awp-stp-swatch--b {
  background: #6366f1;
}

.awp-stp-swatch--c {
  background: #0f172a;
}

.awp-stp-fill {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #6366f1;
  opacity: 0;
}

.awp-stp-scene--background.is-playing .awp-stp-fill {
  animation: awp-stp-fill 3.4s ease-in-out infinite;
}

@keyframes awp-stp-fill {
  0%,
  22% {
    opacity: 0;
  }
  40%,
  78% {
    opacity: 1;
  }
  90%,
  100% {
    opacity: 0;
  }
}

.awp-stp-scene--codes {
  --stp-x0: 24px;
  --stp-y0: 78px;
  --stp-x1: 150px;
  --stp-y1: 76px;
}

.awp-stp-qr,
.awp-stp-drop--qr {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background:
    linear-gradient(#0f172a, #0f172a) 0 0 / 8px 8px no-repeat,
    linear-gradient(#0f172a, #0f172a) 20px 0 / 8px 8px no-repeat,
    linear-gradient(#0f172a, #0f172a) 0 20px / 8px 8px no-repeat,
    repeating-conic-gradient(#0f172a 0 25%, #fff 0 50%) 10px 10px / 8px 8px;
  background-color: #fff;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

.awp-stp-drop--qr {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background-size: 12px 12px, 12px 12px, 12px 12px, 10px 10px;
  background-position: 0 0, 32px 0, 0 32px, 16px 16px;
}

.awp-stp-scene--properties {
  --stp-x0: 210px;
  --stp-y0: 92px;
  --stp-x1: 230px;
  --stp-y1: 92px;
}

.awp-stp-scene--properties .awp-stp-page {
  right: 76px;
}

.awp-stp-sel {
  position: absolute;
  left: 28px;
  top: 36px;
  width: 86px;
  height: 64px;
  border: 2px solid #6366f1;
  border-radius: 6px;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.awp-stp-props {
  position: absolute;
  right: 10px;
  top: 18px;
  bottom: 18px;
  width: 58px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.awp-stp-slider {
  position: relative;
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
}

.awp-stp-slider i {
  position: absolute;
  top: -5px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 1px 4px rgba(79, 70, 229, 0.4);
}

.awp-stp-scene--properties.is-playing .awp-stp-slider i {
  animation: awp-stp-knob 3.4s ease-in-out infinite;
}

.awp-stp-scene--properties.is-playing .awp-stp-sel {
  animation: awp-stp-sel 3.4s ease-in-out infinite;
}

@keyframes awp-stp-knob {
  0%,
  20% {
    left: 4px;
  }
  48%,
  70% {
    left: 18px;
  }
  100% {
    left: 4px;
  }
}

@keyframes awp-stp-sel {
  0%,
  20% {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  }
  48%,
  70% {
    background: linear-gradient(135deg, #a5b4fc, #6366f1);
  }
  100% {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  }
}

.awp-stp-scene--layers {
  --stp-x0: 28px;
  --stp-y0: 86px;
  --stp-x1: 28px;
  --stp-y1: 52px;
}

.awp-stp-scene--layers .awp-stp-page {
  left: 116px;
}

.awp-stp-lstack {
  position: absolute;
  left: 12px;
  top: 22px;
  bottom: 22px;
  width: 92px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.awp-stp-lrow {
  height: 22px;
  border-radius: 6px;
  background: #e2e8f0;
}

.awp-stp-lrow--mid {
  background: linear-gradient(90deg, #818cf8, #6366f1);
}

.awp-stp-scene--layers.is-playing .awp-stp-lrow--mid {
  animation: awp-stp-layer 3.4s ease-in-out infinite;
}

@keyframes awp-stp-layer {
  0%,
  18% {
    transform: translateY(0);
  }
  48%,
  70% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0);
  }
}

.awp-stp-scene--animation {
  --stp-x0: 24px;
  --stp-y0: 78px;
  --stp-x1: 24px;
  --stp-y1: 78px;
}

.awp-stp-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0f172a;
  position: relative;
}

.awp-stp-play::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.awp-stp-drop--anim {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
}

.awp-stp-scene--animation.is-playing .awp-stp-drop--anim {
  animation: awp-stp-enter 3.4s ease-in-out infinite;
}

@keyframes awp-stp-enter {
  0%,
  22% {
    opacity: 0;
    transform: translateY(16px) scale(0.7);
  }
  48%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.9);
  }
}

.awp-stp-scene--autoplay {
  --stp-x0: 24px;
  --stp-y0: 78px;
  --stp-x1: 24px;
  --stp-y1: 78px;
}

.awp-stp-slide {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 28px;
  bottom: 28px;
  border-radius: 8px;
}

.awp-stp-slide--a {
  background: linear-gradient(135deg, #93c5fd, #3b82f6);
}

.awp-stp-slide--b {
  background: linear-gradient(135deg, #c4b5fd, #7c3aed);
  opacity: 0;
}

.awp-stp-scene--autoplay.is-playing .awp-stp-slide--b {
  animation: awp-stp-slide 3.4s ease-in-out infinite;
}

@keyframes awp-stp-slide {
  0%,
  28% {
    opacity: 0;
    transform: translateX(18px);
  }
  48%,
  78% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-12px);
  }
}

.awp-stp-scene--preflight {
  --stp-x0: 48px;
  --stp-y0: 52px;
  --stp-x1: 48px;
  --stp-y1: 108px;
}

.awp-stp-scene--preflight .awp-stp-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px 20px;
}

.awp-stp-check {
  height: 16px;
  border-radius: 999px;
  background: #e2e8f0;
  position: relative;
}

.awp-stp-check::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

.awp-stp-scene--preflight.is-playing .awp-stp-check:nth-child(1)::before {
  animation: awp-stp-ok 3.4s ease-in-out infinite;
}

.awp-stp-scene--preflight.is-playing .awp-stp-check:nth-child(2)::before {
  animation: awp-stp-ok 3.4s ease-in-out 0.18s infinite;
}

.awp-stp-scene--preflight.is-playing .awp-stp-check:nth-child(3)::before {
  animation: awp-stp-ok 3.4s ease-in-out 0.36s infinite;
}

@keyframes awp-stp-ok {
  0%,
  22% {
    background: #fff;
    box-shadow: inset 0 0 0 1px #cbd5e1;
  }
  40%,
  100% {
    background: #10b981;
    box-shadow: none;
  }
}

.awp-stp-scene--library {
  --stp-x0: 22px;
  --stp-y0: 58px;
  --stp-x1: 148px;
  --stp-y1: 74px;
}

.awp-stp-file {
  width: 30px;
  height: 36px;
  border-radius: 4px 8px 4px 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  position: relative;
}

.awp-stp-file::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border: 6px solid #c7d2fe;
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.awp-stp-file--b {
  background: #eef2ff;
}

.awp-stp-drop--file {
  left: 22px;
  right: 22px;
  top: 24px;
  bottom: 24px;
  border-radius: 8px;
  background:
    linear-gradient(#6366f1, #6366f1) 0 0 / 100% 16px no-repeat,
    repeating-linear-gradient(#e2e8f0 0 3px, transparent 3px 11px) 12px 28px / calc(100% - 24px) auto no-repeat,
    #fff;
}

@media (prefers-reduced-motion: reduce) {
  .awp-stp-scene.is-playing .awp-stp-cursor,
  .awp-stp-scene.is-playing .awp-stp-cursor__ptr,
  .awp-stp-scene.is-playing .awp-stp-cursor__grab,
  .awp-stp-scene.is-playing .awp-stp-ghost,
  .awp-stp-scene.is-playing .awp-stp-drop,
  .awp-stp-scene.is-playing .awp-stp-sticker--b,
  .awp-stp-scene.is-playing .awp-stp-type,
  .awp-stp-scene.is-playing .awp-stp-spark,
  .awp-stp-scene.is-playing .awp-stp-fill,
  .awp-stp-scene.is-playing .awp-stp-slider i,
  .awp-stp-scene.is-playing .awp-stp-sel,
  .awp-stp-scene.is-playing .awp-stp-lrow--mid,
  .awp-stp-scene.is-playing .awp-stp-slide--b,
  .awp-stp-scene.is-playing .awp-stp-check::before {
    animation: none;
  }
  .awp-stp-ghost,
  .awp-stp-drop {
    opacity: 1;
    transform: scale(1);
  }
  .awp-stp-type {
    max-width: 48px;
  }
  .awp-stp-fill,
  .awp-stp-slide--b {
    opacity: 1;
  }
  .awp-stp-check::before {
    background: #10b981;
    box-shadow: none;
  }
  .awp-stp-cursor__ptr {
    opacity: 0;
  }
  .awp-stp-cursor__grab {
    opacity: 1;
  }
}

.awp-studio-tool-preview.is-mobile {
  width: min(280px, calc(100vw - 16px));
  border-radius: 12px;
}

.awp-studio-tool-preview.is-mobile .awp-studio-tool-preview__media {
  height: 140px;
  border-radius: 12px 12px 0 0;
}

.awp-studio-tool-preview.is-mobile:not(.is-docked)::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.awp-studio-tool-preview.is-docked {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

@media (max-width: 720px) {
  .awp-studio-tool-preview.is-mobile .awp-studio-tool-preview__body {
    padding: 8px 10px 10px;
  }

  .awp-studio-tool-preview.is-mobile .awp-studio-tool-preview__body strong {
    font-size: 12px;
  }

  .awp-studio-tool-preview.is-mobile .awp-studio-tool-preview__body p {
    font-size: 11px;
  }
}

/* Kampanya modal — geri sayım güvenli alanı (tuval alt şeridi) */
.awp-studio-campaign-modal-safe-zone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  pointer-events: none;
  border-top: 2px dashed rgba(99, 102, 241, 0.85);
  background: repeating-linear-gradient(
    -45deg,
    rgba(99, 102, 241, 0.08),
    rgba(99, 102, 241, 0.08) 8px,
    rgba(99, 102, 241, 0.03) 8px,
    rgba(99, 102, 241, 0.03) 16px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.awp-studio-campaign-modal-safe-zone__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4338ca;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  max-width: calc(100% - 16px);
  text-align: center;
  line-height: 1.35;
}

/* Çerçeve / şekil nokta düzenleme modu */
.awp-studio-selection-box.is-shape-path-edit {
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
  pointer-events: none !important;
  cursor: default;
}

.awp-studio-shape-path-edit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 12;
}

.awp-studio-shape-path-edit__lines {
  overflow: visible;
}

.awp-studio-path-point-handle {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #2563eb;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.35),
    0 1px 4px rgba(15, 23, 42, 0.22);
  cursor: move;
  pointer-events: auto;
  z-index: 14;
  box-sizing: border-box;
  transition: transform 0.1s ease, background 0.1s ease;
}

.awp-studio-path-point-handle:hover {
  transform: scale(1.15);
}

.awp-studio-path-point-handle.is-selected.is-cusp {
  border-radius: 2px;
  background: #f59e0b;
}

.awp-studio-path-point-handle.is-selected.is-smooth {
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.45),
    0 2px 6px rgba(15, 23, 42, 0.28);
}

.awp-studio-path-bezier-handle.is-cusp-mode {
  background: #f97316;
}

.awp-studio-shape-path-edit__hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  z-index: 16;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
}

.awp-studio-path-point-btn:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.awp-studio-shape-path-edit__handle-line {
  stroke: #94a3b8;
  stroke-width: 1.25;
}

.awp-studio-shape-path-edit__handle-line.is-ghost {
  stroke-dasharray: 3 3;
  opacity: 0.65;
}

.awp-studio-path-bezier-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 2px;
  background: #10b981;
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.45),
    0 2px 6px rgba(15, 23, 42, 0.28);
  cursor: grab;
  pointer-events: auto;
  z-index: 15;
  box-sizing: border-box;
  transform: rotate(45deg);
  transition: transform 0.1s ease, background 0.1s ease;
}

.awp-studio-path-bezier-handle:active {
  cursor: grabbing;
}

.awp-studio-path-bezier-handle:hover {
  transform: rotate(45deg) scale(1.2);
  background: #059669;
}

.awp-studio-path-bezier-handle.is-ghost {
  background: #34d399;
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.5),
    0 0 0 4px rgba(52, 211, 153, 0.15);
  opacity: 1;
}
