:root {
  --primary: #0b68f7;
  --primary-50: #eef6ff;
  --navy: #081b3a;
  --text: #10224f;
  --text-2: #536487;
  --text-3: #8290aa;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #f2f6fd;
  --border: #e3e9f3;
  --success: #16be72;
  --success-50: #eafaf2;
  --warning: #f5a300;
  --warning-50: #fff7e5;
  --shadow: 0 12px 36px rgba(16, 38, 82, .06);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --sidebar: 248px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--surface-2); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .22s ease;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  height: 72px; padding: 0 18px; border-bottom: 1px solid var(--border);
}
.mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; letter-spacing: .04em; font-size: 13px;
}
.sidebar-brand strong { display: block; font-size: 14px; letter-spacing: .04em; }
.sidebar-brand span { color: var(--text-3); font-size: 12px; }
.sidebar-scroll { flex: 1; overflow: auto; padding: 10px; }
.nav-label {
  padding: 14px 12px 6px; color: var(--text-3);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 12px; margin: 2px 0; border-radius: 10px;
  color: var(--text); font-size: 13.5px;
}
.nav-item:hover { background: var(--surface-3); }
.sms-meter, .sms-note { margin: 8px 0 12px; color: var(--text-2); font-size: 13px; }
.sms-desk { display: grid; grid-template-columns: 250px minmax(0, 1fr) 230px; gap: 14px; align-items: start; }
.sms-pane { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sms-modes { display: flex; gap: 14px; }
.sms-mode-debt { margin-top: -4px; }
.sms-side-label { font-size: 12px; color: var(--text-2); }
.sms-group-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.sms-group-list label { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.sms-header { font-weight: 700; }
.sms-message { min-height: 160px; resize: vertical; }
.sms-count { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sms-bar { height: 8px; border-radius: 99px; background: #e6edf7; overflow: hidden; }
.sms-bar > span { display: block; height: 100%; width: 0; background: var(--success); }
.sms-scale { display: flex; justify-content: space-between; color: var(--text-3); font-size: 11px; }
.sms-tools h2 { margin: 4px 0 0; font-size: 13px; }
.sms-tool-list { display: flex; flex-direction: column; gap: 6px; }
.sms-tool-list button, .sms-tool-list a { text-align: left; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.sms-tool-list button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sms-preview td { white-space: pre-wrap; vertical-align: top; }
@media (max-width: 1100px) { .sms-desk { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.nav-count {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #c2410c; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-item.active { background: var(--primary-50); color: var(--primary); font-weight: 650; }
.nav-ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; }

.main-shell { margin-left: var(--sidebar); min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 248, 252, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  min-height: 72px; display: flex; align-items: center; gap: 12px;
  padding: 12px 22px;
}
.page-heading { flex: 1; min-width: 0; }
.page-heading h1 { margin: 0; font-size: 20px; font-weight: 700; }
.page-heading p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.icon-button {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); display: none; place-items: center;
}
.icon-button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.content { padding: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 13px;
}
.btn-primary { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0b65ef, #1678ff); }
.btn-block { width: 100%; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.card-pad { padding: 16px 18px; }
.metric-name { color: var(--text-2); font-size: 12px; }
.metric-value { margin-top: 6px; font-size: 26px; font-weight: 750; letter-spacing: -.03em; }
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12px; margin-top: 12px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-title h2 { margin: 0; font-size: 15px; }
.muted { color: var(--text-2); }
.tiny { font-size: 12px; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 650; }
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.pill.green { background: var(--success-50); color: #0d8a52; }
.pill.orange { background: var(--warning-50); color: #9a6800; }
.pill.blue { background: var(--primary-50); color: var(--primary); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group.span-2 { grid-column: span 2; }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.pair + .pair, .pair + .card, .card + .pair { margin-top: 12px; }
.id-block { display: grid; grid-template-columns: 96px repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.id-block .photo-slot { grid-row: span 2; align-self: stretch; width: 96px; height: auto; min-height: 148px; }
.photo-slot { position: relative; display: block; width: 96px; height: 120px; border-radius: 12px; overflow: hidden; cursor: pointer; }
.photo-slot .photo, .photo-slot .ph { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; color: var(--primary); }
.photo-slot .photo-edit {
  position: absolute; inset: 0; display: grid; place-items: end center; padding-bottom: 10px;
  background: linear-gradient(transparent 35%, rgba(8, 27, 58, .78));
  color: #fff; font-size: 12px; font-weight: 650; opacity: 0; transition: opacity .15s ease;
}
.photo-slot:hover .photo-edit, .photo-slot:focus-within .photo-edit { opacity: 1; }
.photo-slot input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.req { color: #c4233a; }
[data-when-status][hidden], [data-when-kind][hidden], [data-when-meeting][hidden], [data-when-postponed][hidden], [data-when-reason][hidden], [data-when-bylaws][hidden], [data-when-organ][hidden], [data-when-debt][hidden], [data-when-pay][hidden], [data-when-open][hidden], [data-when-bank][hidden], [data-when-father][hidden], [data-when-mother][hidden], [data-when-rent][hidden], [data-when-grade][hidden], [data-when-red][hidden], [data-when-lise][hidden], [data-when-uni][hidden], [data-when-school-free][hidden], .form-group[hidden], .form-grid[hidden], .choice-body[hidden] { display: none !important; }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 12px; }
.choice { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); padding: 12px 14px; }
.choice.is-on { background: #fff; border-color: #c5daf8; box-shadow: 0 0 0 3px var(--primary-50); }
.choice-head { display: flex; gap: 10px; align-items: flex-start; font-weight: 650; cursor: pointer; min-height: 0; }
.choice-head input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); flex: 0 0 auto; }
.choice-body { display: grid; gap: 10px; margin-top: 12px; }
dialog.sheet { width: min(920px, calc(100vw - 28px)); max-height: min(88vh, 920px); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 24px 80px rgba(8, 27, 58, .28); }
dialog.sheet.sheet-narrow { width: min(560px, calc(100vw - 28px)); }
dialog.sheet::backdrop { background: rgba(8, 27, 58, .48); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 1; }
.sheet-head h2 { margin: 0; font-size: 16px; }
.sheet-body { padding: 16px 18px 18px; }
.inline-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-edit .form-select { width: auto; min-width: 150px; }
.table-wrap.relax td { white-space: normal; }
.transfer-row { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); text-align: left; }
.quota-table th, .quota-table td { white-space: normal; }
.quota-table .form-input { width: 72px; min-width: 72px; padding-left: 8px; padding-right: 8px; }
.quota-table th .tiny { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; }
.quota-board { display: grid; gap: 8px; }
.quota-line { display: grid; gap: 2px; }
.quota-ready { color: #0d8a52; margin: 0; }
.quota-wait { color: #9a6800; margin: 0; }
.transfer-row span { display: flex; flex-direction: column; gap: 2px; }
.quota-table th, .quota-table td { white-space: normal; }
.quota-table .form-input { width: 72px; min-width: 72px; padding-left: 8px; padding-right: 8px; }
.quota-table th .tiny { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; }
.quota-board { display: grid; gap: 8px; }
.quota-line { display: grid; gap: 2px; }
.quota-ready { color: #0d8a52; margin: 0; }
.quota-wait { color: #9a6800; margin: 0; }
.form-group label { font-size: 12px; color: var(--text-2); font-weight: 650; }
.form-input, .form-select, .form-textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.form-textarea { min-height: 96px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 104, 247, .12);
}
.list { display: flex; flex-direction: column; }
.list a, .list div.row, .list form.row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.list form.row .form-input { width: auto; }
.list a:last-child, .list div.row:last-child { border-bottom: 0; }

.backdrop { display: none; }

@media (max-width: 1100px) {
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .split, .form-grid:not(.cols-4):not(.cols-3):not(.cols-2) { grid-template-columns: 1fr; }
  .form-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .form-grid.cols-4, .form-grid.cols-3, .form-grid.cols-2, .id-block, .choice-row { grid-template-columns: 1fr; }
  .id-block .photo-slot { grid-row: auto; height: 148px; }
  .form-group.span-2 { grid-column: auto; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-105%); box-shadow: 20px 0 50px rgba(0,0,0,.16); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(8, 27, 58, .42); z-index: 30; }
  .main-shell { margin-left: 0; }
  .icon-button { display: grid; }
  .page-heading p { display: none; }
  .content { padding: 14px 12px 28px; }
}
@media (max-width: 560px) {
  .metric-grid { grid-template-columns: 1fr; }
  .topbar-actions .btn span { display: none; }
}

.login-body {
  min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(160deg, #081b3a 0%, #12305f 55%, #0b1f4d 100%);
  padding: 24px 12px;
}
.login-wrap { width: min(420px, 100%); }
.login-card { background: #fff; border-radius: var(--radius-xl); padding: 28px 24px; box-shadow: var(--shadow); }
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand .mark { margin: 0 auto 12px; }
.login-brand h1 { margin: 0 0 4px; font-size: 22px; }
.login-brand p { margin: 0; color: var(--text-2); }
.login-card .form-group { margin-bottom: 12px; }
.login-note { text-align: center; color: #9eb0cc; font-size: 12px; margin-top: 14px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .form-input, .toolbar .form-select { width: auto; min-width: 160px; }
.tabs { display: flex; gap: 6px; overflow: auto; margin-bottom: 12px; }
.tab { flex: 0 0 auto; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: inherit; text-decoration: none; }
.tab.is-on { background: var(--primary-50); color: var(--primary); border-color: transparent; }
.pane { display: none; }
.pane.is-on { display: block; }
.photo { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--surface-3); }
.check { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.flash { background: var(--success-50); color: #0d8a52; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.flash.bad { background: #fff0f2; color: #c4233a; }
.stack { display: grid; gap: 12px; }
.metric-grid.two { grid-template-columns: 1fr 1fr; }
.metric-grid.three { grid-template-columns: repeat(3, 1fr); }
.due-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.due-bar form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.due-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.due-months { display: grid; grid-template-columns: repeat(12, minmax(84px, 1fr)); gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.due-month { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; min-width: 0; }
.due-month span { color: var(--text-3); font-size: 11px; }
.due-month strong { font-size: 12px; font-weight: 650; white-space: nowrap; }
.due-month.is-on { border-color: var(--primary); background: var(--primary-50); }
.due-month.is-off { opacity: .5; }
.due-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.due-figures div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.due-figures span { display: block; color: var(--text-3); font-size: 12px; }
.due-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.due-mode label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; }
.due-mode label:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
.due-mode strong, .due-mode small { display: block; }
.due-mode small { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.type-grid { display: grid; gap: 12px; }
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }
.sheet-body { padding: 16px 18px 18px; }
.filter-block { padding: 10px 0; border-top: 1px solid var(--border); }
.filter-block h3 { margin: 0 0 8px; font-size: 13px; }
.filter-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 1100px) {
  .due-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .metric-grid.two, .metric-grid.three, .due-mode, .due-figures { grid-template-columns: 1fr; }
  .due-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.deed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.deed-card {
  display: flex; flex-direction: column; gap: 6px; min-height: 148px;
  padding: 18px 18px 16px; border-radius: 16px; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow); color: inherit;
}
.deed-card:hover { border-color: #c9d7ee; }
.deed-card strong { font-size: 16px; }
.deed-card span { color: var(--text-2); font-size: 13px; }
.deed-kicker { color: var(--primary) !important; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.deed-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.deed-tools .form-select { max-width: 360px; }
.deed {
  width: min(210mm, 100%); min-height: 297mm; margin: 0 auto; background: #fff; color: #1c1915;
  border: 1px solid #e6e0d4; box-shadow: var(--shadow);
  padding: 16mm 16mm 18mm;
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-size: 15px; line-height: 1.55;
}
.deed-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.4fr) auto; gap: 8px; align-items: end; margin: 8px 0; }
.deed-row select.ink { border: 1px solid #e4dccf; padding: 4px 8px; background: #fff; }
.deed .no-print { font-family: Inter, sans-serif; font-size: 12px; }
.deed-head { text-align: center; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 3px double #1c1915; }
.deed-head p { margin: 0; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
.deed-head h2 { margin: 8px 0 0; font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.deed-head small { display: block; margin-top: 6px; color: #6b645b; font-size: 12px; letter-spacing: 0; text-transform: none; }
.deed h3 { margin: 22px 0 8px; font-size: 15px; letter-spacing: .04em; }
.deed p { margin: 0 0 12px; }
.deed .ink, .deed textarea.ink {
  font: inherit; color: inherit; background: transparent; border: 0;
  border-bottom: 1px solid #cfc6b8; border-radius: 0; padding: 2px 0; width: 100%;
}
.deed textarea.ink { border: 1px solid #e4dccf; padding: 8px 10px; resize: vertical; }
.deed table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.deed th, .deed td { border: 1px solid #d9d1c3; padding: 7px 8px; white-space: normal; font-size: 13px; vertical-align: bottom; }
.deed th { background: #faf7f2; font-weight: 700; }
.deed .mark { height: 26px; }
.deed-signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 16px; margin-top: 28px; }
.deed-signs div { min-height: 78px; }
.deed-signs strong, .deed-signs span, .deed-signs em { display: block; }
.deed-signs em { margin-top: 28px; font-style: normal; color: #6b645b; font-size: 12px; border-top: 1px solid #1c1915; padding-top: 4px; }
.deed-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 16px; }
.deed-facts div { border: 1px solid #d9d1c3; padding: 10px 12px; background: #faf7f2; }
.deed-facts span { display: block; font-size: 12px; color: #6b645b; }
.deed-facts strong { font-size: 22px; }
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.perm-box { border: 1px solid var(--line, #e6e2da); border-radius: 12px; padding: 12px 14px; }
.perm-box h3 { margin: 0 0 8px; font-size: 13px; }
.perm-box label { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 13px; }
@media (max-width: 800px) { .perm-grid { grid-template-columns: 1fr; } }
.member-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.member-office { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.office-chip { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #e9eff8; color: #081b3a; font-size: 13px; font-weight: 600; }
.timeline-scroll { max-height: 340px; overflow-y: auto; padding-right: 4px; }
.card-sheet-body { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.web-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: #eef2f7; display: block; }
.web-thumb.wide { width: 100%; height: 120px; margin-bottom: 6px; }
.web-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.web-block { border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 8px; align-content: start; background: var(--surface-2); }
.web-block .form-group { margin: 0; }
.web-block-head { display: flex; gap: 8px; align-items: center; }
.web-block-head .form-select { flex: 1; min-width: 0; }
.web-ico { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; background: #eaf1ea; color: #264a36; }
.web-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.web-menu-list { display: grid; gap: 6px; }
.web-menu-row { display: grid; grid-template-columns: 70px minmax(120px, 1fr) minmax(140px, 1.3fr) 90px 50px 124px; gap: 8px; align-items: center; }
.web-menu-new { grid-template-columns: 70px minmax(120px, 1fr) minmax(140px, 1.3fr) auto; }
.web-menu-head { font-weight: 600; }
.web-menu-list.has-parent .web-menu-row { grid-template-columns: 70px minmax(120px, 1fr) minmax(130px, 1.2fr) 80px minmax(130px, .9fr) 50px 124px; }
.web-menu-new.has-parent { grid-template-columns: 70px minmax(120px, 1fr) minmax(140px, 1.3fr) minmax(150px, .9fr) auto; }
.web-menu-child input[name="label"] { margin-left: 22px; width: calc(100% - 22px); }
.web-menu-child { position: relative; }
.web-menu-child::before { content: "↳"; position: absolute; left: 78px; top: 50%; transform: translateY(-50%); color: #8a94a6; }
.web-logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.web-logo-preview { width: 72px; height: 72px; border-radius: 50%; border: 1px solid #d5deea; background: #fff; object-fit: contain; padding: 4px; }
.web-favicon-preview { width: 32px; height: 32px; border-radius: 6px; border: 1px solid #d5deea; background: #fff; object-fit: contain; }
.web-gallery-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.web-gallery-item { display: grid; gap: 8px; align-content: start; }
.web-gallery-item .web-thumb.wide { height: 140px; }
.board-admin { display: grid; gap: 12px; }
.board-admin-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px 16px; padding: 14px; border: 1px solid #e3e9f2; border-radius: 12px; }
.board-admin-row.is-off { opacity: .6; }
.board-admin-row > .toolbar { grid-column: 2; }
.board-admin-photo { width: 84px; height: 104px; border-radius: 10px; overflow: hidden; background: #eef3f9; display: grid; place-items: center; font: 700 26px/1 system-ui, sans-serif; color: #5b6b80; }
.board-admin-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .board-admin-row { grid-template-columns: 1fr; } .board-admin-row > .toolbar { grid-column: auto; } }
.web-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.web-themes .choice { display: grid; gap: 6px; cursor: pointer; }
.web-themes .choice-body { margin-top: 0; }
@media (max-width: 760px) {
  .web-menu-row, .web-menu-new, .web-menu-list.has-parent .web-menu-row, .web-menu-new.has-parent { grid-template-columns: 60px 1fr; }
  .web-menu-child::before { left: 68px; top: 18px; transform: none; }
  .web-menu-head { display: none; }
}
@page { size: A4; margin: 12mm; }
@media print {
  .sidebar, .topbar, .backdrop, .deed-tools, .sidebar-foot, .no-print, .flash { display: none !important; }
  .main-shell { margin: 0; }
  body, .content, .app-shell { background: #fff; padding: 0; }
  .deed { width: auto; min-height: 0; border: 0; box-shadow: none; padding: 0; }
}
.web-menu-row.is-off { opacity: .55; }
.web-menu-row.is-off input[name="url"] { text-decoration: line-through; }
.web-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.web-module { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; }
.web-module small { display: block; color: #6b7280; }
.tool-fields { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 2px; }
.iban-rows { display: grid; gap: 8px; }
.iban-row { display: grid; grid-template-columns: 1fr 1.2fr 1.6fr 1fr; gap: 8px; }
@media (max-width: 760px) { .iban-row { grid-template-columns: 1fr; } }
.hm { scroll-margin-top: 84px; }
.hm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hm-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; }
.hm-stat strong { color: var(--text); font-size: 14px; }
.hm-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 16px; align-items: start; }
.hm-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: calc(100vh - 108px); overflow: auto; }
.hm-nav-label { padding: 12px 10px 4px; color: var(--text-3); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; }
.hm-nav-label:first-child { padding-top: 4px; }
.hm-tab { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; padding: 7px 10px; border-radius: 9px; text-align: left; font-size: 13px; color: var(--text); }
.hm-tab:hover { background: var(--surface-3); }
.hm-tab.is-on { background: var(--primary-50); color: var(--primary); font-weight: 650; }
.hm-tab.is-dirty::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); flex: 0 0 7px; margin-left: -2px; }
.hm-badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); font-size: 11px; font-weight: 650; text-align: center; }
.hm-tab.is-on .hm-badge { background: #fff; color: var(--primary); }
.hm-main { min-width: 0; }
.hm-pane { display: none; padding: 20px 22px; }
.hm-pane.is-on { display: block; animation: hm-in .18s ease; }
@keyframes hm-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hm-pane-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.hm-pane-head h2 { margin: 0; font-size: 17px; }
.hm-pane-head p { margin: 3px 0 0; color: var(--text-2); font-size: 12.5px; }
.hm-pane-head form { flex: 0 0 auto; }
.hm-note { margin: 14px 0 0; color: var(--text-2); font-size: 12.5px; }
.hm-note a { color: var(--primary); font-weight: 600; }
.hm-empty { margin: 0 0 12px; color: var(--text-3); }
.hm-shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.hm-show { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.hm-show:has(.hm-switch:checked) { background: #fff; border-color: #cfe0fb; }
.hm-show.is-locked { cursor: not-allowed; opacity: .6; }
.hm-show-text { display: grid; gap: 1px; min-width: 0; }
.hm-show-text strong { font-size: 13px; font-weight: 600; }
.hm-show-text small { color: var(--text-3); font-size: 11.5px; }
.hm-switch { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 36px; width: 36px; height: 20px; margin: 0; border-radius: 999px; background: #cfd8e6; cursor: pointer; transition: background .15s; }
.hm-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 38, 82, .25); transition: transform .15s; }
.hm-switch:checked { background: var(--success); }
.hm-switch:checked::after { transform: translateX(16px); }
.hm-switch:disabled { cursor: not-allowed; }
.hm-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hm-image { display: grid; gap: 8px; align-content: start; }
.hm-image strong { font-size: 13px; }
.hm-image-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(45deg, #f2f5fa 0 10px, #eaeff6 10px 20px); display: grid; place-items: center; border: 1px solid var(--border); }
.hm-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-image-frame span { color: var(--text-3); font-size: 12px; font-weight: 600; }
.hm-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); box-shadow: 0 -8px 24px rgba(16, 38, 82, .06); }
.hm-save-text { color: var(--text-2); font-size: 12.5px; }
.hm-save.is-dirty { border-color: #f6cf7a; background: rgba(255, 250, 238, .96); }
.hm-save.is-dirty .hm-save-text { color: #8a5d00; font-weight: 600; }
.hm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hm-cards.is-compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.hm-card { display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: box-shadow .15s, border-color .15s; }
.hm-card:hover { border-color: #cfdcf0; box-shadow: 0 8px 22px rgba(16, 38, 82, .07); }
.hm-card.is-off { background: var(--surface-2); }
.hm-card.is-off > :not(.hm-card-foot) { opacity: .6; }
.hm-card .form-group { margin: 0; gap: 4px; }
.hm-card .form-group label { font-size: 11.5px; color: var(--text-3); }
.hm-card-head { display: flex; gap: 8px; align-items: center; }
.hm-card-head .form-select { flex: 1; min-width: 0; }
.hm-sort { width: 64px !important; flex: 0 0 64px; text-align: center; }
.hm-card-media { position: relative; margin: -14px -14px 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px 14px 0 0; background: #eef2f7; }
.hm-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-card-upload { position: absolute; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(8, 27, 58, .78); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.hm-card-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hm-card-upload.has-file { background: var(--success); }
.hm-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.hm-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.hm-card-actions { display: inline-flex; gap: 6px; }
.btn-ghost { width: 38px; padding: 0; color: var(--text-3); }
.btn-ghost:hover { color: #c0392b; border-color: #f1c5c0; background: #fff5f4; }
@media (max-width: 960px) {
  .hm-layout { grid-template-columns: 1fr; }
  .hm-nav { position: sticky; top: 72px; z-index: 6; flex-direction: row; overflow-x: auto; max-height: none; padding: 6px; gap: 4px; }
  .hm-nav-label { display: none; }
  .hm-tab { width: auto; white-space: nowrap; flex: 0 0 auto; }
  .hm-pane { padding: 16px; }
  .hm-pane-head { flex-direction: column; }
}
.license-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.license-status { border-top: 4px solid var(--success); }
.license-status.is-bad { border-top-color: #e5484d; }
.license-status h2 { margin: 6px 0 4px; font-size: 22px; }
.license-badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--success-50); color: #0e8a52; }
.license-status.is-bad .license-badge { background: #fdecec; color: #c4282d; }
.license-dl { display: grid; gap: 8px; margin: 14px 0 0; }
.license-dl div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.license-dl dt { color: var(--text-3); font-size: 12px; }
.license-dl dd { margin: 0; font-weight: 500; }
.license-addons { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.license-addons li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-3); }
.license-addons li span { width: 18px; text-align: center; font-weight: 700; }
.license-addons li.on { background: var(--success-50); color: var(--text); }
.license-addons li.on span { color: var(--success); }
@media (max-width: 900px) { .license-grid { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }
.nt-status { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.nt-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); }
.nt-chip span { width: 8px; height: 8px; border-radius: 50%; background: #c6cfdd; }
.nt-chip.on { color: var(--text); }
.nt-chip.on span { background: var(--success); box-shadow: 0 0 0 3px var(--success-50); }
.nt-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.nt-channels > .toolbar { grid-column: 1 / -1; }
.nt-channels .section-title .check { min-height: 0; font-size: 13px; font-weight: 600; }
.nt-row { display: flex; gap: 8px; align-items: center; }
.nt-row .form-input { min-width: 0; }
.nt-steps { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 4px; }
.nt-chats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nt-test { margin-top: 12px; }
.nt-test-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nt-tpl { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px; align-items: start; }
.nt-events { position: sticky; top: 86px; display: grid; gap: 2px; padding: 12px; }
.nt-group { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 650; padding: 10px 8px 4px; }
.nt-events a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 13px; font-weight: 550; color: var(--text-2); }
.nt-events a span { min-width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; background: var(--surface-2); color: var(--text-3); }
.nt-events a:hover { background: var(--surface-2); }
.nt-events a.is-on { background: var(--primary-50); color: var(--primary); }
.nt-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nt-vars code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; font-size: 12px; cursor: copy; }
.nt-card { border-left: 3px solid transparent; opacity: .72; transition: opacity .15s, border-color .15s; }
.nt-card.is-on { border-left-color: var(--success); opacity: 1; }
.nt-card .form-group + .form-group { margin-top: 10px; }
.nt-guard { display: grid; place-items: center; min-height: 96px; border-radius: 12px; background: var(--surface-2); color: var(--text); }
.ct-item summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.ct-item summary::-webkit-details-marker { display: none; }
.ct-tags { display: inline-flex; gap: 6px; align-items: center; }
.ct-view { margin-bottom: 12px; }
.ct-body { margin-top: 14px; padding: 16px 18px; border-radius: 12px; background: var(--surface-2); line-height: 1.65; max-height: 420px; overflow: auto; }
.ct-signs { display: grid; gap: 8px; }
.ct-signs details { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.ct-signs summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.ct-signs .ct-body { max-height: 260px; margin-top: 10px; }
@media (max-width: 1100px) { .nt-channels, .nt-tpl { grid-template-columns: 1fr; } .nt-events { position: static; } }

/* Menü uyarıları */
.nav-alert {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px;
  height: 20px; padding: 0 7px 0 5px; border-radius: 999px;
  background: #fff4e0; color: #b45309; font-size: 11px; font-weight: 700;
  box-shadow: inset 0 0 0 1px #f8d79b;
}
.nav-alert svg { width: 13px; height: 13px; fill: #f5a300; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.nav-item.active .nav-alert { background: #fff; }
.alert-menu { position: relative; }
.alert-menu > summary { list-style: none; cursor: pointer; }
.alert-menu > summary::-webkit-details-marker { display: none; }
.alert-menu .btn { border-color: #f8d79b; background: #fff8eb; color: #9a5a00; }
.alert-menu .btn svg { width: 16px; height: 16px; fill: #f5a300; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.alert-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 320px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(8, 27, 58, .16); padding: 8px;
}
.alert-pop a { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; }
.alert-pop a:hover { background: var(--surface-3); }
.alert-pop strong { display: block; font-size: 13px; }
.alert-pop span { color: var(--text-2); font-size: 12px; }
.alert-pop .nav-alert { margin: 1px 0 0; flex: 0 0 auto; }

/* Sözleşmeler */
.ct-vars { margin-bottom: 12px; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.ct-chip:hover { border-color: var(--primary); color: var(--primary); }
.ct-chip code { font-weight: 700; color: var(--primary); background: #fff; padding: 1px 6px; border-radius: 6px; }
.ct-chip em { font-style: normal; font-size: 11px; color: #9a6800; background: var(--warning-50); padding: 0 6px; border-radius: 99px; }
.ct-list > .ct-item + .ct-item { margin-top: 12px; }
.ct-item > summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ct-preview { border: 1px dashed var(--border); border-radius: 12px; background: var(--surface-2); }
.ct-preview-head { padding: 8px 12px; border-bottom: 1px dashed var(--border); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.ct-preview-body { padding: 12px; font-size: 13px; line-height: 1.6; max-height: 260px; overflow: auto; }
.ct-preview mark { background: var(--primary-50); color: var(--primary); border-radius: 4px; padding: 0 3px; }
.ct-preview mark.ct-empty { background: var(--warning-50); color: #9a6800; }
.ct-preview mark.ct-bad { background: #fff0f2; color: #c4233a; }

/* Burs: yıl ve ödeme ayarı şeridi */
.bp-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 14px 0; }
.bp-summary {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 12px 10px 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; text-align: left;
  box-shadow: var(--shadow); transition: border-color .15s;
}
.bp-summary:hover { border-color: var(--primary); }
.bp-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.bp-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bp-item { display: flex; flex-direction: column; gap: 2px; }
.bp-item small { color: var(--text-3); font-size: 11px; }
.bp-item strong { font-size: 13.5px; display: flex; gap: 4px; }
.bp-summary > .btn { margin-left: auto; }
.bp-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bp-months .check { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
@media (max-width: 640px) { .bp-months { grid-template-columns: repeat(3, 1fr); } .bp-summary > .btn { margin-left: 0; } }

/* Galeri ve albümler */
.gl-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.gl-album { display: grid; gap: 2px; padding: 8px 8px 10px; border: 1px solid var(--border); border-radius: 14px; background: #fff; text-align: left; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.gl-album:hover { border-color: #b9cdf0; }
.gl-album.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.gl-album strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px; }
.gl-album small { color: var(--text-3); font-size: 11.5px; }
.gl-cover { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--surface-3); color: var(--text-3); font-size: 28px; font-weight: 300; }
.gl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-cover svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.gl-album-new { border-style: dashed; }
.gl-album-new .gl-cover { background: var(--primary-50); color: var(--primary); }
.gl-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.gl-head h2 { margin: 0; font-size: 16px; }
.gl-head p { margin: 2px 0 0; }
.gl-head a { color: var(--primary); }
.gl-upload { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.gl-upload .form-group { min-width: 200px; }
.gl-drop { flex: 1 1 320px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed #b9cdf0; border-radius: 12px; background: var(--surface-3); cursor: pointer; position: relative; min-width: 0; }
.gl-drop.is-over { border-color: var(--primary); background: var(--primary-50); }
.gl-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gl-drop strong { display: block; font-size: 13.5px; }
.gl-drop small { color: var(--text-2); font-size: 12px; }
.gl-drop-ico { width: 40px; height: 40px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--primary); flex: 0 0 auto; }
.gl-drop-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.gl-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 8px; padding-bottom: 8px; }
.gl-bulk-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.gl-bulk-actions .form-select { width: auto; min-width: 170px; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.gl-item { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.gl-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-3); }
.gl-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-pick { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.gl-pick input { width: 16px; height: 16px; margin: 0; }
.gl-flag { position: absolute; top: 8px; right: 8px; }
.gl-replace { position: absolute; right: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(8,27,58,.72); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .15s; }
.gl-replace input { display: none; }
.gl-item:hover .gl-replace, .gl-replace.has-file { opacity: 1; }
.gl-replace.has-file { background: var(--success); }
.gl-item.is-picked { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.gl-fields { padding: 10px; display: grid; gap: 8px; }
.gl-row { display: flex; gap: 8px; min-width: 0; }
.gl-row .form-select { flex: 1; min-width: 0; }
.gl-row .btn { flex: 1; }
.gl-sort { width: 64px; flex: 0 0 64px; }
.gl-danger { border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media (hover: none) { .gl-replace { opacity: 1; } }

/* İçerik editörü (Jodit) */
.split.editor-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 1280px) { .split.editor-split { grid-template-columns: 1fr; } .split.editor-split.is-editing > :last-child { order: -1; } }
.jodit-container:not(.jodit_inline) { border-color: var(--border) !important; border-radius: 12px !important; overflow: hidden; }
.jodit-toolbar__box:not(:empty) { background: var(--surface-2) !important; border-bottom-color: var(--border) !important; }
.jodit-wysiwyg { font: 15px/1.65 var(--font); color: var(--text); padding: 14px 18px !important; }
.jodit-wysiwyg h2 { font-size: 20px; margin: 18px 0 8px; }
.jodit-wysiwyg h3 { font-size: 17px; margin: 16px 0 6px; }
.jodit-wysiwyg blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--primary); background: var(--surface-3); }
.jodit-source__mirror { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace !important; }

/* Muhasebe şeridi (aidat · kasa · bütçe) */
.fin-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.fin-link { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: #fff; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.fin-link:hover { border-color: #b9cdf0; }
.fin-link.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.fin-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: 0 0 auto; }
.fin-link.is-on .fin-ico { background: var(--primary); color: #fff; }
.fin-ico svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.fin-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.fin-label { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.fin-label .nav-alert { margin-left: 0; }
.fin-text small { color: var(--text-3); font-size: 11px; margin-top: 2px; }
.fin-text strong { font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fin-text em { font-style: normal; color: var(--text-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fin-bar { display: block; height: 5px; border-radius: 99px; background: #e6edf7; overflow: hidden; margin: 3px 0 2px; }
.fin-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--success), #2dd48a); border-radius: 99px; }

/* Ortak sayfa araçları */
.page-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.page-tools-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-tools-left .form-select, .page-tools-left .form-input { width: auto; min-width: 120px; }
.page-tools-right { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--text-3); border: 1px solid transparent; }
.icon-btn:hover { color: #c4233a; background: #fff0f2; border-color: #ffd5db; }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.search-input { position: relative; display: inline-flex; align-items: center; }
.search-input svg { position: absolute; left: 11px; width: 16px; height: 16px; stroke: var(--text-3); fill: none; stroke-width: 2; pointer-events: none; }
.search-input input { padding-left: 34px !important; min-width: 240px; }
.pos { color: #0d8a52; }
.neg { color: #c4233a; }
.amt { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }
th.amt { text-align: right; }
.amt.in { color: #0d8a52; }
.amt.out { color: #c4233a; }
tfoot td { font-weight: 700; background: var(--surface-2); border-bottom: 0; }
tbody tr:hover td { background: #fafcff; }

/* Bütçe */
.bt-sides { display: grid; grid-template-columns: 1fr 1fr .6fr; gap: 12px; }
.bt-side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bt-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bt-figures small, .bt-net small { display: block; color: var(--text-3); font-size: 11px; }
.bt-figures strong { font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.bt-progress { height: 8px; border-radius: 99px; background: #e6edf7; overflow: hidden; margin-top: 12px; }
.bt-progress > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--success), #2dd48a); }
.bt-gider .bt-progress > span { background: linear-gradient(90deg, #f5a300, #ffbf3d); }
.bt-gider .bt-progress.is-over > span { background: #e0434f; }
.bt-net { display: flex; flex-direction: column; justify-content: center; }
.bt-net strong { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bt-lines { list-style: none; margin: 0; padding: 0 8px 8px; }
.bt-lines li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.bt-lines li:hover { background: var(--surface-2); }
.bt-line-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bt-line-main small { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-share { display: block; height: 4px; border-radius: 99px; background: #eef2f8; overflow: hidden; margin-top: 4px; max-width: 260px; }
.bt-share > span { display: block; height: 100%; background: var(--primary); opacity: .55; }
.bt-line-amt { text-align: right; font-variant-numeric: tabular-nums; }
.bt-line-amt small { display: block; color: var(--text-3); font-size: 11px; }
@media (max-width: 1100px) { .bt-sides { grid-template-columns: 1fr; } }

/* Kasa hesap şeridi */
.acct-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.acct-card { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); min-width: 0; }
a.acct-card:hover { border-color: #b9cdf0; }
.acct-card.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.acct-card strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-kind { justify-self: start; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.acct-kind.bank { color: #5b45d6; }
.acct-kind.cash { color: #0d8a52; }
.acct-bal { font-size: 19px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acct-year { background: var(--surface-3); box-shadow: none; }
.acct-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.acct-line small { color: var(--text-2); }
.acct-line b { font-variant-numeric: tabular-nums; }
td.cell-wrap { white-space: normal; min-width: 180px; max-width: 360px; }
.card-warn { border-color: #f8d79b; box-shadow: 0 0 0 3px #fff6e3, var(--shadow); }
.card-warn h2 { display: flex; align-items: center; gap: 8px; }
.card-warn h2 .nav-alert { margin-left: 0; }
.table-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.metric-value.pos { color: #0d8a52; }
.metric-value.neg { color: #c4233a; }
.chip-filter { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: #fff; border: 1px solid var(--border); flex-wrap: wrap; }
.chip-filter button, .chip-filter a { padding: 6px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.chip-filter button b, .chip-filter a b { font-size: 11px; color: var(--text-3); background: var(--surface-2); padding: 0 6px; border-radius: 99px; }
.chip-filter .is-on { background: var(--primary-50); color: var(--primary); }
.chip-filter .is-on b { background: #fff; color: var(--primary); }
.icon-btn.edit:hover { color: var(--primary); background: var(--primary-50); border-color: #cfe0fb; }
.row-menu { position: relative; display: inline-block; }
.row-menu > summary { list-style: none; cursor: pointer; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu[open] > summary { color: var(--primary); background: var(--primary-50); }
.row-menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 15; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 40px rgba(8, 27, 58, .16); display: grid; gap: 2px; }
.row-menu-pop form { margin: 0; }
.row-menu-pop button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 550; }
.row-menu-pop button:hover { background: var(--surface-3); }
.row-menu-pop button.danger { color: #c4233a; }
.row-menu-pop button.danger:hover { background: #fff0f2; }
.table-wrap:has(.row-menu[open]) { overflow: visible; }

/* Üyeler */
.pill.red { background: #fff0f2; color: #c4233a; }
.mb-chips { margin-bottom: 12px; }
.chip-filter a { position: relative; }
.dot-warn { width: 7px; height: 7px; border-radius: 50%; background: #f5a300; box-shadow: 0 0 0 2px #fff; }
.mb-alert { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mb-alert > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.mb-person { display: flex; align-items: center; gap: 10px; }
.mb-person strong { display: block; }
.mb-person small { display: block; color: var(--text-3); font-size: 12px; }
.mb-person:hover strong { color: var(--primary); }
.mb-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; background: linear-gradient(135deg, #e5efff, #d3e3ff); color: var(--primary); font-size: 12px; font-weight: 700; }
.mb-ava img { width: 100%; height: 100%; object-fit: cover; }
.pill:not(.green):not(.orange):not(.blue):not(.red) { background: var(--surface-3); color: var(--text-2); }

/* Dernek ayarları */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.set-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.set-head h2 { margin: 0; font-size: 15px; }
.set-head p { margin: 2px 0 0; color: var(--text-2); font-size: 12.5px; }
.set-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex: 0 0 auto; }
.set-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.set-files { display: grid; gap: 10px; }
.set-file { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px dashed #c9d8f0; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.set-file:hover { border-color: var(--primary); }
.set-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.set-file strong { display: block; font-size: 13.5px; }
.set-file small { display: block; color: var(--text-2); font-size: 12px; }
.set-logo { width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.set-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.set-logo em { font-style: normal; font-size: 11px; color: var(--text-3); }
.set-doc svg { width: 26px; height: 26px; stroke: var(--text-3); fill: none; stroke-width: 1.6; }
.set-save { position: sticky; bottom: 0; margin-top: 12px; padding: 12px 0; background: linear-gradient(to top, var(--surface-2) 70%, transparent); display: flex; justify-content: flex-end; }
@media (max-width: 1100px) { .set-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .fin-nav, .acct-strip, .gl-albums { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(200px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .gl-albums { grid-auto-columns: 42%; }
  .fin-link, .acct-card, .gl-album { scroll-snap-align: start; }
  .fin-text strong { font-size: 16px; }
  .search-input input { min-width: 0; width: 100%; }
  .search-input { flex: 1 1 100%; }
  .page-tools-right { width: 100%; }
}
@media (max-width: 760px) { .page-tools-left { width: 100%; } }

/* Geniş açılır pencere (yazı ve sayfa editörü) */
dialog.sheet.sheet-wide { width: min(1080px, calc(100vw - 28px)); max-height: calc(100vh - 28px); }
dialog.sheet.sheet-wide .jodit-container { max-width: 100%; }
.post-table td.post-cell { white-space: normal; min-width: 260px; }
.post-table td.post-cell a:hover strong { color: var(--primary); }
.post-sum { max-width: 560px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }

/* Powered by */
.sidebar-foot { display: grid; gap: 4px; }
.sidebar-credit { font-size: 11px; color: var(--text-3); }
.sidebar-credit strong, .admin-credit strong, .login-credit strong { color: var(--primary); font-weight: 700; }
.admin-foot { display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 14px 22px 22px; color: var(--text-3); font-size: 12px; border-top: 1px solid var(--border); margin: 0 22px; }
.admin-foot a:hover { color: var(--primary); }
.login-credit { margin: 14px 0 0; text-align: center; color: var(--text-3); font-size: 12px; }
.dash-metric:hover { border-color: #b9cdf0; }
.dash-sub { margin: 22px 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dash-alert { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.locked-card { display: flex; gap: 14px; align-items: flex-start; max-width: 720px; }
.locked-card h2 { margin: 0 0 6px; font-size: 16px; }
.locked-card p { margin: 0 0 12px; line-height: 1.6; }

/* Burs evrak inceleme */
.rv-doc { display: flex; align-items: center; gap: 10px; }
.rv-doc strong { display: block; }
.rv-doc small { display: block; color: var(--text-3); font-size: 11.5px; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-doc:hover strong { color: var(--primary); }
.rv-thumb { width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-3); display: grid; place-items: center; overflow: hidden; font-size: 10px; font-weight: 700; color: var(--text-3); flex: 0 0 auto; }
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-reject { min-width: 280px; padding: 12px; gap: 8px; }
.rv-reject .btn { width: 100%; }
.tab .nav-alert { margin-left: 4px; }

/* Demo modu */
.demo-banner { margin: 14px 22px 0; padding: 10px 14px; border-radius: 12px; background: #fff8eb; border: 1px solid #f8d79b; color: #7a4a00; font-size: 13px; }
.demo-banner strong { margin-right: 6px; }
.demo-banner a { color: var(--primary); font-weight: 600; margin-left: 6px; }
.login-demo { margin-top: 14px; padding: 12px; border-radius: 12px; background: #f2f6fd; border: 1px dashed #b9cdf0; display: grid; gap: 4px; font-size: 13px; }
.login-demo code { font-weight: 700; }
.login-demo small { color: var(--text-3); }
.login-demo .btn { margin-top: 6px; }

/* Yan menü: daha sıkı aralıklar, görünür kaydırma çubuğu */
@media (min-width: 981px) {
  .sidebar-scroll .nav-item { min-height: 34px; padding: 6px 12px; margin: 1px 0; }
  .sidebar-scroll .nav-label { padding: 10px 12px 4px; }
}
.sidebar-scroll { scrollbar-width: thin; scrollbar-color: #c9d3e3 transparent; }
.sidebar-scroll::-webkit-scrollbar { width: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: #c9d3e3; border-radius: 99px; }
