:root {
  --bg: #f4f2ee;
  --bg-2: #ebe7e1;
  --card: #fbfaf8;
  --card-2: #f1eee9;
  --ink: #1f1a16;
  --ink-2: #6f6862;
  --ink-3: #a29a92;
  --line: #e3ded6;
  --dark: #231c17;
  --accent: #b9603f;      /* 공휴일 */
  --accent-soft: #f3e3da;
  --sage: #5f7a63;        /* 직항·하락 */
  --sage-soft: #e3ebe2;
  --radius: 22px;
  --serif: 'Noto Serif KR', 'Instrument Serif', serif;
  --ital: 'Instrument Serif', 'Noto Serif KR', serif;
  --body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: clip; /* hidden이면 body가 스크롤 상자가 돼서 위 메뉴·찾기 버튼 고정(sticky)이 안 된다 */
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
main, .nav, .foot { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

.topnote { background: var(--dark); color: #efe9e2; text-align: center; font-size: 13px; padding: 9px 16px; }

/* NAV */
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 21px; text-decoration: none; letter-spacing: -0.03em; }
.logo i { font-family: var(--ital); font-weight: 400; font-style: italic; color: var(--ink-2); margin-left: 2px; }
.nav nav { display: flex; gap: 4px; }
.nav nav a { text-decoration: none; font-size: 13.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.nav nav a:hover { color: var(--ink); background: var(--bg-2); }

/* HERO */
.hero { text-align: center; padding: 56px 0 40px; }
.eyebrow { display: inline-block; font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; margin: 0 0 22px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6.6vw, 68px);
  line-height: 1.18;
  letter-spacing: -0.045em;
  margin: 0;
}
.hero h1 em { font-family: var(--ital); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.lead { color: var(--ink-2); font-size: clamp(14.5px, 1.8vw, 16px); margin: 20px auto 0; max-width: 520px; }

/* CARD / FORM */
.card {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid #fff;
  border-radius: 28px;
  box-shadow: 0 1px 2px rgba(31, 26, 22, .04), 0 24px 60px -36px rgba(31, 26, 22, .28);
}
.planner { padding: 32px; margin: 0 auto 64px; max-width: 760px; }
.field { margin-bottom: 26px; min-width: 0; }
.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }

.stepper { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); font-size: 18px; line-height: 1; color: var(--ink); }
.stepper button:hover { background: var(--bg-2); }
.stepper output { min-width: 76px; text-align: center; font-size: 14px; color: var(--ink-2); }
.stepper output b { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); margin-right: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  border: 1px solid var(--line); background: var(--card);
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
  transition: all .15s;
}
.chips button:hover { color: var(--ink); border-color: var(--ink-3); }
.chips button.on { background: var(--dark); border-color: var(--dark); color: #f6f1ea; }
.chips button[disabled] { opacity: .35; cursor: not-allowed; }
.field.off { opacity: .35; pointer-events: none; }

.tabs { display: flex; gap: 2px; background: var(--bg-2); border-radius: 999px; padding: 3px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.tabs button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(31, 26, 22, .08); }
.cities button.on { background: var(--card); border-color: var(--ink); color: var(--ink); font-weight: 600; }

.cta {
  display: block; width: 100%; margin-top: 6px;
  background: var(--dark); color: #f6f1ea; border: 0; border-radius: 999px;
  padding: 16px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .1s, opacity .2s;
}
.cta:hover { opacity: .9; }
.cta:active { transform: translateY(1px); }
.hint { text-align: center; font-size: 12px; color: var(--ink-3); margin: 14px 0 0; }
.hint .new { background: var(--accent); color: #fff; border-radius: 6px; padding: 1px 6px; font-weight: 700; margin-right: 4px; font-size: 11px; }

/* SECTION TITLES */
.results h2, .how h2, .cal h2, .saved h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.2vw, 40px);
  letter-spacing: -0.04em; line-height: 1.25; margin: 0 0 8px;
}
.results h2 em, .how h2 em, .cal h2 em { font-family: var(--ital); font-style: italic; font-weight: 400; }
.sub { color: var(--ink-2); margin: 0 0 22px; font-size: 14.5px; }
.results { margin-bottom: 72px; }
.disc-inline { font-size: 12px; color: var(--ink-2); border-left: 2px solid var(--line); padding: 2px 0 2px 12px; margin-bottom: 22px; }

/* WINDOWS */
.wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.win {
  text-align: left; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), var(--card-2)); padding: 20px; position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.win:hover { border-color: var(--ink-3); }
.win.on { border-color: var(--ink); box-shadow: 0 18px 40px -28px rgba(31, 26, 22, .5); }
.win .rank { position: absolute; top: 18px; right: 18px; font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }
.win .big { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; letter-spacing: -0.04em; }
.win .big small { font-family: var(--body); font-size: 13px; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
.win .dates { font-weight: 600; margin: 8px 0 2px; font-size: 14.5px; }
.win .hol { font-size: 12.5px; color: var(--ink-2); min-height: 18px; }
.strip { display: flex; gap: 3px; margin-top: 14px; flex-wrap: wrap; }
.strip i { width: 14px; height: 14px; border-radius: 4px; background: var(--bg-2); }
.strip i.holiday { background: var(--accent); }
.strip i.weekend { background: #cfc7bd; }
.strip i.leave { background: var(--dark); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); margin: 0 0 22px; flex-wrap: wrap; }
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.legend .l1::before { background: var(--accent); }
.legend .l2::before { background: #cfc7bd; }
.legend .l3::before { background: var(--dark); }

/* DETAIL */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.panel.sum { background: var(--dark); border-color: var(--dark); color: #f3ede6; }
.panel h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel .meta { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.panel.sum .meta { color: #a99f95; }
.panel.sum h3 { font-family: var(--serif); font-weight: 500; font-size: 18px; }

.total { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.04em; }
.total small { font-family: var(--body); font-size: 14px; color: #a99f95; letter-spacing: 0; }
.perp { color: #cfc5ba; font-size: 13.5px; margin-top: 6px; }
.breakdown { margin: 18px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.breakdown li span { color: #cfc5ba; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown li b { font-weight: 600; white-space: nowrap; }

.fl, .st { display: grid; gap: 14px; align-items: center; padding: 14px 12px; border-radius: 16px; margin: 2px -12px; text-decoration: none; }
.fl { grid-template-columns: 32px minmax(0, 1fr) auto; }
.st { grid-template-columns: 72px minmax(0, 1fr) auto; }
.fl img { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.st img { width: 72px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--bg-2); }
.fl .name, .st .name { font-weight: 600; font-size: 14px; line-height: 1.35; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fl .tm, .st .tm { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.fl .pr, .st .pr { text-align: right; font-weight: 700; white-space: nowrap; font-size: 15px; letter-spacing: -0.02em; }
.fl .pr small, .st .pr small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.tag.d { background: var(--sage-soft); border-color: transparent; color: var(--sage); }
.tag.l { background: var(--bg); }

.pick { cursor: pointer; transition: background .12s; }
.pick:hover { background: var(--bg); }
.pick.sel { background: var(--bg-2); }
.pick .radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink-3); display: inline-block; flex: none; }
.pick.sel .radio { border: 5px solid var(--dark); }
.pick .go { display: inline-block; margin-top: 4px; font-size: 11.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.pick .go:hover { color: var(--ink); text-decoration-color: currentColor; }
.subhead { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin: 12px 0 0; letter-spacing: .02em; }

.plan { list-style: none; padding: 0; margin: 0; }
.plan li { padding: 10px 0 10px 56px; position: relative; font-size: 13.5px; border-top: 1px solid var(--line); counter-increment: d; }
.plan { counter-reset: d; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: 'Day ' counter(d); position: absolute; left: 0; top: 10px; font-family: var(--ital); font-style: italic; color: var(--ink-2); font-size: 15px; }
.plan li span { display: block; font-size: 11.5px; color: var(--ink-3); }

.skel { height: 52px; border-radius: 14px; background: linear-gradient(90deg, var(--bg), #faf8f5, var(--bg)); background-size: 200% 100%; animation: sh 1.2s infinite; margin: 10px 0; }
@keyframes sh { to { background-position: -200% 0; } }
.empty { font-size: 13.5px; color: var(--ink-2); padding: 8px 0; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line); background: var(--card); }
.btn:hover { border-color: var(--ink-3); }
.btn.pri { background: var(--dark); color: #f6f1ea; border-color: var(--dark); }
.panel.sum .btn { background: transparent; border-color: rgba(255, 255, 255, .22); color: #f3ede6; }
.panel.sum .btn:hover { border-color: rgba(255, 255, 255, .5); }
.panel.sum .btn.pri { background: #f6f1ea; color: var(--dark); border-color: #f6f1ea; }
.sharedbar { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 20px; }
.sharedbar b { color: var(--ink); }
.diff-up { color: #f0a58a; font-weight: 700; }
.diff-down { color: #a9c7ab; font-weight: 700; }

/* HOW */
.how { padding: 8px 0 0; margin-bottom: 72px; }
.steps { list-style: none; padding: 0; margin: 24px 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps b { font-family: var(--ital); font-style: italic; font-weight: 400; font-size: 26px; color: var(--ink-3); }
.steps h3 { margin: 10px 0 6px; font-size: 16px; }
.steps p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; }
.compare th { font-size: 12.5px; color: var(--ink-3); font-weight: 600; border-bottom: 1px solid var(--line); }
.compare th:nth-child(2) { color: var(--ink); }
.compare td:nth-child(2) { font-weight: 700; }
.compare tr + tr td { border-top: 1px solid var(--line); }
.compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; width: 26%; }
.compare td:nth-child(3) { color: var(--ink-3); }

/* CALENDAR / SAVED */
.cal, .saved { margin-bottom: 72px; }
.hlist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.hlist li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.hlist li b { font-weight: 600; }
.hlist li span { color: var(--ink-2); }
.hlist li.new { border-color: var(--accent); background: var(--accent-soft); }
.slist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.slist li { background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.slist .t { font-weight: 700; }
.slist .d { font-size: 12.5px; color: var(--ink-2); margin: 4px 0 12px; }
.slist .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.slist .acts a, .slist .acts button { font-size: 12.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; }
.slist .acts a { background: var(--dark); color: #f6f1ea; border-color: var(--dark); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: #f6f1ea; padding: 12px 18px; border-radius: 999px; font-size: 13.5px; z-index: 50; box-shadow: 0 12px 30px rgba(0, 0, 0, .2); max-width: calc(100% - 32px); text-align: center; }

/* FOOT */
.foot { padding: 32px 24px 56px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); }
.foot p { margin: 0 0 6px; }
.disclosure { color: var(--ink-2); }
.pc { display: inline; }

@media (max-width: 860px) {
  .wins, .steps { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  main, .nav, .foot { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 36px 0 28px; }
  .planner { padding: 22px 18px; border-radius: 24px; }
  .row2 { grid-template-columns: 1fr; }
  .pc { display: none; }
  .panel { padding: 20px 16px; }
  .fl, .st { margin: 2px -8px; padding: 12px 8px; gap: 10px; }
  .st { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .st img { width: 60px; height: 50px; }
  .compare th, .compare td { padding: 12px 10px; font-size: 13px; }
}

/* ===== v2: 숫자 입력, 검색 콤보, 스위치, 아이 나이, 연휴 칩 ===== */
.lbl small { font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.nb { display: inline-block; }
.hero h1, .results h2, .how h2, .cal h2, .saved h2, .guide h2 { text-wrap: balance; }
.lead, .sub, .steps p, .guide p { text-wrap: pretty; }

.num { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.num button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); font-size: 18px; line-height: 1; }
.num button:hover { background: var(--bg-2); }
.num input {
  width: 56px; border: 0; background: transparent; text-align: right; padding: 0 2px 0 0;
  font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num input:focus { outline: none; }
.num:focus-within { border-color: var(--ink-3); }
.num .unit { font-size: 14px; color: var(--ink-2); margin-right: 12px; }

.ages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -10px; }
.ages label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; }
.ages select { border: 0; background: var(--bg); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 13px; color: var(--ink); }

.sub-chips { margin-top: 10px; align-items: center; }
.sub-chips button { padding: 6px 12px; font-size: 12.5px; }
.hint-inline { font-size: 12.5px; color: var(--ink-3); margin-right: 4px; }
#holChips button .d { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
#holChips button.on .d { color: #bdb2a7; }

.combo { position: relative; }
.combo input {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 16px;
  padding: 14px 16px; font: inherit; font-size: 15px; color: var(--ink);
}
.combo input:focus { outline: none; border-color: var(--ink-3); }
.combo ul {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(31, 26, 22, .35);
  max-height: 320px; overflow: auto;
}
.combo li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.combo li span { color: var(--ink-3); font-size: 12.5px; }
.combo li[aria-selected="true"], .combo li:hover { background: var(--bg); }
.combo li.none { color: var(--ink-2); cursor: default; }
.picked { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; background: var(--dark); color: #f6f1ea; border-radius: 999px; padding: 7px 8px 7px 14px; }
.picked button { border: 0; background: rgba(255, 255, 255, .15); color: inherit; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; line-height: 1; }
.pop { margin-top: 10px; }
.pop button { padding: 6px 12px; font-size: 12.5px; }

.air-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 40px; height: 24px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); position: relative; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.switch input:checked + span { background: var(--dark); border-color: var(--dark); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink-3); outline-offset: 2px; }
.nav nav a[aria-current="page"] { color: var(--ink); background: var(--card); border: 1px solid var(--line); }

.group-title { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 26px 0 10px; letter-spacing: -0.03em; }
.acts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.act { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.act img { width: 100%; height: 110px; object-fit: cover; display: block; background: var(--bg-2); }
.act div { padding: 10px 12px; font-size: 13px; }
.act b { display: block; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act span { color: var(--ink-2); font-size: 12px; }
.act:hover { border-color: var(--ink-3); }

/* 한글에는 기울임을 쓰지 않는다 */
h1 em, h2 em, h3 em { font-style: normal; font-family: inherit; }

/* 숙소 거점 */
.seg { padding-top: 14px; margin-top: 10px; border-top: 1px solid var(--line); }
.seg:first-of-type { border-top: 0; margin-top: 0; padding-top: 4px; }
.seghead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.seghead b { font-size: 15px; }
.seghead > span:not(.segctl) { font-size: 12.5px; color: var(--ink-2); }
.segctl { margin-left: auto; display: inline-flex; gap: 4px; }
.segctl button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 13px; line-height: 1; }
.segctl button:hover { border-color: var(--ink-3); }
.addseg { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.addseg .chips { align-items: center; }
.addseg .chips > button { padding: 7px 12px; font-size: 13px; }
.segform { display: inline-flex; gap: 4px; }
.segform input { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; width: 150px; background: var(--card); }
.segform button { border: 1px solid var(--dark); background: var(--dark); color: #f6f1ea; border-radius: 999px; padding: 7px 12px; font-size: 13px; }

/* 모션: 결과가 차례로 나타나고, 연휴 띠가 왼쪽부터 칠해진다 */
@media (prefers-reduced-motion: no-preference) {
  .win { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
  .strip i { animation: pop .35s ease-out both; animation-delay: calc(var(--k, 0) * 28ms + 200ms); }
  .plan li { animation: fade .4s ease-out both; animation-delay: var(--d, 0ms); }
  .act { animation: rise .45s ease-out both; animation-delay: var(--d, 0ms); }
  .panel, .card { animation: fade .45s ease-out both; }
  .pick.sel { animation: selpulse .35s ease-out; }
  .total { animation: fade .3s ease-out; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes selpulse { 0% { transform: scale(.995); } 60% { transform: scale(1.005); } 100% { transform: none; } }
[hidden] { display: none !important; }

/* ===== 연휴 달력 ===== */
.hero.small { padding: 40px 0 28px; }
.hero.small h1 { font-size: clamp(34px, 5vw, 52px); }
.cal-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 16px; font-size: 13px; color: var(--ink-2); }
.cal-legend .lg::before { content: ''; display: inline-block; width: 22px; height: 12px; border-radius: 6px; margin-right: 7px; vertical-align: -1px; }
.cal-legend .run::before { background: var(--marker); }
.cal-legend .hol::before { background: transparent; border-bottom: 2px solid var(--accent); border-radius: 0; height: 9px; width: 14px; }
.cal-legend .bridge::before { border: 1.5px dashed var(--accent); background: transparent; }
.cal-leave { margin: 0 auto; }
.cal-leave .unit.pre { margin: 0 6px 0 12px; }
.hero.small .num { display: inline-flex; }
:root { --marker: rgba(250, 214, 92, .62); }

.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 72px; }
.month { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 16px; }
.month h2 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0 0 12px; letter-spacing: -0.03em; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.dw { text-align: center; font-size: 11.5px; color: var(--ink-3); padding-bottom: 6px; }
.dw.sun { color: var(--accent); }
.cd { position: relative; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; font-size: 14px; }
.cd .n { position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.cd .hn { position: relative; z-index: 1; font-size: 9.5px; line-height: 1.1; color: var(--accent); margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.cd.sun .n, .cd.hol .n { color: var(--accent); font-weight: 600; }
.cd.sat .n { color: #5b6f8a; }
.cd.past { opacity: .4; }
.cd.today .n::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
/* 형광펜: 살짝 기울고 거친 끝의 띠 */
.cd.run::before {
  content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 24px;
  background: var(--marker); transform-origin: left center; transform: skewX(-6deg);
}
.cd.run.rs::before { left: 5px; border-radius: 8px 3px 3px 8px; }
.cd.run.re::before { right: 5px; border-radius: 3px 8px 8px 3px; }
.cd.run.rs.re::before { border-radius: 8px; }
.cd.br::before { content: ''; position: absolute; left: 5px; right: 5px; top: 4px; height: 24px; border: 1.5px dashed var(--accent); border-radius: 8px; }
.cd .br-t { color: var(--accent); font-weight: 600; }
.mtips { list-style: none; padding: 12px 0 0; margin: 10px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); display: grid; gap: 8px; }
.mtips b { color: var(--ink); }
.mtips .up { display: block; margin-top: 2px; }
.mtips a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.mtips.none { border-top: 1px solid var(--line); padding-top: 12px; margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .month .cd.run::before { transform: skewX(-6deg) scaleX(0); transition: transform .45s cubic-bezier(.3, .7, .2, 1); transition-delay: calc(var(--i, 0) * 12ms + 80ms); }
  .month.in .cd.run::before { transform: skewX(-6deg) scaleX(1); }
  .month { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
  .month.in { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .months { grid-template-columns: 1fr; }
  .cd { height: 50px; }
}

/* ===== 사용법(모션 장면) ===== */
.guide .hero h1 { text-wrap: balance; }
.scenes { list-style: none; padding: 0; margin: 12px 0 40px; display: grid; gap: 18px; }
.scene { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.scene:nth-child(2) .stage { order: 2; }
.copy .no { font-family: var(--ital); font-weight: 400; font-size: 28px; color: var(--ink-3); }
.copy h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.04em; margin: 6px 0 10px; text-wrap: balance; }
.copy p { color: var(--ink-2); margin: 0; font-size: min(15px, 3.85vw); text-wrap: pretty; }
.copy p .nb { white-space: nowrap; }
.stage { background: var(--bg); border-radius: 22px; min-height: 230px; display: grid; place-items: center; padding: 22px; overflow: hidden; }
.mini { width: 100%; max-width: 340px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 18px 40px -28px rgba(31, 26, 22, .4); position: relative; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.m-row:first-child { border-top: 0; }
.m-lbl { color: var(--ink-3); font-size: 12.5px; }
.m-num b, .m-result b[data-count], .sumline b { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.m-type { font-weight: 600; display: inline-flex; align-items: center; }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; width: 3em; }
.caret { display: inline-block; width: 1.5px; height: 18px; background: var(--ink); margin-left: 2px; }
.chips-row { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.m-chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.m-chip.on { background: var(--dark); color: #f6f1ea; border-color: var(--dark); }

.week .wk { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; text-align: center; font-size: 11px; color: var(--ink-3); }
.week .wk .s, .week .wk .h { color: var(--accent); }
.week .days { margin-top: 6px; }
.week .days i { height: 26px; border-radius: 6px; background: var(--bg-2); }
.week .days .we { background: #d8d1c7; }
.week .days .ho { background: var(--accent); }
.week .days .lv2 { background: var(--bg-2); }
.week .marker { position: absolute; left: 18px; right: 18px; top: 48px; height: 26px; border-radius: 8px; background: var(--marker); transform-origin: left; transform: scaleX(0) skewX(-6deg); mix-blend-mode: multiply; }
.m-result { margin: 16px 0 0; font-size: 14px; text-align: center; color: var(--ink-2); }

.prices .pc { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-size: 13.5px; background: var(--card); }
.prices .pc span { color: var(--ink-2); }
.sumline { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 14px 14px; border-radius: 14px; background: var(--dark); color: #f6f1ea; font-size: 13.5px; }
.sumline > span { color: #cfc5ba; }

.guide-cta { max-width: 420px; margin: 0 auto 64px; }
.guide-cta .cta { text-align: center; text-decoration: none; }
.faq { max-width: 760px; margin: 0 auto 72px; }
.faq h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.04em; margin: 0 0 14px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 4px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font-size: 18px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 10px 0 0; font-size: 14.5px; text-wrap: pretty; }

@media (prefers-reduced-motion: no-preference) {
  .scene .typed { width: 0; }
  .scene.play .typed { animation: type 1.1s steps(3) .3s forwards; }
  .scene.play .caret { animation: blink .8s step-end infinite; }
  .scene.play .m-chip { animation: rise .4s ease-out both; }
  .scene.play .m-chip:nth-child(2) { animation-delay: .15s; }
  .scene.play .m-chip:nth-child(3) { animation-delay: .3s; }
  .scene .days i { transform: scaleY(.2); opacity: 0; }
  .scene.play .days i { animation: grow .35s ease-out forwards; }
  .scene.play .days i:nth-child(n) { animation-delay: calc(var(--n, 0) * 60ms); }
  .scene.play .days .lv { animation: grow .35s ease-out forwards, toleave .4s 1.1s forwards; }
  .scene.play .marker { animation: sweep .8s cubic-bezier(.3, .7, .2, 1) 1.2s forwards; }
  .scene .pc, .scene .sumline { opacity: 0; transform: translateY(10px); }
  .scene.play .pc { animation: rise .45s ease-out forwards; }
  .scene.play .p2 { animation-delay: .35s; }
  .scene.play .p3 { animation-delay: .7s; }
  .scene.play .sumline { animation: rise .45s ease-out 1.15s forwards; }
}
@keyframes type { to { width: 3em; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes grow { to { transform: none; opacity: 1; } }
@keyframes toleave { to { background: var(--dark); } }
@keyframes sweep { to { transform: scaleX(1) skewX(-6deg); } }
@media (max-width: 760px) {
  .scene { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .scene:nth-child(2) .stage { order: 0; }
  .stage { min-height: 200px; padding: 16px; }
}

/* ===== v3 톤: 밝고 설레는 여행 톤 (선셋 오렌지 + 하늘색 + 형광펜) ===== */
:root {
  /* 폰 브라우저(삼성 인터넷·크롬 자동 다크)가 화면을 강제로 까맣게 뒤집지 않도록, '다크 모드를 직접 지원하는 사이트'로 선언하고
     다크 모드에서도 같은 밝은 색을 그대로 쓴다. 입력창 같은 기본 컨트롤은 밝게 고정 */
  color-scheme: only light;
  --brand: #ff6a3d;
  --brand-ink: #fff;
  --brand-soft: #ffeadf;
  --sky: #3d8bfd;
  --sky-soft: #e4efff;
  --accent: #e2483f;      /* 공휴일 */
  --marker: rgba(255, 214, 76, .7);
}
.hero h1 mark { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); color: inherit; padding: 0 .06em; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 mark { background-size: 0% 100%; background-repeat: no-repeat; animation: hl .9s .35s cubic-bezier(.3, .7, .2, 1) forwards; }
}
@keyframes hl { to { background-size: 100% 100%; } }

.chips button.on, .cities button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cta, .btn.pri, .slist .acts a, .segform button { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cta:hover { opacity: 1; filter: brightness(1.04); box-shadow: 0 10px 24px -12px rgba(255, 106, 61, .7); }
.picked { background: var(--brand-soft); color: #9a3412; }
.picked button { background: rgba(154, 52, 18, .12); }
.switch input:checked + span { background: var(--brand); border-color: var(--brand); }
.nav nav a[aria-current="page"] { background: var(--brand-soft); border-color: transparent; color: #9a3412; }
.logo i { color: var(--brand); font-style: normal; }
.eyebrow { background: var(--brand-soft); border-color: transparent; color: #9a3412; }

/* 결과 카드: 가로로 넘겨 보기 */
.wins { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px 4px; scrollbar-width: thin; }
.win { flex: 0 0 236px; scroll-snap-align: start; }
.win.on { border-color: var(--brand); box-shadow: 0 16px 34px -22px rgba(255, 106, 61, .65); background: linear-gradient(180deg, #fff, var(--brand-soft)); }
.win .rank.best { color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; top: 16px; right: 16px; }
.strip i.holiday { background: var(--accent); }
.strip i.weekend { background: #f3c9a8; }
.strip i.leave { background: var(--sky); }
.legend .l1::before { background: var(--accent); }
.legend .l2::before { background: #f3c9a8; }
.legend .l3::before { background: var(--sky); }

/* 합계 패널: 검정 대신 밝은 피치 */
.panel.sum { background: linear-gradient(160deg, #fff3e8 0%, #ffe1cf 100%); border-color: #ffd5bd; color: var(--ink); }
.panel.sum .meta { color: #b07a5e; }
.panel.sum .total { color: #c2410c; }
.panel.sum .total small, .panel.sum .perp { color: #8a6552; }
.panel.sum .breakdown li { border-top-color: rgba(194, 65, 12, .14); }
.panel.sum .breakdown li span { color: #6b4a3a; }
.panel.sum .btn { background: #fff; border-color: #ffd5bd; color: var(--ink); }
.panel.sum .btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.pick.sel { background: var(--brand-soft); }
.pick.sel .radio { border-color: var(--brand); }
.tag.d { background: var(--sky-soft); color: #1f5fbf; }
.diff-up { color: #c2410c; }
.diff-down { color: #15803d; }

/* 사용법 장면 색 */
.week .days .ho { background: var(--accent); }
.scene.play .days .lv { animation: grow .35s ease-out forwards, toleave .4s 1.1s forwards; }
@keyframes toleave { to { background: var(--sky); } }
.sumline { background: linear-gradient(160deg, #ffefe3, #ffd9c4); color: #7c2d12; }
.sumline > span { color: #9a5a3c; }
.m-chip.on { background: var(--brand); border-color: var(--brand); }
.toast { background: var(--ink); }
@media (max-width: 600px) {
  .win { flex-basis: 78%; }
}
.kid-note { flex-basis: 100%; margin: 0 0 4px; font-size: 12.5px; color: var(--ink-2); }
.ages input[type=date] { border: 0; background: var(--bg); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 13px; color: var(--ink); }
.kid-age { font-size: 12px; color: var(--ink-2); padding-right: 6px; }
.kid-age.need { color: var(--accent); }

/* 결과 카드 날짜 칸: 색 + 글자(연차/공휴일 이름/요일) */
.win .strip { gap: 3px; }
.win .strip i { width: 25px; height: 34px; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-style: normal; }
.win .strip i b { font-size: 11.5px; font-weight: 700; }
.win .strip i s { text-decoration: none; font-size: 8.5px; font-weight: 600; letter-spacing: -0.04em; opacity: .92; }
.win .strip i.leave, .win .strip i.holiday { color: #fff; }
.win .strip i.weekend { color: #8a4a22; }
@media (max-width: 600px) { .win .strip i { width: 24px; } }
.stay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tm .cook { color: #1f5fbf; font-weight: 600; }

/* 효율 × 비용 사분면: 담백한 2축 */
.quad { margin: 0; padding: 18px 18px 14px; }
.quad h3 { font-size: 15px; }
.quad .meta { margin-bottom: 8px; font-size: 11.5px; }
.quad-tip { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.quad-tip b { color: var(--ink); }
.quad-svg { width: 100%; height: auto; display: block; font-family: var(--body); }
.q-frame { fill: #fff; stroke: var(--line); stroke-width: 1; }
.q-cross { stroke: var(--ink-3); stroke-width: 1; opacity: .55; }
.qn { font-size: 10.5px; font-weight: 600; fill: var(--ink-3); }
.qn.good { fill: var(--ink-2); }
.q-ax, .q-tick { font-size: 10.5px; fill: var(--ink-3); }
.q-pt { cursor: pointer; outline: none; }
.q-pt > circle:not(.ring) { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.q-pt .ring { fill: transparent; stroke: transparent; }
.q-pt .lab rect { fill: #fff; stroke: var(--line); }
.q-pt .lab text { font-size: 11px; font-weight: 600; fill: var(--ink-2); }
.q-pt:hover .lab text, .q-pt:focus-visible .lab text { fill: var(--ink); }
.q-pt:hover .lab rect, .q-pt:focus-visible .lab rect { stroke: var(--ink-3); }
.q-pt.on > circle:not(.ring) { fill: var(--brand); }
.q-pt.on .ring { stroke: var(--brand); stroke-width: 1.5; fill: transparent; }
.q-pt.on .lab rect { stroke: var(--brand); }
.q-pt.on .lab text { fill: #c2410c; }
.quad-foot { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .q-pt { animation: fade .4s ease-out both; animation-delay: var(--d, 0ms); }
}

/* 연휴 카드 목록 + 사분면 나란히 */
.overview.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px; align-items: start; margin-bottom: 18px; }
.overview.two .wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: auto; max-height: 470px; padding: 2px; margin: 0 0 8px; scroll-snap-type: none; }
.overview.two .win { flex: none; padding: 14px; }
.overview.two .win .big { font-size: 26px; }
.overview.two .win .dates { font-size: 13.5px; }
.overview.two .win .strip i { width: auto; }
@media (max-width: 860px) {
  .overview.two { grid-template-columns: 1fr; }
  .overview.two .wins { display: flex; overflow-x: auto; max-height: none; scroll-snap-type: x mandatory; }
  .overview.two .win { flex: 0 0 78%; }
}
/* 사용법 02 장면: 칸 안에 날짜·종류 */
.week .days { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 0; }
.week .days i { height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-style: normal; line-height: 1.1; border-radius: 8px; }
.week .days i b { font-size: 12px; }
.week .days i s { text-decoration: none; font-size: 9.5px; font-weight: 600; }
.week .days .we { background: #f3c9a8; color: #8a4a22; }
.week .days .ho { background: var(--accent); color: #fff; }
.week .days .lv { background: var(--bg-2); color: var(--ink-3); }
.week .marker { top: 12px; height: 40px; }
.m-ex { margin: 4px 0 0; font-size: 11px; color: var(--ink-3); text-align: right; }
.warn { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: #c2410c; }
sup.plus { font-size: 9.5px; font-weight: 700; color: #c2410c; margin-left: 1px; }
@keyframes toleave { to { background: var(--sky); color: #fff; } }
/* 모바일에서 날짜 칸이 한 줄에 들어가게 */
.win .strip { flex-wrap: nowrap; }
.win .strip i { flex: 1 1 0; min-width: 0; max-width: 26px; }
/* 이웃 달 날짜: 연하게, 형광펜·점선은 유지 */
.cd.adj .n, .cd.adj .hn { opacity: .42; }
.cd.adj.run::before { opacity: .45; }
.cd.adj.br::before { opacity: .75; }
.cd.adj.br .hn { opacity: .8; }
.mtips.none { display: block; }
.panel.sum .miss { color: #c2410c; }
/* 검색 결과 탭 */
.results-hero { padding-bottom: 12px; }
.results-hero .lead { max-width: 640px; }
.cond { max-width: 760px; margin: 0 auto 28px; }
.cond > summary { list-style: none; cursor: pointer; text-align: center; font-weight: 600; font-size: 14px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); width: max-content; margin: 0 auto; }
.cond > summary::-webkit-details-marker { display: none; }
.cond > summary::after { content: ' ▾'; color: var(--ink-3); }
.cond[open] > summary { margin-bottom: 14px; }
.cond[open] > summary::after { content: ' ▴'; }
.lastnote { font-size: 12.5px; color: var(--ink-3); margin: -2px 0 10px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.q-pt.live > circle:not(.ring) { fill: #fff; stroke: var(--ink); stroke-width: 2; } .q-pt.live.on > circle:not(.ring) { fill: #fff; stroke: var(--brand); }
.q-axn { font-size: 11.5px; font-weight: 700; fill: var(--ink-2); }
/* 카드 ↔ 점 강조 */
.win.hl { border-color: var(--brand); }
.q-pt.hl > circle:not(.ring) { fill: var(--brand); }
.q-pt.hl .lab rect { stroke: var(--brand); }
.q-pt.hl .lab text { fill: #c2410c; }
.q-pt.live.hl > circle:not(.ring) { fill: #fff; stroke: var(--brand); }
/* 카드 목록 아래 끝 = 사분면 카드 아래 끝 (높이는 사분면이 정하고 목록은 그 안에서 스크롤) */
@media (min-width: 861px) {
  .overview.two { align-items: stretch; }
  .overview.two .ov-cards { contain: size; display: flex; flex-direction: column; min-height: 0; }
  .overview.two .wins { flex: 1 1 0; min-height: 0; max-height: none; margin-bottom: 8px; }
  .overview.two .legend { margin: 0; flex: none; }
}
@media (min-width: 861px) {
  /* 범례는 위로 올려 카드 목록의 아래 끝이 사분면과 정확히 맞게 */
  .overview.two .legend { order: -1; margin: 0 0 8px; }
  .overview.two .wins { margin-bottom: 0; }
}
.q-pt .lead { stroke: var(--ink-3); stroke-width: 1; opacity: .6; } .q-pt.on .lead, .q-pt.hl .lead { stroke: var(--brand); opacity: 1; }
/* 기차 */
.tr { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; margin: 2px -12px; border-radius: 12px; font-size: 13.5px; }
.tr b { font-variant-numeric: tabular-nums; }
.tr .pr { text-align: right; font-weight: 700; white-space: nowrap; }
.tr .pr small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-3); }
.refnote { font-weight: 500; color: var(--ink-3); margin-left: 4px; }
/* 연차 앞/뒤/앞뒤 붙이기: 카드 안 세 줄 */
.vars { display: grid; gap: 3px; margin: 10px 0 2px; }
.var { display: grid; grid-template-columns: 66px 1fr auto auto; gap: 6px; align-items: center; font-size: 11.5px; padding: 6px 8px; border-radius: 9px; border: 1px solid transparent; background: rgba(255, 255, 255, .7); color: var(--ink-2); cursor: pointer; }
.var:hover { border-color: var(--line); }
.var .vk { font-weight: 700; color: var(--ink); }
.var .vd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.var .vl { font-weight: 700; }
.var .vl.max { color: #c2410c; }
.var .vp { font-weight: 600; color: var(--ink); min-width: 0; }
.var.on { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 1px var(--brand) inset; }
.q-plot { position: relative; }
.q-tag { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: auto; cursor: pointer; font-size: 11px; font-weight: 600; line-height: 1; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
/* 모바일 메뉴: 한 줄 고정, 넘치면 가로 스크롤 */
.nav nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav nav::-webkit-scrollbar { display: none; }
.nav nav a { white-space: nowrap; flex: none; }
@media (max-width: 600px) { .nav { gap: 10px; } .nav nav a { padding: 7px 9px; font-size: 12.5px; } .logo { flex: none; } }
.win .dates .yr { font-size: 11px; font-weight: 700; color: var(--ink-3); margin-right: 2px; }
.why { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); }
.qprog { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; font-size: 12px; color: var(--ink-2); }
.qprog .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.qprog .bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .4s ease; }
.q-ghost line { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.q-ghost circle { fill: #fff; stroke: var(--brand); stroke-width: 1.5; }
.q-ghost text { font-size: 9.5px; font-weight: 700; fill: #c2410c; }
.vopts { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0 2px; }
.vopts button { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.vopts button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.month.now, .month.now .cd.run::before { transition: none !important; }

/* 파스텔 톤: 날짜 칸(결과 카드·사용법) */
:root { --p-hol: #f8cfc9; --p-hol-ink: #a8352b; --p-we: #fde6d4; --p-we-ink: #9a5a2e; --p-lv: #d4e5fb; --p-lv-ink: #2d5e9e; }
.strip i.holiday, .win .strip i.holiday { background: var(--p-hol); color: var(--p-hol-ink); }
.strip i.weekend, .win .strip i.weekend { background: var(--p-we); color: var(--p-we-ink); }
.strip i.leave, .win .strip i.leave { background: var(--p-lv); color: var(--p-lv-ink); }
.week .days .ho { background: var(--p-hol); color: var(--p-hol-ink); }
.week .days .we { background: var(--p-we); color: var(--p-we-ink); }
.week .days .lv { background: var(--bg-2); color: var(--ink-3); }
@keyframes toleave { to { background: var(--p-lv); color: var(--p-lv-ink); } }

/* 4차 검수: 레이아웃 넘침·카드 목록 높이 */
.overview.two > *, .ov-cards, .wins, .win { min-width: 0; }
@media (min-width: 861px) {
  .quad { min-height: 520px; } /* 사분면이 비어 있거나 로딩 중이어도 카드 목록이 눌리지 않게 */
}
@media (max-width: 860px) {
  .overview.two .ov-cards { contain: none; }
  .overview.two .wins { max-height: none; }
  .overview.two .win { flex: 0 0 84%; max-width: 84%; }
  .q-plot { max-width: 520px; margin: 0 auto; }
}
.var .vd { overflow: visible; text-overflow: clip; }
html, body { max-width: 100%; overflow-x: clip; }
.total-fail { font-size: 15px; font-weight: 700; color: #c2410c; line-height: 1.6; margin: 6px 0; } .total-fail .btn { margin-top: 6px; }
/* 정렬 탭 · 카드 가격 */
.sorts { display: flex; gap: 4px; background: var(--bg-2); border-radius: 999px; padding: 3px; margin: 0 0 10px; width: max-content; max-width: 100%; }
.sorts button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.sorts button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(31, 26, 22, .08); }
.wcost { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 0; }
.wcost b { color: var(--ink); font-size: 14px; }
.wcost .pending { color: var(--ink-3); }
.win .rank { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700; color: var(--ink-3); background: none; padding: 2px 0; }
.win .rank.best { color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 8px; }
@media (min-width: 861px) { .overview.two .sorts { order: -2; } }
.var { grid-template-columns: 58px auto 1fr auto; }
.var .vp { white-space: nowrap; text-align: right; }
.var .vl { text-align: right; }
.recwhy { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: #1f5fbf; }
/* 찜 */
.win .fav { position: absolute; top: 12px; right: 14px; font-size: 17px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 2px; }
.win .fav.on { color: var(--brand); }
.win .fav:hover { color: var(--brand); }
.win .rank { right: 40px; }
.qmode { font-family: var(--body); font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.qhint { margin: 0 0 6px; font-size: 12px; color: var(--ink-2); }
.logo { display: inline-flex; align-items: center; gap: 7px; }
.logo .mark { flex: none; }

/* ===== 결과 화면 가시성 정리 ===== */
.results h2 { margin-bottom: 4px; }
.results .sub { margin-bottom: 12px; }
.disc-inline { margin-bottom: 16px; }
.overview.two { gap: 16px; }
@media (min-width: 861px) { .quad { min-height: 600px; } }
.overview.two .wins { gap: 12px; padding: 4px; }
.win { padding: 18px 18px 16px; border-radius: 20px; background: #fff; }
.win .big { font-size: 30px; margin-right: 70px; }
.overview.two .win .big { font-size: 28px; }
.win .big small { font-size: 12.5px; }
.wcost { margin: 6px 0 2px; font-size: 12px; }
.wcost b { font-size: 17px; letter-spacing: -0.02em; }
.win .dates { font-size: 14px; margin: 8px 0 1px; }
.win .hol { font-size: 12px; color: var(--ink-3); }
.vars { margin: 12px 0 4px; gap: 4px; }
.var { padding: 7px 9px; font-size: 12px; background: var(--bg); border: 1px solid transparent; }
.var .vk { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.var.on { background: #fff; }
.win .strip { margin-top: 12px; }
.win.on { box-shadow: 0 0 0 2px var(--brand), 0 16px 34px -22px rgba(255, 106, 61, .55); border-color: transparent; background: #fff; }
.win .rank { top: 16px; }
.win .fav { top: 14px; }
/* 상세 패널: 제목과 구분 강조 */
.panel h3 { font-size: 17px; }
.panel .meta { font-size: 12px; line-height: 1.6; }
.detail { gap: 16px; margin-top: 4px; }
.group-title { margin-top: 32px; }
.fl, .st { padding: 14px 12px; }
.fl .pr, .st .pr { font-size: 16px; }
/* 앞/뒤 줄: 위 = 방식·일수·총액, 아래 = 날짜 */
.var { grid-template-columns: 1fr auto; row-gap: 1px; padding: 7px 10px; }
.var .vk { grid-column: 1; }
.var .vp { grid-column: 2; grid-row: 1; font-weight: 700; }
.var .vd { grid-column: 1 / -1; font-size: 11px; color: var(--ink-3); padding-left: 16px; }
.var .vl { font-weight: 700; margin-left: 2px; }
.win .rank, .win .rank.best { right: 40px; top: 15px; }
.qempty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; min-height: 380px; color: var(--ink-2); font-size: 13.5px; line-height: 1.7; }
.qempty b { color: var(--ink); font-size: 15px; }
/* 정렬 탭은 두 영역 바깥 위쪽: 카드 목록과 사분면 카드의 윗선·아랫선이 맞게 */
.overview.two .wins { padding-top: 0; }
.overview.two .wins > .win:first-child, .overview.two .wins > .win:nth-child(2) { margin-top: 0; }
@media (min-width: 861px) { .overview.two .wins { padding: 0 4px 4px 0; } }
.sortbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.sortbar .sorts { margin: 0; }
.pprog { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.pprog .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: blink 1.2s ease-in-out infinite; }
.wcost .minp { color: var(--ink-3); font-size: 11.5px; }
/* 선택·강조 테두리는 카드 안쪽에 그려 스크롤 목록 가장자리에서 잘리지 않게 */
.win.on { box-shadow: inset 0 0 0 2px var(--brand); border-color: transparent; }
.win.hl { box-shadow: inset 0 0 0 1.5px var(--brand); border-color: transparent; }
.win.on.hl { box-shadow: inset 0 0 0 2px var(--brand); }
.win:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink-3); }
/* 가격 계산 중 화면 */
.loading { max-width: 640px; margin: 0 auto 64px; padding: 40px 32px; text-align: center; }
.loading h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 14px 0 8px; }
.loading .sub { margin: 0 0 22px; }
.qprog.big { max-width: 420px; margin: 0 auto; flex-direction: column; gap: 8px; }
.qprog.big .bar { width: 100%; height: 6px; }
.qprog.big span { font-size: 13px; color: var(--ink-2); }
.lnote { margin: 16px 0 0; font-size: 12px; color: var(--ink-3); }
.lmsg { margin: 18px auto 0; max-width: 34em; min-height: 3em; font-size: 14px; line-height: 1.55; color: var(--ink-2); word-break: keep-all; transition: opacity .35s ease, transform .35s ease; }
.lmsg.out { opacity: 0; transform: translateY(4px); }
@media (prefers-reduced-motion: no-preference) { .lmark { animation: pop 1.2s ease-in-out infinite alternate; } }
/* 사분면 카드: 아래 빈 공간 없애기 */
@media (min-width: 861px) { .quad { min-height: 0; display: flex; flex-direction: column; } .quad .qempty { min-height: 300px; } }
@media (min-width: 861px) { .overview.two { grid-auto-rows: minmax(500px, auto); } .quad .qempty { flex: 1; } }
.qprog.big .bar { flex: none; display: block; }
.qprog.big .eta { font-size: 12px; color: var(--ink-3); min-height: 16px; } .qprog.big .bar i { transition: width .6s ease; }
.sortlabel { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.wcost .hint { font-size: 12px; color: var(--ink-3); }
.var .vfav { color: var(--ink-3); font-size: 14px; cursor: pointer; padding: 2px 4px 2px 0; }
.var .vfav.on { color: var(--brand); }

/* 다크 모드에서도 밝은 화면 그대로(강제 다크 방지용 선언) */
@media (prefers-color-scheme: dark) {
  html, body { background: var(--bg); color: var(--ink); }
}
input, select, textarea, button, details, dialog, svg { color-scheme: light; }
.ages .kid-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px 6px 12px; }
.ages .kid-n { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ages .ymd { display: inline-flex; gap: 4px; }
.ages .ymd select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 14px; color: var(--ink); min-height: 36px; }
.q-tag.on { border-color: var(--brand); color: var(--brand); }
.calsum { margin: 10px auto 0; max-width: 40em; font-size: 15px; color: var(--ink-2); line-height: 1.6; word-break: keep-all; }
.calsum b { color: var(--ink); }
.early-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.early-row .by { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.early-row .by[hidden] { display: none; }
.early-row select { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 14px; color: var(--ink); }
.okret { margin-top: 6px; font-size: 13px; color: var(--sky, #3d8bfd); line-height: 1.5; word-break: keep-all; }
.area-pick { margin-top: 10px; display: grid; gap: 8px; }
.area-pick input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); }
.area-pick .chips button small { color: var(--ink-3); font-size: 11px; margin-left: 2px; }
.area-pick .chips button.on small { color: inherit; opacity: .8; }
.area-load { font-size: 13px; color: var(--ink-3); }
.sorthint { margin: -2px 0 12px; font-size: 13px; line-height: 1.6; color: var(--ink-2); background: var(--brand-soft); border-radius: 12px; padding: 10px 14px; word-break: keep-all; }
.sorthint b { color: var(--ink); }
#areaChips { display: grid; gap: 8px; }
#areaChips .arow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#areaChips .akids { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 8px; border-left: 2px solid var(--line); }
#areaChips button.top { font-weight: 700; }
#areaChips button.kid { font-size: 12px; padding: 5px 10px; }
#areaChips button small { color: var(--ink-3); font-size: 11px; }
details.waiting { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
details.waiting summary { cursor: pointer; font-size: 13px; color: var(--ink-2); list-style: none; }
details.waiting summary::before { content: '+ '; color: var(--brand); font-weight: 700; }
details.waiting[open] summary::before { content: '− '; }
.st.wait { opacity: .85; cursor: default; }
.st.wait .pr small { color: var(--ink-3); }
.stcount { margin: 8px 0 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); word-break: keep-all; }
.stcount small { color: var(--ink-3); }
.nop { color: #8a6d3b; font-weight: 700; }
.st.wait .pr .nop { font-size: 13px; display: block; }
.build { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
/* 상세 화면이 폰 폭을 넘지 않게: 칸이 내용 길이만큼 늘어나지 않도록 */
.detail { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.detail > * { min-width: 0; }
@media (max-width: 860px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.tr { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.tr .tm { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .tr { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 2px; }
  .tr > b { grid-column: 2; }
  .tr .tm { grid-column: 2; grid-row: 2; font-size: 12.5px; }
  .tr .pr { grid-column: 3; grid-row: 1 / span 2; }
  .tr .radio { grid-row: 1 / span 2; }
}
.iseat { width: 100%; margin-top: 6px; }
.iseat .kid-note { margin: 6px 0 0; }
.basis { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); word-break: keep-all; }
details.more { margin-top: 6px; }
details.more > summary { list-style: none; cursor: pointer; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; margin: 6px 0; background: #fff; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { display: none; }
/* 하트는 오른쪽 끝에, 엄지로 누르기 쉽게 크게 */
.var { position: relative; padding-right: 48px; }
.var .vfav { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; padding: 0; border-radius: 50%; }
.var .vfav:active { background: var(--brand-soft); }
.win .fav { font-size: 20px; width: 40px; height: 40px; display: grid; place-items: center; top: 6px; right: 6px; }
.quad .sharefavs { margin: 4px 0 8px; font-size: 13px; padding: 8px 14px; }
.stalebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; background: var(--brand-soft); color: var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; word-break: keep-all; }
.stalebar .btn { white-space: nowrap; flex: none; }
/* 카드 금액이 어떤 옵션 기준인지 */
.wcost .optname { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 8px; margin-right: 4px; vertical-align: 2px; }
/* 10일 넘는 긴 연휴는 날짜 띠를 옆으로 넘겨 보게(글자 겹침 방지) */
.win .strip.long { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.win .strip.long::-webkit-scrollbar { display: none; }
.win .strip.long i { flex: 0 0 34px; max-width: none; min-width: 34px; }
.win .strip i s { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.sorthint p { margin: 0 0 8px; }
.steps3 { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps3 li { counter-increment: s; background: #fff; border-radius: 12px; padding: 10px; display: grid; gap: 2px; font-size: 12.5px; line-height: 1.4; }
.steps3 li::before { content: counter(s); width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; margin-bottom: 4px; }
.steps3 li b { color: var(--ink); font-size: 13.5px; }
.steps3 li span { color: var(--ink-2); }
.var .vp.pend { color: var(--ink-3); font-weight: 500; font-size: 11.5px; animation: pendblink 1.2s ease-in-out infinite; }
@keyframes pendblink { 50% { opacity: .45; } }
.sharenote { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; word-break: keep-all; }
.sorthint2 { margin: 0 0 14px; padding: 2px 0 2px 12px; border-left: 2px solid var(--brand); font-size: 13px; line-height: 1.7; color: var(--ink-2); word-break: keep-all; }
.sorthint2 b { color: var(--ink); font-weight: 700; }
.swipehint { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-2); display: block; word-break: keep-all; }
.swipehint[hidden] { display: none; }
.swipehint b { color: var(--ink); }
.swipehint .arr { display: inline-block; margin-left: 4px; color: var(--brand); font-weight: 700; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.ymd.until select { min-width: 84px; }
/* '언제까지'도 아이 생년월일 입력과 같은 모양 */
.until-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px 6px 12px; width: max-content; max-width: 100%; }
.until-row .kid-n { font-weight: 700; color: var(--ink); white-space: nowrap; }
.until-row .ymd { display: inline-flex; gap: 4px; }
.until-row .ymd select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 14px; color: var(--ink); min-height: 36px; min-width: 0; }

.sub .oneline { white-space: nowrap; font-size: min(14.5px, 3.9vw); }

.fl .name, .st .name, .st .tm { overflow-wrap: anywhere; }

.sorthint2 .one { white-space: nowrap; }
.sorthint2 { font-size: min(14px, 3.6vw); }

/* 담은 일정 중 가격 확인 중: 눈에 띄게 은은히 깜빡임 */
.qhint.qwait { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: #9a3412; font-weight: 600; border-radius: 999px; padding: 7px 14px; animation: qblink 1.2s ease-in-out infinite; }
.qhint.qwait b { color: #c2410c; }
.qhint.qwait .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
@keyframes qblink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* 카드 옵션 ↔ 사분면 점 서로 반짝 */
.var.flash { animation: vflash 1.5s ease-out; }
@keyframes vflash { 0%, 40% { box-shadow: 0 0 0 4px rgba(255, 106, 61, .45); background: var(--brand-soft); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 61, 0); } }
.win.flash { animation: vflash 1.5s ease-out; }
.q-pt.flash .ring { stroke: var(--brand); stroke-width: 3; fill: rgba(255, 106, 61, .18); animation: qflash 1.5s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes qflash { 0% { transform: scale(.6); } 30% { transform: scale(1.5); } 100% { transform: scale(1); } }

.airbnb { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.airbnb .btn { justify-self: start; }
.airbnb small { color: var(--ink-3); font-size: 12px; word-break: keep-all; }

.quad .sharefavs { margin-top: 10px; }
.quad .qwait { margin: 0 0 8px; }

/* 로고: '연차/쓸까' 두 줄 사각 + 왼쪽 아이콘(두 줄 높이에 맞춤) */
.logo { gap: 6px; line-height: 1; }
.logo .mark { width: 34px; height: 34px; }
.logo .lw { display: grid; font-size: 16px; line-height: 17px; letter-spacing: -0.02em; }

/* 왕복 세트(가는 편마다 오는 편이 하나로 정해진 경우): 한 줄에 가는 편·오는 편을 함께 */
.tr.pair { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.tr.pair .legs { display: grid; gap: 8px; min-width: 0; }
.tr.pair .lg { display: grid; gap: 1px; min-width: 0; }
.tr.pair .lg i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.tr.pair .lg b { font-size: 15px; }

/* 사분면 색: 오른쪽 아래(효율 높고 싸다) = 초록 '꿀연휴', 왼쪽 위(효율 낮고 비싸다) = 회색 '비추' */
.qz { stroke: none; }
.qz.gold { fill: #dcf2e3; }
/* 오른쪽 아래(적은 연차로 길게·싸게)만 색, 나머지 칸은 하얗게 */
.qz.calm, .qz.hot, .qz.skip { fill: #fff; }
.qn.good { fill: #1f7a4a; font-size: 12.5px; font-weight: 800; }
.q-axn { fill: var(--ink); }

/* ---------- 날짜 자유 모드 ---------- */
.free-wait { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); color: #9a3412; font-weight: 600; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; animation: qblink 1.2s ease-in-out infinite; word-break: keep-all; }
.free-wait .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.fweeks { padding: 16px 18px; margin: 14px 0 18px; display: grid; gap: 6px; }
.fweeks h3 { font-size: 15px; margin: 0 0 6px; }
.fweeks h3 small { font-weight: 400; color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.fw { display: grid; grid-template-columns: 44px minmax(0, 1fr) 64px; align-items: center; gap: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fwd { color: var(--ink-2); }
.fwb { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.fwb i { display: block; height: 100%; background: #f0a06f; border-radius: 999px; }
.fw.min .fwb i { background: #e8612c; }
.fw.min .fwp { color: #2f6fed; font-weight: 700; }
.fwp { text-align: right; color: var(--ink-2); }
.fsub { font-size: 16px; margin: 6px 0 10px; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 10px; }
.fcard.top { border: 2px solid var(--brand); }
.fhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fhead b { font-size: 16px; }
.fhead span { font-size: 13px; color: var(--ink-2); }
.fhead em { font-style: normal; color: var(--brand); font-weight: 700; }
.frow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: start; font-size: 13px; line-height: 1.5; }
.fk { color: var(--ink-3); font-weight: 700; }
.fv { min-width: 0; overflow-wrap: anywhere; word-break: keep-all; }
.fv small { color: var(--ink-3); }
.fp { font-weight: 700; white-space: nowrap; color: var(--ink); text-decoration: none; }
.ftot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 8px; font-size: 13px; color: var(--ink-2); }
.ftot b { font-size: 18px; color: var(--ink); }

/* 사용법 3: 연차효율×가격 사분면에 점이 찍히는 모션 */
.mini.quad { padding: 12px 12px 8px; }
.qd { width: 100%; height: auto; display: block; }
.qd .qa { font-size: 10px; font-weight: 700; fill: var(--ink-2); }
.qd .qz-l { font-size: 9.5px; font-weight: 800; fill: #2e7d4f; }
.qd .d { fill: #8d857d; stroke: #fff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.qd .d5 { fill: #ff6a3d; }
.qd .qbest { opacity: 0; }
.qd .ring { fill: none; stroke: #ff6a3d; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.qd .tag { fill: #231c17; }
.qd .tagt { font-size: 10px; font-weight: 800; fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .scene.play .qd .d { animation: qpop .45s cubic-bezier(.2,1.6,.4,1) forwards; }
  .scene.play .qd .d1 { animation-delay: .3s; } .scene.play .qd .d2 { animation-delay: .6s; }
  .scene.play .qd .d3 { animation-delay: .9s; } .scene.play .qd .d4 { animation-delay: 1.2s; }
  .scene.play .qd .d5 { animation-delay: 1.6s; }
  .scene.play .qd .qbest { animation: qshow .4s ease-out 2.2s forwards; }
  .scene.play .qd .ring { animation: qring 1.4s ease-out 2.2s 3; }
}
@media (prefers-reduced-motion: reduce) { .qd .d, .qd .qbest { opacity: 1; } }
@keyframes qpop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes qshow { to { opacity: 1; } }
@keyframes qring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
/* 다시 그려진 뒤에도 남는 강조(점 → 카드) */
.var.hold, .win.hold { box-shadow: 0 0 0 3px var(--brand) inset; border-radius: 12px; }

/* 사용법: 한 장씩 넘기기 (엄마약손 사용법과 같은 방식) */
html.snap { scroll-snap-type: y mandatory; }
/* body가 overflow-x: hidden이면 스스로 스크롤 상자가 돼서 장면 맞춤이 안 먹는다 → clip은 스크롤 상자를 만들지 않음 */
html.snap, html.snap body { overflow-x: clip; }
html.snap .guide .hero, html.snap .scene, html.snap .g-end { scroll-snap-align: start; scroll-snap-stop: always; }
html.snap .guide .hero { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; margin: 0; }
html.snap .scenes { margin: 0; gap: 0; }
html.snap .scene { min-height: calc(100svh - 24px); margin: 12px 0; align-content: center; }
html.snap .g-end { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
html.snap .g-end .faq { margin-bottom: 24px; }
@media (max-width: 760px) {
  html.snap .scene { min-height: calc(100svh - 24px); align-content: center; }
}
@media (max-height: 700px) { html.snap .scene .mini { zoom: .85; } }
.g-top { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); box-shadow: 0 8px 20px -10px rgba(31, 26, 22, .5); font-size: 20px; color: var(--ink); z-index: 20; }
/* 4번 장면: 날짜 자유 모드 주별 최저가 */
.freew .fw-h { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fw4 { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin: 6px 0; }
.fw4 i { display: block; height: 12px; border-radius: 6px; background: #e8e1d8; width: 0; }
.fw4 em { font-style: normal; text-align: right; font-weight: 700; color: var(--ink); }
.fw4.hol i { background: repeating-linear-gradient(45deg, #eee7de 0 6px, #f6f1ea 6px 12px); }
.fw4.hol em { color: var(--ink-3); font-weight: 600; font-size: 11.5px; }
.fw4.min i { background: var(--brand); }
.fw4.min em { color: var(--brand); }
.scene.play .fw4 i { animation: fwgrow .6s ease-out forwards; }
.scene.play .fw4:nth-of-type(2) i { animation-delay: .1s; } .scene.play .fw4:nth-of-type(3) i { animation-delay: .2s; }
.scene.play .fw4:nth-of-type(4) i { animation-delay: .3s; } .scene.play .fw4:nth-of-type(5) i { animation-delay: .4s; } .scene.play .fw4:nth-of-type(6) i { animation-delay: .5s; }
@keyframes fwgrow { to { width: var(--w); } }
@media (prefers-reduced-motion: reduce) { .fw4 i { width: var(--w); } }
.note4 { margin-top: 10px !important; font-size: 12.5px !important; color: var(--ink-3) !important; }
/* 검색 결과 머리말: 조건 요약 (눌리는 버튼처럼 보이지 않게, 한 상자 안에 '라벨 값'으로) */
.cchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 6px auto 0; padding: 10px 14px; max-width: 520px; background: var(--bg-2); border-radius: 12px; }
.cchip { display: inline-flex; align-items: baseline; gap: 5px; font-size: 13.5px; line-height: 1.5; color: var(--ink); white-space: nowrap; }
.cchip small { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.cchip.dest b { font-weight: 700; color: #9a3412; }

/* 좁은 폰(360px)에서 장면 카드가 오른쪽으로 넘치지 않게 */
@media (max-width: 760px) {
  .scene { grid-template-columns: minmax(0, 1fr); }
  .scene > *, .scene .mini { min-width: 0; max-width: 100%; }
}
/* 날짜 자유 모드: 날짜 후보 카드(눌러서 아래 상세 열기) */
.fcards { display: grid; gap: 10px; }
.fcard.pickf { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.fcard.pickf .fhead, .fcard.pickf .ftot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fcard.pickf.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.fsub small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
#pSum .sharefavs { margin-top: 12px; width: 100%; }
/* 위 메뉴(탭)는 화면을 내려도 늘 보이게 */
.nav { position: sticky; top: 0; z-index: 40; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
html.snap { scroll-padding-top: 72px; }
html.snap .guide .hero { min-height: calc(100svh - 72px); }
html.snap .scene { min-height: calc(100svh - 72px - 24px); }
html.snap .g-end { min-height: calc(100svh - 72px); }
@media (max-width: 760px) { html.snap .scene { min-height: calc(100svh - 72px - 24px); } }
#results, #detail { scroll-margin-top: 80px; }
/* 날짜 자유: 주별 막대가 버튼(누르면 그 날짜 상세) */
button.fw { width: 100%; border: 0; background: none; padding: 6px 4px; border-radius: 10px; font: inherit; color: inherit; cursor: pointer; text-align: left; }
button.fw:hover { background: var(--bg-2); }
button.fw.on { background: var(--brand-soft); }
button.fw.on .fwd { color: #9a3412; font-weight: 700; }
/* 입력 폼: 묶음 제목(1 언제·어디로 / 2 함께 가는 사람 / 3 항공·숙소 조건) */
.fgroup { display: flex; align-items: center; gap: 8px; margin: 6px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
#form > .fgroup:first-child { border-top: 0; padding-top: 0; }
.fgroup b { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; flex: none; }
/* 폼이 길어서, 휴대폰에서는 찾기 버튼이 늘 아래에 떠 있게 */
@media (max-width: 760px) {
  #form .cta { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 6; box-shadow: 0 10px 24px -8px rgba(255, 106, 61, .55); }
}
/* 사용법 설명: 좁은 폰에서 한 묶음(nb)이 화면보다 길면 줄바꿈 허용(글씨가 카드 밖으로 넘치지 않게) */
@media (max-width: 760px) { .scene .copy .nb { white-space: normal; } }
.linkbtn.more { display: block; margin: 6px auto 14px; }
/* 좁은 폰: 메뉴 4개가 한 줄에 다 보이게 */
@media (max-width: 420px) {
  .nav nav { gap: 0; }
  .nav nav a { padding: 7px 7px; font-size: 12.5px; letter-spacing: -0.02em; }
}
/* 조건 입력: 인기 도시·출발 공항 칩을 작게, 한 줄(옆으로 넘겨 보기)로 — 선택지는 그대로 */
#popular, #origins { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
#popular::-webkit-scrollbar, #origins::-webkit-scrollbar { display: none; }
#popular button, #origins button { flex: none; padding: 5px 11px; font-size: 12.5px; min-height: 30px; }
#popular .hint-inline { flex: none; align-self: center; }
/* 묶음 번호는 선택 버튼(주황)과 헷갈리지 않게 회색 테두리로 */
.fgroup b { background: transparent; border: 1.5px solid var(--ink-3); color: var(--ink-2); font-weight: 700; }
.fgroup { color: var(--ink-2); }
/* 선택한 칩은 파스텔 주황, 묶음 번호는 진한 주황(서로 헷갈리지 않게) */
.chips button.on, .cities button.on { background: #ffe6da; border-color: #ffb898; color: #c2410c; font-weight: 700; }
.fgroup b { background: var(--brand); border: 0; color: #fff; }
.fgroup { color: var(--ink); }
/* 가는 편·오는 편 따로 고르기: 고른 두 편 합계를 패널 아래에 늘 보이게 */
.split-total { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--dark); color: #f6f1ea; font-size: 12.5px; box-shadow: 0 10px 24px -10px rgba(31, 26, 22, .5); }
.split-total b { font-size: 16px; color: #fff; white-space: nowrap; }
/* 항공·숙소 상단 설명: 한 줄만 보이고 자세한 기준은 접어 둔다 */
details.info { margin: 2px 0 10px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
details.info summary { cursor: pointer; display: inline-block; font-weight: 600; color: var(--ink-2); list-style: none; }
details.info summary::-webkit-details-marker { display: none; }
details.info summary::after { content: ' ▾'; font-size: 10px; }
details.info[open] summary::after { content: ' ▴'; }
.room-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; } .room-note b { color: var(--ink-2); }
.date-in { height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 15px; color: var(--ink); min-width: 180px; }
.detail-for { margin: 22px 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); color: #9a3412; font-size: 13.5px; } .detail-for b { font-weight: 700; }

.selnote { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card-2, #f4efe8); font-size: 12.5px; line-height: 1.5; }
.selnote p { margin: 0 0 4px; font-weight: 700; }
.selnote ul { margin: 0; padding: 0; list-style: none; }
.selnote li + li { margin-top: 4px; }
.selnote li span { display: block; color: var(--ink-3); }

/* 항공+숙소 막대: 한 덩어리(둥근 끝)로, 안에서 항공(진하게)·숙소(연하게)로 나눈다 */
.fwt { display: flex; height: 100%; border-radius: 999px; overflow: hidden; }
.fwt i { border-radius: 0 !important; height: 100%; background: #f0a06f !important; }
.fwt i.fwst { background: #f8d3b6 !important; }
.fw.min .fwt i { background: #e8612c !important; }
.fw.min .fwt i.fwst { background: #f5aa7e !important; }
.fw.min .fwp { color: #c2410c; }
.fws { grid-column: 2 / -1; margin-top: -4px; font-size: 11px; color: var(--ink-3); }

.qbasis { margin: -4px 0 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

.qlist { margin: 10px 0 12px; }
.qlist .qbasis { margin: 0 0 6px; }
.qlist ul { list-style: none; margin: 0; padding: 0; }
.qlist li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.qlist li b { color: #c2410c; font-size: 12.5px; }
.qlist .qd { color: var(--ink-2); }
.qlist .qd small { display: block; font-size: 11px; color: var(--ink-3); }
.qlist li em { font-style: normal; font-weight: 700; white-space: nowrap; }

.shared-list { padding: 6px 16px; margin: 12px 0 16px; }
.shared-list li:first-child { border-top: 0; }
.shared-list li.tot { font-size: 15px; }
.shared-list li.tot em { color: #c2410c; font-size: 17px; }

.fwd small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }

.st.suite .tm { display: block; font-size: 12px; color: var(--ink-3); }

/* 숙소 줄: 오른쪽 가격 칸이 길어 이름이 한 글자씩 깨지지 않게 폭을 제한하고 줄바꿈 */
.st .pr { max-width: 112px; text-align: right; }
.st .pr small { white-space: normal; }
.st .name { overflow-wrap: anywhere; }
.btnrow .btn + .btn { margin-left: 8px; }

@media (max-width: 480px) {
  .st { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
  .st img { width: 56px; height: 48px; }
  .st .pr { max-width: 96px; }
}
