.sw13lp-lock, .sw13lp-lock body { overflow: hidden; }
.sw13lp-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; }
.sw13lp-modal[hidden] { display: none; }
.sw13lp-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 16, 40, .62); backdrop-filter: blur(3px); }
.sw13lp-modal__panel { position: relative; width: min(1100px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); display: flex; flex-direction: column; }
.sw13lp-modal__head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 26px 8px; }
.sw13lp-modal__head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; color: var(--sw13-primary, #022771); }
.sw13lp-modal__head p { margin: 0; color: var(--sw13-muted, #6b7280); font-size: 14px; max-width: 640px; }
.sw13lp-x { margin-left: auto; border: 0; background: var(--sw13-soft, #f5f6f9); width: 40px; height: 40px; border-radius: 50%; font-size: 24px; cursor: pointer; flex: none; }
.sw13lp-modal__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 16px 26px; }
.sw13lp-stage { position: relative; border-radius: 16px; background: radial-gradient(circle at 50% 45%, #fff 0, #eef0f5 75%); border: 1px solid var(--sw13-line, #e4e7ee); display: grid; place-items: center; min-height: 300px; touch-action: none; }
.sw13lp-stage canvas { width: 100%; height: auto; max-height: 64vh; object-fit: contain; display: block; }
.sw13lp-loading { position: absolute; inset: 0; display: none; place-items: center; color: var(--sw13-muted, #6b7280); }
.sw13lp-stage.is-loading .sw13lp-loading { display: grid; }
.sw13lp-tools { display: flex; flex-direction: column; gap: 18px; }
.sw13lp-tool label, .sw13lp-tool__label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.sw13lp-tool input[type=range] { width: 100%; accent-color: var(--sw13-primary, #022771); }
.sw13lp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sw13lp-seg button { padding: 9px 8px; border: 1.5px solid var(--sw13-line, #e4e7ee); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.sw13lp-seg button.is-on { border-color: var(--sw13-primary, #022771); background: #f1f5ff; color: var(--sw13-primary, #022771); font-weight: 600; }
.sw13lp-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.sw13lp-check input { width: 17px; height: 17px; accent-color: var(--sw13-primary, #022771); }
.sw13lp-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sw13lp-btns .sw13-btn { padding: 9px 14px; font-size: 13px; }
.sw13lp-note { margin: 0; font-size: 12px; color: var(--sw13-muted, #6b7280); background: var(--sw13-soft, #f5f6f9); padding: 10px 12px; border-radius: 10px; }
.sw13lp-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 26px 22px; border-top: 1px solid var(--sw13-line, #e4e7ee); }
.sw13lp-btn { padding: 8px 14px !important; font-size: 13px !important; }
.sw13lp-hint { flex-basis: 100%; color: var(--sw13-muted, #6b7280); font-size: 12px; }
.sw13lp-pill { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--sw13-primary, #022771); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px rgba(2, 39, 113, .3); }
.sw13lp-pill[hidden] { display: none; }
.sw13lp-saving::after { content: "Updating preview…"; position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, .92); color: var(--sw13-primary, #022771); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; }
.sw13-add-btn.sw13lp-busy { opacity: .75; }
@media (max-width: 860px) {
	.sw13lp-modal { padding: 0; }
	.sw13lp-modal__panel { border-radius: 0; max-height: 100vh; height: 100vh; }
	.sw13lp-modal__body { grid-template-columns: 1fr; padding: 12px 16px; }
	.sw13lp-modal__head, .sw13lp-modal__foot { padding-inline: 16px; }
	.sw13lp-modal__foot { position: sticky; bottom: 0; background: #fff; }
}
