:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eff6ff;
  --sidebar-width: 220px;
  --header-height: 56px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  padding-top: var(--header-height);
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 8px;
  background: var(--surface);
}

.tool-search {
  position: relative;
  width: 38px;
  height: 36px;
  transition: width .18s ease;
}

.tool-search:focus-within {
  width: 210px;
}

.tool-search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  transform: translateY(-53%);
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 800;
  pointer-events: none;
}

.tool-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: .84rem;
}

.tool-search input::placeholder {
  color: transparent;
}

.tool-search:focus-within input {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.tool-search:focus-within input::placeholder {
  color: var(--muted);
}

.tool-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 150;
  width: min(320px, calc(100vw - 24px));
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .16);
}

.tool-search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
}

.tool-search-results a::after {
  content: '→';
  color: var(--accent);
}

.tool-search-results a:hover,
.tool-search-results a.is-focused {
  background: var(--accent-soft);
  color: var(--accent);
}

.tool-search-empty {
  margin: 0;
  padding: 14px 10px;
  color: var(--muted);
  text-align: center;
  font-size: .84rem;
}

/* Header nav */
.header-nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.header-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: max-content;
}

.header-nav-item {
  position: relative;
}

.header-nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.header-nav-trigger::after {
  content: '';
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  transition: transform 0.15s;
}

.header-nav-item:hover .header-nav-trigger,
.header-nav-item.is-open .header-nav-trigger,
.header-nav-item.is-active .header-nav-trigger {
  background: var(--accent-soft);
  color: var(--accent);
}

.header-nav-item.is-open .header-nav-trigger::after {
  transform: rotate(180deg);
}

.header-nav-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  display: grid;
  gap: 1px;
  min-width: 200px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
}

.header-nav-item.is-open .header-nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-nav-panel a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.header-nav-panel a:hover {
  background: var(--bg);
  color: var(--ink);
}

.header-nav-panel a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.lang-btn {
  min-width: 30px;
  padding: 5px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-text {
  line-height: 1;
}

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* Layout */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* Sidebar mount placeholder (fetch include 전 레이아웃 유지) */
#sidebar:empty {
  min-height: 360px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

/* Sidebar */
.site-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  max-height: calc(100vh - var(--header-height) - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--line) 80%, transparent) transparent;
}

.site-sidebar::-webkit-scrollbar {
  width: 6px;
}

.site-sidebar::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
}

.sidebar-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.sidebar-home {
  display: block;
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.sidebar-home:hover,
.sidebar-home.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.sidebar-block {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-block:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.05em;
  cursor: default;
  user-select: none;
}

.sidebar-trigger::before {
  content: '';
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.sidebar-panel {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 2px 0 0 10px;
  border-left: 1px solid var(--line);
}

.inline-arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin: 0 0.12em;
  vertical-align: -0.12em;
  background: center / contain no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8h8M9 5l3 3-3 3' stroke='%232563eb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sidebar-panel a {
  display: block;
  padding: 7px 10px 7px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.sidebar-panel a:hover {
  background: var(--bg);
  color: var(--ink);
}

.sidebar-panel a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* Category colors: header and sidebar share the same visual language */
.header-nav-item:nth-child(1),
.sidebar-block:nth-of-type(1) { --category-color: #2563eb; --category-soft: #eff6ff; }
.header-nav-item:nth-child(2),
.sidebar-block:nth-of-type(2) { --category-color: #d97706; --category-soft: #fff7ed; }
.header-nav-item:nth-child(3),
.sidebar-block:nth-of-type(3) { --category-color: #059669; --category-soft: #ecfdf5; }
.header-nav-item:nth-child(4),
.sidebar-block:nth-of-type(4) { --category-color: #0891b2; --category-soft: #ecfeff; }
.header-nav-item:nth-child(5),
.sidebar-block:nth-of-type(5) { --category-color: #9333ea; --category-soft: #faf5ff; }
.header-nav-item:nth-child(6),
.sidebar-block:nth-of-type(6) { --category-color: #4f46e5; --category-soft: #eef2ff; }
.header-nav-item:nth-child(7),
.sidebar-block:nth-of-type(7) { --category-color: #c2410c; --category-soft: #fff7ed; }

.header-nav-trigger {
  background: transparent;
  color: var(--muted);
}

.header-nav-trigger::before {
  display: none;
}

.header-nav-item:hover .header-nav-trigger,
.header-nav-item.is-open .header-nav-trigger,
.header-nav-item.is-active .header-nav-trigger {
  background: var(--category-soft);
  color: var(--category-color);
}

.header-nav-item .header-nav-panel {
  border-top: 3px solid var(--category-color);
}

.header-nav-item .header-nav-panel a:hover,
.header-nav-item .header-nav-panel a.is-active {
  background: var(--category-soft);
  color: var(--category-color);
}

.sidebar-block .sidebar-trigger {
  margin-bottom: 5px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--category-soft);
  color: var(--category-color);
  letter-spacing: .03em;
}

.sidebar-block .sidebar-trigger::before {
  width: 4px;
  height: 13px;
  background: var(--category-color);
}

.sidebar-block .sidebar-panel {
  border-left-color: color-mix(in srgb, var(--category-color) 34%, var(--line));
}

.sidebar-block .sidebar-panel a:hover,
.sidebar-block .sidebar-panel a.is-active {
  background: var(--category-soft);
  color: var(--category-color);
}

.sidebar-soon {
  display: block;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
}

.sidebar-hint {
  display: none;
}

/* Main */
main {
  min-width: 0;
}

.page-intro {
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.page-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.page-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

[data-wage-panel][hidden] {
  display: none !important;
}

.page-tabs {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.page-tab {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.page-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.page-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 16px; }

.card h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 800;
}

/* Home hero */
.home-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 32px 28px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 45%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.25);
}

.home-hero-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-float {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.18;
  animation: home-float 6s ease-in-out infinite;
}

.home-float--1 { top: 12%; left: 6%; animation-delay: 0s; }
.home-float--2 { top: 18%; right: 10%; animation-delay: -1s; font-size: 2rem; }
.home-float--3 { bottom: 28%; left: 12%; animation-delay: -2s; }
.home-float--4 { top: 42%; right: 6%; animation-delay: -3s; font-size: 1.4rem; }
.home-float--5 { bottom: 14%; right: 18%; animation-delay: -4s; }
.home-float--6 { top: 8%; left: 42%; animation-delay: -5s; font-size: 1.3rem; }

@keyframes home-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.home-logo__mark {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.22));
}

.home-logo__type {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.home-logo__name {
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.2);
}

.home-logo__tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.home-hero-desc {
  margin: 0 0 20px;
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.home-quote-strip {
  display: grid;
  margin-top: 4px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-quote-label {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
}

.home-quote-strip .fun-quote {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}

.home-quote-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.home-quote-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}

/* Home pick */
.home-pick {
  margin-bottom: 16px;
}

.home-pick h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
}

.home-pick-desc {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pick-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.pick-card--salary:hover { border-color: #6ee7b7; }
.pick-card--wage:hover { border-color: #86efac; }
.pick-card--text:hover { border-color: #93c5fd; }
.pick-card--age:hover { border-color: #f9a8d4; }

.pick-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.pick-hook {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.pick-card strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.pick-go {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
}

.pick-card--salary { background: linear-gradient(160deg, #ecfdf5 0%, #fff 70%); }
.pick-card--wage { background: linear-gradient(160deg, #f0fdf4 0%, #fff 70%); }
.pick-card--text { background: linear-gradient(160deg, #eff6ff 0%, #fff 70%); }
.pick-card--age { background: linear-gradient(160deg, #fdf2f8 0%, #fff 70%); }
.pick-card--lease { background: linear-gradient(160deg, #eef4ff 0%, #fff 70%); }
.pick-card--lease:hover { border-color: #60a5fa; }
.pick-card--dsr { background: linear-gradient(160deg, #ecfdf5 0%, #fff 70%); }
.pick-card--dsr:hover { border-color: #34d399; }
.pick-card--reverse { background: linear-gradient(160deg, #fff7ed 0%, #fff 70%); }
.pick-card--support { background: linear-gradient(160deg, #fefce8 0%, #fff 70%); }
.pick-card--support:hover { border-color: #eab308; }

.pick-card--reverse:hover { border-color: #fb923c; }

/* Home personal picks */
.home-personal { margin-top: 18px; margin-bottom: 24px; }
.pick-card--name { background: linear-gradient(160deg, #eef0ff 0%, #fff 70%); }
.pick-card--name:hover { border-color: #8993f5; }
.pick-card--saju { background: linear-gradient(160deg, #f8eee2 0%, #fff 70%); }
.pick-card--saju:hover { border-color: #b88a67; }
/* Home play */
.play-page {
  margin-top: 0;
}

.home-play h2,
.play-page h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.home-play-desc {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.play-wage-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.play-wage-display output {
  font-size: 1.6rem;
  font-weight: 800;
  color: #db2777;
  letter-spacing: -0.02em;
}

.play-wage-display span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.play-slider {
  width: 100%;
  height: 8px;
  margin-bottom: 14px;
  accent-color: #db2777;
  cursor: pointer;
}

.play-presets {
  margin-bottom: 14px;
}

.home-play .fun-list {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fdf2f8 100%);
  border: 1px solid #fde68a;
}

.play-daily {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.play-more {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.play-more a {
  color: var(--accent);
}

.dday-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.dday-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.dday-hero {
  margin-bottom: 16px;
}

#weekly-result-box.is-ineligible .value {
  color: #94a3b8;
}

.counter-item.is-hidden {
  display: none;
}

.home-soon h2 {
  font-size: 1rem;
}

.home-soon .hint {
  margin: -8px 0 16px;
}

.soon-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.soon-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px dashed var(--line);
}

.soon-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.soon-item strong {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.soon-item div span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.soon-item em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.unit-row.is-hidden { display: none; }

.wage-counter-grid {
  margin-top: 16px;
}

.wage-counter-grid--single {
  margin-top: 10px;
  grid-template-columns: 1fr;
}

/* Fun elements */
.fun-box {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fdf2f8 100%);
  border: 1px solid #fde68a;
}

.fun-box h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

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

.fun-list li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

.fun-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fun-list strong {
  color: #db2777;
}

.fun-quote-card .fun-quote {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

.tool-link > div {
  flex: 1;
  min-width: 0;
}

.tool-link strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.tool-link span {
  font-size: 0.85rem;
  color: var(--muted);
}

.tool-link em {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.tool-link.is-soon {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

.tool-link.is-soon em {
  color: var(--muted);
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-list li + li { margin-top: 6px; }

/* Form */
.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.preset-btn {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.preset-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.sa-section-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.sa-lot + .sa-lot {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sa-lot-qty-wrap {
  position: relative;
  padding-right: 36px;
}

.sa-lot-remove {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.sa-lot-remove:hover {
  border-color: var(--accent);
  color: var(--text);
}

.sleep-cycle-list {
  display: grid;
  gap: 10px;
}

.sleep-cycle-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.sleep-cycle-item.is-recommended {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.sleep-cycle-item__time {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sleep-cycle-item__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}

.sleep-cycle-item__meta strong {
  color: var(--text);
  font-size: 0.88rem;
}

.sleep-cycle-item__badge {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.unit-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  padding: 3px;
  border-radius: 8px;
  background: var(--bg);
}

.unit-row label {
  margin: 0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.unit-row input { display: none; }

.unit-row label:has(input:checked) {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.15s;
}

.input-box:focus-within { border-color: var(--accent); }

.input-box input,
.input-box select,
.input-box textarea {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.input-box--combo select {
  flex: 0 0 auto;
  width: auto;
  min-width: 4.8rem;
  font-weight: 600;
}

.input-box--select {
  padding-right: 10px;
}

.input-box--select:hover {
  border-color: #cbd5e1;
  background: #eef2f6;
}

.input-box--select:focus-within {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.input-box select,
.select-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5' stroke='%2364748b' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
}

.input-box--select .select-input {
  border: 0;
  border-radius: 0;
  padding: 12px 22px 12px 0;
  background-color: transparent;
  box-shadow: none;
  font-weight: 600;
}

.input-box--select .select-input:hover,
.input-box--select .select-input:focus {
  border: 0;
  background-color: transparent;
  box-shadow: none;
}

.input-box textarea { min-height: 160px; line-height: 1.6; }

.input-box .unit {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.field-group-title {
  margin: 20px 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.select-input {
  width: 100%;
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.select-input:hover {
  border-color: #cbd5e1;
  background-color: #eef2f6;
}

.select-input:focus {
  border-color: var(--accent);
  background-color: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

.result-context {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.hint.is-highlight { color: var(--accent); font-weight: 600; }
.hint.is-warning { color: #b45309; }

.submit-btn {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-btn:hover { background: var(--accent-dark); }

a.submit-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.input-select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 0.9rem;
  font-family: inherit;
}

.sidebar-request {
  display: block;
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  text-align: center;
}

.sidebar-request:hover,
.sidebar-request.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.site-footer__links {
  margin: 0 0 6px;
  font-size: 0.82rem;
}

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

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 5px;
}

.policy-content {
  line-height: 1.75;
}

.policy-content h2 {
  margin: 26px 0 8px;
  font-size: 1.08rem;
}

.policy-content h2:first-of-type {
  margin-top: 12px;
}

.policy-content p,
.policy-content ul {
  margin-top: 7px;
  color: var(--muted);
}

.policy-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-date {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  font-size: .82rem;
  font-weight: 700;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 66px;
  height: 66px;
  border-radius: 18px;
  background: var(--accent-soft);
  font-size: 2rem;
}

.contact-card h2,
.contact-card p {
  margin: 0 0 8px;
}

.contact-card p {
  color: var(--muted);
}

.contact-mail {
  display: inline-block !important;
  width: auto !important;
  padding: 10px 16px !important;
}

.home-request {
  position: absolute;
  z-index: 40;
  top: 190px;
  right: max(20px, calc((100vw - 1100px) / 2 - 210px));
  width: 190px;
  margin: 0;
  transform: none;
  text-align: center;
  background: color-mix(in srgb, var(--accent) 4%, #fff);
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--accent));
  box-shadow: 0 12px 30px rgba(31, 47, 76, 0.14);
  padding: 18px;
}

.home-request .eyebrow {
  display: block;
  margin-bottom: 6px;
}

.home-request h2 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.home-request-desc {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.875rem;
}

.home-request-btn {
  max-width: 100%;
  margin: 0 auto;
  padding-block: 10px;
  font-size: 0.9rem;
}

.home-pick[hidden] {
  display: none !important;
}

.home-tools-featured,
.home-tool-explorer {
  margin-bottom: 28px;
}

.home-section-heading {
  margin-bottom: 16px;
}

.home-section-heading .eyebrow {
  margin-bottom: 7px;
}

.home-section-heading h2 {
  margin: 0 0 5px;
  font-size: 1.25rem;
  letter-spacing: -.035em;
}

.home-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.home-featured-grid,
.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-tool-card {
  --tool-color: #64748b;
  --tool-soft: #f8fafc;
  display: flex;
  min-width: 0;
  min-height: 178px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.home-tool-card[data-category="salary"] { --tool-color: #2563eb; --tool-soft: #eff6ff; }
.home-tool-card[data-category="tax"] { --tool-color: #d97706; --tool-soft: #fff7ed; }
.home-tool-card[data-category="finance"] { --tool-color: #059669; --tool-soft: #ecfdf5; }
.home-tool-card[data-category="life"] { --tool-color: #0891b2; --tool-soft: #ecfeff; }
.home-tool-card[data-category="fun"] { --tool-color: #9333ea; --tool-soft: #faf5ff; }
.home-tool-card[data-category="docs"] { --tool-color: #4f46e5; --tool-soft: #eef2ff; }
.home-tool-card[data-category="trade"] { --tool-color: #c2410c; --tool-soft: #fff7ed; }

.home-tool-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tool-color) 42%, var(--line));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .09);
}

.home-tool-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.home-tool-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--tool-soft);
  color: var(--tool-color);
  font-size: 1.22rem;
  font-weight: 900;
}

.home-tool-card__category {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--tool-soft);
  color: var(--tool-color);
  font-size: .71rem;
  font-weight: 800;
}

.home-tool-card__labels {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.home-tool-card__status {
  padding: 4px 7px;
  border-radius: 999px;
  background: #172033;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.home-tool-card > strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.4;
  letter-spacing: -.025em;
}

.home-tool-card > p {
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.home-tool-card__go {
  margin-top: auto;
  color: var(--tool-color);
  font-size: .81rem;
  font-weight: 800;
}

.home-tool-card--featured {
  min-height: 194px;
  border-top: 3px solid var(--tool-color);
}

.home-category-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 20px;
  padding-bottom: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.home-category-tabs button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
}

.home-category-tabs button:hover,
.home-category-tabs button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.home-category-group {
  margin-bottom: 26px;
}

.home-category-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.home-category-group__head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -.025em;
}

.home-category-group__head span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.page-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.page-check-date {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.page-utility-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.page-utility-btn,
.page-memory-toggle {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: .75rem;
  font-weight: 750;
}

.page-utility-btn {
  cursor: pointer;
}

.page-utility-btn:hover,
.page-utility-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.page-memory-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.page-memory-toggle input {
  accent-color: var(--accent);
}

.site-action-toast {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 15px;
  border-radius: 10px;
  background: #172033;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .24);
  font-size: .84rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.site-action-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-personal-tools {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.home-shelf {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
}

.home-shelf__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.home-shelf__head h2 {
  margin: 0;
  font-size: .98rem;
}

.home-shelf__head span,
.home-shelf__head button {
  color: var(--muted);
  font-size: .74rem;
}

.home-shelf__head button {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.home-shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-shelf-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.home-shelf-card > a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding-right: 22px;
}

.home-shelf-card > button {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
}

.home-shelf-card > button:hover {
  background: #fee2e2;
  color: #dc2626;
}

.home-shelf-card strong {
  overflow: hidden;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shelf-card span {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
}

.home-favorite-card {
  position: relative;
}

.home-favorite-card .home-tool-card {
  height: 100%;
  padding-bottom: 50px;
}

.home-favorite-remove {
  position: absolute;
  right: 14px;
  bottom: 13px;
  padding: 5px 8px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff;
  color: #dc2626;
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
}

.home-favorite-remove:hover {
  background: #fef2f2;
}

.home-favorites-empty {
  padding: 34px 20px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  background: var(--surface);
  text-align: center;
}

.home-favorites-empty > span {
  display: block;
  color: #f59e0b;
  font-size: 2rem;
}

.home-favorites-empty strong {
  display: block;
  margin-top: 5px;
}

.home-favorites-empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .83rem;
}

@media (max-width: 1540px) {
  .home-request {
    top: 170px;
    right: 16px;
    bottom: auto;
    width: auto;
    padding: 0;
    transform: none;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-request .eyebrow,
  .home-request h2,
  .home-request-desc {
    display: none;
  }

  .home-request-btn {
    min-width: 120px;
    padding: 12px 16px;
    box-shadow: 0 10px 24px rgba(45, 99, 235, 0.24);
  }
}

.word-preview-shell {
  overflow: auto;
  max-height: 70vh;
  background: #e8eaed;
  padding: 16px;
  border-radius: 8px;
}

.word-preview-body {
  margin: 0 auto;
}

.word-preview-body .docx-wrapper {
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.word-preview-body .docx-wrapper > section.docx {
  margin-bottom: 12px;
}

.hwp-preview-canvas {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.tool-wish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tool-wish-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.tool-wish-item__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.tool-wish-item__title {
  font-size: 0.92rem;
}

.tool-wish-item__cat {
  font-size: 0.72rem;
  color: var(--muted);
}

.tool-wish-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.tool-wish-status--new {
  background: #dbeafe;
  color: #1d4ed8;
}

.tool-wish-status--review {
  background: #fef3c7;
  color: #b45309;
}

.tool-wish-status--done {
  background: #dcfce7;
  color: #15803d;
}

.tool-wish-vote {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.82rem;
  cursor: pointer;
}

.tool-wish-vote:hover,
.tool-wish-vote[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Result */
.result-box {
  padding: 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.result-box .label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.result-box .value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.result-box .sub {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.salary-result-card .stat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.stat-item strong.is-warning { color: #b45309; }
.stat-item strong.is-highlight { color: var(--accent); }

.stat-item {
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  text-align: center;
}

.stat-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.stat-item strong {
  font-size: 0.9rem;
}

.breakdown { margin-top: 16px; }

.breakdown h3 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.breakdown-row:last-child {
  font-weight: 700;
  border-bottom: 0;
}

.schedule-section {
  margin-top: 20px;
}

.schedule-section h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.schedule-section .hint {
  margin: 0 0 10px;
}

.schedule-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.schedule-table th,
.schedule-table td {
  padding: 7px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  text-align: center;
  width: 48px;
}

.schedule-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.schedule-table tbody tr:last-child td {
  border-bottom: 0;
  font-weight: 600;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.compare-grid > .card + .card {
  margin-top: 0;
}

.compare-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.compare-card.is-winner {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.compare-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  align-items: stretch;
}

.compare-result-card {
  padding: 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.compare-result-card.is-winner {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}

.compare-result-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.compare-result-value {
  display: block;
  margin: 4px 0 10px;
  font-size: 1.1rem;
}

.compare-breakdown {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.compare-breakdown li:last-child {
  border-bottom: 0;
}

.compare-breakdown span {
  color: var(--muted);
}

.gpa-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gpa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.gpa-table th,
.gpa-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

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

.gpa-table input {
  width: 100%;
  min-width: 48px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.82rem;
}

.gpa-converted {
  font-weight: 600;
  color: var(--accent);
}

.anniv-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.anniv-list li {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.anniv-list li.is-past {
  opacity: 0.65;
}

.anniv-list em {
  font-style: normal;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: right;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.counter-item {
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  text-align: center;
}

.counter-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.counter-item strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.disclaimer {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── SEO blocks ── */
.seo-related-list,
.seo-tool-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.seo-related-list a,
.seo-tool-list a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.seo-related-list a:hover,
.seo-tool-list a:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
}

.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}

.seo-faq-item summary {
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  line-height: 1.45;
}

.seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-weight: 800;
}

.seo-faq-item[open] summary::after {
  content: '−';
}

.seo-faq-item p {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
}

.home-tool-dir-desc {
  margin: -8px 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.seo-tool-group + .seo-tool-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.seo-tool-group h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent);
}

.tool-output textarea {
  width: 100%;
  min-height: 200px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  background: var(--bg);
}

.contract-doc-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contract-doc {
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  padding: 22mm 20mm;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  color: #111827;
  font-size: 11pt;
  line-height: 1.75;
  box-sizing: border-box;
}

.contract-doc__title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 18pt;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contract-doc__parties {
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid #1e293b;
  font-weight: 600;
}

.contract-doc__clause {
  margin-bottom: 22px;
}

.contract-doc__clause h4 {
  margin: 0 0 8px;
  font-size: 11pt;
  font-weight: 800;
}

.contract-doc__clause p {
  margin: 0;
  white-space: pre-wrap;
}

.contract-doc__sign {
  margin-top: 48px;
}

.contract-doc__sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 42px;
}

.contract-doc__sign-item {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-weight: 600;
}

.contract-doc__sign-line {
  display: block;
  border-bottom: 1px solid #334155;
  min-height: 1px;
}

.contract-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 210mm;
}

@media (max-width: 600px) {
  .contract-doc {
    min-height: auto;
    padding: 18mm 14mm;
  }

  .contract-doc__sign-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 18mm;
  }

  body[data-page="contract-gen"] .site-header,
  body[data-page="contract-gen"] #sidebar,
  body[data-page="contract-gen"] #footer,
  body[data-page="contract-gen"] .page-intro,
  body[data-page="contract-gen"] #cg-form-card,
  body[data-page="contract-gen"] .contract-doc-actions,
  body[data-page="contract-gen"] .contract-doc-hint,
  body[data-page="contract-gen"] #cg-copy-status,
  body[data-page="contract-gen"] .disclaimer,
  body[data-page="contract-gen"] #insight-hero,
  body[data-page="contract-gen"] #seo-related,
  body[data-page="contract-gen"] #seo-faq,
  body[data-page="contract-gen"] .menu-btn,
  body[data-page="contract-gen"] .lang-switch {
    display: none !important;
  }

  body[data-page="contract-gen"] .layout {
    display: block;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  body[data-page="contract-gen"] main {
    padding: 0;
    margin: 0;
  }

  body[data-page="contract-gen"] .card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  body[data-page="contract-gen"] .card > h2 {
    display: none;
  }

  body[data-page="contract-gen"] .contract-doc-shell {
    gap: 0;
  }

  body[data-page="contract-gen"] .contract-doc {
    max-width: none;
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
}

.doc-convert-hero {
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  margin-bottom: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, #fff) 0%, #fff 72%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}

.doc-convert-hero__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-convert-hero__badge {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: center / contain no-repeat;
}

.doc-convert-hero__badge--hwp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='8' y='4' width='48' height='60' rx='6' fill='%231d4ed8'/%3E%3Cpath d='M44 4v14a4 4 0 0 0 4 4h12' fill='%233b82f6'/%3E%3Crect x='16' y='22' width='32' height='4' rx='2' fill='%23fff' fill-opacity='0.9'/%3E%3Crect x='16' y='30' width='24' height='3' rx='1.5' fill='%23fff' fill-opacity='0.55'/%3E%3Crect x='16' y='37' width='28' height='3' rx='1.5' fill='%23fff' fill-opacity='0.55'/%3E%3Crect x='12' y='46' width='40' height='14' rx='4' fill='%23fff'/%3E%3Ctext x='32' y='56.5' text-anchor='middle' font-family='Arial,sans-serif' font-size='9' font-weight='800' fill='%231d4ed8'%3EHWP%3C/text%3E%3C/svg%3E");
}

.doc-convert-hero__badge--pdf {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='8' y='4' width='48' height='60' rx='6' fill='%23dc2626'/%3E%3Cpath d='M44 4v14a4 4 0 0 0 4 4h12' fill='%23f87171'/%3E%3Crect x='16' y='22' width='32' height='4' rx='2' fill='%23fff' fill-opacity='0.9'/%3E%3Crect x='16' y='30' width='24' height='3' rx='1.5' fill='%23fff' fill-opacity='0.55'/%3E%3Crect x='16' y='37' width='28' height='3' rx='1.5' fill='%23fff' fill-opacity='0.55'/%3E%3Crect x='12' y='46' width='40' height='14' rx='4' fill='%23fff'/%3E%3Ctext x='32' y='56.5' text-anchor='middle' font-family='Arial,sans-serif' font-size='9' font-weight='800' fill='%23dc2626'%3EPDF%3C/text%3E%3C/svg%3E");
}

.doc-convert-hero__badge--word {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='8' y='4' width='48' height='60' rx='6' fill='%232b579a'/%3E%3Cpath d='M44 4v14a4 4 0 0 0 4 4h12' fill='%233b82f6'/%3E%3Crect x='16' y='22' width='32' height='4' rx='2' fill='%23fff' fill-opacity='0.9'/%3E%3Crect x='16' y='30' width='24' height='3' rx='1.5' fill='%23fff' fill-opacity='0.55'/%3E%3Crect x='16' y='37' width='28' height='3' rx='1.5' fill='%23fff' fill-opacity='0.55'/%3E%3Crect x='12' y='46' width='40' height='14' rx='4' fill='%23fff'/%3E%3Ctext x='32' y='56.5' text-anchor='middle' font-family='Arial,sans-serif' font-size='10' font-weight='800' fill='%232b579a'%3EW%3C/text%3E%3C/svg%3E");
}

.tool-hero__icon {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: center / contain no-repeat;
}

.tool-hero__icon--pdf {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='10' y='8' width='36' height='48' rx='5' fill='%23dc2626'/%3E%3Crect x='22' y='16' width='36' height='48' rx='5' fill='%23f87171' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M30 34h20M30 42h14M30 50h18' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3Ctext x='40' y='58' text-anchor='middle' font-family='Arial,sans-serif' font-size='8' font-weight='800' fill='%23fff'%3EPDF%3C/text%3E%3C/svg%3E");
}

.tool-hero__icon--image {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='8' y='14' width='56' height='44' rx='6' fill='%230d9488'/%3E%3Ccircle cx='24' cy='30' r='6' fill='%23fef08a'/%3E%3Cpath d='M14 50 30 34l10 10 18-22' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46 52 54 44v8' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M50 48v8h-8' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.doc-convert-hero__arrow {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: center / contain no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M6 16h16M18 10l6 6-6 6' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.file-drop-zone {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.file-drop-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  flex-shrink: 0;
  pointer-events: none;
  background: center / contain no-repeat;
}

.file-drop-icon--hwp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Crect x='8' y='4' width='32' height='40' rx='4' fill='%231d4ed8'/%3E%3Ctext x='24' y='29' text-anchor='middle' font-family='Arial,sans-serif' font-size='10' font-weight='800' fill='%23fff'%3EHWP%3C/text%3E%3Cpath d='M24 34v6M21 37l3-3 3 3' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.file-drop-icon--word {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Crect x='8' y='4' width='32' height='40' rx='4' fill='%232b579a'/%3E%3Ctext x='24' y='29' text-anchor='middle' font-family='Arial,sans-serif' font-size='14' font-weight='800' fill='%23fff'%3EW%3C/text%3E%3Cpath d='M24 34v6M21 37l3-3 3 3' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.file-drop-icon--image {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Crect x='6' y='10' width='36' height='28' rx='4' fill='%230d9488'/%3E%3Ccircle cx='16' cy='20' r='4' fill='%23fef08a'/%3E%3Cpath d='M10 34 20 24l6 6 12-14' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M30 36 36 30v8' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M33 33v8h-6' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.file-drop-zone.is-drag,
.file-drop-zone:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.tool-preview-img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.qr-preview {
  display: block;
  margin: 0 auto 16px;
}

.is-hidden {
  display: none !important;
}

/* Age calculator */
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.birth-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

.birth-field {
  flex: 1 1 88px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.15s;
}

.birth-field:focus-within {
  border-color: var(--accent);
}

.birth-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

.birth-field span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.birth-calendar-btn {
  flex: 0 0 auto;
  width: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.birth-calendar-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.birth-date-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.age-hero {
  padding: 28px 20px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a5f 0%, var(--ink) 100%);
  color: #fff;
  text-align: center;
}

.age-hero-emoji {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 10px;
}

.age-hero-label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 6px;
}

.age-hero-value {
  display: block;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.age-hero-sub {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.age-counter-grid {
  margin-top: 16px;
}

.age-counter-grid--single {
  margin-top: 10px;
  grid-template-columns: 1fr;
}

.age-counter-grid .counter-item {
  padding-top: 18px;
}

.age-counter-grid .counter-item strong {
  font-size: 1.25rem;
}

.age-emoji {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-item--warm {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.counter-item--warm strong {
  color: #d97706;
}

.counter-item--diff {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.counter-item--diff strong {
  color: #0284c7;
}

.counter-item--dday {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
}

.counter-item--dday strong {
  color: #db2777;
}

.counter-item--year {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}

.counter-item--year strong {
  color: #7c3aed;
}

#age-result-card:not(.is-active) .age-hero-value,
#age-result-card:not(.is-active) .counter-item strong {
  color: #cbd5e1;
}

#age-result-card:not(.is-active) .counter-item--warm strong {
  color: #fde68a;
}

#age-result-card:not(.is-active) .counter-item--diff strong {
  color: #bae6fd;
}

#age-result-card:not(.is-active) .counter-item--dday strong {
  color: #fbcfe8;
}

#age-result-card:not(.is-active) .counter-item--year strong {
  color: #ddd6fe;
}

/* Footer */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .header-inner { gap: 12px; }

  .header-nav-trigger {
    padding: 8px 5px;
    font-size: 0.76rem;
  }

  .header-nav-trigger::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-nav { display: none; }

  .menu-btn { display: flex; }

  .tool-search:focus-within {
    position: fixed;
    z-index: 180;
    top: 10px;
    right: 58px;
    left: 12px;
    width: auto;
  }

  .tool-search-results {
    width: 100%;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-sidebar {
    position: static;
    display: none;
    max-height: min(60vh, calc(100vh - var(--header-height) - 24px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-sidebar.is-open { display: block; }

  .field-row,
  .compare-grid,
  .compare-result-grid,
  .stat-grid,
  .counter-grid {
    grid-template-columns: 1fr;
  }

  .salary-result-card .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .age-counter-grid {
    grid-template-columns: 1fr;
  }

  .pick-grid,
  .soon-grid {
    grid-template-columns: 1fr;
  }

  .home-featured-grid,
  .home-tool-grid {
    grid-template-columns: 1fr;
  }

  .home-tool-card,
  .home-tool-card--featured {
    min-height: 166px;
  }

  .page-utility-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-utility-actions {
    justify-content: flex-start;
  }

  .home-shelf-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 24px 20px 22px;
  }

  .home-quote-strip {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .home-quote-label {
    grid-column: 1 / -1;
  }

  .home-quote-strip .fun-quote {
    grid-column: 1;
  }

  .birth-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
  }

  .birth-field {
    flex: initial;
  }
}

.sub-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sub-row.is-off {
  opacity: 0.45;
}

.sub-row.is-off .sub-price-box input {
  pointer-events: none;
}

.sub-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 168px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.sub-price-box {
  flex: 1;
  min-width: 130px;
  max-width: 200px;
}

/* ── 연봉 실수령 페이지 ── */
.salary-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e3f2fd 0%, var(--surface) 55%);
}

.salary-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.salary-hero__badge.is-glow {
  border-color: #ffd54f;
  box-shadow: 0 0 0 2px rgba(255, 213, 79, 0.35);
  background: linear-gradient(180deg, #fffde7 0%, var(--surface) 100%);
}

.salary-hero__tier-emoji {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 4px;
  transition: transform 0.35s ease;
}

.salary-hero.is-pop .salary-hero__tier-emoji {
  animation: quit-pop 0.5s ease;
}

.salary-hero__label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.salary-hero__value {
  font-size: 2rem;
  line-height: 1.1;
  color: var(--accent);
}

.salary-hero__unit {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.salary-hero__tier-label {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  line-height: 1.3;
}

.salary-hero__percentile {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
}

.salary-percentile {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.salary-percentile__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.salary-percentile__head span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.salary-percentile__head strong {
  font-size: 1.05rem;
  color: var(--accent);
}

.salary-percentile__track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--line) 60%, var(--bg));
  overflow: visible;
}

.salary-percentile__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #90caf9, #2563eb);
  transition: width 0.35s ease;
}

.salary-percentile__marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
  transition: left 0.35s ease;
}

.salary-percentile__note {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.salary-stat-percentile strong {
  color: var(--accent);
}

.salary-famous-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 10px;
}

.salary-famous-head strong { font-size: 0.9rem; }
.salary-famous-head span { color: var(--muted); font-size: 0.72rem; }
.salary-famous-presets { display: grid; grid-template-columns: repeat(4, 1fr); }
.salary-famous-btn { min-height: 62px; padding: 9px 10px; }
.salary-famous-btn span,
.salary-famous-btn small { display: block; }
.salary-famous-btn span { font-size: 0.84rem; font-weight: 800; }
.salary-famous-btn small { margin-top: 4px; color: var(--muted); font-size: 0.67rem; }
.salary-famous-btn.is-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.salary-famous-note { margin: -4px 0 18px; color: var(--muted); font-size: 0.67rem; line-height: 1.5; }

@media (max-width: 640px) {
  .salary-famous-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .salary-famous-presets { grid-template-columns: repeat(2, 1fr); }
}

/* ── 공통 인사이트 히어로 (전 페이지) ── */
.insight-hero[hidden] {
  display: none;
}

.insight-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e8eaf6 0%, var(--surface) 55%);
}

.insight-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.insight-hero__badge.is-glow {
  border-color: #ffd54f;
  box-shadow: 0 0 0 2px rgba(255, 213, 79, 0.35);
  background: linear-gradient(180deg, #fffde7 0%, var(--surface) 100%);
}

.insight-hero__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  background: center / contain no-repeat;
  transition: transform 0.35s ease;
}

.insight-hero__icon--pdf {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='10' y='8' width='36' height='48' rx='5' fill='%23dc2626'/%3E%3Crect x='22' y='16' width='36' height='48' rx='5' fill='%23f87171' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='M30 34h20M30 42h14M30 50h18' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3Ctext x='40' y='58' text-anchor='middle' font-family='Arial,sans-serif' font-size='8' font-weight='800' fill='%23fff'%3EPDF%3C/text%3E%3C/svg%3E");
}

.insight-hero__icon--hwp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='8' y='4' width='48' height='60' rx='6' fill='%231d4ed8'/%3E%3Cpath d='M44 4v14a4 4 0 0 0 4 4h12' fill='%233b82f6'/%3E%3Crect x='12' y='46' width='40' height='14' rx='4' fill='%23fff'/%3E%3Ctext x='32' y='56.5' text-anchor='middle' font-family='Arial,sans-serif' font-size='9' font-weight='800' fill='%231d4ed8'%3EHWP%3C/text%3E%3C/svg%3E");
}

.insight-hero__icon--word {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='8' y='4' width='48' height='60' rx='6' fill='%232b579a'/%3E%3Cpath d='M44 4v14a4 4 0 0 0 4 4h12' fill='%233b82f6'/%3E%3Crect x='12' y='46' width='40' height='14' rx='4' fill='%23fff'/%3E%3Ctext x='32' y='56.5' text-anchor='middle' font-family='Arial,sans-serif' font-size='10' font-weight='800' fill='%232b579a'%3EW%3C/text%3E%3C/svg%3E");
}

.insight-hero__icon--image {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='8' y='14' width='56' height='44' rx='6' fill='%230d9488'/%3E%3Ccircle cx='24' cy='30' r='6' fill='%23fef08a'/%3E%3Cpath d='M14 50 30 34l10 10 18-22' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.insight-hero__icon--text {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='12' y='8' width='48' height='56' rx='6' fill='%237c3aed'/%3E%3Cpath d='M22 24h28M22 34h20M22 44h24' stroke='%23fff' stroke-width='3' stroke-linecap='round' opacity='0.7'/%3E%3Ctext x='36' y='58' text-anchor='middle' font-family='Arial,sans-serif' font-size='14' font-weight='800' fill='%23fff'%3EAa%3C/text%3E%3C/svg%3E");
}

.insight-hero__icon--stock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72' fill='none'%3E%3Crect x='10' y='10' width='52' height='52' rx='8' fill='%23059669'/%3E%3Crect x='18' y='42' width='8' height='12' rx='1.5' fill='%23fff' fill-opacity='0.55'/%3E%3Crect x='30' y='36' width='8' height='18' rx='1.5' fill='%23fff' fill-opacity='0.75'/%3E%3Crect x='42' y='28' width='8' height='26' rx='1.5' fill='%23fff'/%3E%3Cpath d='M20 46 34 34 46 38 54 24' stroke='%23fef08a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='54' cy='24' r='3' fill='%23fef08a'/%3E%3C/svg%3E");
}

.insight-hero__icon--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  background: none;
}

.insight-hero.is-pop .insight-hero__icon {
  animation: quit-pop 0.5s ease;
}

.insight-hero__label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.insight-hero__value {
  font-size: 2rem;
  line-height: 1.1;
  color: var(--accent);
}

.insight-hero__unit {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.insight-hero__tier,
.insight-enhance-tier {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  line-height: 1.3;
}

.insight-hero__benchmark,
.age-hero .insight-hero__benchmark,
.dday-hero .insight-hero__benchmark {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
}

.insight-hero__cards {
  display: flex;
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
}

.insight-hero__card {
  display: flex;
  flex: 1;
  min-width: 140px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.insight-hero__card.is-active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.insight-hero__card-icon {
  font-size: 1.8rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  text-align: center;
  background: center / contain no-repeat;
}

.insight-hero__card-icon--pdf {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='2' fill='%23dc2626'/%3E%3Ctext x='12' y='15' text-anchor='middle' font-family='Arial,sans-serif' font-size='5' font-weight='800' fill='%23fff'%3EPDF%3C/text%3E%3C/svg%3E");
}

.insight-hero__card-icon--hwp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='2' fill='%231d4ed8'/%3E%3Ctext x='12' y='15' text-anchor='middle' font-family='Arial,sans-serif' font-size='5.5' font-weight='800' fill='%23fff'%3EHWP%3C/text%3E%3C/svg%3E");
}

.insight-hero__card-icon--word {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='2' width='16' height='20' rx='2' fill='%232b579a'/%3E%3Ctext x='12' y='15' text-anchor='middle' font-family='Arial,sans-serif' font-size='6' font-weight='800' fill='%23fff'%3EW%3C/text%3E%3C/svg%3E");
}

.insight-hero__card-icon--image {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' fill='%230d9488'/%3E%3Ccircle cx='9' cy='10' r='1.5' fill='%23fef08a'/%3E%3Cpath d='m5 17 5-5 3 3 6-7' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.insight-hero__card-icon--text {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='4' y='3' width='16' height='18' rx='2' fill='%237c3aed'/%3E%3Ctext x='12' y='15' text-anchor='middle' font-family='Arial,sans-serif' font-size='8' font-weight='800' fill='%23fff'%3EAa%3C/text%3E%3C/svg%3E");
}

.insight-hero__card-icon--stock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='3' width='18' height='18' rx='3' fill='%23059669'/%3E%3Crect x='6' y='14' width='3' height='5' rx='0.8' fill='%23fff' fill-opacity='0.7'/%3E%3Crect x='10.5' y='11' width='3' height='8' rx='0.8' fill='%23fff'/%3E%3Crect x='15' y='8' width='3' height='11' rx='0.8' fill='%23fff'/%3E%3Cpath d='M6 16 11 11 14 13 18 8' stroke='%23fef08a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.insight-hero__card-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.insight-hero__card-status {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.insight-hero.insight-tier-0 { background: linear-gradient(135deg, #eceff1 0%, var(--surface) 60%); }
.insight-hero.insight-tier-1 { background: linear-gradient(135deg, #e8f5e9 0%, var(--surface) 60%); }
.insight-hero.insight-tier-2 { background: linear-gradient(135deg, #e3f2fd 0%, var(--surface) 60%); }
.insight-hero.insight-tier-3 { background: linear-gradient(135deg, #e8eaf6 0%, var(--surface) 60%); }
.insight-hero.insight-tier-4 { background: linear-gradient(135deg, #fff9c4 0%, var(--surface) 60%); }

.insight-benchmark {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.insight-benchmark__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.insight-benchmark__head span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.insight-benchmark__head strong {
  font-size: 1.05rem;
  color: var(--accent);
}

.insight-benchmark__track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--line) 60%, var(--bg));
  overflow: visible;
}

.insight-benchmark__fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #90caf9, #2563eb);
  transition: width 0.35s ease;
}

.insight-benchmark__marker {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%);
  transition: left 0.35s ease;
}

.insight-benchmark__note {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.salary-hero__cards {
  display: flex;
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
}

.salary-hero__card {
  display: flex;
  flex: 1;
  min-width: 140px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color 0.15s;
}

.salary-hero__card.is-active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.salary-hero__card-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.salary-hero__card-status {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.salary-hero.salary-tier-0 { background: linear-gradient(135deg, #eceff1 0%, var(--surface) 60%); }
.salary-hero.salary-tier-1 { background: linear-gradient(135deg, #e8f5e9 0%, var(--surface) 60%); }
.salary-hero.salary-tier-2 { background: linear-gradient(135deg, #e3f2fd 0%, var(--surface) 60%); }
.salary-hero.salary-tier-3 { background: linear-gradient(135deg, #e8eaf6 0%, var(--surface) 60%); }
.salary-hero.salary-tier-4 { background: linear-gradient(135deg, #fff9c4 0%, var(--surface) 60%); }

.salary-result-card.salary-tier-4 {
  border-color: #ffd54f;
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.35);
}

.salary-result-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.salary-result-head .quit-visual-wrap {
  width: 48px;
  height: 48px;
}

.salary-result-head .quit-visual-wrap img {
  width: 48px;
  height: 48px;
}

.salary-jar-meta {
  flex: 1;
  min-width: 0;
}

.salary-jar-stage {
  margin: 0 0 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.25;
}

.salary-takehome-pct {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.salary-takehome-fill {
  background: linear-gradient(90deg, #64b5f6, #2563eb);
}

.salary-breakdown-icon {
  display: inline-block;
  width: 1.2em;
  text-align: center;
}

.salary-result-card.salary-tier-4 .salary-result-wallet {
  filter: drop-shadow(0 4px 10px rgba(255, 193, 7, 0.45));
}

/* ── 금연·금주 페이지 ── */
.quit-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)) 0%, var(--surface) 55%);
}

.quit-hero__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.quit-hero__badge.is-glow {
  border-color: #ffd54f;
  box-shadow: 0 0 0 2px rgba(255, 213, 79, 0.35);
  background: linear-gradient(180deg, #fffde7 0%, var(--surface) 100%);
}

.quit-hero__tier-emoji {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 4px;
  transition: transform 0.35s ease;
}

.quit-hero.is-pop .quit-hero__tier-emoji {
  animation: quit-pop 0.5s ease;
}

.quit-hero__badge.is-glow .quit-hero__tier-emoji {
  transform: scale(1.15);
}

.quit-hero__tier-label {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  line-height: 1.3;
}

.quit-hero__streak-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.quit-hero__streak-value {
  font-size: 2rem;
  line-height: 1.1;
  color: var(--accent);
}

.quit-hero__streak-unit {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.quit-hero__cards {
  display: flex;
  flex: 1;
  gap: 12px;
  flex-wrap: wrap;
}

.quit-hero__card {
  display: flex;
  flex: 1;
  min-width: 140px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: opacity 0.15s, border-color 0.15s;
}

.quit-hero__card:not(.is-active) {
  opacity: 0.45;
}

.quit-hero__card.is-active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.quit-visual-wrap {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.quit-visual-wrap img {
  display: block;
  width: 72px;
  height: 72px;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.quit-visual-wrap.is-pop img {
  animation: quit-pop 0.5s ease;
}

.quit-habit-head .quit-visual-wrap,
.quit-habit-head .quit-habit-img {
  width: 48px;
  height: 48px;
}

.quit-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.quit-particle {
  position: absolute;
  bottom: 10%;
  left: 50%;
  font-size: 1rem;
  animation: quit-float 1s ease-out forwards;
  opacity: 0;
}

.quit-jar-wrap.quit-visual-wrap,
.quit-jar-wrap.quit-visual-wrap img,
.quit-jar-wrap .quit-result-jar {
  width: 48px;
  height: 48px;
}

.quit-jar-meta {
  flex: 1;
  min-width: 0;
}

.quit-jar-stage {
  margin: 0 0 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.25;
}

.quit-hero.quit-day-0 { background: linear-gradient(135deg, #eceff1 0%, var(--surface) 60%); }
.quit-hero.quit-day-1 { background: linear-gradient(135deg, #ffebee 0%, var(--surface) 60%); }
.quit-hero.quit-day-2 { background: linear-gradient(135deg, #e8f5e9 0%, var(--surface) 60%); }
.quit-hero.quit-day-3 { background: linear-gradient(135deg, #e3f2fd 0%, var(--surface) 60%); }
.quit-hero.quit-day-4 { background: linear-gradient(135deg, #fff9c4 0%, var(--surface) 60%); }

.quit-result-panel.quit-jar-4 {
  border-color: #ffd54f;
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.35);
}

.quit-result-panel.quit-jar-4 .quit-result-jar {
  filter: drop-shadow(0 4px 10px rgba(255, 193, 7, 0.45));
}

@keyframes quit-pop {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.14) rotate(-4deg); }
  70% { transform: scale(0.96) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes quit-float {
  0% { opacity: 0; transform: translateY(8px) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-36px) scale(1.1); }
}

.quit-hero__card-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.quit-hero__card-status {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.quit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 16px;
  align-items: start;
}

.quit-inputs {
  min-width: 0;
}

.quit-result-panel {
  position: sticky;
  top: 12px;
  z-index: 2;
  margin-top: 0;
  align-self: start;
}

.quit-result-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.quit-result-jar {
  flex-shrink: 0;
}

.quit-jar-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.quit-jar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #64b5f6, var(--accent));
  transition: width 0.35s ease;
}

.quit-habit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.quit-habit-grid > .card {
  margin-top: 0;
}

.quit-habit-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.quit-habit-head h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.quit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.quit-habit-card.is-off {
  opacity: 0.5;
}

.quit-habit-card.is-off .field input {
  pointer-events: none;
}

@media (max-width: 960px) {
  .quit-layout {
    grid-template-columns: 1fr;
  }

  .quit-result-panel {
    order: -1;
    position: sticky;
    top: 0;
    margin-bottom: 16px;
    z-index: 3;
  }

  .quit-inputs .card:first-child {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .quit-habit-grid {
    grid-template-columns: 1fr;
  }

  .quit-hero__badge {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
  }

  .quit-hero__streak-value {
    font-size: 1.6rem;
  }
}

/* Pyeong visual */
.py-visual-card {
  overflow: hidden;
}

.py-visual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.py-visual-tier {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.py-visual-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.25;
}

.py-visual-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.py-visual-badge {
  flex-shrink: 0;
  border: 3px solid var(--accent);
  border-radius: 6px;
  background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 55%, #f8fafc 100%);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
  transition: width 0.25s ease, height 0.25s ease;
}

.py-result-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.py-result-box {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.py-result-box--contract {
  border-color: #bfdbfe;
  background: linear-gradient(145deg, #eff6ff, #fff);
}

.py-result-box span,
.py-result-box strong,
.py-result-box small {
  display: block;
}

.py-result-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.py-result-box strong {
  margin: 6px 0 3px;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
}

.py-result-box--contract strong {
  color: var(--accent);
}

.py-result-box small {
  color: var(--muted);
  font-size: 0.78rem;
}

.py-result-arrow {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 900;
}

.py-compare-section--primary {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.py-visual-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
}

.py-visual-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: end;
  margin-bottom: 22px;
}

.py-floor-wrap {
  min-width: 0;
}

.py-floor-canvas {
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.py-floor-svg {
  display: block;
  width: 100%;
  max-height: 220px;
}

.py-floor-dim {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.py-scale-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}

.py-scale-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.py-scale-item em {
  font-style: normal;
  font-size: 0.7rem;
  color: #94a3b8;
}

.py-scale-box {
  width: var(--side, 2.4rem);
  height: var(--side, 2.4rem);
  border: 2px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
}

.py-scale-human {
  width: 14px;
  height: 38px;
  border-radius: 7px 7px 4px 4px;
  background: #64748b;
  position: relative;
}

.py-scale-human::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #64748b;
}

.py-compare-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.py-compare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.py-compare-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 52px;
  gap: 10px;
  align-items: center;
}

.py-compare-row.is-you .py-compare-label,
.py-compare-row.is-you .py-compare-value {
  color: var(--accent);
  font-weight: 800;
}

.py-compare-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.py-compare-value {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.py-compare-track {
  height: 14px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.py-compare-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.py-compare-fill.is-you {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.py-compare-fill.is-ref {
  background: #94a3b8;
}

.py-compare-row.is-near .py-compare-fill.is-ref {
  background: #64748b;
}

.py-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
}

.py-details summary::-webkit-details-marker { display: none; }

.py-details summary::after {
  content: '＋';
  float: right;
  color: var(--muted);
}

.py-details[open] summary::after {
  content: '－';
}

.py-details-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 720px) {
  .py-visual-head {
    flex-direction: column;
  }

  .py-visual-badge {
    width: 72px !important;
    height: 52px !important;
  }

  .py-result-pair {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .py-result-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .py-visual-stage {
    grid-template-columns: 1fr;
  }

  .py-scale-legend {
    flex-direction: row;
    justify-content: center;
  }

  .py-compare-row {
    grid-template-columns: 76px minmax(0, 1fr) 46px;
    gap: 8px;
  }
}
