.center-head.center-head-actieplan,
#actieplanCenter {
  display: none;
}

body[data-agent="actieplan"] .workspace-main {
  grid-template-columns: minmax(0, 1fr);
}

body[data-agent="actieplan"] .rail,
body[data-agent="actieplan"] #beoordelaarCenter,
body[data-agent="actieplan"] #beoordelaarHistory,
body[data-agent="actieplan"] #calcCenter,
body[data-agent="actieplan"] .center-head-beoordelaar,
body[data-agent="actieplan"] .center-head-calc,
body[data-agent="actieplan"] .center-head-geschiedenis,
body[data-agent="actieplan"] .center-head-products,
body[data-agent="actieplan"] .center-head-product,
body[data-agent="actieplan"] .center-head-webshop,
body[data-agent="actieplan"] .center-head-onderzoeker,
body[data-agent="actieplan"] .center-head-dashboard,
body[data-agent="actieplan"] .center-head-ai-coach,
body[data-agent="actieplan"] .center-head-coaching,
body[data-agent="actieplan"] .center-head-roadmap,
body[data-agent="actieplan"] #productsCenter,
body[data-agent="actieplan"] #productDetailCenter,
body[data-agent="actieplan"] #webshopCenter,
body[data-agent="actieplan"] #onderzoekerCenter,
body[data-agent="actieplan"] #dashboardCenter,
body[data-agent="actieplan"] #aiCoachCenter,
body[data-agent="actieplan"] #coachingCenter,
body[data-agent="actieplan"] #roadmapCenter {
  display: none !important;
}

body[data-agent="actieplan"] .center-head.center-head-actieplan {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: static;
  flex: 0 0 auto;
  gap: 8px;
  width: min(100%, 720px);
  margin: 0 auto 12px;
}

body[data-agent="actieplan"] .center-head-actieplan .dash-tabs {
  margin-top: 2px;
}

.ap-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ap-head-row .subtitle {
  margin-top: 4px;
}

.ap-summary {
  margin: 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}

.ap-summary[hidden] {
  display: none !important;
}

body[data-agent="actieplan"] #actieplanCenter {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(100%, 720px);
  margin: 0 auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  gap: 14px;
  padding: 0 2px 32px;
}

.ap-next.is-attention,
.ap-row.is-attention {
  outline: 1px solid color-mix(in srgb, var(--ice) 42%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ice) 12%, transparent);
}

.ap-next {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--ice) 30%, var(--line));
  border-radius: 16px;
  padding: 20px 20px 18px;
}

.ap-next.is-empty {
  gap: 8px;
}

.ap-next-main {
  min-width: 0;
}

.ap-next-kicker {
  color: var(--ice);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ap-next h2 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.ap-next-title {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.ap-next p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ap-next-due {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.ap-next-cta,
.ap-form-actions .cta,
.ap-form-actions .pd-ghost {
  width: auto;
  margin: 0;
  min-height: 36px;
  padding: 8px 12px;
}

.ap-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ap-next-actions .ask-ai-coach-btn,
.ap-next-actions .ap-next-edit,
.ap-next-actions .cta.ap-next-cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  border-radius: 12px;
}

.ap-next-actions .ask-ai-coach-btn {
  font-weight: 650;
}

.ap-next-actions .ap-next-edit {
  font-weight: 650;
}

.ap-next-actions .cta.ap-next-cta {
  font-weight: 700;
}

.ap-form-card {
  width: min(460px, 100%);
}

.ap-form h2 {
  margin: 0 0 2px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.ap-form .label {
  margin-top: 10px;
}

.ap-form input,
.ap-form textarea,
.ap-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 11px;
  font: inherit;
  font-size: 13px;
}

.ap-form textarea {
  min-height: 72px;
  resize: vertical;
}

.ap-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ap-board {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ap-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 2px 4px;
}

.ap-view {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.ap-view.is-on {
  border-color: color-mix(in srgb, var(--text) 28%, var(--line));
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
}

.ap-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.ap-list-head h2 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ap-list-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.ap-list {
  display: flex;
  flex-direction: column;
}

.ap-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  min-width: 0;
  cursor: pointer;
}

.ap-row:hover,
.ap-row:focus-visible {
  background: color-mix(in srgb, var(--raise) 80%, transparent);
}

.ap-row.is-now {
  border-color: color-mix(in srgb, var(--ice) 38%, var(--line));
  background: color-mix(in srgb, var(--ice) 12%, transparent);
}

.ap-row.is-now:hover,
.ap-row.is-now:focus-visible {
  background: color-mix(in srgb, var(--ice) 16%, transparent);
}

.ap-row.is-done {
  opacity: 0.72;
}

.ap-row.is-done:hover,
.ap-row.is-done:focus-visible {
  opacity: 1;
}

.ap-row-body {
  min-width: 0;
}

.ap-row-body strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.ap-row.is-now .ap-row-body strong {
  font-weight: 700;
}

.ap-row-body span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.ap-check {
  width: 16px;
  height: 16px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--muted) 50%, var(--line));
  background: transparent;
  color: var(--testen);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ap-row.is-now .ap-check {
  border-color: color-mix(in srgb, var(--ice) 60%, var(--line));
}

.ap-check.is-done {
  border-color: color-mix(in srgb, var(--testen) 55%, var(--line));
  background: color-mix(in srgb, var(--testen) 14%, transparent);
  cursor: default;
}

.ap-now {
  color: var(--ice);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 8px;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.ap-icon-btn:hover,
.ap-icon-btn:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--ice) 8%, transparent);
}

.ap-more {
  position: relative;
}

.ap-more-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 4;
  min-width: 168px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.ap-more-menu button {
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.ap-more-menu button:hover,
.ap-more-menu button:focus-visible {
  background: color-mix(in srgb, var(--ice) 10%, transparent);
}

.ap-more-menu button.is-danger {
  color: var(--afwijzen);
}

.ap-more-menu button.is-danger:hover,
.ap-more-menu button.is-danger:focus-visible {
  background: color-mix(in srgb, var(--afwijzen) 12%, transparent);
}

.ap-empty-block {
  padding: 8px 6px 2px;
}

.ap-empty,
.ap-error,
.ap-empty-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ap-error {
  color: var(--afwijzen);
}

@media (max-width: 720px) {
  .ap-head-row {
    flex-direction: column;
  }

  .ap-summary {
    white-space: normal;
  }

  .ap-view {
    min-height: 44px;
  }

  body[data-agent="actieplan"] .center-head-actieplan .center-head-actions,
  body[data-agent="actieplan"] .center-head-actieplan .pd-ghost {
    width: 100%;
  }

  body[data-agent="actieplan"] .center-head-actieplan .pd-ghost,
  .ap-next-cta,
  .ap-form-actions .cta,
  .ap-form-actions .pd-ghost,
  .ap-icon-btn,
  .ap-check {
    min-height: 44px;
  }

  .ap-check,
  .ap-icon-btn {
    width: 44px;
    height: 44px;
  }

  .ap-check {
    border-radius: 999px;
  }

  .ap-next-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ap-next-actions .ask-ai-coach-btn,
  .ap-next-actions .ap-next-edit,
  .ap-next-actions .cta.ap-next-cta {
    width: 100%;
    height: 44px;
    min-height: 44px;
  }

  .ap-row {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: start;
  }

  .ap-more {
    grid-column: 3;
    grid-row: 1;
  }
}
