/* AHD Personel: mrclinc.com ve brief.mrclinc.com ile aynı tasarım dili.
   Renkler, yazı ve biçimler oradan birebir alındı. Yeni renk, yazı tipi ya da simge eklenmez;
   ağırlık 500'ü geçmez, işlem düğmeleri haptır, gölge yalnız üzerine gelince. */
:root {
  --black: #000000;
  --white: #ffffff;
  --paper: #fbfbfc;
  --night: #0b0b0c;
  --gray-1: #f5f5f7;
  --gray-2: #e8e8ed;
  --gray-3: #6e6e73;
  --gray-4: #1d1d1f;
  --accent: #004aad;
  --accent-light: #2997ff;
  --accent-hover: #003a85;
  --danger-text: #a3201a;
  --radius-pill: 980px;
  --nav-height: 52px;
  --max-page: 1200px;
  --font: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--white); color: var(--gray-4);
  font-size: 15px; font-weight: 400; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; font-size: inherit; background: none; border: 0; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
b, strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.hidden { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--gray-3); }
.small { font-size: 13px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ─── Üst çubuk (mrclinc.com) ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top);
  background: rgba(251, 251, 252, 0.72); border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner { max-width: var(--max-page); margin: 0 auto; padding: 0 24px; height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; line-height: 0; }
.logo img { height: 44px; width: auto; display: block; }
.nav-label { font-size: 13px; font-weight: 400; color: var(--gray-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }

/* ─── Yazı ─── */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }
.title { font-size: clamp(28px, 4vw, 36px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; color: var(--gray-4); text-wrap: balance; }
.lede { font-size: 15px; font-weight: 300; color: var(--gray-3); line-height: 1.6; }
.label-sm { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--gray-3); }

/* ─── Düğmeler: dolu hap, oklu yazı, beyaz hap, seçenek hapı ─── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--white); padding: 12px 26px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 400; letter-spacing: -0.1px; line-height: 1.2; text-align: center; transition: all 0.25s ease;
}
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.02); }
.btn-primary:disabled { background: var(--gray-2); color: var(--gray-3); cursor: not-allowed; transform: none; }
.btn-primary.lg { padding: 17px 30px; font-size: 17px; letter-spacing: -0.01em; }
.btn-primary.block { width: 100%; }
.btn-ghost { color: var(--accent); font-size: 14px; font-weight: 400; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.btn-ghost:hover { gap: 8px; }
.btn-ghost i { font-style: normal; }
.btn-white {
  display: inline-flex; align-items: center; justify-content: center; background: var(--white); color: var(--gray-4);
  padding: 12px 26px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 400; letter-spacing: -0.1px; transition: all 0.25s ease;
}
.btn-white:hover { transform: scale(1.02); }
.link { font-size: 13px; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; transition: color 0.2s; white-space: nowrap; }
.link:hover { color: var(--accent-hover); }
.link.muted { color: var(--gray-3); }
.link.muted:hover { color: var(--gray-4); }
.link.danger { color: var(--danger-text); }
.link.danger:hover { color: var(--danger-text); opacity: 0.8; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--gray-1); color: var(--gray-4);
  border: 1px solid transparent; padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s ease;
}
.pill:hover { background: var(--gray-2); }
.pill.sel, .pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pill.sel:hover, .pill[aria-pressed="true"]:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ─── Alanlar (brief formu) ─── */
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--accent); }
.input {
  width: 100%; height: 48px; padding: 0 16px; background: var(--gray-1); border: 1px solid transparent; border-radius: 10px;
  font-size: 15px; font-weight: 400; color: var(--gray-4); letter-spacing: -0.01em;
  transition: border-color 0.2s, background 0.2s; -webkit-appearance: none; appearance: none;
}
textarea.input { height: auto; min-height: 96px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.input::placeholder { color: var(--gray-3); opacity: 0.7; }
.input:focus { outline: none; background: var(--white); border-color: var(--accent); }
select.input {
  padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray-3) 50%), linear-gradient(135deg, var(--gray-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.input.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
select.input.sm { padding-right: 28px; background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.error-text { font-size: 13px; font-weight: 400; color: var(--danger-text); line-height: 1.5; margin-top: 12px; }

/* ─── Durum etiketi (brief yönetimi) ─── */
.tag {
  display: inline-block; font-size: 10px; font-weight: 500; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 74, 173, 0.08); color: var(--accent); white-space: nowrap; vertical-align: middle; line-height: 1.5;
}
.tag.muted { background: var(--gray-1); color: var(--gray-3); }
.tag.filled { background: var(--accent); color: var(--white); }
.tag.risk { background: rgba(163, 32, 26, 0.08); color: var(--danger-text); }
.tag.off { background: var(--gray-1); color: var(--gray-3); }

/* ─── Yüzey, tablo, boş durum (brief yönetimi) ─── */
.surface { background: var(--white); border: 1px solid var(--gray-2); border-radius: 14px; }
.table-wrap { background: var(--white); border: 1px solid var(--gray-2); border-radius: 14px; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--gray-4); }
.table th {
  text-align: left; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; color: var(--gray-3);
  padding: 14px 16px; background: var(--gray-1); border-bottom: 1px solid var(--gray-2); white-space: nowrap;
}
.table td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--gray-2); line-height: 1.45; letter-spacing: -0.01em; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--gray-1); }
.cell-primary { font-weight: 500; }
.cell-secondary { color: var(--gray-3); font-size: 12px; margin-top: 2px; }
.empty { padding: 64px 24px; text-align: center; }
.empty-title { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.empty-body { font-size: 14px; font-weight: 300; color: var(--gray-3); }

/* ─── Pencere ─── */
.modal-back {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px;
  background: rgba(29, 29, 31, 0.28); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  animation: fadeIn 0.2s ease;
}
.modal { background: var(--white); border: 1px solid var(--gray-2); border-radius: 14px; width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 28px; }
.modal h3 { font-size: 24px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 14px; text-wrap: balance; }
.modal .lede { font-size: 14px; margin-bottom: 20px; }
.modal .field { margin-bottom: 18px; }
.modal .actions { display: flex; gap: 20px; justify-content: flex-end; align-items: center; margin-top: 24px; flex-wrap: wrap; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 360px) {
  .nav-inner { padding: 0 16px; }
  .logo img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
