:root {
  --bg: #0b1020;
  --panel: rgba(17, 24, 39, 0.88);
  --panel-light: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --muted: #94a3b8;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), transparent 25%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.22), transparent 25%),
    linear-gradient(135deg, #09101d, #0b1020 45%, #111827 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.topbar-left h2 {
  margin: 0;
  font-size: 30px;
}

.topbar-left p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}

.search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  width: 100%;
  font-size: 14px;
}

.search input::placeholder {
  color: #7f8aa3;
}

.button {
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.28);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}

.status-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #111827;
  background: var(--success);
}

.avatar.a1 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.avatar.a2 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.avatar.a3 { background: linear-gradient(135deg, #059669, #10b981); }
.avatar.a4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.avatar.a5 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }

@media (max-width: 960px) {
  .app {
    flex-direction: column;
  }

  .main {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .topbar-left h2 {
    font-size: 24px;
  }

  .search {
    width: 100%;
    min-width: 100%;
  }

  .topbar-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .main {
    padding-left: 14px;
    padding-right: 14px;
  }
}