* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; background: #0b1018; color: #e8eef7; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.sidebar { background: #070a10; border-right: 1px solid #182336; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: grid; gap: 4px; margin-bottom: 28px; }
.brand span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #2f87ff; color: #7db5ff; font-weight: 800; }
.brand strong { font-size: 18px; }
.nav { width: 100%; border: 0; color: #aab6c8; background: transparent; padding: 13px 14px; margin-bottom: 6px; text-align: left; border-radius: 8px; cursor: pointer; }
.nav.active, .nav:hover { background: #112033; color: #fff; }
main { padding: 24px; min-width: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
h1 { margin: 0 0 8px; font-size: 26px; }
p { margin: 0; color: #8d9bb0; }
button { background: #1f7aff; color: white; border: 0; border-radius: 8px; padding: 10px 14px; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 14px; }
.card, .panel { background: #101722; border: 1px solid #1f2b3e; border-radius: 8px; padding: 16px; }
.metric { font-size: 30px; font-weight: 800; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; background: #101722; border: 1px solid #1f2b3e; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #1f2b3e; vertical-align: top; }
th { color: #7db5ff; background: #0c1320; }
input, textarea, select { width: 100%; background: #0b1018; color: #e8eef7; border: 1px solid #2a3850; border-radius: 8px; padding: 10px; }
textarea { min-height: 84px; resize: vertical; }
.form { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.form .wide { grid-column: 1 / -1; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.muted { color: #8d9bb0; font-size: 13px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #162941; color: #8fc2ff; }
#toast { position: fixed; right: 20px; bottom: 20px; background: #162941; color: #fff; border: 1px solid #2f87ff; padding: 12px 16px; border-radius: 8px; opacity: 0; transform: translateY(8px); transition: .2s; }
#toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .brand { grid-column: 1 / -1; }
  main { padding: 16px; }
  header { align-items: flex-start; flex-direction: column; }
  .grid, .form { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}
