/* 직원 1단계 — 전문가 대시보드 + 컴팩트 KPI 카드 */
.staff-flow-section--p1 {
  margin-bottom: 12px;
  align-items: stretch;
}

.staff-flow-num--p1 {
  display: none;
}

.staff-flow-body--p1 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 직원 결과 1단계: 뷰포트 flex(min-height:0)가 대시보드를 줄여 지도를 잘라내지 않게 함 */
body[data-role="staff"] #staffFlow .staff-flow-page.active .staff-flow-section--p1,
body[data-role="staff"] #staffFlow .staff-flow-page.active .staff-flow-body--p1 {
  flex: 1 0 auto;
  min-height: auto;
  overflow: visible;
}

/* ── 대시보드 셸 ── */
.staff-p1-dash {
  --p1-dash-radius: 16px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  border-radius: var(--p1-dash-radius);
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 8px rgba(15, 23, 42, 0.06),
    0 16px 40px rgba(15, 23, 42, 0.08);
}

.staff-p1-dash__main {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  align-items: stretch;
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
}

.staff-p1-dash__zones {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: stretch;
  padding: 14px;
}

.staff-p1-dash__stack {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.staff-p1-compact-grid.staff-p1-compact-grid--unified {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  grid-template-columns: unset;
}

.staff-p1-compact-grid.staff-p1-compact-grid--unified > .staff-p1-compact-divider {
  width: 100%;
  flex: 0 0 auto;
}

.staff-p1-compact-grid.staff-p1-compact-grid--unified > .staff-p1-compact-card,
.staff-p1-compact-grid.staff-p1-compact-grid--unified > .staff-p1-compact-grid--zone-row {
  width: 100%;
  min-width: 0;
}

.staff-p1-dash__zone {
  --zone-accent: #2563eb;
  --zone-bg: #eff6ff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  border-top: 3px solid var(--zone-accent);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.staff-p1-dash__zone--s1 {
  --zone-accent: #2563eb;
  --zone-bg: #eff6ff;
}

.staff-p1-dash__zone--s2 {
  --zone-accent: #0d9488;
  --zone-bg: #f0fdfa;
}

.staff-p1-dash__zone--s3 {
  --zone-accent: #7c3aed;
  --zone-bg: #f5f3ff;
}

.staff-p1-dash__zone-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.staff-p1-dash__zone-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: var(--zone-bg);
  font-size: 0.95rem;
  line-height: 1;
}

.staff-p1-dash__zone-tag {
  flex-shrink: 0;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--zone-accent);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.staff-p1-dash__zone-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
  letter-spacing: -0.01em;
}

.staff-p1-dash__map-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 360px;
  align-self: stretch;
  margin: 14px 14px 14px 0;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.staff-p1-dash__map-panel .staff-flow-page1-map-row,
.staff-p1-dash__map-row {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 280px;
  margin: 0;
  padding: 0 0 10px;
  width: 100%;
}

.staff-p1-dash__map-row .staff-flow-map-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 280px;
  margin-top: 0;
  flex: 1 1 auto;
}

/* 용도지역 패널은 상세 다이얼로그로 옮김 — 지도 행에 남으면 높이를 빼앗음 */
.staff-p1-dash__map-row > .staff-flow-page1-landuse-aside {
  display: none;
}

.staff-p1-dash__map-head {
  flex-shrink: 0;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.staff-p1-dash__map-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
  letter-spacing: -0.01em;
}

.staff-p1-dash__map-title::before {
  content: "🛰️ ";
}

.staff-p1-dash__map-sub {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--muted, #64748b);
}

.staff-p1-section-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted, #64748b);
  letter-spacing: 0.02em;
}

.staff-p1-compact-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-p1-compact-group__label {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted, #64748b);
}

.staff-p1-compact-grid--permit {
  grid-template-columns: 1fr;
}

.staff-flow-integrated-placeholder {
  margin: 0;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px dashed var(--border, #cbd5e1);
  background: var(--bg-subtle, #f8fafc);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-secondary, #475569);
}

.staff-flow-integrated-placeholder__btn {
  display: inline-block;
  margin-top: 8px;
}

.staff-p1-detail-dialog__body--eum .staff-review-timeline {
  margin-bottom: 10px;
}

.staff-p1-detail-dialog__body--permit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-p1-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.staff-p1-compact-grid--zone {
  grid-template-columns: 1fr;
  gap: 8px;
}

.staff-p1-compact-grid--address-stack {
  gap: 10px;
}

.staff-p1-compact-divider {
  margin: 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
  height: 0;
  overflow: hidden;
}

.staff-p1-compact-grid.staff-p1-compact-grid--zone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 6px;
  width: 100%;
  align-items: stretch;
}

.staff-p1-compact-grid--zone-row > .staff-p1-compact-card[data-staff-p1-detail="landuse"] {
  min-width: 0;
  padding-right: 14px;
}

.staff-p1-compact-grid--zone-row > .staff-p1-compact-card--kepco-panel {
  min-width: 0;
}

.staff-p1-compact-card {
  --p1-accent: #94a3b8;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 8px 10px;
  padding-right: 42px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--p1-accent);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  overflow: hidden;
  box-shadow: none;
  transition: background 0.12s, border-color 0.12s;
}

.staff-p1-compact-card::before {
  display: none;
}

.staff-p1-compact-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.staff-p1-compact-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.staff-p1-compact-card--ok {
  --p1-accent: #16a34a;
  background: #fff;
  border-left-color: #16a34a;
}

.staff-p1-compact-card--warn {
  --p1-accent: #d97706;
  background: #fff;
  border-left-color: #d97706;
}

.staff-p1-compact-card--fail {
  --p1-accent: #dc2626;
  background: #fff;
  border-left-color: #dc2626;
}

.staff-p1-compact-card--ok:hover,
.staff-p1-compact-card--warn:hover,
.staff-p1-compact-card--fail:hover,
.staff-p1-compact-card--neutral:hover {
  background: #f8fafc;
}

.staff-p1-compact-card--neutral {
  --p1-accent: #94a3b8;
  border-left-color: #94a3b8;
}

.staff-p1-compact-card[data-tone="ok"]::after,
.staff-p1-compact-card[data-tone="warn"]::after,
.staff-p1-compact-card[data-tone="fail"]::after {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.staff-p1-compact-card[data-tone="ok"]::after {
  content: "양호";
  color: #15803d;
}

.staff-p1-compact-card[data-tone="warn"]::after {
  content: "주의";
  color: #b45309;
}

.staff-p1-compact-card[data-tone="fail"]::after {
  content: "불가";
  color: #b91c1c;
}

.staff-p1-compact-card[data-tone="ok"] .staff-p1-compact-card__action,
.staff-p1-compact-card[data-tone="warn"] .staff-p1-compact-card__action,
.staff-p1-compact-card[data-tone="fail"] .staff-p1-compact-card__action {
  top: auto;
  bottom: 8px;
  transform: none;
}

.staff-p1-compact-card__action {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  font-weight: 600;
  color: #94a3b8;
  opacity: 0.7;
  transition: color 0.12s, opacity 0.12s;
  pointer-events: none;
}

.staff-p1-compact-card:hover .staff-p1-compact-card__action {
  opacity: 1;
  color: #475569;
}

.staff-p1-compact-card__label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #64748b;
}

.staff-p1-compact-card[data-staff-p1-detail="address"] .staff-p1-compact-card__label::before,
.staff-p1-compact-card[data-staff-p1-detail="kepco"] .staff-p1-compact-card__label::before,
.staff-p1-compact-card[data-staff-p1-detail="landuse"] .staff-p1-compact-card__label::before,
.staff-p1-compact-card[data-staff-p1-detail="eum"] .staff-p1-compact-card__label::before,
.staff-p1-compact-card[data-staff-p1-detail="feasibility"] .staff-p1-compact-card__label::before,
.staff-p1-compact-card--compact-feasibility .staff-p1-compact-card__label::before,
.staff-p1-compact-card[data-staff-p1-detail="permit"] .staff-p1-compact-card__label::before {
  content: none;
  display: none;
}

.staff-p1-compact-card__value {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink, #0f172a);
  word-break: keep-all;
}

.staff-p1-compact-card--ok .staff-p1-compact-card__value {
  color: #15803d;
}

.staff-p1-compact-card--warn .staff-p1-compact-card__value {
  color: #b45309;
}

.staff-p1-compact-card--fail .staff-p1-compact-card__value {
  color: #b91c1c;
}

/* 지자체 조례 · 인허가: 가능/불가 대신 허가기준 3종 로드 상태 */
.staff-p1-compact-card--permit[data-tone="ok"]::after {
  content: "조회";
}

.staff-p1-compact-card--permit[data-tone="warn"]::after {
  content: "부분";
}

.staff-p1-compact-card--permit .staff-p1-compact-card__criteria {
  width: 100%;
  margin: 0;
  min-width: 0;
}

.staff-p1-compact-card__criteria-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.staff-p1-compact-card__criteria-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 2px 8px;
  border-radius: 0;
  border: none;
  border-left: 2px solid #cbd5e1;
  background: transparent;
  min-width: 0;
}

.staff-p1-compact-card__criteria-item--ok {
  border-left-color: #16a34a;
  background: transparent;
}

.staff-p1-compact-card__criteria-item--warn {
  border-left-color: #d97706;
  background: transparent;
}

.staff-p1-compact-card__criteria-item--neutral {
  border-left-color: #cbd5e1;
  background: transparent;
}

.staff-p1-compact-card__criteria-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
  word-break: keep-all;
  text-align: left;
}

.staff-p1-compact-card__criteria-value {
  flex-shrink: 0;
  font-size: 0.64rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.staff-p1-compact-card__criteria-item--ok .staff-p1-compact-card__criteria-value {
  color: #15803d;
}

.staff-p1-compact-card__criteria-item--warn .staff-p1-compact-card__criteria-value {
  color: #b45309;
}

.staff-p1-compact-card__meta,
.staff-p1-compact-card__sub {
  font-size: 0.68rem;
  line-height: 1.35;
  color: #64748b;
}

.staff-p1-compact-card--kepco-panel {
  min-height: auto;
  padding-bottom: 8px;
  padding-right: 10px;
  overflow: visible;
}

.staff-p1-compact-card--kepco-panel .staff-p1-compact-card__label {
  margin-bottom: 2px;
}

.staff-p1-compact-card--kepco-panel .staff-p1-compact-card__action {
  top: 8px;
  transform: none;
}

.staff-p1-compact-card__kepco-body {
  width: 100%;
  margin: 2px 0 0;
  pointer-events: none;
  min-height: 0;
}

.staff-p1-compact-card__kepco-panel-inner {
  width: 100%;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.staff-p1-compact-card__kepco-panel-inner.staff-rdash-widget__kepco--empty,
.staff-p1-compact-card__kepco-panel-inner.staff-rdash-widget__kepco--loading,
.staff-p1-compact-card__kepco-panel-inner.staff-rdash-widget__kepco--neutral {
  border: 0;
  background: transparent;
  padding: 0;
}

.staff-p1-compact-card__kepco-body .staff-rdash-kepco-widgets,
.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 0;
  width: 100%;
}

.staff-p1-compact-card__kepco-body .staff-rdash-kepco-card--compact,
.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--compact {
  width: 100%;
  min-width: 0;
  min-height: 3.1rem;
  height: 100%;
  padding: 5px 6px;
  gap: 1px;
  box-sizing: border-box;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--compact .staff-rdash-kepco-card__icon {
  font-size: 0.82rem;
  line-height: 1;
}

.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--compact .staff-rdash-kepco-card__title {
  margin: 0;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.25;
  color: #64748b;
}

.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--compact .staff-rdash-kepco-card__remain {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--compact .staff-rdash-kepco-card__hint {
  margin: 0;
  font-size: 0.52rem;
  line-height: 1.25;
}

.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--compact .staff-rdash-kepco-card__condition {
  margin: 0;
  font-size: 0.52rem;
  line-height: 1.2;
}

.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--ok,
.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--warn,
.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--fail {
  background: #fff;
  border-color: #e2e8f0;
}

.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--ok {
  border-left: 3px solid #16a34a;
}

.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--warn {
  border-left: 3px solid #d97706;
}

.staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-card--fail {
  border-left: 3px solid #dc2626;
}

.staff-p1-compact-card--kepco-panel .staff-p1-compact-card__meta[hidden] {
  display: none;
}

.staff-p1-compact-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.staff-p1-compact-card__chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: none;
}

.staff-p1-compact-card__chip--ok {
  border-color: #86efac;
  color: #15803d;
}

.staff-p1-compact-card__chip--warn {
  border-color: #fde68a;
  color: #b45309;
}

.staff-p1-compact-card__chip--fail {
  border-color: #fecaca;
  color: #b91c1c;
}

.staff-p1-compact-card__chip--loading,
.staff-p1-compact-card__chip--empty {
  border-style: dashed;
  color: var(--muted, #64748b);
}

.staff-p1-compact-card__hint {
  display: none;
}

.staff-flow-page1-map-row {
  margin: 0;
  flex: 1;
  min-height: 0;
  padding: 0 10px 10px;
}

.staff-flow-map-wrap--p1-compact {
  border: none;
  border-radius: 0;
  overflow: hidden;
}

.staff-flow-map-wrap--p1-compact .staff-flow-map-controls__head .address-map-title {
  display: none;
}

.staff-flow-map-wrap--p1-compact .staff-flow-map-frame,
body[data-role="staff"] .staff-flow-map-wrap--p1-compact .staff-flow-map-frame {
  flex: 1 0 280px;
  height: min(440px, 54vh);
  min-height: 280px;
}

/* 1단계 지도 — 레이어·도로 접이식 패널 */
.staff-flow-map-wrap--p1-compact .staff-flow-map-controls {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.staff-flow-map-wrap--p1-compact .staff-flow-map-controls__head {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.staff-flow-map-layers-panel {
  flex: 1 1 100%;
  width: 100%;
  border-top: none;
  padding: 0.45rem 0.55rem 0.5rem;
  background: var(--surface, #f8fafc);
}

.staff-flow-map-layers-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink, #1e293b);
  background: #fff;
  border: 1.5px solid var(--border, #cbd5e1);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.staff-flow-map-layers-panel__summary::-moz-list-bullet {
  list-style: none;
  display: none;
}

.staff-flow-map-layers-panel__summary::-webkit-details-marker {
  display: none;
}

.staff-flow-map-layers-panel__summary:hover {
  border-color: var(--accent, #2563eb);
  background: color-mix(in srgb, var(--accent-soft, #dbeafe) 55%, #fff);
  color: var(--accent, #1d4ed8);
}

.staff-flow-map-layers-panel__summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent, #2563eb) 55%, transparent);
  outline-offset: 2px;
}

.staff-flow-map-layers-panel[open] > .staff-flow-map-layers-panel__summary {
  border-color: var(--accent, #2563eb);
  background: color-mix(in srgb, var(--accent-soft, #dbeafe) 70%, #fff);
  color: var(--accent, #1d4ed8);
}

.staff-flow-map-layers-panel__summary::before {
  content: "▸";
  flex-shrink: 0;
  margin-right: 2px;
  font-size: 0.95rem;
  color: currentColor;
  transition: transform 0.15s ease;
}

.staff-flow-map-layers-panel[open] > .staff-flow-map-layers-panel__summary::before {
  transform: rotate(90deg);
}

.staff-flow-map-layers-panel__title {
  flex-shrink: 0;
}

.staff-flow-map-layers-panel__badge {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted, #475569);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-flow-map-layers-panel[open] > .staff-flow-map-layers-panel__summary .staff-flow-map-layers-panel__badge {
  color: color-mix(in srgb, var(--accent, #2563eb) 75%, #475569);
}

.staff-flow-map-layers-panel__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0.6rem 0.55rem;
  border-top: 1px dashed var(--border, #e2e8f0);
}

.staff-flow-map-layers-panel__body .staff-flow-map-controls-secondary {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.staff-flow-map-wrap--p1-compact .staff-flow-map-road-type-row {
  flex: none;
  width: 100%;
}

.staff-flow-map-wrap--p1-compact .staff-flow-map-overlay-group {
  margin-left: 0;
  justify-content: flex-start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.staff-flow-map-wrap--p1-compact .staff-flow-map-btn {
  width: 100%;
  padding: 4px 6px;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-flow-map-upis-panel {
  margin-top: 2px;
  border: none;
  border-radius: 10px;
  background: transparent;
  overflow: visible;
}

.staff-flow-map-upis-panel[hidden] {
  display: none !important;
}

.staff-flow-map-upis-panel__summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink, #1e293b);
  background: #fff;
  border: 1.5px solid var(--border, #cbd5e1);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.staff-flow-map-upis-panel__summary::-moz-list-bullet {
  list-style: none;
  display: none;
}

.staff-flow-map-upis-panel__summary::-webkit-details-marker {
  display: none;
}

.staff-flow-map-upis-panel__summary:hover {
  border-color: #7c3aed;
  background: color-mix(in srgb, #ede9fe 60%, #fff);
  color: #6d28d9;
}

.staff-flow-map-upis-panel__summary:focus-visible {
  outline: 2px solid color-mix(in srgb, #7c3aed 50%, transparent);
  outline-offset: 2px;
}

.staff-flow-map-upis-panel[open] > .staff-flow-map-upis-panel__summary {
  border-color: #7c3aed;
  background: color-mix(in srgb, #ede9fe 75%, #fff);
  color: #6d28d9;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.staff-flow-map-upis-panel__summary::before {
  content: "▸";
  flex-shrink: 0;
  margin-right: 8px;
  font-size: 0.95rem;
  color: currentColor;
}

.staff-flow-map-upis-panel[open] > .staff-flow-map-upis-panel__summary::before {
  content: "▾";
}

.staff-flow-map-upis-panel__body {
  padding: 8px 10px 10px;
  border: 1.5px solid #7c3aed;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

.staff-flow-map-upis-panel__hint {
  margin: 6px 0 4px;
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--muted, #64748b);
}

.staff-flow-map-wrap--p1-compact .staff-upis-road-filter {
  padding: 0;
  border: none;
  background: transparent;
}

.staff-flow-map-wrap--p1-compact .staff-nlis-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-flow-map-wrap--p1-compact .staff-flow-map-api-status {
  padding: 0.3rem 0.6rem 0.45rem;
}

@media (max-width: 520px) {
  .staff-flow-map-wrap--p1-compact .staff-flow-map-overlay-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── 1단계 상세 다이얼로그 (공통) ── */
.staff-p1-detail-dialog,
.staff-rdash-step1-detail-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(720px, calc(100vw - 24px));
  width: 100%;
}

.staff-p1-detail-dialog--wide {
  max-width: min(920px, calc(100vw - 24px));
}

.staff-p1-detail-dialog::backdrop,
.staff-rdash-step1-detail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.staff-p1-detail-dialog__box,
.staff-rdash-step1-detail-dialog__box {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.staff-p1-detail-dialog__head,
.staff-rdash-step1-detail-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.staff-p1-detail-dialog__title,
.staff-rdash-step1-detail-dialog__title {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.staff-p1-detail-dialog__back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.staff-p1-detail-dialog__back:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.staff-p1-detail-dialog__back.hidden {
  display: none;
}

.staff-p1-detail-dialog__close,
.staff-rdash-step1-detail-dialog__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.staff-p1-detail-dialog__close:hover,
.staff-rdash-step1-detail-dialog__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.staff-p1-detail-dialog__body,
.staff-rdash-step1-detail-dialog__body {
  padding: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.staff-p1-detail-dialog__section-label {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink, #0f172a);
}

.staff-p1-feasibility-breakdown {
  margin-top: 0.35rem;
  font-size: 0.85em;
  color: var(--text-muted, #666);
}

.staff-p1-detail-dialog__body .staff-flow-page1-landuse-aside {
  flex: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  border-left-width: 4px;
}

body[data-role="staff"] .staff-p1-detail-dialog .staff-step2-map-kepco-row,
.staff-p1-detail-dialog__body .staff-step2-map-kepco-row {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  height: auto;
}

body[data-role="staff"] .staff-p1-detail-dialog .staff-step2-map-wrap,
body[data-role="staff"] .staff-p1-detail-dialog .staff-step2-kepco-panel,
.staff-p1-detail-dialog__body .staff-step2-map-wrap,
.staff-p1-detail-dialog__body .staff-step2-kepco-panel {
  flex: none;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
}

.staff-p1-detail-dialog__body .staff-step2-map-frame,
body[data-role="staff"] .staff-p1-detail-dialog .staff-step2-map-frame {
  height: 220px;
}

.staff-step2-kepco-panel__title,
.staff-step2-kepco-step-heading,
.staff-kepco-result-list-heading {
  margin: 0 0 0.4rem;
}

.staff-kepco-result-list-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.staff-step2-kepco-tier-widgets--openable {
  cursor: pointer;
  border-radius: 10px;
  outline: 1px solid transparent;
  transition: outline-color 0.15s ease, box-shadow 0.15s ease;
}

.staff-step2-kepco-tier-widgets--openable:hover,
.staff-step2-kepco-tier-widgets--openable:focus-visible {
  outline: 2px solid #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.staff-step2-kepco-tier-widgets--openable::after {
  content: "탭하여 조회 결과 목록 보기";
  display: block;
  margin: 0.28rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563eb;
}

.staff-step2-kepco-step-open {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 0.45rem 0 0.15rem;
  min-height: 2.45rem;
  font-weight: 700;
}

.staff-p1-detail-dialog__body .staff-step2-kepco-step-panel {
  display: none;
}

.staff-p1-detail-dialog__body .staff-step2-kepco-step-panel.is-open,
#staffP1KepcoDetailDialog.staff-p1-detail-dialog--kepco-results .staff-step2-kepco-step-panel {
  display: grid !important;
}

#staffP1KepcoDetailDialog.staff-p1-detail-dialog--kepco-results .staff-step2-kepco-step-open {
  display: none !important;
}

#staffP1KepcoDetailDialog.staff-p1-detail-dialog--kepco-results .staff-kepco-result-list-heading {
  margin: 0.7rem 0 0.45rem;
  font-size: 0.95rem;
}

#staffP1KepcoDetailDialog.staff-p1-detail-dialog--kepco-results .kepco-capacity-list {
  max-height: min(48vh, 420px);
}

/* 요약 대시보드 1단계 컴팩트 위젯 */
.staff-rdash-widget--step1-compact .staff-rdash-widget__facts,
.staff-rdash-widget--step1-compact .staff-rdash-widget__kepco,
.staff-rdash-widget--step1-compact .staff-rdash-widget__sub:not(.staff-rdash-step1-compact__hint) {
  display: none;
}

.staff-rdash-widget--step1-compact {
  padding: 7px 9px;
  gap: 8px;
}

.staff-rdash-widget--step1-compact .staff-rdash-widget__value {
  font-size: 0.78rem;
}

.staff-rdash-step1-compact__kepco-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.staff-rdash-step1-compact__kepco-chip {
  display: inline-flex;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.3;
}

.staff-rdash-step1-compact__kepco-chip--ok {
  border-color: #86efac;
  color: #15803d;
}

.staff-rdash-step1-compact__kepco-chip--warn {
  border-color: #fde68a;
  color: #b45309;
}

.staff-rdash-step1-compact__kepco-chip--fail {
  border-color: #fecaca;
  color: #b91c1c;
}

.staff-rdash-step1-compact__status {
  margin: 2px 0 0;
  font-size: 0.62rem;
  color: #64748b;
}

.staff-rdash-step1-compact__hint {
  display: block;
  margin-top: 3px;
  font-size: 0.58rem;
  font-weight: 600;
  color: #2563eb;
}

/* 요약 대시보드 1단계 상세 팝업 본문 */
.staff-rdash-step1-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-rdash-step1-detail__address {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #334155;
}

.staff-rdash-step1-detail__section {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.staff-rdash-step1-detail__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.staff-rdash-step1-detail__section-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-rdash-step1-detail__section-meta {
  font-size: 0.72rem;
  color: #64748b;
}

.staff-rdash-step1-detail__section-body {
  padding: 12px;
}

.staff-rdash-step1-detail__block-label {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-rdash-step1-detail__loading,
.staff-rdash-step1-detail__empty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.staff-rdash-step1-detail__spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #dbeafe;
  border-top-color: #2563eb;
  animation: staff-rdash-landuse-spin 0.75s linear infinite;
}

.staff-rdash-step1-detail__loading-title {
  margin: 0 0 2px;
  font-size: 0.88rem;
  font-weight: 700;
}

.staff-rdash-step1-detail__loading-desc,
.staff-rdash-step1-detail__empty-text,
.staff-rdash-step1-detail__parcel-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}

.staff-rdash-step1-detail__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.staff-rdash-step1-detail__action {
  margin: 0;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.staff-rdash-step1-detail__action--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.staff-rdash-step1-detail__action--outline {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.staff-rdash-step1-detail__action--ghost {
  background: transparent;
}

@media (max-width: 1100px) {
  .staff-p1-dash__main {
    grid-template-columns: 1fr;
  }

  .staff-p1-dash__map-panel {
    margin: 0 14px 14px;
  }
}

@media (max-width: 960px) {
  .staff-p1-compact-grid:not(.staff-p1-compact-grid--unified):not(.staff-p1-compact-grid--zone-row) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .staff-p1-compact-grid:not(.staff-p1-compact-grid--unified):not(.staff-p1-compact-grid--zone-row) {
    grid-template-columns: 1fr;
  }

  .staff-p1-compact-grid.staff-p1-compact-grid--zone-row {
    grid-template-columns: 1fr;
  }

  .staff-p1-compact-card__kepco-body .staff-rdash-kepco-widgets,
  .staff-p1-compact-card__kepco-panel-inner .staff-rdash-kepco-widgets {
    grid-template-columns: 1fr;
  }

  .staff-flow-map-wrap--p1-compact .staff-flow-map-frame,
  body[data-role="staff"] .staff-flow-map-wrap--p1-compact .staff-flow-map-frame {
    height: min(280px, 45vh);
    min-height: 220px;
    flex-basis: 220px;
  }
}
