/* Korea Refund — 도구 색 네 개 + 이 도구에만 있는 모양. 뼈대는 공용 myosu.css
 * 색: --c #1e40af(흰 글자 대비 8.7), --c-deep #1e3a8a(--c-soft 위 대비 8.9) */
:root { --c: #1e40af; --c-deep: #1e3a8a; --c-soft: #e0e7ff; --bg: #f5f7fc;
  --ok: #166534; --ok-bg: #dcfce7; --warn: #8a4b00; --warn-bg: #fff1d6; --no: #9f1239; --no-bg: #ffe4e6; }

.hero { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; text-align: left; padding: 0; }
.hero h1 { margin: 0; font-size: 23px; line-height: 1.3; letter-spacing: -.04em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--c-deep); }
.hero svg { flex: none; }

/* 즉시환급 한도 막대 */
.limit { margin-top: 14px; }
.limit .lt { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.limit .lt b { font-size: 15px; }
.limit .lh { font-size: 13px; font-weight: 700; color: var(--c-deep); background: var(--c-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.limit .big { margin: 6px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.limit .big small { font-size: 15px; font-weight: 700; color: var(--muted); }
.limit .bar { height: 12px; margin: 10px 0 0; border-radius: 999px; background: #e7eaf3; overflow: hidden; }
.limit .bar i { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.limit .sub { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }

/* 첫 화면 줄 버튼 */
.row-btn { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 0; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-align: left; color: var(--ink); }
.row-btn > span:first-child { flex: 1; min-width: 0; }
.row-btn b { display: block; font-size: 16px; }
.row-btn small { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.go { flex: none; font-size: 22px; font-weight: 800; color: var(--c-deep); }

/* 믿을 이유 한 줄 */
.trust { display: flex; gap: 10px; align-items: flex-start; width: 100%; margin: 18px 0 0; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--c-soft); color: var(--c-deep); text-align: left; font-size: 14px; font-weight: 700; line-height: 1.45; }
.trust .tk { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.trust small { display: block; margin-top: 2px; font-weight: 600; color: var(--c-deep); font-size: 13px; }

/* 근거 창 */
.rules { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rules li b { display: block; font-size: 15px; }
.rules li span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.rules li small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.fine-p { margin: 12px 2px 0; font-size: 13px; color: var(--muted); }

/* 입력 */
.fld { display: block; margin: 14px 0 0; }
.fld > span { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 2px; }
.fld input { width: 100%; height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 18px; color: var(--ink); }
.fld input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c); }
#f-amount { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fld-h { margin: 18px 2px 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.fld-n { margin: 6px 2px 0; font-size: 13px; color: var(--muted); }
.opt { display: flex; gap: 10px; align-items: flex-start; width: 100%; margin: 8px 0 0; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; color: var(--ink); }
.opt.on { box-shadow: inset 0 0 0 2px var(--c); background: #f4f6ff; }
.opt .ck { flex: none; font-size: 20px; line-height: 1.2; color: var(--c-deep); }
.opt b { display: block; font-size: 16px; }
.opt small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.verdict { margin: 14px 0 0; min-height: 48px; }
.v { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: 15px; font-weight: 700; line-height: 1.45; }
.v.ok { background: var(--ok-bg); color: var(--ok); }
.v.warn { background: var(--warn-bg); color: var(--warn); }
.v.no { background: var(--no-bg); color: var(--no); }
.v-amt { margin: 0 2px 6px; font-size: 15px; font-weight: 800; color: var(--c-deep); font-variant-numeric: tabular-nums; }
.v-hint { margin: 0; padding: 10px 12px; border-radius: 12px; background: #eef1f7; color: var(--ink-2); font-size: 14px; }
.v-sub { margin: 6px 2px 0; font-size: 13.5px; color: var(--ink-2); }

/* 내 영수증 */
.wide { width: 100%; }
.sec-title { margin: 22px 2px 4px; font-size: 17px; font-weight: 800; }
.sec-title span { color: var(--c-deep); }
.sec-sub { margin: 0 2px 8px; font-size: 13.5px; color: var(--ink-2); }
.rcs { display: grid; gap: 8px; }
.rc { display: block; width: 100%; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.rc.new { box-shadow: inset 0 0 0 2px var(--c), var(--shadow); }
.rc-main { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; color: var(--ink); }
.rc .rl { flex: 1; min-width: 0; }
.rc b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.rc small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.rc small.mo { font-size: 14px; font-weight: 800; color: var(--c-deep); }
.rc small.v { display: inline-block; margin-top: 6px; padding: 3px 8px; font-size: 12.5px; border-radius: 8px; }
.got-btn { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-top: 1px solid var(--line); background: #f7f9fd; color: var(--c-deep); font-size: 15px; font-weight: 700; text-align: left; }
.got-btn[aria-pressed="true"] { color: var(--ok); }
.got-btn span { font-size: 19px; }
.rc .dl.late { color: var(--no); font-weight: 700; }
.empty { text-align: center; margin: 24px 0 0; color: var(--ink-2); }
.empty p { margin: 8px auto 0; max-width: 22em; }
.linkcard { margin-top: 22px; }
.linkcard b { display: block; font-size: 16px; }
.linkcard span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.dtl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 4px 0 12px; font-size: 15px; }
.dtl dt { color: var(--muted); font-weight: 700; }
.dtl dd { margin: 0; overflow-wrap: anywhere; }

/* 떠나는 날 */
.check { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.check li { background: var(--surface); border-radius: 16px; padding: 12px 14px 12px 44px; box-shadow: var(--shadow); position: relative; }
.check li::before { content: "✓"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-soft); color: var(--c-deep); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.check li.c-late { box-shadow: inset 0 0 0 2px var(--no); }
.check li.c-late::before { content: "!"; background: var(--no-bg); color: var(--no); }
.check li.c-bag::before { content: "🧳"; background: none; font-size: 18px; }
.check b { display: block; font-size: 15.5px; }
.check span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* 돌려받을 돈 (결론 카드) — 2026-12-03 */
.money .count b { font-size: 40px; }
.money .sub { overflow-wrap: anywhere; }
.maybe { display: block; width: 100%; margin: 10px 0 0; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 700; text-align: left; }
.sub-acts { display: flex; gap: 8px; margin-top: 8px; }
.sub-acts .secondary { flex: 1 1 0; min-width: 0; margin: 0; padding: 0 8px; font-size: 15px; }
.center { text-align: center; }

/* 사진 읽기 */
.read-card { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 0; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.read-card img { flex: none; width: 72px; height: 96px; object-fit: cover; border-radius: 10px; background: #eef1f7; }
.read-card > div { flex: 1; min-width: 0; }
.read-st { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--c-deep); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--c-soft); border-top-color: var(--c); animation: kr-spin .8s linear infinite; flex: none; }
@keyframes kr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.read-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* 떠나는 날 순서 */
.steps { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.steps .no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: 15.5px; }
.steps small { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.check li.c-check { box-shadow: inset 0 0 0 2px var(--warn); }
.check li.c-check::before { content: "!"; background: var(--warn-bg); color: var(--warn); }
.check li .tiny { margin-top: 8px; }
.past-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); max-height: 40vh; overflow: auto; }

/* 고향 통화로 대략 (2026-12-03) */
.fx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 2px; }
.fx-btn { border: 0; background: var(--c-soft); color: var(--c-deep); font-size: 15px; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.fx-src { font-size: 12px; color: var(--muted); text-decoration: underline; }
/* 내 나라 돈 고르기 창: 두 줄 격자 (2026-12-03 — 창 버튼 줄에 18개를 나란히 두니 글자가 세로로 쌓임) */
.cur-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; max-height: 46vh; overflow-y: auto; }
.cur { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; }
.cur b { font-size: 16px; font-weight: 800; color: var(--c-deep); }
.cur span { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.cur--on { box-shadow: inset 0 0 0 2px var(--c); background: var(--c-soft); }
/* 날짜 칸은 다른 칸과 같은 높이 52px, 글자는 세로 가운데(공용 myosu.css 아이폰 날짜 칸 규칙 위에) */
.fld input[type="date"] { min-height: 52px; padding-top: 14px; padding-bottom: 14px; }
.fld-n.fld-bad { color: var(--danger, #c0392b); font-weight: 700; }
/* 2026-12-03 일행 여권 · 출국 공항 · 질문 목록 · 광고 칸 */
.who-add { margin: 12px 0 0; }
.who-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.who { border: 0; border-radius: 999px; padding: 8px 14px; font-size: 15px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.who.on { box-shadow: inset 0 0 0 2px var(--c); background: #f4f6ff; color: var(--c-deep); font-weight: 700; }
.limit .lw { margin: 10px 0 2px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ports { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.port { border: 0; border-radius: 999px; padding: 8px 13px; font-size: 14.5px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.port.on { box-shadow: inset 0 0 0 2px var(--c); background: #f4f6ff; color: var(--c-deep); font-weight: 700; }
.port-card { margin-top: 10px; }
.port-card p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink); }
.port-card p b { display: block; font-size: 13px; color: var(--c-deep); margin-bottom: 1px; }
.port-card small { display: block; font-size: 12px; color: var(--muted); }
.qa { margin: 6px 0 0; display: grid; gap: 8px; }
.qa details { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.qa summary { font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "＋"; color: var(--c-deep); flex: none; }
.qa details[open] summary::after { content: "－"; }
.qa p { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-2); }
.qa small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.adcard { display: block; margin: 22px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.adcard .ad-l { display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; margin-bottom: 4px; }
.adcard b { display: block; font-size: 15px; }
.adcard small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.limit .lt { flex-wrap: wrap; row-gap: 4px; }
.port-card h3 { margin: 0 0 8px; font-size: 16px; }

/* ---------- 일본판(jp.html, 2026-12-04) — 색 네 개와 일본판에만 있는 모양 ----------
 * 색: --c #b91c1c(흰 글자 대비 6.5), --c-deep #7f1d1d(--c-soft 위 대비 9 이상) */
html.jp { --c: #b91c1c; --c-deep: #7f1d1d; --c-soft: #fee2e2; --bg: #fff7f5; }
.todo { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 0; padding: 12px 14px; border: 2px solid var(--c); border-radius: 16px; background: var(--c-soft); color: var(--ink); text-align: left; }
.todo b { flex: none; font-size: 13px; color: #fff; background: var(--c); padding: 3px 8px; border-radius: 999px; }
.todo span:not(.go) { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; }
.todo--soft { border-color: transparent; background: var(--surface); box-shadow: var(--shadow); }
.todo--soft b { background: var(--ink-2); }
.chips, .step-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.chip { min-height: 40px; padding: 8px 12px; border: 1.5px solid #e5e1df; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; }
.chip.on { border-color: var(--c); background: var(--c-soft); color: var(--c-deep); }
details.more { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
details.more summary { font-weight: 700; font-size: 15px; cursor: pointer; min-height: 32px; }
.tiny.link { display: inline-block; margin: 8px 0 0; text-decoration: none; }
.opgrp { margin: 12px 0 0; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.opgrp--todo { box-shadow: inset 0 0 0 2px var(--c); }
.opgrp .rcs { margin-top: 8px; }
.opgrp .rc { box-shadow: none; border: 1px solid #f0eceb; }
.op-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.op-h b { font-size: 17px; }
.op-h span { font-size: 13px; color: var(--ink-2); }
.op-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.op-reg { min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--c); border-radius: 12px; background: #fff; color: var(--c-deep); font-weight: 700; font-size: 14px; }
.op-reg.on { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.op-acts .tiny.link { margin: 0; }
.stp { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; background: #eee; color: var(--ink-2); }
.stp-checked { background: var(--warn-bg); color: var(--warn); }
.stp-paid { background: var(--ok-bg); color: var(--ok); }
ul.tick { list-style: none; margin: 8px 0 0; padding: 0; }
ul.tick li { position: relative; padding: 8px 0 8px 26px; font-size: 15px; border-bottom: 1px solid #f0eceb; }
ul.tick li::before { content: "□"; position: absolute; left: 2px; top: 7px; color: var(--c); font-weight: 700; }
.cash-ops { font-size: 13px; color: var(--ink-2); }
.wide-got { width: 100%; text-align: left; display: block; padding: 10px 14px; border-top: 0; }
.wide-got small { display: block; margin-top: 2px; font-weight: 400; color: var(--ink-2); }
.calc-food { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 15px; min-height: 40px; }
.calc-food input { width: 20px; height: 20px; }
