:root {
  --nw-primary: #1464dc;
  --nw-primary-dark: #0d4fb3;
  --nw-ink: #0f172a;
  --nw-muted: #64748b;
  --nw-line: #e8edf5;
  --nw-soft: #f5f8fc;
  --nw-sidebar: 288px;
}

* { box-sizing: border-box; }

.nw-body {
  margin: 0;
  color: var(--nw-ink);
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(20, 100, 220, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
  min-height: 100vh;
}

.nw-body--guest {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(700px 360px at 15% 10%, rgba(20, 100, 220, 0.16), transparent 55%),
    radial-gradient(600px 320px at 90% 90%, rgba(243, 146, 0, 0.12), transparent 50%),
    #0b1524;
}

.nw-sidebar {
  width: var(--nw-sidebar);
  min-width: var(--nw-sidebar);
  background: #fff;
  border-right: 1px solid var(--nw-line);
}

.nw-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.nw-brand img {
  width: auto;
  max-height: 40px;
  object-fit: contain;
}

.nw-brand__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8f1fe;
  color: var(--nw-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nw-section-label {
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.nw-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: #536176;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nw-link i {
  font-size: 1.1rem;
  color: #6b7c8f;
}

.nw-link:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.nw-link.active {
  background: #e8f1fe;
  color: var(--nw-primary);
}

.nw-link.active i {
  color: var(--nw-primary);
}

.nw-main {
  max-width: 1280px;
}

.nw-guest {
  width: min(440px, 100%);
}

.nw-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nw-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nw-primary);
}

.nw-title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.nw-lead {
  margin: 0.35rem 0 0;
  color: var(--nw-muted);
  font-size: 0.95rem;
}

.nw-kpi {
  border: 1px solid var(--nw-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 40, 71, 0.04);
  height: 100%;
}

.nw-kpi__label {
  color: var(--nw-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.nw-kpi__value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.nw-kpi__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f1fe;
  color: var(--nw-primary);
  font-size: 1.1rem;
}

.nw-panel {
  border: 1px solid var(--nw-line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 40, 71, 0.04);
}

.nw-status {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eef2f7;
  color: #475569;
}

.nw-status.draft { background: #eef2f7; color: #475569; }
.nw-status.provisioning { background: #fff7ed; color: #c2410c; }
.nw-status.testing { background: #ecfdf5; color: #047857; }
.nw-status.active { background: #e0f2fe; color: #0369a1; }
.nw-status.archived { background: #fef2f2; color: #b91c1c; }

.nw-table {
  margin: 0;
  font-size: 0.92rem;
}

.nw-table thead th {
  background: var(--nw-soft);
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom-color: var(--nw-line);
  white-space: nowrap;
}

.nw-table td,
.nw-table th {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-color: var(--nw-line);
}

.nw-table tbody tr:hover td {
  background: #fafbfd;
}

.nw-table a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.nw-table a:hover {
  color: var(--nw-primary);
}

.nw-table small {
  display: block;
  color: var(--nw-muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

.nw-login-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  padding: 1.75rem;
}

.nw-login-card h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.7rem;
  margin: 0.25rem 0 1.25rem;
  letter-spacing: -0.02em;
}

.nw-login-card .field {
  margin-bottom: 1rem;
}

.nw-login-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #334155;
}

.nw-login-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8e1ee;
  border-radius: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
}

.nw-login-card button[type="submit"] {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #20b8e6 0%, #1464dc 100%);
  color: #fff;
  font-weight: 800;
}

.nw-login-card .errorlist {
  color: #b91c1c;
  font-size: 0.85rem;
  padding-left: 1.1rem;
}

.nw-filters .form-control,
.nw-filters .form-select {
  min-height: 46px;
  border-radius: 0.75rem;
  border-color: #d8e1ee;
}

.nw-section {
  scroll-margin-top: 1rem;
}

.nw-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.nw-meta-item {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: var(--nw-soft);
  border: 1px solid var(--nw-line);
}

.nw-meta-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nw-muted);
  margin-bottom: 0.25rem;
}

.nw-meta-item strong {
  font-size: 0.98rem;
  word-break: break-word;
}

.nw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-bottom: 1px solid var(--nw-line);
  margin: 1.25rem 0 0;
  padding-bottom: 0;
}

.nw-tabs a {
  padding: 0.7rem 0.95rem;
  color: var(--nw-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.nw-tabs a:hover {
  color: var(--nw-ink);
}

code {
  font-size: 0.84rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8e1ee;
  border-radius: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
}

.field input[type="color"] {
  width: 5.5rem;
  padding: 0.25rem;
}

.errorlist {
  color: #b91c1c;
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

@media (max-width: 991.98px) {
  .nw-sidebar {
    width: 100%;
    min-width: 0;
    border-right: 0;
  }
  .nw-meta-grid {
    grid-template-columns: 1fr;
  }
}
