/**
 * dashboard.html layout (used with mj-shell.css + mj-shell-header--wide).
 */
:root {
  --mj-dash-bg0: #030712;
  --mj-dash-ink: #f1f5f9;
  --mj-dash-muted: #94a3b8;
  --mj-dash-line: rgba(148, 163, 184, 0.18);
  --mj-dash-card: rgba(15, 23, 42, 0.55);
  --mj-dash-sidebar-w: 240px;
  --mj-dash-r: 16px;
  --mj-dash-cyan: #22d3ee;
  --mj-dash-green: #86efac;
  --mj-dash-gold: #facc15;
}

body.mj-dash {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--mj-dash-bg0);
  color: var(--mj-dash-ink);
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
}
body.mj-dash::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(34, 211, 238, 0.15), transparent 36%),
    linear-gradient(235deg, rgba(134, 239, 172, 0.11), transparent 40%),
    linear-gradient(180deg, #030712, #0a111f 60%, #03120f);
  pointer-events: none;
  z-index: 0;
}

.mj-dash-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--mj-dash-sidebar-w) 1fr;
  max-width: 1280px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
}
@media (max-width: 900px) {
  .mj-dash-wrap {
    grid-template-columns: 1fr;
  }
  .mj-dash-side {
    border-right: none !important;
    border-bottom: 1px solid var(--mj-dash-line);
  }
}

.mj-dash-side {
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--mj-dash-line);
}
.mj-dash-side nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mj-dash-side a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: var(--mj-dash-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}
.mj-dash-side a:hover,
.mj-dash-side a.is-active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--mj-dash-ink);
}

.mj-dash-main {
  padding: 1.5rem 1.25rem 3rem;
}
.mj-dash-main h1 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.mj-dash-lead {
  color: var(--mj-dash-muted);
  font-size: 0.88rem;
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

.mj-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.mj-kpi {
  background: var(--mj-dash-card);
  border: 1px solid var(--mj-dash-line);
  border-radius: var(--mj-dash-r);
  padding: 1rem 1rem 0.85rem;
}
.mj-kpi .k {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mj-dash-muted);
  margin-bottom: 0.35rem;
}
.mj-kpi .v {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mj-kpi .hint {
  font-size: 0.72rem;
  color: var(--mj-dash-muted);
  margin-top: 0.35rem;
}

.mj-section {
  margin-bottom: 2rem;
  scroll-margin-top: 5rem;
}
.mj-section h2 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--mj-dash-line);
}
.mj-panel {
  background: var(--mj-dash-card);
  border: 1px solid var(--mj-dash-line);
  border-radius: var(--mj-dash-r);
  padding: 1.15rem 1.25rem;
  font-size: 0.88rem;
  color: var(--mj-dash-muted);
  line-height: 1.6;
}
.mj-panel strong {
  color: var(--mj-dash-ink);
}
.mj-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  margin-bottom: 0.5rem;
}

.mj-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}
.mj-project-hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.9rem);
  line-height: 1;
  max-width: 840px;
}
.mj-status-card {
  border: 1px solid var(--mj-dash-line);
  border-radius: var(--mj-dash-r);
  background: rgba(15, 23, 42, 0.64);
  padding: 1rem;
  display: grid;
  align-content: center;
  gap: 0.45rem;
}
.mj-status-card span,
.mj-mini-label {
  color: var(--mj-dash-muted);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
}
.mj-status-card strong {
  color: var(--mj-dash-green);
  font-size: 1.2rem;
}
.mj-status-card small {
  color: var(--mj-dash-muted);
}
.mj-command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: -0.55rem 0 1.45rem;
}
.mj-command-row a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--mj-dash-line);
  background: rgba(15, 23, 42, 0.54);
  color: var(--mj-dash-ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}
.mj-brief-summary,
.mj-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.85rem;
}
.mj-detail-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}
.mj-detail-list div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.mj-detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.mj-detail-list dt {
  color: var(--mj-dash-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mj-detail-list dd {
  margin: 0.2rem 0 0;
  color: var(--mj-dash-ink);
  overflow-wrap: anywhere;
}
.mj-panel h3 {
  color: var(--mj-dash-ink);
  font-size: 0.84rem;
  margin: 0 0 0.45rem;
}
.mj-panel h3 + pre,
.mj-panel h3 + p {
  margin-top: 0;
}
.mj-panel pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d9f99d;
  font: inherit;
}
.mj-field {
  margin-bottom: 1rem;
}
.mj-field label {
  display: block;
  color: var(--mj-dash-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.38rem;
}
.mj-field input,
.mj-field select,
.mj-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--mj-dash-line);
  background: rgba(3, 7, 18, 0.58);
  color: var(--mj-dash-ink);
  font: inherit;
  resize: vertical;
}
.mj-field input:focus,
.mj-field select:focus,
.mj-field textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.46);
}
.mj-btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.7rem;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee, #16a34a);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.mj-pay-link-card {
  display: grid;
  align-content: center;
  gap: 1rem;
}
.mj-pay-link-card > a {
  display: block;
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(3, 7, 18, 0.55);
  color: #d9f99d;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mj-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.mj-link-actions button,
.mj-link-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--mj-dash-line);
  background: rgba(3, 7, 18, 0.48);
  color: var(--mj-dash-ink);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.mj-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mj-payment-methods span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(134, 239, 172, 0.11);
  color: #d9f99d;
  border: 1px solid rgba(134, 239, 172, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
}
.mj-scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.mj-scope-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.11);
  color: #cffafe;
  border: 1px solid rgba(34, 211, 238, 0.18);
  font-size: 0.76rem;
  font-weight: 700;
}
.mj-quote-advice {
  border-top: 1px solid var(--mj-dash-line);
  padding-top: 0.9rem;
}
.mj-quote-advice strong {
  display: block;
  color: var(--mj-dash-gold);
  margin-bottom: 0.25rem;
}
.mj-quote-advice p {
  margin: 0;
  color: var(--mj-dash-muted);
}
.mj-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.mj-timeline div {
  position: relative;
  min-height: 8.5rem;
  border: 1px solid var(--mj-dash-line);
  border-radius: var(--mj-dash-r);
  background: rgba(15, 23, 42, 0.54);
  padding: 1rem;
}
.mj-timeline div::before {
  content: '';
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--mj-dash-muted);
  margin-bottom: 1rem;
}
.mj-timeline div.is-done::before {
  background: var(--mj-dash-green);
}
.mj-timeline div.is-active::before {
  background: var(--mj-dash-cyan);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.12);
}
.mj-timeline strong {
  display: block;
  color: var(--mj-dash-ink);
  margin-bottom: 0.35rem;
}
.mj-timeline span {
  color: var(--mj-dash-muted);
}

@media (max-width: 900px) {
  .mj-project-hero,
  .mj-brief-summary,
  .mj-quote-grid,
  .mj-timeline {
    grid-template-columns: 1fr;
  }
}
