/* ============================================
   Sample client dashboard (illustrative data).
   Every selector is scoped under .dash-mock so it never collides
   with the site's own classes. The mock keeps the real dashboard's
   own palette on purpose: it is a picture of the product.
   ============================================ */

.dash-mock {
  --d-canvas: #16293e;
  --d-card: #111c2d;
  --d-hover: #333f55;
  --d-nav-hover: #1b394f;
  --d-fg: #eaeff4;
  --d-sub: #7d90ae;
  --d-border: #182d41;
  --d-border-2: #1c3346;
  --d-icon: #7c8fac;
  --d-accent: #0085db;
  --d-btn: #0074ba;
  --d-nav-hovertext: #37a6f4;
  --d-ok: #4bd08b;
  --d-warnc: #f8c076;
  --d-danger: #fb977d;
  direction: ltr;
  text-align: left;
  font-family: var(--font-main);
  background: var(--d-canvas);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  color: var(--d-fg);
  font-size: 13px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.dash-mock *,
.dash-mock *::before,
.dash-mock *::after {
  letter-spacing: normal;
}

.dash-mock .app-grid { display: grid; grid-template-columns: 186px 1fr; gap: 16px; align-items: start; }

/* Sidebar */
.dash-mock .side { background: var(--d-card); border-radius: 18px; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; align-self: stretch; }
.dash-mock .s-brand { display: flex; align-items: center; gap: 9px; padding: 2px 6px 6px; }
.dash-mock .s-brand .wm { font-weight: 900; font-size: 16px; letter-spacing: -0.03em; color: var(--d-fg); line-height: 1; }
.dash-mock .s-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(234, 239, 244, 0.4); padding: 2px 8px 10px; }
.dash-mock .snav { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px; color: rgba(234, 239, 244, 0.6); font-size: 12.5px; font-weight: 500; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; font-family: inherit; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.dash-mock .snav svg { width: 15px; height: 15px; flex: none; opacity: 0.9; }
.dash-mock .snav:hover { background: var(--d-nav-hover); color: var(--d-nav-hovertext); }
.dash-mock .snav.on { background: var(--d-btn); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 133, 219, 0.28); }
.dash-mock .snav .tier { margin-left: auto; font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; padding: 1px 5px; border-radius: 4px; background: rgba(248, 192, 118, 0.14); color: var(--d-warnc); }
.dash-mock .snav.on .tier { background: rgba(255, 255, 255, 0.18); color: #fff; }
.dash-mock .s-rail { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--d-border); }
.dash-mock .s-user { display: flex; align-items: center; gap: 8px; padding: 4px; }
.dash-mock .av { width: 26px; height: 26px; border-radius: 50%; background: #22364e; border: 1px solid var(--d-border); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #cdd8e6; flex: none; }
.dash-mock .un { font-size: 11.5px; font-weight: 700; color: var(--d-fg); line-height: 1.2; }
.dash-mock .ur { font-size: 9.5px; color: var(--d-sub); }

/* Main column */
.dash-mock .main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-mock .topbar { background: var(--d-card); border-radius: 18px; min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 8px 16px; flex-wrap: wrap; }
.dash-mock .store { font-size: 11.5px; font-weight: 600; color: var(--d-fg); background: #0c1725; border: 1px solid var(--d-border); border-radius: 999px; padding: 5px 12px; }
.dash-mock .crumb { font-size: 12px; color: var(--d-sub); }
.dash-mock .crumb b { color: var(--d-fg); font-weight: 600; }
.dash-mock .tb-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.dash-mock .sample { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-warnc); border: 1px solid rgba(248, 192, 118, 0.4); border-radius: 999px; padding: 3px 9px; }
.dash-mock .tb-user { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 4px; border: 1px solid var(--d-border); border-radius: 999px; }
.dash-mock .tb-user .tn { font-size: 11px; font-weight: 700; color: var(--d-fg); line-height: 1.15; }
.dash-mock .tb-user .tr { font-size: 9px; color: var(--d-sub); }

.dash-mock .panel { display: none; flex-direction: column; gap: 14px; }
.dash-mock .panel.on { display: flex; }
.dash-mock .p-title { font-size: 17px; font-weight: 600; color: var(--d-fg); letter-spacing: -0.01em; }
.dash-mock .p-title span { font-size: 11.5px; color: var(--d-sub); font-weight: 400; margin-left: 8px; }

/* KPI blobs */
.dash-mock .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash-mock .stats.three { grid-template-columns: repeat(3, 1fr); }
.dash-mock .blob { position: relative; overflow: hidden; border-radius: 18px; background: var(--d-accent); color: #fff; padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.dash-mock .blob .bl1,
.dash-mock .blob .bl2 { position: absolute; width: 92px; height: 92px; top: -26px; right: -22px; border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%; pointer-events: none; background: rgba(255, 255, 255, 0.13); }
.dash-mock .blob .bl2 { top: -8px; right: -40px; background: rgba(0, 0, 0, 0.1); }
.dash-mock .blob .ring { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7); display: grid; place-items: center; position: relative; z-index: 1; }
.dash-mock .blob .ring svg { width: 15px; height: 15px; }
.dash-mock .blob .row { display: flex; align-items: baseline; gap: 8px; position: relative; z-index: 1; flex-wrap: wrap; }
.dash-mock .blob .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-mock .blob .v small { font-size: 13px; font-weight: 500; opacity: 0.72; }
.dash-mock .blob .dlt { font-size: 11.5px; color: rgba(255, 255, 255, 0.75); }
.dash-mock .blob .lbl { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.6); position: relative; z-index: 1; }

/* Cards */
.dash-mock .card { background: var(--d-card); border: 1px solid var(--d-border); border-radius: 14px; padding: 16px; min-width: 0; }
.dash-mock .card .ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dash-mock .card .ch h5 { font-size: 13px; font-weight: 600; color: var(--d-fg); margin: 0; }
.dash-mock .card .ch .t { font-size: 10px; color: var(--d-sub); }
.dash-mock .cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.dash-mock .cols.even { grid-template-columns: 1fr 1fr; }
.dash-mock .spark { width: 100%; height: 96px; display: block; }

.dash-mock .feed { display: flex; flex-direction: column; gap: 10px; }
.dash-mock .fi { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; }
.dash-mock .fi .fd { width: 6px; height: 6px; border-radius: 2px; margin-top: 6px; flex: none; }
.dash-mock .fi b { color: var(--d-fg); font-weight: 600; }
.dash-mock .fi em { color: var(--d-sub); font-style: normal; }
.dash-mock .fi time { font-size: 10px; color: #5f7392; margin-left: auto; white-space: nowrap; }

.dash-mock .ebar,
.dash-mock .cbar { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 11.5px; }
.dash-mock .ebar .en { width: 88px; color: var(--d-sub); flex: none; }
.dash-mock .ebar .track,
.dash-mock .cbar .ctrack { flex: 1; height: 6px; border-radius: 999px; background: #0e1a29; overflow: hidden; }
.dash-mock .ebar .fill { display: block; height: 100%; border-radius: 999px; background: var(--d-accent); }
.dash-mock .ebar .pc,
.dash-mock .cbar .cpc { width: 36px; text-align: right; color: var(--d-fg); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.dash-mock .cbar .cn { width: 130px; color: var(--d-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
.dash-mock .cbar .cfill { display: block; height: 100%; border-radius: 999px; background: #33475f; }
.dash-mock .cbar .ctr { width: 46px; text-align: right; font-size: 10px; flex: none; }
.dash-mock .cbar.me .cn { color: var(--d-fg); font-weight: 700; }
.dash-mock .cbar.me .cfill { background: var(--d-accent); }

.dash-mock .tp { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--d-border-2); font-size: 12px; }
.dash-mock .tp:first-child { border-top: 0; }
.dash-mock .tp .u { color: var(--d-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-mock .tp .g { color: var(--d-ok); font-weight: 600; flex: none; }

.dash-mock .aiv-top { display: grid; grid-template-columns: 190px 1fr; gap: 14px; }
.dash-mock .aiv-score .l { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--d-sub); font-weight: 700; }
.dash-mock .aiv-score .v { font-size: 36px; font-weight: 700; color: var(--d-fg); letter-spacing: -0.03em; line-height: 1.05; margin-top: 4px; }
.dash-mock .aiv-score .v small { font-size: 15px; color: var(--d-sub); font-weight: 500; }
.dash-mock .aiv-score .d { font-size: 11px; color: var(--d-ok); margin-top: 2px; font-weight: 600; }
.dash-mock .aiv-note { font-size: 12px; color: var(--d-sub); line-height: 1.55; display: flex; align-items: center; }
.dash-mock .aiv-note b { color: var(--d-fg); }

/* Tables */
.dash-mock .tbl-wrap { overflow-x: auto; border: 1px solid var(--d-border); border-radius: 12px; }
.dash-mock .tbl-wrap.flat { border: 0; }
.dash-mock table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dash-mock .tbl thead { background: #0e1a29; }
.dash-mock .tbl th { font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--d-sub); font-weight: 600; text-align: left; padding: 9px 12px; white-space: nowrap; }
.dash-mock .tbl th.r,
.dash-mock .tbl td.r { text-align: right; }
.dash-mock .tbl td { padding: 10px 12px; border-top: 1px solid var(--d-border); color: var(--d-sub); }
.dash-mock .tbl td.kw { color: var(--d-fg); }
.dash-mock .pos { color: var(--d-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-mock .gt th { font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--d-sub); font-weight: 700; text-align: center; padding: 8px 6px; white-space: nowrap; }
.dash-mock .gt thead tr { border-bottom: 1px solid var(--d-border); }
.dash-mock .gt th:first-child { text-align: left; }
.dash-mock .gt td { padding: 10px 6px; border-bottom: 1px solid var(--d-border-2); text-align: center; color: var(--d-sub); }
.dash-mock .gt td:first-child { text-align: left; color: var(--d-fg); }
.dash-mock .gt tr:last-child td { border-bottom: 0; }
.dash-mock .cel { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.dash-mock .cel.y { background: rgba(75, 208, 139, 0.16); color: var(--d-ok); }
.dash-mock .cel.n { background: #0e1a29; color: #4a5c74; }
.dash-mock .cel.w { background: rgba(248, 192, 118, 0.16); color: var(--d-warnc); }

.dash-mock .bdg { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.dash-mock .bdg.up,
.dash-mock .bdg.ac { background: rgba(75, 208, 139, 0.12); border-color: #2eb675; color: var(--d-ok); }
.dash-mock .bdg.dn { background: rgba(251, 151, 125, 0.12); border-color: #db7f67; color: var(--d-danger); }
.dash-mock .bdg.nw { background: rgba(248, 192, 118, 0.14); border-color: #d8a35a; color: var(--d-warnc); }
.dash-mock .bdg .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.dash-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .dash-mock .panel.on { animation: dash-fade 0.22s ease; }
  @keyframes dash-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .dash-mock { padding: 10px; border-radius: 14px; }
  .dash-mock .app-grid { grid-template-columns: 1fr; gap: 10px; }
  .dash-mock .side { flex-direction: row; overflow-x: auto; align-items: center; gap: 6px; padding: 8px; border-radius: 12px; }
  .dash-mock .s-brand,
  .dash-mock .s-eyebrow,
  .dash-mock .s-rail { display: none; }
  .dash-mock .snav { width: auto; }
  .dash-mock .cols,
  .dash-mock .cols.even,
  .dash-mock .aiv-top { grid-template-columns: 1fr; }
  .dash-mock .stats,
  .dash-mock .stats.three { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-mock .blob { padding: 14px; border-radius: 14px; }
  .dash-mock .blob .v { font-size: 19px; }
  .dash-mock .blob .lbl { font-size: 12px; }
  .dash-mock .tb-user { display: none; }
  .dash-mock .topbar { border-radius: 12px; }
}

/* Work log — mirrors the real /growth/work-log list: date + kind badge, then title and detail */
.dash-mock .wl { list-style: none; margin: 0; padding: 0; }
.dash-mock .wl-item { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--d-border-2); }
.dash-mock .wl-item:first-child { border-top: 0; padding-top: 2px; }
.dash-mock .wl-meta { display: flex; align-items: center; gap: 10px; }
.dash-mock .wl-meta time { width: 48px; font-size: 12px; color: var(--d-sub); font-variant-numeric: tabular-nums; flex: none; }
.dash-mock .wl-title { font-size: 12.5px; font-weight: 500; color: var(--d-fg); line-height: 1.45; }
.dash-mock .wl-detail { font-size: 11px; color: var(--d-sub); margin-top: 3px; line-height: 1.45; }

@media (max-width: 860px) {
  .dash-mock .wl-item { grid-template-columns: 1fr; gap: 6px; }
}
