.benchmark-workspace,
.benchmark-workspace > *,
.benchmark-panel,
.benchmark-panel > *,
.benchmark-panel section,
.benchmark-panel div {
  min-width: 0;
  max-width: 100%;
}

.benchmark-workspace {
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

/* 레이아웃(2026-08-01) — 좌 4 : 우 6. 좌측은 카드 2장을 세로로 쌓고(위: 비교할 블로그 분석,
   아래: 벤치마크 블로그 정보), 우측은 내 블로그 비교 1장. 하단은 전체 폭으로 포스팅 상세 분석. */
.benchmark-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--space-5);
  align-items: start;
}

.benchmark-left-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--space-5);
}

.benchmark-setup-card,
.benchmark-info-panel,
.benchmark-compare-panel,
.benchmark-posts-panel {
  min-width: 0;
  display: grid;
  align-content: start;
}

.benchmark-info-panel,
.benchmark-compare-panel,
.benchmark-posts-panel {
  gap: var(--space-4);
}

/* 분석 폼은 항목을 각각 한 행씩 세로로 쌓는다. */
.benchmark-setup-card {
  gap: var(--space-3);
}

.benchmark-setup-card > .panel-header {
  margin-bottom: 0;
}

.benchmark-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: var(--space-3);
}

.benchmark-url-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
}

/* 분석 초기화 — 블로그 ID 입력 오른쪽에서 현재 비교를 비운다. */
.benchmark-reset {
  justify-self: end;
  min-height: var(--control-height);
  padding-inline: var(--space-3);
  font-size: 12px;
  white-space: nowrap;
}

.benchmark-form .analysis-limit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin: 0;
  padding: 0;
  border: 0;
}

.benchmark-form .analysis-limit legend {
  float: left;
  width: 100%;
  margin-bottom: var(--space-1);
  padding: 0;
  font-size: 11px;
  font-weight: 700;
}

.benchmark-form .analysis-limit label {
  white-space: nowrap;
}

.benchmark-setup-card .benchmark-progress {
  align-content: center;
}

.benchmark-progress strong,
.benchmark-progress span {
  display: inline;
  color: inherit;
  font: inherit;
}

.benchmark-progress strong + span::before {
  content: " · ";
}

.benchmark-target-column,
.benchmark-comparison-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: var(--space-4);
}

.benchmark-topic-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}

.benchmark-topic-grid > div {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.benchmark-topic-grid span,
.benchmark-topic-grid small {
  color: var(--muted);
  font-size: 11px;
}

.benchmark-topic-grid strong {
  font-size: 16px;
}

.benchmark-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.benchmark-chart-legend {
  display: flex;
  gap: var(--space-3);
  color: var(--muted);
  font-size: 11px;
}

.benchmark-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.benchmark-chart-legend span::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--benchmark-own);
}

.benchmark-chart-legend .private::before {
  background: #fff;
  border: 0;
  opacity: 0;
}

.benchmark-visitor-comparison .visitor-comparison-line.target,
.benchmark-visitor-comparison .visitor-comparison-point.target {
  stroke: #e87518;
}

.benchmark-visitor-comparison .visitor-comparison-point.target.is-latest {
  fill: #e87518;
}

.benchmark-visitor-comparison .visitor-comparison-value.target {
  fill: #e87518;
}

.benchmark-visitor-comparison.is-private .visitor-comparison-line.target,
.benchmark-visitor-comparison.is-private .visitor-comparison-point.target,
.benchmark-visitor-comparison.is-private .visitor-comparison-value.target {
  fill: #fff;
  stroke: #fff;
  opacity: 0;
}

.benchmark-visitor-comparison {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.benchmark-score-section {
  gap: var(--space-3);
}

.benchmark-score-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.score-composition {
  min-width: 0;
  display: grid;
  align-content: start;
}

.score-composition-head,
.score-composition-row {
  display: grid;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.score-composition-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.score-composition-head strong {
  font-family: var(--score-font);
  font-size: 24px;
  font-weight: var(--score-font-weight);
  letter-spacing: var(--score-letter-spacing);
}

.score-composition-row {
  grid-template-columns: 96px minmax(0, 1fr) 44px;
  font-size: 11px;
}

.score-composition-row i {
  height: 4px;
  overflow: hidden;
}

.score-composition-row i b {
  display: block;
  height: 100%;
}

.score-composition-row > strong {
  text-align: right;
  font-size: 11px;
}

.benchmark-post-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.benchmark-post-toolbar select {
  width: auto;
  min-width: 150px;
}

.benchmark-compare-head,
.benchmark-post-head {
  padding-inline: 0;
}

.benchmark-compare-row,
.benchmark-post-row {
  margin: 0;
}

.benchmark-post-item {
  border: 0;
}

summary.benchmark-post-row {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: var(--space-5);
}

summary.benchmark-post-row::-webkit-details-marker {
  display: none;
}

/* 펼침 화살표. 2026-08-19까지 ::after의 content로 "expand_more"라는 **글자**를 넣고
   Material Symbols 합자가 그것을 아이콘 모양으로 바꿔 그리게 하고 있었다. 아이콘을 SVG
   스프라이트로 옮기면서(a34c802) 폰트가 사라져 «expand_more»라는 글자가 그대로 찍혔다.
   ::after로는 스프라이트의 #i-expand_more를 못 쓰므로 마크업에 svg를 넣고 여기서 자리만
   잡는다. 접힘/펼침은 글자를 바꾸는 대신 같은 화살표를 180도 돌린다(.guide-toggle-icon과
   같은 방식). absolute라 그리드 칸을 차지하지 않는 것도 ::after 때와 같다. */
.benchmark-toggle-icon {
  position: absolute;
  right: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
  transition: transform var(--motion-standard);
}

.benchmark-post-item[open] > summary.benchmark-post-row > .benchmark-toggle-icon {
  transform: translateY(-50%) rotate(180deg);
}

.benchmark-post-evidence {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-4);
  background: var(--active-bg);
  border-bottom: 1px solid var(--line);
}

.benchmark-panel .category-bar,
.benchmark-panel .note-box,
.benchmark-panel .info-line,
.benchmark-panel .empty-state {
  background: transparent;
}

.benchmark-panel .empty-state {
  border: 0;
  border-bottom: 1px solid var(--line);
}

.benchmark-panel img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.benchmark-profile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  overflow: hidden;
  padding: 0 0 var(--space-4);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.benchmark-profile img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.benchmark-profile p {
  grid-column: 1 / -1;
}

.benchmark-profile strong,
.benchmark-profile span,
.benchmark-profile p,
.benchmark-panel h2,
.benchmark-panel h3,
.benchmark-panel p,
.benchmark-panel a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.benchmark-compare-head,
.benchmark-compare-row {
  grid-template-columns: minmax(80px, 0.8fr) minmax(64px, 0.55fr) minmax(64px, 0.55fr) minmax(0, 1.5fr);
}

.benchmark-post-head,
.benchmark-post-row {
  grid-template-columns: 48px minmax(0, 1.35fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1fr);
}

.benchmark-post-row > *,
.benchmark-compare-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.benchmark-panel .visitor-chart,
.benchmark-panel .benchmark-visitor-chart,
.benchmark-panel svg {
  max-width: 100%;
}

.score-summary,
.detail-score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.score-dot {
  min-width: 44px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--score-font);
  font-size: 24px;
  font-weight: var(--score-font-weight);
  line-height: 1;
  letter-spacing: var(--score-letter-spacing);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.score-dot.green { color: var(--green); }
.score-dot.yellow { color: var(--yellow); }
.score-dot.orange { color: var(--orange); }
.score-dot.red { color: var(--red); }
.score-dot.crimson { color: var(--crimson); }

.score-total strong,
.score-component-list strong {
  font-family: var(--score-font);
  font-weight: var(--score-font-weight);
  letter-spacing: var(--score-letter-spacing);
  font-variant-numeric: tabular-nums;
}
