/* ==========================================================================\n   Dashboard lower block — reference-matched Premium Noir composition\n   Source of truth: approved dashboard reference · 2026-08-10\n   ========================================================================== */

/* The lower dashboard is intentionally more editorial than the rest of the UI:\n   one dominant diagnostic card + two status-object cards. */
.dashboard-bottom {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0,1.56fr) minmax(258px,1fr) minmax(286px,1.08fr);
  gap: 18px;
  align-items: stretch;
}

.dashboard-bottom > .card {
  height: auto !important;
  min-height: clamp(425px,29.5vw,495px) !important;
  padding: 24px !important;
  overflow: hidden;
  border: 1px solid rgba(202,151,66,.22);
  border-radius: 11px;
  background:
    radial-gradient(110% 85% at 70% 18%, rgba(175,126,52,.042), transparent 53%),
    linear-gradient(145deg, rgba(8,14,18,.995), rgba(5,10,14,.995));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.018),
    0 16px 38px rgba(0,0,0,.08);
}

.dashboard-bottom .card-title {
  margin: 0;
  color: #f2eee6;
  font: 500 clamp(28px,1.78vw,31px)/1.08 var(--serif);
  letter-spacing: -.012em;
  text-wrap: balance;
}

.dashboard-bottom .link-gold,
.dashboard-bottom .link-button {
  color: #f1b845;
}

/* --------------------------------------------------------------------------
   01 / Diagnostic report empty state
   -------------------------------------------------------------------------- */
.analysis-card {
  position: relative;
  border-color: rgba(205,151,58,.42) !important;
}

.dashboard-empty-report {
  position: relative;
  min-height: calc(clamp(425px,29.5vw,495px) - 48px);
  height: 100%;
  display: grid;
  grid-template-columns: minmax(195px,.93fr) minmax(0,1.07fr);
  gap: 20px;
  align-items: center;
  isolation: isolate;
}

.dashboard-empty-visual {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  align-self: stretch;
  margin: -7px 0 50px -12px;
  position: relative;
}

.dashboard-empty-visual::before {
  content: "";
  position: absolute;
  inset: 18% 6% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,147,54,.09), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.dashboard-empty-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%,244px);
  max-height: 344px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 21px 28px rgba(0,0,0,.42));
}

.dashboard-empty-copy {
  min-width: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 23px;
  padding-bottom: 92px;
  text-align: left;
}

.dashboard-empty-copy h2 {
  margin: 0;
  max-width: 11.3ch;
  color: #f2eee6;
  font: 500 clamp(30px,2.02vw,34px)/1.08 var(--serif);
  letter-spacing: -.014em;
  text-wrap: balance;
}

.dashboard-empty-divider {
  width: min(100%,230px);
  height: 1px;
  margin: 29px 0 25px;
  position: relative;
  background: linear-gradient(90deg,rgba(216,163,67,.15),rgba(216,163,67,.72) 40%,rgba(216,163,67,.18));
}

.dashboard-empty-divider::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-52%);
  padding: 0 10px;
  color: #e2aa3f;
  background: #080d11;
  font-size: 16px;
  line-height: 1;
}

.dashboard-empty-copy p {
  margin: 0;
  max-width: 27ch;
  color: #c2beb7;
  font-size: clamp(15.5px,.95vw,17px);
  line-height: 1.67;
  letter-spacing: .002em;
  text-wrap: pretty;
}

.dashboard-primary-action {
  position: absolute !important;
  left: 50% !important;
  bottom: 10px !important;
  transform: translateX(-50%);
  width: min(78%,330px) !important;
  min-width: 0 !important;
  height: 62px !important;
  margin: 0 !important;
  justify-content: center;
  border-color: rgba(213,155,56,.9) !important;
  border-radius: 9px !important;
  color: #f6bd48 !important;
  background: linear-gradient(180deg,rgba(173,122,39,.055),rgba(0,0,0,.08));
  font-size: 17px !important;
  font-weight: 650;
}

.dashboard-primary-action:hover {
  background: rgba(203,147,51,.1);
  box-shadow: 0 0 0 1px rgba(218,162,67,.08) inset, 0 10px 32px rgba(0,0,0,.12);
}

/* Real diagnostic state remains readable and structurally safe. */
.dashboard-analysis-head { align-items: flex-start; }
.dashboard-analysis-head .link-gold { white-space: nowrap; }
.dashboard-bottom .analysis-body {
  min-height: 330px;
  height: auto !important;
  margin-top: 12px;
}
.dashboard-bottom .diagnosis-block {
  font-size: 14px !important;
  line-height: 1.62 !important;
}
.dashboard-bottom .diagnosis-block h4 {
  font-size: 19px !important;
  line-height: 1.24 !important;
  margin: 11px 0 6px !important;
}

/* --------------------------------------------------------------------------
   02 / Recent artifacts
   -------------------------------------------------------------------------- */
.artifact-dashboard-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px !important;
}

.artifact-dashboard-head {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start !important;
  gap: 11px;
  margin: 0 0 13px !important;
}

.artifact-dashboard-head .card-title {
  min-width: 0;
  max-width: 8.5ch;
}

.artifact-all-link {
  align-self: start;
  justify-self: end;
  white-space: nowrap;
  padding: 3px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.25;
  text-align: right;
}

.artifact-all-link svg,
.artifact-footer-link svg {
  width: 17px;
  height: 17px;
}

.artifact-empty-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  padding: 1px 0 10px;
}

.artifact-empty-visual {
  width: 100%;
  min-height: 165px;
  display: grid;
  place-items: center;
  margin: 0;
}

.artifact-empty-visual img {
  width: min(100%,246px);
  max-height: 160px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 27px rgba(0,0,0,.42));
}

.artifact-empty-content p {
  margin: 0;
  max-width: 22ch;
  color: #c2beb7;
  font-size: clamp(15.5px,.92vw,17px);
  line-height: 1.58;
  text-wrap: pretty;
}

.artifact-footer-link {
  margin-top: auto;
  min-height: 38px !important;
  align-self: flex-start;
  white-space: nowrap;
  padding: 0 !important;
  font-size: 15.5px !important;
  font-weight: 650;
}

.artifact-dashboard-card .artifact-list {
  flex: 1 1 auto;
  align-content: start;
  gap: 9px !important;
  padding-top: 4px;
}

.dashboard-bottom .artifact-small {
  min-height: 57px;
  padding: 9px !important;
  grid-template-columns: 36px minmax(0,1fr) auto !important;
  gap: 10px;
}
.dashboard-bottom .artifact-small strong { font-size: 13.5px !important; line-height: 1.28 !important; }
.dashboard-bottom .artifact-small span { font-size: 11px !important; line-height: 1.32 !important; }

/* --------------------------------------------------------------------------
   03 / Final dossier
   -------------------------------------------------------------------------- */
.dashboard-dossier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px !important;
  isolation: isolate;
}

.dashboard-dossier-card::after { display: none !important; }
.dashboard-dossier-card::before {
  content: "";
  position: absolute;
  inset: 38% -10% 12% 0;
  background: url('assets/vectors/orbital-grid.svg') center/contain no-repeat;
  opacity: .12;
  z-index: -1;
  pointer-events: none;
}

.dossier-copy {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.dashboard-dossier-card p {
  margin: 16px 0 0;
  max-width: 32ch;
  color: #c7c3bc;
  font-size: clamp(15.5px,.92vw,16.5px) !important;
  line-height: 1.68 !important;
  text-wrap: pretty;
}

.dashboard-dossier-visual {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 235px;
  display: grid;
  place-items: center;
  margin: 0 -8px -3px;
}

.dashboard-dossier-visual::before,
.dashboard-dossier-visual::after { display: none !important; }

.dashboard-dossier-visual img {
  display: block;
  width: min(100%,318px);
  max-height: 250px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 31px rgba(0,0,0,.5));
}

.dashboard-dossier-action {
  position: relative !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 3;
  width: min(100%,268px) !important;
  min-width: 0 !important;
  height: 60px !important;
  margin: auto auto 0 !important;
  justify-content: center;
  border-color: rgba(213,155,56,.9) !important;
  border-radius: 9px !important;
  color: #f6bd48 !important;
  font-size: 17px !important;
  font-weight: 650;
}
.dashboard-dossier-action svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   Reference-focused responsive recomposition
   -------------------------------------------------------------------------- */
@media (max-width:1280px) and (min-width:1081px) {
  .dashboard-bottom {
    grid-template-columns: minmax(0,1.48fr) minmax(245px,.96fr) minmax(265px,1.02fr);
    gap: 14px;
  }
  .dashboard-bottom > .card { padding: 20px !important; min-height: 420px !important; }
  .dashboard-empty-report { min-height: 380px; grid-template-columns: minmax(165px,.88fr) minmax(0,1.12fr); gap: 14px; }
  .dashboard-empty-visual { margin-left: -12px; }
  .dashboard-empty-visual img { width: min(100%,215px); max-height: 305px; }
  .dashboard-empty-copy { padding-top: 21px; }
  .dashboard-empty-copy h2 { font-size: 29px; }
  .dashboard-empty-copy p { font-size: 15px; line-height: 1.6; }
  .dashboard-empty-divider { margin: 22px 0 20px; }
  .dashboard-primary-action { width: min(80%,300px) !important; height: 56px !important; font-size: 15.5px !important; }

  .artifact-dashboard-card,
  .dashboard-dossier-card { padding: 21px !important; }
  .dashboard-bottom .card-title { font-size: 26px; }
  .artifact-all-link { font-size: 12.5px !important; }
  .artifact-empty-visual { min-height: 145px; }
  .artifact-empty-visual img { width: min(100%,215px); max-height: 142px; }
  .artifact-empty-content p,
  .dashboard-dossier-card p { font-size: 14.5px !important; }
  .dashboard-dossier-visual { min-height: 205px; }
  .dashboard-dossier-visual img { width: min(100%,270px); max-height: 220px; }
  .dashboard-dossier-action { height: 54px !important; font-size: 15px !important; }
}

@media (max-width:1080px) and (min-width:761px) {
  .dashboard-bottom {
    grid-template-columns: minmax(0,1.35fr) minmax(280px,.85fr) !important;
    gap: 16px;
  }
  .dashboard-bottom > .card { min-height: 410px !important; }
  .dashboard-bottom > .dashboard-dossier-card {
    grid-column: 1 / -1;
    min-height: 330px !important;
    display: grid;
    grid-template-columns: minmax(0,.82fr) minmax(300px,1.18fr);
    grid-template-rows: 1fr auto;
    column-gap: 24px;
  }
  .dashboard-dossier-visual {
    grid-column: 2;
    grid-row: 1 / 3;
    min-height: 280px;
    margin: 0;
  }
  .dashboard-dossier-action { grid-column: 1; grid-row: 2; margin: 18px 0 0 !important; }
}

@media (max-width:760px) {
  .dashboard-bottom { grid-template-columns: 1fr !important; gap: 14px; }
  .dashboard-bottom > .card { min-height: 0 !important; padding: 20px !important; }

  .dashboard-empty-report {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 78px;
  }
  .dashboard-empty-visual { min-height: 225px; height: auto; margin: -10px 0 0; }
  .dashboard-empty-visual img { width: min(78vw,245px); max-height: 300px; }
  .dashboard-empty-copy { align-items: center; text-align: center; padding: 0; }
  .dashboard-empty-copy h2 { max-width: 15ch; font-size: 30px; }
  .dashboard-empty-divider { margin: 22px auto; }
  .dashboard-empty-copy p { max-width: 36ch; font-size: 16px; line-height: 1.6; }
  .dashboard-primary-action { bottom: 0 !important; width: 100% !important; height: 54px !important; font-size: 16px !important; }

  .artifact-dashboard-head { grid-template-columns: minmax(0,1fr) auto !important; }
  .artifact-dashboard-head .card-title { max-width: none; }
  .artifact-all-link { justify-self: end; }
  .artifact-empty-content { align-items: center; text-align: center; gap: 16px; }
  .artifact-empty-visual { min-height: 170px; }
  .artifact-empty-visual img { width: min(76vw,250px); }
  .artifact-empty-content p { max-width: 34ch; font-size: 16px; }
  .artifact-footer-link { align-self: center; font-size: 15px !important; }

  .dashboard-dossier-card { text-align: left; }
  .dashboard-dossier-card p { font-size: 16px !important; }
  .dashboard-dossier-visual { min-height: 270px; }
  .dashboard-dossier-visual img { width: min(82vw,320px); max-height: 270px; }
  .dashboard-dossier-action { width: 100% !important; height: 56px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-bottom > .card,
  .dashboard-bottom img,
  .dashboard-bottom .btn { transition: none !important; transform: none; }
  .dashboard-primary-action { transform: translateX(-50%) !important; }
}

