:root {
  --surface-0: #f5f5f7;
  --surface-1: #ffffff;
  --surface-2: #fafafa;
  --surface-glass: rgba(255,255,255,0.72);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #aeaeb2;
  --text-inverse: #ffffff;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-light: rgba(0,113,227,0.08);
  --accent-glow: rgba(0,113,227,0.2);
  --danger: #ff3b30;
  --danger-light: rgba(255,59,48,0.08);
  --success: #34c759;
  --success-light: rgba(52,199,89,0.08);
  --warning: #ff9500;
  --border-umbra: rgba(0,0,0,0.04);
  --border-penumbra: rgba(0,0,0,0.08);
  --border-medium: rgba(0,0,0,0.12);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-float: 0 24px 64px rgba(0,0,0,0.14);
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 9999px;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: 28px;
  --fs-2xl: 36px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-normal: 300ms;
  --dur-slow: 500ms;
  --dur-slower: 700ms;
  --z-sticky: 100;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

[data-theme="dark"] {
  --surface-0: #000000;
  --surface-1: #1c1c1e;
  --surface-2: #2c2c2e;
  --surface-glass: rgba(28,28,30,0.72);
  --text-primary: #f5f5f7;
  --text-secondary: #98989d;
  --text-tertiary: #636366;
  --border-umbra: rgba(255,255,255,0.06);
  --border-penumbra: rgba(255,255,255,0.10);
  --border-medium: rgba(255,255,255,0.15);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--surface-0);
  color: var(--text-primary);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.content {
  padding: var(--sp-4);
  padding-bottom: calc(var(--sp-20) + env(safe-area-inset-bottom, 0px));
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  position: sticky;
  top: 8px;
  margin: 0 var(--sp-3);
  display: flex;
  align-items: center;
  padding: 10px var(--sp-4);
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-umbra);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-sticky);
  transition: all var(--dur-normal) var(--ease-out-expo);
}

.navbar h1 {
  flex: 1;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
}

.nav-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--accent);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.nav-btn:active { transform: scale(0.9); }

.card {
  background: var(--surface-1);
  border-radius: var(--r-lg);
  padding: 1.5px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-umbra);
  margin-bottom: var(--sp-3);
  transition: transform var(--dur-normal) var(--ease-spring),
              box-shadow var(--dur-normal) var(--ease-out-expo);
}
.card:active {
  transform: scale(0.985);
  box-shadow: var(--shadow-md);
}
.card-inner {
  background: var(--surface-1);
  border-radius: calc(var(--r-lg) - 1.5px);
  padding: var(--sp-5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
[data-theme="dark"] .card-inner {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.greeting-card {
  background: linear-gradient(135deg, var(--accent), #5856d6);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  color: white;
  margin-bottom: var(--sp-5);
  position: relative;
  overflow: hidden;
}
.greeting-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}
.greeting-card h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--sp-2);
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px var(--sp-6);
  border-radius: var(--r-pill);
  border: none;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-spring);
  width: 100%;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:active { box-shadow: 0 2px 8px var(--accent-glow); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border-penumbra);
}

.btn-danger {
  background: var(--danger);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1.5px solid var(--border-penumbra);
}

.btn-small {
  padding: 8px var(--sp-3);
  font-size: var(--fs-sm);
  width: auto;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: ripple-anim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(1); opacity: 0; }
}

.grid-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.grid-item {
  background: var(--surface-1);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border-umbra);
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-normal) var(--ease-spring);
}
.grid-item:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-md);
}
.grid-item .icon {
  font-size: 36px;
  margin-bottom: var(--sp-3);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.grid-item .label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-admin { background: var(--danger-light); color: var(--danger); }
.badge-team { background: var(--accent-light); color: var(--accent); }
.badge-public { background: rgba(0,0,0,0.06); color: var(--text-secondary); }

.input {
  width: 100%;
  padding: 14px var(--sp-4);
  border: 1.5px solid var(--border-penumbra);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  background: var(--surface-2);
  color: var(--text-primary);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  -webkit-appearance: none;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.input::placeholder { color: var(--text-tertiary); }

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

.form-group {
  margin-bottom: var(--sp-4);
}
.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
  color: var(--text-secondary);
}

.file-item {
  display: flex;
  align-items: center;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border-umbra);
  cursor: pointer;
  gap: var(--sp-3);
  transition: background var(--dur-fast);
}
.file-item:last-child { border-bottom: none; }
.file-item:active { background: var(--surface-2); }
.file-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.file-info { flex: 1; }
.file-name {
  font-weight: var(--fw-medium);
  font-size: var(--fs-base);
  color: var(--text-primary);
}
.file-meta {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

.chat-message {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-1);
}
.chat-message .author {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.chat-message .text {
  font-size: var(--fs-base);
  margin-top: var(--sp-1);
  line-height: 1.5;
}
.chat-message .time {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-top: var(--sp-1);
}
.chat-message.mine {
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--r-lg) var(--r-lg) var(--r-xs) var(--r-lg);
  margin-left: var(--sp-8);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.chat-message.mine .author,
.chat-message.mine .time { color: rgba(255,255,255,0.65); }
.chat-message:not(.mine) {
  background: var(--surface-2);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-xs);
  margin-right: var(--sp-8);
  border: 1px solid var(--border-umbra);
}

.chat-input {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border-umbra);
  gap: var(--sp-2);
  z-index: var(--z-sticky);
}
.chat-input input {
  flex: 1;
  padding: 12px var(--sp-4);
  border: 1.5px solid var(--border-penumbra);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  background: var(--surface-1);
  color: var(--text-primary);
  transition: border-color var(--dur-fast);
}
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.chat-input button:active { transform: scale(0.9); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out-expo);
}
.modal-overlay.show { opacity: 1; }

.modal {
  background: var(--surface-1);
  border-radius: var(--r-xl);
  padding: 28px;
  margin: var(--sp-4);
  max-width: 340px;
  width: 100%;
  box-shadow: var(--shadow-float);
  border: 1px solid var(--border-umbra);
  transform: scale(0.92) translateY(16px);
  transition: transform var(--dur-slow) var(--ease-spring);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }

.modal p {
  margin-bottom: var(--sp-4);
  text-align: center;
  font-weight: var(--fw-medium);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.modal-actions .btn { flex: none; }

.upload-zone {
  border: 2px dashed var(--border-penumbra);
  border-radius: var(--r-lg);
  padding: var(--sp-12) var(--sp-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-out-expo);
  background: var(--surface-2);
}
.upload-zone:active {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: scale(0.98);
}

.progress-bar {
  height: 4px;
  background: var(--border-penumbra);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width var(--dur-normal) var(--ease-out-expo);
}

.loading {
  display: flex;
  justify-content: center;
  padding: var(--sp-10);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-penumbra);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-5);
  color: var(--text-tertiary);
}
.empty-state .icon {
  font-size: 48px;
  margin-bottom: var(--sp-3);
  opacity: 0.5;
}

.log-container {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: var(--fs-xs);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  background: #0d1117;
  color: #c9d1d9;
  padding: var(--sp-4);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.06);
  line-height: 1.6;
}
.log-line {
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.log-time { color: #484f58; }
.log-level { font-weight: var(--fw-bold); }
.log-error .log-level { color: #f85149; }
.log-warning .log-level { color: #d29922; }
.log-info .log-level { color: #3fb950; }
.log-debug .log-level { color: #484f58; }

.settings-group {
  background: var(--surface-1);
  border-radius: var(--r-md);
  border: 1px solid var(--border-umbra);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border-umbra);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.settings-row:last-child { border-bottom: none; }
.settings-row:active { background: var(--surface-2); }
.settings-label {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}
.settings-value {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}
.settings-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.settings-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur-fast);
}
.settings-option:active { background: var(--surface-2); }
.settings-option input[type="radio"],
.settings-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.settings-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  cursor: pointer;
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface-1);
  border-radius: var(--r-md);
  border: 1px solid var(--border-umbra);
  margin-bottom: var(--sp-3);
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-spring);
}
.event-card:active { transform: scale(0.98); }
.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
  flex-shrink: 0;
}
.event-info { flex: 1; }
.event-title {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
}
.event-time {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

.profile-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto var(--sp-4);
  box-shadow: var(--shadow-md);
}
.profile-name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--sp-2);
}
.profile-id {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-family: 'SF Mono', monospace;
}

.toast {
  position: fixed;
  bottom: calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(24px) scale(0.95);
  padding: 12px var(--sp-5);
  border-radius: var(--r-pill);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--surface-glass);
  border: 1px solid var(--border-umbra);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  z-index: var(--z-toast);
  max-width: calc(100% - var(--sp-8));
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-slow) var(--ease-spring);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slower) var(--ease-out-expo),
              transform var(--dur-slower) var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dashboard Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.metric-card {
  background: var(--surface-1);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  border: 1px solid var(--border-umbra);
  box-shadow: var(--shadow-xs);
  text-align: center;
}
.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto var(--sp-3);
}
.metric-value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.metric-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Roles Chart */
.roles-chart {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.role-bar {
  height: 8px;
  background: var(--border-umbra);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.role-bar-fill {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width 800ms var(--ease-out-expo);
}
.role-legend {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Activity Feed */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-umbra);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-content { flex: 1; }
.activity-text {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  line-height: 1.4;
}
.activity-time {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* System Stats */
.system-stats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-umbra);
}
.stat-row:last-child { border-bottom: none; }
.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.stat-value {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

/* Calendar Module */
.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.event-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface-1);
  border-radius: var(--r-md);
  border: 1px solid var(--border-umbra);
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-spring);
}
.event-card:active { transform: scale(0.98); }
.event-date-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--accent-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-day {
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  color: var(--accent);
  line-height: 1;
}
.event-month {
  font-size: var(--fs-xs);
  color: var(--accent);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}
.event-info { flex: 1; min-width: 0; }
.event-title {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-time {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}
.event-desc {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-chevron {
  color: var(--text-tertiary);
  font-size: 20px;
  font-weight: var(--fw-light);
  flex-shrink: 0;
}

/* Drive Module */
.files-list {
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border-radius: var(--r-md);
  border: 1px solid var(--border-umbra);
  overflow: hidden;
}
.file-chevron {
  color: var(--text-tertiary);
  font-size: 20px;
  font-weight: var(--fw-light);
  flex-shrink: 0;
}

/* Admin Module */
.users-summary {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.summary-chip {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}
.users-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.user-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface-1);
  border-radius: var(--r-md);
  border: 1px solid var(--border-umbra);
}
.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-meta {
  display: flex;
  gap: var(--sp-1);
  margin-top: 2px;
}

/* Chat Module */
.chat-header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
}
.chat-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-bottom: 80px;
}
.chat-date-divider {
  text-align: center;
  padding: var(--sp-3) 0;
}
.chat-date-divider span {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  background: var(--surface-0);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
