:root {
  color-scheme: dark;
  --bg: #111411;
  --panel: #181c18;
  --panel-soft: #1c211c;
  --line: #30382f;
  --line-soft: #272e26;
  --text: #eef1e9;
  --muted: #9ca598;
  --subtle: #74806f;
  --lime: #c3ef68;
  --cyan: #71d5cf;
  --orange: #efa675;
  --radius: 10px;
  font-family:
    Inter,
    'Pretendard',
    'Noto Sans KR',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button,
input,
select,
a,
summary {
  outline-offset: 4px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
}
[hidden] {
  display: none !important;
}
a {
  color: var(--lime);
}
svg {
  display: block;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
label {
  display: block;
  font-size: 12px;
  color: #b7c0b1;
  margin: 14px 0 7px;
}
input,
select {
  height: 41px;
  max-width: 100%;
  width: 100%;
  border: 1px solid #3a4436;
  border-radius: 5px;
  background: #121711;
  color: var(--text);
  padding: 0 11px;
  transition: border-color 0.15s;
}
input:hover,
select:hover {
  border-color: #5c6c53;
}
input:disabled,
select:disabled {
  opacity: 0.5;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%239ca598' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 31px;
  text-overflow: ellipsis;
}
input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
  flex: none;
  padding: 0;
}
input[type='number'] {
  font-variant-numeric: tabular-nums;
}
input[type='range'] {
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--lime);
  height: 20px;
  cursor: pointer;
  background: transparent;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: #48513f;
}
input[type='range']::-webkit-slider-thumb {
  appearance: none;
  margin-top: -6px;
}
input[type='range']::-moz-range-track {
  height: 3px;
  background: #48513f;
}
input[type='range']::-moz-range-thumb {
  background: var(--lime);
  border: 0;
  height: 13px;
  width: 13px;
  border-radius: 50%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
.topbar {
  height: 83px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #131713;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand > span {
  font-size: 20px;
  letter-spacing: 0.075em;
  font-weight: 750;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 3px;
}
.main-nav {
  align-self: stretch;
  display: flex;
  gap: 28px;
}
.main-nav button {
  position: relative;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 0 3px;
}
.main-nav button:hover,
.main-nav button.active {
  color: var(--text);
}
.main-nav button.active:after {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  content: '';
  height: 2px;
  background: var(--lime);
}
.header-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.accent-button,
.quiet-button,
.subtle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  border-radius: 5px;
  height: 36px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 550;
  transition:
    background 0.15s,
    color 0.15s;
}
.accent-button {
  background: var(--lime);
  color: #1c2811;
  border: 1px solid var(--lime);
}
.accent-button:hover {
  background: #d3fc8a;
}
.quiet-button {
  background: transparent;
  color: #b9c3b3;
}
.quiet-button:hover {
  background: #273022;
  color: var(--text);
}
.subtle-button {
  background: #242c21;
  border: 1px solid #3a4632;
  color: #d5ddce;
}
.subtle-button:hover,
.subtle-button.active {
  background: #3b482d;
  border-color: #7b9d4e;
  color: var(--lime);
}
.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  max-width: 2000px;
  margin: auto;
}
.equipment-panel[hidden] + main {
  grid-column: 1 / -1;
}
.equipment-panel {
  border-right: 1px solid var(--line);
  background: #151a14;
  padding: 27px 22px 25px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 21px;
}
.eyebrow {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.live-dot {
  font-size: 10px;
  color: #aebba2;
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-dot:before {
  content: '';
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--lime);
}
.setting-section {
  padding: 23px 0;
  border-top: 1px solid var(--line);
}
.setting-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  margin-bottom: 18px;
}
.section-number {
  font-size: 9px;
  color: var(--lime);
  border: 1px solid #52683b;
  background: #28351f;
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.field-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.field-note:empty,
.equipment-notice:has(#equipmentNote:empty),
.preview-note:has(#calculationNote:empty) {
  display: none;
}
.focal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  margin-bottom: 10px;
}
.focal-heading label {
  margin: 0;
}
.number-unit {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.number-unit input {
  width: 83px;
  height: 32px;
  text-align: right;
  background: transparent;
  border-color: transparent;
  border-bottom: 1px solid #435138;
  padding: 0 4px;
  font-size: 23px;
  font-weight: 600;
  color: var(--lime);
  border-radius: 0;
}
.number-unit span {
  font-size: 10px;
  color: var(--muted);
}
.range-labels {
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 11px 12px;
  border-radius: 6px;
  margin-top: 19px;
  color: var(--text);
  cursor: pointer;
}
.toggle-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.toggle-row > input {
  position: absolute;
  right: 17px;
  opacity: 0;
  width: 28px;
  height: 20px;
}
.toggle-track {
  display: block;
  background: #3b4436;
  width: 30px;
  height: 17px;
  border-radius: 20px;
  position: relative;
  pointer-events: none;
  transition: background 0.2s;
}
.toggle-track:before {
  content: '';
  position: absolute;
  height: 11px;
  width: 11px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #a5afa0;
  transition:
    transform 0.2s,
    background 0.2s;
}
.toggle-row input:checked + .toggle-track {
  background: var(--lime);
}
.toggle-row input:checked + .toggle-track:before {
  transform: translateX(13px);
  background: #24331a;
}
.toggle-row input:focus-visible + .toggle-track {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.input-unit {
  position: relative;
}
.input-unit input {
  padding-right: 30px;
}
.input-unit > span {
  position: absolute;
  right: 10px;
  top: 12px;
  font-size: 10px;
  color: var(--subtle);
  pointer-events: none;
}
.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.custom-fields {
  margin-top: 12px;
  padding: 2px 12px 12px;
  background: #20271b;
  border: 1px solid #3c4c30;
  border-radius: 6px;
}
.custom-fields .button-row {
  margin-top: 14px;
  flex-wrap: wrap;
}
.custom-fields .subtle-button {
  font-size: 11px;
  padding: 0 9px;
}
.advanced-settings {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #bdc8b5;
  padding: 13px 0;
}
summary::-webkit-details-marker {
  display: none;
}
summary > span:last-child {
  color: var(--subtle);
}
details[open] > summary > span:last-child {
  color: var(--lime);
}
.details-body {
  padding-bottom: 10px;
}
.sidebar-foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--subtle);
  font-size: 10px;
  padding-top: 8px;
}
.sidebar-foot svg {
  flex-shrink: 0;
  margin-top: 1px;
}
main {
  padding: 31px 30px 18px;
  min-width: 0;
}
.page-heading {
  margin: 0 0 20px;
}
.page-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: #a4b296;
}
.small-line {
  width: 17px;
  height: 1px;
  background: var(--lime);
}
h1 {
  font-size: 37px;
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.25;
  margin: 13px 0 13px;
}
.lime {
  color: var(--lime);
}
.page-heading p {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.heading-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.5;
  padding-right: 2px;
  color: var(--subtle);
  font-size: 8px;
  letter-spacing: 0.15em;
}
.heading-mark strong {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: -0.065em;
  color: #6b7a62;
  margin: 4px 0;
}
.heading-mark small {
  font-size: 7px;
  letter-spacing: 0.12em;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.metric-card {
  position: relative;
  padding: 16px 18px 15px;
  background: #1b2019;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 136px;
  overflow: hidden;
}
.metric-lime {
  border-top: 2px solid var(--lime);
  padding-top: 15px;
}
.metric-cyan {
  border-top: 2px solid var(--cyan);
  padding-top: 15px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  color: #b8c0b2;
  font-size: 11px;
}
.metric-top b {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-left: 2px;
}
.metric-tag {
  font-size: 7px;
  letter-spacing: 0.06em;
  color: #8e9e82;
  white-space: nowrap;
}
.metric-value {
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 12px 0 5px;
  color: var(--text);
}
.metric-value small,
.metric-value .unit {
  font-size: 14px;
  margin-left: 5px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.metric-lime .metric-value {
  color: var(--lime);
}
.metric-cyan .metric-value {
  color: var(--cyan);
}
.metric-card p {
  color: var(--muted);
  font-size: 9px;
  max-width: 85%;
  line-height: 1.5;
}
.metric-icon {
  position: absolute;
  width: 38px;
  height: 28px;
  right: 18px;
  bottom: 21px;
  color: #5d704b;
  opacity: 0.6;
}
.metric-cyan .metric-icon {
  color: #438e8a;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}
.surface {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.surface-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 19px 20px 16px;
}
.surface-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 0.13em;
}
.surface-heading h2 {
  font-size: 15px;
  margin-top: 3px;
}
.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(255px, 1fr);
  gap: 16px;
  align-items: start;
}
.segmented-control {
  display: flex;
  padding: 3px;
  background: #10150f;
  border: 1px solid var(--line);
  border-radius: 5px;
  gap: 2px;
}
.segmented-control button {
  background: transparent;
  font-size: 10px;
  border-radius: 3px;
  padding: 5px 10px;
  color: var(--muted);
  white-space: nowrap;
}
.segmented-control button.active {
  background: #303b26;
  color: var(--lime);
}
.map-toolbar {
  padding: 0 20px 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.map-toolbar select {
  height: 34px;
  width: 180px;
  background-color: #20271d;
  font-size: 11px;
  border-color: #3b4831;
}
.drag-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--subtle);
  white-space: nowrap;
}
.map-viewport {
  position: relative;
  background: #161e15;
  border-block: 1px solid var(--line-soft);
  isolation: isolate;
  overflow: hidden;
}
.map-viewport #planMap {
  width: 100%;
  aspect-ratio: 900/620;
}
.map-viewport #fieldSvg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.map-viewport #geoMap {
  height: 440px;
  max-height: 65vh;
  width: 100%;
  z-index: 0;
}
.map-corner-label {
  pointer-events: none;
  position: absolute;
  left: 15px;
  top: 12px;
  color: #61755b;
  font-size: 7px;
  letter-spacing: 0.13em;
  z-index: 1;
}
.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.map-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #a4b09b;
  white-space: nowrap;
}
.legend-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  display: inline-block;
}
.lime-dot {
  background: var(--lime);
}
.cyan-dot {
  background: var(--cyan);
}
.white-dot {
  background: #f2f4eb;
}
.orange-dot {
  background: var(--orange);
}
.map-controls {
  padding: 13px 18px 2px;
}
.location-text {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.65;
}
.map-controls .button-row {
  flex-wrap: wrap;
}
.map-controls .subtle-button {
  font-size: 10px;
  height: 30px;
  padding: 0 10px;
}
.map-controls #mapStatus {
  margin-top: 8px;
  min-height: 16px;
}
.location-details {
  margin-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.location-details summary {
  font-size: 10px;
}
.search-field {
  display: flex;
  gap: 6px;
  align-items: center;
}
.search-field input {
  font-size: 11px;
  height: 35px;
}
.search-field .subtle-button {
  height: 35px;
}
.coordinate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
  margin-bottom: 12px;
}
.coordinate-grid input {
  height: 33px;
  font-size: 11px;
}
.coordinate-grid label {
  font-size: 10px;
}
.aspect-badge {
  border: 1px solid #3e4837;
  font-size: 9px;
  color: #a5b19b;
  border-radius: 3px;
  padding: 3px 7px;
  letter-spacing: 0.04em;
}
#framePreview {
  position: relative;
  align-self: start;
  background: #0c100d;
  margin: 0 14px;
  border: 1px solid #3a4735;
  overflow: hidden;
}
#previewSvg {
  width: 100%;
  height: auto;
  display: block;
}
.preview-corner {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: #758567;
  border-style: solid;
}
.top-left {
  top: 5px;
  left: 5px;
  border-width: 1px 0 0 1px;
}
.top-right {
  top: 5px;
  right: 5px;
  border-width: 1px 1px 0 0;
}
.bottom-left {
  bottom: 5px;
  left: 5px;
  border-width: 0 0 1px 1px;
}
.bottom-right {
  bottom: 5px;
  right: 5px;
  border-width: 0 1px 1px 0;
}
.frame-caption {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 9px 16px 0;
  font-size: 8px;
  color: var(--muted);
}
.frame-caption > span:last-child {
  margin-left: auto;
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--subtle);
}
.rec-dot {
  background: var(--lime);
  height: 4px;
  width: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.preview-data {
  padding: 18px 20px;
}
.feasibility {
  background: #29351f;
  border: 1px solid #465b31;
  color: #bfdb98;
  padding: 9px 11px;
  font-size: 10px;
  border-radius: 5px;
  line-height: 1.6;
}
.feasibility.warning,
.feasibility.warn {
  background: #382c1d;
  border-color: #63462d;
  color: #ecc095;
}
.feasibility.success,
.feasibility.good {
  background: #29351f;
  border-color: #465b31;
  color: #c3ef68;
}
.shot-stats {
  margin: 18px 0 0;
}
.shot-stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.shot-stats dt {
  color: var(--muted);
  font-size: 10px;
}
.shot-stats dd {
  font-size: 12px;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.preview-note {
  margin-top: 18px;
}
.preview-note .eyebrow {
  font-size: 7px;
  letter-spacing: 0.13em;
  color: #819277;
}
.preview-note p {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ratio-guide {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  background: #1b2217;
}
.guide-title {
  font-size: 10px;
  color: #9dab93;
}
.guide-bars {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}
.guide-bars > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.guide-bars > div > span:last-child {
  font-size: 11px;
  color: var(--lime);
  line-height: 1.5;
}
.guide-bars > div:last-child > span:last-child {
  color: var(--cyan);
}
.guide-bars small {
  display: block;
  font-size: 8px;
  color: var(--muted);
}
.guide-bar {
  display: block;
  width: 20px;
  height: 32px;
  border: 1px solid #59634f;
  border-radius: 2px;
  position: relative;
  background: #151b12;
}
.guide-bar:before {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  border-radius: 8px;
}
.guide-bar.forty:before {
  background: #b4dc66;
  top: 9px;
  height: 13px;
}
.guide-bar.seventy:before {
  background: var(--cyan);
  top: 4px;
  height: 23px;
}
.equipment-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 15px 2px 5px;
  font-size: 10px;
  line-height: 1.8;
  color: #9ca98f;
}
.equipment-notice > svg {
  flex-shrink: 0;
  color: #7c9562;
  margin-top: 1px;
}
.equipment-notice p {
  min-height: 16px;
  overflow-wrap: anywhere;
}
.assumptions {
  font-size: 9px;
  color: var(--subtle);
  margin: 5px 0 0 29px;
  line-height: 1.7;
}
.secondary-view {
  margin-bottom: 20px;
}
.section-description {
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.8;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
.table-scroll table {
  min-width: 650px;
}
.table-scroll th {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  background: #20271c;
  padding: 13px 18px;
  border-block: 1px solid var(--line);
}
.table-scroll td {
  font-size: 11px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.8;
  color: #d2dbcb;
}
.table-scroll td small {
  font-size: 9px;
  color: var(--muted);
  display: block;
}
.table-scroll tbody tr:last-child td {
  border-bottom: 0;
}
.table-scroll tbody tr:hover {
  background: #222b1c;
}
#specCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
#specCards > article,
#specCards > .spec-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px;
  background: var(--panel);
}
#specCards h3 {
  font-size: 14px;
  margin-bottom: 10px;
}
#specCards p,
#specCards li {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
#specCards ul {
  padding-left: 16px;
}
#specCards a {
  font-size: 10px;
}
.formula-details {
  padding: 0 20px;
}
.formula-details summary {
  padding: 17px 0;
  font-size: 12px;
}
.formula-details p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 8px 0 14px;
}
.formula-details p.formula {
  padding: 14px;
  background: #24301b;
  color: var(--lime);
  border-radius: 5px;
  line-height: 1.8;
}
.sources-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 26px;
}
.sources-details summary {
  padding: 16px 0;
  font-size: 10px;
  color: var(--muted);
}
.sources-details .details-body {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.sources-details ul {
  padding-left: 19px;
}
.sources-details li {
  margin-bottom: 8px;
}
.sources-details a {
  color: #c1d4aa;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 0.07em;
  color: #65725e;
  padding-top: 18px;
}
.footer-divider {
  margin: 0 8px;
  color: #3c4835;
}
.app-footer > span:last-child {
  letter-spacing: 0;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  z-index: 10000;
  background: #d1f09e;
  color: #26351b;
  padding: 12px 20px;
  border-radius: 7px;
  border: 1px solid #e0f7bc;
  box-shadow: 0 8px 35px #0008;
  max-width: calc(100vw - 36px);
  font-size: 12px;
  font-weight: 550;
}
#searchResults {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}
#searchResults button {
  font-size: 11px;
  text-align: left;
  padding: 9px;
  background: #222d1c;
  color: #c7d8ba;
  border: 1px solid #35472b;
  border-radius: 4px;
}
.leaflet-container {
  font-family: inherit;
  background: #d5d9cd;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #20291b;
  color: var(--text);
}
.leaflet-popup-content {
  font-size: 12px;
}
.leaflet-control-zoom a {
  color: #15200d;
}
.leaflet-div-icon {
  background: transparent;
  border: 0;
}
.map-marker {
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text);
  color: #1b2515;
  border: 3px solid #172013;
  box-shadow: 0 2px 10px #0006;
}
.map-marker.subject {
  background: var(--orange);
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }
  main {
    padding: 35px 42px 20px;
  }
  .equipment-panel {
    padding-inline: 25px;
  }
  .planner-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr);
  }
  .map-viewport #planMap {
    max-height: 600px;
  }
  .map-viewport #geoMap {
    height: 560px;
  }
  .metric-card {
    padding: 19px 23px;
  }
  .metric-value {
    font-size: 39px;
  }
  .metric-top {
    font-size: 12px;
  }
  .metric-tag {
    font-size: 8px;
  }
  .map-legend > span {
    font-size: 10px;
  }
  .drag-hint {
    font-size: 10px;
  }
  .preview-panel .surface-heading {
    padding-top: 22px;
    padding-bottom: 20px;
  }
  .preview-data {
    padding-top: 22px;
  }
  .shot-stats > div {
    padding-block: 13px;
  }
  .shot-stats dt {
    font-size: 11px;
  }
  .shot-stats dd {
    font-size: 14px;
  }
  .preview-note p {
    font-size: 11px;
  }
}
@media (max-width: 1190px) {
  .topbar {
    padding-inline: 22px;
    gap: 16px;
  }
  .main-nav {
    gap: 18px;
  }
  .main-nav button {
    font-size: 12px;
  }
  .workspace {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .equipment-panel {
    padding-inline: 18px;
  }
  main {
    padding-inline: 22px;
  }
  .planner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .preview-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .preview-panel .surface-heading {
    grid-column: 1/-1;
  }
  .preview-data {
    grid-column: 2;
    grid-row: 2/5;
    padding-top: 0;
  }
  .ratio-guide {
    grid-column: 1/-1;
    margin-top: 16px;
  }
  .preview-panel #framePreview {
    grid-row: 2;
    margin-left: 20px;
    margin-right: 0;
  }
  .frame-caption {
    grid-row: 3;
    align-self: start;
    margin-left: 22px;
    margin-right: 2px;
  }
  .ratio-guide .guide-bars {
    margin-top: 8px;
  }
  .metric-card {
    padding: 14px 13px;
  }
  .metric-value {
    font-size: 30px;
  }
  .metric-tag {
    display: none;
  }
  .metric-card p {
    max-width: 100%;
    font-size: 9px;
  }
  .metric-icon {
    display: none;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-top b {
    font-size: 11px;
  }
  .map-viewport #planMap {
    max-height: 510px;
  }
  .map-viewport #geoMap {
    height: 440px;
  }
  .map-toolbar select {
    width: 230px;
  }
}
@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    padding: 17px 22px 0;
    gap: 12px;
  }
  .brand > span {
    font-size: 18px;
  }
  .brand > img {
    width: 29px;
    height: 29px;
  }
  .header-actions {
    margin-left: auto;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 40px;
    height: 43px;
  }
  .main-nav button {
    font-size: 12px;
  }
  .workspace {
    grid-template-columns: 245px minmax(0, 1fr);
  }
  main {
    padding: 25px 18px 16px;
  }
  .equipment-panel {
    padding: 22px 15px;
  }
  .panel-title {
    gap: 8px;
  }
  .panel-title .eyebrow {
    font-size: 8px;
  }
  .live-dot {
    font-size: 9px;
  }
  .heading-mark {
    display: none;
  }
  h1 {
    font-size: 33px;
  }
  .metrics {
    gap: 8px;
  }
  .metric-card {
    min-height: 130px;
    padding: 12px 10px;
  }
  .metric-value {
    font-size: 25px;
    letter-spacing: -0.05em;
  }
  .metric-top {
    font-size: 9px;
    align-items: flex-start;
  }
  .metric-card p {
    font-size: 8px;
  }
  .metric-top b {
    font-size: 10px;
  }
  .metric-top .status-dot {
    display: none;
  }
  .metric-value small {
    font-size: 11px;
  }
  .surface-heading {
    padding-inline: 16px;
  }
  .map-toolbar {
    padding-inline: 16px;
    flex-wrap: wrap;
  }
  .map-toolbar select {
    width: 100%;
  }
  .drag-hint {
    font-size: 9px;
  }
  .segmented-control button {
    padding-inline: 8px;
  }
  .map-legend {
    gap: 9px;
  }
  .map-legend > span {
    font-size: 8px;
  }
  .preview-panel {
    display: block;
  }
  .preview-panel #framePreview {
    margin: 0 16px;
  }
  .frame-caption {
    margin-left: 17px;
    margin-right: 17px;
  }
  .preview-data {
    padding: 18px 17px;
  }
  .ratio-guide {
    margin-top: 0;
  }
  .map-controls {
    padding-inline: 14px;
  }
  .app-footer {
    flex-direction: column;
    gap: 5px;
  }
  #specCards {
    grid-template-columns: 1fr;
  }
  .coordinate-grid input {
    font-size: 10px;
    padding-inline: 6px;
  }
}
@media (max-width: 640px) {
  .topbar {
    padding: 15px 16px 0;
    gap: 10px;
  }
  .brand {
    gap: 8px;
  }
  .brand > span {
    font-size: 17px;
  }
  .brand > img {
    width: 26px;
    height: 26px;
  }
  .brand small {
    font-size: 10px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions button {
    font-size: 10px;
    height: 31px;
    padding-inline: 9px;
  }
  .header-actions .quiet-button svg {
    display: none;
  }
  .main-nav {
    gap: 30px;
    height: 42px;
  }
  .main-nav button {
    font-size: 11px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .equipment-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .panel-title {
    grid-column: 1/-1;
    padding-bottom: 15px;
  }
  .panel-title .eyebrow {
    font-size: 9px;
  }
  .live-dot {
    font-size: 10px;
  }
  .setting-section {
    padding-top: 18px;
    padding-bottom: 6px;
    min-width: 0;
  }
  .setting-section:first-of-type {
    grid-column: 1;
  }
  .setting-section:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2/4;
  }
  .setting-section:nth-of-type(3) {
    grid-column: 1;
    margin-top: 12px;
  }
  .setting-section h2 {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .setting-section label {
    font-size: 10px;
    margin-top: 11px;
  }
  .setting-section select,
  .setting-section input:not([type='range']):not([type='checkbox']) {
    font-size: 11px;
    height: 36px;
    padding-inline: 8px;
  }
  .setting-section select {
    padding-right: 24px;
    background-position: right 8px center;
  }
  .field-note {
    font-size: 9px;
  }
  .setting-section .focal-heading {
    margin-top: 17px;
  }
  .setting-section .focal-heading .number-unit input {
    font-size: 20px;
    width: 69px;
  }
  .setting-section .focal-heading label {
    margin: 0;
  }
  .field-grid {
    gap: 7px;
    grid-template-columns: 1fr;
  }
  .input-unit > span {
    top: 10px;
  }
  .setting-section .input-unit input {
    padding-right: 30px !important;
  }
  .toggle-row {
    padding: 9px;
  }
  .toggle-row small {
    font-size: 8px;
  }
  .custom-fields {
    padding-inline: 8px;
  }
  .custom-fields .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .custom-fields .button-row {
    gap: 5px;
  }
  .custom-fields .button-row button {
    font-size: 9px;
    padding-inline: 6px;
    height: 30px;
    white-space: normal;
  }
  .toggle-track {
    width: 27px;
    height: 16px;
  }
  .toggle-track:before {
    width: 10px;
    height: 10px;
  }
  .toggle-row input:checked + .toggle-track:before {
    transform: translateX(11px);
  }
  .check-row {
    font-size: 9px !important;
    line-height: 1.6;
  }
  .range-labels {
    font-size: 8px;
  }
  .sidebar-foot {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 16px;
    font-size: 9px;
  }
  .advanced-settings summary {
    font-size: 9px;
    gap: 5px;
  }
  .equipment-panel .details-body {
    padding-bottom: 0;
  }
  main {
    padding: 25px 16px 16px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading .eyebrow {
    font-size: 7px;
  }
  h1 {
    font-size: 34px;
    margin-top: 11px;
    line-height: 1.25;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 260px;
    line-height: 1.8;
  }
  .metrics {
    gap: 7px;
    margin-bottom: 18px;
  }
  .metric-card {
    min-height: 127px;
    padding: 12px 9px;
  }
  .metric-top {
    font-size: 9px;
    line-height: 1.5;
    min-height: 27px;
  }
  .metric-top b {
    font-size: 10px;
    display: block;
    margin-left: 0;
  }
  .metric-value {
    font-size: 24px;
    margin: 7px 0 4px;
  }
  .metric-value small {
    font-size: 10px;
    margin-left: 3px;
  }
  .metric-card p {
    font-size: 8px;
    line-height: 1.7;
  }
  .metric-top .status-dot {
    display: block;
    margin-top: 5px;
  }
  .planner-grid {
    gap: 14px;
  }
  .surface-heading {
    padding: 17px 16px 14px;
  }
  .surface-heading .eyebrow {
    font-size: 7px;
  }
  .surface-heading h2 {
    font-size: 14px;
  }
  .segmented-control button {
    font-size: 10px;
    padding: 4px 8px;
  }
  .map-toolbar {
    padding-bottom: 12px;
    gap: 7px;
  }
  .map-toolbar select {
    width: 100%;
    font-size: 11px;
    height: 34px;
  }
  .drag-hint {
    font-size: 8px;
  }
  .map-viewport #planMap {
    aspect-ratio: 900/620;
  }
  .map-viewport #geoMap {
    height: 350px;
  }
  .map-corner-label {
    font-size: 6px;
  }
  .map-legend {
    gap: 11px;
    padding: 11px 7px;
  }
  .map-legend > span {
    font-size: 7px;
    gap: 4px;
  }
  .legend-dot {
    width: 5px;
    height: 5px;
  }
  .map-controls {
    padding-top: 12px;
  }
  .location-text {
    font-size: 9px;
  }
  .location-details summary {
    font-size: 9px;
  }
  .preview-panel #framePreview {
    margin-inline: 16px;
  }
  .preview-data {
    padding-top: 17px;
  }
  .feasibility {
    font-size: 11px;
  }
  .shot-stats dt {
    font-size: 11px;
  }
  .shot-stats dd {
    font-size: 13px;
  }
  .preview-note p {
    font-size: 10px;
  }
  .ratio-guide {
    padding: 14px 17px 17px;
  }
  .guide-bars {
    gap: 35px;
  }
  .guide-title {
    font-size: 10px;
  }
  .guide-bars > div > span:last-child {
    font-size: 12px;
  }
  .guide-bars small {
    font-size: 9px;
  }
  .equipment-notice {
    font-size: 9px;
    gap: 7px;
    line-height: 1.9;
  }
  .equipment-notice > svg {
    width: 16px;
    height: 16px;
  }
  .assumptions {
    font-size: 8px;
    margin-left: 24px;
  }
  .sources-details {
    margin-top: 21px;
  }
  .sources-details summary {
    font-size: 9px;
  }
  .sources-details .details-body {
    font-size: 9px;
  }
  .app-footer {
    font-size: 7px;
  }
  .coordinate-grid {
    grid-template-columns: 1fr 1fr;
  }
  .coordinate-grid input {
    font-size: 11px;
  }
  .formula-details {
    padding-inline: 16px;
  }
  .formula-details p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body {
    background: #fff;
    color: #111;
  }
  .topbar,
  .equipment-panel,
  .header-actions,
  .main-nav,
  .button-row,
  .location-details,
  .sources-details,
  .app-footer {
    display: none !important;
  }
  .workspace {
    display: block;
  }
  main {
    padding: 0;
  }
  .surface,
  .metric-card {
    break-inside: avoid;
    background: #fff;
    border-color: #aaa;
    color: #111;
  }
  .planner-grid {
    grid-template-columns: 1.7fr 1fr;
  }
  .metric-value,
  .metric-lime .metric-value,
  .metric-cyan .metric-value {
    color: #111;
  }
  #toast {
    display: none !important;
  }
}

/* Application-rendered controls and technical details. */
.cyan {
  color: var(--cyan);
}
#fieldSvg {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}
.plan-marker {
  cursor: grab;
  outline: none;
}
.plan-marker:active {
  cursor: grabbing;
}
.plan-marker:focus-visible > circle:first-child {
  opacity: 0.4;
  stroke: var(--lime);
  stroke-width: 2;
}
.geo-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #1c2718;
  background: #edf3e5;
  color: #1b2516;
  box-shadow: 0 2px 12px #0007;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}
.geo-marker.subject {
  background: var(--orange);
  border-color: #563520;
  color: #382212;
}
.geo-marker.camera {
  background: #edf3e5;
}
.source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-top: 14px;
  padding-bottom: 10px;
}
.source-links a {
  display: block;
  color: #c1d4aa;
  line-height: 1.7;
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}
.source-links a:hover {
  color: var(--lime);
  text-decoration: underline;
}
#specCards .spec-card h3 {
  margin-top: 6px;
}
.mode-specs {
  margin: 16px 0 12px;
  font-size: 12px;
  line-height: 1.6;
}
.mode-specs :is(th, td) {
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 0;
  vertical-align: baseline;
  font-weight: 400;
}
.mode-specs thead th {
  color: var(--muted);
  font-size: 11px;
  border-color: var(--line);
}
.mode-specs :is(th, td):nth-child(n + 2) {
  text-align: right;
  padding-left: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mode-specs .crop-factor {
  color: var(--lime);
  font-weight: 650;
}
.mode-specs .height-note {
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 1100px) {
  .mode-specs .height-note {
    display: block;
    max-width: 8em;
    margin-left: auto;
    white-space: normal;
    word-break: keep-all;
  }
}
#specCards .spec-card > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.shot-stats dd {
  white-space: normal;
  text-align: right;
  max-width: 65%;
  overflow-wrap: anywhere;
}
.aspect-badge {
  white-space: nowrap;
}
.comparison-factors {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
@media (max-width: 640px) {
  .source-links {
    grid-template-columns: 1fr;
  }
  .shot-stats dd {
    max-width: 63%;
  }
  .map-viewport #planMap {
    aspect-ratio: 900/620;
    overflow: hidden;
  }
}
.floorplan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 12px;
  color: var(--muted);
  font-size: 11px;
}
.floorplan-toolbar .button-row {
  gap: 4px;
}
.floorplan-toolbar button {
  font-size: 10px;
  padding-inline: 9px;
  height: 30px;
}
.plan-provenance {
  padding: 10px 0 14px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.plan-provenance a {
  margin-right: 10px;
}
.plan-provenance p {
  margin-top: 6px;
}
.plan-provenance span {
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 3px;
}
.calibration-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.calibration-controls > div {
  flex: 1;
  min-width: 150px;
}
.calibration-controls label {
  margin-top: 0;
}
#planUpload {
  height: auto;
  padding: 8px;
}
#calibrationStatus {
  min-height: 20px;
  color: var(--lime);
}
.map-panel.expanded {
  position: fixed;
  inset: 20px;
  z-index: 2000;
  overflow: auto;
  box-shadow: 0 0 0 100vmax #050805e8;
}
.map-panel.expanded .map-viewport {
  max-width: 1200px;
  margin: auto;
}
.map-panel.expanded #planMap {
  height: min(68vh, 760px);
  aspect-ratio: auto;
}
.map-panel.expanded #fieldSvg {
  width: 100%;
  height: 100%;
}
.map-panel.expanded #geoMap {
  height: 65vh;
}
.map-panel.expanded .map-controls {
  max-width: 1200px;
  margin: auto;
}
.floorplan-status {
  font-size: 14px;
  fill: #475447;
}
@media (max-width: 640px) {
  .floorplan-toolbar {
    padding-inline: 14px;
    flex-wrap: wrap;
  }
  .floorplan-toolbar > span {
    max-width: 140px;
  }
  .map-panel.expanded {
    inset: 5px;
  }
  .calibration-controls .subtle-button,
  .calibration-controls .accent-button {
    font-size: 10px;
  }
  .plan-provenance {
    font-size: 9px;
  }
}
/* Keep native page gestures separate from direct manipulation of the floor plan. */
#planMap,
#fieldSvg,
#fieldSvg .plan-marker,
#fieldSvg [data-marker-hit] {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#planMap {
  overscroll-behavior: contain;
}
#fieldSvg .plan-marker [data-marker-hit] {
  pointer-events: all;
}
#fieldSvg.is-dragging,
#fieldSvg.is-dragging .plan-marker {
  cursor: grabbing;
}
@media (pointer: coarse) {
  #placeCamera,
  #placeSubject,
  #rotatePlan,
  #expandPlan {
    min-height: 44px;
  }
  #placeCamera,
  #placeSubject {
    flex: 1;
    white-space: normal;
  }
  .drag-hint {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .header-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}
