.pta-hs-open { overflow: hidden; }
.pta-hs { position: fixed; inset: 0; z-index: 160000; display: grid; place-items: center; padding: 24px; font-family: inherit; }
.pta-hs[hidden] { display: none; }
.pta-hs__scrim { position: absolute; inset: 0; background: rgb(11 17 32 / 0.72); }
.pta-hs__dialog { position: relative; box-sizing: border-box; width: 100%; max-width: 860px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 28px; border-radius: 24px; background: #fff; color: #0b1120; box-shadow: 0 24px 64px rgb(11 17 32 / 0.3); }
.pta-hs__dialog:focus { outline: none; }
.pta-hs__head h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.3; font-weight: 700; color: #0b1120; }
.pta-hs__head p { margin: 0; color: #475569; font-size: 14px; line-height: 20px; }
.pta-hs__body { display: flex; gap: 28px; align-items: flex-start; margin-top: 20px; }
.pta-hs__main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.pta-hs__stage { position: relative; overflow: hidden; border-radius: 12px; background: #e2e8f0; touch-action: none; user-select: none; -webkit-user-select: none; }
.pta-hs__stage:focus-visible { outline: 2px solid #00c875; outline-offset: 3px; }
.pta-hs__stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; max-height: none; pointer-events: none; }
.pta-hs__box { position: absolute; box-sizing: border-box; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgb(11 17 32 / 0.6), 0 0 0 1px rgb(11 17 32 / 0.4); cursor: move; }
.pta-hs__box::before, .pta-hs__box::after { content: ""; position: absolute; pointer-events: none; border: 0 dashed rgb(255 255 255 / 0.5); }
.pta-hs__box::before { inset: 0 33.33%; border-left-width: 1px; border-right-width: 1px; }
.pta-hs__box::after { inset: 33.33% 0; border-top-width: 1px; border-bottom-width: 1px; }
.pta-hs__h { position: absolute; z-index: 2; width: 16px; height: 16px; margin: -8px 0 0 -8px; box-sizing: border-box; border: 2px solid #00c875; border-radius: 50%; background: #fff; }
.pta-hs__h--n { top: 0; left: 50%; cursor: ns-resize; }
.pta-hs__h--s { top: 100%; left: 50%; cursor: ns-resize; }
.pta-hs__h--e { top: 50%; left: 100%; cursor: ew-resize; }
.pta-hs__h--w { top: 50%; left: 0; cursor: ew-resize; }
.pta-hs__h--ne { top: 0; left: 100%; cursor: nesw-resize; }
.pta-hs__h--sw { top: 100%; left: 0; cursor: nesw-resize; }
.pta-hs__h--nw { top: 0; left: 0; cursor: nwse-resize; }
.pta-hs__h--se { top: 100%; left: 100%; cursor: nwse-resize; }
.pta-hs__h::after { content: ""; position: absolute; inset: -10px; }
.pta-hs__face { position: absolute; z-index: 3; display: none; width: 38%; aspect-ratio: 3 / 4; box-sizing: border-box; border: 2px dashed #fff; border-radius: 50%; background: rgb(0 200 117 / 0.15); transform: translate(-50%, -50%); filter: drop-shadow(0 0 2px rgb(11 17 32 / 0.7)); cursor: grab; }
.pta-hs__face::after { content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #00c875; }
.pta-hs.is-face .pta-hs__face { display: block; }
.pta-hs.is-face .pta-hs__h, .pta-hs.is-face .pta-hs__box::before, .pta-hs.is-face .pta-hs__box::after { display: none; }
.pta-hs.is-face .pta-hs__box { cursor: crosshair; }
.pta-hs.is-dragging .pta-hs__face { cursor: grabbing; }
.pta-hs__info { margin: 10px 0 0; color: #475569; font-size: 12px; line-height: 16px; text-align: center; }
.pta-hs__side { flex: 0 0 250px; min-width: 0; }
.pta-hs__label { margin: 0 0 12px; color: #0f5132; font-size: 11px; font-weight: 700; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.pta-hs__previews { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.pta-hs__previews figure { margin: 0; }
.pta-hs__previews canvas { display: block; width: auto; height: 104px; border-radius: 10px; background: #f1f5f9; }
.pta-hs__previews figcaption { margin-top: 6px; color: #475569; font-size: 12px; line-height: 16px; }
.pta-hs__previews figcaption span { color: #94a3b8; }
.pta-hs__warn { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 13px; line-height: 18px; }
.pta-hs__warn[hidden] { display: none; }
.pta-hs__tips { display: grid; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; color: #475569; font-size: 13px; line-height: 18px; }
.pta-hs__tips li { position: relative; margin: 0; padding-left: 18px; }
.pta-hs__tips li::before { content: ""; position: absolute; top: 6px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: #00c875; }
.pta-hs__foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.pta-hs__foot [hidden] { display: none; }
.pta-hs__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid #00c875; border-radius: 999px; background: #00c875; color: #0b1120; font: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; }
.pta-hs__btn:hover, .pta-hs__btn:focus-visible { background: #0f5132; border-color: #0f5132; color: #fff; }
.pta-hs__btn:focus-visible { outline: 2px solid #00c875; outline-offset: 2px; }
.pta-hs__btn:disabled { opacity: 0.6; cursor: wait; }
.pta-hs__btn--ghost { background: #fff; border-color: #cbd5e1; color: #0b1120; }
.pta-hs__btn--ghost:hover, .pta-hs__btn--ghost:focus-visible { background: #fff; border-color: #0f5132; color: #0f5132; }
@media (max-width: 767px) {
	.pta-hs { align-items: end; padding: 0; }
	.pta-hs__dialog { max-height: 96vh; max-height: 96dvh; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
	.pta-hs__head h3 { font-size: 19px; }
	.pta-hs__body { flex-direction: column; gap: 16px; align-items: stretch; margin-top: 14px; }
	.pta-hs__main { flex: none; }
	.pta-hs__side { flex: none; }
	.pta-hs__label { text-align: center; }
	.pta-hs__previews { justify-content: center; }
	.pta-hs__previews canvas { height: 80px; }
	.pta-hs__tips { display: none; }
	.pta-hs__foot > * { flex: 1; }
	.pta-hs__h { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
}
