:root {
  --accent: #e11d48;
  --accent-600: #be123c;
  --accent-50: #fff1f2;
  /* Yazılar siyah; ikincil metinler de griye kaçmadan koyu kalır. */
  --ink: #000000;
  --ink-2: #000000;
  --muted: #111111;
  --bs-body-color: #000000;
  --bs-secondary-color: #111111;
  --line: #e2e8f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ok: #059669;
  --ok-50: #ecfdf5;
  --warn: #d97706;
  --warn-50: #fffbeb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);

  /* Pano aşama renkleri */
  --todo: #4f46e5;
  --todo-50: #eef2ff;
  --dev: #d97706;
  --dev-50: #fffbeb;
  --done: #059669;
  --done-50: #ecfdf5;
}

html { font-size: 15px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }
a { color: inherit; }
.text-muted { color: var(--muted) !important; }
.form-control::placeholder { color: #9ca3af; }
.link-accent { color: var(--accent); text-decoration: none; }
.link-accent:hover { color: var(--accent-600); text-decoration: underline; }
.link-muted { color: var(--muted); text-decoration: none; }
.link-muted:hover { color: var(--ink); }
.min-w-0 { min-width: 0; }

/* ---------- Buttons ---------- */
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-light { background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.btn-light:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn { border-radius: 10px; }
.btn-icon {
  width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center;
  border: 0; border-radius: 8px; color: var(--muted); background: transparent;
}
.btn-icon:hover { background: #f1f5f9; color: var(--ink); }
.btn:focus-visible, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(225, 29, 72, .2);
  border-color: var(--accent);
}
.form-control { border-radius: 10px; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; letter-spacing: -.01em; }
.brand strong { font-weight: 800; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.brand-lg { font-size: 1.35rem; }
.brand-lg .brand-logo { width: 48px; height: 48px; }
.auth-logo { display: block; width: 120px; height: auto; margin: 0 auto 1.75rem; }

/* ---------- App header ---------- */
.app-header { background: #0f172a; position: sticky; top: 0; z-index: 1030; }
.app-header .navbar { padding: .7rem 0; }
.main-nav .nav-link { white-space: nowrap; color: rgba(255,255,255,.7); font-weight: 500; border-radius: 10px; padding: .45rem .8rem !important; display: flex; align-items: center; gap: .4rem; }
.main-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.user-chip { color: rgba(255,255,255,.75); font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; margin-right: .25rem; }

.app-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 1.25rem 0; margin-top: 2rem; background: #fff; }

/* ---------- Page head ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.page-title { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 1.9rem; margin: 0; letter-spacing: -.01em; }
.page-title i { color: var(--accent); font-size: 1.4rem; vertical-align: .15em; }
.page-sub { color: var(--muted); margin: .25rem 0 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.search-box { position: relative; }
.search-box i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 2.3rem; min-width: 260px; }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card {
  display: flex; align-items: center; gap: .9rem;
  background: var(--card); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; border: 2px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card.active { border-color: var(--accent); }
.stat-card.todo.active { border-color: var(--todo); }
.stat-card.dev.active { border-color: var(--dev); }
.stat-card.done.active { border-color: var(--done); }
.stat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.stat-icon.total { background: var(--accent-50); color: var(--accent); }
.stat-icon.todo { background: var(--todo-50); color: var(--todo); }
.stat-icon.dev { background: var(--dev-50); color: var(--dev); }
.stat-icon.done { background: var(--done-50); color: var(--done); }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.stat-label { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- Panels / empty ---------- */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-layout { max-width: 720px; }
.danger-zone { border: 1px solid #fecdd3; box-shadow: none; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty-state > i { font-size: 3rem; color: #cbd5e1; display: block; margin-bottom: .5rem; }
.validation-summary-valid { display: none; }

.segmented { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented-item { position: relative; margin: 0; }
.segmented-item input { position: absolute; opacity: 0; }
.segmented-item span { display: block; padding: .35rem .9rem; border-radius: 8px; font-size: .85rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.segmented-item input:checked + span { background: var(--ink); color: #fff; }
.segmented-item input:focus-visible + span { box-shadow: 0 0 0 .2rem rgba(225, 29, 72, .25); }

.modal-content { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Progress (ToDo / Development / Done dağılımı) ---------- */
.progress-split { display: flex; gap: 3px; height: 8px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.progress-split.lg { height: 10px; }
.progress-split .seg { min-width: 0; transition: flex .35s ease; }
.progress-split .seg[style*="flex: 0"] { display: none; }
.seg.done { background: var(--done); }
.seg.dev { background: #f59e0b; }
.seg.todo { background: #c7d2fe; }

/* ---------- Project list ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.project-card {
  --p: var(--accent);
  position: relative; display: flex; flex-direction: column; gap: .8rem;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1rem; text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.project-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--p); }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.project-card-top { display: flex; align-items: center; gap: .6rem; }
.project-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--p); flex-shrink: 0; }
.project-dot.lg { width: 16px; height: 16px; border-radius: 5px; }
.project-card-title { font-size: 1.1rem; font-weight: 700; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-pct { font-weight: 700; font-size: .85rem; color: var(--ink-2); background: #f1f5f9; padding: .15rem .55rem; border-radius: 999px; }
.project-card-desc {
  color: var(--muted); font-size: .88rem; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card-counts { display: flex; gap: 1rem; font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.project-card-counts i { margin-right: .15rem; }
.project-card-counts span:nth-child(1) i { color: var(--todo); }
.project-card-counts span:nth-child(2) i { color: var(--dev); }
.project-card-counts span:nth-child(3) i { color: var(--done); }
.project-card-counts span:nth-child(4) i { color: var(--muted); }
.project-card-foot { color: var(--muted); font-size: .78rem; border-top: 1px solid var(--line); padding-top: .7rem; }

.color-options { display: flex; flex-wrap: wrap; gap: .6rem; }
.color-option { position: relative; cursor: pointer; }
.color-option input { position: absolute; opacity: 0; }
.color-option span {
  display: block; width: 34px; height: 34px; border-radius: 10px; background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.0); transition: transform .12s, box-shadow .12s;
}
.color-option:hover span { transform: scale(1.08); }
.color-option input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.color-option input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- Aşama listesi (özet kartlarından açılan) ---------- */
.list-heading { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stage-groups { display: grid; gap: 1rem; }
.stage-group { overflow: hidden; border-left: 4px solid var(--p); }
.stage-group-head { display: flex; align-items: center; gap: .6rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.stage-group-head > a:first-child { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.stage-group-head > a:first-child:hover { color: var(--accent); }
.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-item { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: .75rem 1.1rem; border-top: 1px solid var(--line); }
.stage-item:first-child { border-top: 0; }
.stage-item-title { font-weight: 600; overflow-wrap: anywhere; }
.stage-item-title .prio-tag { margin-right: .35rem; vertical-align: .1em; }
.stage-item-desc { font-size: .85rem; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stage-item-when { font-size: .78rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }

/* ---------- Proje bağlantıları ---------- */
.link-rows { display: grid; gap: .5rem; }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: .5rem; align-items: center; }
.link-row .link-error { grid-column: 2 / -1; margin-top: -.25rem; }
.project-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.project-link {
  display: inline-flex; align-items: center; gap: .35rem; max-width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem;
  font-size: .84rem; text-decoration: none; color: var(--ink); transition: border-color .12s, color .12s;
}
.project-link:hover { border-color: var(--p, var(--accent)); color: var(--accent); }
.project-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-link .bi-link-45deg { color: var(--p, var(--accent)); font-size: 1rem; }

/* ---------- Project head + tabs ---------- */
.project-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1.1rem; }
.project-head .project-dot { background: var(--p); }
.project-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.project-tabs a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1rem; margin-bottom: -1px;
  text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent;
}
.project-tabs a:hover { color: var(--ink); }
.project-tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-count { font-size: .75rem; background: #e2e8f0; color: var(--ink-2); border-radius: 999px; padding: .05rem .5rem; }
.project-tabs a.active .tab-count { background: var(--accent-50); color: var(--accent); }

/* ---------- Board ---------- */
.board-progress { padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.board-col {
  --c: var(--todo); --c-50: var(--todo-50);
  background: #eef0f5; border-radius: var(--radius); padding: .9rem; display: flex; flex-direction: column; gap: .75rem;
  border-top: 4px solid var(--c);
}
.board-col.dev { --c: var(--dev); --c-50: var(--dev-50); }
.board-col.done { --c: var(--done); --c-50: var(--done-50); }
.board-col-head { display: flex; align-items: center; gap: .7rem; padding: .1rem .15rem; }
.board-col-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c-50); color: var(--c); font-size: 1.05rem; }
.board-col-title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.1; }
.board-col-sub { font-size: .76rem; color: var(--muted); }
.board-col-count { margin-left: auto; font-weight: 700; font-size: .85rem; background: #fff; color: var(--c); border-radius: 999px; padding: .15rem .65rem; }

.quick-add { position: relative; }
.quick-add .form-control { padding: .55rem 2.6rem .55rem .85rem; border: 1px dashed #cbd5e1; background: rgba(255,255,255,.65); font-size: .9rem; }
.quick-add .form-control:focus { background: #fff; border-style: solid; border-color: var(--c); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--c) 18%, transparent); }
.quick-add .btn { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; padding: 0; color: var(--c); }
.quick-add .btn:hover { background: var(--c-50); }

.board-list { display: flex; flex-direction: column; gap: .6rem; min-height: 60px; }
.board-empty { display: none; text-align: center; color: var(--muted); font-size: .82rem; margin: -60px 0 0; padding: 1.1rem .5rem; pointer-events: none; }
.board-col.is-empty .board-empty { display: block; }

.task-card {
  background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.06); border: 1px solid transparent;
  cursor: grab; transition: box-shadow .15s, border-color .15s, transform .15s;
  border-left: 3px solid transparent;
}
.task-card:hover { box-shadow: var(--shadow); border-color: var(--line); }
.task-card.prio-high { border-left-color: var(--accent); }
.task-card.prio-low { opacity: .9; }
.task-open { all: unset; display: flex; flex-direction: column; gap: .3rem; padding: .75rem .85rem .4rem; width: 100%; box-sizing: border-box; cursor: inherit; }
.task-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.prio-tag { align-self: start; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); background: var(--accent-50); border-radius: 6px; padding: .1rem .4rem; }
.prio-low .prio-tag { color: var(--muted); background: #f1f5f9; }
.task-title { font-weight: 600; font-size: .93rem; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.task-desc {
  font-size: .82rem; color: var(--muted); line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.board-col.done .task-title { color: var(--ink-2); text-decoration: line-through; text-decoration-color: #94a3b8; }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .5rem .5rem .85rem; }
.task-stamp { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-actions { display: inline-flex; gap: .25rem; flex-shrink: 0; }
.task-move {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .76rem; font-weight: 600;
  border-radius: 8px; padding: .2rem .55rem; display: inline-flex; align-items: center; gap: .25rem; transition: all .12s;
}
.task-move.go-dev:hover { background: var(--dev-50); border-color: var(--dev); color: var(--dev); }
.task-move.go-done:hover { background: var(--done-50); border-color: var(--done); color: var(--done); }
.task-move.back:hover { background: #f1f5f9; border-color: #cbd5e1; color: var(--ink); }

.drag-ghost { opacity: .4; background: var(--c-50, #f1f5f9); border: 1px dashed var(--c, #94a3b8); }
.drag-chosen { box-shadow: var(--shadow-lg); cursor: grabbing; }
.just-moved { animation: pulse .7s ease; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(225,29,72,.35); } 100% { box-shadow: 0 0 0 10px rgba(225,29,72,0); } }

/* ---------- Secrets ---------- */
.secret-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.secret-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem 1rem; display: flex; flex-direction: column; gap: .8rem; }
.secret-card-head { display: flex; gap: .75rem; align-items: start; }
.secret-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); flex-shrink: 0; }
.secret-title { font-size: 1.02rem; font-weight: 700; margin: 0 0 .1rem; overflow-wrap: anywhere; }
.secret-url { font-size: .8rem; color: var(--muted); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.secret-url:hover { color: var(--accent); }
.secret-url i { font-size: .7rem; }
.secret-fields { margin: 0; display: grid; gap: .45rem; }
.secret-field { background: #f8fafc; border-radius: 10px; padding: .45rem .5rem .45rem .75rem; }
.secret-field dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.secret-field dd { margin: 0; display: flex; align-items: center; gap: .15rem; }
.secret-value { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; overflow-wrap: anywhere; }
.secret-pass:not(.is-shown) { letter-spacing: .1em; color: var(--muted); }
.secret-notes { font-size: .85rem; color: var(--ink-2); white-space: pre-line; margin: 0; overflow-wrap: anywhere; }
.secret-foot { font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .65rem; margin-top: auto; }

/* ---------- Toast ---------- */
#appToast { background: #0f172a; color: #fff; border-radius: 12px; }

/* ---------- Auth ---------- */
body.auth { background: #fff; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero {
  position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 3rem;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(251,113,133,.45), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(129,140,248,.35), transparent 60%),
    #0f172a;
}
.auth-hero-inner { max-width: 460px; margin: 0 auto; }
.auth-hero h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 2.8rem; line-height: 1.1; margin: 2.5rem 0 1rem; }
.auth-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.6; }
.auth-features { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; }
.auth-features li { display: flex; gap: .7rem; align-items: center; color: rgba(255,255,255,.85); }
.auth-features i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.1); color: #fda4af; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-title { font-weight: 700; font-size: 1.6rem; margin-bottom: .35rem; letter-spacing: -.01em; }
.auth-sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--accent-50); color: var(--accent); margin-bottom: 1.25rem; }
.auth-icon.success { background: var(--ok-50); color: var(--ok); }
.auth .form-label { font-weight: 600; font-size: .88rem; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .form-control { padding: .7rem .9rem .7rem 2.5rem; border-radius: 10px; }
.btn-eye { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: .25rem .5rem; }
.auth .btn { border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 2rem 1.5rem; }
  .auth-hero h1 { font-size: 2rem; margin-top: 1.5rem; }
  .auth-features { display: none; }
}
@media (max-width: 575.98px) {
  .search-box, .search-box input { min-width: 0; width: 100%; }
  .page-actions { width: 100%; }
  .page-actions > * { flex: 1; }
  .project-grid, .secret-grid { grid-template-columns: 1fr; }
  .link-row { grid-template-columns: minmax(0, 1fr) auto; }
  .link-row .link-url { grid-column: 1; }
  .link-row .link-error { grid-column: 1 / -1; }
  .stage-item { flex-direction: column; gap: .25rem; }
}

/* ---------- Haftalık tarama ---------- */
.scan-settings { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; }
.scan-settings legend { float: none; width: auto; font-size: 1rem; padding: 0 .35rem; margin: 0 0 .5rem -.35rem; }
.scan-settings legend i { color: var(--accent); }
.sc-note { display: flex; gap: .6rem; align-items: start; margin-top: .5rem; padding: .65rem .8rem; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); font-size: .84rem; color: var(--ink-2); }
.sc-note[hidden] { display: none; }
.sc-note > i { color: var(--accent); font-size: 1.05rem; margin-top: .05rem; }
.sc-email { all: unset; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; font-family: var(--bs-font-monospace); font-weight: 600; color: var(--ink); word-break: break-all; margin-bottom: .15rem; }
.sc-email:hover { color: var(--accent); }
.sc-email + span { display: block; }

.scan-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: .8rem 1.25rem; margin-bottom: 1.25rem; }
.scan-strip-main { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.scan-strip-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); flex-shrink: 0; }
.scan-strip-text { font-size: .88rem; color: var(--ink-2); }
.scan-strip-text strong { color: var(--ink); }
.scan-strip-actions { display: flex; gap: .5rem; margin-left: auto; }

.status-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: .1rem .55rem; background: #f1f5f9; color: var(--ink-2); }
.status-pill.completed { background: var(--done-50); color: var(--done); }
.status-pill.failed { background: var(--accent-50); color: var(--accent); }
.status-pill.running, .status-pill.queued { background: var(--dev-50); color: var(--dev); }

.cat-tag { font-size: .68rem; font-weight: 700; letter-spacing: .02em; border-radius: 6px; padding: .1rem .4rem; background: #f1f5f9; color: var(--ink-2); }
.cat-tag.technical { background: #e0f2fe; color: #0369a1; }
.cat-tag.seo { background: #ede9fe; color: #6d28d9; }
.cat-tag.content { background: #dcfce7; color: #15803d; }
.task-tags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.auto-tag { font-size: .68rem; font-weight: 700; border-radius: 6px; padding: .1rem .4rem; background: #0f172a; color: #fff; display: inline-flex; gap: .2rem; align-items: center; }
.est-tag { font-size: .72rem; color: var(--muted); display: inline-flex; gap: .2rem; align-items: center; }
.task-card.auto { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #cbd5e1, #e2e8f0) border-box; }

.task-detail { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.task-detail[hidden] { display: none; }
.task-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .84rem; color: var(--ink-2); margin-bottom: .75rem; }
.task-meta a { color: var(--ink); overflow-wrap: anywhere; }
.draft-body { max-height: 45vh; overflow: auto; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; font-size: .9rem; line-height: 1.6; }
.draft-body > :last-child { margin-bottom: 0; }
.draft-body h1, .draft-body h2, .draft-body h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1rem; }
.draft-body h1:first-child, .draft-body h2:first-child, .draft-body h3:first-child { margin-top: 0; }

.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: .25rem .75rem; font-size: .82rem; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: #cbd5e1; color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { font-size: .72rem; opacity: .7; }

.finding-list { display: flex; flex-direction: column; }
.finding { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: .9rem; padding: .85rem 1.1rem; border-top: 1px solid var(--line); }
.finding:first-child { border-top: 0; }
.finding-sev { border-radius: 4px; background: #cbd5e1; }
.finding-sev.medium { background: var(--dev); }
.finding-sev.high { background: #f97316; }
.finding-sev.critical { background: var(--accent); }
.finding-summary { font-weight: 600; font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; }
.finding-meta { display: flex; flex-wrap: wrap; gap: .35rem .8rem; align-items: center; font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.finding-meta a { color: var(--ink-2); overflow-wrap: anywhere; }
.finding-meta code { font-size: .74rem; color: var(--muted); }
.finding-side { text-align: right; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.finding-side strong { display: block; color: var(--ink); font-size: .9rem; }
.finding details { margin-top: .4rem; }
.finding summary { font-size: .78rem; color: var(--muted); cursor: pointer; }
.finding pre { font-size: .74rem; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; margin: .4rem 0 0; max-height: 280px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.scan-notes { font-size: .84rem; color: var(--ink-2); white-space: pre-line; }
@media (max-width: 575.98px) {
  .finding { grid-template-columns: 6px minmax(0, 1fr); }
  .finding-side { grid-column: 2; text-align: left; }
  .scan-strip-actions { margin-left: 0; }
}
