/* Customer dashboard prototype — uses Turbo Studio's shared palette and Jost. */
.cd-app {
  margin-top: 3rem;
  border: 1px solid #0a0a0a30;
  background: var(--paper);
  text-align: left;
}
.cd-app [hidden] { display: none !important; }
.cd-app button, .cd-app input, .cd-app select { font: inherit; }
.cd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 2rem;
  background: var(--ink);
  color: white;
}
.cd-brand { font-size: .85rem; letter-spacing: .16em; }
.cd-brand span { margin-left: 1.5rem; font-size: .65rem; letter-spacing: .04em; opacity: .65; }
.cd-demo-label { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blush); }
.cd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem; }
.cd-kicker { font-size: .58rem; letter-spacing: .16em; color: var(--accent); }
.cd-toolbar h3 { margin-top: .4rem; font-size: 1.8rem; font-weight: 400; line-height: 1.3; color: var(--ink); }
.cd-caption { margin-top: .6rem; font-size: .72rem; line-height: 1.7; }
.cd-period, .cd-filters label { display: grid; gap: .35rem; font-size: .65rem; color: var(--graphite); }
.cd-app select, .cd-app input { padding: .65rem .8rem; border: 1px solid #0a0a0a35; background: white; color: var(--ink); border-radius: 0; font-size: .8rem; min-width: 0; }
.cd-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 2rem; border: 1px solid #0a0a0a25; }
.cd-metric { padding: 1.3rem; border-right: 1px solid #0a0a0a25; }
.cd-metric:last-child { border: 0; }
.cd-metric > span { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; }
.cd-metric strong { display: block; color: var(--accent); font-size: clamp(1.6rem, 2.6vw, 2.7rem); line-height: 1.5; font-weight: 300; }
.cd-metric small { display: block; font-size: .65rem; }
.cd-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding: 2rem; }
.cd-chart-panel { min-width: 0; border: 1px solid #0a0a0a25; padding: 1.3rem; }
.cd-panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.cd-panel-heading h4 { font-size: .9rem; font-weight: 400; color: var(--ink); line-height: 1.5; }
.cd-panel-heading > span { font-size: .6rem; }
.cd-bars { display: flex; align-items: stretch; gap: 1.5rem; height: 13rem; margin-top: 1.5rem; border-bottom: 1px solid #0a0a0a25; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #0a0a0a09 25%); }
.cd-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; min-width: 0; }
.cd-bar-value { font-size: .6rem; margin-bottom: .3rem; white-space: nowrap; }
.cd-bar i { display: block; width: min(100%, 3rem); height: var(--bar-height); background: var(--accent); min-height: 2px; transition: height .4s; }
.cd-bar small { background: white; width: 100%; text-align: center; font-size: .65rem; padding-top: .5rem; }
.cd-pipeline { margin-top: 1.3rem; }
.cd-stage-row { display: grid; grid-template-columns: 6rem 1fr 1.4rem; align-items: center; gap: .8rem; font-size: .7rem; margin-bottom: 1.2rem; }
.cd-stage-track { height: .45rem; background: var(--ivory); }
.cd-stage-track i { display: block; height: 100%; width: var(--stage-width); background: var(--accent); }
.cd-stage-row:nth-child(2) i { background: #ac7377; }
.cd-stage-row:nth-child(3) i { background: var(--blush); }
.cd-directory { margin: 0 2rem 2rem; border-top: 1px solid #0a0a0a25; padding-top: 1.5rem; }
.cd-filters { display: grid; grid-template-columns: 1fr 12rem; gap: 1rem; margin: 1.2rem 0; }
.cd-table-scroll { overflow-x: auto; }
.cd-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.cd-table th { text-align: left; font-size: .57rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 400; padding: .8rem .7rem; background: var(--ivory); }
.cd-table td { padding: .85rem .7rem; border-bottom: 1px solid #0a0a0a15; vertical-align: middle; }
.cd-table td strong { display: block; color: var(--ink); font-weight: 400; }
.cd-table td small { display: block; font-size: .65rem; }
.cd-badge { display: inline-block; background: var(--ivory); padding: .2rem .5rem; font-size: .65rem; white-space: nowrap; }
.cd-badge.is-booked { background: var(--blush); color: var(--accent); }
.cd-table button, .cd-detail button { border: 0; border-bottom: 1px solid var(--accent); background: none; padding: .2rem 0; color: var(--accent); font-size: .7rem; cursor: pointer; white-space: nowrap; }
.cd-detail { display: flex; justify-content: space-between; align-items: start; gap: 1.5rem; padding: 1.4rem; margin-top: 1.2rem; background: var(--ivory); border-left: 2px solid var(--accent); }
.cd-detail h4 { margin: .4rem 0; font-size: 1.15rem; color: var(--ink); font-weight: 400; }
.cd-detail p:last-child { font-size: .8rem; line-height: 1.8; }
.cd-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 2rem; border-top: 1px solid #0a0a0a25; font-size: .62rem; }
.cd-empty { padding: 2rem 0; font-size: .85rem; }
@media (max-width: 900px) {
  .cd-brand span { display: none; }
  .cd-charts { grid-template-columns: 1fr; }
  .cd-metrics { grid-template-columns: 1fr 1fr; }
  .cd-metric:nth-child(2) { border-right: 0; }
  .cd-metric:nth-child(-n+2) { border-bottom: 1px solid #0a0a0a25; }
}
@media (max-width: 560px) {
  .cd-header, .cd-toolbar, .cd-footer { padding: 1.2rem; flex-direction: column; align-items: start; gap: .7rem; }
  .cd-toolbar .cd-period { width: 100%; }
  .cd-metrics { margin-inline: 1.2rem; }
  .cd-metric { padding: .85rem; }
  .cd-charts { padding: 1.2rem; gap: 1.2rem; }
  .cd-directory { margin-inline: 1.2rem; }
  .cd-filters { grid-template-columns: 1fr; }
  .cd-table { min-width: 34rem; }
  .cd-panel-heading { flex-wrap: wrap; gap: .3rem; }
  .cd-detail { flex-direction: column; }
  .cd-bars { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .cd-bar i { transition: none; } }

/* Scope and cost guidance belongs to the Extras page, outside the demo. */
.ex-scope-note {
  padding: 1.5rem var(--gutter);
  background: var(--blush);
  text-align: left;
}
.ex-scope-note p { font-size: .88rem; line-height: 1.8; }
.ex-scope-note strong { font-weight: 400; color: var(--ink); }
.ex-scope-note a { color: var(--accent); border-bottom: 1px solid currentColor; margin-left: .35rem; white-space: nowrap; }
.ex-cost { scroll-margin-top: 5rem; }
.ex-cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; }
.ex-cost-grid .display { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.ex-cost-copy p { margin-bottom: 1.5rem; }
.ex-cost-copy .lead { font-size: 1.2rem; }
.ex-cost-copy strong { font-weight: 400; color: var(--ink); }
.ex-cost-copy .link-arrow { margin-top: 1rem; }
@media (max-width: 800px) {
  .ex-cost-grid { grid-template-columns: 1fr; gap: 2rem; }
}
