/* HEP-SEN Hukuk · Görev Takip — tasarım sürüm 3 */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --side: #0a1a31; --side-2: #10294b;
  --brand: #1577bc; --brand-2: #189dd9; --brand-deep: #0f5d97;
  --navy: #0b1b33; --navy-2: #12294a; --red: #d6294a; --red-2: #b81f3d;
  --bg: #f2f5fa; --card: #fff; --line: #e3e8f1; --text: #0f1b2d; --muted: #63728a;
  --acil: #dc2626; --yuksek: #ea580c; --normal: #2563eb; --dusuk: #64748b;
  --yeni: #6366f1; --islemde: #0891b2; --ek_dosya: #d97706; --cozuldu: #16a34a; --iptal: #6b7280;
  --field: #fff; --soft: #f5f7fb; --line-2: #cdd6e5; --text-2: #33415a; --tab: #edf1f7; --track: #e3e8f1;
  --btn: #1577bc; --btn-2: #0f5d97; --accent: #0f5d97; --link: #1269a8; --red-ink: #c81e3f;
  --tone: 100%; --sla-ink: #000; --toast: #0f1b2d; --toast-fg: #fff;
  --err-fg: #991b1b; --ok-fg: #166534; --info-fg: #114b7a;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .05), 0 3px 10px rgba(15, 27, 45, .04);
  --shadow: 0 2px 4px rgba(15, 27, 45, .04), 0 12px 32px rgba(15, 27, 45, .08);
  --shadow-lg: 0 24px 60px rgba(10, 26, 49, .22);
  --radius: 18px; --nav-h: 66px; --side-w: 256px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a111d; --card: #131c2d; --line: #22304a; --text: #e8edf6; --muted: #93a2ba;
  --field: #0d1524; --soft: #19243a; --line-2: #34445f; --text-2: #c5d0e2; --tab: #0e1626; --track: #22304a;
  --btn: #2386cf; --btn-2: #1b6fb0; --accent: #84c7f7; --link: #7dc0f5; --red-ink: #ff7d91;
  --tone: 58%; --sla-ink: #fff; --toast: #e8edf6; --toast-fg: #0a111d;
  --err-fg: #fecaca; --ok-fg: #bbf7d0; --info-fg: #bfdbfe;
  --side: #060b15; --side-2: #0c1a30;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--text); -webkit-font-smoothing: antialiased;
  background: var(--bg); background-image: radial-gradient(900px 480px at 100% -10%, color-mix(in srgb, var(--brand-2) 9%, transparent), transparent 70%), radial-gradient(700px 420px at -10% 110%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 70%); background-attachment: fixed; }
a { color: var(--link); text-decoration: none; }
h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-size: 12px; margin: 0 0 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.boot { padding: 80px 20px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13px; } .right { text-align: right; } .grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.nowrap { flex-wrap: nowrap; align-items: flex-start; }
.hidden { display: none !important; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
::selection { background: color-mix(in srgb, var(--brand-2) 30%, transparent); }

/* ---------- Form ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; color: var(--text-2); }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--field); color: var(--text); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 22%, transparent); }
input:disabled { background: var(--soft); color: var(--muted); }
.field { margin-bottom: 16px; }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: 15px; padding: 11px 18px; min-height: 46px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-align: center; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn) 88%, #fff), var(--btn)); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px color-mix(in srgb, var(--btn) 28%, transparent); transition: transform .12s, box-shadow .15s, filter .15s, background .15s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.96); }
.btn:focus-visible, .linkbtn:focus-visible, .chip:focus-visible, .themebtn:focus-visible, .nav a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-2) 55%, transparent); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn.red { --btn: var(--red); } .btn.green { --btn: var(--cozuldu); } .btn.cyan { --btn: var(--islemde); } .btn.amber { --btn: var(--ek_dosya); }
.btn.ghost { background: var(--card); color: var(--text); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { background: var(--soft); filter: none; }
.btn.danger { background: var(--card); color: color-mix(in srgb, var(--acil) var(--tone), #fff); border-color: color-mix(in srgb, var(--acil) 35%, var(--card)); box-shadow: none; }
.btn.danger:hover { background: color-mix(in srgb, var(--acil) 8%, var(--card)); filter: none; }
.btn.sm { padding: 7px 13px; min-height: 36px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; font-weight: 600; }
.linkbtn:hover, a:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn:hover, .nav a:hover, .task:hover, .stat:hover, .chip:hover, .rowlink:hover, a.mat:hover, a.alert:hover { text-decoration: none; }

/* ---------- Giriş ---------- */
.auth { position: relative; min-height: 100dvh; display: flex; flex-direction: column; }
.brand { position: relative; overflow: hidden; color: #fff; text-align: center; padding: calc(34px + env(safe-area-inset-top)) 24px 74px;
  background: radial-gradient(520px 300px at 85% -10%, rgba(24, 157, 217, .55), transparent 70%), radial-gradient(420px 320px at -5% 105%, rgba(21, 119, 188, .5), transparent 70%), linear-gradient(160deg, #0a1a31 0%, #0f2f57 55%, #12508a 100%); }
.brand::before, .brand::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); pointer-events: none; }
.brand::before { width: 420px; height: 420px; right: -150px; top: -190px; }
.brand::after { width: 620px; height: 620px; right: -250px; top: -290px; }
.brand .emblem { position: relative; display: block; width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 14px 34px rgba(0, 0, 0, .35); }
.brand b { position: relative; display: block; font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.brand > span { position: relative; display: block; opacity: .82; font-size: 14px; margin-top: 4px; letter-spacing: .02em; }
.brand-points, .brand-foot { display: none; }
.auth-side { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 16px 28px; margin-top: -46px; position: relative; }
.auth-card { width: 100%; max-width: 440px; align-self: flex-start; background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.card-logo { display: flex; justify-content: center; padding: 18px 16px 12px; background: #fff; }
.card-logo img { display: block; height: 56px; width: auto; max-width: 100%; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 14px 20px 0; padding: 4px; background: var(--tab); border-radius: 14px; }
.auth-tabs button { font: inherit; font-weight: 650; font-size: 14px; padding: 11px 8px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.auth-tabs button.on { background: var(--card); color: var(--accent); box-shadow: var(--shadow-sm); }
.auth-tabs button.on.admin { color: var(--red-ink); }
.auth-body { padding: 20px 22px 26px; }
.auth-body h2 { font-family: var(--serif); font-size: 21px; }
.auth-body p.lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.alert.err { background: color-mix(in srgb, var(--acil) 10%, var(--card)); color: var(--err-fg); border: 1px solid color-mix(in srgb, var(--acil) 30%, var(--card)); }
.alert.ok { background: color-mix(in srgb, var(--cozuldu) 10%, var(--card)); color: var(--ok-fg); border: 1px solid color-mix(in srgb, var(--cozuldu) 30%, var(--card)); }
.alert.info, .card.pending { background: color-mix(in srgb, var(--brand-2) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand-2) 32%, var(--card)); }
.alert.info { color: var(--info-fg); }

/* ---------- Kabuk ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.topbar .logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 1.5px; flex: none; display: block; object-fit: contain; box-shadow: var(--shadow-sm); }
.topbar .t { line-height: 1.2; }
.topbar .t b, .topbar .t span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .t b { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.topbar .t span { font-size: 12px; color: var(--muted); }
.themebtn, .topbar .out { flex: none; height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 600; border-radius: 12px; cursor: pointer;
  background: var(--card); color: var(--text-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: background .15s, transform .12s; }
.themebtn { padding: 0; }
.themebtn:hover, .topbar .out:hover { background: var(--soft); }
.themebtn svg, .topbar .out svg { width: 19px; height: 19px; }
.themebtn .sun, html[data-theme="dark"] .themebtn .moon { display: none; }
html[data-theme="dark"] .themebtn .sun { display: block; }
.auth > .themebtn { position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top)); right: 14px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.topbar .out span { display: none; }
.userchip { display: flex; align-items: center; gap: 9px; min-width: 0; }
.userchip .uc { display: none; line-height: 1.2; }
.userchip .uc b { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; }
.userchip .uc span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.userchip.admin .uc span { color: var(--red-ink); }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  background: linear-gradient(140deg, var(--brand-2), var(--brand-deep)); box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px color-mix(in srgb, var(--brand) 35%, transparent); }
.userchip .avatar { width: 38px; height: 38px; font-size: 13px; }
.userchip.admin .avatar { background: linear-gradient(140deg, #f0486a, var(--red-2)); box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px color-mix(in srgb, var(--red) 35%, transparent); }
.main { padding: 18px 14px calc(var(--nav-h) + 44px + env(safe-area-inset-bottom)); max-width: 1120px; margin: 0 auto; }
.main > * { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Alt menü (telefon) */
.nav { position: fixed; z-index: 20; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); border-radius: 24px;
  background: color-mix(in srgb, var(--card) 90%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-logo, .nav-sec, .nav-user { display: none; }
.nav-links { display: flex; }
.nav a { flex: 1; min-height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; transition: color .15s; }
.nav a svg { width: 23px; height: 23px; transition: transform .15s; }
.nav a.on { color: var(--brand); }
html[data-theme="dark"] .nav a.on { color: var(--accent); }
.nav a.on svg { transform: translateY(-1px); }
.nav a.on::after { content: ""; position: absolute; bottom: 7px; width: 18px; height: 3px; border-radius: 3px; background: currentColor; }
.nav a .dot { position: absolute; top: 8px; left: calc(50% + 7px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; font-style: normal; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--card); }
.nav a.fab span { display: none; }
.nav a.fab::after { display: none; }
.nav a.fab svg { width: 54px; height: 54px; padding: 15px; margin-top: -30px; border-radius: 50%; color: #fff; background: linear-gradient(140deg, #f0486a, var(--red-2)); box-shadow: 0 0 0 5px var(--bg), 0 10px 22px color-mix(in srgb, var(--red) 45%, transparent); }
.nav a.fab.on svg { transform: none; }

/* ---------- İmza ---------- */
.credit { text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .02em; padding: 22px 0 4px; }
.credit a { color: var(--text-2); font-weight: 650; }
.credit a:hover { color: var(--link); }
.auth .credit { padding-top: 18px; }

/* ---------- Kartlar ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: #fff; border-radius: 22px; padding: 22px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
  background: radial-gradient(420px 240px at 100% 0, rgba(24, 157, 217, .55), transparent 70%), linear-gradient(135deg, #0a1a31 0%, #0f2f57 55%, #145a99 100%); }
.hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; bottom: -190px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 0 46px rgba(255, 255, 255, .04), 0 0 0 100px rgba(255, 255, 255, .03); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero > .grow { flex: 1 1 260px; }
.hero .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.hero h1 { margin: 4px 0 6px; font-size: 28px; color: #fff; }
.hero p { margin: 0; opacity: .86; font-size: 14px; max-width: 520px; }
.hero .btn { background: #fff; color: var(--navy); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { position: relative; display: block; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c, var(--brand)), color-mix(in srgb, var(--c, var(--brand)) 35%, transparent)); }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c, var(--brand)) 40%, var(--line)); }
.stat .si { float: right; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--c, var(--brand)) var(--tone), #fff); background: color-mix(in srgb, var(--c, var(--brand)) 12%, var(--card)); }
.stat .si svg { width: 20px; height: 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: color-mix(in srgb, var(--c, var(--accent)) var(--tone), #fff); }
.stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 99px; white-space: nowrap; color: color-mix(in srgb, var(--c) var(--tone), #fff); background: color-mix(in srgb, var(--c) 11%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 24%, var(--card)); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.badge.solid { background: var(--c); color: #fff; border-color: var(--c); box-shadow: 0 3px 8px color-mix(in srgb, var(--c) 30%, transparent); } .badge.solid::before { background: #fff; }
.badge.plain::before { display: none; }
.p-acil { --c: var(--acil); } .p-yuksek { --c: var(--yuksek); } .p-normal { --c: var(--normal); } .p-dusuk { --c: var(--dusuk); }
.s-yeni { --c: var(--yeni); } .s-islemde { --c: var(--islemde); } .s-ek_dosya { --c: var(--ek_dosya); } .s-cozuldu { --c: var(--cozuldu); } .s-iptal { --c: var(--iptal); }
.c-bad { --c: var(--acil); } .c-warn { --c: var(--ek_dosya); } .c-ok { --c: var(--cozuldu); } .c-mute { --c: var(--dusuk); }

/* ---------- Filtre ---------- */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.filters .wide { grid-column: 1 / -1; }
.filters select, .filters input { padding: 10px 12px; font-size: 15px; box-shadow: var(--shadow-sm); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 6px 14px rgba(11, 27, 51, .22); }
html[data-theme="dark"] .chip.on { background: var(--btn); border-color: var(--btn); }

/* ---------- Görev kartı ---------- */
.task { position: relative; display: block; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px 15px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.task::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: 14px; width: 4px; border-radius: 4px; background: var(--c); }
.task:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.task.p-acil { background: linear-gradient(90deg, color-mix(in srgb, var(--acil) 6%, var(--card)), var(--card) 45%); }
.task.done { opacity: .7; }
.task .no { font-size: 12px; color: var(--muted); font-weight: 650; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.task .ttl { font-weight: 650; font-size: 16px; letter-spacing: -.01em; margin: 8px 0 3px; overflow-wrap: anywhere; }
.task .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.task .meta b { color: var(--text-2); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 44px 18px; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1.5px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- Öncelik seçici ---------- */
.prio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.prio label { margin: 0; cursor: pointer; }
.prio input { position: absolute; opacity: 0; width: 0; }
.prio span { display: block; padding: 11px 8px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--c) 30%, var(--card)); color: color-mix(in srgb, var(--c) var(--tone), #fff); font-weight: 700; text-align: center; background: color-mix(in srgb, var(--c) 6%, var(--card)); transition: transform .12s, box-shadow .15s; }
.prio span small { display: block; font-weight: 500; font-size: 11px; opacity: .85; }
.prio input:checked + span { background: var(--c); color: #fff; border-color: var(--c); box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent); transform: translateY(-1px); }
.prio input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand-2) 55%, transparent); outline-offset: 2px; }

/* ---------- Detay ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 12px; color: var(--muted); }
.back:hover { color: var(--text); }
.kv { display: grid; grid-template-columns: 1fr; gap: 12px; }
.kv div span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.kv div b { font-weight: 600; overflow-wrap: anywhere; }
.sla { border-radius: 14px; padding: 13px 16px; margin-bottom: 14px; font-weight: 650; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--card)); background: color-mix(in srgb, var(--c) 9%, var(--card)); color: color-mix(in srgb, var(--c) 80%, var(--sla-ink)); }
.sla small { display: block; font-weight: 500; opacity: .85; }
.actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.mat { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.mat:first-of-type { border-top: 0; }
.mat .ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: #fff; background: var(--dusuk); text-transform: uppercase; }
.mat .ico.xls { background: #15803d; } .mat .ico.doc { background: #1d4ed8; } .mat .ico.pdf { background: #b91c1c; } .mat .ico.link { background: #7c3aed; } .mat .ico.img { background: #0e7490; }
.mat a.name { font-weight: 600; overflow-wrap: anywhere; display: block; }
.mat .x { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.mat .x:hover { background: var(--soft); color: var(--red-ink); }
.linkrow { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 24px; border-left: 2px solid var(--line); margin-left: 7px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--c, #94a3b8); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--line); }
.timeline .who { font-size: 13px; } .timeline .when { font-size: 12px; color: var(--muted); }
.timeline .note { margin-top: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 9px 12px; font-size: 14px; }
.done-note { background: color-mix(in srgb, var(--cozuldu) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--cozuldu) 30%, var(--card)); border-radius: 14px; padding: 13px 16px; margin-bottom: 14px; }
details > summary { cursor: pointer; }

/* ---------- Liste satırları ---------- */
.item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.item:first-child { border-top: 0; padding-top: 0; }
.item:last-child { padding-bottom: 0; }
.bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--brand-deep)); }
.mail { border-top: 1px solid var(--line); padding: 10px 0; font-size: 13px; }
.mail summary { font-weight: 600; overflow-wrap: anywhere; }
.mail pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); padding: 10px; border-radius: 10px; font: inherit; font-size: 13px; margin: 8px 0 0; }
.rowlink { color: inherit; align-items: center; flex-wrap: nowrap; border-radius: 12px; transition: background .15s; }
.rowlink:hover { background: var(--soft); box-shadow: 0 0 0 8px var(--soft); }
.menu .rowlink svg { width: 42px; height: 42px; padding: 10px; flex: none; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--brand-2) 12%, var(--card)); }
.menu .rowlink small { display: block; color: var(--muted); font-size: 13px; }
.menu .dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-style: normal; display: flex; align-items: center; justify-content: center; }

/* ---------- Modal & bildirim ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(8, 17, 32, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s both; }
.modal .sheet { background: var(--card); width: 100%; max-width: 540px; border-radius: 24px 24px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 92dvh; overflow: auto; box-shadow: var(--shadow-lg); animation: sheet .3s cubic-bezier(.2, .8, .2, 1) both; }
.modal .sheet h2 { font-family: var(--serif); font-size: 20px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
#toast-root { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { background: var(--toast); color: var(--toast-fg); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); max-width: 480px; animation: sheet .25s both; }
.toast.err { background: #b91c1c; color: #fff; }

/* ---------- Takvim ve tarihler ---------- */
.datebox { flex: none; width: 48px; border-radius: 12px; overflow: hidden; text-align: center; border: 1px solid color-mix(in srgb, var(--c) 35%, var(--card)); background: var(--card); box-shadow: var(--shadow-sm); }
.datebox b { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.25; padding-top: 3px; color: color-mix(in srgb, var(--c) var(--tone), #fff); }
.datebox span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--c); padding: 2px 0; }
.daterow { align-items: flex-start; }
.daterow.done .dtitle { text-decoration: line-through; color: var(--muted); }
.daterow .when { flex: none; width: 48px; font-weight: 700; font-size: 14px; color: var(--text-2); padding-top: 1px; font-variant-numeric: tabular-nums; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal > b { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; letter-spacing: .05em; text-transform: uppercase; }
.cal-d { aspect-ratio: 1; min-height: 40px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; transition: background .15s, transform .12s; }
.cal-d:disabled { color: var(--muted); }
.cal-d.has { cursor: pointer; font-weight: 700; background: var(--soft); border-color: var(--line); }
.cal-d.has:hover { transform: translateY(-1px); border-color: var(--brand); }
.cal-d.today { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 6px 14px rgba(11, 27, 51, .25); }
html[data-theme="dark"] .cal-d.today { background: var(--btn); border-color: var(--btn); }
.cal-d em { display: flex; gap: 2px; height: 6px; }
.cal-d u, .legend u { width: 6px; height: 6px; border-radius: 50%; background: var(--c); display: inline-block; text-decoration: none; }
.cal-d.today u { box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; } .legend u { width: 9px; height: 9px; }

/* ---------- Raporlar ---------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 0 6px; }
table.rep { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.rep th, table.rep td { padding: 9px 11px; border-bottom: 1px solid var(--line); text-align: right; }
table.rep thead th { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: normal; vertical-align: bottom; background: var(--soft); }
table.rep thead th:first-child { border-radius: 10px 0 0 10px; } table.rep thead th:last-child { border-radius: 0 10px 10px 0; }
table.rep th:first-child, table.rep td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); }
table.rep thead th:first-child { background: var(--soft); }
table.rep tbody th { font-weight: 600; text-align: left; white-space: normal; min-width: 150px; max-width: 280px; }
table.rep tbody tr:hover td, table.rep tbody tr:hover th { background: var(--soft); }
table.rep td small { display: block; color: var(--muted); font-size: 11px; }
table.rep tr.tot th, table.rep tr.tot td { font-weight: 700; border-top: 2px solid var(--line-2); border-bottom: 0; }
table.rep .bad, .bad { color: color-mix(in srgb, var(--acil) var(--tone), #fff); font-weight: 600; }
.rep-f label { font-size: 12px; margin-bottom: 4px; }
.rep-head { margin-bottom: 14px; } .rep-head b { display: block; font-family: var(--serif); font-size: 19px; } .rep-head span { font-size: 13px; color: var(--muted); }
.rep-stats .stat b { font-size: 26px; }
.mchart { display: flex; align-items: flex-end; gap: 12px; min-height: 196px; padding-top: 20px; }
.mcol { flex: 1 0 56px; text-align: center; }
.mbars { height: 144px; display: flex; align-items: flex-end; justify-content: center; gap: 5px; border-bottom: 1px solid var(--line-2); }
.mbars i { width: 20px; min-height: 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); border-radius: 6px 6px 0 0; position: relative; }
.mbars em { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-style: normal; font-weight: 700; color: var(--text-2); }
.mcol span { display: block; font-size: 11px; color: var(--muted); white-space: pre-line; margin-top: 5px; line-height: 1.2; }
ul.method { margin: 10px 0 0; padding-left: 18px; } ul.method li { margin-bottom: 6px; }

/* ---------- Avukat önerisi ---------- */
.sug { margin: 0 0 12px; padding: 14px; border-radius: 16px; background: color-mix(in srgb, var(--brand-2) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand-2) 26%, var(--card)); }
.sug-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.sug-list { display: grid; gap: 8px; margin-bottom: 8px; }
.sug-c { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .12s; }
.sug-c:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.sug-c.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 25%, transparent); }
.sug-c.off { opacity: .6; cursor: not-allowed; }
.sug-n { display: flex; align-items: center; gap: 9px; }
.sug-n .avatar { width: 30px; height: 30px; font-size: 11px; box-shadow: none; }
.sug-n i { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand-deep)); padding: 3px 9px; border-radius: 99px; }
.sug-m { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sug-m em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; color: var(--text-2); background: var(--soft); border: 1px solid var(--line); }
.sug-m em.good { color: color-mix(in srgb, var(--cozuldu) var(--tone), #fff); background: color-mix(in srgb, var(--cozuldu) 10%, var(--card)); border-color: color-mix(in srgb, var(--cozuldu) 26%, var(--card)); }
.sug-m em.warn { color: color-mix(in srgb, var(--ek_dosya) var(--tone), #fff); background: color-mix(in srgb, var(--ek_dosya) 10%, var(--card)); border-color: color-mix(in srgb, var(--ek_dosya) 26%, var(--card)); }
.sug-m em.bad { color: color-mix(in srgb, var(--acil) var(--tone), #fff); background: color-mix(in srgb, var(--acil) 10%, var(--card)); border-color: color-mix(in srgb, var(--acil) 26%, var(--card)); }
@media (min-width: 700px) { .sug-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Orta genişlik ---------- */
@media (min-width: 560px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .prio { grid-template-columns: repeat(4, 1fr); }
  .kv { grid-template-columns: 1fr 1fr; }
  .linkrow { grid-template-columns: 1fr 1.4fr; border-bottom: 0; padding-bottom: 0; }
  .actions { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .rep-stats { grid-template-columns: repeat(4, 1fr); } .rep-f { grid-template-columns: repeat(5, 1fr); }
  .modal { align-items: center; padding: 20px; } .modal .sheet { border-radius: 24px; }
  .hero { padding: 26px 28px; } .hero h1 { font-size: 32px; }
}

/* ---------- Masaüstü ---------- */
@media (min-width: 960px) {
  h1 { font-size: 30px; }
  .auth { flex-direction: row; }
  .brand { flex: 1.05; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; padding: 64px clamp(40px, 7vw, 110px); }
  .brand .emblem { width: 112px; height: 112px; margin: 0 0 26px; }
  .brand b { font-size: 46px; }
  .brand > span { font-size: 18px; margin-top: 8px; }
  .brand-points { display: block; position: relative; list-style: none; margin: 38px 0 0; padding: 0; }
  .brand-points li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 16px; opacity: .92; }
  .brand-points li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
  .brand-foot { display: block; position: absolute; left: clamp(40px, 7vw, 110px); bottom: 34px; font-size: 13px; opacity: .6; }
  .auth-side { flex: 1; justify-content: center; margin-top: 0; padding: 40px; }
  .auth-card { align-self: center; }
  .auth > .themebtn { background: var(--card); color: var(--text-2); border-color: var(--line); box-shadow: var(--shadow-sm); top: 20px; right: 20px; }

  .nav { top: 0; bottom: 0; left: 0; right: auto; width: var(--side-w); border-radius: 0; border: 0; display: flex; flex-direction: column; padding: 20px 14px 16px; overflow-y: auto; color: #fff;
    background: radial-gradient(360px 260px at 0 0, rgba(24, 157, 217, .28), transparent 70%), linear-gradient(180deg, var(--side-2), var(--side)); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .nav-logo { display: flex; justify-content: center; margin: 0 4px 18px; padding: 12px 14px; background: #fff; border-radius: 16px; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
  .nav-logo img { display: block; width: 160px; max-width: 100%; height: auto; }
  .nav-links { flex-direction: column; gap: 3px; flex: 1; }
  .nav-sec { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .42); padding: 16px 14px 6px; }
  .nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 550; border-radius: 12px; color: rgba(255, 255, 255, .72); transition: background .15s, color .15s; }
  .nav a svg { width: 20px; height: 20px; }
  .nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .nav a.on, html[data-theme="dark"] .nav a.on { color: #fff; background: linear-gradient(90deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 20px rgba(21, 119, 188, .45); }
  .nav a.on::after { display: none; }
  .nav a.on svg { transform: none; }
  .nav a .dot { position: static; margin-left: auto; box-shadow: none; }
  .nav a.more { display: flex; } .nav a.mob { display: none; }
  .nav a.fab span { display: inline; }
  .nav a.fab svg { width: 20px; height: 20px; padding: 0; margin: 0; background: none; box-shadow: none; border-radius: 0; color: inherit; }
  .nav-user { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
  .nav-user .avatar { width: 38px; height: 38px; font-size: 13px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
  .nav-user.admin .avatar { background: linear-gradient(140deg, #f0486a, var(--red-2)); }
  .nav-user b { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-user span { font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
  .nav-user button { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .nav-user button:hover { background: rgba(255, 255, 255, .16); }
  .nav-user button svg { width: 18px; height: 18px; }

  .topbar { margin-left: var(--side-w); padding: 14px 34px; }
  .topbar .logo, .topbar .out { display: none; }
  .topbar .t b { font-size: 15px; font-family: var(--sans); font-weight: 650; }
  .userchip .uc { display: block; }
  .main { margin-left: var(--side-w); padding: 26px 34px 48px; max-width: none; }
  .main > * { max-width: 1180px; }
  #toast-root { bottom: 26px; left: var(--side-w); }
  .stats { grid-template-columns: repeat(6, 1fr); }
  .stats.rep-stats { grid-template-columns: repeat(4, 1fr); }
  .filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } .filters .wide { grid-column: auto; }
  .filters.rep-f { grid-template-columns: repeat(5, 1fr); }
  .cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
  .tasklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .tasklist .task { margin: 0; }
}
@media (max-width: 959px) { .nav a.more { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

html[data-theme="dark"] .auth-card { border-color: var(--line); }
html[data-theme="dark"] .modal { background: rgba(0, 0, 0, .65); }

@media print {
  html[data-theme="dark"] { --bg: #fff; --card: #fff; --line: #cbd5e1; --text: #000; --muted: #475569; --soft: #f1f5f9; --line-2: #94a3b8; --text-2: #1e293b; --btn: #1577bc; --accent: #0f5d97; --link: #000; --tone: 100%; }
  body { background: #fff; font-size: 12px; }
  .topbar, .nav, .noprint, #toast-root, #modal-root { display: none !important; }
  .main { margin: 0; padding: 0; max-width: none; } .main > * { animation: none; max-width: none; }
  .card, .stat { break-inside: avoid; box-shadow: none; }
  .tablewrap { overflow: visible; } table.rep { white-space: normal; font-size: 11px; } table.rep th:first-child, table.rep td:first-child { position: static; }
  a { color: inherit; } summary.linkbtn { color: #000; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
