/* 200brands — arayüz stilleri */
:root {
  --bg: #f5f6fa;
  --bg-elev: #ffffff;
  --bg-sunken: #eef0f5;
  --bg-hover: #f0f1f7;
  --border: #e3e6ee;
  --border-strong: #cfd4e0;
  --text: #171a23;
  --text-2: #4a5164;
  --text-3: #7c8396;
  --primary: #dc2626;
  --primary-2: #b91c1c;
  --primary-soft: #fde8e8;
  --primary-text: #ffffff;
  --accent: #111111;
  --success: #12a150;
  --success-soft: #e3f6ea;
  --warning: #c27803;
  --warning-soft: #fdf3dc;
  --danger: #dc2c3c;
  --danger-soft: #fde6e8;
  --info: #0c7bd6;
  --info-soft: #e1f0fc;
  --shadow-sm: 0 1px 2px rgba(16, 20, 40, .06);
  --shadow: 0 1px 3px rgba(16, 20, 40, .06), 0 6px 20px rgba(16, 20, 40, .06);
  --shadow-lg: 0 20px 60px rgba(16, 20, 40, .22);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 256px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1117; --bg-elev: #171a22; --bg-sunken: #12141b; --bg-hover: #1f232d;
    --border: #262a36; --border-strong: #353a49;
    --text: #ffffff; --text-2: #ffffff; --text-3: #ededed;
    --primary: #ef4444; --primary-2: #f87171; --primary-soft: #3b1518; --primary-text: #fff;
    --success: #3ccf7f; --success-soft: #133222; --warning: #f0b443; --warning-soft: #3a2c0f;
    --danger: #ff6170; --danger-soft: #3c171c; --info: #4fb0ff; --info-soft: #0f2a40;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1117; --bg-elev: #171a22; --bg-sunken: #12141b; --bg-hover: #1f232d;
  --border: #262a36; --border-strong: #353a49;
  --text: #ffffff; --text-2: #ffffff; --text-3: #ededed;
  --primary: #ef4444; --primary-2: #f87171; --primary-soft: #3b1518; --primary-text: #fff;
  --success: #3ccf7f; --success-soft: #133222; --warning: #f0b443; --warning-soft: #3a2c0f;
  --danger: #ff6170; --danger-soft: #3c171c; --info: #4fb0ff; --info-soft: #0f2a40;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 .6em; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sm svg.i, svg.i.sm { width: 15px; height: 15px; }
::selection { background: var(--primary-soft); }

/* ---------- Açılış / giriş ---------- */
.boot-splash { min-height: 100vh; display: grid; place-items: center; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #e11d2e 0%, #b91c1c 45%, #111111 100%); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: -.5px;
}
.boot-splash .logo-mark { width: 64px; height: 64px; font-size: 22px; border-radius: 18px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, rgba(220, 38, 38, .20), transparent), radial-gradient(900px 500px at 110% 110%, rgba(127, 29, 29, .16), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px; padding: 32px 28px; box-shadow: var(--shadow); }
.auth-card .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-card .brandline b { font-size: 20px; }
.auth-card .muted { margin-bottom: 18px; }

/* ---------- Yerleşim ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-elev); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; z-index: 40;
}
.sidebar .brandline { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 750; font-size: 17px; color: var(--text); }
.sidebar .brandline:hover { text-decoration: none; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 14px 10px 6px; display: flex; align-items: center; justify-content: space-between; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-weight: 520;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 36px;
}
.nav-link:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.nav-link.active { background: var(--primary-soft); color: var(--primary); }
.nav-link .count { margin-left: auto; font-size: 11px; background: var(--bg-sunken); color: var(--text-2); border-radius: 20px; padding: 1px 7px; font-weight: 600; }
.nav-link.active .count { background: var(--bg-elev); color: var(--primary); }
.nav-link .count.warn { background: var(--warning-soft); color: var(--warning); }
.nav-link .dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.nav-link .label { overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; align-items: center; padding-left: 8px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border); min-height: 60px;
}
.topbar .search { flex: 1; max-width: 520px; position: relative; }
.topbar .search input { padding-left: 36px; background: var(--bg-elev); }
.topbar .search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.topbar .search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.topbar .spacer { flex: 1; }
.btn.menu-btn { display: none; }
.content { padding: 24px; width: 100%; max-width: 1440px; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { display: flex; align-items: center; gap: 10px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.page-sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.bottom-nav { display: none; }
.scrim { display: none; }

kbd { font-family: var(--font); font-size: 11px; color: var(--text-3); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--bg-sunken); }

/* ---------- Form öğeleri ---------- */
.input, .select, .textarea, input:not([type]), input[type=text], input[type=tel], input[type=password], input[type=email], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 8px 11px; min-height: 38px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.55; }
textarea.tall { min-height: 260px; font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
input[type=color] { width: 44px; height: 38px; padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-elev); cursor: pointer; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; margin: 0; flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); font-weight: 400; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.input-group { display: flex; gap: 6px; align-items: stretch; }
.input-group > input, .input-group > select { flex: 1; min-width: 0; }
.input-group .btn { flex: none; }
.input-group select.cur { flex: 0 0 92px; }
.form-section { grid-column: 1 / -1; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; padding-top: 6px; border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 14px; }
.custom-rows { display: flex; flex-direction: column; gap: 8px; }
.custom-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 6px; align-items: center; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: 13.5px;
  padding: 0 14px; min-height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-elev);
  color: var(--text); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; text-decoration: none;
}
.btn:hover { background: var(--bg-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn.primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; border-radius: 7px; }
.btn.icon { padding: 0; width: 38px; }
.btn.sm.icon { width: 30px; }
.btn.xs { min-height: 24px; width: 24px; padding: 0; border-radius: 6px; border-color: transparent; background: transparent; color: var(--text-3); }
.btn.xs:hover { background: var(--bg-hover); color: var(--text); }
.btn.xs svg.i { width: 14px; height: 14px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { font: inherit; font-size: 12.5px; font-weight: 600; border: 0; background: transparent; color: var(--text-2); padding: 5px 11px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.active { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Kartlar ---------- */
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 8px; }
.card-head .actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.auto-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 650; }
.right { margin-left: auto; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.center { text-align: center; }
.danger-text { color: var(--danger); }

.stat { padding: 16px; display: flex; gap: 14px; align-items: center; }
.stat .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.stat .v { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.stat .l { color: var(--text-3); font-size: 12.5px; }
.ic.c1 { background: var(--primary-soft); color: var(--primary); }
.ic.c2 { background: var(--warning-soft); color: var(--warning); }
.ic.c3 { background: var(--success-soft); color: var(--success); }
.ic.c4 { background: var(--info-soft); color: var(--info); }
.ic.c5 { background: var(--danger-soft); color: var(--danger); }

/* ---------- Rozet ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 20px; background: var(--bg-sunken); color: var(--text-2); white-space: nowrap; line-height: 1.5; }
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.pri { background: var(--primary-soft); color: var(--primary); }
.tag { display: inline-flex; font-size: 11.5px; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-2); background: var(--bg-elev); }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; flex: none; text-transform: uppercase; }
.avatar.lg { width: 36px; height: 36px; font-size: 13px; }

/* ---------- Marka ---------- */
.brand-logo { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 750; font-size: 16px; flex: none; overflow: hidden; background: var(--primary); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.brand-logo.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.brand-logo.xl { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }
.brand-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; color: inherit; }
.brand-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); text-decoration: none; }
.brand-card .top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand-card .name { font-weight: 700; font-size: 15px; }
.brand-card .site { font-size: 12.5px; color: var(--text-3); }
.brand-card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--text-3); }
.brand-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.brand-card .meta svg.i { width: 13px; height: 13px; }
.brand-card .fav { position: absolute; top: 10px; right: 10px; }
.fav-on { color: #f5a524 !important; }
.fav-on svg.i { fill: #f5a524; }
.brand-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.brand-hero .info { min-width: 0; flex: 1; }
.brand-hero h1 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand-hero .sub { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: 13px; margin-top: 4px; }
.brand-hero .sub a, .brand-hero .sub span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; color: var(--text-2); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab .n { font-size: 11px; background: var(--bg-sunken); color: var(--text-3); border-radius: 10px; padding: 0 6px; font-weight: 650; }
.tab.active .n { background: var(--primary-soft); color: var(--primary); }

/* ---------- Kayıt kartları ---------- */
.rec { display: flex; flex-direction: column; }
.rec-head { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px 10px; }
.rec-head .ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.rec-head .t { font-weight: 700; font-size: 14.5px; word-break: break-word; }
.rec-head .s { font-size: 12.5px; color: var(--text-3); }
.rec-head .actions { margin-left: auto; display: flex; gap: 2px; flex: none; }
.rec-body { padding: 0 16px 12px; }
.rec-foot { margin-top: auto; padding: 9px 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: 0 10px; font-size: 13px; }
.kv > div { padding: 6px 0; border-bottom: 1px dashed var(--border); min-width: 0; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv .k { color: var(--text-3); font-size: 12.5px; }
.kv .v { display: flex; align-items: center; gap: 4px; min-width: 0; }
.kv .v .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.kv .v .txt.multi { white-space: pre-wrap; word-break: break-word; }
.kv .v .secret { font-family: var(--mono); letter-spacing: .05em; }
.kv .v .tools { display: flex; gap: 0; flex: none; opacity: .75; }
.kv .v:hover .tools { opacity: 1; }
.rec-notes { margin-top: 10px; font-size: 13px; background: var(--bg-sunken); border-radius: 8px; padding: 9px 11px; white-space: pre-wrap; word-break: break-word; color: var(--text-2); }
.pin-mark { color: var(--primary); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; font-weight: 650; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--bg-elev); position: sticky; top: 0; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-hover); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 700; background: var(--bg-sunken); }
.table .acts { white-space: nowrap; text-align: right; width: 1%; }

/* ---------- Liste ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); min-width: 0; color: inherit; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--bg-hover); text-decoration: none; }
.list-item .main-t { font-weight: 600; min-width: 0; }
.list-item .sub-t { font-size: 12px; color: var(--text-3); }
.list-item .grow { flex: 1; min-width: 0; }

.empty { text-align: center; padding: 42px 20px; color: var(--text-3); }
.empty .i { width: 38px; height: 38px; stroke-width: 1.5; margin-bottom: 8px; opacity: .6; }
.empty h3 { color: var(--text-2); margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 140px; }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 11px 13px; font-weight: 700; font-size: 13px; }
.kcol-head .n { font-size: 11px; background: var(--bg-elev); border-radius: 10px; padding: 0 7px; color: var(--text-3); }
.kcol-head .dot { width: 8px; height: 8px; border-radius: 50%; }
.kcol-body { padding: 0 9px 9px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 60px; border-radius: 0 0 var(--radius) var(--radius); }
.kcol.drop .kcol-body { background: var(--primary-soft); }
.kcard { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px; cursor: grab; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 7px; }
.kcard:hover { border-color: var(--border-strong); }
.kcard.dragging { opacity: .45; }
.kcard .t { font-weight: 600; font-size: 13.5px; word-break: break-word; }
.kcard .m { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.kcard .progress { height: 4px; background: var(--bg-sunken); border-radius: 4px; overflow: hidden; }
.kcard .progress i { display: block; height: 100%; background: var(--success); }
.prio-urgent { color: var(--danger); } .prio-high { color: var(--warning); } .prio-low { color: var(--text-3); }
.done-t { text-decoration: line-through; color: var(--text-3); }
.checklist { display: flex; flex-direction: column; gap: 6px; }
.checklist .ci { display: flex; gap: 8px; align-items: center; }
.checklist .ci input[type=text] { min-height: 32px; padding: 5px 9px; }

/* ---------- Notlar ---------- */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { width: 28px; height: 28px; border-radius: 50%; display: block; border: 2px solid var(--bg-elev); box-shadow: 0 0 0 1px var(--border-strong); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--primary); }
.swatch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.notes-grid { columns: 3 300px; column-gap: 16px; }
.note-card { break-inside: avoid; margin-bottom: 16px; display: block; border-top: 4px solid var(--note-c, var(--border)); }
.note-card .note-body { padding: 4px 16px 14px; font-size: 13.5px; max-height: 340px; overflow: hidden; position: relative; }
.note-card .note-body.clip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(transparent, var(--bg-elev)); }
.md h1, .md h2, .md h3 { margin: .6em 0 .35em; }
.md h1 { font-size: 18px; } .md h2 { font-size: 16px; } .md h3 { font-size: 14.5px; }
.md ul, .md ol { padding-left: 20px; margin: .3em 0 .6em; }
.md code { background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; }
.md pre { background: var(--bg-sunken); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: .4em 0; padding: 2px 12px; border-left: 3px solid var(--border-strong); color: var(--text-2); }
.md p:last-child { margin-bottom: 0; }
.md .task-li { list-style: none; margin-left: -18px; }

/* ---------- Dosyalar ---------- */
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 26px 16px; text-align: center; color: var(--text-3); transition: background .15s, border-color .15s; cursor: pointer; }
.dropzone.over { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.dropzone b { color: var(--text); }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.file-card { overflow: hidden; display: flex; flex-direction: column; }
.file-card .thumb { aspect-ratio: 4 / 3; background: var(--bg-sunken); display: grid; place-items: center; overflow: hidden; cursor: pointer; position: relative; }
.file-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-card .thumb .ext { font-weight: 800; font-size: 13px; padding: 6px 10px; border-radius: 8px; color: #fff; letter-spacing: .03em; }
.file-card .fbody { padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-card .fname { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .fmeta { font-size: 11.5px; color: var(--text-3); display: flex; gap: 6px; }
.file-card .factions { display: flex; gap: 2px; padding: 0 6px 6px; }
.progress-bar { height: 6px; background: var(--bg-sunken); border-radius: 6px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.folder-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { font: inherit; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(8, 10, 20, .5); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .15s; }
.modal { width: 100%; max-width: 560px; background: var(--bg-elev); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); display: flex; flex-direction: column; max-height: calc(100vh - 8vh - 16px); }
.modal.lg { max-width: 780px; }
.modal.xl { max-width: 1100px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { flex: 1; display: flex; align-items: center; gap: 8px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; display: flex; gap: 8px; }
.viewer { background: #000; border-radius: 10px; overflow: hidden; display: grid; place-items: center; min-height: 300px; }
.viewer img { max-width: 100%; max-height: 75vh; display: block; }
.viewer iframe { width: 100%; height: 75vh; border: 0; background: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Bildirim ---------- */
#toast-root { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; background: #1d2030; color: #fff; padding: 11px 15px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 520; display: flex; align-items: center; gap: 9px; max-width: 420px; animation: pop .2s; }
.toast.ok svg.i { color: #4ade80; } .toast.err { background: #b4232f; } .toast.warn svg.i { color: #fbbf24; }

/* ---------- Açılır menü ---------- */
.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; display: none; }
.dropdown.open .menu { display: block; animation: pop .12s; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; color: var(--text); font: inherit; font-weight: 520; background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg-hover); text-decoration: none; }
.menu .sep { height: 1px; background: var(--border); margin: 5px 0; }
.menu .head { padding: 8px 10px; font-size: 12px; color: var(--text-3); }

/* Arama sonuçları açılır panel */
.search-pop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 70vh; overflow-y: auto; z-index: 70; padding: 6px; }
.search-pop .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; padding: 8px 10px 4px; }
.search-pop a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.search-pop a:hover, .search-pop a.sel { background: var(--bg-hover); text-decoration: none; }

/* ---------- Grafik ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 30px; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars .b i:hover { background: var(--primary-2); }
.bars .b span { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.hbar { display: grid; grid-template-columns: minmax(80px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.hbar .track { height: 8px; background: var(--bg-sunken); border-radius: 6px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--primary); border-radius: 6px; }

.due { font-weight: 650; }
.due.past { color: var(--danger); } .due.soon { color: var(--warning); } .due.ok { color: var(--success); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 140px; }
.filters input[type=search] { min-width: 220px; flex: 1; max-width: 340px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert.warn { background: var(--warning-soft); color: var(--warning); }
.alert.info { background: var(--info-soft); color: var(--info); }
.alert.bad { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--success-soft); color: var(--success); }
.alert .i { margin-top: 1px; }
.alert b { color: inherit; }
.token-box { font-family: var(--mono); background: var(--bg-sunken); border: 1px dashed var(--border-strong); border-radius: 8px; padding: 10px 12px; word-break: break-all; font-size: 13px; }
.settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.loading { padding: 50px; display: grid; place-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 86vw; transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 35; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); gap: 6px; }
  .topbar .search kbd { display: none; }
  .content { padding: 16px 14px calc(84px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--bg-elev); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around;
  }
  .bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--text-3); padding: 4px 0; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .bottom-nav a.active { color: var(--primary); }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav svg.i { width: 21px; height: 21px; }
  #toast-root { bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; right: 12px; align-items: stretch; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .settings-nav .nav-link { flex: none; }
  .kanban { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .kcol { scroll-snap-align: start; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 640px) {
  h1 { font-size: 19px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid.auto, .grid.auto-sm { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .modal-back { padding: 0; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 18px 18px 0 0; max-width: none !important; padding-bottom: env(safe-area-inset-bottom); }
  .stat { padding: 12px; gap: 10px; } .stat .v { font-size: 18px; } .stat .ic { width: 36px; height: 36px; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .filters select, .filters input { flex: 1; min-width: 0; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; }
  .brand-hero .brand-logo.xl { width: 52px; height: 52px; }
  .brand-hero h1 { font-size: 20px; }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .table.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 12px; text-align: right; }
  .table.responsive td::before { content: attr(data-l); color: var(--text-3); font-size: 12px; text-align: left; }
  .table.responsive td.acts { justify-content: flex-end; width: auto; }
  .table.responsive td.acts::before { content: none; }
  .table.responsive tfoot tr { display: block; }
}
@media print {
  .sidebar, .topbar, .bottom-nav, .btn { display: none !important; }
  .layout { display: block; }
}

/* Gelir & gider grafiği (iki seri) */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bars .b .pair { display: flex; gap: 2px; align-items: flex-end; justify-content: center; width: 100%; }
.bars .b .pair i { flex: 1; max-width: 13px; border-radius: 3px 3px 0 0; min-height: 0; }
.bars .b .pair i.inc { background: var(--success); }
.bars .b .pair i.exp { background: var(--danger); }

/* Gelir & gider detayları */
.fin-table tbody tr { cursor: pointer; }
.attach { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.attach-list { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; padding: 3px 4px 3px 9px; font-size: 12.5px; max-width: 100%; background: var(--bg-elev); }
.attach-chip a, .attach-chip > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.attach-chip.new { border-style: dashed; }
.field > .hint { display: block; }

/* Uzantı kurulum adımları */
.ext-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 12px; }
.ext-steps li { counter-increment: st; position: relative; padding-left: 38px; line-height: 1.6; }
.ext-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 750; display: grid; place-items: center; font-size: 13px; }
