/* Finans Yönetim Sistemi — tasarım sistemi (açık tema, lacivert ana renk) */
:root {
  --page: #fbf6ec;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-2: #f6f6f3;
  --border: #ececea;
  --border-strong: #dcdcd7;
  --ink: #111410;
  --ink-2: #4b4f48;
  --ink-3: #8a8e86;
  --lime: #7cc520;
  --lime-2: #9ad84a;
  --lime-50: #eef8e0;
  --forest: #2f5d10;
  --forest-600: #3d7415;
  --panel: #3a4a3c;
  --panel-2: #465847;
  --panel-3: #2f3c31;
  /* eski adlar yeni temaya bağlanır */
  --navy: #1d4a12;
  --navy-600: #2a5f1b;
  --navy-50: #f0f6e8;
  --navy-100: #d9ecc3;
  --income: #0f8a5f;      /* metin/ikon için koyu yeşil */
  --income-mark: #1baf7a; /* grafik işareti */
  --income-bg: #e8f6ef;
  --expense: #c43535;
  --expense-mark: #e34948;
  --expense-bg: #fcecec;
  --warn: #b26a00;
  --warn-mark: #eda100;
  --warn-bg: #fff5e0;
  --info-bg: #eaf2fd;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #6250d6;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: none;
  --shadow-lg: 0 12px 32px rgba(15, 27, 45, .14);
  --font: "Urbanist", "Outfit", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 248px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.1rem; font-weight: 650; }
h3 { font-size: .95rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--ink-3); }
.num, .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

/* --- Yerleşim --- */
.app { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--navy); color: #d6deec; display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; color: #fff; font-weight: 700; font-size: 1rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.12); display: grid; place-items: center; }
.brand small { display: block; color: #9fb0cf; font-weight: 500; font-size: .75rem; }
.nav { padding: 6px 12px; overflow-y: auto; flex: 1; }
.nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8297bd; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: #d6deec; font-weight: 500; font-size: .92rem; }
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(255,255,255,.13); color: #fff; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.sidebar-foot .who { color: #fff; font-weight: 600; }
.sidebar-foot .role { color: #9fb0cf; font-size: .78rem; }
.main { margin-left: var(--sidebar); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245,246,249,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 12px 28px; display: flex; align-items: center; gap: 12px; }
.topbar .title { font-weight: 650; font-size: 1.05rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 24px 28px 48px; max-width: 1400px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }
.demo-banner { background: var(--warn-bg); color: #6b4300; border-bottom: 1px solid #f3dfb2; padding: 8px 28px; font-size: .88rem; display: flex; gap: 8px; align-items: center; }

/* --- Bileşenler --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 1rem; }
.card-body { padding: 16px 20px; }
.grid { display: grid; gap: 16px; }
.grid > *, .hero-grid > *, .kpis > *, .org-cards > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.right { text-align: right; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 24px; } .mb { margin-bottom: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #9ec5f4; outline-offset: 1px; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-600); }
.btn-income { background: var(--income); border-color: var(--income); color: #fff; }
.btn-income:hover { background: #0c7a54; }
.btn-expense { background: var(--expense); border-color: var(--expense); color: #fff; }
.btn-expense:hover { background: #ad2e2e; }
.btn-danger { color: var(--expense); border-color: #f0c4c4; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: .84rem; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; padding: 0; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--navy-50); color: var(--navy-600); white-space: nowrap; }
.badge-income, .badge-paid { background: var(--income-bg); color: var(--income); }
.badge-expense, .badge-overdue { background: var(--expense-bg); color: var(--expense); }
.badge-warn, .badge-partial, .badge-unpaid { background: var(--warn-bg); color: var(--warn); }
.badge-muted, .badge-cancelled { background: #eef0f3; color: var(--ink-3); }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .92rem; border: 1px solid; }
.alert-success { background: var(--income-bg); border-color: #bfe6d3; color: #0b5e41; }
.alert-error { background: var(--expense-bg); border-color: #f2c6c6; color: #8f2424; }
.alert-warning { background: var(--warn-bg); border-color: #f3dfb2; color: #6b4300; }
.alert-info { background: var(--info-bg); border-color: #cfe0f8; color: #1c4c8a; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* KPI kartları */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .label { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-2); font-weight: 600; }
.kpi .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-600); }
.kpi.income .ic { background: var(--income-bg); color: var(--income); }
.kpi.expense .ic { background: var(--expense-bg); color: var(--expense); }
.kpi.warn .ic { background: var(--warn-bg); color: var(--warn); }
.kpi .value { font-size: 1.55rem; font-weight: 700; margin: 10px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .value.pos { color: var(--income); } .kpi .value.neg { color: var(--expense); }
.kpi .sub { font-size: .8rem; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.delta { font-weight: 650; display: inline-flex; align-items: center; gap: 2px; }
.delta.up { color: var(--income); } .delta.down { color: var(--expense); } .delta.flat { color: var(--ink-3); }
.delta.bad.up { color: var(--expense); } .delta.bad.down { color: var(--income); }
.method { font-size: .74rem; color: var(--ink-3); margin-top: 4px; }

/* Kurum kartları */
.org-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.org-card { display: block; padding: 18px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.org-card:hover { text-decoration: none; border-color: var(--navy-100); box-shadow: var(--shadow-lg); }
.org-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 10px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.org-card .name { font-weight: 650; line-height: 1.3; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.metric .k { font-size: .76rem; color: var(--ink-3); }
.metric .v { font-weight: 650; font-variant-numeric: tabular-nums; }
.bar-split { height: 6px; border-radius: 4px; background: var(--expense-bg); margin-top: 14px; overflow: hidden; display: flex; gap: 2px; }
.bar-split span { display: block; height: 100%; border-radius: 4px; }

/* Filtre çubuğu */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.filters .field { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg a, .seg button { padding: 0 12px; height: 38px; display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 600; font-size: .86rem; border: 0; background: none; cursor: pointer; font-family: inherit; }
.seg a + a, .seg button + button { border-left: 1px solid var(--border); }
.seg .on { background: var(--navy); color: #fff; }
.seg a:hover { text-decoration: none; }

/* Formlar */
.field { display: block; margin-bottom: 14px; }
.field > span, .label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: var(--ink-3); margin-top: 4px; display: block; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%; height: 42px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
textarea { height: auto; padding: 10px 12px; min-height: 80px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8497' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input-money { font-size: 1.35rem !important; height: 54px !important; font-weight: 650; font-variant-numeric: tabular-nums; }
.is-invalid { border-color: var(--expense) !important; }
.error { color: var(--expense); font-size: .8rem; margin-top: 4px; display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { border: 1px solid var(--border-strong); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .84rem; cursor: pointer; font-family: inherit; color: var(--ink-2); font-weight: 500; }
.chip.on, .chip:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-50); }
.toggle-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.toggle-dir a { text-align: center; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); font-weight: 650; color: var(--ink-2); }
.toggle-dir a.on.income { background: var(--income-bg); border-color: var(--income); color: var(--income); }
.toggle-dir a.on.expense { background: var(--expense-bg); border-color: var(--expense); color: var(--expense); }
.toggle-dir a:hover { text-decoration: none; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px 6px; margin: 0 0 16px; }
legend { padding: 0 6px; font-weight: 650; font-size: .9rem; }
.perm-group { margin-bottom: 10px; }
.perm-group h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 8px 0 2px; }

/* Tablolar */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
.t th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: #fafbfd; }
.t .r { text-align: right; }
.t tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--border-strong); }
.t .link-row { cursor: pointer; }
.cancelled-row td { color: var(--ink-3); text-decoration: line-through; }
.amount-in { color: var(--income); font-weight: 650; }
.amount-out { color: var(--expense); font-weight: 650; }

/* Listeler (mobil dostu) */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .meta { font-size: .8rem; color: var(--ink-3); }
.dot-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--navy-50); color: var(--navy-600); }
.dot-ic.in { background: var(--income-bg); color: var(--income); }
.dot-ic.out { background: var(--expense-bg); color: var(--expense); }
.dot-ic.warn { background: var(--warn-bg); color: var(--warn); }
.empty { text-align: center; padding: 36px 20px; color: var(--ink-3); }
.empty svg.i { width: 34px; height: 34px; color: var(--border-strong); margin-bottom: 8px; }
.empty h3 { color: var(--ink-2); margin-bottom: 4px; }

/* Detay */
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; font-weight: 500; }
.progress { height: 8px; border-radius: 4px; background: #edf0f5; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--income-mark); border-radius: 4px; }

/* Grafikler */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #edf0f5; stroke-width: 1; }
.chart .axis-text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + g rect, .chart .hit:hover + g circle { opacity: .85; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tooltip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: .8rem; line-height: 1.45; white-space: nowrap; z-index: 5; box-shadow: var(--shadow-lg); transform: translate(-50%, calc(-100% - 10px)); display: none; }
.tooltip b { font-weight: 650; }
.tooltip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut-wrap svg { width: 150px; height: 150px; flex: none; }
.share-list { flex: 1; min-width: 180px; list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.share-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.share-list .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.share-list .n { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 8px 12px; align-items: center; font-size: .86rem; }
.hbar .track { height: 10px; background: #f0f2f6; border-radius: 0 4px 4px 0; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; }
details.table-view summary { cursor: pointer; font-size: .82rem; color: var(--navy-600); margin-top: 10px; }

/* Modal / alt panel */
dialog.sheet { border: 0; padding: 0; border-radius: 16px; width: min(560px, 94vw); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(15, 27, 45, .45); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.sheet-body { padding: 18px 20px; max-height: 75vh; overflow-y: auto; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); font-weight: 600; font-size: .86rem; text-align: center; }
.quick-grid a:hover { border-color: var(--navy-100); background: var(--navy-50); text-decoration: none; }
.quick-grid .dot-ic { width: 42px; height: 42px; }

/* Mobil alt menü + FAB */
.bottom-nav, .fab { display: none; }

/* Sayfalama */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); padding: 0 10px; font-size: .86rem; color: var(--ink-2); background: #fff; }
.pagination .on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .off { opacity: .45; }

/* Giriş */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(160deg, #eef2f9 0%, #f5f6f9 50%, #e9eef7 100%); }
.auth-card { width: min(420px, 100%); padding: 32px; }
.auth-card .brand { color: var(--navy); padding: 0 0 20px; }
.auth-card .brand-mark { background: var(--navy); color: #fff; }
.auth-card .brand small { color: var(--ink-3); }


/* ================= TEMA: yuvarlak kartlar, fıstık yeşili vurgu, üst hap menü ================= */
html { background: var(--page); }
body { background: var(--page); }
.sidebar { display: none; }
.main { margin-left: 0; }
.shell { max-width: 1440px; margin: 20px auto; background: var(--bg); border-radius: 32px; min-height: calc(100vh - 40px); padding: 0 0 8px; }
.tophead { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 22px 28px 8px; position: sticky; top: 0; z-index: 25; background: var(--bg); border-radius: 32px 32px 0 0; }
.hello { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.hello:hover { text-decoration: none; }
.avatar-round { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.hello-txt { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hello-txt small { display: block; font-size: .74rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-bottom: 2px; }
.pills { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pills > a, .pills summary { padding: 9px 18px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; }
.pills summary::-webkit-details-marker { display: none; }
.pills > a:hover, .pills summary:hover { color: var(--ink); text-decoration: none; background: rgba(0,0,0,.035); }
.pills > a.on, .pills summary.on { background: var(--lime); color: var(--forest); font-weight: 600; }
svg.i.rot { transform: rotate(90deg); width: 13px; height: 13px; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; list-style: none; }
.round-btn::-webkit-details-marker { display: none; }
.round-btn.lime { background: var(--lime); color: var(--forest); }
.round-btn:hover { filter: brightness(.97); }
.bell-btn { height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; position: relative; }
.bell-btn:hover { text-decoration: none; }
.bell-btn .dot { position: absolute; left: 25px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--expense-mark); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: #fff; border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg); z-index: 50; }
.dropdown.right .dropdown-menu { left: auto; right: 0; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; color: var(--ink); font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); text-decoration: none; }
.dd-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dd-head small { display: block; color: var(--ink-3); }
.page-title { padding: 6px 28px 0; font-size: .82rem; color: var(--ink-3); font-weight: 500; }
.content { padding: 14px 28px 40px; max-width: none; }
.demo-banner { margin: 6px 28px 0; border-radius: 999px; border: 0; padding: 8px 16px; }

/* Kartlar ve tipografi */
.card { border: 0; border-radius: var(--radius); }
.card-head { border-bottom: 0; padding: 20px 22px 6px; }
.card-head h2 { font-size: 1.08rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.card-body { padding: 12px 22px 20px; }
.card-pad { padding: 22px; }
h1 { font-size: 1.7rem; font-weight: 600; letter-spacing: -.025em; }
h2 { font-weight: 600; }
.ico-chip { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-grid; place-items: center; color: var(--ink); flex: none; }
.btn { border-radius: 999px; height: 42px; padding: 0 18px; font-weight: 500; border-color: var(--border-strong); }
.btn-primary { background: var(--forest); border-color: var(--forest); color: #eaf7d8; }
.btn-primary:hover { background: var(--forest-600); }
.btn-income { background: var(--forest); border-color: var(--forest); color: #eaf7d8; }
.btn-income:hover { background: var(--forest-600); }
.btn-expense { background: #fff; border-color: var(--forest); color: var(--forest); }
.btn-expense:hover { background: var(--lime-50); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.btn-sm { height: 34px; padding: 0 14px; }
.badge { border-radius: 999px; padding: 3px 10px; font-weight: 500; }
.badge-income, .badge-paid { background: var(--lime-50); color: var(--forest); }
.alert { border-radius: 18px; border: 0; }
.alert-success { background: var(--lime-50); color: var(--forest); }
.seg { border: 0; background: var(--surface); border-radius: 999px; padding: 4px; gap: 2px; }
.seg a, .seg button, .seg label { border-radius: 999px; height: 34px; border: 0 !important; }
.seg .on { background: var(--lime); color: var(--forest); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea { border-radius: 14px; border-color: var(--border-strong); background: var(--surface-2); }
input:focus, select:focus, textarea:focus { background: #fff; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }
.chip { border-radius: 999px; }
.chip.on, .chip:hover { border-color: var(--forest); color: var(--forest); background: var(--lime-50); }
.toggle-dir a { border-radius: 999px; }
.toggle-dir a.on.income { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.toggle-dir a.on.expense { background: var(--forest); border-color: var(--forest); color: #eaf7d8; }
fieldset { border-radius: 18px; }
.check input { accent-color: var(--forest); }
.t th { background: transparent; text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 500; }
.t tbody tr:hover { background: var(--surface-2); }
.t tfoot td { background: var(--surface-2); }
.table-wrap { padding: 0 8px 8px; }
.list li { border-bottom: 1px solid var(--border); margin: 0 22px; padding: 14px 0; }
.list li:last-child { border-bottom: 0; }
.dot-ic { border-radius: 50%; background: var(--surface-2); color: var(--ink); width: 40px; height: 40px; border: 1px solid var(--border); }
.dot-ic.in { background: var(--lime-50); color: var(--forest); border-color: #dcefc4; }
.dot-ic.out { background: var(--expense-bg); border-color: #f6d5d5; }
.dot-ic.warn { border-color: #f3e3bd; }
.amount-in { color: #2f7d1f; }
.avatar { border-radius: 50%; background: var(--lime-50); color: var(--forest); }
.kpi { padding: 20px 22px; }
.kpi .ic { border-radius: 50%; width: 36px; height: 36px; background: transparent; border: 1px solid var(--border-strong); color: var(--ink); }
.kpi.income .ic, .kpi.expense .ic, .kpi.warn .ic { background: transparent; }
.kpi .label { font-weight: 500; font-size: .92rem; color: var(--ink); }
.kpi .value { font-size: 1.85rem; font-weight: 500; letter-spacing: -.03em; }
.kpi .value.pos { color: var(--ink); }
.delta { padding: 2px 8px; border-radius: 999px; background: var(--lime-50); }
.delta.down, .delta.bad.up { background: var(--expense-bg); }
.delta.bad.down { background: var(--lime-50); }
.delta.flat { background: var(--surface-2); }
.delta.up { color: #2f7d1f; } .delta.bad.down { color: #2f7d1f; }
.progress { height: 10px; border-radius: 999px; background: #ececea; }
.progress span { background: var(--lime); border-radius: 999px; }
.org-card:hover { box-shadow: 0 10px 28px rgba(17,20,16,.08); }
.bar-split { height: 8px; border-radius: 999px; background: transparent; }
.bar-split span { border-radius: 999px; }
dialog.sheet { border-radius: 28px; }
.sheet-head { border-bottom: 0; }
.quick-grid a { border-radius: 20px; border-color: var(--border); }
.quick-grid a:hover { background: var(--lime-50); border-color: var(--lime); }
.pagination a, .pagination span { border-radius: 999px; }
.pagination .on { background: var(--forest); border-color: var(--forest); }
.empty svg.i { color: var(--lime); }
.auth { background: var(--page); }
.auth-card { border-radius: 28px; }
.auth-card .brand { color: var(--ink); }
.auth-card .brand-mark { background: var(--lime); color: var(--forest); border-radius: 50%; }
.fab { background: var(--lime) !important; color: var(--forest) !important; }
.bottom-nav a.active { color: var(--forest); }
.filters.card { background: transparent; padding: 0 !important; }
.legend i { border-radius: 50%; }

/* Ana panel: kahraman kartlar */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; }
.hero { padding: 26px 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 250px; }
.hero .eyebrow { font-size: .88rem; color: var(--ink-2); margin-bottom: 6px; }
.hero .big { font-size: 3.6rem; font-weight: 400; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero .big .cur { font-size: .55em; vertical-align: .55em; margin-left: 4px; letter-spacing: 0; }
.hero-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 26px; flex-wrap: wrap; }
.hero-actions { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 24px; flex-wrap: wrap; }
.hero-arrow { position: absolute; right: 24px; bottom: 22px; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; }
.hero-arrow svg.i { width: 26px; height: 26px; transform: rotate(45deg); }
.hero-arrow:hover { filter: brightness(.96); text-decoration: none; }
.hero.lime { background: var(--lime); }
.hero.lime::after { content: ""; position: absolute; right: -30px; top: -20px; width: 190px; height: 190px; background: var(--lime-2); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .8; }
.hero.lime > * { position: relative; z-index: 1; }
.tag-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--forest); color: #eaf7d8; border-radius: 999px; padding: 6px 6px 6px 16px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.tag-pill span { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--forest); display: grid; place-items: center; }
.mini-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 20px; }
.mini-tile { background: rgba(255,255,255,.38); border-radius: 18px; padding: 12px 14px; }
.mini-tile .k { font-size: .8rem; color: var(--forest); }
.mini-tile .v { font-size: 1.2rem; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pill-note { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 600; color: #2f7d1f; }
.pill-note.neg { color: var(--expense); }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.meter { margin-top: 14px; }
.meter-row { display: flex; justify-content: space-between; font-size: .86rem; color: var(--ink-2); margin: 12px 0 6px; }
.meter-row b { font-weight: 500; color: var(--ink); }
.meter-track { height: 12px; border-radius: 999px; background: #ececea; overflow: hidden; }
.meter-track span { display: block; height: 100%; border-radius: 999px; background: var(--lime); }
.meter-track span.dark { background: var(--forest); }
.meter-track span.red { background: repeating-linear-gradient(135deg, #e34948 0 3px, #f6a3a2 3px 5px); }
.dash-filters { display: flex; }
@media (max-width: 1100px) {
  .tophead { grid-template-columns: auto auto; }
  .pills { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .head-actions { justify-self: end; }
  .hero-grid, .kpi-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .g-3, .g-main { grid-template-columns: minmax(0, 1fr); }
  .shell { margin: 0; border-radius: 0; min-height: 100vh; }
  .tophead { padding: 14px 14px 6px; border-radius: 0; }
  .pills { display: none; }
  .hello-txt { font-size: 1.1rem; }
  .avatar-round, .round-btn, .bell-btn { width: 40px; height: 40px; }
  .bell-btn { width: auto; padding: 0 12px; }
  .bell-btn .dot { left: 21px; top: 9px; }
  .page-title { padding: 2px 14px 0; }
  .content { padding: 10px 14px 32px; }
  .demo-banner { margin: 4px 14px 0; border-radius: 14px; }
  .hero { padding: 20px; min-height: 0; }
  .hero .big { font-size: 2.4rem; }
  .hero-arrow { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .list li { margin: 0 14px; }
  .kpi .value { font-size: 1.25rem; }
}


/* ================= DÜZEN 2: sol menü + orta içerik + sağ profil paneli ================= */
.frame { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 0; max-width: 1560px; margin: 24px auto; background: var(--bg); border-radius: 36px; border: 6px solid #e9e9e6; min-height: calc(100vh - 48px); }
.side { background: #fff; border-radius: 30px 0 0 30px; display: flex; flex-direction: column; position: sticky; top: 24px; align-self: start; height: calc(100vh - 60px); box-shadow: 6px 0 24px rgba(0,0,0,.04); z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; padding: 30px 26px 22px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--border); font-size: 1.02rem; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--lime); color: #fff; display: grid; place-items: center; }
.side-nav { padding: 6px 0; overflow-y: auto; flex: 1; }
.side-label { font-size: 1.02rem; font-weight: 500; color: var(--ink); padding: 22px 26px 8px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 26px; color: #8b8f88; font: inherit; font-size: .93rem; font-weight: 500; border: 0; background: none; width: 100%; cursor: pointer; position: relative; text-align: left; }
.side-nav a:hover, .side-nav button:hover { color: var(--ink); text-decoration: none; background: #fafbf8; }
.side-nav a.active { background: var(--lime-50); color: var(--lime); font-weight: 600; }
.side-nav a.active::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 5px; background: var(--lime); border-radius: 4px 0 0 4px; }
.side-nav a.active svg.i { color: var(--lime); }
.red-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--expense-mark); margin-left: -6px; align-self: flex-start; margin-top: 2px; }
.side-foot { padding: 18px 26px 24px; color: #9a9d96; font-size: .82rem; text-align: center; }
.center { min-width: 0; padding: 0 6px; }
.center-head { display: flex; align-items: center; gap: 16px; padding: 30px 26px 6px; }
.ch-title { flex: 1; min-width: 0; }
.ch-title h1 { font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; }
.ch-title p { margin: 4px 0 0; color: var(--ink-3); font-size: .88rem; }
.search { display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 0 8px 0 18px; width: min(300px, 40%); height: 50px; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.search input { border: 0 !important; background: transparent !important; height: 48px; padding: 0; font-size: .92rem; }
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 3px solid var(--lime-50); }
.search button { border: 0; background: none; color: var(--ink-3); width: 36px; height: 36px; cursor: pointer; display: grid; place-items: center; }
.mobile-head { display: none; }
.content { padding: 14px 26px 40px; }
.demo-banner { margin: 8px 26px 0; }
.content h1 { font-size: 1.3rem; }
.page-sub { color: var(--ink-3); margin: 0; }

/* sağ panel */
.rail { background: var(--panel); color: #e9efe6; border-radius: 0 30px 30px 0; padding: 26px 18px 22px; position: sticky; top: 24px; align-self: start; min-height: calc(100vh - 60px); display: flex; flex-direction: column; }
.rail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 0 4px; }
.rail-head h2 { color: #fff; font-size: 1.15rem; font-weight: 500; }
.rail-ic { color: #fff; position: relative; display: inline-grid; place-items: center; }
.rail-ic .red-dot { position: absolute; right: -3px; top: -2px; margin: 0; }
.cover { height: 104px; border-radius: 18px; background: linear-gradient(120deg, #6fb51a, #8fd436); position: relative; overflow: hidden; }
.cover .shape { position: absolute; width: 46px; height: 46px; border: 4px solid rgba(255,255,255,.35); transform: rotate(45deg); border-radius: 6px; }
.cover .s1 { left: 18px; top: 30px; background: rgba(255,255,255,.18); }
.cover .s2 { left: 48px; top: 8px; width: 34px; height: 34px; background: rgba(40,80,10,.25); border-color: rgba(40,80,10,.15); }
.cover .s3 { right: 30px; bottom: 16px; width: 26px; height: 26px; background: rgba(255,255,255,.4); border: 0; }
.cover .stripe { position: absolute; right: 36px; top: -20px; width: 4px; height: 80px; background: rgba(255,255,255,.4); transform: rotate(40deg); box-shadow: 18px 4px 0 rgba(255,255,255,.35), 36px 8px 0 rgba(255,255,255,.25); }
.cam { position: absolute; right: 10px; top: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 8px; color: #fff; display: grid; place-items: center; cursor: pointer; background: rgba(0,0,0,.12); }
.cam:hover { background: rgba(0,0,0,.25); }
.face { width: 76px; height: 76px; border-radius: 50%; margin: -40px auto 0; position: relative; z-index: 1; border: 4px solid var(--panel); background: #dfeccf; color: var(--forest); display: grid; place-items: center; font-weight: 700; font-size: 1.4rem; overflow: hidden; box-shadow: 0 0 0 2px #fff inset; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.who { text-align: center; color: #fff; font-weight: 500; font-size: 1.08rem; margin-top: 10px; }
.role { text-align: center; color: #b9c5b6; font-size: .84rem; }
.segs { display: flex; gap: 6px; justify-content: center; margin: 10px 0 4px; }
.segs span { width: 22px; height: 5px; border-radius: 4px; background: #5d6e5f; }
.segs span.on { background: var(--lime); }
.rail-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 18px; text-align: center; }
.rail-stats div + div { border-left: 1px solid #66776a; }
.rail-stats b { display: block; color: #fff; font-weight: 500; font-size: 1.05rem; }
.rail-stats span { font-size: .78rem; color: #b9c5b6; }
.btn-lime-solid { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--lime); color: #fff; border-radius: 14px; height: 46px; padding: 0 22px; font-weight: 600; margin: 0 auto; box-shadow: 0 6px 16px rgba(124,197,32,.25); }
.btn-lime-solid:hover { background: #6db515; text-decoration: none; }
.earn { margin-top: auto; background: var(--panel-2); border-radius: 22px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.earn h3 { color: #fff; font-weight: 500; font-size: 1.05rem; }
.earn-box { background: var(--panel-3); border-radius: 16px; padding: 18px 12px; text-align: center; color: var(--lime); }
.earn-val { font-size: 1.55rem; font-weight: 600; color: var(--lime); margin-top: 6px; font-variant-numeric: tabular-nums; }
.earn-sub { color: var(--lime-2); font-size: .82rem; margin-top: 2px; }
.earn-note { text-align: center; color: #b9e27f; font-size: .8rem; line-height: 1.6; }
.earn .btn-lime-solid { margin-top: 2px; }

/* kartlar ve bileşenler: yeşil-beyaz */
.card { border-radius: 22px; box-shadow: 0 2px 14px rgba(0,0,0,.03); }
.btn-primary, .btn-income { background: var(--lime); border-color: var(--lime); color: #fff; }
.btn-primary:hover, .btn-income:hover { background: #6db515; }
.btn-expense { border-color: var(--lime); color: var(--forest); }
.seg .on, .pills > a.on { background: var(--lime); color: #fff; }
.toggle-dir a.on.income { background: var(--lime); border-color: var(--lime); color: #fff; }
.toggle-dir a.on.expense { background: var(--panel); border-color: var(--panel); color: #fff; }
.badge-income, .badge-paid { background: var(--lime-50); color: #4a8a10; }
.pagination .on { background: var(--lime); border-color: var(--lime); }
.fab { background: var(--lime) !important; color: #fff !important; }
.bottom-nav a.active { color: var(--lime); }
.progress span, .meter-track span { background: var(--lime); }
.meter-track span.dark { background: var(--panel); }
.avatar-round, .avatar { background: var(--lime-50); color: #4a8a10; }
.dot-ic.in { color: #4a8a10; }
.amount-in, .delta.up, .delta.bad.down { color: #3f8a0c; }

/* yeşil gösterge şeridi */
.band { background: linear-gradient(110deg, #74bf18, #8fd436); border-radius: 22px; padding: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; box-shadow: 0 14px 30px rgba(124,197,32,.28); }
.band-tile { background: rgba(40, 90, 0, .35); border-radius: 16px; padding: 14px 16px; color: #fff; display: grid; grid-template-columns: minmax(0,1fr) 92px; align-items: end; gap: 8px; min-width: 0; color: #fff; }
.band-tile:hover { text-decoration: none; background: rgba(40, 90, 0, .45); }
.band-tile .k { font-size: .84rem; opacity: .95; }
.band-tile .v { font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; margin: 2px 0 4px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band-tile .d { font-size: .76rem; display: inline-flex; align-items: center; gap: 6px; }
.band-tile .d i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #fff; color: #4a8a10; font-style: normal; font-size: .7rem; }
.band-tile svg { width: 92px; height: 46px; overflow: visible; }
.status { display: inline-block; padding: 4px 14px; border-radius: 8px; font-size: .78rem; font-weight: 500; border: 1px solid; min-width: 96px; text-align: center; }
.status.ok { background: #f1fae6; color: #6aae1d; border-color: #dcefc4; }
.status.wait { background: #fff8ea; color: #e2a52b; border-color: #f6e4bb; }
.status.sched { background: #e9faf8; color: #2bb3a4; border-color: #c4ece7; }
.status.bad { background: #fdeeee; color: #d24c4c; border-color: #f4cfcf; }
.arrow-chip { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #fff8ea; color: #e2a52b; margin-right: 10px; }
.arrow-chip.in { background: #f1fae6; color: #6aae1d; }

@media (max-width: 1340px) {
  .frame { grid-template-columns: 230px minmax(0, 1fr); }
  .rail { display: none; }
  .side { border-radius: 30px 0 0 30px; }
}
@media (max-width: 980px) {
  .frame { grid-template-columns: 76px minmax(0, 1fr); margin: 12px; }
  .logo { justify-content: center; padding: 24px 0; font-size: 0; }
  .side-label { display: none; }
  .side-nav a, .side-nav button { justify-content: center; padding: 13px 0; font-size: 0; gap: 0; }
  .side-foot { display: none; }
  .band { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .frame { display: block; margin: 0; border: 0; border-radius: 0; min-height: 100vh; }
  .side, .rail { display: none; }
  .center { padding: 0; }
  .center-head { padding: 16px 14px 6px; flex-wrap: wrap; gap: 10px; }
  .ch-title h1 { font-size: 1.4rem; }
  .ch-title p { font-size: .8rem; }
  .search { order: 3; width: 100%; height: 44px; }
  .search input { height: 42px; }
  .mobile-head { display: flex; gap: 8px; align-items: center; }
  .bell-mini, .face-mini { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); position: relative; overflow: hidden; font-weight: 700; font-size: .85rem; }
  .face-mini { background: var(--lime-50); color: #4a8a10; }
  .face-mini img { width: 100%; height: 100%; object-fit: cover; }
  .bell-mini span { position: absolute; top: 4px; right: 4px; background: var(--expense-mark); color: #fff; font-size: .62rem; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 3px; }
  .bell-mini:hover, .face-mini:hover { text-decoration: none; }
  .content { padding: 10px 14px 32px; }
  .demo-banner { margin: 4px 14px 0; }
  .band { padding: 10px; gap: 8px; }
  .band-tile { grid-template-columns: minmax(0,1fr) 70px; padding: 12px 14px; }
  .band-tile svg { width: 70px; }
}

/* rötuşlar */
.g-trend { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.trend-legend { justify-content: flex-end; margin-top: -34px; margin-bottom: 6px; }
.dash-compact { display: flex !important; flex-wrap: wrap; gap: 10px; }
.dash-compact .field { flex: 0 1 auto; margin: 0; }
.dash-compact .field-org { flex: 1 1 220px; max-width: 320px; }
.dash-compact select, .dash-compact input { height: 40px; font-size: .9rem; background: #fff; border-color: var(--border); }
.dash-compact .field > span { font-size: .74rem; margin-bottom: 4px; color: var(--ink-3); font-weight: 500; }
.band-tile .v { font-size: clamp(1.05rem, 1.6vw, 1.4rem); }
.band-tile { grid-template-columns: minmax(0, 1fr) 76px; }
.band-tile svg { width: 76px; }
@media (max-width: 1100px) { .g-trend { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .trend-legend { margin-top: 0; justify-content: flex-start; }
  .dash-compact { display: grid !important; grid-template-columns: 1fr 1fr; }
  .dash-compact .field-org { grid-column: 1 / -1; max-width: none; }
  .band-tile .v { font-size: 1.35rem; }
}
/* Tablet */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  :root { --sidebar: 76px; }
  .brand span, .nav-label, .nav a span, .sidebar-foot .txt { display: none; }
  .brand { justify-content: center; padding: 18px 0; }
  .nav a { justify-content: center; padding: 11px 0; }
  .sidebar-foot { text-align: center; padding: 12px 6px; }
}
/* Telefon: mobil öncelikli ayrı deneyim */
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { padding: 10px 14px; }
  .content { padding: 14px 14px 32px; }
  .demo-banner { padding: 8px 14px; }
  .page-head { margin-bottom: 14px; }
  .page-head .btn:not(.keep) { display: none; }
  h1 { font-size: 1.25rem; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 13px 14px; }
  .kpi .value { font-size: 1.18rem; }
  .kpi .label { font-size: .78rem; }
  .kpi .ic { display: none; }
  .kpi .method { display: none; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .org-cards { grid-template-columns: 1fr; }
  .card-head, .card-body { padding-left: 14px; padding-right: 14px; }
  .list li { padding: 12px 14px; }
  dl.kv { grid-template-columns: 1fr; gap: 2px 0; }
  dl.kv dd { margin-bottom: 10px; }
  .hide-sm { display: none !important; }
  .filters { gap: 8px; }
  .filters .field { flex: 1 1 140px; }
  .dash-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px !important; }
  .dash-filters .field > span { font-size: .72rem; margin-bottom: 3px; }
  .dash-filters .field-org { grid-column: 1 / -1; }
  .dash-filters select, .dash-filters input { height: 40px; font-size: 15px; }
  .alerts-list li:nth-child(n+4) { display: none; }
  .alerts-more { display: block !important; }
  .t th, .t td { padding: 10px; }
  .btn { height: 46px; }
  .btn-sm { height: 36px; }
  .form-actions .btn { flex: 1; }
  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  dialog.sheet .sheet-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: .7rem; color: var(--ink-3); font-weight: 600; }
  .bottom-nav a.active { color: var(--navy); }
  .bottom-nav a:hover { text-decoration: none; }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; border: 0; box-shadow: var(--shadow-lg); z-index: 41; cursor: pointer; }
  .fab svg.i { width: 26px; height: 26px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-only { display: block !important; }
}
.mobile-only { display: none; }
.alerts-more { display: none; }
@media print {
  .sidebar, .topbar, .bottom-nav, .fab, .no-print { display: none !important; }
  .main { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (forced-colors: active) { .bar-split span, .hbar .fill { forced-color-adjust: none; } }
