/* Sepet — aile alışveriş listesi
   Yerleşim: mobilde alt sekme çubuğu + tek sütun; 900px üstünde sol kenar çubuğu + geniş içerik. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f2f4f1;
  --surface: #ffffff;
  --surface-2: #ebeee9;
  --surface-3: #dfe4dd;
  --ink: #111a14;
  --ink-2: #48534c;
  --ink-3: #7b857e;
  --line: #e0e4dd;
  --accent: #1b7a49;
  --accent-hover: #15663c;
  --accent-ink: #ffffff;
  --accent-soft: #dbefe2;
  --tomato: #cf4429;
  --tomato-soft: #fbe2dc;
  --amber-ink: #7a5300;
  --amber-soft: #fcefcf;
  --blue-ink: #1d4d84;
  --blue-soft: #e0ebfa;
  --u0: #1b7a49;
  --u0-soft: #dbefe2;
  --u1: #c25a22;
  --u1-soft: #fbe6d9;
  --tile-s: 60%;
  --tile-l: 91%;
  --tile-ink-l: 30%;
  --scrim: rgba(12, 18, 14, .42);
  --shadow-sm: 0 1px 2px rgba(17, 26, 20, .06);
  --shadow-md: 0 1px 2px rgba(17, 26, 20, .05), 0 6px 20px -6px rgba(17, 26, 20, .12);
  --shadow-lg: 0 18px 48px -12px rgba(17, 26, 20, .28);
  --glass: rgba(242, 244, 241, .82);

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --side: 264px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1210; --surface: #161b18; --surface-2: #1d231f; --surface-3: #272f2a;
    --ink: #e8eee9; --ink-2: #a9b3ac; --ink-3: #78837b; --line: #252c27;
    --accent: #4fc485; --accent-hover: #67d197; --accent-ink: #05140b; --accent-soft: #163222;
    --tomato: #ff7b62; --tomato-soft: #3a1c16; --amber-ink: #f2d283; --amber-soft: #352b11;
    --blue-ink: #a2c7f4; --blue-soft: #15263a;
    --u0: #4fc485; --u0-soft: #163222; --u1: #f39a63; --u1-soft: #3a2316;
    --tile-s: 28%; --tile-l: 20%; --tile-ink-l: 76%;
    --scrim: rgba(0, 0, 0, .6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, .7);
    --glass: rgba(14, 18, 16, .82);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1210; --surface: #161b18; --surface-2: #1d231f; --surface-3: #272f2a;
  --ink: #e8eee9; --ink-2: #a9b3ac; --ink-3: #78837b; --line: #252c27;
  --accent: #4fc485; --accent-hover: #67d197; --accent-ink: #05140b; --accent-soft: #163222;
  --tomato: #ff7b62; --tomato-soft: #3a1c16; --amber-ink: #f2d283; --amber-soft: #352b11;
  --blue-ink: #a2c7f4; --blue-soft: #15263a;
  --u0: #4fc485; --u0-soft: #163222; --u1: #f39a63; --u1-soft: #3a2316;
  --tile-s: 28%; --tile-l: 20%; --tile-ink-l: 76%;
  --scrim: rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 18px 48px -12px rgba(0, 0, 0, .7);
  --glass: rgba(14, 18, 16, .82);
  color-scheme: dark;
}

/* ---------- Temel ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 18px; height: 18px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Kabuk ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.sidebar { display: none; }
.main { min-width: 0; padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); }
.page {
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 0 8px;
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding: 0 max(8px, env(safe-area-inset-right, 0px)) var(--safe-b) max(8px, env(safe-area-inset-left, 0px));
  background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0;
  color: var(--ink-3); font-size: 11.5px; font-weight: 600; position: relative;
}
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg { stroke-width: 2.3; }
.tab .badge { position: absolute; top: 2px; left: calc(50% + 6px); }
.tab-fab {
  justify-self: center; width: 52px; height: 52px; border-radius: 18px; margin-top: -10px;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .15s;
}
.tab-fab:active { transform: scale(.94); }
.tab-fab svg { width: 26px; height: 26px; stroke-width: 2.4; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
  .tabbar { display: none; }
  .main { padding-bottom: 40px; }
  .page { padding-left: 40px; padding-right: 40px; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; height: 100dvh;
    padding: 20px 14px; border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto;
  }
}

/* Kenar çubuğu */
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.side-add { margin: 0 4px 14px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-s);
  color: var(--ink-2); font-weight: 600; font-size: 15px; text-align: left; width: 100%;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav-item .count { margin-left: auto; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.side-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.side-label button { color: var(--ink-3); border-radius: 6px; padding: 2px; display: grid; }
.side-label button:hover { color: var(--ink); background: var(--surface-2); }
.nav-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--ink-3); margin: 0 6px 0 7px; flex: none; }
.nav-item[aria-current="page"] .nav-dot { background: var(--accent); }
.side-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-s); width: 100%; text-align: left; }
.me-chip:hover { background: var(--surface-2); }
.me-chip .who { font-weight: 700; font-size: 15px; line-height: 1.2; }
.me-chip .sync { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Sayfa başlığı ---------- */
.pagehead {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; gap: 8px; min-height: 60px;
  margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l));
  padding: 8px var(--gutter-r) 8px var(--gutter-l);
  background: var(--glass); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.pagehead h1 { font-size: 22px; font-weight: 750; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pagehead .sub { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.head-title { flex: 1; min-width: 0; }
.head-title h1 { flex: none; }
@media (min-width: 900px) {
  .pagehead { margin: 0 -40px; padding: 18px 40px 14px; min-height: 76px; }
  .pagehead h1 { font-size: 26px; }
}
.icon-btn {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Ortak bileşenler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 650; font-size: 15px;
  background: var(--surface-2); color: var(--ink); transition: background .15s, transform .1s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--tomato-soft); color: var(--tomato); }
.btn.sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn svg.i { width: 19px; height: 19px; }

.card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-md); }
.section { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 17px; font-weight: 750; }
.link { color: var(--accent); font-weight: 650; font-size: 14px; }
.link:hover { text-decoration: underline; }

.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 750; font-size: 14px; background: var(--u0-soft); color: var(--u0);
}
.avatar.u1 { background: var(--u1-soft); color: var(--u1); }
.avatar.lg { width: 52px; height: 52px; font-size: 21px; }
.avatar.xs { width: 22px; height: 22px; font-size: 11px; }

.tile {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: hsl(var(--h) var(--tile-s) var(--tile-l)); color: hsl(var(--h) 55% var(--tile-ink-l));
  font-weight: 750; font-size: 15px;
}
.cat-dot { width: 8px; height: 8px; border-radius: 3px; flex: none; background: hsl(var(--h) 55% 50%); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .plus { color: var(--accent); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: 2px var(--gutter-r) 2px var(--gutter-l); }
.chips.scroll::-webkit-scrollbar { display: none; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border-radius: 8px; font-weight: 650; font-size: 13.5px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--tomato); color: #fff;
  font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; line-height: 1;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.pill.warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s ease; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.input, .select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px; appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select {
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 44px; }

.banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); font-size: 14.5px; font-weight: 550;
}
.banner .grow { flex: 1; min-width: 0; }
.banner.info { background: var(--blue-soft); color: var(--blue-ink); }
.banner.ok { background: var(--accent-soft); color: var(--accent); }
.banner.warn { background: var(--amber-soft); color: var(--amber-ink); }
.banner .btn { height: 32px; padding: 0 12px; font-size: 13.5px; background: var(--surface); color: var(--ink); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 20px; color: var(--ink-2); }
.empty strong { color: var(--ink); font-size: 17px; }
.empty svg.i { width: 40px; height: 40px; color: var(--ink-3); stroke-width: 1.5; margin-bottom: 6px; }

/* ---------- Ana sayfa ---------- */
.hello { padding: 18px 0 6px; display: flex; flex-direction: column; gap: 2px; }
.hello .date { font-size: 14px; font-weight: 650; color: var(--ink-3); text-transform: capitalize; }
.hello h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
@media (min-width: 900px) { .hello { padding-top: 34px; } .hello h1 { font-size: 36px; } }

.quick {
  display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.quick:focus-within { border-color: var(--accent); }
.quick input { flex: 1; min-width: 0; border: 0; background: transparent; height: 46px; padding: 0 10px; font-size: 16px; outline: none; }
.quick .select { width: auto; height: 46px; border: 0; background-color: var(--surface-2); font-weight: 650; font-size: 14px; max-width: 40%; }
.quick .go { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.quick .go svg { stroke-width: 2.5; }

.dash { display: grid; gap: 28px; margin-top: 18px; }
.dash-main, .dash-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
@media (min-width: 1100px) { .dash { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); align-items: start; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-width: 0; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .k { font-size: 12.5px; font-weight: 650; color: var(--ink-3); margin-top: 2px; }

.list-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.list-card {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; text-align: left; border-radius: var(--r-l);
  background: var(--surface); box-shadow: var(--shadow-md); transition: transform .15s, box-shadow .15s; min-width: 0;
}
.list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.list-card .top { display: flex; align-items: center; gap: 12px; }
.list-card .name { font-size: 17px; font-weight: 750; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-card .left { font-size: 28px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.list-card .left small { font-size: 14px; font-weight: 650; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.list-card .preview { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.4em; }
.list-card .foot { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.list-card .foot .progress { flex: 1; }
.list-card.new { align-items: center; justify-content: center; box-shadow: none; border: 1.5px dashed var(--surface-3); background: transparent; color: var(--ink-2); font-weight: 650; min-height: 140px; }
.list-card.new:hover { border-color: var(--accent); color: var(--accent); transform: none; box-shadow: none; }
.list-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); flex: none; }

.feed { display: flex; flex-direction: column; }
.feed-row { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.feed-row + .feed-row { border-top: 1px solid var(--line); }
.feed-row .txt { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.4; }
.feed-row .txt b { font-weight: 700; }
.feed-row .when { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.feed-day { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 14px 0 4px; }
.panel { padding: 6px 18px 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 6px; }
.panel-head h2 { font-size: 17px; font-weight: 750; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; padding: 8px 0 0; }
.week .bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.week .bar i { display: block; width: 100%; max-width: 28px; border-radius: 6px 6px 3px 3px; background: var(--surface-3); min-height: 4px; transition: height .4s; }
.week .bar.today i { background: var(--accent); }
.week .bar span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.week .bar b { font-size: 11.5px; font-weight: 750; color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 1em; }

/* ---------- Liste detayı ---------- */
.list-layout { display: grid; gap: 24px; }
@media (min-width: 1200px) { .list-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.list-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; max-width: 780px; }
.list-aside { display: none; }
@media (min-width: 1200px) { .list-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; } }
.list-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-meta .progress { flex: 1; min-width: 120px; }
.list-meta .txt { font-size: 13.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.addrow { position: relative; }
.addrow .quick { box-shadow: var(--shadow-sm); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 15; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-lg);
  max-height: min(50vh, 360px); overflow-y: auto;
}
.sug { display: flex; width: 100%; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-align: left; }
.sug:hover, .sug.active { background: var(--surface-2); }
.sug .grow { flex: 1; font-weight: 650; min-width: 0; }
.sug small { color: var(--ink-3); font-weight: 600; }
.sug .tile { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; }
.sug-title { font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 6px 8px 4px; }

.group { display: flex; flex-direction: column; gap: 6px; }
.group-title { display: flex; align-items: center; gap: 8px; padding: 10px 4px 0; font-size: 12.5px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.group-title .n { color: var(--ink-3); font-weight: 650; }
.rows { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; }
.item {
  display: flex; align-items: flex-start; gap: 6px; padding: 10px 14px 10px 4px; min-height: 60px;
  user-select: none; -webkit-user-select: none; transition: background .15s;
}
.item + .item { border-top: 1px solid var(--line); }
.item:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.item.flash { animation: flash 1.1s ease; }
@keyframes flash { 0%, 35% { background: var(--accent-soft); } 100% { background: transparent; } }
.item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 2px 0; cursor: pointer; text-align: left; border-radius: 8px; }
.item-name { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; line-height: 1.3; }
.item.done .item-name { text-decoration: line-through; text-decoration-color: var(--ink-3); color: var(--ink-3); font-weight: 550; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--ink-2); }
.qty { font-weight: 750; color: var(--ink); background: var(--surface-2); border-radius: 6px; padding: 0 6px; font-size: 12.5px; line-height: 20px; font-variant-numeric: tabular-nums; }
.by { font-size: 12.5px; font-weight: 700; color: var(--u0); }
.by.u1 { color: var(--u1); }
.item-actions { display: flex; gap: 2px; }
.item-actions .icon-btn { width: 36px; height: 36px; color: var(--ink-3); }
@media (hover: hover) and (min-width: 900px) {
  .item-actions .icon-btn.del { opacity: 0; }
  .item:hover .item-actions .icon-btn.del { opacity: 1; }
}
@media (max-width: 899px) { .item-actions .icon-btn.del { display: none; } }

.done-toggle { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 0; }
.done-toggle button.t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.done-toggle svg { transition: transform .2s; }
.done-toggle[data-open="false"] svg { transform: rotate(-90deg); }

/* ---------- Ürünler ---------- */
.prod-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .prod-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.prod {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line); min-width: 0; text-align: left; width: 100%;
}
.prod:hover { border-color: var(--surface-3); }
.prod .body { flex: 1; min-width: 0; }
.prod .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod .m { font-size: 13px; color: var(--ink-3); font-weight: 600; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.add-mini {
  height: 34px; padding: 0 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 4px; flex: none;
}
.add-mini:hover { background: var(--accent); color: var(--accent-ink); }
.add-mini.in { background: var(--surface-2); color: var(--ink-3); cursor: default; }

/* ---------- Ayarlar ---------- */
.settings { display: grid; gap: 20px; max-width: 720px; margin-top: 8px; }
.set-group { display: flex; flex-direction: column; gap: 8px; }
.set-group > h2 { font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 4px; }
.set-card { background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; flex-wrap: wrap; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row .grow { flex: 1; min-width: 160px; }
.set-row .t { font-weight: 650; }
.set-row .d { font-size: 13.5px; color: var(--ink-3); }
.set-row .select { width: auto; min-width: 160px; height: 40px; }
.profile { display: flex; align-items: center; gap: 14px; padding: 18px 16px; }
.profile .n { font-size: 19px; font-weight: 800; }

/* ---------- Giriş ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.login-card .logo { width: 56px; height: 56px; border-radius: 16px; }
.login-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.login-card p { margin: 0; }
.user-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.user-pick button {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r-m);
  background: var(--surface); border: 2px solid var(--line); font-weight: 700;
}
.user-pick button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.error { color: var(--tomato); font-size: 14px; font-weight: 600; min-height: 1.2em; margin: 0; }

/* ---------- Alt sayfa / pencere ---------- */
dialog.sheet {
  width: 100%; max-width: 560px; max-height: calc(100dvh - 40px); margin: auto auto 0; border: 0; padding: 0;
  border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .22s cubic-bezier(.2, .8, .2, 1); }
dialog.sheet::backdrop { background: var(--scrim); animation: fade .2s; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 640px) {
  dialog.sheet { margin: auto; border-radius: 22px; }
  dialog.sheet[open] { animation: pop .18s ease-out; }
  @keyframes pop { from { transform: scale(.97); opacity: 0; } }
}
.sheet-grip { width: 38px; height: 5px; border-radius: 9px; background: var(--surface-3); margin: 8px auto 0; flex: none; }
@media (min-width: 640px) { .sheet-grip { display: none; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px 20px; }
.sheet-head h2 { flex: 1; font-size: 19px; font-weight: 750; }
.sheet-body { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); }
.sheet-foot .grow { flex: 1; }
.row2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.sheet .added { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet .added .pill { background: var(--accent-soft); color: var(--accent); }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; z-index: 50; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px);
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; max-width: calc(100% - 32px);
  border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 600;
  animation: toast-in .2s ease-out;
}
.toast button { color: var(--accent-soft); font-weight: 800; padding: 6px 8px; border-radius: 8px; }
@keyframes toast-in { from { transform: translate(-50%, 10px); opacity: 0; } }
@media (min-width: 900px) { .toast { bottom: 28px; left: calc(50% + var(--side) / 2); } }

.kbd { font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-3); }
@media (max-width: 899px) { .kbd { display: none; } }
.demo-flag { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-ink); background: var(--amber-soft); padding: 2px 7px; border-radius: 6px; }

/* ---------- Sürüm 3 eklemeleri ---------- */
.small { font-size: 13px; }
svg.i.xs { width: 14px; height: 14px; stroke-width: 2.2; }
.check {
  position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
}
.check::before {
  content: ""; position: absolute; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--surface-3); background: var(--surface); transition: background .15s, border-color .15s, transform .15s;
}
.check:hover::before { border-color: var(--accent); }
.check:active::before { transform: scale(.9); }
.check svg { position: relative; width: 15px; height: 15px; stroke: var(--accent-ink); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.item.done .check::before { background: var(--accent); border-color: var(--accent); }
.item.done .check svg { opacity: 1; }
.item.urgent .check::before { border-color: var(--tomato); }
.item-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-note { font-size: 14px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.item.done .item-note { color: var(--ink-3); }
.by.me { color: var(--ink-3); }
.pill.hot { background: var(--tomato-soft); color: var(--tomato); height: 22px; font-size: 11.5px; padding: 0 8px; letter-spacing: .02em; }
.stat .v .pill { vertical-align: middle; position: relative; top: -3px; }
.nav-dot.hot { background: var(--tomato) !important; }
.link-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 7px;
  background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-size: 12.5px; text-decoration: none; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.link-chip:hover { text-decoration: underline; }
.kbd.on-accent { border-color: currentColor; color: inherit; opacity: .7; }

.quick .ghost-go {
  width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; flex: none;
}
.quick .ghost-go:hover { background: var(--surface-3); color: var(--ink); }
@media (max-width: 420px) { .quick .select { max-width: 32%; } .quick input { padding: 0 6px; } }

.tabs2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 13px; padding: 4px; gap: 4px; }
.tabs2 button { height: 40px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tabs2 button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs2 .cnt { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); font-size: 12px; display: inline-grid; place-items: center; }
.tabs2 button[aria-selected="true"] .cnt { background: var(--accent-soft); color: var(--accent); }

/* Form */
.form { display: flex; flex-direction: column; gap: 14px; }
.req { color: var(--tomato); font-style: normal; }
textarea.input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }
.input-group .btn { height: 48px; }
.hint { font-size: 13px; font-weight: 650; color: var(--ink-3); min-height: 1em; display: inline-flex; align-items: center; gap: 5px; }
.hint:empty { display: none; }
.hint.ok { color: var(--blue-ink); }
.hint.bad { color: var(--tomato); }
.chips.in-sheet { margin: 0 -20px; padding: 2px 20px; }
.switch { display: inline-flex; align-items: center; gap: 10px; height: 48px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { width: 46px; height: 28px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .15s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s; }
.switch input:checked + .knob { background: var(--tomato); }
.switch input:checked + .knob::after { transform: translateX(18px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch .lbl { font-weight: 650; }
.sheet .added { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
dialog.form-sheet { max-width: 600px; }

/* Ürün ayrıntısı */
.note-box { background: var(--surface-2); border-radius: var(--r-m); padding: 12px 14px; font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.link-card {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-m); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); background: var(--surface); min-width: 0;
}
.link-card:hover { border-color: var(--blue-ink); }
.link-card .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-card .t { font-weight: 750; color: var(--blue-ink); }
.link-card .d { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-card .list-ico { background: var(--blue-soft); color: var(--blue-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.kv dt { color: var(--ink-3); font-weight: 650; font-size: 13.5px; padding-top: 2px; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-row { width: 100%; text-align: left; }
.menu-row:hover { background: var(--surface-2); }
.danger-row { color: var(--tomato); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.empty.card { padding: 32px 20px; }
