/* ========== SPIRAL ARROW BUTTON ========== */
.btn-explore {
  position: relative;
  overflow: visible;
}
.btn-explore .spiral-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  position: relative;
  width: 24px; height: 24px;
}
.btn-explore .spiral-arrow svg {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.btn-explore .sa-spiral {
  transform-origin: center;
  animation: spiralRotate 3.5s linear infinite;
  opacity: .55;
}
.btn-explore .sa-arrow {
  transform-origin: center;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.btn-explore:hover .sa-spiral { animation-duration: 1.4s; opacity: 1; }
.btn-explore:hover .sa-arrow { transform: translateX(2px); }
.btn-explore:hover .spiral-arrow svg { transform: rotate(15deg); }
@keyframes spiralRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========== DASHBOARD SHELL ========== */
.dash-shell {
  position: fixed;
  inset: 0;
  background: #F4F6FB;
  z-index: 200;
  display: flex;
  font-family: var(--font-sans);
  animation: dashIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes dashIn {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: none; }
}

/* Dashboard sidebar */
.dash-sb {
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width .25s var(--ease);
}
.dash-sb.collapsed { width: 64px; }

.dash-sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  gap: 8px;
  min-height: 60px;
}
.dash-sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dash-sb-brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1E5EFF, #7B2CE8);
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.dash-sb-brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; filter: brightness(0) invert(1); }
.dash-sb-brand-mark.only { width: 36px; height: 36px; }
.dash-sb-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.dash-sb-brand-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dash-sb-toggle {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--ink-3);
  display: grid; place-items: center;
  border: none; cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}
.dash-sb-toggle:hover { background: var(--ink); color: #fff; }

.dash-sb-org {
  display: flex; align-items: center; gap: 10px;
  margin: 12px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s;
}
.dash-sb-org:hover { background: rgba(30,94,255,.06); }
.dash-sb-org-av {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1E5EFF, #7B2CE8);
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.dash-sb-org-info { flex: 1; min-width: 0; }
.dash-sb-org-name { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.dash-sb-org-plan { font-size: 10.5px; color: var(--ink-3); }

.dash-sb-nav {
  flex: 1;
  padding: 6px 10px 10px;
  overflow-y: auto;
}
.dash-sb-group { margin-bottom: 14px; }
.dash-sb-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-4);
  padding: 8px 10px 4px;
}
.dash-sb-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  margin-bottom: 1px;
  transition: all .15s;
}
.dash-sb.collapsed .dash-sb-item { justify-content: center; padding: 10px 0; }
.dash-sb-item:hover { background: var(--bg-alt); color: var(--ink); }
.dash-sb-item.active {
  background: rgba(30,94,255,.08);
  color: var(--brand);
  font-weight: 600;
}
.dash-sb-item.active .dash-sb-ic { color: var(--brand); }
.dash-sb-item.accent {
  background: linear-gradient(135deg, rgba(30,94,255,.06), rgba(123,44,232,.06));
  color: #7B2CE8;
}
.dash-sb-item.accent.active {
  background: linear-gradient(135deg, rgba(30,94,255,.12), rgba(123,44,232,.12));
  color: #7B2CE8;
}
.dash-sb-ic {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--ink-3);
  flex-shrink: 0;
}
.dash-sb-lbl { flex: 1; }
.dash-sb-badge {
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  min-width: 18px;
  text-align: center;
}
.dash-sb-item.accent .dash-sb-ic { color: #7B2CE8; }

.dash-sb-foot {
  padding: 10px 12px 14px;
  border-top: 1px solid var(--line);
}
.dash-sb-back {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.dash-sb-back:hover { background: var(--bg-alt); color: var(--ink); }
.dash-sb.collapsed .dash-sb-back { justify-content: center; }

/* Main content area */
.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  gap: 16px;
}
.dash-page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink);
}
.dash-page-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.dash-topbar-r {
  display: flex; align-items: center; gap: 10px;
}
.dash-search {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--bg-alt);
  border-radius: 8px;
  width: 240px;
  color: var(--ink-3);
}
.dash-search input {
  border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--ink);
  flex: 1;
}
.dash-search input::placeholder { color: var(--ink-4); }
.dash-search kbd {
  padding: 2px 6px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-3);
}
.dash-icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: none; cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .2s;
}
.dash-icon-btn:hover { background: rgba(30,94,255,.08); color: var(--brand); }
.dash-icon-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bg-alt);
}
.dash-user-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E5EFF, #7B2CE8);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.dash-content {
  padding: 28px;
  flex: 1;
}

/* Common card */
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.dash-card-h {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.dash-card-t {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.dash-card-s {
  font-size: 12px;
  color: var(--ink-3);
}
.dash-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(34,160,107,.1);
  border: 1px solid rgba(34,160,107,.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #16A77A;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dash-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22A06B;
  box-shadow: 0 0 6px #22A06B;
  animation: dashPulse 1.6s ease-in-out infinite;
}
@keyframes dashPulse { 50% { opacity: .4; } }

/* Overview KPIs */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.dash-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  transition: all .2s;
}
.dash-kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dash-kpi-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.dash-kpi-ic {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
}
.dash-kpi-d {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.dash-kpi-d.up { background: rgba(34,160,107,.1); color: #16A77A; }
.dash-kpi-d.down { background: rgba(239,68,68,.1); color: #DC2626; }
.dash-kpi-v {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.dash-kpi-l {
  font-size: 12px;
  color: var(--ink-3);
}

/* Chart row */
.dash-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
@media (max-width: 1100px) { .dash-row { grid-template-columns: 1fr; } }

.dash-chart {
  position: relative;
  height: 240px;
  display: grid;
  grid-template-columns: 40px 1fr;
}
.dash-chart-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.dash-chart-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-chart-label {
  font-size: 10px;
  color: var(--ink-4);
  font-family: 'JetBrains Mono', monospace;
  width: 32px;
  text-align: right;
}
.dash-chart-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.dash-chart-bars {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 0 24px;
  height: 100%;
  position: relative;
  z-index: 1;
}
.dash-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}
.dash-chart-bar {
  position: relative;
  width: 100%;
  max-width: 28px;
  background: linear-gradient(180deg, #1E5EFF 0%, #7B2CE8 100%);
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  transition: opacity .2s;
  animation: chartBarRise .6s cubic-bezier(.2,.8,.2,1) backwards;
}
.dash-chart-bar:hover { opacity: .85; }
@keyframes chartBarRise {
  from { height: 0 !important; opacity: 0; }
}
.dash-chart-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  background: var(--ink);
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.dash-chart-bar:hover .dash-chart-tooltip { opacity: 1; }
.dash-chart-month {
  position: absolute;
  bottom: 0;
  font-size: 10px;
  color: var(--ink-3);
}

/* Pie card */
.dash-pie-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}
.dash-pie {
  width: 100%; height: 100%;
}
.dash-pie-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.dash-pie-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-family: 'JetBrains Mono', monospace;
}
.dash-pie-lbl { font-size: 11px; color: var(--ink-3); }
.dash-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-pie-leg-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
}
.dash-pie-leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dash-pie-leg-l { flex: 1; color: var(--ink-2); }
.dash-pie-leg-v { font-weight: 700; color: var(--ink); font-family: 'JetBrains Mono', monospace; }

/* CALENDAR */
.dash-cal-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
}
@media (max-width: 1100px) { .dash-cal-wrap { grid-template-columns: 1fr; } }
.dash-cal-main, .dash-cal-side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.dash-cal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.dash-cal-month { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.dash-cal-sub { font-size: 12px; color: var(--ink-3); }
.dash-cal-nav { display: flex; gap: 6px; align-items: center; }
.dash-cal-nav button {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: none; cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink-2);
}
.dash-cal-nav button:first-child svg { transform: scaleX(-1); }
.dash-cal-nav button:hover { background: var(--brand); color: #fff; }
.dash-cal-today {
  width: auto !important;
  padding: 0 12px;
  font-size: 12px !important;
  font-weight: 600;
}
.dash-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.dash-cal-dn {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 8px 4px;
  text-align: center;
}
.dash-cal-cell {
  min-height: 84px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 8px;
  position: relative;
  background: #fff;
  transition: all .15s;
}
.dash-cal-cell:hover:not(.empty) { background: var(--bg-alt); }
.dash-cal-cell.empty { border: none; background: transparent; }
.dash-cal-cell.today { background: rgba(30,94,255,.04); border-color: rgba(30,94,255,.3); }
.dash-cal-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', monospace;
}
.dash-cal-cell.today .dash-cal-num { color: var(--brand); }
.dash-cal-ev {
  margin-top: 6px;
  padding: 4px 6px;
  border-radius: 5px;
  border: 1px solid;
  font-size: 10px;
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-cal-ev-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.dash-cal-ev-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-cal-up-list { display: flex; flex-direction: column; gap: 12px; }
.dash-cal-up-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-alt);
  transition: all .15s;
  cursor: pointer;
}
.dash-cal-up-item:hover { background: rgba(30,94,255,.06); }
.dash-cal-up-date {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid;
  min-width: 44px;
}
.dash-cal-up-d { font-size: 16px; font-weight: 700; line-height: 1; font-family: 'JetBrains Mono', monospace; }
.dash-cal-up-m { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dash-cal-up-info { flex: 1; min-width: 0; }
.dash-cal-up-l { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.dash-cal-up-t { font-size: 11px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; }

/* TASKS */
.dash-tasks {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.dash-tasks-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 16px;
}
.dash-tasks-stats {
  display: flex; gap: 28px;
}
.dash-tasks-stat-v {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-family: 'JetBrains Mono', monospace;
}
.dash-tasks-stat-l {
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dash-tasks-group { margin-bottom: 20px; }
.dash-tasks-group-h {
  display: flex; gap: 10px; align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.dash-tasks-group-c {
  background: var(--bg-alt);
  color: var(--ink-2);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.dash-tasks-list { display: flex; flex-direction: column; }
.dash-task {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px;
  border-radius: 8px;
  transition: background .15s;
}
.dash-task:hover { background: var(--bg-alt); }
.dash-task.done .dash-task-t { text-decoration: line-through; color: var(--ink-3); }
.dash-task-check {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
  transition: all .15s;
}
.dash-task.done .dash-task-check {
  background: #22A06B;
  border-color: #22A06B;
}
.dash-task-body { flex: 1; min-width: 0; }
.dash-task-t {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.dash-task-meta { display: flex; gap: 10px; align-items: center; font-size: 11px; }
.dash-task-p {
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 9.5px;
}
.dash-task-p.p-high { background: rgba(239,68,68,.1); color: #DC2626; }
.dash-task-p.p-med { background: rgba(245,158,11,.1); color: #D97706; }
.dash-task-p.p-low { background: rgba(34,160,107,.1); color: #16A77A; }
.dash-task-d { color: var(--ink-3); font-family: 'JetBrains Mono', monospace; }
.dash-task-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7B2CE8, #1E5EFF);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ACTIVITY */
.dash-activity {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.dash-activity-list {
  display: flex; flex-direction: column;
}
.dash-activity-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dash-activity-item:last-child { border-bottom: none; }
.dash-activity-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.dash-activity-line {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.dash-activity-who { font-weight: 700; color: var(--ink); margin-right: 6px; }
.dash-activity-what { color: var(--ink-2); }
.dash-activity-meta {
  display: flex; gap: 10px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .04em;
}
.dash-activity-mod { font-weight: 600; }
.dash-activity-when { color: var(--ink-3); }

/* COPILOT */
.dash-copilot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  max-height: 720px;
}
.dash-copilot-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.dash-copilot-brand {
  display: flex; align-items: center; gap: 12px;
}
.dash-copilot-orb {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1E5EFF, #7B2CE8);
  display: grid; place-items: center;
  position: relative;
}
.dash-copilot-orb::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1E5EFF, #7B2CE8);
  z-index: -1;
  filter: blur(10px);
  opacity: .4;
  animation: dashPulse 2s ease-in-out infinite;
}
.dash-copilot-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.dash-copilot-status {
  font-size: 11px;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.dash-copilot-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22A06B;
  box-shadow: 0 0 6px #22A06B;
}
.dash-copilot-chat {
  flex: 1;
  padding: 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-copilot-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.dash-copilot-msg.user { justify-content: flex-end; }
.dash-copilot-msg-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E5EFF, #7B2CE8);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dash-copilot-msg-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 78%;
}
.dash-copilot-msg.bot .dash-copilot-msg-bubble {
  background: var(--bg-alt);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.dash-copilot-msg.user .dash-copilot-msg-bubble {
  background: linear-gradient(135deg, #1E5EFF, #7B2CE8);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.dash-copilot-suggs {
  padding: 0 22px 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-copilot-sugg {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
}
.dash-copilot-sugg:hover { background: rgba(30,94,255,.08); border-color: rgba(30,94,255,.2); color: var(--brand); }
.dash-copilot-input {
  display: flex; gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.dash-copilot-input input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  outline: none;
  color: var(--ink);
}
.dash-copilot-input input:focus { border-color: var(--brand); background: #fff; }
.dash-copilot-send {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E5EFF, #7B2CE8);
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .2s;
}
.dash-copilot-send:disabled { opacity: .4; cursor: not-allowed; }
.dash-copilot-send:not(:disabled):hover { transform: scale(1.05); }

/* Module placeholder */
.dash-module-ph {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 64px 32px;
  text-align: center;
  max-width: 480px;
  margin: 40px auto;
}
.dash-module-ph-ic {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30,94,255,.1), rgba(123,44,232,.1));
  color: var(--brand);
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.dash-module-ph h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.dash-module-ph p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .dash-sb { display: none; }
  .dash-content { padding: 16px; }
  .dash-topbar { padding: 14px 16px; }
  .dash-search { display: none; }
}

/* ========== ABOUT SECTION ========== */
.about-section { background: var(--bg-alt); }
.about-mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 80px;
}
@media (max-width: 860px) { .about-mv { grid-template-columns: 1fr; } }
.about-mv-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px;
  overflow: hidden;
}
.about-mv-card.mission::before, .about-mv-card.vision::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,94,255,.1) 0%, transparent 65%);
}
.about-mv-card.vision::before {
  background: radial-gradient(circle, rgba(123,44,232,.1) 0%, transparent 65%);
}
.about-mv-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
  margin-bottom: 20px;
  padding: 5px 12px;
  background: rgba(30,94,255,.08);
  border-radius: 999px;
}
.about-mv-card.vision .about-mv-tag {
  color: #7B2CE8;
  background: rgba(123,44,232,.08);
}
.about-mv-card h3 {
  position: relative;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.about-mv-card p {
  position: relative;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.about-values-h { text-align: center; margin-bottom: 40px; }
.about-values-h .eyebrow { display: inline-flex; }
.about-values-h h3 {
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 12px;
}
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .about-values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .about-values-grid { grid-template-columns: 1fr; } }
.about-value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all .2s;
}
.about-value:hover {
  transform: translateY(-4px);
  border-color: var(--vc);
  box-shadow: 0 20px 40px -20px var(--vc);
}
.about-value-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--vc);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.about-value h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.about-value p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ========== TEAM SECTION ========== */
.team-section { background: #fff; }
.team-admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr 1fr; } }

.team-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: all .25s;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30,94,255,.3);
  box-shadow: 0 20px 40px -20px rgba(30,94,255,.3);
}
.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  overflow: hidden;
}
.team-photo-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 16px 16px;
}
.team-initials {
  position: relative;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  font-family: 'JetBrains Mono', monospace;
}
.team-body {
  padding: 16px 18px;
}
.team-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 3px;
}
.team-role {
  font-size: 12.5px;
  color: var(--ink-3);
}
.team-admin {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: flex; gap: 6px;
  opacity: 0;
  transition: opacity .15s;
}
.team-card:hover .team-admin { opacity: 1; }
.team-admin button {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  border: none; cursor: pointer;
  display: grid; place-items: center;
  color: #fff;
  transition: background .15s;
}
.team-admin button:hover { background: rgba(0,0,0,.85); }

/* Team modal */
.team-modal { max-width: 480px; }
.team-modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.team-modal label {
  display: block;
  margin-bottom: 14px;
}
.team-modal label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.team-modal input {
  width: 100%;
  padding: 10px 12px;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
}
.team-modal input:focus { border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-color-pick { margin-bottom: 18px; }
.team-color-pick > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.team-colors { display: flex; gap: 8px; }
.team-color-sw {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s;
}
.team-color-sw.active { border-color: var(--ink); transform: scale(1.1); }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 8px;
}


/* ==================== DASH > PROJECTS embedded ==================== */
.dash-projects-wrap .section { padding: 0; background: transparent; }
.dash-projects-wrap .wrap { padding: 0; max-width: 100%; }
.dash-projects-wrap .section-head { display: none; }
.dash-projects-wrap .projects { margin-top: 0; }


/* ========== DASH PROJECTS VIEW (master table + detail panel) ========== */
.dpv {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Toolbar */
.dpv-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.dpv-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: 9px;
  width: 280px;
  color: var(--ink-3);
}
.dpv-search input {
  border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--ink);
  flex: 1; min-width: 0;
}
.dpv-search input::placeholder { color: var(--ink-4); }

.dpv-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  flex: 1;
}
.dpv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.dpv-chip:hover { background: rgba(30,94,255,.06); color: var(--brand); }
.dpv-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.dpv-cnt {
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 1px 6px;
  background: rgba(0,0,0,.08);
  border-radius: 999px;
}
.dpv-chip.active .dpv-cnt { background: rgba(255,255,255,.18); }

.dpv-admin {
  display: flex; gap: 6px;
}

/* Table */
.dpv-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.dpv-thead, .dpv-row {
  display: grid;
  grid-template-columns: minmax(280px, 2.4fr) 1.2fr 1fr 70px 1.4fr 80px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.dpv-thead {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  height: 40px;
}
.dpv-th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.dpv-tbody {
  max-height: 480px;
  overflow-y: auto;
}
.dpv-row {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding-top: 12px;
  padding-bottom: 12px;
  transition: background .15s;
}
.dpv-row:last-child { border-bottom: none; }
.dpv-row:hover { background: var(--bg-alt); }
.dpv-row.selected {
  background: rgba(30,94,255,.06);
  box-shadow: inset 3px 0 0 var(--brand);
}
.dpv-cell {
  font-size: 13px;
  color: var(--ink-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dpv-c-title {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.dpv-row-thumb {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(30,94,255,.12), rgba(123,44,232,.12));
  display: grid; place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
}
.dpv-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dpv-row-title { min-width: 0; flex: 1; }
.dpv-row-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.dpv-row-modules {
  display: flex; gap: 4px; flex-wrap: nowrap;
  overflow: hidden;
}
.dpv-mod {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .03em;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 7px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 4px;
  white-space: nowrap;
}
.dpv-mod.more { color: var(--ink-3); }

.dpv-cat-pill {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  background: rgba(30,94,255,.08);
  color: var(--brand);
  border-radius: 999px;
  white-space: nowrap;
}
.dpv-c-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-3);
}
.dpv-c-act {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  color: var(--ink-4);
}
.dpv-row-acts { display: flex; gap: 2px; }
.dpv-row-acts button {
  width: 26px; height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all .15s;
}
.dpv-row-acts button:hover { background: var(--ink); color: #fff; }
.dpv-chev { color: var(--ink-4); }
.dpv-row.selected .dpv-chev { color: var(--brand); }

.dpv-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 60px 20px;
  color: var(--ink-3);
}
.dpv-empty p { font-size: 13px; }

/* Detail panel */
.dpv-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.dpv-detail-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.dpv-detail-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.dpv-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-4);
}
.dpv-detail-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
}
.dpv-detail-acts { display: flex; gap: 6px; flex-shrink: 0; }
.dpv-detail-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 80ch;
}

.dpv-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}
@media (max-width: 980px) { .dpv-detail-grid { grid-template-columns: 1fr; } }

.dpv-quick {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column;
}
.dpv-quick-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.dpv-quick-row:last-child { border-bottom: none; }
.dpv-quick-l { color: var(--ink-3); font-weight: 500; }
.dpv-quick-v { color: var(--ink); font-weight: 600; text-align: right; }

.dpv-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.dpv-metric {
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 14px 12px;
}
.dpv-metric-v {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 4px;
}
.dpv-metric-l {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

.dpv-detail-cs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 980px) { .dpv-detail-cs { grid-template-columns: 1fr; } }
.dpv-detail-cs > div {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.dpv-detail-cs p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.dpv-cs-h {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.dpv-cs-h span {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0;
}

.dpv-detail-mods {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.dpv-detail-mods-l {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-right: 8px;
}

/* Hide the old toolbar from public Projects when admin uses Dashboard view */
.proj-admin-toolbar {
  display: flex; gap: 6px; flex-wrap: wrap;
}
