/* ============================================================
   Yıldırım & Soran Hukuk Bürosu — "Kâğıt & Mürekkep" Tasarım Sistemi
   Renkler: lak yeşili, pirinç, mühür kırmızısı, kemik, mürekkep
   Yazı: Fraunces (başlık) + IBM Plex Sans (gövde)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Açık tema (kemik & mürekkep) */
  --ink: #1A211D;
  --ink-soft: #38423C;
  --faded: #5F6A64;
  --line: #DEDBD0;
  --bone: #EFEFE8;
  --paper: #FBFAF5;
  --paper-2: #F6F5EE;
  --lac: #13201B;
  --lac-deep: #0E1A16;
  --brass: #BE8F3E;
  --brass-soft: #DDB45F;
  --brass-tint: #F3E6CB;
  --seal: #8E2F3C;
  --seal-tint: #F2DEE0;
  --ok: #2E5B45;
  --ok-tint: #DCE8E0;
  --warn: #9A6B12;
  --warn-tint: #F6EAD0;
  --info: #3A5568;
  --info-tint: #DEE7EE;
  --shadow: 0 1px 2px rgba(20,28,24,.06), 0 8px 24px -12px rgba(20,28,24,.18);
  --shadow-sm: 0 1px 2px rgba(20,28,24,.08);
  --radius: 6px;
  --radius-lg: 10px;
  --sidebar-w: 252px;
  --topbar-h: 62px;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html[data-theme='dark'] {
  --ink: #EFEFE8;
  --ink-soft: #C9CFC8;
  --faded: #8C968F;
  --line: #2E3A34;
  --bone: #101A16;
  --paper: #0E1A16;
  --paper-2: #13201B;
  --lac: #0A1310;
  --lac-deep: #0A1310;
  --brass: #DDB45F;
  --brass-soft: #E7C77E;
  --brass-tint: #2A2416;
  --seal: #D98A94;
  --seal-tint: #34161B;
  --ok: #7FB79A;
  --ok-tint: #16301F;
  --warn: #E0B55C;
  --warn-tint: #33280F;
  --info: #9BB6C9;
  --info-tint: #14252E;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .serif { font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: 1.9rem; margin: 0 0 .4rem; }
h2 { font-size: 1.4rem; margin: 0 0 .35rem; }
h3 { font-size: 1.12rem; margin: 0 0 .3rem; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--brass-soft); color: #1A211D; }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.muted { color: var(--faded); }
.small { font-size: .82rem; }
.tiny { font-size: .74rem; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: .6rem; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: .6rem; }
.gap-lg { gap: 1.1rem; }
.mt { margin-top: 1rem; }
.mt-sm { margin-top: .5rem; }
.mb { margin-bottom: 1rem; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }

/* ---------- İkon ölçeği (merkezî) ----------
   Tüm satır içi SVG'ler için güvenli, KÜÇÜK varsayılan. Bağlama özel kurallar
   aşağıda bunu geçersiz kılar; böylece ikonlar hiçbir yerde varsayılan
   (~300px) boyuta sıçramaz. */
svg { width: 16px; height: 16px; flex: none; }
/* Kart başlığı simgesi: hafif pirinç tonlu, dengeli boyut */
.card-head > svg { width: 17px; height: 17px; color: var(--brass); opacity: .95; }
/* Düğme / uyarı / liste / araç çubuğu simgeleri daha ince kalır */
.btn svg { width: 15px; height: 15px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-icon { line-height: 0; }
.alert svg { width: 17px; height: 17px; margin-top: 1px; }
.list-item > svg { width: 16px; height: 16px; color: var(--faded); }
.toolbar svg { width: 15px; height: 15px; }
.toast svg { width: 15px; height: 15px; vertical-align: -2px; }
.seg svg, .tag svg { width: 13px; height: 13px; }
.stat svg { width: 15px; height: 15px; }

/* ---------- Giriş ekranı ---------- */
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--lac-deep);
}
.auth-art {
  position: relative; overflow: hidden; color: #EFEFE8;
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(190,143,62,.16), transparent 60%),
    radial-gradient(900px 500px at 90% 90%, rgba(142,47,60,.16), transparent 55%),
    linear-gradient(160deg, #0E1A16, #13201B 55%, #0C1713);
  padding: 4rem 3.4rem; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art .seal { width: 74px; height: 74px; opacity: .92; }
.auth-art h1 { font-size: 3.05rem; color: #FBFAF5; margin: 1.6rem 0 .7rem; line-height: 1.05; }
.auth-art p.lede { font-size: 1.06rem; color: #C6CFC8; max-width: 34ch; }
.auth-art .art-foot { font-size: .8rem; color: #7E8A83; letter-spacing: .04em; }
.auth-art ul.tick { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .55rem; }
.auth-art ul.tick li { display: flex; gap: .6rem; align-items: flex-start; color: #D5DCD6; font-size: .92rem; }
.auth-art ul.tick svg { flex: none; margin-top: 3px; color: var(--brass-soft); }
.auth-panel {
  background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 2.4rem;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card .brandmark { display: none; }
.field { margin-bottom: .95rem; }
.field label { display: block; font-size: .8rem; color: var(--faded); margin-bottom: .3rem; font-weight: 500; letter-spacing: .01em; }
.input, select.input, textarea.input {
  width: 100%; padding: .62rem .7rem; border: 1px solid var(--line);
  background: var(--paper-2); border-radius: var(--radius); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  color-scheme: light dark;
}
html[data-theme='dark'] .input { background: #16221D; }
.input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-tint); }
textarea.input { min-height: 92px; resize: vertical; line-height: 1.5; }
.pass-wrap { position: relative; }
.pass-wrap .input { padding-right: 2.7rem; }
.pass-toggle {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--faded); cursor: pointer;
}
.pass-toggle:hover { color: var(--ink); background: var(--brass-tint); }
.pass-toggle svg { width: 18px; height: 18px; }
.help { font-size: .76rem; color: var(--faded); margin-top: .28rem; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem; justify-content: center;
  padding: .55rem .9rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--paper-2); color: var(--ink); font-weight: 500; font-size: .88rem;
  transition: background .14s, border-color .14s, transform .05s;
}
.btn:hover { border-color: var(--brass); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--lac); color: #F3EFE4; border-color: var(--lac); }
.btn-primary:hover { background: #1C2C25; border-color: #1C2C25; }
html[data-theme='dark'] .btn-primary { background: var(--brass); color: #1A211D; border-color: var(--brass); }
.btn-brass { background: var(--brass); color: #1A211D; border-color: var(--brass); font-weight: 600; }
.btn-brass:hover { background: var(--brass-soft); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--faded); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--line); color: var(--ink); }
.btn-danger { background: transparent; color: var(--seal); border-color: var(--seal); }
.btn-danger:hover { background: var(--seal-tint); }
.btn-sm { padding: .34rem .58rem; font-size: .78rem; }
.btn-icon { padding: .42rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Uygulama iskeleti ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--lac-deep); color: #C6CFC8; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar .s-brand { padding: 1.15rem 1.15rem 1rem; display: flex; gap: .7rem; align-items: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar .s-brand .seal { width: 34px; height: 34px; flex: none; color: var(--brass-soft); }
.sidebar .s-brand .bn { font-family: var(--font-head); font-size: 1.02rem; color: #FBFAF5; line-height: 1.15; }
.sidebar .s-brand .bs { font-size: .68rem; color: #7E8A83; letter-spacing: .06em; text-transform: uppercase; }
.nav { padding: .7rem .6rem 2rem; flex: 1; }
.nav .nav-group { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #64706A; padding: .9rem .7rem .35rem; }
.nav a {
  display: flex; align-items: center; gap: .62rem; padding: .5rem .7rem; border-radius: var(--radius);
  color: #C6CFC8; font-size: .875rem; transition: background .13s, color .13s;
}
.nav a:hover { background: rgba(255,255,255,.05); color: #FBFAF5; }
.nav a.active { background: rgba(190,143,62,.14); color: var(--brass-soft); }
.nav a.active svg { color: var(--brass-soft); }
.nav a svg { width: 17px; height: 17px; flex: none; opacity: .9; }
.nav .badge { margin-left: auto; }
.s-foot { padding: .8rem 1rem; border-top: 1px solid rgba(255,255,255,.07); font-size: .74rem; color: #64706A; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .8rem; padding: 0 1.1rem;
}
.topbar .hamburger { display: none; }
.topbar h2 { margin: 0; font-size: 1.16rem; }
.content { padding: 1.3rem 1.4rem 3rem; max-width: 1400px; width: 100%; margin: 0 auto; }

/* ---------- Kartlar ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-head { padding: .85rem 1rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; }
.card-head h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 1rem; }
.card-body.tight { padding: .6rem; }
.grid { display: grid; gap: 1rem; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.dash { grid-template-columns: repeat(2, minmax(0,1fr)); }

/* ---------- İstatistik kutuları ---------- */
.stat { padding: 1rem 1.05rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
.stat .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faded); }
.stat .v { font-family: var(--font-head); font-size: 1.85rem; margin-top: .2rem; }
.stat .sub { font-size: .78rem; color: var(--faded); }
.stat.accent { border-left: 3px solid var(--brass); }
.stat.danger { border-left: 3px solid var(--seal); }
.stat.ok { border-left: 3px solid var(--ok); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.tbl th {
  text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--faded); font-weight: 600; padding: .6rem .7rem; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: var(--paper-2);
}
html[data-theme='dark'] table.tbl th { background: #131F1A; }
table.tbl td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tbody tr:hover { background: var(--paper-2); }
html[data-theme='dark'] table.tbl tbody tr:hover { background: #16221D; }
table.tbl tr.clickable { cursor: pointer; }
table.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 2.2rem 1rem; text-align: center; color: var(--faded); font-size: .9rem; }

/* ---------- Etiket / rozet ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .3rem; padding: .13rem .5rem; border-radius: 999px;
  font-size: .72rem; font-weight: 500; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-soft);
  white-space: nowrap;
}
.tag.brass { background: var(--brass-tint); border-color: transparent; color: var(--warn); }
.tag.seal { background: var(--seal-tint); border-color: transparent; color: var(--seal); }
.tag.ok { background: var(--ok-tint); border-color: transparent; color: var(--ok); }
.tag.info { background: var(--info-tint); border-color: transparent; color: var(--info); }
.tag.dark { background: var(--lac); color: var(--brass-soft); border-color: transparent; }
html[data-theme='dark'] .tag.brass { color: var(--brass-soft); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--seal); color: #fff; font-size: .68rem; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }

/* ---------- Araç çubuğu ---------- */
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar .searchbox { position: relative; flex: 1; min-width: 180px; }
.toolbar .searchbox svg { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--faded); width: 16px; height: 16px; }
.toolbar .searchbox input { padding-left: 2rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { padding: .44rem .7rem; background: var(--paper); border: 0; border-right: 1px solid var(--line); color: var(--faded); font-size: .82rem; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--lac); color: #F3EFE4; }
html[data-theme='dark'] .seg button.on { background: var(--brass); color: #1A211D; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: .1rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  background: none; border: 0; padding: .62rem .78rem; color: var(--faded); font-size: .86rem; font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brass); }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: .9rem; align-items: start; }
.kcol { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); min-height: 160px; }
html[data-theme='dark'] .kcol { background: #131F1A; }
.kcol-head { padding: .6rem .75rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .85rem; }
.kcol-body { padding: .6rem; display: flex; flex-direction: column; gap: .55rem; min-height: 90px; }
.kcol.dragover { outline: 2px dashed var(--brass); outline-offset: -4px; }
.kcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .7rem; box-shadow: var(--shadow-sm); cursor: grab; }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .45; }
.kcard .kt { font-weight: 500; font-size: .88rem; }
.kcard .km { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; flex-wrap: wrap; }

/* ---------- Takvim ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-dow { background: var(--paper-2); padding: .45rem; text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--faded); font-weight: 600; }
html[data-theme='dark'] .cal-dow { background: #131F1A; }
.cal-day { background: var(--paper); min-height: 96px; padding: .35rem .4rem; display: flex; flex-direction: column; gap: .25rem; }
.cal-day.other { background: var(--paper-2); opacity: .55; }
html[data-theme='dark'] .cal-day.other { background: #101A16; }
.cal-day .dn { font-size: .74rem; color: var(--faded); text-align: right; }
.cal-day.today .dn { color: var(--brass); font-weight: 700; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--brass-tint); }
.cal-ev { font-size: .7rem; padding: .18rem .34rem; border-radius: 4px; background: var(--brass-tint); color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-left: 2px solid var(--brass); }
.cal-ev.goruldu { background: var(--ok-tint); color: var(--ok); border-left-color: var(--ok); }
.cal-ev.ertelendi { background: var(--info-tint); color: var(--info); border-left-color: var(--info); }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(14,26,22,.55); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; overflow-y: auto; }
.modal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; max-width: 620px; margin: auto; }
.modal.wide { max-width: 880px; }
.modal-head { padding: .95rem 1.15rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.15rem; }
.modal-foot { padding: .85rem 1.15rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .6rem; background: var(--paper-2); }
html[data-theme='dark'] .modal-foot { background: #131F1A; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: .78rem; color: var(--faded); margin-bottom: .28rem; font-weight: 500; }

/* ---------- Bildirim / uyarı ---------- */
.alert { padding: .75rem .9rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper-2); font-size: .86rem; display: flex; gap: .55rem; align-items: flex-start; }
.alert.error { background: var(--seal-tint); border-color: transparent; color: var(--seal); }
.alert.ok { background: var(--ok-tint); border-color: transparent; color: var(--ok); }
.alert.warn { background: var(--warn-tint); border-color: transparent; color: var(--warn); }
.toast-wrap { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--lac); color: #F3EFE4; padding: .7rem .95rem; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .86rem; max-width: 360px; border-left: 3px solid var(--brass); animation: slidein .2s ease; }
.toast.error { border-left-color: var(--seal); }
.toast.ok { border-left-color: var(--ok); }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Liste öğesi ---------- */
.list-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--paper-2); }
html[data-theme='dark'] .list-item:hover { background: #16221D; }
.avatar { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; color: #1A211D; flex: none; }
.avatar.lg { width: 40px; height: 40px; font-size: .88rem; }
.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brass); }

/* ---------- Grafik (basit çubuk) ---------- */
.bars { display: flex; align-items: flex-end; gap: .6rem; height: 150px; padding-top: .6rem; }
.bars .bar-grp { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; justify-content: flex-end; }
.bars .bar-pair { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars .bar { width: 38%; max-width: 20px; border-radius: 3px 3px 0 0; min-height: 2px; }
.bars .bar.g { background: var(--ok); }
.bars .bar.x { background: var(--seal); }
.bars .bar-lbl { font-size: .66rem; color: var(--faded); white-space: nowrap; }

/* ---------- Kılavuz / içerik ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.prose h3 { margin-top: 1.3rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose code { background: var(--paper-2); padding: .1rem .35rem; border-radius: 4px; font-size: .85em; }
.prose ol, .prose ul { padding-left: 1.3rem; }
.prose ol li, .prose ul li { margin-bottom: .35rem; }

/* ---------- Portal (herkese açık) ---------- */
.portal-top { background: var(--lac-deep); color: #C6CFC8; }
.portal-nav { max-width: 1100px; margin: 0 auto; padding: .85rem 1.4rem; display: flex; align-items: center; gap: 1.2rem; }
.portal-nav .brand { display: flex; align-items: center; gap: .6rem; color: #FBFAF5; font-family: var(--font-head); font-size: 1.05rem; }
.portal-nav .brand svg { width: 30px; height: 30px; color: var(--brass-soft); }
.portal-nav nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: .88rem; }
.portal-nav nav a:hover { color: var(--brass-soft); }
.hero { max-width: 1100px; margin: 0 auto; padding: 3.4rem 1.4rem 2.6rem; }
/* Açık tema: ana sayfa giriş ekranı. Yazılar KOYU tonda — açık zeminde okunur. */
.hero h1 { font-size: 2.7rem; color: var(--lac); max-width: 22ch; }
.hero p { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; }
/* Koyu temaya geçilirse giriş ekranı yine okunur kalsın. */
html[data-theme='dark'] .hero h1 { color: var(--ink); }
html[data-theme='dark'] .hero p { color: var(--ink-soft); }
.portal-main { max-width: 1100px; margin: 0 auto; padding: 2.4rem 1.4rem 4rem; }
.article-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; display: flex; flex-direction: column; height: 100%; }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card .card-body { display: flex; flex-direction: column; flex: 1; }
.article-card .card-body p { flex: 1; }
.article-flag { height: 84px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--lac) 0%, var(--lac-deep) 100%); border-bottom: 1px solid var(--line); }
.article-flag span { font-family: var(--font-display, 'Georgia'), serif; font-size: 1.7rem; letter-spacing: .04em; color: var(--brass-soft); }
.article-detail { max-width: 76ch; }
.article-detail .lead { font-size: 1.06rem; color: var(--ink); border-left: 3px solid var(--brass); padding-left: .9rem; margin: 1rem 0; }
.article-detail blockquote { border-left: 3px solid var(--line); margin: 1.2rem 0; padding: .2rem 0 .2rem 1rem; color: var(--ink-soft); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.filter-chip.on { background: var(--lac); color: var(--brass-soft); border-color: transparent; }
.filter-chip b { font-weight: 600; opacity: .75; margin-left: .15rem; }
.breadcrumb { font-size: .82rem; color: var(--faded); margin-bottom: 1rem; }
.breadcrumb a { color: var(--brass); text-decoration: none; }
.breadcrumb span { margin: 0 .3rem; }

/* ---------- Yardımcı yerleşim ---------- */
.section-title { display: flex; align-items: baseline; gap: .6rem; margin: 1.6rem 0 .8rem; }
.section-title h3 { margin: 0; }
.filter-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; background: var(--paper); }
.overlay-close { margin-left: auto; }
.detail-hero { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.detail-hero .dh-main { flex: 1; min-width: 240px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: .35rem .8rem; font-size: .87rem; }
.kv dt { color: var(--faded); }
.kv dd { margin: 0; }
.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--line), var(--paper-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 4px; height: 1rem; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(2, minmax(200px, 1fr)); }
}
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-card .brandmark { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; }
  .auth-card .brandmark svg { width: 36px; height: 36px; color: var(--brass); }
  .auth-card .brandmark .bn { font-family: var(--font-head); font-size: 1.2rem; }
  .grid.dash { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .topbar .hamburger { display: inline-flex; }
  .backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .content { padding: 1rem .9rem 3rem; }
  .kv { grid-template-columns: 110px 1fr; }
  .cal-day { min-height: 70px; }
  h1 { font-size: 1.55rem; }
  .hero h1 { font-size: 1.95rem; }
  .portal-nav nav { gap: .7rem; font-size: .8rem; }
}
@media print {
  .sidebar, .topbar, .toolbar, .modal-foot, .toast-wrap { display: none !important; }
  .app { grid-template-columns: 1fr; }
  body { background: #fff; }
}
