/* Kodvanta Vault lisans sunucusu arayüzü (kodvanta.com paleti)
   Elle yazılmış CSS, derleme adımı yok. Belirteçler: SPEC §7. */

/* ---------- Yazı tipleri (Poppins, Outfit, IBM Plex Mono; SIL OFL 1.1) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/outfit-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/outfit-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/outfit-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Belirteçler ---------- */
:root {
  --ink: #0A1A2F;
  --ink-2: #12283F;
  --ink-3: #1C3654;
  --paper: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --line: #DFE3E9;
  --line-soft: #ECEFF3;
  --line-strong: #C8CFD9;
  --text: #101828;
  --text-2: #4A5567;
  --text-3: #7C8698;
  --brass: #0C50B4;
  --brand-dark: #093C87;
  --brand-light: #2E7BE0;
  --brass-light: #EDF3FC;
  --success: #12805C; --success-bg: #E7F4EE;
  --warning: #B4530A; --warning-bg: #FDF1E6;
  --danger: #B3261E;  --danger-bg: #FBE9E7;
  --info: #0C50B4;    --info-bg: #EDF3FC;
  --neutral: #5B6873; --neutral-bg: #EDF0F2;
  --r-control: 6px;
  --r-panel: 8px;
  --r-badge: 4px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Outfit", "Poppins", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sidebar-w: 240px;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 12px; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code, kbd, .mono { font-family: var(--mono); font-size: 12.5px; }
small { font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.num, .tnum, table, .kpi-value, time { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brass-light); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -40px; z-index: 50; background: var(--surface); color: var(--ink); padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-control); }
.skip-link:focus { top: 12px; }

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.stack-sm > * + * { margin-top: 4px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }

/* ---------- Uygulama iskeleti ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; background: var(--ink); }

.sidebar {
  background: var(--ink); color: #B9C3CB; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px 16px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 24px; width: auto; flex: none; display: block; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.03em; line-height: 1.2; color: var(--brand-light); }
.brand-area { display: block; font-size: 12px; font-weight: 400; color: #8E9BA5; margin-top: 1px; }

.nav { padding: 6px 12px 16px; flex: 1 1 auto; }
.nav-section { font-size: 11.5px; color: #75838E; padding: 14px 10px 6px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; margin: 1px 0; border-radius: var(--r-control);
  color: #C2CBD2; font-size: 13.5px; text-decoration: none;
}
.nav a svg { width: 16px; height: 16px; flex: none; color: #8E9BA5; }
.nav a:hover { background: var(--ink-2); color: #fff; }
.nav a.is-active { background: var(--ink-2); color: #fff; font-weight: 500; }
.nav a.is-active svg { color: var(--brand-light); }
.nav a.is-active::before {
  content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px;
  background: var(--brass); border-radius: 0 2px 2px 0;
}
.nav .count {
  margin-left: auto; font-size: 11.5px; font-weight: 500; min-width: 20px; text-align: center;
  padding: 0 6px; border-radius: var(--r-badge); background: #3A2522; color: #F2B8B2;
}
.nav a:focus-visible { outline-offset: -2px; }

.sidebar-foot { border-top: 1px solid var(--ink-2); padding: 14px 20px 18px; font-size: 12.5px; }
.sidebar-foot .who { color: #fff; font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .who-sub { color: #8E9BA5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot form { margin-top: 10px; }
.btn-ghost-dark {
  background: transparent; border: 1px solid var(--ink-3); color: #C2CBD2; height: 28px; padding: 0 10px;
  border-radius: var(--r-control); font: inherit; font-size: 12.5px; cursor: pointer;
}
.btn-ghost-dark:hover { background: var(--ink-2); color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; background: var(--paper); }
.topbar {
  height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); min-width: 0; }
.crumbs a { color: var(--text-2); }
.crumbs .sep { color: var(--line-strong); }
.crumbs .current { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-meta { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }

.content { padding: 24px 32px 48px; width: 100%; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; letter-spacing: -0.1px; }
.page-head .sub { color: var(--text-2); margin-top: 4px; font-size: 13.5px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Paneller ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.panel + .panel, .panel + .grid, .grid + .panel, .grid + .grid, .kpis + .grid, .kpis + .panel, .flash + .panel { margin-top: 20px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 52px;
}
.panel-head h2 { font-size: 14.5px; }
.panel-head .hint { font-size: 12.5px; color: var(--text-3); font-weight: 400; margin-left: 8px; }
.panel-body { padding: 16px; }
.panel-body.tight { padding: 12px 16px; }
.panel-foot { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }
.panel > .table-wrap:last-child table tr:last-child td { border-bottom: 0; }
.panel-link { font-size: 13px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid > .panel + .panel, .grid > .grid, .grid > .panel + .grid, .grid > .grid + .panel { margin-top: 0; }

/* Göstergeler — tek panel, ince ayraçlar */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 14px 18px 16px; border-left: 1px solid var(--line); min-width: 0; color: inherit; display: block; }
.kpi:first-child { border-left: 0; }
a.kpi:hover { text-decoration: none; background: var(--surface-2); }
.kpi-label { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.25; margin-top: 4px; letter-spacing: -0.3px; }
.kpi-note { font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value.is-danger { color: var(--danger); }
.kpi-value.is-warning { color: var(--warning); }

/* ---------- Tablolar ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 500; font-size: 12.5px; color: var(--text-2);
  background: var(--surface-2); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table th:first-child, .table td:first-child { padding-left: 16px; }
.table th:last-child, .table td:last-child { padding-right: 16px; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover td { background: #FAFBFC; }
.table .num, .table th.num { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table .strong { font-weight: 500; color: var(--text); }
.table .sub { display: block; font-size: 12.5px; color: var(--text-3); }
.table a.strong { color: var(--text); }
.table a.strong:hover { color: var(--info); }
.table.table-compact td { padding-top: 7px; padding-bottom: 7px; }
.table tr.is-muted td { color: var(--text-3); }
.key { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2px; white-space: nowrap; color: var(--ink); }
.empty { padding: 36px 16px; text-align: center; color: var(--text-2); }
.empty strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 2px; }

/* Tanım listesi */
.dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin: 0; }
.dl dt, .dl dd { padding: 9px 16px; border-bottom: 1px solid var(--line-soft); margin: 0; font-size: 13.5px; }
.dl dt { color: var(--text-2); padding-right: 0; }
.dl dd { min-width: 0; overflow-wrap: anywhere; }
.dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 7px;
  border-radius: var(--r-badge); font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1;
  background: var(--neutral-bg); color: var(--neutral);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.plain::before { display: none; }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--brass { background: var(--brass-light); color: var(--brand-dark); }
.tag { display: inline-block; padding: 0 6px; height: 20px; line-height: 19px; border: 1px solid var(--line); border-radius: var(--r-badge); font-size: 12px; color: var(--text-2); background: var(--surface); white-space: nowrap; margin: 1px 2px 1px 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); margin-right: 6px; vertical-align: 1px; }
.dot--success { background: var(--success); } .dot--danger { background: var(--danger); } .dot--warning { background: var(--warning); }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--r-control);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); border-color: #B3BDC5; text-decoration: none; }
.btn:active { background: #EEF1F3; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary:active { background: var(--brand-dark); }
.btn-danger { color: var(--danger); border-color: #E7C2BE; }
.btn-danger:hover { background: var(--danger-bg); border-color: #DDA9A3; }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #9C2019; border-color: #9C2019; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn-link { background: none; border: 0; padding: 0; height: auto; color: var(--info); font: inherit; font-size: 13px; cursor: pointer; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 2px; background: none; }
.btn-link.danger { color: var(--danger); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
form.inline { display: inline; }

/* ---------- Formlar ---------- */
.form { max-width: 880px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 500; color: var(--text); }
.field .opt { font-weight: 400; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-control);
}
.textarea { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%235B6873' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #AEB8C0; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--brass); outline-offset: -1px; border-color: var(--brass); }
.input[readonly] { background: var(--surface-2); color: var(--text-2); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input-sm, .select.input-sm { height: 32px; font-size: 13.5px; }
.help { font-size: 12.5px; color: var(--text-3); }
.error-text { font-size: 12.5px; color: var(--danger); }
.form-actions { display: flex; gap: 8px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.form-section { padding: 18px 16px; border-bottom: 1px solid var(--line-soft); }
.form-section:last-of-type { border-bottom: 0; }
.form-section h3 { font-size: 13.5px; margin-bottom: 4px; }
.form-section > .help { margin: 0 0 14px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; padding: 3px 0; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }

/* Süzgeç çubuğu */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filters .input, .filters .select { height: 32px; font-size: 13.5px; width: auto; }
.filters .input[type="search"] { min-width: 260px; }
.filters .spacer { flex: 1 1 auto; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-control); overflow: hidden; }
.seg a { padding: 0 12px; height: 30px; display: inline-flex; align-items: center; font-size: 13px; color: var(--text-2); border-left: 1px solid var(--line); }
.seg a:first-child { border-left: 0; }
.seg a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.seg a.is-active { background: var(--ink); color: #fff; }

/* ---------- Bildirimler ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid; border-radius: var(--r-panel); margin-bottom: 20px; font-size: 13.5px; }
.flash--success { background: var(--success-bg); border-color: #BFDCCD; color: #1F5A40; }
.flash--danger { background: var(--danger-bg); border-color: #EDC0BB; color: #8A1D17; }
.flash--warning { background: var(--warning-bg); border-color: #EBCF9F; color: #74490C; }
.flash--info { background: var(--info-bg); border-color: #BCD3E4; color: #1F4E6E; }
.flash ul { margin: 4px 0 0; padding-left: 18px; }
.flash .key { color: inherit; }
.callout { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: var(--r-control); background: var(--surface-2); font-size: 13.5px; }

/* Anahtar listesi / kod bloğu */
.codebox { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-control); padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; color: var(--ink); max-height: 360px; overflow: auto; margin: 0; }

/* ---------- Grafik ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.chart .grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .bar-success { fill: var(--success); }
.chart .bar-warning { fill: #D9A54A; }
.chart .bar-failed { fill: var(--danger); }
.chart rect.hit { fill: transparent; }
.chart g.day:hover rect.hit { fill: rgba(20, 33, 43, .04); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Kullanım çubuğu */
.meter { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; min-width: 60px; }
.meter > span { display: block; height: 100%; background: var(--ink); }
.meter.is-full > span { background: var(--warning); }

/* ---------- Sayfalama ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.pager-links { display: flex; gap: 4px; }
.pager-links a, .pager-links span { min-width: 30px; height: 30px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-control); color: var(--text); background: var(--surface); font-variant-numeric: tabular-nums; }
.pager-links a:hover { background: var(--surface-2); text-decoration: none; }
.pager-links .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-links .is-disabled { color: var(--text-3); background: var(--surface-2); }

/* ---------- Kipli iletişim kutusu ---------- */
dialog.modal { border: 1px solid var(--line); border-radius: var(--r-panel); padding: 0; width: min(440px, calc(100vw - 32px)); color: var(--text); background: var(--surface); }
dialog.modal::backdrop { background: rgba(20, 33, 43, .48); }
.modal-body { padding: 20px 20px 8px; }
.modal-body h2 { font-size: 16px; margin-bottom: 8px; }
.modal-body p { color: var(--text-2); font-size: 13.5px; margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 18px; }

/* ---------- Oturum açma ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; }
.auth-side { background: var(--ink); color: #B9C3CB; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand { padding: 0; }
.auth-side h2 { color: #fff; font-size: 24px; font-weight: 500; line-height: 1.35; max-width: 380px; letter-spacing: -0.2px; }
.auth-side p { max-width: 380px; margin-top: 14px; color: #A7B2BA; font-size: 14px; }
.auth-side .rule { width: 32px; height: 2px; background: var(--brass); margin-bottom: 20px; }
.auth-side .foot { font-size: 12.5px; color: #75838E; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 24px; }
.auth-card .field + .field { margin-top: 16px; }
.auth-card .btn-primary { width: 100%; height: 40px; margin-top: 20px; font-size: 14px; }
.auth-switch { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Genel sayfalar ---------- */
.site-head { background: var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-head nav { display: flex; gap: 4px; }
.site-head nav a { color: #C2CBD2; font-size: 13.5px; padding: 7px 12px; border-radius: var(--r-control); }
.site-head nav a:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.hero { background: var(--ink); color: #B9C3CB; padding: 64px 0 72px; border-top: 1px solid var(--ink-2); }
.hero .eyebrow { font-size: 13px; color: var(--brand-light); font-weight: 500; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 38px; font-weight: 500; line-height: 1.2; max-width: 700px; letter-spacing: -0.6px; }
.hero p { max-width: 620px; font-size: 16px; margin-top: 18px; color: #A7B2BA; }
.hero .row { margin-top: 28px; gap: 10px; }
.hero .btn { height: 40px; padding: 0 18px; }
.hero .btn-brass { background: var(--brass); border-color: var(--brass); color: #fff; }
.hero .btn-brass:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.hero .btn-outline { background: transparent; border-color: #3A4E5D; color: #E3E8EC; }
.hero .btn-outline:hover { background: var(--ink-2); }
.section { padding: 56px 0; }
.section h2 { font-size: 22px; margin-bottom: 8px; }
.section .lead { color: var(--text-2); max-width: 640px; margin-bottom: 28px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.feature { padding: 22px 24px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.feature:nth-child(3n+1) { border-left: 0; }
.feature:nth-child(-n+3) { border-top: 0; }
.feature h3 { font-size: 15px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 13.5px; margin: 0; }
.portals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-link { display: block; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); color: var(--text); }
.portal-link:hover { border-color: var(--ink); text-decoration: none; }
.portal-link strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.portal-link span { color: var(--text-2); font-size: 13.5px; }
.site-foot { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 13px; color: var(--text-3); }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.status-list li:last-child { border-bottom: 0; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis .kpi:nth-child(3n+1) { border-left: 0; }
  .kpis .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.kpis-4 .kpi { border-left: 1px solid var(--line); border-top: 0; }
  .kpis.kpis-4 .kpi:nth-child(odd) { border-left: 0; }
  .kpis.kpis-4 .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand { padding: 12px 16px; }
  .nav { order: 3; width: 100%; display: flex; overflow-x: auto; padding: 0 8px 8px; gap: 2px; }
  .nav-section { display: none; }
  .nav a { white-space: nowrap; }
  .nav a.is-active::before { left: 8px; right: 8px; top: auto; bottom: 0; width: auto; height: 2px; border-radius: 2px 2px 0 0; }
  .sidebar-foot { border-top: 0; margin-left: auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
  .sidebar-foot form { margin-top: 0; }
  .sidebar-foot .who-sub { display: none; }
  .topbar, .content { padding-left: 20px; padding-right: 20px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 28px 24px; }
  .auth-side .foot, .auth-side p { display: none; }
  .features, .portals { grid-template-columns: minmax(0, 1fr); }
  .feature { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .feature:first-child { border-top: 0 !important; }
  .dl { grid-template-columns: 130px minmax(0, 1fr); }
  .filters .input[type="search"] { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .kpis, .kpis.kpis-4, .kpis.kpis-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis .kpi { border-left: 1px solid var(--line) !important; border-top: 1px solid var(--line) !important; }
  .kpis .kpi:nth-child(odd) { border-left: 0 !important; }
  .kpis .kpi:nth-child(-n+2) { border-top: 0 !important; }
  .hero h1 { font-size: 28px; }
}

@media print {
  .sidebar, .topbar, .page-head .actions, .filters, .pager { display: none !important; }
  .app { display: block; }
  .panel { border-color: #bbb; }
}

/* ---------- Kodvanta marka katmanı ---------- */
h1, h2, h3, .hero h1, .stat-value, .kpi-value { font-family: var(--display); }
.brand { flex-wrap: wrap; row-gap: 6px; }
