:root {
  --lt-bg: #f4f7f2;
  --lt-sky-top: #dce9f5;
  --lt-sky-bottom: #eef6fb;
  --lt-ground: #c8d9b8;
  --lt-ground-dark: #a8bf94;
  --lt-trunk: #6b4f3a;
  --lt-leaf: #4a9b5f;
  --lt-leaf-light: #6fbf7a;
  --lt-leaf-dark: #2f7a48;
  --lt-accent: #2d6a4f;
  --lt-life: #2d6a4f;
  --lt-love: #9b4d6a;
  --lt-me: #4a6fa5;
  --lt-text: #1f2d24;
  --lt-muted: #5a6b60;
  --lt-card: #ffffff;
  --lt-shadow: 0 12px 32px rgba(31, 45, 36, 0.08);
  --lt-radius: 18px;
  --lt-font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.lt-body {
  font-family: var(--lt-font);
  color: var(--lt-text);
  background: var(--lt-bg);
  line-height: 1.5;
}

.lt-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lt-hidden {
  display: none !important;
}

.lt-header {
  padding: 1.5rem 1.25rem 0.75rem;
  border-bottom: 1px solid #e2ebe4;
  background: linear-gradient(180deg, #fafcf9, var(--lt-bg));
}

.lt-header__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.lt-brand-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--lt-text);
  transition: transform 0.15s ease, background 0.15s ease;
}

.lt-brand-home:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.65);
}

.lt-brand-home__logo {
  display: block;
  max-height: 2.5rem;
  width: auto;
}

.lt-brand-home__fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--lt-accent);
}

.lt-brand-home__house {
  display: block;
  flex-shrink: 0;
}

.lt-brand-home__label {
  white-space: nowrap;
}

.lt-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lt-accent);
  font-weight: 600;
}

.lt-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lt-subtitle {
  margin: 0 auto 0.75rem;
  max-width: 44rem;
  color: var(--lt-muted);
  font-size: 1rem;
}

.lt-header__links {
  margin-top: 0.5rem;
}

.lt-link {
  color: var(--lt-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}

.lt-link:hover {
  text-decoration: underline;
}

.lt-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
}

.lt-section-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lt-text);
  line-height: 1.35;
}

.lt-root-grid {
  display: grid;
  gap: 1rem;
}

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

.lt-root-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--lt-radius);
  background: var(--lt-card);
  box-shadow: var(--lt-shadow);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.lt-root-card:hover {
  transform: translateY(-2px);
}

.lt-root-card--life {
  border-color: rgba(45, 106, 79, 0.25);
}
.lt-root-card--life:hover {
  border-color: var(--lt-life);
}

.lt-root-card--love {
  border-color: rgba(155, 77, 106, 0.25);
}
.lt-root-card--love:hover {
  border-color: var(--lt-love);
}

.lt-root-card--me {
  border-color: rgba(74, 111, 165, 0.25);
}
.lt-root-card--me:hover {
  border-color: var(--lt-me);
}

.lt-root-card__title {
  font-size: 1.45rem;
  font-weight: 700;
}

.lt-root-card--life .lt-root-card__title { color: var(--lt-life); }
.lt-root-card--love .lt-root-card__title { color: var(--lt-love); }
.lt-root-card--me .lt-root-card__title { color: var(--lt-me); }

.lt-root-card__tagline {
  font-size: 0.92rem;
  color: var(--lt-muted);
}

.lt-root-card__count {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lt-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lt-back {
  margin: 0 0 1rem;
  padding: 0.35rem 0;
  border: none;
  background: none;
  color: var(--lt-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lt-back:hover {
  text-decoration: underline;
}

.lt-root-header__title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.lt-root-header__tagline {
  margin: 0 0 1.25rem;
  color: var(--lt-muted);
}

.lt-branch-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 600px) {
  .lt-branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lt-branch-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dde8e0;
  border-radius: 14px;
  background: var(--lt-card);
  box-shadow: 0 4px 16px rgba(31, 45, 36, 0.05);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.lt-branch-card:hover {
  border-color: #b9d4c3;
  transform: translateY(-1px);
}

.lt-branch-card__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.lt-branch-card__desc {
  font-size: 0.88rem;
  color: var(--lt-muted);
}

.lt-branch-card__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lt-accent);
}

.lt-branch-header__root {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lt-muted);
}

.lt-branch-header__title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
}

.lt-branch-header__desc {
  margin: 0 0 1.25rem;
  color: var(--lt-muted);
  max-width: 36rem;
}

.lt-branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

/* Natural expression input */
.lt-express {
  background: var(--lt-card);
  border-radius: var(--lt-radius);
  box-shadow: var(--lt-shadow);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.lt-express--central {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(45, 106, 79, 0.12);
}

.lt-express__heading {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lt-express__heading--sm {
  font-size: 1rem;
}

.lt-express__prompt {
  margin: 0 0 0.85rem;
  color: var(--lt-muted);
  font-size: 0.98rem;
}

.lt-express__label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1rem;
  font-weight: 600;
}

.lt-express__form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lt-express__input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  border: 1px solid rgba(31, 45, 36, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--lt-text);
  resize: vertical;
  min-height: 5.5rem;
}

.lt-express__input::placeholder {
  color: #8e96a3;
  white-space: pre-line;
}

.lt-express__input:focus {
  outline: none;
  border-color: rgba(45, 106, 79, 0.45);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.lt-express__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--lt-muted);
}

.lt-express__keys {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  opacity: 0.85;
}

.lt-express__actions {
  display: flex;
  justify-content: flex-end;
}

.lt-send-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, #3d5a9e 0%, #2f4780 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(47, 71, 128, 0.28);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.lt-send-btn:hover {
  filter: brightness(1.05);
}

.lt-send-btn:active {
  transform: scale(0.98);
}

.lt-send-btn__icon {
  display: block;
}

@media (min-width: 520px) {
  .lt-send-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .lt-send-btn {
    padding: 0.65rem 0.85rem;
  }
}

.lt-placement {
  background: #f0f6f2;
  border: 1px solid #c5dcc8;
  border-radius: var(--lt-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.lt-placement__lead {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--lt-accent);
}

.lt-placement__root-branch {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.lt-placement__root--life { color: var(--lt-life); }
.lt-placement__root--love { color: var(--lt-love); }
.lt-placement__root--me { color: var(--lt-me); }

.lt-placement__arrow {
  color: var(--lt-muted);
  font-weight: 400;
}

.lt-placement__alternatives {
  margin: 0 0 0.65rem;
  padding-left: 1.2rem;
  font-weight: 600;
}

.lt-placement__safety {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #d4e4d8;
  font-size: 0.88rem;
  color: var(--lt-muted);
  line-height: 1.45;
}

.lt-clarify {
  margin: 0.5rem 0 0.85rem;
}

.lt-clarify__prompt {
  margin: 0 0 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.lt-clarify__choices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lt-clarify__btn {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #c5dcc8;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lt-clarify__btn:hover {
  border-color: var(--lt-accent);
  background: #f8fbf9;
}

.lt-manual {
  margin: 0.5rem 0 0.85rem;
}

.lt-manual__prompt {
  margin: 0 0 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.lt-manual__roots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.lt-manual__root {
  padding: 0.45rem 0.75rem;
  border: 1px solid #d8e4dc;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.lt-manual__root--life { color: var(--lt-life); }
.lt-manual__root--love { color: var(--lt-love); }
.lt-manual__root--me { color: var(--lt-me); }

.lt-manual__root.is-selected,
.lt-manual__branch.is-selected {
  border-color: var(--lt-accent);
  background: #eef7f1;
}

.lt-manual__branches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lt-manual__branch {
  padding: 0.4rem 0.7rem;
  border: 1px solid #dde8e0;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.lt-manual__branch:hover {
  border-color: #b9d4c3;
}

.lt-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.lt-placement__type {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--lt-muted);
}

.lt-suggested-type {
  font-weight: 600;
  color: var(--lt-text);
  font-style: italic;
}

.lt-placement__question {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.lt-placement__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lt-items {
  background: var(--lt-card);
  border-radius: var(--lt-radius);
  box-shadow: var(--lt-shadow);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.lt-items__title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.lt-items__empty {
  margin: 0;
  color: var(--lt-muted);
  font-size: 0.92rem;
}

.lt-items__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.lt-item {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border-left: 4px solid #c5d9cc;
  background: #f8fbf9;
}

.lt-item--note { border-left-color: #6fbf7a; }
.lt-item--question { border-left-color: #4a6fa5; }
.lt-item--reflection { border-left-color: #9b4d6a; }
.lt-item--idea { border-left-color: #c9a227; }
.lt-item--task { border-left-color: #6b5b95; }
.lt-item--memory { border-left-color: #b56576; }

.lt-item__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.lt-item__suggested {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lt-muted);
  font-style: italic;
}

.lt-item__suggested .lt-suggested-type,
.lt-item__type {
  font-style: italic;
  color: var(--lt-text);
}

.lt-item__time {
  font-size: 0.78rem;
  color: var(--lt-muted);
}

.lt-item__delete {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--lt-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.lt-item__delete:hover {
  color: #b44;
}

.lt-item__text {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

.lt-placeholders {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #eef3ef;
  border: 1px dashed #c5d4ca;
}

.lt-placeholders__title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--lt-muted);
}

.lt-placeholders__text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--lt-muted);
}

.lt-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lt-muted);
}

.lt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border: 1px solid #d8e4dc;
  border-radius: 12px;
  background: #f8fbf9;
  color: var(--lt-text);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.lt-btn:hover {
  transform: translateY(-1px);
  border-color: #b9d4c3;
  background: #eef7f1;
}

.lt-btn--primary {
  background: var(--lt-accent);
  border-color: var(--lt-accent);
  color: #fff;
}

.lt-btn--primary:hover {
  background: #245a42;
  border-color: #245a42;
}

.lt-btn--ghost {
  background: transparent;
  color: var(--lt-muted);
}

.lt-btn--sm {
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
}

.lt-dialog {
  border: none;
  border-radius: var(--lt-radius);
  padding: 0;
  max-width: min(420px, 92vw);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.lt-dialog::backdrop {
  background: rgba(31, 45, 36, 0.35);
}

.lt-dialog__form {
  padding: 1.25rem;
}

.lt-dialog__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.lt-field {
  display: block;
  margin-bottom: 1rem;
}

.lt-field__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.lt-field__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8e4dc;
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}

.lt-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Sapling (secondary) */
.lt-sapling {
  margin-top: 2rem;
  border-radius: var(--lt-radius);
  background: var(--lt-card);
  box-shadow: var(--lt-shadow);
  overflow: hidden;
}

.lt-sapling__summary {
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--lt-muted);
  font-size: 0.92rem;
}

.lt-sapling__body {
  display: grid;
  gap: 1rem;
  padding: 0 1rem 1rem;
}

@media (min-width: 640px) {
  .lt-sapling__body {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.lt-sapling__scene {
  position: relative;
  min-height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--lt-sky-top), var(--lt-sky-bottom) 58%, var(--lt-ground) 58%, var(--lt-ground-dark));
}

.lt-scene__sky,
.lt-scene__ground {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lt-scene__ground {
  top: 58%;
}

.lt-tree-host {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
}

.lt-tree {
  width: 100%;
  height: 100%;
}

.lt-tree .lt-trunk { fill: var(--lt-trunk); }
.lt-tree .lt-leaf { fill: var(--lt-leaf); }
.lt-tree .lt-leaf--b { fill: var(--lt-leaf-light); }
.lt-tree .lt-leaf--c { fill: var(--lt-leaf-dark); }
.lt-tree .lt-seed { fill: #8b5e3c; }
.lt-tree .lt-root { fill: #7a5538; opacity: 0.85; }

.lt-stage-label {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  margin: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lt-accent);
}

.lt-stats {
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
}

.lt-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.lt-stat dt {
  margin: 0;
  color: var(--lt-muted);
}

.lt-stat dd {
  margin: 0;
  font-weight: 600;
}

.lt-progress {
  height: 8px;
  border-radius: 999px;
  background: #e4ece6;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.lt-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--lt-leaf-dark), var(--lt-leaf-light));
  transition: width 0.4s ease;
}

.lt-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.lt-actions__grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lt-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: var(--lt-muted);
  font-size: 0.82rem;
}

.lt-footer code {
  font-size: 0.78rem;
  background: #eef3ef;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.lt-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(31, 45, 36, 0.92);
  color: #fff;
  font-size: 0.88rem;
  z-index: 30;
}

.lt-toast[hidden] {
  display: block;
  opacity: 0;
  pointer-events: none;
}
