/* Kayden İş Takip — arayüz
   Marka: lacivert-mor #3C2B99, kırmızı #BD2112 (logodan) */
:root {
  --ind: #3C2B99; --ind-700: #2b1f73; --ind-800: #1f1656; --ind-50: #f3f1fc; --ind-100: #e6e2f8; --ind-200: #cbc3f0;
  --red: #BD2112; --red-600: #a31b0e; --red-50: #fdf0ee; --red-100: #f9d9d5;
  --ok: #0f9d6b; --ok-50: #e8f8f1; --warn: #d9822b; --warn-50: #fdf3e7; --sky: #2b7bd9; --sky-50: #eaf3fd;
  --bg: #f6f5fb; --card: #fff; --line: #ebe9f3; --line-2: #dcd9e8; --text: #1d1a2f; --muted: #6f6b85; --muted-2: #9b97ad;
  --radius: 16px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(31, 22, 86, .05);
  --shadow: 0 1px 2px rgba(31, 22, 86, .04), 0 4px 16px rgba(31, 22, 86, .06);
  --shadow-lg: 0 10px 40px rgba(31, 22, 86, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side: 252px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.5 "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
a { color: var(--ind); text-decoration: none; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
h2 { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pre { white-space: pre-wrap; word-break: break-word; }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ============================================================ GİRİŞ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(1200px 600px at 0% 0%, #4d3bb5 0%, transparent 60%), linear-gradient(150deg, var(--ind) 0%, var(--ind-800) 100%);
}
.auth-art .brand-white { width: 170px; position: relative; z-index: 2; }
.auth-art h2 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; max-width: 470px; position: relative; z-index: 2; }
.auth-art h2 em { font-style: normal; color: #ffb4ab; }
.auth-art p.lead { color: #d7d1f5; font-size: 16px; max-width: 430px; margin: 16px 0 28px; position: relative; z-index: 2; }
.feat { display: grid; gap: 12px; position: relative; z-index: 2; }
.feat div { display: flex; align-items: center; gap: 12px; color: #ece9fb; }
.feat span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.auth-art footer { color: #a99fe0; font-size: 13px; position: relative; z-index: 2; }
.tri { position: absolute; width: 0; height: 0; opacity: .6; animation: float 14s ease-in-out infinite; }
.tri.r { border-left: 46px solid transparent; border-right: 46px solid transparent; border-bottom: 80px solid var(--red); }
.tri.w { border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 52px solid rgba(255,255,255,.18); }
.tri.p { border-left: 60px solid transparent; border-right: 60px solid transparent; border-bottom: 104px solid #5a47cf; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(12deg); }
}
.auth-art .big-mark { position: absolute; right: -90px; bottom: -70px; width: 460px; opacity: .1; z-index: 1; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-form { display: grid; place-items: center; padding: 32px 24px; }
.auth-box { width: 100%; max-width: 380px; animation: rise .6s var(--ease) both; }
.auth-box .logo { width: 150px; display: block; margin-bottom: 30px; }
.auth-box h1 { font-size: 28px; }
.auth-box .sub { color: var(--muted); margin: 6px 0 28px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .i { position: absolute; left: 14px; color: var(--muted-2); pointer-events: none; }
.input-wrap input { padding-left: 44px; height: 50px; font-size: 16px; border-radius: 12px; }
.input-wrap .eye { position: absolute; right: 8px; border: 0; background: none; color: var(--muted); padding: 8px; cursor: pointer; border-radius: 8px; }
.input-wrap .eye:hover { background: var(--ind-50); color: var(--ind); }
.auth-box .btn.lg { height: 52px; font-size: 16px; margin-top: 8px; }
.auth-err { background: var(--red-50); color: var(--red-600); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.auth-mobile-head { display: none; }

/* ============================================================ YERLEŞİM */
.shell { min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 14px; z-index: 20;
}
.side .logo { width: 128px; margin: 0 10px 28px; }
.side nav { display: grid; gap: 3px; }
.side nav .lbl { font-size: 11px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; margin: 16px 12px 6px; }
.side nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600;
  transition: background .2s, color .2s;
}
.side nav a:hover { background: var(--ind-50); color: var(--ind); }
.side nav a.active { background: var(--ind); color: #fff; box-shadow: 0 6px 16px rgba(60, 43, 153, .28); }
.side nav a .cnt { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.side nav a.active .cnt { background: #fff; color: var(--ind); }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--bg); }
.side .me .who { flex: 1; min-width: 0; line-height: 1.25; }
.side .me .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.side .me .who small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.icon-btn { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.icon-btn:hover { background: var(--ind-50); color: var(--ind); }

.main { margin-left: var(--side); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 14px 32px;
  background: rgba(246, 245, 251, .85); backdrop-filter: saturate(160%) blur(10px);
}
.search { flex: 1; max-width: 460px; position: relative; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search input { padding-left: 42px; height: 44px; border-radius: 12px; background: #fff; border-color: var(--line); }
.topbar .spacer { flex: 1; }
.mob-top, .tabbar { display: none; }
.content { padding: 8px 32px 60px; max-width: 1240px; }
.view { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 20px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.back:hover { color: var(--ind); }

/* ============================================================ BİLEŞENLER */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head a { font-size: 13px; font-weight: 600; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }

input, select, textarea {
  font: inherit; color: var(--text); padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; width: 100%; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ind); box-shadow: 0 0 0 4px rgba(60, 43, 153, .12); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 14px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; color: var(--text);
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--ind-200); background: var(--ind-50); color: var(--ind); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, #4a37b8, var(--ind)); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(60, 43, 153, .3); }
.btn.primary:hover { box-shadow: 0 10px 24px rgba(60, 43, 153, .38); transform: translateY(-1px); color: #fff; }
.btn.accent { background: linear-gradient(135deg, #d42d1d, var(--red)); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(189, 33, 18, .28); }
.btn.accent:hover { box-shadow: 0 10px 24px rgba(189, 33, 18, .36); transform: translateY(-1px); color: #fff; }
.btn.ok { background: var(--ok); border: 0; color: #fff; box-shadow: 0 6px 18px rgba(15, 157, 107, .25); }
.btn.ok:hover { color: #fff; transform: translateY(-1px); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-50); border-color: var(--red-100); color: var(--red); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 50px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Avatar */
.av {
  --c: var(--ind); width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--c); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; border: 2px solid #fff;
}
.av.sm { width: 26px; height: 26px; font-size: 10px; }
.av.lg { width: 44px; height: 44px; font-size: 15px; }
.av-stack { display: inline-flex; }
.av-stack .av + .av { margin-left: -8px; }
.av-stack .more { background: var(--ind-100); color: var(--ind); }

/* Rozetler */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-open { background: var(--sky-50); color: var(--sky); }
.st-in_progress { background: var(--warn-50); color: var(--warn); }
.st-done { background: var(--ind-100); color: var(--ind); }
.st-done::before { animation: pulse 1.6s infinite; }
.st-seen { background: var(--ok-50); color: var(--ok); }
.st-cancelled { background: #f1f0f4; color: var(--muted); }
.pr-urgent { background: var(--red); color: #fff; }
.pr-urgent::before { background: #fff; animation: pulse 1.4s infinite; }
.pr-high { background: var(--red-50); color: var(--red); }
.pr-low { background: #f1f0f4; color: var(--muted); }
@keyframes pulse { 50% { opacity: .3; } }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.chip .i { width: 14px; height: 14px; }
.due-late { color: var(--red); }
.due-soon { color: var(--warn); }

/* ============================================================ ÖZET */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px 30px; color: #fff; margin-bottom: 20px;
  background: radial-gradient(600px 300px at 100% 0%, #5c49d1 0%, transparent 60%), linear-gradient(135deg, var(--ind) 0%, var(--ind-800) 100%);
  box-shadow: 0 14px 40px rgba(60, 43, 153, .25);
}
.hero h1 { font-size: 28px; color: #fff; }
.hero p { color: #d9d3f7; margin: 6px 0 18px; max-width: 560px; font-size: 15.5px; }
.hero p b { color: #fff; }
.hero .mark { position: absolute; right: -10px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 250px; opacity: .14; }
.hero .date { font-size: 13px; color: #b7adf0; font-weight: 600; text-transform: capitalize; }
.hero .btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; }
.hero .btn:hover { background: rgba(255,255,255,.24); color: #fff; }
.hero .btn.accent { background: linear-gradient(135deg, #d42d1d, var(--red)); border: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s; animation: rise .5s var(--ease) both;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ind-50); color: var(--ind); }
.stat b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat.red .ic { background: var(--red-50); color: var(--red); }
.stat.red.hot b { color: var(--red); }
.stat.orange .ic { background: var(--warn-50); color: var(--warn); }
.stat.green .ic { background: var(--ok-50); color: var(--ok); }
.stat.sky .ic { background: var(--sky-50); color: var(--sky); }
.stat .go { position: absolute; right: 14px; top: 16px; color: var(--muted-2); opacity: 0; transition: .25s; }
.stat:hover .go { opacity: 1; transform: translateX(3px); }

/* Aktivite */
.feed { display: grid; gap: 2px; }
.feed-item { display: flex; gap: 12px; padding: 10px 8px; border-radius: 12px; transition: background .2s; color: var(--text); }
.feed-item:hover { background: var(--bg); }
.feed-item .txt { flex: 1; min-width: 0; font-size: 14px; }
.feed-item .txt .t { color: var(--ind); font-weight: 600; }
.feed-item time { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; }

/* ============================================================ İŞ LİSTESİ */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: var(--muted); background: #fff; border: 1px solid var(--line); transition: .2s;
}
.tabs a:hover { color: var(--ind); border-color: var(--ind-200); }
.tabs a.active { background: var(--ind); color: #fff; border-color: var(--ind); box-shadow: 0 6px 16px rgba(60, 43, 153, .25); }
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters select { width: auto; min-width: 170px; height: 42px; border-color: var(--line); }
.notice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; font-weight: 600; background: var(--red-50); color: var(--red); }
.notice.ok { background: var(--warn-50); color: var(--warn); }
.notice a { margin-left: auto; color: inherit; text-decoration: underline; }

.task-list { display: grid; gap: 10px; }
.task {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 20px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; animation: rise .4s var(--ease) both;
}
.task::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ind-100); }
.task.p-high::before { background: #f0a097; }
.task.p-urgent::before, .task.late::before { background: var(--red); }
.task.closed::before { background: var(--ok); }
.task:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--ind-100); }
.task .body { flex: 1; min-width: 0; }
.task .ttl { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.task .ttl span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task .id { color: var(--muted-2); font-weight: 600; font-size: 13px; }
.task .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 6px; }
.task .right { display: flex; align-items: center; gap: 14px; flex: none; }
.flow { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.flow .i { width: 13px; height: 13px; color: var(--muted-2); }
.flow.in { color: var(--sky); }
.flow.out { color: var(--red); }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); background: #fff; border: 1.5px dashed var(--line-2); border-radius: var(--radius); }
.empty img { width: 64px; opacity: .25; margin-bottom: 10px; filter: grayscale(.2); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }

/* İskelet yükleme */
.skel { display: grid; gap: 12px; }
.skel div { height: 72px; border-radius: 14px; background: linear-gradient(90deg, #eeecf6 0%, #f7f6fc 50%, #eeecf6 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skel div:first-child { height: 140px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============================================================ İŞ DETAYI */
.task-head .ttl-row { display: flex; align-items: flex-start; gap: 14px; justify-content: space-between; }
.task-head h1 { font-size: 24px; line-height: 1.25; }
.task-head .id { color: var(--muted-2); font-weight: 700; }
.task-head .pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; align-items: center; }
.desc { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.65; }
.solution {
  margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--ok-50), #f3fcf8);
  border: 1px solid #bfe9d6;
}
.solution .h { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 800; margin-bottom: 6px; }

.info { display: grid; gap: 16px; }
.info .row { display: flex; gap: 12px; align-items: flex-start; }
.info .row .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--ind-50); color: var(--ind); display: grid; place-items: center; flex: none; }
.info .row small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.info .row div { font-weight: 600; font-size: 14px; }
.people { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.people span { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.side-actions { display: grid; gap: 8px; }

/* Silsile */
.thread { display: grid; gap: 16px; }
.msg { display: flex; gap: 12px; animation: rise .4s var(--ease) both; }
.msg .bubble { flex: 1; min-width: 0; }
.msg .who { font-size: 13px; color: var(--muted); }
.msg .who b { color: var(--text); }
.msg .text { margin-top: 6px; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: var(--bg); white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bubble { text-align: right; }
.msg.mine .text { text-align: left; background: var(--ind); color: #fff; border-radius: 14px 4px 14px 14px; display: inline-block; max-width: 100%; }
.msg.mine .text-wrap { display: flex; justify-content: flex-end; }
.event { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-left: 6px; }
.event .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ind-50); color: var(--ind); flex: none; }
.event .dot .i { width: 14px; height: 14px; }
.event.status .dot { background: var(--warn-50); color: var(--warn); }
.event b { color: var(--text); }
.event .note { display: block; color: var(--text); margin-top: 4px; white-space: pre-wrap; }
.event.solution-ev { align-items: flex-start; }
.event.solution-ev .dot { background: var(--ok); color: #fff; }
.event.solution-ev .box { flex: 1; background: var(--ok-50); border: 1px solid #bfe9d6; border-radius: 14px; padding: 12px 14px; color: var(--text); }
.composer { display: flex; gap: 10px; align-items: flex-end; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.composer textarea { min-height: 48px; height: 48px; border-radius: 14px; transition: height .2s; }
.composer textarea:focus { height: 96px; }
.composer .btn { height: 48px; width: 48px; padding: 0; border-radius: 14px; }

/* Yeni iş */
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice label {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer;
  transition: .2s; font-weight: 600;
}
.choice label:hover { border-color: var(--ind-200); }
.choice label .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--ind-50); color: var(--ind); display: grid; place-items: center; flex: none; }
.choice label small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.choice input { display: none; }
.choice label:has(input:checked) { border-color: var(--ind); background: var(--ind-50); box-shadow: 0 0 0 4px rgba(60, 43, 153, .1); }
.choice label:has(input:checked) .ic { background: var(--ind); color: #fff; }
.seg { display: inline-flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg label { padding: 7px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; transition: .2s; }
.seg input { display: none; }
.seg label:has(input:checked) { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.seg .d { width: 8px; height: 8px; border-radius: 50%; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick button { border: 1px solid var(--line-2); background: #fff; border-radius: 20px; padding: 4px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .2s; }
.quick button:hover, .quick button.on { border-color: var(--ind); color: var(--ind); background: var(--ind-50); }
.picker { display: grid; gap: 12px; }
.picker h4 { margin: 0 0 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.people-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.person {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: 1.5px solid var(--line-2); border-radius: 30px;
  cursor: pointer; font-weight: 600; font-size: 14px; transition: .2s; user-select: none;
}
.person input { display: none; }
.person:hover { border-color: var(--ind-200); }
.person:has(input:checked) { border-color: var(--ind); background: var(--ind); color: #fff; }
.person:has(input:checked) .av { border-color: var(--ind); }

/* Tablo */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--bg); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.inactive td { opacity: .55; }
.name-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.bar { height: 6px; border-radius: 6px; background: var(--ind-50); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ind), #6b58dc); }

/* Çözüm arşivi */
.big-search { position: relative; margin-bottom: 20px; }
.big-search .i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 20px; height: 20px; }
.big-search input { height: 58px; padding-left: 52px; padding-right: 120px; font-size: 16px; border-radius: 16px; box-shadow: var(--shadow); border-color: var(--line); }
.big-search .btn { position: absolute; right: 7px; top: 7px; height: 44px; }
.sol-card { display: block; color: var(--text); transition: transform .2s var(--ease), box-shadow .2s; animation: rise .4s var(--ease) both; }
.sol-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sol-card .sol-txt { margin-top: 12px; padding: 12px 14px; background: var(--ok-50); border-radius: 12px; border-left: 3px solid var(--ok); white-space: pre-wrap; font-size: 14px; }
.sol-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 2px; }

/* Firma kartları */
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.co {
  display: block; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text);
  transition: transform .2s var(--ease), box-shadow .2s; animation: rise .4s var(--ease) both;
}
.co:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.co .top { display: flex; align-items: center; gap: 12px; }
.co .logo-box { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 17px; }
.co h3 { margin: 0; font-size: 16px; }
.co .nums { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.co .nums div { font-size: 12px; color: var(--muted); font-weight: 600; }
.co .nums b { display: block; font-size: 20px; color: var(--text); }
.co.off { opacity: .55; }

/* Menü sayfası (mobil) */
.menu-list { display: grid; gap: 8px; }
.menu-list a, .menu-list button {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; width: 100%;
}
.menu-list .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--ind-50); color: var(--ind); display: grid; place-items: center; }

/* Modal */
.overlay { position: fixed; inset: 0; background: rgba(29, 26, 47, .45); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .2s both; }
.modal { max-height: calc(100vh - 32px); overflow-y: auto; }
.modal { width: 100%; max-width: 480px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease) both; }
.modal h2 { font-size: 19px; margin-bottom: 6px; }
.modal p { color: var(--muted); margin: 0 0 16px; }
.modal .actions { justify-content: flex-end; margin-top: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }

/* Bildirim */
#toast { position: fixed; top: 20px; right: 20px; z-index: 200; display: grid; gap: 8px; }
#toast div {
  display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 360px; background: #fff; color: var(--text); padding: 12px 16px;
  border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; border-left: 4px solid var(--ok);
  animation: slidein .35s var(--ease) both;
}
#toast div .i { color: var(--ok); }
#toast div.err { border-left-color: var(--red); }
#toast div.err .i { color: var(--red); }
#toast div.out { animation: slideout .3s forwards; }
@keyframes slidein { from { opacity: 0; transform: translateX(40px); } }
@keyframes slideout { to { opacity: 0; transform: translateX(40px); } }
.alert { background: var(--red-50); color: var(--red-600); padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 14px; }
.alert.ok { background: var(--ok-50); color: var(--ok); }

/* ============================================================ MOBİL */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-side { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form { display: flex; flex-direction: column; align-items: center; padding: 0 0 30px; }
  .auth-mobile-head {
    display: flex; justify-content: center; align-items: center; height: 230px; width: 100%; position: relative; overflow: hidden;
    background: linear-gradient(150deg, var(--ind), var(--ind-800)); border-radius: 0 0 36px 36px;
  }
  .auth-mobile-head img { width: 96px; position: relative; z-index: 1; animation: rise .6s var(--ease) both; }
  .auth-box { padding: 28px 22px 0; }
  .auth-box .logo { display: none; }

  .side, .topbar { display: none; }
  .main { margin-left: 0; padding-bottom: 86px; }
  .content { padding: 4px 16px 30px; }
  .mob-top {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; position: sticky; top: 0; z-index: 15;
    background: rgba(246, 245, 251, .9); backdrop-filter: blur(10px);
  }
  .mob-top img { height: 30px; }
  .mob-top .spacer { flex: 1; }
  .tabbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; background: #fff; border-radius: 22px;
    box-shadow: 0 10px 34px rgba(31, 22, 86, .18); padding: 8px; justify-content: space-around; align-items: center;
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--muted-2); padding: 6px 10px; border-radius: 14px; transition: .2s; }
  .tabbar a.active { color: var(--ind); }
  .tabbar a .i { width: 22px; height: 22px; }
  .tabbar .fab {
    width: 54px; height: 54px; border-radius: 18px; padding: 0; justify-content: center; margin-top: -26px; color: #fff;
    background: linear-gradient(135deg, #d42d1d, var(--red)); box-shadow: 0 10px 22px rgba(189, 33, 18, .4);
  }
  .tabbar .fab .i { width: 26px; height: 26px; }
  .grid-2, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 22px; }
  .hero .mark { width: 90px; right: -10px; top: 18px; transform: none; opacity: .35; }
  .hero h1 { font-size: 23px; }
  .stat b { font-size: 24px; }
  .task { flex-direction: column; align-items: stretch; gap: 10px; }
  .task .right { justify-content: space-between; }
  .task .ttl span.t { white-space: normal; }
  .filters select { flex: 1; min-width: 0; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .tabs a { flex: none; }
  .hide-m { display: none; }
  #toast { left: 16px; right: 16px; top: 12px; }
  #toast div { max-width: none; }
  .msg.mine .text { max-width: 100%; }
}
@media (min-width: 961px) { .only-m { display: none !important; } }

/* ============================================================ GÖREV AKIŞI */
.side-new { margin: 0 4px 18px; width: auto; height: 46px; }
.stat.purple .ic { background: var(--ind-100); color: var(--ind); }
.stat.purple.hot { border-color: var(--ind-200); box-shadow: 0 0 0 4px rgba(60, 43, 153, .08), var(--shadow); }
.stat.purple.hot b { color: var(--ind); }
.hero-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: #d9d3f7; background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 20px; }
.hero-note b { color: #fff; }
.review-card { border: 1.5px solid var(--ind-200); background: linear-gradient(180deg, var(--ind-50), #fff 120px); }
.review-card h2 { display: flex; align-items: center; gap: 8px; color: var(--ind); }

/* "Ömer → Ayşe" */
.pflow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.pflow b { color: var(--text); font-weight: 600; }
.pflow > .i { width: 14px; height: 14px; color: var(--muted-2); }
.pflow .av.sm { width: 22px; height: 22px; font-size: 9px; border-width: 1.5px; }
.task .right .btn { height: 32px; }
.task.st-row-done::before { background: var(--ind); }
.task.st-row-seen, .task.st-row-cancelled { opacity: .75; }
.task.st-row-seen::before { background: var(--ok); }
.task.st-row-cancelled .t { text-decoration: line-through; }

/* Adım çubuğu: Verildi → Başlandı → Tamamlandı → Görüldü */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 6px; position: relative; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.step::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before { background: linear-gradient(90deg, var(--ind), #6b58dc); }
.step .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); color: var(--muted-2); position: relative; z-index: 1; transition: .3s; }
.step .dot .i { width: 16px; height: 16px; }
.step.done .dot { background: var(--ind); border-color: var(--ind); color: #fff; }
.step:last-child.done .dot { background: var(--ok); border-color: var(--ok); }
.step.cur .dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 6px rgba(189, 33, 18, .1); animation: ring 1.8s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 10px rgba(189, 33, 18, .04); } }
.step b { font-size: 13px; display: block; }
.step small { display: block; font-size: 12px; color: var(--muted); }
.stepper.off { opacity: .45; filter: grayscale(1); }

/* Sıradaki adım kutusu */
.next { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg); display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.next .msg-line { font-size: 14.5px; flex: 1; min-width: 220px; }
.next-done { background: var(--ind-50); border: 1px solid var(--ind-100); }
.next-seen { background: var(--ok-50); }
.next .btn { height: 44px; }

/* Geçmişteki büyük olaylar */
.event.big { align-items: flex-start; }
.event.big .box { flex: 1; border-radius: 14px; padding: 12px 14px; color: var(--text); }
.event.big .note { color: var(--text); }
.event.ok-ev .dot { background: var(--ok); color: #fff; }
.event.ok-ev .box { background: var(--ok-50); border: 1px solid #bfe9d6; }
.event.seen-ev .dot { background: var(--ind); color: #fff; }
.event.seen-ev .box { background: var(--ind-50); border: 1px solid var(--ind-100); }
.event.ret-ev .dot { background: var(--red); color: #fff; }
.event.ret-ev .box { background: var(--red-50); border: 1px solid var(--red-100); }

@media (max-width: 960px) {
  .stepper { margin-top: 18px; }
  .step small { font-size: 11px; }
  .step b { font-size: 12px; }
  .next .actions { width: 100%; }
  .next .actions .btn { flex: 1; }
  .task .right { flex-wrap: wrap; gap: 8px; }
}

/* ============================================================ PLANLAYICI */
.plan-chip { color: var(--ind); background: var(--ind-50); padding: 2px 8px; border-radius: 20px; }
.tpl-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.tpl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; background: #fff; border: 1px dashed var(--ind-200);
  color: var(--text); font-weight: 600; font-size: 13.5px; transition: .2s; }
.tpl:hover { border-style: solid; border-color: var(--ind); background: var(--ind-50); transform: translateY(-1px); }
.plan-list { display: grid; gap: 12px; }
.plan { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s; animation: rise .4s var(--ease) both; overflow: hidden; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.plan.off { opacity: .6; }
.plan-main { flex: 1; display: flex; gap: 14px; padding: 16px 18px; color: var(--text); min-width: 0; }
.plan-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, #5a47cf, var(--ind)); box-shadow: 0 6px 14px rgba(60, 43, 153, .25); }
.plan.off .plan-ic { background: var(--muted-2); box-shadow: none; }
.plan .body { min-width: 0; flex: 1; }
.plan .ttl { font-weight: 700; font-size: 15.5px; }
.plan .rule { display: flex; align-items: center; gap: 6px; color: var(--ind); font-weight: 600; font-size: 13.5px; margin-top: 3px; }
.plan .rule .i { width: 15px; height: 15px; }
.plan .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; align-items: center; }
.next-chip { color: var(--text); }
.plan-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 12px; border-left: 1px solid var(--line); background: #fcfcfe; }

/* Aç/kapa anahtarı */
.switch { position: relative; width: 40px; height: 22px; cursor: pointer; display: inline-block; }
.switch input { display: none; }
.switch i { position: absolute; inset: 0; border-radius: 22px; background: var(--line-2); transition: .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .25s var(--ease); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(18px); }

/* Ajanda */
.agenda { position: sticky; top: 84px; }
.agenda h2 { display: flex; align-items: center; gap: 8px; }
.ag-day { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ag-day:first-of-type { border-top: 0; }
.ag-date { width: 46px; flex: none; text-align: center; background: var(--ind-50); border-radius: 12px; padding: 6px 0; color: var(--ind); line-height: 1.1; }
.ag-date b { display: block; font-size: 19px; }
.ag-date span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ag-items { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ag-items small { color: var(--muted); font-size: 12px; font-weight: 600; }
.ag-items a { display: block; color: var(--text); font-weight: 600; font-size: 14px; }
.ag-items a span { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.ag-items a:hover { color: var(--ind); }

/* Plan formu */
.sec { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.sec:first-child { margin-top: 0; }
.sec .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ind); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.tokens { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: -6px; }
.tokens button { border: 1px solid var(--ind-200); background: var(--ind-50); color: var(--ind); border-radius: 8px; padding: 3px 9px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tokens button small { font-weight: 500; color: var(--muted); }
.tokens button:hover { background: var(--ind); color: #fff; }
.tokens button:hover small { color: #d9d3f7; }
.seg-lg label { padding: 9px 16px; font-size: 14.5px; }
.daygrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; }
.daygrid label { display: grid; place-items: center; height: 38px; border-radius: 10px; border: 1.5px solid var(--line-2); cursor: pointer; font-weight: 700; font-size: 14px; transition: .15s; }
.daygrid label:hover { border-color: var(--ind-200); background: var(--ind-50); }
.daygrid label:last-child { grid-column: span 2; font-size: 13px; }
.daygrid input { display: none; }
.daygrid label:has(input:checked) { background: var(--ind); border-color: var(--ind); color: #fff; box-shadow: 0 4px 10px rgba(60, 43, 153, .3); }
.preview { position: sticky; top: 84px; }
.preview h2 { display: flex; align-items: center; gap: 8px; }
.pv-rule { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ind); font-size: 15px; margin-bottom: 8px; }
.pv-title { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-weight: 700; margin-bottom: 10px; }
.pv-dates { display: grid; gap: 6px; }
.pv-date { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.pv-date b { display: block; font-size: 14px; text-transform: capitalize; }
.pv-date span { font-size: 12px; color: var(--muted); }
.pv-date.first { border-color: var(--ind-200); background: var(--ind-50); }
@media (max-width: 960px) {
  .agenda, .preview { position: static; }
  .plan-actions { flex-direction: row; border-left: 0; }
  .plan { flex-direction: column; }
  .plan-actions { border-top: 1px solid var(--line); justify-content: flex-end; }
}

/* İç / dış görev sekmeleri */
.kind-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; max-width: 640px; }
.kind-tabs a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line);
  color: var(--text); transition: .2s; box-shadow: var(--shadow-sm);
}
.kind-tabs a:hover { border-color: var(--ind-200); transform: translateY(-1px); }
.kind-tabs a b { display: block; font-size: 15px; }
.kind-tabs a small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.kind-tabs .kt-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ind-50); color: var(--ind); flex: none; }
.kind-tabs .kt-n { margin-left: auto; min-width: 30px; height: 26px; padding: 0 9px; border-radius: 20px; display: grid; place-items: center; background: var(--bg); font-weight: 800; font-size: 13px; color: var(--muted); }
.kind-tabs a.active { border-color: var(--ind); background: linear-gradient(135deg, #4a37b8, var(--ind)); color: #fff; box-shadow: 0 8px 20px rgba(60, 43, 153, .28); }
.kind-tabs a.active small { color: #d9d3f7; }
.kind-tabs a.active .kt-ic { background: rgba(255,255,255,.16); color: #fff; }
.kind-tabs a.active .kt-n { background: #fff; color: var(--ind); }
.kind-tabs + .tabs a { padding: 6px 12px; font-size: 13.5px; }
@media (max-width: 960px) { .kind-tabs { gap: 8px; } .kind-tabs a { padding: 10px; gap: 8px; } .kind-tabs .kt-ic { width: 34px; height: 34px; } .kind-tabs a small { display: none; } }
