/* TOONPOP_CLAUDE_STAGE1_SAFE_V001_20260707
   base: toonpop_feed_v10r30
   visual only / no JS behavior / no drawer shade / no body overlay */

body.tpf2-body,
body.tpf2-body button,
body.tpf2-body input,
body.tpf2-body textarea,
body.tpf2-body select {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif !important;
}

body.tpf2-body {
  --tp-bg: #FBFAF8 !important;
  --tp-panel: #FFFFFF !important;
  --tp-panel2: #F4F2EC !important;
  --tp-text: #211C17 !important;
  --tp-muted: #6B6459 !important;
  --tp-soft: #A69E90 !important;
  --tp-line: #ECEAE2 !important;
  --tp-accent: #E1501F !important;
  --tp-accent2: #E0952A !important;
  --tp-hot: #211C17 !important;
  --tp-on-accent: #FFFFFF !important;
  --tp-focus: rgba(225, 80, 31, .22) !important;
  --tp-shadow-soft: 0 1px 2px rgba(33, 28, 23, .06), 0 8px 24px rgba(33, 28, 23, .05) !important;
  --tp-shadow: 0 1px 2px rgba(33, 28, 23, .06), 0 10px 26px rgba(33, 28, 23, .06) !important;
  background: var(--tp-bg) !important;
  color: var(--tp-text) !important;
  font-variant-numeric: tabular-nums !important;
}

html[data-theme="dark"] body.tpf2-body {
  --tp-bg: #17130F !important;
  --tp-panel: #201A15 !important;
  --tp-panel2: #2A231C !important;
  --tp-text: #F0EAE2 !important;
  --tp-muted: #B2A899 !important;
  --tp-soft: #7C7264 !important;
  --tp-line: #352C24 !important;
  --tp-accent: #FF6A3E !important;
  --tp-accent2: #E8B04B !important;
  --tp-hot: #F0EAE2 !important;
  --tp-on-accent: #1C0E06 !important;
  --tp-focus: rgba(255, 106, 62, .28) !important;
  --tp-shadow-soft: 0 1px 2px rgba(0, 0, 0, .22), 0 10px 28px rgba(0, 0, 0, .18) !important;
  --tp-shadow: 0 1px 2px rgba(0, 0, 0, .22), 0 12px 30px rgba(0, 0, 0, .20) !important;
  background: var(--tp-bg) !important;
}

/* header / logo */
body.tpf2-body .tpf2-header {
  background: rgba(251, 250, 248, .92) !important;
  border-bottom: 1px solid var(--tp-line) !important;
}
html[data-theme="dark"] body.tpf2-body .tpf2-header {
  background: rgba(23, 19, 15, .92) !important;
}
body.tpf2-body .tpf2-header__inner {
  min-height: 68px !important;
  gap: 16px !important;
}
body.tpf2-body .tpf2-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  color: var(--tp-text) !important;
  letter-spacing: -.035em !important;
  white-space: nowrap !important;
}
body.tpf2-body .tpf2-logo__mark,
body.tpf2-body .tpf2-logo__badge {
  display: none !important;
}
body.tpf2-body .tpf2-logo__word {
  display: inline-flex !important;
  align-items: flex-start !important;
  color: var(--tp-text) !important;
  font-size: 34px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -.06em !important;
}
body.tpf2-body .tpf2-logo__pop {
  color: var(--tp-accent) !important;
  font-weight: 950 !important;
}
body.tpf2-body .tpf2-logo__dot {
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  margin-left: 2px !important;
  margin-top: .2em !important;
  border-radius: 999px !important;
  background: var(--tp-accent) !important;
  flex: 0 0 auto !important;
}

/* top nav / search */
body.tpf2-body .tpf2-primary a {
  padding: 8px 11px !important;
  border-radius: 999px !important;
  color: var(--tp-muted) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}
body.tpf2-body .tpf2-primary a:hover,
body.tpf2-body .tpf2-primary a.is-active {
  background: var(--tp-panel2) !important;
  color: var(--tp-text) !important;
}
body.tpf2-body .tpf2-search {
  height: 39px !important;
  max-width: 390px !important;
  border: 1px solid var(--tp-line) !important;
  border-radius: 999px !important;
  background: var(--tp-panel2) !important;
  box-shadow: none !important;
}
body.tpf2-body .tpf2-search:focus-within {
  background: var(--tp-panel) !important;
  border-color: rgba(225, 80, 31, .34) !important;
}
body.tpf2-body .tpf2-search button {
  background: transparent !important;
  color: var(--tp-muted) !important;
  box-shadow: none !important;
}
body.tpf2-body .tpf2-search button:hover {
  color: var(--tp-accent) !important;
}
body.tpf2-body .tpf2-icon {
  color: var(--tp-muted) !important;
}
body.tpf2-body .tpf2-icon:hover {
  background: var(--tp-panel2) !important;
  color: var(--tp-text) !important;
}
body.tpf2-body .tpf2-login {
  background: var(--tp-accent) !important;
  color: var(--tp-on-accent) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* tag chips: closed more row must occupy zero height */
body.tpf2-body .tpf2-chip-row {
  background: transparent !important;
  border-top: 1px solid var(--tp-line) !important;
  border-bottom: 1px solid var(--tp-line) !important;
}
body.tpf2-body .tpf2-chip-row__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 8px !important;
  max-width: var(--tp-max) !important;
  padding: 9px 18px !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.tpf2-body .tpf2-tagbar,
body.tpf2-body .tpf2-tagbar--main {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 32px !important;
  padding: 0 !important;
}
body.tpf2-body .tpf2-tagbar--main {
  grid-column: 1 !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}
body.tpf2-body .tpf2-tagbar--main::-webkit-scrollbar {
  display: none !important;
}
body.tpf2-body .tpf2-tagbar__more {
  grid-column: 2 !important;
}
body.tpf2-body .tpf2-chip-row a,
body.tpf2-body .tpf2-tagbar a,
body.tpf2-body .tpf2-tagbar__more,
body.tpf2-body .tpf2-tagbar--more a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid var(--tp-line) !important;
  border-radius: 999px !important;
  background: var(--tp-panel) !important;
  color: var(--tp-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
body.tpf2-body .tpf2-chip-row a:hover,
body.tpf2-body .tpf2-chip-row a.is-active,
body.tpf2-body .tpf2-tagbar a:hover,
body.tpf2-body .tpf2-tagbar a.is-active,
body.tpf2-body .tpf2-tagbar__more:hover,
body.tpf2-body .tpf2-chip-row.is-more-open .tpf2-tagbar__more {
  background: var(--tp-accent) !important;
  border-color: var(--tp-accent) !important;
  color: var(--tp-on-accent) !important;
}
body.tpf2-body .tpf2-chip-row:not(.is-more-open) .tpf2-tagbar--more {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
body.tpf2-body .tpf2-chip-row.is-more-open .tpf2-tagbar--more {
  display: flex !important;
  grid-column: 1 / -1 !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 132px !important;
  margin-top: 8px !important;
  padding: 0 0 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  transform: none !important;
}

/* panels / cards / rail */
body.tpf2-body .tpf2-panel,
body.tpf2-body .tpf2-rank,
body.tpf2-body .tpf2-related,
body.tpf2-body .tpf2-comment-card,
body.tpf2-body .tpf2-view-head,
body.tpf2-body .tpf2-reader {
  background: var(--tp-panel) !important;
  border: 1px solid var(--tp-line) !important;
  border-radius: 20px !important;
  box-shadow: var(--tp-shadow-soft) !important;
}
body.tpf2-body .tpf2-panel__head {
  border-top-color: var(--tp-accent) !important;
}
body.tpf2-body .tpf2-panel h1,
body.tpf2-body .tpf2-panel h2 {
  color: var(--tp-text) !important;
  font-size: 23px !important;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
}
body.tpf2-body .tpf2-card {
  border: 1px solid var(--tp-line) !important;
  border-radius: 16px !important;
  background: var(--tp-panel) !important;
  box-shadow: 0 1px 2px rgba(33, 28, 23, .05) !important;
}
body.tpf2-body .tpf2-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(33, 28, 23, .08) !important;
  border-color: rgba(225, 80, 31, .18) !important;
}
body.tpf2-body .tpf2-card__title {
  color: var(--tp-text) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}
body.tpf2-body .tpf2-card__meta,
body.tpf2-body .tpf2-view-meta,
body.tpf2-body .tpf2-rank time {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace !important;
  font-size: 12px !important;
  color: var(--tp-muted) !important;
}
body.tpf2-body .tpf2-card__badges span,
body.tpf2-body .tpf2-card-tag,
body.tpf2-body .tpf2-view-badges span {
  background: var(--tp-panel2) !important;
  color: var(--tp-muted) !important;
  border: 1px solid var(--tp-line) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

/* ranking */
body.tpf2-body .tpf2-rank {
  padding: 15px !important;
}
body.tpf2-body .tpf2-rank__head b {
  font-size: 15px !important;
  font-weight: 900 !important;
  color: var(--tp-text) !important;
}
body.tpf2-body .tpf2-rank__head span {
  color: var(--tp-accent) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}
body.tpf2-body .tpf2-rank a {
  grid-template-columns: 24px minmax(0, 1fr) auto !important;
  gap: 9px !important;
  padding: 8px 0 !important;
}
body.tpf2-body .tpf2-rank em {
  width: 20px !important;
  height: 20px !important;
  background: var(--tp-accent) !important;
  color: var(--tp-on-accent) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

/* view mode / pager */
body.tpf2-body .tpf2-mode button {
  border: 1px solid var(--tp-line) !important;
  border-radius: 12px !important;
  background: var(--tp-panel) !important;
  color: var(--tp-muted) !important;
  box-shadow: none !important;
}
body.tpf2-body .tpf2-mode button:hover,
body.tpf2-body .tpf2-mode button.is-active,
body.tpf2-body .tpf2-mode button[aria-pressed="true"] {
  background: var(--tp-accent) !important;
  border-color: var(--tp-accent) !important;
  color: var(--tp-on-accent) !important;
}
body.tpf2-body .tpf2-pager a,
body.tpf2-body .tpf2-pager span,
body.tpf2-body .pg_wrap a,
body.tpf2-body .pg_wrap span {
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid var(--tp-line) !important;
  border-radius: 999px !important;
  background: var(--tp-panel) !important;
  color: var(--tp-muted) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}
body.tpf2-body .tpf2-pager .is-current,
body.tpf2-body .tpf2-pager span.is-current,
body.tpf2-body .pg_wrap .pg_current {
  background: var(--tp-accent) !important;
  border-color: var(--tp-accent) !important;
  color: var(--tp-on-accent) !important;
}

/* view action buttons */
body.tpf2-body .tpf2-view-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 22px 0 0 !important;
}
body.tpf2-body .tpf2-view-actions .tpf2-action-good {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 140px !important;
  height: 50px !important;
  padding: 0 24px !important;
  border: 1px solid var(--tp-accent) !important;
  border-radius: 999px !important;
  background: var(--tp-accent) !important;
  color: var(--tp-on-accent) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 28px rgba(225, 80, 31, .18) !important;
}
body.tpf2-body .tpf2-view-actions .tpf2-action-good .tpf2-svg {
  width: 20px !important;
  height: 20px !important;
}
body.tpf2-body .tpf2-view-actions .tpf2-action-icononly {
  display: inline-grid !important;
  place-items: center !important;
  width: 50px !important;
  min-width: 50px !important;
  height: 50px !important;
  padding: 0 !important;
  border: 1px solid var(--tp-line) !important;
  border-radius: 999px !important;
  background: var(--tp-panel) !important;
  color: var(--tp-muted) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
body.tpf2-body .tpf2-view-actions .tpf2-action-icononly .tpf2-svg {
  width: 22px !important;
  height: 22px !important;
  font-size: 22px !important;
}
body.tpf2-body .tpf2-view-actions .tpf2-action-icononly:hover {
  color: var(--tp-accent) !important;
  border-color: rgba(225, 80, 31, .34) !important;
  background: var(--tp-panel2) !important;
}
body.tpf2-body .tpf2-share-panel {
  background: var(--tp-panel) !important;
  border: 1px solid var(--tp-line) !important;
  border-radius: 18px !important;
  box-shadow: var(--tp-shadow-soft) !important;
}

/* mobile safe visual only */
@media (max-width: 760px) {
  body.tpf2-body .tpf2-header__inner {
    min-height: 56px !important;
    padding: 8px 9px !important;
    gap: 6px !important;
  }
  body.tpf2-body .tpf2-logo__word {
    font-size: 23px !important;
    letter-spacing: -.06em !important;
  }
  body.tpf2-body .tpf2-logo__dot {
    width: 5px !important;
    height: 5px !important;
  }
  body.tpf2-body .tpf2-chip-row__inner {
    padding: 8px 9px !important;
    gap: 7px !important;
  }
  body.tpf2-body .tpf2-tagbar,
  body.tpf2-body .tpf2-tagbar--main {
    min-height: 32px !important;
  }
  body.tpf2-body .tpf2-chip-row a,
  body.tpf2-body .tpf2-tagbar a,
  body.tpf2-body .tpf2-tagbar__more,
  body.tpf2-body .tpf2-tagbar--more a {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }
  body.tpf2-body .tpf2-panel h1,
  body.tpf2-body .tpf2-panel h2 {
    font-size: 20px !important;
  }
  body.tpf2-body .tpf2-card__title {
    font-size: 14px !important;
  }
  body.tpf2-body .tpf2-view-actions .tpf2-action-good {
    min-width: 132px !important;
    height: 48px !important;
  }
  body.tpf2-body .tpf2-view-actions .tpf2-action-icononly {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
  }
}
