:root {
  --deep: #1c3d5a;
  --primary: #2458c7;
  --primary-soft: #e8eefb;
  --mist: #f2f5f8;
  --surface: #ffffff;
  --ok: #16a34a;
  --ok-soft: #e7f6ec;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fde8e8;
  --navy: #0e1b2e;
  --navy-2: #17273f;
  --muted: #61788a;
  --line: #e4eaf0;
  --input: #d5e0e8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 27, 46, 0.04), 0 6px 18px rgba(14, 27, 46, 0.05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.45;
  background: var(--mist);
  color: var(--deep);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; letter-spacing: -0.3px; text-wrap: balance; }
h2 { font-size: 16px; margin: 0; }
h3 { font-size: 14px; margin: 0; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.lead { font-size: 15px; }
.ok-text { color: var(--ok); }
.bad-text { color: var(--bad); }
.danger-text { color: var(--bad) !important; }
.strike { text-decoration: line-through; color: var(--muted); }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------------------------------------------------------------- butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 650;
  cursor: pointer; border: 1px solid transparent; text-decoration: none !important; white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #1d4bb0; }
.btn.ghost { background: var(--surface); color: var(--deep); border-color: #cbdce6; }
.btn.ghost:hover:not(:disabled) { background: var(--mist); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { padding: 6px 11px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); }
.btn.on-dark:hover { background: rgba(255,255,255,0.14); }
.link-btn {
  background: none; border: none; padding: 2px 4px; font: inherit; font-size: 13px;
  color: var(--primary); cursor: pointer; font-weight: 600;
}
.link-btn.danger { color: var(--bad); }
.link-btn:hover { text-decoration: underline; }
.icon-btn {
  background: none; border: 1px solid transparent; border-radius: 8px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-size: 15px;
}
.icon-btn:hover:not(:disabled) { background: var(--mist); }
.icon-btn.danger { color: var(--bad); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------------------------------------------------------------- giriş */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 20% 0%, #1b3a5c 0%, var(--navy) 60%); padding: 24px 16px;
}
.login-card { background: var(--surface); border-radius: 20px; padding: 32px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.brand { text-align: center; margin-bottom: 24px; }
.brand h1 { font-size: 20px; }
.brand-badge {
  width: 56px; height: 56px; background: var(--primary); color: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; margin: 0 auto 12px;
}
.brand-badge.small { width: 36px; height: 36px; font-size: 11px; border-radius: 10px; margin: 0; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: #fff; color: #1f1f1f; border: 1px solid #cbd5df; border-radius: 10px;
  padding: 12px 18px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-google:hover { background: #f6f8fa; }
.divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; color: var(--muted); font-size: 12.5px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.sent-icon { font-size: 40px; text-align: center; margin-bottom: 8px; }
.error { color: var(--bad); font-size: 13px; margin-top: 12px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 28px 4px; }
.loading.light { color: rgba(255,255,255,0.75); }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* ---------------------------------------------------------------- form */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 650; color: var(--deep); }
.field small { font-size: 11.5px; color: var(--muted); }
.field.end { justify-content: flex-end; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; color: var(--deep); background: #fff; border: 1px solid var(--input); border-radius: 9px;
  padding: 9px 11px; width: 100%; min-width: 0;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
select.compact { width: auto; padding: 5px 8px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }
.form-grid.inline { align-items: end; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 6px 0 12px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.search { max-width: 320px; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c9d6e0; border-radius: 999px; transition: background .15s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------------------------------------------------------------- iskelet */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; background: var(--navy); color: #fff; display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 10;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 10px; }
.sidebar-title { font-weight: 800; font-size: 14.5px; }
.sidebar-sub { font-size: 11.5px; color: rgba(255,255,255,0.55); }
.nav { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; flex: 1; overflow-y: auto; }
.nav-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.9px; color: rgba(255,255,255,0.4); padding: 14px 10px 4px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.8); padding: 8px 10px;
  border-radius: 9px; font-size: 14px; text-decoration: none !important;
}
.nav-item:hover { background: rgba(255,255,255,0.07); }
.nav-item.active { background: var(--primary); color: #fff; font-weight: 650; }
.badge { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.sidebar-footer { padding: 12px 18px 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.user-email { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 8px; word-break: break-all; }
.content { margin-left: 236px; padding: 26px 32px 120px; flex: 1; min-width: 0; }
.pane { max-width: 1240px; margin: 0 auto; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; max-width: 720px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-block; font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.section-title { margin: 22px 0 10px; font-size: 15px; }

/* ---------------------------------------------------------------- kartlar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card.narrow { max-width: 720px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head.padded { padding: 14px 18px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.cards .card { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.col { min-width: 0; }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1b3a5c 100%); color: #fff; border-radius: 18px;
  padding: 22px 24px; margin-bottom: 16px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center;
}
.hero-label { color: rgba(255,255,255,0.72); font-size: 13.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.hero-value { font-size: 34px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; margin: 4px 0; }
.hero-value.pos { color: #6fe3a6; }
.hero-value.neg { color: #ff8c97; }
.hero-sub { color: rgba(255,255,255,0.6); font-size: 13px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: var(--deep); }
.stat.link { text-decoration: none !important; }
.stat.link:hover { border-color: var(--primary); }
.stat-value { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-value.warn { color: var(--warn); }
.stat-value.danger { color: var(--bad); }
.stat-label { font-size: 12.5px; color: var(--muted); }

.month-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px; }
.month-nav strong { min-width: 110px; text-align: center; font-size: 13.5px; }

.block-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.block-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--deep); text-decoration: none !important; }
.block-card:hover { border-color: var(--primary); }
.block-letter { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.block-body { flex: 1; min-width: 0; }
.block-title { font-weight: 750; margin-bottom: 6px; }
.progress { height: 7px; background: var(--bad-soft); border-radius: 6px; overflow: hidden; margin-bottom: 7px; }
.progress span { display: block; height: 100%; background: var(--ok); border-radius: 6px; }
.progress.empty { background: var(--mist); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--mist); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--primary-soft); color: var(--primary); }

.notice { border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; background: var(--mist); font-size: 13.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice.warn { background: var(--warn-soft); }
.notice.ok { background: var(--ok-soft); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.empty { color: var(--muted); padding: 18px 4px; text-align: center; }
.error-box { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 18px; }

/* ---------------------------------------------------------------- daireler */
.legend { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); display: inline-block; margin-left: 8px; }
.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.block-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); scroll-margin-top: 16px; }
.block-panel.focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.block-panel h2 { margin-bottom: 10px; }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.apt-tile {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid; text-decoration: none !important; min-width: 0;
}
.apt-tile.ok { background: var(--ok-soft); border-color: #bfe5cb; color: #0f7a37; }
.apt-tile.bad { background: var(--bad-soft); border-color: #f5c2c2; color: #b91c1c; }
.apt-tile.muted { background: var(--mist); border-color: var(--line); color: var(--muted); }
.apt-tile:hover { filter: brightness(0.97); box-shadow: 0 0 0 2px var(--primary-soft); }
.tile-no { font-weight: 800; font-size: 14px; min-width: 30px; }
.tile-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--deep); opacity: 0.85; }
.tile-dot { position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

.balance-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; border: 1px solid; }
.balance-card.bad { background: var(--bad-soft); border-color: #f5c2c2; }
.balance-card.ok { background: var(--ok-soft); border-color: #bfe5cb; }
.balance-label { font-weight: 700; font-size: 13.5px; }
.balance-value { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.balance-card.bad .balance-value { color: var(--bad); }
.balance-card.ok .balance-value { color: var(--ok); }
.balance-break { font-size: 13px; color: var(--deep); opacity: 0.8; }

.menu { position: relative; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(14,27,46,0.15); padding: 6px; min-width: 220px; z-index: 20;
}
.menu-list button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 12px; border-radius: 8px; font: inherit; cursor: pointer; color: var(--deep); }
.menu-list button:hover { background: var(--mist); }
.menu-list button.danger { color: var(--bad); }

/* ---------------------------------------------------------------- tablolar & listeler */
.table-wrap { overflow-x: auto; }
.table-wrap.tall { max-height: 60vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.4px; background: #fafbfd; position: sticky; top: 0; z-index: 1; }
th.num { text-align: right; }
tbody tr:last-child td { border-bottom: none; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f8fafc; }
td.desc { min-width: 260px; max-width: 520px; }
td.chev, .chev { color: var(--muted); font-size: 18px; }
table.mini td { padding: 7px 4px; }
table.mini { margin-bottom: 12px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: none; }
.list.clickable li { cursor: pointer; padding-left: 6px; padding-right: 6px; border-radius: 8px; }
.list.clickable li:hover { background: var(--mist); }
.list li { flex-wrap: wrap; }
.list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 180px; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.total-row { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.total-row strong { color: var(--primary); font-size: 16px; }

/* ---------------------------------------------------------------- banka */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 650; font-size: 13.5px; }
.step b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; align-items: center; justify-content: center; font-size: 12px; margin-right: 6px; }
.step span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 4px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; color: var(--deep); }
.tab.active { background: var(--deep); color: #fff; border-color: var(--deep); }
table.review tr.needs td { background: #fff8f8; }
table.review tr.rejected td { opacity: 0.5; }
table.review tr.rejected td:last-child { opacity: 1; }
.assign-cell { min-width: 220px; }
select.assign { padding: 6px 8px; font-size: 13px; max-width: 260px; }
select.assign.missing { border-color: var(--bad); background: #fff5f5; }

.sticky-bar {
  position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-top: 14px;
  box-shadow: 0 10px 30px rgba(14,27,46,0.12);
}

/* ---------------------------------------------------------------- borç yükle */
.bulk-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 6px 0 4px; }
.bulk-row .field { margin-bottom: 0; width: 180px; }
.manual-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.manual-block h3 { margin-bottom: 6px; }
.manual-cell { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.manual-cell span { width: 30px; font-weight: 750; font-size: 12.5px; flex-shrink: 0; }
.manual-cell input { padding: 5px 7px; font-size: 13px; text-align: right; }

/* ---------------------------------------------------------------- diğer */
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.app-top h2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.app-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.note { background: var(--mist); border-radius: 10px; padding: 8px 12px; font-style: italic; margin-top: 10px; }
.photo img { max-width: 100%; max-height: 240px; border-radius: 10px; display: block; margin: 6px 0; object-fit: cover; }
.poll-results { margin: 10px 0 4px; }
.poll-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin-bottom: 8px; font-size: 13.5px; }
.poll-row .progress { grid-column: 1 / -1; background: #edf2f6; margin: 0; }
.poll-row .progress span { background: var(--primary); }
.poll-row input, #pOpts input { margin-bottom: 6px; }
.code-box { font-size: 24px; font-weight: 800; letter-spacing: 2px; text-align: center; background: var(--mist); border-radius: 12px; padding: 16px; user-select: all; }
.btn-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
h3.sub { margin: 10px 0 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
.donut-row { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.donut > div { width: 96px; height: 96px; background: var(--surface); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; text-align: center; }
.donut small { color: var(--muted); }
.donut-legend { list-style: none; padding: 0; margin: 0; font-size: 12.5px; flex: 1; min-width: 160px; }
.donut-legend li { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.donut-legend li span { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.donut-legend li b { margin-left: auto; }

/* ---------------------------------------------------------------- pencere */
dialog.modal { border: none; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,0.3); color: var(--deep); }
dialog.modal.wide { width: min(760px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(14,27,46,0.45); }
.modal-inner { padding: 20px 22px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-head h3 { font-size: 17px; }
.modal-body { overflow-y: auto; }
.modal-error { color: var(--bad); background: var(--bad-soft); padding: 8px 12px; border-radius: 9px; margin: 10px 0 0; font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--deep); color: #fff;
  padding: 11px 20px; border-radius: 10px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); z-index: 1000; max-width: calc(100vw - 32px);
}
.toast.error { background: var(--bad); }

/* ---------------------------------------------------------------- dar ekran */
@media (max-width: 1180px) {
  .blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; }
  .stat-row, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app { flex-direction: column; }
  .sidebar { position: static; width: 100%; flex-direction: column; }
  .sidebar-brand { padding: 12px 16px 4px; }
  .nav { flex-direction: row; overflow-x: auto; padding: 6px 10px 10px; flex: none; }
  .nav-group { display: none; }
  .nav-item { white-space: nowrap; flex-shrink: 0; }
  .sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 16px 10px; border-top: none; }
  .user-email { margin: 0; }
  .content { margin-left: 0; padding: 18px 16px 120px; }
  .blocks { grid-template-columns: 1fr; }
  .manual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: 1fr; }
  .hero-value { font-size: 28px; }
  .search { max-width: none; }
}
