.pm-root {
  --pm-ink: var(--ink, #121a1d);
  --pm-muted: var(--muted, #657279);
  --pm-line: var(--line, #d0d8d6);
  --pm-paper: var(--paper, #f3f5f4);
  --pm-teal: var(--teal, #21c9b8);
  --pm-teal-deep: var(--teal-deep, #007e75);
  color: var(--pm-ink);
  font-family: var(--font, 'Manrope', Arial, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  min-width: 0;
  isolation: isolate;
}
.pm-root *, .pm-root *::before, .pm-root *::after { box-sizing: border-box; }
.pm-root [hidden] { display: none !important; }
.pm-root :is(button, input, select, a) { -webkit-tap-highlight-color: transparent; }
.pm-root :is(button, input, select) { font: inherit; }
.pm-root button, .pm-root select { cursor: pointer; }
.pm-root :is(button, input, select, a):focus-visible { outline: 2px solid var(--pm-teal-deep); outline-offset: 4px; }
.pm-topbar { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.25rem; }
.pm-projects { display: flex; gap: .5rem; flex-wrap: wrap; }
.pm-project-tab { display: inline-flex; align-items: center; gap: .85rem; min-height: 3.2rem; padding: .75rem 1.15rem; border: 1px solid #aebbbd; border-radius: 0; background: transparent; color: var(--pm-ink); font-size: 1rem; font-weight: 500; transition: background-color .18s, border-color .18s, color .18s; }
.pm-project-tab span { font-size: .875rem; font-weight: 400; opacity: .8; }
.pm-project-tab[aria-pressed='true'] { color: #fff; background: var(--charcoal, #121a1d); border-color: var(--charcoal, #121a1d); }
.pm-project-tab[aria-pressed='true'] span { color: var(--pm-teal); opacity: 1; }
.pm-project-tab:hover { border-color: var(--pm-teal-deep); }
.pm-fixed-project { display: flex; align-items: baseline; gap: .9rem; min-height: 3.2rem; }
.pm-fixed-project strong { font-size: 1.25rem; font-weight: 500; }
.pm-fixed-project span, .pm-top-note { color: var(--pm-muted); font-size: .875rem; }
.pm-top-note { margin: 0; max-width: 17rem; text-align: right; }
.pm-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 20.5rem); border: 1px solid var(--pm-line); background: #e3e9e9; }
.pm-map-main { min-width: 0; display: flex; flex-direction: column; background: #dfe6e6; }
.pm-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .85rem 1rem; background: #eef2f1; border-bottom: 1px solid #c7d1d0; }
.pm-search-wrap { position: relative; display: flex; align-items: center; gap: .55rem; min-width: 0; flex: 1 1 10rem; max-width: 14.5rem; }
.pm-search { display: block; width: 100%; min-width: 0; min-height: 2.75rem; border: 1px solid #bdcaca; border-radius: 0; background: #fff; color: var(--pm-ink); padding: .6rem .75rem; font-size: 1rem; line-height: 1.2; }
.pm-search::placeholder { color: #596c70; opacity: 1; }
.pm-tools { display: flex; align-items: center; gap: .35rem; }
.pm-control { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: .45rem .75rem; color: var(--pm-ink); border: 1px solid #b9c8c7; background: #fff; border-radius: 0; font-size: .875rem; font-weight: 500; white-space: nowrap; transition: border-color .18s, background-color .18s; }
.pm-control:hover { background: #f7fcfb; border-color: var(--pm-teal-deep); }
.pm-control--symbol { font-size: 1.45rem; font-weight: 400; }
.pm-canvas { position: relative; min-height: 31.5rem; flex: 1; overflow: hidden; background: #d9e2e1; }
.pm-svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; touch-action: none; user-select: none; cursor: grab; }
.pm-svg.is-dragging { cursor: grabbing; }
.pm-svg.is-dragging .pm-parcel { cursor: grabbing; }
.pm-aerial { filter: grayscale(1) contrast(.94); opacity: .76; pointer-events: none; }
.pm-parcel { cursor: pointer; }
.pm-parcel-edge { fill: none; stroke: #f8fcfc; stroke-width: 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.pm-parcel-shape { fill: #f9fdfd48; stroke: #405b5c; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .16s, stroke .16s; }
.pm-parcel.is-filtered { opacity: .18; }
.pm-parcel:hover .pm-parcel-shape { fill: #21c9b878; stroke: #00766d; stroke-width: 1.75; }
.pm-parcel.is-selected .pm-parcel-shape { fill: #21c9b8a6; stroke: #006c62; stroke-width: 2.5; }
.pm-parcel.is-selected .pm-parcel-edge { stroke-width: 4.5; }
.pm-map-label { fill: #142d31; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; paint-order: stroke; font-family: var(--font, 'Manrope', Arial, sans-serif); font-weight: 500; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.pm-parcel.is-selected .pm-map-label { fill: #07322d; }
.pm-tooltip { position: absolute; z-index: 4; display: grid; gap: .2rem; max-width: calc(100% - 1rem); padding: .75rem .95rem; background: #121a1df5; color: #fff; box-shadow: 0 6px 24px #121a1d20; pointer-events: none; font-size: .875rem; line-height: 1.4; border-left: 3px solid var(--pm-teal); }
.pm-tooltip strong { font-size: 1rem; font-weight: 500; }
.pm-tooltip span { color: #d9eeea; white-space: nowrap; }
.pm-map-footer { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; background: #eef2f1; color: #4e6265; font-size: .8125rem; border-top: 1px solid #c7d1d0; }
.pm-map-footer p { margin: 0; font-size: inherit; color: inherit; line-height: 1.45; }
.pm-map-legend { display: flex; align-items: center; flex-shrink: 0; gap: .5rem; white-space: nowrap; }
.pm-map-legend::before { content: ''; width: .85rem; height: .85rem; background: var(--pm-teal); border: 1px solid #00766d; }
.pm-detail { display: flex; flex-direction: column; min-width: 0; padding: 1.65rem 1.5rem 1.5rem; background: #fff; border-left: 1px solid var(--pm-line); }
.pm-detail-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.1rem; }
.pm-detail-park { margin: 0; color: var(--pm-teal-deep); font-size: .875rem; font-weight: 500; }
.pm-detail-type { font-size: .75rem; color: #687b7e; }
.pm-detail h3 { margin: 0 0 .65rem; color: var(--pm-ink); font-size: 1.55rem; line-height: 1.15; font-weight: 500; letter-spacing: -.035em; }
.pm-area { margin: 0; color: var(--pm-ink); font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.15; font-weight: 400; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pm-sotka { margin: .45rem 0 1.4rem; font-size: .875rem; color: var(--pm-muted); }
.pm-select-label { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: #4c6064; }
.pm-select { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-width: 0; min-height: 3rem; padding: .7rem 2.4rem .7rem .75rem; border: 1px solid #bdcaca; border-radius: 0; background-color: #f4f7f6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23364c50' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1rem; color: var(--pm-ink); font-size: 1rem; line-height: 1.3; text-overflow: ellipsis; }
.pm-figures { display: grid; gap: 1.1rem; padding: 1.4rem 0; margin: 1.4rem 0 0; border-top: 1px solid #d8e0de; border-bottom: 1px solid #d8e0de; }
.pm-figures dt { margin: 0 0 .4rem; color: #5a6d71; font-size: .875rem; line-height: 1.4; }
.pm-figures dd { margin: 0; color: var(--pm-ink); font-size: 1.15rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pm-scenario-note { margin: 1rem 0 1.3rem; color: #65777a; font-size: .8125rem; line-height: 1.55; }
.pm-actions { display: grid; gap: .65rem; margin-top: auto; }
.pm-primary, .pm-secondary { display: flex; align-items: center; justify-content: center; min-height: 3.15rem; padding: .8rem 1rem; font-size: .9375rem; font-weight: 500; line-height: 1.3; text-decoration: none; border: 1px solid transparent; text-align: center; transition: background-color .18s, border-color .18s; }
.pm-primary { color: #092b28; background: var(--pm-teal); }
.pm-primary:hover { color: #092b28; background: #43ddca; }
.pm-secondary { color: var(--pm-ink); border-color: #aebfbd; background: #fff; }
.pm-secondary:hover { color: var(--pm-ink); border-color: var(--pm-teal-deep); background: #f6faf9; }
.pm-availability { margin: .95rem 0 0; color: #65777a; font-size: .75rem; line-height: 1.5; }
.pm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
  .pm-layout { grid-template-columns: minmax(0, 1fr) minmax(16.25rem, 18.5rem); }
  .pm-detail { padding: 1.4rem 1.2rem; }
  .pm-toolbar { gap: .6rem; padding: .7rem; }
  .pm-tools { gap: .3rem; }
  .pm-search-wrap { max-width: 12.5rem; }
  .pm-map-footer { flex-direction: column; gap: .55rem; }
}
@media (max-width: 820px) {
  .pm-layout { grid-template-columns: 1fr; }
  .pm-canvas { min-height: 28rem; }
  .pm-detail { border-left: 0; border-top: 1px solid var(--pm-line); display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.5rem; padding: 1.5rem; }
  .pm-detail-top { grid-column: 1 / -1; margin-bottom: .7rem; }
  .pm-detail h3, .pm-area, .pm-sotka { grid-column: 1; }
  .pm-sotka { margin-bottom: 1rem; }
  .pm-select-label { grid-column: 2; grid-row: 2 / 5; justify-content: center; }
  .pm-figures { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: .4rem; }
  .pm-scenario-note, .pm-actions, .pm-availability { grid-column: 1 / -1; }
  .pm-actions { grid-template-columns: 1fr 1fr; }
  .pm-map-footer { flex-direction: row; }
}
@media (max-width: 560px) {
  .pm-topbar { gap: .8rem; align-items: start; flex-direction: column; margin-bottom: 1rem; }
  .pm-projects { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .pm-project-tab { justify-content: space-between; padding: .7rem .85rem; min-height: 3.1rem; }
  .pm-project-tab span { font-size: .8125rem; }
  .pm-top-note { text-align: left; max-width: none; font-size: .8125rem; }
  .pm-fixed-project { min-height: 2rem; }
  .pm-toolbar { align-items: stretch; flex-wrap: nowrap; gap: .4rem; padding: .6rem; }
  .pm-search-wrap { flex-basis: 6rem; max-width: none; }
  .pm-search { min-height: 2.75rem; padding-inline: .55rem; font-size: 1rem; }
  .pm-control { min-width: 2.6rem; padding-inline: .5rem; }
  .pm-control--fit { font-size: .875rem; }
  .pm-canvas { min-height: 25rem; }
  .pm-map-footer { flex-direction: column; padding: .8rem; }
  .pm-detail { display: flex; padding: 1.35rem; gap: 0; }
  .pm-detail-top { margin-bottom: .85rem; }
  .pm-area { font-size: 2.15rem; }
  .pm-sotka { margin-bottom: 1.3rem; }
  .pm-figures { grid-template-columns: 1fr 1fr; margin-top: 1.3rem; padding: 1.25rem 0; gap: 1rem; }
  .pm-figures dd { font-size: 1.05rem; }
  .pm-actions { grid-template-columns: 1fr; }
  .pm-scenario-note { margin-block: .9rem 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-root *, .pm-root *::before, .pm-root *::after { scroll-behavior: auto; transition: none !important; }
}
