/* HEA Takip uygulama stilleri. Renk ve yazı tipi tokenları /hea-kimlik/hea-tema.css'ten gelir
   (HEA Mimarlık kurumsal kimliği). Burada sabit renk yok, yalnız var(--...) kullanılır. */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font-family: var(--font); color: var(--ink); }
body { overscroll-behavior-y: none; }

/* Üst çubuk */
.appbar .grow { flex: 1; }
.appbar .back { font: 200 34px/1 var(--font); color: var(--ink); margin: -6px 2px 0 -6px; padding: 0 6px; }
.appbar .title { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { padding: 8px; margin-right: -8px; color: var(--muted); display: grid; place-items: center; min-width: var(--tap); min-height: var(--tap); }
.sync { font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sync.err { color: var(--neg); } .sync.pending { color: var(--warn); }

main { padding: 0 0 calc(110px + var(--safe-bottom)); max-width: 720px; margin: 0 auto; }
.pad { padding: 0 20px; }

/* Sayfa başlığı: ince + kalın Montserrat, altında vurgu çubuğu */
.hero { padding: 26px 20px 4px; }
.hero .caps { margin: 0 0 6px; }
.hero .h-title { font-size: 30px; }
.hero .bar { margin-bottom: 4px; }

/* Alt sekmeler (tema .tabbar a için yazılmış; burada button kullanıyoruz) */
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0;
  font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tabbar button svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on { color: var(--ink); }
.fab { bottom: calc(var(--safe-bottom) + 80px); }

/* Özet kutuları */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 16px; min-width: 0; }
.stat .l { font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-size: 22px; line-height: 1.1; font-weight: 200; letter-spacing: -.02em; color: var(--ink); margin-top: 10px;
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat .u { font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.stat.wide { grid-column: span 2; }
.pos { color: var(--pos) !important; } .neg { color: var(--neg) !important; } .warn { color: var(--warn) !important; }

/* Bölüm başlığı: imza öğesi yapı çizgisi */
.section-title { display: flex; align-items: center; gap: 12px; margin: 30px 20px 10px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); order: 1; }
.section-title > * { order: 0; }
.section-title button { order: 2; color: var(--ink); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.section-title .sum { order: 2; letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Listeler */
.list { margin: 0; }
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 20px; width: 100%; text-align: left;
  border-bottom: 1px solid var(--hair); color: var(--text); text-decoration: none; background: var(--surface); }
.row:last-child { border-bottom: 0; }
.row .main { flex: 1; min-width: 0; display: block; }
.row .t { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .s { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .amt { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.row .amt small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.row.done .t { text-decoration: line-through; color: var(--muted); }
.row:active { background: var(--surface-2); }
.check { width: 22px; height: 22px; border: 1.5px solid var(--muted); border-radius: 3px; display: grid; place-items: center; flex: none; }
.check.on { background: var(--ink); border-color: var(--ink); }
.check.on::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--on-ink); border-bottom: 2px solid var(--on-ink); transform: translateY(-1px) rotate(-45deg); }
.badge { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 2px; vertical-align: 2px; margin-right: 4px;
  font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border: 1px solid currentColor; }
.badge.in { color: var(--pos); } .badge.out { color: var(--neg); } .badge.warn { color: var(--warn); } .badge.mute { color: var(--muted); }
.dot { width: 3px; align-self: stretch; margin: -12px 0 -12px -20px; flex: none; }
.meter { margin-top: 10px; }
.meter > i { background: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 36px 24px; font-size: 14px; }
.chev { color: var(--muted); font-size: 18px; }
.card-pad { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius-lg); padding: 16px; margin: 10px 20px; }

/* Segment ve filtre çipleri */
.seg { display: flex; margin: 26px 20px 0; border-bottom: 1px solid var(--rule); }
.seg button { flex: 1; padding: 12px 4px; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.seg button.on { color: var(--ink); border-color: var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 18px 20px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { height: 32px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--rule); white-space: nowrap;
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--text); }
.chips button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.search { display: block; width: calc(100% - 40px); margin: 10px 20px 0; min-height: var(--tap); padding: 10px 12px; font-size: 16px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.search:focus { outline: none; border-color: var(--ink); }

/* Alt sayfa (form) */
.sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 0 calc(24px + var(--safe-bottom)); animation: up .25s var(--ease); }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; position: sticky; top: 0;
  background: var(--bg); z-index: 1; border-bottom: 1px solid var(--hair); }
.sheet-head h3 { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
.sheet-head button { min-height: var(--tap); padding: 0 6px; font-size: 13px; color: var(--muted); }
.sheet-head .save { color: var(--ink); font-weight: 600; }
.form { background: var(--surface); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin: 18px 0 0; }
.form label { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--hair); min-height: 52px; }
.form label:last-child { border-bottom: 0; }
.form label > span { width: 104px; flex: none; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { flex: 1; border: 0; background: transparent; padding: 14px 0; outline: none; min-width: 0; font-size: 16px; color: var(--ink); }
.form textarea { min-height: 72px; resize: vertical; }
.form input[type=checkbox] { flex: none; width: 22px; height: 22px; accent-color: var(--ink); }
.big-amount { font-size: 30px !important; font-weight: 200 !important; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kind-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 20px 0; }
.kind-toggle button { min-height: 46px; border-radius: var(--radius); border: 1px solid var(--rule); color: var(--muted);
  font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.kind-toggle button.on.in { border-color: var(--pos); color: var(--pos); }
.kind-toggle button.on.out { border-color: var(--neg); color: var(--neg); }
.sheet .btn, main > .btn { display: flex; width: calc(100% - 40px); margin: 12px 20px 0; }
.btn.danger { color: var(--neg); border-color: var(--neg); }
.btn.small { width: auto !important; margin: 0 !important; min-height: 34px; padding: 0 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 10px 20px 0; line-height: 1.5; }
.ok-box, .warn-box { border: 1px solid currentColor; border-radius: var(--radius); padding: 12px 14px; font-size: 13px; font-weight: 500; }
.ok-box { color: var(--pos); } .warn-box { color: var(--warn); }
.sheet .card-pad { margin: 18px 20px 0; }

.toast { z-index: 40; display: flex; gap: 16px; align-items: center; max-width: calc(100vw - 40px); bottom: calc(var(--safe-bottom) + 150px); }
.toast button { color: var(--on-ink); font-weight: 600; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; text-decoration: underline; }

/* Giriş */
.login { position: fixed; inset: 0; background: var(--bg); z-index: 50; display: grid; place-items: center; padding: 24px; }
.login-box { width: 100%; max-width: 320px; text-align: center; }
.login-logo { width: 200px; height: auto; display: block; margin: 0 auto; }
.login-box .caps { margin: 14px 0 32px; }
.login-box input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); font-size: 17px; margin-bottom: 12px; }
.login-box input:focus { outline: none; border-color: var(--ink); }
.err { color: var(--neg); min-height: 1.4em; font-size: 13px; }

/* Yapılacaklar ana ekranı (kit: .quick-add .segmented .task .mini-stats) */
.chip { cursor: pointer; height: 30px; padding: 0 12px; }
.chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.task .main { display: block; text-align: left; }
.task .check { display: grid; place-items: center; }
.task .check.on { background: var(--ink); border-color: var(--ink); }
.section-title.neg { color: var(--neg); }
.mini-stats { padding: 0; font: inherit; cursor: pointer; }
.mini-stats .v { color: inherit; }
.task-group + .section-title { margin-top: 26px; }
.day-progress .section-title::after { display: none; }
