/* Miniskop Gorev — Hilal'in arayuz tasarimi (19 Eki, Figma + prototip).
   Renk ve olculer tek blokta (:root); tasarim degisirse yalniz burasi.
   Mobil (<=760px): kenar menu yerine ust bant + alt menu; pano sekmeli. */
:root {
  --purple: #6d36d9; --purpleHover: #5123ad; --purpleSoft: #f1e9ff;
  --yellow: #ffd34e; --yellowSoft: #fff4cc;
  --ink: #28203d; --muted: #716a80; --canvas: #f8f7fc; --line: #e8e3f0;
  --red: #bb4157; --redSoft: #fdebf0;
  --green: #267854; --greenSoft: #e7f6ed;
  --amber: #9a6100; --amberSoft: #fff1d3;
  --blue: #3265a4; --blueSoft: #eaf2ff;
  --teal: #087d7a; --tealSoft: #dff6f2;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { color: var(--ink); font: 14px/1.6 var(--font); background: var(--canvas); -webkit-font-smoothing: antialiased; }
.gizli { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, select, summary { cursor: pointer; }
button { border: 0; background: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .55; }
input, select, textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; min-height: 48px; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
textarea { resize: vertical; min-height: 90px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; line-height: 1.3; }
h2 { font-size: 24px; line-height: 1.4; }
h3 { font-size: 18px; line-height: 1.45; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.micro { font-size: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.gap-top { margin-top: 28px; }

svg.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 13px; font-weight: 600; white-space: nowrap; background: var(--purple); color: #fff; }
.btn:hover { background: var(--purpleHover); }
.btn.secondary { background: #fff; color: var(--purple); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--purpleSoft); }
.btn.tehlike { color: var(--red); }
.btn.genis { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 12px; position: relative; }
.icon-btn:hover { background: var(--purpleSoft); color: var(--purple); }
.text-link { color: var(--purple); font-weight: 600; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; font-size: 12px; line-height: 18px; color: var(--tag-color, var(--purple)); background: var(--tag-bg, var(--purpleSoft)); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tag svg.icon { width: 14px; height: 14px; }
.tag.gri { --tag-bg: #f0edf5; --tag-color: var(--muted); }
.avatar { display: inline-grid; place-items: center; min-width: 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--purpleSoft); color: var(--purple); font-size: 12px; font-weight: 600; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sari { background: var(--yellow); color: var(--ink); }

/* Renk anahtari: departman / durum renkleri --tag-* uzerinden */
.r-purple { --tag-color: var(--purple); --tag-bg: var(--purpleSoft); }
.r-amber { --tag-color: var(--amber); --tag-bg: var(--amberSoft); }
.r-teal { --tag-color: var(--teal); --tag-bg: var(--tealSoft); }
.r-red { --tag-color: var(--red); --tag-bg: var(--redSoft); }
.r-blue { --tag-color: var(--blue); --tag-bg: var(--blueSoft); }
.r-green { --tag-color: var(--green); --tag-bg: var(--greenSoft); }

/* ------------------------------------------------ kabuk */
.sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 224px; background: #fff; border-right: 1px solid var(--line); padding: 26px 14px; z-index: 25; overflow: auto; }
.logo { width: 164px; height: auto; display: block; }
.sidebar .logo-bag { display: block; margin: 2px 14px 24px; }
.nav-label { font-size: 10px; color: var(--muted); letter-spacing: .05em; margin: 18px 10px 12px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; margin: 3px 0; text-align: left; font-weight: 600; color: var(--muted); min-height: 48px; }
.nav-item.active { background: var(--purpleSoft); color: var(--purple); }
.nav-item:hover { background: var(--canvas); }
.ayrac { border: 0; border-top: 1px solid var(--line); margin: 24px 10px; }
.dept-nav { padding: 8px 10px; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; font-size: 12px; color: var(--tag-color); border-radius: 10px; }
.dept-nav:hover { background: var(--canvas); }
.dept-nav .grow { color: var(--ink); }
.ipucu-kutu { background: var(--yellowSoft); padding: 18px; border: 0; margin: 28px 0 12px; display: grid; gap: 6px; color: var(--amber); }
.ipucu-kutu strong { color: var(--ink); }

.topbar { position: sticky; top: 0; z-index: 20; margin-left: 224px; background: var(--purple); color: #fff; min-height: 80px; display: flex; align-items: center; gap: 24px; padding: 16px 32px; }
.kapsam { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--purple); border-radius: 12px; padding: 0 0 0 14px; width: 240px; }
.kapsam select { border: 0; min-height: 44px; padding-left: 0; color: var(--purple); font-weight: 600; background: transparent; font-size: 14px; }
.kapsam select:focus { outline: none; }
.kapsam:focus-within { outline: 3px solid var(--yellow); }
.arama-kutu { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex: 1; min-width: 180px; }
.arama-kutu input { border: 0; min-height: 46px; padding: 0; outline: none; background: transparent; }
.arama-kutu:focus-within { outline: 2px solid var(--purple); }
.arama-kutu.genel { max-width: 440px; background: var(--purpleHover); border: 0; color: #fff; }
.arama-kutu.genel input { color: #fff; font-size: 14px; }
.arama-kutu.genel input::placeholder { color: #e4d8ff; }
.arama-kutu.genel:focus-within { outline: 3px solid var(--yellow); }
.topbar .icon-btn:hover { background: var(--purpleHover); color: #fff; }
.zil { background: var(--purpleHover); margin-left: auto; }
.rozet { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--yellow); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 18px; }
.profil-dugme { display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 12px; padding: 4px; }
.profile-copy { display: grid; line-height: 1.35; }
.profile-copy .small { color: #e4d8ff; }
.profil-menu { position: absolute; right: 24px; top: 76px; width: 250px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 12px 40px #28203d26; padding: 8px; }
.menu-oge { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border-radius: 10px; text-align: left; }
.menu-oge:hover { background: var(--canvas); }
.anahtar { display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; }
.anahtar input { width: 18px; min-height: 18px; accent-color: var(--purple); }
.mobile-logo, .mobil-etiket, .mobil-ikon { display: none; }

main#icerik { margin-left: 224px; padding: 34px 40px 64px; max-width: 1800px; outline: none; }
.page-title { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.page-title p { margin-top: 9px; color: var(--muted); }
.geri { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 600; margin-bottom: 18px; }
.mobil-yeni { display: none; }
.bottom-nav { display: none; }

/* ------------------------------------------------ genel bakis */
.hero-row { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.hero { position: relative; min-height: 245px; background: var(--yellowSoft); padding: 28px; border-radius: 24px; overflow: hidden; }
.hero .copy { position: relative; z-index: 1; max-width: 64%; }
.hero h2 { font-size: 32px; line-height: 1.3; }
.hero p { margin: 16px 0; color: var(--amber); }
.hero .mascot { position: absolute; right: 20px; bottom: 0; height: 96%; width: auto; max-width: 35%; object-fit: contain; }
.focus { background: var(--purple); color: #fff; border-radius: 24px; padding: 26px; }
.focus strong.buyuk { font-size: 42px; color: var(--yellow); line-height: 1; }
.focus hr { border: 0; border-top: 1px solid #9871e7; margin: 18px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 18px; }
.dept-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dept-tile { display: block; background: var(--tag-bg); color: var(--tag-color); border-radius: 18px; padding: 18px; text-align: left; min-width: 0; width: 100%; }
.dept-tile h3 { overflow-wrap: anywhere; }
.dept-tile .icon-wrap { display: grid; place-items: center; background: #fff; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px; flex: none; }
.dept-tile .icon-wrap svg.icon { width: 26px; height: 26px; }
.dept-tile p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.progress { height: 6px; border-radius: 9px; background: #fff; overflow: hidden; margin-top: 22px; }
.progress span { display: block; background: currentColor; height: 100%; border-radius: 9px; }
.small-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------ gorev karti */
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.task-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 16px 16px 16px 20px; display: flex; flex-direction: column; gap: 18px; cursor: pointer; min-width: 0; text-align: left; width: 100%; }
.task-card:hover { box-shadow: 0 6px 20px #28203d0c; transform: translateY(-1px); }
.task-card::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 4px; background: var(--tag-color, var(--line)); }
.task-card.overdue { border-color: #edb6bf; }
.task-card h3 { font-size: 14px; min-height: 44px; overflow-wrap: anywhere; }
.task-card.tamam h3 { color: var(--muted); }
.task-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.task-foot .avatar { min-width: 26px; width: 26px; height: 26px; font-size: 10px; }
.task-foot .row { gap: 6px; min-width: 0; }
.task-foot svg.icon { width: 14px; height: 14px; }
.gecikti { color: var(--red); }
.task-card.yeni-tamam { animation: tamam-nabiz .6s ease-out; }
@keyframes tamam-nabiz { 0% { box-shadow: 0 0 0 0 #26785455; } 100% { box-shadow: 0 0 0 14px #26785400; } }

/* ------------------------------------------------ liste araclari */
.toolbar { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar select { width: auto; max-width: 220px; }
.segmented { display: flex; background: var(--purpleSoft); padding: 4px; border-radius: 12px; gap: 4px; margin-bottom: 20px; width: max-content; max-width: 100%; }
.segmented a, .segmented button { padding: 10px 15px; border-radius: 9px; white-space: nowrap; font-weight: 600; color: var(--purple); }
.segmented .active { background: var(--purple); color: #fff; }
.sonuc-satiri { margin-bottom: 20px; }

/* ------------------------------------------------ departmanlar */
.department-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.department-cards .dept-tile { padding: 25px; position: relative; }
.department-cards .dept-tile .row { margin-bottom: 22px; }
.department-cards .icon-wrap { margin: 0; }
.dept-duzenle { position: absolute; top: 16px; right: 16px; background: #fff; }
.department-summary { padding: 28px; background: var(--tag-bg); border-radius: 22px; margin-bottom: 30px; }
.department-summary .stat { min-width: 110px; text-align: center; }
.department-summary strong { font-size: 36px; color: var(--tag-color); }

/* ------------------------------------------------ pano */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 16px; overflow: auto; padding-bottom: 12px; }
.kanban-col { padding: 14px; border-radius: 18px; background: var(--tag-bg); min-height: 450px; display: flex; flex-direction: column; }
.kanban-col h3 { font-size: 14px; color: var(--tag-color); display: flex; align-items: center; gap: 8px; }
.kolon-liste { display: grid; gap: 16px; margin: 16px 0; align-content: start; flex: 1; min-height: 80px; }
.kolon-liste .task-card { min-height: 190px; }
.kolon-bos { color: var(--muted); font-size: 12px; text-align: center; padding: 12px 0; }
.kolon-liste:not(:empty) + .kolon-bos { display: none; }
.kanban-tabs { display: none; }
.surukleniyor { opacity: .5; }

/* ------------------------------------------------ gorev detayi */
.detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.detail-title { margin: 22px 0; overflow-wrap: anywhere; }
.baslik-girdi { font-size: 24px; font-weight: 700; margin: 18px 0; }
.detail-content .aciklama { margin: 8px 0 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--canvas); border-radius: 12px; margin: 10px 0; }
.file-row .grow a { font-weight: 600; overflow-wrap: anywhere; }
.dosya-yukle { display: inline-flex; }
.dosya-yukle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dosya-yukle:focus-within { outline: 3px solid var(--yellow); border-radius: 13px; }
.sekmeler { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 8px; }
.sekmeler button { padding: 12px; border-radius: 12px; background: var(--canvas); color: var(--muted); font-weight: 600; }
.sekmeler button[aria-selected="true"] { background: var(--purpleSoft); color: var(--purple); }
.check-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-row label { display: flex; align-items: center; gap: 14px; flex: 1; cursor: pointer; overflow-wrap: anywhere; }
.check-row input[type="checkbox"] { width: 22px; min-height: 22px; accent-color: var(--green); flex: none; }
.check-row.bitti label { color: var(--muted); text-decoration: line-through; }
.adim-form, .yorum-form { display: flex; gap: 10px; margin-top: 14px; }
.yorum-form { flex-direction: column; align-items: stretch; }
.yorum-form .btn { align-self: flex-end; }
.comment { background: var(--canvas); padding: 14px; border-radius: 12px; margin: 12px 0; display: flex; gap: 12px; }
.comment p { white-space: pre-wrap; overflow-wrap: anywhere; }
.history-row { border-left: 2px solid var(--purpleSoft); padding: 0 0 18px 18px; margin-left: 10px; }
.detail-meta label, .detail-meta .meta-etiket { display: block; font-size: 12px; color: var(--muted); margin: 15px 0 8px; }
.detail-meta .btn { width: 100%; margin-top: 20px; }
.detail-meta select, .detail-meta input { min-height: 44px; padding: 10px 12px; }
.tip { background: var(--yellowSoft); border: 0; padding: 18px; margin-top: 24px; }
.tip strong { display: flex; align-items: center; gap: 10px; color: var(--amber); }

/* ------------------------------------------------ projeler, takvim, ekip, bildirim */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { min-height: 200px; }
.week { display: flex; align-items: center; gap: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 24px; }
.day { flex: 1; padding: 12px 4px; border-radius: 12px; text-align: center; color: var(--muted); }
.day.active { background: var(--purple); color: #fff; }
.day.bugun:not(.active) { background: var(--purpleSoft); color: var(--purple); }
.day strong { font-size: 22px; display: block; color: inherit; }
.day .nokta { display: block; width: 6px; height: 6px; border-radius: 3px; background: var(--yellow); margin: 4px auto 0; }
.ekip-tablo { width: 100%; border-collapse: collapse; }
.ekip-tablo th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 400; padding: 0 12px 14px; }
.ekip-tablo td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.ekip-tablo select { min-height: 38px; padding: 6px 10px; font-size: 13px; max-width: 200px; }
.ekip-tablo tr.pasif td { opacity: .55; }
.kisi { display: flex; align-items: center; gap: 14px; }
.notification { display: flex; gap: 18px; align-items: flex-start; background: var(--tag-bg); border: 0; margin-bottom: 16px; cursor: pointer; width: 100%; text-align: left; }
.notification p { margin: 6px 0; overflow-wrap: anywhere; }
.notification .zaman { color: var(--tag-color); font-weight: 600; }
.notification.okundu { background: #fff; border: 1px solid var(--line); }
.notification svg.icon { color: var(--tag-color); margin-top: 3px; }

/* ------------------------------------------------ bos durumlar */
.empty { text-align: center; max-width: 760px; padding: 30px; margin: 20px auto; background: var(--purpleSoft); border-radius: 24px; }
.empty img { height: 280px; width: auto; max-width: 100%; object-fit: contain; }
.empty h2 { margin: 18px 0 10px; }
.empty .btn { margin-top: 22px; }
.empty.kucuk { background: none; padding: 12px 0; margin: 0; text-align: left; }
.empty.kucuk img { display: none; }
.empty.kucuk h2 { font-size: 14px; font-weight: 400; color: var(--muted); margin: 0; }

/* ------------------------------------------------ pencereler, form, toast */
.modal { width: 620px; max-width: calc(100vw - 24px); max-height: 90vh; overflow: auto; padding: 28px; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 20px 80px #151b3c33; }
.modal::backdrop { background: #151b3c70; }
.form-alt { margin: 8px 0 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label, .form-grid legend { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.form-note { font-size: 11px; color: var(--muted); margin-top: -12px; }
.tarih-saat { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.oncelik-sec { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.oncelik-sec legend { grid-column: 1 / -1; }
.oncelik-sec label { margin: 0; font-weight: 400; }
.oncelik-sec input { position: absolute; opacity: 0; width: 1px; min-height: 1px; }
.oncelik-sec span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 10px; background: #f0edf5; color: var(--muted); cursor: pointer; }
.oncelik-sec input:checked + span { background: var(--purpleSoft); color: var(--purple); font-weight: 600; }
.oncelik-sec input[value="acil"]:checked + span { background: var(--redSoft); color: var(--red); }
.oncelik-sec input:focus-visible + span { outline: 3px solid var(--yellow); }
.error { font-size: 13px; color: var(--red); min-height: 1.2em; margin-bottom: 8px; }
.toast { position: fixed; bottom: 28px; right: 28px; max-width: 440px; padding: 16px 22px; border-radius: 16px; background: var(--greenSoft); border: 1px solid #b7dfca; color: var(--green); box-shadow: 0 8px 30px #28203d1a; z-index: 100; display: none; }
.toast.show { display: grid; gap: 2px; }
.toast.hata { background: var(--redSoft); border-color: #edb6bf; color: var(--red); }
.toast span { font-size: 12px; }
.giris-hata { color: var(--red); min-height: 1.4em; font-size: 14px; }

/* Gorev tamamlandi ani: halka belirir, isaret cizilir, sonra kaybolur (~1.2 sn) */
.tamam-ani { position: fixed; z-index: 90; left: 50%; top: 42%; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none;
  border-radius: 50%; background: #fff; box-shadow: 0 12px 40px #28203d26; display: grid; place-items: center; animation: tamam-kutu 1.2s ease-out forwards; }
.tamam-ani svg { width: 64px; height: 64px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tamam-ani circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: tamam-ciz .45s ease-out forwards; opacity: .35; }
.tamam-ani path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: tamam-ciz .3s .3s ease-out forwards; }
@keyframes tamam-ciz { to { stroke-dashoffset: 0; } }
@keyframes tamam-kutu { 0% { opacity: 0; transform: scale(.8); } 15% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .task-card.yeni-tamam { animation: none; } .task-card:hover { transform: none; } }

/* ------------------------------------------------ giris */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: #fff; }
.login-brand { background: var(--purpleSoft); padding: 50px; display: flex; flex-direction: column; align-items: flex-start; }
.login-brand .logo { width: 210px; }
.login-brand h1 { font-size: 44px; margin-top: 35px; }
.login-alt { color: var(--purple); margin-top: 12px; }
.login-brand .mascot { height: 52vh; width: auto; align-self: center; margin-top: 30px; object-fit: contain; }
.login-form { padding: 70px; display: flex; justify-content: center; flex-direction: column; gap: 20px; max-width: 620px; }
.login-form .tag { align-self: flex-start; }
.login-form .btn { width: 100%; }
.login-ozellik { background: var(--canvas); border: 0; display: grid; gap: 14px; }
.login-ozellik svg.icon { color: var(--purple); }

/* ------------------------------------------------ 1200 */
@media (max-width: 1200px) {
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .topbar .profile-copy { display: none; }
  .topbar { gap: 15px; }
  .hero-row { grid-template-columns: 1.8fr 1fr; }
  .hero h2 { font-size: 27px; }
  .focus { padding: 20px; }
  .department-cards { grid-template-columns: repeat(2, 1fr); }
  main#icerik { padding: 28px; }
}

/* ------------------------------------------------ mobil */
@media (max-width: 760px) {
  .sidebar { display: none; }
  .topbar { margin: 0; min-height: 0; padding: 14px 20px 10px; flex-wrap: wrap; gap: 8px; }
  .mobile-logo { display: block; width: 120px; }
  .mobile-logo img { width: 100%; height: auto; display: block; }
  .mobil-etiket { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; margin-right: auto; }
  .mobil-ikon { display: inline-grid; background: var(--purpleHover); }
  .topbar .icon-btn { min-width: 40px; min-height: 40px; }
  .zil { margin-left: 0; }
  .profil-dugme .avatar { background: #fff; color: var(--purple); }
  .kapsam { order: 10; width: 100%; background: transparent; color: #fff; padding: 0; }
  .kapsam select { color: #fff; min-height: 30px; font-size: 13px; }
  .kapsam select option { color: var(--ink); }
  .arama-kutu.genel { display: none; }
  .profil-menu { right: 12px; top: 64px; }
  main#icerik { margin: 0; padding: 22px 20px 150px; }
  h1 { font-size: 25px; }
  .page-title { align-items: flex-start; gap: 12px; margin-bottom: 22px; }
  .page-title .btn { display: none; }
  .page-title p { font-size: 12px; }
  .hero-row { display: block; }
  .hero { padding: 22px; min-height: 206px; }
  .hero h2 { font-size: 24px; }
  .hero p { font-size: 12px; }
  .hero .copy { max-width: 62%; }
  .hero .mascot { right: 4px; max-width: 40%; height: 92%; }
  .hero .btn { padding: 11px 15px; font-size: 13px; }
  .focus { display: none; }
  .dept-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dept-grid .dept-tile { padding: 14px 7px; text-align: center; }
  .dept-grid .icon-wrap { margin: 0 auto 10px; }
  .dept-grid h3 { font-size: 13px; }
  .dept-grid p { font-size: 10px; }
  .dept-grid .progress { margin-top: 12px; }
  .task-grid { grid-template-columns: 1fr; }
  .task-card { gap: 16px; }
  .task-card h3 { font-size: 15px; min-height: 0; }
  .toolbar { padding: 10px; gap: 10px; }
  .toolbar .arama-kutu { flex-basis: 100%; }
  .toolbar select { max-width: none; width: calc(50% - 32px); font-size: 13px; }
  .segmented { width: 100%; }
  .segmented a, .segmented button { flex: 1; text-align: center; font-size: 13px; }
  .department-cards, .projects { grid-template-columns: 1fr; }
  .department-cards .dept-tile { padding: 20px; }
  .department-summary { padding: 20px; }
  .department-summary .stat { min-width: 70px; }
  .department-summary strong { font-size: 25px; }
  .department-summary .row { gap: 10px; flex-wrap: wrap; }
  .kanban { display: block; overflow: visible; }
  .kanban-col { display: none; min-height: 300px; }
  .kanban-col.active { display: flex; }
  .kanban-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 16px; }
  .kanban-tabs button { font-size: 11px; padding: 10px 2px; background: #fff; border-radius: 10px; display: grid; justify-items: center; gap: 2px; font-weight: 600; color: var(--muted); }
  .kanban-tabs button[aria-selected="true"] { background: var(--purple); color: #fff; }
  .kanban-tabs button > .task-card { display: none; }
  .kanban-tabs button:has(> .task-card) { outline: 2px dashed var(--purple); outline-offset: -2px; }
  .detail-layout { display: flex; flex-direction: column; }
  .detail-layout .card { padding: 20px; }
  .detail-meta-kap { order: -1; }
  .detail-meta .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .detail-title { font-size: 22px; }
  .sekmeler button { font-size: 12px; padding: 10px 4px; }
  .week { gap: 2px; padding: 6px; }
  .day { padding: 8px 0; font-size: 10px; }
  .day strong { font-size: 18px; }
  .ekip-tablo thead { display: none; }
  .ekip-tablo, .ekip-tablo tbody, .ekip-tablo tr, .ekip-tablo td { display: block; width: 100%; }
  .ekip-tablo tr { border-top: 1px solid var(--line); padding: 12px 0; }
  .ekip-tablo td { border: 0; padding: 4px 0; }
  .ekip-tablo select { max-width: none; }
  .mobil-yeni { display: inline-flex; position: fixed; right: 20px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 35; box-shadow: 0 10px 30px #6d36d955; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; min-height: 76px; background: #fff; padding: 8px 4px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); z-index: 40; }
  .bottom-nav a { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; font-size: 10px; min-height: 52px; color: var(--muted); }
  .bottom-nav a.active { background: var(--purpleSoft); color: var(--purple); }
  .modal { width: 100vw; max-width: 100vw; max-height: 93dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-note { margin-top: -8px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); left: 20px; right: 20px; max-width: none; }
  .empty { padding: 24px 18px; }
  .empty img { height: 220px; }
  .login { display: flex; flex-direction: column; }
  .login-brand { padding: 26px 22px; align-items: stretch; }
  .login-brand h1 { font-size: 28px; margin-top: 22px; }
  .login-brand .mascot { height: 260px; margin-top: 16px; }
  .login-form { padding: 26px 22px 40px; }
}
