:root {
  color-scheme: light;
  --ink: #1d2939;
  --muted: #66758b;
  --line: #e3e9f2;
  --surface: #ffffff;
  --canvas: #f5f7fb;
  --accent: #355dc8;
  --accent-dark: #2849a5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 "Segoe UI", system-ui, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9ab3ff; outline-offset: 2px; }
.topnav {
  position: fixed; inset: 0 auto 0 0; z-index: 10; width: 232px; padding: 26px 14px 18px;
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  background: #17243a; box-shadow: 8px 0 28px #1b2c4a0d;
}
.topnav a { display: block; padding: 10px 13px; color: #d3dcec; border-radius: 9px; font-weight: 500; }
.topnav a:hover, .topnav a:focus-visible { background: #ffffff18; color: #fff; text-decoration: none; }
.topnav a[aria-current="page"] { background: #ffffff1c; color: #fff; box-shadow: inset 3px 0 #7da2ff; }
.topnav .brand { display: flex; gap: 11px; align-items: center; margin: 0 0 25px; padding: 4px 8px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; }
.brand small { display: block; color: #9daeca; font-size: 11px; font-weight: 500; margin-top: 4px; letter-spacing: .03em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #5d80e6; color: #fff; font-weight: 800; font-size: 19px; }
.nav-caption { margin: 0 13px 8px; color: #8294b2; font-size: 10px; letter-spacing: .16em; font-weight: 700; }
.account-caption { margin-top: 8px; }
.spacer { flex: 1; }
main { max-width: 1700px; min-height: 100vh; margin: 0 0 0 232px; padding: 34px clamp(20px, 3vw, 52px) 60px; }
body:not([data-authenticated]) main { max-width: none; min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 2.4vw, 36px); line-height: 1.18; letter-spacing: -.035em; margin-bottom: 22px; }
h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; margin: 26px 0 14px; }
h3 { font-size: 14px; margin: 0; }
.eyebrow { font-size: 11px; letter-spacing: .16em; color: #6a7c9d; font-weight: 750; margin-bottom: 7px; }
.page-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.page-heading { margin-bottom: 20px; }
.page-heading h1 { margin: 0 0 4px; }
.section-heading h2 { margin: 0 0 5px; }
.section-heading { margin-bottom: 16px; }
.section-heading p, .page-heading p { margin: 0; }
.card, .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 14px #243c6210; }
.card { padding: 21px; margin-bottom: 18px; }
.card h2:first-child { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.grid .card { margin-bottom: 0; transition: transform .15s, box-shadow .15s; }
.grid .card:hover { transform: translateY(-2px); box-shadow: 0 9px 25px #243c621a; text-decoration: none; }
.two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(275px, 1fr); gap: 20px; }
.stat { color: #223c72; font-size: 32px; font-weight: 750; letter-spacing: -.04em; }
.muted { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid #edf0f5; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: #f9fbfe; color: #64738a; font-size: 12px; letter-spacing: .02em; font-weight: 700; white-space: nowrap; }
tbody tr:hover, table tr:hover td { background: #f9fbff; }
label { display: block; margin: 12px 0 5px; color: #47566d; font-size: 13px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url], input[type=number], select, textarea {
  width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #cdd7e6; border-radius: 8px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: #6b8ce1; box-shadow: 0 0 0 3px #6b8ce126; outline: 0; }
textarea { min-height: 110px; resize: vertical; }
textarea.big { min-height: 220px; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 13px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; font-weight: 650; transition: background .15s, transform .15s; }
button:hover, .btn:hover { background: var(--accent-dark); text-decoration: none; }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .65; cursor: progress; }
button.secondary, .btn.secondary { background: #eef2fa; color: #385077; border-color: #dde5f2; }
button.secondary:hover { background: #e1e8f5; }
button.danger { background: #c64353; }
button.danger:hover { background: #a92b3a; }
button.text-danger { background: transparent; color: #ad3445; }
button.text-danger:hover { background: #fff0f2; }
.small-button { margin: 0; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 150px; }
form.inline { display: inline; }
.flash, .error { padding: 11px 14px; margin-bottom: 18px; border-radius: 9px; border: 1px solid; }
.flash { background: #e9f8ef; color: #176d3f; border-color: #b8e7c8; }
.error { background: #fff0f1; color: #9b2536; border-color: #f0b8c0; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: #eef2fa; color: #365078; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.acik { background: #e8efff; color: #3759ae; }
.badge.devam { background: #fff3d9; color: #8d6200; }
.badge.incelemede { background: #f2eaff; color: #7145ac; }
.badge.tamamlandi { background: #e2f6e9; color: #197445; }
.badge.acil { background: #ffe7eb; color: #aa263c; }
.badge.yuksek { background: #fff0dd; color: #96580c; }
.code { font: 700 12px/1.4 ui-monospace, Consolas, monospace; color: #60728e; }
.desc { white-space: pre-wrap; line-height: 1.65; }
.timeline-item { border-left: 3px solid #d5deeb; padding: 6px 13px; margin: 13px 0; }
.timeline-item.commit { border-left-color: #49ad75; }
.score-pill { display: inline-flex; align-items: baseline; gap: 2px; padding: 3px 10px; border-radius: 8px; background: #e9efff; color: #2f54b0; font-weight: 800; }
.score-pill small { font-size: 11px; font-weight: 600; color: #6179b0; }
.effort-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.effort-section h3 { margin-bottom: 8px; }
.delete-dialog { width: min(100% - 32px, 460px); padding: 0; border: 1px solid #e1e7ef; border-radius: 14px; box-shadow: 0 24px 70px #14223e55; color: var(--ink); }
.delete-dialog::backdrop { background: #0c1a32a3; }
.dialog-content { padding: 24px; }
.dialog-content h2 { margin: 0 0 12px; }
.dialog-content p { line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.login-box { width: min(100%, 430px); margin: 0; padding: 30px; }
.login-box h1 { font-size: 28px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; color: #273b61; font-weight: 750; }
.login-box > .muted { margin: -12px 0 20px; }
.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 27px; padding: 0 8px; border-radius: 999px; background: #eaf0fa; color: #536986; font-size: 12px; font-weight: 700; white-space: nowrap; }
.project-description { max-width: 820px; }
.board-section { margin: 24px 0 32px; }
.board { display: flex; gap: 15px; overflow-x: auto; padding: 2px 2px 18px; scrollbar-color: #bac7dd transparent; }
.board-column { flex: 0 0 280px; min-height: 260px; border: 1px solid #e2e9f2; border-radius: 13px; background: #eef2f8; }
.board-column-head { display: flex; align-items: center; gap: 8px; padding: 14px; }
.board-column-head h3 { flex: 1; overflow-wrap: anywhere; }
.stage-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #718cbd; }
.stage-dot.devam { background: #d59a2c; }
.stage-dot.incelemede { background: #9365c7; }
.stage-dot.tamamlandi { background: #35a766; }
.board-list { min-height: 185px; padding: 0 9px 12px; border-radius: 0 0 13px 13px; transition: background .15s; }
.board-list.drop-target { background: #dbe7fb; outline: 2px dashed #7d9de0; outline-offset: -5px; }
.task-card { margin: 0 0 9px; padding: 13px; border: 1px solid #e0e7f0; border-radius: 10px; background: #fff; box-shadow: 0 2px 7px #1f385414; cursor: grab; }
.task-card.dragging { opacity: .48; }
.task-card-top, .task-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.task-card-title { display: block; margin: 10px 0 12px; color: #26364d; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.task-card-meta { color: #738298; font-size: 11px; }
.card-move-form { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.card-move-form select { padding: 6px; font-size: 12px; }
.stage-settings-row { display: flex; align-items: center; gap: 7px; margin: 8px 0; }
.stage-settings-row .row { flex: 1; flex-wrap: nowrap; gap: 7px; }
.stage-settings-row input { min-width: 0; }
.stage-create { padding-top: 12px; margin-top: 15px; border-top: 1px solid var(--line); }
.stage-create p { margin: 6px 0 0; }
.project-settings { align-items: start; }
@media (max-width: 980px) {
  .topnav { position: static; width: auto; padding: 10px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 3px; }
  .topnav .brand { width: 100%; margin: 0 0 4px; }
  .topnav a:not(.brand) { padding: 7px 9px; font-size: 13px; }
  .nav-caption, .spacer { display: none; }
  main { margin: 0; min-height: calc(100vh - 105px); padding: 24px 17px 50px; }
}
@media (max-width: 750px) {
  .two { grid-template-columns: 1fr; }
  .page-heading, .section-heading { align-items: flex-start; }
  .board-column { flex-basis: min(82vw, 300px); }
  .stage-settings-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
