:root {
  --bg: #efeae2;
  --paper: #fbf8f3;
  --ink: #1c2430;
  --muted: #5e675f;
  --line: #e3dcd1;
  --accent: #0e6b62;
  --accent-deep: #12312e;
  --cream: #f3e6c8;
  --high: #9d3b24;
  --upper: #8a5a12;
  --mid: #3d5c49;
  --low: #1f6b45;
  --shadow: 0 16px 40px rgba(28, 36, 48, 0.06);
  --sans: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(243, 230, 200, 0.9), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
button, input { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.top {
  background: var(--accent-deep);
  color: #f7f4ee;
}
.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  min-height: 56px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 720;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand .logo {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
}
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; }
.top-nav a { color: var(--cream); text-decoration: none; font-size: 14px; }
.app-tab, #sheet-back { display: none !important; }

#calc { scroll-margin-top: 72px; }
.stage {
  display: block;
  width: min(860px, calc(100% - 32px));
  height: auto;
  margin: 0 auto;
  padding: 36px 0 48px;
}
.finder {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.finder .eyebrow,
.finder h1,
.finder .lede { text-align: center; }
.finder .lede { max-width: 34em; margin-right: auto; margin-left: auto; }
.hero-search {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  margin-top: 16px;
}
.ask-card {
  flex: 0 0 auto;
  padding: 18px 18px 16px;
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 36, 48, 0.05);
}
.ask-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 18px;
}
.ask-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ask-field > span,
.ask-years-top label {
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.03em;
}
.ask-years-top { display: flex; align-items: baseline; justify-content: space-between; }
.ask-years-top output { color: var(--accent); font-size: 15px; font-weight: 760; }
.ask-field input[type="search"],
.ask-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e4ddd3;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.ask-field select {
  appearance: none;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, #6f675c 50%), linear-gradient(135deg, #6f675c 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.ask-field select:disabled {
  color: var(--ink);
  opacity: 1;
  background-color: #f6f3ee;
}
.ask-field input[type="range"] { width: 100%; margin: 12px 0 0; accent-color: var(--accent); }
.finder #q { box-shadow: none; padding-right: 42px; }
.combo { position: relative; }
.combo-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.combo-toggle::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 8px auto 0;
  border-right: 2px solid #6f675c;
  border-bottom: 2px solid #6f675c;
  transform: rotate(45deg);
}
.combo.is-open { z-index: 30; }
.combo-list {
  position: absolute;
  z-index: 31;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  border: 1px solid #e4ddd3;
  border-radius: 14px;
  background: #f3f7fb;
  box-shadow: 0 14px 32px rgba(28, 36, 48, 0.14);
  scrollbar-width: thin;
}
.combo-list[hidden] { display: none; }
.combo-list .hits-note { margin: 4px 8px 6px; font-size: 12px; }
.combo-list .hit-label { margin: 8px 8px 0; }
.combo-list .role-list { margin-top: 4px; gap: 2px; }
.combo-list .role {
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 9px 12px;
}
.combo-list .role:hover,
.combo-list .role[aria-pressed="true"] { background: #fff; }
.combo-list .role .kicker,
.combo-list .role .life { display: none; }
.combo-list .role strong { font-size: 15px; }
.combo-list .role .line { margin-top: 2px; font-size: 12px; }
.combo-list .crumb { margin: 4px 4px 0; }
.ask-card .chips { margin-top: 14px; }
.ask-go {
  width: 100%;
  height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.03em;
  cursor: pointer;
}
.ask-go:hover { background: var(--accent-deep); }
.ask-ghost { display: none; }
@media (min-width: 861px) {
  .finder { min-height: 962px; }
  .finder .ask-card {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }
  .finder .ask-card .ask-go { margin-top: 18px; }
  .ask-ghost {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-height: 120px;
    margin: 10px 6px 0;
    color: var(--ink);
    pointer-events: none;
    user-select: none;
  }
}
.ask-ghost-line { position: relative; width: 100%; }
.ask-ghost-track,
.ask-ghost-ticks { opacity: 0.15; }
.ask-ghost-run {
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 0;
  z-index: 1;
}
.runner {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  overflow: visible;
  z-index: 1;
  color: var(--ink);
  opacity: 0.72;
  transform: translateX(-50%) rotate(8deg);
  transform-origin: 50% 100%;
  animation: ghost-dash 11s linear infinite;
}
.runner circle { fill: currentColor; }
.runner path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
}
.runner .limb { transform-box: view-box; }
.runner .arm-front { transform-origin: 19px 16px; animation: ghost-arm 0.36s ease-in-out infinite alternate; }
.runner .arm-back { transform-origin: 19px 16px; animation: ghost-arm 0.36s ease-in-out infinite alternate-reverse; }
.runner .leg-front { transform-origin: 16px 28px; animation: ghost-leg 0.36s ease-in-out infinite alternate; }
.runner .leg-back { transform-origin: 16px 28px; animation: ghost-leg 0.36s ease-in-out infinite alternate-reverse; }
.runner-ai {
  z-index: 0;
  bottom: 12px;
  width: auto;
  height: auto;
  color: var(--accent);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
  transform: translateX(-50%);
  animation-name: ai-dash, ai-bob;
  animation-duration: 11s, 0.36s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}
@keyframes ghost-arm {
  from { transform: rotate(-34deg); }
  to { transform: rotate(28deg); }
}
@keyframes ghost-leg {
  from { transform: rotate(-32deg); }
  to { transform: rotate(30deg); }
}
@keyframes ghost-dash {
  0% { left: 0%; opacity: 0; }
  4%, 8% { left: 0%; opacity: 0.72; }
  18%, 26% { left: 16.67%; opacity: 0.72; }
  36%, 44% { left: 33.33%; opacity: 0.72; }
  54%, 62% { left: 50%; opacity: 0.72; }
  74%, 82% { left: 83.33%; opacity: 0.72; }
  94% { left: 100%; opacity: 0.72; }
  100% { left: 100%; opacity: 0; }
}
@keyframes ai-dash {
  0%, 8% { left: 0%; opacity: 0; }
  12% { left: 0%; opacity: 0.9; }
  18%, 26% { left: 3%; opacity: 0.9; }
  36%, 44% { left: 30%; opacity: 0.9; }
  54%, 62% { left: 64%; opacity: 0.9; }
  74%, 82% { left: 96%; opacity: 0.9; }
  94% { left: 100%; opacity: 0.9; }
  100% { left: 100%; opacity: 0; }
}
@keyframes ai-bob {
  from { transform: translateX(-50%) translateY(0); }
  to { transform: translateX(-50%) translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .runner,
  .runner .limb { animation: none; }
  .runner { left: 8%; opacity: 0.72; }
  .runner-ai { left: 0%; opacity: 0.9; transform: translateX(-50%); }
}
.ask-ghost-track {
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.ask-ghost-ticks { position: relative; height: 40px; margin-top: 10px; }
.ask-ghost-ticks span {
  position: absolute;
  top: 0;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}
.ask-ghost-ticks b,
.ask-ghost-ticks i { display: block; font-style: normal; font-weight: 500; }
.ask-ghost-ticks span:first-child { transform: none; text-align: left; }
.ask-ghost-ticks span:last-child { transform: translateX(-100%); text-align: right; }
.search-type { position: relative; width: 100%; }
.type-hint {
  position: absolute;
  left: 14px;
  right: 42px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  color: #8b8478;
  font-size: 16px;
  line-height: 1.35;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}
.type-hint[hidden] { display: none; }
.type-line { min-width: 0; }
.type-caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: currentColor;
  animation: type-blink 1s steps(1) infinite;
}
@keyframes type-blink { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.chips button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #e7f2f0;
  font-weight: 720;
}
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.01em;
}
h1 {
  margin-top: 6px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}
.lede {
  max-width: 36em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.panel, .result, .method article {
  background: var(--paper);
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.panel { padding: 22px; }
.stage .result { display: none; }
body.show-result .finder,
body.show-result #more { display: none; }
body.show-result .stage .result {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 22px 22px 16px;
  overflow: visible;
}
body.show-result #sheet-back {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 720;
  cursor: pointer;
}
#search-hits { max-height: 320px; }
#filled {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 0 auto;
}
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#filled > .share-bar { margin-top: 14px; }
.share-bar button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  font-weight: 720;
  font-size: 13px;
}
.share-bar button.is-primary {
  background: var(--accent-deep);
  color: #f7f4ee;
  border-color: var(--accent-deep);
}
.share-bar button.share-more {
  background: #e7f2f0;
  color: var(--accent-deep);
  border-color: transparent;
}
.more-info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #e7f2f0;
  color: var(--accent-deep);
  font-weight: 720;
  cursor: pointer;
}
.outlook {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
}
.outlook-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #d5cdc2 transparent;
}
.outlook h2 {
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.25;
}
.outlook h3 {
  margin-top: 14px;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.outlook p { margin-top: 6px; font-size: 14px; line-height: 1.6; }
.outlook .micro { margin-top: 4px; }
.adjust { flex: 0 0 auto; }
.empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  max-width: 28em;
}
.empty[hidden],
#filled[hidden] { display: none; }
.result { display: flex; flex-direction: column; }
.adjust { margin-top: 8px; }
#search-hits {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d5cdc2 transparent;
}
#search-hits[hidden] { display: none; }

.step { display: flex; gap: 12px; align-items: flex-start; }
.step-gap { margin-top: 26px; }
.step-no {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-deep);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 720;
}
.step h2 { font-size: 20px; letter-spacing: -0.03em; }
.hint, .micro, .fine, .foot, .empty p { color: var(--muted); }
.hint { margin-top: 4px; font-size: 14px; }
.micro { margin-top: 6px; font-size: 12px; }

.search-label, .choice-label {
  display: block;
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 680;
}
#q {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
#q:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 107, 98, 0.15); }

.pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.pick, .role {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}
.pick b, .role strong { display: block; letter-spacing: -0.03em; }
.pick span, .role .line { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.pick[aria-pressed="true"], .role[aria-pressed="true"] {
  border-color: var(--accent);
  background: #e7f2f0;
}
.role-list { display: grid; gap: 8px; margin-top: 12px; }
.role .kicker, .role .life { color: var(--accent); font-size: 12px; font-weight: 720; }
.role .life { display: block; margin-top: 6px; }
.hits-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.crumb button, .crumb span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}
.crumb button { cursor: pointer; }
.crumb button:hover { border-color: var(--accent); }
.hit-label { margin: 14px 0 0; font-size: 13px; font-weight: 720; }
details.adjust { margin-top: 22px; }
details.adjust summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #e7f2f0;
  color: var(--accent-deep);
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}
details.adjust summary::-webkit-details-marker { display: none; }
.adjust-open-label { display: none; }
.adjust-live { display: none; margin-top: 12px; font-size: 18px; font-weight: 760; letter-spacing: -0.03em; }
#result:has(.adjust[open]) #filled,
.result:has(.adjust[open]) .result-kicker { display: none; }
.result:has(.adjust[open]) .adjust { flex: 1 0 auto; margin-top: 0; }
.result:has(.adjust[open]) .adjust-open-label { display: inline; }
.result:has(.adjust[open]) .adjust-closed { display: none; }
.result:has(.adjust[open]) .adjust-live { display: block; }
.result:has(.adjust[open]) details.adjust summary {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
}
details.adjust[hidden] { display: none; }

.sliders { border: 0; margin: 8px 0 0; padding: 0; }
.sliders:disabled { opacity: 0.45; }
.slider { margin-top: 16px; }
.slider-top, .choice { display: flex; justify-content: space-between; align-items: center; }
.slider-top label { font-weight: 680; }
.slider output {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 720;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: #ddd4c8;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(18, 49, 46, 0.25);
  cursor: pointer;
}

.choice { display: block; margin-top: 18px; }
.seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; }
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.seg span {
  display: block;
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: #f1ece4;
  border: 1px solid transparent;
  font-size: 14px;
}
.seg input:checked + span {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent-deep);
  font-weight: 720;
}
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

.result-kicker {
  font-size: 13px;
  font-weight: 720;
  color: var(--accent);
}
.empty-title {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.35;
  margin-bottom: 8px;
}

.score-row { margin-top: 0; }
.result .job-name { font-size: 22px; letter-spacing: -0.04em; line-height: 1.2; }
.result .risk { margin-top: 4px; }
.result .risk-pct { margin-top: 0; font-size: 40px; line-height: 0.95; }
.result .risk-pill { margin-top: 4px; }
.result .risk-gauge { margin-top: 8px; }
.result .ruler-sentence { margin-top: 10px; font-size: 16px; }
.result .summary { margin-top: 6px; font-size: 13px; }
.result .tasks { margin-top: 4px; gap: 8px; }
.result .task-block p { margin-bottom: 2px; }
.result .math-line {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.result .note { margin-top: 2px; }
.risk { margin-top: 18px; }
.risk-kicker { font-size: 13px; font-weight: 720; color: var(--muted); }
.risk-pct {
  margin-top: 2px;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.risk-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 720;
}
.risk-gauge { margin-top: 14px; }
.risk-gauge-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f9d4a 0%, #b6c43a 34%, #e0b020 56%, #e07a28 76%, #d64532 100%);
}
.risk-dot {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1f9d4a;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(28, 36, 48, 0.25);
}
.risk-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.is-high .risk-pct, .is-high .risk-pill { color: #d64532; background: transparent; }
.is-upper .risk-pct, .is-upper .risk-pill { color: #d4760a; }
.is-mid .risk-pct, .is-mid .risk-pill { color: #8a6a08; }
.is-low .risk-pct, .is-low .risk-pill { color: #1f8a45; }
.is-high .risk-pill { background: #fde8e4; }
.is-upper .risk-pill { background: #fdeede; }
.is-mid .risk-pill { background: #f8f3dc; }
.is-low .risk-pill { background: #e7f6ec; }
.is-high .risk-dot { border-color: #d64532; }
.is-upper .risk-dot { border-color: #e07a28; }
.is-mid .risk-dot { border-color: #c4a012; }
.is-low .risk-dot { border-color: #1f9d4a; }
.ruler-sentence {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.ruler-cal {
  margin-top: 2px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 720;
}
.ruler-track {
  position: relative;
  height: 18px;
  margin-top: 12px;
  border-radius: 999px;
  background: #efe7d4;
}
.ruler-window {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--accent);
}
.is-high .ruler-window { background: var(--high); }
.is-upper .ruler-window { background: var(--upper); }
.is-mid .ruler-window { background: #3d5c49; }
.is-low .ruler-window { background: var(--low); }
.ruler-ticks { position: relative; height: 38px; margin-top: 8px; }
.ruler-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
}
.ruler-ticks b, .ruler-ticks i { display: block; font-style: normal; font-weight: 500; }
.ruler-ticks i { color: var(--ink); font-weight: 720; }
.ruler-ticks span:first-child { transform: none; }
.ruler-ticks span:last-child { transform: translateX(-100%); }
.ruler-note { margin-top: 4px; }
.shot-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 49, 46, 0.46);
}
.shot-panel {
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 18px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.shot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shot-head h2 { font-size: 20px; letter-spacing: -0.03em; }
.shot-close { border: 0; background: transparent; font-weight: 720; cursor: pointer; }
.shot-ratios, .shot-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.shot-caption { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 720; }
.shot-caption textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  resize: none;
}
.shot-look { display: grid; gap: 10px; margin-top: 12px; }
.shot-look-row { display: flex; align-items: center; gap: 10px; }
.shot-look-row > span { flex: 0 0 52px; color: var(--muted); font-size: 13px; font-weight: 720; }
.shot-sizes, .shot-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.shot-sizes button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 720;
  cursor: pointer;
}
.shot-sizes button.is-on {
  background: var(--accent-deep);
  color: #f7f4ee;
  border-color: var(--accent-deep);
}
.shot-sizes button:disabled { opacity: 0.38; cursor: default; }
.shot-colors button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.shot-colors button.is-on { box-shadow: 0 0 0 2px var(--accent-deep); }
.shot-ratios button, .shot-actions button {
  flex: 1 1 120px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 720;
  cursor: pointer;
}
.shot-ratios button.is-on, .shot-actions button.is-primary {
  background: var(--accent-deep);
  color: #f7f4ee;
  border-color: var(--accent-deep);
}
.shot-preview {
  display: grid;
  place-items: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg);
}
.shot-preview img {
  width: auto;
  max-width: 100%;
  max-height: 48vh;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(28, 36, 48, 0.12);
}
.extra-share {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 49, 46, 0.46);
}
.extra-share-panel {
  width: min(420px, 100%);
  padding: 18px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.extra-share-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.extra-share-list button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 720;
  cursor: pointer;
}
.year-risk { margin-top: 14px; }
.year-risk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.year-card {
  padding: 10px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf6;
  text-align: center;
}
.year-card.is-on { border-color: #c9d7cb; background: #fff; }
.year-card b { display: block; font-size: 13px; font-weight: 720; }
.year-card strong {
  display: block;
  margin-top: 2px;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.year-card span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.is-high .year-card strong { color: var(--high); }
.is-upper .year-card strong { color: var(--upper); }
.is-mid .year-card strong { color: #3d5c49; }
.is-low .year-card strong { color: var(--low); }
.year-risk .micro { margin-top: 8px; }
.band {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
  background: #efe7d4;
}
.is-high .band { color: var(--high); }
.is-upper .band { color: var(--upper); }
.is-mid .band { color: #355744; }
.is-low .band { color: var(--low); }

.times { margin: 16px 0; display: grid; gap: 8px; }
.time {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f1e8;
}
.time b { font-size: 13px; }
.summary { font-size: 15px; }

.math, .tasks, .peers { margin-top: 16px; }
.tasks, .peer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.peers h3, .math h3, .tasks h3 { font-size: 14px; margin-bottom: 8px; }
.peer-list { grid-template-columns: 1fr; }
.peer-list .role { margin: 0; }
.math li, .tasks li { margin: 4px 0 4px 18px; font-size: 14px; }
.math ul, .tasks ul { margin: 0; padding: 0; }
.task-block + .task-block { margin-top: 10px; }
.task-block p { font-size: 13px; font-weight: 720; margin-bottom: 4px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions button {
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
}
.actions .primary {
  background: var(--accent-deep);
  color: #f7f4ee;
  border-color: var(--accent-deep);
}
.note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.rank-entry { padding: 8px 0 28px; }
.rank-entry > h2 { font-size: 28px; letter-spacing: -0.04em; }
.rank-entry .lede { margin: 8px 0 16px; }
.rank-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rank-entry-grid a {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.rank-entry-grid h3 { font-size: 18px; letter-spacing: -0.03em; margin-bottom: 6px; }
.rank-entry-grid p { color: var(--muted); font-size: 14px; }
.more-info { padding: 8px 0 36px; }
.more-info > h2 { font-size: 28px; letter-spacing: -0.04em; }
.more-info .lede { margin: 8px 0 16px; }
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.more-grid a {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.more-grid h3 { font-size: 18px; letter-spacing: -0.03em; margin-bottom: 6px; }
.more-grid p { color: var(--muted); font-size: 14px; }
.method-box {
  margin-top: 12px;
  background: var(--paper);
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.method-box summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.03em;
  list-style: none;
}
.method-box summary::-webkit-details-marker { display: none; }
.method-box summary::after {
  content: "열기";
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
}
.method-box[open] summary::after { content: "접기"; }
.method-body { padding: 0 20px 20px; }
.more-note { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.method-body h3 { margin-top: 18px; font-size: 16px; letter-spacing: -0.03em; }
.method-body p { margin-top: 8px; color: var(--ink); font-size: 15px; }
.method-body ul { margin: 8px 0 0; padding-left: 18px; }
.method-body li { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.hero-search:has(#search-hits:not([hidden])) .class-box { display: none; }
.class-box {
  flex: 1;
  min-height: 0;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.class-box h2 { flex: 0 0 auto; }
.class-box > p { flex: 0 0 auto; margin-top: 6px; }
#ksco-counts { flex: 0 0 auto; }
.ksco-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.ksco-table th, .ksco-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
.ksco-table th { color: var(--muted); font-size: 12px; font-weight: 680; }
.ksco-table td:nth-child(2), .ksco-table th:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; }
.ksco-table td:nth-child(2) { font-weight: 760; }
.ksco-tree {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.ksco-kids { display: grid; gap: 6px; margin: 6px 0 2px 12px; }
.ksco-kids[hidden] { display: none; }
.ksco-row {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.ksco-row .code { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ksco-row .name { font-weight: 680; letter-spacing: -0.03em; }
.ksco-row .meta { color: var(--muted); font-size: 12px; }
.ksco-row[aria-expanded="true"] { border-color: var(--accent); background: #e7f2f0; }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }

.rank-page { padding: 28px 0 48px; }
.rank-page h1 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.045em; }
.rank-page .lede { margin-top: 8px; max-width: 40em; }
.rank-tools {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 0;
  background: var(--bg);
}
.rank-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.rank-switch button, .rank-tools input {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
}
.rank-switch button {
  padding: 10px 14px;
  cursor: pointer;
}
.rank-switch button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #e7f2f0;
  color: var(--accent-deep);
  font-weight: 720;
}
.rank-tools input { padding: 12px 16px; }
.rank-count { font-size: 13px; color: var(--muted); }
.rank-list { margin-top: 4px; scroll-margin-top: 88px; }
.rank-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(560px, 100%);
  margin: 14px auto;
}
.rank-pages:empty { display: none; }
.rank-pages button { cursor: pointer; }
.rank-pages button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-nav {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font-weight: 720;
}
.page-nav:disabled {
  color: #b7b1a6;
  border-color: #ece6dc;
  cursor: default;
}
.page-nums {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.page-nums button {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.page-nums button[aria-current="page"] {
  background: var(--accent-deep);
  color: var(--cream);
  font-weight: 760;
}
.page-nums button:hover:not([aria-current="page"]) {
  background: #e7f2f0;
  color: var(--accent-deep);
}
.rank-group { margin-top: 22px; }
.rank-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 2px 4px 8px;
}
.rank-group-name { font-size: 16px; font-weight: 760; letter-spacing: -0.03em; }
.rank-group-meta { color: var(--muted); font-size: 13px; font-weight: 720; white-space: nowrap; }
.is-high .rank-group-meta { color: #d64532; }
.is-upper .rank-group-meta { color: #d4760a; }
.is-mid .rank-group-meta { color: #8a6a08; }
.is-low .rank-group-meta { color: #1f8a45; }
.rank-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: start;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.rank-row:hover { background: rgba(255, 255, 255, 0.55); }
.rank-no {
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.rank-body { display: block; min-width: 0; }
.rank-name { display: block; font-size: 17px; font-weight: 720; letter-spacing: -0.03em; }
.rank-members {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.rank-members a {
  display: inline-block;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
}
.rank-members a:hover {
  border-color: var(--accent);
  background: #e7f2f0;
}
.rank-row .micro { display: block; margin-top: 2px; }
.rank-meta { text-align: right; }
.rank-meta b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.rank-meta span { display: block; color: var(--muted); font-size: 12px; }
.is-high .rank-no, .is-high .rank-meta b { color: #d64532; }
.is-upper .rank-no, .is-upper .rank-meta b { color: #d4760a; }
.is-mid .rank-no, .is-mid .rank-meta b { color: #8a6a08; }
.is-low .rank-no, .is-low .rank-meta b { color: #1f8a45; }
.rank-empty { padding: 28px 0; color: var(--muted); }
.foot { padding: 18px 0 36px; font-size: 13px; color: var(--muted); }
.foot p + p { margin-top: 6px; }
.foot strong { color: var(--ink); font-weight: 720; letter-spacing: -0.03em; }
.ad-bar {
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto;
  text-align: center;
}
.ad-bar .adsbygoogle { display: block; margin: 0 auto; }
.ad-mid { display: none; }
.finder .ad-mid { width: 100%; margin: 18px 0 0; }

.future-entry-wrap { padding: 8px 0 36px; }
.future-entry-wrap > h2 { font-size: 28px; letter-spacing: -0.04em; }
.future-entry-wrap .lede { margin: 8px 0 16px; }
.future-entry {
  display: block;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.future-entry h3 { font-size: 18px; letter-spacing: -0.03em; margin-bottom: 6px; }
.future-entry p { color: var(--muted); font-size: 14px; }

.future-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.future-jump a,
.future-jump button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}
.future-jump a:hover,
.future-jump button:hover,
.future-jump button[aria-pressed="true"] { border-color: var(--accent); background: #e7f2f0; }
.future-jump button[aria-pressed="true"] { font-weight: 720; }
.future-move {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.future-move button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 720;
  font-size: 13px;
}
.future-move button:disabled { opacity: 0.4; cursor: default; }
.future-pos { margin: 0; color: var(--muted); font-size: 13px; font-weight: 720; }
.future-deck {
  flex: 1;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
}
.future-track {
  display: flex;
  height: 100%;
  transition: transform 0.28s ease;
}
.future-panel {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d5cdc2 transparent;
}
.future-panel-title {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.04em;
}
.future-panel .future-block,
.future-panel .source-box { margin-top: 0; }
.future-panel .theme { margin-top: 6px; padding: 8px 10px; }
.future-panel .theme p { margin-top: 4px; font-size: 13px; }
.future-panel .job-pills { margin-top: 8px; }
.future-panel .future-block > p { margin-top: 4px; font-size: 13px; line-height: 1.45; }
.future-panel .future-block h2 { font-size: 20px; }
.future-panel .future-block .source { margin-top: 2px; }
.future-tail { padding: 8px 0 12px; }
.future-tail .future-split { margin-top: 0; }
.future-tail .source-box { margin-top: 14px; }
.future-tail .fine { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .future-track { transition: none; }
  .type-caret { animation: none; }
}
.future-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.future-split article, .theme, .source-box {
  background: var(--paper);
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.future-split article { padding: 16px 16px 18px; }
.future-split h2, .theme h3 { font-size: 16px; letter-spacing: -0.03em; }
.future-split p, .theme p, .future-block > p { margin-top: 8px; }
.future-split p, .theme p, .source-box p, .future-block .source { color: var(--muted); }
.future-block { margin-top: 34px; }
.future-block h2 { font-size: 24px; letter-spacing: -0.04em; }
.future-block .source { margin-top: 6px; font-size: 13px; }
.future-block > p { max-width: 46em; font-size: 15px; }
.theme { margin-top: 12px; padding: 16px 16px 14px; }
.job-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.job-pills button {
  display: inline-block;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
}
.job-pills button:hover,
.job-pills button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #e7f2f0;
}
.job-pills button[aria-pressed="true"] { font-weight: 720; }
.job-pills small { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.future-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 22px;
  height: calc(100dvh - 56px);
  padding: 18px 0 16px;
  align-items: stretch;
}
.future-read {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 6px 6px 8px 0;
}
.future-read > :not(.future-deck) { flex: 0 0 auto; }
.grant-page.future-stage {
  height: auto;
  min-height: 0;
  align-items: start;
}
.grant-page .future-read {
  overflow: visible;
  height: auto;
}
.grant-page .future-read > .grant-block {
  flex: 0 0 auto;
  overflow: visible;
}
.grant-page .future-read .fine,
.grant-page > .grant-foot {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
  word-break: keep-all;
}
.grant-page > .grant-foot { grid-column: 1 / -1; }
.grant-page .future-result {
  position: static;
  max-height: none;
  overflow: visible;
}
.grant-page .grant-label {
  margin: 22px 0 10px;
  font-size: 18px;
  letter-spacing: -0.03em;
}
@media (min-width: 861px) {
  .grant-page .future-read { display: contents; }
  .grant-page .eyebrow,
  .grant-page h1,
  .grant-page .lede,
  .grant-page .grant-label { grid-column: 1 / -1; }
  .grant-page .grant-block,
  .grant-page .grant-choices { margin-top: 0; }
  .grant-page .future-result { margin-top: 0; }
  .grant-page .grant-choices { gap: 10px; }
  .grant-page .grant-choices button {
    padding: 22px;
    border-radius: 22px;
  }
  .grant-page .grant-choices button strong {
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: -0.03em;
  }
  .grant-page .grant-choices button span {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.55;
  }
  .grant-page .future-result { padding: 22px; }
  .grant-page > .grant-foot { font-size: 15px; line-height: 1.55; }
}
.future-read .future-split { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.future-read .future-split article { padding: 12px; }
.future-read .future-split h2 { font-size: 14px; }
.future-read .future-split p { margin-top: 4px; font-size: 12px; }
.future-result {
  min-height: 0;
  overflow: auto;
  background: var(--paper);
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.future-empty p + p { margin-top: 8px; color: var(--muted); }
.future-result h2 {
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: -0.04em;
}
.future-result .en { margin-top: 4px; color: var(--muted); font-size: 13px; }
.future-result .lead { margin-top: 10px; }
.future-result h3 { margin-top: 18px; font-size: 15px; letter-spacing: -0.03em; }
.word-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.word-pills span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 13px;
}
.where-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.where-list a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.where-list a:hover { border-color: var(--accent); }
.where-list strong { display: block; color: var(--accent-deep); letter-spacing: -0.02em; }
.where-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.future-result .note { margin-top: 14px; }
.job-sheet { padding: 14px 16px 12px; }
.job-sheet h2 { margin-top: 2px; font-size: 22px; line-height: 1.25; }
.job-sheet .en { margin-top: 2px; }
.job-sheet .lead { margin-top: 6px; font-size: 13.5px; line-height: 1.45; }
.job-sheet h3.sheet-label {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.02em;
}
.job-sheet .word-pills { gap: 6px; margin-top: 6px; }
.job-sheet .word-pills span { padding: 3px 8px; font-size: 12px; }
.sheet-rows, .sheet-links { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.job-sheet .sheet-links { grid-template-columns: 1fr 1fr; }
.sheet-rows a, .sheet-rows div, .sheet-links a {
  display: block;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.sheet-links a:hover, .sheet-rows a:hover { border-color: var(--accent); }
.sheet-rows strong, .sheet-links strong {
  display: block;
  color: var(--accent-deep);
  font-size: 13px;
  letter-spacing: -0.02em;
}
.sheet-meta, .sheet-note, .sheet-links span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.sheet-meta { margin-top: 1px; }
.sheet-note, .sheet-links span {
  display: -webkit-box;
  margin-top: 1px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sheet-links span { -webkit-line-clamp: 1; }
.job-sheet .note { margin-top: 8px; font-size: 12px; }
.future-empty[hidden], #future-filled[hidden], #grant-filled[hidden] { display: none; }
.grant-block { margin-top: 22px; }
.grant-block[hidden] { display: none; }
.grant-follow {
  margin: -2px 0 2px 14px;
  padding: 10px 12px 12px;
  border-left: 2px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: #f4faf8;
}
.grant-follow[hidden] { display: none; }
.grant-follow-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.grant-follow-label:first-child { margin-top: 0; }
.grant-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.grant-block h2 { font-size: 18px; letter-spacing: -0.03em; }
.grant-choices { display: grid; gap: 8px; margin-top: 10px; }
.grant-choices button {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}
.grant-choices button strong { display: block; letter-spacing: -0.03em; }
.grant-choices button span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.grant-choices button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #e7f2f0;
}
.grant-follow .grant-mini button {
  width: auto;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
}
.grant-follow .grant-mini button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #e7f2f0;
  font-weight: 720;
}
.source-box { margin-top: 16px; padding: 16px 18px 18px; }
.source-box h2 { font-size: 18px; letter-spacing: -0.03em; }
.source-box h3 { margin-top: 16px; font-size: 16px; letter-spacing: -0.03em; }
.source-box p a,
.source-box li a { word-break: keep-all; }
.source-box ul { margin: 10px 0 0; padding-left: 18px; }
.source-box li { margin-top: 6px; }
.source-box a { word-break: break-all; }
.about-links { margin-top: 12px; }
.about-links a { word-break: keep-all; }
.rank-page .source-box + .source-box { margin-top: 14px; }

@media (max-width: 860px) {
  :root { --app-bar: 48px; --app-tab: 64px; }
  body {
    padding-bottom: calc(var(--app-tab) + env(safe-area-inset-bottom));
    -webkit-tap-highlight-color: transparent;
  }
  body.result-open { overflow: hidden; }
  .top {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top);
  }
  .top-inner { min-height: var(--app-bar); justify-content: center; padding: 0; }
  .top-nav { display: none; }
  .brand { font-size: 15px; }
  .brand .logo { width: 28px; height: 28px; }
  .app-tab {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    min-height: var(--app-tab);
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    background: var(--accent-deep);
    border-top: 1px solid rgba(243, 230, 200, 0.14);
    box-shadow: 0 -10px 28px rgba(18, 49, 46, 0.16);
  }
  .app-tab a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    padding: 4px 1px 2px;
    border-radius: 14px;
    color: rgba(243, 230, 200, 0.72);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.06em;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }
  .app-tab a::before {
    content: "";
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--tab-icon) center / contain no-repeat;
    mask: var(--tab-icon) center / contain no-repeat;
  }
  .app-tab a[href="index.html"] { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E"); }
  .app-tab a[href="ranking.html"] { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M5 13h3.2v7H5zm5.4-4h3.2v11h-3.2zM15.8 6H19v14h-3.2z'/%3E%3C/svg%3E"); }
  .app-tab a[href="future.html"] { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2.8l1.5 4.8 4.9 1.3-4.9 1.5L12 15.2l-1.5-4.8L5.6 8.9l4.9-1.3z'/%3E%3Cpath d='M18.2 14.2l.6 1.9 1.9.5-1.9.6-.6 1.9-.6-1.9-1.9-.6 1.9-.5z'/%3E%3C/svg%3E"); }
  .app-tab a[href="grants.html"] { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3C/svg%3E"); }
  .app-tab a[href="about.html"] { --tab-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 11v5'/%3E%3Ccircle cx='12' cy='8' r='0.9' fill='black' stroke='none'/%3E%3C/svg%3E"); }
  .app-tab a[aria-current="page"] {
    color: var(--cream);
    font-weight: 760;
  }
  .app-tab a[aria-current="page"]::after {
    content: "";
    position: absolute;
    top: 1px;
    width: 14px;
    height: 3px;
    border-radius: 999px;
    background: var(--cream);
  }
  h1 { font-size: 26px; }
  .lede { font-size: 14px; }
  .stage {
    display: block;
    height: auto;
    padding-top: 16px;
  }
  .ask-grid { grid-template-columns: 1fr; }
  .class-box { flex: none; overflow: visible; }
  .ksco-tree { overflow: visible; }
  .finder .hint { font-size: 12px; }
  .finder #q { min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
  .type-hint { white-space: normal; font-size: 15px; }
  .chips button, .job-pills button, .crumb button { min-height: 40px; }
  .result { display: none; }
  body.show-result .stage .result {
    position: static;
    height: auto;
    margin: 0 0 28px;
    overflow: visible;
    border-radius: 22px;
    padding: 16px;
  }
  body.show-result #sheet-back { display: inline-flex !important; }
  body.show-result .share-bar {
    flex: 0 0 auto;
    flex-wrap: wrap;
    overflow: visible;
  }
  body.show-result .share-bar button { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; font-size: 15px; }
  body.show-result .share-bar button.share-more { flex: 1 0 100%; }
  body.result-open #filled > * { flex-shrink: 0; }
  .result .tasks { grid-template-columns: 1fr; }
  .result .risk-pct { font-size: 44px; }
  .ruler-ticks span { font-size: 11px; }
  .outlook-scroll { overflow: visible; flex: none; }
  .combo-list { max-height: 240px; }
  .role { min-height: 44px; }
  .rank-tools {
    position: sticky;
    top: calc(var(--app-bar) + env(safe-area-inset-top));
    z-index: 20;
    margin-top: 8px;
    padding: 8px 0;
    background: var(--bg);
  }
  .rank-switch button, .rank-tools input, .seg span { min-height: 44px; }
  .rank-entry-grid, .more-grid, .future-split, .future-stage { grid-template-columns: 1fr; }
  .future-stage { display: block; height: auto; padding-top: 16px; }
  .future-read { overflow: visible; height: auto; }
  .future-result { overflow: visible; margin-top: 16px; }
  .future-deck { height: min(68vh, 560px); flex: none; }
  .job-sheet .sheet-links { grid-template-columns: 1fr; }
  .future-jump a, .future-jump button { min-height: 40px; }
  .rank-list { scroll-margin-top: 150px; }
  .rank-pages { width: 100%; gap: 6px; }
  .page-nav { height: 40px; padding: 0 12px; }
  .page-nums button { height: 36px; font-size: 13px; }
  .rank-row { grid-template-columns: 52px minmax(0, 1fr); }
  .rank-meta { grid-column: 2; text-align: left; }
  .rank-group-head { display: block; }
  .rank-group-meta { white-space: normal; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .seg-3 { grid-template-columns: 1fr; }
  .foot { padding: 8px 0 10px; font-size: 12px; }
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  .wrap { width: min(1120px, calc(100% - 24px)); }
  .top { box-shadow: 0 8px 24px rgba(18, 49, 46, 0.18); }
  .ad-bar { width: min(1120px, calc(100% - 24px)); margin: 10px auto; }
  .ad-top { display: none; }
  .ad-mid { display: block; }
  button, input, select, textarea { font-size: 16px; }
  .grant-choices { gap: 8px; }
  .grant-choices button {
    padding: 16px;
    border-radius: 18px;
  }
  .grant-choices button strong { font-size: 17px; }
  .grant-choices button span { margin-top: 4px; font-size: 15px; line-height: 1.45; }
  .grant-page > .grant-foot { font-size: 14px; }
  .future-result { border-radius: 18px; padding: 16px; }
  .future-result .empty-title, .result .empty-title { font-size: 20px; }
  .source-box, .theme, .method-box, .more-grid a { border-radius: 18px; }
  .future-jump {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -12px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .future-jump a,
  .future-jump button { flex: 0 0 auto; }
  .job-pills { display: grid; grid-template-columns: 1fr; }
  .job-pills button {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    text-align: left;
    white-space: normal;
  }
  .rank-group { margin-top: 16px; }
  .rank-row {
    margin-top: 8px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }
  .rank-name { font-size: 16px; }
  .rank-members a { min-height: 40px; }
  .chips { gap: 8px; }
  .chips button { min-height: 40px; padding: 8px 12px; }
  .ask-card .chips { margin-top: 10px; gap: 6px; }
  .ask-card .chips button {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 13px;
  }
  .ask-ghost {
    display: flex;
    flex: none;
    align-items: flex-end;
    min-height: 0;
    margin: 4px 0 0;
    padding-top: 34px;
    color: var(--ink);
    pointer-events: none;
    user-select: none;
  }
  .ask-ghost svg.runner { width: 26px; height: 36px; }
  .ask-ghost .runner-ai { bottom: 8px; font-size: 13px; }
  .ask-ghost-ticks { height: 28px; margin-top: 4px; }
  .ask-ghost-ticks span { font-size: 10px; }
}
.future-page .future-stage {
  display: block;
  width: min(860px, calc(100% - 32px));
  height: auto;
  padding: 28px 0 40px;
}
.future-page .future-read {
  overflow: visible;
  height: auto;
}
.future-page .future-deck {
  height: auto;
  overflow: visible;
  flex: none;
}
.future-page .future-track {
  display: block;
  height: auto;
  transform: none;
}
.future-page .future-panel {
  height: auto;
  overflow: visible;
}
.future-page .future-result {
  display: block;
  margin-top: 16px;
  overflow: visible;
  max-height: none;
}
.future-page .future-tail { margin-top: 28px; }
.future-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 720;
  cursor: pointer;
}
body.grant-page .grant-page.future-stage {
  display: block;
  width: min(860px, calc(100% - 32px));
  height: auto;
  padding: 28px 0 40px;
}
body.grant-page .grant-page .future-read {
  display: block;
  overflow: visible;
  height: auto;
}
body.grant-page .grant-page .future-result {
  display: block;
  margin-top: 16px;
  overflow: visible;
  max-height: none;
}
.pick-bar {
  margin-top: 22px;
  padding: 20px 20px 18px;
  background: var(--paper);
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.pick-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
}
.pick-bar .pick-field,
.pick-bar .pick-select {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid rgba(18, 49, 46, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 720;
  letter-spacing: -0.03em;
}
.pick-bar .pick-select {
  display: none;
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2312312e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  appearance: none;
}
.pick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pick-pills button {
  padding: 11px 16px;
  border: 1px solid rgba(18, 49, 46, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.25;
  cursor: pointer;
}
.pick-pills button:hover {
  border-color: var(--accent);
  background: #f4faf8;
}
.pick-pills button[aria-pressed="true"] {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: var(--cream);
  font-weight: 760;
}
.pick-pills button[aria-pressed="true"] small { color: var(--cream); }
.pick-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.pick-hint[hidden] { display: none; }
.pick-follow {
  margin: 16px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.pick-follow[hidden],
.grant-follow[hidden] { display: none; }
.pick-follow .pick-label { display: block; margin-top: 14px; }
.pick-follow .pick-label:first-child { margin-top: 0; }
.pick-bar .grant-money {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pick-bar .grant-money button { width: 100%; border-radius: 14px; }
.future-result .result-kicker,
.pick-bar + .future-result .result-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: -0.02em;
}
body.grant-page .where-list a,
.future-page .sheet-links a,
.future-page .sheet-rows a {
  padding: 14px 16px;
  border-radius: 16px;
}
.future-page .sheet-links { grid-template-columns: 1fr; }
.pick-bar .future-block > h2,
.pick-bar .future-block > .source,
.pick-bar .future-block > p { display: none; }
.pick-bar .theme {
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.pick-bar .theme h3 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.pick-bar .theme p { margin-top: 4px; font-size: 13px; }
.pick-bar .job-pills { margin-top: 8px; }
.rank-page {
  width: min(860px, calc(100% - 32px));
  padding: 28px 0 40px;
}
.rank-page .pick-bar { position: static; }
.rank-page .rank-list {
  margin-top: 16px;
  padding: 6px 18px 18px;
  background: var(--paper);
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.rank-page .rank-row { border-top-color: rgba(28, 36, 48, 0.08); }
.rank-page .rank-count { margin-top: 12px; }
@media (max-width: 860px) {
  .pick-bar .pick-select { display: block; }
  .pick-bar > .pick-pills { display: none; }
  .future-page .future-deck { display: none; }
  .pick-bar .grant-money { grid-template-columns: 1fr; }
  .pick-bar .grant-money button { min-height: 48px; }
  .rank-page .pick-bar {
    position: sticky;
    top: calc(var(--app-bar) + env(safe-area-inset-top));
    z-index: 20;
  }
}
