.g4-sketch-print { display: none; }
.g4-point-sketch { scroll-margin-block-start: 7rem; font-family: var(--g4-sans); color: var(--g4-ink); }
.g4-sketch-heading, .g4-sketch-toolbar, .g4-sketch-actions, .g4-sketch-key, .g4-sketch-key [data-key] {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
}
.g4-sketch-heading { margin-bottom: .75rem; }
.g4-sketch-heading h2 { margin: 0; font: 650 1.35rem/1.2 var(--g4-sans); letter-spacing: -.025em; }
.g4-sketch-count { font: 500 .85rem/1.5 var(--g4-mono); color: var(--g4-text-muted); }
.g4-sketch-toolbar { justify-content: space-between; padding: .5rem .85rem; }
.g4-point-sketch .g4-btn { min-height: 44px; box-sizing: border-box; justify-content: center; }
.g4-sketch-toolbar .g4-toggle-wrap { position: relative; align-items: center; min-height: 44px; box-sizing: border-box; }
.g4-sketch-toolbar .g4-toggle-check { inset: 0; width: 100%; height: 100%; pointer-events: auto; margin: 0; z-index: 1; cursor: pointer; }
.g4-sketch-toolbar .g4-toggle-check:focus-visible + .g4-toggle-track,
.g4-point-sketch :is(.g4-select, .g4-input):focus-visible { outline: 2px solid var(--g4-signal); outline-offset: 2px; }
.g4-sketch-map { width: 100%; height: clamp(18rem, 45vh, 30rem); background: white; }
.g4-sketch-map.is-drawing { cursor: crosshair; }
.g4-sketch-map:focus-visible { outline: 2px solid var(--g4-signal); outline-offset: -2px; }
.g4-sketch-map .ol-zoom { top: .65rem; left: .65rem; padding: 2px; border: 1px solid var(--g4-line); border-radius: var(--r-sm); background: white; }
.g4-sketch-map .ol-zoom button { width: 40px; height: 40px; margin: 0; color: var(--g4-ink); background: white; border-radius: var(--r-xs); font: 600 1.25rem/1 var(--g4-sans); }
.g4-sketch-map .ol-zoom button:is(:hover, :focus-visible) { background: var(--g4-paper-2); }
.g4-sketch-map .ol-zoom-out { border-top: 1px solid var(--g4-line); }
.g4-sketch-key { padding: .65rem .85rem; border-top: 1px solid var(--g4-line); font-size: .88rem; }
.g4-sketch-key > span:first-child { font-weight: 600; }
.g4-sketch-key [data-key] > span { white-space: nowrap; }
.g4-sketch-key b { margin-inline-end: .3em; }
.g4-sketch-edit { margin-top: .65rem; }
.g4-sketch-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: .75rem; }
.g4-sketch-tools fieldset { display: grid; grid-template-columns: minmax(0, 1fr) min(33%, 6.25rem); align-content: start; gap: .65rem .75rem; margin: 0; padding: .85rem; min-width: 0; border: 1px solid var(--g4-line); border-radius: var(--r-sm); background: white; }
.g4-sketch-tools legend { padding-inline: .35rem; font-weight: 650; }
.g4-sketch-tools label { display: grid; gap: .3rem; align-content: start; min-width: 0; font-weight: 550; }
.g4-sketch-tools :is(.g4-input, .g4-select) { min-width: 0; min-height: 44px; font-size: 1rem; }
.g4-sketch-tools input[type="color"] { height: 44px; padding: .35rem; cursor: pointer; }
.g4-sketch-wide { grid-column: 1 / -1; }
.g4-sketch-map + [role=status] { padding: .5rem .85rem; }
.g4-point-sketch [role=status] { margin: 0; font-size: .875rem; line-height: 1.4; }
.g4-point-sketch [role=status]:empty { display: none; }
.g4-point-sketch :disabled { opacity: .58; cursor: default; }
@media (max-width: 640px) {
  .g4-sketch-toolbar { gap: .25rem .75rem; }
  .g4-sketch-map .ol-zoom button { width: 44px; height: 44px; }
}
@media print {
  .g4-point-sketch { break-inside: avoid; }
  [data-sketch-editor] { display: none !important; }
  .g4-sketch-sheet { border: 0; border-radius: 0; }
  .g4-sketch-print[src] { display: block; max-width: 100%; max-height: 100mm; margin: 0 auto; }
}
