/* Denge: banknot dünyası. Güvenlik kâğıdı zemin, petrol mürekkep, tek gösterişli öğe olarak banknot kart.
   Düzen: tek sütun, kart yerine boşluk ve ince çizgiyle ayrılan listeler; başparmak altı işlemler. */

@font-face { font-family: 'Bricolage Grotesque'; src: url(fonts/bricolage-latin.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonts/bricolage-latin-ext.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0100-0130, U+0132-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; src: url(fonts/onest-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; src: url(fonts/onest-latin-ext.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-0130, U+0132-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font-display: 'Bricolage Grotesque', ui-rounded, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Onest', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  --ground: #edf1f0; --surface: #fbfcfc; --raise: #e2e9e7; --ink: #0d2328; --ink-2: #47605f; --ink-3: #6f8584; --line: #d4dedb;
  --petrol: #0b4f57; --on-petrol: #f2f8f6;
  --note-a: #0a4a52; --note-b: #0d6068; --note-ink: #e6f3ef; --note-dim: #a9d3cc; --note-short-a: #6d1830; --note-short-b: #98243f;
  --must: #0e6b75; --flex: #9a6500; --fun: #ad2a74; --good: #0f7a56; --bad: #c0263f; --save: #2f4fd0; --spend: #3b5356;
  --must-t: #d7eaea; --flex-t: #f3e6c8; --fun-t: #f6dcea; --good-t: #d3ecdf; --bad-t: #f8dde2; --save-t: #dde3fa; --plain-t: #e0e8e6;
  --shadow: 0 -10px 40px rgba(9, 38, 44, .16);
  --scrim: rgba(7, 26, 31, .5);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0a1518; --surface: #122126; --raise: #1a2d33; --ink: #e8f1ef; --ink-2: #a7bcbc; --ink-3: #7f9798; --line: #233a40;
    --petrol: #2a9aa5; --on-petrol: #04191d;
    --note-a: #0b4650; --note-b: #115c66; --note-ink: #e6f3ef; --note-dim: #a2d0c9; --note-short-a: #5e1529; --note-short-b: #8a2039;
    --must: #4fbcc6; --flex: #e2ae4b; --fun: #ec79b6; --good: #4ecb9c; --bad: #f4728a; --save: #8ea3f7; --spend: #9db4b5;
    --must-t: #123b42; --flex-t: #3a2d10; --fun-t: #431a33; --good-t: #113a2e; --bad-t: #46182a; --save-t: #1e2a58; --plain-t: #1c3036;
    --shadow: 0 -10px 40px rgba(0, 0, 0, .5); --scrim: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0a1518; --surface: #122126; --raise: #1a2d33; --ink: #e8f1ef; --ink-2: #a7bcbc; --ink-3: #7f9798; --line: #233a40;
  --petrol: #2a9aa5; --on-petrol: #04191d;
  --note-a: #0b4650; --note-b: #115c66; --note-ink: #e6f3ef; --note-dim: #a2d0c9; --note-short-a: #5e1529; --note-short-b: #8a2039;
  --must: #4fbcc6; --flex: #e2ae4b; --fun: #ec79b6; --good: #4ecb9c; --bad: #f4728a; --save: #8ea3f7; --spend: #9db4b5;
  --must-t: #123b42; --flex-t: #3a2d10; --fun-t: #431a33; --good-t: #113a2e; --bad-t: #46182a; --save-t: #1e2a58; --plain-t: #1c3036;
  --shadow: 0 -10px 40px rgba(0, 0, 0, .5); --scrim: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
html.sheet-open, html.sheet-open body { overflow: hidden; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--must); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; display: block; }
.amt { white-space: nowrap; }
.privacy .amt { filter: blur(.42em); user-select: none; }
.good { color: var(--good); } .bad { color: var(--bad); }

/* İskelet */
.app { max-width: 480px; margin: 0 auto; padding-block: max(14px, env(safe-area-inset-top, 0px)) calc(104px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 18px; }
section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
section:empty { display: none; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.top h1 { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-stretch: 88%; }
.eyebrow { font-size: 12.5px; color: var(--ink-2); font-weight: 500; margin-bottom: 2px; }
.top-actions { display: flex; gap: 4px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; color: var(--ink-2); flex: none; }
.icon-btn:active { background: var(--raise); }
.demo-banner { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--flex); background: var(--flex-t); padding: 8px 12px; border-radius: 10px; }
.demo-banner span { flex: 1; min-width: 0; }
.demo-banner .ic { width: 16px; height: 16px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.sec-head h2 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; font-stretch: 92%; }
.sec-amt { font-weight: 650; }
.link { border: 0; background: none; padding: 6px 0 6px 8px; color: var(--must); font-weight: 600; font-size: 14px; }
.quiet { color: var(--ink-3); font-size: 14px; padding: 4px 0; }
.hint { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.sub-title { font: 650 14px/1.3 var(--font-body); color: var(--ink); margin-top: 10px; }

/* Banknot */
.note { position: relative; isolation: isolate; display: grid; gap: 4px; width: 100%; padding: 18px 56px 15px 20px; text-align: left; border: 0; border-radius: 12px; overflow: hidden; color: var(--note-ink); background: var(--guilloche, none) center / cover no-repeat, linear-gradient(120deg, var(--note-a), var(--note-b)); box-shadow: 0 10px 26px rgba(8, 58, 65, .28); }
.note::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(230, 243, 239, .22); border-radius: 8px; pointer-events: none; }
.note.short { background: var(--guilloche, none) center / cover no-repeat, linear-gradient(120deg, var(--note-short-a), var(--note-short-b)); box-shadow: 0 10px 26px rgba(109, 24, 48, .3); }
.note-strip { position: absolute; top: 0; bottom: 0; right: 26px; width: 13px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .34) 0 2px, transparent 2px 7px), linear-gradient(172deg, #9fe9d8, #b9b8ff 34%, #f7b9da 62%, #ffe3a0 88%); opacity: .82; }
.note-top { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 500; color: var(--note-dim); }
.serial { font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: 11px; color: var(--note-dim); }
.note-amount { font: 700 46px/1.08 var(--font-display); letter-spacing: -.03em; font-stretch: 86%; margin-top: 6px; font-variation-settings: 'opsz' 96; }
.note-line { font-size: 14px; color: var(--note-ink); }
.note-track { display: block; height: 3px; margin-top: 12px; background: rgba(230, 243, 239, .22); border-radius: 2px; overflow: hidden; }
.note-track i { display: block; height: 100%; background: var(--note-ink); }
.note-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11.5px; color: var(--note-dim); }
.note-foot span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.note-foot .ic { width: 13px; height: 13px; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis > div { padding: 2px 10px; border-left: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; }
.kpis > div:first-child { border-left: 0; padding-left: 0; }
.kpis > div > span { font-size: 12.5px; color: var(--ink-2); }
.kpis b { font: 650 18px/1.3 var(--font-display); font-stretch: 88%; letter-spacing: -.01em; }
.kpis small { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; }

.alerts { display: flex; flex-direction: column; gap: 6px; }
.alert { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; text-align: left; font-size: 13.5px; line-height: 1.4; color: var(--ink); }
.alert .ic { width: 18px; height: 18px; margin-top: 1px; }
.alert.bad { background: var(--bad-t); } .alert.bad .ic { color: var(--bad); }
.alert.warn { background: var(--flex-t); } .alert.warn .ic { color: var(--flex); }

/* Listeler */
.list { display: flex; flex-direction: column; }
.list > .row + .row { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 9px 0; border: 0; background: none; text-align: left; color: inherit; }
button.row:active { opacity: .65; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-weight: 550; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.row-sub { font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.row-sub em { font-style: normal; color: var(--bad); font-weight: 600; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; margin-left: 8px; flex: none; }
.row-amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.row-amt.bad { color: var(--bad); }
.tx.future { opacity: .55; }
.tile { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.t-must { background: var(--must-t); color: var(--must); } .t-flex { background: var(--flex-t); color: var(--flex); } .t-fun { background: var(--fun-t); color: var(--fun); }
.t-good { background: var(--good-t); color: var(--good); } .t-bad { background: var(--bad-t); color: var(--bad); } .t-save { background: var(--save-t); color: var(--save); } .t-plain { background: var(--plain-t); color: var(--ink-2); }
.date-tile { width: 38px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.date-tile b { font: 650 19px/1.1 var(--font-display); font-stretch: 88%; }
.date-tile i { font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.due.late .date-tile b { color: var(--bad); }
.mini { border: 1px solid var(--line); background: var(--surface); color: var(--must); font-weight: 600; font-size: 12.5px; padding: 3px 10px; border-radius: 8px; min-height: 28px; }
.mini:active { background: var(--raise); }

.bar { position: relative; display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--raise); margin-top: 4px; }
.bar i { display: block; height: 100%; border-radius: 3px; }
.bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.b-must { background: var(--must); } .b-flex { background: var(--flex); } .b-fun { background: var(--fun); } .b-good { background: var(--good); } .b-bad { background: var(--bad); } .b-save { background: var(--save); } .b-quiet { background: var(--ink-3); } .b-spend { background: var(--spend); } .b-rest { background: var(--line); }
.stack { display: flex; gap: 2px; height: 12px; border-radius: 4px; overflow: hidden; }
.stack.tall { height: 18px; }
.stack i { min-width: 3px; }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.legend > * { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 6px; align-items: center; border: 0; background: none; padding: 2px 0; text-align: left; font-size: 12.5px; color: var(--ink-2); }
.legend b { grid-column: 2; font-weight: 650; color: var(--ink); font-size: 14.5px; }
.legend small { grid-column: 2; font-size: 11.5px; color: var(--ink-3); }
.legend.wrap { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.dot { width: 10px; height: 10px; border-radius: 3px; }

.compass { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compass button { display: flex; flex-direction: column; gap: 2px; padding: 12px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: left; min-width: 0; }
.compass button > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.compass .ic { width: 15px; height: 15px; }
.compass b { font: 650 19px/1.25 var(--font-display); font-stretch: 88%; letter-spacing: -.01em; }
.compass small { font-size: 11.5px; color: var(--ink-3); }

/* Denetimler */
.seg { display: flex; padding: 3px; gap: 2px; background: var(--raise); border-radius: 11px; }
.seg button { flex: 1; min-height: 36px; padding: 6px 4px; border: 0; background: none; border-radius: 9px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); min-width: 0; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(9, 38, 44, .14); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip.on { background: var(--petrol); border-color: var(--petrol); color: var(--on-petrol); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 16px; color: var(--ink); }
.btn { min-height: 46px; padding: 10px 16px; border: 0; border-radius: 12px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.primary { background: var(--petrol); color: var(--on-petrol); }
.btn.ghost { background: var(--raise); color: var(--ink); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger-text { color: var(--bad); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.btn-row .btn { padding-inline: 8px; font-size: 14px; }

/* Hareketler */
.period-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.period-nav div { text-align: center; display: flex; flex-direction: column; min-width: 0; }
.period-nav b { font: 650 18px/1.2 var(--font-display); font-stretch: 90%; }
.period-nav small { font-size: 12.5px; color: var(--ink-3); }
.filters { margin-top: -8px; }
.day header { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.day h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.day { gap: 0; }
#moves-list { display: flex; flex-direction: column; gap: 12px; }

/* Borçlar */
.debt-total { font-size: 40px !important; color: var(--bad); font-variation-settings: 'opsz' 96; }
.tab-debts .top { flex-direction: column; align-items: flex-start; gap: 4px; }
.debt-split { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.plan-card { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; gap: 10px; }
.slider { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; margin-top: 2px; }
.slider label { font-size: 13.5px; color: var(--ink-2); }
.slider output { font: 650 20px/1.2 var(--font-display); font-stretch: 88%; }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--petrol); height: 32px; margin: 0; }
#plan-view { display: flex; flex-direction: column; gap: 8px; }
.debt-free { display: flex; flex-direction: column; }
.debt-free > span { font-size: 12.5px; color: var(--ink-2); }
.debt-free b { font: 700 30px/1.15 var(--font-display); font-stretch: 86%; letter-spacing: -.02em; color: var(--good); font-variation-settings: 'opsz' 72; }
.debt-free small { font-size: 12.5px; color: var(--ink-3); }
.path { width: 100%; height: auto; display: block; }
.path .axis { stroke: var(--line); stroke-width: 1; }
.path .area { fill: var(--must-t); }
.path .plan { fill: none; stroke: var(--must); stroke-width: 2.25; stroke-linejoin: round; }
.path .base { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 4 4; }
.path .pin { fill: var(--good); stroke: var(--surface); stroke-width: 2; }
.path text { font: 500 11px var(--font-body); fill: var(--ink-3); }
.path .strong { fill: var(--ink); font-weight: 650; }
.legend-line { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); }
.legend-line span { display: inline-flex; gap: 6px; align-items: center; }
.ln { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--must); }
.ln.base { border-top: 1.5px dashed var(--ink-3); }
.gain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gain > div { padding: 10px 12px; background: var(--good-t); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; }
.gain b { font: 650 18px/1.2 var(--font-display); font-stretch: 88%; color: var(--good); }
.gain > div > span { font-size: 12px; color: var(--ink-2); }
.dotnum { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.row.focus .dotnum { color: var(--good); }
.row.focus .row-title { font-weight: 650; }
.warn-box { display: flex; gap: 10px; padding: 12px; background: var(--bad-t); border-radius: 10px; font-size: 13.5px; }
.warn-box .ic { color: var(--bad); }

/* Plan */
.plan-body { display: flex; flex-direction: column; gap: 18px; }
.callout { display: flex; gap: 12px; padding: 13px; background: var(--save-t); border-radius: 12px; }
.callout > .ic { color: var(--save); margin-top: 1px; }
.callout b { font-weight: 650; }
.callout p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.callout .link { padding-left: 0; color: var(--save); }
.year-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; align-items: end; height: 128px; }
.year-bars button { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 4px; height: 100%; border: 0; background: none; padding: 0; color: var(--ink-3); min-width: 0; }
.year-bars i { display: block; background: var(--line); border-radius: 3px 3px 1px 1px; }
.year-bars .heavy i { background: var(--flex); }
.year-bars .on i { background: var(--petrol); }
.year-bars span { font-size: 10.5px; text-align: center; }
.year-bars .on span { color: var(--ink); font-weight: 650; }
.alloc { display: flex; flex-direction: column; gap: 10px; }
.budget-sum { margin-top: -2px; }
.cat-row .bar { margin-block: 4px 2px; }
.field-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.field-card > div { display: flex; flex-direction: column; min-width: 0; }
.field-card b { font: 650 22px/1.2 var(--font-display); font-stretch: 88%; }
.field-card small { font-size: 12px; color: var(--ink-3); }
.field-card .btn { min-height: 38px; font-size: 13.5px; flex: none; }
.goals { display: flex; flex-direction: column; gap: 10px; }
.goal { padding: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 9px; }
.goal header { display: flex; align-items: center; gap: 10px; }
.goal header div { flex: 1; min-width: 0; }
.goal h3 { font-size: 15px; font-weight: 600; }
.goal small { font-size: 12.5px; color: var(--ink-3); }
.goal footer { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); }
.goal footer b { color: var(--save); }
.goal .btn { min-height: 40px; font-size: 14px; }
.first .sec-head { margin-top: 0; }
.legend-inline { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.legend-inline i { width: 9px; height: 9px; border-radius: 2px; margin-left: 6px; }
.month-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.month-bars > div { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.pair { display: flex; align-items: flex-end; gap: 3px; height: 122px; }
.pair > i, .pair span i { display: block; width: 14px; border-radius: 2px 2px 0 0; }
.pair span { display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; height: 100%; }
.month-bars b { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.month-bars span:last-child { font-size: 11px; color: var(--ink-3); }
.insights { display: flex; flex-direction: column; }
.insight { display: flex; gap: 12px; padding: 11px 0; }
.insight + .insight { border-top: 1px solid var(--line); }
.insight h3 { font-size: 14.5px; font-weight: 620; line-height: 1.3; }
.insight p { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.fun-trend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; }
.fun-trend > div { display: flex; flex-direction: column; align-items: center; gap: 3px; justify-content: flex-end; }
.fun-trend i { width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; }
.fun-trend b { font-size: 11px; font-weight: 600; }
.fun-trend span { font-size: 11px; color: var(--ink-3); }

/* Alt menü */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; max-width: 480px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); background: var(--surface); background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.nav > button:not(.coin) { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 7px; border: 0; background: none; color: var(--ink-3); font-size: 11px; font-weight: 550; min-width: 0; }
.nav > button.on { color: var(--must); }
.coin { justify-self: center; width: 58px; height: 58px; margin-top: -20px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--on-petrol); background: radial-gradient(circle, var(--petrol) 0 66%, transparent 67%), repeating-conic-gradient(var(--petrol) 0 5deg, var(--on-petrol) 5deg 7deg); box-shadow: 0 6px 16px rgba(8, 58, 65, .35); }
.coin .ic { width: 26px; height: 26px; stroke-width: 2.25; }
.coin:active { transform: scale(.95); }

/* Alt sayfalar */
#sheets { position: relative; z-index: 40; }
.sheet-wrap { position: fixed; inset: 0; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .26s; }
.sheet-wrap.open .scrim { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 12px); display: flex; flex-direction: column; background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: var(--shadow); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .85, .25, 1); outline: 0; }
.sheet-wrap.open .sheet { transform: none; }
.grab { flex: none; height: 22px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.grab::before { content: ""; width: 38px; height: 4px; border-radius: 2px; background: var(--line); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sh-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; font-stretch: 90%; line-height: 1.15; }
.sh-head p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.sh-head .icon-btn { margin: -6px -8px 0 0; }
.confirm { display: flex; flex-direction: column; gap: 8px; }
.confirm h2 { font-size: 20px; font-weight: 700; }
.confirm p { font-size: 14px; color: var(--ink-2); }
.confirm .form-actions { margin-top: 8px; }

.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .lbl { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.field small { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.field input[type=text], .field input[type=date], .field select, .inline-input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--ground); font-size: 16px; color: var(--ink); }
.field input:focus, .field select:focus, .inline-input:focus { outline: 2px solid var(--must); outline-offset: -1px; }
.field input::placeholder { color: var(--ink-3); }
.with-unit { position: relative; }
.with-unit input { padding-right: 32px; font-variant-numeric: tabular-nums; }
.with-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.field-note { font-size: 13px; color: var(--ink-2); }
.toggle label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.toggle label > span { display: flex; flex-direction: column; min-width: 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line); transition: background .15s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.toggle input:checked + i { background: var(--petrol); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--must); outline-offset: 2px; }
.month-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.month-grid .chip { padding: 4px 0; min-height: 36px; font-size: 13px; }
.form-error { color: var(--bad); font-size: 13.5px; font-weight: 550; }
.form-actions { display: flex; gap: 8px; margin-top: 4px; }
.form-actions .btn { flex: 1; }
.form-actions .btn.primary, .form-actions .btn.danger { flex: 2; }

.calc { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 3px 0; color: var(--ink-2); }
.calc b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.calc b.bad { color: var(--bad); }
.calc.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; color: var(--ink); font-weight: 600; }
.calc-title { font: 650 14px/1.3 var(--font-body); margin-top: 4px; }
.sheet-body > .calc { margin-block: -8px; }
.sheet-body > .calc.total { margin-top: -2px; }

.limit > div:last-child { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.statement { display: flex; flex-direction: column; padding: 14px; border-radius: 12px; background: var(--raise); }
.statement > span { font-size: 13px; color: var(--ink-2); }
.statement b { font: 700 32px/1.15 var(--font-display); font-stretch: 86%; letter-spacing: -.02em; }
.statement small { font-size: 12.5px; color: var(--ink-2); }
.statement.late { background: var(--bad-t); } .statement.late b { color: var(--bad); }
.statement.done { background: var(--good-t); } .statement.done b { color: var(--good); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.fact { display: flex; flex-direction: column; min-width: 0; }
.fact > span { font-size: 12px; color: var(--ink-3); }
.fact b { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line); }
.dots i.on { background: var(--good); border-color: var(--good); }
.minibars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; }
.minibars > div { display: flex; flex-direction: column; align-items: center; gap: 3px; justify-content: flex-end; min-width: 0; }
.minibars i { width: 100%; background: var(--must); border-radius: 3px 3px 0 0; }
.minibars b { font-size: 10px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.minibars span { font-size: 11px; color: var(--ink-3); }

.set-group { gap: 6px; }
.set-group h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.backup-box { display: flex; flex-direction: column; gap: 10px; padding: 13px; background: var(--raise); border-radius: 12px; }
.backup-box > div { display: flex; gap: 10px; }
.backup-box > div > span { display: flex; flex-direction: column; min-width: 0; }
.backup-box small { font-size: 12.5px; color: var(--ink-2); }
.backup-box.none { background: var(--flex-t); }
.about { font-size: 12px; color: var(--ink-3); line-height: 1.5; }

/* Hızlı kayıt */
.sheet.add { height: calc(100dvh - env(safe-area-inset-top, 0px) - 8px); }
.sheet.add .sheet-body { flex: 1; overflow: hidden; gap: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.add-top { display: flex; align-items: center; gap: 6px; }
.add-top .seg { flex: 1; }
.add-top .seg button { font-size: 13px; }
.big-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 4px 0 2px; font-family: var(--font-display); font-variation-settings: 'opsz' 96; }
.big-amount b { font-size: clamp(38px, 12vw, 50px); font-weight: 700; letter-spacing: -.03em; font-stretch: 86%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big-amount span { font-size: 24px; font-weight: 600; color: var(--ink-3); }
.big-amount.income b { color: var(--good); } .big-amount.debt b { color: var(--bad); }
.add-error { text-align: center; }
.add-scroll { flex: 1; min-height: 0; overflow: hidden auto; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.picker { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-strip { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 70px; gap: 4px 2px; overflow-x: auto; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border: 0; background: none; border-radius: 10px; font-size: 11.5px; line-height: 1.2; color: var(--ink-2); text-align: center; min-width: 0; }
.cat span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat.on { background: var(--raise); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 2px var(--must); }
.cat-group { gap: 6px; }
.cat-group h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 9px; background: none; font-size: 13px; color: var(--ink-2); max-width: 100%; }
.pill .ic { width: 14px; height: 14px; }
.pill.set { color: var(--must); border-color: var(--must); }
.pill.need-must { color: var(--must); } .pill.need-flex { color: var(--flex); } .pill.need-fun { color: var(--fun); }
.date-pill input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.panel { display: flex; flex-direction: column; gap: 6px; }
.inline-input { height: 42px; }
.keys { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.keys button { height: clamp(38px, 6.6dvh, 58px); display: grid; place-items: center; border: 0; border-radius: 11px; background: var(--raise); font: 600 22px/1 var(--font-display); font-stretch: 90%; color: var(--ink); }
.keys button:active { background: var(--line); }
.add-actions { flex: none; display: flex; gap: 8px; }
.add-actions .btn { flex: 1; min-height: 50px; }
.add-actions .btn.primary { flex: 3; font-size: 16px; }

/* Açılış */
.onboard { max-width: 480px; min-height: 100dvh; margin: 0 auto; padding-block: max(24px, env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 14px; }
.onboard h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-stretch: 88%; line-height: 1.1; }
.lead { color: var(--ink-2); font-size: 15.5px; }
.steps { display: flex; gap: 5px; margin-bottom: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--petrol); }
.ob-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.ob-foot .btn { flex: 1; } .ob-foot .btn.primary { flex: 2; } .ob-foot > span { flex: 1; }
.welcome { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; margin-top: 8vh; }
.brand img { border-radius: 18px; }
.welcome h1 { font-size: 44px; }
.welcome .lead { font: 600 25px/1.2 var(--font-display); font-stretch: 90%; color: var(--ink); letter-spacing: -.01em; }
.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.promises li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.promises .ic { color: var(--must); }
.welcome-actions { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.presets { display: flex; flex-direction: column; }
.preset { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; border-top: 1px solid var(--line); }
.presets .preset:first-child { border-top: 0; }
.check { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 0; font-size: 15px; text-align: left; flex: 1; min-width: 0; color: var(--ink-2); }
.preset.on .check { color: var(--ink); font-weight: 550; }
.preset.on .ic { color: var(--must); }
.preset .with-unit { width: 124px; flex: none; }
.preset input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 0 26px 0 10px; font-size: 16px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 16px; color: var(--ink-3); }
.empty .ic { width: 30px; height: 30px; }
.empty h3 { font-size: 15.5px; font-weight: 620; color: var(--ink); }
.empty p { font-size: 13.5px; max-width: 30ch; }
.empty .btn { margin-top: 8px; }

#toasts { position: fixed; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 16px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 448px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--ground); font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.in { opacity: 1; transform: none; }
.toast.bad { background: var(--bad); color: #fff; }
.toast button { border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; padding: 4px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
