.tree-settings-view {
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 64px);
  color: #4f3d29;
  background:
    linear-gradient(rgba(244, 232, 197, 0.77), rgba(238, 222, 181, 0.82)),
    url('/assets/images/parchment.png') center / 520px;
}

.tree-settings-inner { width: min(880px, 100%); margin: 0 auto; }
.tree-settings-header h1 { margin: 0; color: #4a3927; font: 500 clamp(32px, 5vw, 48px)/1 var(--font-display); }
.tree-settings-header > p:last-child { max-width: 620px; margin: 12px 0 0; color: #6e5a3e; line-height: 1.55; }

.tree-management-status { min-height: 22px; margin: 16px 0 0; color: #655238; font-size: 13px; }
.tree-management-status[data-error='true'] { color: #852f26; }

.tree-settings-section { margin-top: 30px; }
.tree-settings-section > h2 { margin: 0 0 6px; color: #564229; font: 500 23px/1.2 var(--font-display); }
.tree-settings-section > p { margin: 0 0 14px; color: #725f44; font-size: 13px; line-height: 1.5; }

.current-tree-card,
.archived-tree-card,
.archived-tree-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(97, 72, 35, 0.25);
  border-radius: 14px;
  background: rgba(255, 247, 220, 0.43);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.46);
}

.current-tree-card h2,
.archived-tree-card h3 { margin: 0; color: #4e3b26; font: 500 21px/1.2 var(--font-display); }
.current-tree-card p,
.archived-tree-card p { margin: 6px 0 0; color: #756247; font-size: 12px; }
.tree-management-empty-copy { margin: 0; color: #705d42; }
.archived-tree-list { display: grid; gap: 12px; }
.archived-tree-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.archived-tree-actions .button,
.current-tree-card .button { min-height: 36px; padding: 7px 13px; font-size: 11px; }

.archived-tree-empty { display: grid; min-height: 130px; place-items: center; align-content: center; text-align: center; }
.archived-tree-empty svg { width: 28px; height: 28px; color: #777547; }
.archived-tree-empty h3 { margin: 6px 0 0; font: 500 20px/1.2 var(--font-display); }
.archived-tree-empty p { margin: 5px 0 0; color: #756247; font-size: 12px; }

.tree-delete-warning {
  margin: 14px 0;
  padding: 13px 14px;
  border: 1px solid rgba(130, 54, 40, 0.32);
  border-radius: 9px;
  color: #71362e;
  background: rgba(139, 57, 43, 0.08);
  font-size: 13px;
  line-height: 1.45;
}

.tree-delete-instruction { margin: 2px 0 0; color: #655137; font-size: 13px; line-height: 1.5; }
.tree-delete-instruction code { user-select: all; color: #6d2f29; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .tree-settings-view { height: calc(100vh - 64px); padding: 24px 16px 40px; }
  .current-tree-card,
  .archived-tree-card { align-items: stretch; flex-direction: column; }
  .archived-tree-actions { flex-wrap: wrap; }
  .archived-tree-actions .button,
  .current-tree-card .button { width: 100%; }
}
