/* FOCUS PHOTOEDIT V6.5.1 FOCUS THEME CLEAN START */
.photoedit-shell{margin-top:18px}.pe-drop,.pe-editor-card,.pe-output-card{background:linear-gradient(180deg,rgba(16,22,90,.96),rgba(10,14,61,.96));border:1px solid #3246a8;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.18)}.pe-drop{min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:42px 28px;color:#f7f8ff}.pe-drop.dragover{border-color:#d2ef24;box-shadow:0 0 0 3px rgba(210,239,36,.12),0 18px 50px rgba(0,0,0,.22)}.pe-drop-icon{width:78px;height:78px;border-radius:22px;background:#0c0f45;border:1px solid #3246a8;display:grid;place-items:center;margin-bottom:18px}.pe-drop-icon i{font-size:34px;color:#d2ef24}.pe-drop h3{font-size:22px;margin:0 0 7px}.pe-drop p{color:#aab4dd;margin-bottom:18px}.pe-drop small{color:#8995c7;margin-top:15px}.pe-workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:start}.pe-editor-card{min-width:0;overflow:hidden;position:relative}.pe-editor-head{min-height:68px;padding:13px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(50,70,168,.65)}.pe-file-info{min-width:0;display:flex;flex-direction:column}.pe-file-info strong{color:#f7f8ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pe-file-info span{font-size:12px;color:#aab4dd}.pe-head-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.pe-small-btn{border:1px solid #3246a8;background:#090f37;color:#f7f8ff;border-radius:9px;padding:8px 10px;font-size:12px;line-height:1;display:inline-flex;align-items:center;gap:6px}.pe-small-btn:hover{border-color:#d2ef24;color:#d2ef24}.pe-small-btn.pe-reset{background:#d2ef24;border-color:#d2ef24;color:#07072b;font-weight:700}.pe-editor{height:min(68vh,720px);min-height:560px;background:#07072b}.pe-loading{position:absolute;inset:68px 0 0;background:rgba(7,7,43,.86);z-index:20;display:flex;align-items:center;justify-content:center;gap:9px;color:#f7f8ff}.pe-output-card{padding:18px;position:sticky;top:84px}.pe-output-head{display:flex;gap:11px;align-items:flex-start;padding-bottom:15px;border-bottom:1px solid rgba(50,70,168,.55)}.pe-output-head>i{color:#d2ef24;font-size:20px}.pe-output-head div{display:flex;flex-direction:column}.pe-output-head strong{color:#f7f8ff}.pe-output-head span{font-size:12px;color:#aab4dd;margin-top:2px}.pe-output-grid{display:grid;gap:15px;margin:17px 0}.pe-output-grid label{font-size:12px;color:#aab4dd;text-transform:uppercase;letter-spacing:.04em;margin-bottom:7px;display:flex;justify-content:space-between}.pe-meta-switch{margin:13px 0 18px;color:#dce2ff;font-size:13px}.pe-note{font-size:11px;line-height:1.45;color:#8e99c6;margin:13px 2px 0;display:flex;gap:7px}.pe-note i{color:#d2ef24}.pe-output-card .focus-select{position:relative}.pe-output-card .focus-select select{appearance:none;-webkit-appearance:none;padding-right:38px;background:#090f37;border-color:#3246a8;color:#f7f8ff}.pe-output-card .focus-select>i{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#d2ef24;pointer-events:none}.pe-output-card .form-range::-webkit-slider-thumb{background:#d2ef24}.pe-output-card .form-range::-moz-range-thumb{background:#d2ef24;border:0}.pe-output-card .form-check-input:checked{background-color:#d2ef24;border-color:#d2ef24}.pe-output-card .form-check-input:checked:focus{box-shadow:0 0 0 .25rem rgba(210,239,36,.15)}
/* Filerobot theme containment */
#pe-editor [class*="SfxModal"],#pe-editor [class*="SfxContainer"],#pe-editor [class*="FIE_"]{font-family:inherit!important}#pe-editor button{font-family:inherit}#pe-editor img{max-width:none}.pe-before-overlay{position:absolute;inset:68px 0 0;z-index:19;background:#07072b;display:grid;place-items:center;padding:18px}.pe-before-overlay img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 14px 46px rgba(0,0,0,.35)}
@media(max-width:1100px){.pe-workspace{grid-template-columns:1fr}.pe-output-card{position:static}.pe-editor{height:650px}}
@media(max-width:700px){.pe-editor-head{align-items:flex-start;flex-direction:column}.pe-head-actions{justify-content:flex-start}.pe-editor{height:560px;min-height:520px}.pe-drop{min-height:360px;padding:28px 18px}.pe-small-btn{padding:8px 9px}.pe-output-card{padding:15px}}
/* FOCUS PHOTOEDIT V6.5.1 FOCUS THEME CLEAN END */


/* FOCUS PHOTOEDIT V6.5.1 — Filerobot visual integration */
#pe-editor {
  --focus-bg:#07072b;
  --focus-bg-soft:#0c0f45;
  --focus-control:#090f37;
  --focus-card:#10165a;
  --focus-border:#3246a8;
  --focus-lime:#d2ef24;
  --focus-text:#f7f8ff;
  --focus-muted:#aab4dd;
}

/* Controls rendered by Filerobot: remove white/default buttons. */
#pe-editor button {
  background:#090f37 !important;
  color:#f7f8ff !important;
  border-color:#3246a8 !important;
  box-shadow:none !important;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease !important;
}
#pe-editor button:hover:not(:disabled) {
  background:#10165a !important;
  color:#d2ef24 !important;
  border-color:#d2ef24 !important;
}
#pe-editor button:focus-visible {
  outline:none !important;
  box-shadow:0 0 0 2px rgba(210,239,36,.28) !important;
  border-color:#d2ef24 !important;
}
#pe-editor button[aria-pressed="true"],
#pe-editor button[aria-selected="true"],
#pe-editor button.active,
#pe-editor [role="tab"][aria-selected="true"] {
  background:#10165a !important;
  color:#d2ef24 !important;
  border-color:#d2ef24 !important;
}
#pe-editor button:disabled {
  background:#090f37 !important;
  color:#6f7bad !important;
  border-color:#202d78 !important;
  opacity:.58 !important;
}

/* Icons: lime when actionable, muted only when disabled. */
#pe-editor button svg,
#pe-editor button i {
  color:#d2ef24 !important;
}
#pe-editor button svg [stroke]:not([stroke="none"]) {
  stroke:#d2ef24 !important;
}
#pe-editor button svg [fill]:not([fill="none"]):not([fill="transparent"]) {
  fill:#d2ef24 !important;
}
#pe-editor button:disabled svg,
#pe-editor button:disabled i {
  color:#6f7bad !important;
}
#pe-editor button:disabled svg [stroke]:not([stroke="none"]) {
  stroke:#6f7bad !important;
}
#pe-editor button:disabled svg [fill]:not([fill="none"]):not([fill="transparent"]) {
  fill:#6f7bad !important;
}

/* Filerobot panels / tool rails stay in the FOCUS dark system. */
#pe-editor [role="tablist"],
#pe-editor [class*="Tabs"],
#pe-editor [class*="Toolbar"],
#pe-editor [class*="Sidebar"],
#pe-editor [class*="Footer"] {
  background:#07072b !important;
  border-color:#3246a8 !important;
}
#pe-editor [role="tab"] {
  background:#090f37 !important;
  color:#f7f8ff !important;
  border-color:#3246a8 !important;
}
#pe-editor [role="tab"]:hover,
#pe-editor [role="tab"][aria-selected="true"] {
  color:#d2ef24 !important;
  border-color:#d2ef24 !important;
}

/* Inputs/sliders inside the editor. */
#pe-editor input[type="range"] { accent-color:#d2ef24 !important; }
#pe-editor input[type="number"],
#pe-editor input[type="text"],
#pe-editor select {
  background:#090f37 !important;
  color:#f7f8ff !important;
  border-color:#3246a8 !important;
}

/* Keep the canvas neutral; only editor chrome receives the brand theme. */
#pe-editor canvas { background:transparent !important; }

/* FOCUS PHOTOEDIT V6.5.2 — responsive Filerobot theme normalization */
/* Some Filerobot mobile controls use wrappers instead of native buttons.
   Normalize those interactive surfaces without altering the canvas/image. */
@media (max-width: 900px) {
  #pe-editor button,
  #pe-editor [role="button"],
  #pe-editor [role="tab"],
  #pe-editor [class*="Button"],
  #pe-editor [class*="button"] {
    background:#090f37 !important;
    color:#f7f8ff !important;
    border-color:#3246a8 !important;
    box-shadow:none !important;
    background-image:none !important;
  }

  #pe-editor button:hover:not(:disabled),
  #pe-editor [role="button"]:hover,
  #pe-editor [role="tab"]:hover,
  #pe-editor [aria-selected="true"],
  #pe-editor [aria-pressed="true"] {
    background:#10165a !important;
    color:#d2ef24 !important;
    border-color:#d2ef24 !important;
    background-image:none !important;
  }

  /* Mobile carousel/overflow arrows and action strips. */
  #pe-editor [class*="Arrow"],
  #pe-editor [class*="arrow"],
  #pe-editor [class*="Navigation"],
  #pe-editor [class*="navigation"],
  #pe-editor [class*="Scroller"],
  #pe-editor [class*="scroller"],
  #pe-editor [class*="ScrollButton"],
  #pe-editor [class*="scrollButton"] {
    background:#090f37 !important;
    color:#d2ef24 !important;
    border-color:#3246a8 !important;
    box-shadow:none !important;
    background-image:none !important;
  }

  /* Numeric/text controls in Finetune/Adjust. */
  #pe-editor input,
  #pe-editor select,
  #pe-editor textarea,
  #pe-editor [class*="Input"],
  #pe-editor [class*="input"] {
    background:#090f37 !important;
    color:#f7f8ff !important;
    border-color:#3246a8 !important;
    box-shadow:none !important;
  }

  #pe-editor input:focus,
  #pe-editor select:focus,
  #pe-editor textarea:focus {
    outline:none !important;
    border-color:#d2ef24 !important;
    box-shadow:0 0 0 2px rgba(210,239,36,.18) !important;
  }

  /* Tool rails / tabs: remove white fallback surfaces on small screens. */
  #pe-editor [role="tablist"],
  #pe-editor [class*="Tabs"],
  #pe-editor [class*="Toolbar"],
  #pe-editor [class*="Sidebar"],
  #pe-editor [class*="Footer"],
  #pe-editor [class*="Controls"],
  #pe-editor [class*="controls"] {
    background-color:#07072b !important;
    border-color:#3246a8 !important;
    background-image:none !important;
  }

  /* All actionable icons stay lime; disabled states remain muted. */
  #pe-editor button:not(:disabled) svg,
  #pe-editor [role="button"] svg,
  #pe-editor [role="tab"] svg,
  #pe-editor button:not(:disabled) i,
  #pe-editor [role="button"] i,
  #pe-editor [role="tab"] i {
    color:#d2ef24 !important;
  }
  #pe-editor button:not(:disabled) svg [stroke]:not([stroke="none"]),
  #pe-editor [role="button"] svg [stroke]:not([stroke="none"]),
  #pe-editor [role="tab"] svg [stroke]:not([stroke="none"]) {
    stroke:#d2ef24 !important;
  }
  #pe-editor button:disabled,
  #pe-editor [aria-disabled="true"] {
    background:#090f37 !important;
    color:#6f7bad !important;
    border-color:#202d78 !important;
    opacity:.58 !important;
    background-image:none !important;
  }
}

/* Narrow phone layout: keep controls legible and avoid oversized white fallback blocks. */
@media (max-width: 600px) {
  .pe-editor { min-height:540px; height:620px; }
  .pe-head-actions { width:100%; gap:8px; }
  .pe-small-btn { min-height:38px; }
  #pe-editor [role="tab"],
  #pe-editor button { min-height:38px; }
}
/* FOCUS PHOTOEDIT V6.5.2 RESPONSIVE THEME CLEAN END */


/* FOCUS PHOTOEDIT V6.5.3 — crop menu + benefit UI normalization */
/* Crop aspect-ratio dropdowns/popovers rendered by the editor must never fall back to white. */
#pe-editor [role="menu"],
#pe-editor [role="listbox"],
#pe-editor [class*="Menu"],
#pe-editor [class*="menu"],
#pe-editor [class*="Dropdown"],
#pe-editor [class*="dropdown"],
#pe-editor [class*="Popover"],
#pe-editor [class*="popover"] {
  background:#090f37 !important;
  color:#f7f8ff !important;
  border-color:#3246a8 !important;
  box-shadow:0 14px 36px rgba(0,0,0,.34) !important;
  background-image:none !important;
}
#pe-editor [role="menuitem"],
#pe-editor [role="option"],
#pe-editor [class*="MenuItem"],
#pe-editor [class*="menuItem"],
#pe-editor [class*="DropdownItem"],
#pe-editor [class*="dropdownItem"] {
  background:#090f37 !important;
  color:#f7f8ff !important;
  border-color:transparent !important;
  background-image:none !important;
}
#pe-editor [role="menuitem"]:hover,
#pe-editor [role="option"]:hover,
#pe-editor [role="option"][aria-selected="true"],
#pe-editor [role="menuitem"][aria-checked="true"],
#pe-editor [class*="MenuItem"]:hover,
#pe-editor [class*="menuItem"]:hover,
#pe-editor [class*="DropdownItem"]:hover,
#pe-editor [class*="dropdownItem"]:hover {
  background:#10165a !important;
  color:#d2ef24 !important;
}
#pe-editor [role="menu"] svg,
#pe-editor [role="listbox"] svg,
#pe-editor [class*="Menu"] svg,
#pe-editor [class*="Dropdown"] svg,
#pe-editor [class*="Popover"] svg {
  color:#d2ef24 !important;
}
#pe-editor [role="menu"] svg [stroke]:not([stroke="none"]),
#pe-editor [role="listbox"] svg [stroke]:not([stroke="none"]),
#pe-editor [class*="Menu"] svg [stroke]:not([stroke="none"]),
#pe-editor [class*="Dropdown"] svg [stroke]:not([stroke="none"]),
#pe-editor [class*="Popover"] svg [stroke]:not([stroke="none"]) {
  stroke:#d2ef24 !important;
}
/* Benefit note: keep it readable and product-focused. */
.pe-note{color:#aab4dd}.pe-note i{color:#d2ef24}
/* FOCUS PHOTOEDIT V6.5.3 CROP BENEFIT CLEAN END */


/* FOCUS PHOTOEDIT V6.5.4 — crop portal theme clean
   Filerobot mounts the crop ratio popover in a body-level portal, outside #pe-editor.
   Scope to this page so the portal inherits the official FOCUS palette. */
.photoedit-body [role="menu"],
.photoedit-body [role="listbox"],
.photoedit-body [class*="Menu"],
.photoedit-body [class*="menu"],
.photoedit-body [class*="Popover"],
.photoedit-body [class*="popover"],
.photoedit-body [class*="Dropdown"],
.photoedit-body [class*="dropdown"] {
  background:#090f37 !important;
  background-color:#090f37 !important;
  background-image:none !important;
  border-color:#3246a8 !important;
  color:#f7f8ff !important;
  box-shadow:0 16px 36px rgba(0,0,0,.34) !important;
}
.photoedit-body [role="menuitem"],
.photoedit-body [role="option"],
.photoedit-body [class*="MenuItem"],
.photoedit-body [class*="menuItem"],
.photoedit-body [class*="Option"],
.photoedit-body [class*="option"] {
  background:#090f37 !important;
  background-color:#090f37 !important;
  background-image:none !important;
  color:#f7f8ff !important;
  border-color:transparent !important;
}
.photoedit-body [role="menuitem"]:hover,
.photoedit-body [role="option"]:hover,
.photoedit-body [role="option"][aria-selected="true"],
.photoedit-body [role="menuitem"][aria-checked="true"],
.photoedit-body [class*="MenuItem"]:hover,
.photoedit-body [class*="menuItem"]:hover,
.photoedit-body [class*="Option"]:hover,
.photoedit-body [class*="option"]:hover {
  background:#10165a !important;
  background-color:#10165a !important;
  color:#d2ef24 !important;
}
.photoedit-body [role="menu"] *,
.photoedit-body [role="listbox"] *,
.photoedit-body [class*="Popover"] *,
.photoedit-body [class*="popover"] * {
  border-color:#3246a8;
}
.photoedit-body [role="menu"] svg,
.photoedit-body [role="listbox"] svg,
.photoedit-body [class*="Popover"] svg,
.photoedit-body [class*="popover"] svg {
  color:#d2ef24 !important;
  fill:currentColor;
}
.photoedit-body [role="menu"] svg [stroke]:not([stroke="none"]),
.photoedit-body [role="listbox"] svg [stroke]:not([stroke="none"]),
.photoedit-body [class*="Popover"] svg [stroke]:not([stroke="none"]),
.photoedit-body [class*="popover"] svg [stroke]:not([stroke="none"]) {
  stroke:#d2ef24 !important;
}
.photoedit-body [role="menu"] svg [fill]:not([fill="none"]),
.photoedit-body [role="listbox"] svg [fill]:not([fill="none"]),
.photoedit-body [class*="Popover"] svg [fill]:not([fill="none"]),
.photoedit-body [class*="popover"] svg [fill]:not([fill="none"]) {
  fill:#d2ef24 !important;
}
/* Explicitly neutralize white inline selections used by the crop preset list. */
.photoedit-body [role="option"][style*="background"],
.photoedit-body [role="menuitem"][style*="background"],
.photoedit-body [class*="MenuItem"][style*="background"],
.photoedit-body [class*="menuItem"][style*="background"] {
  background:#090f37 !important;
  color:#f7f8ff !important;
}
.photoedit-body [role="option"][aria-selected="true"][style*="background"],
.photoedit-body [role="menuitem"][aria-checked="true"][style*="background"] {
  background:#10165a !important;
  color:#d2ef24 !important;
}
/* FOCUS PHOTOEDIT V6.5.4 CROP PORTAL THEME CLEAN END */

/* FOCUS PHOTOEDIT V6.5.5 — lime controls / high-contrast menus */
:root{
  --focus-lime:#d2ef24;
  --focus-bg:#07072b;
  --focus-bg-soft:#090f37;
  --focus-card:#10165a;
  --focus-border:#3246a8;
}

/* Crop ratio portal: all labels, ratios and icons use the FOCUS lime. */
.photoedit-body [role="menu"],
.photoedit-body [role="listbox"],
.photoedit-body [class*="Popover"],
.photoedit-body [class*="popover"],
.photoedit-body [class*="Dropdown"],
.photoedit-body [class*="dropdown"]{
  background:var(--focus-bg-soft)!important;
  color:var(--focus-lime)!important;
  border-color:var(--focus-border)!important;
}
.photoedit-body [role="menu"] *,
.photoedit-body [role="listbox"] *,
.photoedit-body [class*="Popover"] *,
.photoedit-body [class*="popover"] *,
.photoedit-body [class*="Dropdown"] *,
.photoedit-body [class*="dropdown"] *{
  color:var(--focus-lime)!important;
}
.photoedit-body [role="menuitem"],
.photoedit-body [role="option"],
.photoedit-body [class*="MenuItem"],
.photoedit-body [class*="menuItem"],
.photoedit-body [class*="Option"],
.photoedit-body [class*="option"]{
  background:var(--focus-bg-soft)!important;
  color:var(--focus-lime)!important;
  opacity:1!important;
}
.photoedit-body [role="menuitem"] *,
.photoedit-body [role="option"] *,
.photoedit-body [class*="MenuItem"] *,
.photoedit-body [class*="menuItem"] *,
.photoedit-body [class*="Option"] *,
.photoedit-body [class*="option"] *{
  color:var(--focus-lime)!important;
  opacity:1!important;
}
.photoedit-body [role="menuitem"]:hover,
.photoedit-body [role="option"]:hover,
.photoedit-body [role="option"][aria-selected="true"],
.photoedit-body [role="menuitem"][aria-checked="true"],
.photoedit-body [class*="MenuItem"]:hover,
.photoedit-body [class*="menuItem"]:hover,
.photoedit-body [class*="Option"]:hover,
.photoedit-body [class*="option"]:hover{
  background:var(--focus-card)!important;
  color:var(--focus-lime)!important;
}

/* Filerobot lower geometry toolbar: Crop / Rotate / Flip X / Flip Y. */
.photoedit-body #pe-editor [role="toolbar"] button,
.photoedit-body #pe-editor [class*="Toolbar"] button,
.photoedit-body #pe-editor [class*="toolbar"] button,
.photoedit-body #pe-editor [class*="Controls"] button,
.photoedit-body #pe-editor [class*="controls"] button,
.photoedit-body #pe-editor [role="toolbar"] [role="button"],
.photoedit-body #pe-editor [class*="Toolbar"] [role="button"],
.photoedit-body #pe-editor [class*="toolbar"] [role="button"]{
  color:var(--focus-lime)!important;
  background-color:transparent!important;
  border-color:transparent!important;
}
.photoedit-body #pe-editor [role="toolbar"] button *,
.photoedit-body #pe-editor [class*="Toolbar"] button *,
.photoedit-body #pe-editor [class*="toolbar"] button *,
.photoedit-body #pe-editor [class*="Controls"] button *,
.photoedit-body #pe-editor [class*="controls"] button *{
  color:var(--focus-lime)!important;
}
.photoedit-body #pe-editor [role="toolbar"] svg,
.photoedit-body #pe-editor [class*="Toolbar"] svg,
.photoedit-body #pe-editor [class*="toolbar"] svg,
.photoedit-body #pe-editor [class*="Controls"] svg,
.photoedit-body #pe-editor [class*="controls"] svg{
  color:var(--focus-lime)!important;
}
.photoedit-body #pe-editor [role="toolbar"] svg [stroke]:not([stroke="none"]),
.photoedit-body #pe-editor [class*="Toolbar"] svg [stroke]:not([stroke="none"]),
.photoedit-body #pe-editor [class*="toolbar"] svg [stroke]:not([stroke="none"]),
.photoedit-body #pe-editor [class*="Controls"] svg [stroke]:not([stroke="none"]),
.photoedit-body #pe-editor [class*="controls"] svg [stroke]:not([stroke="none"]){
  stroke:var(--focus-lime)!important;
}

/* Rotation ruler / degree readout: higher contrast. */
.photoedit-body #pe-editor [class*="Rotate"],
.photoedit-body #pe-editor [class*="rotate"],
.photoedit-body #pe-editor [class*="Rotation"],
.photoedit-body #pe-editor [class*="rotation"]{
  color:var(--focus-lime)!important;
}
.photoedit-body #pe-editor [class*="Rotate"] *,
.photoedit-body #pe-editor [class*="rotate"] *,
.photoedit-body #pe-editor [class*="Rotation"] *,
.photoedit-body #pe-editor [class*="rotation"] *{
  color:var(--focus-lime)!important;
}

/* Disabled geometry actions remain visibly lime but clearly inactive. */
.photoedit-body #pe-editor button:disabled,
.photoedit-body #pe-editor [aria-disabled="true"]{
  color:var(--focus-lime)!important;
  opacity:.42!important;
}
.photoedit-body #pe-editor button:disabled *,
.photoedit-body #pe-editor [aria-disabled="true"] *{
  color:var(--focus-lime)!important;
}

@media (max-width:900px){
  .photoedit-body [role="menu"],
  .photoedit-body [role="listbox"],
  .photoedit-body [class*="Popover"],
  .photoedit-body [class*="popover"],
  .photoedit-body [class*="Dropdown"],
  .photoedit-body [class*="dropdown"]{
    background:var(--focus-bg-soft)!important;
  }
  .photoedit-body #pe-editor [role="toolbar"] button,
  .photoedit-body #pe-editor [class*="Toolbar"] button,
  .photoedit-body #pe-editor [class*="toolbar"] button{
    color:var(--focus-lime)!important;
  }
}
/* FOCUS PHOTOEDIT V6.5.5 LIME CONTROLS CLEAN END */
