/* /free-photo-editor (2026-11-26): the free browser editor and the one free pro edit. js/photo-editor.js. */
.pe-section { padding-top: 28px; }
.pe-drop { border: 2px dashed var(--line); border-radius: 18px; padding: 40px 20px; text-align: center; display: grid; gap: 14px; justify-items: center; background: var(--card); }
.pe-drop.on { border-color: var(--brand); background: var(--surface); }
.pe-pick { display: grid; gap: 6px; justify-items: center; cursor: pointer; padding: 18px 28px; border-radius: 14px; background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.pe-pick b { font-size: 19px; }
.pe-pick small { opacity: .85; }
.pe-pick-ico { font-size: 34px; line-height: 1; }
.pe-work { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.pe-canvas-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #0b1220; box-shadow: var(--shadow-lg); touch-action: pan-y; }
.pe-canvas-wrap canvas, .pe-canvas-wrap > img { display: block; width: 100%; height: auto; }
.pe-split { position: absolute; left: 0; right: 0; bottom: 10px; width: calc(100% - 24px); margin: 0 12px; opacity: .9; }
.pe-tag { position: absolute; top: 10px; background: rgba(11, 18, 32, .78); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.pe-tag-l { left: 10px; } .pe-tag-r { right: 10px; }
.pe-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 12.5% 12.5%; }
.pe-hint { font-size: 13.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.pe-tools { display: grid; gap: 14px; position: sticky; top: 90px; }
.pe-auto { width: 100%; }
.pe-dl { width: 100%; background: #b45309; border-color: #b45309; }
.pe-sliders { display: grid; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.pe-sl { display: grid; gap: 2px; font-size: 14px; font-weight: 700; }
.pe-sl span { display: flex; justify-content: space-between; }
.pe-sl output { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.pe-sl input { width: 100%; }
.pe-row { display: flex; gap: 8px; }
.pe-row .btn { flex: 1; }
.pe-small { font-size: 14px; color: var(--muted); margin: 0; }
.pe-pro { display: grid; grid-template-columns: minmax(0, 760px); gap: 32px; align-items: start; }
.pe-pro.has-result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pe-pro-box { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 12px; justify-items: start; }
.pe-form { display: grid; gap: 12px; width: 100%; }
.pe-form p { margin: 0; }
.pe-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.pe-form input { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.pe-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pe-kind { display: flex; gap: 6px; }
.pe-kind button { border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }
.pe-kind button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pe-pro-before { position: absolute; inset: 0; }
.pe-pro-before img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pe-pro-result .btn-row { margin-top: 14px; }
@media (max-width: 900px) {
  .pe-work, .pe-pro { grid-template-columns: 1fr; }
  .pe-tools { position: static; }
  .pe-two { grid-template-columns: 1fr; }
}
