body {
  background-color: #020617;
  color: #e2e8f0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.app-body,
.auth-body {
  background-image:
    linear-gradient(to right, rgba(51, 65, 85, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 65, 85, 0.2) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #020617 0%, #030712 46%, #040916 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.auth-body {
  background-image:
    linear-gradient(to right, rgba(51, 65, 85, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(51, 65, 85, 0.18) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.1), transparent 24%),
    linear-gradient(180deg, #020617 0%, #040914 100%);
}

.app-panel {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.94)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.03), rgba(59, 130, 246, 0.02));
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 0.8rem;
  box-shadow:
    0 14px 40px rgba(2, 6, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
}

.app-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.app-title {
  color: #f8fafc;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.app-page-title {
  font-size: 1.7rem;
  font-weight: 700;
}

.app-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
}

.app-subtitle {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.6;
}

.app-label {
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
}

.app-mono {
  font-family: 'IBM Plex Mono', monospace;
}

.app-navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(2, 6, 23, 0.82);
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 0.8rem;
  box-shadow:
    0 12px 30px rgba(2, 6, 23, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.app-brand-mark {
  display: inline-flex;
  height: 2.1rem;
  width: 2.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(34, 211, 238, 0.08);
  color: #67e8f9;
}

.app-brand-name {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
}

.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.app-nav-link:hover {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(100, 116, 139, 0.16);
  color: #f8fafc;
}

.app-nav-link-active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(34, 211, 238, 0.16);
  color: #f8fafc;
}

.app-user-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 0.7rem;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.app-input {
  background: rgba(2, 6, 23, 0.72) !important;
  border: 1px solid rgba(71, 85, 105, 0.82);
  border-radius: 0.65rem;
  color: #e2e8f0;
  font-size: 0.875rem;
  -webkit-text-fill-color: #e2e8f0;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.app-input::placeholder {
  color: #64748b;
}

.app-input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.16),
    0 0 0 4px rgba(34, 211, 238, 0.07);
}

.app-input:-webkit-autofill,
.app-input:-webkit-autofill:hover,
.app-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(2, 6, 23, 0.86) inset;
  -webkit-text-fill-color: #e2e8f0;
}

.app-button-primary,
.app-button-secondary,
.app-button-danger {
  border-radius: 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.app-button-primary {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  box-shadow:
    0 10px 24px rgba(34, 211, 238, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #04111d;
}

.app-button-primary:hover {
  box-shadow:
    0 14px 28px rgba(34, 211, 238, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.app-button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(100, 116, 139, 0.2);
  color: #e2e8f0;
}

.app-button-secondary:hover {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(34, 211, 238, 0.18);
  color: #f8fafc;
}

.app-button-danger {
  background: rgba(190, 24, 93, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.16);
  color: #fda4af;
}

.app-button-danger:hover {
  background: rgba(190, 24, 93, 0.12);
  border-color: rgba(251, 113, 133, 0.22);
  color: #ffe4e6;
}

.app-badge {
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.28rem 0.58rem;
  text-transform: uppercase;
}

.app-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-stat-chip {
  min-width: 7rem;
  padding: 0.6rem 0.75rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 0.7rem;
}

.app-stat-chip span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
}

.app-stat-chip strong {
  display: block;
  margin-top: 0.25rem;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 700;
}

.app-record-list {
  display: grid;
}

.app-record + .app-record {
  border-top: 1px solid rgba(30, 41, 59, 0.84);
}

.app-record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-meta-grid {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(30, 41, 59, 0.84);
}

.app-meta-grid dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #64748b;
}

.app-meta-grid dd {
  margin-top: 0.24rem;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.45;
  word-break: break-word;
}

.app-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(30, 41, 59, 0.84);
}

.app-inline-form {
  display: flex;
  flex: 1 1 18rem;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
}

.app-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.app-table td {
  vertical-align: top;
  color: #e2e8f0;
}

.notice-panel {
  border-radius: 0.7rem;
  border: 1px solid rgba(100, 116, 139, 0.18);
  padding: 0.75rem 0.9rem;
}

.notice-panel-success {
  background: rgba(6, 78, 59, 0.22);
  border-color: rgba(16, 185, 129, 0.22);
  color: #d1fae5;
}

.notice-panel-error {
  background: rgba(127, 29, 29, 0.22);
  border-color: rgba(248, 113, 113, 0.18);
  color: #fee2e2;
}

@media (max-width: 767px) {
  .app-page-title {
    font-size: 1.35rem;
  }

  .app-navbar {
    padding: 0.75rem;
  }
}
