/* DASH1 lane 7: study plan day. Every selector starts .dash-root.look-plum .dkp-
   Values follow the Option D study plan boards (Plan, PlanDone, PlanRest, PlanTest, PlanAfter). Where a dash_theme.css token
   equals the source value it is used (--dk-ink #22223B); the other source values are set exactly on .dkp-plan below. */

.dash-root.look-plum .dkp-plan {
  --dkp-font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --dkp-bg: #F3F1F8;
  --dkp-card: #FFFFFF;
  --dkp-line: #E3DEEA;
  --dkp-brand: #4A4E69;
  --dkp-brand-soft: #ECEAF3;
  --dkp-brand-ink: #FFFFFF;
  --dkp-good: #1C7A45;
  --dkp-good-tint: #E7F3EC;
  --dkp-good-edge: #BFE0CC;
  --dkp-muted: #5F5C6E;
  --dkp-r: 16px;
  --dkp-r-sm: 10px;
  font-family: var(--dkp-font);
  font-size: 16px;
  line-height: normal;
  color: var(--dk-ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dash-root.look-plum .dkp-plan button:focus-visible,
.dash-root.look-plum .dkp-plan a:focus-visible {
  outline: 3px solid var(--dkp-brand);
  outline-offset: 2px;
}

.dash-root.look-plum .dkp-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-root.look-plum .dkp-day {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--dkp-muted);
}

.dash-root.look-plum .dkp-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dk-ink);
}

.dash-root.look-plum .dkp-sample {
  display: inline-block;
  align-self: flex-start;
  background: var(--dk-mint);
  color: var(--dk-ink);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
}

.dash-root.look-plum .dkp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--dkp-card);
  border: 1px solid var(--dkp-line);
  border-radius: var(--dkp-r);
  padding: 22px;
  min-width: 0;
}

.dash-root.look-plum .dkp-card-h {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dash-root.look-plum .dkp-card-study {
  gap: 0;
  padding: 8px 0 0;
  overflow: hidden;
}

.dash-root.look-plum .dkp-count-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 22px 14px;
}

.dash-root.look-plum .dkp-count {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dash-root.look-plum .dkp-bar {
  flex: 1 1 160px;
  max-width: 260px;
  height: 8px;
  border-radius: 999px;
  background: var(--dkp-brand-soft);
  overflow: hidden;
}

.dash-root.look-plum .dkp-bar-fill {
  height: 100%;
  background: var(--dkp-good);
  border-radius: 999px;
}

.dash-root.look-plum .dkp-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-root.look-plum .dkp-task {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-top: 1px solid var(--dkp-line);
}

.dash-root.look-plum .dkp-chk {
  width: 30px;
  height: 30px;
  flex: none;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--dkp-line);
  background: var(--dkp-card);
  color: var(--dkp-brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.dash-root.look-plum .dkp-chk-on {
  background: var(--dkp-good);
  border-color: var(--dkp-good);
}

.dash-root.look-plum .dkp-task-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dash-root.look-plum .dkp-task-type {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dkp-muted);
}

.dash-root.look-plum .dkp-task-link,
.dash-root.look-plum .dkp-task-btn {
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dk-ink);
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.dash-root.look-plum .dkp-task-done .dkp-task-link,
.dash-root.look-plum .dkp-task-done .dkp-task-btn {
  text-decoration: line-through;
}

.dash-root.look-plum .dkp-task-min {
  font-size: 14px;
  color: var(--dkp-muted);
  font-variant-numeric: tabular-nums;
}

.dash-root.look-plum .dkp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--dkp-r-sm);
  background: var(--dkp-brand);
  color: var(--dkp-brand-ink);
  border: 1.5px solid var(--dkp-brand);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.12s ease;
}

.dash-root.look-plum .dkp-btn:hover {
  filter: brightness(1.15);
}

.dash-root.look-plum .dkp-btn-lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.dash-root.look-plum .dkp-btn-ghost {
  background: transparent;
  color: var(--dkp-brand);
  border-color: var(--dkp-line);
}

.dash-root.look-plum .dkp-btn-ghost:hover {
  filter: none;
  background: var(--dkp-brand-soft);
}

.dash-root.look-plum .dkp-start {
  min-width: 0;
}

.dash-root.look-plum .dkp-link {
  justify-self: start;
  background: none;
  border: 0;
  padding: 10px 2px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--dkp-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.dash-root.look-plum .dkp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.dash-root.look-plum .dkp-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-root.look-plum .dkp-icon-done {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dkp-good);
  color: var(--dkp-brand-ink);
}

.dash-root.look-plum .dkp-icon-rest {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dkp-brand-soft);
  color: var(--dkp-brand);
}

.dash-root.look-plum .dkp-icon-test {
  width: 56px;
  height: 56px;
  border-radius: var(--dkp-r-sm);
  background: var(--dkp-brand);
  color: var(--dkp-brand-ink);
}

.dash-root.look-plum .dkp-icon-next {
  width: 52px;
  height: 52px;
  border-radius: var(--dkp-r-sm);
  background: var(--dkp-brand-soft);
  color: var(--dkp-brand);
}

.dash-root.look-plum .dkp-card-done {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  background: var(--dkp-good-tint);
  border: 1px solid var(--dkp-good-edge);
  padding: 20px 22px;
}

.dash-root.look-plum .dkp-done-col {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-root.look-plum .dkp-done-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-root.look-plum .dkp-done-link {
  color: var(--dkp-good);
}

.dash-root.look-plum .dkp-next {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--dk-ink);
}

.dash-root.look-plum .dkp-card-rest {
  gap: 14px;
  padding: 24px;
}

.dash-root.look-plum .dkp-rest-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-root.look-plum .dkp-rest-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-root.look-plum .dkp-rest-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.dash-root.look-plum .dkp-tomorrow {
  background: var(--dkp-bg);
  border-radius: var(--dkp-r-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-root.look-plum .dkp-rest-link {
  align-self: flex-start;
  padding: 6px 2px;
}

.dash-root.look-plum .dkp-card-test {
  gap: 16px;
  padding: 26px;
  border: 2px solid var(--dkp-brand);
  box-shadow: 0 10px 28px rgba(34, 34, 59, 0.10);
}

.dash-root.look-plum .dkp-test-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-root.look-plum .dkp-test-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-root.look-plum .dkp-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dkp-muted);
}

.dash-root.look-plum .dkp-test-text {
  margin: 0;
  font-size: 15px;
  color: var(--dkp-muted);
}

.dash-root.look-plum .dkp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}

.dash-root.look-plum .dkp-chip {
  background: var(--dkp-bg);
  border-radius: var(--dkp-r-sm);
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
}

.dash-root.look-plum .dkp-when {
  margin: 0;
  font-size: 15px;
  color: var(--dkp-muted);
  font-variant-numeric: tabular-nums;
}

.dash-root.look-plum .dkp-strong {
  color: var(--dk-ink);
  font-weight: 700;
}

.dash-root.look-plum .dkp-card-next {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 22px;
}

.dash-root.look-plum .dkp-next-row {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-root.look-plum .dkp-next-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-root.look-plum .dkp-next-h {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--dkp-muted);
}

.dash-root.look-plum .dkp-countdown {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dk-ink);
}

.dash-root.look-plum .dkp-card-next .dkp-btn {
  min-height: 48px;
  padding: 0 20px;
  font-size: 16px;
}

.dash-root.look-plum .dkp-card-after {
  gap: 14px;
  padding: 22px;
}

.dash-root.look-plum .dkp-after-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.dash-root.look-plum .dkp-after-h {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--dkp-muted);
}

.dash-root.look-plum .dkp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dkp-good);
  background: var(--dkp-good-tint);
  border-radius: 999px;
  padding: 3px 12px;
}

.dash-root.look-plum .dkp-score-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 32px;
}

.dash-root.look-plum .dkp-score-col {
  display: flex;
  flex-direction: column;
}

.dash-root.look-plum .dkp-score {
  display: block;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.dash-root.look-plum .dkp-delta {
  font-size: 15px;
  font-weight: 700;
  color: var(--dkp-good);
  font-variant-numeric: tabular-nums;
}

.dash-root.look-plum .dkp-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.dash-root.look-plum .dkp-breakdown span {
  display: block;
}

.dash-root.look-plum .dkp-card-goal {
  text-align: center;
  padding: 20px;
}

.dash-root.look-plum .dkp-weekly,
.dash-root.look-plum .dkp-tip,
.dash-root.look-plum .dkp-note {
  margin: 0;
  font-size: 14px;
  color: var(--dkp-muted);
}

.dash-root.look-plum .dkp-estimate {
  font-style: italic;
}

.dash-root.look-plum .dkp-foot {
  margin: 0;
  font-size: 13px;
  color: var(--dkp-muted);
}


/* P4: two-column page layout from the board (left column grows, right column 330 to 420 wide, gap 24).
   Scoped selector only: the plan and the calendar column are siblings, so the plan is an inline block whose width is
   the page width less the right column (444px) when both fit, and the full width when they do not (the 1000 factor is the switch). */
.dash-root.look-plum .dkp-plan {
  box-sizing: border-box;
  margin: 0;
  flex: 999 1 420px;
  min-width: 0;
}
/* Board main: flex wrap, gap 24, items start, padding 32 clamp(16,3vw,40) 40, no max-width. Applied to whichever element holds the plan column. */
.dash-root.look-plum:has(> .dkp-plan),
.dash-root.look-plum :has(> .dkp-plan) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  max-width: none;
  box-sizing: border-box;
  min-width: 0;
  padding: 32px clamp(16px, 3vw, 40px) 40px;
}
.dash-root.look-plum .dkp-status {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--dkp-muted);
}
