.d2l-studio {
  --d2l-green: #2e7d32;
  --d2l-green-soft: #eef7ee;
  --d2l-blue: #2f6f9f;
  --d2l-blue-soft: #edf6fb;
  --d2l-gold: #8a6a21;
  --d2l-gold-soft: #fff7df;
  --d2l-teal: #166a63;
  --d2l-teal-soft: #e9f7f5;
  --d2l-rose: #9b3d54;
  --d2l-rose-soft: #fff0f3;
  --d2l-line: #dbe8dc;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
  color: #1f2933;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.d2l-studio-header {
  margin: 0 0 18px;
  padding: 14px;
  background: linear-gradient(135deg, #f7fbf7 0%, #f8fafc 58%, #fff7df 100%);
  border: 1px solid var(--d2l-line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(46, 125, 50, 0.08);
}

.d2l-made-host {
  display: flex;
  align-items: center;
  gap: 14px;
}

.d2l-made-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--d2l-green-soft);
  border: 2px solid #cfe6d0;
  border-radius: 999px;
  color: #2e7d32;
  font-size: 26px;
  font-weight: 900;
}

.d2l-made-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.d2l-studio-kicker {
  margin: 0 0 4px;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.d2l-studio-header h1 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1.1;
}

.d2l-studio-header p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.45;
}

.d2l-studio-panel {
  margin: 0 0 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #dfe9df;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.d2l-work-area[hidden] {
  display: none;
}

.d2l-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf3ee;
}

.d2l-panel-head h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
}

.d2l-panel-head span {
  padding: 4px 9px;
  background: var(--d2l-green-soft);
  border: 1px solid #d6ead7;
  border-radius: 999px;
  color: #3b6d3e;
  font-size: 13px;
  font-weight: 700;
}

.d2l-target-entry {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

.d2l-target-entry summary {
  cursor: pointer;
  font-weight: 800;
}

.d2l-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.d2l-target-grid label {
  display: grid;
  gap: 5px;
}

.d2l-target-grid span {
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.d2l-voice-entry {
  margin-bottom: 12px;
  padding: 14px;
  background: #f7faf9;
  border: 1px solid #dce8dc;
  border-radius: 9px;
}

.d2l-voice-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: #2e7d32;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}

.d2l-voice-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.d2l-voice-button.is-listening {
  background: #0f766e;
}

.d2l-voice-icon {
  min-width: 28px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.d2l-voice-status {
  margin: 9px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}

.d2l-pill-groups {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.d2l-pill-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.d2l-input-work-area:not([hidden]) {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 99999;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  transform: translateX(-50%);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

.d2l-input-modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.d2l-input-modal-close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  border: 1px solid #cfd8d3;
  border-radius: 999px;
  color: #111827;
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.d2l-input-modal-close:hover {
  background: #e8f5e9;
  border-color: #2e7d32;
}

.d2l-input-work-area .d2l-measurement-area,
.d2l-input-work-area .d2l-meal-text-area,
.d2l-input-work-area .d2l-photo-area,
.d2l-input-work-area .d2l-day-note-area {
  display: none;
}

.d2l-studio.is-measurements-route .d2l-input-work-area .d2l-measurement-area,
.d2l-studio.is-meal-route .d2l-input-work-area .d2l-meal-text-area,
.d2l-studio.is-photo-route .d2l-input-work-area .d2l-photo-area,
.d2l-studio.is-note-route .d2l-input-work-area .d2l-day-note-area {
  display: block;
}

.d2l-route-help {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}

.d2l-measurement-area .d2l-pill-group input {
  max-width: 180px;
  min-height: 38px;
}

.d2l-measurement-send-row {
  justify-content: flex-start;
}

.d2l-measurement-date-box {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  margin: 0 0 12px;
  padding: 12px;
  background: #f7faf9;
  border: 1px solid #dce8dc;
  border-radius: 8px;
}

.d2l-measurement-date-box label,
.d2l-applies-date-control {
  display: grid;
  gap: 7px;
}

.d2l-measurement-date-box span {
  color: #1f2933;
  font-size: 13px;
  font-weight: 900;
}

.d2l-applies-date-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.d2l-applies-date-pills button {
  min-height: 34px;
  padding: 7px 11px;
  background: #fff;
  border: 1px solid #cfd8d3;
  border-radius: 999px;
  color: #1f2933;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.d2l-applies-date-pills button.is-active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.d2l-measurement-codex-progress {
  margin-top: 12px;
}

.d2l-rag-question {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cfe4d4;
  border-radius: 8px;
  background: #f7fbf7;
}

.d2l-rag-question label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-weight: 800;
}

.d2l-rag-question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.d2l-rag-question-row input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfd8d3;
  border-radius: 7px;
  color: #1f2937;
  font: inherit;
}

.d2l-applies-date-control p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.35;
}

.d2l-pill-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.d2l-pill-group span {
  min-width: 68px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.d2l-pill-group button {
  min-height: 34px;
  padding: 7px 11px;
  background: #fff;
  border: 1px solid #cfd8d3;
  border-radius: 999px;
  color: #1f2933;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.d2l-pill-group button:hover {
  background: #e8f5e9;
  border-color: #2e7d32;
}

.d2l-pill-group button.is-active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.16);
}

.d2l-manual-entry {
  margin: 8px 0 12px;
  color: #6b7280;
  font-size: 14px;
}

.d2l-manual-entry summary {
  cursor: pointer;
  font-weight: 800;
}

.d2l-manual-entry .d2l-studio-grid {
  margin-top: 10px;
}

.d2l-studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.d2l-studio-field-card {
  padding: 12px;
  background: #f8faf8;
  border: 1px solid #dce8dc;
  border-radius: 8px;
}

.d2l-studio-field-card h3 {
  margin: 0 0 8px;
  color: #1f2933;
  font-size: 15px;
}

.d2l-studio input,
.d2l-studio textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cfd8d3;
  border-radius: 7px;
  box-sizing: border-box;
  color: #111827;
  font: inherit;
  background: #fff;
}

.d2l-studio input:focus,
.d2l-studio textarea:focus {
  border-color: #2e7d32;
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.d2l-studio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.d2l-studio-chips button {
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #cfd8d3;
  border-radius: 6px;
  color: #1f2933;
  cursor: pointer;
  font-size: 13px;
}

.d2l-studio-chips button:hover {
  background: #e8f5e9;
  border-color: #2e7d32;
}

.d2l-studio-label {
  display: block;
  margin: 12px 0 6px;
  color: #1f2933;
  font-size: 14px;
  font-weight: 700;
}

.d2l-note-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.d2l-note-label-row .d2l-studio-label {
  margin: 0 0 6px;
}

.d2l-note-voice-btn {
  min-height: 34px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #cfd8d3;
  border-radius: 999px;
  color: #1f2933;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.d2l-note-voice-btn.is-listening {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.d2l-note-voice-btn:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.d2l-note-voice-status {
  min-height: 18px;
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.d2l-day-note-date-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  margin: 6px 0 12px;
  padding: 10px;
  background: #f7faf9;
  border: 1px solid #dce8dc;
  border-radius: 8px;
}

.d2l-day-note-date-row span {
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.d2l-day-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.d2l-day-note-grid label {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #fbfdfb;
  border: 1px solid #dce8dc;
  border-radius: 8px;
}

.d2l-day-note-grid label:nth-child(2),
.d2l-day-note-grid label:nth-child(4),
.d2l-day-note-grid label:nth-child(6),
.d2l-day-note-grid label:nth-child(7) {
  background: #fffdf5;
  border-color: #eadfb9;
}

.d2l-day-note-grid span {
  color: #1f2933;
  font-size: 14px;
  font-weight: 900;
}

.d2l-day-note-grid textarea {
  min-height: 78px;
  resize: vertical;
}

.d2l-recipe-hints {
  margin: 8px 0 0;
  padding: 10px;
  background: #f7faf9;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

.d2l-recipe-hints p {
  margin: 0 0 6px;
}

.d2l-recipe-hints p:last-child {
  margin-bottom: 0;
}

.d2l-recipe-hints ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.d2l-buddy-package {
  margin: 12px 0;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  line-height: 1.45;
}

.d2l-buddy-package p {
  margin: 0 0 8px;
}

.d2l-buddy-package ul,
.d2l-buddy-package ol {
  margin: 6px 0 10px 20px;
  padding: 0;
}

.d2l-buddy-feedback {
  margin: 12px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.d2l-buddy-feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.d2l-buddy-feedback-overview {
  margin-top: 10px;
  color: #4b5563;
  font-size: 14px;
}

.d2l-buddy-feedback-item {
  padding: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
}

.d2l-buddy-feedback-item p {
  margin: 0 0 6px;
}

.d2l-meal-photo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}

.d2l-meal-photo-row .d2l-studio-btn {
  min-height: 36px;
  padding: 8px 12px;
}

#d2l-meal-photo-summary {
  color: #6b7280;
  font-size: 13px;
}

.d2l-studio-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.d2l-studio-btn {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.d2l-studio-btn-primary {
  background: #2e7d32;
  color: #fff;
}

.d2l-studio-btn-primary:hover:not(:disabled) {
  background: #256b29;
}

.d2l-studio-btn-secondary {
  background: #fff;
  border-color: #cfd8d3;
  color: #1f2933;
}

.d2l-studio-btn-secondary:hover:not(:disabled) {
  background: #f3f7f3;
}

.d2l-studio-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.d2l-studio-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #4b5563;
  font-size: 13px;
}

.d2l-codex-start-panel {
  border-color: #cfe3d0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.d2l-codex-assistant {
  margin-bottom: 12px;
  padding: 14px;
  background: #fbfdfb;
  border: 1px solid #dce8dc;
  border-radius: 10px;
}

.d2l-codex-question {
  margin: 0 0 10px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
}

.d2l-codex-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.d2l-codex-choice {
  --choice-bg: #fff;
  --choice-border: #cfd8d3;
  --choice-color: #1f2933;
  min-height: 48px;
  padding: 10px 13px;
  background: var(--choice-bg);
  border: 1px solid var(--choice-border);
  border-left-width: 5px;
  border-radius: 9px;
  color: var(--choice-color);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.d2l-codex-choice[data-d2l-codex-action="day"] {
  --choice-bg: var(--d2l-green-soft);
  --choice-border: #9dcf9f;
  --choice-color: #225b26;
}

.d2l-codex-choice[data-d2l-codex-action="photo"] {
  --choice-bg: var(--d2l-blue-soft);
  --choice-border: #9bc7dd;
  --choice-color: #235779;
}

.d2l-codex-choice[data-d2l-codex-action="note"] {
  --choice-bg: var(--d2l-gold-soft);
  --choice-border: #e0c66c;
  --choice-color: #6f551b;
}

.d2l-codex-choice[data-d2l-codex-action="recipes"] {
  --choice-bg: var(--d2l-teal-soft);
  --choice-border: #8ccac4;
  --choice-color: #125b55;
}

.d2l-codex-choice[data-d2l-codex-action="share"] {
  --choice-bg: var(--d2l-rose-soft);
  --choice-border: #e1a0af;
  --choice-color: #843349;
  grid-column: 1 / -1;
}

.d2l-codex-choice:hover {
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.d2l-codex-choice.is-active {
  background: var(--choice-color);
  border-color: var(--choice-color);
  color: #fff;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.12);
}

.d2l-card-preview,
.d2l-codex-output {
  min-height: 84px;
  padding: 14px;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  border: 1px solid #e2ebe4;
  border-left: 5px solid #bddfc0;
  border-radius: 9px;
}

.d2l-card-preview p,
.d2l-codex-output p {
  margin: 0 0 8px;
  color: #374151;
  line-height: 1.45;
}

.d2l-meal-card-photo {
  width: 100%;
  max-height: 280px;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef2ee;
}

.d2l-meal-card-photo img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.d2l-card-preview p:last-child,
.d2l-codex-output p:last-child {
  margin-bottom: 0;
}

.d2l-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.d2l-card-metric {
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
}

.d2l-card-metric strong {
  display: block;
  margin-bottom: 2px;
  color: #111827;
  font-size: 18px;
}

.d2l-card-metric span {
  color: #6b7280;
  font-size: 12px;
}

.d2l-card-note {
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.d2l-codex-output ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.d2l-codex-output li {
  margin-bottom: 6px;
}

.d2l-codex-progress {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.d2l-codex-progress-step {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.d2l-codex-progress-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: 0 0 0 4px #f1f5f9;
}

.d2l-codex-progress-step strong {
  display: block;
  color: #1f2937;
  font-size: 14px;
}

.d2l-codex-progress-step p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
}

.d2l-codex-progress-step.is-done {
  border-color: #cde8d1;
  background: #fbfefb;
}

.d2l-codex-progress-step.is-done .d2l-codex-progress-dot {
  background: #2f7d32;
  box-shadow: 0 0 0 4px #e6f4e8;
}

.d2l-codex-progress-step.is-active {
  border-color: #b8d9f5;
  background: #f8fbff;
}

.d2l-codex-progress-step.is-active .d2l-codex-progress-dot {
  background: #2563eb;
  box-shadow: 0 0 0 4px #dbeafe;
}

.d2l-codex-progress-step.is-failed {
  border-color: #f0c9c9;
  background: #fffafa;
}

.d2l-codex-progress-step.is-failed .d2l-codex-progress-dot {
  background: #b42318;
  box-shadow: 0 0 0 4px #fee4e2;
}

.d2l-cards-overview {
  margin-top: 12px;
}

.d2l-pi-view-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #cfe4d4;
  border-radius: 8px;
  background: #f7fbf7;
  color: #2f5f33;
  font-size: 14px;
  font-weight: 700;
}

.d2l-admin-tools {
  margin-top: 10px;
  color: #6b7280;
  font-size: 13px;
}

.d2l-admin-tools summary {
  cursor: pointer;
  font-weight: 700;
}

.d2l-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.d2l-recipe-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
}

.d2l-recipe-maker {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  background: #fbfdfb;
  border: 1px solid #dce8dc;
  border-radius: 8px;
}

.d2l-recipe-maker[hidden] {
  display: none;
}

.d2l-recipe-maker .d2l-studio-actions {
  margin-top: 6px;
}

.d2l-maker-voice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.d2l-maker-voice-row select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfd8d3;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font: inherit;
}

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

.d2l-maker-field-head .d2l-studio-label {
  margin: 0;
}

.d2l-recipe-filter-row input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfd8d3;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
}

#d2l-recipe-library-status {
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
}

.d2l-recipe-title {
  margin: 0 0 14px;
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.d2l-recipe-meta {
  margin: 0 0 8px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.35;
}

.d2l-recipe-meta strong {
  color: #1f2933;
  font-weight: 800;
}

.d2l-recipe-rating {
  margin: 12px 0 16px;
  color: #f59e0b;
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1;
}

.d2l-history-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.d2l-recipes-grid .d2l-history-card {
  display: grid;
  grid-template-columns: minmax(260px, 48%) minmax(260px, 1fr);
  min-height: 320px;
  align-items: start;
  gap: 0;
  background: #fff;
  border-color: #dce8dc;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.d2l-history-card-photo {
  position: relative;
  height: 150px;
  background: #eef2ee;
  overflow: hidden;
}

.d2l-history-card-photo-header {
  height: 190px;
  border-bottom: 1px solid #e5e7eb;
}

.d2l-recipes-grid .d2l-history-card-photo {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.d2l-history-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.d2l-history-card-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-weight: 800;
}

.d2l-history-card-body {
  padding: 12px;
}

.d2l-recipes-grid .d2l-history-card-body {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  margin: 18px;
  padding: 22px;
  background: #fbfdfb;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.d2l-history-card-date {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.d2l-history-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.d2l-history-chip {
  padding: 5px 7px;
  background: #f3f7f3;
  border: 1px solid #dce8dc;
  border-radius: 999px;
  color: #1f2933;
  font-size: 12px;
}

.d2l-history-card-text {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

.d2l-history-card-note {
  margin: 10px 0 0;
  padding: 10px;
  background: #f7faf9;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  color: #374151;
  font-size: 13px;
  line-height: 1.4;
}

.d2l-recipes-grid .d2l-history-card-text {
  margin: 6px 0 0;
  padding: 12px;
  background: #f7faf9;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  font-size: 14px;
  white-space: pre-line;
}

.d2l-recipe-text {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
}

.d2l-recipe-text[hidden] {
  display: none;
}

.d2l-recipe-text-block {
  overflow: hidden;
  background: #fbfdfb;
  border: 1px solid #dce8dc;
  border-radius: 8px;
}

.d2l-recipe-text-block h4 {
  margin: 0;
  padding: 10px 12px;
  background: #e8f3e8;
  color: #1f2933;
  font-size: 15px;
  line-height: 1.25;
}

.d2l-recipe-text-block p {
  max-height: 320px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.d2l-recipe-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.d2l-recipe-action {
  min-width: 128px;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.d2l-recipe-action-primary {
  background: #2e7d32;
}

.d2l-recipe-action-primary:hover {
  background: #256b29;
}

.d2l-recipe-action-secondary {
  background: #607d3b;
}

.d2l-recipe-action-secondary:hover {
  background: #4f6a31;
}

.d2l-recipe-action-danger {
  background: #b0303a;
}

.d2l-recipe-action-danger:hover {
  background: #942833;
}

.d2l-recipe-clip {
  margin-top: 14px;
  padding: 14px;
  background: #f7faf9;
  border: 1px solid #dce8dc;
  border-radius: 8px;
}

.d2l-recipe-clip[hidden] {
  display: none;
}

.d2l-recipe-clip-screen {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdfb 0%, #eef7ee 100%);
  border: 1px solid #dce8dc;
  border-radius: 8px;
}

.d2l-recipe-clip-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  align-items: center;
  justify-items: center;
  padding: 18px;
  text-align: center;
  opacity: 0;
  transform: translateX(16px);
}

.d2l-recipe-clip.is-playing .d2l-recipe-clip-scene {
  animation: d2lRecipeScene var(--d2l-clip-duration) ease-in-out infinite;
  animation-delay: calc(var(--d2l-step) * 2.3s);
}

.d2l-recipe-clip-scene span {
  margin: 8px 0 4px;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.d2l-recipe-clip-scene strong {
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
}

.d2l-recipe-clip-scene p {
  max-width: 360px;
  margin: 8px 0 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.35;
}

.d2l-recipe-clip-visual {
  position: relative;
  width: min(220px, 74%);
  height: 120px;
}

.d2l-recipe-clip-visual i {
  position: absolute;
  display: block;
}

.d2l-clip-visual-cut i:nth-child(1) {
  left: 28px;
  bottom: 22px;
  width: 150px;
  height: 22px;
  background: #d6a565;
  border-radius: 8px;
  box-shadow: 0 28px 0 #d6a565;
}

.d2l-clip-visual-cut i:nth-child(2) {
  right: 30px;
  top: 26px;
  width: 92px;
  height: 12px;
  background: #94a3b8;
  border-radius: 999px;
  transform: rotate(-22deg);
}

.d2l-recipe-clip.is-playing .d2l-clip-visual-cut i:nth-child(2) {
  animation: d2lKnife 1.1s ease-in-out infinite;
}

.d2l-clip-visual-pan i:nth-child(1),
.d2l-clip-visual-sauce i:nth-child(1) {
  left: 22px;
  bottom: 16px;
  width: 170px;
  height: 54px;
  background: #374151;
  border-radius: 0 0 56px 56px;
}

.d2l-clip-visual-pan i:nth-child(2),
.d2l-clip-visual-sauce i:nth-child(2) {
  left: 54px;
  bottom: 50px;
  width: 34px;
  height: 24px;
  background: #d6a565;
  border-radius: 8px;
  box-shadow: 42px 4px 0 #d6a565, 84px 0 0 #d6a565;
}

.d2l-recipe-clip.is-playing .d2l-clip-visual-pan i:nth-child(2) {
  animation: d2lPanToss 1.2s ease-in-out infinite;
}

.d2l-clip-visual-sauce i:nth-child(3) {
  left: 80px;
  top: 20px;
  width: 64px;
  height: 64px;
  border: 10px solid #b45309;
  border-top-color: transparent;
  border-radius: 50%;
}

.d2l-recipe-clip.is-playing .d2l-clip-visual-sauce i:nth-child(3) {
  animation: d2lSaucePour 1.4s ease-in-out infinite;
}

.d2l-clip-visual-greens i:nth-child(1) {
  left: 70px;
  bottom: 24px;
  width: 82px;
  height: 60px;
  background: #2f855a;
  border-radius: 60% 40% 55% 45%;
  box-shadow: -32px 8px 0 #68a357, 36px 10px 0 #7aa95c;
}

.d2l-clip-visual-greens i:nth-child(2) {
  left: 96px;
  bottom: 70px;
  width: 52px;
  height: 22px;
  background: #f8fafc;
  border-radius: 50%;
  box-shadow: -20px 8px 0 #f8fafc, 18px 10px 0 #f8fafc;
}

.d2l-recipe-clip.is-playing .d2l-clip-visual-greens i:nth-child(2) {
  animation: d2lCoconut 1.2s ease-in-out infinite;
}

.d2l-clip-visual-plate i:nth-child(1),
.d2l-clip-visual-card i:nth-child(1) {
  left: 36px;
  bottom: 18px;
  width: 150px;
  height: 76px;
  background: #fff;
  border: 5px solid #dce8dc;
  border-radius: 50%;
}

.d2l-clip-visual-plate i:nth-child(2) {
  left: 76px;
  bottom: 54px;
  width: 44px;
  height: 32px;
  background: #f8fafc;
  border-radius: 50%;
  box-shadow: 42px 4px 0 #d6a565, 18px 22px 0 #2f855a;
}

.d2l-clip-visual-card i:nth-child(2) {
  left: 62px;
  bottom: 38px;
  width: 100px;
  height: 58px;
  background: #fff;
  border: 2px solid #2e7d32;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.16);
}

.d2l-recipe-clip-stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.d2l-recipe-clip-step {
  min-height: 150px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  opacity: 0.42;
  transform: translateY(6px);
}

.d2l-recipe-clip.is-playing .d2l-recipe-clip-step {
  animation: d2lRecipeClipStep 8s ease-in-out infinite;
  animation-delay: calc(var(--d2l-step) * 1.35s);
}

.d2l-recipe-clip-step span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: #2e7d32;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
}

.d2l-recipe-clip-step strong {
  display: block;
  margin-bottom: 7px;
  color: #111827;
  font-size: 15px;
}

.d2l-recipe-clip-step p,
.d2l-recipe-clip-note {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.35;
}

.d2l-recipe-clip-note {
  margin-top: 10px;
}

@keyframes d2lRecipeClipStep {
  0%, 100% {
    opacity: 0.42;
    transform: translateY(6px);
  }
  12%, 28% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(46, 125, 50, 0.16);
  }
}

@keyframes d2lRecipeScene {
  0%, 100% {
    opacity: 0;
    transform: translateX(16px);
  }
  5%, 17% {
    opacity: 1;
    transform: translateX(0);
  }
  22% {
    opacity: 0;
    transform: translateX(-16px);
  }
}

@keyframes d2lKnife {
  0%, 100% { transform: translateY(-8px) rotate(-22deg); }
  50% { transform: translateY(12px) rotate(-22deg); }
}

@keyframes d2lPanToss {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes d2lSaucePour {
  0%, 100% { transform: rotate(-20deg) translateY(-4px); opacity: 0.65; }
  50% { transform: rotate(18deg) translateY(8px); opacity: 1; }
}

@keyframes d2lCoconut {
  0%, 100% { transform: translateY(-6px); opacity: 0.65; }
  50% { transform: translateY(12px); opacity: 1; }
}

.d2l-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.d2l-modal.is-open {
  display: flex;
}

.d2l-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.52);
}

.d2l-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.28);
}

.d2l-recipe-modal-card {
  width: min(820px, 100%);
  padding: 18px;
}

.d2l-recipe-modal-card .d2l-recipe-clip {
  margin-top: 0;
  margin-bottom: 14px;
}

.d2l-recipe-modal-card .d2l-recipe-clip-screen {
  min-height: 300px;
}

.d2l-recipe-modal-card .d2l-recipe-clip-note {
  display: none;
}

.d2l-recipe-modal-sections {
  display: grid;
  gap: 10px;
}

.d2l-recipe-modal-section {
  overflow: hidden;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  background: #fff;
}

.d2l-recipe-modal-section-toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f3f8f3;
  border: 0;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  text-align: left;
}

.d2l-recipe-modal-section-toggle:hover {
  background: #e8f3e8;
}

.d2l-recipe-modal-section-toggle strong {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #2e7d32;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.d2l-recipe-modal-section-body {
  padding: 14px 16px;
  background: #fff;
}

.d2l-recipe-modal-section-body p {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  color: #374151;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
}

.d2l-share-panel {
  display: grid;
  gap: 10px;
}

.d2l-share-panel p {
  max-height: none;
  margin: 0;
  overflow: visible;
}

.d2l-share-panel input,
.d2l-share-panel select,
.d2l-share-panel textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cfd8d3;
  border-radius: 7px;
  background: #fff;
  box-sizing: border-box;
  color: #111827;
  font: inherit;
}

.d2l-share-panel .d2l-studio-btn {
  justify-self: start;
}

.d2l-share-notice {
  min-height: 20px;
  margin: 0;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 800;
}

.d2l-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.d2l-modal-head h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.d2l-photo-hint {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}

.d2l-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.d2l-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.d2l-camera-stage {
  min-height: 230px;
  margin: 12px 0;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.d2l-camera-stage video {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.d2l-camera-stage span {
  padding: 16px;
  color: #e5e7eb;
}

.d2l-camera-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.d2l-photo-picker {
  display: block;
  margin: 0;
}

.d2l-photo-pick-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  color: #1f2933;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.d2l-photo-pick-button:hover {
  background: #f3f7f3;
}

.d2l-meal-photo-preview {
  min-height: 210px;
  margin: 12px 0;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  background: #f7faf9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #6b7280;
}

.d2l-meal-photo-preview img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

@media (max-width: 680px) {
  .d2l-studio {
    padding: 12px;
  }

  .d2l-studio-grid,
  .d2l-target-grid,
  .d2l-buddy-feedback-grid,
  .d2l-card-list,
  .d2l-cards-grid,
  .d2l-recipes-grid {
    grid-template-columns: 1fr;
  }

  .d2l-studio-actions {
    justify-content: stretch;
  }

  .d2l-codex-choices {
    grid-template-columns: 1fr;
  }

  .d2l-codex-choice[data-d2l-codex-action="share"] {
    grid-column: auto;
  }

  .d2l-studio-btn {
    flex: 1 1 100%;
  }

  .d2l-meal-photo-row {
    align-items: stretch;
    flex-direction: column;
  }

  .d2l-made-host {
    align-items: flex-start;
  }

  .d2l-made-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .d2l-camera-actions {
    grid-template-columns: 1fr;
  }

  .d2l-recipe-filter-row {
    grid-template-columns: 1fr;
  }

  .d2l-maker-voice-row {
    grid-template-columns: 1fr;
  }

  .d2l-maker-field-head {
    align-items: stretch;
    flex-direction: column;
  }

  .d2l-measurement-date-box {
    grid-template-columns: 1fr;
  }

  .d2l-day-note-date-row,
  .d2l-day-note-grid {
    grid-template-columns: 1fr;
  }

  #d2l-recipe-library-status {
    white-space: normal;
  }

  .d2l-recipes-grid .d2l-history-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .d2l-recipes-grid .d2l-history-card-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .d2l-recipes-grid .d2l-history-card-body {
    min-height: 0;
    margin: 12px;
    padding: 16px;
  }

  .d2l-recipe-title {
    font-size: 20px;
  }

  .d2l-recipe-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d2l-recipe-action {
    min-width: 0;
    width: 100%;
  }

  .d2l-recipe-clip-stage {
    grid-template-columns: 1fr;
  }

  .d2l-recipe-clip-screen {
    min-height: 300px;
  }

  .d2l-recipe-clip-scene strong {
    font-size: 22px;
  }

  .d2l-recipe-clip-scene p {
    font-size: 15px;
  }

  .d2l-recipe-clip-step {
    min-height: 0;
  }

  .d2l-recipe-modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .d2l-recipe-modal-card .d2l-recipe-clip-screen {
    min-height: 280px;
  }

  .d2l-recipe-modal-section-toggle {
    min-height: 52px;
    font-size: 16px;
  }
}

.d2l-meal-ratings-pageinfo {
  margin: 0 0 12px;
  color: #4b5563;
  font-size: 14px;
}

.d2l-meal-ratings-grid .d2l-meal-rating-card {
  margin: 0;
}

.d2l-meal-ratings-grid .d2l-history-card-photo.is-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.d2l-meal-ratings-grid .d2l-history-card-photo.is-missing::after {
  content: "Foto op Pi bekijken";
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.d2l-meal-ratings-grid .d2l-history-card-photo.is-missing img {
  display: none;
}

.d2l-meal-rating-stars {
  display: inline-block;
  margin-top: 8px;
  color: #c58a00;
  letter-spacing: 1px;
  font-size: 18px;
}

.d2l-meal-health-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  color: #1f2937;
  font-size: 13px;
}

.d2l-meal-health-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.d2l-meal-ratings-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.d2l-meal-ratings-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.d2l-meal-ratings-page-links a,
.d2l-meal-ratings-page-current {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 0 8px;
  text-decoration: none;
  color: #1f2937;
  background: #fff;
}

.d2l-meal-ratings-page-current {
  background: #1f5e46;
  border-color: #1f5e46;
  color: #fff;
  font-weight: 600;
}

.d2l-meal-ratings-hint {
  margin-top: 10px;
  color: #6b7280;
  font-size: 13px;
}
