:root {
  --bg-0: #0b0a1a;
  --bg-1: #15122b;
  --bg-2: #1c1638;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-soft: #b7b3c9;
  --text-mute: #8a849f;
  --purple: #a855f7;
  --purple-2: #7c3aed;
  --blue: #3b82f6;
  --pink: #ec4899;
  --teal: #14b8a6;
  --green: #22c55e;
  --orange: #f59e0b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --sidebar: 260px;
  --font: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
}

button,
input {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

/* Background */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(124, 58, 237, 0.45), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(59, 130, 246, 0.28), transparent 50%),
    radial-gradient(800px 500px at 70% 90%, rgba(236, 72, 153, 0.22), transparent 55%),
    linear-gradient(160deg, #0d0b1c 0%, #141028 45%, #0f1730 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-1 {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 20%;
  background: #7c3aed;
  animation: float 12s ease-in-out infinite;
}

.orb-2 {
  width: 280px;
  height: 280px;
  right: 8%;
  top: -40px;
  background: #2563eb;
  animation: float 14s ease-in-out infinite reverse;
}

.orb-3 {
  width: 320px;
  height: 320px;
  right: 18%;
  bottom: -80px;
  background: #db2777;
  animation: float 16s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(24px); }
}

/* Layout */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: 14px;
  height: 100vh;
  padding: 14px;
  overflow: hidden;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.glass-soft {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-soft);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 16px 14px 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-right: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 14px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.28), rgba(124, 58, 237, 0.12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.25);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 40px;
  flex: 1;
}

.waveform span {
  width: 3px;
  border-radius: 99px;
  transform-origin: center;
  animation: wave 1.1s ease-in-out infinite;
}

.waveform span:nth-child(odd) { height: 12px; animation-delay: 0.05s; }
.waveform span:nth-child(even) { height: 22px; animation-delay: 0.15s; }
.waveform span:nth-child(3n) { height: 32px; animation-delay: 0.25s; }
.waveform span:nth-child(4n) { height: 16px; animation-delay: 0.35s; }
.waveform span:nth-child(5n) { height: 26px; animation-delay: 0.1s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.45); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Main */
.main {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-org-switch {
  display: flex;
  align-items: center;
}

.header-org-switch select {
  max-width: 180px;
  height: 36px;
  padding: 0 32px 0 10px;
  border-radius: 12px;
  border: 1px solid var(--glass-border-soft);
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(226,232,240,0.75)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}

.header-org-switch select:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.header-org-switch select option {
  background: #1a1630;
  color: #f1f5f9;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  cursor: default;
  color: var(--text-soft);
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border-soft);
  border-radius: 50%;
  backdrop-filter: blur(16px);
}

.icon-btn.tiny {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn.tiny svg {
  width: 16px;
  height: 16px;
}

.badge {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(15, 12, 30, 0.9);
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-meta strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.user-meta span {
  font-size: 0.75rem;
  color: var(--text-mute);
}

.chevron {
  width: 16px;
  height: 16px;
  color: var(--text-mute);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: default;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: white;
  background: linear-gradient(110deg, #9333ea, #db2777);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.4);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 8px;
}

.greeting {
  flex-shrink: 0;
}

.greeting.has-search .greeting-text h1 {
  margin: 0 0 2px;
}

.greeting.has-search .greeting-text p {
  margin: 0;
}

.greeting h1 {
  margin: 0 0 2px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.greeting p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  position: relative;
  padding: 18px 18px 12px;
  overflow: hidden;
  min-height: 148px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.stat-icon.purple {
  background: linear-gradient(145deg, #a855f7, #7c3aed);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.stat-icon.blue {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.stat-icon.pink {
  background: linear-gradient(145deg, #f472b6, #db2777);
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
}

.stat-icon.teal {
  background: linear-gradient(145deg, #2dd4bf, #0d9488);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.stat-trend {
  font-size: 0.78rem;
  font-weight: 500;
}

.stat-trend.up {
  color: #4ade80;
}

.sparkline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 42px;
  opacity: 0.95;
}

.spark-line {
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spark-line.purple { stroke: #c084fc; }
.spark-line.blue { stroke: #60a5fa; }
.spark-line.pink { stroke: #f472b6; }
.spark-line.teal { stroke: #2dd4bf; }

/* Panels */
.grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.bottom-grid {
  flex: 0.9;
}

.panel {
  padding: 12px 14px 10px;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-mute);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: default;
}

.tab.active {
  color: white;
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.35);
}

.task-list,
.client-list,
.mail-list,
.agenda-list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.task-item {
  display: grid;
  grid-template-columns: 22px 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
}

.checkbox.checked {
  background: linear-gradient(145deg, #a855f7, #7c3aed);
  border-color: transparent;
}

.checkbox.checked svg {
  width: 11px;
  height: 11px;
  color: white;
}

.task-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.task-main strong {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-time {
  font-size: 0.75rem;
  color: var(--text-mute);
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.tag.purple {
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.2);
}

.tag.blue {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.2);
}

.task-avatars {
  display: flex;
}

.task-avatars img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(20, 16, 40, 0.9);
  margin-left: -8px;
}

.task-avatars img:first-child {
  margin-left: 0;
}

.star {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.25);
}

.star.filled {
  color: #fbbf24;
  fill: #fbbf24;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #c4b5fd;
  flex-shrink: 0;
}

.panel-link svg {
  width: 15px;
  height: 15px;
}

/* Clients */
.client-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.client-item {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.client-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.client-avatar.c1 { background: linear-gradient(145deg, #8b5cf6, #6366f1); }
.client-avatar.c2 { background: linear-gradient(145deg, #f472b6, #db2777); }
.client-avatar.c3 { background: linear-gradient(145deg, #38bdf8, #2563eb); }
.client-avatar.c4 { background: linear-gradient(145deg, #2dd4bf, #0f766e); }

.client-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.client-meta strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.client-meta span {
  font-size: 0.75rem;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status.active {
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
}

.status.pending {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
}

/* Activity */
.mail-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.mail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mail-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.mail-item.unread {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.18);
}

.mail-item.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #a855f7, #ec4899);
}

.mail-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: white;
  flex-shrink: 0;
}

.mail-avatar.purple { background: linear-gradient(145deg, #a855f7, #7c3aed); }
.mail-avatar.blue { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.mail-avatar.pink { background: linear-gradient(145deg, #f472b6, #db2777); }
.mail-avatar.teal { background: linear-gradient(145deg, #2dd4bf, #0d9488); }

.mail-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mail-top strong {
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-item.unread .mail-top strong {
  font-weight: 700;
}

.mail-top time {
  font-size: 0.7rem;
  color: var(--text-mute);
  white-space: nowrap;
  flex-shrink: 0;
}

.mail-subject {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-preview {
  font-size: 0.72rem;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Agenda */
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: default;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: stretch;
}

.agenda-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  padding-top: 10px;
}

.agenda-bar {
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid transparent;
}

.agenda-bar strong {
  font-size: 0.92rem;
  font-weight: 650;
}

.agenda-bar span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.agenda-bar.purple {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.35), rgba(168, 85, 247, 0.12));
  border-color: rgba(168, 85, 247, 0.28);
  box-shadow: inset 3px 0 0 #a855f7;
}

.agenda-bar.blue {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0.12));
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: inset 3px 0 0 #3b82f6;
}

.agenda-bar.pink {
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.35), rgba(236, 72, 153, 0.12));
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: inset 3px 0 0 #ec4899;
}

/* Voice listening panel (sidebar) */
.voice-panel {
  margin-top: auto;
  width: 100%;
  padding: 20px 14px 18px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  background: rgba(22, 16, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.12) inset,
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(124, 58, 237, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.voice-panel-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.waveform-panel {
  width: 100%;
  height: 44px;
  justify-content: center;
  gap: 2px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.waveform-panel span {
  width: 2.5px;
  background: linear-gradient(180deg, #22d3ee 0%, #a855f7 50%, #f472b6 100%);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.35);
}

.waveform-panel span:nth-child(6n + 1) {
  background: linear-gradient(180deg, #67e8f9, #38bdf8);
}

.waveform-panel span:nth-child(6n + 2) {
  background: linear-gradient(180deg, #38bdf8, #818cf8);
}

.waveform-panel span:nth-child(6n + 3) {
  background: linear-gradient(180deg, #818cf8, #a855f7);
}

.waveform-panel span:nth-child(6n + 4) {
  background: linear-gradient(180deg, #a855f7, #d946ef);
}

.waveform-panel span:nth-child(6n + 5) {
  background: linear-gradient(180deg, #d946ef, #f472b6);
}

.waveform-panel span:nth-child(6n) {
  background: linear-gradient(180deg, #f472b6, #fb7185);
}

.voice-panel-status {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.voice-panel-hint {
  margin: 0 0 16px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(199, 194, 216, 0.85);
  max-width: 200px;
}

.mic-ring {
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  padding: 3px;
  cursor: default;
  background: conic-gradient(
    from 200deg,
    #22d3ee,
    #818cf8,
    #a855f7,
    #ec4899,
    #22d3ee
  );
  box-shadow:
    0 0 28px rgba(168, 85, 247, 0.55),
    0 0 48px rgba(236, 72, 153, 0.25);
  animation: ring-glow 2.8s ease-in-out infinite;
}

.mic-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #2a2150 0%, #161028 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mic-ring-inner svg {
  width: 24px;
  height: 24px;
}

@keyframes ring-glow {
  0%, 100% {
    box-shadow:
      0 0 24px rgba(168, 85, 247, 0.45),
      0 0 40px rgba(34, 211, 238, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 34px rgba(236, 72, 153, 0.55),
      0 0 55px rgba(168, 85, 247, 0.3);
    transform: scale(1.03);
  }
}

/* Responsive */
@media (max-width: 1280px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .user-meta {
    display: none;
  }
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .topbar-right {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .task-item {
    grid-template-columns: 22px 1fr auto;
    grid-template-areas:
      "check main star"
      "check tags avatars";
  }

  .task-item .checkbox { grid-area: check; }
  .task-item .task-main { grid-area: main; }
  .task-item .star { grid-area: star; }
  .task-item .tag { grid-area: tags; justify-self: start; }
  .task-item .task-avatars { grid-area: avatars; justify-self: end; }
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .greeting h1 {
    font-size: 1.45rem;
  }

}
