:root {
  color-scheme: light;
  --bg: #f4f1ec;
  --card: #ffffff;
  --ink: #17181c;
  --ink-2: #4a4d55;
  --muted: #8a8d95;
  --line: #e6e1d8;
  --line-2: #f0ece5;
  --tint: #faf8f4;
  --brand: #4b3fd6;
  --brand-2: #6d5bff;
  --brand-soft: #efedff;
  --pass: #1b1d26;
  --ok: #0f7a43;
  --ok-soft: #e4f4ea;
  --bad: #d23b3b;
  --bad-soft: #fdeceb;
  --sat: #2a6fdb;
  --sun: #e0453a;
  --c-stay: #2a78d6;
  --c-food: #eb6834;
  --c-move: #1baf7a;
  --c-tour: #eda100;
  --c-shop: #e87ba4;
  --c-etc: #9a9aa2;
  --shadow: 0 1px 2px rgba(23, 24, 28, .04), 0 10px 30px -12px rgba(23, 24, 28, .12);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(640px 320px at 88% 0%, rgba(255, 170, 130, .32), transparent 70%),
    radial-gradient(560px 300px at 6% 8%, rgba(120, 130, 255, .18), transparent 70%);
  pointer-events: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input::placeholder { color: #b3b0a9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* nav */
.topnav { position: relative; z-index: 2; }
.topnav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-size: 15.5px; }
.brand-mark { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--brand-2), #ff8a5c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.topnav-link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.topnav-link:hover { background: rgba(23, 24, 28, .05); }

/* hero */
.hero { padding-top: 28px; padding-bottom: 26px; }
.hero h1 { margin: 0; font-size: clamp(34px, 5.2vw, 52px); line-height: 1.08; font-weight: 850; letter-spacing: -.035em; word-break: keep-all; }
.hero-sub { margin: 14px 0 0; max-width: 600px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.ad-disclosure { margin: 12px 0 0; max-width: 640px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.55; }
.ad-disclosure em { display: inline-block; margin-right: 7px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 750; vertical-align: 1px; }

/* banner (shared view) */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; justify-content: space-between; margin-bottom: 16px; padding: 14px 18px; border-radius: 16px; background: var(--brand-soft); border: 1px solid #dcd7ff; }
.banner p { margin: 0; font-size: 14.5px; color: #2d2580; }
.banner p b { font-family: var(--mono); letter-spacing: .08em; }
.banner .banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.banner.is-error { background: var(--bad-soft); border-color: #f6cfcc; }
.banner.is-editing { background: var(--ok-soft); border-color: #bfe3cd; }
.banner.is-editing p { color: #0b5a32; }
.banner.is-error p { color: #8a1f1f; }

/* boarding pass */
.pass { display: grid; grid-template-columns: minmax(0, 1fr) 320px; color: #fff; filter: drop-shadow(0 18px 30px rgba(23, 24, 28, .18)); }
.pass-main, .pass-stub { position: relative; }
.pass-main {
  padding: 26px 30px 28px;
  border-radius: 22px 0 0 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, transparent 13px, var(--pass) 13.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent 13px, var(--pass) 13.5px) bottom / 100% 51% no-repeat;
}
.pass-main::before {
  content: "";
  position: absolute;
  left: -120px; top: -160px;
  width: 420px; height: 360px;
  background: radial-gradient(closest-side, rgba(109, 91, 255, .45), transparent);
  pointer-events: none;
}
.pass-main > *:not(.sr) { position: relative; }
.pass-stub {
  padding: 26px 28px 24px;
  border-radius: 0 22px 22px 0;
  background:
    radial-gradient(circle at 0 0, transparent 13px, var(--pass) 13.5px) top / 100% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent 13px, var(--pass) 13.5px) bottom / 100% 51% no-repeat;
}
.pass-stub::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  border-left: 2px dashed rgba(255, 255, 255, .16);
}
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pass-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; color: rgba(255, 255, 255, .5); }
.pass-span { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; white-space: nowrap; }
.pass-title {
  width: 100%;
  margin: 0 0 20px;
  padding: 4px 0 8px;
  border: 0;
  border-bottom: 1.5px dashed transparent;
  background: transparent;
  color: #fff;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -.025em;
  outline: none;
}
.pass-title::placeholder { color: rgba(255, 255, 255, .32); }
.pass-title:hover { border-bottom-color: rgba(255, 255, 255, .18); }
.pass-title:focus { border-bottom-color: rgba(255, 255, 255, .5); }
.pass-fields { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 132px 120px; align-items: end; gap: 12px; }
.pf label, .pass-stub > label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.pf input, .pf select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-weight: 650;
  font-size: 15px;
  outline: none;
  color-scheme: dark;
  transition: border-color .15s, background .15s;
}
.pf input:focus, .pf select:focus { border-color: rgba(167, 155, 255, .9); background: rgba(255, 255, 255, .1); }
.pf select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='2.5' d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.pf select option { color: var(--ink); background: #fff; }
.pf-arrow { height: 46px; display: grid; place-items: center; color: rgba(255, 255, 255, .4); }
.stepper { display: grid; grid-template-columns: 36px 1fr 36px; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); overflow: hidden; }
.stepper button { border: 0; background: transparent; color: rgba(255, 255, 255, .8); font-size: 18px; font-weight: 600; }
.stepper button:hover { background: rgba(255, 255, 255, .08); }
.stepper input { height: 100%; border: 0; border-radius: 0; background: transparent; text-align: center; padding: 0; }
.stepper input:focus { background: rgba(255, 255, 255, .08); }
.budget-in { display: flex; align-items: baseline; gap: 6px; border-bottom: 1.5px solid rgba(255, 255, 255, .2); padding-bottom: 6px; transition: border-color .15s; }
.budget-in:focus-within { border-bottom-color: rgba(167, 155, 255, .95); }
.budget-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 34px; font-weight: 850; letter-spacing: -.03em; outline: none; font-variant-numeric: tabular-nums; padding: 0; }
.budget-in input::placeholder { color: rgba(255, 255, 255, .28); }
.budget-in .unit { font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.budget-hint { margin: 8px 0 18px; font-size: 13px; color: rgba(255, 255, 255, .55); min-height: 19px; }
.pass-members { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; }
.pm-label { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .55); margin-right: 2px; }
.mem-inputs { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.mem-in { width: 92px; min-width: 72px; max-width: 150px; field-sizing: content; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font-size: 14px; font-weight: 650; outline: none; transition: border-color .15s, background .15s; }
.mem-in::placeholder { color: rgba(255, 255, 255, .38); }
.mem-in:focus { border-color: rgba(167, 155, 255, .9); background: rgba(255, 255, 255, .1); }
.mem-in[readonly] { cursor: default; }
.stub-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stub-stats div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.stub-stats span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .5); margin-bottom: 2px; }
.stub-stats b { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.aff-esim { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 14px 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.aff-esim[hidden] { display: none; }
.ae-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.ae-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ae-txt b { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.ae-txt span { color: var(--ink-2); font-size: 13px; }
.ae-go { flex: none; display: flex; align-items: center; gap: 8px; }
.ad-badge { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-style: normal; font-size: 11px; font-weight: 650; }
.ae-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ae-btn:hover { background: var(--brand); }
@media (max-width: 640px) { .aff-esim { flex-wrap: wrap; } .ae-txt { flex-basis: calc(100% - 54px); } .ae-go { width: 100%; justify-content: flex-end; } }
.summary { margin-top: 18px; padding: 22px 24px 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 2px 20px; border-left: 1px solid var(--line-2); min-width: 0; }
.kpi:first-child { padding-left: 2px; border-left: 0; }
.kpi-l { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-v { font-size: 25px; font-weight: 850; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-s { font-size: 12.5px; color: var(--muted); min-height: 19px; }
.kpi-s.is-ok { color: var(--ok); font-weight: 650; }
.kpi-s.is-bad { color: var(--bad); font-weight: 650; }
.members-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.members-head h3 { margin: 0; font-size: 14.5px; font-weight: 800; }
.members-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; }
.members-legend { display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); }
.btn-xs { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; }
.btn-xs.is-on { background: var(--brand-soft); border-color: #d4cfff; color: #2d2580; }
.members-legend .dot + .dot, .members-legend .dot { margin-left: 10px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; margin-top: 12px; }
.mem { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); min-width: 0; }
.mem.is-none { border-style: dashed; background: #fff; }
.mem-top { display: flex; align-items: center; gap: 8px; }
.ava { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; }
.mem.is-none .ava { background: var(--muted); }
.mem-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem-tag { flex-shrink: 0; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: #2d2580; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.mem-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.mem-line b { font-size: 14px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mem-line.is-main b { font-size: 16px; font-weight: 850; }
.mem-extra { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.extra-in { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; outline: none; }
.extra-in:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.mem-bar { display: flex; gap: 2px; height: 6px; margin: 10px 0 8px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.mem-bar i { display: block; height: 100%; border-radius: 3px; }
.m-done { background: var(--ok); }
.m-plan { background: #b4abff; }
.mem-rows { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.mem-settle { margin-top: 8px; font-size: 13px; font-weight: 750; color: var(--ink-2); }
.mem-settle.is-get { color: var(--ok); }
.mem-settle.is-give { color: #b4540a; }
.mem-line.mem-settle { margin-top: 6px; }
.mem-settle.is-get b { color: var(--ok); }
.mem-settle.is-give b { color: #b4540a; }
.members-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.meter { margin-top: 20px; height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.meter-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .35s cubic-bezier(.2, .8, .2, 1), background .2s; }
.meter-fill.is-over { background: var(--bad); }
.meter-cap { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }
.catbar { display: flex; gap: 2px; height: 12px; margin-top: 18px; }
.catbar:empty { background: var(--line-2); border-radius: 4px; }
.catbar i { display: block; height: 100%; border-radius: 4px; min-width: 4px; background: var(--c); transition: flex-grow .35s; }
.catlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.catlegend li { display: inline-flex; align-items: center; gap: 7px; }
.catlegend li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.catlegend b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.catlegend em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

/* share */
.share { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.share-make { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; min-width: 0; flex-wrap: wrap; }
.share-copy { min-width: 0; flex: 1 1 260px; }
.share-copy h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.share-copy p { margin: 0; font-size: 14px; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-open { padding: 18px 22px; border-left: 1px solid var(--line-2); }
.share-open label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.open-row { display: flex; gap: 8px; }
.open-row input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); font-family: var(--mono); font-size: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; outline: none; }
.open-row input:focus { border-color: var(--brand); background: #fff; }
.code-tiles { display: inline-flex; gap: 5px; margin-right: 6px; }
.code-tiles span { width: 34px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); font-family: var(--mono); font-size: 21px; font-weight: 800; color: var(--ink); }
.share-state { font-size: 13px; color: var(--ink-2); font-weight: 650; }
.share-copy p.share-hint { margin-top: 2px; font-size: 12.5px; }
.share-state.is-dirty { color: #a35a00; font-weight: 650; }

/* buttons */
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s, opacity .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2b2d35; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #3f34c2; }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: #cfc8bb; background: var(--tint); }
.btn-ghost { background: transparent; color: var(--ink-2); height: 38px; padding: 0 12px; font-weight: 650; font-size: 14px; }
.btn-ghost:hover { background: rgba(23, 24, 28, .06); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }

/* ads */
.ad { margin: 28px 0; min-height: 0; text-align: center; }
.ad:has(ins[data-ad-status^="unfill"]) { display: none; }
.side-ad { display: none; }
@media (min-width: 1800px) {
  .side-ad { display: block; position: fixed; top: 110px; width: 160px; height: 600px; z-index: 1; }
  .side-ad-l { left: max(16px, calc(50% - 590px - 200px)); }
  .side-ad-r { right: max(16px, calc(50% - 590px - 200px)); }
}

/* board */
.board { margin-top: 10px; }
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: #e9e4da; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 700; }
.tab.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(23, 24, 28, .08), 0 2px 8px -2px rgba(23, 24, 28, .1); }
.board-tools { display: flex; flex-wrap: wrap; gap: 4px; }

/* day blocks */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.day-head { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 16px 14px; }
.cal { width: 60px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); text-align: center; background: #fff; }
.cal-m { display: block; padding: 3px 0; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.cal-d { display: block; padding-top: 2px; font-size: 25px; line-height: 1.15; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cal-w { display: block; padding-bottom: 5px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.day.is-sat .cal-d, .day.is-sat .cal-w { color: var(--sat); }
.day.is-sun .cal-d, .day.is-sun .cal-w { color: var(--sun); }
.day-meta { min-width: 0; }
.day-no { font-size: 11.5px; font-weight: 850; letter-spacing: .12em; color: var(--brand); }
.day-note { width: 100%; margin-top: 2px; padding: 3px 0; border: 0; border-bottom: 1px dashed transparent; background: transparent; font-size: 14.5px; font-weight: 650; color: var(--ink); outline: none; text-overflow: ellipsis; }
.day-note:hover { border-bottom-color: var(--line); }
.day-note:focus { border-bottom-color: var(--brand); }
.day-sum { text-align: right; }
.day-sum b { display: block; font-size: 17px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-sum small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.day-sum small.is-over { color: var(--bad); font-weight: 700; }
.day-bar { height: 4px; background: var(--line-2); }
.day-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .3s; }
.day-bar i.is-over { background: var(--bad); }
.rows:empty { padding: 22px 16px 6px; }
.rows:empty::before { content: "아직 비어 있어요. 아래에서 항목을 추가하세요."; display: block; text-align: center; font-size: 13.5px; color: var(--muted); }
body.is-view .rows:empty::before { content: "적힌 항목이 없어요."; }
.row {
  display: grid;
  grid-template-columns: 15px max-content minmax(0, 1fr) 96px;
  grid-template-areas: "grip cat what amt" "grip . line line";
  column-gap: 6px;
  row-gap: 0;
  align-items: start;
  padding: 8px 10px 6px 2px;
  border-top: 1px solid var(--line-2);
  transition: background .15s;
}
.row:focus-within { background: #fbfaff; }
.row .cat { grid-area: cat; }
.row .what { grid-area: what; }
.row .amt-wrap { grid-area: amt; }
.row .line2 { grid-area: line; display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 30px; }
.row .line2 .where { flex: 1 1 auto; min-width: 40px; }
.cell { width: 100%; min-width: 0; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; outline: none; font-size: 14.5px; transition: box-shadow .12s, background .12s; }
.cell:hover { background: var(--tint); }
.cell:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand); }
.cell[readonly]:hover, .cell[readonly]:focus { background: transparent; box-shadow: none; }
.what { font-weight: 650; }
textarea.what { display: block; height: auto; min-height: 34px; padding: 7px 8px; line-height: 20px; resize: none; overflow: hidden; field-sizing: content; word-break: keep-all; overflow-wrap: anywhere; }
.row .cat { margin-top: 3px; }
.amt { text-align: right; font-weight: 750; font-variant-numeric: tabular-nums; }
.amt.is-long { font-size: 12.5px; letter-spacing: -.02em; }
.amt-wrap { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.amt-row { display: flex; align-items: center; min-width: 0; }
.amt-row .amt { flex: 1 1 auto; min-width: 0; }
.amt-unit { flex-shrink: 0; margin-left: -4px; padding-right: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
body.is-fx .row { grid-template-columns: 15px max-content minmax(0, 1fr) 126px; }
body.is-view .row { grid-template-columns: 0 max-content minmax(0, 1fr) 96px; }
body.is-view.is-fx .row { grid-template-columns: 0 max-content minmax(0, 1fr) 126px; }
.grip { grid-area: grip; align-self: stretch; width: 15px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; background: transparent; color: #c7c2b8; cursor: grab; touch-action: none; }
.grip svg { width: 8px; height: 14px; }
.grip:hover { color: var(--ink-2); background: var(--tint); }
.grip:focus-visible { outline: 2px solid var(--brand); outline-offset: -1px; color: var(--brand); }
.row.is-dragging { position: fixed; z-index: 60; margin: 0; pointer-events: none; background: #fff; border-radius: 12px; box-shadow: 0 14px 32px -10px rgba(23, 24, 28, .35), 0 0 0 1.5px var(--brand-soft); }
.row-ph { margin: 4px 8px; border: 2px dashed #c9c3ff; border-radius: 10px; background: var(--brand-soft); }
body.is-sorting, body.is-sorting * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
body.is-fx .sheet .amt-wrap { width: 140px; }
.krw { display: block; padding: 0 8px; margin-top: -2px; text-align: right; font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.krw:empty, .krw-s:empty, .kpi-krw:empty { display: none; }
.krw-s { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-krw { font-size: 12.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: -2px; }
.fx-note { margin: 14px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--tint); font-size: 12.5px; color: var(--ink-2); }
.mem-line b small { display: block; text-align: right; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ex-sum b small, .ex-per { font-variant-numeric: tabular-nums; }
.ex-sum b small { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.where { height: 30px; font-size: 13px; color: var(--ink-2); padding-left: 25px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath fill='%23a5a29b' d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") 7px center no-repeat; }
.where:hover { background-color: var(--tint); }
.where:focus { background-color: #fff; }
.where.is-empty { visibility: hidden; }
.cat {
  --c: var(--c-etc);
  width: auto;
  height: 28px;
  padding: 0 6px 0 20px;
  border: 0;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink);
  background: radial-gradient(circle at 10px 50%, var(--c) 4px, transparent 4.5px), color-mix(in srgb, var(--c) 13%, #fff);
  outline: none;
  cursor: pointer;
}
.cat:focus { box-shadow: inset 0 0 0 1.5px var(--brand); }
.cat:disabled { opacity: 1; cursor: default; }
[data-cat="stay"] { --c: var(--c-stay); }
[data-cat="food"] { --c: var(--c-food); }
[data-cat="move"] { --c: var(--c-move); }
[data-cat="tour"] { --c: var(--c-tour); }
[data-cat="shop"] { --c: var(--c-shop); }
[data-cat="etc"] { --c: var(--c-etc); }
.paid { white-space: nowrap; flex-shrink: 0; position: relative; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); cursor: pointer; user-select: none; transition: all .15s; }
.paid input { position: absolute; opacity: 0; pointer-events: none; }
.paid svg { width: 12px; height: 12px; display: none; }
.paid .p-yes { display: none; }
.paid:has(input:checked) svg { display: block; }
.paid:has(input:checked) .p-yes { display: inline; }
.paid:has(input:checked) .p-no { display: none; }
.payer { flex-shrink: 0; height: 26px; max-width: 96px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); appearance: none; -webkit-appearance: none; cursor: pointer; outline: none; text-overflow: ellipsis; }
.payer.is-set { color: var(--ink); border-color: #d6cfc2; background: var(--tint); }
.payer:focus { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.payer:disabled { opacity: 1; cursor: default; }
.sheet td .payer { margin-top: 4px; }
.paid:has(input:checked) { background: var(--ok-soft); border-color: #bfe3cd; color: var(--ok); }
.paid:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--brand); }
body.is-view .paid { cursor: default; }
body.is-view .stepper { grid-template-columns: 0 1fr 0; }
body.is-view .stepper button { visibility: hidden; }
body.is-view .pf select { background-image: none; }
.del { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #b3b0a9; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.row:hover .del, .row:focus-within .del, .del:focus-visible { opacity: 1; }
.del:hover { background: var(--bad-soft); color: var(--bad); }
@media (hover: none) { .del { opacity: 1; } }
.add { display: flex; align-items: center; gap: 8px; width: 100%; padding: 13px 18px; border: 0; border-top: 1px solid var(--line-2); background: transparent; color: var(--brand); font-size: 14px; font-weight: 750; text-align: left; transition: background .15s; }
.add:hover { background: var(--brand-soft); }
.day.is-out { border-style: dashed; background: var(--tint); }
.day.is-out .cal-m { background: var(--muted); }
body.is-view .add, body.is-view .del, body.is-view .edit-only, body.is-link .main-only { display: none !important; }

/* sheet */
.sheet-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow-x: auto; }
.sheet { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 14px; }
.sheet th { position: sticky; top: 0; z-index: 1; background: var(--tint); text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet th.num, .sheet td.num { text-align: right; }
.sheet td { padding: 3px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.sheet td.num { padding-right: 14px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; white-space: nowrap; }
.sheet .cell { height: 34px; }
.sheet .where { padding-left: 8px; background-image: none; font-size: 14px; }
.sheet .amt { width: 104px; }
.sheet td { vertical-align: top; }
.sheet td.num, .sheet tr.grp td, .sheet tfoot td { vertical-align: middle; }
.sheet td .dsel, .sheet td .cat, .sheet td .paid, .sheet td .del { margin-top: 3px; }
.sheet .dsel { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; font-size: 13px; font-weight: 650; outline: none; }
.sheet .dsel:focus { border-color: var(--brand); }
.sheet .dsel:disabled { border-color: transparent; background: transparent; opacity: 1; appearance: none; }
.sheet tr.grp td { background: #fcfbf8; padding: 10px 12px; font-size: 13px; font-weight: 750; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.sheet tr.grp td b { color: var(--brand); letter-spacing: .08em; margin-right: 8px; font-size: 12px; }
.sheet tr.grp .grp-sum { float: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.sheet tfoot td { padding: 14px 12px; font-weight: 800; font-size: 15px; border-bottom: 0; background: var(--tint); }
.sheet tfoot td.num { color: var(--ink); font-size: 15px; }
.sheet td .krw { padding-right: 8px; }
.sheet .del { opacity: 1; }
.sheet tr.addrow td { padding: 0; border-bottom: 1px solid var(--line); }
.sheet .add { border-top: 0; padding: 9px 14px; font-size: 13px; }
.sheet-empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* guide / faq */
.guide, .faq { margin-top: 56px; }
.guide h2, .faq h2 { margin: 0 0 18px; font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .1em; }
.steps b { display: block; font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.steps span { font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 36px 17px 2px; font-weight: 700; font-size: 15.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; padding-right: 30px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }

.foot { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot p { margin: 2px 0; }

.toast { position: fixed; left: 50%; top: 16px; z-index: 50; transform: translate(-50%, -16px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-act { margin-left: 14px; padding: 0; border: 0; background: none; color: #b9b0ff; font-weight: 800; font-size: 14px; }
.toast-act:hover { color: #fff; }

/* responsive */
@media (max-width: 1000px) {
  .pass { grid-template-columns: minmax(0, 1fr); }
  .pass-main { border-radius: 22px 22px 0 0; background: radial-gradient(circle at 0 100%, transparent 13px, var(--pass) 13.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent 13px, var(--pass) 13.5px) right / 51% 100% no-repeat; }
  .pass-stub { border-radius: 0 0 22px 22px; background: radial-gradient(circle at 0 0, transparent 13px, var(--pass) 13.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 13px, var(--pass) 13.5px) right / 51% 100% no-repeat; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: end; }
  .pass-stub::before { left: 18px; right: 18px; top: 0; bottom: auto; border-left: 0; border-top: 2px dashed rgba(255, 255, 255, .16); }
  .pass-stub > label { grid-column: 1; }
  .budget-in, .budget-hint { grid-column: 1; }
  .stub-stats { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .share { grid-template-columns: minmax(0, 1fr); }
  .share-open { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .kpi:nth-child(3) { padding-left: 2px; border-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 14px; padding-bottom: 20px; }
  .hero-sub { font-size: 15.5px; }
  .pass-main { padding: 22px 20px 24px; }
  .pass-stub { padding: 22px 20px 20px; grid-template-columns: minmax(0, 1fr); }
  .stub-stats { grid-column: 1; grid-row: auto; }
  .pass-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 10px; }
  .pf-arrow { display: none; }
  .pf input, .pf select { font-size: 16px; }
  .budget-in input { font-size: 30px; }
  .summary { padding: 18px 18px 16px; }
  .kpi { padding: 0 14px; }
  .kpi-v { font-size: 21px; }
  .share-make { padding: 18px; }
  .share-actions { width: 100%; }
  .share-actions .btn { flex: 1 1 auto; }
  .share-open { padding: 16px 18px; }
  .code-tiles { width: 100%; justify-content: center; margin: 0 0 4px; }
  .code-tiles span { width: 40px; height: 48px; }
  .board-bar { gap: 8px; }
  .board-tools { width: 100%; justify-content: flex-end; }
  .cell, .day-note, .sheet .dsel { font-size: 16px; }
  .where { font-size: 16px; }
  .cat { font-size: 16px; height: 30px; }
  .row { grid-template-columns: 15px max-content minmax(0, 1fr) 104px; grid-template-areas: "grip cat what amt" "grip line line line"; padding-left: 2px; }
  body.is-fx .row { grid-template-columns: 15px max-content minmax(0, 1fr) 124px; }
  body.is-view .row { grid-template-columns: 0 max-content minmax(0, 1fr) 104px; padding-left: 8px; }
  body.is-view.is-fx .row { grid-template-columns: 0 max-content minmax(0, 1fr) 124px; }
  .payer { font-size: 16px; height: 30px; max-width: 110px; }
  .mem-in { font-size: 16px; }
  .members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mem { padding: 11px 12px; }
  .mem-top { flex-wrap: wrap; row-gap: 6px; }
  .mem-line { flex-wrap: wrap; }
  .extra-in { font-size: 16px; }
  .mem-extra { flex-wrap: wrap; row-gap: 6px; }
  .mx-l { flex-basis: 100%; }
  .mem-name { font-size: 14px; }
  textarea.what { line-height: 22px; padding: 6px 8px; }
  .faq summary { font-size: 15px; }
}

/* examples */
.examples { margin-top: 56px; }
.examples h2, .ex-detail h2 { margin: 0 0 8px; font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.ex-lead { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }
.ex-group + .ex-group { margin-top: 18px; }
.ex-group h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.ex-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ex-card:hover { border-color: #cfc8bb; transform: translateY(-2px); box-shadow: var(--shadow); }
.ex-place { font-size: 12px; font-weight: 700; color: var(--brand); }
.ex-card b { font-size: 17px; font-weight: 850; letter-spacing: -.02em; margin-bottom: 6px; }
.ex-total { font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ex-per { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ex-detail { margin-top: 56px; padding: 26px 26px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ex-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.ex-sum div { padding: 12px 14px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); }
.ex-sum span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 650; }
.ex-sum b { font-size: 19px; font-weight: 850; font-variant-numeric: tabular-nums; }
.ex-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ex-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ex-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); }
.ex-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ex-detail h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 800; }
.ex-tips { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.ex-days, .ex-src { margin-top: 16px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.ex-days summary, .ex-src summary { cursor: pointer; font-weight: 750; font-size: 14.5px; }
.ex-days ol { margin: 10px 0 0; padding-left: 0; list-style: none; }
.ex-days > ol > li { margin-top: 10px; font-size: 14px; }
.ex-days ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.ex-days ul span { color: var(--muted); font-size: 13px; }
.ex-days ul em { font-style: normal; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ex-basis { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.ex-src ul { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.8; word-break: break-all; }
.ex-src a { color: var(--ink-2); }
@media (max-width: 640px) {
  .ex-detail { padding: 20px 18px; }
  .ex-sum { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ex-sum div { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px; }
  .ex-sum b { font-size: 17px; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ex-card { padding: 14px; }
  .ex-card b { font-size: 15.5px; }
}

/* ticket carousel (preset picker) */
.tickets { margin: -6px 0 22px; }
.tk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tk-head h2 { margin: 0; font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.tk-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.tk-nav { display: flex; gap: 6px; flex-shrink: 0; }
.tk-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--ink); display: grid; place-items: center; padding-bottom: 2px; }
.tk-arrow:hover { border-color: #cfc8bb; background: var(--tint); }
.ticket-rail { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-left: 2px; padding: 6px 2px 16px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ticket-rail::-webkit-scrollbar { display: none; }
@media (min-width: 641px) { .ticket-rail { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); } }
.tk { --tk: #1b1d26; position: relative; flex: 0 0 310px; display: grid; grid-template-columns: minmax(0, 1fr) 112px; min-height: 148px; scroll-snap-align: start; color: #fff; cursor: pointer; filter: drop-shadow(0 10px 16px rgba(23, 24, 28, .16)); transition: transform .18s, filter .18s; }
.tk.is-abroad { --tk: #262055; }
.tk:hover { transform: translateY(-3px); }
.tk.is-on { transform: translateY(-3px); filter: drop-shadow(0 0 1.5px #8f84ff) drop-shadow(0 12px 18px rgba(75, 63, 214, .35)); }
.tk.is-loading { opacity: .6; }
.tk-pick { position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer; border-radius: 18px; }
.tk-pick:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.tk-main { position: relative; padding: 14px 16px 14px; border-radius: 18px 0 0 18px; overflow: hidden;
  background: radial-gradient(circle at 100% 0, transparent 10px, var(--tk) 10.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 10px, var(--tk) 10.5px) bottom / 100% 51% no-repeat; }
.tk-main::before { content: ""; position: absolute; left: -70px; top: -90px; width: 220px; height: 200px; background: radial-gradient(closest-side, rgba(109, 91, 255, .38), transparent); pointer-events: none; }
.tk-main > * { position: relative; }
.tk-stub { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 12px 12px 12px 14px; border-radius: 0 18px 18px 0;
  background: radial-gradient(circle at 0 0, transparent 10px, var(--tk) 10.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 10px, var(--tk) 10.5px) bottom / 100% 51% no-repeat; }
.tk-stub::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 2px dashed rgba(255, 255, 255, .16); }
.tk-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: rgba(255, 255, 255, .5); }
.tk-top em { font-family: inherit; font-style: normal; letter-spacing: 0; font-size: 11px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.tk-route { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.tk-route div { display: flex; flex-direction: column; min-width: 0; }
.tk-route b { font-size: 26px; line-height: 1; font-weight: 850; letter-spacing: .02em; }
.tk-route span { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-plane { flex: 0 0 auto; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.tk-meta { font-size: 12.5px; font-weight: 650; color: rgba(255, 255, 255, .78); }
.tk-l { font-size: 10.5px; color: rgba(255, 255, 255, .5); }
.tk-stub b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.25; word-break: keep-all; }
.tk-stub small { font-size: 11px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.tk-more { position: relative; z-index: 3; align-self: flex-start; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .78); text-decoration: underline; text-underline-offset: 2px; }
.tk-more:hover { color: #fff; }
.tk-on { display: none; position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--brand-2); color: #fff; }
.tk.is-on .tk-on { display: block; }
.tk-mine { flex-basis: 200px; display: block; color: var(--ink); filter: none; }
.tk-mine-in { position: relative; height: 100%; min-height: 148px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 18px; border-radius: 18px; border: 2px dashed #cdc6b8; background: rgba(255, 255, 255, .55); transition: border-color .15s, background .15s; }
.tk-mine:hover .tk-mine-in { border-color: var(--brand); background: #fff; }
.tk-mine.is-on .tk-mine-in { border-style: solid; border-color: var(--brand); background: #fff; }
.tk-mine.is-on { filter: drop-shadow(0 10px 18px rgba(75, 63, 214, .22)); }
.tk-plus { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 22px; font-weight: 500; line-height: 1; margin-bottom: 4px; }
.tk-mine-in b { font-size: 16px; font-weight: 850; }
.tk-mine-in span:not(.tk-plus) { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 640px) {
  .tickets { margin-top: -4px; }
  .tk-nav { display: none; }
  .ticket-rail { margin: 0 -16px; padding: 6px 16px 16px; scroll-padding-left: 16px; }
  .tk { flex-basis: 84%; }
  .tk-mine { flex-basis: 62%; }
}

/* SEO content blocks (main) */
.seo-features, .seo-table, .seo-tips { margin-top: 56px; }
.seo-features h2, .seo-table h2, .seo-tips h2 { margin: 0 0 16px; font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat { padding: 20px 20px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.feat h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.feat p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.seo-lead { margin: -6px 0 14px; font-size: 14px; color: var(--ink-2); }
.seo-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 14px; }
.seo-table .ex-table { min-width: 460px; }
.seo-table .ex-table a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.seo-table .ex-table a:hover { color: var(--brand); border-color: var(--brand); }
.seo-table td.num small { display: block; font-size: 12px; color: var(--muted); }
.seo-tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.seo-tips li { padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.seo-tips li b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feat-grid, .steps { grid-template-columns: minmax(0, 1fr); } .seo-table-wrap { padding: 4px 8px; } .seo-table .ex-table { min-width: 0; font-size: 13px; } .seo-table .ex-table th, .seo-table .ex-table td { padding: 8px 5px; } .seo-table td.num small { font-size: 11px; } }

/* 상단 이동·경로 */
.topnav-links { display: flex; align-items: center; gap: 2px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumb-sep { color: #c3bdb1; }

/* 마이리얼트립 패키지 카드 */
.pkg-card { margin-bottom: 18px; padding: 22px 24px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pkg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.pkg-head { min-width: 0; }
.pkg-seller { font-size: 12px; font-weight: 800; letter-spacing: .02em; color: var(--brand); }
.pkg-name { margin: 6px 0 0; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--ink); word-break: keep-all; }
.pkg-rate { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.pkg-rate b { color: #d98a00; margin-right: 4px; }
.pkg-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pkg-price span { font-size: 12.5px; color: var(--ink-2); }
.pkg-price b { font-size: 26px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pkg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-2); }
.pkg-facts div { min-width: 0; }
.pkg-facts dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.pkg-facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; line-height: 1.45; word-break: keep-all; }
.pkg-points { margin: 14px 0 0; padding: 12px 14px 12px 32px; border-radius: 12px; background: var(--tint); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.pkg-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
.pkg-go { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; }
.pkg-go:hover { background: var(--brand-2); }
.pkg-home { display: inline-flex; align-items: center; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; background: #fff; }
.pkg-home:hover { border-color: var(--ink-2); }
.pkg-note { margin: 12px 0 0; padding-left: 16px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.pkg-note li { margin: 0; }

/* 일정 소개문 */
.plan-intro { margin-bottom: 18px; padding: 24px 26px 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan-intro h2 { margin: 0 0 12px; font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.plan-intro h3 { margin: 18px 0 6px; font-size: 16px; font-weight: 800; }
.plan-intro p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.85; color: var(--ink); word-break: keep-all; }

/* 패키지 일차별 일정 */
.pd-days { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
.pd-days > li { padding: 14px 16px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line-2); }
.pd-days h3 { margin: 0; font-size: 15.5px; font-weight: 850; }
.pd-days h3 span { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pd-note { margin: 4px 0 8px; font-size: 13.5px; color: var(--ink-2); }
.pd-days ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-days ul li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.5; }
.pd-days ul li small { color: var(--muted); font-size: 12.5px; }
.pd-cat { flex: none; min-width: 34px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 800; text-align: center; color: #fff; background: var(--c-etc); }
.pd-cat.c-stay { background: var(--c-stay); } .pd-cat.c-food { background: var(--c-food); } .pd-cat.c-move { background: var(--c-move); }
.pd-cat.c-tour { background: var(--c-tour); } .pd-cat.c-shop { background: var(--c-shop); }
.pd-none { font-size: 14px; color: var(--ink-2); }
.tk.is-pkg { --tk: #3a1f4f; }

@media (max-width: 760px) {
  .pkg-top { flex-direction: column; gap: 10px; }
  .pkg-price { align-items: flex-start; text-align: left; }
  .pkg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pkg-card, .plan-intro { padding: 18px 16px 14px; }
  .pkg-go { flex: 1 1 100%; justify-content: center; }
  .pkg-home { flex: 1 1 auto; justify-content: center; }
  .plan-intro p { font-size: 15px; }
  .topnav-link { padding: 8px 8px; font-size: 13.5px; }
}
.ex-detail ~ .tickets { margin-top: 56px; }
/* 보딩패스 바로 밑 '이 일정 그대로 예약하기' */
.plan-book { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 16px 18px 16px 22px; border-radius: 18px; background: var(--brand-soft); border: 1px solid #d9d4ff; }
.pb-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pb-txt b { font-size: 17px; font-weight: 850; letter-spacing: -.01em; }
.pb-txt span { font-size: 13.5px; color: var(--ink-2); word-break: keep-all; }
.pb-go { flex: none; display: flex; align-items: center; gap: 8px; }
.pkg-card, .plan-intro { margin-top: 56px; margin-bottom: 0; }
.pkg-title { margin: 0 0 14px; font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.ex-detail.pkg-detail + .pkg-card { margin-top: 18px; }
@media (max-width: 640px) { .plan-book { flex-direction: column; align-items: stretch; padding: 16px; } .pb-go { justify-content: space-between; } .pb-go .pkg-go { flex: 1; justify-content: center; } }

/* 메인 배너: 최근 내 여행 */
.banner { flex-wrap: wrap; }
.mine-list { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.mine-list > span { font-weight: 700; margin-right: 2px; }
.mine-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid #d9d4ff; background: #fff; color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.mine-chip:hover { border-color: var(--brand); }

/* 수수료 고지: 링크 옆 짧은 문구 + 아래쪽 한 줄 */
.aff-note { display: block; flex-basis: 100%; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.plan-book { flex-wrap: wrap; }
.plan-book .aff-note { margin-top: 0; text-align: right; }

/* 패키지: 출발일 고르기 칸 */
.pf.is-pick input { cursor: pointer; border-color: rgba(143, 132, 255, .7); background: rgba(109, 91, 255, .16); }
.pf.is-pick input:hover { background: rgba(109, 91, 255, .26); }

/* 모달 공통 */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(15, 16, 22, .55); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(100%, 560px); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 22px 20px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); }
.modal-card h2 { margin: 0 0 6px; font-size: 19px; font-weight: 850; letter-spacing: -.02em; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--tint); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.modal-lead { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.ts-box { display: flex; justify-content: center; min-height: 65px; }
.ts-box[hidden] { display: none; }
.modal-msg { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: center; }
.img-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.img-item { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--tint); }
.img-item img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: top; background: #fff; }
.img-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; font-size: 12px; font-weight: 700; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

/* 패키지 출발일 달력(날짜 밑 가격) */
.pcal { width: min(100%, 440px); }
.pcal-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0 10px; }
.pcal-head b { font-size: 16px; font-weight: 850; min-width: 110px; text-align: center; }
.pcal-nav { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.pcal-nav:disabled { opacity: .3; cursor: default; }
.pcal-wd, .pcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pcal-wd span { padding: 6px 0; font-size: 12px; font-weight: 700; text-align: center; color: var(--ink-2); }
.pcal-grid { gap: 4px 2px; }
.pc-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 0; border: 0; border-radius: 12px; background: transparent; font: inherit; }
.pc-cell b { font-size: 14.5px; font-weight: 700; }
.pc-cell small { font-size: 11px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pc-day { cursor: pointer; }
.pc-day:hover { background: var(--brand-soft); }
.pc-day.is-low small { color: var(--sat); font-weight: 800; }
.pc-day.is-on { background: var(--ink); color: #fff; }
.pc-day.is-on small { color: rgba(255, 255, 255, .85); }
.pc-off b { color: #c9c4ba; font-weight: 500; }
.pcal-wd .is-sun, .pc-day.is-sun b { color: var(--sun); }
.pcal-wd .is-sat, .pc-day.is-sat b { color: var(--sat); }
.pc-day.is-on b { color: #fff; }
.pcal-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--sat); }
.pc-cell .pcal-dot { position: absolute; top: 6px; right: calc(50% - 14px); }
.pcal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: var(--ink-2); }
.pcal-sep { color: #c3bdb1; }
@media (max-width: 640px) {
  .modal { align-items: end; padding: 0; }
  .modal-card { width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; padding: 22px 16px 18px; }
  .img-item img { height: 150px; }
  .plan-book .aff-note { text-align: left; }
}
body.is-pkg .stepper { grid-template-columns: 36px 1fr 36px; border-color: rgba(143, 132, 255, .7); background: rgba(109, 91, 255, .16); }
body.is-pkg .stepper button { visibility: visible; cursor: pointer; }
body.is-pkg .stepper button:disabled { opacity: .3; cursor: default; }
.img-card { width: min(100%, 360px); padding-top: 52px; }
.img-card .modal-actions { justify-content: center; }
.img-card #btnImgAll { min-width: 160px; justify-content: center; }
.aff-prod { display: flex; align-items: center; gap: 14px; margin: 28px 0; padding: 12px 14px 12px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.ap-img { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--line); }
.aff-prod .ae-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
@media (max-width: 640px) { .aff-prod { flex-wrap: wrap; } .aff-prod .ae-txt { flex-basis: calc(100% - 78px); } .aff-prod .ae-go { width: 100%; justify-content: flex-end; } }
.summary[hidden] { display: none; }
.stub-book { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.stub-book .ad-badge { border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .6); }
.stub-book .stub-go { flex: 1; justify-content: center; }
.stub-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: rgba(255, 255, 255, .55); word-break: keep-all; }
@media (max-width: 1000px) { .stub-book, .stub-note { grid-column: 1 / -1; } }
