/* =====================================================================================
   views-a.css — Dashboard (.dash-*) and Earnings (.earn-*). Loaded after app.css.
   ===================================================================================== */

/* ---------- shared ---------- */
.dash-neg-soft { color: hsl(0 60% 78%); }

/* ---------- dashboard: hero chart ---------- */
.dash-hero { padding: 22px 22px 0; overflow: hidden; }
.dash-hero::after {
  content: ''; position: absolute; inset: -40% 40% auto -10%; height: 280px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(52, 211, 153, .09), transparent 70%);
}
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-hero-left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dash-hero-eyebrow { color: var(--text-2); }
.dash-hero-num {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4.2vw, 52px); letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, #c9f7e2 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash-hero-delta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.dash-hero-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-scope {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--accent); padding: 2px 8px 2px 7px;
  border-radius: var(--r-pill); background: var(--accent-a08); border: 1px solid var(--accent-a25);
}
.dash-chart { min-height: 230px; }
.dash-hero-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 18px -22px 0; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .012), transparent);
}
.dash-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 22px 16px; min-width: 0; }
.dash-stat + .dash-stat { border-left: 1px solid var(--line); }
.dash-stat-label { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-stat b { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* ---------- dashboard: goal ---------- */
.dash-goal { display: flex; align-items: center; gap: 20px; }
.dash-goal-ring { flex-shrink: 0; }
.dash-goal-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-gl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 13px; }
.dash-gl + .dash-gl { border-top: 1px dashed var(--line); }
.dash-gl span { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-gl b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.dash-pace { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dash-pace-track { position: relative; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); overflow: visible; }
.dash-pace-proj, .dash-pace-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; width: var(--w); animation: dash-grow 1100ms var(--ease) both; transform-origin: left; }
.dash-pace-proj { background: repeating-linear-gradient(135deg, rgba(52, 211, 153, .22) 0 4px, rgba(52, 211, 153, .08) 4px 8px); }
.dash-pace-fill { background: linear-gradient(90deg, var(--accent-deep), var(--accent-seafoam)); box-shadow: 0 0 12px -2px rgba(52, 211, 153, .6); animation-delay: 120ms; }
.dash-pace-goal { position: absolute; top: -4px; bottom: -4px; left: var(--x); width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(255, 255, 255, .7); }
@keyframes dash-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dash-pace-legend { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.dash-pace-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dash-pace-legend .dash-pace-day { margin-left: auto; }
.dash-pace-legend .sw { width: 10px; height: 6px; border-radius: 3px; display: inline-block; }
.dash-pace-legend .sw.fill { background: var(--accent); }
.dash-pace-legend .sw.proj { background: repeating-linear-gradient(135deg, rgba(52, 211, 153, .5) 0 2px, rgba(52, 211, 153, .15) 2px 4px); }
.dash-pace-legend .sw.goal { width: 2px; height: 10px; background: rgba(255, 255, 255, .7); }

/* ---------- dashboard: rep commission card ---------- */
.dash-comm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-comm > .btn { margin-top: auto; }
.dash-comm-num { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -.035em; line-height: 1; color: var(--accent-seafoam); text-shadow: 0 0 30px rgba(52, 211, 153, .25); }
.dash-comm-lines { display: flex; flex-direction: column; margin-bottom: 4px; }

/* ---------- dashboard: donut + leaderboard ---------- */
.dash-donut { min-height: 170px; display: flex; align-items: center; }
.dash-donut > * { width: 100%; }
.dash-lb .bl-row.is-me { background: var(--accent-a08); box-shadow: inset 0 0 0 1px var(--accent-a25); }

/* ---------- dashboard: installments ---------- */
.dash-due-card .card-body { padding: 0 0 6px; }
.dash-due-card .tabs { padding: 4px 20px 0; }
.dash-due-list { max-height: 372px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dash-due-row { color: inherit; text-decoration: none; transition: background var(--t-fast); }
.dash-date {
  width: 42px; height: 44px; flex-shrink: 0; border-radius: 10px; display: grid; place-content: center; text-align: center;
  background: var(--raised); border: 1px solid var(--line-strong);
}
.dash-date b { font-family: var(--font-display); font-size: 16px; line-height: 1; font-weight: 600; }
.dash-date span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.dash-due-row.late .dash-date { background: rgba(248, 113, 113, .08); border-color: rgba(248, 113, 113, .3); }
.dash-due-row.late .dash-date b { color: var(--danger-ink); }
.dash-due-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.dash-due-amt b { font-size: 13.5px; }
.dash-due-amt span { font-size: 12px; white-space: nowrap; }
.dash-tab-danger .count { background: rgba(248, 113, 113, .15) !important; color: var(--danger-ink) !important; }

/* ---------- dashboard: activity ---------- */
.dash-feed-card .card-body { padding: 6px 8px 10px; }
.dash-feed { max-height: 412px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; }
.dash-ev { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: var(--r-sm); color: inherit; text-decoration: none; transition: background var(--t-fast); }
a.dash-ev:hover { background: rgba(255, 255, 255, .03); }
.dash-ev.fresh { animation: dash-fresh 2.4s var(--ease) both; }
@keyframes dash-fresh { 0% { background: rgba(52, 211, 153, .14); transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; transform: none; } 100% { background: transparent; } }
.dash-ev-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: rgb(var(--c)); background: rgb(var(--c) / .1); border: 1px solid rgb(var(--c) / .22); }
.dash-ev-main { min-width: 0; }
.dash-ev-sum { font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.dash-ev-time { font-size: 11.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-ev-amt { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dash-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.dash-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: dash-live 2s ease-out infinite; }
@keyframes dash-live { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }

/* =====================================================================================
   Earnings
   ===================================================================================== */
.earn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.earn-head .select { min-width: 220px; }
.earn-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.earn-hero::after {
  content: ''; position: absolute; left: -10%; top: -60%; width: 70%; height: 220%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(52, 211, 153, .12), transparent 70%);
}
.earn-hero > * { position: relative; z-index: 1; }
.earn-owed { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.earn-owed-num {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 5.4vw, 68px); letter-spacing: -.04em; line-height: .95;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(180deg, #fff 20%, var(--accent-seafoam) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.earn-owed-num.is-neg { background: linear-gradient(180deg, #fff 20%, var(--danger) 140%); -webkit-background-clip: text; background-clip: text; }
.earn-owed-sub { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.earn-paidbar { margin-top: 6px; display: flex; flex-direction: column; gap: 7px; max-width: 440px; }
.earn-paidbar-track { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); overflow: hidden; display: flex; }
.earn-paidbar-track span { height: 100%; animation: dash-grow 1100ms var(--ease) both; transform-origin: left; }
.earn-paidbar-track .paid { background: linear-gradient(90deg, rgba(16, 185, 129, .45), rgba(52, 211, 153, .6)); }
.earn-paidbar-track .owed { background: repeating-linear-gradient(135deg, rgba(124, 245, 176, .55) 0 4px, rgba(124, 245, 176, .25) 4px 8px); animation-delay: 150ms; }
.earn-paidbar-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.earn-paidbar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.earn-paidbar-legend i { width: 10px; height: 6px; border-radius: 3px; display: inline-block; }
.earn-paidbar-legend i.paid { background: rgba(52, 211, 153, .6); }
.earn-paidbar-legend i.owed { background: rgba(124, 245, 176, .55); }
.earn-ledger { padding: 20px 24px; border-left: 1px solid var(--line); background: rgba(255, 255, 255, .012); display: flex; flex-direction: column; justify-content: center; }
.earn-ledger .eyebrow { margin-bottom: 8px; }
.earn-lrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.earn-lrow + .earn-lrow { border-top: 1px dashed var(--line); }
.earn-lrow span { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.earn-lrow span svg { color: var(--muted); }
.earn-lrow b { font-family: var(--font-mono); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.earn-lrow.total { border-top: 1px solid var(--line-strong) !important; margin-top: 4px; padding-top: 12px; }
.earn-lrow.total span { color: #fff; font-weight: 600; }
.earn-lrow.total b { font-size: 15px; color: var(--accent-seafoam); }

.earn-chart-card .card-body { padding-top: 10px; }
.earn-chart { position: relative; width: 100%; min-height: 260px; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.earn-chart svg { display: block; overflow: visible; }
.earn-chart .ec-bar { transition: opacity var(--t-fast); }
.earn-chart.hovering .ec-col:not(.is-hover) .ec-bar { opacity: .4; }
.earn-chart .ec-hit { fill: transparent; cursor: default; }
.earn-chart .ec-paid { fill: none; stroke: rgba(79, 157, 255, .9); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.earn-chart .ec-paid-dot { fill: #4F9DFF; stroke: #0D0F12; stroke-width: 2; }
.earn-chart .ec-cur { fill: none; stroke: rgba(255, 255, 255, .22); stroke-dasharray: 3 3; }
.earn-chart .ec-val { font-family: var(--font-mono); font-size: 10.5px; fill: var(--text-2); }
.earn-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.earn-legend span { display: inline-flex; align-items: center; gap: 7px; }
.earn-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.earn-legend i.earned { background: linear-gradient(180deg, var(--accent-seafoam), var(--accent-deep)); }
.earn-legend i.claw { background: rgba(248, 113, 113, .7); }
.earn-legend i.paid { height: 2px; width: 14px; border-radius: 2px; background: #4F9DFF; }

.earn-payouts .card-body { padding: 0 0 6px; }
.earn-po-list { max-height: 330px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.earn-po { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 20px; }
.earn-po + .earn-po { border-top: 1px solid var(--line); }
.earn-po-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #7fb6ff; background: rgba(79, 157, 255, .1); border: 1px solid rgba(79, 157, 255, .22); }
.earn-po.voided { opacity: .55; }
.earn-po.voided .earn-po-amt { text-decoration: line-through; }
.earn-po-main b { display: block; font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earn-po-main span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earn-po-amt { font-family: var(--font-mono); font-weight: 600; font-size: 13.5px; text-align: right; white-space: nowrap; }
.earn-po-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.earn-po-foot b { font-family: var(--font-mono); color: #fff; }

.earn-kind { display: inline-flex; align-items: center; gap: 6px; }
.earn-client { display: flex; flex-direction: column; min-width: 0; }
.earn-client b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earn-client span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earn-team-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 20px; width: 100%; text-align: left; transition: background var(--t-fast); }
.earn-team-row:hover { background: rgba(255, 255, 255, .03); }
.earn-team-row + .earn-team-row { border-top: 1px solid var(--line); }
.earn-team-row .nums { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--font-mono); font-size: 13px; }
.earn-team-row .nums span { font-size: 11.5px; color: var(--muted); font-family: var(--font-sans); }

/* =====================================================================================
   Responsive
   ===================================================================================== */
@media (max-width: 1099px) and (min-width: 768px) {
  .dash-hero-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash-stat { grid-column: span 2; }
  .dash-stat:nth-child(n + 4) { grid-column: span 3; border-top: 1px solid var(--line); }
  .dash-stat:nth-child(4) { border-left: 0; }
}
@media (max-width: 1199px) {
  .dash-row2.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row2.grid-3 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .earn-hero { grid-template-columns: minmax(0, 1fr); }
  .earn-ledger { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .dash-hero { padding: 16px 16px 0; }
  .dash-hero-head { margin-bottom: 12px; gap: 12px; }
  .dash-hero-controls { width: 100%; justify-content: space-between; }
  .dash-hero-num { font-size: 36px; }
  .dash-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px -16px 0; }
  .dash-stat { padding: 12px 16px; }
  .dash-stat:nth-child(n) { border-left: 0; border-top: 0; }
  .dash-stat:nth-child(even) { border-left: 1px solid var(--line); }
  .dash-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .dash-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dash-row2.grid-3, .dash-row2.grid-2 { grid-template-columns: minmax(0, 1fr); }
  .dash-row2.grid-3 > :last-child { grid-column: auto; }
  .dash-donut .donut-legend { flex: 0 0 auto; min-width: 0; } /* app.css column layout turns the 200px basis into height */
  .dash-goal { gap: 14px; }
  .dash-goal-ring .ring { transform: scale(.86); transform-origin: left center; margin-right: -18px; }
  .dash-due-card .tabs { padding: 2px 16px 0; }
  .dash-due-row { padding: 11px 16px; }
  .dash-feed { max-height: none; }
  .dash-ev { padding: 9px 8px; }

  .earn-owed { padding: 20px 18px; }
  .earn-owed-num { font-size: 46px; }
  .earn-ledger { padding: 16px 18px; }
  .earn-head .select { min-width: 0; width: 100%; }
  .earn-head > * { flex: 1 1 100%; }
  .earn-po { padding: 11px 16px; }
  .earn-team-row { padding: 10px 16px; }
}
@media (max-width: 400px) {
  .dash-goal { flex-direction: column; align-items: stretch; }
  .dash-goal-ring { display: flex; justify-content: center; }
  .dash-goal-ring .ring { transform: none; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-pace-proj, .dash-pace-fill, .earn-paidbar-track span, .dash-ev.fresh { animation: none; }
  .dash-live i { animation: none; }
}

/* goal card fills its row height: ring + lines on top, pace bar pinned to the bottom */
.dash-goal-card { display: flex; flex-direction: column; }
.dash-goal-card > .card-body { flex: 1; display: flex; }
.dash-goal-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.dash-legend { margin-bottom: 8px; }

.earn-team { padding: 8px 0 6px; }

/* earnings: phone lists */
.earn-mlist { padding: 4px 0 6px; }
.earn-mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; color: inherit; text-decoration: none; }
.earn-mrow + .earn-mrow { border-top: 1px solid var(--line); }
.earn-mrow:active { background: rgba(255, 255, 255, .03); }
.earn-mrow > b { font-size: 13.5px; white-space: nowrap; }
.earn-mdeal { grid-template-columns: auto minmax(0, 1fr) auto; }
.earn-mprog { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.earn-mprog .progress { flex: 1; }
.earn-mprog .badge { flex-shrink: 0; }
.earn-mmore { padding: 8px 12px 4px; border-top: 1px solid var(--line); }
@media (max-width: 767px) {
  .earn-deals .card-head > div:first-child { flex: 1 1 100%; }
  .earn-deals .card-actions { width: 100%; min-width: 0; }
  .earn-deals .card-actions .seg { max-width: 100%; }
  .earn-chart { min-height: 0; }
}

/* goal card: stack the ring over the numbers when the card itself is narrow (3-up rows at 1280–1500px) */
.dash-goal-card .card-body { container-type: inline-size; }
@container (max-width: 400px) {
  .dash-goal { flex-direction: column; align-items: stretch; gap: 12px; }
  .dash-goal-ring { display: flex; justify-content: center; }
  .dash-goal-ring .ring { transform: none !important; margin: 0 !important; }
}
.dash-lb { container-type: inline-size; }
@container (max-width: 340px) {
  .dash-lb .bl-top { flex-direction: column; align-items: flex-start; gap: 1px; }
}

/* ---------- first-run onboarding card (fresh workspace) ---------- */
.dash-onboard-wrap:empty { display: none; }
.dash-onboard { padding: 22px 24px; display: grid; gap: 18px; }
.dash-ob-head { display: grid; gap: 6px; max-width: 640px; }
.dash-ob-head .h2 { margin: 0; }
.dash-ob-head p { margin: 0; }
.dash-ob-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.dash-ob-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px 12px; align-items: start;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm, 12px); background: rgba(255, 255, 255, .015); }
.dash-ob-step > .btn, .dash-ob-step > button { grid-column: 2; justify-self: start; }
.dash-ob-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .3); }
.dash-ob-main { min-width: 0; }
.dash-ob-title { display: flex; align-items: center; gap: 7px; color: var(--text); }
.dash-ob-title svg { color: var(--accent); flex-shrink: 0; }
.dash-ob-main p { margin: 4px 0 0; }
@media (max-width: 767px) { .dash-onboard { padding: 18px 16px; } }

/* ---------- month tabs + month-by-month table ---------- */
.dash-months { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-bottom: 4px; }
.dash-months::-webkit-scrollbar { display: none; }
.dash-mtab { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; flex: none;
  min-height: 42px; padding: 6px 16px; border-radius: 12px; border: 1px solid var(--line-strong, rgba(255,255,255,.1));
  background: rgba(255,255,255,.02); color: var(--text-2, #c9ccd1); font: 600 13.5px/1.2 var(--font-display, inherit); cursor: pointer;
  transition: background .18s, border-color .18s, color .18s; }
.dash-mtab small { font: 500 10px/1 var(--font-body, inherit); letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #8b8f96); }
.dash-mtab:hover { background: rgba(255,255,255,.05); color: #fff; }
.dash-mtab.is-active { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.5); color: #7CF5B0; box-shadow: 0 0 0 3px rgba(52,211,153,.06); }
.dash-mtab.is-active small { color: rgba(124,245,176,.75); }
.dash-mtab:focus-visible { outline: 2px solid rgba(52,211,153,.7); outline-offset: 2px; }

.dash-monthly { padding: 0; overflow: hidden; }
.dm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 18px 22px 12px; }
.dm-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.dm-scroll { overflow-x: auto; }
.dm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.dm-table th { text-align: left; font: 600 11px/1 var(--font-body, inherit); letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #8b8f96);
  padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
.dm-table td { padding: 14px; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; vertical-align: middle; }
.dm-table th:first-child, .dm-table td:first-child { padding-left: 22px; }
.dm-table th:last-child, .dm-table td:last-child { padding-right: 22px; }
.dm-table .num { text-align: right; }
.dm-table tbody tr { cursor: pointer; transition: background .15s; }
.dm-table tbody tr:hover { background: rgba(255,255,255,.025); }
.dm-table tbody tr.is-active { background: rgba(52,211,153,.06); box-shadow: inset 3px 0 0 #34D399; }
.dm-table tbody tr:focus-visible { outline: 2px solid rgba(52,211,153,.6); outline-offset: -2px; }
.dm-month { display: flex; flex-direction: column; gap: 2px; }
.dm-month b { font-family: var(--font-display, inherit); font-size: 14.5px; }
.dm-month small { font-size: 11px; color: var(--muted, #8b8f96); }
.dm-cash { font-size: 15px; color: #fff; }
.dm-split { display: inline-flex; align-items: baseline; gap: 6px; justify-content: flex-end; }
.dm-split small { font-size: 11px; color: var(--muted, #8b8f96); min-width: 28px; text-align: right; }
.dm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); align-self: center; box-shadow: 0 0 8px var(--c); }
.dm-goal { display: inline-flex; align-items: center; gap: 8px; min-width: 110px; justify-content: flex-end; }
.dm-goal > :first-child { width: 64px; }
.dm-table .neg { color: #F87171; }
.dm-table .neg-soft { color: rgba(248,113,113,.75); }
.dm-total td { background: rgba(255,255,255,.02); border-bottom: 0; font-weight: 600; }
@media (max-width: 767px) {
  .dm-head { padding: 16px 16px 10px; }
  .dm-table th:first-child, .dm-table td:first-child { padding-left: 16px; position: sticky; left: 0; background: #0D0F12; z-index: 1; }
}
/* fit all 11 columns on a laptop screen; narrower screens scroll inside the card */
.dm-table { min-width: 820px; font-size: 13px; }
.dm-table th, .dm-table td { padding-left: 10px; padding-right: 10px; }
.dm-table th { letter-spacing: .04em; font-size: 10.5px; }
.dm-goal { min-width: 0; gap: 6px; }
.dm-goal > :first-child { width: 44px; }
.dm-split { gap: 5px; }
/* My dash: nudge to the Inbox */
.my-nudge { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; color: inherit; text-decoration: none;
  border-color: rgba(251,191,36,.3); background: linear-gradient(90deg, rgba(251,191,36,.08), rgba(251,191,36,.02)); }
.my-nudge:hover { border-color: rgba(251,191,36,.5); }
.my-nudge .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.my-nudge-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fbbf24; background: rgba(251,191,36,.12); flex: none; }
@media (max-width: 767px) { .my-nudge { flex-wrap: wrap; } }
