:root {
  --bg: #f3f5f8;
  --page: #f3f5f8;
  --card: #ffffff;
  --line: #e4e8ee;
  --line-strong: #c3cad4;
  --text: #0f1728;
  --muted: #3e4c5e;
  --navy: #152033;
  --navy-2: #24344a;
  --blue: #2563eb;
  --blue-soft: #eef3ff;
  --ok-bg: #e8f8ef;
  --ok: #067647;
  --wait-bg: #fff6e5;
  --wait: #b54708;
  --rail: 248px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
  --ease: 160ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--page);
  color: var(--text);
  font: 14px/1.55 ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

body.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(900px 420px at 50% -8%, #dce7f8 0%, transparent 70%),
    var(--page);
}

.login-box {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px 32px 32px;
}

.login .brand,
.home .brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.login .brand { margin-bottom: 28px; }

.mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #24344a, var(--navy));
  color: #fff;
  font-weight: 700;
  border-radius: 11px;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.brand strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand small { color: var(--muted); font-size: 12px; }

.login h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.login form { display: flex; flex-direction: column; gap: 14px; }

.login label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.login input,
.home .add-row input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  border-radius: 11px;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.login input:focus,
.home .add-row input:focus,
.home .search input:focus,
.home .modal-card input:focus {
  border-color: #93b4f8;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login button,
.home .add-row button,
.home .btn {
  height: 40px;
  padding: 0 16px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 11px;
  transition: background var(--ease), transform var(--ease);
}

.login button { height: 44px; margin-top: 6px; width: 100%; }
.login button:hover,
.home .add-row button:hover,
.home .btn:hover { background: var(--navy-2); }
.home .btn:active { transform: translateY(1px); }

.login .err,
.home .err { color: #b42318; font-size: 13px; }

body.home {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: 8px;
  padding: 8px;
  height: 100vh;
  overflow: hidden;
}

.home .rail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.home .rail-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 14px;
  background: var(--navy);
  color: #fff;
}

.home .rail-head .mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  font-size: 15px;
}

.home .rail-head strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.3;
  color: #fff;
}

.home nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.home nav a,
.home .out {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.home nav a:hover,
.home .out:hover {
  color: var(--text);
  background: #f8fafc;
  border-color: #d5dce6;
}

.home nav a.on {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c5d6fb;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.home .nav-ico {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f4f6fa;
  color: var(--muted);
}

.home nav a.on .nav-ico {
  background: #fff;
  border-color: #c5d6fb;
  color: var(--blue);
}

.home .nav-ico svg {
  width: 16px;
  height: 16px;
  display: block;
}

.home .user {
  margin-top: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.home .user .mark {
  width: 34px;
  height: 34px;
  font-size: 11px;
  border-radius: 50%;
}
.home .user b { display: block; font-size: 13px; }
.home .user small { color: var(--muted); font-size: 12px; }
.home .badge-role {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

.home .out {
  height: auto;
  min-height: 48px;
  margin: 0 12px 10px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.home .stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home .toolbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 16px;
}

.home .toolbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home .toolbar-title .nav-ico {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c5d6fb;
}

.home .toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.home .detail {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
}

.home .crumb { color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.home h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.home .host { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }

.home .view-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
}
.home .view-head[hidden] { display: none !important; }
body.home:not([data-view="genel"]) .detail > .view-head:not(.split) { display: none; }

.home .view-head .nav-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c5d6fb;
}

.home .view-head .nav-ico svg { width: 18px; height: 18px; }

.home .view-head strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.home .view-head small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.home .kicker {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.home .stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

body.home[data-view="whitelabel"] .stat-cards,
body.home[data-view="entegratorler"] .stat-cards { display: none; }

.home .stat {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: none;
  padding: 10px 12px;
  border-radius: 12px;
}

.home .stat .nav-ico {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c5d6fb;
}

.home .stat h3 {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
  margin: 0;
  padding-right: 0;
}

.home .stat .kicker {
  margin: 0 0 2px;
  min-height: 0;
}

.home .gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.home .gauge {
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  gap: 12px;
}

.home .gauge-copy { min-width: 0; }

.home .gauge h3 {
  padding-right: 0;
  margin: 0 0 2px;
}

.home .gauge p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.home .gauge-ring {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
}

.home .gauge-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.home .ring-track {
  fill: none;
  stroke: #e7ebf2;
  stroke-width: 8;
}

.home .ring-value {
  fill: none;
  stroke: var(--ok);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.327;
  stroke-dashoffset: 251.327;
  transition: stroke-dashoffset 500ms ease, stroke 200ms ease;
}

.home .ring-value.ok { stroke: var(--ok); }
.home .ring-value.warn { stroke: var(--wait); }
.home .ring-value.hot { stroke: #b42318; }

.home .gauge-ring strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home .perf {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 12px 8px;
}

.home .perf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.home .perf-head strong {
  font-size: 15px;
  font-weight: 600;
  padding-right: 0;
  margin: 0;
}

.home .perf-ranges { display: flex; flex-wrap: wrap; gap: 6px; }

.home .perf-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 13px;
}

.home .perf-stats b { color: var(--text); font-weight: 600; }

.home .perf-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.home .lg-cpu::before,
.home .lg-mem::before,
.home .lg-disk::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
}

.home .lg-cpu::before { background: var(--blue); }
.home .lg-mem::before { background: var(--navy); }
.home .lg-disk::before { background: var(--wait); }

.home .perf svg {
  width: 100%;
  flex: 1 1 auto;
  min-height: 80px;
  display: block;
}

.home .perf-grid {
  stroke: #e7ebf2;
  stroke-width: 1;
}

.home .area-cpu { fill: rgba(37, 99, 235, 0.16); }
.home .line-cpu { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.home .area-mem { fill: rgba(21, 32, 51, 0.12); }
.home .line-mem { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.home .area-disk { fill: rgba(181, 71, 8, 0.10); }
.home .line-disk { fill: none; stroke: var(--wait); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.home .perf-empty { fill: var(--muted); font-size: 12px; }

.home .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home .card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  transition: box-shadow var(--ease), border-color var(--ease);
}

.home .card:hover {
  border-color: #9aa3b2;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
}

.home .card.perf {
  flex-direction: column;
  align-items: stretch;
}

.home .card-main {
  flex: 1;
  min-width: 0;
  position: relative;
}

.home .card .nav-ico { color: var(--muted); }

.home .card.stat .nav-ico {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #c5d6fb;
}

.home .card h3 { font-size: 15px; margin: 0 0 4px; padding-right: 76px; }
.home .card.gauge h3 { padding-right: 0; margin: 10px 0 4px; }
.home .card.gauge p { margin-bottom: 0; }
.home .card.stat {
  padding: 6px 10px;
  gap: 8px;
  min-height: 0;
  align-items: center;
}
.home .card.stat .nav-ico {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.home .card.stat .nav-ico svg { width: 14px; height: 14px; }
.home .card.stat h3 {
  font-size: 14px;
  margin: 0;
  padding-right: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.home .card.stat .kicker { margin: 0; }
.home .card-main > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.home .dot {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 64px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
}

.home .dot.ok { background: var(--ok-bg); color: var(--ok); }
.home .dot.ok::after { content: "CANLI"; }
.home .dot.wait { background: var(--wait-bg); color: var(--wait); }
.home .dot.wait::after { content: "BEKLEMEDE"; }

.home dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px 12px;
  font-size: 13px;
}
.home dt { color: var(--muted); }
.home dd { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }

.home .ns-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 14px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.home .hint { color: var(--muted); font-size: 13px; margin-bottom: 16px; max-width: 720px; }

.home .view-head.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.home .view-head.split .search { flex: 1; min-width: 0; }

.home .search input {
  width: 100%;
  max-width: 440px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: #f8fafc;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.home .search input:focus { background: #fff; }

.home .list-total {
  flex: 0 0 auto;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

body.home[data-view="whitelabel"] .detail,
body.home[data-view="entegratorler"] .detail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.home[data-view="whitelabel"] .detail > section[data-view="whitelabel"]:not([hidden]),
body.home[data-view="entegratorler"] .detail > section[data-view="entegratorler"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

body.home[data-view="genel"] .detail {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.home[data-view="genel"] .detail > .view-head {
  flex: 0 0 auto;
  margin-bottom: 0;
}

body.home[data-view="genel"] .stat-cards { flex: 0 0 auto; margin-bottom: 0; }

body.home[data-view="genel"] .detail > section[data-view="genel"] {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.home[data-view="genel"] .view-head,
body.home[data-view="genel"] .gauges { margin-bottom: 0; flex: 0 0 auto; }

body.home[data-view="genel"] .perf {
  flex: 1 1 auto;
  min-height: 110px;
}

body.home[data-view="genel"] .grid {
  flex: 0 0 auto;
  min-height: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
}

body.home[data-view="genel"] .grid .card {
  padding: 10px 12px;
  height: auto;
}

body.home[data-view="genel"] .grid .card-main > p { display: none; }

body.home[data-view="genel"] .grid .card h3 { margin-bottom: 8px; }

.home .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfcfe;
  padding: 6px 8px 2px;
}

.home .dom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 14px;
}

.home .dom-table thead th {
  text-align: left;
  padding: 10px 12px;
  border: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: #fbfcfe;
  z-index: 1;
}

.home .dom-table tbody td {
  text-align: left;
  padding: 13px 12px;
  white-space: nowrap;
  background: #fff;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.home .dom-table tbody td:first-child {
  border-left: 1px solid var(--line-strong);
  border-radius: 10px 0 0 10px;
}

.home .dom-table tbody td:last-child {
  border-right: 1px solid var(--line-strong);
  border-radius: 0 10px 10px 0;
}

.home .dom-table tbody tr:hover td {
  background: #f8faff;
}

.home .dom-table .num {
  width: 36px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.home .dom-table .menu-col { width: 88px; text-align: right; }

.home .dom-table.compact {
  border-spacing: 0 4px;
  font-size: 13px;
}
.home .dom-table.compact thead th { padding: 6px 10px; font-size: 11px; }
.home .dom-table.compact tbody td { padding: 6px 10px; }
.home .dom-table.compact tbody td:first-child { border-radius: 8px 0 0 8px; }
.home .dom-table.compact tbody td:last-child { border-radius: 0 8px 8px 0; }
.home .dom-table.compact .btn-sm {
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 7px;
}
.home .dom-table.compact .state { height: 20px; min-width: 64px; font-size: 11px; padding: 0 8px; }
.home .dom-table.compact tbody tr.can-drag { cursor: grab; touch-action: none; user-select: none; }
.home .dom-table.compact tbody tr.dragging td { background: #eef3ff; }
.home .drag-grip {
  display: inline-block;
  width: 10px;
  height: 12px;
  margin-right: 6px;
  vertical-align: -1px;
  background-image: radial-gradient(circle, #8b97a8 1.15px, transparent 1.25px);
  background-size: 4px 4px;
  opacity: 0.85;
}
.home .dom-table.compact tbody tr:not(.can-drag) .drag-grip { display: none; }
body.ent-dragging { cursor: grabbing !important; user-select: none; }
body.ent-dragging * { cursor: grabbing !important; }

.home .row-menu {
  position: fixed;
  z-index: 50;
  width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.home .row-menu[hidden] { display: none; }
.home .row-menu button {
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}
.home .row-menu button:hover:not(:disabled) { background: var(--blue-soft); }
.home .row-menu button:disabled { color: #b0b6bf; cursor: default; }
.home .row-menu button.danger { color: #b42318; }
.home .row-menu button.danger:hover:not(:disabled) { background: #fff5f4; }

.home .btn-sm {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 9px;
  transition: border-color var(--ease), background var(--ease);
}

.home .btn-sm:hover { border-color: #c5ccd8; background: #f8fafc; }
.home .btn-sm.on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.home .btn-sm.danger { color: #b42318; border-color: #f0c4c0; }
.home .btn-sm.danger:hover { background: #fff5f4; }
.home .btn-sm:disabled { opacity: 0.7; cursor: default; }

.home .state {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 22px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.home .state.ok { background: var(--ok-bg); color: var(--ok); border-color: #9fe1b8; }
.home .state.wait { background: var(--wait-bg); color: var(--wait); border-color: #f0c989; }
.home .state.off { background: #eef0f3; color: var(--muted); border-color: #cfd6df; }

.home .tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.home .modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.36);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 40;
}
.home .modal[hidden] { display: none; }
.home .modal-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
  padding: 24px 22px 18px;
}
.home .modal-card.wide {
  max-width: 720px;
  max-height: min(90vh, 860px);
  overflow: auto;
}
.home .form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.home .form-meta b { color: var(--text); font-weight: 650; }
.home .switch {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-size: 13px;
  color: var(--text);
}
.home .switch input { width: 18px; height: 18px; }
.home .hint.tight { margin-bottom: 12px; }
.home .kicker-form {
  margin: 6px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.home .form-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.home .modal-card.wide label { margin-bottom: 10px; }
.home .modal-card.wide input { height: 40px; font-size: 13px; }
.home .modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 8px;
}
.home .modal-card h3 { font-size: 18px; letter-spacing: -0.03em; margin-bottom: 8px; }
.home .modal-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.home .modal-card input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  outline: none;
}
.home .modal-actions .out {
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  justify-content: center;
}

@media (max-width: 1180px) {
  body.home[data-view="genel"] .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.home {
    grid-template-columns: 1fr;
    padding: 10px;
    height: auto;
    overflow: auto;
    min-height: 100vh;
  }
  .home .detail { padding: 16px; overflow: visible; }
  .home .toolbar { flex-direction: column; align-items: flex-start; }
  .home .view-head.split { flex-wrap: wrap; }
  .home .search input { max-width: none; }
  .home .form-grid.two { grid-template-columns: 1fr; }
  .home .grid,
  .home .gauges,
  .home .stat-cards { grid-template-columns: 1fr; }
}
