/* ===== Bilgi İşlem Destek — tema ===== */
:root {
  --bg: #f3f5fa; --card: #fff; --text: #172036; --muted: #69728a; --line: #e4e8f0; --line-2: #eef1f6;
  --primary: #2f5bea; --primary-d: #2248c9; --primary-soft: #eaf0ff; --navy: #0f1b3d;
  --danger: #d33a2f; --danger-soft: #fdeeed;
  --s-yeni: #64708a; --s-incelendi: #7c4dff; --s-sirada: #e0890b; --s-islemde: #2f5bea; --s-tamamlandi: #149a54;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,27,61,.04), 0 4px 16px rgba(16,27,61,.05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.25; margin: 2px 0 2px; letter-spacing: -.01em; word-break: break-word; }
h2 { font-size: 20px; margin: 0 0 8px; }
h3 { font-size: 12.5px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
p { margin: 0 0 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 56px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.pre { white-space: pre-wrap; word-break: break-word; margin: 0 0 22px; }
.hint { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.mobile-only { display: none !important; }
.narrow { max-width: 460px; margin: 4vh auto 0; }

/* ===== Üst bar ===== */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(15,27,61,.18); }
.topbar-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { color: #fff; display: flex; align-items: center; gap: 10px; font-size: 16px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-text { font-weight: 500; opacity: .95; } .brand-text b { font-weight: 700; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #4b74ff, #2f5bea); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; flex: none; }
.logo-lg { width: 56px; height: 56px; font-size: 20px; border-radius: 14px; }
.menu { display: flex; align-items: center; flex: 1; gap: 24px; }
.menu nav { display: flex; gap: 4px; flex: 1; }
.menu nav a { color: #c6cfe6; padding: 8px 14px; border-radius: 8px; font-weight: 500; }
.menu nav a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.menu nav a.on { color: #fff; background: rgba(255,255,255,.12); }
.userbox { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.userbox form { margin: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #2a3a6b; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; }
.userinfo { display: flex; flex-direction: column; line-height: 1.2; }
.userinfo b { font-weight: 600; } .userinfo small { color: #9aa6c6; font-size: 12px; }
.menu-link { color: #c6cfe6; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.menu-link:hover { color: #fff; text-decoration: none; }
.menu-toggle, .hamburger { display: none; }

/* ===== Kart, form, buton ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.page-head p { margin: 0; }
.back { display: inline-block; font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
input, select, textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 13px; border: 1px solid #d8deea; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2369728a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,91,234,.14); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-card { max-width: 780px; padding: 28px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: #fff; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, transform .05s; min-height: 42px; }
.btn:hover { background: var(--primary-d); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 6px 12px; font-size: 13.5px; min-height: 34px; border-radius: 8px; }
.btn-lg { min-height: 48px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: #fff; color: var(--text); border-color: #d8deea; }
.btn-ghost:hover { background: #f4f6fb; }
.btn-ghost.danger { color: var(--danger); }
.btn-ghost.danger:hover { background: var(--danger-soft); border-color: #f3c4c0; }
.plus { font-size: 18px; line-height: 1; margin-top: -2px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; border: 1px solid; font-size: 14.5px; }
.alert-success { background: #ecfaf2; border-color: #bfe8d0; color: #11643a; }
.alert-error { background: var(--danger-soft); border-color: #f5c9c5; color: #8a1f17; }
.alert-info { background: var(--primary-soft); border-color: #cddbff; color: #1b3a99; }
.pw-alert { display: flex; flex-direction: column; gap: 6px; }
code.pw { align-self: flex-start; font-size: 19px; background: #fff; padding: 4px 12px; border-radius: 8px; border: 1px solid #cddbff; user-select: all; letter-spacing: .03em; }

/* ===== Giriş ekranı ===== */
.no-nav main.wrap { padding-top: 0; }
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; min-height: 100dvh; width: 100vw; margin-left: calc(50% - 50vw); }
body.no-nav { overflow-x: hidden; }
.auth-side { background: radial-gradient(circle at 20% 0%, #2c4bb8 0, transparent 55%), linear-gradient(160deg, #0f1b3d 0%, #182a63 100%); color: #fff; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-side h2 { font-size: 34px; line-height: 1.15; margin: 8px 0 0; letter-spacing: -.02em; }
.auth-side p { color: #c3cde8; max-width: 420px; font-size: 16px; }
.auth-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.auth-steps li { display: flex; align-items: center; gap: 12px; color: #dfe6f7; }
.auth-steps span { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.card.auth-card { padding: 32px; max-width: none; }
.auth-head { margin-bottom: 22px; }
.auth-head .logo { margin-bottom: 14px; }
.auth-head h1 { font-size: 24px; }

/* ===== Tablolar ===== */
.table-card { padding: 0; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfd; font-weight: 700; white-space: nowrap; }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: #f7f9ff; }
tbody tr.no-click { cursor: default; } tbody tr.no-click:hover { background: none; }
tbody tr:last-child td { border-bottom: 0; }
tr.inactive td { opacity: .55; }
.c-id { color: var(--muted); font-weight: 600; white-space: nowrap; }
td[data-label="Tarih"], td[data-label="Güncelleme"] { white-space: nowrap; }
.c-title a { color: var(--text); font-weight: 600; }
.c-title a:hover { color: var(--primary); }
.sub { display: block; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions form { display: inline-block; margin-left: 6px; }
.empty { padding: 56px 24px; }
.empty p { max-width: 460px; margin: 0 auto 18px; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 24px; font-weight: 700; }

/* ===== Rozetler ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: #eef0f5; color: var(--s-yeni); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-incelendi { background: #f1ebff; color: var(--s-incelendi); }
.badge-sirada { background: #fff4e2; color: #b76d00; }
.badge-islemde { background: var(--primary-soft); color: var(--s-islemde); }
.badge-tamamlandi { background: #e6f7ee; color: var(--s-tamamlandi); }
.prio { font-size: 13px; font-weight: 600; color: var(--text); }
.prio-Acil { color: var(--danger); } .prio-Yüksek { color: #c2530c; } .prio-Düşük { color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-on { background: #e6f7ee; color: var(--s-tamamlandi); }
.pill-wait { background: #fff4e2; color: #b76d00; }
.pill-off { background: #eef0f5; color: var(--muted); }

/* ===== Aşama göstergesi ===== */
.stepper-card { padding: 24px 22px 20px; }
.stepper { display: flex; list-style: none; padding: 0; margin: 0; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; font-size: 13px; color: var(--muted); text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 700; z-index: 1; font-size: 14px; }
.stepper li.done .dot { background: var(--s-tamamlandi); border-color: var(--s-tamamlandi); color: #fff; }
.stepper li.done::before, .stepper li.current::before { background: var(--s-tamamlandi); }
.stepper li.current { color: var(--text); font-weight: 700; }
.stepper li.current .dot { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(47,91,234,.15); }
.stepper li.current:last-child .dot { background: var(--s-tamamlandi); border-color: var(--s-tamamlandi); box-shadow: 0 0 0 5px rgba(20,154,84,.15); }

/* ===== Talep detayı ===== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.split > .card, .side > .card:last-child { margin-bottom: 0; }
.side { display: grid; gap: 18px; } .side > .card { margin-bottom: 0; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.meta dt { color: var(--muted); } .meta dd { margin: 0; font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 0 0 18px 22px; position: relative; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--s-yeni); }
.timeline li.tl-incelendi::before { border-color: var(--s-incelendi); } .timeline li.tl-sirada::before { border-color: var(--s-sirada); }
.timeline li.tl-islemde::before { border-color: var(--s-islemde); } .timeline li.tl-tamamlandi::before { border-color: var(--s-tamamlandi); background: var(--s-tamamlandi); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.timeline .note { margin: 8px 0 0; background: #f6f8fc; border: 1px solid var(--line-2); padding: 10px 13px; border-radius: 10px; font-size: 14px; }

/* ===== Yönetim özetleri ===== */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); display: flex; flex-direction: column; font-size: 13px; position: relative; overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s, transform .1s; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--text); }
.stat:hover { text-decoration: none; border-color: #c9d3ea; }
.stat.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,91,234,.15); }
.stat .num { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1.15; }
.stat .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-yeni::before { background: var(--s-yeni); } .stat-incelendi::before { background: var(--s-incelendi); }
.stat-sirada::before { background: var(--s-sirada); } .stat-islemde::before { background: var(--s-islemde); }
.stat-tamamlandi::before { background: var(--s-tamamlandi); }
.search { display: flex; gap: 8px; margin-bottom: 16px; }
.search input { margin: 0; }

/* ===== Ortak küçük parçalar ===== */
.nowrap { white-space: nowrap; }
.mt { margin-top: 14px; } .mt-lg { margin-top: 26px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 7px; border-radius: 999px; background: #ff5a4e; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1; }
.more-filters .count { background: var(--primary); }
.hamburger { position: relative; }
.dot-badge { position: absolute; top: 8px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #ff5a4e; border: 2px solid var(--navy); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.danger { color: var(--danger) !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #d8deea; color: var(--text); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chip:hover { text-decoration: none; border-color: #b9c4dc; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on .muted { color: #b8c3e0; }
.split-form { grid-template-columns: minmax(0, 1fr) 300px; }
.tips .tip-list { padding-left: 18px; margin: 0 0 16px; display: grid; gap: 10px; font-size: 14px; color: #3c465e; }

/* Listedeki yeni hareket göstergesi */
.new-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(47,91,234,.15); }
tr.is-unread .c-title a { font-weight: 800; }
tr.is-unread { background: #f8faff; }
.row-icons { display: inline-flex; gap: 8px; margin-left: 8px; vertical-align: 1px; }
.ri { font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.ri-rate { color: #b76d00; font-weight: 600; }
.ri-star { color: #d48a00; }

/* Durum kartları (7'li) */
.stats-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.stat-open::before { background: var(--navy); }
.stat-iptal::before { background: #a3abbd; }
.badge-iptal { background: #f1f2f5; color: #7b8396; }
.badge-iptal::before { background: #a3abbd; }

/* Filtreler */
.filters { margin-bottom: 8px; }
.filters .search { margin-bottom: 10px; }
.more-filters { margin-bottom: 10px; }
.more-filters > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--primary); list-style: none; display: inline-flex; align-items: center; padding: 4px 0; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary::before { content: "▸"; margin-right: 6px; transition: transform .15s; }
.more-filters[open] > summary::before { transform: rotate(90deg); }
.filter-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 8px; }
.filter-grid label { margin: 0; }
.filter-actions { display: flex; gap: 8px; }

/* ===== Dosya ekleme ===== */
.file-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border: 1.5px dashed #b9c4dc; border-radius: 10px; color: var(--primary); font-weight: 600; font-size: 14px; cursor: pointer; background: #fafbff; min-height: 42px; }
.file-btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.file-input:focus-visible + .file-btn { box-shadow: 0 0 0 4px rgba(47,91,234,.2); }
.file-hint { font-size: 12.5px; color: var(--muted); }
.file-list { list-style: none; padding: 0; margin: 0; flex-basis: 100%; display: grid; gap: 6px; }
.file-list:empty { display: none; }
.file-list li { display: flex; align-items: center; gap: 10px; background: #f6f8fc; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 6px 6px 8px; font-size: 13.5px; min-width: 0; }
.file-list img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; }
.ext { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: #e3e9f8; color: #3b4f8c; font-size: 10.5px; font-weight: 800; flex: none; }
.fl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.fl-remove { width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; font-size: 20px; color: var(--muted); cursor: pointer; flex: none; }
.fl-remove:hover { background: var(--danger-soft); color: var(--danger); }

/* Ekler (görüntüleme) */
.attachments { display: grid; gap: 8px; margin-top: 4px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { display: block; width: 112px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #eef1f6; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.thumb:hover img { transform: scale(1.04); }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-size: 13.5px; max-width: 420px; min-width: 0; }
.file-chip:hover { text-decoration: none; border-color: #b9c4dc; }
.fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.fsize { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ===== Yazışma akışı ===== */
.feed { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.event { align-self: center; text-align: center; max-width: 90%; }
.event-line { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; }
.event-note { margin: 6px auto 0; background: #f6f8fc; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; font-size: 14px; text-align: left; display: block; width: fit-content; max-width: 100%; }
.msg { max-width: 82%; align-self: flex-start; }
.msg-mine { align-self: flex-end; }
.msg-meta { font-size: 12.5px; margin: 0 4px 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg-mine .msg-meta { justify-content: flex-end; }
.tag { font-size: 11px; font-weight: 700; background: var(--primary-soft); color: var(--primary); padding: 1px 7px; border-radius: 999px; }
.bubble { background: #f1f3f8; border-radius: 4px 16px 16px 16px; padding: 10px 14px; display: grid; gap: 8px; }
.bubble .pre { margin: 0; }
.msg-staff .bubble { background: #eef3ff; }
.msg-mine .bubble { background: var(--primary); color: #fff; border-radius: 16px 4px 16px 16px; }
.msg-mine .file-chip { background: rgba(255,255,255,.95); }
.composer { border-top: 1px solid var(--line-2); padding-top: 16px; display: grid; gap: 10px; }
.composer textarea { margin: 0; min-height: 52px; resize: none; }
.composer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.composer-row .file-field { flex: 1; min-width: 0; }
.closed-note { border-top: 1px solid var(--line-2); padding-top: 14px; text-align: center; }

/* ===== Durum / puan kartları ===== */
.banner { display: flex; align-items: center; gap: 14px; }
.banner-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; background: #eef0f5; color: var(--muted); flex: none; }
.rate-card { border-color: #f3d79b; background: linear-gradient(180deg, #fffaf0, #fff 70%); }
.rate-card h2 { margin-bottom: 4px; }
.stars-input { border: 0; padding: 0; margin: 10px 0 0; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 40px; line-height: 1; color: #d9dde6; cursor: pointer; margin: 0; padding: 2px; transition: color .1s, transform .1s; font-weight: 400; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: #f5a623; }
.stars-input label:active { transform: scale(.92); }
.stars-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 6px; }
.stars-caption { min-height: 20px; font-weight: 600; }
.stars i { font-style: normal; color: #d9dde6; font-size: 18px; }
.stars i.on { color: #f5a623; }
.small-stars i { font-size: 14px; }
.rated > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rated .pre { margin: 10px 0 0; }
.cancel-box > summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 14px; list-style: none; }
.cancel-box > summary::-webkit-details-marker { display: none; }
.cancel-box[open] > summary { margin-bottom: 10px; color: var(--text); }
.main-col { display: grid; gap: 18px; min-width: 0; } .main-col > .card { margin-bottom: 0; }

/* ===== Raporlar ===== */
.range-chips { margin-bottom: 18px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); min-width: 0; }
.kpi-lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-num { font-size: 28px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.kpi-num small { font-size: 15px; color: var(--muted); font-weight: 600; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.chart-head h3 { margin: 0; }
.vbars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 220px; align-items: end; padding-top: 8px; border-bottom: 1px solid var(--line); }
.vbar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; }
.vbar-fill { width: min(100%, 38px); background: var(--primary); border-radius: 4px 4px 0 0; transition: background .15s; }
.vbar:hover .vbar-fill, .vbar:focus .vbar-fill { background: var(--primary-d); }
.vbar-val { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.vbar-lbl { position: absolute; bottom: -22px; font-size: 11.5px; color: var(--muted); }
.chart-card .table-toggle { margin-top: 32px; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none; box-shadow: 0 4px 14px rgba(15,27,61,.25); }
.vbar[data-tip]:hover::after, .vbar[data-tip]:focus::after { bottom: auto; top: -30px; }
.vbar:first-child[data-tip]:hover::after, .vbar:nth-child(2)[data-tip]:hover::after, .vbar:first-child[data-tip]:focus::after, .vbar:nth-child(2)[data-tip]:focus::after { left: 0; transform: none; }
.vbar:last-child[data-tip]:hover::after, .vbar:nth-last-child(2)[data-tip]:hover::after, .vbar:last-child[data-tip]:focus::after, .vbar:nth-last-child(2)[data-tip]:focus::after { left: auto; right: 0; transform: none; }
.table-toggle > summary { cursor: pointer; font-size: 13.5px; color: var(--primary); font-weight: 600; }
.mini-table { margin-top: 10px; font-size: 13.5px; }
.mini-table th, .mini-table td { padding: 7px 10px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; align-items: start; }
.report-grid > .card { margin: 0; }
.hbar { margin-bottom: 12px; }
.hbar[data-tip]:hover::after { bottom: auto; top: 100%; margin-top: 4px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.hbar-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-val { white-space: nowrap; font-size: 13px; }
.hbar-track { height: 10px; background: #eef1f6; border-radius: 999px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.hbar-inline { display: grid; grid-template-columns: 44px 1fr 36px; align-items: center; gap: 10px; }
.hbar-inline .hbar-val { text-align: right; }
.stars-label { color: #b77b00; font-weight: 700; font-size: 13.5px; }
.comments { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.comments li { border-left: 3px solid #f3d79b; padding: 2px 0 2px 12px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.comments .pre { margin: 4px 0 0; font-size: 14px; }

/* ===== Bilgi bankası ===== */
.kb-hero { padding: 32px; background: radial-gradient(circle at 100% 0, #e4ebff 0, transparent 50%), #fff; }
.kb-hero h1 { font-size: 28px; }
.kb-hero p { max-width: 620px; }
.search-lg input { font-size: 17px; padding: 14px 16px; }
.search-lg .btn { min-height: 52px; padding: 0 24px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.kb-item { display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--text); transition: border-color .15s, transform .15s; }
.kb-item:hover { text-decoration: none; border-color: #b9c4dc; transform: translateY(-2px); }
.kb-item h2 { font-size: 17px; margin: 2px 0 0; }
.kb-item p { font-size: 14px; margin: 0; flex: 1; }
.kb-cat { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.kb-foot { margin-top: 6px; }
.popular-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.popular-list .muted { margin-left: 6px; }
.kb-wrap { max-width: 820px; margin: 0 auto; }
.kb-article { padding: 32px; }
.kb-article-head { border-bottom: 1px solid var(--line-2); padding-bottom: 16px; margin-bottom: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.kb-article-head h1 { font-size: 28px; margin: 2px 0; }
.kb-article-head p { margin: 0; }
.kb-body { font-size: 16px; line-height: 1.7; }
.kb-body h2 { font-size: 19px; margin: 26px 0 10px; }
.kb-body p { margin: 0 0 14px; }
.kb-body ul, .kb-body ol { margin: 0 0 16px; padding-left: 24px; display: grid; gap: 6px; }
.kb-body ol li::marker { font-weight: 700; color: var(--primary); }
.kb-body code, .syntax code, .ef-name code { background: #f1f3f8; padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.kb-body figure { margin: 16px 0; }
.kb-body figure img, .kb-images .thumb img { border-radius: 10px; }
.kb-body figure img { max-width: 100%; height: auto; border: 1px solid var(--line); display: block; }
.kb-note { background: #fff8e8; border: 1px solid #f3dda5; border-left: 4px solid #e0a400; padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-size: 15px; }
.kb-images { margin-top: 18px; }
.feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.feedback-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.feedback-actions form { margin: 0; }
.related { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.kb-suggest { background: #fffbea; border: 1px solid #f3dda5; border-radius: 12px; padding: 14px 16px; margin: -4px 0 16px; }
.kb-suggest-head { display: flex; align-items: center; gap: 8px; color: #8a5a00; margin-bottom: 8px; font-size: 14.5px; }
.kb-suggest ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.kb-suggest li a { font-weight: 600; }
.kb-suggest li small { display: block; color: var(--muted); font-size: 13px; }
textarea.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; }
.syntax { font-size: 13.5px; margin-bottom: 12px; }
.syntax td { padding: 6px 4px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.existing-files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.existing-files li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 8px 8px; }
.existing-files img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; }
.ef-name { flex: 1; min-width: 0; font-size: 13.5px; word-break: break-all; }
.ef-remove { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--danger); font-weight: 600; white-space: nowrap; cursor: pointer; }
.ef-remove input { width: 18px; height: 18px; margin: 0; }
.delete-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-form { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid label:first-child { grid-column: 1 / -1; }
  .split { grid-template-columns: minmax(0, 1fr) 320px; }
  .userinfo { display: none; }
}

/* ===== Mobil ===== */
@media (max-width: 820px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 20px; padding-bottom: 40px; }
  h1 { font-size: 22px; }
  .mobile-only { display: inline-flex !important; }

  /* Açılır menü */
  .topbar-inner { min-height: 58px; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
  .hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; margin-right: -8px; cursor: pointer; padding: 10px; border-radius: 8px; }
  .hamburger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-toggle:checked + .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .hamburger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 14px; border-top: 1px solid rgba(255,255,255,.1); }
  .menu-toggle:checked ~ .menu { display: flex; }
  .menu nav { flex-direction: column; gap: 2px; padding: 8px 0; }
  .menu nav a { padding: 12px 12px; font-size: 16px; }
  .userbox { flex-wrap: wrap; gap: 10px 16px; padding: 12px 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
  .userinfo { display: flex; flex: 1; }
  .userbox .menu-link { font-size: 15px; padding: 8px 0; }

  .page-head { align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
  .page-head > div { flex: 1 1 220px; min-width: 0; }
  .card { padding: 18px; border-radius: 12px; }
  .form-card { padding: 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; }
  .actions .btn { width: 100%; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat .num { font-size: 22px; }
  .stat .lbl { font-size: 12px; }

  /* Tablolar → kartlar */
  .table-card { background: transparent; border: 0; box-shadow: none; overflow: visible; padding: 0; }
  .rtable thead { display: none; }
  .rtable, .rtable tbody { display: block; }
  .rtable tr { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
  .rtable td { display: block; padding: 0; border: 0; font-size: 14px; min-width: 0; }
  .rtable td.c-id { grid-column: 1; grid-row: 1; font-size: 13px; }
  .rtable td.c-status { grid-column: 3; grid-row: 1; justify-self: end; }
  .rtable td.c-title { grid-column: 1 / -1; grid-row: 2; font-size: 15.5px; margin-bottom: 4px; }
  .rtable td.c-title:first-child { grid-row: 1; grid-column: 1 / 3; }
  .rtable td[data-label] { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
  .rtable td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; flex: none; }
  .rtable td[data-label] .who { text-align: right; }
  .rtable td[data-label] .sub { display: inline; }
  .rtable td[data-label] .sub::before { content: " · "; }
  .rtable td.row-actions { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
  .rtable td.row-actions form { margin: 0; flex: 1; }
  .rtable td.row-actions .btn { width: 100%; }
  .c-title .sub { display: block; margin-top: 2px; font-weight: 400; }

  /* Aşamalar dikey */
  .stepper-card { padding: 18px; }
  .stepper { flex-direction: column; gap: 0; }
  .stepper li { flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 7px 0; font-size: 14.5px; }
  .stepper li::before { top: auto; bottom: 50%; right: auto; left: 16px; width: 3px; height: 100%; transform: translateX(-50%); }
  .stepper .dot { width: 32px; height: 32px; font-size: 13px; }

  /* Giriş */
  .auth { grid-template-columns: 1fr; min-height: auto; }
  .auth-side { display: none; }
  .auth-main { padding: 9vh 20px 40px; }
  .auth-card .mobile-only { display: grid !important; }
  .narrow { margin-top: 2vh; }
  .card.auth-card { padding: 24px; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-text { font-size: 15px; }
}

/* ===== Mobil: yeni bileşenler ===== */
@media (max-width: 820px) {
  .menu nav a { display: flex; align-items: center; justify-content: space-between; }
  .stats-7 { display: flex; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .stats-7::-webkit-scrollbar { display: none; }
  .stats-7 .stat { flex: 0 0 104px; scroll-snap-align: start; }
  .stats-7 .stat .num { font-size: 21px; }
  .stats-7 .stat .lbl { font-size: 12px; overflow: visible; white-space: nowrap; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .page-head > .btn-ghost { width: 100%; }
  .filter-grid { grid-template-columns: 1fr 1fr; padding: 14px; }
  .filter-actions { grid-column: 1 / -1; }
  .filter-actions .btn { flex: 1; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .row-icons { display: flex; margin: 6px 0 0; }
  .rtable td.c-title .new-dot { margin-right: 6px; }

  .msg { max-width: 92%; }
  .event { max-width: 100%; }
  .composer-row { flex-direction: column; align-items: stretch; }
  .composer-row .btn { width: 100%; }
  .thumb { width: calc(33.33% - 6px); height: 80px; }
  .bubble .thumb { width: 96px; height: 72px; }
  .file-chip { max-width: 100%; }
  .stars-input label { font-size: 44px; padding: 2px 3px; }
  .rate-card .btn { width: 100%; }

  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px; }
  .kpi:first-child { grid-column: 1 / -1; }
  .kpi-num { font-size: 22px; }
  .report-grid { grid-template-columns: 1fr; }
  .vbars { gap: 3px; height: 180px; }
  .vbar-val { font-size: 10.5px; }
  .vbar-lbl { font-size: 10px; }
  [data-tip]:hover::after { display: none; }
  [data-tip]:focus::after { display: block; }
  .hbar[data-tip]:focus::after { display: none; }

  .kb-hero { padding: 20px; }
  .kb-hero h1 { font-size: 23px; }
  .search-lg .btn { padding: 0 16px; }
  .kb-grid { grid-template-columns: 1fr; gap: 10px; }
  .kb-article { padding: 20px; }
  .kb-article-head h1 { font-size: 22px; }
  .kb-body { font-size: 15.5px; }
  .feedback { flex-direction: column; align-items: stretch; text-align: center; }
  .feedback-actions { flex-direction: column; }
  .feedback-actions .btn, .feedback-actions form { width: 100%; }
  .actions .btn-ghost[name="after"] { white-space: normal; }
}
