/* Arsko Bilişim teması — NKY ile aynı dil: koyu yan menü, kırmızı vurgu, beyaz kartlar */
:root {
  --side-1: #26282E;
  --side-2: #141519;
  --side-ink: #FFFFFF;
  --side-ink-2: #A9A9B3;
  --side-hover: rgba(255, 255, 255, .06);
  --side-active: rgba(255, 255, 255, .10);

  --accent: #E10A10;
  --accent-dark: #B00E12;
  --accent-soft: #FDECEC;

  --bg: #F5F5F7;
  --card: #FFFFFF;
  --line: #E6E6EA;
  --line-2: #F0F0F3;
  --ink: #22232A;
  --ink-2: #5C5D66;
  --ink-3: #7C7C86;

  --teal: #1FA2A6;
  --green: #3BB273;
  --blue: #3B8BEA;
  --orange: #F2871E;
  --red: #E5484D;
  --purple: #7C5CE0;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 21, 25, .04), 0 6px 20px rgba(20, 21, 25, .06);
  --shadow-lg: 0 18px 50px rgba(20, 21, 25, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.015em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Düğmeler & alanlar ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: #FAFAFB; border-color: #D8D8DE; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(225, 10, 16, .25); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.dark { background: var(--side-1); border-color: var(--side-1); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: #FFF1F1; border-color: #F5C6C7; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.icon-only { width: 36px; padding: 0; }
.btn .icon { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.input {
  width: 100%; height: 42px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(225, 10, 16, .10); }
.error { color: var(--red); font-size: 13.5px; min-height: 1.3em; }
.muted { color: var(--ink-3); }

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 84px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent;
  color: var(--ink-2); font-size: 12.5px; font-weight: 600; padding: 6px 9px; border-radius: 7px; cursor: pointer;
}
.pw-toggle:hover { background: var(--line-2); color: var(--ink); }
.pw-toggle .icon { width: 15px; height: 15px; }

/* ---------------- Giriş ---------------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-brand {
  background: radial-gradient(1200px 500px at -10% 110%, rgba(225, 10, 16, .35), transparent 60%),
              linear-gradient(160deg, var(--side-1), var(--side-2));
  color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
}
.login-brand .logo { display: flex; align-items: center; gap: 14px; }
.logo-mark { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
.logo-mark img { width: 34px; height: 34px; }
.login-brand .logo b { display: block; font-size: 19px; }
.login-brand .logo span { font-size: 12.5px; color: var(--side-ink-2); }
.login-brand h2 { font-size: 38px; line-height: 1.15; max-width: 440px; }
.login-brand h2 em { font-style: normal; color: #FF4B50; }
.login-brand p { color: #C9C9D2; max-width: 420px; font-size: 15.5px; margin: 16px 0 0; }
.login-brand .feats { display: grid; gap: 12px; margin-top: 32px; }
.login-brand .feat { display: flex; gap: 12px; align-items: center; color: #E4E4EA; font-size: 14px; }
.login-brand .feat i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.login-brand .foot { font-size: 12px; color: #8E8E98; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { font-size: 28px; margin-bottom: 6px; }
.login-card > p { color: var(--ink-3); margin: 0 0 28px; }
.login-card .btn { width: 100%; height: 46px; font-size: 15px; }

/* ---------------- Uygulama iskeleti ---------------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  background: linear-gradient(180deg, var(--side-1), var(--side-2)); color: var(--side-ink);
  display: flex; flex-direction: column; padding: 22px 14px 16px;
}
.sidebar .logo { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; text-decoration: none; }
.sidebar .logo b { display: block; font-size: 17px; }
.sidebar .logo span { display: block; font-size: 12px; color: var(--side-ink-2); }
.nav-title { font-size: 11px; font-weight: 700; letter-spacing: .09em; color: #8E8E98; padding: 18px 12px 8px; display: flex; justify-content: space-between; align-items: center; }
.nav-title button { background: none; border: 0; color: #8E8E98; cursor: pointer; padding: 2px; border-radius: 6px; display: grid; }
.nav-title button:hover { color: #fff; background: var(--side-hover); }
.nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin: 2px 0; border-radius: 10px;
  color: #D9D9E0; text-decoration: none; font-weight: 500; font-size: 14px;
}
.nav a:hover { background: var(--side-hover); color: #fff; }
.nav a.active { background: var(--side-active); color: #fff; font-weight: 600; }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav a .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a .count { font-size: 11.5px; font-weight: 700; color: #C9C9D2; background: rgba(255, 255, 255, .08); padding: 1px 8px; border-radius: 99px; }
.nav .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; margin: 0 4px; }
.nav a.sub { padding: 7px 12px 7px 44px; font-size: 13.5px; color: #BDBDC6; }
.nav a.sub .dot { width: 8px; height: 8px; margin: 0 2px 0 0; }
.nav a.cat.empty-cat { color: #8E8E98; }
.nav .badge { font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); padding: 1px 8px; border-radius: 99px; }
.nav .caret { width: 14px; height: 14px; color: #8E8E98; transition: transform .15s; }
.nav a.open .caret { transform: rotate(90deg); }
.nav-empty { color: #8E8E98; font-size: 13px; padding: 4px 12px; }
.side-foot { margin-top: auto; padding-top: 18px; }
.me-card { background: rgba(255, 255, 255, .06); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.me-card .who { flex: 1; min-width: 0; }
.me-card .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .who span { font-size: 11.5px; color: var(--side-ink-2); }
.me-card button { background: none; border: 0; color: #C9C9D2; cursor: pointer; padding: 7px; border-radius: 8px; display: grid; }
.me-card button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.brand-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 11px; color: #7C7C86; letter-spacing: .04em; }
.brand-foot img { width: 16px; height: 16px; background: #fff; border-radius: 4px; padding: 1px; }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px;
  padding: 14px 32px; background: rgba(245, 245, 247, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .menu-btn { display: none; }
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.search { margin-left: auto; position: relative; width: min(320px, 40vw); }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 17px; height: 17px; }
.search input { width: 100%; height: 40px; border-radius: 99px; border: 1px solid var(--line); background: #fff; padding: 0 16px 0 40px; outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(225, 10, 16, .08); }
.page { padding: 8px 32px 48px; max-width: 1240px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 24px; }
.page-head h1 { font-size: 28px; }
.page-head p { margin: 6px 0 0; color: var(--ink-3); }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- Özet kartları ---------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  border-radius: var(--radius); padding: 16px 18px; color: #fff; box-shadow: var(--shadow); text-decoration: none;
  transition: transform .15s, box-shadow .15s; min-height: 84px;
}
a.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20, 21, 25, .16); }
.stat::after { content: ''; position: absolute; right: -24px; top: -24px; width: 96px; height: 96px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.stat .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.stat .ic .icon { width: 21px; height: 21px; }
.stat .num { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; line-height: 1.05; }
.stat .lbl { font-size: 13px; opacity: .92; margin-top: 2px; }
.g-dark { background: linear-gradient(135deg, #2F3138, #1B1C21); }
.g-red { background: linear-gradient(135deg, #EF6C6C, #E10A10); }
.g-teal { background: linear-gradient(135deg, #1FA2A6, #2ED1B4); }
.g-blue { background: linear-gradient(135deg, #3B8BEA, #5FB0F5); }
.g-green { background: linear-gradient(135deg, #3BB273, #7FD98A); }
.g-orange { background: linear-gradient(135deg, #F7B24C, #F2871E); }
.g-purple { background: linear-gradient(135deg, #7C5CE0, #A68BF2); }

/* ---------------- Kartlar ---------------- */
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.card-head h2 { font-size: 16.5px; }
.card-head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.card-body { padding: 0 20px 20px; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.project {
  position: relative; display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.project:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20, 21, 25, .10); }
.project .bar { position: absolute; inset: 0 0 auto 0; height: 4px; }
.project .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.project h3 { font-size: 17px; }
.project p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); min-height: 1.5em; }
.project .meta { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-3); }
.project .meta b { color: var(--ink); }

/* ---------------- Yükleme alanı ---------------- */
.drop {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 22px;
  border: 2px dashed #D6D6DD; border-radius: var(--radius); background: #FCFCFD; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: #FFF7F7; }
.drop .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.drop .ic .icon { width: 24px; height: 24px; }
.drop b { display: block; font-size: 15.5px; color: var(--ink); }
.drop span { font-size: 13px; color: var(--ink-3); }
.drop .btn { margin-left: auto; }
.upload-progress { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-top: 10px; }
.upload-progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* ---------------- Belge listesi ---------------- */
.docs { width: 100%; border-collapse: collapse; }
.docs th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 20px; border-bottom: 1px solid var(--line); }
.docs td { padding: 13px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.docs tr:last-child td { border-bottom: 0; }
.docs tbody tr { cursor: pointer; transition: background .1s; }
.docs tbody tr:hover { background: #FAFAFC; }
.doc-name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.doc-name b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-name small { color: var(--ink-3); font-size: 12.5px; }
.ftype { width: 38px; height: 44px; border-radius: 7px; display: grid; place-items: end center; padding-bottom: 6px; color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; flex: none; position: relative; }
.ftype::before { content: ''; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 11px 11px 0; border-color: transparent var(--bg) rgba(255,255,255,.35) transparent; }
.ftype.docx { background: #2B579A; }
.ftype.pdf { background: #D93025; }
.ftype.other { background: #7C7C86; }
.ftype.text { background: #5C5D66; }
.ftype.image { background: #7C5CE0; }
.ftype.folder { background: #F5B942; border-radius: 6px 9px 7px 7px; place-items: center; padding: 0; color: #fff; }
.ftype.folder::before { display: none; }
.ftype.folder .icon { width: 20px; height: 20px; }
.docs tr.is-private td:first-child b::after { content: ' 🔒'; font-size: 12px; }
.lock-btn.on { color: var(--accent); background: var(--accent-soft); border-color: #F5C6C7; }
.folder-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.folder-path { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.folder-path a { text-decoration: none; color: var(--ink-2); padding: 4px 8px; border-radius: 7px; }
.folder-path a:hover { background: #fff; color: var(--ink); }
.folder-path .icon { width: 14px; height: 14px; color: var(--ink-3); }
.folder-path span.cur { padding: 4px 8px; color: var(--ink); }
.text-view { max-width: 980px; margin: 24px auto; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 28px 32px; white-space: pre-wrap; font: 13.5px/1.65 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; }
.image-view { display: grid; place-items: center; min-height: 100%; padding: 24px; }
.image-view img { max-width: 100%; max-height: calc(100dvh - 120px); border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.red { background: var(--accent-soft); color: var(--accent); }
.pill.green { background: #E7F6EE; color: #1E7A4C; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.activity li:last-child { border-bottom: 0; }
.activity a { text-decoration: none; font-weight: 600; }
.activity a:hover { color: var(--accent); }
.activity .t { font-size: 12.5px; color: var(--ink-3); }
.activity .note { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .ic { width: 60px; height: 60px; border-radius: 18px; background: var(--line-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--ink-3); }
.empty h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------------- Yönetim ---------------- */
.list-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.list-row .grow { flex: 1; min-width: 200px; }
.list-row .name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.list-row .sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); }
.chip i { width: 8px; height: 8px; border-radius: 3px; }
.chip.all { background: var(--accent-soft); color: var(--accent); }
.secret { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 3px 4px 3px 12px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px; }
.secret .val { min-width: 120px; letter-spacing: .04em; }
.secret button { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 7px; color: var(--ink-3); display: grid; }
.secret button:hover { background: #fff; color: var(--ink); }
.secret .icon { width: 15px; height: 15px; }
.inactive { opacity: .55; }
.checks { display: grid; gap: 4px; max-height: 240px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.checks label { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.checks label:hover { background: var(--bg); }
.checks input { width: 17px; height: 17px; accent-color: var(--accent); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 9px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--ink); }

.help { display: flex; gap: 14px; align-items: flex-start; background: #FFF9EC; border: 1px solid #F6E2B3; border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: #6B5215; margin-bottom: 20px; }
.help .icon { color: #C98A06; margin-top: 1px; }

/* ---------------- Değişiklikler ---------------- */
.change { padding: 18px 20px; border-top: 1px solid var(--line-2); }
.change:first-child { border-top: 0; }
.change.unread { background: linear-gradient(90deg, rgba(225, 10, 16, .05), transparent 40%); box-shadow: inset 3px 0 0 var(--accent); }
.change-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.change-head .who { flex: 1; min-width: 220px; }
.change-head .who a { font-weight: 700; text-decoration: none; }
.change-head .who a:hover { color: var(--accent); }
.change-head .t { font-size: 12.5px; color: var(--ink-3); }
.change .note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); background: var(--bg); border-radius: 8px; padding: 8px 12px; }
.change-body { margin-top: 14px; }
.delta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.delta .plus { color: #1E7A4C; } .delta .minus { color: var(--accent); }
.hunk { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.hunk-head { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: #FAFAFB; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.hunk-body { display: grid; grid-template-columns: 1fr 1fr; }
.hunk.added .hunk-body, .hunk.removed .hunk-body { grid-template-columns: 1fr; }
.side { padding: 12px 14px; font-size: 14px; line-height: 1.65; }
.side + .side { border-left: 1px solid var(--line-2); }
.side p { margin: 4px 0 0; }
.side-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.side.before { background: #FFFBFB; } .side.after { background: #FAFFFB; }
del { background: #FFE1E1; color: #A1161A; text-decoration: line-through; text-decoration-color: rgba(161, 22, 26, .5); border-radius: 3px; padding: 0 2px; }
ins { background: #D9F5E4; color: #146B3E; text-decoration: none; border-radius: 3px; padding: 0 2px; }

/* ---------------- Bilgi kartları (tez, yedek) ---------------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); overflow: hidden; border-top: 1px solid var(--line-2); }
.info-grid > div { background: #fff; padding: 14px 20px; box-shadow: 1px 1px 0 var(--line-2); }
.info-grid dt { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.info-grid dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 500; }
.info-grid .wide { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.meter { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; margin-top: 10px; }
.meter div { height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); }
.ok-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.ok-dot.warn { background: var(--orange); } .ok-dot.bad { background: var(--red); }
dialog.wide { width: min(900px, calc(100vw - 32px)); }
dialog.wide .body { max-height: 80vh; overflow: auto; }

/* ---------------- Pencereler ---------------- */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(500px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(20, 21, 25, .45); backdrop-filter: blur(2px); }
dialog form, dialog .body { padding: 26px; }
dialog h2 { font-size: 20px; margin-bottom: 18px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 10px; background: var(--side-2); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg);
}
.toast .icon { color: #5BD691; }
.loading { padding: 60px; text-align: center; color: var(--ink-3); }

/* ---------------- Editör ---------------- */
body.editor-page { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.ed-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--side-1), var(--side-2)); color: #fff;
}
.ed-bar .back { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; text-decoration: none; background: rgba(255,255,255,.08); }
.ed-bar .back:hover { background: rgba(255,255,255,.16); }
.ed-title { display: flex; flex-direction: column; min-width: 0; }
.ed-title a { font-size: 12px; color: var(--side-ink-2); text-decoration: none; }
.ed-title a:hover { color: #fff; }
.ed-title input { font-size: 16px; font-weight: 700; color: #fff; background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 2px 6px; margin-left: -7px; min-width: 160px; max-width: 420px; outline: none; }
.ed-title input:hover, .ed-title input:focus { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.ed-bar .spacer { flex: 1; }
.status { font-size: 12.5px; color: var(--side-ink-2); display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #6B6B75; }
.status.dirty { color: #FFC56B; } .status.dirty::before { background: #FFB020; }
.status.saved { color: #7FE0A7; } .status.saved::before { background: #3BB273; }
.seg { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; color: #D9D9E0; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; }
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: var(--ink); }
.ed-bar .btn { height: 36px; }
.ed-bar .btn:not(.primary) { background: rgba(255,255,255,.08); border-color: transparent; color: #fff; }
.ed-bar .btn:not(.primary):hover { background: rgba(255,255,255,.16); }
#toolbar { background: #fff; border-bottom: 1px solid var(--line); }
.editor-shell { flex: 1; display: flex; min-height: 0; }
.editor-scroll { flex: 1; overflow: auto; background: #E9E9EE; }
#editor { min-height: 100%; display: flex; justify-content: center; padding: 20px 0; }
.viewer-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.drawer { width: 330px; border-left: 1px solid var(--line); background: #fff; overflow: auto; padding: 20px; }
.drawer h3 { font-size: 17px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.ver { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.ver:last-child { border-bottom: 0; }
.ver .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ver .n { font-weight: 700; }
.ver .by { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.ver .note { font-size: 13px; color: var(--ink-2); margin: 6px 0 10px; }
.ver .acts { display: flex; gap: 6px; margin-top: 10px; }

/* ---------------- Mobil ---------------- */
.scrim { display: none; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 236px 1fr; }
  .page { padding: 8px 22px 44px; }
  .topbar { padding: 14px 22px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 28px 22px; }
  .login-brand h2 { font-size: 26px; }
  .login-brand .feats, .login-brand .foot, .login-brand p { display: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.4); }
  .topbar { padding: 12px 16px; }
  .topbar .menu-btn { display: inline-flex; }
  .search { width: auto; flex: 1; }
  .page { padding: 4px 16px 40px; }
  .drop { flex-wrap: wrap; }
  .hunk-body { grid-template-columns: 1fr; }
  .side + .side { border-left: 0; border-top: 1px solid var(--line-2); }
  .form-grid { grid-template-columns: 1fr; }
  .drop .btn { margin-left: 0; width: 100%; }
  .docs .hide-sm { display: none; }
  .docs td, .docs th { padding: 12px 14px; }
  .drawer { position: fixed; inset: 0 0 0 auto; width: min(330px, 92vw); z-index: 30; box-shadow: var(--shadow-lg); }
  .ed-title input { max-width: 52vw; }
}

/* ---------------- Yazdırma / PDF ---------------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .sidebar, .topbar, .scrim, .no-print, .toast, .drop, .row-actions, .page-head .actions { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .card, .stat, .project { box-shadow: none !important; }
  .card { border-color: #ddd; }
  .change, .hunk { break-inside: avoid; }
  .change.unread { background: none; box-shadow: none; }
  .print-only { display: block !important; }
  a { text-decoration: none; }
  /* Editör */
  body.editor-page { height: auto; overflow: visible; display: block; }
  .ed-bar, #toolbar, .drawer, .floating-comments, .superdoc__right-sidebar, .superdoc__compact-comment-popover { display: none !important; }
  .editor-shell, .editor-scroll { display: block; overflow: visible; background: #fff; }
  #editor { padding: 0; display: block; }
}
.print-only { display: none; }
