/* AxioraX: Adjust, the free photo editor inside AX Canvas, Edit My Photo (Update 110). Every rule is scoped to .phx,
   so no other screen changes. Theme colours only, light mode, phone first. */
.phx .phx-page{padding-bottom:calc(var(--sab) + 110px)}
.phx .phx-head{margin-top:4px}
.phx .phx-stage{position:relative;display:flex;align-items:center;justify-content:center;margin-top:14px;padding:10px;border-radius:22px;background:var(--row);min-height:200px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.phx .phx-stage canvas{display:block;max-width:100%;max-height:46vh;width:auto;height:auto;border-radius:14px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.phx .phx-orig{position:absolute;top:18px;left:50%;transform:translateX(-50%);padding:5px 12px;border-radius:99px;background:rgba(12,12,12,.72);color:#fff;font-size:12.5px;font-weight:700;opacity:0;transition:opacity .15s}
.phx .phx-stage.hold .phx-orig{opacity:1}
.phx .phx-tabs{display:flex;gap:6px;overflow-x:auto;margin:14px -4px 0;padding:2px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.phx .phx-tabs::-webkit-scrollbar{display:none}
.phx .phx-tab{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:60px;min-height:60px;padding:8px 6px;border:0;border-radius:16px;background:transparent;color:var(--sub);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.phx .phx-tab.on{background:var(--green-soft);color:var(--green)}
.phx .phx-panel{margin-top:10px;padding:14px 16px;border-radius:20px;background:#fff;border:1px solid var(--line);min-height:96px}
.phx .phx-sl{display:block;margin:2px 0 8px}
.phx .phx-sll{display:flex;align-items:center;justify-content:space-between;gap:10px}
.phx .phx-sll b{font-size:14.5px;font-weight:600;color:var(--ink)}
.phx .phx-sll i{font-style:normal;min-width:44px;text-align:end;font-size:13.5px;font-weight:700;color:var(--gold-ink);cursor:pointer}
.phx input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:34px;margin:2px 0 0;padding:0;background:transparent;cursor:pointer;touch-action:pan-y}
.phx input[type=range]:focus{outline:none}
.phx input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:3px;background:linear-gradient(to right,var(--green) calc(var(--p,0) * 100%),#D9DED9 calc(var(--p,0) * 100%))}
html[dir=rtl] .phx input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to left,var(--green) calc(var(--p,0) * 100%),#D9DED9 calc(var(--p,0) * 100%))}
.phx input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:26px;height:26px;margin-top:-10px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.24),inset 0 0 0 7px var(--green)}
.phx input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px rgba(19,83,51,.18),inset 0 0 0 7px var(--green)}
.phx input[type=range]::-moz-range-track{height:6px;border-radius:3px;background:#D9DED9}
.phx input[type=range]::-moz-range-progress{height:6px;border-radius:3px;background:var(--green)}
.phx input[type=range]::-moz-range-thumb{width:26px;height:26px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.24),inset 0 0 0 7px var(--green)}
.phx .phx-auto{display:flex;align-items:center;gap:12px;width:100%;padding:4px 0;border:0;background:transparent;color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.phx .phx-auto > svg{flex:none;color:var(--gold-ink)}
.phx .phx-auto > span{flex:1;min-width:0}
.phx .phx-auto b{display:block;font-size:15.5px;line-height:21px}
.phx .phx-auto small{display:block;font-size:13px;line-height:18px;color:var(--sub);margin-top:2px}
.phx .phx-auto .sw{flex:none}
.phx .phx-fl{display:flex;gap:10px;overflow-x:auto;margin:0 -4px;padding:2px 4px 6px;scrollbar-width:none}
.phx .phx-fl::-webkit-scrollbar{display:none}
.phx .phx-f{flex:none;display:flex;flex-direction:column;align-items:center;gap:6px;width:78px;padding:0;border:0;background:transparent;color:var(--sub);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.phx .phx-f canvas{width:72px;height:72px;border-radius:14px;border:2px solid transparent;background:var(--row)}
.phx .phx-f.on{color:var(--green)}
.phx .phx-f.on canvas{border-color:var(--green)}
.phx .phx-lab{font-size:13.5px;line-height:18px;font-weight:700;color:var(--sub);margin:14px 2px 8px}
.phx .phx-dot{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.18);flex:none}
.phx .phx-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.phx .phx-row > button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}
.phx .phx-foot{margin-top:16px}
.phx .cvs-ta{margin-top:0}
.phx-done{margin-top:12px;border-radius:16px;background:var(--row);overflow:hidden;display:flex;justify-content:center}
.phx-done img{display:block;max-width:100%;max-height:38vh;object-fit:contain}
.phx-db{width:100%;margin-top:10px;display:flex;align-items:center;justify-content:center;gap:8px}
