:root {
  --bg: #f2f1ef;
  --panel: #ffffff;
  --ink: #1f2a2e;
  --muted: #6b767d;
  --brand: #9fc3fa;
  --brand-light: #d8eef0;
  --accent: #e9c46a;
  --expectations: #9fc3fa;
  --learn: #8de0c8;
  --formative: #faca8e;
  --nextstep: #ed80ee;
  --summative: #fbb7b8;
  --goals: #c294f8;
  --shadow: 0 10px 30px rgba(10, 26, 34, 0.08);
  --radius: 18px;
  --grid-gap: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  background: #f0f4fd;
  color: var(--ink);
}

.app {
  max-width: 1760px;
  margin: 26px auto 40px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tabbar {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  width: fit-content;
}

.tab-button {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tab-button:hover {
  transform: translateY(-1px);
}

.tab-button.active {
  background: var(--brand);
  color: #fff;
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tab-panel[hidden] {
  display: none;
}

.planner-panel[hidden] {
  display: none;
}

.startup-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(240, 244, 253, 0.72);
  backdrop-filter: blur(10px);
}

.startup-overlay[hidden] {
  display: none;
}

.startup-dialog {
  width: min(760px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #dbe4f3;
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(27, 48, 84, 0.16);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.startup-banner {
  align-self: center;
  background: #eef4ff;
  color: #4b6fae;
  border: 1px solid #c9daf5;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "Poppins", "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.startup-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.startup-option {
  border: 1px solid #d7e0ef;
  border-radius: 22px;
  background: #fff;
  padding: 26px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.startup-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(27, 48, 84, 0.1);
  border-color: #9fc3fa;
}

.startup-option-title {
  font-family: "Poppins", "Work Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000;
}

.startup-option-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.topbar {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-banner {
  display: block;
  height: 45px;
  width: auto;
  max-width: min(100%, 320px);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-toggle {
  background: #f3f6f6;
  border-radius: 999px;
  padding: 4px;
  display: flex;
  gap: 6px;
}

.pill {
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  background: #e7eeef;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(12, 35, 42, 0.12);
}

.pill.active {
  background: var(--brand);
  color: #fff;
}

.pill.ghost {
  background: #9fc3fa;
  border: 1px solid #9fc3fa;
  color: #fff;
}

.pill.ghost:hover {
  background: #fff;
  color: #9fc3fa;
  border-color: #9fc3fa;
}

.pill.primary {
  background: var(--accent);
  color: #3c2d00;
}

.arc-toggle-btn {
  align-self: flex-end;
  min-height: 44px;
  padding: 10px 34px;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-family: "Poppins", "Work Sans", sans-serif;
  font-weight: 500;
}

.arc-toggle-btn:hover {
  background: #8cb6f6;
}

.arc-toggle-btn.active {
  background: #89b2f0;
  color: #fff;
}

.canvas {
  position: relative;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.canvas.readonly-mode .editable,
.canvas.readonly-mode .action-card,
.canvas.readonly-mode .week-body {
  cursor: default;
}

.canvas.readonly-mode .controls,
.canvas.readonly-mode .timeline-trash {
  display: none !important;
}

.canvas.readonly-mode .week-body.over {
  outline: none;
  background: transparent;
}

.canvas-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.readonly-banner {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  background: #eef4ff;
  color: #4b6fae;
  border: 1px solid #c9daf5;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: "Poppins", "Work Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.module-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-label {
  font-size: 18px;
  font-weight: 600;
}

.module-sub {
  color: var(--muted);
  font-size: 14px;
}

.editable {
  cursor: text;
}

.editable:focus {
  outline: 2px solid rgba(12, 107, 114, 0.25);
  outline-offset: 4px;
  border-radius: 6px;
}

.controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.input input {
  border: 1px solid #d9e2e3;
  border-radius: 10px;
  padding: 8px 10px;
  width: 100px;
  font-weight: 600;
}

.input--wide input {
  width: min(100%, 360px);
}

.weekbar {
  display: none;
}

.weekbar .week-tab {
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px 10px 0 0;
  font-size: 13px;
  text-align: center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: var(--grid-gap);
}

.arc-timeline {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.arc-timeline[hidden] {
  display: none;
}

.timeline-trash {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px dashed #cfd8dc;
  background: #f3f5f6;
  color: #6e7b82;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.timeline-trash-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-trash-icon::before {
  content: "🗑";
  font-size: 14px;
  line-height: 1;
}

.timeline-trash.active {
  background: #fbb7b8;
  border-color: #fbb7b8;
  color: #fff;
}

.arc-chart {
  width: 100%;
  min-width: 0;
  height: 320px;
  display: block;
  max-width: 100%;
}

.arc-baseline {
  stroke: #4b88df;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.arc-small {
  fill: none;
  stroke: #4b88df;
  stroke-width: 2.1;
}

.arc-medium {
  fill: none;
  stroke: #4b88df;
  stroke-width: 2.6;
}

.arc-mini-grid {
  position: relative;
  min-width: 0;
  overflow: visible;
  align-self: stretch;
}

.arc-mini-column {
  position: absolute;
  top: 0;
  background: #f7f9fa;
  border: 1px solid #dce5e8;
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 64px;
  min-width: 0;
}

.arc-mini-lesson {
  font-size: 11px;
  font-weight: 700;
  color: #4a5d68;
  letter-spacing: 0.02em;
}

.arc-mini-card {
  border-radius: 8px;
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.25;
  background: #ffffff;
  border-left: 3px solid transparent;
  color: #1f2a2e;
  user-select: none;
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}


.arc-mini-card.learn { border-left-color: var(--learn); }
.arc-mini-card.formative { border-left-color: var(--formative); }
.arc-mini-card.summative { border-left-color: var(--summative); }
.arc-mini-card.goals { border-left-color: var(--goals); }

.canvas.arc-mode .timeline {
  display: none !important;
}

.canvas.arc-mode .arc-timeline {
  display: flex !important;
}

.canvas:not(.arc-mode) .arc-timeline {
  display: none !important;
}

.week-column {
  background: #f6f7f6;
  border-radius: 12px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dfe7e7;
}

.week-header {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 10px 10px;
  font-size: 13px;
  text-align: center;
  border-radius: 12px 12px 0 0;
}

.week-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.week-body.over {
  outline: 2px dashed var(--brand);
  outline-offset: -4px;
  background: #f0fafb;
}

.legend {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.canvas-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.dot.expectations { background: var(--expectations); }
.dot.learn { background: var(--learn); }
.dot.formative { background: var(--formative); }
.dot.nextstep { background: var(--nextstep); }
.dot.summative { background: var(--summative); }
.dot.goals { background: var(--goals); }

.actions {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-chip {
  border: 1px solid #c9daf5;
  background: #fff;
  color: #47617e;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.library-chip.active {
  background: #4b88df;
  border-color: #4b88df;
  color: #fff;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.library-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dce6f5;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.library-card-title {
  margin: 0;
  font-size: 16px;
  font-family: "Fraunces", serif;
}

.library-card-duration {
  color: #47617e;
  font-size: 12px;
  font-weight: 700;
}

.library-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.library-tag {
  display: inline-flex;
  align-items: center;
  background: #edf4ff;
  color: #45607d;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
}

.actions-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.actions-title {
  font-family: "Poppins", "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.actions-sub {
  color: var(--muted);
  font-size: 13px;
}

.action-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.action-column {
  background: #f7f4f0;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #eadfce;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.action-column[data-category="expectations"] {
  background: #edf4ff;
  border-color: #d9e7ff;
}

.action-column[data-category="learn"] {
  background: #f1fbf7;
  border-color: #def4ed;
}

.action-column[data-category="formative"] {
  background: #fff6ea;
  border-color: #ffe8c7;
}

.action-column[data-category="nextstep"] {
  background: #fdf0fd;
  border-color: #f6d2f6;
}

.action-column[data-category="summative"] {
  background: #fff2f2;
  border-color: #ffe1e2;
}

.action-column[data-category="goals"] {
  background: #f8f2ff;
  border-color: #eadcff;
}

.column-title {
  font-family: "Poppins", "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #000;
}

.column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.column-info-button {
  width: 22px;
  height: 22px;
  border: 1px solid #cfd9de;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #6d7880;
  font-size: 12px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.column-info-button:hover {
  background: #fff;
  border-color: #b9cad3;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 80px;
  flex: 1;
}

.action-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 4px 10px rgba(31, 42, 46, 0.08);
  font-size: 12px;
  line-height: 1.35;
  cursor: grab;
  border-left: 4px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-card:active {
  cursor: grabbing;
}

.action-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(31, 42, 46, 0.12);
}

.action-card.expectations { border-left-color: var(--expectations); }
.action-card.learn { border-left-color: var(--learn); }
.action-card.formative { border-left-color: var(--formative); }
.action-card.nextstep { border-left-color: var(--nextstep); }
.action-card.summative { border-left-color: var(--summative); }
.action-card.goals { border-left-color: var(--goals); }

.action-card.ghost {
  opacity: 0.55;
}

.action-card.editing {
  outline: 2px solid rgba(42, 157, 143, 0.35);
  cursor: text;
}

.card-label {
  min-height: 1em;
  flex: 1;
  font-weight: 700;
}

.card-label[contenteditable="true"] {
  outline: none;
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  position: relative;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.card-meta {
  color: #47617e;
  font-size: 11px;
  font-weight: 700;
}

.card-description {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.card-info-button {
  width: 28px;
  height: 28px;
  border: 1px solid #cfd9de;
  border-radius: 999px;
  background: #f7fbfd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5a6a73;
  cursor: pointer;
  flex-shrink: 0;
}

.card-info-button[hidden] {
  display: none;
}

.card-info-button:hover {
  background: #eef4f8;
  border-color: #b9cad3;
}

.card-info-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.assessment-icon-control {
  position: relative;
  flex-shrink: 0;
}

.assessment-icon-trigger {
  width: 30px;
  height: 30px;
  border: 1px solid #cfd9de;
  border-radius: 10px;
  background: #f8fbfd;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5a6a73;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.assessment-icon-trigger:hover {
  background: #eef4f8;
  border-color: #b9cad3;
}

.assessment-icon-trigger.empty {
  color: #8798a1;
  border-style: dashed;
}

.assessment-icon-preview {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-fallback {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.assessment-icon-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 156px;
  padding: 8px;
  background: #fff;
  border: 1px solid #dbe4e8;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(16, 35, 43, 0.16);
}

.assessment-icon-popover[hidden] {
  display: none;
}

.assessment-icon-option {
  width: 30px;
  height: 30px;
  border: 1px solid #d6e0e5;
  border-radius: 8px;
  background: #f9fbfd;
  color: #4f5f67;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.assessment-icon-option:hover {
  background: #edf4f8;
  border-color: #b8ccd7;
}

.assessment-icon-option.active {
  background: #e3f0fb;
  border-color: #8fb7d0;
}

.assessment-icon-option-glyph {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.linked-goals {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.linked-goals[hidden] {
  display: none;
}

.action-card.formative .linked-goals,
.action-card.summative .linked-goals {
  padding-top: 6px;
  border-top: 1px solid rgba(31, 42, 46, 0.1);
}

.linked-goal-item {
  background: #f6f0ff;
  border: 1px solid #eadcff;
  border-left: 3px solid var(--goals);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.linked-goal-text {
  flex: 1;
}

.unlink-goal-btn {
  border: 1px solid #dbc9f3;
  background: #fff;
  color: #6d4a99;
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
}

.unlink-goal-btn:hover {
  background: #f1e8ff;
}

.add-card {
  border: 1px dashed currentColor;
  background: #fff;
  color: var(--brand);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  margin-top: auto;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.action-column[data-category="expectations"] .add-card {
  color: var(--expectations);
}

.action-column[data-category="learn"] .add-card {
  color: var(--learn);
}

.action-column[data-category="formative"] .add-card {
  color: var(--formative);
}

.action-column[data-category="nextstep"] .add-card {
  color: var(--nextstep);
}

.action-column[data-category="summative"] .add-card {
  color: var(--summative);
}

.action-column[data-category="goals"] .add-card {
  color: var(--goals);
}

.add-card:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 6px 12px rgba(31, 42, 46, 0.12);
}

.action-hints {
  color: var(--muted);
  font-size: 12px;
}

.setup-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.checklist-panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checklist-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.checklist-list,
.check-sublist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-sublist {
  margin-left: 48px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: #9fc3fa;
  flex-shrink: 0;
}

.setup-card,
.check-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.setup-card-head h2,
.check-card h2 {
  margin: 0;
  font-family: "Poppins", "Work Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
}

.setup-card-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 760px;
}

.setup-form,
.goal-builder {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.setup-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-field span {
  font-family: "Poppins", "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.setup-field input,
.setup-field textarea {
  width: 100%;
  border: 1px solid #d5dcde;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: "Poppins", "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgb(107, 118, 125);
  background: #fff;
}

.setup-field input::placeholder,
.setup-field textarea::placeholder {
  color: rgb(107, 118, 125);
  opacity: 1;
}

.setup-field textarea {
  resize: vertical;
  min-height: 96px;
}

.goal-entry .setup-field:first-of-type {
  margin-bottom: 14px;
}

.setup-field input:focus,
.setup-field textarea:focus {
  outline: 2px solid rgba(75, 136, 223, 0.18);
  border-color: #7da7df;
}

.goal-list,
.check-goals {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.goal-entry,
.check-goal-item {
  border: 1px solid #eadcff;
  border-radius: 16px;
  padding: 18px;
  background: #f7f0ff;
}

.goal-entry-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.goal-entry-title {
  font-weight: 700;
}

.goal-add-button,
.goal-remove-button {
  border-radius: 12px;
  font-weight: 400;
  cursor: pointer;
}

.goal-add-button {
  border: 1px dashed #b58ae8;
  background: #fff;
  color: #8a5cc4;
  padding: 16px;
  font-size: 15px;
  font-weight: 400;
}

.goal-remove-button {
  border: 1px solid #fbb7b8;
  background: #fff;
  color: #fbb7b8;
  padding: 8px 12px;
  font-size: 12px;
}

.goal-remove-button:hover {
  background: #e56b6f;
  border-color: #e56b6f;
  color: #fff;
}

.check-list {
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-list dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.check-list dd {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.check-goal-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.check-goal-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.empty-state {
  color: var(--muted);
  font-size: 14px;
  padding: 18px;
  border-radius: 14px;
  background: #f5f6f6;
  border: 1px dashed #d5dddf;
}

.werkvorm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}

.werkvorm-modal[hidden] {
  display: none;
}

.werkvorm-info-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.werkvorm-info-modal[hidden] {
  display: none;
}

.werkvorm-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 35, 38, 0.34);
  backdrop-filter: blur(6px);
}

.werkvorm-info-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  background: #fff;
  border: 1px solid #dfe8eb;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(14, 31, 39, 0.18);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: auto;
}

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

.werkvorm-info-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.werkvorm-info-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.werkvorm-info-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.werkvorm-info-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.werkvorm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 35, 38, 0.34);
  backdrop-filter: blur(6px);
}

.werkvorm-modal-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  margin: auto;
  overflow-x: auto;
  overflow-y: auto;
}

.werkvorm-modal-layout::before,
.werkvorm-modal-layout::after {
  content: "";
  flex: 1 0 0;
  min-width: 0;
}

.werkvorm-panel {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(14, 31, 39, 0.18);
  border: 1px solid #dfe8eb;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 96px);
}

.werkvorm-panel-main {
  width: min(520px, 100%);
  flex-shrink: 0;
}

.werkvorm-panel-list {
  width: min(360px, 100%);
  flex-shrink: 0;
}

.werkvorm-panel-detail {
  width: min(420px, 100%);
  flex-shrink: 0;
}

.werkvorm-panel-list,
.werkvorm-panel-detail {
  opacity: 0;
  pointer-events: none;
  width: 0;
  min-width: 0;
  padding: 0;
  border-width: 0;
  overflow: hidden;
  transform: translateX(-12px);
  transition: opacity 0.18s ease, transform 0.18s ease, width 0.18s ease, padding 0.18s ease;
}

.werkvorm-modal.show-library .werkvorm-panel-list {
  opacity: 1;
  pointer-events: auto;
  width: min(360px, 100%);
  padding: 22px;
  border-width: 1px;
  transform: translateX(0);
}

.werkvorm-modal.show-detail .werkvorm-panel-detail {
  opacity: 1;
  pointer-events: auto;
  width: min(420px, 100%);
  padding: 22px;
  border-width: 1px;
  transform: translateX(0);
}

.werkvorm-modal.show-library .werkvorm-panel-main {
  transform: translateX(0);
}

.werkvorm-modal.show-detail .werkvorm-panel-main,
.werkvorm-modal.show-detail .werkvorm-panel-list {
  transform: translateX(0);
}

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

.werkvorm-panel-head h2,
.werkvorm-panel-head h3,
.kennisbank-detail-section h4 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.werkvorm-panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.werkvorm-close {
  border: 1px solid #d9e4e8;
  background: #f7fafb;
  color: #5e7079;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.werkvorm-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.werkvorm-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.werkvorm-form-actions .pill {
  min-height: 0;
  padding: 8px 18px;
  font-family: "Poppins", "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.werkvorm-form-actions .pill.primary {
  background: #8de0c8;
  color: #fff;
}

.werkvorm-form-actions .pill.primary:hover {
  background: #79d6bb;
}

.werkvorm-form-actions .pill.ghost {
  background: #fff;
  color: #8de0c8;
  border: 1px solid #8de0c8;
}

.werkvorm-form-actions .pill.ghost:hover {
  background: #f5fffb;
  color: #74cbb2;
  border-color: #74cbb2;
}

.button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  font-size: 14px;
  line-height: 1;
}

.kennisbank-list,
.kennisbank-detail-body {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kennisbank-detail-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f3;
}

.kennisbank-detail-section p {
  margin: 0;
  color: #50626d;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.print-appendix {
  display: none;
}

.print-appendix-page {
  background: #fff;
}

.print-appendix-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.print-appendix-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 28px;
}

.print-appendix-head p {
  margin: 0;
  color: #50626d;
  line-height: 1.5;
}

.print-appendix-eyebrow {
  color: #6b767d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.print-werkvorm-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14mm 10mm;
  align-items: start;
}

.print-werkvorm-item {
  padding: 10mm 8mm;
  border: 1px solid #dce6e8;
  border-left: 6px solid var(--learn);
  border-radius: 14px;
  break-inside: avoid;
  page-break-inside: avoid;
  min-height: 118mm;
  box-sizing: border-box;
}

.print-werkvorm-item-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.print-werkvorm-item-head h3,
.print-werkvorm-section h4 {
  margin: 0;
}

.print-werkvorm-item-head h3 {
  font-size: 16px;
  line-height: 1.2;
}

.print-werkvorm-meta {
  margin: 0;
  color: #47617e;
  font-size: 11px;
  font-weight: 700;
}

.print-werkvorm-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.print-werkvorm-section + .print-werkvorm-section {
  margin-top: 8px;
}

.print-werkvorm-section h4 {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.print-werkvorm-body {
  margin: 0;
  color: #33444d;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow: hidden;
}

@media (max-width: 900px) {
  .tabbar {
    width: 100%;
    overflow-x: auto;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .canvas-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .setup-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .startup-options {
    grid-template-columns: 1fr;
  }

  .input--wide input {
    width: 100%;
  }

  .werkvorm-modal-layout {
    padding: 24px 14px;
    align-items: flex-start;
  }

  .werkvorm-panel,
  .werkvorm-panel-main,
  .werkvorm-panel-list,
  .werkvorm-panel-detail {
    max-height: calc(100vh - 48px);
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .actions,
  .tabbar,
  .start-panel,
  .check-panel,
  .controls {
    display: none;
  }

  .app {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .canvas {
    box-shadow: none;
    padding: 0;
  }

  .timeline-trash {
    display: none;
  }

  .week-header {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-appendix {
    display: block;
    page-break-before: always;
    break-before: page;
    margin-top: 28px;
  }

  .print-appendix-page {
    padding: 0;
  }

  .print-appendix-head {
    margin-bottom: 8mm;
  }

  .print-appendix-head h2 {
    font-size: 22px;
  }

  .print-appendix-head p {
    font-size: 11px;
  }

  .print-appendix[hidden] {
    display: none;
  }
}
