/* Image Rotate & Flip | scoped, theme-native and responsive */
[data-tinyapps-image-rotate]{width:100%;min-width:0;max-width:100%;gap:1rem!important;color:var(--tiny-form-ink)}
[data-tinyapps-image-rotate] [hidden]{display:none!important}
[data-tinyapps-image-rotate] .image-rotate-intro{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;min-width:0}
[data-tinyapps-image-rotate] .image-rotate-brand{flex:0 0 46px;height:46px;display:grid;place-items:center;border-radius:14px;color:#635bff;background:color-mix(in srgb,#635bff 10%,var(--tiny-form-surface))}
[data-tinyapps-image-rotate] .image-rotate-brand svg{width:22px;height:22px}
[data-tinyapps-image-rotate] .image-rotate-intro>div{flex:1 1 220px;min-width:0}
[data-tinyapps-image-rotate] .image-rotate-intro strong{display:block;font-size:.96rem;line-height:1.35}
[data-tinyapps-image-rotate] .image-rotate-intro p{margin:.16rem 0 0;line-height:1.5}
[data-tinyapps-image-rotate] .image-rotate-private{display:inline-flex;align-items:center;gap:.3rem;font-size:.69rem;font-weight:750;padding:.34rem .54rem;border:1px solid var(--tiny-form-border);border-radius:99px;color:var(--tiny-form-muted)}
[data-tinyapps-image-rotate] .image-rotate-private svg{height:14px;width:14px}
[data-tinyapps-image-rotate] .image-rotate-panel{width:100%;min-width:0;display:flex;flex-direction:column;gap:.8rem;padding:clamp(.8rem,2.4vw,1.2rem);border:1px solid var(--tiny-form-border);border-radius:17px;background:var(--tiny-form-surface)}
[data-tinyapps-image-rotate] .image-rotate-heading{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;min-width:0}
[data-tinyapps-image-rotate] .image-rotate-heading h3{margin:0;font-size:.92rem;font-weight:850;line-height:1.4}
[data-tinyapps-image-rotate] .image-rotate-heading>span{font-size:.71rem;color:var(--tiny-form-muted);font-weight:650}
[data-tinyapps-image-rotate] .image-rotate-filename{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-tinyapps-image-rotate] .image-rotate-drop{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.48rem;text-align:center;min-height:176px;border:2px dashed var(--tiny-form-border);border-radius:14px;padding:1rem .55rem;background:var(--tiny-form-surface);cursor:pointer;transition:border-color .15s,background .15s}
[data-tinyapps-image-rotate] .image-rotate-drop:hover,[data-tinyapps-image-rotate] .image-rotate-drop.is-over{border-color:#635bff;background:color-mix(in srgb,#635bff 4%,var(--tiny-form-surface))}
[data-tinyapps-image-rotate] .image-rotate-drop-icon{display:grid;place-items:center;width:42px;height:42px;background:color-mix(in srgb,#635bff 10%,var(--tiny-form-surface));border-radius:12px;color:#635bff}
[data-tinyapps-image-rotate] .image-rotate-drop-icon svg{width:23px;height:23px}
[data-tinyapps-image-rotate] .image-rotate-drop strong{font-size:.87rem}
[data-tinyapps-image-rotate] .image-rotate-drop small{font-size:.72rem;color:var(--tiny-form-muted)}
[data-tinyapps-image-rotate] .image-rotate-drop-action{display:inline-flex;align-items:center;justify-content:center;border-radius:11px;border:1px solid var(--tiny-form-border);padding:.5rem 1rem;font-weight:800;font-size:.73rem;min-height:38px;color:var(--tiny-form-ink);background:var(--tiny-form-surface)}
[data-tinyapps-image-rotate] .image-rotate-file{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0}
[data-tinyapps-image-rotate] .image-rotate-drop:has(+ .image-rotate-file:focus-visible){outline:2px solid #635bff;outline-offset:3px}
[data-tinyapps-image-rotate] .image-rotate-panel>.field-hint{margin:0}
[data-tinyapps-image-rotate] .image-rotate-preview{width:100%;min-width:0;min-height:250px;max-height:380px;padding:12px;border-radius:14px;display:flex;justify-content:center;align-items:center;overflow:hidden;border:1px solid var(--tiny-form-border);background:repeating-conic-gradient(color-mix(in srgb,var(--tiny-form-ink) 6%,var(--tiny-form-surface)) 0% 25%,var(--tiny-form-surface) 0% 50%) 50% / 18px 18px}
[data-tinyapps-image-rotate] .image-rotate-empty{color:var(--tiny-form-muted);display:grid;place-items:center}
[data-tinyapps-image-rotate] .image-rotate-empty svg{width:32px;height:32px}
[data-tinyapps-image-rotate] .image-rotate-preview canvas{display:block;max-width:100%;max-height:340px;width:auto;height:auto;object-fit:contain;box-shadow:0 3px 16px #00000016}
[data-tinyapps-image-rotate] .image-rotate-meta{display:flex;justify-content:space-between;gap:.5rem;flex-wrap:wrap;font-size:.73rem;color:var(--tiny-form-muted)}
[data-tinyapps-image-rotate] .image-rotate-meta span:first-child{display:inline-flex;gap:.3rem;align-items:center}
[data-tinyapps-image-rotate] .image-rotate-meta svg{width:14px;height:14px}
[data-tinyapps-image-rotate] .image-rotate-meta strong{color:var(--tiny-form-ink);font-variant-numeric:tabular-nums}
[data-tinyapps-image-rotate] .image-rotate-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.57rem;min-width:0}
[data-tinyapps-image-rotate] .image-rotate-tool{display:flex;align-items:center;justify-content:center;gap:.45rem;flex-wrap:wrap;min-height:53px;padding:.65rem .45rem;border:1px solid var(--tiny-form-border);border-radius:12px;background:var(--tiny-form-surface);color:var(--tiny-form-ink);font-size:.77rem;font-weight:800;transition:border-color .15s,background .15s}
[data-tinyapps-image-rotate] .image-rotate-tool svg{height:18px;width:18px;flex:0 0 18px;color:#635bff}
[data-tinyapps-image-rotate] .image-rotate-tool small{font-size:.66rem;font-weight:750;color:var(--tiny-form-muted)}
[data-tinyapps-image-rotate] .image-rotate-tool:hover,[data-tinyapps-image-rotate] .image-rotate-tool[aria-pressed=true]{border-color:#635bff;background:color-mix(in srgb,#635bff 6%,var(--tiny-form-surface))}
[data-tinyapps-image-rotate] .image-rotate-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:.9rem;align-items:start;min-width:0}
[data-tinyapps-image-rotate] .image-rotate-settings>div{min-width:0}
[data-tinyapps-image-rotate] .image-rotate-settings .field-label{display:flex;justify-content:space-between;gap:.5rem;align-items:center;min-height:24px;margin:0 0 .35rem!important}
[data-tinyapps-image-rotate] .image-rotate-settings select{min-width:0;width:100%;max-width:100%}
[data-tinyapps-image-rotate] .image-rotate-quality input[type=range]{width:100%;min-height:38px;accent-color:#635bff;cursor:pointer}
[data-tinyapps-image-rotate] .image-rotate-quality output{color:#635bff;font-weight:850}
[data-tinyapps-image-rotate] .image-rotate-quality .field-hint{margin:-.1rem 0 0;font-size:.69rem}
[data-tinyapps-image-rotate] .image-rotate-actions{display:flex;flex-direction:column;gap:.56rem}
[data-tinyapps-image-rotate] .image-rotate-actions button{width:100%!important;min-height:45px;white-space:normal;font-size:.81rem;line-height:1.4;padding:.6rem .7rem}
[data-tinyapps-image-rotate] .image-rotate-actions button svg{width:18px;height:18px;flex:0 0 18px}
[data-tinyapps-image-rotate] .image-rotate-actions button:disabled{opacity:.55;cursor:not-allowed}
[data-tinyapps-image-rotate] .image-rotate-note{display:flex;gap:.5rem;align-items:flex-start;font-size:.72rem;line-height:1.55;color:var(--tiny-form-muted)}
[data-tinyapps-image-rotate] .image-rotate-note svg{width:16px;height:16px;flex:0 0 16px;margin-top:.1rem}
[data-tinyapps-image-rotate] .tool-status{font-size:.76rem;min-height:1rem;margin:0}
[data-tinyapps-image-rotate] button:focus-visible,[data-tinyapps-image-rotate] select:focus-visible{outline:2px solid #635bff;outline-offset:3px}
@media(max-width:460px){[data-tinyapps-image-rotate] .image-rotate-panel{padding:.77rem;border-radius:14px}[data-tinyapps-image-rotate] .image-rotate-preview{min-height:212px;max-height:300px}[data-tinyapps-image-rotate] .image-rotate-preview canvas{max-height:277px}[data-tinyapps-image-rotate] .image-rotate-tools{gap:.44rem}[data-tinyapps-image-rotate] .image-rotate-tool{min-height:51px;font-size:.72rem;padding:.56rem .3rem}}
@media(prefers-reduced-motion:reduce){[data-tinyapps-image-rotate] *{transition:none!important}}
