:root {
  --bg: #0b1020;
  --bg-soft: #111936;
  --bg-panel: rgba(17, 25, 54, 0.78);
  --bg-panel-2: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e5edf7;
  --text-soft: #99a8c2;
  --text-dim: #6d7c99;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.18);
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.14);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.16);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.16);
  --yellow: #f59e0b;
  --yellow-soft: rgba(245, 158, 11, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --sidebar-width: 280px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.12), transparent 22%),
    linear-gradient(180deg, #08101f 0%, #0b1020 100%);
}

.hidden {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  position: relative;
  width: min(520px, 100%);
  overflow: hidden;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(17, 25, 54, 0.92) 0%, rgba(12, 18, 34, 0.96) 100%);
  box-shadow: var(--shadow);
}

.auth-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(48px);
  pointer-events: none;
  opacity: 0.55;
}

.auth-orb-left {
  background: rgba(249, 115, 22, 0.26);
  top: -90px;
  left: -70px;
}

.auth-orb-right {
  background: rgba(20, 184, 166, 0.20);
  right: -70px;
  bottom: -100px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 18px;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.04;
}

.auth-copy {
  margin: 0 0 24px;
  color: var(--text-soft);
  max-width: 46ch;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-meta {
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 14px;
}

.status-list {
  display: grid;
  gap: 8px;
}

.warning-line {
  color: #fecaca;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(12, 18, 34, 0.98) 0%, rgba(9, 14, 28, 0.98) 100%);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
  color: white;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.brand-title {
  font-weight: 700;
}

.brand-subtitle {
  color: var(--text-soft);
  font-size: 14px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-link {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.mini-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.status-stack,
.link-stack {
  display: grid;
  gap: 10px;
}

.status-line,
.link-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 14px;
}

.status-line strong {
  color: var(--text);
}

.status-warning {
  font-size: 13px;
  color: #fecaca;
  padding: 10px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
}

.main-shell {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.76);
  backdrop-filter: blur(16px);
}

.topbar-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-chip-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-chip {
  padding: 11px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  color: var(--text-soft);
  white-space: nowrap;
}

.content {
  padding: 28px;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.page-head h2,
.card-head h3,
.card-head h4 {
  margin: 0;
}

.hero-card,
.card,
.metric-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(17, 25, 54, 0.82) 0%, rgba(12, 18, 34, 0.92) 100%);
  box-shadow: var(--shadow);
}

.hero-card,
.card {
  border-radius: var(--radius);
}

.card {
  padding: 20px;
}

.card.subtle-card {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.card-head.compact {
  margin-bottom: 14px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  padding: 28px;
  margin-bottom: 22px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
}

.hero-copy {
  color: var(--text-soft);
  max-width: 62ch;
  line-height: 1.6;
  margin: 0 0 16px;
}

.hero-actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-side {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.kpi {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.kpi strong {
  display: block;
  font-size: 26px;
  margin-bottom: 6px;
}

.kpi span {
  color: var(--text-soft);
  font-size: 13px;
}

.metrics-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 22px;
}

.metric-card {
  border-radius: 22px;
  padding: 20px;
}

.metric-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}

.metric-subtitle {
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 6px;
}

.split-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.editor-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 330px minmax(0, 1fr);
}

.profile-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.list-column,
.editor-column {
  min-height: 0;
}

.list-scroll {
  max-height: calc(100vh - 260px);
  overflow: auto;
  display: grid;
  gap: 10px;
}

.list-row {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: 160ms ease;
}

.list-row:hover,
.list-row.active {
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
}

.list-row-main {
  display: grid;
  gap: 4px;
}

.list-row-main span {
  color: var(--text-soft);
  font-size: 14px;
}

.list-row-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.tiny-text {
  color: var(--text-soft);
  font-size: 13px;
}

.list-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  transition: 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

input[readonly],
textarea[readonly] {
  color: var(--text-soft);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.btn,
.ghost-btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 16px;
  cursor: pointer;
  transition: 160ms ease;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.btn-secondary,
.ghost-btn {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-danger {
  background: linear-gradient(135deg, var(--red) 0%, #f87171 100%);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.22);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn:disabled,
.ghost-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chip-row,
.status-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.badge,
.feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
}

.chip-accent,
.badge-accent {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.25);
}

.chip-info {
  background: rgba(20, 184, 166, 0.12);
  border-color: rgba(20, 184, 166, 0.25);
}

.chip-success,
.badge-success {
  background: var(--green-soft);
  border-color: rgba(34, 197, 94, 0.32);
}

.chip-danger,
.badge-danger {
  background: var(--red-soft);
  border-color: rgba(239, 68, 68, 0.32);
}

.chip-warning,
.badge-warning {
  background: var(--yellow-soft);
  border-color: rgba(245, 158, 11, 0.32);
}

.chip-muted,
.badge-muted {
  background: rgba(255, 255, 255, 0.04);
}

.feature-pill-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.feature-pill.allow {
  background: var(--green-soft);
  border-color: rgba(34, 197, 94, 0.3);
}

.feature-pill.deny {
  background: var(--red-soft);
  border-color: rgba(239, 68, 68, 0.3);
}

.limit-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.mini-stat {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.mini-stat strong {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.mini-stat span {
  color: var(--text-soft);
  font-size: 13px;
}

.toggle-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.toggle-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.toggle-card.compact {
  min-height: 0;
}

.toggle-card input[type="checkbox"] {
  justify-self: start;
}

.toggle-title {
  font-weight: 600;
}

.toggle-card small {
  color: var(--text-soft);
  line-height: 1.4;
}

.check-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: var(--text-soft);
}

.endpoint-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.endpoint-card p {
  margin: 6px 0 0;
  color: var(--text-soft);
  word-break: break-word;
}

.stack {
  display: grid;
  gap: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.table-wrap.compact {
  max-height: 420px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  background: rgba(11, 16, 32, 0.94);
  z-index: 1;
  color: var(--text-soft);
  font-weight: 600;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tiny-select {
  min-width: 140px;
}

.info-stack {
  display: grid;
  gap: 10px;
}

.details-block {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 18px 18px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 16px;
}

.details-block summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.details-block summary::-webkit-details-marker {
  display: none;
}

.space-bottom {
  margin-bottom: 12px;
}

.wrap {
  flex-wrap: wrap;
}

.code-block {
  margin: 0;
  white-space: pre-wrap;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(6, 12, 22, 0.9);
  color: #dbeafe;
  overflow: auto;
}

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
}

.inline-actions .ghost-btn,
.inline-actions .btn {
  white-space: nowrap;
}

.toast-root {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: toastIn 160ms ease;
}

.toast-info {
  background: rgba(17, 25, 54, 0.95);
}

.toast-success {
  background: rgba(12, 40, 24, 0.95);
  border-color: rgba(34, 197, 94, 0.25);
}

.toast-error {
  background: rgba(60, 19, 19, 0.95);
  border-color: rgba(239, 68, 68, 0.25);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-6px);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1400px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toggle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    grid-template-rows: auto auto auto auto;
  }

  .editor-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toggle-grid,
  .form-grid,
  .limit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .content,
  .topbar,
  .sidebar {
    padding: 18px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 28px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===== Responsive / Mobile refresh ===== */
body {
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

.topbar-main,
.sidebar-mobile-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-mobile-head {
  justify-content: space-between;
}

.btn-icon {
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.mobile-only {
  display: none;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  z-index: 39;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mobile-section-strip {
  display: none;
}

.mobile-section-strip {
  gap: 10px;
  overflow-x: auto;
  padding: 0 28px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile-section-strip::-webkit-scrollbar {
  display: none;
}

.mobile-section-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  padding: 10px 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: 160ms ease;
}

.mobile-section-btn.active {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.18);
}

.page-head,
.topbar-actions,
.admin-chip-wrap,
.link-line,
.status-line,
.endpoint-card {
  flex-wrap: wrap;
}

.link-line,
.endpoint-card,
.status-line {
  align-items: flex-start;
}

.link-line,
.status-line,
.endpoint-card p,
.code-block,
.admin-chip,
.tiny-text {
  overflow-wrap: anywhere;
}

.inline-actions {
  align-items: stretch;
}

.table-wrap {
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1121px) {
  .sidebar-overlay,
  .mobile-only,
  .mobile-section-strip {
    display: none !important;
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 360px);
    min-height: 100vh;
    overflow-y: auto;
    z-index: 40;
    transform: translateX(-104%);
    transition: transform 200ms ease;
    border-right: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  }

  body.mobile-nav-open .sidebar {
    transform: translateX(0);
  }

  body.mobile-nav-open .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-only {
    display: inline-grid;
  }

  .topbar {
    padding-bottom: 16px;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-chips,
  .chip-row {
    max-width: 100%;
  }

  .mobile-section-strip {
    display: flex;
  }

  .content {
    padding-top: 6px;
  }

  .list-scroll {
    max-height: none;
  }

  .sidebar-panel {
    border-radius: 16px;
  }
}

@media (max-width: 860px) {
  .auth-shell {
    padding: 18px;
  }

  .auth-card,
  .hero-card,
  .card,
  .metric-card {
    border-radius: 20px;
  }

  .hero-card,
  .card,
  .metric-card {
    padding: 18px;
  }

  .content,
  .topbar,
  .sidebar,
  .mobile-section-strip {
    padding-left: 18px;
    padding-right: 18px;
  }

  .mobile-section-strip {
    padding-bottom: 14px;
  }

  .topbar {
    align-items: stretch;
  }

  .topbar-main,
  .topbar-actions,
  .admin-chip-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions .btn,
  .hero-actions .ghost-btn,
  .inline-actions .btn,
  .inline-actions .ghost-btn {
    min-height: 44px;
  }

  .list-row {
    align-items: flex-start;
  }

  .list-row-meta {
    justify-items: start;
  }

  .table-wrap {
    border-radius: 16px;
  }
}

@media (max-width: 720px) {
  .content,
  .topbar,
  .sidebar {
    padding: 16px;
  }

  .mobile-section-strip {
    padding: 0 16px 14px;
  }

  .auth-card {
    padding: 24px;
  }

  .topbar-title {
    font-size: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .page-head h2 {
    font-size: 22px;
    line-height: 1.22;
  }

  .hero-kpis,
  .metrics-grid,
  .split-layout,
  .editor-layout,
  .profile-layout,
  .form-grid,
  .limit-grid,
  .toggle-grid {
    grid-template-columns: 1fr !important;
  }

  .list-row {
    display: grid;
    justify-content: stretch;
  }

  .list-row-meta {
    justify-items: start;
  }

  .admin-chip {
    white-space: normal;
  }

  .inline-actions .btn,
  .inline-actions .ghost-btn,
  .hero-actions .btn,
  .hero-actions .ghost-btn {
    width: 100%;
    justify-content: center;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .data-table {
    min-width: 0;
    border-collapse: separate;
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tbody {
    display: grid;
    gap: 12px;
  }

  .data-table tr {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(17, 25, 54, 0.88) 0%, rgba(10, 16, 31, 0.94) 100%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  }

  .data-table td {
    padding: 0;
    border: 0;
  }

  .data-table td + td {
    margin-top: 12px;
  }

  .data-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-dim);
  }

  .data-table td[colspan] {
    text-align: left;
  }

  .data-table td[colspan]::before {
    display: none;
  }
}
