:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1a1d23;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #f59e0b;
  --success: #10b981;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --card: #1a1d23;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #2a2e36;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
    "Noto Sans KR", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.site-header a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.site-header .logo {
  font-size: 18px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.site-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.site-nav .nav-link:hover {
  color: var(--text);
  background: var(--bg);
}

.site-nav .nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}

/* PWA "웹앱 설치" 버튼 — 보라(#7c3aed)로 favicon blue·향후 native green과 강한 시각 구분.
   manifest theme_color·pwa-icon.svg와 동일 색.
   향후 native 안드로이드 앱 다운 버튼은 Play green(#01875F)으로 별도 색·텍스트(예: ".play-btn"). */
.site-nav .install-btn {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #7c3aed;
  border: none;
  padding: 6px 12px;
  margin-left: 6px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background .15s, transform .1s;
}

.site-nav .install-btn:hover {
  background: #6d28d9;
}

.site-nav .install-btn:active {
  transform: scale(0.97);
}

.site-nav .install-btn[hidden] {
  display: none;
}

/* 설치 완료 = 비활성 회색. 사용자에게 "이미 설치됨" 시각 피드백. */
.site-nav .install-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  opacity: 0.85;
}

.site-nav .install-btn:disabled:hover {
  background: var(--muted);
  transform: none;
}

/* 언어 토글 — 헤더 우측, install 버튼 다음. 작은 텍스트 link. */
.site-nav .lang-toggle {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 8px;
  margin-left: 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.site-nav .lang-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ≤480px = 모바일. JS가 install을 header 직접 자식으로 옮김 (site-chrome.js placeInstall).
   header는 grid 2줄: 1줄 [logo · install] / 2줄 [nav 5분할 균등].
   active 카테고리는 하단 막대(border-bottom 2px primary)로 iOS UITabBar 패턴 — 직관성 ↑. */
@media (max-width: 480px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 10px 12px 0;
    column-gap: 8px;
    row-gap: 4px;
  }
  .site-header .logo {
    grid-column: 1;
    grid-row: 1;
    font-size: 15px;
  }
  /* install이 header 직접 자식일 때만 grid 1행 우측에 배치 (모바일 한정) */
  .site-header > .install-btn {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    font-size: 12px;
    padding: 5px 10px;
    justify-self: end;
  }
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 6px -12px 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
  }
  .site-nav .nav-link {
    font-size: 12px;
    font-weight: 500;
    padding: 10px 2px;
    text-align: center;
    border-radius: 0;
    border-bottom: 2px solid transparent;
  }
  .site-nav .nav-link:hover {
    background: transparent;
  }
  .site-nav .nav-link.active {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
    border-bottom-color: var(--primary);
  }
}

@media (max-width: 360px) {
  .site-header {
    padding: 8px 8px 0;
    column-gap: 6px;
  }
  .site-header .logo {
    font-size: 14px;
  }
  .site-header > .install-btn {
    font-size: 11px;
    padding: 4px 8px;
  }
  .site-nav {
    margin: 6px -8px 0;
  }
  .site-nav .nav-link {
    font-size: 11px;
    padding: 9px 2px;
  }
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.tool-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.tool-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.tool-card .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.tool-card .name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.tool-card .desc {
  font-size: 13px;
  color: var(--muted);
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
  margin-top: 28px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

label .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-left: 6px;
}

input[type="number"],
input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: var(--primary);
}

input::placeholder {
  color: var(--muted);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

button {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

button:hover {
  background: var(--primary-hover);
}

.result {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(245, 158, 11, 0.06));
  border: 1px solid var(--border);
  border-radius: 12px;
}

.result-headline {
  text-align: center;
  margin-bottom: 20px;
}

.result-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.result-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.result-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.breakdown {
  border-top: 1px dashed var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.breakdown-row.total {
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
}

.breakdown-row .label {
  color: var(--muted);
}

.breakdown-row .value {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.disclaimer {
  margin-top: 24px;
  padding: 14px 16px;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.ad-slot {
  margin: 24px 0;
  padding: 20px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coupang-banner {
  margin: 24px 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.coupang-banner .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-group label {
  flex: 1;
  min-width: 100px;
  padding: 10px 14px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
  transition: all 0.15s;
}

.radio-group input[type="radio"] {
  display: none;
}

.radio-group input[type="radio"]:checked + label,
.radio-group label:has(input[type="radio"]:checked) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.faq,
.disclosure-group {
  margin-top: 32px;
}

.disclosure-group > h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.faq details,
.disclosure-group details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 0;
}

.faq summary,
.disclosure-group summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  list-style: none;
}

.faq summary::-webkit-details-marker,
.disclosure-group summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.disclosure-group summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.faq details[open] summary::after,
.disclosure-group details[open] summary::after {
  content: "−";
}

.faq details[open] summary,
.disclosure-group details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq .answer {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.disclosure-group .body {
  padding: 14px 18px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.disclosure-group .body > *:last-child {
  margin-bottom: 0;
}

.disclosure-group .body .ref-table,
.disclosure-group .body .formula-list,
.disclosure-group .body .case-grid {
  margin-top: 4px;
  margin-bottom: 12px;
}

.disclosure-group .body .formula-list,
.disclosure-group .body .ref-table {
  background: var(--bg);
}

.sources {
  margin-top: 32px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
}

.sources h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.sources .updated {
  font-size: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sources li {
  padding: 6px 0;
  line-height: 1.6;
}

.sources li b {
  color: var(--text);
  font-weight: 600;
}

.sources a {
  color: var(--primary);
  text-decoration: none;
}

.sources a:hover {
  text-decoration: underline;
}

.sources .note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  line-height: 1.6;
}

.basis-badge {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
}

/* ========== Hub page enhancements ========== */

.hero {
  text-align: center;
  padding: 32px 0 24px;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero .subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.search-box {
  max-width: 480px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  outline: none;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}

.search-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.search-box .hint {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

.featured-section {
  margin: 32px 0 8px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.featured-card {
  display: block;
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(245, 158, 11, 0.05));
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.featured-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.featured-card .name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.featured-card .desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.featured-card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.season-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin: 24px 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s;
}

.season-banner:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  transform: translateY(-1px);
}

.season-banner .icon {
  font-size: 32px;
  flex-shrink: 0;
}

.season-banner .body {
  flex: 1;
  min-width: 0;
}

.season-banner .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.season-banner .name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
}

.season-banner .desc {
  font-size: 13px;
  color: var(--muted);
}

.season-banner .arrow {
  color: var(--muted);
  font-size: 20px;
  flex-shrink: 0;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.category-pills .pill {
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s;
}

.category-pills .pill:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.category-pills .pill .count {
  margin-left: 4px;
  opacity: 0.6;
  font-size: 12px;
}

.category-section {
  margin-top: 32px;
  scroll-margin-top: 20px;
}

.category-section .header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.category-section .title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.category-section .count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 14px;
  display: none;
}

.empty-state .icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.tool-card.hidden {
  display: none;
}

.category-section.hidden {
  display: none;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 24px;
  }
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-card {
    padding: 18px 14px;
  }
  .featured-card .icon {
    font-size: 28px;
  }
  .season-banner {
    padding: 14px 16px;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 20px 16px 60px;
  }
  h1 {
    font-size: 24px;
  }
  .result-value {
    font-size: 28px;
  }
  .row {
    grid-template-columns: 1fr;
  }
}

/* ========== Tool article (랜딩 콘텐츠 블록) ========== */

.tool-article {
  margin-top: 32px;
}

.tool-article h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.tool-article > h2:first-child {
  margin-top: 0;
}

.tool-article p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
}

.tool-article p strong,
.tool-article p b {
  color: var(--text);
}

.tool-article .small {
  font-size: 12.5px;
  line-height: 1.6;
}

.ref-table {
  margin: 12px 0 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}

.ref-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ref-table th,
.ref-table td {
  padding: 10px 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ref-table th:first-child,
.ref-table td:first-child {
  text-align: left;
}

.ref-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.ref-table tr + tr td {
  border-top: 1px solid var(--border);
}

.ref-table .highlight {
  color: var(--primary);
  font-weight: 600;
}

.formula-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 22px;
  margin: 12px 0 16px;
}

.formula-list ol {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.formula-list li b {
  color: var(--text);
}

.formula-list code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--text);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.case-grid .case {
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.case-grid .case b {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.related-calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.related-calc a {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.related-calc a:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
}

.related-calc a .desc {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* ====== image/ 카테고리 공용 ====== */

.privacy-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: 16px 0;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.privacy-box .icon {
  font-size: 18px;
  line-height: 1;
  flex: 0 0 auto;
}

.privacy-box b {
  color: var(--text);
  font-weight: 700;
}

.file-drop-zone {
  display: block;
  position: relative;
  padding: 32px 20px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
}

.file-drop-zone .drop-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 10px;
}

.file-drop-zone .drop-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.file-drop-zone .drop-hint {
  font-size: 12.5px;
  color: var(--muted);
}

.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.image-preview {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .image-preview { background: rgba(255, 255, 255, 0.03); }
}

.image-preview img,
.image-preview canvas {
  display: block;
  max-width: 100%;
  max-height: 480px;
  margin: 0 auto;
  border-radius: 6px;
  background: #fff;
}

.image-meta {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.image-meta b {
  color: var(--text);
  font-weight: 600;
}

.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.image-actions button,
.image-actions .download-btn {
  width: auto;
  flex: 0 0 auto;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.image-actions .download-btn {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.image-actions .download-btn:hover { filter: brightness(1.05); }

.image-actions button:hover { background: var(--border); }

.image-actions button[disabled],
.image-actions .download-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.range-row input[type="range"] {
  flex: 1 1 auto;
  width: auto;
}

.range-row .range-value {
  flex: 0 0 auto;
  min-width: 56px;
  text-align: right;
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

/* ===== 카테고리 hub 공용 — Tier 1.2 SEO 콘텐츠 깊이 ===== */

.hub-intro {
  margin-top: 36px;
  padding: 24px 28px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
}
.hub-intro-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.hub-intro-lead {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 12px;
  letter-spacing: -.01em;
  color: var(--text);
}
.hub-intro-lead .hl { color: var(--primary); }
.hub-intro-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.hub-intro-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.hub-faq {
  margin-top: 36px;
}
.hub-faq h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.hub-faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  margin-bottom: 8px;
  overflow: hidden;
}
.hub-faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  list-style: none;
}
.hub-faq summary::-webkit-details-marker { display: none; }
.hub-faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}
.hub-faq details[open] summary::after { content: "−"; }
.hub-faq .answer {
  padding: 0 18px 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

@media (max-width: 480px) {
  .hub-intro { padding: 18px 16px 16px; margin-top: 28px; }
  .hub-intro-lead { font-size: 15.5px; }
  .hub-intro-body { font-size: 13.5px; line-height: 1.75; }
  .hub-faq summary { padding: 12px 14px; font-size: 13.5px; }
  .hub-faq .answer { padding: 0 14px 14px; font-size: 13px; }
}


/* AdSense 미승인 — 광고 placeholder 숨김.
   승인 후 이 블록 삭제하면 `.ad-slot` 위치가 다시 노출됩니다. */
.ad-slot { display: none !important; }

