.pv-controls, .pv-card { max-width: 57rem; }
.pv-controls { display: grid; gap: .75rem; align-items: start; margin-bottom: 1rem; }
.pv-select, .pv-add form { display: grid; gap: .4rem; }
.pv-select, .pv-add label { font-size: .88rem; font-weight: 650; color: var(--cd-ink); }
.pv-controls :is(input, select) { min-width: 0; width: min(100%, 22rem); padding: .55rem .7rem; border: 1px solid #abbcaf; border-radius: .4rem; background: var(--cd-paper); color: var(--cd-ink); font-size: 1rem; letter-spacing: .035em; }
.pv-select select { width: fit-content; min-width: min(100%, 15rem); padding-right: 1.8rem; }
.pv-add summary { width: fit-content; color: var(--cd-green); font-size: .91rem; font-weight: 620; }
.pv-add form { margin-top: .65rem; max-width: 39rem; }
.pv-entry { display: flex; flex-wrap: wrap; gap: .5rem; }
.pv-add small, .pv-help, .pv-background-status { color: var(--cd-muted); font-size: .84rem; line-height: 1.45; }
.pv-error { color: #923e2f; font-size: .88rem; }
.pv-error:empty { display: none; }
.pv-card { overflow: hidden; border: 1px solid var(--cd-line); border-radius: .75rem; background: var(--cd-paper); }
.pv-placeholder { display: flex; flex-direction: column; align-items: start; justify-content: center; gap: .75rem; min-height: 8rem; padding: 1.1rem; }
.pv-map-frame { position: relative; background: #f5f5ee; border-bottom: 1px solid var(--cd-line); }
.pv-map { width: 100%; height: clamp(16rem, 38vw, 23rem); display: block; cursor: grab; touch-action: none; user-select: none; }
.cd-case .pv-map:focus-visible { outline-offset: -3px; }
.pv-map.pv-dragging { cursor: grabbing; }
.pv-map.pv-drawing { cursor: crosshair; }
.pv-map path { stroke: #006449; stroke-width: 3px; stroke-linejoin: round; fill: #27966a; fill-opacity: .22; }
.pv-map .pv-mark { fill: none; stroke: #a54d12; stroke-width: 4px; stroke-linecap: round; pointer-events: none; }
.pv-map .pv-mark-selected { stroke: #8b251e; stroke-width: 6px; }
.pv-map .pv-mark-draft { stroke: #8b251e; stroke-dasharray: 6 4; }
.pv-north { position: absolute; top: .7rem; right: .7rem; display: inline-flex; align-items: center; gap: .2rem; padding: .12rem .45rem; border: 1px solid #cad4c7; border-radius: .3rem; background: #fffefaed; color: #29473a; font-size: .78rem; font-weight: 700; pointer-events: none; }
.pv-north span { font-size: 1.2rem; }
.pv-scale { position: absolute; bottom: .7rem; left: .7rem; display: grid; gap: .1rem; width: max-content; padding: .2rem .4rem; border-radius: .25rem; background: #fffefaed; color: #233c2f; font: 650 .72rem/1.1 system-ui, sans-serif; pointer-events: none; }
.pv-scale path { fill: none; stroke: currentColor; stroke-width: 2px; }
.pv-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; padding: .7rem .9rem .35rem; }
.cd-case .pv-zoom { width: 2.55rem; padding: .25rem; font-size: 1.3rem; }
.pv-area { margin-inline-start: auto; font-size: .88rem; font-weight: 600; }
.pv-help { margin: 0; padding: .1rem .9rem .65rem; }
.pv-background-status { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .8rem; padding-inline: .9rem; }
.pv-background-status span:not(:empty) { padding-bottom: .65rem; }
.pv-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; border-top: 1px solid var(--cd-line); padding: .65rem .9rem; color: var(--cd-muted); font-size: .79rem; }
.pv-legend { display: inline-flex; align-items: center; gap: .4rem; color: var(--cd-ink); font-weight: 650; }
.pv-legend::before { content: ""; width: .9rem; height: .63rem; background: #c5e1d1; border: 2px solid #006449; }
.pv-caption a { margin-inline-start: auto; font-weight: 600; }
.pv-observations, .pv-observation { max-width: 57rem; margin-top: 1rem; }
.pv-observations .pv-help { padding-inline: 0; }
.pv-observation, .pv-observation-item { border: 1px solid var(--cd-line); border-radius: .6rem; padding: .8rem; background: var(--cd-paper); }
.pv-observation:not([hidden]), .pv-observation label { display: grid; gap: .5rem; }
.pv-observation textarea { width: 100%; resize: vertical; }
.pv-observation-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.pv-observation-actions[hidden], .pv-tools [hidden] { display: none; }
.pv-observation .pv-detach { display: flex; align-items: baseline; gap: .4rem; }
.pv-observation-item + .pv-observation-item { margin-top: .5rem; }
.pv-observation-item small { margin-inline-start: .7rem; color: var(--cd-muted); }
.pv-observation-item p { white-space: pre-wrap; }
@media (max-width: 600px) {
    .pv-select select, .pv-controls input { width: 100%; }
    .pv-area, .pv-caption a { margin-inline-start: 0; }
    .pv-area:not(:empty) { width: 100%; }
    .pv-map { height: 17rem; }
}
