/* Leben — 애플 기본 앱 스타일 · 포인트 색 비트코인 주황 · 영어는 Outfit, 한글은 Pretendard */
:root {
  --bg: #f2f2f7;
  --card: #fff;
  --label: #000;
  --label2: rgba(60, 60, 67, .6);
  --label3: rgba(60, 60, 67, .3);
  --sep: rgba(60, 60, 67, .18);
  --tile: #f2f2f7;
  --fill: rgba(118, 118, 128, .12);
  --accent: #f7931a;
  --accent-ink: #c26a00;
  --accent-weak: #fef1df;
  --green: #1f8a55;
  --green-bg: #dff3e8;
  --red: #d13b33;
  --red-bg: #fbe3e1;
  --money: #e0574c;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); }
body {
  color: var(--label);
  font-family: Outfit, "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; border: 0; background: none; outline: none; }
button { cursor: pointer; }
input::placeholder { color: var(--label3); }

.view { min-height: 100dvh; padding: calc(var(--top) + 8px) 0 calc(var(--bottom) + 110px); }
.view.no-dock { padding-bottom: calc(var(--bottom) + 24px); }

svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.chev { width: 14px; height: 14px; color: var(--label3); stroke-width: 2.6; }

.glass {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .9), 0 6px 24px rgba(0, 0, 0, .10), 0 0 0 .5px rgba(0, 0, 0, .04);
}

/* 위쪽 줄 */
.nav { position: relative; height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.nav .sp { flex: 1; }
.ncenter { position: absolute; left: 70px; right: 70px; top: 0; bottom: 0; display: grid; place-items: center; font-size: 16px; font-weight: 600; pointer-events: none; }
.ncenter > * { pointer-events: auto; }
.round { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; z-index: 1; }
.brand { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.title { padding: 2px 20px 10px; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.title .mbtn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.title .mbtn svg { width: 18px; height: 18px; stroke-width: 2.6; }
.seg { display: inline-flex; padding: 2px; border-radius: 18px; background: var(--fill); font-size: 13px; font-weight: 500; color: var(--label2); }
.seg button { padding: 7px 14px; border-radius: 16px; }
.seg button.on { background: #fff; color: var(--label); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

/* 카드 · 줄 */
.card { margin: 0 16px; background: var(--card); border-radius: 20px; overflow: hidden; }
.summary { padding: 15px 18px 14px; }
.k { font-size: 13px; color: var(--label2); }
.k.spend { color: var(--red); font-weight: 600; }
.hero { margin-top: 2px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hero small { font-size: 19px; font-weight: 600; margin-right: 2px; }
.hint { margin-top: 4px; font-size: 12.5px; color: var(--label2); }
.head { padding: 18px 34px 7px; display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--label2); }
.head b { font-size: 13px; font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; padding-left: 16px; width: 100%; text-align: left; }
.tile { flex: none; width: 32px; height: 32px; border-radius: 9px; background: #fff; display: grid; place-items: center; font-size: 17px; }
.tile.btc { border-radius: 50%; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; }
.tile.btc span { transform: rotate(12deg); }
.row .body { flex: 1; min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 0; border-bottom: .5px solid var(--sep); }
.row:last-child .body { border-bottom: 0; }
.txt { flex: 1; min-width: 0; }
.t { font-size: 15px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s { margin-top: 1px; font-size: 12px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amt { font-size: 15px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.amt.in { color: var(--green); }
.amt .s { text-align: right; }
.tag { font-size: 10px; font-weight: 600; color: var(--label2); background: var(--tile); padding: 2px 6px; border-radius: 6px; flex: none; }
.cnt { font-size: 13px; color: var(--label2); }
.row.sel .t { color: var(--accent-ink); font-weight: 600; }
.empty { padding: 26px 20px; text-align: center; font-size: 14px; color: var(--label2); }

/* 수입 · 저축 칸 */
.io { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.io > div { border-radius: 14px; padding: 9px 12px 10px; }
.io .in { background: var(--green-bg); color: var(--green); }
.io .save { background: var(--accent-weak); color: var(--accent-ink); }
.io span { font-size: 12px; font-weight: 600; }
.io b { display: block; margin-top: 1px; font-size: 15px; font-weight: 700; }

/* 떠 있는 탭바 */
.dock { position: fixed; left: 16px; right: 16px; bottom: calc(var(--bottom) + 10px); display: flex; gap: 10px; z-index: 20; max-width: 560px; margin: 0 auto; }
.tabs { flex: 1; height: 56px; border-radius: 28px; padding: 4px; display: grid; grid-template-columns: repeat(4, 1fr); }
.tab { border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--label2); }
.tab svg { width: 22px; height: 22px; }
.tab.on { background: rgba(120, 120, 128, .14); color: var(--accent-ink); font-weight: 600; }
.tab.on svg { color: var(--accent); stroke-width: 2.3; }
.add { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 20px rgba(247, 147, 26, .4); }
.add svg { width: 25px; height: 25px; stroke-width: 2.4; }

/* 픽토그램 (색 원 + 흰 그림) */
.hic { flex: none; display: inline-grid; place-items: center; border-radius: 50%; }
.hic svg { overflow: visible; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 로비 ---------- */
.lb-title { padding: 0 20px; }
.lb-title b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.lb-title small { display: block; margin-top: 4px; font-size: 13px; color: var(--label2); }
.burst { display: block; width: 218px; height: 218px; margin: 6px auto 0; }
.burst text { font-family: inherit; text-anchor: middle; }
.wcard { background: #fff; border-radius: 26px; padding: 14px 16px; text-align: left; }
.wcard .wh { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.wcard .wh .ti { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.wcard .wh small { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--label2); }
.big-w { margin: 12px 16px 0; display: block; width: calc(100% - 32px); }
.lg2 { display: grid; grid-template-columns: 1fr 1fr; margin-top: 6px; }
.lg2 > div { padding: 4px 0 2px; min-width: 0; }
.lg2 > div:first-child { padding-right: 14px; }
.lg2 > div + div { padding-left: 14px; border-left: .5px solid var(--sep); }
.lg2 .n { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--label2); }
.lg2 .n i { width: 10px; height: 10px; border-radius: 3px; }
.lg2 .n em { margin-left: auto; font-style: normal; }
.lg2 b { display: block; margin-top: 2px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.lg2 .sub { display: block; margin-top: 2px; font-size: 11px; color: var(--label2); }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.sec-h span { font-size: 13px; font-weight: 500; color: var(--label2); }
.half { margin: 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.half .wcard { padding: 14px 14px 12px; min-height: 168px; display: flex; flex-direction: column; }
.half .wcard .wh { font-size: 15px; }
.bignum { margin-top: auto; text-align: center; font-size: 46px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.bignum small { font-size: 15px; font-weight: 600; margin-left: 2px; }
.half .foot { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }
.half .foot small { display: block; font-size: 11.5px; font-weight: 500; color: var(--label2); }
.soon { margin: auto 0; text-align: center; font-size: 13px; color: var(--label2); line-height: 1.5; }
.pills { margin: 10px 16px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pill-w { display: flex; align-items: center; gap: 10px; border-radius: 26px; padding: 8px 10px 8px 8px; text-align: left; }
.pill-w .pt { flex: 1; min-width: 0; }
.pill-w .pt b { display: block; font-size: 15px; font-weight: 600; }
.pill-w .pt span { display: block; margin-top: 1px; font-size: 11.5px; color: var(--label2); white-space: nowrap; }
.pill-w .go { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.pill-w .go svg { width: 13px; height: 13px; stroke-width: 2.6; }
.pill-w.money { background: var(--red-bg); }
.pill-w.habit { background: #fdebd6; }

/* ---------- 입력 ---------- */
.entry { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; padding-top: calc(var(--top) + 8px); }
.amount { padding: 14px 20px 16px; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: center; min-height: 86px; }
.amount small { font-size: 26px; font-weight: 600; margin-right: 3px; }
.amount .unit { font-size: 22px; margin-left: 6px; }
.caret { width: 2.5px; height: 40px; background: var(--accent); margin-left: 5px; border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.btcbig { flex: none; width: 38px; height: 38px; margin-right: 10px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 22px; }
.btcbig span { transform: rotate(12deg); }
.frow { display: flex; align-items: center; gap: 8px; margin-left: 16px; padding-right: 14px; min-height: 48px; border-bottom: .5px solid var(--sep); font-size: 15px; width: calc(100% - 16px); text-align: left; }
.frow:last-child { border-bottom: 0; }
.frow .k { width: 86px; font-size: 15px; flex: none; }
.frow .v { flex: 1; text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frow .v.ph { color: var(--label3); }
.frow input { flex: 1; text-align: right; min-width: 0; }
.frow input[type="date"] { -webkit-appearance: none; appearance: none; display: flex; justify-content: flex-end; }
.frow input[type="date"]::-webkit-date-and-time-value { text-align: right; }
.entry .bottom { margin-top: auto; padding: 0 16px calc(var(--bottom) + 14px); }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); }
.keys button { height: 54px; display: grid; place-items: center; font-size: 25px; border-radius: 14px; }
.keys button:active { background: var(--fill); }
.btn { margin-top: 8px; height: 50px; width: 100%; border-radius: 25px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
.btn:disabled { opacity: .45; }
.btn.ghost { background: #fff; color: var(--accent-ink); font-weight: 500; }
.btn.danger { background: #fff; color: var(--red); font-weight: 500; }

/* 아래에서 올라오는 목록 */
.dim { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); z-index: 50; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; background: var(--bg); border-radius: 34px 34px 0 0; padding: 8px 0 calc(var(--bottom) + 20px); max-height: 86dvh; overflow-y: auto; max-width: 600px; margin: 0 auto; }
.grab { width: 36px; height: 5px; border-radius: 3px; background: var(--label3); margin: 0 auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 22px 12px; }
.sheet-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.sheet-head button { font-size: 15px; font-weight: 500; color: var(--accent-ink); }
.sheet .head:first-of-type { padding-top: 0; }
.slim .row .body { min-height: 46px; padding: 6px 14px 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 60px; padding: 0 14px 10px 0; border-bottom: .5px solid var(--sep); }
.chip { flex: none; padding: 7px 11px; border-radius: 15px; background: var(--tile); font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--accent-weak); color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.addrow { display: flex; gap: 8px; margin: 12px 16px 0; }
.addrow input { height: 46px; border-radius: 14px; background: #fff; padding: 0 14px; font-size: 15px; }
.addrow input.emo { width: 52px; text-align: center; font-size: 20px; padding: 0; flex: none; }
.addrow input.nm { flex: 1; min-width: 0; }
.addrow select { height: 46px; border-radius: 14px; background: #fff; padding: 0 10px; font-size: 14px; }
.addrow button { flex: none; height: 46px; padding: 0 16px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 600; }
.stepper { display: flex; align-items: center; height: 34px; padding: 2px; border-radius: 17px; background: var(--fill); }
.stepper button { width: 36px; height: 30px; font-size: 19px; }
.stepper b { min-width: 74px; height: 30px; border-radius: 15px; background: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.sheet .hint { padding: 8px 22px 0; }

/* 로그인 */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.auth h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.auth p { margin-top: 6px; color: var(--label2); font-size: 14px; }
.auth form { margin-top: 26px; display: grid; gap: 10px; }
.auth input { height: 52px; border-radius: 16px; background: #fff; padding: 0 16px; font-size: 16px; }
.auth .switch { margin-top: 14px; font-size: 14px; color: var(--accent-ink); text-align: center; }
.auth .err { color: var(--red); font-size: 13px; min-height: 18px; }

/* 설정 */
.val { font-size: 14px; color: var(--label2); white-space: nowrap; }
.frow input.inline { color: var(--label2); }

#toast { position: fixed; left: 50%; bottom: calc(var(--bottom) + 90px); transform: translateX(-50%) translateY(20px); background: rgba(0, 0, 0, .82); color: #fff; padding: 10px 16px; border-radius: 18px; font-size: 14px; opacity: 0; transition: .25s; pointer-events: none; z-index: 99; white-space: nowrap; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 600px) {
  #app { max-width: 480px; margin: 0 auto; }
  .entry { max-width: 480px; margin: 0 auto; }
}

/* Netlify가 자동으로 붙이는 "Powered by Netlify" 배지 숨김 */
#nl-badge-frame, #nl-hud-frame { display: none !important; }

/* 설정 · 결제수단 · 분류 · 고정비 */
.sic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sic svg.ic { width: 17px; height: 17px; stroke-width: 2.2; }
.srow { display: flex; align-items: center; gap: 12px; padding-left: 16px; width: 100%; text-align: left; font-size: 15px; }
.srow .body { flex: 1; min-width: 0; min-height: 50px; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 0; border-bottom: .5px solid var(--sep); }
.srow:last-child .body { border-bottom: 0; }
.srow .lbl { flex: 1; min-width: 0; }
.srow .lbl small { display: block; font-size: 12px; color: var(--label2); }
.srow .val { color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }
.srow input { width: 110px; text-align: right; color: var(--label2); }
.profile { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 8px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #f7931a, #f9b25a); color: #fff; font-size: 24px; font-weight: 600; display: grid; place-items: center; }
.profile input { width: 100%; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.profile small { display: block; font-size: 12px; color: var(--label2); }
.segwrap { display: flex; justify-content: center; padding: 4px 16px 14px; }
.segwrap .seg { width: 100%; }
.segwrap .seg button { flex: 1; }
.row.sub { padding-left: 64px; }
.row.sub .emo { flex: none; width: 22px; font-size: 17px; display: grid; place-items: center; }
.row.sub .body { min-height: 46px; }
.row.sub.act .t { color: var(--accent-ink); font-weight: 500; }
.row.sub.act .emo { color: var(--accent-ink); }
.rsum { display: flex; padding: 14px 16px; margin-top: 4px; }
.rsum > div { flex: 1; }
.rsum > div + div { border-left: .5px solid var(--sep); padding-left: 14px; }
.rsum span { font-size: 12px; color: var(--label2); }
.rsum b { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; }
.frow select { flex: 1; min-width: 0; text-align: right; text-align-last: right; -webkit-appearance: none; appearance: none; font-size: 15px; color: var(--label2); }
.summary .hint { margin-top: 6px; }
.sheet .addrow + .hint { padding: 8px 22px 0; }
.srow input.day { width: 34px; margin-right: -6px; }
[data-drag] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.row.dragging { position: relative; z-index: 5; background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); transition: box-shadow .15s; }
.row.dragging .body { border-bottom-color: transparent; }

/* 사진 아이콘 */
.tile { overflow: hidden; }
.icimg { display: block; width: 100%; height: 100%; object-fit: cover; }
.row.sub .emo .icimg { width: 22px; height: 22px; border-radius: 6px; }
.icimg.inl { display: inline-block; width: 18px; height: 18px; border-radius: 5px; vertical-align: -3px; }
.addrow .emo.pic { position: relative; flex: none; width: 52px; height: 46px; border-radius: 14px; overflow: hidden; background: #fff; }
.addrow .emo.pic { padding: 0; }
.addrow .emo.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.addrow .emo.pic i { position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; }
.addrow .emo.pic i svg { width: 10px; height: 10px; stroke-width: 3; }
.photobar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 22px 0; font-size: 12.5px; color: var(--label2); }
.photo { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-ink); font-weight: 600; font-size: 13px; cursor: pointer; }
.photo svg.ic { width: 17px; height: 17px; }
.amt .ph { color: var(--label3); }

/* 내역: 목록 / 달력 */
.io > a, .io > button { display: block; text-align: left; border-radius: 14px; padding: 9px 12px 10px; }
.io span svg.chev { width: 11px; height: 11px; color: inherit; opacity: .7; vertical-align: -1px; }
.io .out { background: var(--red-bg); color: var(--red); }
.hseg { padding: 3px; border-radius: 20px; }
.hseg button { padding: 6px 12px; display: grid; place-items: center; }
.hseg svg.ic { width: 19px; height: 19px; }
.cal { padding: 10px 6px 8px; }
.cw, .cg { display: grid; grid-template-columns: repeat(7, 1fr); }
.cw span { text-align: center; font-size: 11px; color: var(--label2); padding-bottom: 4px; }
.cd { min-height: 52px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 0; border-radius: 12px; }
.cd b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.cd.fut b { color: var(--label3); font-weight: 500; }
.cd.now b { background: var(--accent); color: #fff; }
.cd.sel:not(.now) b { background: var(--accent-weak); color: var(--accent-ink); }
.cd span { font-size: 10px; line-height: 1.25; white-space: nowrap; }
.cd .ce { color: var(--label2); }
.cd .ci { color: var(--green); }
.cd .cs { color: var(--accent-ink); font-weight: 600; }
.cd .pl { opacity: .45; }

/* 저축 · 리포트 공통 */
.btchero { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.btchero small { font-size: 17px; font-weight: 700; margin-left: -4px; align-self: flex-end; padding-bottom: 6px; }
.btchero .btcbig { width: 34px; height: 34px; }
.split { display: flex; margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--sep); }
.split > div { flex: 1; min-width: 0; }
.split > div + div { border-left: .5px solid var(--sep); padding-left: 14px; }
.split span { font-size: 12px; color: var(--label2); }
.split b { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split.three b { font-size: 14px; }
.bars { display: flex; gap: 6px; height: 190px; padding: 16px 14px 10px; }
.bcol { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bt { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-bottom: 1px solid var(--sep); }
.bt i { width: 70%; max-width: 26px; min-height: 0; background: #dedee3; border-radius: 5px 5px 0 0; }
.bcol.hi .bt i { background: var(--accent); }
.bv { font-size: 10.5px; color: var(--label2); margin-bottom: 4px; white-space: nowrap; }
.bcol.hi .bv { color: var(--label); font-weight: 700; }
.bcol > b { text-align: center; margin-top: 7px; font-size: 11.5px; font-weight: 400; color: var(--label2); }
.bcol.hi > b { color: var(--label); font-weight: 700; }
.pbs { padding: 6px 16px 14px; }
.pb { margin-top: 10px; }
.pbh { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.pbh b { font-size: 18px; font-weight: 700; margin-left: 4px; }
.pbh em { font-style: normal; font-size: 13px; color: var(--label2); }
.ptrack { height: 8px; border-radius: 4px; margin-top: 7px; overflow: hidden; }
.ptrack i { display: block; height: 100%; border-radius: 4px; }
.ptrack.red { background: var(--red-bg); } .ptrack.red i { background: var(--red); }
.ptrack.org { background: var(--accent-weak); } .ptrack.org i { background: var(--accent); }
.cbx { padding: 4px 16px 14px; }
.cbr { margin-top: 10px; }
.cbh { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.cbh small { font-size: 12px; color: var(--label2); }
.cbh b { margin-left: auto; font-weight: 600; }
.cbt { height: 6px; margin-top: 6px; }
.cbt i { display: block; height: 100%; background: var(--accent); border-radius: 3px; min-width: 6px; }
.cbs { display: flex; align-items: center; gap: 6px; padding: 5px 0 0 26px; font-size: 13px; color: var(--label2); }
.cbs b { margin-left: auto; font-weight: 400; }

/* 검색 */
.sbar { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 44px; }
.sfield { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 12px; background: var(--fill); color: var(--label2); }
.sfield input { flex: 1; min-width: 0; font-size: 16px; color: var(--label); }
.sfield input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cancel { color: var(--accent-ink); font-size: 16px; }
.fchips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 4px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 17px; background: #fff; font-size: 14px; white-space: nowrap; }
.fchip svg.ic { width: 13px; height: 13px; stroke-width: 2.4; color: var(--label2); }
.fchip.on { background: var(--accent-weak); color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.fchip.on svg.ic { color: var(--accent-ink); }
.sres { padding: 12px 20px 0; }
.sres span { font-size: 13px; color: var(--label2); }
.sres b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.sres b small { font-size: 18px; margin-right: 2px; }

/* 밀어서 삭제 */
.swrap { position: relative; overflow: hidden; }
.swdel { position: absolute; top: 0; right: 0; bottom: 0; width: 84px; background: var(--red); color: #fff; font-size: 15px; font-weight: 600; }
.row.swiping { position: relative; z-index: 1; background: var(--card); }
.swrap:last-child .row .body { border-bottom: 0; }
.card > .swrap:not(:last-child) .row .body { border-bottom: .5px solid var(--sep); }

/* 습관 */
.hbadge { flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.hbadge svg.ic { stroke: #fff; stroke-width: 2.1; }
.tile.hb { background: none; }
svg.hcheck { width: 20px; height: 20px; color: var(--green); stroke-width: 2.6; }
.row.todo .t { color: var(--label); }
.wstrip { display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 8px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 0 8px; border-radius: 22px; }
.wd span { font-size: 12px; color: var(--label2); }
.wd b { width: 34px; height: 34px; border-radius: 50%; background: var(--tile); display: grid; place-items: center; font-size: 15px; font-weight: 600; }
.wd i { width: 5px; height: 5px; border-radius: 50%; }
.wd i.dot { background: var(--accent); }
.wd.on { background: var(--accent); }
.wd.on span { color: #fff; }
.wd.on b { background: #fff; color: var(--accent-ink); }
.wd.on i.dot { background: #fff; }
.hweek { margin-top: 12px; padding: 14px 16px 16px; }
.hwh { display: flex; justify-content: space-between; align-items: center; }
.hwh b { font-size: 17px; font-weight: 700; }
.pillbtn { padding: 6px 12px; border-radius: 14px; background: var(--fill); font-size: 13px; font-weight: 600; color: var(--label2); }
.gauge { position: relative; margin: 2px auto 0; max-width: 300px; }
.gauge svg { display: block; width: 100%; }
.gmid { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.gmid span { display: block; font-size: 22px; }
.gmid b { display: block; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.gmid small { font-size: 13px; color: var(--label2); }
.htiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.htiles::-webkit-scrollbar { display: none; }
.htile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; background: var(--tile); text-align: center; }
.htile b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.htile b small { font-size: 12px; font-weight: 600; margin-left: 1px; }
.htile span { font-size: 11.5px; color: var(--label2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hdetail { padding-bottom: 14px; }
.band { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; text-align: left; }
.band .hbadge { background: rgba(255, 255, 255, .25) !important; }
.band b { display: block; font-size: 21px; font-weight: 700; }
.band span { font-size: 13px; opacity: .92; }
.band > svg.ic { margin-left: auto; opacity: .85; }
.rings { display: block; width: 100%; padding: 6px 4px 0; }
.rings .rv { font-size: 26px; font-weight: 700; fill: var(--label); }
.rings .rv.big { font-size: 34px; }
.rings .ru { font-size: 15px; font-weight: 600; fill: var(--label); }
.rings .rl { font-size: 15px; fill: rgba(60, 60, 67, .6); }
.hdetail .split { margin: 6px 16px 0; }
.hdots { display: flex; gap: 2px; justify-content: center; min-height: 6px; flex-wrap: wrap; max-width: 34px; }
.hdots i { width: 6px; height: 6px; border-radius: 50%; }
.hlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px 2px; font-size: 12px; color: var(--label2); }
.hlegend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.hrep { display: flex; align-items: center; gap: 12px; padding: 14px 16px 0; }
.hrep b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.hrep b small { font-size: 14px; margin-left: 3px; }
.hrep span { font-size: 12.5px; color: var(--label2); }
.pickrow { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 22px; }
.pickrow button { border-radius: 50%; padding: 2px; box-shadow: 0 0 0 2px transparent; }
.pickrow button.on { box-shadow: 0 0 0 2px var(--accent); }
.pickrow .sw { width: 32px; height: 32px; border: 3px solid #fff; }
.hchips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.hchips button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 8px; border-radius: 19px; background: #fff; font-size: 14px; }
.hchips button.on { box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 600; }
.semi { position: relative; margin-top: 8px; }
.semi svg { display: block; width: 100%; }
.semi path { fill: none; stroke-width: 12; stroke-linecap: round; }
.semi .sbg { stroke: #eeeef0; }
.semi .sfg { stroke: var(--accent); }
.smid { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.smid b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.smid b small { font-size: 14px; font-weight: 700; }
.smid span { display: block; font-size: 11.5px; color: var(--label2); }
.hfoot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.hfoot div:last-child { text-align: right; }
.hfoot small { display: block; font-size: 11.5px; color: var(--label2); }
.hfoot b { font-size: 16px; font-weight: 700; }
.hrepc .bars { height: 130px; }
.hrepc .bcol.hi .bt i { background: var(--hc); }

/* 대출 */
.hlink { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.tile.lno { font-size: 12px; font-weight: 700; color: var(--label2); }
.lsch.paid { opacity: .5; }
.lsch .amt .s svg.hcheck { width: 14px; height: 14px; }
.round.fav.on { color: var(--accent); } .round.fav.on svg.ic { fill: var(--accent); }

/* BTC 수입 */
.curseg { display: flex; justify-content: center; padding: 0 16px 12px; }
small.ibtc { display: block; font-size: 11.5px; font-weight: 700; color: var(--green); margin-top: 1px; }
.split small.ibtc { font-size: 12px; }
.tile.btc.earn { background: var(--green); }

/* 비트코인 8자리: 달력 칸에 들어가게 작게, 칸 너비는 고정 */
.cw, .cg { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cd { min-width: 0; overflow: hidden; }
.cd span.btc8 { font-size: 8px; letter-spacing: -0.03em; }
