/* ==========================================================================
   Anchors — canonical container set only
   ========================================================================== */

.ds-anchor-trigger{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border:1px solid var(--guidance-border);
  border-radius:16px;
  background:var(--guidance-surface-flat);
  box-shadow:inset 0 0 0 1px rgba(110,168,255,.06);
}

.ds-anchor-trigger__marker,
.ds-anchor__marker{
  width:30px;
  height:30px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(110,168,255,.18);
  border:1px solid rgba(110,168,255,.28);
  color:var(--guidance-blue);
  font-size:13px;
  font-weight:800;
  line-height:1;
}

.ds-anchor-trigger__copy,
.ds-anchor__copy{
  display:grid;
  gap:4px;
  min-width:0;
}

.ds-anchor-trigger__title,
.ds-anchor__title{
  /* TY-05 choice-label */
  margin:0;
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  color:var(--heading);
  letter-spacing:0;
}

.ds-anchor-trigger__helper,
.ds-anchor__helper{
  /* TY-06 choice-helper */
  margin:0;
  font-size:13px;
  font-weight:400;
  line-height:1.52;
  color:var(--helper);
}

.ds-anchor__handoff{
  /* TY-04 subtext-meta-copy */
  margin:0;
  font-size:12px;
  font-weight:400;
  line-height:1.5;
  color:var(--helper);
}

.ds-anchor-trigger__helper{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ds-anchor{
  border:1px solid rgba(110,168,255,.22);
  border-radius:18px;
  background:var(--guidance-surface-gradient);
  overflow:hidden;
  box-shadow:0 16px 36px rgba(0,0,0,.16);
}

.ds-anchor__head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}

.ds-anchor__rail{
  display:flex;
  align-items:stretch;
  gap:10px;
  padding:10px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(0,0,0,.08);
}

.ds-anchor-step{
  width:auto;
  min-width:138px;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:var(--text-muted);
  font:inherit;
  text-align:left;
}

.ds-anchor-step__mark{
  width:24px;
  height:24px;
  flex:0 0 auto;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  border:1px solid rgba(136,167,183,.38);
  color:var(--guidance-blue);
  font-size:11.5px;
  font-weight:800;
  line-height:1;
}

.ds-anchor-step__label{
  /* TY-07 compact-control-label */
  min-width:0;
  font-size:12px;
  font-weight:600;
  line-height:1.2;
  white-space:normal;
  color:inherit;
}

.ds-anchor-step.is-active{
  background:rgba(0,163,136,.085);
  border-color:rgba(0,163,136,.24);
  color:var(--text);
}

.ds-anchor-step.is-active .ds-anchor-step__mark{
  background:var(--accent);
  border-color:var(--accent);
  color:#07110f;
}

.ds-anchor-step.is-locked{
  opacity:.46;
  cursor:default;
  pointer-events:none;
}

.ds-anchor-step.is-locked .ds-anchor-step__mark{
  border-color:rgba(255,255,255,.16);
  color:#99a8b5;
  background:rgba(255,255,255,.03);
}

.ds-anchor-step.is-error{
  background:rgba(226,75,74,.05);
  border-color:rgba(226,75,74,.18);
  color:#f1dddd;
}

.ds-anchor-step.is-error .ds-anchor-step__mark{
  border-color:rgba(226,75,74,.30);
  color:#ffd0d0;
  background:rgba(226,75,74,.08);
}

.ds-anchor__frame{
  display:grid;
  gap:14px;
  padding:16px;
}

.ds-anchor__frame-placeholder{
  min-height:96px;
  display:grid;
  place-items:center;
  padding:14px;
  border-radius:15px;
  border:1px dashed rgba(110,168,255,.22);
  background:rgba(110,168,255,.04);
  color:#b8cff7;
  font-size:12px;
  line-height:1.45;
  text-align:center;
}

.ds-anchor__handoff{
  padding:11px 14px;
  border-top:1px solid rgba(110,168,255,.18);
  background:rgba(110,168,255,.06);
}

.ds-anchor__handoff strong{
  color:var(--text);
}

@media (max-width: 700px){
  .ds-anchor-trigger,
  .ds-anchor__head{
    grid-template-columns:1fr;
  }

  .ds-anchor-trigger__helper{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  .ds-anchor__rail{
    flex-wrap:wrap;
  }

  .ds-anchor-step{
    min-width:calc(50% - 5px);
  }
}

.ds-anchor__meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border-top:1px solid rgba(110,168,255,.18);
  background:rgba(110,168,255,.06);
}

.ds-anchor__meta-row .ds-anchor__handoff{
  padding:0;
  border-top:0;
  background:none;
  flex:1 1 auto;
}

.ds-anchor__meta-status{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}

@media (max-width:700px){
  .ds-anchor__meta-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .ds-anchor__meta-status{
    justify-content:flex-start;
  }
}

.wl-block--timeline-anchor {
  --guidance-blue: #6ea8ff;
  --guidance-border: rgba(110, 168, 255, 0.3);
  --guidance-surface-flat: rgba(110, 168, 255, 0.12);
  --guidance-surface-soft: rgba(110, 168, 255, 0.075);
  --guidance-surface-gradient: linear-gradient(180deg, rgba(110, 168, 255, 0.11), rgba(255, 255, 255, 0.018));
  width: 100%;
}

.rebuild-timeline-anchor .ds-anchor__frame {
  display: grid;
  gap: 18px;
}

.rebuild-timeline-anchor .content-head {
  display: grid;
  gap: 8px;
  max-width: none;
}

.rebuild-timeline-anchor .content-kicker {
  margin: 0;
  color: var(--guidance-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rebuild-timeline-anchor .content-title {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-primary);
}

.rebuild-timeline-anchor .content-copy {
  margin: 0;
  color: var(--helper-text);
  font-size: 13px;
  line-height: 1.6;
  max-width: none;
}

.rebuild-timeline-anchor .block-stack {
  display: grid;
  gap: 22px;
}

.timeline-kpi-grid,
.timeline-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.timeline-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(136, 167, 183, 0.045);
  border: 1px solid rgba(136, 167, 183, 0.16);
  color: #c7d3d9;
  font-size: 13px;
  line-height: 1.65;
}

.timeline-pattern-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
}

.timeline-pattern-card.is-selected {
  border-color: rgba(0, 163, 136, 0.3);
  background: rgba(0, 163, 136, 0.055);
}

.timeline-pattern-card__label,
.timeline-pattern-card__range,
.timeline-pattern-card__copy,
.timeline-pattern-card__fit {
  margin: 0;
}

.timeline-pattern-card__label {
  color: var(--helper-text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-pattern-card__range {
  color: var(--text-primary);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}

.timeline-pattern-card__copy,
.timeline-pattern-card__fit {
  color: var(--helper-text);
  font-size: 13px;
  line-height: 1.55;
}

.timeline-pattern-card__fit {
  color: var(--success-note-accent);
  font-weight: 700;
}

@media (max-width: 760px) {
  .timeline-kpi-grid,
  .timeline-pattern-grid {
    grid-template-columns: 1fr;
  }

  .rebuild-timeline-anchor .ds-anchor__meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .rebuild-timeline-anchor .ds-anchor__meta-status {
    justify-content: flex-start;
  }
}
