:root {
  --bg: #f2f5f1;
  --surface: #ffffff;
  --surface-alt: #f7faf7;
  --border: #e3e9e2;
  --border-soft: #edf2ec;
  --text: #0a0f0a;
  --text-soft: #414a41;
  --muted: #828d81;

  --accent: #14a44a;
  --accent-bright: #34e072;
  --accent-deep: #0a7836;
  --accent-soft: #e2fbe9;
  --accent-ink: #063d1c;

  --violet: #7c3aed;
  --violet-bright: #a78bfa;
  --violet-soft: #f1e8fe;
  --violet-ink: #4c1d95;

  --ink: #060b07;
  --ink-soft: #111a12;

  --danger: #ef233c;
  --danger-soft: #ffe3e8;
  --warn: #f59e0b;
  --warn-soft: #fff2d9;
  --info: #2563eb;
  --info-soft: #e3edff;

  --donut-track: #edf2ec;

  /* Bold solid "spotlight" card colors — used for featured tiles against the
     light background, Pinterest-moodboard style color blocking. */
  --block-blue: #2d4fff;
  --block-blue-ink: #ffffff;
  --block-teal: #3f8f94;
  --block-teal-ink: #ffffff;
  --block-yellow: #f6d94c;
  --block-yellow-ink: #1a1a0a;
  --block-black: #0c0f0c;
  --block-black-ink: #ffffff;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 11px;

  --shadow-sm: 0 1px 3px rgba(5, 10, 6, 0.05);
  --shadow-md: 0 14px 34px rgba(5, 10, 6, 0.08);
  --shadow-lg: 0 30px 70px rgba(4, 8, 5, 0.20);
  --shadow-glow: 0 0 0 1px rgba(20, 164, 74, 0.1), 0 18px 40px rgba(20, 164, 74, 0.22);

  --font-display: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 85% 0%, rgba(45, 79, 255, 0.07), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(20, 164, 74, 0.08), transparent 45%),
    linear-gradient(160deg, #eef3fb 0%, #eef6ef 55%, #f1f6ee 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

/* ---------------- Layout ---------------- */

.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 16px;
  gap: 16px;
}

.content {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 4px 24px 64px;
  overflow-x: auto;
  max-width: 1440px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 22px 0 22px;
}

/* ---------------- Top nav (horizontal) ---------------- */

.topnav {
  width: 100%;
  flex-shrink: 0;
  background: linear-gradient(100deg, #0a130c 0%, #060a07 55%, #0a150d 100%);
  color: #c7d2cb;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 20px;
  position: sticky;
  top: 16px;
  z-index: 50;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.topnav::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(52, 224, 114, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.topnav::after {
  content: "";
  position: absolute;
  bottom: -140px;
  right: 15%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.topnav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.topnav-logo img {
  width: 30px;
  height: auto;
  filter: brightness(0) invert(1);
}

.topnav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.topnav-logo-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: #fff;
}

.topnav-logo-sub {
  font-size: 10px;
  color: #7c8a81;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topnav-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav-nav::-webkit-scrollbar { display: none; }

.topnav-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: #aab6af;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.topnav-nav a .icon {
  opacity: 0.85;
  flex-shrink: 0;
}

.topnav-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: #f1f5f0;
  transform: translateY(-1px);
}

.topnav-nav a.active {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  box-shadow: 0 8px 18px rgba(20, 164, 74, 0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.topnav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}

.topnav-user-info {
  display: none;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.topnav-user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.topnav-user-role {
  font-size: 10.5px;
  color: #6e7b73;
}

.topnav-logout button {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #c7d2cb;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.topnav-logout button:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

@media (min-width: 1200px) {
  .topnav-user-info { display: flex; }
}

/* ---------------- Avatars ---------------- */

.avatar {
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-display);
  box-shadow: 0 4px 12px rgba(20, 164, 74, 0.3);
}

.avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.avatar-xs { width: 24px; height: 24px; font-size: 11px; }

/* ---------------- Topbar ---------------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  width: 380px;
  max-width: 45vw;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.topbar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.topbar-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  width: 100%;
  font-family: var(--font-body);
  color: var(--text);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.topbar-divider {
  width: 1px;
  height: 26px;
  background: var(--border);
  margin: 0 4px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.topbar-user-name {
  font-size: 13px;
  font-weight: 600;
}

.topbar-user-role {
  font-size: 11px;
  color: var(--muted);
}

/* ---------------- Flash ---------------- */

.flash {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0 0;
  font-size: 13.5px;
  font-weight: 500;
}

.flash-success { background: var(--accent-soft); color: var(--accent-ink); }
.flash-error { background: var(--danger-soft); color: #9f1239; }

/* ---------------- Hero (dashboard) ---------------- */

.hero {
  background: transparent;
  border-radius: 0;
  padding: 4px 0 30px;
  color: var(--text);
  position: relative;
  box-shadow: none;
  margin-bottom: 8px;
}

.hero-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin: 0 0 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  max-width: 520px;
  line-height: 1.08;
  color: var(--ink);
}

.hero-sub {
  color: var(--text-soft);
  font-size: 14.5px;
  margin: 0;
  max-width: 420px;
}

.hero-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.hero-chip {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  min-width: 165px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-chip:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hero-chip-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.hero-chip-label .icon { color: var(--accent); }
.hero-chips .hero-chip:nth-child(2) .hero-chip-label .icon { color: var(--violet); }
.hero-chips .hero-chip:nth-child(3) .hero-chip-label .icon { color: var(--info); }

.hero-chip-value {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-chip-value.trend-up { color: var(--accent-deep); }
.hero-chip-value.trend-down { color: var(--danger); }

.hero-chip-note {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------------- Stats grid ---------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.stat-card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
  border-color: transparent;
}

.stat-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 4px;
}

.stat-card-warn .stat-card-icon { background: var(--danger-soft); color: var(--danger); }

/* Rotate a bold accent color per stat card — both the icon chip and a soft
   tinted card background — so a row reads like a colorful moodboard grid,
   not a wall of identical white cards. Borders drop out on tinted cards
   since the color wash itself provides the separation. */
.stats-grid .stat-card:not(.stat-card-warn) { background: var(--accent-soft); border-color: transparent; }
.stats-grid .stat-card:nth-child(4n+2):not(.stat-card-warn) { background: var(--violet-soft); }
.stats-grid .stat-card:nth-child(4n+3):not(.stat-card-warn) { background: var(--info-soft); }
.stats-grid .stat-card:nth-child(4n+4):not(.stat-card-warn) { background: var(--warn-soft); }

.stats-grid .stat-card:nth-child(4n+2):not(.stat-card-warn) .stat-card-icon { background: rgba(255,255,255,0.65); color: var(--violet-ink); }
.stats-grid .stat-card:nth-child(4n+3):not(.stat-card-warn) .stat-card-icon { background: rgba(255,255,255,0.65); color: #1d4ed8; }
.stats-grid .stat-card:nth-child(4n+4):not(.stat-card-warn) .stat-card-icon { background: rgba(255,255,255,0.65); color: #b45309; }
.stats-grid .stat-card:nth-child(4n+1):not(.stat-card-warn) .stat-card-icon { background: rgba(255,255,255,0.65); color: var(--accent-ink); }

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat-card-warn .stat-value { color: var(--danger); }

.stat-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

/* ---------------- Panels ---------------- */

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-header h3 {
  margin: 0;
  font-size: 15.5px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-header a {
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.panel-wide { grid-column: span 2; }

.panel-donut {
  display: flex;
  align-items: center;
  gap: 18px;
}

.panel-subheader {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.panel-subheader h4 {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* ---------------- Donut ---------------- */

.donut-wrap {
  position: relative;
  flex-shrink: 0;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.donut-sub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

.donut-arc {
  transition: stroke-dashoffset 0.6s ease;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.donut-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-legend-label { color: var(--text-soft); flex: 1; }
.donut-legend-value { font-weight: 700; }

/* ---------------- Task / notification / activity lists ---------------- */

.task-list, .notif-list, .activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.task-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border-soft);
}

.task-list li:last-child { border-bottom: none; padding-bottom: 2px; }

.task-list-title { font-weight: 600; }

.task-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

.due-chip {
  background: var(--info-soft);
  color: #1d4ed8;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.notif-item {
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  margin-bottom: 8px;
  border-left: 3px solid var(--border);
}

.notif-danger { background: var(--danger-soft); color: #9f1239; border-left-color: var(--danger); }

.activity-list li {
  font-size: 13px;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.activity-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.activity-list li:last-child { border-bottom: none; }

.activity-time {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.empty-row { color: var(--muted); font-size: 13px; padding: 6px 0; }

/* ---------------- Progress bars ---------------- */

.progress-bar {
  width: 100%;
  height: 7px;
  background: var(--donut-track);
  border-radius: 999px;
  overflow: hidden;
  margin: 9px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 999px;
}

.progress-bar-fill-alt { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.progress-bar-fill-warn { background: linear-gradient(90deg, #d97706, #fbbf24); }
.progress-bar-fill-danger { background: linear-gradient(90deg, #e11d48, #fb7185); }

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}

.project-progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.progress-row-name { font-weight: 600; }

/* ---------------- Workload ---------------- */

.workload-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.workload-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  margin-bottom: 5px;
}

.workload-row-head .avatar-xs { margin-right: 2px; }
.workload-row-name { font-weight: 600; flex: 1; }
.workload-row-count { color: var(--muted); font-size: 11.5px; }

/* ---------------- Badges ---------------- */

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  letter-spacing: 0.01em;
}

.badge-low { background: var(--info-soft); color: #1d4ed8; }
.badge-medium { background: var(--warn-soft); color: #b45309; }
.badge-high { background: var(--danger-soft); color: #be123c; }

.badge-status-lead { background: var(--warn-soft); color: #b45309; }
.badge-status-active { background: var(--accent-soft); color: var(--accent-ink); }
.badge-status-inactive { background: #eef0ee; color: #5c655f; }
.badge-status-todo { background: #eef0ee; color: #5c655f; }
.badge-status-in_progress { background: var(--info-soft); color: #1d4ed8; }
.badge-status-done { background: var(--accent-soft); color: var(--accent-ink); }
.badge-status-on_track { background: var(--accent-soft); color: var(--accent-ink); }
.badge-status-at_risk { background: var(--warn-soft); color: #b45309; }
.badge-status-off_track { background: var(--danger-soft); color: #be123c; }
.badge-status-completed { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------------- Attendance log: late check-in highlighting ---------------- */
.data-table tbody tr.att-log-red { background: var(--danger-soft); }
.data-table tbody tr.att-log-red:hover { background: var(--danger-soft); }
.data-table tbody tr.att-log-yellow { background: var(--warn-soft); }
.data-table tbody tr.att-log-yellow:hover { background: var(--warn-soft); }

.att-late-time-red {
  color: #be123c;
  font-weight: 800;
}

.att-late-time-yellow {
  color: #b45309;
  font-weight: 800;
}

.att-late-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #80847c;
  font-weight: 600;
  flex-wrap: wrap;
}

.att-late-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.att-late-dot-red { background: var(--danger-soft); border: 1.5px solid #be123c; }
.att-late-dot-yellow { background: var(--warn-soft); border: 1.5px solid #b45309; margin-left: 10px; }

/* ---------------- Notion-style database table (Tasks list) ---------------- */
.db-filter-form select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}

.db-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 14px);
  overflow-x: auto;
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.db-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b8f87;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.db-table thead th a {
  color: inherit;
  text-decoration: none;
}

.db-table thead th a:hover { color: var(--ink, #111); }

.db-row { border-bottom: 1px solid #f1f2ef; transition: background 0.1s ease; }
.db-row:hover { background: #fafaf8; }
.db-row:last-child { border-bottom: none; }

.db-table td { padding: 2px 8px; vertical-align: middle; }

.db-cell-title { display: flex; align-items: center; gap: 4px; min-width: 220px; }

.db-title-open {
  opacity: 0;
  color: #9a9d95;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.1s ease;
}

.db-row:hover .db-title-open { opacity: 1; }

.db-cell-muted { color: #80847c; font-size: 13px; white-space: nowrap; }

.db-field {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 13.5px;
  font-family: inherit;
  color: inherit;
}

.db-field-title { font-weight: 600; }

.db-field:hover { background: #f4f5f2; }
.db-field:focus { background: #fff; border-color: var(--accent); outline: none; }

.db-field-date { width: 130px; color: #5c655f; }

.db-select {
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: #5c655f;
  max-width: 150px;
  cursor: pointer;
}

.db-select:hover { background: #f4f5f2; }
.db-select:focus { background: #fff; border-color: var(--accent); outline: none; color: inherit; }

.db-pill {
  border: none;
  border-radius: 999px;
  padding: 4px 10px 4px 11px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.db-pill:focus { outline: 2px solid var(--accent); }

.db-col-actions { width: 110px; text-align: right; white-space: nowrap; padding-right: 14px; }

.db-row-actions { opacity: 0; transition: opacity 0.1s ease; font-size: 12.5px; display: flex; gap: 10px; justify-content: flex-end; }
.db-row-actions a, .db-row-actions .link-danger { color: #80847c; }
.db-row-actions a:hover { color: var(--accent); }
.db-row:hover .db-row-actions { opacity: 1; }

.db-add-row td { padding: 0; }

.db-quick-add { display: flex; align-items: center; gap: 8px; padding: 10px 14px; }
.db-quick-add-icon { color: #9a9d95; display: flex; }
.db-quick-add input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: #80847c;
  padding: 4px 0;
}
.db-quick-add input:focus { outline: none; color: inherit; }

/* ---------------- Toolbar / buttons ---------------- */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input,
.search-form select {
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  background: var(--surface);
  font-family: var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-form input:focus,
.search-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 164, 74, 0.32);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(20, 164, 74, 0.4); }

.btn-secondary {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--surface); box-shadow: var(--shadow-sm); transform: translateY(-1px); }

/* ---------------- Tables ---------------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 13.5px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
  padding: 14px 17px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.data-table tbody tr { transition: background 0.1s ease; }
.data-table tbody tr:hover { background: var(--accent-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table th {
  background: var(--ink);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9fb0a0;
  font-weight: 700;
}

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

.actions a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.link-danger {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  padding: 0;
}

.status-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 12.5px;
  background: var(--surface);
  font-family: var(--font-body);
}

/* ---------------- Project cards ---------------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.project-card:hover { box-shadow: var(--shadow-glow); transform: translateY(-3px); }

/* Soft rotating tints so the project grid reads as a colorful board, same language as the stat cards. */
.project-grid .project-card:nth-child(4n+1) { background: var(--accent-soft); border-color: transparent; }
.project-grid .project-card:nth-child(4n+2) { background: var(--violet-soft); border-color: transparent; }
.project-grid .project-card:nth-child(4n+3) { background: var(--info-soft); border-color: transparent; }
.project-grid .project-card:nth-child(4n+4) { background: var(--warn-soft); border-color: transparent; }

.project-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.project-card-head h3 {
  margin: 0;
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 700;
}

.project-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0;
  min-height: 32px;
}

.project-actions { margin-top: 8px; }

/* ---------------- Forms ---------------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow-sm);
}

.form-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface-alt);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-soft);
  border-color: var(--accent);
  background: var(--surface);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* ---------------- Auth ---------------- */

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 18%, #173f28 0%, #080c0a 55%), linear-gradient(135deg, #0a130c, #060a07);
}

.auth-body::before {
  content: "";
  position: absolute;
  top: -10%;
  right: 5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(52, 224, 114, 0.22), transparent 70%);
  filter: blur(20px);
}

.auth-body::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: 8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 70%);
  filter: blur(20px);
}

.auth-card {
  background: var(--surface);
  padding: 44px 38px 40px;
  border-radius: var(--radius-xl);
  width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-bright), var(--violet));
}

.auth-logo {
  width: 110px;
  margin-bottom: 18px;
}

.auth-card h2 {
  margin: 0 0 22px;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 800;
}

.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.auth-card label {
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-card input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  background: var(--surface-alt);
  font-family: var(--font-body);
}

.auth-card button {
  margin-top: 8px;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(20, 164, 74, 0.32);
  transition: transform 0.15s ease;
}

.auth-card button:hover { transform: translateY(-2px); }

.auth-hint {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------------- Toolbar right / misc ---------------- */

.toolbar-right {
  display: flex;
  gap: 10px;
}

.row-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.row-link:hover { color: var(--accent); }

.badge-urgent { background: #fee2e2; color: #991b1b; border: 1px solid #fecdd3; }
.badge-status-in_review { background: #f3e8ff; color: #7e22ce; }

/* ---------------- Kanban board ---------------- */

.content-board { max-width: none; }

.board {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 12px;
}

.board-column {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 15px;
  width: 292px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.board-column-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
}

.board-column-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.board-dot-todo { background: #94a3b8; }
.board-dot-in_progress { background: var(--violet); }
.board-dot-in_review { background: #7e22ce; }
.board-dot-completed { background: var(--accent); }

.board-column-title {
  font-weight: 800;
  font-size: 13.5px;
  flex: 1;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.board-column-count {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
}

.board-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
}

.board-add-btn:hover { border-color: var(--accent); color: var(--accent-ink); }

.board-column-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 60px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.board-column-body.drag-over {
  background: var(--accent-soft);
}

.task-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.task-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.task-card.dragging { opacity: 0.4; }

.task-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-card-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.task-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

.task-card-title:hover { color: var(--accent); }

.task-card-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card-progress .progress-row-head {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.task-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.task-card-foot-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.task-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: var(--muted);
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 600;
}

.task-card-due { color: #1d4ed8; background: var(--info-soft); }

/* ---------------- Task detail page ---------------- */

.detail-breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 18px;
  display: flex;
  gap: 6px;
}

.detail-breadcrumb a { text-decoration: none; color: var(--text-soft); font-weight: 600; }
.detail-breadcrumb a:hover { color: var(--accent); }

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 10px 0 20px;
  gap: 16px;
}

.detail-title { margin: 0 0 8px; }

.detail-badges {
  display: flex;
  gap: 8px;
}

.detail-head-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-danger-outline {
  color: var(--danger);
}

.btn-danger-outline:hover { background: var(--danger-soft); border-color: var(--danger); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.detail-main, .detail-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.detail-grid-single {
  grid-template-columns: 1fr;
}

.detail-grid-single .detail-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.detail-desc {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.meta-row > span:first-child {
  color: var(--muted);
  font-weight: 500;
}

.meta-sublabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  margin: 14px 0 8px;
}

/* ---------------- Checklist ---------------- */

.checklist {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border-soft);
}

.checklist-item:last-child { border-bottom: none; }

.checklist-toggle {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item.is-done .checklist-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.checklist-text {
  flex: 1;
  font-size: 13.5px;
}

.checklist-item.is-done .checklist-text {
  text-decoration: line-through;
  color: var(--muted);
}

.checklist-item form { margin: 0; }

/* ---------------- Attachments ---------------- */

.attachment-list {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attachment-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}

.attachment-list li:last-child { border-bottom: none; }

.attachment-list a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  flex: 1;
}

.attachment-list a:hover { color: var(--accent); }

.attachment-size {
  font-size: 11.5px;
  color: var(--muted);
}

.attachment-list form { margin: 0; }

/* ---------------- Comments ---------------- */

.comment-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-list li {
  display: flex;
  gap: 10px;
}

.comment-body { flex: 1; }

.comment-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.comment-head strong { color: var(--text); font-size: 13px; }

.comment-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ---------------- Inline forms ---------------- */

.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.inline-form input[type="text"],
.inline-form select,
.inline-form input[type="file"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--surface-alt);
  font-family: var(--font-body);
}

.inline-form-stacked {
  flex-direction: column;
  align-items: flex-start;
}

.inline-form input[type="url"] {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--surface-alt);
  font-family: var(--font-body);
  width: 100%;
}

#linkAttachInputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.inline-form-stacked textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font-body);
  background: var(--surface-alt);
  resize: vertical;
}

/* ---------------- Form rows ---------------- */

.form-card-wide { max-width: 640px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  font-size: 13px !important;
}

.checkbox-label input { width: auto; }

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

/* ---------------- Project overview dots / misc ---------------- */

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

.dot-track { background: var(--accent); }
.dot-warn { background: #d97706; }
.dot-danger { background: #e11d48; }

.task-subtext {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------------- View switcher ---------------- */

.view-switcher {
  display: flex;
  gap: 2px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.view-switcher a {
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 999px;
}

.view-switcher a.active {
  background: var(--ink);
  color: #fff;
}

/* ---------------- Embedded board (project detail) ---------------- */

.board-embedded {
  margin: 0;
  padding-bottom: 4px;
}

.board-embedded .board-column {
  width: 250px;
}

.task-card-link {
  text-decoration: none;
  color: inherit;
}

/* ---------------- Calendar ---------------- */

.calendar { margin-top: 6px; }

.calendar-label {
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-display);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-head-row {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

.calendar-cell {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-height: 78px;
  padding: 6px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calendar-cell-out { opacity: 0.4; }

.calendar-cell-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.calendar-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}

.calendar-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.calendar-more {
  font-size: 10px;
  color: var(--muted);
}

/* ---------------- Gantt ---------------- */

.gantt { margin-top: 6px; }

.gantt-range {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 2px;
}

.gantt-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gantt-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: center;
}

.gantt-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-label:hover { color: var(--accent); }

.gantt-track {
  position: relative;
  height: 20px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
}

.gantt-bar {
  position: absolute;
  top: 2px;
  height: 16px;
  border-radius: 999px;
  min-width: 10px;
}

/* ---------------- Member / milestone / risk lists ---------------- */

.member-list, .milestone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-list li, .milestone-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}

.member-list li:last-child, .milestone-list li:last-child { border-bottom: none; }

.member-name { flex: 1; font-weight: 600; }

.milestone-text { flex: 1; }

.milestone-list li.is-done .milestone-text {
  text-decoration: line-through;
  color: var(--muted);
}

.member-list form, .milestone-list form { margin: 0; }

.risk-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk-item {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface-alt);
  border-left: 3px solid var(--border);
}

.risk-item.risk-low { border-left-color: #60a5fa; }
.risk-item.risk-medium { border-left-color: #d97706; }
.risk-item.risk-high { border-left-color: #e11d48; }
.risk-item.is-resolved { opacity: 0.5; }

.risk-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.risk-item p {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.risk-item .actions { gap: 14px; }
.risk-item form { margin: 0; }

@media (max-width: 900px) {
  .panel-wide { grid-column: span 1; }
  .topbar-search { display: none; }
}

/* ---------------- Team / employee workload ---------------- */

.workload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.employee-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.employee-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.employee-card-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.employee-card-name {
  display: block;
  font-weight: 700;
  font-size: 14px;
}

.employee-detail-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.employee-detail-identity .avatar {
  width: 52px;
  height: 52px;
  font-size: 20px;
}

.badge-workload-balanced { background: var(--accent-soft); color: var(--accent-ink); }
.badge-workload-busy { background: var(--warn-soft); color: #b45309; }
.badge-workload-overloaded { background: var(--danger-soft); color: #be123c; }
.badge-workload-underutilized { background: #eef0ee; color: #5c655f; }

.badge-on-leave {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--info-soft);
  color: #1d4ed8;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  width: fit-content;
}

.employee-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.employee-stat-numbers {
  display: flex;
  gap: 18px;
}

.employee-stat-numbers .stat-value { font-size: 20px; }

.employee-time-estimate {
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}

.estimate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0;
}

.estimate-numbers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 600;
}

.estimate-numbers small {
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}

.segmented-bar {
  display: flex;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--donut-track);
}

.task-group {
  border-top: 1px solid var(--border-soft);
  padding-top: 8px;
}

.task-group summary {
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.task-group summary::-webkit-details-marker { display: none; }

.task-group-count {
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 10.5px;
  color: var(--muted);
}

.mini-task-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-task-list li {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
}

.mini-task-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.mini-task-list a:hover { color: var(--accent); }

.workload-summary-card {
  display: flex;
  flex-direction: column;
}

.workload-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
  padding: 0 4px;
}

.workload-bar-col { flex: 1; display: flex; align-items: flex-end; }

.workload-bar-track {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.workload-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border-radius: 6px;
  min-height: 6px;
}

.workload-avatars {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.workload-avatars .avatar { text-decoration: none; }

/* ---------------- Teams ---------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.team-card {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-card-head form { margin: 0; }

.team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 4px 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
}

.team-member-chip form { margin: 0; }

.team-member-chip button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 6px;
}

.team-member-chip button:hover { color: var(--danger); }

/* ---------------- Leave list ---------------- */

.leave-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leave-list li {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.leave-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.leave-reason {
  font-size: 12px;
  color: var(--text-soft);
  margin: 4px 0 0;
}

.leave-list .actions { margin-top: 8px; gap: 14px; }
.leave-list form { margin: 0; }

/* ---------------- Time tracking ---------------- */

.running-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.running-banner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid #bbf0cf;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
}

.running-banner-item a {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}

.running-banner-item form { margin-left: auto; }

.timer-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
  animation: pulse-dot 1.4s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.time-stat-card { gap: 8px; }

.time-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-icon-red { background: #fee2e2; color: #dc2626; }
.stat-icon-blue { background: #dbeafe; color: #2563eb; }
.stat-icon-amber { background: #fef3c7; color: #b45309; }

.sparkline { display: block; }

.row-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
}

.report-donut-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

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

.multi-donut-center .donut-value { font-size: 16px; }

.tracked-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tracked-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tracked-row-name {
  width: 110px;
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.tracked-row-track {
  flex: 1;
  height: 10px;
  background: var(--donut-track);
  border-radius: 999px;
  overflow: hidden;
}

.tracked-row-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
}

.tracked-row-value {
  width: 70px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}

.time-summary {
  display: flex;
  gap: 22px;
  padding: 10px 0 14px;
}

.time-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-summary-item .stat-value { font-size: 17px; }

.variance-over { color: var(--danger); font-weight: 700; }
.variance-under { color: var(--accent); font-weight: 700; }

.timer-running {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--danger-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #9f1239;
  margin-bottom: 14px;
}

.timer-running form { margin-left: auto; }

.time-entry-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time-entry-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}

.time-entry-list li:last-child { border-bottom: none; }

.time-entry-emp { font-weight: 600; }

.time-entry-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-entry-duration {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-entry-list form { margin: 0; }

/* ---------------- Employee portal extras ---------------- */

.quick-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.quick-actions-bar form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.quick-select {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--surface);
  font-family: var(--font-body);
}

.attendance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--danger-soft);
  color: #9f1239;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.attendance-pill-done {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.hidden { display: none; }

.correction-row { display: none; }
.correction-row.open-form { display: table-row; }
.correction-row td { padding-top: 0; border-bottom: 1px solid var(--border-soft); }
.correction-row form { margin: 0; }

/* ---------------- Notification bell ---------------- */

.notif-wrap {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--surface);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 50;
}

.notif-dropdown.is-open {
  display: block;
}

.notif-dropdown-header {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
}

.notif-dropdown-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border-soft);
}

.notif-dropdown-row:last-child { border-bottom: none; }
.notif-dropdown-row:hover { background: var(--surface-alt); }

.notif-dropdown-row.is-unread {
  background: var(--accent-soft);
}

.notif-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px 10px 14px;
  text-decoration: none;
  color: var(--text);
  flex: 1;
  min-width: 0;
}

.notif-delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0 12px;
  flex-shrink: 0;
  opacity: 0.5;
}

.notif-delete-btn:hover {
  color: var(--danger);
  opacity: 1;
}

.notif-dropdown-message {
  font-size: 12.5px;
  font-weight: 600;
}

.notif-dropdown-time {
  font-size: 11px;
  color: var(--muted);
}

.notif-empty {
  padding: 20px 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------------- Attendance calendar (premium) ---------------- */

.attendance-hero {
  margin-bottom: 20px;
}

.attendance-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}

.attendance-calendar-panel {
  padding: 22px;
}

.att-cell {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  min-height: 92px;
  padding: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: box-shadow 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.att-cell:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--accent);
}

.att-cell-out {
  opacity: 0.38;
}

.att-cell-weekend {
  background: #f3f1ec;
}

.att-cell-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft) inset;
}

.att-cell-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink) inset;
}

.att-cell-has-leave {
  background: linear-gradient(165deg, #fff7ed, #fef3e0 60%);
  border-color: #fcd9a8;
}

.att-cell-holiday {
  background: linear-gradient(165deg, #eef2ff, #e0e7ff 60%);
  border-color: #c7d2fe;
}

.att-cell-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.att-cell-holiday-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.12);
  padding: 2px 6px;
  border-radius: 999px;
}

.att-cell-avatars {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.att-mini-avatar {
  width: 20px;
  height: 20px;
  font-size: 9px;
  margin-left: -6px;
  border: 1.5px solid var(--surface);
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.att-mini-avatar:first-child {
  margin-left: 0;
}

.att-more {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  margin-left: 4px;
}

.attendance-side-panel {
  padding: 20px;
  min-height: 400px;
  position: sticky;
  top: 20px;
}

.att-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 50px 10px;
  color: var(--muted);
}

.att-detail-empty p {
  font-size: 12.5px;
  margin: 0;
  max-width: 220px;
}

.att-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.att-detail-head h3 {
  margin: 0;
  font-size: 15px;
  font-family: var(--font-display);
}

.att-off-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.att-off-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-soft);
}

.att-off-list li:last-child { border-bottom: none; }

.att-off-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.att-off-name {
  font-size: 13px;
  font-weight: 600;
}

.att-off-list form { margin: 0; }
.att-off-list .link-danger { font-size: 16px; line-height: 1; padding: 0 4px; }

.att-detail-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 16px 0;
}

.badge-leave-vacation { background: #e0f2fe; color: #075985; }
.badge-leave-sick { background: #fee2e2; color: #991b1b; }
.badge-leave-personal { background: #ede9fe; color: #5b21b6; }
.badge-leave-half_day { background: var(--info-soft); color: #1d4ed8; }
.badge-leave-other { background: #eef0ee; color: #5c655f; }
.badge-leave-day_off { background: var(--warn-soft); color: #b45309; }

@media (max-width: 1000px) {
  .attendance-layout { grid-template-columns: 1fr; }
  .attendance-side-panel { position: static; }
}

/* ================= Dashboard "magic" treatment ================= */
/* Scoped entirely to .dashboard-magic (only the main Dashboard page) so the
   shared .hero/.stat-card/.panel classes used across the rest of the app
   are completely untouched. */

.dashboard-magic .hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-left: 4px;
}

.dashboard-magic .magic-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(54px);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
  animation: magic-drift 16s ease-in-out infinite;
}

.dashboard-magic .magic-orb-1 { width: 260px; height: 260px; background: var(--accent-bright); top: -100px; left: -60px; }
.dashboard-magic .magic-orb-2 { width: 220px; height: 220px; background: var(--violet-bright); top: -40px; right: 8%; animation-delay: -5s; }
.dashboard-magic .magic-orb-3 { width: 200px; height: 200px; background: var(--info); top: 40px; left: 38%; animation-delay: -10s; opacity: 0.28; }

@keyframes magic-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.1); }
  66% { transform: translate(-18px, 14px) scale(0.92); }
}

.dashboard-magic .hero-eyebrow {
  animation: magic-rise 0.5s ease both;
}

.dashboard-magic .hero-title {
  background: linear-gradient(100deg, var(--ink) 35%, var(--accent-deep) 65%, var(--violet));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: magic-rise 0.55s ease both, magic-sheen 6s ease-in-out 1.2s infinite;
}

.dashboard-magic .hero-sub {
  animation: magic-rise 0.6s ease 0.05s both;
}

@keyframes magic-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.dashboard-magic .hero-chips .hero-chip {
  animation: magic-rise 0.5s ease both;
}
.dashboard-magic .hero-chips .hero-chip:nth-child(1) { animation-delay: 0.1s; }
.dashboard-magic .hero-chips .hero-chip:nth-child(2) { animation-delay: 0.17s; }
.dashboard-magic .hero-chips .hero-chip:nth-child(3) { animation-delay: 0.24s; }

.dashboard-magic .hero-chip:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-glow);
}

.dashboard-magic .stats-grid .stat-card {
  animation: magic-rise 0.5s ease both;
}
.dashboard-magic .stats-grid .stat-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-magic .stats-grid .stat-card:nth-child(2) { animation-delay: 0.17s; }
.dashboard-magic .stats-grid .stat-card:nth-child(3) { animation-delay: 0.24s; }
.dashboard-magic .stats-grid .stat-card:nth-child(4) { animation-delay: 0.31s; }

.dashboard-magic .stat-card {
  overflow: hidden;
}

.dashboard-magic .stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0) 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.dashboard-magic .stat-card:hover::after { opacity: 1; }
.dashboard-magic .stat-card:hover { transform: translateY(-5px) scale(1.015); }

.dashboard-magic .panel-grid .panel {
  animation: magic-rise 0.5s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-magic .panel-grid .panel:nth-child(1) { animation-delay: 0.1s; }
.dashboard-magic .panel-grid .panel:nth-child(2) { animation-delay: 0.16s; }
.dashboard-magic .panel-grid .panel:nth-child(3) { animation-delay: 0.22s; }

.dashboard-magic .panel:hover {
  box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-magic .magic-orb,
  .dashboard-magic .hero-title,
  .dashboard-magic .hero-eyebrow,
  .dashboard-magic .hero-sub,
  .dashboard-magic .hero-chips .hero-chip,
  .dashboard-magic .stats-grid .stat-card,
  .dashboard-magic .panel-grid .panel {
    animation: none;
  }
}

/* ---- Stat card icon + "Details" link header row ---- */
.stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.stat-card-top .stat-card-icon { margin-bottom: 0; }

.stat-card-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 2px;
}

.stat-card:hover .stat-card-link {
  opacity: 1;
  transform: translateX(0);
}

.stat-card-link:hover { color: var(--accent-ink); }
.stat-card-link-arrow { font-size: 12px; }

/* ---- Task activity trend chart ---- */
.trend-panel {
  display: flex;
  flex-direction: column;
}

.trend-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

.trend-badge-up { background: var(--accent-soft); color: var(--accent-ink); }
.trend-badge-down { background: var(--danger-soft); color: #be123c; }

.area-chart {
  display: block;
  width: 100%;
}

.trend-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  padding: 0 2px;
}

.trend-footer {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.trend-footer-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.trend-footer-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.trend-footer-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

@media (max-width: 760px) {
  .trend-footer { gap: 16px; flex-wrap: wrap; }
}
