:root {
  --bg: #f4f5fa; --surface: #ffffff; --surface-2: #f8f9fc; --border: #e6e8f0;
  --text: #121527; --muted: #6b7080; --primary: #4f46e5; --primary-soft: #eef0ff;
  --green: #16a34a; --green-soft: #e8f7ee; --red: #dc2626; --red-soft: #fdecec;
  --amber: #d97706; --amber-soft: #fff5e1; --blue-soft: #eaf3ff; --blue: #2563eb;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f17; --surface: #161925; --surface-2: #1c2030; --border: #272b3d;
    --text: #e8eaf3; --muted: #9096ab; --primary: #818cf8; --primary-soft: #23264a;
    --green: #4ade80; --green-soft: #12291d; --red: #f87171; --red-soft: #2e1517;
    --amber: #fbbf24; --amber-soft: #2c230f; --blue-soft: #14223a; --blue: #60a5fa;
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f17; --surface: #161925; --surface-2: #1c2030; --border: #272b3d;
  --text: #e8eaf3; --muted: #9096ab; --primary: #818cf8; --primary-soft: #23264a;
  --green: #4ade80; --green-soft: #12291d; --red: #f87171; --red-soft: #2e1517;
  --amber: #fbbf24; --amber-soft: #2c230f; --blue-soft: #14223a; --blue: #60a5fa;
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 Inter, system-ui, "Segoe UI", sans-serif; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); } .tiny { font-size: 12px; } .err { color: var(--red); min-height: 1em; margin: 0; }
.pos { color: var(--green); } .neg { color: var(--red); }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
textarea { min-height: 160px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
label { display: grid; gap: 5px; font-weight: 500; font-size: 13px; }
.btn { border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--red); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 17px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }

/* Giriş */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--primary-soft), transparent), var(--bg); }
.login-card { width: min(380px, 100%); background: var(--surface); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; border: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 6px 8px 18px; }
.brand.big { font-size: 22px; padding: 0; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 18px; }

/* Yerleşim */
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.sidebar a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; }
.sidebar a span { width: 18px; text-align: center; }
.sidebar a small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; line-height: 1.3; }
.sidebar a.active small { color: var(--primary); opacity: .8; }
.sidebar a:hover { background: var(--surface-2); color: var(--text); }
.sidebar a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 28px; position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 5; flex-wrap: wrap; }
.title-wrap { flex: 1; min-width: 220px; }
.topbar h1 { font-size: 20px; }
#pageInfo { margin: 2px 0 0; font-size: 13px; }
.month { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2px; }
.month strong { min-width: 110px; text-align: center; font-weight: 600; }
.top-actions { display: flex; gap: 6px; align-items: center; }
.view { padding: 4px 28px 40px; display: grid; gap: 18px; }

/* Kartlar */
.grid { display: grid; gap: 18px; }
.kpis { grid-template-columns: repeat(4, 1fr); }
.two { grid-template-columns: 1.2fr 1fr; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }

/* Halka grafik */
.donut-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; }
.donut { width: 170px; aspect-ratio: 1; border-radius: 50%; position: relative; }
.donut::after { content: ""; position: absolute; inset: 26px; background: var(--surface); border-radius: 50%; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 1; }
.donut-center b { font-size: 16px; }
.legend { display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.legend div { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 3px; }

/* Çubuk grafik */
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 200px; }
.bar-col { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.bar-pair { display: flex; gap: 4px; align-items: end; justify-content: center; }
.bar { width: 16px; border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar.in { background: var(--green); } .bar.out { background: var(--red); opacity: .85; }
.bar-col small { color: var(--muted); font-size: 11px; }
.bar-col.cur small { color: var(--text); font-weight: 600; }

/* Listeler */
.list { display: grid; }
.row { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row.sel { grid-template-columns: 18px 36px 1fr auto auto; }
.row.sel > input { width: 16px; height: 16px; }
.copybar { padding: 8px 12px; background: var(--surface-2); border-radius: 12px; margin-bottom: 6px; align-items: center; }
.ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.row .title { font-weight: 600; }
.row .meta { font-size: 12px; color: var(--muted); }
.amount { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 2px; }
.day-head { font-size: 12px; font-weight: 600; color: var(--muted); padding: 14px 4px 4px; }

.sug { display: grid; grid-template-columns: 4px 1fr; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.sug::before { content: ""; border-radius: 4px; background: var(--blue); }
.sug.danger::before { background: var(--red); } .sug.warn::before { background: var(--amber); } .sug.ok::before { background: var(--green); }
.sug b { display: block; margin-bottom: 2px; }
.sug p { margin: 0; color: var(--muted); font-size: 13px; }
.sugs { display: grid; gap: 10px; }

.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.progress.over > i { background: var(--red); } .progress.near > i { background: var(--amber); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.toolbar > * { width: auto; }
.toolbar input[type=search] { min-width: 220px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 10px; padding: 3px; border: 1px solid var(--border); }
.seg input { position: absolute; opacity: 0; width: 1px; }
.seg label { display: block; text-align: center; padding: 7px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg input:checked + label { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg input:focus-visible + label { outline: 2px solid var(--primary); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check input { width: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
td input, td select { padding: 6px 8px; }
.table-wrap { overflow-x: auto; }

.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; background: var(--surface-2); }
.drop.over { border-color: var(--primary); background: var(--primary-soft); }
.preview { max-width: 100%; max-height: 320px; border-radius: 12px; border: 1px solid var(--border); }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 2px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button.active { background: var(--primary-soft); color: var(--primary); }
.banner { padding: 12px 16px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-weight: 500; }
.empty { text-align: center; color: var(--muted); padding: 24px; }

dialog { border: 0; padding: 0; background: transparent; width: min(520px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(10,12,25,.45); backdrop-filter: blur(2px); }
.modal-card { background: var(--surface); color: var(--text); border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.modal-card header, .modal-card footer { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; gap: 8px; }
.modal-card footer { justify-content: flex-end; border-top: 1px solid var(--border); }
.modal-body { padding: 0 18px 18px; display: grid; gap: 12px; }

#toasts { position: fixed; bottom: 20px; right: 20px; display: grid; gap: 8px; z-index: 100; }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; max-width: 340px; }
.toast.err { background: var(--red); color: #fff; }

/* Rehber, hızlı işlemler, mikro grafikler */
.help { background: var(--primary-soft); border-color: transparent; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.steps a { color: var(--primary); font-weight: 600; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.qbtn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--text); text-align: left; }
.qbtn:hover { border-color: var(--primary); }
.qbtn span { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 18px; flex: none; }
.hbars { display: grid; gap: 12px; }
.hbar-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 13px; }
.daybars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 150px; align-items: end; }
.daybars > div { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; text-align: center; }
.daybars .bar { width: 100%; }
.daybars small { font-size: 10px; color: var(--muted); height: 14px; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .two { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; overflow-x: auto; padding: 6px; z-index: 10; border-right: 0; border-top: 1px solid var(--border); }
  .sidebar .brand, .sidebar a small, #pageInfo { display: none; }
  .sidebar a { flex-direction: column; gap: 0; font-size: 11px; padding: 6px 10px; white-space: nowrap; }
  .topbar, .view { padding-left: 16px; padding-right: 16px; }
  .view { padding-bottom: 90px; }
  .kpis, .form-grid { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .row { grid-template-columns: 36px 1fr auto; } .row-actions { grid-column: 2 / -1; }
  .row.sel { grid-template-columns: 18px 36px 1fr auto; } .row.sel .row-actions { grid-column: 3 / -1; }
}

/* Planlı (günü gelmemiş) kayıtlar soluk; üzerine gelince netleşir, düzenlenebilir */
.row.planned > :not(.row-actions) { opacity: .45; }
.row.planned:hover > * { opacity: 1; }
.note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: var(--text); font-size: 13px; }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--border); position: relative; flex: none; padding: 0; border: 0; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { left: 21px; }
.switch small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }

.icon-pick { border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; margin: 0; }
.icon-pick legend { font-size: 13px; font-weight: 500; padding: 0 4px; }
.icon-pick input { position: absolute; opacity: 0; width: 1px; }
.icon-pick label { display: grid; place-items: center; height: 36px; border-radius: 8px; cursor: pointer; font-size: 18px; }
.icon-pick label:hover { background: var(--surface-2); }
.icon-pick input:checked + label { background: var(--primary-soft); outline: 2px solid var(--primary); }
.icon-pick input:focus-visible + label { outline: 2px solid var(--primary); }
.sidebar a span { font-size: 16px; }

.card-stats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card-stats > div { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.card-stats b { font-size: 18px; }
@media (max-width: 760px) { .card-stats { grid-template-columns: 1fr 1fr; } }

/* Potansiyel gelir eklenmiş tutar (parantez içi) */
.pot { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--primary-soft); color: var(--primary); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; vertical-align: middle; }
.tag:hover { border-color: var(--primary); }
/* Ne Kalır? deneme alanı */
.sc-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.sc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
.sc-row { grid-template-columns: auto auto 1fr auto auto; align-items: center; }
.sc-row.off { opacity: .45; }
.sc-row.off .sc-amt { text-decoration: line-through; }
.sc-row.changed { box-shadow: inset 3px 0 0 var(--amber); }
.sc-amt { width: 120px; text-align: right; font-weight: 600; }
.sc-main { outline: 2px solid var(--primary); }
.sc-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sc-add input[name=name] { flex: 1 1 160px; }
.sc-add input[name=amount] { width: 130px; }
@media (max-width: 640px) { .sc-row { gap: 8px; } .sc-amt { width: 92px; } .sc-tools { margin-left: 0; } }

/* Özet: gelir ve gider dağılımı */
.dist .legend { max-height: none; }
.flow { position: relative; display: flex; height: 22px; border-radius: 8px; overflow: hidden; background: var(--surface-2); margin: 6px 0 10px; }
.flow > i { display: block; height: 100%; min-width: 2px; border-right: 1px solid var(--surface); }
.flow > i.flow-left { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--green) 35%, transparent) 0 6px, color-mix(in srgb, var(--green) 18%, transparent) 6px 12px); }
.flow-mark { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--text); border-radius: 2px; }
.flow-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; margin-bottom: 8px; }
.dist-lists { margin-top: 8px; align-items: start; }
.cat-block { border-top: 1px solid var(--border); }
.cat-block summary { display: grid; grid-template-columns: 36px minmax(110px, 1fr) minmax(60px, 1.2fr) auto 42px; gap: 10px; align-items: center; padding: 9px 4px; cursor: pointer; list-style: none; }
.cat-block summary::-webkit-details-marker { display: none; }
.cb-name { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.cb-name small { font-weight: 400; color: var(--muted); font-size: 12px; }
.cb-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.cb-bar i { display: block; height: 100%; border-radius: 999px; }
.cb-pct { text-align: right; }
.cb-items { padding: 0 4px 10px 50px; display: grid; gap: 4px; }
.cb-items div { display: grid; grid-template-columns: 1fr auto 100px; gap: 10px; font-size: 13px; }
.cb-items b { text-align: right; font-weight: 500; }
.inc-row { display: grid; grid-template-columns: 10px 36px 1fr auto 42px; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .cat-block summary { grid-template-columns: 36px 1fr auto 38px; }
  .cb-bar { display: none; }
  .cb-items { padding-left: 46px; }
  .cb-items div { grid-template-columns: 1fr auto; } .cb-items div > span.tiny { display: none; }
}

/* İç içe gelir (iç) / gider (dış) halkası */
.donut2-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; margin: 8px 0; }
.donut2 { position: relative; width: 240px; aspect-ratio: 1; border-radius: 50%; }
.donut2-in { position: absolute; inset: 34px; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface); }
.donut2-hole { position: absolute; inset: 66px; border-radius: 50%; background: var(--surface); display: grid; place-content: center; text-align: center; gap: 2px; }
.donut2-hole b { font-size: 18px; }
.donut2-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.donut2-legend .day-head b { margin-left: 6px; }
@media (max-width: 900px) { .donut2-legend { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .donut2-wrap { grid-template-columns: 1fr; justify-items: center; } .donut2-legend { width: 100%; } }

/* Varlıklar: değer, maliyet, kâr/zarar özeti */
.asset-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.asset-sum > div { display: flex; flex-direction: column; gap: 2px; }
.asset-sum b { font-size: 17px; }

/* Kredi kartı: açılır-kapanır */
details.cc > summary { list-style: none; cursor: pointer; flex-wrap: wrap; gap: 8px 14px; }
details.cc > summary::-webkit-details-marker { display: none; }
.cc-arrow { display: inline-block; transition: transform .15s; color: var(--muted); margin-right: 4px; font-size: 16px; width: 14px; }
details.cc[open] .cc-arrow { transform: rotate(90deg); }
.cc-brief { margin-left: auto; font-size: 14px; color: var(--muted); }
details.cc:not([open]) > summary { margin-bottom: 0; }
details.cc:not([open]) { padding-bottom: 14px; }

/* 50/30/20: hedef çizgili çubuklar ve kategori türü seçimi */
.r503020 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 24px; margin-top: 10px; }
.r-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.r-bar { position: relative; height: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.r-bar > i { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.r-bar.over > i { background: var(--red); }
.r-target { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--text); border-radius: 2px; }
.r-grp p { margin: 6px 0; }
.r-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.r-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.grp-pick { display: inline-flex; flex-wrap: nowrap; white-space: nowrap; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.grp-pick label { position: relative; display: inline-flex; align-items: center; padding: 4px 9px; font-size: 12px; cursor: pointer; color: var(--muted); border-right: 1px solid var(--border); white-space: nowrap; }
.grp-pick label:last-child { border-right: 0; }
.grp-pick label.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.grp-pick label.on::before { content: "✓ "; }
.grp-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.grp-pick label:focus-within { outline: 2px solid var(--primary); outline-offset: -2px; }

/* Metin gibi görünen düğme (giriş ekranı: veri dosyası) */
.linkbtn { border: 0; background: none; padding: 0; color: var(--primary); font: inherit; cursor: pointer; text-decoration: underline; }
