/* ===== Yazı tipi: Barlow (sunucudan, dış bağlantı yok) ===== */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/barlow-latin-ext-400-normal.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: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/barlow-latin-400-normal.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; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/barlow-latin-ext-500-normal.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: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/barlow-latin-500-normal.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; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/barlow-latin-ext-600-normal.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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/barlow-latin-600-normal.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; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/barlow-latin-ext-700-normal.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: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/barlow-latin-700-normal.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; }

/* ===== Tasarım değişkenleri ===== */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --elev: #ffffff;
  --line: #e6e9f0;
  --line-strong: #d5dae4;
  --fg: #0e1525;
  --fg-2: #344054;
  --muted: #667085;
  --accent: #3b5bfd;
  --accent-2: #2f49d6;
  --accent-soft: #eef1ff;
  --accent-ring: rgba(59, 91, 253, .2);
  --ok: #12805c;
  --ok-soft: #e6f6ef;
  --warn: #b54708;
  --warn-soft: #fef4e6;
  --danger: #d92d20;
  --danger-soft: #fdeceb;
  --wa: #16a34a;
  --side: #0b1020;
  --side-fg: #c3cad8;
  --side-muted: #6b7690;
  --side-hover: #151c30;
  --side-active: #1f2a4d;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --paper: #fffdf8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c;
    --surface: #111827;
    --surface-2: #0d1423;
    --elev: #172033;
    --line: #1e293b;
    --line-strong: #2b3a52;
    --fg: #e8edf6;
    --fg-2: #c4cedd;
    --muted: #8391a7;
    --accent: #6d8bff;
    --accent-2: #8aa2ff;
    --accent-soft: #1a2448;
    --accent-ring: rgba(109, 139, 255, .28);
    --ok: #4ade80;
    --ok-soft: #0f2a1c;
    --warn: #fbbf24;
    --warn-soft: #2b220e;
    --danger: #f87171;
    --danger-soft: #2c1417;
    --wa: #4ade80;
    --side: #070b15;
    --side-hover: #121a2c;
    --side-active: #1b2747;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
    --paper: #121b2e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0a0f1c;
    --surface: #111827;
    --surface-2: #0d1423;
    --elev: #172033;
    --line: #1e293b;
    --line-strong: #2b3a52;
    --fg: #e8edf6;
    --fg-2: #c4cedd;
    --muted: #8391a7;
    --accent: #6d8bff;
    --accent-2: #8aa2ff;
    --accent-soft: #1a2448;
    --accent-ring: rgba(109, 139, 255, .28);
    --ok: #4ade80;
    --ok-soft: #0f2a1c;
    --warn: #fbbf24;
    --warn-soft: #2b220e;
    --danger: #f87171;
    --danger-soft: #2c1417;
    --wa: #4ade80;
    --side: #070b15;
    --side-hover: #121a2c;
    --side-active: #1b2747;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
    --paper: #121b2e;
    color-scheme: dark;
}

/* ===== Temel ===== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.5 "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
h3.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 4px; font-weight: 600; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
svg.ic, .menu svg, .tabbar svg, .flash svg, .side-search svg, .logo svg, .logout svg, .mtop svg {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin: 8px 2px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.small { font-size: 13px; }

/* ===== İskelet ===== */
.shell { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--side); color: var(--side-fg);
  display: flex; flex-direction: column; padding: 16px 14px; gap: 10px; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.brand strong { display: block; color: #fff; font-size: 16px; }
.brand small { display: block; color: var(--side-muted); font-size: 12px; margin-top: -2px; }
.logo {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
}
.logo.lg { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; }
.logo.lg svg { width: 28px; height: 28px; }
.side-search { position: relative; }
.side-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--side-muted); }
.side-search input {
  width: 100%; background: var(--side-hover); border: 1px solid transparent; color: #fff;
  border-radius: 10px; padding: 9px 10px 9px 34px; font: inherit; font-size: 14px;
}
.side-search input::placeholder { color: var(--side-muted); }
.side-search input:focus {
  outline: none; border-color: #3b82f6; background: var(--side-hover); color: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}
.side-search input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px var(--side-hover) inset; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; font-weight: 500; font-size: 15px; }
.menu a:hover { background: var(--side-hover); color: #fff; }
.menu a.on { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 #6d8bff; }
.menu-label { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--side-muted); padding: 10px 10px 3px; }
.menu-label:first-child { padding-top: 4px; }
.menu a .nb { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; background: #26314f; color: #c7d2fe; }
.menu a .nb.hot { background: #f59e0b; color: #1f1300; }
.menu a.on .nb { background: #3b5bfd; color: #fff; }
.side { overflow-y: auto; scrollbar-width: thin; }
.kbd-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: var(--side-hover); border: 1px solid transparent; color: var(--side-muted); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.kbd-hint:hover { border-color: #2b3a5e; color: var(--side-fg); }
.kbd-hint span { display: inline-flex; align-items: center; gap: 8px; }
kbd { font: 600 11.5px/1 "Barlow", system-ui, sans-serif; padding: 3px 6px; border-radius: 6px; border: 1px solid #2b3a5e; background: #0f1628; color: #94a3c4; }
.theme-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 10px; background: var(--side-hover); }
.theme-switch button { background: none; border: 0; color: var(--side-muted); border-radius: 7px; padding: 6px 0; cursor: pointer; display: grid; place-items: center; }
.theme-switch button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-switch button.on { background: var(--side-active); color: #fff; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 6px 0; border-top: 1px solid #1e293b; }
.mode { font-size: 12.5px; color: var(--side-muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #64748b; display: inline-block; }
.dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.logout { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 4px; border-radius: 8px; }
.logout:hover { color: #fff; }
.main { margin-left: 248px; padding: 32px 40px 48px; max-width: 1240px; }
.mtop, .tabbar { display: none; }

/* ===== Sayfa başlığı ===== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.sub-title { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.back:hover { color: var(--accent); }
.back svg { width: 16px; height: 16px; }

/* ===== Kartlar ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.count { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }
.link { color: var(--accent); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.link svg { width: 15px; height: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 + .grid-2 { margin-top: 18px; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.sticky { position: sticky; top: 24px; }
.narrow { max-width: 640px; }

/* ===== Düğmeler ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: inherit; font-weight: 600; font-size: 14.5px;
  padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--fg-2); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.iconbtn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px;
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; padding: 0;
}
.iconbtn:hover { background: var(--surface-2); border-color: var(--line); color: var(--fg); }
.iconbtn.danger:hover { color: var(--danger); background: var(--danger-soft); }
.iconbtn.active { color: var(--accent); }
.iconbtn.wa:hover { color: var(--wa); }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* ===== Formlar ===== */
.form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.form h2 { margin-bottom: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-2); min-width: 0; }
.field small { font-weight: 400; color: var(--muted); }
input, textarea, select {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
input[readonly] { color: var(--muted); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-foot { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.danger-zone { margin: 8px 0 18px; }

/* Hızlı kayıt / arama çubuğu */
.capture, .searchbar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; }
.capture input, .searchbar input { border: 0; background: none; padding: 10px 0; box-shadow: none; flex: 1; min-width: 0; }
.capture input:focus, .searchbar input:focus { box-shadow: none; background: none; }
.capture .lead, .searchbar .lead { color: var(--muted); width: 20px; height: 20px; }
.capture { border-color: var(--line-strong); }
.capture:focus-within, .searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.capture + .hint { margin: -8px 4px 22px; }
.searchbar { margin-bottom: 14px; }

/* ===== İstatistikler ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); transition: border-color .15s; }
.stat:hover { border-color: var(--accent); }
.stat strong { display: block; font-size: 24px; line-height: 1.1; font-weight: 700; }
.stat small { color: var(--muted); font-size: 13px; }
.stat-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.stat-ico.warn { background: var(--warn-soft); color: var(--warn); }
.stat-ico svg { width: 20px; height: 20px; }

/* ===== Liste öğeleri ===== */
.item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.card-head + .item, details.add + .item, .list > .item:first-child, .card > .item:first-child { border-top: 0; }
.item-body { flex: 1; min-width: 0; }
.item .text { margin: 0 0 4px; white-space: pre-wrap; word-break: break-word; }
.item .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); }
.item .meta .strong { color: var(--fg-2); font-weight: 600; }
.item .actions { display: flex; align-items: center; gap: 2px; flex: none; opacity: .75; }
.item:hover .actions { opacity: 1; }
.item .actions form { display: contents; }
.item.pinned { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.item.done .text { color: var(--muted); }
.link-item:hover .text strong, a.item-body:hover strong { color: var(--accent); }
.chev { color: var(--muted); align-self: center; }
.when-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); flex: none; }
.when-badge.past { background: var(--ok-soft); color: var(--ok); }
.score { font-size: 12px; }

.chip, .badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500;
  border-radius: 999px; padding: 1px 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg-2);
}
.chip svg, .badge svg { width: 13px; height: 13px; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip small { opacity: .7; }
.badge.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.badge.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }

.avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: var(--accent); background: var(--accent-soft);
}
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 10px; color: var(--muted); font-size: 14px; }
.empty svg { width: 28px; height: 28px; margin-bottom: 4px; opacity: .6; }
.empty strong { color: var(--fg-2); font-weight: 600; }

details.add { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); margin-bottom: 8px; }
details.add summary { list-style: none; cursor: pointer; padding: 9px 12px; display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }
details.add summary::-webkit-details-marker { display: none; }
details.add[open] summary { border-bottom: 1px dashed var(--line-strong); }
details.add .form { padding: 12px; }
details.collapsible summary { list-style: none; cursor: pointer; }
details.collapsible summary::-webkit-details-marker { display: none; }
details.collapsible summary h2::after { content: "▾"; color: var(--muted); font-size: 12px; margin-left: 4px; }
details.collapsible[open] summary { margin-bottom: 8px; }

/* ===== Müşteri profili ===== */
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-title { flex: 1; min-width: 200px; }
.profile-title h1 { font-size: 24px; }
.profile-title p { margin: 2px 0 6px; display: flex; align-items: center; gap: 6px; }
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; color: var(--accent); }
.qa svg { width: 20px; height: 20px; }
.qa:hover { border-color: var(--accent); background: var(--accent-soft); }
.qa.wa { color: var(--wa); }
.qa.wa:hover { border-color: var(--wa); background: var(--ok-soft); }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; margin: 0; }
.details > div { min-width: 0; }
.details .wide { grid-column: 1 / -1; }
.details dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.details dd { margin: 0; word-break: break-word; }
.details dd.pre { white-space: pre-wrap; }
.copy { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-align: left; word-break: break-all; }
.copy svg { color: var(--muted); width: 15px; height: 15px; }
.copy:hover svg { color: var(--accent); }
.reveal { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.reveal code { font-size: 15px; }

/* ===== Bildirim ===== */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; background: var(--ok-soft); color: var(--ok); font-weight: 500; transition: opacity .6s; }
.flash.err { background: var(--danger-soft); color: var(--danger); }
.flash.fade { opacity: 0; }

/* ===== Asistan sohbeti ===== */
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; max-width: 85%; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat form { align-self: center; margin-top: 8px; }

/* ===== Giriş ===== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 50% -10%, var(--accent-soft), transparent); }
.login { width: 100%; max-width: 380px; text-align: center; padding: 32px 28px; }
.login h1 { margin-bottom: 6px; }
.login .form { text-align: left; margin: 18px 0 12px; }
.login .hint { justify-content: center; }
.code { font-size: 28px; letter-spacing: .5em; text-align: center; padding-left: .5em; }

/* ===== Görevler ===== */
.task .check {
  width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; border: 2px solid var(--line-strong);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; color: transparent;
  transition: all .15s;
}
.task .check svg { width: 16px; height: 16px; stroke-width: 2.6; }
.task .check svg circle { display: none; }
.task .check:hover { border-color: var(--ok); color: var(--ok); }
.task .check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.task.prio-2 .check { border-color: var(--danger); }
.task.prio-1 .check { border-color: var(--warn); }
.task.done .text { text-decoration: line-through; color: var(--muted); }
.task form:first-child { display: block; }
.details-text { margin: -2px 0 4px; color: var(--muted); font-size: 14px; white-space: pre-wrap; }
.badge.danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.card.late { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.card-head.spaced { margin-top: 22px; }
.right { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ===== Defter ===== */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 14px 18px;
  box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: 8px; border-left: 4px solid var(--accent);
}
.quote.kind-nokta { border-left-color: var(--warn); }
.quote.kind-ders { border-left-color: var(--ok); }
.quote.kind-fikir { border-left-color: #a855f7; }
.quote-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quote .kind { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.quote .actions { display: flex; gap: 0; opacity: .6; }
.quote:hover .actions { opacity: 1; }
.quote .actions form { display: contents; }
.quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; font-family: Georgia, "Times New Roman", serif; }
.quote .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.author { font-style: italic; color: var(--fg-2); }
.iconbtn.star.active { color: #f59e0b; }
.iconbtn.star.active svg { fill: #f59e0b; }
.chip svg { width: 13px; height: 13px; }
.hero-quote, .quote-banner {
  position: relative; border-radius: var(--radius); padding: 22px 24px 20px 64px; margin-bottom: 18px; overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #4338ca); color: #e0e7ff; display: block;
}
.hero-quote .qmark, .quote-banner .qmark { position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; color: #a5b4fc; }
.hero-quote .eyebrow, .quote-banner .eyebrow { color: #a5b4fc; text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; font-weight: 700; }
.hero-quote blockquote, .quote-banner blockquote { margin: 0; color: #fff; font: 20px/1.5 Georgia, "Times New Roman", serif; }
.quote-banner blockquote { font-size: 17px; }
.hero-quote .author, .quote-banner .author { color: #c7d2fe; margin: 8px 0 0; display: block; }
.quote-banner:hover { filter: brightness(1.06); }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 3px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 7px 4px; border-radius: 7px; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
.menu-list .item { align-items: center; }
.menu-list .stat-ico { width: 38px; height: 38px; }

/* ===== Günlük ===== */
:root { --m1: #ef4444; --m2: #f59e0b; --m3: #94a3b8; --m4: #22c55e; --m5: #6366f1; }
.diary-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.diary-page { padding: 18px 22px 20px; }
.diary-date { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.date-title { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.date-title h2 { font-size: 18px; }
.date-pick { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); cursor: pointer; }
.date-pick:hover { background: var(--surface-2); color: var(--fg); }
.date-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; padding: 0; }
.date-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.moods { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.moods legend { font-size: 13px; font-weight: 600; color: var(--fg-2); margin-bottom: 8px; padding: 0; }
.mood { position: relative; }
.mood input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.mood span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); transition: all .15s; }
.mood b { font-size: 24px; line-height: 1.1; filter: grayscale(.7); opacity: .75; transition: all .15s; }
.mood small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mood:hover b { filter: none; opacity: 1; }
.mood input:checked + span { border-color: currentColor; background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.mood input:checked + span b { filter: none; opacity: 1; transform: scale(1.12); }
.mood input:focus-visible + span { outline: 2px solid var(--accent); }
.mood.m1 { color: var(--m1); } .mood.m2 { color: var(--m2); } .mood.m3 { color: var(--m3); } .mood.m4 { color: var(--m4); } .mood.m5 { color: var(--m5); }
.prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.prompts .chip { cursor: pointer; font: inherit; font-size: 12.5px; }
.prompts .chip:hover { border-color: var(--accent); color: var(--accent); }
#diary-text {
  min-height: 280px; resize: none; overflow: hidden; background: var(--paper); border-color: var(--line);
  font: 17px/1.75 Georgia, "Times New Roman", serif; padding: 16px 18px;
  background-image: linear-gradient(transparent calc(1.75em - 1px), color-mix(in srgb, var(--line) 70%, transparent) 0);
  background-size: 100% 1.75em; background-position: 0 16px; background-attachment: local;
}
.draft-note { margin-top: 8px; font-size: 13px; color: var(--warn); background: var(--warn-soft); padding: 8px 12px; border-radius: 8px; }
.diary-foot { display: flex; align-items: center; gap: 12px; margin: 12px 0 2px; }
.diary-foot .tags-input { flex: 1; }
.diary-foot .hint { margin: 0; white-space: nowrap; }
.memories .memory { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.memories .memory:first-of-type { border-top: 0; }
.mem-year { font-weight: 700; color: var(--accent); min-width: 64px; }
.mem-text { color: var(--fg-2); white-space: pre-wrap; }
.memory:hover .mem-text { color: var(--fg); }
.day-badge { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 0; }
.day-badge strong { display: block; font-size: 18px; line-height: 1.1; }
.day-badge small { font-size: 11px; color: var(--muted); }
.diary-row .text { color: var(--fg-2); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-wd { font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--fg-2); position: relative; }
a.cal-day:hover { background: var(--surface-2); }
.cal-day.out { color: transparent; }
.cal-day.future { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); font-weight: 700; }
.cal-day.has { color: #fff; font-weight: 700; background: var(--m3); }
.cal-day.has.m0 { background: var(--accent); }
.cal-day.m1 { background: var(--m1); } .cal-day.m2 { background: var(--m2); } .cal-day.m3 { background: var(--m3); } .cal-day.m4 { background: var(--m4); } .cal-day.m5 { background: var(--m5); }
.cal-day.sel { outline: 2px solid var(--fg); outline-offset: 1px; }
.diary-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 14px 8px; }
.dstat strong { display: block; font-size: 20px; }
.dstat small { color: var(--muted); font-size: 12px; }
.dstat + .dstat { border-left: 1px solid var(--line); }
.mood-strip { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.ms { display: block; height: 26px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.ms.w { background: var(--accent); border-color: transparent; opacity: .6; }
.ms.m1 { background: var(--m1); border-color: transparent; } .ms.m2 { background: var(--m2); border-color: transparent; }
.ms.m3 { background: var(--m3); border-color: transparent; } .ms.m4 { background: var(--m4); border-color: transparent; }
.ms.m5 { background: var(--m5); border-color: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .ms { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.diary-cta { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.diary-cta.done { border-style: solid; border-color: var(--line); }
.diary-cta .grow { flex: 1; min-width: 0; }
.diary-cta strong { display: block; }
.diary-cta small { color: var(--muted); font-size: 13px; }
.diary-cta:hover { border-color: var(--accent); }

/* ===== Bildirim (toast) ===== */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--elev); color: var(--fg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-weight: 500; font-size: 14px; animation: toast-in .25s ease-out; white-space: pre-line; }
.toast svg { width: 20px; height: 20px; flex: none; color: var(--ok); }
.toast.err svg { color: var(--danger); }
.toast .x { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.toast.hide { opacity: 0; transform: translateY(-6px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ===== Komut paleti (Ctrl+K) ===== */
.palette-back { position: fixed; inset: 0; z-index: 70; background: rgba(8, 12, 24, .45); backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.palette-back.open { display: flex; }
.palette { width: 100%; max-width: 560px; background: var(--elev); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: toast-in .18s ease-out; }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-in svg { width: 20px; height: 20px; color: var(--muted); }
.palette-in input { border: 0; background: none; padding: 4px 0; font-size: 16px; box-shadow: none !important; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--fg-2); font-weight: 500; }
.palette li a svg { width: 18px; height: 18px; color: var(--muted); }
.palette li a small { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.palette li.sel a { background: var(--accent-soft); color: var(--accent); }
.palette li.sel a svg { color: var(--accent); }
.palette .sect { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.palette-foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.palette-foot kbd { background: var(--surface-2); border-color: var(--line); color: var(--muted); }

/* ===== Hızlı ekle (telefon) ===== */
.fab { display: none; }
.sheet-back { position: fixed; inset: 0; z-index: 65; background: rgba(8, 12, 24, .45); display: none; align-items: flex-end; }
.sheet-back.open { display: flex; }
.sheet { width: 100%; background: var(--elev); border-radius: 20px 20px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheet-in .22s ease-out; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: 0 auto 12px; }
.sheet h3 { font-size: 16px; margin: 0 0 10px; }
.sheet .form { gap: 10px; }
.sheet-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.sheet-chips button { flex: none; }
.sheet-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.sheet-links a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--fg-2); }
.sheet-links a svg { width: 20px; height: 20px; color: var(--accent); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: .4; } }
button.chip { font: inherit; font-size: 12.5px; cursor: pointer; }
button.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Hava durumu ===== */
.weather { display: flex; align-items: center; gap: 16px; }
.weather .big { font-size: 40px; line-height: 1; }
.weather .temp { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.weather .w-text { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.w-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.w-day { text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; }
.w-day b { display: block; font-size: 20px; margin: 2px 0; font-weight: 400; }
.w-day .mm { font-weight: 600; color: var(--fg-2); }
.w-day .rain { color: var(--accent); font-size: 11.5px; }
.weather-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; }
.weather-chip small { color: var(--muted); font-weight: 500; }

/* ===== Pano ===== */
.theme-switch.light-ui { background: var(--surface-2); border: 1px solid var(--line); }
.theme-switch.light-ui button { color: var(--muted); display: flex; gap: 6px; justify-content: center; align-items: center; font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 0; }
.theme-switch.light-ui button.on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.mtop-actions { display: flex; gap: 2px; }
.bday-list.single { grid-template-columns: 1fr; }
.num { font-variant-numeric: tabular-nums; }
.dash { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash > div > .card, .dash > div > a, .dash > div > section { margin-bottom: 18px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.mini-list li:first-child { border-top: 0; }
.mini-list form { display: contents; }
.stat .trend { font-size: 12px; font-weight: 600; margin-left: 6px; }
.trend.up { color: var(--danger); } .trend.down { color: var(--ok); }

/* ===== Harcamalar ===== */
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav strong { min-width: 130px; text-align: center; font-size: 15px; }
.spend-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.spend-hero .stat strong { font-size: 22px; }
.budget-bar { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 6px; }
.budget-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #16a34a); }
.budget-bar i.warn { background: linear-gradient(90deg, #f59e0b, #d97706); }
.budget-bar i.over { background: linear-gradient(90deg, #ef4444, #dc2626); }
.cat-bars { display: flex; flex-direction: column; gap: 10px; }
.cat-bar { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 14px; }
.cat-bar .emo { font-size: 18px; grid-row: span 2; }
.cat-bar .track { grid-column: 2 / 4; height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.cat-bar .track i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.cat-bar .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.day-group { margin-top: 6px; }
.day-group h4 { margin: 14px 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; }
.exp .amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: center; }
.exp .emo { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 17px; flex: none; }
.amount-input { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cat-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cat-picker label { position: relative; }
.cat-picker input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cat-picker span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.2; }
.cat-picker span b { font-size: 18px; font-weight: 400; }
.cat-picker input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.cat-picker input:focus-visible + span { outline: 2px solid var(--accent); }

/* ===== Alışveriş ===== */
.shop-add { display: flex; gap: 8px; }
.shop-add input { flex: 1; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.shop-item:first-child { border-top: 0; }
.shop-item form { display: contents; }
.shop-item .name { flex: 1; font-size: 15.5px; }
.shop-item.done .name { text-decoration: line-through; color: var(--muted); }
.shop-item .check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; color: transparent; flex: none; }
.shop-item .check:hover { border-color: var(--ok); color: var(--ok); }
.shop-item.done .check { background: var(--ok); border-color: var(--ok); color: #fff; }
.shop-item .check svg { width: 15px; height: 15px; stroke-width: 2.6; }
.shop-item .check svg circle { display: none; }

/* ===== Belgeler & abonelikler ===== */
.doc .emo, .sub .emo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 18px; flex: none; }
.doc .deadline { text-align: right; flex: none; align-self: center; line-height: 1.2; }
.doc .deadline strong { display: block; font-size: 14px; }
.doc .deadline small { color: var(--muted); font-size: 12.5px; }
.doc.st-expired .deadline strong { color: var(--danger); }
.doc.st-urgent .deadline strong { color: #ea580c; }
.doc.st-soon .deadline strong { color: var(--warn); }
.doc.st-ok .deadline strong { color: var(--ok); }
.doc.st-expired .emo { background: var(--danger-soft); border-color: transparent; }
.doc.st-urgent .emo { background: var(--warn-soft); border-color: transparent; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.sub .amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; align-self: center; }
.sub.inactive { opacity: .55; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--fg-2); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.mini-list .grow { flex: 1; min-width: 0; }
.mini-list a.grow:hover { color: var(--accent); }

/* ===== Doğum günleri ===== */
.bday-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.bday { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.bday:hover { border-color: var(--accent); }
.bday strong { display: block; }
.bday small { color: var(--muted); font-size: 12.5px; }
.bday .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.bday.today { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 12%, var(--surface)); }
.bday.today .avatar { background: #f59e0b; color: #fff; }
.bday-banner { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.bday-banner.today { background: color-mix(in srgb, #f59e0b 16%, var(--surface)); color: #b45309; }
.bday-banner svg { width: 20px; height: 20px; }

/* ===== Şifre üretici ===== */
.pw-row { display: flex; gap: 6px; align-items: center; }
.pw-row input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.pw-row .iconbtn { border: 1px solid var(--line-strong); height: 42px; width: 42px; flex: none; }
.strength { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 2px; }
.strength i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }
.strength i[data-r="1"] { background: #f97316; } .strength i[data-r="2"] { background: #eab308; }
.strength i[data-r="3"] { background: #22c55e; } .strength i[data-r="4"] { background: #16a34a; }

/* Telefonda katlanan ekleme formları */
details.m-collapse > summary { display: none; }
details.m-collapse > summary::-webkit-details-marker { display: none; }
.chip, .badge { white-space: nowrap; }

/* ===== Tablet ===== */
@media (max-width: 1100px) {
  .layout-aside { grid-template-columns: 1fr; }
  .layout-aside > aside { order: -1; }
  .dash { grid-template-columns: 1fr; }
  .diary-layout > aside { order: 0; }
  details.m-collapse > summary { display: flex; list-style: none; margin-bottom: 14px; }
  details.m-collapse[open] > summary { display: none; }
  .sticky { position: static; }
  .main { padding: 28px 28px 48px; }
}

/* ===== Telefon ===== */
@media (max-width: 820px) {
  body { font-size: 15.5px; }
  .side { display: none; }
  .main { margin-left: 0; padding: 16px 16px calc(88px + env(safe-area-inset-bottom)); }
  .mtop {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 9;
    padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top));
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .mtop .brand strong { color: var(--fg); }
  .mtop .logo { width: 30px; height: 30px; border-radius: 9px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; justify-content: space-around;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 8px; border-radius: 10px; min-width: 56px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--accent); }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 10; width: 54px; height: 54px; border-radius: 16px; border: 0; background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(59, 91, 253, .45); cursor: pointer; }
  .fab svg { width: 26px; height: 26px; }
  .toasts { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); left: 16px; right: 16px; }
  .toast { min-width: 0; max-width: none; }
  .dash { grid-template-columns: 1fr; gap: 0; }
  .doc .meta .mono { display: none; }
  .item.doc, .item.sub { flex-wrap: wrap; }
  .doc .actions, .sub .actions { order: 2; }
  .doc .deadline { order: 3; flex-basis: 100%; display: flex; align-items: baseline; gap: 8px; text-align: left; padding-left: 50px; margin-top: -4px; }
  .doc .deadline strong { display: inline; font-size: 13.5px; }
  .sub .amount { order: 3; flex-basis: 100%; padding-left: 50px; margin-top: -4px; font-size: 15px; }
  .item .meta .badge, .item .meta .chip { white-space: normal; }
  .spend-hero { grid-template-columns: 1fr 1fr; gap: 10px; }
  .spend-hero .stat:first-child { grid-column: 1 / -1; }
  .cat-picker { grid-template-columns: repeat(4, 1fr); }
  .mtop .theme-btn { display: grid; }
  h1 { font-size: 22px; }
  .page-head { margin-bottom: 14px; }
  .card { padding: 14px 16px; border-radius: 12px; margin-bottom: 14px; }
  .item.pinned { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 14px; }
  .grid-2 + .card { margin-top: 14px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat-ico { width: 36px; height: 36px; }
  .stat strong { font-size: 20px; }
  .stat strong.num { font-size: 17px; white-space: nowrap; }
  .form-grid, .row-2 { grid-template-columns: 1fr; }
  .capture { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .capture input { flex: 1 1 60%; }
  .item .actions { opacity: 1; }
  .item .actions .btn.sm { padding: 6px 8px; }
  .item .actions .lbl { display: none; }
  .msg { max-width: 92%; }
  .quote-grid { grid-template-columns: 1fr; }
  .hero-quote, .quote-banner { padding: 18px 18px 16px 54px; }
  .hero-quote .qmark, .quote-banner .qmark { left: 16px; top: 18px; width: 26px; height: 26px; }
  .hero-quote blockquote { font-size: 18px; }
  .segmented { grid-template-columns: repeat(2, 1fr); }
  .diary-page { padding: 14px 14px 16px; }
  .date-title h2 { font-size: 16px; }
  .moods { gap: 5px; }
  .mood b { font-size: 22px; }
  .mood small { font-size: 10.5px; }
  #diary-text { font-size: 16.5px; padding: 14px; }
  .diary-foot { flex-direction: column; align-items: stretch; }
  .diary-foot .hint { text-align: right; }
  .profile-head .btn { width: 100%; }
}
@media (max-width: 380px) {
  .tabbar a { min-width: 0; padding: 4px; }
}
