:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #182e42;
  background: #f5f7f8;
  font-size: 16px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
.practice-guide {
  margin: 0 0 1rem;
  padding: 0.7rem 1rem;
  background: #eef2ed;
  border: 1px solid #d4ded4;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.practice-guide summary {
  cursor: pointer;
  font-weight: 600;
}
.practice-guide p {
  margin-bottom: 0;
}
kbd {
  font: inherit;
  font-weight: 700;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  font-size: 0.875rem;
}
button {
  border: 1px solid #c2ced6;
  background: white;
  color: #183247;
  border-radius: 7px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
  min-height: 38px;
}
button:hover {
  background: #edf3f6;
  border-color: #7392a5;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
svg:focus-visible,
a:focus-visible {
  outline: 3px solid #1682b8;
  outline-offset: 3px;
}
.topbar {
  background: #142f43;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  gap: 1rem;
}
.topbar button {
  background: transparent;
  color: white;
  border-color: #617d90;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.2rem;
}
.brand-mark {
  font-size: 2rem;
  color: #61dccb;
  line-height: 0.8;
}
.pill {
  font-size: 0.75rem;
  font-weight: 500;
  background: #28465b;
  color: #deedf4;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 1.5rem 2rem;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #526e80;
  margin: 0 0 0.45rem;
}
h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}
.intro p:not(.eyebrow) {
  margin: 0;
  color: #536b7b;
  line-height: 1.5;
}
.intro-actions {
  display: flex;
  gap: 0.6rem;
}
.primary,
button.active {
  background: #17695f;
  color: white;
  border-color: #17695f;
}
.primary:hover,
button.active:hover {
  background: #12584f;
  color: white;
}
.notice {
  font-size: 0.875rem;
  background: #e8f0f4;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  color: #35536a;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  border: 1px solid #c7d2da;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 6px 24px #1a38520b;
}
.map-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #243b49;
}
.map-toolbar {
  background: #fff;
  padding: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #c7d2da;
}
.toolbar-group {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar-group label {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.3rem;
}
.map-stage {
  position: relative;
  min-height: 500px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#map {
  width: 100%;
  height: 100%;
  max-height: 720px;
  min-height: 500px;
  display: block;
  touch-action: none;
  user-select: none;
  background: #243b49;
}
.footprint {
  stroke: #ffdc6a;
  fill: #f0c94320;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  stroke-linejoin: round;
}
.footprint.accepted {
  stroke: #4af1c8;
  fill: #34cfb030;
}
.footprint.rejected {
  stroke: #fff;
  stroke-dasharray: 4 3;
  fill: #ffffff08;
  opacity: 0.55;
}
.footprint.needs_edit {
  stroke: #ff9470;
  fill: #fc915d25;
}
.footprint.selected {
  stroke: #ff52d6;
  stroke-width: 3;
  fill: #ff52d622;
  opacity: 1;
  stroke-dasharray: none;
}
.handle {
  fill: white;
  stroke: #7d125f;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  cursor: grab;
}
.draft {
  fill: #64ffe33b;
  stroke: #64ffe3;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.map-scale,
.map-hint {
  position: absolute;
  bottom: 12px;
  background: #102633d9;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  pointer-events: none;
}
.map-scale {
  left: 12px;
}
.map-scale span {
  display: inline-block;
  width: 50px;
  border-top: 3px solid white;
  margin-right: 8px;
  vertical-align: middle;
}
.map-hint {
  right: 12px;
  max-width: 65%;
}
.map-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 0.65rem 0.8rem;
  color: #526b7a;
  gap: 0.7rem;
  font-size: 0.75rem;
}
.legend {
  display: flex;
  gap: 0.8rem;
}
.legend span:before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 2px solid;
  margin-right: 5px;
}
.legend .pending:before {
  border-color: #b58c13;
}
.legend .accepted:before {
  border-color: #0b876f;
}
.legend .rejected:before {
  border-color: #777;
  border-style: dashed;
}
.legend .selected:before {
  border-color: #c2199b;
}
.review-panel {
  padding: 1.1rem;
  border-left: 1px solid #c7d2da;
}
h2 {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}
h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
}
.progress-heading,
.inspector-title,
.list-heading,
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.progress-heading span {
  font-size: 0.875rem;
  font-weight: 700;
}
progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 5px;
  margin-top: 0.7rem;
  accent-color: #167567;
}
progress::-webkit-progress-bar {
  background: #e3ebee;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: #167567;
  border-radius: 5px;
}
#counts {
  font-size: 0.8rem;
  margin: 0.5rem 0 1rem;
  color: #526b7a;
}
.inspector {
  border-block: 1px solid #e1e7eb;
  padding: 1rem 0;
}
.status-pill {
  font-size: 0.75rem;
  background: #eaf0f4;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
}
#selected-details {
  font-size: 0.8rem;
  color: #526b7a;
  margin: 0.3rem 0 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  margin: 0.7rem 0;
  font-weight: 600;
}
select,
textarea {
  border: 1px solid #bbcbd6;
  border-radius: 5px;
  background: white;
  padding: 0.5rem;
  color: #193548;
  min-height: 36px;
}
textarea {
  font-size: 0.875rem;
  resize: vertical;
  font-weight: 400;
  line-height: 1.45;
}
.decisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.8rem 0;
}
.accept {
  color: #096755;
  background: #e6f6ee;
  border-color: #9ec9b8;
}
.small {
  font-size: 0.75rem;
  line-height: 1.55;
  color: #587083;
  margin: 0.65rem 0 0;
}
.list-heading {
  margin: 1rem 0 0.5rem;
}
.feature-list {
  max-height: 158px;
  overflow-y: auto;
  border: 1px solid #d7e0e5;
  border-radius: 5px;
}
.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e3e9ed;
  border-radius: 0;
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-weight: 500;
}
.feature-row[aria-pressed='true'] {
  background: #fbeafb;
  color: #6e245f;
  box-shadow: inset 3px 0 #b31996;
}
.feature-row span {
  font-size: 0.75rem;
  color: #5b7181;
}
.coverage {
  font-size: 0.8rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}
.coverage input {
  margin-top: 4px;
}
.review-panel input[type='checkbox'] {
  accent-color: #167567;
}
.map-toolbar input {
  accent-color: #167567;
}
footer {
  padding: 0.8rem 0.1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #607584;
}
footer p {
  margin: 0.45rem 0;
}
a {
  color: #156a88;
}
dialog {
  border: 1px solid #becdd6;
  border-radius: 12px;
  max-width: 680px;
  width: calc(100% - 32px);
  padding: 1.7rem;
  color: #193246;
}
dialog::backdrop {
  background: #061f34aa;
}
dialog p {
  font-size: 1rem;
  line-height: 1.6;
}
.dialog-heading h2 {
  font-size: 1.35rem;
}
.dialog-heading button {
  border: 0;
  font-size: 1.5rem;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(650px, 90vw);
  padding: 0.8rem 1.2rem;
  background: #122f43;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 30px #0003;
  font-size: 0.875rem;
  z-index: 10;
}
.toast:empty {
  display: none;
}
.sr-only {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  main {
    padding: 1.2rem;
  }
  .workbench {
    grid-template-columns: minmax(0, 1fr) 305px;
  }
  .intro {
    align-items: flex-start;
  }
  .intro-actions {
    flex-direction: column;
  }
  .topbar {
    padding: 1rem 1.2rem;
  }
  .map-toolbar button {
    padding: 0.4rem 0.55rem;
  }
}
@media (max-width: 760px) {
  .workbench {
    grid-template-columns: 1fr;
  }
  .review-panel {
    border-left: 0;
    border-top: 1px solid #c7d2da;
  }
  .map-stage,
  #map {
    min-height: 360px;
    height: min(100vw, 550px);
  }
  .intro {
    display: block;
  }
  .intro-actions {
    flex-direction: row;
    margin-top: 1rem;
  }
  .topbar {
    gap: 0.5rem;
    padding: 0.8rem;
  }
  .brand {
    gap: 0.5rem;
    font-size: 1.05rem;
  }
  .pill {
    display: none;
  }
  main {
    padding: 1rem 0.7rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  .feature-list {
    max-height: 190px;
  }
  .map-hint {
    max-width: 60%;
    font-size: 0.7rem;
  }
  .map-footer {
    font-size: 0.7rem;
  }
  .legend {
    gap: 0.5rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.12s,
      border-color 0.12s;
  }
}
.toast {
  pointer-events: none;
}
