/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
  /* base palette */
  --bg: #07080d;
  --bg-elev: #0d0f17;
  --surface: rgba(22, 26, 38, 0.72);
  --surface-solid: #14172080;
  --surface-2: rgba(32, 38, 56, 0.6);
  --surface-raised: #1a1e2b;

  /* borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #eceef4;
  --text-soft: #b9bdc9;
  --muted: #7b8299;
  --subtle: #565c70;

  /* brand */
  --brand: #7c7ff6;
  --brand-2: #a855f7;
  --brand-3: #22d3ee;
  --accent: #6366f1;
  --accent-hover: #818cf8;

  --grad-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 55%, #ec4899 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(168,85,247,0.18));
  --grad-cool: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);

  /* semantic */
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.14);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);

  /* shape */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;

  /* shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 30px -12px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.25);
  --shadow-lg: 0 30px 60px -15px rgba(0,0,0,0.6), 0 8px 20px -8px rgba(0,0,0,0.4);
  --glow-brand: 0 0 0 1px rgba(124,127,246,0.25), 0 20px 40px -12px rgba(124,127,246,0.35);
  --glow-success: 0 0 0 1px rgba(34,197,94,0.35), 0 16px 32px -12px rgba(34,197,94,0.35);

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   Base + ambient background
   ========================================================================= */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
  min-height: 100vh;
}

/* Ambient radial backdrop — cool, deep, layered */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(ellipse 80% 60% at 90% 0%, rgba(236, 72, 153, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 70% at 50% 120%, rgba(34, 211, 238, 0.10), transparent 55%),
    linear-gradient(180deg, #07080d 0%, #05060b 100%);
}

/* Subtle noise texture to kill banding */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

a { color: var(--accent-hover); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: #a5b4fc; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

::selection { background: rgba(124, 127, 246, 0.35); color: #fff; }

/* Thin, modern scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); background-clip: padding-box; }

/* =========================================================================
   Typography helpers
   ========================================================================= */
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(124,127,246,0.75);
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* =========================================================================
   Auth / centered cards
   ========================================================================= */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  position: relative;
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 2.25rem 2.25rem 2rem;
  background: linear-gradient(180deg, rgba(26,30,43,0.85), rgba(18,21,31,0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  animation: rise 0.55s var(--ease) both;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,127,246,0.55), rgba(168,85,247,0.25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #fff 0%, #c7cbe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-card .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad-brand);
  box-shadow: 0 12px 28px -8px rgba(124,127,246,0.55);
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
}

.auth-card form { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.15rem; }
.auth-card label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--text-soft); font-weight: 500; }

.auth-card input {
  padding: 0.7rem 0.85rem;
  background: rgba(10,12,20,0.65);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.auth-card input:hover { border-color: rgba(255,255,255,0.22); }
.auth-card input:focus {
  outline: none;
  border-color: rgba(124,127,246,0.55);
  box-shadow: 0 0 0 4px rgba(124,127,246,0.18);
  background: rgba(10,12,20,0.9);
}
.auth-card button[type="submit"], .auth-card button:not(.ghost) { margin-top: 0.35rem; }

.error {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* =========================================================================
   Buttons
   ========================================================================= */
button {
  position: relative;
  padding: 0.6rem 1rem;
  background: var(--grad-brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: transform 0.08s ease, box-shadow 0.15s var(--ease), filter 0.15s var(--ease);
  box-shadow: 0 6px 16px -6px rgba(124,127,246,0.45), inset 0 1px 0 rgba(255,255,255,0.14);
}
button:hover { filter: brightness(1.08); box-shadow: 0 10px 24px -6px rgba(124,127,246,0.6), inset 0 1px 0 rgba(255,255,255,0.18); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(124,127,246,0.45), 0 8px 20px -6px rgba(124,127,246,0.5); }
button:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }

button.ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
button.ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); filter: none; }
button.ghost.danger { color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); background: rgba(239,68,68,0.06); }
button.ghost.danger:hover { background: rgba(239, 68, 68, 0.14); border-color: rgba(239,68,68,0.55); color: #fecaca; }

button.small { padding: 0.38rem 0.7rem; font-size: 0.82rem; border-radius: 8px; }
button.icon-btn {
  padding: 0.4rem;
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
}

/* =========================================================================
   Top bar — glass
   ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: rgba(10, 12, 18, 0.65);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.brand-logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad-brand);
  color: white;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px -6px rgba(124,127,246,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.brand-name {
  background: linear-gradient(135deg, #fff 0%, #bfc4db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-link:hover { color: inherit; }

.crumb {
  margin-left: 0.75rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--border-strong);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
}

.topbar .who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.topbar .who > span:not(.role-pill) { color: var(--text-soft); font-weight: 500; }

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  background: var(--grad-brand-soft);
  border: 1px solid rgba(124,127,246,0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  color: #c4c7e8;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.topbar-nav {
  display: inline-flex;
  gap: 0.25rem;
  margin-right: 0.4rem;
  padding: 0.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.topbar-nav a {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.topbar-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); text-decoration: none; }
.topbar-nav a.active { background: var(--grad-brand-soft); color: #dbdcff; border: 1px solid rgba(124,127,246,0.35); padding: 0.37rem 0.84rem; }

.topbar-nav .count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 0.7rem;
  background: var(--warn);
  color: #1a1400;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
}

/* =========================================================================
   Layout
   ========================================================================= */
main { padding: 1.5rem; padding-bottom: 220px; max-width: 1400px; margin: 0 auto; width: 100%; }
.section-title {
  margin: 0.5rem 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.section-title .count {
  padding: 0.1rem 0.55rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================================
   Team grid + cards
   ========================================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(26,30,43,0.7), rgba(18,21,31,0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 200px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  animation: rise 0.45s var(--ease) both;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 0% 0%, rgba(124,127,246,0.1), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(124,127,246,0.35);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(124,127,246,0.35), 0 6px 18px -6px rgba(0,0,0,0.4);
}

.card-head {
  position: relative;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.card-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,127,246,0.25), transparent);
}

.card-head .member-name {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.card-head .member-name:hover { color: var(--accent-hover); }

.card-head .member-designation {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.history-btn {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s var(--ease);
}
.card:hover .history-btn { opacity: 1; }

.card .task-list {
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  flex: 1;
  position: relative;
}

.task {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 9px;
  font-size: 0.9rem;
  transition: background 0.15s var(--ease);
  animation: taskIn 0.3s var(--ease) both;
}
.task:hover { background: rgba(255,255,255,0.04); }
.task .task-desc {
  flex: 1;
  word-break: break-word;
  color: var(--text-soft);
  line-height: 1.45;
  cursor: text;
}

.task .task-done, .task .task-delete {
  padding: 0;
  width: 26px;
  height: 26px;
  background: transparent;
  color: var(--subtle);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.85rem;
  box-shadow: none;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.task:hover .task-done, .task:hover .task-delete {
  border-color: var(--border-strong);
  color: var(--muted);
}
.task .task-done:hover {
  color: #fff;
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}
.task .task-delete:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.15);
}

.card-foot {
  padding: 0.6rem 0.75rem 0.85rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015));
}
.add-task-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.add-task-form .add-prio { flex-shrink: 0; }
.add-task-form input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.8rem;
  background: rgba(10,12,20,0.5);
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.add-task-form input::placeholder { color: var(--subtle); }
.add-task-form input:hover { border-color: var(--border); }
.add-task-form input:focus {
  outline: none;
  background: rgba(10,12,20,0.8);
  border-color: rgba(124,127,246,0.45);
  box-shadow: 0 0 0 4px rgba(124,127,246,0.12);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(26,30,43,0.5), rgba(18,21,31,0.5));
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

/* =========================================================================
   Priority indicator — subtle text, native <select> for editing
   ========================================================================= */
.prio {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 5px;
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--subtle);
  background: transparent;
  border: none;
  border-radius: 4px;
  user-select: none;
}

select.prio {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 22px;
  padding: 0 4px;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
}
select.prio:hover { background: rgba(255,255,255,0.05); color: var(--text-soft); }
select.prio:focus-visible {
  outline: none;
  background: rgba(124,127,246,0.1);
  color: var(--text-soft);
}

.prio-p0 { color: #ef6b6b; }
.prio-p1 { color: var(--subtle); }
.prio-p2 { color: var(--subtle); opacity: 0.75; }
.prio-p3 { color: var(--subtle); opacity: 0.55; }

select.prio-p0:hover { color: #ff8585; }

/* Native option menu — styled where browsers allow */
.prio option { background: #14171f; color: var(--text); }

.done-list .prio,
.history-item.done .prio { opacity: 0.5; }

/* Utility — hide with class */
.hidden { display: none !important; }

/* =========================================================================
   IC add-task form
   ========================================================================= */
.ic-add {
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ic-add .add-prio { flex-shrink: 0; }
.ic-add input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem 0.7rem 2.4rem;
  background: rgba(10,12,20,0.55);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8299' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>");
  background-repeat: no-repeat;
  background-position: 0.95rem center;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}
.ic-add input::placeholder { color: var(--subtle); }
.ic-add input:focus {
  outline: none;
  border-color: rgba(124,127,246,0.55);
  box-shadow: 0 0 0 4px rgba(124,127,246,0.16);
  background-color: rgba(10,12,20,0.85);
}

/* Inline "no active tasks" row inside card (rendered by JS with .muted small) */
.task-list .empty-row,
.task-list > li.muted {
  padding: 0.85rem 0.65rem !important;
  color: var(--subtle);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

/* Inline-styled edit input created by manager.js */
input.edit-input {
  background: rgba(10,12,20,0.7) !important;
  color: var(--text) !important;
  border: 1px solid rgba(124,127,246,0.5) !important;
  border-radius: 7px !important;
  padding: 0.35rem 0.55rem !important;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  box-shadow: 0 0 0 3px rgba(124,127,246,0.12);
}

/* =========================================================================
   Inbox panel
   ========================================================================= */
.inbox-panel {
  margin: 1rem 1.5rem 1.75rem;
  max-width: 1400px;
  padding: 1.1rem 1.25rem 1.2rem;
  background: linear-gradient(180deg, rgba(26,30,43,0.72), rgba(18,21,31,0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1400px) {
  .inbox-panel { margin-left: auto; margin-right: auto; }
}
.inbox-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 0% 0%, rgba(34, 211, 238, 0.08), transparent 60%);
  pointer-events: none;
}
.inbox-head {
  position: relative;
  margin-bottom: 0.85rem;
}
.inbox-head .section-title { margin: 0; }

.inbox-add {
  position: relative;
  margin: 0 0 0.9rem;
}
.inbox-add input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  background: rgba(10,12,20,0.55);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8299' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14M5 12h14'/></svg>");
  background-repeat: no-repeat;
  background-position: 0.95rem center;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}
.inbox-add input::placeholder { color: var(--subtle); }
.inbox-add input:focus {
  outline: none;
  border-color: rgba(124,127,246,0.55);
  box-shadow: 0 0 0 4px rgba(124,127,246,0.16);
  background-color: rgba(10,12,20,0.85);
}

.inbox-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 40px;
  align-items: center;
  position: relative;
}
.inbox-empty {
  padding: 0.4rem 0.1rem;
  color: var(--subtle);
  font-size: 0.88rem;
}

.inbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.45rem 0.38rem 0.85rem;
  background: linear-gradient(180deg, rgba(124,127,246,0.18), rgba(124,127,246,0.08));
  border: 1px solid rgba(124,127,246,0.35);
  border-radius: 999px;
  cursor: grab;
  max-width: 380px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), opacity 0.15s var(--ease), border-color 0.18s var(--ease);
  animation: chipIn 0.3s var(--ease) both;
}
.inbox-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(124,127,246,0.6);
  box-shadow: 0 8px 22px -8px rgba(124,127,246,0.6);
}
.inbox-chip.dragging {
  opacity: 0.5;
  cursor: grabbing;
  transform: scale(0.98) rotate(-1deg);
}
.chip-desc {
  font-size: 0.86rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 240px;
  color: var(--text);
  font-weight: 500;
}
.chip-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.chip-assign {
  background: rgba(10,12,20,0.55);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.22rem 0.55rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.chip-assign:hover { border-color: rgba(255,255,255,0.25); }
.chip-assign:focus { outline: none; border-color: rgba(124,127,246,0.55); box-shadow: 0 0 0 3px rgba(124,127,246,0.15); }

.chip-delete {
  padding: 0;
  width: 22px;
  height: 22px;
  font-size: 1rem;
  line-height: 1;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  box-shadow: none;
}
.chip-delete:hover {
  background: rgba(239,68,68,0.15);
  color: #fecaca;
  border-color: rgba(239,68,68,0.35);
}

/* Drop target state for team cards */
.card.drop-target {
  border-color: var(--success) !important;
  box-shadow: var(--glow-success), 0 20px 40px -15px rgba(0,0,0,0.5) !important;
  transform: translateY(-3px) !important;
}
.card.drop-target::after {
  content: "Drop to assign";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: var(--success);
  background: rgba(34,197,94,0.08);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  pointer-events: none;
  letter-spacing: 0.01em;
}

/* =========================================================================
   Pending / panel (legacy — kept for compatibility)
   ========================================================================= */
.pending-panel {
  margin: 1rem 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
}
.pending-panel.hidden { display: none; }
.pending-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.pending-header h2 { margin: 0; font-size: 1rem; }
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  margin-left: 0.4rem;
  padding: 0 0.5rem;
  background: var(--warn);
  color: #000;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}
.pending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.pending-item:first-child { border-top: 0; }
.pending-info { display: flex; flex-direction: column; gap: 0.15rem; }
.pending-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* =========================================================================
   Chat box — floating assistant
   ========================================================================= */
.chatbox {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 3rem);
  background: linear-gradient(180deg, rgba(26,30,43,0.95), rgba(18,21,31,0.95));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,127,246,0.08);
  z-index: 40;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: chatIn 0.5s var(--ease) both;
}
.chatbox:hover { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,127,246,0.2); }
.chatbox::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 40% at 100% 0%, rgba(168,85,247,0.12), transparent 60%);
  pointer-events: none;
}
.chatbox.collapsed .chat-body { display: none; }
.chatbox.collapsed { width: auto; }

.chat-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
}
.chat-header .chat-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.chat-header .chat-title .spark {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.7rem;
  box-shadow: 0 4px 10px -2px rgba(124,127,246,0.5);
}
.chat-body { padding: 0.85rem 0.95rem 0.95rem; position: relative; }
.chat-body p { margin: 0 0 0.55rem; }
.chat-body textarea {
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.65rem 0.75rem;
  background: rgba(10,12,20,0.8);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.chat-body textarea::placeholder { color: var(--subtle); }
.chat-body textarea:focus {
  outline: none;
  border-color: rgba(124,127,246,0.5);
  box-shadow: 0 0 0 3px rgba(124,127,246,0.14);
}
.chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
  gap: 0.5rem;
}

/* =========================================================================
   Toast
   ========================================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%) translateY(0);
  background: rgba(20, 23, 32, 0.92);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.7rem 1.1rem 0.7rem 0.95rem;
  border-radius: 12px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  max-width: 90vw;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastIn 0.35s var(--ease) both;
}
.toast.hidden { display: none; }
.toast::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 10px currentColor;
}
.toast.success::before, .toast.toast-ok::before { background: var(--success); }
.toast.error::before, .toast.toast-error::before { background: var(--danger); }
.toast.info::before { background: var(--accent); }

.toast.success, .toast.toast-ok { border-color: rgba(34, 197, 94, 0.45); }
.toast.error, .toast.toast-error { border-color: rgba(239, 68, 68, 0.45); }
.toast.info { border-color: rgba(124, 127, 246, 0.45); }

/* =========================================================================
   IC dashboard
   ========================================================================= */
.ic-main {
  padding: 2rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.ic-main section { margin-bottom: 2rem; }
.ic-list {
  list-style: none;
  padding: 0.35rem;
  margin: 0;
  background: linear-gradient(180deg, rgba(26,30,43,0.72), rgba(18,21,31,0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ic-list .task {
  padding: 0.75rem 0.85rem;
  border-top: 1px solid var(--border);
  border-radius: 0;
}
.ic-list .task:first-child { border-top: 0; }
.ic-list .task:hover { background: rgba(255,255,255,0.03); }
.done-list .task.done .task-desc {
  text-decoration: line-through;
  text-decoration-color: rgba(139, 147, 167, 0.55);
  color: var(--subtle);
}
.done-list.ic-list { opacity: 0.88; }

/* =========================================================================
   Google sign-in button
   ========================================================================= */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.8rem 1rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s var(--ease), box-shadow 0.18s var(--ease), background 0.15s var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.google-btn:hover {
  background: #f8f9fa;
  color: #1f1f1f;
  box-shadow: 0 8px 24px -8px rgba(255,255,255,0.25), 0 2px 6px rgba(0,0,0,0.3);
  text-decoration: none;
  transform: translateY(-1px);
}
.google-btn:active { transform: translateY(0); }
.google-btn svg { flex-shrink: 0; }

/* =========================================================================
   Modal
   ========================================================================= */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: modalOverlayIn 0.2s var(--ease) both;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  width: min(640px, 92vw);
  max-height: 85vh;
  background: linear-gradient(180deg, rgba(26,30,43,0.95), rgba(18,21,31,0.95));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124,127,246,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.3s var(--ease) both;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.1rem 1.35rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.modal-title {
  margin: 0 0 0.15rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.modal-body {
  padding: 1.1rem 1.35rem 1.35rem;
  overflow-y: auto;
}
.modal-body section { margin-bottom: 1.35rem; }
.modal-body section:last-child { margin-bottom: 0; }
.section-title.small { font-size: 0.82rem; margin: 0.25rem 0 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10,12,20,0.3);
}
.history-list:empty::after {
  content: 'Nothing here yet.';
  display: block;
  padding: 0.85rem;
  color: var(--subtle);
  font-size: 0.88rem;
  text-align: center;
}
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.history-item:first-child { border-top: 0; }
.history-item:hover { background: rgba(255,255,255,0.025); }
.history-item .task-desc { flex: 1; word-break: break-word; color: var(--text-soft); }
.history-item.done .task-desc { color: var(--subtle); text-decoration: line-through; text-decoration-color: rgba(139,147,167,0.55); }
.history-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.history-date { white-space: nowrap; color: var(--subtle); font-size: 0.8rem; }

/* =========================================================================
   Code
   ========================================================================= */
code {
  background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  font-size: 0.85em;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  color: #d4c5f9;
}

/* =========================================================================
   Settings + data table
   ========================================================================= */
.settings-main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}
.settings-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}
.settings-head h2 { margin-bottom: 0.25rem; }
.settings-head p { margin: 0.2rem 0 0; }
.settings-filters { display: flex; gap: 0.5rem; }
.settings-filters input,
.settings-filters select {
  background: rgba(10,12,20,0.55);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.settings-filters input:focus,
.settings-filters select:focus {
  outline: none;
  border-color: rgba(124,127,246,0.5);
  box-shadow: 0 0 0 3px rgba(124,127,246,0.14);
}
.settings-filters input {
  min-width: 240px;
  padding-left: 2.2rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8299' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

.user-table-wrap {
  background: linear-gradient(180deg, rgba(26,30,43,0.72), rgba(18,21,31,0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.user-table thead th {
  position: sticky;
  top: 0;
  background: rgba(20, 23, 32, 0.92);
  backdrop-filter: blur(10px);
  text-align: left;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-strong);
  z-index: 2;
}
.user-table tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}
.user-table tbody tr { transition: background 0.15s var(--ease); }
.user-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.user-table .loading-row {
  text-align: center;
  padding: 3rem;
  border-top: 0;
  color: var(--muted);
}
.user-table input[type="text"],
.user-table select {
  background: rgba(10,12,20,0.6);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.87rem;
  font-family: inherit;
  width: 100%;
  max-width: 200px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.user-table input[type="text"]:focus,
.user-table select:focus {
  outline: none;
  border-color: rgba(124,127,246,0.5);
  box-shadow: 0 0 0 3px rgba(124,127,246,0.14);
}
.user-table select:disabled,
.user-table input:disabled { opacity: 0.5; cursor: not-allowed; }
.user-table .col-actions {
  white-space: nowrap;
  text-align: right;
}
.user-table .col-actions button { margin-left: 0.3rem; }

.person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px -4px rgba(124,127,246,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
  text-transform: uppercase;
}
.avatar.sm { width: 28px; height: 28px; font-size: 0.72rem; }
.u-name { font-weight: 600; letter-spacing: -0.005em; }
.u-email { margin-top: 2px; font-size: 0.8rem; }
.self-pill {
  background: rgba(124,127,246,0.14);
  color: #c4c7e8;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(124,127,246,0.3);
  margin-left: 0.5rem;
  font-weight: 500;
}

/* =========================================================================
   Approvals
   ========================================================================= */
.approvals-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.approval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(180deg, rgba(26,30,43,0.7), rgba(18,21,31,0.7));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: rise 0.3s var(--ease) both;
}
.approval-row:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.approval-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.designation-pill {
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 0.8rem;
  color: var(--text-soft);
}
.approval-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* =========================================================================
   Waiting page (approval pending)
   ========================================================================= */
.pulse-ring {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
}
.pulse-ring::before, .pulse-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(124,127,246,0.5);
  animation: pulseRing 2s var(--ease) infinite;
}
.pulse-ring::after { animation-delay: 1s; }
.pulse-ring .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 24px rgba(124,127,246,0.7);
}

/* =========================================================================
   Keyframes
   ========================================================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes taskIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes modalOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulseRing {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 820px) {
  main { padding: 1rem; padding-bottom: 200px; }
  .inbox-panel { margin: 1rem; padding: 0.95rem 1rem; }
  .inbox-add input { min-width: 0; width: 100%; }
  .inbox-head { align-items: stretch; }
  .chip-desc { max-width: 160px; }
  .settings-head { flex-direction: column; align-items: stretch; }
  .settings-filters { flex-direction: column; }
  .settings-filters input { min-width: 0; }
  .user-table thead { display: none; }
  .user-table, .user-table tbody, .user-table tr, .user-table td { display: block; width: 100%; }
  .user-table tbody td { border-top: 0; padding: 0.35rem 1rem; }
  .user-table tbody tr {
    border-top: 1px solid var(--border);
    padding: 0.85rem 0;
  }
  .user-table .col-actions { text-align: left; padding-top: 0.7rem; }
  .topbar {
    padding: 0.7rem 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .topbar-nav { padding: 0.15rem; }
  .topbar-nav a { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
  .chatbox { right: 1rem; bottom: 1rem; }
}

@media (max-width: 480px) {
  .topbar .who { gap: 0.4rem; font-size: 0.85rem; }
  .auth-card { padding: 1.75rem 1.5rem; }
}

/* Reduce motion if requested */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
