/* デザイナー入稿データチェッカー 固有のCSS（接頭辞 hc-） */
.hc-side { display: grid; gap: var(--tk-gap); min-width: 0; }
.hc-help-gap { margin-top: 10px; }
.hc-help-top { margin-top: 0; }
.hc-indent { padding-left: 24px; }
.hc-inline-fields { display: grid; gap: 0 12px; grid-template-columns: minmax(0, 1fr); }
.hc-subtitle { font-size: 1rem; margin: 24px 0 6px; }

/* 読み込んだファイルの一覧（ドロップ領域の下） */
.hc-drop.is-loading { border-color: var(--tk-accent); background: var(--tk-accent-soft); }
.hc-drop.is-loaded { border-style: solid; border-color: var(--tk-success); }
.hc-loaded {
  margin: 0 0 12px; padding: 12px; border: 1px solid var(--tk-success); border-radius: var(--tk-radius-sm);
  background: var(--tk-success-soft);
}
.hc-loaded__title { margin: 0 0 8px; font-weight: 700; color: var(--tk-success); }
.hc-loaded__list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; max-height: 220px; overflow: auto; }
.hc-loaded__item { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: .8125rem; color: var(--tk-text); }
.hc-loaded__name { overflow-wrap: anywhere; min-width: 0; }
.hc-loaded__item.is-new .hc-loaded__name { font-weight: 700; }
.hc-loaded__item .tk-status { flex-shrink: 0; }

/* 透明部分が分かる市松模様の背景 */
.hc-checker {
  background-color: var(--tk-surface);
  background-image:
    linear-gradient(45deg, var(--tk-surface-2) 25%, transparent 25%),
    linear-gradient(-45deg, var(--tk-surface-2) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--tk-surface-2) 75%),
    linear-gradient(-45deg, transparent 75%, var(--tk-surface-2) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
}

/* 集計 */
.hc-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.hc-summary__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px; border-radius: var(--tk-radius-sm); font-size: .8125rem; font-weight: 600;
}
.hc-summary__item--ng { background: var(--tk-danger-soft); color: var(--tk-danger); }
.hc-summary__item--warn { background: var(--tk-warning-soft); color: var(--tk-warning); }
.hc-summary__item--ok { background: var(--tk-success-soft); color: var(--tk-success); }
.hc-summary__num { font-size: 1.5rem; line-height: 1.2; }
.hc-summary__total { grid-column: 1 / -1; margin: 0; text-align: right; }
.hc-filter { margin: 0 0 8px; }

/* ファイルごとの結果 */
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hc-file {
  border: 1px solid var(--tk-border); border-left-width: 4px; border-radius: var(--tk-radius-sm);
  padding: 12px; background: var(--tk-surface);
}
.hc-file--ng { border-left-color: var(--tk-danger); }
.hc-file--warn { border-left-color: var(--tk-warning); }
.hc-file--ok { border-left-color: var(--tk-success); }
.hc-file__head { display: flex; gap: 10px; align-items: center; }
.hc-file__thumb { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hc-file__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hc-file__info { flex: 1; min-width: 0; }
.hc-file__name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.hc-file__meta { margin: 0; }
.hc-issues { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.hc-issue { display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; }
.hc-issue .tk-status { flex-shrink: 0; margin-top: 2px; }
.hc-issue__text { margin: 0; overflow-wrap: anywhere; }
.hc-issue__fix { margin: 2px 0 0; overflow-wrap: anywhere; }
.hc-status-info { background: var(--tk-surface-2); color: var(--tk-text-muted); }

/* SVGの最適化 */
.hc-svg-stats__line { font-weight: 700; font-size: 1.0625rem; margin: 0 0 10px; }
.hc-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.hc-compare__item { margin: 0; }
.hc-compare__item figcaption { font-size: .8125rem; font-weight: 600; margin-bottom: 4px; }
.hc-compare .hc-checker { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 8px; }
.hc-compare img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hc-cc-preview input[type="color"] { width: 48px; height: 32px; padding: 0; border: 1px solid var(--tk-border); border-radius: var(--tk-radius-sm); background: var(--tk-surface); vertical-align: middle; }
.hc-code { min-height: 160px; font-family: var(--tk-mono); font-size: .75rem; white-space: pre-wrap; word-break: break-all; }

/* Markdown */
.hc-pre { white-space: pre-wrap; word-break: break-word; max-height: 480px; overflow: auto; }

.hc-howto { margin: 0; padding-left: 1.2em; }
.hc-howto li { margin-bottom: 6px; }

@media (min-width: 768px) {
  .hc-inline-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
