body {
  background:
    radial-gradient(circle at top, rgba(82, 195, 255, 0.07), transparent 30%),
    linear-gradient(180deg, #08111a 0%, #0d1520 42%, #121926 100%);
}

body.editor-focus-mode {
  overflow: hidden;
}

body.editor-focus-mode .site-header,
body.editor-focus-mode .footer {
  display: none;
}

body.editor-focus-mode .page {
  padding-top: 0;
}

#photo-editor-root input:not([type="range"]):not([type="color"]),
#photo-editor-root textarea,
#photo-editor-root select {
  background: rgba(2, 6, 23, 0.92) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc;
  caret-color: #f8fafc;
}

#photo-editor-root input:not([type="range"]):not([type="color"])::placeholder,
#photo-editor-root textarea::placeholder {
  color: rgba(148, 163, 184, 0.85);
  opacity: 1;
}

#photo-editor-root input:not([type="range"]):not([type="color"]):disabled,
#photo-editor-root textarea:disabled,
#photo-editor-root select:disabled {
  background: rgba(15, 23, 42, 0.88) !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
  color: rgba(226, 232, 240, 0.9) !important;
  -webkit-text-fill-color: rgba(226, 232, 240, 0.9);
  opacity: 1;
}

#photo-editor-root input:not([type="range"]):not([type="color"]):focus,
#photo-editor-root textarea:focus,
#photo-editor-root select:focus {
  border-color: rgba(56, 189, 248, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(56, 189, 248, 0.12);
}

#photo-editor-root select option {
  background: #0f172a;
  color: #f8fafc;
}

#photo-editor-root input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  outline: none;
}

#photo-editor-root input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #7dd3fc;
  border: 2px solid #0b1220;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
  cursor: pointer;
}

#photo-editor-root input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #7dd3fc;
  border: 2px solid #0b1220;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.15);
  cursor: pointer;
}

#photo-editor-root input[type="color"] {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
}

#photo-editor-root input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

#photo-editor-root input[type="color"]::-webkit-color-swatch {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
}

#photo-editor-root .studio-scroll::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

#photo-editor-root .studio-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 999px;
}

#photo-editor-root .studio-scroll::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.55);
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.6);
}

.checkerboard {
  background-image:
    linear-gradient(45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(148, 163, 184, 0.14) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.14) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.14) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.crop-overlay {
  box-shadow: 0 0 0 9999px rgba(3, 7, 18, 0.55);
}

.grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: calc(100% / 3) 100%, 100% calc(100% / 3);
}

.handle {
  box-shadow: 0 0 0 2px rgba(11, 18, 32, 0.95);
}

.panel-seam {
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.015)),
    rgba(11, 17, 27, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
