/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.15_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.15_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!../../packages/ui-primitives/src/tokens.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/**
 * BalancePoint Design Tokens — Notion-style
 * 순백 배경 · 미니멀 크롬 · 타이포그래피 우선 · 인라인 SVG 아이콘
 */

:root {
  /* ─── Neutral palette (Notion 참고) ─── */
  --bp-color-bg: #ffffff;
  --bp-color-bg-subtle: #f7f7f5;
  --bp-color-bg-hover: #efefee;
  --bp-color-bg-active: #e9e9e7;
  --bp-color-border: #e9e9e7;
  --bp-color-border-strong: #d3d3cf;

  --bp-color-text: #37352f;
  --bp-color-text-muted: #787774;
  --bp-color-text-faint: #9b9a97;
  --bp-color-text-inverse: #ffffff;

  /* ─── Semantic: 관점 극성 ─── */
  --bp-color-support: #2f7d57;
  --bp-color-support-bg: #e8f3ed;
  --bp-color-conditional: #c98a17;
  --bp-color-conditional-bg: #fbf1dc;
  --bp-color-neutral: #787774;
  --bp-color-neutral-bg: #f1f1ef;
  --bp-color-oppose: #a8382a;
  --bp-color-oppose-bg: #f7e4e1;

  /* ─── Accent (최소 사용) ─── */
  --bp-color-accent: #2e6fd6;
  --bp-color-accent-hover: #1f5ab5;
  --bp-color-accent-bg: #e6eefb;

  /* ─── Status ─── */
  --bp-color-success: #2f7d57;
  --bp-color-warning: #c98a17;
  --bp-color-danger: #a8382a;

  /* ─── Typography ─── */
  --bp-font-sans: "Pretendard", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans KR", sans-serif;
  --bp-font-mono: "JetBrains Mono", ui-monospace, Menlo, Monaco, Consolas,
    monospace;

  --bp-text-xs: 12px;
  --bp-text-sm: 14px;
  --bp-text-base: 16px;
  --bp-text-lg: 18px;
  --bp-text-xl: 24px;
  --bp-text-2xl: 30px;
  --bp-text-3xl: 40px;

  --bp-leading-tight: 1.25;
  --bp-leading-snug: 1.4;
  --bp-leading-normal: 1.55;
  --bp-leading-relaxed: 1.65;

  --bp-weight-regular: 400;
  --bp-weight-medium: 500;
  --bp-weight-semibold: 600;
  --bp-weight-bold: 700;

  /* ─── Spacing (4px grid) ─── */
  --bp-space-0: 0;
  --bp-space-1: 4px;
  --bp-space-2: 8px;
  --bp-space-3: 12px;
  --bp-space-4: 16px;
  --bp-space-5: 20px;
  --bp-space-6: 24px;
  --bp-space-8: 32px;
  --bp-space-10: 40px;
  --bp-space-12: 48px;
  --bp-space-16: 64px;
  --bp-space-20: 80px;
  --bp-space-24: 96px;

  /* ─── Radius ─── */
  --bp-radius-sm: 3px;
  --bp-radius-md: 6px;
  --bp-radius-lg: 10px;
  --bp-radius-xl: 14px;
  --bp-radius-pill: 9999px;

  /* ─── Shadow (최소 사용 — border 우선) ─── */
  --bp-shadow-none: none;
  --bp-shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.05);
  --bp-shadow-md: 0 2px 6px rgba(15, 15, 15, 0.06);
  --bp-shadow-popover: 0 4px 12px rgba(15, 15, 15, 0.08);

  /* ─── Layout ─── */
  --bp-content-width: 900px;
  --bp-content-width-wide: 1200px;
  --bp-sidebar-width: 260px;

  /* ─── Motion ─── */
  --bp-duration-fast: 120ms;
  --bp-duration-base: 200ms;
  --bp-duration-slow: 300ms;
  --bp-easing-out: cubic-bezier(0.19, 1, 0.22, 1);

  /* ─── Z-index scale ─── */
  --bp-z-dropdown: 10;
  --bp-z-sticky: 20;
  --bp-z-overlay: 30;
  --bp-z-modal: 40;
  --bp-z-popover: 50;
  --bp-z-toast: 60;
}

/* ─── Base reset / typographic defaults ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bp-color-bg);
  color: var(--bp-color-text);
  font-family: var(--bp-font-sans);
  font-size: var(--bp-text-base);
  line-height: var(--bp-leading-relaxed);
  font-weight: var(--bp-weight-regular);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: var(--bp-leading-tight);
  font-weight: var(--bp-weight-semibold);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--bp-color-accent);
  text-decoration: none;
  transition: color var(--bp-duration-fast) var(--bp-easing-out);
}

a:hover {
  color: var(--bp-color-accent-hover);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--bp-color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Icon base ─── */
.bp-icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  color: currentColor;
}

/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.15_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.15_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!../../packages/ui-primitives/src/styles.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/**
 * BalancePoint UI Primitives — 컴포넌트 스타일
 * tokens.css 를 반드시 먼저 import 할 것.
 */

/* ─── Button ─── */
.bp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--bp-space-2);
  border: 1px solid transparent;
  border-radius: var(--bp-radius-md);
  font-weight: var(--bp-weight-medium);
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--bp-duration-fast) var(--bp-easing-out),
    border-color var(--bp-duration-fast) var(--bp-easing-out),
    color var(--bp-duration-fast) var(--bp-easing-out);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.bp-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bp-button--sm {
  height: 28px;
  padding: 0 var(--bp-space-3);
  font-size: var(--bp-text-sm);
}
.bp-button--md {
  height: 36px;
  padding: 0 var(--bp-space-4);
  font-size: var(--bp-text-sm);
}
.bp-button--lg {
  height: 44px;
  padding: 0 var(--bp-space-5);
  font-size: var(--bp-text-base);
}

.bp-button--full {
  width: 100%;
}

.bp-button__icon {
  display: inline-flex;
  align-items: center;
}

/* primary */
.bp-button--primary {
  background-color: var(--bp-color-text);
  color: var(--bp-color-text-inverse);
  border-color: var(--bp-color-text);
}
.bp-button--primary:hover:not(:disabled) {
  background-color: #23211c;
  border-color: #23211c;
}

/* secondary */
.bp-button--secondary {
  background-color: var(--bp-color-bg);
  color: var(--bp-color-text);
  border-color: var(--bp-color-border-strong);
}
.bp-button--secondary:hover:not(:disabled) {
  background-color: var(--bp-color-bg-hover);
}

/* ghost */
.bp-button--ghost {
  background-color: transparent;
  color: var(--bp-color-text);
  border-color: transparent;
}
.bp-button--ghost:hover:not(:disabled) {
  background-color: var(--bp-color-bg-hover);
}

/* danger */
.bp-button--danger {
  background-color: var(--bp-color-danger);
  color: var(--bp-color-text-inverse);
  border-color: var(--bp-color-danger);
}
.bp-button--danger:hover:not(:disabled) {
  background-color: #8c2d22;
}

/* ─── Card ─── */
.bp-card {
  position: relative;
  background-color: var(--bp-color-bg);
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-lg);
  transition: border-color var(--bp-duration-fast) var(--bp-easing-out);
}

.bp-card--pad-none { padding: 0; }
.bp-card--pad-sm   { padding: var(--bp-space-3); }
.bp-card--pad-md   { padding: var(--bp-space-5); }
.bp-card--pad-lg   { padding: var(--bp-space-6); }

.bp-card--interactive {
  cursor: pointer;
}
.bp-card--interactive:hover {
  border-color: var(--bp-color-border-strong);
  background-color: var(--bp-color-bg-subtle);
}

/* polarity accent: 좌측 2px 띠 */
.bp-card--accent-support,
.bp-card--accent-conditional,
.bp-card--accent-neutral,
.bp-card--accent-oppose {
  padding-left: calc(var(--bp-space-5) - 2px);
  border-left-width: 3px;
}
.bp-card--accent-support      { border-left-color: var(--bp-color-support); }
.bp-card--accent-conditional  { border-left-color: var(--bp-color-conditional); }
.bp-card--accent-neutral      { border-left-color: var(--bp-color-neutral); }
.bp-card--accent-oppose       { border-left-color: var(--bp-color-oppose); }

.bp-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bp-space-3);
  margin-bottom: var(--bp-space-3);
}
.bp-card__title {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-2);
  font-size: var(--bp-text-lg);
  font-weight: var(--bp-weight-semibold);
  color: var(--bp-color-text);
}
.bp-card__body {
  color: var(--bp-color-text);
}
.bp-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bp-space-2);
  margin-top: var(--bp-space-4);
  padding-top: var(--bp-space-3);
  border-top: 1px solid var(--bp-color-border);
}

/* ─── Badge ─── */
.bp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-1);
  padding: 2px var(--bp-space-2);
  border-radius: var(--bp-radius-pill);
  font-size: var(--bp-text-xs);
  font-weight: var(--bp-weight-medium);
  line-height: 1.4;
  white-space: nowrap;
}
.bp-badge__icon {
  display: inline-flex;
}

.bp-badge--neutral {
  background-color: var(--bp-color-neutral-bg);
  color: var(--bp-color-text-muted);
}
.bp-badge--support {
  background-color: var(--bp-color-support-bg);
  color: var(--bp-color-support);
}
.bp-badge--conditional {
  background-color: var(--bp-color-conditional-bg);
  color: var(--bp-color-conditional);
}
.bp-badge--oppose {
  background-color: var(--bp-color-oppose-bg);
  color: var(--bp-color-oppose);
}
.bp-badge--accent {
  background-color: var(--bp-color-accent-bg);
  color: var(--bp-color-accent);
}

/* ─── PerspectiveCard 확장 ─── */
.bp-perspective__issues-label {
  font-size: var(--bp-text-xs);
  font-weight: var(--bp-weight-medium);
  color: var(--bp-color-text-muted);
  margin-bottom: var(--bp-space-2);
  letter-spacing: 0.02em;
}
.bp-perspective__issues {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-2);
}
.bp-perspective__issues li {
  position: relative;
  padding-left: var(--bp-space-4);
  font-size: var(--bp-text-sm);
  line-height: var(--bp-leading-snug);
  color: var(--bp-color-text);
}
.bp-perspective__issues li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--bp-color-text-faint);
}

.bp-perspective__more {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-1);
  border: 0;
  background: transparent;
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-sm);
  padding: var(--bp-space-1) 0;
  transition: color var(--bp-duration-fast) var(--bp-easing-out);
}
.bp-perspective__more:hover {
  color: var(--bp-color-text);
}

/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.15_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.15_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* ─── Admin shell layout ─── */
.bp-admin-shell {
  display: grid;
  grid-template-columns: var(--bp-sidebar-width) 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  min-height: 100vh;
  background-color: var(--bp-color-bg);
}

.bp-topbar {
  grid-area: topbar;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: var(--bp-z-sticky);
  height: 48px;
  padding: 0 var(--bp-space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bp-space-4);
  background-color: var(--bp-color-bg);
  border-bottom: 1px solid var(--bp-color-border);
}
.bp-topbar__search {
  display: flex;
  align-items: center;
  gap: var(--bp-space-2);
  padding: var(--bp-space-1) var(--bp-space-3);
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-md);
  min-width: 280px;
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-sm);
  background-color: var(--bp-color-bg-subtle);
  cursor: text;
}
.bp-topbar__search input {
  flex: 1 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text);
}
.bp-topbar__search input::placeholder {
  color: var(--bp-color-text-faint);
}
.bp-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-2);
}
.bp-topbar__user {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-2);
  padding: var(--bp-space-1) var(--bp-space-2);
  border-radius: var(--bp-radius-md);
  color: var(--bp-color-text);
  font-size: var(--bp-text-sm);
  background: transparent;
  border: 0;
}
.bp-topbar__user:hover {
  background-color: var(--bp-color-bg-hover);
}

.bp-sidebar {
  grid-area: sidebar;
  background-color: var(--bp-color-bg-subtle);
  border-right: 1px solid var(--bp-color-border);
  padding: var(--bp-space-3) var(--bp-space-2) var(--bp-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-3);
  min-height: 100vh;
  overflow-y: auto;
}
.bp-sidebar__brand {
  padding: var(--bp-space-2) var(--bp-space-3);
  font-size: var(--bp-text-sm);
  font-weight: var(--bp-weight-semibold);
  color: var(--bp-color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-2);
}
.bp-sidebar__brand small {
  color: var(--bp-color-text-muted);
  font-weight: var(--bp-weight-regular);
}
.bp-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bp-sidebar__label {
  padding: var(--bp-space-2) var(--bp-space-3);
  font-size: var(--bp-text-xs);
  font-weight: var(--bp-weight-medium);
  letter-spacing: 0.02em;
  color: var(--bp-color-text-faint);
  text-transform: uppercase;
}
.bp-sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--bp-space-2);
  padding: 6px var(--bp-space-3);
  border-radius: var(--bp-radius-sm);
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text);
  text-decoration: none;
  transition: background-color var(--bp-duration-fast) var(--bp-easing-out);
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.bp-sidebar__item:hover {
  background-color: var(--bp-color-bg-hover);
}
.bp-sidebar__item--active {
  background-color: var(--bp-color-bg-active);
  font-weight: var(--bp-weight-medium);
}
.bp-sidebar__item--nested {
  padding-left: calc(var(--bp-space-6) + var(--bp-space-1));
}
.bp-sidebar__item--muted {
  color: var(--bp-color-text-muted);
}
.bp-sidebar__item--disabled {
  color: var(--bp-color-text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}
.bp-sidebar__item--disabled:hover {
  background-color: transparent;
}
.bp-sidebar__pending {
  margin-left: auto;
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-sm);
  padding: 1px 6px;
}
.bp-sidebar__item .bp-icon {
  color: var(--bp-color-text-muted);
}
.bp-sidebar__item--active .bp-icon {
  color: var(--bp-color-text);
}

/* ─── Main content area ─── */
.bp-admin-main {
  grid-area: main;
  padding: var(--bp-space-8) var(--bp-space-10);
  max-width: 1400px;
  width: 100%;
}

.bp-admin-page__head {
  margin-bottom: var(--bp-space-8);
}
.bp-admin-page__title {
  font-size: var(--bp-text-2xl);
  color: var(--bp-color-text);
  margin-bottom: var(--bp-space-2);
}
.bp-admin-page__subtitle {
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-sm);
}

/* ─── Metric cards ─── */
.bp-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: var(--bp-space-4);
  gap: var(--bp-space-4);
  margin-bottom: var(--bp-space-8);
}
.bp-metric {
  padding: var(--bp-space-5);
  background-color: var(--bp-color-bg);
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-lg);
}
.bp-metric__label {
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text-muted);
  margin-bottom: var(--bp-space-2);
}
.bp-metric__value {
  font-size: var(--bp-text-2xl);
  font-weight: var(--bp-weight-semibold);
  color: var(--bp-color-text);
  line-height: 1;
}
.bp-metric__delta {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  margin-top: var(--bp-space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-1);
}
.bp-metric__delta--up {
  color: var(--bp-color-warning);
}
.bp-metric__delta--down {
  color: var(--bp-color-success);
}

@media (max-width: 1100px) {
  .bp-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Section blocks ─── */
.bp-admin-section {
  margin-bottom: var(--bp-space-10);
}
.bp-admin-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--bp-space-4);
}
.bp-admin-section__title {
  font-size: var(--bp-text-lg);
  font-weight: var(--bp-weight-semibold);
  color: var(--bp-color-text);
}
.bp-admin-section__link {
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text-muted);
}
.bp-admin-section__link:hover {
  color: var(--bp-color-text);
}

/* ─── Alert stack ─── */
.bp-alerts {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-2);
}
.bp-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  grid-gap: var(--bp-space-3);
  gap: var(--bp-space-3);
  padding: var(--bp-space-3) var(--bp-space-4);
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-md);
  background-color: var(--bp-color-bg);
  transition: background-color var(--bp-duration-fast) var(--bp-easing-out);
  cursor: pointer;
}
.bp-alert:hover {
  background-color: var(--bp-color-bg-subtle);
}
.bp-alert--warning {
  border-left: 3px solid var(--bp-color-warning);
}
.bp-alert--info {
  border-left: 3px solid var(--bp-color-border-strong);
}
.bp-alert__icon {
  color: var(--bp-color-warning);
  display: inline-flex;
  align-items: center;
}
.bp-alert--info .bp-alert__icon {
  color: var(--bp-color-text-muted);
}
.bp-alert__body strong {
  color: var(--bp-color-text);
  font-weight: var(--bp-weight-semibold);
  display: block;
  margin-bottom: 2px;
}
.bp-alert__body span {
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-sm);
}
.bp-alert__more {
  color: var(--bp-color-text-muted);
  display: inline-flex;
}

/* ─── Activity log ─── */
.bp-activity {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-3);
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text);
}
.bp-activity__row {
  display: flex;
  gap: var(--bp-space-4);
  padding: var(--bp-space-2) 0;
  border-bottom: 1px solid var(--bp-color-border);
}
.bp-activity__row:last-child {
  border-bottom: 0;
}
.bp-activity__time {
  color: var(--bp-color-text-faint);
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-xs);
  min-width: 56px;
  padding-top: 2px;
}
.bp-activity__body {
  color: var(--bp-color-text);
  line-height: var(--bp-leading-snug);
}
.bp-activity__body small {
  display: block;
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-xs);
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────
 * Phase 3 — Radar / Policy Analytics / Network
 * ───────────────────────────────────────────────────────── */

/* ─── Breadcrumb (admin) ─── */
.bp-admin-breadcrumb {
  padding: var(--bp-space-2) 0 var(--bp-space-4);
  font-size: var(--bp-text-sm);
}
.bp-admin-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-1);
  color: var(--bp-color-text-muted);
}
.bp-admin-breadcrumb a:hover {
  color: var(--bp-color-text);
}

/* ─── Score pill ─── */
.bp-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bp-font-mono);
  font-weight: var(--bp-weight-semibold);
  border-radius: var(--bp-radius-pill);
  padding: 4px 10px;
  font-size: var(--bp-text-sm);
  min-width: 56px;
}
.bp-score-pill--sm {
  font-size: var(--bp-text-xs);
  padding: 2px 8px;
  min-width: 44px;
}
.bp-score-pill--critical {
  background-color: var(--bp-color-oppose-bg);
  color: var(--bp-color-oppose);
}
.bp-score-pill--warning {
  background-color: var(--bp-color-conditional-bg);
  color: var(--bp-color-conditional);
}
.bp-score-pill--ok {
  background-color: var(--bp-color-support-bg);
  color: var(--bp-color-support);
}

/* ─── Delta arrow ─── */
.bp-delta {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-1);
  font-size: var(--bp-text-sm);
  font-family: var(--bp-font-mono);
}
.bp-delta--up { color: var(--bp-color-oppose); }
.bp-delta--down { color: var(--bp-color-support); }
.bp-delta--flat { color: var(--bp-color-text-muted); }

/* ─── Table ─── */
.bp-table-wrap {
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-lg);
  overflow: hidden;
  background: var(--bp-color-bg);
}
.bp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--bp-text-sm);
}
.bp-table th,
.bp-table td {
  padding: var(--bp-space-3) var(--bp-space-4);
  text-align: left;
  border-bottom: 1px solid var(--bp-color-border);
  vertical-align: middle;
}
.bp-table thead th {
  background: var(--bp-color-bg-subtle);
  font-weight: var(--bp-weight-medium);
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bp-table tbody tr:last-child td {
  border-bottom: 0;
}
.bp-table tbody tr:hover {
  background: var(--bp-color-bg-subtle);
}
.bp-table__link {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-2);
  color: var(--bp-color-text);
  text-decoration: none;
  font-weight: var(--bp-weight-medium);
}
.bp-table__link:hover {
  color: var(--bp-color-accent);
}
.bp-table__muted {
  color: var(--bp-color-text-muted);
}
.bp-table__action {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-1);
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-sm);
  text-decoration: none;
  opacity: 0;
  transition: opacity var(--bp-duration-fast) var(--bp-easing-out),
    color var(--bp-duration-fast) var(--bp-easing-out);
}
.bp-table tr:hover .bp-table__action {
  opacity: 1;
  color: var(--bp-color-text);
}

/* ─── Chart wrapper + legend ─── */
.bp-chart-wrap {
  padding: var(--bp-space-4);
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-color-bg);
}
.bp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bp-space-3);
  margin-top: var(--bp-space-3);
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
}
.bp-legend__item {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-1);
}
.bp-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* ─── Policy header ─── */
.bp-policy-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: var(--bp-space-6);
  gap: var(--bp-space-6);
  align-items: start;
}
.bp-policy-header__tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--bp-space-2);
  margin-top: var(--bp-space-3);
}
.bp-policy-header__score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--bp-space-3);
}
.bp-policy-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bp-space-4);
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text-muted);
  justify-content: flex-end;
}
.bp-policy-header__meta strong {
  color: var(--bp-color-text);
}

/* ─── Tabs ─── */
.bp-tabs {
  display: flex;
  gap: var(--bp-space-4);
  border-bottom: 1px solid var(--bp-color-border);
  margin-bottom: var(--bp-space-6);
}
.bp-tabs__item {
  padding: var(--bp-space-3) 0;
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.bp-tabs__item:hover:not(.bp-tabs__item--disabled) {
  color: var(--bp-color-text);
}
.bp-tabs__item--active {
  color: var(--bp-color-text);
  font-weight: var(--bp-weight-semibold);
  border-bottom-color: var(--bp-color-text);
}
.bp-tabs__item--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── Analytics grid ─── */
.bp-analytics-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-gap: var(--bp-space-5);
  gap: var(--bp-space-5);
}
.bp-analytics-grid__score { grid-column: 1 / 2; }
.bp-analytics-grid__perspectives { grid-column: 2 / 3; }
.bp-analytics-grid__timeline { grid-column: 1 / -1; }
.bp-analytics-grid__cases { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .bp-analytics-grid {
    grid-template-columns: 1fr;
  }
  .bp-analytics-grid__score,
  .bp-analytics-grid__perspectives {
    grid-column: 1 / -1;
  }
}

/* ─── Score breakdown ─── */
.bp-breakdown {
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-lg);
  padding: var(--bp-space-5);
  background: var(--bp-color-bg);
}
.bp-breakdown__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--bp-space-4);
}
.bp-breakdown__title {
  font-size: var(--bp-text-lg);
  color: var(--bp-color-text);
}
.bp-breakdown__version {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-faint);
  font-family: var(--bp-font-mono);
}
.bp-breakdown__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-3);
}
.bp-breakdown__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-gap: var(--bp-space-4);
  gap: var(--bp-space-4);
  align-items: center;
}
.bp-breakdown__label strong {
  color: var(--bp-color-text);
  font-size: var(--bp-text-sm);
  font-weight: var(--bp-weight-medium);
}
.bp-breakdown__label small {
  display: block;
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-xs);
  margin-top: 2px;
}
.bp-breakdown__badge {
  margin-left: var(--bp-space-2);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  background: var(--bp-color-accent-bg);
  color: var(--bp-color-accent);
  font-size: 10px;
  font-weight: var(--bp-weight-medium);
  border-radius: var(--bp-radius-pill);
}
.bp-breakdown__bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bp-breakdown__bar-track {
  height: 8px;
  background: var(--bp-color-bg-subtle);
  border-radius: var(--bp-radius-pill);
  overflow: hidden;
}
.bp-breakdown__bar-fill {
  height: 100%;
  background: var(--bp-color-text-muted);
  border-radius: var(--bp-radius-pill);
  transition: width var(--bp-duration-slow) var(--bp-easing-out);
}
.bp-breakdown__bar-fill--highlight {
  background: var(--bp-color-accent);
}
.bp-breakdown__bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  font-family: var(--bp-font-mono);
}
.bp-breakdown__bar-meta strong {
  color: var(--bp-color-text);
}
.bp-breakdown__raw {
  color: var(--bp-color-text-faint);
}
.bp-breakdown__evidence {
  margin-top: var(--bp-space-5);
  padding: var(--bp-space-4);
  border-top: 1px solid var(--bp-color-border);
  font-size: var(--bp-text-sm);
}
.bp-breakdown__evidence h4 {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--bp-space-2);
  font-weight: var(--bp-weight-medium);
}
.bp-breakdown__evidence em {
  display: inline-block;
  color: var(--bp-color-accent);
  font-style: normal;
  font-weight: var(--bp-weight-semibold);
  margin-top: var(--bp-space-3);
  margin-bottom: var(--bp-space-1);
  font-size: var(--bp-text-xs);
}
.bp-breakdown__evidence ul {
  margin: 0;
  padding-left: var(--bp-space-5);
  color: var(--bp-color-text);
}
.bp-breakdown__evidence li {
  padding: 2px 0;
}

/* ─── Perspective heatmap ─── */
.bp-heatmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: var(--bp-space-3);
  gap: var(--bp-space-3);
}
.bp-heatmap__col {
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-md);
  padding: var(--bp-space-3);
  background: var(--bp-color-bg);
}
.bp-heatmap__col-head {
  display: flex;
  align-items: center;
  gap: var(--bp-space-2);
  margin-bottom: var(--bp-space-3);
  font-size: var(--bp-text-sm);
}
.bp-heatmap__col-head strong {
  flex: 1 1;
}
.bp-heatmap__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.bp-heatmap__col--support .bp-heatmap__dot { background: var(--bp-color-support); }
.bp-heatmap__col--conditional .bp-heatmap__dot { background: var(--bp-color-conditional); }
.bp-heatmap__col--neutral .bp-heatmap__dot { background: var(--bp-color-neutral); }
.bp-heatmap__col--oppose .bp-heatmap__dot { background: var(--bp-color-oppose); }
.bp-heatmap__count {
  font-family: var(--bp-font-mono);
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-xs);
}
.bp-heatmap ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-2);
}
.bp-heatmap li {
  padding: var(--bp-space-2);
  background: var(--bp-color-bg-subtle);
  border-radius: var(--bp-radius-sm);
}
.bp-heatmap__empty {
  color: var(--bp-color-text-faint);
  font-size: var(--bp-text-xs);
  text-align: center;
}
.bp-heatmap__label {
  font-weight: var(--bp-weight-medium);
  font-size: var(--bp-text-sm);
  margin-bottom: 2px;
}
.bp-heatmap__meta {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
}
.bp-heatmap__hidden {
  color: var(--bp-color-warning);
}

@media (max-width: 900px) {
  .bp-heatmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── Conflict cases ─── */
.bp-cases {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-3);
}
.bp-case {
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-md);
  padding: var(--bp-space-4);
  background: var(--bp-color-bg);
}
.bp-case header {
  display: flex;
  align-items: center;
  gap: var(--bp-space-3);
  flex-wrap: wrap;
  margin-bottom: var(--bp-space-3);
}
.bp-case code {
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  background: var(--bp-color-bg-subtle);
  padding: 2px 6px;
  border-radius: var(--bp-radius-sm);
}
.bp-case__meta {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
}
.bp-case dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: var(--bp-space-3);
  gap: var(--bp-space-3);
  margin: 0;
}
.bp-case dt {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  margin-bottom: 2px;
}
.bp-case dd {
  margin: 0;
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text);
}

/* ─── Case classification (사례 단위 분류 표결) ─── */
.bp-classification {
  margin-top: var(--bp-space-3);
  padding-top: var(--bp-space-3);
  border-top: 1px dashed var(--bp-color-border);
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-3);
}
.bp-classification__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--bp-space-2);
  flex-wrap: wrap;
}
.bp-classification__title {
  font-size: var(--bp-text-xs);
  font-weight: 600;
  color: var(--bp-color-text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bp-classification__source {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
}
.bp-classification__axis {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-classification__axis-head {
  display: flex;
  align-items: center;
  gap: var(--bp-space-2);
  flex-wrap: wrap;
  font-size: var(--bp-text-xs);
}
.bp-classification__axis-title {
  font-weight: 600;
  color: var(--bp-color-text-muted);
  min-width: 9em;
}
.bp-classification__axis-label {
  font-weight: 700;
  color: var(--bp-color-text);
  background: var(--bp-color-bg-subtle);
  padding: 2px 8px;
  border-radius: var(--bp-radius-sm);
}
.bp-classification__axis-label--none {
  color: var(--bp-color-text-muted);
  font-weight: 400;
}
.bp-classification__confidence {
  color: var(--bp-color-text-muted);
}
.bp-classification__review {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--bp-color-warning, #b45309);
  font-weight: 600;
}
.bp-classification__votes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bp-classification__vote {
  display: grid;
  grid-template-columns: 8em 1fr 4em;
  align-items: center;
  grid-gap: var(--bp-space-2);
  gap: var(--bp-space-2);
  font-size: var(--bp-text-xs);
}
.bp-classification__vote-code {
  color: var(--bp-color-text);
}
.bp-classification__vote-bar {
  position: relative;
  height: 6px;
  background: var(--bp-color-bg-subtle);
  border-radius: var(--bp-radius-sm);
  overflow: hidden;
}
.bp-classification__vote-fill {
  display: block;
  height: 100%;
  background: var(--bp-color-border-strong, #94a3b8);
  border-radius: inherit;
}
.bp-classification__vote-fill--winner {
  background: var(--bp-color-accent, #b45309);
}
.bp-classification__vote-count {
  text-align: right;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--bp-color-text-muted);
}
.bp-classification__empty {
  margin: 0;
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  font-style: italic;
}

/* ─── Network layout ─── */
.bp-network-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-gap: var(--bp-space-5);
  gap: var(--bp-space-5);
  align-items: start;
}
@media (max-width: 1100px) {
  .bp-network-layout { grid-template-columns: 1fr; }
}
.bp-network-wrap {
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-color-bg);
  overflow: hidden;
}
.bp-network__legend {
  display: flex;
  justify-content: space-between;
  gap: var(--bp-space-6);
  padding: var(--bp-space-3) var(--bp-space-4);
  border-top: 1px solid var(--bp-color-border);
  font-size: var(--bp-text-xs);
  flex-wrap: wrap;
}
.bp-network__legend strong {
  display: block;
  color: var(--bp-color-text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--bp-space-1);
}
.bp-network__legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-1);
  margin-right: var(--bp-space-3);
  color: var(--bp-color-text);
}
.bp-network__swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ─── Node panel ─── */
.bp-node-panel__head {
  display: flex;
  align-items: center;
  gap: var(--bp-space-3);
  padding-bottom: var(--bp-space-3);
  border-bottom: 1px solid var(--bp-color-border);
  margin-bottom: var(--bp-space-3);
}
.bp-node-panel__head strong {
  display: block;
  font-size: var(--bp-text-base);
}
.bp-node-panel__head small {
  color: var(--bp-color-text-muted);
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-xs);
}
.bp-node-panel__dl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: var(--bp-space-3);
  gap: var(--bp-space-3);
  margin: 0 0 var(--bp-space-4);
}
.bp-node-panel__dl dt {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  margin-bottom: 2px;
}
.bp-node-panel__dl dd {
  margin: 0;
  font-weight: var(--bp-weight-semibold);
  font-size: var(--bp-text-base);
}
.bp-node-panel__actions {
  display: flex;
  gap: var(--bp-space-2);
}

/* ─────────────────────────────────────────────────────────
 * Simulator
 * ───────────────────────────────────────────────────────── */
.bp-sim-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  grid-gap: var(--bp-space-5);
  gap: var(--bp-space-5);
  align-items: start;
}
@media (max-width: 1100px) {
  .bp-sim-layout { grid-template-columns: 1fr; }
}

.bp-sim-levers {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-5);
}

/* ─── Lever slider ─── */
.bp-lever {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-2);
}
.bp-lever__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.bp-lever__label {
  font-weight: var(--bp-weight-medium);
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text);
}
.bp-lever__value {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-2);
  font-family: var(--bp-font-mono);
  font-weight: var(--bp-weight-semibold);
  color: var(--bp-color-accent);
}
.bp-lever__value-muted {
  color: var(--bp-color-text-muted);
  font-weight: var(--bp-weight-regular);
}
.bp-lever__reset {
  border: 0;
  background: transparent;
  color: var(--bp-color-text-faint);
  font-size: var(--bp-text-xs);
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.bp-lever__reset:hover { color: var(--bp-color-text-muted); }
.bp-lever__slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: var(--bp-color-bg-subtle);
  border-radius: var(--bp-radius-pill);
  outline: none;
  cursor: pointer;
  accent-color: var(--bp-color-accent);
}
.bp-lever__meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  gap: var(--bp-space-3);
}
.bp-lever__desc {
  flex: 1 1;
  text-align: center;
  color: var(--bp-color-text-faint);
}

.bp-sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bp-space-2);
  margin-top: var(--bp-space-6);
  padding-top: var(--bp-space-4);
  border-top: 1px solid var(--bp-color-border);
}
.bp-sim-note {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--bp-space-2);
  margin-top: var(--bp-space-4);
  padding: var(--bp-space-3);
  background: var(--bp-color-bg-subtle);
  border-radius: var(--bp-radius-md);
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  line-height: var(--bp-leading-snug);
}
.bp-sim-note__err {
  color: var(--bp-color-warning);
  font-family: var(--bp-font-mono);
}

/* ─── Mode pill (live / fallback) ─── */
.bp-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: var(--bp-weight-medium);
  font-family: var(--bp-font-mono);
  padding: 2px 8px;
  border-radius: var(--bp-radius-pill);
  margin-left: var(--bp-space-3);
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bp-mode-pill--support {
  background: var(--bp-color-support-bg);
  color: var(--bp-color-support);
}
.bp-mode-pill--conditional {
  background: var(--bp-color-conditional-bg);
  color: var(--bp-color-conditional);
}
.bp-mode-pill--neutral {
  background: var(--bp-color-neutral-bg);
  color: var(--bp-color-text-muted);
}

/* ─── Acceptance bars ─── */
.bp-acceptance {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-3);
}
.bp-acceptance__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-gap: var(--bp-space-3);
  gap: var(--bp-space-3);
  align-items: center;
}
.bp-acceptance__label strong {
  display: block;
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text);
  font-weight: var(--bp-weight-medium);
}
.bp-acceptance__label small {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-faint);
  font-family: var(--bp-font-mono);
}
.bp-acceptance__track {
  position: relative;
  height: 24px;
  border-radius: var(--bp-radius-sm);
  background: var(--bp-color-bg-subtle);
  overflow: hidden;
}
.bp-acceptance__fill {
  height: 100%;
  transition: width 220ms var(--bp-easing-out);
}
.bp-acceptance__fill--critical { background: var(--bp-color-oppose); }
.bp-acceptance__fill--warning { background: var(--bp-color-conditional); }
.bp-acceptance__fill--neutral { background: var(--bp-color-neutral); }
.bp-acceptance__fill--ok { background: var(--bp-color-support); }
.bp-acceptance__pct {
  position: absolute;
  right: var(--bp-space-2);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text);
  font-weight: var(--bp-weight-semibold);
}

/* ─── Consensus gauge ─── */
.bp-gauge {
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-lg);
  padding: var(--bp-space-5);
  background: var(--bp-color-bg);
}
.bp-gauge__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--bp-space-5);
  margin-bottom: var(--bp-space-4);
}
.bp-gauge__label {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.bp-gauge__score {
  font-size: 48px;
  line-height: 1;
  font-weight: var(--bp-weight-bold);
  font-family: var(--bp-font-mono);
}
.bp-gauge__score--critical { color: var(--bp-color-oppose); }
.bp-gauge__score--warning { color: var(--bp-color-conditional); }
.bp-gauge__score--ok { color: var(--bp-color-support); }
.bp-gauge__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-gap: var(--bp-space-4);
  gap: var(--bp-space-4);
  font-size: var(--bp-text-xs);
}
.bp-gauge__meta span {
  display: block;
  color: var(--bp-color-text-muted);
  margin-bottom: 2px;
}
.bp-gauge__meta strong {
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-lg);
  color: var(--bp-color-text);
}
.bp-gauge__track {
  position: relative;
  height: 12px;
  background: var(--bp-color-bg-subtle);
  border-radius: var(--bp-radius-pill);
  overflow: hidden;
  margin-bottom: var(--bp-space-6);
}
.bp-gauge__fill {
  height: 100%;
  transition: width 300ms var(--bp-easing-out);
}
.bp-gauge__fill--critical { background: var(--bp-color-oppose); }
.bp-gauge__fill--warning { background: var(--bp-color-conditional); }
.bp-gauge__fill--ok { background: var(--bp-color-support); }
.bp-gauge__axis {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bp-gauge__axis span {
  position: absolute;
  top: 16px;
  font-size: 10px;
  color: var(--bp-color-text-faint);
  transform: translateX(-50%);
  font-family: var(--bp-font-mono);
}
.bp-gauge__formula {
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  padding: var(--bp-space-2) var(--bp-space-3);
  background: var(--bp-color-bg-subtle);
  border-radius: var(--bp-radius-sm);
}
.bp-gauge__warning {
  margin-top: var(--bp-space-3);
  padding: var(--bp-space-2) var(--bp-space-3);
  border-left: 3px solid var(--bp-color-warning);
  background: var(--bp-color-conditional-bg);
  color: var(--bp-color-conditional);
  font-size: var(--bp-text-xs);
  border-radius: 0 var(--bp-radius-sm) var(--bp-radius-sm) 0;
}

/* ─── Sensitivity list ─── */
.bp-sensitivity {
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-lg);
  padding: var(--bp-space-4);
  background: var(--bp-color-bg);
}
.bp-sensitivity__head {
  margin-bottom: var(--bp-space-3);
}
.bp-sensitivity__head strong {
  display: block;
  font-size: var(--bp-text-base);
  color: var(--bp-color-text);
}
.bp-sensitivity__head small {
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
}
.bp-sensitivity ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-2);
}
.bp-sensitivity li {
  display: grid;
  grid-template-columns: 28px 1fr 120px 80px 24px;
  grid-gap: var(--bp-space-3);
  gap: var(--bp-space-3);
  align-items: center;
  font-size: var(--bp-text-sm);
}
.bp-sensitivity__rank {
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-faint);
}
.bp-sensitivity__label {
  color: var(--bp-color-text);
}
.bp-sensitivity__track {
  height: 6px;
  background: var(--bp-color-bg-subtle);
  border-radius: var(--bp-radius-pill);
  overflow: hidden;
}
.bp-sensitivity__fill {
  height: 100%;
  background: var(--bp-color-accent);
  transition: width 200ms var(--bp-easing-out);
  display: block;
}
.bp-sensitivity__beta {
  font-family: var(--bp-font-mono);
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-xs);
  text-align: right;
}
.bp-sensitivity__dir {
  display: inline-flex;
  justify-content: center;
}
.bp-sensitivity__dir--positive { color: var(--bp-color-support); }
.bp-sensitivity__dir--negative { color: var(--bp-color-oppose); }
.bp-sensitivity__dir--mixed { color: var(--bp-color-text-muted); }

/* ─────────────────────────────────────────────────────────
 * Raw events
 * ───────────────────────────────────────────────────────── */
.bp-raw-list {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-3);
}
.bp-raw {
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-md);
  background: var(--bp-color-bg);
  overflow: hidden;
}
.bp-raw header {
  padding: var(--bp-space-3) var(--bp-space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--bp-space-2);
  align-items: center;
  background: var(--bp-color-bg-subtle);
  border-bottom: 1px solid var(--bp-color-border);
}
.bp-raw__stage {
  margin-left: auto;
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
}
.bp-raw__stage strong { color: var(--bp-color-text); }
.bp-raw__body {
  padding: var(--bp-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-3);
}
.bp-raw__meta dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: var(--bp-space-3);
  gap: var(--bp-space-3);
  margin: 0;
}
.bp-raw__meta dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bp-color-text-faint);
  margin-bottom: 2px;
}
.bp-raw__meta dd {
  margin: 0;
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text);
}
.bp-raw__excerpt {
  margin: 0;
  padding: var(--bp-space-3) var(--bp-space-4);
  background: var(--bp-color-bg-subtle);
  border-left: 3px solid var(--bp-color-border-strong);
  border-radius: 0 var(--bp-radius-sm) var(--bp-radius-sm) 0;
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text);
  line-height: var(--bp-leading-relaxed);
}
.bp-raw__mask-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bp-space-2);
}
.bp-raw__mask-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--bp-text-xs);
  color: var(--bp-color-success);
  background: var(--bp-color-support-bg);
  padding: 2px 8px;
  border-radius: var(--bp-radius-pill);
  font-family: var(--bp-font-mono);
}
.bp-raw footer {
  padding: var(--bp-space-3) var(--bp-space-4);
  border-top: 1px solid var(--bp-color-border);
  text-align: right;
}
.bp-raw__action {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-1);
  padding: var(--bp-space-2) var(--bp-space-3);
  border: 1px solid var(--bp-color-border-strong);
  border-radius: var(--bp-radius-sm);
  background: var(--bp-color-bg);
  color: var(--bp-color-text);
  font-size: var(--bp-text-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background var(--bp-duration-fast) var(--bp-easing-out);
}
.bp-raw__action:hover {
  background: var(--bp-color-bg-hover);
}

/* ─────────────────────────────────────────────────────────
 * Audit
 * ───────────────────────────────────────────────────────── */
.bp-audit__time {
  font-family: var(--bp-font-mono);
  white-space: nowrap;
  font-size: var(--bp-text-xs);
}
.bp-audit__detail {
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text);
}

/* ─────────────────────────────────────────────────────────
 * Distribution analysis page
 * ───────────────────────────────────────────────────────── */
.bp-dist-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bp-space-5);
  padding: var(--bp-space-4) var(--bp-space-5);
  border: 1px solid var(--bp-color-border);
  border-radius: var(--bp-radius-lg);
  background: var(--bp-color-bg);
  align-items: center;
}
.bp-dist-controls label {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-1);
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
}
.bp-dist-controls label > span:first-child {
  font-weight: var(--bp-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.bp-dist-controls input[type="number"] {
  padding: var(--bp-space-2) var(--bp-space-3);
  border: 1px solid var(--bp-color-border-strong);
  border-radius: var(--bp-radius-sm);
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-sm);
  width: 120px;
  background: var(--bp-color-bg);
}
.bp-dist-controls input[type="number"]:focus {
  outline: 2px solid var(--bp-color-accent);
  outline-offset: 1px;
  border-color: var(--bp-color-accent);
}
.bp-dist-controls__check {
  flex-direction: row !important;
  align-items: center;
  gap: var(--bp-space-2) !important;
  color: var(--bp-color-text) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: var(--bp-text-sm) !important;
  font-weight: var(--bp-weight-regular) !important;
}

.bp-dist-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-gap: var(--bp-space-5);
  gap: var(--bp-space-5);
}
.bp-dist-grid__hist { grid-column: 1 / 2; }
.bp-dist-grid__box { grid-column: 2 / 3; }
.bp-dist-grid__radar { grid-column: 1 / 2; }
.bp-dist-grid__scatter { grid-column: 2 / 3; }

@media (max-width: 1200px) {
  .bp-dist-grid {
    grid-template-columns: 1fr;
  }
  .bp-dist-grid__hist,
  .bp-dist-grid__box,
  .bp-dist-grid__radar,
  .bp-dist-grid__scatter {
    grid-column: 1 / -1;
  }
}

.bp-dist-guide {
  margin: 0;
  padding-left: var(--bp-space-5);
  color: var(--bp-color-text);
  font-size: var(--bp-text-sm);
  line-height: var(--bp-leading-relaxed);
  list-style: disc;
}
.bp-dist-guide li {
  margin-bottom: var(--bp-space-2);
}
.bp-dist-guide strong {
  color: var(--bp-color-text);
  font-weight: var(--bp-weight-semibold);
}
.bp-table code {
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-xs);
  background: var(--bp-color-bg-subtle);
  padding: 1px 4px;
  border-radius: 3px;
}


/* ─── 새 정책 추가 폼 ───────────────────────────────────── */
.bp-policy-form {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-4);
  max-width: 720px;
  margin-top: var(--bp-space-5);
}
.bp-form-field {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-2);
}
.bp-form-field label {
  font-size: var(--bp-text-sm);
  font-weight: var(--bp-weight-medium);
  color: var(--bp-color-text);
}
.bp-form-required {
  color: var(--bp-color-danger);
  margin-left: 2px;
}
.bp-form-field input,
.bp-form-field select {
  font-family: inherit;
  font-size: var(--bp-text-sm);
  padding: var(--bp-space-2) var(--bp-space-3);
  border: 1px solid var(--bp-color-border-strong);
  border-radius: 6px;
  background: var(--bp-color-bg);
  color: var(--bp-color-text);
  transition: border-color 120ms, box-shadow 120ms;
}
.bp-form-field input:focus,
.bp-form-field select:focus {
  outline: none;
  border-color: var(--bp-color-accent);
  box-shadow: 0 0 0 3px var(--bp-color-accent-bg);
}
.bp-form-field input[aria-invalid='true'] {
  border-color: var(--bp-color-danger);
}
.bp-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: var(--bp-space-3);
  gap: var(--bp-space-3);
}
@media (max-width: 720px) {
  .bp-form-row {
    grid-template-columns: 1fr;
  }
}
.bp-form-error {
  margin: 0;
  color: var(--bp-color-danger);
  font-size: var(--bp-text-xs);
}
.bp-form-error--general {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-2);
  padding: var(--bp-space-2) var(--bp-space-3);
  background: var(--bp-color-oppose-bg);
  border-radius: 6px;
  font-size: var(--bp-text-sm);
}
.bp-form-actions {
  display: flex;
  align-items: center;
  gap: var(--bp-space-3);
  margin-top: var(--bp-space-2);
}
.bp-form-cancel {
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-sm);
  text-decoration: none;
}
.bp-form-cancel:hover {
  color: var(--bp-color-text);
  text-decoration: underline;
}
.bp-form-note {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-2);
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-xs);
  margin: 0;
}

.bp-empty-state {
  display: flex;
  align-items: flex-start;
  gap: var(--bp-space-3);
  margin: var(--bp-space-4) 0;
  padding: var(--bp-space-4);
  background: var(--bp-color-bg-subtle);
  border: 1px dashed var(--bp-color-border-strong);
  border-radius: 8px;
  color: var(--bp-color-text);
}
.bp-empty-state strong {
  display: block;
  margin-bottom: var(--bp-space-1);
  font-weight: var(--bp-weight-semibold);
}
.bp-empty-state p {
  margin: 0;
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-sm);
  line-height: var(--bp-leading-relaxed);
}


/* ─── Admin 로그인 ──────────────────────────────────────── */
.bp-admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--bp-space-5);
  background: var(--bp-color-bg-subtle);
}
.bp-admin-login__card {
  width: 100%;
  max-width: 420px;
  padding: var(--bp-space-6);
  background: var(--bp-color-bg);
  border: 1px solid var(--bp-color-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bp-admin-login__head {
  text-align: center;
  margin-bottom: var(--bp-space-5);
}
.bp-admin-login__head h1 {
  margin: var(--bp-space-2) 0 var(--bp-space-1);
  font-size: var(--bp-text-xl);
}
.bp-admin-login__head p {
  margin: 0;
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-sm);
  line-height: var(--bp-leading-relaxed);
}
.bp-admin-login__form {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-4);
  margin-bottom: var(--bp-space-5);
}
.bp-admin-login__demo {
  padding-top: var(--bp-space-4);
  border-top: 1px dashed var(--bp-color-border);
}
.bp-admin-login__demo h2 {
  margin: 0 0 var(--bp-space-3);
  font-size: var(--bp-text-sm);
  color: var(--bp-color-text-muted);
  font-weight: var(--bp-weight-medium);
}
.bp-admin-login__accounts {
  display: flex;
  flex-direction: column;
  gap: var(--bp-space-2);
}
.bp-admin-login__acct {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bp-space-3);
  padding: var(--bp-space-3);
  border: 1px solid var(--bp-color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.bp-admin-login__acct:hover {
  background: var(--bp-color-bg-hover);
  border-color: var(--bp-color-border-strong);
}
.bp-admin-login__acct > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-admin-login__acct strong {
  font-size: var(--bp-text-sm);
}
.bp-admin-login__acct code {
  font-family: var(--bp-font-mono);
  font-size: var(--bp-text-xs);
  color: var(--bp-color-text-muted);
  background: var(--bp-color-bg-subtle);
  padding: 1px 6px;
  border-radius: 3px;
}
.bp-admin-login__hint {
  display: inline-flex;
  align-items: center;
  gap: var(--bp-space-2);
  margin: var(--bp-space-3) 0 0;
  color: var(--bp-color-text-muted);
  font-size: var(--bp-text-xs);
}

.bp-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--bp-space-2);
  border-radius: 999px;
  font-size: var(--bp-text-xs);
  font-weight: var(--bp-weight-medium);
}
.bp-role-badge--admin {
  background: var(--bp-color-oppose-bg);
  color: var(--bp-color-oppose);
}
.bp-role-badge--analyst {
  background: var(--bp-color-accent-bg);
  color: var(--bp-color-accent);
}
.bp-role-badge--viewer {
  background: var(--bp-color-neutral-bg);
  color: var(--bp-color-neutral);
}

