.dashboard-dessert {
  --dessert-accent: #d29b3f;
  --dessert-accent-soft: rgba(210, 155, 63, .12);
  position: relative;
  min-height: 82px;
}

.dashboard-dessert-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 82px;
  padding: 15px 18px;
  overflow: visible;
  border: 1px solid rgba(210, 155, 63, .28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 6% 50%, rgba(255, 204, 112, .16), transparent 25%),
    linear-gradient(112deg, rgba(255, 253, 247, .98), rgba(255, 249, 236, .94));
  box-shadow: 0 14px 34px rgba(45, 35, 19, .07);
}

.dashboard-dessert-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(#f3c467, #b97d20);
}

.dashboard-dessert-main,
.dashboard-dessert-copy,
.dashboard-dessert-actions,
.dashboard-dessert-meta {
  display: flex;
  align-items: center;
}

.dashboard-dessert-main { min-width: 0; gap: 14px; }
.dashboard-dessert-copy { min-width: 0; align-items: flex-start; flex-direction: column; gap: 2px; }
.dashboard-dessert-actions { gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.dashboard-dessert-meta { gap: 8px; flex-wrap: wrap; color: #7c6b51; font-size: .78rem; }

.dashboard-dessert-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(210, 155, 63, .3);
  border-radius: 15px;
  color: #9a6617;
  background: var(--dessert-accent-soft);
  font-size: 1.35rem;
}

.dashboard-dessert-kicker {
  color: #9a6617;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dashboard-dessert-kicker-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-dessert-help {
  position: relative;
  display: inline-flex;
}

.dashboard-dessert-help-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: #7d6b50;
  background: transparent;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
}

.dashboard-dessert-help-trigger:hover,
.dashboard-dessert-help-trigger:focus-visible {
  color: #8c5c12;
}

.dashboard-dessert-help-trigger:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(210, 155, 63, .42);
  outline-offset: 3px;
}

.dashboard-dessert-help-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  left: 0;
  display: none;
  width: min(360px, calc(100vw - 80px));
  padding: 13px 14px;
  border: 1px solid rgba(210, 155, 63, .3);
  border-radius: 13px;
  color: #344054;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 16px 36px rgba(24, 34, 56, .16);
  line-height: 1.55;
}

.dashboard-dessert-help.is-open .dashboard-dessert-help-panel {
  display: grid;
  gap: 5px;
}

.dashboard-dessert-help-panel strong {
  color: #7e5313;
  font-size: .86rem;
}

.dashboard-dessert-help-panel span {
  font-size: .8rem;
}

.dashboard-dessert-help-panel small {
  color: #7a8495;
  font-size: .74rem;
}

.dashboard-dessert-help-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 11px;
  height: 11px;
  border-top: 1px solid rgba(210, 155, 63, .3);
  border-left: 1px solid rgba(210, 155, 63, .3);
  background: #fff;
  transform: rotate(45deg);
}

.dashboard-dessert-title {
  max-width: 100%;
  overflow: hidden;
  color: #182238;
  font-size: 1.06rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-dessert-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(210, 155, 63, .12);
}

.dashboard-dessert-loading,
.dashboard-dessert-error {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px dashed rgba(108, 117, 125, .3);
  border-radius: 18px;
  color: #6c7280;
  background: rgba(255, 255, 255, .7);
}

.dashboard-dessert-card.is-complete {
  min-height: 58px;
  padding-block: 10px;
  border-color: rgba(29, 150, 111, .24);
  background: linear-gradient(112deg, rgba(245, 255, 251, .98), rgba(250, 255, 253, .94));
}

.dashboard-dessert-card.is-complete::before { background: #1d966f; }
.dashboard-dessert-card.is-complete .dashboard-dessert-icon { width: 38px; height: 38px; flex-basis: 38px; border-color: rgba(29, 150, 111, .22); color: #147657; background: rgba(29, 150, 111, .1); }

.workspace-focus-card.dessert-focus-highlight {
  outline: 3px solid rgba(210, 155, 63, .38);
  outline-offset: 4px;
  animation: dessert-focus-pulse 1.15s ease-out 2;
}

@keyframes dessert-focus-pulse {
  0% { box-shadow: 0 0 0 0 rgba(210, 155, 63, .35); }
  100% { box-shadow: 0 0 0 18px rgba(210, 155, 63, 0); }
}

.dessert-manager-modal .modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.dessert-manager-modal .modal-header { padding: 20px 24px 14px; border-bottom: 1px solid rgba(108, 117, 125, .14); }
.dessert-manager-modal .modal-body { padding: 20px 24px 24px; }
.dessert-manager-intro { color: #697386; font-size: .88rem; }
.dessert-editor {
  padding: 16px;
  border: 1px solid rgba(91, 108, 160, .16);
  border-radius: 16px;
  background: #f8faff;
}
.dessert-editor-grid { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(120px, 1fr) 100px 90px 90px 130px; gap: 10px; align-items: end; }
.dessert-editor-grid label { color: #596579; font-size: .75rem; font-weight: 700; }
.dessert-task-section { margin-top: 20px; }
.dessert-task-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dessert-task-list { border: 1px solid rgba(91, 108, 160, .15); border-radius: 15px; overflow: hidden; }
.dessert-task-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(90px, .8fr) 72px 64px minmax(185px, auto);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(91, 108, 160, .1);
  background: #fff;
}
.dessert-task-row:last-child { border-bottom: 0; }
.dessert-task-name { min-width: 0; }
.dessert-task-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dessert-task-name small { color: #7a8495; }
.dessert-task-actions { display: flex; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.dessert-empty { padding: 24px; text-align: center; color: #7a8495; background: #fff; }

@media (max-width: 991.98px) {
  .dessert-editor-grid { grid-template-columns: 1fr 1fr 100px; }
  .dessert-task-row { grid-template-columns: minmax(150px, 1fr) 90px 64px; }
  .dessert-task-row > :nth-child(4) { display: none; }
  .dessert-task-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 575.98px) {
  .dashboard-dessert-card { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-dessert-actions { justify-content: stretch; }
  .dashboard-dessert-actions .btn:not(.dashboard-dessert-menu) { flex: 1 1 auto; }
  .dashboard-dessert-title { white-space: normal; }
  .dashboard-dessert-card.is-complete .dashboard-dessert-meta > :last-child { display: none; }
  .dashboard-dessert-help-panel { position: fixed; top: 50%; left: 50%; width: min(330px, calc(100vw - 32px)); transform: translate(-50%, -50%); }
  .dashboard-dessert-help-panel::before { display: none; }
  .dessert-manager-modal .modal-header { padding: 16px 16px 12px; }
  .dessert-manager-modal .modal-body { padding: 14px 16px 18px; }
  .dessert-editor-grid { grid-template-columns: 1fr; }
  .dessert-editor-grid .dessert-editor-title { grid-column: 1 / -1; }
  .dessert-task-row { grid-template-columns: 1fr auto; gap: 6px; }
  .dessert-task-row > :nth-child(2), .dessert-task-row > :nth-child(3), .dessert-task-row > :nth-child(4) { display: none; }
}

[data-bs-theme="dark"] .dashboard-dessert-card {
  color: #eef2ff;
  background: radial-gradient(circle at 6% 50%, rgba(210, 155, 63, .14), transparent 28%), linear-gradient(112deg, rgba(24, 29, 42, .97), rgba(31, 28, 24, .95));
}
[data-bs-theme="dark"] .dashboard-dessert-title { color: #f7f3eb; }
[data-bs-theme="dark"] .dashboard-dessert-help-trigger { color: #d1bd99; }
[data-bs-theme="dark"] .dashboard-dessert-help-panel { color: #dce3ef; background: rgba(22, 27, 38, .99); box-shadow: 0 18px 44px rgba(0, 0, 0, .38); }
[data-bs-theme="dark"] .dashboard-dessert-help-panel strong { color: #f0c876; }
[data-bs-theme="dark"] .dashboard-dessert-help-panel::before { background: #161b26; }
[data-bs-theme="dark"] .dashboard-dessert-card.is-complete { background: linear-gradient(112deg, rgba(21, 38, 35, .97), rgba(24, 32, 35, .95)); }
[data-bs-theme="dark"] .dessert-editor { background: #171d2a; }
[data-bs-theme="dark"] .dessert-task-row, [data-bs-theme="dark"] .dessert-empty { background: #111723; }
