/* ============================================
   Coprojecta — Design System
   Source of truth: Arsela App Branding Guidelines
   ============================================ */

:root {
  --aph-navy: #001F3D;
  --aph-blue: #13436B;
  --aph-teal: #00A896;
  --aph-bg-grey: #F4F6F8;
  --aph-white: #FFFFFF;
  --aph-border-grey: #E2E6F0;
  --aph-success: #16A34A;
  --aph-warning: #F59E0B;
  --aph-danger: #E4444F;

  --aph-text-dark: #101828;
  --aph-text-muted: #667085;

  --aph-radius: 12px;
  --aph-radius-sm: 8px;
  --aph-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
  --aph-shadow-md: 0 4px 12px rgba(16, 24, 40, 0.10);
}

* { box-sizing: border-box; }

body {
  font-family: 'Aptos', 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--aph-bg-grey);
  color: var(--aph-text-dark);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; color: var(--aph-navy); margin: 0; }
.text-muted { color: var(--aph-text-muted); }

/* ---------- Logo / Brand Mark ---------- */
.aph-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aph-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.aph-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.aph-logo-text .brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--aph-navy);
}
.aph-logo-text .brand.light { color: #fff; }
.aph-logo-text .product {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--aph-teal);
  text-transform: uppercase;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--aph-text-muted);
  letter-spacing: 0.3px;
}
.powered-by.light { color: rgba(255,255,255,0.65); }
.powered-by strong { color: var(--aph-navy); font-weight: 700; }
.powered-by.light strong { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--aph-radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--aph-navy), var(--aph-blue));
  color: #fff;
  box-shadow: var(--aph-shadow);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary {
  background: #fff;
  color: var(--aph-navy);
  border: 1px solid var(--aph-border-grey);
}
.btn-secondary:hover { background: var(--aph-bg-grey); }
.btn-danger { background: var(--aph-danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-icon {
  width: 34px; height: 34px; padding: 0; border-radius: 8px;
  background: #fff; border: 1px solid var(--aph-border-grey); color: var(--aph-text-muted);
}
.btn-icon:hover { background: var(--aph-bg-grey); color: var(--aph-navy); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--aph-radius);
  border: 1px solid var(--aph-border-grey);
  box-shadow: var(--aph-shadow);
  padding: 20px;
}
.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--aph-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.kpi-card {
  background: #fff;
  border-radius: var(--aph-radius);
  border: 1px solid var(--aph-border-grey);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-card .kpi-value { font-size: 28px; font-weight: 800; color: var(--aph-navy); }
.kpi-card .kpi-label { font-size: 12px; color: var(--aph-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.kpi-card .kpi-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}

/* ---------- Inputs ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--aph-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--aph-border-grey);
  border-radius: var(--aph-radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--aph-text-dark);
  background: #fff;
  transition: border-color 0.15s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--aph-teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.12);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* ---------- Search box (icon inside input) ---------- */
.task-search-wrap {
  position: relative;
  min-width: 220px;
}
.task-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--aph-text-muted);
  font-size: 13px;
  pointer-events: none;
}
.task-search-wrap .form-input {
  padding-left: 34px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-success { background: rgba(22,163,74,0.12); color: var(--aph-success); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--aph-warning); }
.badge-danger { background: rgba(228,68,79,0.12); color: var(--aph-danger); }
.badge-info { background: rgba(19,67,107,0.10); color: var(--aph-blue); }
.badge-teal { background: rgba(0,168,150,0.12); color: var(--aph-teal); }
.badge-grey { background: #EEF1F5; color: var(--aph-text-muted); }

/* ---------- Due-date tags ---------- */
.due-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.due-tag.due-overdue { color: var(--aph-danger); }
.due-tag.due-soon { color: var(--aph-warning); }
.due-tag.due-normal { color: var(--aph-text-muted); font-weight: 400; }

/* ---------- Tables ---------- */
.aph-table { width: 100%; border-collapse: collapse; }
.aph-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--aph-text-muted);
  padding: 10px 14px;
  border-bottom: 1.5px solid var(--aph-border-grey);
}
.aph-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--aph-border-grey);
  font-size: 14px;
}
.aph-table tr:hover td { background: #FAFBFC; }
.aph-table tr:last-child td { border-bottom: none; }

/* ---------- Layout: Sidebar ---------- */
.aph-shell { display: flex; min-height: 100vh; }
.aph-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--aph-navy) 0%, #001629 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
  transition: transform 0.2s ease;
}
.aph-sidebar-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.aph-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.aph-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.aph-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.aph-nav-item.active {
  background: linear-gradient(135deg, var(--aph-teal), #007c70);
  color: #fff;
  font-weight: 600;
}
.aph-nav-item i { width: 18px; text-align: center; }
.aph-nav-section-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 16px 14px 6px;
}
.aph-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.aph-user-mini {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.aph-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--aph-teal), var(--aph-blue));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 14px; flex-shrink: 0;
}

.aph-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - 260px);
}
.aph-topbar {
  background: #fff;
  border-bottom: 1px solid var(--aph-border-grey);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}
.aph-content { padding: 28px; flex: 1; }

.aph-hamburger { display: none; }

@media (max-width: 900px) {
  .aph-sidebar { transform: translateX(-100%); }
  .aph-sidebar.open { transform: translateX(0); }
  .aph-main { margin-left: 0; width: 100%; }
  .aph-hamburger { display: inline-flex; }
  .aph-sidebar-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 39;
  }
  .aph-sidebar-overlay.open { display: block; }
}

/* ---------- Login / Register Screen (Coprojecta split layout) ---------- */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-panel-form {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
  position: relative;
}
.login-form-box { width: 100%; max-width: 380px; }

/* Logo mark + wordmark at top of form */
.coprojecta-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.coprojecta-brand-mark {
  height: 44px;
  width: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.coprojecta-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.coprojecta-brand-text .name {
  font-size: 22px;
  font-weight: 800;
  color: var(--aph-navy);
  letter-spacing: -0.3px;
}
.coprojecta-brand-text .tagline {
  font-size: 10px;
  font-weight: 600;
  color: var(--aph-text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Sign In / Register tabs */
.auth-tabs {
  display: flex;
  background: var(--aph-bg-grey);
  border-radius: var(--aph-radius);
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
  border: 1px solid var(--aph-border-grey);
}
.auth-tab {
  flex: 1;
  padding: 9px 12px;
  border-radius: 7px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--aph-text-muted);
  transition: all 0.15s;
  text-decoration: none;
  text-align: center;
  display: block;
}
.auth-tab.active {
  background: #fff;
  color: var(--aph-navy);
  box-shadow: var(--aph-shadow);
}

.login-panel-visual {
  background: linear-gradient(135deg, var(--aph-navy) 0%, var(--aph-blue) 60%, var(--aph-teal) 130%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 48px;
}
.login-panel-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 30% 50%, rgba(0,168,150,0.25) 0%, transparent 60%),
                     radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.login-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}
.login-visual-content h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.login-visual-content p {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Floating "Active Projects" preview card */
.auth-preview-card {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--aph-radius);
  padding: 20px 22px;
  margin-bottom: 16px;
  text-align: left;
  transform: rotate(-1deg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.20);
}
.auth-preview-card h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.9;
}
.auth-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.auth-preview-row:last-child { border-bottom: none; }
.auth-preview-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.auth-preview-title { font-size: 12px; color: rgba(255,255,255,0.85); flex: 1; }
.auth-preview-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.auth-stats-row { display: flex; gap: 12px; margin-top: 12px; transform: rotate(1deg); }
.auth-stat-mini {
  flex: 1;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--aph-radius-sm);
  padding: 12px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.auth-stat-mini .num { font-size: 22px; font-weight: 700; color: #fff; display: block; }
.auth-stat-mini .lbl { font-size: 10px; color: rgba(255,255,255,0.65); display: block; margin-top: 2px; }

@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-panel-visual { display: none; }
  .login-panel-form { padding: 32px 24px; }
}

/* ---------- Progress bar ---------- */
.progress-bar-track {
  width: 100%; height: 8px; background: var(--aph-bg-grey);
  border-radius: 999px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--aph-teal), var(--aph-blue));
  border-radius: 999px; transition: width 0.3s ease;
}
.progress-bar-fill.success { background: var(--aph-success); }
.progress-bar-fill.info { background: var(--aph-blue); }
.progress-bar-fill.warning { background: var(--aph-warning); }
.progress-bar-fill.danger { background: var(--aph-danger); }

/* ---------- Key Links ---------- */
.key-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.key-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--aph-bg-grey);
  color: var(--aph-blue);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--aph-border-grey);
  transition: background 0.15s ease;
}
.key-link-chip:hover { background: #E2E6F0; }
.key-link-chip i { font-size: 10px; opacity: 0.7; }

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(16,24,40,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-box {
  background: #fff; border-radius: var(--aph-radius); padding: 28px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--aph-shadow-md);
}

.spinner {
  border: 3px solid rgba(0,0,0,0.08);
  border-top-color: var(--aph-teal);
  border-radius: 50%;
  width: 24px; height: 24px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; top: 20px; right: 20px; z-index: 200;
  background: var(--aph-navy); color: #fff; padding: 14px 20px;
  border-radius: var(--aph-radius-sm); box-shadow: var(--aph-shadow-md);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.toast.error { background: var(--aph-danger); }
.toast.success { background: var(--aph-success); }

/* ---------- Notifications Bell ---------- */
.notif-bell-wrap { position: relative; }
.notif-dot {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
  background: var(--aph-danger); border-radius: 50%; border: 2px solid var(--aph-white);
}
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-height: 420px;
  background: var(--aph-white); border-radius: var(--aph-radius); box-shadow: var(--aph-shadow-md);
  border: 1px solid var(--aph-border-grey); overflow: hidden; z-index: 200;
}
.notif-dropdown-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--aph-border-grey); font-weight: 700; font-size: 13px;
}
.notif-mark-all { background: none; border: none; color: var(--aph-teal); font-size: 12px; font-weight: 600; cursor: pointer; }
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--aph-border-grey); cursor: pointer; }
.notif-item:hover { background: var(--aph-bg-grey); }
.notif-item.unread { background: rgba(0,168,150,0.05); border-left: 3px solid var(--aph-teal); }
.notif-item-title { font-size: 13px; font-weight: 600; }
.notif-item-body { font-size: 12px; color: var(--aph-text-muted); margin-top: 2px; }
.notif-item-time { font-size: 11px; color: var(--aph-text-muted); margin-top: 4px; }
.notif-empty { padding: 30px 16px; text-align: center; color: var(--aph-text-muted); font-size: 13px; }
.notif-empty i { display: block; font-size: 24px; margin-bottom: 8px; opacity: 0.4; }

/* ---------- Voice-to-text mic button ---------- */
.field-with-mic { position: relative; }
.field-with-mic .form-textarea, .field-with-mic .form-input { padding-right: 44px; }
.mic-btn {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--aph-border-grey); background: #fff;
  color: var(--aph-text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all 0.15s ease; z-index: 2;
}
.mic-btn:hover { background: var(--aph-bg-grey); color: var(--aph-navy); }
.mic-btn.mic-active { background: var(--aph-danger); border-color: var(--aph-danger); color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(228,68,79,0.5); } 50% { box-shadow: 0 0 0 8px rgba(228,68,79,0); } }

/* ---------- Task acceptance banner ---------- */
.accept-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--aph-radius-sm); padding: 12px 16px; margin-bottom: 16px;
}
.accept-banner .msg { font-size: 13px; font-weight: 600; color: #92640a; }

/* ---------- Weekly update: seen-by / double-tick ---------- */
.seen-by-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.seen-by-avatars { display: flex; }
.seen-by-avatars .aph-avatar { width: 22px; height: 22px; font-size: 9px; margin-left: -8px; border: 2px solid #fff; }
.seen-by-avatars .aph-avatar:first-child { margin-left: 0; }
.double-tick { color: var(--aph-text-muted); font-size: 13px; }
.double-tick.reviewed { color: var(--aph-teal); }
.double-tick.acknowledged { color: var(--aph-success); }

/* ---------- Calendar: week / month views ---------- */
.cal-view-toggle { display: flex; gap: 4px; background: var(--aph-bg-grey); padding: 4px; border-radius: var(--aph-radius-sm); border: 1px solid var(--aph-border-grey); }
.cal-view-toggle button { border: none; background: none; padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--aph-text-muted); cursor: pointer; }
.cal-view-toggle button.active { background: #fff; color: var(--aph-navy); box-shadow: var(--aph-shadow); }

.cal-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-month-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--aph-text-muted); text-transform: uppercase; padding-bottom: 6px; }
.cal-month-cell {
  min-height: 92px; border: 1px solid var(--aph-border-grey); border-radius: 8px; padding: 6px;
  font-size: 11px; background: #fff; overflow: hidden;
}
.cal-month-cell.other-month { background: #FAFBFC; color: #c8cfda; }
.cal-month-cell.today { border-color: var(--aph-teal); border-width: 2px; }
.cal-month-cell .cal-day-num { font-weight: 700; font-size: 12px; margin-bottom: 4px; color: var(--aph-navy); }
.cal-month-cell.other-month .cal-day-num { color: #c8cfda; }
.cal-month-event {
  display: block; font-size: 10px; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; color: #fff;
}

.cal-week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-week-col { border: 1px solid var(--aph-border-grey); border-radius: 8px; padding: 10px; min-height: 200px; background: #fff; }
.cal-week-col.today { border-color: var(--aph-teal); border-width: 2px; }
.cal-week-col-header { font-size: 12px; font-weight: 700; color: var(--aph-navy); margin-bottom: 8px; text-align: center; }
.cal-week-event { font-size: 11px; padding: 6px 8px; border-radius: 6px; margin-bottom: 6px; background: var(--aph-bg-grey); border-left: 3px solid var(--aph-teal); }
.cal-week-event .time { font-weight: 700; color: var(--aph-navy); display: block; font-size: 10px; }

.cal-year-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .cal-year-grid { grid-template-columns: repeat(2, 1fr); } }
.cal-year-month-card { border: 1px solid var(--aph-border-grey); border-radius: var(--aph-radius-sm); padding: 12px; background: #fff; cursor: pointer; transition: box-shadow 0.15s; }
.cal-year-month-card:hover { box-shadow: var(--aph-shadow-md); }
.cal-year-month-title { font-size: 13px; font-weight: 700; color: var(--aph-navy); margin-bottom: 8px; text-align: center; }
.cal-year-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-year-mini-cell { aspect-ratio: 1; font-size: 8px; display: flex; align-items: center; justify-content: center; border-radius: 3px; color: #c8cfda; }
.cal-year-mini-cell.has-event { background: var(--aph-teal); color: #fff; font-weight: 700; }
.cal-year-mini-cell.other-month { visibility: hidden; }
