.dcp-portal {
  margin: 1.25rem 0;
  color: #303132;
}

.dcp-section-head {
  margin-bottom: 1rem;
}

.dcp-section-head h2,
.dcp-card h2,
.dcp-card h3 {
  margin: 0 0 0.6rem;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.3;
}

.dcp-card {
  border: 1px solid #ece9e7;
  border-radius: 18px;
  background: #fffffe;
  box-shadow: 0 10px 28px rgba(48, 49, 50, 0.08);
  padding: 1.1rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dcp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(175, 216, 192, 0.55), 0 15px 30px rgba(175, 216, 192, 0.2);
}

.dcp-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dcp-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(175, 216, 192, 0.55), 0 15px 30px rgba(175, 216, 192, 0.2);
}

.dcp-auth-card {
  max-width: 720px;
  margin: 0 auto;
}

.dcp-auth-card.login-card {
  max-width: min(720px, 100%);
}

.dcp-form {
  display: grid;
  gap: 0.9rem;
}

.dcp-field {
  display: grid;
  gap: 0.4rem;
}

.dcp-field-grid {
  display: grid;
  gap: 0.8rem;
}

.dcp-field label,
.dcp-check label {
  font-weight: 600;
}

.dcp-field-note {
  margin: -0.15rem 0 0;
  font-size: 0.92rem;
  color: #666a6b;
}

.dcp-field input,
.dcp-field select,
.dcp-field textarea {
  width: 100%;
  border: 1px solid #d8d4d1;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: #303132;
}

.dcp-field input:focus-visible,
.dcp-field select:focus-visible,
.dcp-field textarea:focus-visible,
.dcp-btn:focus-visible {
  outline: 3px solid #afd8c0;
  outline-offset: 2px;
}

.dcp-check,
.dcp-check-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dcp-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.dcp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.dcp-btn:hover {
  transform: translateY(-2px);
}

.dcp-btn-primary {
  background: linear-gradient(120deg, #f7dad5, #fce9e5);
  color: #252627;
  box-shadow: 0 8px 18px rgba(48, 49, 50, 0.1);
}

.dcp-btn-outline {
  background: #fff;
  border-color: #d9d4d1;
  color: #303132;
}

.dcp-btn-google {
  background: linear-gradient(180deg, #fff, #fcfbfa);
  border-color: #dadce0;
  color: #202124;
  box-shadow: 0 8px 18px rgba(48, 49, 50, 0.06);
}

.dcp-btn-google::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23EA4335' d='M12 10.2v3.9h5.5c-.2 1.2-.9 2.2-1.9 2.9l3.1 2.4c1.8-1.7 2.9-4.1 2.9-7 0-.7-.1-1.5-.2-2.2H12z'/%3E%3Cpath fill='%234285F4' d='M12 22c2.6 0 4.8-.9 6.4-2.5l-3.1-2.4c-.9.6-2 .9-3.3.9-2.5 0-4.6-1.7-5.4-4H3.4v2.5A10 10 0 0 0 12 22z'/%3E%3Cpath fill='%23FBBC05' d='M6.6 14c-.2-.6-.3-1.3-.3-2s.1-1.4.3-2V7.5H3.4A10 10 0 0 0 2 12c0 1.6.4 3.1 1.1 4.5L6.6 14z'/%3E%3Cpath fill='%2334A853' d='M12 6c1.4 0 2.7.5 3.7 1.4l2.8-2.8C16.8 3 14.6 2 12 2 8.1 2 4.8 4.2 3.4 7.5L6.6 10c.8-2.3 2.9-4 5.4-4z'/%3E%3C/svg%3E")
      center / contain no-repeat;
}

.dcp-btn-google:hover {
  box-shadow: 0 12px 24px rgba(48, 49, 50, 0.1);
}

.dcp-btn-google.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.dcp-google-wrap {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid #efebe8;
  display: grid;
  gap: 0.5rem;
}

.dcp-google-note {
  margin: 0;
  font-size: 0.92rem;
  color: #666a6b;
}

.dcp-nav-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.dcp-grid {
  display: grid;
  gap: 1rem;
}

.dcp-alert {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.9rem;
  border: 1px solid transparent;
}

.dcp-alert ul {
  margin: 0;
  padding-left: 1rem;
}

.dcp-alert-error {
  background: #fff3f3;
  border-color: #ffd2d2;
}

.dcp-alert-success {
  background: #eef9f2;
  border-color: #cdecd7;
}

.dcp-alert-warning {
  background: #fff7eb;
  border-color: #ffe2bf;
}

.dcp-alert-info {
  background: #f3f8fb;
  border-color: #d8e6f1;
}

.dcp-table-wrap {
  overflow-x: auto;
}

.dcp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.dcp-table th,
.dcp-table td {
  border-bottom: 1px solid #efebe8;
  text-align: left;
  padding: 0.65rem 0.45rem;
  vertical-align: top;
}

.dcp-table th {
  font-weight: 700;
}

.dcp-plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.dcp-plan-item {
  border: 1px solid #ece9e7;
  border-radius: 14px;
  padding: 0.8rem;
  background: #fff;
}

.dcp-card-footer {
  margin-top: 0.9rem;
}

.dcp-card-footer a,
.dcp-inline a {
  color: #334f40;
  text-decoration: underline;
}

.dcp-inline-link {
  font-weight: 600;
}

@media (min-width: 768px) {
  .dcp-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dcp-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dcp-wrap {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.dcp-section-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f6162;
}

.dcp-recipe-page {
  margin: 0;
}

.dcp-recipe-hero {
  padding: 3.2rem 0 2rem;
}

.dcp-recipe-hero h1,
.dcp-recipe-section h2,
.dcp-recipe-section h3,
.dcp-recipe-title {
  margin: 0 0 0.7rem;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.25;
  color: #232425;
}

.dcp-recipe-hero p {
  margin: 0;
  color: #5f6162;
}

.dcp-recipe-section {
  padding: 1.2rem 0 2.4rem;
}

.dcp-recipe-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.dcp-recipe-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dcp-recipe-image-link {
  display: block;
  min-height: 190px;
  background: linear-gradient(145deg, #f9ece8, #eaf4ee);
}

.dcp-recipe-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.dcp-recipe-image-placeholder {
  display: block;
  width: 100%;
  height: 220px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.95), transparent 38%),
    radial-gradient(circle at 80% 80%, rgba(175, 216, 192, 0.6), transparent 42%),
    linear-gradient(145deg, #f9eeeb, #e8f3ec);
}

.dcp-recipe-content {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.dcp-recipe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dcp-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(175, 216, 192, 0.22);
  color: #2c4636;
}

.dcp-recipe-title a {
  color: #232425;
  text-decoration: none;
}

.dcp-recipe-title a:hover {
  color: #111;
}

.dcp-recipe-excerpt {
  margin: 0 0 0.35rem;
  color: #5f6162;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dcp-recipe-pagination {
  margin-top: 1rem;
}

.dcp-recipe-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dcp-recipe-pagination a,
.dcp-recipe-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d4d1;
  border-radius: 999px;
  background: #fff;
  padding: 0.38rem 0.75rem;
  text-decoration: none;
  color: #303132;
}

.dcp-recipe-pagination .current {
  background: rgba(247, 218, 213, 0.55);
  border-color: transparent;
}

.dcp-recipe-layout {
  display: grid;
  gap: 1rem;
}

.dcp-recipe-article {
  padding: 1.2rem;
}

.dcp-recipe-lead {
  color: #5f6162;
  margin-bottom: 0.8rem;
}

.dcp-recipe-badges-detail {
  margin-bottom: 1rem;
}

.dcp-recipe-content-block {
  color: #303132;
}

.dcp-recipe-content-block > :last-child {
  margin-bottom: 0;
}

.dcp-recipe-sidebar {
  display: grid;
  gap: 0.9rem;
}

.dcp-list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.dcp-list-clean li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
}

@media (min-width: 768px) {
  .dcp-recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dcp-recipe-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .dcp-recipe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dcp-dashboard-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.dcp-dashboard-sidebar {
  position: relative;
  z-index: 11;
  margin-bottom: 0;
}

.dcp-dashboard-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #f0ece9;
}

.dcp-dashboard-user strong {
  display: block;
  color: #232425;
}

.dcp-dashboard-user p {
  margin: 0;
  font-size: 0.9rem;
  color: #676a6b;
}

.dcp-dashboard-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(48, 49, 50, 0.12);
  overflow: hidden;
  background: linear-gradient(145deg, #f7dad5, #afd8c0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #253126;
  font-weight: 700;
}

.dcp-dashboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dcp-dashboard-nav {
  display: grid;
  gap: 0.35rem;
}

.dcp-dashboard-nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  color: #303132;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.dcp-dashboard-nav-link:hover {
  background: rgba(247, 218, 213, 0.42);
}

.dcp-dashboard-nav-link.is-active {
  background: rgba(175, 216, 192, 0.45);
  color: #1f3227;
  font-weight: 600;
}

.dcp-dashboard-nav-logout {
  margin-top: 0.4rem;
}

.dcp-dashboard-main {
  min-width: 0;
}

.dcp-dashboard-toggle {
  width: 100%;
  margin-bottom: 0.65rem;
  border: 1px solid #ddd8d5;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
  background: #fff;
  color: #303132;
  font-weight: 600;
}

.dcp-dashboard-content {
  margin-bottom: 0;
}

.dcp-dashboard-head {
  margin-bottom: 1rem;
}

.dcp-dashboard-head h2 {
  margin-bottom: 0.45rem;
}

.dcp-dashboard-head p {
  margin: 0;
}

.dcp-dashboard-head-row {
  display: grid;
  gap: 0.8rem;
}

.dcp-dashboard-head-row.dcp-dashboard-head-row--controls {
  grid-template-columns: 1fr;
}

.dcp-plan-selector {
  justify-self: end;
  width: min(100%, 320px);
  display: grid;
  gap: 0.35rem;
}

.dcp-plan-selector label {
  font-size: 0.9rem;
  font-weight: 600;
}

.dcp-plan-actions {
  width: 100%;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: end;
}

.dcp-plan-download-btn {
  align-self: end;
  white-space: nowrap;
}

.dcp-plan-view-card {
  border: 1px solid #ece9e7;
  border-radius: 16px;
  padding: 1.15rem;
  background: #fff;
}

.dcp-plan-meta {
  margin-bottom: 0.9rem;
}

.dcp-plan-meta h3 {
  margin: 0 0 0.35rem;
}

.dcp-plan-meta p {
  margin: 0;
}

.dcp-plan-table {
  min-width: 720px;
}

.dcp-plan-table th,
.dcp-plan-table td {
  padding: 0.72rem 0.6rem;
  border-bottom-color: #ece9e7;
}

.dcp-plan-grid-wrap {
  overflow: auto;
  border: 1px solid #ece9e7;
  border-radius: 14px;
  background: #fffffe;
  padding-bottom: 0.2rem;
}

.dcp-plan-grid-table {
  min-width: 1380px;
  margin: 0;
  table-layout: fixed;
}

.dcp-plan-grid-table thead th {
  background: linear-gradient(120deg, rgba(247, 218, 213, 0.34), rgba(175, 216, 192, 0.26));
  font-weight: 700;
  white-space: nowrap;
}

.dcp-plan-grid-table tbody tr:nth-child(even) td {
  background: rgba(247, 218, 213, 0.08);
}

.dcp-plan-grid-table tbody tr:nth-child(odd) td {
  background: rgba(175, 216, 192, 0.08);
}

.dcp-plan-grid-table th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fffffe;
  min-width: 150px;
  width: 150px;
}

.dcp-plan-grid-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: rgba(246, 241, 239, 0.98);
  min-width: 150px;
  width: 150px;
}

.dcp-plan-grid-table td {
  min-width: 220px;
  width: 220px;
  vertical-align: top;
}

.dcp-plan-grid-entry + .dcp-plan-grid-entry {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #ddd8d5;
}

.dcp-plan-grid-entry strong {
  display: block;
  font-weight: 600;
}

.dcp-plan-grid-food-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.32rem;
}

.dcp-plan-grid-food-list li {
  margin: 0;
  position: relative;
  padding-left: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dcp-plan-grid-food-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #2f5843;
}

.dcp-plan-grid-entry small {
  display: block;
  margin-top: 0.35rem;
  color: #6c7072;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.dcp-plan-grid-empty {
  color: #8a8e90;
}

.dcp-plan-mobile-list {
  display: none;
  margin-top: 1rem;
}

.dcp-plan-mobile-day {
  position: relative;
  border: 1px solid rgba(223, 231, 226, 0.95);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 254, 0.98), rgba(247, 218, 213, 0.15)),
    radial-gradient(circle at top left, rgba(175, 216, 192, 0.18), transparent 42%);
  box-shadow: 0 20px 38px rgba(34, 44, 40, 0.06);
  overflow: hidden;
}

.dcp-plan-mobile-day::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(175, 216, 192, 0.9), rgba(247, 218, 213, 0.92));
}

.dcp-plan-mobile-day + .dcp-plan-mobile-day {
  margin-top: 0.95rem;
}

.dcp-plan-mobile-day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1.05rem;
  cursor: pointer;
  list-style: none;
}

.dcp-plan-mobile-day-summary::-webkit-details-marker {
  display: none;
}

.dcp-plan-mobile-day-summary-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.dcp-plan-mobile-day-summary strong {
  font-size: 1.02rem;
  color: #303132;
  line-height: 1.25;
}

.dcp-plan-mobile-day-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  background: rgba(175, 216, 192, 0.22);
  border: 1px solid rgba(175, 216, 192, 0.38);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a4a44;
}

.dcp-plan-mobile-day-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 231, 226, 0.95);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(34, 44, 40, 0.08);
}

.dcp-plan-mobile-day-toggle::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #2f5843;
  border-bottom: 2px solid #2f5843;
  transform: translateY(-0.08rem) rotate(45deg);
  transition: transform 0.2s ease;
}

.dcp-plan-mobile-day[open] .dcp-plan-mobile-day-toggle::before {
  transform: translateY(0.08rem) rotate(225deg);
}

.dcp-plan-mobile-day-body {
  display: grid;
  gap: 0.9rem;
  padding: 0 1rem 1rem;
}

.dcp-plan-mobile-meal {
  border: 1px solid rgba(223, 231, 226, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 218, 213, 0.08)),
    #fffffe;
  box-shadow: 0 12px 28px rgba(34, 44, 40, 0.05);
}

.dcp-plan-mobile-meal-head {
  padding: 0.9rem 0.95rem 0.75rem;
  border-bottom: 1px solid rgba(223, 231, 226, 0.75);
  background: linear-gradient(180deg, rgba(175, 216, 192, 0.12), rgba(255, 255, 255, 0));
}

.dcp-plan-mobile-meal-kicker {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c7072;
}

.dcp-plan-mobile-meal-head h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.dcp-plan-mobile-meal-body {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem 0.95rem;
}

.dcp-plan-mobile-entry {
  margin: 0;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(236, 233, 231, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 254, 0.96);
}

.dcp-plan-mobile-entry .dcp-plan-grid-food-list {
  gap: 0.34rem;
}

.dcp-plan-mobile-entry .dcp-plan-grid-food-list li {
  line-height: 1.55;
}

.dcp-plan-mobile-entry small {
  margin-top: 0.5rem;
  line-height: 1.5;
}

.dcp-plan-mobile-empty {
  margin: 0;
  border: 1px dashed rgba(175, 216, 192, 0.8);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 254, 0.96);
  color: #6c7072;
  font-size: 0.92rem;
  line-height: 1.5;
}

.dcp-plan-file-fallback {
  border: 1px dashed #d8d4d1;
  border-radius: 14px;
  padding: 1rem;
  background: #fffdfb;
}

.dcp-dashboard-list {
  display: grid;
  gap: 0.7rem;
}

.dcp-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #ece9e7;
  border-radius: 14px;
  padding: 0.8rem;
  background: #fff;
}

.dcp-file-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.dcp-file-item p {
  margin: 0;
  font-size: 0.88rem;
}

.dcp-file-type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(247, 218, 213, 0.48);
  color: #6a4a44;
}

.dcp-note-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.dcp-note-item {
  border: 1px solid #ece9e7;
  border-radius: 14px;
  padding: 0.85rem;
  background: #fff;
}

.dcp-note-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.dcp-note-item header span {
  font-size: 0.84rem;
  color: #6a6d6f;
}

.dcp-note-item p {
  margin: 0;
  white-space: pre-line;
}

.dcp-dashboard-subsection {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #f1eeeb;
}

.dcp-dashboard-subsection h3 {
  margin: 0 0 0.6rem;
}

@media (max-width: 900px) {
  .dcp-plan-view-card > .dcp-plan-grid-wrap,
  .dcp-plan-grid-wrap {
    display: none !important;
  }

  .dcp-plan-mobile-list {
    display: block;
  }

  .dcp-dashboard-sidebar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: 88px;
    max-height: calc(100dvh - 110px);
    overflow: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .dcp-dashboard-sidebar.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dcp-file-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 901px) {
  .dcp-plan-mobile-list {
    display: none;
  }

  .dcp-dashboard-shell {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 1rem;
  }

  .dcp-dashboard-sidebar {
    position: sticky;
    top: 98px;
  }

  .dcp-dashboard-toggle {
    display: none;
  }

  .dcp-dashboard-head-row {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: end;
  }

  .dcp-dashboard-head-row.dcp-dashboard-head-row--controls {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .dcp-plan-actions {
    justify-content: flex-start;
  }
}

/* Dashboard brand refinement */
.dcp-portal {
  --dcp-p1: #f7dad5;
  --dcp-p2: #afd8c0;
  --dcp-text: #303132;
  --dcp-bg: #fffffe;
}

.dcp-portal .dcp-btn:hover {
  box-shadow: 0 12px 24px rgba(175, 216, 192, 0.3), 0 0 0 1px rgba(247, 218, 213, 0.5);
}

.dcp-dashboard-tophead {
  border-radius: 16px;
  border: 1px solid rgba(223, 231, 226, 0.95);
  background:
    radial-gradient(circle at 20% 20%, rgba(247, 218, 213, 0.14), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(175, 216, 192, 0.14), transparent 48%),
    #fffffe;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
}

.dcp-dashboard-tophead h1 {
  margin: 0 0 0.25rem;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
}

.dcp-dashboard-tophead p {
  margin: 0;
  color: #616567;
}

.dcp-dashboard-sidebar {
  border-color: rgba(222, 225, 227, 0.95);
}

.dcp-dashboard-nav-link {
  position: relative;
  border-left: 3px solid transparent;
}

.dcp-dashboard-nav-link:hover {
  background: rgba(247, 218, 213, 0.3);
}

.dcp-dashboard-nav-link.is-active {
  background: rgba(175, 216, 192, 0.26);
  border-left-color: #afd8c0;
}

.dcp-dashboard-nav-link.is-active::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7cb397;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.dcp-dashboard-content {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--dcp-bg), var(--dcp-bg)) padding-box,
    linear-gradient(120deg, rgba(247, 218, 213, 0.68), rgba(175, 216, 192, 0.68)) border-box;
}

.dcp-summary-card {
  position: relative;
  overflow: hidden;
}

.dcp-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.dcp-summary-card--program::before {
  background: #afd8c0;
}

.dcp-summary-card--measurement::before {
  background: #f7dad5;
}

.dcp-summary-card--control::before {
  background: linear-gradient(120deg, #f7dad5, #afd8c0);
}

.dcp-summary-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-right: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(212, 217, 220, 0.9);
  background: rgba(247, 218, 213, 0.28);
  color: #5f4a45;
}

.dcp-summary-card--program .dcp-summary-chip {
  background: rgba(175, 216, 192, 0.28);
  color: #355644;
}

.dcp-control-detail-box {
  margin-top: 1rem;
  border: 1px solid rgba(175, 216, 192, 0.45);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: linear-gradient(130deg, rgba(247, 218, 213, 0.14), rgba(175, 216, 192, 0.16));
}

.dcp-chat-card {
  border: 1px solid #e7e9eb;
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem;
  display: grid;
  gap: 0.8rem;
}

.dcp-chat-error {
  margin-bottom: 0.7rem;
}

.dcp-chat-thread-wrap {
  border: 1px solid rgba(221, 224, 227, 0.9);
  border-radius: 14px;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 251, 250, 0.95));
}

.dcp-chat-thread {
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 0.6rem;
  padding-right: 0.15rem;
}

.dcp-chat-message {
  display: grid;
  gap: 0.2rem;
}

.dcp-chat-message.is-outgoing {
  justify-items: end;
}

.dcp-chat-message.is-incoming {
  justify-items: start;
}

.dcp-chat-bubble {
  max-width: min(88%, 680px);
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  white-space: pre-line;
  line-height: 1.5;
}

.dcp-chat-message.is-client .dcp-chat-bubble {
  background: rgba(175, 216, 192, 0.24);
  border: 1px solid rgba(175, 216, 192, 0.55);
}

.dcp-chat-message.is-admin .dcp-chat-bubble {
  background: rgba(247, 218, 213, 0.32);
  border: 1px solid rgba(247, 218, 213, 0.62);
}

.dcp-chat-meta {
  display: flex;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #6c7072;
}

.dcp-chat-author {
  font-weight: 600;
}

.dcp-chat-empty {
  margin: 0;
  color: #6c7072;
}

.dcp-chat-composer {
  display: grid;
  gap: 0.5rem;
}

.dcp-chat-composer label {
  font-weight: 600;
}

.dcp-chat-composer textarea {
  width: 100%;
  border: 1px solid #d8d4d1;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  color: #303132;
}

.dcp-chat-composer textarea:focus-visible {
  outline: 3px solid rgba(175, 216, 192, 0.9);
  outline-offset: 2px;
}

.dcp-chat-composer button {
  justify-self: end;
}

@media (max-width: 900px) {
  .dcp-dashboard-tophead {
    padding: 0.8rem 0.85rem;
  }

  .dcp-chat-bubble {
    max-width: 100%;
  }

  .dcp-chat-composer button {
    justify-self: stretch;
  }
}
