/* Netim · Optik form ve fosforlu kalem.
   Görsel dil sınav masasından geliyor: kâğıt zemin, grafit mürekkep, kurşun kalemle
   doldurulan yuvarlaklar. Renk psikolojisi: çam yeşili (sakinlik, büyüme), fosforlu sarı
   (sadece emeğin altını çizmek için), şeftali (nazik hatırlatma; alarm kırmızısı yerine).
   Kırmızı sadece "sil" için. Gradyan ve dinlenen kartta gölge yok; yüzeyler ton farkıyla ayrılır. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f1f3ef;           /* kâğıt */
  --surface: #ffffff;
  --surface-2: #e7ebe6;
  --text: #1c2124;         /* grafit */
  --muted: #5a6367;
  --line: #d6ddd7;
  --accent: #1f5f55;       /* çam yeşili */
  --accent-strong: #154a42;
  --accent-ink: #ffffff;
  --accent-soft: #dbeae5;
  --mark: #f3e45a;         /* fosforlu kalem */
  --mark-ink: #1c2124;
  --good: #2b7a4b;
  --good-soft: #dff0e3;
  --care: #a45d1a;
  --care-soft: #f7eadb;
  --calm: #2d6590;
  --calm-soft: #e2ecf4;
  --danger: #b0414a;
  --hero: #1f5f55;
  --hero-ink: #f4f7f3;
  --float: 0 12px 32px rgba(20, 30, 28, .16);
  --radius: 16px;
  --tabbar-h: 70px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121614;
    --surface: #1a1f1d;
    --surface-2: #242a27;
    --text: #e8ece8;
    --muted: #9ba6a1;
    --line: #2d3531;
    --accent: #7cc4b2;
    --accent-strong: #a3dccd;
    --accent-ink: #0e1a17;
    --accent-soft: #1d3530;
    --mark: #e6d752;
    --mark-ink: #15191a;
    --good: #82cc9b;
    --good-soft: #1b3324;
    --care: #efb47b;
    --care-soft: #372a1d;
    --calm: #8ebfe6;
    --calm-soft: #1b2b39;
    --danger: #ee8a92;
    --hero: #1d4a43;
    --hero-ink: #eef4f1;
    --float: 0 12px 32px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121614;
  --surface: #1a1f1d;
  --surface-2: #242a27;
  --text: #e8ece8;
  --muted: #9ba6a1;
  --line: #2d3531;
  --accent: #7cc4b2;
  --accent-strong: #a3dccd;
  --accent-ink: #0e1a17;
  --accent-soft: #1d3530;
  --mark: #e6d752;
  --mark-ink: #15191a;
  --good: #82cc9b;
  --good-soft: #1b3324;
  --care: #efb47b;
  --care-soft: #372a1d;
  --calm: #8ebfe6;
  --calm-soft: #1b2b39;
  --danger: #ee8a92;
  --hero: #1d4a43;
  --hero-ink: #eef4f1;
  --float: 0 12px 32px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
b { font-weight: 750; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 18px 12px;
  background: var(--bg);
}
.topbar:empty { display: none; }
.top-txt { min-width: 0; }
.topbar h1 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.02em; line-height: 1.15; }
.top-txt span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; margin-left: -10px;
  border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer;
  transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.sm { width: 32px; height: 32px; margin: -6px -8px 0 0; color: var(--muted); }
.icon-btn.sm svg { width: 16px; height: 16px; }

/* ---------- Sayfa ---------- */
.view {
  max-width: 560px; margin: 0 auto;
  padding: 4px 18px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 32px);
  display: flex; flex-direction: column; gap: 12px;
}
.view > * { animation: rise .4s cubic-bezier(.2, .7, .3, 1) both; }
.view > :nth-child(2) { animation-delay: .04s; }
.view > :nth-child(3) { animation-delay: .08s; }
.view > :nth-child(4) { animation-delay: .12s; }
.view > :nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.no-tabs .tabbar { display: none; }
body.no-tabs .view { padding-bottom: 36px; }

.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head b { font-size: 16px; }
.card-head small { color: var(--muted); font-size: 13px; }
.sec { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 14px 2px -2px; }
.muted-p { color: var(--muted); font-size: 14px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.4; }
.center { text-align: center; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 99px;
  background: var(--surface-2); color: var(--text);
  font: inherit; font-weight: 750; cursor: pointer;
  transition: transform .12s, background .15s, filter .15s;
}
.btn:hover { filter: brightness(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); filter: none; }
.btn.danger { color: var(--danger); background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 35%, transparent); }
.btn.block { width: 100%; }
.btn:active { transform: scale(.97); }
.actions { display: flex; gap: 10px; }
.actions > * { flex: 1; }

/* ---------- Karşılama ---------- */
.welcome { padding: calc(env(safe-area-inset-top) + 40px) 4px 8px; }
.welcome-art { width: 64px; height: 64px; }
.welcome-art img { width: 64px; height: 64px; border-radius: 18px; display: block; }
.welcome h1 { margin: 22px 0 10px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 12ch; }
.welcome > p { color: var(--text); font-size: 17px; max-width: 34ch; }
.welcome-points { list-style: none; padding: 0; margin: 26px 0 6px; display: grid; gap: 14px; }
.welcome-points li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 650; }
/* Optik formdaki şık yuvarlakları */
.welcome-points span {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  border-radius: 50%; background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 800;
}

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 750; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
input, select {
  font: inherit; color: var(--text);
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px;
  min-height: 52px; padding: 0 14px; width: 100%;
  transition: border-color .15s, background .15s;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input:focus, select:focus { outline: none; border-color: var(--accent); background: var(--surface); }
select { width: auto; min-height: 40px; padding: 0 12px; border-radius: 99px; font-weight: 700; font-size: 14px; cursor: pointer; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.row2 input[type=date] { padding: 0 8px 0 12px; }

/* Seçenekler hep tek satırda, eşit genişlikte; uzun ad ("Eşit Ağırlık") iki satıra iner */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 18px; }
.seg label { min-width: 0; display: flex; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg span {
  flex: 1; display: grid; place-items: center; text-align: center; line-height: 1.15; min-height: 46px;
  padding: 6px 4px; border-radius: 14px; font-weight: 750; color: var(--muted); cursor: pointer;
  transition: background .18s, color .18s;
}
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.form-type { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

.targets { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.tgt { display: grid; grid-template-columns: 1fr 100px 44px; align-items: center; gap: 8px; font-weight: 650; }
.tgt input { text-align: center; font-weight: 750; }
.tgt small { color: var(--muted); }

/* Anahtar (switch) */
.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sw {
  flex: none; position: relative; width: 50px; height: 30px; margin-top: 2px;
  border-radius: 99px; background: var(--line); transition: background .2s;
}
.sw::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(20px); }
.switch input:focus-visible + .sw { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.sw-txt b { display: block; font-size: 15px; }
.sw-txt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* Ders satırları */
.subjects { padding: 6px 16px; }
.sub-head, .srow { display: grid; grid-template-columns: 1fr 64px 64px 52px; gap: 8px; align-items: center; }
.sub-head { font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 0 6px; }
.sub-head span:not(:first-child) { text-align: center; }
.srow { padding: 10px 0; }
.srow + .srow { box-shadow: 0 -1px 0 var(--surface-2); }
.sname { font-weight: 750; line-height: 1.2; }
.sname small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; margin-top: 2px; }
.num { text-align: center; padding: 0 4px; font-size: 19px; font-weight: 800; min-height: 50px; }
.snet { text-align: center; font-weight: 800; font-size: 17px; color: var(--accent-strong); }
.serr { grid-column: 1 / -1; font-size: 13px; color: var(--care); font-weight: 650; }
.serr:empty { display: none; }
.srow.bad .num { border-color: var(--care); background: var(--care-soft); }

.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.moods input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.moods span {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 2px 8px; border-radius: 14px; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px transparent;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.moods i { font-style: normal; font-size: 26px; line-height: 1.1; filter: grayscale(.6); opacity: .75; transition: filter .15s, opacity .15s, transform .2s; }
.moods span:hover i { opacity: 1; }
.moods input:checked + span { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-strong); }
.moods input:checked + span i { filter: none; opacity: 1; transform: scale(1.12); }
.moods input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.form-foot {
  position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--text); color: var(--bg); border-radius: 99px;
  padding: 8px 8px 8px 24px; box-shadow: var(--float);
}
.total { display: flex; align-items: baseline; gap: 6px; }
.total span { font-size: 13px; font-weight: 700; opacity: .7; margin-right: 4px; }
.total b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.total small { opacity: .6; }
.form-foot .btn.primary { background: var(--mark); color: var(--mark-ink); }

/* ---------- Ana sayfa ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 22px 22px 22px; border-radius: 22px;
  background: var(--hero); color: var(--hero-ink);
}
.hero-k { position: relative; font-size: 15px; font-weight: 700; opacity: .85; }
.hero-main { position: relative; display: flex; align-items: baseline; gap: 10px; margin: 10px 0 8px; }
/* Sayı fosforlu kalemle yazılmış gibi */
.hero-num { font-size: 88px; font-weight: 800; line-height: .9; letter-spacing: -.045em; color: var(--mark); margin-left: -.03em; }
.hero-unit { font-size: 22px; font-weight: 750; }
.hero-big { position: relative; font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 6px; }
.hero-sub { position: relative; font-size: 15px; opacity: .9; max-width: 30ch; }

.quote { margin: 0; padding: 18px 20px 18px 22px; border-radius: var(--radius); background: var(--surface); position: relative; }
.quote::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mark); }
.quote-k { font-size: 13px; font-weight: 700; color: var(--muted); }
.quote blockquote { margin: 4px 0 0; font-size: 19px; font-weight: 750; line-height: 1.35; letter-spacing: -.01em; }

.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: var(--radius); background: var(--calm-soft);
  transition: opacity .2s, transform .2s;
}
.alert.good { background: var(--good-soft); }
.alert.care { background: var(--care-soft); }
.alert.leaving { opacity: 0; transform: translateX(16px); }
.alert b { display: block; line-height: 1.3; }
.alert p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.al-ic { font-size: 22px; line-height: 1.2; }

.cards { display: grid; gap: 12px; }
.type-card { display: flex; flex-direction: column; gap: 6px; transition: transform .15s, background .15s; }
.type-card:hover { background: color-mix(in srgb, var(--surface) 92%, var(--accent)); }
.type-card:active { transform: scale(.99); }
.type-card.muted { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.tc-head { display: flex; align-items: center; justify-content: space-between; }
.tc-label { font-weight: 800; font-size: 16px; }
.tc-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tc-net { font-size: 46px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.tc-net small { font-size: 16px; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.tc-sub { font-size: 14px; color: var(--muted); }
.tc-sub b { color: var(--text); }
.spark { width: 120px; height: 42px; flex: none; margin-bottom: 6px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; animation: grow .8s cubic-bezier(.2, .7, .3, 1) both .15s; }
@keyframes grow { from { transform: scaleX(0); } }

.chip { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.up { background: var(--good-soft); color: var(--good); }

/* Haftalık ritim: optik formdaki bir cevap satırı gibi */
.rhythm .card-head { margin-bottom: 14px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 14px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.day i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; }
.day.on i { background: var(--text); box-shadow: none; }
.day.on i::after { content: "✓"; display: grid; place-items: center; height: 100%; color: var(--bg); font-style: normal; font-weight: 800; font-size: 15px; }
.day.today i { box-shadow: inset 0 0 0 2px var(--text); }
.day.today.on i { box-shadow: 0 0 0 3px var(--mark); }
.day.today span { color: var(--text); background: var(--mark); color: var(--mark-ink); border-radius: 4px; padding: 0 4px; }
.day.future i { opacity: .55; }

.calm-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--calm-soft); }
.calm-card p { font-size: 14px; color: var(--muted); }
.calm-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.calm-ic i { width: 20px; height: 20px; border-radius: 50%; background: var(--calm); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1.25); opacity: 1; } }
.chev svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.calm-card:hover .chev svg { transform: translateX(3px); }

.install { display: flex; align-items: center; gap: 12px; box-shadow: inset 0 0 0 1.5px var(--accent); }
.install p { font-size: 14px; color: var(--muted); }
.install .btn { flex: none; }

.empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 22px; }
.empty b { font-size: 18px; }
.empty p { color: var(--muted); max-width: 300px; margin-bottom: 10px; }
.illu { width: 110px; height: 110px; margin-bottom: 4px; }
.illu-bg { fill: var(--accent-soft); }
.illu-stem, .illu-ground { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.illu-ground { stroke: var(--muted); opacity: .4; }
.illu-leaf { fill: var(--accent); }
.illu-leaf2 { fill: var(--accent); opacity: .65; }

/* ---------- Geçmiş ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none; font: inherit; font-weight: 750; font-size: 14px;
  padding: 10px 18px; border-radius: 99px; cursor: pointer;
  border: 0; background: var(--surface); color: var(--muted);
  transition: background .15s, color .15s;
}
.chip-btn:hover { color: var(--text); }
.chip-btn.on { background: var(--text); color: var(--bg); }

.list { padding: 4px 14px; }
.item { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-radius: 12px; transition: background .15s; }
.item:hover { background: var(--surface-2); }
.item + .item { box-shadow: 0 -1px 0 var(--surface-2); }
.it-date { text-align: center; line-height: 1.1; padding: 7px 0; border-radius: 12px; background: var(--surface-2); }
.it-date b { display: block; font-size: 19px; font-weight: 800; }
.it-date span { font-size: 12px; font-weight: 700; color: var(--muted); }
.it-main { min-width: 0; }
.it-main b, .it-main span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-main span { font-size: 14px; color: var(--muted); }
.it-mood { font-style: normal; font-size: 15px; }
.it-net { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.it-net b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

/* ---------- Detay ---------- */
.detail-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 18px; }
.detail-hero .tc-net { font-size: 56px; }
.mood-pill { margin-top: 8px; padding: 6px 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; font-size: 14px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 700; text-align: center; padding: 0 4px 8px; }
.tbl td { text-align: center; padding: 12px 4px; box-shadow: 0 -1px 0 var(--surface-2); }
.tbl th:first-child, .tbl td:first-child { text-align: left; font-weight: 650; }
.tbl td:last-child b { color: var(--accent-strong); }

/* ---------- İstatistik ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; }
.tile span { display: block; font-size: 13px; font-weight: 650; color: var(--muted); }
.tile b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.tile b.up { color: var(--good); }
.tile:first-child { background: var(--hero); color: var(--hero-ink); }
.tile:first-child span { color: inherit; opacity: .8; }

.chart-box { margin: 0 -6px; overflow: hidden; }
.chart { display: block; color: var(--accent); }
.chart .grid { stroke: var(--surface-2); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .1; }
.chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.chart .dot.last { fill: var(--accent); stroke: var(--mark); stroke-width: 3; }
.chart .val { fill: var(--text); font-size: 14px; font-weight: 800; font-family: inherit; }
.chart .target { stroke: var(--good); stroke-width: 2; stroke-dasharray: 6 5; }
.chart .target-lbl { fill: var(--good); font-size: 11px; font-weight: 800; font-family: inherit; }

.sstat + .sstat { margin-top: 16px; }
.ss-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 650; }
.ss-top span:last-child { color: var(--muted); white-space: nowrap; }
.ss-top b { color: var(--text); }
.tag { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; margin-left: 4px; white-space: nowrap; }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.calm { background: var(--calm-soft); color: var(--calm); }

.insight { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.insight p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.insight p b { color: var(--text); }

/* ---------- Konular ---------- */
.icon-btn.end { margin: 0 -10px 0 auto; color: var(--muted); }
.focus-card { display: flex; flex-direction: column; gap: 10px; }
.focus-card .card-head { margin-bottom: 0; }
.focus-card p b { color: var(--text); }
.fc-sub { font-size: 13px; font-weight: 700; color: var(--muted); }
.fc-list { margin: -4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.fc-list li { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--care-soft); }

.fc-list small { font-weight: 650; color: var(--muted); }
.more { font-size: 14px; font-weight: 750; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.review-card { display: flex; flex-direction: column; gap: 10px; }
.review-card .card-head { margin-bottom: 0; }
.rlist { display: flex; flex-direction: column; gap: 8px; }
.rrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.rrow b { display: block; line-height: 1.3; }
.rrow small { font-size: 13px; color: var(--muted); }
.rrow .btn { flex-shrink: 0; background: var(--surface); }

.score-card .scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.scores div { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.scores span { display: block; font-size: 13px; font-weight: 650; color: var(--muted); }
.scores b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }

.wrong-card { display: flex; flex-direction: column; gap: 10px; }
.wsub { border-top: 1.5px solid var(--line); padding-top: 10px; }
.wsub summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; min-height: 36px; }
.wsub summary::-webkit-details-marker { display: none; }
.wsub[open] summary { margin-bottom: 8px; }
.wsub .fc-sub { margin: 8px 0 6px; }
.wchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wchip { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 12px; border: 0; border-radius: 99px; background: var(--surface-2); color: var(--text); cursor: pointer; transition: background .15s; }
.wchip.on { background: var(--care-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }

.topic-card { display: flex; flex-direction: column; gap: 8px; transition: background .15s; }
.topic-card:hover { background: color-mix(in srgb, var(--surface) 92%, var(--accent)); }
.topic-card .card-head { margin-bottom: 0; }
.topic-card .muted-p b { color: var(--text); }

.topic-sum { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.topic-sum b { font-size: 18px; }
.ring { width: 86px; height: 86px; }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.ring text { fill: var(--text); font-size: 18px; font-weight: 800; font-family: inherit; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); margin: 4px 0 6px; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg.s1 { background: linear-gradient(90deg, var(--text) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--text); }
.lg.s0 { box-shadow: inset 0 0 0 1.5px var(--muted); margin-left: 6px; }

.tgroup { padding: 0; }
.tgroup summary { list-style: none; padding: 16px 18px; cursor: pointer; border-radius: var(--radius); }
.tgroup summary::-webkit-details-marker { display: none; }
.tgroup summary:focus-visible { outline: 2.5px solid var(--accent); outline-offset: -2px; }
.tg-top { display: flex; align-items: center; gap: 10px; }
.tg-top b { flex: 1; font-size: 17px; }
.tg-count { font-size: 14px; font-weight: 750; color: var(--muted); }
.tg-chev svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; display: block; }
.tgroup[open] .tg-chev svg { transform: rotate(90deg); }
.tlist { padding: 0 8px 8px; }
.trow {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center;
  width: 100%; min-height: 52px; padding: 10px; text-align: left;
  font: inherit; font-weight: 650; color: var(--text);
  background: none; border: 0; border-radius: 12px; cursor: pointer;
  transition: background .15s;
}
.trow:hover { background: var(--surface-2); }
.trow:active { background: var(--surface-2); }
.trow:focus-visible { outline: 2.5px solid var(--accent); outline-offset: -2px; }
/* Konu durumu = optik yuvarlak: boş, yarı karalanmış, dolu */
.tdot { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); display: grid; place-items: center; transition: background .2s, box-shadow .2s, transform .2s; }
.trow.s1 .tdot { box-shadow: inset 0 0 0 1.5px var(--text); background: linear-gradient(90deg, var(--text) 50%, transparent 50%); }
.trow.s2 .tdot { box-shadow: none; background: var(--text); transform: scale(1.04); }
.trow.s2 .tdot::after { content: "✓"; color: var(--bg); font-size: 13px; font-weight: 800; line-height: 1; }
/* Dokunulan yuvarlak kurşun kalemle bastırılmış gibi dolar */
.trow.pop .tdot { animation: pencil .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pencil { 0% { transform: scale(.7); } 100% { transform: scale(1); } }
.trow.s2 .tname { color: var(--muted); }
.tstate { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.trow.s1 .tstate { background: var(--calm-soft); color: var(--calm); }
.trow.s2 .tstate { background: var(--good-soft); color: var(--good); }

/* ---------- Nefes ---------- */
.breathe { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; padding-top: 8px; }
.br-intro { color: var(--muted); max-width: 34ch; }
.br-stage { position: relative; width: 280px; height: 280px; display: grid; place-items: center; }
.br-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.br-circle {
  position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border-radius: 50%;
  background: var(--hero);
  transform: scale(.5);
  transition: transform 4s ease-in-out, opacity 4s ease-in-out;
}
.br-circle.in, .br-circle.hold-in { transform: scale(1); }
.br-circle.out, .br-circle.hold-out { transform: scale(.5); }
.br-circle.hold-in, .br-circle.hold-out { opacity: .85; }
.br-circle.done { transform: scale(.75); background: var(--good); }
.br-center { position: relative; color: var(--hero-ink); }
.br-label { font-size: 22px; font-weight: 800; max-width: 130px; line-height: 1.25; }
.br-count { font-size: 44px; font-weight: 800; line-height: 1.1; }
.br-foot { color: var(--muted); font-weight: 650; max-width: 320px; min-height: 2.8em; }

/* ---------- Ayarlar ---------- */
.note { display: flex; flex-direction: column; gap: 12px; }
.note p { color: var(--muted); font-size: 15px; }
.about { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ---------- Alt menü ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around; align-items: center;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 0 8px env(safe-area-inset-bottom);
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line);
}
.tabbar a {
  flex: 1; max-width: 96px; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 750; color: var(--muted);
  transition: color .15s;
}
.tabbar a:hover { color: var(--text); }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--text); }
.tabbar a.active:not(.fab)::before {
  content: ""; position: absolute; top: -12px; width: 28px; height: 4px; border-radius: 0 0 4px 4px; background: var(--accent);
}
/* Ekle düğmesi: kurşun kalemle doldurulmuş bir optik yuvarlak */
.tabbar .fab {
  flex: none; width: 60px; height: 60px; border-radius: 50%; margin-top: -26px;
  display: grid; place-items: center;
  background: var(--text); color: var(--bg);
  box-shadow: 0 0 0 5px var(--bg), var(--float);
  transition: transform .15s;
}
.tabbar .fab:hover { transform: scale(1.05); }
.tabbar .fab:active { transform: scale(.95); }
.tabbar .fab svg { width: 28px; height: 28px; stroke-width: 2.6; }
.tabbar .fab.active { background: var(--accent); color: var(--accent-ink); }

/* ---------- Bildirim balonu ---------- */
.toast {
  position: fixed; left: 50%; z-index: 20;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100% - 36px); padding: 14px 22px; border-radius: 18px;
  background: var(--text); color: var(--bg); font-weight: 700; text-align: center; line-height: 1.4;
  box-shadow: var(--float);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Kutlama ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i {
  position: absolute; top: -14px; width: 11px; height: 11px; border-radius: 50%;
  animation: fall 2.1s cubic-bezier(.25,.6,.45,1) forwards;
}
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .85; } }

@media (max-width: 360px) {
  .row2 { grid-template-columns: 1fr; }
  .sub-head, .srow { grid-template-columns: 1fr 56px 56px 46px; gap: 6px; }
  .hero-num { font-size: 66px; }
  .moods span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
