.local-image-editor{position:fixed;top:0;right:0;bottom:0;left:0;z-index:120;display:grid;place-items:center;padding:18px;color:var(--system-text-primary, #1d1d1f);background:#140f1273}.local-image-editor__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;min-height:44px;border:0;background:transparent}.local-image-editor__sheet{position:relative;z-index:1;width:min(100%,600px);max-height:min(94dvh,840px);display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--system-surface-border, rgba(0, 0, 0, .12));border-radius:var(--system-overlay-radius, 20px);background:var(--system-surface, #fff);box-shadow:0 22px 60px #0000004d}.local-image-editor__header,.local-image-editor__footer{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:14px 18px;background:var(--system-surface, #fff)}.local-image-editor__header{justify-content:space-between;border-bottom:1px solid var(--system-surface-border, rgba(0, 0, 0, .12))}.local-image-editor__header h2{margin:2px 0 0;font-size:calc(19px * var(--os-font-scale, 1));line-height:1.25}.local-image-editor__eyebrow{margin:0;color:var(--system-text-tertiary, #737373);font-size:calc(11px * var(--os-font-scale, 1));font-weight:700;letter-spacing:.04em}.local-image-editor__icon-button{width:44px;height:44px;display:grid;place-items:center;border:0;color:var(--system-accent, #0a84ff);background:transparent}.local-image-editor__body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px}.local-image-editor__preview-shell{display:grid;place-items:center}.local-image-editor__preview{position:relative;width:min(100%,470px);aspect-ratio:var(--local-image-ratio, 1 / 1);overflow:hidden;isolation:isolate;border:1px solid var(--system-surface-border, rgba(0, 0, 0, .14));border-radius:16px;background-color:#e9e9ef;background-image:linear-gradient(45deg,#d7d7df 25%,transparent 25%),linear-gradient(-45deg,#d7d7df 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d7d7df 75%),linear-gradient(-45deg,transparent 75%,#d7d7df 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px;cursor:default;touch-action:none}.local-image-editor__background-frame{position:absolute;z-index:0;touch-action:none;-webkit-user-select:none;user-select:none;cursor:move;transform-origin:center}.local-image-editor__background{display:block;width:100%;height:100%;max-width:none;object-fit:fill;-webkit-user-select:none;user-select:none;pointer-events:none}.local-image-editor__foreground-frame{position:absolute;z-index:1;transform-origin:center;touch-action:none;-webkit-user-select:none;user-select:none;cursor:move}.local-image-editor__foreground-frame:active{cursor:grabbing}.local-image-editor__foreground{display:block;width:100%;height:100%;object-fit:contain}.local-image-editor__selection-border{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;box-sizing:border-box;border:1.5px solid var(--system-accent, #0a84ff);pointer-events:none}.local-image-editor__transform-handle{position:absolute;z-index:4;width:22px;height:22px;margin:-11px;padding:0;border:2px solid #fff;border-radius:50%;background:var(--system-accent, #0a84ff);box-shadow:0 1px 5px #00000047;cursor:nwse-resize;touch-action:none}.local-image-editor__transform-handle:before{content:"";position:absolute;top:-10px;right:-10px;bottom:-10px;left:-10px}.local-image-editor__transform-handle--nw{top:7px;left:7px;cursor:nwse-resize}.local-image-editor__transform-handle--ne{top:7px;right:7px;cursor:nesw-resize}.local-image-editor__transform-handle--sw{bottom:7px;left:7px;cursor:nesw-resize}.local-image-editor__transform-handle--se{right:7px;bottom:7px;cursor:nwse-resize}.local-image-editor__rotation-stem{position:absolute;top:0;left:50%;z-index:2;width:1px;height:28px;background:var(--system-accent, #0a84ff);transform:translate(-50%);pointer-events:none}.local-image-editor__rotation-handle{position:absolute;top:28px;left:50%;z-index:4;display:grid;width:24px;height:24px;margin:-12px 0 0 -12px;padding:0;place-items:center;border:2px solid #fff;border-radius:50%;background:var(--system-accent, #0a84ff);box-shadow:0 1px 5px #00000047;color:#fff;cursor:grab;touch-action:none}.local-image-editor__rotation-handle:active{cursor:grabbing}.local-image-editor__frame-name-button{position:absolute;right:50%;bottom:4px;z-index:5;display:grid;width:24px;height:24px;margin-right:-12px;padding:0;place-items:center;border:2px solid #fff;border-radius:50%;background:var(--system-accent, #0a84ff);box-shadow:0 1px 5px #00000047;color:#fff;cursor:pointer}.local-image-editor__frame-name-button:active{transform:scale(.94)}.local-image-editor__empty{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:grid;place-content:center;justify-items:center;gap:8px;color:var(--system-text-secondary, #555);font-size:calc(13px * var(--os-font-scale, 1))}.local-image-editor__crop-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:8;pointer-events:none}.local-image-editor__crop-shade{position:absolute;z-index:0;background:#0000007a;pointer-events:none}.local-image-editor__crop-shade--top{inset:0 0 auto;height:var(--crop-top, 0%)}.local-image-editor__crop-shade--bottom{inset:auto 0 0;height:var(--crop-bottom, 0%)}.local-image-editor__crop-shade--left{top:var(--crop-top, 0%);bottom:var(--crop-bottom, 0%);left:0;width:var(--crop-left, 0%)}.local-image-editor__crop-shade--right{top:var(--crop-top, 0%);right:0;bottom:var(--crop-bottom, 0%);width:var(--crop-right, 0%)}.local-image-editor__crop-rect{position:absolute;z-index:1;box-sizing:border-box;border:1.5px solid #fff;box-shadow:0 0 0 1px #00000040;pointer-events:auto;cursor:move;touch-action:none}.local-image-editor__crop-grid{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to right,transparent 32.9%,rgb(255 255 255 / 42%) 33%,transparent 33.5%,transparent 66.2%,rgb(255 255 255 / 42%) 66.5%,transparent 67%),linear-gradient(to bottom,transparent 32.9%,rgb(255 255 255 / 42%) 33%,transparent 33.5%,transparent 66.2%,rgb(255 255 255 / 42%) 66.5%,transparent 67%);pointer-events:none}.local-image-editor__crop-handle{position:absolute;z-index:2;width:16px;height:16px;margin:-8px;padding:0;border:2px solid #fff;border-radius:4px;background:var(--system-accent, #0a84ff);box-shadow:0 1px 4px #00000059;pointer-events:auto;touch-action:none}.local-image-editor__crop-handle:before{content:"";position:absolute;top:-12px;right:-12px;bottom:-12px;left:-12px}.local-image-editor__crop-handle--n{top:0;left:50%;cursor:ns-resize}.local-image-editor__crop-handle--s{bottom:0;left:50%;cursor:ns-resize}.local-image-editor__crop-handle--e{top:50%;right:0;cursor:ew-resize}.local-image-editor__crop-handle--w{top:50%;left:0;cursor:ew-resize}.local-image-editor__crop-handle--nw{top:0;left:0;cursor:nwse-resize}.local-image-editor__crop-handle--ne{top:0;right:0;cursor:nesw-resize}.local-image-editor__crop-handle--sw{bottom:0;left:0;cursor:nesw-resize}.local-image-editor__crop-handle--se{right:0;bottom:0;cursor:nwse-resize}.local-image-editor__crop-toolbar{display:flex;align-items:center;gap:10px;color:var(--system-text-secondary, #555);font-size:calc(12px * var(--os-font-scale, 1))}.local-image-editor__crop-toolbar strong{color:var(--system-text-primary, #1d1d1f)}.local-image-editor__crop-toolbar span{color:var(--system-text-tertiary, #737373);font-variant-numeric:tabular-nums}.local-image-editor__text-button{margin-left:auto;border:0;color:var(--system-accent, #0a84ff);background:transparent;font:inherit;font-weight:700;cursor:pointer}.local-image-editor__text-button+.local-image-editor__text-button{margin-left:0}.local-image-editor__upload-grid,.local-image-editor__action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.local-image-editor__upload-button,.local-image-editor__secondary,.local-image-editor__primary{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--system-surface-border, rgba(0, 0, 0, .14));border-radius:13px;padding:0 13px;font:inherit;font-weight:700;cursor:pointer}.local-image-editor__upload-button{color:var(--system-text-primary, #1d1d1f);background:var(--system-surface-secondary, #f4f4f8)}.local-image-editor__upload-button input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.local-image-editor__file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;opacity:0}.local-image-editor__section{min-width:0;margin:18px 0 0;padding:0;border:0}.local-image-editor__section legend{margin-bottom:8px;color:var(--system-text-secondary, #555);font-size:calc(13px * var(--os-font-scale, 1));font-weight:700}.local-image-editor__segmented{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:var(--system-surface-secondary, #f1f1f5)}.local-image-editor__segmented button{min-height:36px;border:0;border-radius:10px;color:var(--system-text-secondary, #555);background:transparent;font:inherit;font-size:calc(12px * var(--os-font-scale, 1));font-weight:700;cursor:pointer}.local-image-editor__segmented button.is-selected{color:var(--system-accent-ink, #fff);background:var(--system-accent, #0a84ff)}.local-image-editor__secondary{color:var(--system-text-primary, #1d1d1f);background:var(--system-surface-secondary, #f4f4f8)}.local-image-editor__secondary.is-primary{border-color:var(--system-accent, #0a84ff);color:var(--system-accent-ink, #fff);background:var(--system-accent, #0a84ff)}.local-image-editor__primary{flex:1;color:var(--system-accent-ink, #fff);border-color:var(--system-accent, #0a84ff);background:var(--system-accent, #0a84ff)}.local-image-editor__footer{justify-content:flex-end;border-top:1px solid var(--system-surface-border, rgba(0, 0, 0, .12))}.local-image-editor__footer .local-image-editor__secondary{min-width:130px}.local-image-editor__footer .local-image-editor__primary{min-width:130px;flex:0 1 auto}.local-image-editor__checkbox{min-height:44px;display:inline-flex;align-items:center;gap:8px;margin-top:8px;color:var(--system-text-secondary, #555);font-size:calc(13px * var(--os-font-scale, 1))}.local-image-editor__checkbox input{width:18px;height:18px;accent-color:var(--system-accent, #0a84ff)}.local-image-editor__hint{margin:8px 0 0;color:var(--system-text-tertiary, #737373);font-size:calc(11px * var(--os-font-scale, 1));line-height:1.45}.local-image-editor__error{margin:12px 0 0;color:var(--system-danger, #b4233f);font-size:calc(13px * var(--os-font-scale, 1));line-height:1.45}.local-image-editor button:focus-visible,.local-image-editor input:focus-visible{outline:3px solid color-mix(in srgb,var(--system-accent, #0a84ff) 35%,transparent);outline-offset:2px}.local-image-editor button:disabled,.local-image-editor label:has(input:disabled){cursor:not-allowed;opacity:.48}.local-image-editor__blocking{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:grid;place-items:center;padding:20px;background:#0a0a127a;cursor:wait}.local-image-editor__progress-card{display:grid;justify-items:center;gap:8px;min-width:210px;padding:22px 24px;border:1px solid var(--system-surface-border, rgba(255, 255, 255, .18));border-radius:18px;color:var(--system-text-primary, #1d1d1f);background:var(--system-surface, #fff);box-shadow:0 14px 36px #00000038;text-align:center}.local-image-editor__progress-card span:last-child{color:var(--system-text-secondary, #555);font-size:calc(12px * var(--os-font-scale, 1))}.local-image-editor__spinner{width:24px;height:24px;border:3px solid var(--system-surface-border, #ddd);border-top-color:var(--system-accent, #0a84ff);border-radius:50%;animation:local-image-editor-spin .8s linear infinite}.local-image-editor--inline{position:relative;inset:auto;z-index:auto;display:flex;width:100%;height:100%;min-height:0;place-items:stretch;padding:0;background:transparent}.local-image-editor--inline .local-image-editor__sheet{width:100%;height:100%;max-height:none;border:0;border-radius:0;background:transparent;box-shadow:none}.local-image-editor--inline .local-image-editor__body{display:flex;flex:1;min-height:0;flex-direction:column;padding:0;overflow-y:auto}.local-image-editor--inline .local-image-editor__preview-shell{display:flex;min-height:0;flex:1 1 auto;align-items:center;justify-content:center;padding:.15rem .25rem 0}.local-image-editor--inline .local-image-editor__preview{width:auto;height:min(100%,78dvh);max-width:calc(100% - .5rem);max-height:100%}.local-image-editor--inline .local-image-editor__upload-grid{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.local-image-editor--inline .local-image-editor__footer--inline{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:.55rem;padding:.6rem .75rem max(.7rem,var(--safe-bottom, 0px));border-top:1px solid var(--offline-edge, var(--system-surface-border, rgba(0, 0, 0, .12)));background:color-mix(in srgb,var(--offline-dusk, #11101a) 96%,transparent);color:var(--offline-ink, var(--system-text-primary, #1d1d1f))}.local-image-editor--inline .local-image-editor__inline-panel{width:100%;max-height:min(10rem,19dvh);overflow-y:auto;padding:.25rem 0;border:0;border-radius:0;background:transparent;overscroll-behavior:contain}.local-image-editor--inline .local-image-editor__inline-panel .local-image-editor__section,.local-image-editor--inline .local-image-editor__inline-panel .local-image-editor__action-row,.local-image-editor--inline .local-image-editor__inline-panel .local-image-editor__hint,.local-image-editor--inline .local-image-editor__inline-panel .local-image-editor__checkbox,.local-image-editor--inline .local-image-editor__inline-panel .local-image-editor__error{margin-right:0;margin-left:0}.local-image-editor--inline .local-image-editor__inline-panel .local-image-editor__section:first-child{margin-top:0}.local-image-editor--inline .local-image-editor__inline-panel .local-image-editor__action-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;margin-top:.25rem}.local-image-editor--inline .local-image-editor__inline-panel .local-image-editor__action-row>*{min-width:0}.local-image-editor--inline .local-image-editor__inline-panel .local-image-editor__action-row .local-image-editor__secondary{min-height:2.25rem;gap:.18rem;padding:0 .18rem;font-size:calc(.58rem * var(--os-font-scale, 1))}.local-image-editor--inline .local-image-editor__inline-import-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}.local-image-editor--inline .local-image-editor__inline-import-button{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto;column-gap:.35rem;align-items:center;min-height:2.25rem;padding:.3rem .45rem;border:1px solid var(--offline-edge, var(--system-surface-border, rgba(0, 0, 0, .14)));border-radius:.75rem;color:var(--offline-ink, var(--system-text-primary, #f8f4fb));background:#ffffff0a;cursor:pointer}.local-image-editor--inline .local-image-editor__inline-import-button svg{grid-row:1 / -1;color:var(--offline-glow, var(--system-accent, #c084fc))}.local-image-editor--inline .local-image-editor__inline-import-button span{font-size:calc(.66rem * var(--os-font-scale, 1));font-weight:700}.local-image-editor--inline .local-image-editor__inline-import-button small{display:none}.local-image-editor--inline .local-image-editor__inline-toolbar{display:grid;grid-template-columns:2.35rem repeat(3,minmax(0,1fr)) 2.35rem;align-items:stretch;gap:.2rem;padding-top:.3rem;border-top:1px solid var(--offline-edge, var(--system-surface-border, rgba(0, 0, 0, .12)))}.local-image-editor--inline .local-image-editor__inline-nav{display:contents}.local-image-editor--inline .local-image-editor__inline-nav button{position:relative;display:flex;min-height:2.25rem;flex-direction:column;align-items:center;justify-content:center;gap:0;border:0;border-radius:.7rem;color:var(--offline-whisper, var(--system-text-secondary, #f8f4fb));background:transparent;font:inherit;font-size:calc(.62rem * var(--os-font-scale, 1));font-weight:700;cursor:pointer}.local-image-editor--inline .local-image-editor__inline-nav button small{max-width:100%;overflow:hidden;color:var(--offline-hush, var(--system-text-tertiary, #737373));font-size:calc(.62rem * var(--os-font-scale, 1));font-weight:500;text-overflow:ellipsis;white-space:nowrap}.local-image-editor--inline .local-image-editor__inline-nav button.is-active{color:var(--offline-glow, var(--system-accent, #c084fc));background:transparent}.local-image-editor--inline .local-image-editor__inline-nav button.is-active:after{position:absolute;right:22%;bottom:0;left:22%;height:2px;border-radius:999px;background:var(--offline-glow, var(--system-accent, #c084fc));content:""}.local-image-editor--inline .local-image-editor__inline-nav button:focus-visible{outline:2px solid var(--offline-glow, var(--system-accent, #c084fc));outline-offset:-2px}.local-image-editor--inline .local-image-editor__inline-icon-button{display:grid;min-width:0;min-height:2.25rem;padding:0;place-items:center;border:0;border-radius:.7rem;background:transparent;color:var(--offline-whisper, var(--system-text-secondary, #555));font:inherit}.local-image-editor--inline .local-image-editor__inline-icon-button:hover,.local-image-editor--inline .local-image-editor__inline-icon-button:focus-visible{background:var(--offline-glow-soft, rgb(192 132 252 / 16%));color:var(--offline-glow, var(--system-accent, #0a84ff))}.local-image-editor--inline .local-image-editor__inline-icon-button.is-confirm{color:var(--offline-glow, var(--system-accent, #0a84ff))}.local-image-editor--inline .local-image-editor__inline-icon-button:disabled{opacity:.35}.local-image-editor--inline .local-image-editor__section legend{color:var(--offline-whisper, var(--system-text-secondary, #555))}.local-image-editor--inline .local-image-editor__segmented{gap:2px;padding:2px;background:#ffffff12}.local-image-editor--inline .local-image-editor__segmented button{min-height:2.05rem;color:var(--offline-whisper, var(--system-text-secondary, #555));font-size:calc(.62rem * var(--os-font-scale, 1))}.local-image-editor--inline .local-image-editor__segmented button.is-selected{color:#160d20;background:var(--offline-glow, var(--system-accent, #0a84ff))}.local-image-editor--inline .local-image-editor__secondary{min-height:2.25rem;padding:0 .3rem;gap:.25rem;font-size:calc(.62rem * var(--os-font-scale, 1));border-color:var(--offline-edge, var(--system-surface-border, rgba(0, 0, 0, .14)));background:#ffffff0f;color:var(--offline-ink, var(--system-text-primary, #1d1d1f));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.local-image-editor--inline .local-image-editor__secondary.is-primary{border-color:var(--offline-glow);background:var(--offline-glow);color:#160d20}.local-image-editor--inline .local-image-editor__hint,.local-image-editor--inline .local-image-editor__checkbox{margin-top:.25rem;font-size:calc(.58rem * var(--os-font-scale, 1));color:var(--offline-whisper, var(--system-text-secondary, #555))}.local-image-editor--inline .local-image-editor__checkbox{min-height:2.25rem;justify-content:center;gap:.25rem;margin-top:0;padding:.2rem .35rem;border:1px solid var(--offline-edge, var(--system-surface-border, rgba(0, 0, 0, .14)));border-radius:.6rem;background:#ffffff0a}.local-image-editor--inline .local-image-editor__checkbox input{width:15px;height:15px}.local-image-editor--inline .local-image-editor__section legend{margin-bottom:.25rem;font-size:calc(.62rem * var(--os-font-scale, 1))}.local-image-editor--inline .local-image-editor__section,.local-image-editor--inline .local-image-editor__action-row,.local-image-editor--inline .local-image-editor__hint,.local-image-editor--inline .local-image-editor__checkbox,.local-image-editor--inline .local-image-editor__error{margin-right:0;margin-left:0}@keyframes local-image-editor-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.local-image-editor__spinner{animation:none}}@media (max-width: 460px){.local-image-editor{padding:0}.local-image-editor__sheet{width:100%;max-height:100dvh;border-radius:0}.local-image-editor__body{padding:14px 16px}.local-image-editor__footer{padding-bottom:calc(14px + var(--safe-bottom, 0px))}}
