.plgta {
    --plgta-paper: #fff9f0;
    --plgta-ink: #18192b;
    --plgta-pink: #9a235c;
    box-sizing: border-box;
    padding: clamp(16px, 4vw, 36px);
    color: var(--plgta-ink);
    background: var(--plgta-paper);
    border: 1px solid #e9d8d0;
    border-radius: 20px;
    margin: 2rem 0;
}
.plgta [hidden] { display: none !important; }
.plgta h2, .plgta h3, .plgta p, .plgta label { color: var(--plgta-ink); }
.plgta h2, .plgta h3 { margin: 0; }
.plgta__header p { margin: 8px 0 16px; }
.plgta__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.plgta__tools label { display: flex; align-items: center; gap: 8px; }
.plgta button:not(.plgta__target):not(.plgta__marker) {
    border: 1px solid var(--plgta-pink);
    border-radius: 8px;
    padding: 8px 14px;
    color: white;
    background: var(--plgta-pink);
    font: inherit;
    cursor: pointer;
    min-height: 42px;
}
.plgta button:disabled { cursor: wait !important; opacity: .65; }
.plgta :is(button, summary, input, select, textarea, a):focus-visible { outline: 3px solid #156480; outline-offset: 2px; }
.plgta__viewport { overflow: auto; border-radius: 12px; margin: 12px 0 18px; background: #222944; }
.plgta__board { position: relative; width: 100%; isolation: isolate; }
.plgta__board img { width: 100%; height: auto; display: block; }
.plgta .plgta__target {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: crosshair;
    z-index: 3;
}
.plgta .plgta__target:focus-visible { outline-offset: -4px; outline-color: #ffffff; }
.plgta .plgta__marker {
    position: absolute;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 50%;
    padding: 0;
    color: #fff;
    background: var(--plgta-pink);
    font: 700 14px/1 system-ui, sans-serif;
    cursor: pointer;
    z-index: 1;
}
.plgta .plgta__marker--draft { background: #156480; font-size: 21px; pointer-events: none; z-index: 4; }
.plgta__form { display: grid; gap: 12px; margin: 18px 0; }
.plgta__form p { margin: 0; }
.plgta__form label { display: grid; gap: 5px; }
.plgta input:not([type=checkbox]), .plgta select, .plgta textarea {
    min-width: 0;
    padding: 8px;
    color: var(--plgta-ink);
    background: #fff;
    border: 1px solid #a68496;
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}
.plgta .plgta__checkbox { display: flex; align-items: center; gap: 8px; }
.plgta__pins details { padding: 10px 0; border-top: 1px solid #e9d8d0; }
.plgta__pins summary { font-weight: 700; cursor: pointer; }
.plgta__pins details p { margin: 8px 0; white-space: pre-line; overflow-wrap: anywhere; }
.plgta__pins a { color: var(--plgta-pink); }
