/* ============================================================
   SQVADRA COMMAND CENTER — Shell + Dashboard Styles
   Rail · Topbar · Mobile Tab Bar · CC Widgets
   ============================================================ */

/* ============================================================
   SHELL WRAPPER
   ============================================================ */
.sqv-shell {
  display: flex;
  min-height: 100vh;
  background: #f5f6f8;
}

.sqv-shell-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   RAIL (DARK SIDEBAR)
   ============================================================ */
.sqv-rail {
  width: 244px;
  flex-shrink: 0;
  background: #0e1813;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.05);
  transition: width .2s ease;
}

.sqv-rail--collapsed { width: 76px; }

/* Logo header */
.sqv-rail-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px;
  flex-shrink: 0;
}

.sqv-rail-logo--collapsed { justify-content: center; padding: 20px 0; }

.sqv-rail-logo a {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.sqv-rail-brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .02em;
  color: #fff;
  white-space: nowrap;
}

.sqv-rail-close-btn {
  border: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

/* Nav scroll area */
.sqv-rail-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sqv-rail-nav::-webkit-scrollbar { width: 4px; }
.sqv-rail-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

/* Group */
.sqv-rail-group { margin-bottom: 14px; }

.sqv-rail-group-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #5c6f64;
  padding: 0 12px;
  margin: 4px 0 6px;
  white-space: nowrap;
}

.sqv-rail-group-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: 10px 8px;
}

/* Nav item */
.sqv-rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  border-radius: 11px;
  margin: 2px 0;
  text-decoration: none;
  color: #9db5a8;
  font-weight: 500;
  font-size: 14px;
  transition: all .16s ease;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.sqv-rail-item:hover { background: rgba(255,255,255,.06); color: #eafff2; }

.sqv-rail-item.sqv-rail-item--active {
  background: linear-gradient(135deg,#16a34a,#15803d);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(22,163,74,.35);
}

.sqv-rail-item--active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

.sqv-rail-item--collapsed { justify-content: center; padding: 11px 0; }

.sqv-rail-item__label { flex: 1; overflow: hidden; text-overflow: ellipsis; }

.sqv-rail-item__badge {
  background: #dc3545;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.sqv-rail-item--active .sqv-rail-item__badge { background: rgba(255,255,255,.25); }
.sqv-rail-item__dot { position: absolute; top: 6px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: #dc3545; }

/* Footer / club switcher */
.sqv-rail-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }

.sqv-rail-club {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: background .15s;
}

.sqv-rail-club:hover { background: rgba(255,255,255,.09); }
.sqv-rail-club--collapsed { justify-content: center; padding: 8px 0; }

.sqv-rail-club-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg,#1E88E5,#E53935);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sqv-rail-club-info { flex: 1; min-width: 0; line-height: 1.25; }

.sqv-rail-club-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sqv-rail-club-season { font-size: 11px; color: #7c9488; }
.sqv-rail-club-chevron { color: #7c9488 !important; font-size: 18px !important; }

/* Club switcher popup */
.sqv-rail-club-popup {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0; right: 0;
  background: #1a2b22;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.sqv-rail-club-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: none;
  background: transparent;
  color: #c8dbd2;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}

.sqv-rail-club-option:hover { background: rgba(255,255,255,.07); }
.sqv-rail-club-option--active { color: #fff; font-weight: 600; }

.sqv-rail-club-option-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Card footer button (full-width, sits outside padded content area) */
.cc-card-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: none;
  border-top: 1px solid #e5e7eb;
  background: transparent;
  border-radius: 0 0 15px 15px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.cc-card-footer-btn:hover { background: #f5f6f8; }

/* Mobile overlay */
.sqv-rail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,26,20,.5);
  z-index: 210;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.sqv-topbar {
  height: 68px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 26px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}

.sqv-topbar-toggle {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  transition: background .15s;
  flex-shrink: 0;
}

.sqv-topbar-toggle:hover { background: #f3f4f6; }

.sqv-topbar-logo-mobile { display: none; align-items: center; gap: 8px; }

.sqv-topbar-search {
  flex: 1;
  max-width: 440px;
  position: relative;
  display: flex;
  align-items: center;
}

.sqv-topbar-search input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  font-size: 14px;
  font-family: inherit;
  background: #f5f6f8;
  outline: none;
  color: #1f2937;
  transition: all .15s ease;
}

.sqv-topbar-search input:focus {
  background: #fff;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}

.sqv-search-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  pointer-events: none;
  font-size: 18px !important;
}

.sqv-search-kbd {
  position: absolute;
  right: 12px;
  font-size: 11px;
  color: #9ca3af;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 2px 6px;
  font-family: inherit;
}

.sqv-topbar-spacer { flex: 1; }

.sqv-topbar-btn {
  width: 40px; height: 40px;
  border-radius: 11px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  transition: background .15s;
  position: relative;
  flex-shrink: 0;
}

.sqv-topbar-btn:hover, .sqv-topbar-btn--active { background: #f3f4f6; }

.sqv-notif-badge {
  position: absolute;
  top: 8px; right: 9px;
  min-width: 15px; height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.sqv-topbar-divider { height: 30px; width: 1px; background: #e5e7eb; margin: 0 6px; flex-shrink: 0; }

/* Ensure RadzenProfileMenu doesn't expand beyond its content */
.sqv-topbar .user-menu,
.sqv-topbar .rz-profile-menu { flex-shrink: 0; }

.sqv-topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}

.sqv-topbar-user:hover { background: #f3f4f6; }
.sqv-topbar-user-info { line-height: 1.25; }
.sqv-topbar-user-name { font-size: 13px; font-weight: 700; color: #1f2937; }
.sqv-topbar-user-role { font-size: 11px; color: #6b7280; }

/* Avatar */
.sqv-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.sqv-cc-content {
  flex: 1;
  padding: 26px 30px 40px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  min-width: 0;
}

/* ============================================================
   COMMAND CENTER LAYOUT PRIMITIVES
   ============================================================ */
.cc-stack { display: flex; flex-direction: column; gap: 22px; }

.cc-grid-2 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.cc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ============================================================
   CARD PRIMITIVE
   ============================================================ */
.cc-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15,26,20,.04);
  transition: all .25s cubic-bezier(.2,.6,.3,1);
}

.cc-card--hover:hover {
  box-shadow: 0 10px 30px rgba(15,26,20,.10);
  transform: translateY(-2px);
}

.cc-card--full { height: 100%; display: flex; flex-direction: column; }
.cc-card__pad { padding: 20px; }

/* Panel header inside card */
.cc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.cc-panel-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cc-panel-icon-chip {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: #f3f4f6;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cc-panel-head-texts { min-width: 0; }
.cc-panel-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: #1f2937; }
.cc-panel-sub { font-size: 12px; color: #6b7280; margin-top: 1px; }

/* ============================================================
   HERO
   ============================================================ */
.cc-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cc-hero__date {
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.cc-hero__title {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #1f2937;
  line-height: 1.1;
}

.cc-hero__lead {
  font-size: 15px;
  color: #6b7280;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.cc-hero__actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.cc-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cc-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  transition: all .16s ease;
  white-space: nowrap;
  text-decoration: none;
}

.cc-quick-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15,26,20,.08);
}

.cc-quick-btn__icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   KPI CARD
   ============================================================ */
.cc-kpi-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-left-width: 4px;
  box-shadow: 0 1px 2px rgba(15,26,20,.04);
  transition: all .25s cubic-bezier(.2,.6,.3,1);
}

.cc-kpi-card:hover { box-shadow: 0 10px 30px rgba(15,26,20,.10); transform: translateY(-2px); }

.cc-kpi-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }

.cc-kpi-card__label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }

.cc-kpi-card__icon-chip { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }

.cc-kpi-card__value {
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: #1f2937;
  line-height: 1;
}

.cc-kpi-card__footer { display: flex; align-items: center; gap: 5px; margin-top: 9px; }

.cc-kpi-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
}

.cc-kpi-card__trend--up { color: #16a34a; }
.cc-kpi-card__trend--down { color: #dc3545; }
.cc-kpi-card__trend-foot { font-size: 12px; color: #9ca3af; }

/* ============================================================
   BADGE PRIMITIVES
   ============================================================ */
.cc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.cc-badge--success { background: #dcfce7; color: #15803d; }
.cc-badge--info    { background: #cdf3fb; color: #075f73; }
.cc-badge--warning { background: #fef0cd; color: #92580a; }
.cc-badge--danger  { background: #fde0e3; color: #9f1239; }
.cc-badge--neutral { background: #f3f4f6; color: #1f2937; }
.cc-badge--home    { background: #dcfce7; color: #15803d; }
.cc-badge--away    { background: #e7eefc; color: #1d4ed8; }
.cc-badge--attending { background: linear-gradient(135deg,#28a745,#20c997); color: #fff; }
.cc-badge--absent    { background: linear-gradient(135deg,#dc3545,#e74c3c); color: #fff; }
.cc-badge--maybe     { background: linear-gradient(135deg,#ffc107,#ff9800); color: #212529; }

/* ============================================================
   BUTTON PRIMITIVES (for widgets, not nav)
   ============================================================ */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s ease;
  white-space: nowrap;
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding: 9px 16px;
  text-decoration: none;
}

.cc-btn:hover { transform: translateY(-1px); }
.cc-btn--sm   { font-size: 13px; padding: 7px 12px; }
.cc-btn--full { width: 100%; justify-content: center; }

.cc-btn--primary      { background: #16a34a; color: #fff; box-shadow: 0 1px 2px rgba(22,163,74,.2); }
.cc-btn--primary:hover { background: #15803d; box-shadow: 0 4px 14px rgba(22,163,74,.32); }
.cc-btn--secondary     { background: #fff; color: #1f2937; border-color: #e5e7eb; }
.cc-btn--secondary:hover { background: #f3f4f6; }
.cc-btn--ghost         { background: transparent; color: #1f2937; }
.cc-btn--ghost:hover   { background: #f3f4f6; }
.cc-btn--soft          { background: #dcfce7; color: #15803d; }
.cc-btn--soft:hover    { background: #bbf7d0; }
.cc-btn--danger-soft   { background: #fde0e3; color: #9f1239; }
.cc-btn--danger-soft:hover { background: #fecdd3; }

/* ============================================================
   TASK ROW
   ============================================================ */
.cc-task-row {
  display: flex;
  gap: 13px;
  padding: 14px 20px;
  border-top: 1px solid #f3f4f6;
  align-items: center;
  transition: background .15s;
}

.cc-task-row:hover { background: #f5f6f8; }

/* ============================================================
   EVENT ROW
   ============================================================ */
.cc-event-row {
  display: flex;
  gap: 14px;
  padding: 13px 20px;
  align-items: center;
  border-top: 1px solid #f3f4f6;
  cursor: pointer;
  transition: padding .15s, background .15s;
  text-decoration: none;
  color: inherit;
}

.cc-event-row:hover { background: #f5f6f8; padding-left: 24px; }

.cc-event-date-chip {
  width: 50px;
  text-align: center;
  flex-shrink: 0;
  background: #f5f6f8;
  border-radius: 10px;
  padding: 6px 0;
  border: 1px solid #e5e7eb;
}

.cc-event-date-day { font-size: 19px; font-weight: 800; color: #1f2937; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-event-date-mo  { font-size: 9.5px; font-weight: 700; color: #6b7280; letter-spacing: .05em; }

/* ============================================================
   RSVP TOGGLE (inline, in MyEventsPanel)
   ============================================================ */
.cc-rsvp-row { display: flex; gap: 7px; margin-top: 11px; }

.cc-rsvp-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  transition: all .15s ease;
}

.cc-rsvp-btn--yes    { border-color: #16a34a; background: #16a34a; color: #fff; }
.cc-rsvp-btn--maybe  { border-color: #f59e0b; background: #f59e0b; color: #fff; }
.cc-rsvp-btn--no     { border-color: #dc3545; background: #dc3545; color: #fff; }

/* ============================================================
   RING (RSVP donut)
   ============================================================ */
.cc-ring-wrap { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.cc-ring-legend { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.cc-ring-legend-item { display: flex; align-items: center; gap: 9px; }
.cc-ring-legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.cc-ring-legend-label { font-size: 13px; color: #1f2937; flex: 1; }
.cc-ring-legend-val { font-size: 14px; font-weight: 700; color: #1f2937; font-variant-numeric: tabular-nums; }

/* ============================================================
   ANNOUNCEMENTS ROW
   ============================================================ */
.cc-ann-row {
  display: flex;
  gap: 12px;
  padding: 13px 20px;
  border-top: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: inherit;
}

.cc-ann-row:hover { background: #f5f6f8; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.cc-progress-track {
  height: 9px;
  border-radius: 99px;
  background: #f3f4f6;
  overflow: hidden;
}

.cc-progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width .4s ease;
}

/* ============================================================
   MOBILE TAB BAR
   ============================================================ */
.sqv-mobile-tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  z-index: 120;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e5e7eb;
  display: none;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
}

.sqv-mobile-tabbar-btn {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  color: #6b7280;
  transition: color .15s;
  text-decoration: none;
}

.sqv-mobile-tabbar-btn.sqv-tab-active { color: #16a34a; }

.sqv-mobile-tabbar-btn .material-symbols-outlined { font-size: 23px !important; }
.sqv-tab-active .material-symbols-outlined { font-variation-settings: 'FILL' 1; }

.sqv-mobile-tabbar-label { font-size: 10.5px; font-weight: 500; }
.sqv-tab-active .sqv-mobile-tabbar-label { font-weight: 700; }

/* ============================================================
   ENTER ANIMATION
   ============================================================ */
.cc-stagger > * {
  animation: ccRiseIn .45s cubic-bezier(.2,.6,.3,1) both;
}

.cc-stagger > *:nth-child(1) { animation-delay: 0ms; }
.cc-stagger > *:nth-child(2) { animation-delay: 60ms; }
.cc-stagger > *:nth-child(3) { animation-delay: 120ms; }
.cc-stagger > *:nth-child(4) { animation-delay: 180ms; }
.cc-stagger > *:nth-child(5) { animation-delay: 240ms; }
.cc-stagger > *:nth-child(6) { animation-delay: 300ms; }

@keyframes ccRiseIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cc-stagger > * { animation: none; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Compact: 2-column → 1-column */
@media (max-width: 1100px) {
  .cc-grid-2 { grid-template-columns: 1fr; }
}

/* Mobile: full overhaul */
@media (max-width: 768px) {
  .sqv-rail {
    position: fixed;
    left: 0; top: 0;
    height: 100vh;
    width: 264px;
    z-index: 220;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.2,.6,.3,1), box-shadow .25s;
  }

  .sqv-rail--collapsed { width: 264px; }
  .sqv-rail--open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,.4); }

  .sqv-topbar { height: 60px; padding: 0 14px; gap: 8px; }
  .sqv-topbar-logo-mobile { display: flex; }
  .sqv-topbar-search { display: none; }
  .sqv-topbar-divider { display: none; }
  .sqv-topbar-user-info { display: none; }

  .sqv-cc-content { padding: 16px 14px 80px; }

  .cc-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .cc-hero__actions { display: none; }

  .cc-hero { overflow: hidden; }
  .cc-hero > div:first-child { min-width: 0; overflow: hidden; }
  .cc-hero__title { font-size: 24px; overflow: hidden; text-overflow: ellipsis; }
  .cc-mobile-tabbar-label { font-size: 9.5px; }

  .sqv-mobile-tabbar { display: flex; }
}
