#cpd-dashboard {
  --cpd-bg: transparent;
  --cpd-card: #ffffff;
  --cpd-border: rgba(0,0,0,.08);
  --cpd-text: inherit;
  --cpd-muted: rgba(0,0,0,.65);
  --cpd-accent: #111;
  --cpd-radius: 14px;
  --cpd-gap: 12px;
  --cpd-pad: 14px;
}

#cpd-dashboard .cpd-shell{
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
}

#cpd-dashboard .cpd-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

#cpd-dashboard .cpd-title{
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

#cpd-dashboard .cpd-sub{
  margin-top: 4px;
  font-size: 13px;
  opacity: .8;
}

#cpd-dashboard .cpd-link{
  font-size: 13px;
  text-decoration: underline;
}

#cpd-dashboard .cpd-stack{
  display:flex;
  flex-direction:column;
  gap: var(--cpd-gap);
}

#cpd-dashboard .cpd-card{
  background: var(--cpd-card);
  border: 1px solid var(--cpd-border);
  border-radius: var(--cpd-radius);
  overflow: hidden;
}

#cpd-dashboard .cpd-card__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  padding: var(--cpd-pad);
  padding-bottom: 10px;
}

#cpd-dashboard .cpd-h2{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

#cpd-dashboard .cpd-card__body{
  padding: var(--cpd-pad);
  padding-top: 0;
}

#cpd-dashboard .cpd-time{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.25;
}

#cpd-dashboard .cpd-kpi{
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

#cpd-dashboard .cpd-note{
  margin-top: 8px;
  font-size: 13px;
  color: var(--cpd-muted);
  line-height: 1.5;
}

#cpd-dashboard .cpd-badge{
  display:inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--cpd-border);
  background: rgba(0,0,0,.03);
  white-space: nowrap;
}

#cpd-dashboard .cpd-badge--accent{
  background: rgba(0,0,0,.08);
}

#cpd-dashboard .cpd-badge--ok{
  background: rgba(0,0,0,.03);
}

#cpd-dashboard .cpd-badge--warn{
  background: rgba(0,0,0,.06);
}

#cpd-dashboard .cpd-btnlist{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

#cpd-dashboard .cpd-btn{
  display:block;
  text-decoration:none;
  border: 1px solid var(--cpd-border);
  border-radius: 14px;
  padding: 14px;
  min-height: 44px;
  background: rgba(0,0,0,.02);
}

#cpd-dashboard .cpd-btn__title{
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

#cpd-dashboard .cpd-btn__desc{
  margin-top: 4px;
  font-size: 13px;
  color: var(--cpd-muted);
  line-height: 1.4;
}

#cpd-dashboard .cpd-btn:focus-visible{
  outline: 2px solid rgba(0,0,0,.25);
  outline-offset: 2px;
}

#cpd-dashboard .cpd-btn--disabled{
  opacity: .65;
}

#cpd-dashboard .cpd-footer{
  margin-top: 12px;
  font-size: 12px;
  color: var(--cpd-muted);
  line-height: 1.4;
}

#cpd-dashboard .cpd-pre{
  margin-top:10px;
  padding:12px;
  border:1px solid var(--cpd-border);
  border-radius:12px;
  background: rgba(0,0,0,.02);
  overflow:auto;
  font-size:12px;
  line-height:1.4;
}

#cpd-dashboard .cpd-list{display:flex;flex-direction:column;gap:10px;margin-top:8px;}
#cpd-dashboard .cpd-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--cpd-border);border-radius:12px;background: rgba(0,0,0,.01);}
#cpd-dashboard .cpd-row__title{font-size:14px;font-weight:800;line-height:1.2;}
#cpd-dashboard .cpd-row__sub{margin-top:2px;font-size:13px;color:var(--cpd-muted);line-height:1.4;}
#cpd-dashboard .cpd-row__right{flex:0 0 auto;}

#cpd-dashboard .cpd-tabs{
  display:flex;
  gap:8px;
  margin: 6px 0 12px;
}
#cpd-dashboard .cpd-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border:1px solid var(--cpd-border);
  border-radius: 999px;
  text-decoration:none;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0,0,0,.02);
}
#cpd-dashboard .cpd-tab.is-active{
  background: rgba(0,0,0,.08);
}

#cpd-dashboard .cpd-groups{display:flex;flex-direction:column;gap:14px;}
#cpd-dashboard .cpd-group__title{
  font-size:14px;
  font-weight:900;
  margin: 2px 0 6px;
}
#cpd-dashboard .cpd-row--sub{
  padding:10px 12px;
}
#cpd-dashboard .cpd-row--sub .cpd-row__sub{
  margin-top:0;
  font-size:13px;
}

#cpd-dashboard .cpd-actions{
  display:flex;
  gap:10px;
  margin: 10px 0 14px;
}
#cpd-dashboard .cpd-actionbtn{
  flex:1 1 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--cpd-border);
  text-decoration:none;
  font-size: 14px;
  font-weight: 800;
  background: rgba(0,0,0,.06);
}
#cpd-dashboard .cpd-actionbtn--ghost{
  background: rgba(0,0,0,.02);
}
#cpd-dashboard .cpd-actionbtn:active{
  transform: translateY(1px);
}
#cpd-dashboard .cpd-tab{
  cursor:pointer;
}

/* CPD v1.4.0 clarity overrides (theme-agnostic) */
.cpd-actions{
  display:flex !important;
  gap:10px !important;
  margin: 10px 0 14px !important;
}
.cpd-actionbtn{
  flex:1 1 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  text-decoration:none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  background: rgba(0,0,0,.06) !important;
}
.cpd-actionbtn--ghost{
  background: rgba(0,0,0,.02) !important;
}
.cpd-tabs{
  display:flex !important;
  gap:8px !important;
  margin: 6px 0 12px !important;
}
.cpd-tab{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding: 10px 14px !important;
  border:1px solid rgba(0,0,0,.18) !important;
  border-radius: 999px !important;
  text-decoration:none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  background: rgba(0,0,0,.02) !important;
}
.cpd-tab.is-active{
  background: rgba(0,0,0,.10) !important;
}

/* v1.4.1 separators */
.cpd-group{
  border-top:1px solid rgba(0,0,0,.12);
  padding-top:10px;
  margin-top:10px;
}
.cpd-group:first-child{
  border-top:none;
  padding-top:0;
  margin-top:0;
}
.cpd-row--sub{
  border-bottom:1px dashed rgba(0,0,0,.12);
}
.cpd-row--sub:last-child{
  border-bottom:none;
}

/* v1.5.3 highlight pending status */
.cpd-badge--warn,
.cpd-badge[data-type="warn"]{
  background: #ffe9cc !important;
  border: 1px solid #ffb347 !important;
  color: #b35c00 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 0 2px rgba(255,179,71,.25);
}
