a {
  text-decoration: none;
}

@keyframes chatGlowPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(201, 169, 110, 0.15), 0 0 4px rgba(201, 169, 110, 0.1);
  }
  50% {
    box-shadow: 0 0 24px rgba(201, 169, 110, 0.25), 0 0 8px rgba(201, 169, 110, 0.15);
  }
}
@keyframes avatarBreathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}
@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Jost", sans-serif;
}

.container {
  width: 100%;
  height: 100%;
  background-color: #f7f3ec;
}
.container header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background-color: white;
  border-bottom: 1px solid #ede5d8;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.container header ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.container header ul li {
  margin: 0 10px;
}
.container header ul li .the-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: #a07840;
  font-weight: 500;
  margin-right: 8px;
  cursor: pointer;
}
.container header ul li.breadcrumb {
  font-size: 12px;
  color: #5a4e3a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.container header ul li a.dash-back {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a8c78;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  transition: color 0.2s;
}
.container header ul li a.dash-back svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.container header ul li.notifications {
  position: relative;
}
.container header ul li.notifications a.inbox-bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}
.container header ul li.notifications a.inbox-bell svg {
  width: 20px;
  height: 20px;
  stroke: #5a4e3a;
  fill: none;
  stroke-width: 1.8;
}
.container header ul li.notifications .notif-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 340px;
  background: white;
  border: 1px solid #ede5d8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 100;
}
.container header ul li.notifications .notif-dropdown .notif-dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid #ede5d8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.container header ul li.notifications .notif-dropdown .notif-dropdown-header button {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: #a07840;
  cursor: pointer;
}
.container header ul li.notifications .notif-dropdown .notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid #ede5d8;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.15s;
  cursor: pointer;
}
.container header ul li.notifications .notif-dropdown .notif-item .notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.container header ul li.notifications .notif-dropdown .notif-item .notif-text {
  font-size: 13px;
  color: #5a4e3a;
  line-height: 1.5;
}
.container header ul li.notifications .notif-dropdown .notif-item .notif-time {
  font-size: 11px;
  color: #9a8c78;
  margin-top: 4px;
}
.container header ul li.notifications .notif-dropdown .notif-item.unread {
  background: rgba(201, 169, 110, 0.04);
}
.container header ul li a.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a96e 0%, #a07840 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.container header ul li.dash-search {
  position: relative;
}
.container header ul li.dash-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: #9a8c78;
  fill: none;
  stroke-width: 2;
}
.container header ul li.dash-search input {
  font-size: 13px;
  color: #2a2015;
  background: #f7f3ec;
  border: 1px solid #ede5d8;
  padding: 8px 14px 8px 36px;
  width: 240px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}
.container header ul li.dash-search input:focus {
  border-color: #c9a96e;
  width: 320px;
}
.container .dash-content {
  display: flex;
  flex-direction: row;
}
.container aside {
  width: 220px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #ede5d8;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.container aside .sidebar-section {
  margin-bottom: 32px;
  padding: 0 20px;
}
.container aside .sidebar-section .sidebar-section-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8c78;
  margin-bottom: 10px;
  padding-left: 12px;
}
.container aside .sidebar-section .sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 400;
  color: #5a4e3a;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  margin-bottom: 2px;
}
.container aside .sidebar-section .sidebar-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.container aside .sidebar-section .sidebar-link.active, .container aside .sidebar-section .sidebar-link:hover {
  background: #f7f3ec;
  color: #a07840;
}
.container aside .sidebar-user {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid #ede5d8;
  display: flex;
  align-items: center;
  gap: 10px;
}
.container aside .sidebar-user .dash-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a96e 0%, #a07840 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
}
.container aside .sidebar-user .sidebar-user-name {
  font-size: 13px;
  font-weight: 500;
  color: #2a2015;
}
.container aside .sidebar-user .sidebar-user-plan {
  font-size: 11px;
  color: #9a8c78;
}
.container .dash-main {
  flex: 1;
  padding: 40px 48px;
  overflow-y: auto;
}
.container .dash-main .planning-tree-header, .container .dash-main .plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.container .dash-main .planning-tree-header .section-eyebrow, .container .dash-main .plan-header .section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 8px;
}
.container .dash-main .planning-tree-header .planning-tree-title, .container .dash-main .planning-tree-header .plan-title, .container .dash-main .plan-header .planning-tree-title, .container .dash-main .plan-header .plan-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 400;
  color: #2a2015;
}
.container .dash-main .planning-tree-header .plan-summary, .container .dash-main .plan-header .plan-summary {
  text-align: right;
}
.container .dash-main .planning-tree-header .plan-summary .plan-total, .container .dash-main .plan-header .plan-summary .plan-total {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  color: #2a2015;
}
.container .dash-main .planning-tree-header .plan-summary .plan-total-label, .container .dash-main .plan-header .plan-summary .plan-total-label {
  font-size: 12px;
  color: #9a8c78;
  margin-top: 2px;
}
.container .dash-main .planning-tree-header .plan-summary .plan-progress, .container .dash-main .plan-header .plan-summary .plan-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.container .dash-main .planning-tree-header .plan-summary .plan-progress .progress-bar, .container .dash-main .plan-header .plan-summary .plan-progress .progress-bar {
  flex: 1;
  height: 4px;
  background: #ede5d8;
  min-width: 120px;
}
.container .dash-main .planning-tree-header .plan-summary .plan-progress .progress-bar .progress-fill, .container .dash-main .plan-header .plan-summary .plan-progress .progress-bar .progress-fill {
  height: 100%;
  background: #c9a96e;
  width: 42%;
  transition: width 1s ease;
}
.container .dash-main .planning-tree-header .plan-summary .plan-progress .progress-label, .container .dash-main .plan-header .plan-summary .plan-progress .progress-label {
  font-size: 11px;
  color: #9a8c78;
}
.container .dash-main .planning-tree-header .btn-add-member, .container .dash-main .plan-header .btn-add-member {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #c9a96e;
  color: #111827;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.container .dash-main .planning-tree-header .btn-add-member svg, .container .dash-main .plan-header .btn-add-member svg {
  width: 14px;
  height: 14px;
  stroke: #111827;
  fill: none;
  stroke-width: 2.5;
}
.container .dash-main .dash-overview-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
}
.container .dash-main .dash-overview-grid .dash-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 400;
  color: #2a2015;
  margin-bottom: 20px;
}
.container .dash-main .dash-overview-grid .activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.container .dash-main .dash-overview-grid .activity-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #ede5d8;
}
.container .dash-main .dash-overview-grid .activity-timeline .activity-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  position: relative;
}
.container .dash-main .dash-overview-grid .activity-timeline .activity-item .activity-content {
  flex: 1;
}
.container .dash-main .dash-overview-grid .activity-timeline .activity-item .activity-content .activity-text {
  font-size: 13px;
  color: #5a4e3a;
  line-height: 1.5;
}
.container .dash-main .dash-overview-grid .activity-timeline .activity-item .activity-content .activity-time {
  font-size: 11px;
  color: #9a8c78;
  margin-top: 4px;
}
.container .dash-main .dash-overview-grid .activity-timeline .activity-item .activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  border: 2px solid #ede5d8;
  background: white;
  position: relative;
  z-index: 1;
  margin-left: 10px;
}
.container .dash-main .dash-overview-grid .activity-timeline .activity-item .activity-dot.gold {
  border-color: #c9a96e;
  background: #c9a96e;
}
.container .dash-main .dash-overview-grid .activity-timeline .activity-item .activity-dot.green {
  border-color: #3a8a3a;
  background: #3a8a3a;
}
.container .dash-main .dash-overview-grid .activity-timeline .activity-item .activity-dot.blue {
  border-color: #6080c8;
  background: #6080c8;
}
.container .dash-main .dash-overview-grid .activity-timeline .activity-item .activity-dot.red {
  border-color: #b03030;
  background: #b03030;
}
.container .dash-main .settings-save-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ede5d8;
}
.container .dash-main .settings-save-bar .btn-settings-cancel {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  color: #9a8c78;
  border: 1px solid #ede5d8;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s;
}
.container .dash-main .settings-save-bar .btn-settings-save {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #c9a96e;
  color: #111827;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.container .dash-main .settings-section {
  background: white;
  border: 1px solid #ede5d8;
  padding: 32px;
  margin-bottom: 24px;
}
.container .dash-main .settings-section .settings-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 400;
  color: #2a2015;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ede5d8;
}
.container .dash-main .settings-section .settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f7f3ec;
}
.container .dash-main .settings-section .settings-row .settings-input {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  color: #2a2015;
  background: #f7f3ec;
  border: 1px solid #ede5d8;
  padding: 8px 14px;
  width: 260px;
  outline: none;
  transition: border-color 0.2s;
}
.container .dash-main .settings-section .settings-row .settings-label {
  font-size: 14px;
  color: #2a2015;
}
.container .dash-main .settings-section .settings-row .settings-desc {
  font-size: 12px;
  color: #9a8c78;
  margin-top: 4px;
}
.container .dash-main .settings-section .settings-row .settings-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #ede5d8;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.container .dash-main .settings-section .settings-row .settings-toggle.on {
  background: #c9a96e;
}
.container .dash-main .settings-section .settings-row .settings-toggle.on::after {
  left: 22px;
}
.container .dash-main .settings-section .settings-row .settings-toggle::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.container .dash-main .tree-view-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.container .dash-main .tree-view-toggle .tree-view-toggle-label {
  font-size: 12px;
  color: #9a8c78;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s;
}
.container .dash-main .tree-view-toggle .tree-view-toggle-label.active {
  color: #2a2015;
  font-weight: 500;
}
.container .dash-main .tree-view-toggle .tree-view-toggle-track {
  width: 44px;
  height: 24px;
  background: #ede5d8;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  border: none;
  padding: 0;
}
.container .dash-main .tree-view-toggle .tree-view-toggle-track.list-active {
  background: #c9a96e;
}
.container .dash-main .tree-view-toggle .tree-view-toggle-track.list-active::after {
  transform: translateX(20px);
}
.container .dash-main .tree-view-toggle .tree-view-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s;
}
.container .dash-main .rempla-chat {
  background: white;
  border: 2px solid #c9a96e;
  display: flex;
  flex-direction: column;
  height: fit-content;
  position: relative;
  box-shadow: 0 0 16px rgba(201, 169, 110, 0.15), 0 0 4px rgba(201, 169, 110, 0.1);
  animation: chatGlowPulse 4s ease-in-out infinite;
}
.container .dash-main .rempla-chat .chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid #ede5d8;
  display: flex;
  align-items: center;
  gap: 12px;
}
.container .dash-main .rempla-chat .chat-header .chat-ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}
.container .dash-main .rempla-chat .chat-header .chat-ai-avatar svg {
  width: 18px;
  height: 18px;
  stroke: #c9a96e;
  fill: none;
  stroke-width: 1.5;
}
.container .dash-main .rempla-chat .chat-header .chat-ai-avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #c9a96e;
  opacity: 0.5;
  animation: avatarBreathe 3s ease-in-out infinite;
}
.container .dash-main .rempla-chat .chat-header .chat-header-title {
  flex: 1;
}
.container .dash-main .rempla-chat .chat-header .chat-header-title .chat-header-name {
  font-size: 14px;
  font-weight: 600;
  color: #2a2015;
}
.container .dash-main .rempla-chat .chat-header .chat-header-title .chat-header-status {
  font-size: 11px;
  color: #9a8c78;
  display: flex;
  align-items: center;
  gap: 6px;
}
.container .dash-main .rempla-chat .chat-header .chat-header-title .chat-header-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}
.container .dash-main .rempla-chat .chat-header .chat-header-title .chat-typing-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: auto;
  opacity: 0.5;
}
.container .dash-main .rempla-chat .chat-header .chat-header-title .chat-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #c9a96e;
  animation: typingBounce 1.4s ease-in-out infinite;
}
.container .dash-main .rempla-chat .chat-header .chat-header-title .chat-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.container .dash-main .rempla-chat .chat-header .chat-header-title .chat-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
.container .dash-main .rempla-chat .chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  max-height: 400px;
  overflow-y: auto;
}
.container .dash-main .rempla-chat .chat-messages .chat-msg {
  max-width: 100%;
}
.container .dash-main .rempla-chat .chat-messages .chat-msg.chat-msg-ai {
  background: #f7f3ec;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #5a4e3a;
  border-radius: 2px 14px 14px 14px;
}
.container .dash-main .rempla-chat .chat-messages .chat-msg.chat-msg-ai strong {
  color: #a07840;
}
.container .dash-main .rempla-chat .chat-messages .chat-suggestion {
  font-size: 12px;
  color: #a07840;
  padding: 8px 16px;
  border: 1px solid rgba(201, 169, 110, 0.3);
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: white;
}
.container .dash-main .rempla-chat .chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid #ede5d8;
  display: flex;
  gap: 10px;
  align-items: center;
}
.container .dash-main .rempla-chat .chat-input-area .chat-input {
  flex: 1;
  background: #f7f3ec;
  border: 1.5px solid transparent;
  padding: 11px 16px;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  color: #2a2015;
  outline: none;
  border-radius: 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.container .dash-main .rempla-chat .chat-input-area .chat-send {
  width: 38px;
  height: 38px;
  background: #c9a96e;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  border-radius: 50%;
}
.container .dash-main .rempla-chat .chat-input-area .chat-send svg {
  width: 16px;
  height: 16px;
  stroke: #111827;
  fill: none;
  stroke-width: 2;
}
.container .dash-main .tree-canvas {
  background: white;
  border: 1px solid #ede5d8;
  padding: 48px;
  min-height: 500px;
  position: relative;
  overflow: auto;
}
.container .dash-main .tree-canvas .tree-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 700px;
}
.container .dash-main .tree-canvas .tree-wrap .tree-generation {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.container .dash-main .tree-canvas .tree-wrap .tree-generation .tree-generation-group {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.container .dash-main .tree-canvas .tree-wrap .tree-generation .tree-generation-group .tree-node {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  background: #f7f3ec;
  border: 1px solid #ede5d8;
  min-width: 140px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.container .dash-main .tree-canvas .tree-wrap .tree-generation .tree-generation-group .tree-node .tree-node-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ede5d8 0%, #d4c4ae 100%);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #5a4e3a;
}
.container .dash-main .tree-canvas .tree-wrap .tree-generation .tree-generation-group .tree-node .tree-node-info {
  flex: 1;
}
.container .dash-main .tree-canvas .tree-wrap .tree-generation .tree-generation-group .tree-node .tree-node-info .tree-node-name {
  font-size: 13px;
  font-weight: 500;
  color: #2a2015;
}
.container .dash-main .tree-canvas .tree-wrap .tree-generation .tree-generation-group .tree-node .tree-node-info .tree-node-relation {
  font-size: 11px;
  color: #9a8c78;
  margin-top: 2px;
}
.container .dash-main .tree-canvas .tree-wrap .tree-gen-spacer {
  height: 40px;
  width: 100%;
  position: relative;
  z-index: 0;
}
.container .dash-main .tree-canvas .tree-wrap .tree-gen-spacer .tree-connector-layer {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: calc(100% + 2px);
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.container .dash-main .tree-canvas .tree-wrap .tree-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
  margin-bottom: 0;
}
.container .dash-main .tree-canvas .tree-wrap .tree-row .tree-node {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  background: #f7f3ec;
  border: 1px solid #ede5d8;
  min-width: 140px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.container .dash-main .tree-canvas .tree-wrap .tree-row .tree-node.tree-node.primary {
  border-color: #c9a96e;
  background: #ffffff;
}
.container .dash-main .tree-canvas .tree-wrap .tree-row .tree-node .tree-node-info {
  flex: 1;
}
.container .dash-main .tree-canvas .tree-wrap .tree-row .tree-node .tree-node-info .tree-node-name {
  font-size: 13px;
  font-weight: 500;
  color: #2a2015;
}
.container .dash-main .tree-canvas .tree-wrap .tree-row .tree-node .tree-node-info .tree-node-relation {
  font-size: 11px;
  color: #9a8c78;
  margin-top: 2px;
}
.container .dash-main .tree-canvas .tree-wrap .tree-row .tree-node .tree-node-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ede5d8 0%, #d4c4ae 100%);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #5a4e3a;
}
.container .dash-main .tree-canvas .tree-node {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  background: #f7f3ec;
  border: 1px solid #ede5d8;
  min-width: 140px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.container .dash-main .tree-canvas .tree-node .tree-node-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ede5d8 0%, #d4c4ae 100%);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #5a4e3a;
}
.container .dash-main .tree-canvas .tree-node .tree-node-info {
  flex: 1;
}
.container .dash-main .tree-canvas .tree-node .tree-node-info .tree-node-name {
  font-size: 13px;
  font-weight: 500;
  color: #2a2015;
}
.container .dash-main .tree-canvas .tree-node .tree-node-info .tree-node-relation {
  font-size: 11px;
  color: #9a8c78;
  margin-top: 2px;
}
.container .dash-main .tree-list-view {
  display: none;
  background: white;
  border: 1px solid #ede5d8;
  padding: 24px;
}
.container .dash-main .tree-list-view.active {
  display: block;
}
.container .dash-main .tree-list-view .tree-list-group {
  margin-bottom: 24px;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-group-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8c78;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ede5d8;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #ede5d8;
  margin-bottom: 6px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-info {
  flex: 1;
  min-width: 0;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-info .tree-list-name {
  font-size: 14px;
  font-weight: 500;
  color: #2a2015;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-info .tree-list-relation {
  font-size: 12px;
  color: #9a8c78;
  margin-top: 2px;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-status {
  font-size: 11px;
  color: #9a8c78;
  text-align: right;
  flex-shrink: 0;
  min-width: 80px;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-status .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-tags .tree-list-tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-tags .tree-list-tag.tag-rempla {
  background: rgba(201, 169, 110, 0.12);
  color: #a07840;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-tags .tree-list-tag.tree-list-tag.tag-estate {
  background: rgba(80, 120, 200, 0.08);
  color: #4060b0;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-tags .tree-list-tag.tag-digital {
  background: rgba(42, 138, 154, 0.08);
  color: #2a8a9a;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-tags .tree-list-tag.tag-fiduciary {
  background: rgba(138, 96, 48, 0.08);
  color: #8a6030;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-tags .tree-list-tag.tag-none {
  background: #f7f3ec;
  color: #9a8c78;
}
.container .dash-main .tree-list-view .tree-list-group .tree-list-row .tree-list-tags .tree-list-tag.tag-protector {
  background: rgba(123, 94, 167, 0.08);
  color: #7b5ea7;
}

.tab-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}
.tab-with-sidebar .chat-typing-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: auto;
  opacity: 0.5;
}
.tab-with-sidebar .chat-typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #c9a96e;
  animation: typingBounce 1.4s ease-in-out infinite;
}
.tab-with-sidebar .chat-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.tab-with-sidebar .chat-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a96e 0%, #a07840 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}

.dash-tab {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  cursor: pointer;
  color: #9a8c78;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: "Jost", sans-serif;
}
.dash-tab.active {
  color: #a07840;
  border-bottom-color: #c9a96e;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.btn-add-gift {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 2px dashed #d4c4ae;
  background: none;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  color: #9a8c78;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #c9a96e;
  color: #111827;
  border: none;
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: #e8d5b0;
  transform: translateY(-1px);
}

.btn-hero-primary {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #c9a96e;
  color: #111827;
  border: none;
  padding: 15px 32px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.3s;
}
.btn-hero-primary:hover {
  background: #a07840;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(201, 169, 110, 0.3);
}

.planning-tree-title, .plan-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 400;
  color: #2a2015;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background: white;
  border: 1px solid #ede5d8;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.dash-stat-card .dash-stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.dash-stat-card .dash-stat-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  fill: none;
}
.dash-stat-card .dash-stat-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8c78;
  margin-bottom: 6px;
}
.dash-stat-card .dash-stat-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  line-height: 1;
  color: #2a2015;
}

.dash-cta-banner {
  background: #111827;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.dash-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at right, rgba(201, 169, 110, 0.08) 0%, transparent 65%);
  pointer-events: none;
}
.dash-cta-banner .dash-cta-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 8px;
}
.dash-cta-banner .dash-cta-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: white;
  margin-bottom: 6px;
}
.dash-cta-banner .dash-cta-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.dash-cta-banner .dash-cta-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.dash-cta-banner .dash-cta-progress .dash-cta-bar {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.dash-cta-banner .dash-cta-progress .dash-cta-bar .dash-cta-fill {
  height: 100%;
  background: #c9a96e;
  transition: width 1.2s ease;
}
.dash-cta-banner .dash-cta-progress .dash-cta-percent {
  font-size: 12px;
  color: #c9a96e;
  font-weight: 500;
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quick-actions .quick-action-btn {
  background: white;
  border: 1px solid #ede5d8;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-align: left;
  font-family: "Jost", sans-serif;
}
.quick-actions .quick-action-btn .quick-action-label {
  font-size: 13px;
  font-weight: 500;
  color: #2a2015;
}
.quick-actions .quick-action-btn .quick-action-desc {
  font-size: 12px;
  color: #9a8c78;
  margin-top: 2px;
}
.quick-actions .quick-action-btn .quick-action-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f7f3ec;
}

.gift-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gift-cards .gift-card {
  background: white;
  border: 1px solid #ede5d8;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.gift-cards .gift-card .gift-card-icon {
  width: 56px;
  height: 56px;
  background: #f7f3ec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.gift-cards .gift-card .gift-card-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: #2a2015;
}
.gift-cards .gift-card .gift-card-status {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
}
.gift-cards .gift-card .gift-card-status.status-stored {
  background: rgba(80, 160, 80, 0.1);
  color: #3a8a3a;
}
.gift-cards .gift-card .gift-card-body {
  flex: 1;
}
.gift-cards .gift-card .gift-card-body .gift-card-type {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 6px;
}
.gift-cards .gift-card .gift-card-body .gift-card-title {
  font-size: 15px;
  font-weight: 500;
  color: #2a2015;
  margin-bottom: 4px;
}
.gift-cards .gift-card .gift-card-body .gift-card-detail {
  font-size: 13px;
  color: #9a8c78;
  line-height: 1.5;
}
.gift-cards .gift-card .gift-card-body .gift-card-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gift-cards .gift-card .gift-card-body .gift-card-meta .gift-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9a8c78;
}
.gift-cards .gift-card .gift-card-body .gift-card-meta .gift-meta-item svg {
  width: 12px;
  height: 12px;
  stroke: #9a8c78;
  fill: none;
  stroke-width: 1.5;
}

/* ==========================================================================
   App-specific additions (SPA panel system, radio toggle, utilities)
   ========================================================================== */

/* ---------- SPA Panel Layout ---------- */
[data-panel="top"] { flex-shrink: 0; }
[data-panel="left"] { flex-shrink: 0; }
[data-panel="center"] { flex: 1; overflow-y: auto; }
[data-panel="bottom"] { flex-shrink: 0; }
[data-panel="right"] { flex-shrink: 0; }
[data-panel="modal"] { display: none; }

/* ---------- Radio-based Tree View Toggle (app uses fieldset instead of custom switch) ---------- */
fieldset.tree-view-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ede5d8;
    padding: 6px 14px;
    background: white;
    font-size: 13px;
    color: #5a4e3a;
}

fieldset.tree-view-toggle label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

fieldset.tree-view-toggle input[type="radio"] {
    accent-color: #a07840;
}

/* ---------- Tree Union Diamond ---------- */
.tree-union-diamond {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 4px;
}

/* ---------- Tree Section Divider ---------- */
.tree-section-divider {
    width: 100%;
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tree-section-divider::before,
.tree-section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ede5d8;
}

.tree-section-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a8c78;
    white-space: nowrap;
}

.tree-row-extended {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    padding: 16px 32px;
    text-align: center;
    font-size: 12px;
    color: #9a8c78;
    border-top: 1px solid #ede5d8;
    background: white;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    color: #2a2015;
    background: #f7f3ec;
    border: 1px solid #ede5d8;
    padding: 10px 14px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #c9a96e;
}

/* ---------- Utilities ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-auto { margin-top: auto; }
.hidden { display: none; }

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-body {
    margin: 0;
    background: #f7f3ec;
    min-height: 100vh;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: #1e2438;
    padding: 56px 48px 40px;
}

.login-eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a96e;
    margin-bottom: 12px;
}

.login-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 40px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-field {
    margin-bottom: 24px;
}

.login-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.login-field input[type="email"],
.login-field input[type="password"],
.login-field input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 16px;
    font-family: "Jost", sans-serif;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s;
}

.login-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.login-field input:focus {
    border-color: #c9a96e;
}

.login-password-wrap {
    position: relative;
}

.login-password-wrap input {
    padding-right: 48px;
}

.login-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.login-password-toggle:hover,
.login-password-toggle.active {
    color: rgba(255, 255, 255, 0.6);
}

.login-forgot {
    font-size: 13px;
    color: #c9a96e;
    text-decoration: none;
    margin-bottom: 32px;
    align-self: flex-start;
}

.login-forgot:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    background: #c9a96e;
    border: none;
    padding: 18px;
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1e2438;
    cursor: pointer;
    transition: background 0.2s;
}

.login-submit:hover {
    background: #b8963e;
}

.login-encryption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Loading Indicator
   ========================================================================== */

.tree-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 64px 0;
    font-size: 13px;
    color: #9a8c78;
}

.tree-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ede5d8;
    border-top-color: #c9a96e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
