/* Evimiz: yumuşak, tek sütun telefon uygulaması. */
/* Renk temaları: html[data-theme] ve html[data-mode="light|dark"] (app.js ayarlar, Ben → Görünüm'den seçilir). */
:root {
  --surface: #ffffff;
  --on-accent: #ffffff;
  --green: #2f9e6a;
  --green-soft: #e1f4ea;
  --red: #dc4a4a;
  --red-soft: #fde6e6;
  --yellow: #c98f06;
  --yellow-soft: #fdf3d6;
  --blue: #2f7de1;
  --shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 6px 20px rgba(20, 20, 40, .06);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 22px;
  --nav-h: 66px;
  color-scheme: light;
}
:root[data-theme="lavanta"], :root:not([data-theme]) {
  --bg: #f7f5fc; --bg-2: #eeeaf8; --surface-2: #f3f0fa; --line: #e6e0f3; --ink: #2b2540; --muted: #7d7696;
  --accent: #7b5cf0; --accent-2: #6646e0; --accent-soft: #ece6ff;
}
:root[data-theme="adacayi"] {
  --bg: #f5f7f3; --bg-2: #e9efe5; --surface-2: #eff4ec; --line: #dde6d8; --ink: #223028; --muted: #6c7b70;
  --accent: #3f8f6b; --accent-2: #317a59; --accent-soft: #dbefe3;
}
:root[data-theme="okyanus"] {
  --bg: #f3f7fb; --bg-2: #e6eef7; --surface-2: #edf3fa; --line: #dae4f0; --ink: #1d2939; --muted: #6a778a;
  --accent: #2f7de1; --accent-2: #1f68c7; --accent-soft: #e0ebfc;
}
:root[data-theme="pembe"] {
  --bg: #fdf5f8; --bg-2: #f8e8ef; --surface-2: #fbf0f4; --line: #f1dde6; --ink: #3a2330; --muted: #8f7283;
  --accent: #e0508a; --accent-2: #c93e76; --accent-soft: #fde3ee;
}
:root[data-theme="gunes"] {
  --bg: #fffaf2; --bg-2: #f8efe0; --surface-2: #fbf4e8; --line: #efe3cf; --ink: #33281c; --muted: #8a7a66;
  --accent: #ef8a1f; --accent-2: #d97510; --accent-soft: #ffecd0;
}
:root[data-theme="grafit"] {
  --bg: #f6f6f7; --bg-2: #ececee; --surface-2: #f1f1f3; --line: #e2e2e6; --ink: #1c1c1f; --muted: #75757d;
  --accent: #26262b; --accent-2: #000000; --accent-soft: #e7e7ea;
}
/* Koyu mod: tüm temalarda aynı nötr koyu zemin, vurgu rengi temadan gelir */
:root[data-mode="dark"] {
  --bg: #131418; --bg-2: #1a1c21; --surface: #1e2026; --surface-2: #262930; --line: #2f323a;
  --ink: #eef0f4; --muted: #9ba1ad;
  --green: #4cc38a; --green-soft: #183126; --red: #f07070; --red-soft: #3b1e22; --yellow: #e8b73a; --yellow-soft: #352c15;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
:root[data-mode="dark"][data-theme="lavanta"] { --accent: #a48bff; --accent-2: #b9a5ff; --accent-soft: #2c2547; }
:root[data-mode="dark"][data-theme="adacayi"] { --accent: #5cc08f; --accent-2: #77d1a3; --accent-soft: #1c3a2c; }
:root[data-mode="dark"][data-theme="okyanus"] { --accent: #5b9dff; --accent-2: #7cb1ff; --accent-soft: #1b2b45; }
:root[data-mode="dark"][data-theme="pembe"] { --accent: #ff6fa6; --accent-2: #ff8db9; --accent-soft: #45202f; }
:root[data-mode="dark"][data-theme="gunes"] { --accent: #ffa04a; --accent-2: #ffb46d; --accent-soft: #45301a; }
:root[data-mode="dark"][data-theme="grafit"] { --accent: #f2f2f4; --accent-2: #ffffff; --accent-soft: #2e2e33; --on-accent: #131418; }
:root[data-mode="dark"]:not([data-theme]) { --accent: #a48bff; --accent-2: #b9a5ff; --accent-soft: #2c2547; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.4;
  background: radial-gradient(120% 60% at 50% -10%, var(--accent-soft) 0%, transparent 60%), var(--bg);
  background-attachment: fixed;
}
body.locked { overflow: hidden; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
input, select {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
select { appearance: none; padding-right: 14px; }
svg { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
em { font-style: normal; color: var(--muted); font-weight: 500; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- düzen ---------- */
.app, .welcome {
  max-width: 560px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px);
}
.welcome { padding-bottom: 40px; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 4px 2px 14px; }
.top h1 { font-size: 23px; line-height: 1.2; }
.top p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.card h2 { margin-bottom: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.sec { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 18px 4px 8px; font-family: var(--font-body); }
.sec.late { color: var(--red); }
.stack { display: grid; gap: 10px; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.actions-row .btn { flex: 1 1 auto; }

/* ---------- düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface);
  padding: 11px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink);
  transition: transform .1s, background .15s, border-color .15s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.big { padding: 15px 20px; font-size: 17px; width: 100%; }
.btn.small { padding: 7px 12px; font-size: 14px; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.btn.wide { width: 100%; }
.btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.link { background: none; border: 0; padding: 4px 2px; color: var(--accent); font-weight: 700; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); position: relative; flex: none; }
.icon-btn:active { background: var(--surface-2); }
.icon-btn.bell { background: var(--surface); box-shadow: var(--shadow); color: var(--ink); width: 44px; height: 44px; }
.dot {
  position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; line-height: 1;
}

/* ---------- çipler ve seçiciler ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); padding: 8px 13px; border-radius: 999px; font-size: 14px; font-weight: 700;
  transition: all .12s;
}
.chip small { opacity: .6; letter-spacing: -1px; }
.chip.sm { padding: 5px 10px; font-size: 13px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.ghost { border-style: dashed; color: var(--muted); }
.chips.small .chip { font-size: 13px; padding: 6px 11px; }
.emojis { display: flex; flex-wrap: wrap; gap: 6px; }
.emo { width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 22px; display: grid; place-items: center; transition: transform .1s; }
.emo.on { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.06); }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.color { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1.5px var(--line); }
.color.on { box-shadow: 0 0 0 3px var(--c); }
.seg { display: flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 4px; margin: 0 0 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg button:disabled { opacity: .4; }
.seg.mini { display: inline-flex; margin: 0 0 4px; }
.seg.mini button { padding: 6px 12px; font-size: 14px; flex: none; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-btn { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px 5px 5px; font-weight: 700; }
.pick-btn.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- avatar ---------- */
.av {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; font-size: 19px;
  background: color-mix(in srgb, var(--c) 22%, var(--surface)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent);
}
.av.sm { width: 28px; height: 28px; font-size: 15px; }
.av.lg { width: 46px; height: 46px; font-size: 24px; }
.av.xl { width: 64px; height: 64px; font-size: 34px; }
.av.any { --c: var(--muted); }
.mini { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; flex: none; background: color-mix(in srgb, var(--c) 20%, var(--surface)); }

/* ---------- formlar ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 700; font-size: 14px; }
.pin { -webkit-text-security: disc; letter-spacing: .5em; font-size: 22px; text-align: center; max-width: 180px; font-weight: 800; }
.error { color: var(--red); background: var(--red-soft); padding: 10px 12px; border-radius: 12px; margin: 0; font-weight: 600; font-size: 14px; }
.sub-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.sub-row.wrap { flex-wrap: wrap; }
.sub-row select { width: auto; padding: 7px 12px; }
.num { width: 90px; padding: 8px 10px; }

/* ---------- karşılama ---------- */
.hero { text-align: center; padding: 28px 8px 8px; }
.hero-icon { width: 92px; height: 92px; border-radius: 26px; box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 30%, transparent); }
.hero h1 { font-size: 40px; margin-top: 14px; color: var(--accent); }
.hero p { color: var(--muted); font-size: 17px; max-width: 380px; margin: 8px auto 0; }
.perks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.perks li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; font-size: 15px; color: var(--muted); }
.perks b { display: block; color: var(--ink); font-size: 16px; }
.join-row { display: flex; gap: 8px; }
.join-row input { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.join-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; }
.back { background: none; border: 0; color: var(--muted); font-weight: 700; padding: 6px 0; margin-bottom: 8px; }
.welcome h2 { font-size: 24px; margin-bottom: 14px; }
.join-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.join-head h2 { margin: 0; }
.join-head p { margin: 2px 0 0; color: var(--muted); }
.big-emoji { font-size: 44px; line-height: 1; }
.loading { padding-top: 40vh; font-size: 18px; }

/* ---------- bugün ---------- */
.progress { display: flex; align-items: center; gap: 16px; }
.progress h2 { margin: 0 0 2px; }
.progress p { margin: 0; font-size: 14px; }
.ring {
  --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--bg-2) 0);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.chores { display: grid; gap: 9px; }
.chores.dim .chore { opacity: .78; }
.chore {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 11px 12px 11px 11px; box-shadow: var(--shadow); transition: transform .2s, opacity .3s;
  scroll-margin: 100px;
}
.chore.late { border-left: 4px solid var(--red); }
.chore.today { border-left: 4px solid var(--accent); }
.chore.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); } }
.check {
  width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--surface-2); color: transparent; display: grid; place-items: center;
  transition: all .15s;
}
.check svg { width: 22px; height: 22px; }
.check:hover { border-color: var(--green); color: color-mix(in srgb, var(--green) 50%, transparent); }
.chore.doing { opacity: .55; transform: scale(.98); }
.chore.doing .check { background: var(--green); border-color: var(--green); color: #fff; }
.c-main { min-width: 0; cursor: pointer; }
.c-title { font-weight: 800; font-size: 16px; display: flex; gap: 6px; align-items: baseline; }
.c-emo { font-size: 18px; }
.c-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.chore.late .due { color: var(--red); font-weight: 800; }
.chore.today .due { color: var(--accent); font-weight: 800; }
.pts { letter-spacing: -1px; color: var(--accent); opacity: .7; }
.c-note { font-size: 14px; margin-top: 6px; background: var(--surface-2); padding: 6px 10px; border-radius: 10px; }
.c-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--line); margin-top: 2px; padding-top: 10px; }
.all-done { text-align: center; padding: 18px; color: var(--green); font-weight: 800; background: var(--green-soft); border-radius: 18px; margin: 12px 0; }
.empty-hero { text-align: center; padding: 26px 18px; display: grid; gap: 10px; justify-items: center; }
.empty-hero p { color: var(--muted); margin: 0 0 4px; }
.empty { text-align: center; padding: 30px 16px; font-weight: 700; font-size: 18px; display: grid; gap: 12px; justify-items: center; }
.empty .muted { font-weight: 500; font-size: 15px; }

.banner { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 11px 12px 11px 14px; margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.banner span:first-child { flex: 1; }
.banner.shop { background: var(--green-soft); color: color-mix(in srgb, var(--green) 70%, var(--ink)); cursor: pointer; }
.banner.hint { background: var(--yellow-soft); }
.banner .go { font-weight: 800; white-space: nowrap; }
.banner .x { width: 30px; height: 30px; }
.banner .x svg { width: 16px; height: 16px; }

.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 14px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed li > span:nth-child(2) { flex: 1; min-width: 0; }
.feed .muted { font-size: 13px; white-space: nowrap; }
ul.feed:not(.card ul) { background: var(--surface); border-radius: 18px; padding: 6px 12px; border: 1px solid var(--line); }

/* ---------- adil dağılım ---------- */
.fair .bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bg-2); gap: 2px; }
.fair .bar i { background: var(--c); }
.fair ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.fair li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.fair .nm { flex: 1; font-weight: 700; }
.fair li .muted { font-size: 13px; }
.fair .pct { width: 44px; text-align: right; font-weight: 800; color: var(--muted); }
.fair.big .bar { height: 22px; border-radius: 11px; }
.verdict { margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; font-size: 14px; }
.verdict.ok { background: var(--green-soft); }
.verdict.warn { background: var(--yellow-soft); }
.fair-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.fair-col { border: 1.5px solid color-mix(in srgb, var(--c) 40%, var(--line)); border-radius: 16px; padding: 10px; background: color-mix(in srgb, var(--c) 6%, var(--surface)); }
.fair-col header { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; margin-bottom: 8px; }
.fair-col header .av { grid-row: span 2; }
.fair-col header small { color: var(--muted); font-size: 12px; }
.fair-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 14px; }
.fair-col li small { color: var(--muted); display: block; font-size: 12px; }

/* ---------- alışveriş ---------- */
.add-bar { display: flex; gap: 8px; align-items: center; padding: 8px; }
.add-bar input { border: 0; box-shadow: none; padding: 10px 8px; }
.add-bar input:focus { box-shadow: none; }
.add-bar .btn.primary { width: 46px; height: 46px; padding: 0; flex: none; }
.add-bar.inline { padding: 0; margin: 4px 0 12px; }
.add-bar.inline input { border: 1.5px solid var(--line); padding: 11px 12px; }
.add-bar.inline input:focus { border-color: var(--accent); }
.add-bar.inline select { width: 64px; text-align: center; padding: 11px 6px; font-size: 20px; }
.urgent-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); flex: none; filter: grayscale(1); opacity: .6; }
.urgent-btn.on { filter: none; opacity: 1; background: var(--red-soft); border-color: var(--red); }
.hint-line { font-size: 13px; color: var(--red); margin: -6px 6px 10px; font-weight: 600; }
.sugg { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.sugg::-webkit-scrollbar { display: none; }
.sugg .chip { flex: none; background: var(--surface-2); }
.sugg.editing .chip:not(.ghost) { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.shop-go { width: 100%; justify-content: center; margin: 4px 0 6px; padding: 13px; background: var(--green-soft); border-color: transparent; color: color-mix(in srgb, var(--green) 70%, var(--ink)); }
.shop-go small { font-weight: 600; opacity: .75; }
.items { list-style: none; padding: 4px 6px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.item { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); min-height: 52px; }
.item:last-child { border-bottom: 0; }
.box { width: 30px; height: 30px; border-radius: 10px; border: 2.5px solid var(--line); background: var(--surface); display: grid; place-items: center; color: #fff; flex: none; transition: all .15s; }
.box svg { width: 18px; height: 18px; }
.i-name { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; cursor: pointer; padding: 6px 0; }
.qty { font-weight: 600; color: var(--muted); font-size: 14px; background: var(--surface-2); padding: 1px 8px; border-radius: 8px; white-space: nowrap; }
.tag { font-size: 11px; background: var(--red); color: #fff; padding: 2px 6px; border-radius: 6px; vertical-align: 2px; letter-spacing: .04em; }
.item.urgent .box { border-color: var(--red); }
.item.checked .box { background: var(--green); border-color: var(--green); }
.item.checked .i-name { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.cat.done .items { opacity: .8; }
.cat.done .card-head { margin: 0; }
.cat.done .sec { margin: 18px 4px 8px; }

/* ---------- işler ---------- */
.todo-card h2 { margin-bottom: 4px; }
.room .rows { list-style: none; margin: 0; padding: 2px 6px; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer; scroll-margin: 100px; }
.row:last-child { border-bottom: 0; }
.r-emo { font-size: 22px; width: 30px; text-align: center; }
.r-main { flex: 1; min-width: 0; display: grid; }
.r-main b { font-size: 15px; }
.r-main small { color: var(--muted); font-size: 13px; }
.r-due { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.r-due.late { color: var(--red); }
.r-due.today { color: var(--accent); }
.tpl { display: grid; gap: 7px; }
.tpl-item { display: flex; align-items: center; gap: 10px; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 9px 12px; }
.tpl-item.on { border-color: var(--green); background: var(--green-soft); }
.tick { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; background: var(--surface); }
.tpl-item.on .tick { background: var(--green); border-color: var(--green); color: #fff; }
.tick svg { width: 15px; height: 15px; }
.t-emo { font-size: 20px; }
.t-main { display: grid; }
.t-main small { color: var(--muted); font-size: 13px; }

/* ---------- aile ---------- */
.people { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }
.people li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.p-main { flex: 1; min-width: 0; display: grid; }
.p-main small { color: var(--muted); font-size: 13px; }
.p-pts { display: grid; text-align: center; }
.p-pts b { font-family: var(--font-display); font-size: 20px; color: var(--accent); line-height: 1; }
.p-pts small { color: var(--muted); font-size: 11px; }
.badge { font-size: 11px; background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 6px; vertical-align: 2px; font-weight: 800; }
.invite { background: var(--surface-2); border-radius: 16px; padding: 12px; margin-top: 10px; }
.invite p { margin: 0 0 10px; font-size: 14px; }
.invite .actions-row { margin: 0; }
.code { font-family: var(--font-display); letter-spacing: .14em; font-size: 17px; color: var(--accent); }
.pets { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.pets li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pets b { flex: 1; }
.pet-emo { font-size: 30px; }
.pet-acts { display: flex; gap: 6px; align-items: center; }
.pet-acts .chip { padding: 6px 10px; font-size: 13px; }

/* ---------- ben ---------- */
.profile { display: flex; align-items: center; gap: 14px; }
.profile > div { flex: 1; min-width: 0; }
.profile h2 { margin: 0; font-size: 21px; }
.profile p { margin: 2px 0 0; font-size: 14px; }
.ok-line { color: var(--green); font-weight: 800; margin: 0 0 10px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; }
.steps svg { width: 16px; height: 16px; vertical-align: -3px; }
.prefs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; }
.prefs li { padding: 10px 0; border-top: 1px solid var(--line); }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; position: relative; }
.switch-row > span { flex: 1; display: grid; }
.switch-row small { color: var(--muted); font-size: 13px; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 48px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--green); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { box-shadow: 0 0 0 3px var(--accent-soft); }
.foot { margin-top: 20px; }

/* ---------- alt gezinme ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
  padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabs button {
  flex: 1; max-width: 112px; border: 0; background: transparent; display: grid; justify-items: center; gap: 2px; padding: 6px 0;
  color: var(--muted); font-size: 12px; font-weight: 700; position: relative; border-radius: 14px;
}
.tabs button svg { width: 24px; height: 24px; }
.tabs button.on { color: var(--accent); }
.tabs button.on svg { stroke-width: 2.4; }
.tabs .dot { top: 0; right: calc(50% - 22px); }

/* ---------- alttan pencere ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(10, 10, 20, .45); z-index: 40; animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.18); animation: up .26s cubic-bezier(.2,.9,.3,1.1);
}
.sheet.still { animation: none; }
.sheet.wide { max-width: 720px; }
.sheet > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 8px 20px; }
.sheet > header h2 { font-size: 20px; }
.sheet-body { overflow-y: auto; padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.sheet-body > p:first-child { margin-top: 0; }
.sheet-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.sheet-foot .btn.primary { flex: 1; }
.sheet-foot.sticky { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 calc(8px + env(safe-area-inset-bottom)); margin-bottom: calc(-24px - env(safe-area-inset-bottom)); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inbox li { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 11px 13px; cursor: pointer; }
.inbox li.unread { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface)); }
.inbox span { font-size: 14px; }
.inbox small { color: var(--muted); font-size: 12px; }

/* ---------- toast ve süsler ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); z-index: 60;
  background: var(--ink); color: var(--bg); padding: 11px 12px 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 26px rgba(0,0,0,.25); max-width: calc(100vw - 24px); animation: pop .25s;
}
.toast[hidden] { display: none; }
.toast button { background: transparent; border: 1.5px solid color-mix(in srgb, var(--bg) 40%, transparent); color: var(--bg); padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 10px); } }
.fx { position: fixed; pointer-events: none; z-index: 70; animation: fx .9s ease-out forwards; }
.fx.fall { animation: fall 2s ease-in forwards; }
@keyframes fx { to { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 0; } }
@keyframes fall { to { transform: translate(var(--dx), var(--dy)) rotate(360deg); opacity: .8; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (min-width: 700px) {
  .app { padding-top: 28px; }
}

/* ---------- görünüm seçici ---------- */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.theme {
  display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 13px;
}
.theme.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.swatch { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
