/* =============================================
   TeamPulse — Complete Stylesheet
   Design: Clean B2B SaaS · Light Mode
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --secondary: #818cf8;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --error: #ef4444;
  --error-light: #fee2e2;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

input, textarea, select, button {
  font-family: 'Inter', sans-serif;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── App Shell ── */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--primary);
}

/* ── Header ── */
.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.nav-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-btn.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Avatar ── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.15s;
  letter-spacing: 0.02em;
}

.avatar:hover {
  opacity: 0.88;
}

.avatar.lg {
  width: 80px;
  height: 80px;
  font-size: 1.625rem;
}

.avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 0.6875rem;
}

.avatar.indigo  { background: #4f46e5; }
.avatar.violet  { background: #7c3aed; }
.avatar.emerald { background: #059669; }
.avatar.amber   { background: #d97706; }
.avatar.rose    { background: #e11d48; }
.avatar.sky     { background: #0284c7; }
.avatar.teal    { background: #0d9488; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: var(--error-light);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.card-header {
  padding: 18px 20px 0;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Form Elements ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input:focus::placeholder {
  color: #c4c9d4;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .form-input {
  padding-right: 44px;
}

.input-icon-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px;
  transition: color 0.15s;
}

.input-icon-btn:hover {
  color: var(--text);
}

.input-icon-btn svg {
  width: 17px;
  height: 17px;
}

textarea.form-input {
  resize: vertical;
  min-height: 88px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' 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 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ── Error / Alert ── */
.error-msg {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--error-light);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 500;
}

.error-msg.show {
  display: flex;
}

.error-msg svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SCREEN 1: LOGIN
   ═══════════════════════════════════════════ */
#screen-login {
  background: var(--bg);
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.login-brand .logo {
  justify-content: center;
}

.login-brand .logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.login-brand .logo-icon svg {
  width: 28px;
  height: 28px;
}

.login-brand .logo-text {
  font-size: 1.5rem;
}

.login-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-heading h1 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.login-heading p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  padding: 32px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-hint {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-light);
}

.login-hint strong {
  color: var(--text-muted);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   SCREEN 2: DASHBOARD
   ═══════════════════════════════════════════ */
#screen-dashboard {
  background: var(--bg);
}

.dashboard-body {
  flex: 1;
  padding: 28px 24px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Greeting */
.dashboard-greeting {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.greeting-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.greeting-text {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.greeting-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Check-in CTA Card */
.checkin-cta-card {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  border: none;
  width: 100%;
  text-align: left;
}

.checkin-cta-card:hover {
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}

.checkin-cta-card:active {
  transform: scale(0.99);
}

.checkin-cta-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkin-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.checkin-cta-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.checkin-cta-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}

.checkin-cta-arrow {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  transition: background 0.15s;
}

.checkin-cta-card:hover .checkin-cta-arrow {
  background: rgba(255,255,255,0.3);
}

.checkin-cta-arrow svg {
  width: 20px;
  height: 20px;
}

/* Checked in state */
.checkin-done-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.checkin-done-icon {
  width: 44px;
  height: 44px;
  background: var(--success-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkin-done-icon svg {
  width: 22px;
  height: 22px;
  color: var(--success);
}

.checkin-done-text h3 {
  font-size: 0.9375rem;
  font-weight: 700;
}

.checkin-done-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Dashboard grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding-top: 8px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.bar-track {
  width: 100%;
  height: 64px;
  background: var(--surface-2);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.bar-fill {
  border-radius: 4px 4px 0 0;
  background: var(--primary);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.bar-fill.today {
  background: linear-gradient(to top, var(--primary), var(--secondary));
}

.bar-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.chart-legend-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chart-avg-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* Activity Feed */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-item:first-child {
  padding-top: 0;
}

.activity-info {
  flex: 1;
  min-width: 0;
}

.activity-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-action {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.activity-mood {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* Team Members */
.team-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.team-member {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: var(--success);
  border: 2px solid white;
  border-radius: 50%;
}

.team-member-name {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 44px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   SCREEN 3: CHECK-IN FORM
   ═══════════════════════════════════════════ */
#screen-checkin {
  background: var(--bg);
}

.checkin-body {
  flex: 1;
  padding: 28px 24px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkin-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkin-header-info h1 {
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}

.checkin-header-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Progress */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.progress-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

.progress-track {
  height: 6px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mood Selector */
.mood-selector {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.mood-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.mood-btn:hover {
  background: var(--primary-light);
  border-color: var(--secondary);
}

.mood-btn.selected {
  background: var(--primary-light);
  border-color: var(--primary);
}

.mood-btn:active {
  transform: scale(0.95);
}

.mood-emoji {
  font-size: 1.625rem;
  line-height: 1;
}

.mood-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

.mood-btn.selected .mood-label {
  color: var(--primary);
}

/* Success State */
.checkin-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px 24px;
}

.checkin-success.show {
  display: flex;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: var(--success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  color: var(--success);
}

.success-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.success-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 300px;
}

/* ═══════════════════════════════════════════
   SCREEN 4: PROFILE
   ═══════════════════════════════════════════ */
#screen-profile {
  background: var(--bg);
}

.profile-body {
  flex: 1;
  padding: 28px 24px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile Hero */
.profile-hero {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-top: 8px;
  width: fit-content;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

/* Mood Strip */
.mood-strip {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mood-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.mood-strip-emoji {
  font-size: 1.375rem;
  line-height: 1;
}

.mood-strip-day {
  font-size: 0.6875rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Divider ── */
.section-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* ── Utility ── */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-4   { margin-top: 4px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }

.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.8125rem; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── Focus ring ── */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .app-header {
    padding: 0 16px;
  }

  .dashboard-body,
  .checkin-body,
  .profile-body {
    padding: 20px 16px;
  }

  .login-card {
    padding: 24px;
  }

  .mood-label {
    display: none;
  }

  .stats-row {
    gap: 8px;
  }

  .stat-value {
    font-size: 1.375rem;
  }

  .header-nav .nav-btn span {
    display: none;
  }
}
