.lx { --lx-hosp: #eaf0f5; --lx-comm: var(--teal-mist); --lx-home: var(--sand-2); background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; color: var(--ink); }
.lx-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin-bottom: 12px; }
.lx-cap-title { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.lx-cap-note { font-size: 13px; color: var(--muted); }
.lx-scope { font-size: 14px; color: var(--ink-soft); margin: -4px 0 12px; }
.lx-levels { margin: 0; font-size: 14px; }
.lx-levels dt { font-weight: 650; color: var(--navy); margin-top: 8px; }
.lx-levels dd { margin: 2px 0 0; color: var(--ink-soft); }

.lx-body { display: block; }
.lx-stack { display: flex; flex-direction: column; min-width: 0; }

.lx-band { border-radius: 12px; padding: 12px; }
.lx-band.hosp { background: var(--lx-hosp); }
.lx-band.comm { background: var(--lx-comm); }
.lx-band.home { background: var(--lx-home); }
.lx-band.out { --o: .5; opacity: .5; }
.lx-band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 8px; }
.lx-band-head h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0; }
.lx-band-sub { font-size: 13px; color: var(--muted); margin: 0; }

.lx-hosp-rows { display: flex; flex-direction: column; gap: 8px; }
.lx-row { display: grid; gap: 8px; }
.lx-m { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 12px; box-shadow: 0 1px 2px rgba(18,48,74,.05); }
button.lx-m { cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; transition: border-color .2s, box-shadow .2s; }
button.lx-m:hover { border-color: var(--teal-2); }
button.lx-m.sel { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.lx-m .lx-name { display: block; font-weight: 650; color: var(--navy); font-size: 15px; line-height: 1.25; }
.lx-m .lx-sub { display: block; font-size: 12.5px; color: var(--teal); font-weight: 600; letter-spacing: .02em; }
.lx-m .lx-handles { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.4; margin-top: 3px; }
.lx-m .lx-tag { display: inline-block; margin-top: 5px; font-size: 11.5px; font-weight: 650; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 1px 8px; }
.lx-m.anchor { background: var(--navy); border-color: var(--navy); }
.lx-m.anchor .lx-name { color: #fff; }
.lx-m.anchor .lx-sub { color: #9fd3cd; }
.lx-m.anchor .lx-handles { color: #d6e2ec; }
button.lx-m.anchor.sel { box-shadow: 0 0 0 3px var(--focus); }
.lx-m.out { --o: .45; opacity: .45; border-style: dashed; box-shadow: none; }
.lx-m.possible { background: transparent; border-style: dashed; box-shadow: none; }
.lx-variant, .lx-state { font-size: 13px; color: var(--ink-soft); line-height: 1.45; padding: 0 4px; }
.lx-variant .lx-name { font-weight: 650; color: var(--navy); }
.lx-state { display: flex; flex-direction: column; gap: 2px; }
.lx-variant.out, .lx-state.out { opacity: .5; }

.lx-stays { background: #0d2438; color: #e4edf3; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
.lx-stays-h { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9fd3cd; margin-bottom: 4px; }
.lx-stays ul { margin: 0; padding-left: 18px; }
.lx-stays .claim:hover, .lx-stays .claim:focus-visible, .lx-stays .claim[aria-expanded="true"] { text-decoration-color: rgba(159, 211, 205, .7); }

.lx-members { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }

.lx-lane { display: flex; gap: 12px; padding: 8px 0 8px 16px; min-height: 58px; }
.lx-arrow { position: relative; flex: none; width: 4px; margin-bottom: 10px; background: var(--teal); border-radius: 2px; transform-origin: top center; }
.lx-arrow::after { content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 11px solid var(--teal); }
.lx-lane-body { min-width: 0; padding: 2px 0; }
.lx-lane-lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); margin-bottom: 5px; }
.lx-fams { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-fam { font-size: 13px; line-height: 1.35; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--navy); border: 1px solid #c7e0db; }
.lx-fam.more { background: #fff; color: var(--muted); }


.lx-toggle { position: relative; padding-left: 34px !important; }
.lx-toggle .lx-tick { position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--teal); background: #fff; }
.lx-toggle[aria-pressed="true"] .lx-tick { background: var(--teal); }
.lx-toggle[aria-pressed="true"] .lx-tick::after { content: ""; position: absolute; left: 4px; top: 0; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lx-toggle[aria-pressed="false"] { background: transparent; border-style: dashed; box-shadow: none; }
.lx-toggle[aria-pressed="false"] .lx-name { color: var(--muted); font-weight: 500; }
.lx-toggle .lx-sub { color: var(--muted) !important; font-weight: 500 !important; }

.lx-sum .lx-band { padding: 10px 12px; }
.lx-sumanchor { margin-bottom: 6px; }
.lx-span { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.45; }
.lx-list { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.lx-sum-link { display: inline-block; margin-top: 12px; font-weight: 650; }

.lx-compact { padding: 12px; }
.lx-compact .lx-members { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.lx-compact .lx-m { padding: 7px 10px; }
.lx-compact .lx-m .lx-name { font-size: 13.5px; }
.lx-compact .lx-hosp-rows { gap: 5px; }
.lx-compact .lx-lane { min-height: 48px; padding-left: 10px; }
.lx-compact .lx-fam { font-size: 12px; padding: 2px 8px; }
.lx-compact .lx-cap-title { font-size: 1.1rem; }

.lx-wide { max-width: 1400px; }
.tl-place.lx-tl { grid-template-columns: 14px 1fr; }
.lx-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; background: var(--teal-2); }
.lx-tl.home .lx-dot { background: #c9a46a; }
.lx-tl.comm .lx-dot { background: var(--teal-2); }
.lx-tl.hosp .lx-dot { background: var(--navy-2); }
.lx-tl.anchor .lx-dot { background: var(--navy); box-shadow: 0 0 0 3px #cfdde8; }

.lx-mini { display: inline-flex; gap: 4px; margin-top: 6px; }
.lx-mini i { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line-soft); color: #6c767e; }
.lx-mini i.on.h { background: #f1e3c8; color: #5f4520; }
.lx-mini i.on.c { background: var(--teal); color: #fff; }
.lx-mini i.on.x { background: var(--navy); color: #fff; }

@media (min-width: 760px) { .lx-lib-tools { grid-template-columns: 1fr 1fr !important; } .lx-lib-tools > :first-child { grid-column: 1 / -1; } }

@keyframes lxIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: var(--o, 1); transform: none; } }
@keyframes lxGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes lxFade { from { opacity: 0; } to { opacity: 1; } }
.lx-pre .lx-step { opacity: 0; }
.lx-build .lx-step { opacity: 0; animation: lxIn .5s ease forwards; animation-delay: calc(var(--d, 0) * 150ms); }
.lx-build .lx-lane { opacity: 1; animation: none; }
.lx-build .lx-lane .lx-arrow { transform: scaleY(0); animation: lxGrow .6s ease-out forwards; animation-delay: calc(1.6s + (var(--d, 20) - 20) * 380ms); }
.lx-build .lx-lane .lx-lane-lbl, .lx-build .lx-lane .lx-fams { opacity: 0; animation: lxFade .45s ease forwards; animation-delay: calc(1.9s + (var(--d, 20) - 20) * 380ms); }
.lx-redraw .lx-lane .lx-arrow { animation: lxGrow .45s ease-out both; }
.lx-redraw .lx-lane .lx-lane-lbl, .lx-redraw .lx-lane .lx-fams { animation: lxFade .4s ease both; animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  .lx-pre .lx-step, .lx-build .lx-step, .lx-build .lx-lane .lx-arrow, .lx-build .lx-lane .lx-lane-lbl, .lx-build .lx-lane .lx-fams, .lx-redraw .lx-lane .lx-arrow, .lx-redraw .lx-lane .lx-lane-lbl, .lx-redraw .lx-lane .lx-fams { animation: none !important; transform: none !important; }
  .lx-pre .lx-step, .lx-build .lx-step, .lx-build .lx-lane-lbl, .lx-build .lx-fams { opacity: var(--o, 1) !important; }
}
@media (max-width: 520px) {
  .lx { padding: 12px; }
  .lx-members { grid-template-columns: 1fr 1fr; }
  .lx-lane { padding-left: 8px; gap: 10px; }
}

.lib-list a { overflow-wrap: anywhere; }

.sit { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin: 16px 0; display: grid; gap: 16px; }
.sit-h { font-size: 1.25rem; margin: 0; }
.sit-group { display: grid; gap: 8px; align-content: start; }
.sit-lbl { font-weight: 650; color: var(--navy); font-size: 15px; }
.sit-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.sit-list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); display: grid; gap: 4px; }
.seg { display: inline-flex; flex-wrap: wrap; justify-self: start; background: var(--sand-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { font: inherit; font-size: 15px; min-height: 40px; border: 0; background: none; border-radius: 999px; padding: 8px 16px; color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); font-weight: 650; box-shadow: 0 1px 3px rgba(18, 48, 74, .12); }
.sit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sit-chip { font: inherit; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer; }
.sit-chip::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--teal); background: #fff; }
.sit-chip[aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--navy); font-weight: 600; }
.sit-chip[aria-pressed="true"]::before { background: var(--teal); }
.sit-stops { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sit-stop { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--sand-2); padding: 10px 12px; }
.sit-stop h4 { font-size: 13.5px; margin: 0 0 6px; }
.sit-stop ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); }
.sit-dir { display: inline-block; font-size: 11.5px; font-weight: 650; border-radius: 999px; padding: 1px 8px; background: var(--sand); color: #5f4520; }
.sit-dir.easier { background: var(--teal-soft); color: #14524f; }
.sit-dir.harder { background: var(--warm-soft); color: #7a3a1c; }
.tl-mood { display: grid; grid-template-columns: 14px 1fr; gap: 10px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--teal-mist); border: 1px solid #c7e0db; }
.tl-mood .lx-dot { background: var(--teal); }
.tl-mood .pl-name { font-weight: 650; color: var(--navy); font-size: 15px; }
.tl-mood .pl-who { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.mood-phase { font-size: 12px; font-weight: 650; color: var(--teal); background: #fff; border: 1px solid #c7e0db; border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
@media (max-width: 520px) { .sit { padding: 14px; } .seg { justify-self: stretch; } .seg button { flex: 1 1 auto; padding: 8px 10px; } }
