/* ============================================
   ЛИЧНОЕ: цели, настроение, обзор недели, списки, желания, контакты, поездки (life.js)
   Цвета — только токены из начала style.css
   ============================================ */

/* ---------- общее ---------- */
.lf-bar { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--bg-beige); overflow: hidden; }
.lf-bar i { display: block; height: 100%; border-radius: 3px; background: var(--text); transition: width .4s ease; }
.lf-bar.is-thin { height: 4px; margin-top: 6px; }
.lf-bar.is-goal i { background: var(--gc, var(--accent)); }
.lf-bar.is-muted i { background: var(--faint); }
.lf-bar.is-over i { background: var(--red); }

.lf-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 520px; margin: 30px auto; padding: 36px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lf-empty > .ico { width: 28px; height: 28px; stroke-width: 1.3; color: var(--faint); }
.lf-empty b { font-size: 16px; color: var(--text); }
.lf-empty .btn-primary { margin-top: 8px; }
.lf-empty.is-small { margin: 10px 0; max-width: none; padding: 26px 18px; }

.lf-sub { margin: 26px 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lf-hint { font-size: 12.5px; }
.lf-pad { padding: 14px; }
.lf-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--bg-beige); color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.lf-tag .ico { width: 11px; height: 11px; }
.lf-badge { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 500; white-space: nowrap; }
.lf-badge.is-now { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.lf-badge.is-muted { background: var(--bg-beige); color: var(--muted); }
.lf-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; padding-left: 4px; }

.lf-year { display: flex; align-items: center; gap: 6px; }
.lf-year b { min-width: 44px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }

.lf-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 20px; border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow); overflow: hidden; }
.lf-summary > div { display: flex; flex-direction: column; padding: 16px 20px; border-left: 1px solid var(--line-soft); }
.lf-summary > div:first-child { border-left: none; }
.lf-summary span { font-size: 12.5px; color: var(--muted); }
.lf-summary b { margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lf-summary small { margin-top: 6px; font-size: 12px; color: var(--faint); }

/* окна */
.lf-modal .modal-box { width: min(620px, 100%); }
.lf-form h3 { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.lf-form textarea.cell { resize: vertical; line-height: 1.45; }
.lf-form .lf-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; color: var(--text); }
.lf-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-colors button { width: 24px; height: 24px; border: 2px solid var(--bg-soft); border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.lf-colors button.is-on { box-shadow: 0 0 0 2px var(--text); }
.lf-row-emoji { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }

/* ---------- ЦЕЛИ ---------- */
.lf-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.lf-goal { display: flex; flex-direction: column; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow); border-top: 3px solid var(--gc, var(--accent)); }
.lf-goal-head { display: flex; align-items: flex-start; gap: 12px; }
.lf-goal-emoji { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--gc, var(--accent)) 12%, transparent); font-size: 20px; }
.lf-goal-title { flex: 1; min-width: 0; }
.lf-goal-title h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.lf-goal-title p { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.lf-goal-pct { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lf-goal > .lf-bar { margin-top: 14px; }
.lf-krs { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.lf-kr-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lf-kr-title { flex: 1; min-width: 0; }
.lf-kr-val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lf-step { display: inline-flex; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; }
.lf-step button { width: 24px; height: 22px; border: none; background: var(--bg-soft); color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; }
.lf-step button + button { border-left: 1px solid var(--border); }
.lf-step button:hover { background: var(--bg-hover); color: var(--text); }
.lf-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.lf-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 9px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--bg-card); color: var(--text); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.lf-chip span { color: var(--muted); }
.lf-chip .st, .lf-chip .ico { width: 13px; height: 13px; flex: none; }
.lf-chip.is-done { color: var(--muted); text-decoration: line-through; }
.lf-chip.is-more { cursor: default; color: var(--muted); }
.lf-chip:hover:not(.is-more) { border-color: var(--border-strong); }
.lf-goal-done { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--green); font-size: 13px; font-weight: 500; }
.lf-goal.is-done .lf-goal-pct { color: var(--green); }

.lf-kr-list { display: flex; flex-direction: column; gap: 10px; }
.lf-kr-edit { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-card); }
.lf-kr-edit-top { display: flex; gap: 6px; align-items: center; }
.lf-kr-edit-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.lf-kr-edit-fields label:first-child { grid-column: 1 / -1; }
.lf-kr-edit .cell { background: var(--bg-soft) !important; font-size: 14px !important; }
.lf-picks { display: flex; flex-direction: column; max-height: 240px; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
.lf-picks.is-short { max-height: 160px; }
.au-body .lf-pick { flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); font-size: 13px; font-weight: 400; color: var(--text); cursor: pointer; }
.au-body .lf-pick:last-child { border-bottom: none; }
.au-body .lf-pick[hidden] { display: none; }
.lf-pick:hover { background: var(--row-hover); }
.lf-pick-key { color: var(--muted); font-size: 12px; white-space: nowrap; }
.lf-pick-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- НАСТРОЕНИЕ ---------- */
.m1 { --m: var(--red); }
.m2 { --m: color-mix(in srgb, var(--red) 50%, var(--amber)); }
.m3 { --m: var(--amber); }
.m4 { --m: color-mix(in srgb, var(--amber) 40%, var(--green)); }
.m5 { --m: var(--green); }

.lf-mood { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 12px; font-size: 13px; }
.lf-mood > span { margin-right: 4px; color: var(--muted); }
.lf-mood button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.lf-mood button i { width: 8px; height: 8px; border-radius: 50%; background: var(--m); }
.lf-mood button:hover { border-color: var(--border-strong); color: var(--text); }
.lf-mood button.is-on { border-color: var(--m); background: color-mix(in srgb, var(--m) 14%, var(--bg-soft)); color: var(--text); font-weight: 600; }
.lf-mood em { margin-left: 4px; color: var(--faint); font-style: normal; }

.lf-mood-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-beige); vertical-align: 0; }
.lf-mood-dot[class*=" m"] { background: var(--m); }

.lf-heat-card { padding: 18px 20px; border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow); }
.lf-heat-wrap { position: relative; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.lf-heat-days { display: grid; grid-template-rows: 16px repeat(7, 13px); gap: 3px; font-size: 10px; color: var(--faint); }
.lf-heat-days span:first-child { height: 16px; }
.lf-heat-main { display: flex; flex-direction: column; gap: 3px; }
.lf-heat-months { display: grid; grid-template-columns: repeat(53, 13px); column-gap: 3px; height: 16px; font-size: 10px; color: var(--faint); }
.lf-heat-months span { white-space: nowrap; }
.lf-heat { display: grid; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; grid-auto-flow: column; gap: 3px; }
.lf-heat button, .lf-heat i { width: 13px; height: 13px; padding: 0; border: none; border-radius: 3px; background: var(--bg-beige); }
.lf-heat i.is-out { background: transparent; }
.lf-heat button { cursor: pointer; }
.lf-heat button[class*="m"] { background: var(--m); }
.lf-heat button.is-future { opacity: .45; cursor: default; }
.lf-heat button.is-today { box-shadow: 0 0 0 1.5px var(--text); }
.lf-heat button:not(:disabled):hover { box-shadow: 0 0 0 1.5px var(--accent); }
.lf-heat-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 14px; font-size: 13px; }
.lf-heat-foot .muted { font-size: 13px; }
.lf-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.lf-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.lf-legend em { color: var(--faint); font-style: normal; font-variant-numeric: tabular-nums; }
.lf-day-mood { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- ГЛАВНАЯ ---------- */
.lf-home { margin-bottom: 20px; }
.lf-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.lf-week > div { display: flex; flex-direction: column; gap: 2px; }
.lf-week span { font-size: 12.5px; color: var(--muted); }
.lf-week b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lf-week small { font-size: 12px; }
.lf-week-moods { display: flex; gap: 4px; margin-top: 4px; }
.lf-week-cap { margin-top: 14px; }
.lf-soon-list { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 12px; }
.lf-srow { display: grid; grid-template-columns: 18px 1fr; align-items: center; column-gap: 12px; width: 100%; padding: 10px 0; border: none; border-bottom: 1px solid var(--line-soft); background: none; color: var(--text); text-align: left; cursor: pointer; }
.lf-srow:last-child { border-bottom: none; }
.lf-srow > .ico { color: var(--muted); }
.lf-srow span { display: flex; flex-direction: column; min-width: 0; }
.lf-srow b { font-size: 13.5px; font-weight: 500; }
.lf-srow small { font-size: 12px; color: var(--muted); }
.lf-srow .lf-bar { grid-column: 2; }
.lf-srow:hover b { color: var(--accent-ink); }
.lf-soon-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* календарь */
.cal-chip.lf-cal { display: flex; align-items: center; gap: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-chip.lf-cal .ico { width: 10px; height: 10px; flex: none; }
.cal-chip.is-bday { --p: var(--red); }
.cal-chip.is-trip { --p: var(--accent); }
.lf-day-item .ico { width: 12px; height: 12px; vertical-align: -1px; }

/* ---------- СПИСКИ ---------- */
.lf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.lf-toolbar .seg em { margin-left: 5px; color: var(--faint); font-style: normal; font-size: 11.5px; }
.lf-search { width: 220px; border-color: var(--border); background: var(--bg-soft); }
.lf-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding: 10px; border-radius: 14px; background: var(--bg-soft); box-shadow: var(--shadow); }
.lf-quick .cell { flex: 1 1 180px; border-color: var(--border); background: var(--bg-card); }
.lf-quick select.cell { flex: 0 0 130px; }
.lf-items { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow); }
.lf-items > .lf-empty { margin: 0; border: none; }
.lf-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.lf-item:last-child { border-bottom: none; }
.lf-item-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--bg-beige); color: var(--muted); }
.lf-item-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.lf-item-main b { font-size: 14px; font-weight: 600; }
.lf-item-main .muted { font-size: 12.5px; }
.lf-item-main p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); white-space: pre-line; }
.lf-item-main a { color: var(--accent-ink); }
.lf-item.is-done .lf-item-ico { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.lf-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.lf-status { width: auto; border-color: var(--border); background: var(--bg-card); font-size: 12.5px; }
.lf-stars { display: inline-flex; gap: 1px; }
.lf-stars button, .lf-stars i { display: inline-grid; place-items: center; padding: 1px; border: none; background: none; color: var(--border-strong); cursor: pointer; }
.lf-stars i { cursor: default; }
.lf-stars .ico { width: 15px; height: 15px; }
.lf-stars .is-on { color: var(--amber); }
.lf-stars button:hover { color: var(--amber); }
.lf-rate-row { display: flex; }
.lf-rate-row .ico { width: 20px; height: 20px; }

/* желания */
.lf-share { margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); box-shadow: var(--shadow); }
.lf-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.lf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lf-switch > i { position: relative; width: 38px; height: 22px; flex: none; border-radius: 11px; background: var(--border-strong); transition: background .2s ease; }
.lf-switch > i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--gray-0); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s ease; }
.lf-switch input:checked + i { background: var(--green); }
.lf-switch input:checked + i::after { transform: translateX(16px); }
.lf-switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--accent-ring); }
.lf-switch span { display: flex; flex-direction: column; gap: 3px; }
.lf-switch b { font-size: 14px; }
.lf-switch small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.lf-wishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.lf-wish { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow); }
.lf-wish-top { display: flex; align-items: center; gap: 6px; }
.lf-wish-top .icon-btn { margin-left: auto; }
.lf-wish > b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.lf-wish p { font-size: 13px; line-height: 1.45; color: var(--muted); white-space: pre-line; }
.lf-price { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lf-wish-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.lf-wish-foot a { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.lf-wish.is-got { opacity: .65; }
.lf-wish.is-got > b { text-decoration: line-through; }
.lf-prio { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.lf-prio.p3 { color: var(--red); }
.lf-prio.p2 { color: var(--accent-ink); }
.lf-people { display: flex; flex-wrap: wrap; gap: 10px; }
.lf-person { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); color: var(--text); text-align: left; cursor: pointer; }
.lf-person:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.lf-person span { display: flex; flex-direction: column; }
.lf-person b { font-size: 13.5px; }
.lf-person small { font-size: 12px; color: var(--muted); }

/* желания в профиле человека */
.lf-pwish { display: flex; flex-direction: column; gap: 8px; }
.lf-pwish-item { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-card); }
.lf-pwish-item b { display: block; font-size: 13.5px; }
.lf-pwish-item small { font-size: 12px; color: var(--muted); }
.lf-pwish-item small a { color: var(--accent-ink); }
.lf-pwish-item p { margin-top: 4px; font-size: 12.5px; color: var(--muted); white-space: pre-line; }
.lf-pwish-item .btn-ghost { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; }
.lf-pwish-item.is-taken { opacity: .7; }

/* ---------- КОНТАКТЫ ---------- */
.lf-soon-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.lf-soon-strip[hidden] { display: none; }
.lf-soon-h { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 13px; font-weight: 600; }
.lf-soon { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft); color: var(--text); font-size: 12.5px; cursor: pointer; }
.lf-soon span { color: var(--muted); }
.lf-soon.is-today { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--bg-soft)); }
.lf-soon:hover { border-color: var(--border-strong); }

.lf-ct { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.lf-ct-side { display: flex; flex-direction: column; gap: 10px; }
.lf-ct-side .cell { border-color: var(--border); background: var(--bg-soft); }
.lf-ct-list { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow); }
.lf-seg-full { display: flex; margin: 8px; }
.lf-seg-full button { flex: 1; padding-left: 6px; padding-right: 6px; font-size: 12px; white-space: nowrap; }
.lf-crow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border: none; border-top: 1px solid var(--line-soft); background: none; color: var(--text); text-align: left; cursor: pointer; }
.lf-crow:hover { background: var(--row-hover); }
.lf-crow.is-active { background: var(--accent-soft); }
.lf-crow span { display: flex; flex-direction: column; min-width: 0; }
.lf-crow b { overflow: hidden; font-size: 13.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.lf-crow small { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.lf-crow small .ico { width: 12px; height: 12px; }
.is-alert { color: var(--red) !important; }
.lf-av { display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, var(--bg-soft)); color: var(--c); font-size: calc(var(--s) * .4); font-weight: 600; }

.lf-ct-card { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow); min-height: 300px; }
.lf-ct-card > .lf-empty { margin: 20px auto; border: none; }
.lf-chead { display: flex; align-items: center; gap: 16px; }
.lf-chead-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.lf-cname, .lf-cgroup { width: 100%; padding: 2px 4px; margin-left: -4px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--text); outline: none; }
.lf-cname { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.lf-cgroup { font-size: 13.5px; color: var(--muted); }
.lf-cname:hover, .lf-cgroup:hover { border-color: var(--border); }
.lf-cname:focus, .lf-cgroup:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.lf-cnotes { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: var(--bg-card); font-size: 13px; }
.lf-cnotes span { display: flex; align-items: center; gap: 6px; }
.lf-cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin-top: 18px; }
.lf-cgrid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lf-cgrid .cell, .lf-talk .cell, .lf-cnote { border-color: var(--border); background: var(--bg-card); color: var(--text); font-size: 14px; }
.lf-bday { display: grid; grid-template-columns: 64px 1fr 72px; gap: 6px; }
.lf-cacts { display: flex; gap: 8px; margin-top: 14px; }
.lf-cacts a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.lf-talk { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-talk input[type="date"] { flex: 0 0 150px; }
.lf-talk input[name="text"] { flex: 1 1 240px; }
.lf-log { display: flex; flex-direction: column; margin-top: 12px; }
.lf-log-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.lf-log-row > span { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.lf-log-row p { line-height: 1.45; white-space: pre-line; }
.lf-cnote { width: 100%; resize: vertical; line-height: 1.45; }

/* ---------- ПОЕЗДКИ ---------- */
.lf-trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.lf-trip { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 4px 12px; padding: 16px; border: none; border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow); color: var(--text); text-align: left; cursor: pointer; transition: transform .15s ease; }
.lf-trip:hover { transform: translateY(-1px); }
.lf-trip.is-past { opacity: .75; }
.lf-trip-emoji { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-beige); font-size: 22px; }
.lf-trip-emoji.is-big { width: 60px; height: 60px; border-radius: 16px; font-size: 30px; }
.lf-trip-main { display: flex; flex-direction: column; min-width: 0; }
.lf-trip-main b { font-size: 15px; font-weight: 600; }
.lf-trip-main small { font-size: 12.5px; color: var(--muted); }
.lf-trip-meta { display: flex; grid-column: 1 / -1; gap: 14px; }
.lf-trip-meta:empty { display: none; }
.lf-trip-meta > span { flex: 1; margin-top: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lf-trip-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.lf-trip-head > div { flex: 1; min-width: 0; }
.lf-trip-head h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.lf-trip-head .muted .ico { vertical-align: -2px; }
.lf-trip-notes { width: 100%; border-color: var(--border); background: var(--bg-soft); font-size: 14px; line-height: 1.5; resize: vertical; }

.lf-day { margin-bottom: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); box-shadow: var(--shadow); }
.lf-day h4 { margin-bottom: 8px; font-size: 13.5px; font-weight: 600; }
.lf-plan-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.lf-plan-item.is-done .lf-plan-text { color: var(--muted); text-decoration: line-through; }
.lf-plan-time { min-width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lf-plan-text { flex: 1; }
.lf-plan-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.lf-plan-add .cell { flex: 1 1 200px; border-color: var(--border); background: var(--bg-card); font-size: 13.5px; }
.lf-plan-add input[type="time"], .lf-plan-add select.cell, .lf-plan-add input[type="date"] { flex: 0 0 auto; width: auto; }
.lf-plan-add .num { flex: 0 1 130px; }
.lf-day .lf-plan-add .cell { background: transparent; border-color: var(--line-soft); }

.lf-pack-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.lf-pack-prog { flex: 1 1 220px; font-size: 13px; color: var(--muted); }
.lf-pack-prog b { color: var(--text); }
.lf-pack { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.lf-pack section { padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); box-shadow: var(--shadow); }
.lf-pack h4 { margin-bottom: 6px; font-size: 13.5px; font-weight: 600; }
.lf-pack h4 em { color: var(--faint); font-style: normal; font-weight: 400; }
.lf-pack-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; cursor: pointer; }
.lf-pack-item span { flex: 1; }
.lf-pack-item .icon-btn { opacity: 0; }
.lf-pack-item:hover .icon-btn { opacity: 1; }
.lf-pack-item.is-done span { color: var(--muted); text-decoration: line-through; }

.lf-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px; background: var(--bg-soft); box-shadow: var(--shadow); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lf-table th { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; }
.lf-table td { padding: 6px 14px; border-bottom: 1px solid var(--line-soft); }
.lf-table tr:last-child td { border-bottom: none; }
.lf-table .cell { max-width: 150px; }
.lf-exp { display: flex; flex-direction: column; margin-top: 10px; }
.lf-exp-row { display: grid; grid-template-columns: 50px auto 1fr auto auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.lf-exp-row > span:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.lf-exp-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-exp-row b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- телефоны ---------- */
@media (max-width: 760px) {
  .lf-ct { grid-template-columns: 1fr; }
  .lf-goals, .lf-trips { grid-template-columns: 1fr; }
  .lf-ct-card { padding: 18px; }
  .lf-log-row { grid-template-columns: 1fr auto; }
  .lf-log-row > span { grid-column: 1 / -1; }
  .lf-search { width: 100%; }
  .lf-item { flex-wrap: wrap; }
  .lf-item-side { flex-direction: row; align-items: center; width: 100%; padding-left: 44px; }
  .lf-exp-row { grid-template-columns: 44px 1fr auto auto; }
  .lf-exp-row .lf-tag { display: none; }
}
