/* 치과 검색실 — 공통 컴포넌트 v2 (tokens.css 다음에 로드). 인라인 style 없이 클래스만 사용 — CSP 호환 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-15);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--c-signal-text);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--c-signal-hover);
}
:focus-visible {
  outline: 3px solid var(--c-signal);
  outline-offset: 2px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--c-muted-text);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--c-surface);
  padding: 8px 12px;
  border-radius: var(--r-sm);
}

/* 아이콘 */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm {
  width: 16px;
  height: 16px;
}
.icon--xs {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

/* 버튼: .btn + 변형 + 크기 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast);
}
.btn--primary {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-on-ink);
}
.btn--primary:hover {
  background: var(--c-ink-hover);
  color: var(--c-on-ink);
}
.btn--secondary {
  background: var(--c-surface);
  border-color: var(--c-line-strong);
  color: var(--c-ink);
  font-weight: var(--fw-semibold);
}
.btn--secondary:hover {
  background: var(--c-sunken);
  border-color: var(--chart-other);
}
.btn--text {
  background: transparent;
  color: var(--c-signal-text);
  padding: 0 8px;
}
.btn--text:hover {
  background: var(--c-wash);
}
.btn--danger {
  background: var(--c-surface);
  border-color: var(--c-bad-line);
  color: var(--c-bad);
}
.btn--danger:hover {
  background: var(--c-bad-bg);
}
.btn--highlight {
  background: var(--c-lime);
  color: var(--c-ink);
  font-weight: var(--fw-heavy);
}
.btn--highlight:hover {
  background: var(--c-lime-strong);
}
.btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: var(--fs-13);
  border-radius: 7px;
}
.btn--lg {
  height: 52px;
  padding: 0 22px;
  font-size: 16px;
  border-radius: 10px;
}
.btn--icon {
  width: 40px;
  padding: 0;
}
.btn--icon.btn--sm {
  width: 32px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn[aria-busy="true"] {
  cursor: wait;
}
.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  opacity: 0.8;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 배지: 색 + 아이콘/글 함께 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}
.badge--good {
  background: var(--c-good-bg);
  color: var(--c-good);
}
.badge--warn {
  background: var(--c-warn-bg);
  color: var(--c-warn);
}
.badge--bad {
  background: var(--c-bad-bg);
  color: var(--c-bad);
}
.badge--info {
  background: var(--c-info-bg);
  color: var(--c-info);
}
.badge--neutral {
  background: var(--c-sunken);
  color: var(--c-muted-text);
  border: 1px dashed var(--c-line-strong);
}
.badge--ours {
  background: var(--c-lime);
  color: var(--c-ink);
  font-weight: var(--fw-heavy);
}
.badge--outline-warn {
  border: 1px solid var(--c-warn-line);
  color: var(--c-warn);
}
.pill-demo {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-lime);
  font-size: 11px;
  font-weight: var(--fw-heavy);
}
.hl-ours {
  background: linear-gradient(
    transparent 40%,
    var(--c-lime) 40%,
    var(--c-lime) 90%,
    transparent 90%
  );
  color: var(--c-ink);
  font-weight: var(--fw-heavy);
  padding: 0 2px;
}
.hl-rival {
  font-weight: var(--fw-semibold);
  border-bottom: 1.5px dotted var(--c-faint);
}

/* 폼 */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
}
.field__req {
  font-size: var(--fs-12);
  color: var(--c-bad);
}
.input,
.select,
.textarea {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--c-line-strong);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-15);
  font-weight: var(--fw-regular);
  outline: none;
  min-width: 0;
}
.textarea {
  height: auto;
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  line-height: var(--lh-body);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--c-signal);
  box-shadow: var(--focus-ring);
}
.input[aria-invalid="true"] {
  border: 1.5px solid var(--c-bad);
}
.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-bad);
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
}
.field__hint {
  font-size: var(--fs-12);
  color: var(--c-muted-text);
  font-weight: var(--fw-regular);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fs-14);
  line-height: 1.55;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--c-ink);
}

/* 앱 셸 */
.shell {
  display: flex;
  min-height: 100dvh;
  align-items: flex-start;
}
.sidebar {
  position: sticky;
  top: 0;
  width: var(--sidebar-w);
  height: 100dvh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden auto;
  background: var(--c-surface);
  border-right: 1px solid var(--c-line);
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 16px 14px 18px;
  font-size: 17px;
  font-weight: var(--fw-heavy);
  letter-spacing: -0.035em;
  color: var(--c-ink);
  text-decoration: none;
}
.clinic-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 20px);
  margin: 12px 10px 8px;
  padding: 10px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-bg);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 10px 16px;
}
.nav__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__label {
  padding: 0 10px 4px;
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  color: var(--c-muted-text);
}
.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--c-nav);
  font: inherit;
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.nav__item:hover {
  background: var(--c-sunken);
}
.nav__item[aria-current="page"] {
  background: var(--c-wash);
  color: var(--c-signal-text);
  font-weight: var(--fw-bold);
}
.nav__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--c-warn-bg);
  color: var(--c-warn);
  font-size: 11px;
  font-weight: var(--fw-heavy);
  display: grid;
  place-items: center;
}
.sidebar__account {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-topbar);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-13);
  color: var(--c-muted-text);
}
.crumb b {
  color: var(--c-ink);
  font-size: var(--fs-14);
}
.content {
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-md);
  background: var(--c-wash);
  font-size: var(--fs-13);
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: var(--tr-display);
  line-height: var(--lh-tight);
}
.page-head p {
  margin: 6px 0 0;
  font-size: var(--fs-14);
  color: var(--c-muted-text);
}
.scrim {
  position: fixed;
  inset: 0;
  background: var(--c-scrim);
  z-index: 39;
}
@media (max-width: 899px) {
  .sidebar {
    position: fixed;
    left: 0;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.22s var(--ease);
  }
  .sidebar[data-open="true"] {
    transform: none;
  }
  .topbar {
    padding: 0 16px;
  }
  .content {
    padding: 20px 16px 64px;
  }
  .topbar__menu {
    display: grid;
  }
}
@media (min-width: 900px) {
  .topbar__menu {
    display: none;
  }
}

/* 패널·그리드 */
.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2.4vw, 24px);
  min-width: 0;
}
.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.panel__title {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.panel__sub {
  font-size: var(--fs-12);
  color: var(--c-muted-text);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px;
  align-items: start;
}
.grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.action-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  border-radius: 16px;
  overflow: hidden;
  background: var(--c-ink);
  color: var(--c-on-ink);
}
.action-hero__main {
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.action-hero__side {
  padding: clamp(20px, 3vw, 28px);
  background: var(--c-hero-side);
}
.action-hero__evidence {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--c-hero-text);
}

/* 비율 수치 — 항상 분자/분모 (%) */
.ratio {
  font-size: 22px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ratio small {
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--c-muted-text);
}
.provider-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.provider-card[aria-pressed="true"] {
  border: 2px solid var(--c-signal);
}

/* 표 (div 그리드 또는 table) */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-13);
}
.table th {
  height: 40px;
  padding: 0 12px;
  background: var(--c-sunken);
  font-size: var(--fs-12);
  font-weight: var(--fw-semibold);
  color: var(--c-muted-text);
  text-align: left;
  white-space: nowrap;
}
.table td {
  height: 52px;
  padding: 8px 12px;
  border-top: 1px solid var(--chart-grid);
  vertical-align: middle;
}
.table .is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table tr.is-ours td {
  background: var(--c-ours-bg);
  font-weight: var(--fw-bold);
}
.table .is-empty {
  color: var(--c-faint);
}

/* 순위 리스트 */
.rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rank__row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1.4fr) minmax(48px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: var(--fs-14);
}
.rank__row.is-ours {
  background: var(--c-ours-bg);
  font-weight: var(--fw-heavy);
}
.rank__bar {
  height: 8px;
  border-radius: 4px;
  background: var(--c-track);
  overflow: hidden;
}
.rank__bar > span {
  display: block;
  height: 100%;
  background: var(--chart-other);
}
.rank__row.is-ours .rank__bar > span {
  background: var(--chart-ours);
}
@media (max-width: 520px) {
  .rank__row {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }
  .rank__bar {
    display: none;
  }
}

/* 차트 */
.chart {
  position: relative;
}
.chart svg {
  display: block;
  width: 100%;
  height: 200px;
  overflow: visible;
}
.chart__grid {
  stroke: var(--chart-grid);
}
.chart__line {
  fill: none;
  stroke: var(--chart-ours);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.chart__bar {
  fill: var(--chart-ours);
}
.chart__bar:hover {
  fill: var(--c-ink);
}
.chart__axis {
  font-size: 11px;
  color: var(--c-muted-text);
  font-variant-numeric: tabular-nums;
}
.chart__tip {
  position: absolute;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--c-ink);
  color: var(--c-surface);
  font-size: var(--fs-12);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px var(--c-shadow);
}
.stack {
  display: flex;
  height: 14px;
  border-radius: 5px;
  overflow: hidden;
  gap: 2px;
}
.stack .s-own {
  background: var(--src-own);
}
.stack .s-comp {
  background: var(--src-comp);
}
.stack .s-plat {
  background: var(--src-plat);
}
.stack .s-earn {
  background: var(--src-earn);
}

/* 체크리스트 */
.setup {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 0 28px;
}
.setup__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--chart-grid);
}
.setup__mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--c-line-strong);
  color: var(--c-faint);
}
.setup__item[data-state="done"] .setup__mark {
  background: var(--c-signal);
  border-color: var(--c-signal);
  color: var(--c-surface);
}
.setup__item[data-state="done"] strong {
  color: var(--c-muted-text);
  font-weight: var(--fw-medium);
}
.setup__item[data-state="unknown"] .setup__mark {
  border-style: dashed;
  border-color: var(--c-faint);
}

/* 빈 화면 · 로딩 · 오류 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 24px;
}
.empty__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-wash);
  color: var(--c-signal-text);
  display: grid;
  place-items: center;
}
.empty__title {
  font-size: 16px;
  font-weight: var(--fw-bold);
}
.empty__text {
  font-size: var(--fs-13);
  color: var(--c-muted-text);
  max-width: 360px;
  line-height: 1.6;
}
.skeleton {
  border-radius: 6px;
  background: linear-gradient(
      90deg,
      var(--c-track) 0,
      var(--c-shimmer) 40px,
      var(--c-track) 80px
    )
    var(--c-track);
  background-size: 400px 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  from {
    background-position: -200px 0;
  }
  to {
    background-position: 200px 0;
  }
}
.error-state {
  border: 1px solid var(--c-bad-line);
  border-radius: 12px;
  background: var(--c-surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.error-state__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-bad);
  font-weight: var(--fw-bold);
}

/* 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--c-ink);
  color: var(--c-surface);
  font-size: var(--fs-14);
  box-shadow: 0 8px 24px var(--c-shadow-heavy);
  max-width: calc(100vw - 32px);
}
.toast--error {
  background: var(--c-surface);
  color: var(--c-ink);
  border: 1px solid var(--c-bad-line);
}
.toast__action {
  border: 0;
  background: none;
  color: var(--c-lime);
  font: inherit;
  font-weight: var(--fw-bold);
  cursor: pointer;
}

/* 모달: <dialog class="modal modal--md"> */
.modal {
  border: 0;
  padding: 0;
  width: min(560px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  border-radius: 16px;
  box-shadow: var(--sh-3);
  color: var(--c-ink);
  overflow: hidden;
}
.modal--md {
  width: min(760px, calc(100% - 48px));
}
.modal--lg {
  width: min(1040px, calc(100% - 48px));
}
.modal[open] {
  display: flex;
  flex-direction: column;
}
.modal::backdrop {
  background: var(--c-backdrop);
}
.modal__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 14px 24px;
  border-bottom: 1px solid var(--c-line);
}
.modal__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
  line-height: 1.4;
}
.modal__body {
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid var(--c-line);
  background: var(--c-sunken);
}
@media (max-width: 899px) {
  .modal,
  .modal--md,
  .modal--lg {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    max-height: 92dvh;
  }
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--c-sunken);
}
.segmented button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  cursor: pointer;
}
.segmented button[aria-selected="true"],
.segmented button[aria-pressed="true"] {
  background: var(--c-surface);
  box-shadow: 0 1px 2px var(--c-shadow-soft);
  font-weight: var(--fw-bold);
}

/* 콘텐츠 미리보기 표시 */
.ph {
  background: var(--c-warn-bg);
  color: var(--c-warn);
  border-radius: 4px;
  padding: 1px 4px;
  font-weight: var(--fw-bold);
}
.ad-risk {
  text-decoration: underline wavy var(--c-bad);
  text-underline-offset: 4px;
  color: var(--c-bad);
}

.delivery-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.panel details{padding:12px 0}.panel summary{cursor:pointer}.table td{overflow-wrap:anywhere}

/* Stored evidence and copyable proposals must wrap on narrow screens. */
.execution-text {white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;font:inherit;line-height:1.65}

/* 순위 추이: 기간·공급자 탭, 지표 타일, 다중 선 차트(색 + 점선으로 계열 구분) */
.ranks-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.ranks-toolbar .segmented,
.multi-chart + .legend,
.panel-header .segmented {
  flex-wrap: wrap;
  max-width: 100%;
}
.rank-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
}
.rank-tile {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--c-surface);
  min-width: 0;
}
.rank-tile__label {
  font-size: var(--fs-12);
  color: var(--c-muted-text);
}
.rank-tile__value {
  font-size: var(--fs-24);
  font-variant-numeric: tabular-nums;
}
.delta--flat {
  color: var(--c-muted-text);
}
.multi-chart svg {
  width: 100%;
  min-height: 180px;
}
.multi-chart .series {
  fill: none;
  stroke-width: 2.25;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.multi-chart .series--ours,
.line-key--ours {
  stroke: var(--chart-ours);
  background: var(--chart-ours);
}
.multi-chart .dot--ours {
  fill: var(--chart-ours);
}
.multi-chart .series--other-1,
.line-key--other-1 {
  stroke: var(--c-ink);
  background: var(--c-ink);
}
.multi-chart .dot--other-1 {
  fill: var(--c-ink);
}
.multi-chart .series--other-2,
.line-key--other-2 {
  stroke: var(--chart-other);
  background: var(--chart-other);
}
.multi-chart .dot--other-2 {
  fill: var(--chart-other);
}
.multi-chart .series--other-3,
.line-key--other-3 {
  stroke: var(--c-muted-text);
  background: var(--c-muted-text);
}
.multi-chart .series--other-3 {
  stroke-dasharray: 2 3;
}
.multi-chart .dot--other-3 {
  fill: var(--c-muted-text);
}
.multi-chart .series--rolling,
.line-key--rolling {
  stroke: var(--chart-ours);
  background: repeating-linear-gradient(90deg, var(--chart-ours) 0 4px, transparent 4px 7px);
}
.multi-chart .series--dashed {
  stroke-dasharray: 6 4;
  opacity: 0.75;
}
.multi-chart .marker line {
  stroke: var(--c-lime-strong);
  stroke-width: 2;
  stroke-dasharray: 4 3;
}
.multi-chart .marker circle {
  fill: var(--c-lime);
  stroke: var(--c-lime-strong);
}
.multi-chart .marker text {
  fill: var(--c-ink);
  font-size: 11px;
  font-weight: 700;
}
.sparkline {
  width: 80px;
  height: 22px;
}
.sparkline path {
  fill: none;
  stroke: var(--chart-ours);
  stroke-width: 1.5;
}
.sparkline circle {
  fill: var(--chart-ours);
}
@media (max-width: 599px) {
  .multi-chart .axis {
    font-size: 22px;
  }
  .multi-chart .marker text {
    font-size: 18px;
  }
}

/* Weekly report list in the 성과 보고서 tab */
.weekly-settings {
  padding: 12px 0;
  border-bottom: 1px solid var(--chart-grid);
  overflow-wrap: anywhere;
}
.weekly-settings p {
  margin: 0 0 6px;
}
.weekly-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.weekly-list__item {
  padding: 10px 0;
  border-bottom: 1px solid var(--chart-grid);
  overflow-wrap: anywhere;
}
.weekly-list__item a {
  font-weight: 600;
}

/* Content Studio */
.studio { display: grid; gap: var(--sp-5); min-width: 0; }
.studio .page-heading { margin-bottom: 0; }
.studio-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  background: var(--c-sunken);
  border: 1px solid var(--c-line);
  margin: 0;
}
.studio-progress > div { padding: var(--sp-4); border-inline-start: 1px solid var(--c-line); }
.studio-progress > div:first-child { border-inline-start: 3px solid var(--c-signal); }
.studio-progress dt { color: var(--c-muted-text); font-size: var(--fs-13); }
.studio-progress dd { margin: var(--sp-1) 0 0; font-size: var(--fs-17); font-weight: 700; }
.studio-filters { display: flex; flex-wrap: wrap; align-items: end; gap: var(--sp-3); margin: var(--sp-3) 0; }
.studio-filters .field { min-width: 7.5rem; max-width: 13rem; }
.studio-filters .checkbox { align-self: center; }
.studio-filters .form-error:empty { display: none; }
.studio-candidates table { min-width: 44rem; }
.studio-candidates td { vertical-align: top; }
.studio-score { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--c-signal-text); }
.studio-reasons { min-width: 11rem; margin: 0 0 var(--sp-2); padding-inline-start: 1rem; }
.studio-work { display: grid; grid-template-columns: minmax(14rem, 2fr) minmax(0, 5fr); gap: var(--sp-5); align-items: start; }
.studio-work .panel { min-width: 0; margin: 0; }
.studio-topic-list { list-style: none; padding: 0; max-height: 31rem; overflow: auto; }
.studio-topic-list li { padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-line); }
.studio-topic-list .note { margin: var(--sp-1) 0; }
.studio-topic-list button[aria-pressed="true"] { background-color: var(--c-wash); }
.studio-toolbar {
  position: sticky;
  z-index: 1;
  top: 60px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  padding: var(--sp-2) 0;
  margin-bottom: var(--sp-3);
}
.studio-toolbar .form-error:empty { display: none; }
[data-form="studio-save"]:not([data-dirty="true"]) [data-action="studio-discard"] { display: none; }
.studio-blocks { display: grid; gap: var(--sp-4); margin: var(--sp-4) 0; }
.studio-block { margin: 0; padding: var(--sp-3); min-inline-size: 0; border: 1px solid var(--c-line); }
.studio-block legend { padding-inline: var(--sp-2); font-weight: 650; color: var(--c-ink); }
.studio-block .field + .field { margin-top: var(--sp-3); }
.studio-block .btn, .studio-editor .site-checks { margin-top: var(--sp-3); }
.studio-history { padding-inline-start: var(--sp-5); }
.studio-history li { margin-block: var(--sp-3); overflow-wrap: anywhere; }
.studio-history small { display: block; color: var(--c-muted-text); }
.studio-compare { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: end; margin: var(--sp-4) 0; }
.studio-compare .form-error:empty { display: none; }
.studio-diff { max-height: 22rem; overflow: auto; border: 1px solid var(--c-line); white-space: pre-wrap; overflow-wrap: anywhere; }
.studio-diff > div { padding: var(--sp-1) var(--sp-3); }
.studio-diff .is-added { background: var(--c-good-bg); color: var(--c-good); }
.studio-diff .is-removed { background: var(--c-bad-bg); color: var(--c-bad); }
.studio-evidence { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .studio-work { grid-template-columns: minmax(0, 1fr); }
  .studio-topic-list { max-height: 20rem; }
  .studio-filters .field { flex: 1 1 8rem; max-width: none; }
  .studio-filters .field:first-child { flex-basis: 100%; }
}
