.spark-card.pending .spark-head strong {
  display: block;
  margin: 0;
  font-size: 15px;
  letter-spacing: 0;
}

.goal-portfolio {
  margin: 22px 0 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.goal-portfolio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.goal-portfolio-head h3 {
  margin: 5px 0 0;
  font-size: 15px;
}

.goal-portfolio-head > span {
  color: var(--muted);
  font-size: 11px;
}

.goal-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.goal-switch-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.goal-switch-card:hover {
  border-color: var(--blue-line);
  transform: translateY(-1px);
}

.goal-switch-card.active {
  border-color: var(--blue-line);
  background: var(--blue-pale);
  box-shadow: inset 3px 0 0 var(--blue);
}

.goal-switch-card span,
.goal-switch-card b,
.goal-switch-card small {
  display: block;
}

.goal-switch-card span {
  color: var(--blue-ink);
  font-size: 10px;
}

.goal-switch-card b {
  overflow: hidden;
  margin-top: 5px;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-switch-card small {
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-switch-card.empty {
  grid-column: 1 / -1;
  border-style: dashed;
}

.goal-contract-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.goal-contract .delete-goal-trigger {
  color: var(--danger-ink);
}

.goal-contract .delete-goal-trigger:hover {
  color: var(--danger-ink);
}

.delete-goal-modal {
  width: min(440px, 100%);
}

.delete-goal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  border-radius: 14px;
  background: var(--danger-pale);
  color: var(--danger-ink);
  font-size: 27px;
  font-weight: 600;
}

.delete-goal-summary {
  margin: 18px 0 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  text-align: left;
}

.delete-goal-summary b,
.delete-goal-summary span {
  display: block;
}

.delete-goal-summary b {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.delete-goal-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.delete-goal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.delete-goal-actions button {
  width: 100%;
  height: 41px;
}

.danger-button {
  border: 0;
  border-radius: 9px;
  background: var(--danger);
  color: var(--on-accent);
  font: 600 11px inherit;
  cursor: pointer;
}

.danger-button:hover {
  background: var(--danger);
}

.danger-button:disabled {
  cursor: wait;
  opacity: .65;
}

.today-focus-area {
  position: relative;
  isolation: isolate;
}

.today-goals {
  margin-bottom: 32px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 72.0%, transparent);
}

.today-goals-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.today-goals-head h2 {
  margin: 0;
  font-size: 15px;
}

.today-goals-head > span {
  color: var(--muted);
  font-size: 10px;
}

.today-goal-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 9px;
}

.today-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.compact-task-content {
  align-items: center;
  margin: 18px 0 16px;
}

.today-goal-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 14px 24px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.today-goal-item[data-today-goal-id] {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.today-goal-item:hover {
  border-color: var(--blue-line);
  transform: translateY(-1px);
}

.today-goal-item.active {
  border-color: var(--blue-line);
  background: var(--blue-pale);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper-edge) 80.0%, transparent), 0 3px 0 var(--paper-edge), 0 6px 14px color-mix(in srgb, var(--shadow-color) 6.27%, transparent);
}

.today-goal-item:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
}

.today-goal-item > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}

.today-goal-item.done > i {
  background: var(--green-pale);
  color: var(--green);
}

.goal-type-icon {
  display: block;
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.task-icon .goal-type-icon {
  width: 26px;
  height: 26px;
}

.today-goal-item span,
.today-goal-item small,
.today-goal-item b {
  display: block;
  min-width: 0;
}

.today-goal-item small {
  color: var(--blue-ink);
  font-size: 8px;
}

.today-goal-item b {
  overflow: hidden;
  margin-top: 2px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-bottom > span:empty {
  display: none;
}

.goal-card:has(> .goal-bottom.hidden) > .progress {
  margin-bottom: 0;
}

body.focus .today-goals {
  opacity: .08;
  pointer-events: none;
}

.goal-record-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--shadow-color) 2.5%, transparent);
}

.goal-record-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.goal-record-stats > div {
  padding: 14px;
  border-radius: 0;
  background: transparent;
}

.goal-record-stats > div + div {
  border-left: 1px solid var(--line);
}

.goal-record-stats strong,
.goal-record-stats span {
  display: block;
}

.goal-record-stats strong {
  color: var(--blue-deep);
  font-size: 22px;
}

.goal-record-stats span {
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.goal-record-heading {
  position: relative;
}

.goal-record-heading > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.goal-record-help {
  flex: none;
}

.goal-record-help summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.goal-record-help summary::-webkit-details-marker { display: none; }
.goal-record-help summary:hover,
.goal-record-help[open] summary { background: var(--blue-pale); color: var(--blue-deep); }
.goal-record-help summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.goal-record-help svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.goal-record-help .info-dot { fill: currentColor; stroke: none; }

.goal-record-help-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 12;
  width: min(360px, 100%);
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--shadow-color) 12.0%, transparent);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.goal-record-help-content dl { margin: 0; }
.goal-record-help.opens-up .goal-record-help-content { top: auto; bottom: calc(100% + 8px); }
.goal-record-help-content dt { color: var(--ink); font-weight: 700; }
.goal-record-help-content dt:not(:first-child) { margin-top: 10px; }
.goal-record-help-content dd { margin: 2px 0 0; }
.goal-record-help-content p { margin: 12px 0 0; }
.goal-record-help-content dl + p { padding-top: 12px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .today-goals { margin-bottom: 16px; }
}

.completion-feeling {
  margin: 18px 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-align: left;
}

.completion-feeling > p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.completion-feeling > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.completion-faces {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.completion-faces button {
  display: flex;
  width: 100%;
  height: 64px;
  min-width: 0;
  padding: 10px 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  font-size: 19px;
}

.completion-faces button small {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: inherit;
  font: 600 11px/1.2 "Noto Sans SC", system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-guidance {
  margin: -3px 0 14px 58px;
  padding: 11px 13px;
  border-left: 3px solid var(--blue-line);
  border-radius: 0 10px 10px 0;
  background: var(--paper);
}

.task-guidance span {
  color: var(--blue-ink);
  font-size: 9px;
  font-weight: 700;
}

.task-guidance p {
  margin: 4px 0 0;
  color: var(--blue-ink);
  font-size: 11px;
  line-height: 1.65;
}

.learning-resources {
  margin: 0 0 14px 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  text-align: left;
}

.learning-resources-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.learning-resources-head b {
  color: var(--blue-ink);
  font-size: 10px;
}

.learning-resources-head span {
  color: var(--muted);
  font-size: 9px;
}

.learning-resource-links {
  display: grid;
  gap: 7px;
}

.learning-resource-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.learning-resource-links a:hover {
  background: var(--blue-pale);
}

.learning-resource-links i {
  display: grid;
  flex: none;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-style: normal;
}

.learning-resource-links span,
.learning-resource-links b,
.learning-resource-links em,
.learning-resource-links small {
  display: block;
}

.learning-resource-links b {
  font-size: 10px;
}

.learning-resource-links em {
  margin-top: 2px;
  color: var(--blue-deep);
  font-size: 8px;
  font-style: normal;
}

.learning-resource-links small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

#feedbackResourceSuggestions .learning-resources {
  margin: 10px 0 0;
}

.completion-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 30px);
  max-height: calc(100dvh - 30px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px;
  border: 1px solid var(--line);
  text-align: left;
}

.completion-modal h2 {
  margin: 0;
  padding-right: 24px;
  font-size: 19px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.completion-modal .primary-button,
.completion-modal .secondary-button {
  height: auto;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.completion-modal button:focus-visible,
.completion-modal summary:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; }

.completion-question-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.completion-question {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.completion-question > b {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
}

.completion-question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.completion-question-options button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--blue-ink);
  font: 11px inherit;
  cursor: pointer;
}

.completion-question-options button.selected {
  border-color: var(--blue-line);
  background: var(--blue-pale);
  color: var(--blue-deep);
  font-weight: 700;
}

.completion-answer-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.completion-answer-input input {
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: 12px inherit;
}

.completion-answer-input span {
  flex: none;
  color: var(--muted);
  font-size: 11px;
}

.task-feeling { margin-bottom: 10px; }
.task-feeling .completion-faces button { min-height: 76px; height: auto; gap: 5px; }
.task-feeling .completion-faces button > span { flex-shrink: 0; font-size: 21px; line-height: 1; }
.task-feeling .completion-faces button small { flex-shrink: 0; min-height: 28px; margin: 0; line-height: 14px; white-space: normal; overflow: visible; text-overflow: clip; }

.feedback-more {
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--blue-ink);
  font: 600 11px inherit;
  text-align: left;
  cursor: pointer;
}

.feedback-details {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.feedback-details label {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.feedback-details textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 92px;
  margin-top: 8px;
  padding: 10px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: 12px/1.6 inherit;
}

.feedback-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.feedback-upload b,
.feedback-upload small {
  display: block;
}

.feedback-upload b {
  font-size: 11px;
}

.feedback-upload small {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.feedback-loading {
  padding: 14px;
  border-radius: 11px;
  background: var(--paper);
  color: var(--blue-ink);
  font-size: 11px;
}

.feedback-loading span {
  display: inline-block;
  margin-right: 5px;
  color: var(--yellow);
  animation: pulse 1s ease infinite alternate;
}

.feedback-analysis-result { text-align: left; }

.feedback-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-right: 22px;
}

.feedback-result-head h2 { padding: 0; }

.feedback-signal {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.feedback-next {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--blue-line);
  border-radius: 0 12px 12px 0;
  background: var(--surface-soft);
  overflow-wrap: anywhere;
}

.feedback-next > b { display: block; font-size: 16px; font-weight: 600; line-height: 1.75; }
.feedback-reason { margin-top: 8px; }
.feedback-reason summary { width: fit-content; padding: 5px 0; color: var(--muted); font-size: 11px; cursor: pointer; }
.feedback-reason p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.feedback-result-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 20px; }
.feedback-result-actions:has(> .primary-button.hidden) { grid-template-columns: minmax(0, 1fr); }
.feedback-result-actions button:disabled { cursor: wait; opacity: .65; }
#reviseTaskFeedback { min-height: 32px; margin: 10px 0 0; padding: 4px 0; text-align: left; }
#reviseTaskFeedback:disabled { cursor: wait; opacity: .65; }

@media (max-width: 420px) {
  .completion-modal { padding: 25px 20px 20px; }
  .feedback-result-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 650px) {
  .goal-portfolio { padding: 16px; }
  .goal-switcher { grid-template-columns: 1fr; }
  .today-goals { padding: 13px; }
  .today-goal-queue { grid-template-columns: 1fr; }
  .goal-record-card { padding: 13px; }
  .goal-record-stats { gap: 7px; }
  .goal-record-stats > div { padding: 12px 9px; min-width: 0; }
  .completion-question-options { display: grid; grid-template-columns: 1fr 1fr; }
  .task-guidance { margin-left: 0; }
  .learning-resources { margin-left: 0; }
  .goal-contract-actions { margin-top: 12px; }
}

/* Shared task layout; appearance.css owns the paper, icon and primary-button surfaces. */
.today-goal-item:active { transform: translateY(1px); }
#todayTaskCard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  align-items: start;
  gap: 17px 30px;
  padding: 22px 25px;
  border-color: var(--line);
}
#todayTaskCard > .card-top { grid-column: 1 / -1; }
#todayTaskCard:not(:has(> .task-actions)) { grid-template-columns: minmax(0, 1fr); }
.task-body, .task-actions { min-width: 0; }
#todayTaskCard .task-content { align-items: flex-start; margin: 0 0 15px; }
#todayTaskCard .task-content:last-child { margin-bottom: 0; }
#todayTaskCard .task-content > div:last-child { min-width: 0; }
#todayTaskCard h2 { line-height: 1.55; overflow-wrap: anywhere; text-wrap: balance; }
#todayTaskCard .task-content p { line-height: 1.7; }
#todayTaskCard .task-copy h2 { margin: 0; }
#todayTaskCard .task-description { margin: 8px 0 0; font-size: 13px; color: var(--muted); white-space: pre-wrap; }
#todayTaskCard .task-copy:not(.expanded) h2,
#todayTaskCard .task-copy:not(.expanded) .task-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
#todayTaskCard .task-copy:not(.expanded) .task-description { -webkit-line-clamp: 3; }
.task-copy-toggle {
  display: block;
  margin: 5px 0 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--blue-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.task-copy-toggle:hover { text-decoration: underline; }
#todayTaskCard .support-plan-details { margin: 8px 0 0 58px; font-size: 12px; }
#todayTaskCard .task-guidance { padding: 0; border: 0; border-radius: 0; background: transparent; }
#todayTaskCard .task-guidance p { font-size: 12px; font-weight: 400; }
#todayTaskCard details.support-trend { padding: 0; }
.task-materials { margin: 10px 0 0 58px; min-width: 0; }
.task-material-link { display: flex; align-items: center; gap: 7px; min-height: 27px; color: var(--blue-ink); text-decoration: none; font-size: 12px; }
.task-material-link b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.task-material-link:hover b { text-decoration: underline; }
#todayTaskCard .task-material-details { margin: 4px 0 0; }
.task-material-details > div { margin-top: 10px; }
#todayTaskCard .task-material-details p { margin: 3px 0 0; }
.task-copy-toggle:focus-visible, .task-material-link:focus-visible,
#todayTaskCard summary:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; border-radius: 3px; }

#todayTaskCard .task-course {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}
#todayTaskCard .task-icon {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}
#todayTaskCard .success-icon::after {
  content: "✦";
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--gold-pale);
  color: var(--gold-ink);
  font-size: 10px;
}
#todayTaskCard .evidence-strip { margin-bottom: 12px; }
#todayTaskCard .task-body > :last-child { margin-bottom: 0; }
.task-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}
.task-actions > button { white-space: normal; line-height: 1.6; }
#todayTaskCard .task-actions .primary-button,
#todayTaskCard .task-actions .secondary-button {
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--line) 18.82%, transparent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  transition: transform .15s, box-shadow .15s;
}
#todayTaskCard > .task-actions {
  justify-self: end;
  width: 144px;
  max-width: 100%;
}
#todayTaskCard .task-actions .secondary-button { background: var(--paper); border-color: var(--line); box-shadow: inset 0 1px 0 var(--paper-edge); }
#todayTaskCard .task-actions .tiny-link,
#todayTaskCard .task-actions .task-feedback-link { margin: 0; padding: 4px 0; width: 100%; min-height: 30px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
#todayTaskCard .task-actions .tiny-link:hover { color: var(--blue-ink); text-decoration: underline; }
#todayTaskCard .task-day-status {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  color: var(--green-ink);
  font-size: 12px;
  line-height: 1.5;
}
#todayTaskCard .task-day-due { color: var(--blue-ink); }
#todayTaskCard .task-day-status > svg { flex: 0 0 18px; width: 18px; height: 18px; }
#todayTaskCard .task-feedback-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  justify-content: center;
  margin: 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  text-underline-offset: 3px;
}
#todayTaskCard .task-feedback-link:hover { color: var(--blue-ink); text-decoration: underline; }
#todayTaskCard .task-actions :focus-visible,
#todayTaskCard .task-feedback-link:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; }
.today-overview > .spark-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.spark-card .spark-head { justify-content: flex-start; gap: 15px; flex-wrap: wrap; }
.spark-card .spark-head p { margin: 0; font-size: 11px; }
.spark-card .spark-head strong { font-size: 23px; white-space: nowrap; }
.spark-card .spark-week { flex: 0 1 380px; margin: 0; gap: 9px; }
.spark-day { gap: 5px; }
@media (min-width: 901px) {
  #todayTaskCard .task-day-status { min-height: 36px; }
  #todayTaskCard .task-actions:not(:has(.task-day-status))::before { content: ""; height: 36px; }
}
@media (max-width: 1100px) {
  #todayTaskCard { gap: 16px 22px; }
}
@media (max-width: 900px) {
  #todayTaskCard { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  #todayTaskCard .support-plan-details, .task-materials { margin-left: 0; }
  #todayTaskCard > .task-actions { justify-self: center; width: min(100%, 400px); }
  .today-overview > .spark-card { gap: 16px; }
  .spark-card .spark-week { flex-basis: 310px; gap: 5px; }
}
@media (max-width: 650px) {
  #todayTaskCard { padding: 19px; }
  #todayTaskCard h2 { font-size: 18px; }
  .today-overview > .spark-card { flex-direction: column; align-items: stretch; gap: 12px; }
  .spark-card .spark-head { justify-content: space-between; }
  .spark-card .spark-week { flex-basis: auto; }
  .spark-card .spark-head strong { font-size: 21px; }
}

/* Planning preferences use the same quiet paper and blue selection as the rest of the app. */
.goal-priority-picker { min-width: 0; padding: 0; margin: 20px 0 0; border: 0; text-align: left; }
.goal-priority-picker legend { padding: 0; margin-bottom: 9px; font-size: 11px; font-weight: 600; line-height: 1.6; }
.goal-priority-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.goal-modal .goal-priority-options label { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 42px; margin: 0; padding: 9px 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); cursor: pointer; font-weight: 500; line-height: 1.5; }
.goal-modal .goal-priority-options label:has(input:checked) { background: var(--blue-pale); border-color: var(--blue-line); color: var(--blue-ink); }
.goal-modal .goal-priority-picker input[type="radio"] { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; padding: 0; accent-color: var(--blue); }
.goal-modal .goal-priority-picker input:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; }
.goal-modal .goal-priority-undecided { display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 36px; margin: 0; color: var(--muted); font-weight: 400; cursor: pointer; }
.goal-priority-secondary { position: relative; display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.goal-priority-help { display: flex; align-items: center; }
#goalPriorityHelpButton { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
#goalPriorityHelpButton:hover, #goalPriorityHelpButton[aria-expanded="true"] { background: var(--blue-pale); color: var(--blue-ink); }
#goalPriorityHelpButton:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 2px; }
#goalPriorityHelpButton svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
#goalPriorityHelpButton .info-dot { fill: currentColor; stroke: none; }
.goal-priority-picker #goalPriorityHint { position: absolute; z-index: 2; left: 0; bottom: calc(100% + 8px); width: min(320px, 100%); margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 6px 18px color-mix(in srgb, var(--shadow-color) 12%, transparent); color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
#goalPriorityHint::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 9px; }
.goal-priority-secondary.hint-below #goalPriorityHint { bottom: auto; top: calc(100% + 8px); }
.goal-priority-secondary.hint-below #goalPriorityHint::after { top: auto; bottom: 100%; }
.goal-priority-settings { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin-top: 13px; }
.goal-priority-settings label { color: var(--muted); font-size: 11px; }
.goal-priority-settings select { max-width: 100%; min-height: 34px; padding: 5px 28px 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; }
.goal-priority-settings select:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: 3px; }
.goal-priority-settings small { flex-basis: 100%; color: var(--muted); font-size: 11px; line-height: 1.6; }
#todayTaskCard .goal-flexible-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 360px) {
  .goal-priority-options { grid-template-columns: 1fr; gap: 6px; }
  .goal-modal .goal-priority-options label { justify-content: flex-start; padding: 9px 12px; }
}

/* A pending feedback request must not look ready to submit, including on hover. */
#analyzeTaskFeedback:disabled,
#analyzeTaskFeedback:disabled:hover {
  background: var(--surface-inset);
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: none;
  transform: none;
  opacity: 1;
  cursor: not-allowed;
}
