:root {
  --mint-800: #1f6f65;
  --mint-700: #2f9e8f;
  --mint-600: #3eb7a6;
  --mint-500: #56c7b6;
  --mint-100: #dff5ef;
  --mint-50: #f2fbf8;
  --paper: #f6f8f7;
  --card: #ffffff;
  --ink: #16302c;
  --ink-2: #35514b;
  --muted: #6b7d79;
  --line: #e4ece9;
  --warn: #a9701c;
  --warn-bg: #fdf6e7;
  --danger: #b6402f;
  --danger-bg: #fdeeea;
  --shadow: 0 10px 30px rgba(22, 48, 44, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--mint-700); text-decoration: none; }

.lf-shell {
  max-width: 560px;
  overflow-x: hidden;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  padding-bottom: 96px;
  position: relative;
}

/* ---------- header ---------- */
.lf-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, #eafaf5 0%, #f6f8f7 100%);
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(47, 158, 143, 0.08);
}

.lf-head-row { display: flex; align-items: center; gap: 10px; }

.lf-avatar {
  width: 42px; height: 42px; border-radius: 14px;
  background: radial-gradient(120% 120% at 20% 10%, #7ee0cd 0%, #2f9e8f 55%, #1f6f65 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: 0 6px 16px rgba(47, 158, 143, 0.32);
  flex: 0 0 auto;
}

.lf-head-text { flex: 1; min-width: 0; }
.lf-head-text h1 { margin: 0; font-size: 18px; letter-spacing: -0.2px; }
.lf-head-text p { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }

.lf-back {
  font-size: 13px; color: var(--muted); padding: 6px 10px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line);
}

.lf-clock {
  margin-top: 10px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 8px 10px;
  box-shadow: 0 2px 6px rgba(22,48,44,.03);
}
.lf-clock .time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; white-space: nowrap; }
.lf-clock .lab { font-size: 11.5px; color: var(--muted); white-space: nowrap; }

@media (max-width: 440px) {
  #simDate { display: none; }
}
.clock-main { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.clock-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: auto; }
.lf-chip-btn {
  border: 1px solid var(--line); background: var(--mint-50); color: var(--mint-800);
  border-radius: 10px; padding: 5px 9px; font-size: 12px; font-weight: 600;
}
.lf-chip-btn:active { transform: scale(0.97); }

/* ---------- tabs ---------- */
.lf-tabs {
  display: flex; gap: 4px; margin-top: 10px;
  background: #fff; padding: 4px; border-radius: 14px;
  border: 1px solid var(--line);
}
.lf-tab {
  flex: 1; text-align: center; padding: 7px 4px; border-radius: 10px;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.lf-tab.is-active { background: var(--mint-700); color: #fff; }

/* ---------- layout ---------- */
.lf-main { padding: 14px 18px 10px; }
.lf-section { margin-bottom: 18px; }
.lf-section-title {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.lf-section-title .sub { font-weight: 500; letter-spacing: 0; text-transform: none; color: #9aaba7; }

.lf-card {
  background: var(--card); border-radius: var(--radius); padding: 14px 15px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* now / next / later */
.lf-now {
  background: linear-gradient(135deg, #ffffff 0%, #f3fcf9 60%, #e9faf5 100%);
  border: 1px solid #cfeee6;
  position: relative; overflow: hidden;
}
.lf-now::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(62,183,166,.18), transparent 70%);
  border-radius: 50%;
}
.lf-now .kicker { font-size: 11px; letter-spacing: 1px; color: var(--mint-700); font-weight: 700; }
.lf-now h2 { margin: 3px 0 4px; font-size: 22px; letter-spacing: -0.4px; }
.lf-now .meta { color: var(--muted); font-size: 13px; }
.lf-now .window {
  display: inline-flex; gap: 6px; align-items: center; margin-top: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px; font-size: 12px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.lf-now .why {
  margin-top: 10px; font-size: 12.5px; color: var(--ink-2);
  background: rgba(255,255,255,.75); border-left: 3px solid var(--mint-500);
  padding: 7px 10px; border-radius: 0 10px 10px 0;
}

.lf-avoid {
  margin-top: 10px; background: #fffdf6; border: 1px solid #f0e4c6;
  border-radius: 14px; padding: 10px 12px;
}
.lf-avoid .kicker { font-size: 11px; letter-spacing: .6px; color: var(--warn); font-weight: 800; }
.lf-avoid ul { margin: 6px 0 0; padding-left: 16px; }
.lf-avoid li { font-size: 12.5px; color: var(--ink-2); margin: 3px 0; }

.lf-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.lf-mini { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; }
.lf-mini .kicker { font-size: 10.5px; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.lf-mini strong { display: block; margin-top: 2px; font-size: 15px; }
.lf-mini span { font-size: 12px; color: var(--muted); }

/* buttons */
.lf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lf-btn {
  padding: 8px 13px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: var(--mint-700); color: #fff; box-shadow: 0 4px 10px rgba(47,158,143,.22);
}
.lf-btn.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; }
.lf-btn.soft { background: var(--mint-50); color: var(--mint-800); border: 1px solid #d3efe8; box-shadow: none; }
.lf-btn:active { transform: translateY(1px); }
.lf-btn[disabled] { opacity: .5; pointer-events: none; }

/* timeline */
.lf-timeline { list-style: none; margin: 0; padding: 0; }
.lf-slot {
  display: grid; grid-template-columns: 54px 18px 1fr; gap: 10px;
  padding: 9px 0; align-items: start;
}
.lf-slot .t { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); padding-top: 2px; }
.lf-slot .dot { position: relative; display: flex; justify-content: center; }
.lf-slot .dot i {
  width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--mint-500);
  margin-top: 6px; z-index: 1;
}
.lf-slot .dot::before {
  content: ""; position: absolute; top: 0; bottom: -18px; width: 2px; background: var(--line);
}
.lf-slot:last-child .dot::before { display: none; }
.lf-slot.is-done .dot i { background: var(--mint-500); border-color: var(--mint-500); }
.lf-slot.is-active .dot i { background: #fff; border-color: var(--mint-700); box-shadow: 0 0 0 4px rgba(62,183,166,.18); }
.lf-slot .body { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.lf-slot.is-active .body { border-color: #bfe9df; background: #f7fdfb; }
.lf-slot .body strong { font-size: 14.5px; }
.lf-slot .body p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.lf-slot .body .tag {
  display: inline-block; font-size: 10.5px; padding: 1px 7px; border-radius: 999px;
  background: var(--mint-50); color: var(--mint-800); margin-left: 6px; vertical-align: 1px;
}
.lf-slot .body .tag.warn { background: var(--warn-bg); color: var(--warn); }

/* notifications */
.lf-feed { display: flex; flex-direction: column; gap: 10px; }
.lf-note {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px;
  box-shadow: var(--shadow); animation: lfIn .28s ease both;
}
@keyframes lfIn { from { opacity: 0; transform: translateY(6px); } }
.lf-note .top { display: flex; align-items: center; gap: 8px; }
.lf-note .prio {
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 999px; background: var(--mint-100); color: var(--mint-800);
}
.lf-note .prio.P1 { background: #e8f0ff; color: #2b5bb5; }
.lf-note .prio.P0 { background: var(--danger-bg); color: var(--danger); }
.lf-note .prio.P3 { background: #f1f3f2; color: var(--muted); }
.lf-note time { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lf-note h4 { margin: 6px 0 2px; font-size: 15px; }
.lf-note p { margin: 0; font-size: 13px; color: var(--ink-2); }
.lf-note .why { margin-top: 6px; font-size: 11.5px; color: #8b9a97; }
.lf-note .row { display: flex; gap: 8px; margin-top: 9px; }
.lf-suppressed { font-size: 12px; color: var(--muted); }
.lf-suppressed details { margin-top: 6px; }
.lf-suppressed summary { cursor: pointer; color: var(--mint-700); }
.lf-suppressed li { margin: 4px 0; }

/* chat */
.lf-fab {
  position: fixed; right: max(18px, calc(50% - 262px)); bottom: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 20px;
  background: radial-gradient(120% 120% at 20% 10%, #7ee0cd, #2f9e8f 60%, #1f6f65);
  color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(31,111,101,.35);
}
.lf-fab span { font-size: 10px; letter-spacing: .5px; }

.lf-sheet-mask {
  position: fixed; inset: 0; background: rgba(15, 32, 29, .38);
  z-index: 50; display: none; backdrop-filter: blur(2px);
}
.lf-sheet-mask.open { display: block; }
.lf-sheet {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(100%);
  bottom: 0; width: min(560px, 100%); max-height: 86vh; z-index: 60;
  background: var(--paper); border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column; transition: transform .26s cubic-bezier(.2,.8,.2,1);
  padding-bottom: env(safe-area-inset-bottom);
}
.lf-sheet.open { transform: translateX(-50%) translateY(0); }
.lf-sheet-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line); background: #fff; border-radius: 22px 22px 0 0;
}
.lf-sheet-head h3 { margin: 0; font-size: 16px; }
.lf-sheet-head p { margin: 0; font-size: 11.5px; color: var(--muted); }
.lf-sheet-head .close { margin-left: auto; font-size: 13px; color: var(--muted); }
.lf-chat-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.lf-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; }
.lf-msg.user { align-self: flex-end; background: var(--mint-700); color: #fff; border-bottom-right-radius: 4px; }
.lf-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.lf-msg .cites { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); }
.lf-msg .cites b { color: var(--ink-2); font-weight: 600; }
.lf-msg .thinking { color: var(--muted); font-size: 13px; }
.lf-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; }
.lf-suggest button {
  white-space: nowrap; font-size: 12.5px; padding: 6px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
}
.lf-chat-form { display: flex; gap: 8px; padding: 10px 16px 16px; background: #fff; border-top: 1px solid var(--line); }
.lf-chat-form input {
  flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--paper);
  outline: none;
}
.lf-chat-form input:focus { border-color: var(--mint-500); background: #fff; }
.lf-chat-form button { padding: 0 16px; border-radius: 12px; background: var(--mint-700); color: #fff; font-weight: 700; }

/* trip view */
.lf-day { margin-bottom: 14px; }
.lf-day-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.lf-day-head strong { font-size: 15px; }
.lf-day-head span { font-size: 12px; color: var(--muted); }
.lf-day-head .badge {
  margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--mint-50); color: var(--mint-800); border: 1px solid #d8f0ea;
}
.lf-decisions { margin-top: 12px; }
.lf-decisions li { font-size: 12.5px; color: var(--ink-2); margin: 6px 0; padding-left: 14px; position: relative; }
.lf-decisions li::before { content: "·"; position: absolute; left: 4px; color: var(--mint-600); font-weight: 800; }
.lf-decisions .kind { font-size: 10.5px; color: var(--muted); margin-right: 6px; }

/* booking */
.lf-provider { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.lf-provider .state { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-weight: 700; }
.lf-provider .state.ok { background: var(--mint-100); color: var(--mint-800); }
.lf-provider .state.mock { background: #eef2ff; color: #3c4bb5; }
.lf-code {
  background: #0f2421; color: #cfeee6; border-radius: 12px; padding: 12px;
  font-size: 11.5px; overflow-x: auto; line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.lf-kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; font-size: 13px; margin-top: 10px; }
.lf-kv dt { color: var(--muted); }
.lf-kv dd { margin: 0; }

/* accuracy */
.lf-test { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lf-test:last-child { border-bottom: none; }
.lf-test .mark { font-weight: 800; }
.lf-test .mark.ok { color: var(--mint-700); }
.lf-test .mark.bad { color: var(--danger); }
.lf-test strong { display: block; font-size: 13.5px; }
.lf-test p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.lf-score { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.lf-score b { font-size: 30px; letter-spacing: -1px; }
.lf-score span { color: var(--muted); font-size: 13px; }

.lf-empty { text-align: center; padding: 26px 18px; color: var(--muted); }
.lf-empty h3 { color: var(--ink); margin: 0 0 6px; }
.lf-empty p { margin: 0 0 14px; font-size: 13px; }

.lf-toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(10px);
  background: rgba(15,32,29,.92); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; z-index: 80; opacity: 0; pointer-events: none; transition: all .22s;
  max-width: 86vw; text-align: center;
}
.lf-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

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

@media (max-width: 420px) {
  .lf-main { padding: 12px 14px; }
  .lf-header { padding: 12px 14px 8px; }
  .lf-avoid {
  margin-top: 10px; background: #fffdf6; border: 1px solid #f0e4c6;
  border-radius: 14px; padding: 10px 12px;
}
.lf-avoid .kicker { font-size: 11px; letter-spacing: .6px; color: var(--warn); font-weight: 800; }
.lf-avoid ul { margin: 6px 0 0; padding-left: 16px; }
.lf-avoid li { font-size: 12.5px; color: var(--ink-2); margin: 3px 0; }

.lf-duo { gap: 8px; }
  .lf-fab { right: 16px; bottom: 16px; }
}

/* =========================================================
   2026 改版：白底、黑字、薄荷绿只做强调
   ========================================================= */
:root {
  --paper: #f6f8f7;
  --card: #ffffff;
  --ink: #182322;
  --ink-2: #3c4a48;
  --muted: #869391;
  --line: #e9efed;
  --mint-800: #237f73;
  --mint-700: #2f9e8f;
  --mint-600: #3eb7a6;
  --mint-100: #e6f8f3;
  --mint-50: #f3fbf8;
  --warn: #b57a24;
  --warn-bg: #fff7e7;
  --danger: #b24c43;
  --danger-bg: #fdf1ef;
  --shadow: none;
  --radius: 18px;
}

html, body {
  background: #fff;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Avenir Next", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.lf-shell {
  max-width: 760px;
  min-height: 100vh;
  background: var(--paper);
  padding-bottom: 110px;
}

.lf-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px 10px;
  backdrop-filter: blur(16px);
}

.lf-head-row { gap: 11px; }

.lf-back {
  order: 0;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
}

.lf-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--mint-700);
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

.lf-head-text h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lf-head-text p {
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}

.lf-clock {
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.lf-clock .lab { font-size: 10px; color: var(--muted); }
.lf-clock .time { font-size: 14px; }
.lf-chip-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 500;
  box-shadow: none;
}

.lf-tabs {
  margin-top: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  gap: 3px;
}

.lf-tab {
  padding: 7px 4px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.lf-tab.is-active {
  background: var(--mint-700);
  color: #fff;
  font-weight: 600;
}

.lf-main {
  padding: 18px;
}

.lf-section { margin-bottom: 24px; }

.lf-section-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lf-section-title .sub {
  color: var(--muted-light, #a7b1af);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.lf-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

/* 现在 / 下一站 */
.lf-now {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-left: 2px solid var(--mint-500) !important;
  border-radius: 18px;
  box-shadow: none;
}

.lf-now::after { display: none; }

.lf-now .kicker {
  color: var(--mint-800);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.lf-now h2 {
  margin: 6px 0 5px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.lf-now .meta { color: var(--muted); font-size: 11.5px; }

.lf-now .window {
  margin-top: 9px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 10.5px;
}

.lf-now .why {
  margin-top: 11px;
  padding: 9px 11px;
  border-left: 2px solid var(--mint-500);
  border-radius: 0 8px 8px 0;
  background: var(--mint-50);
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.lf-avoid {
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid #f0e4c6;
  border-radius: 12px;
  background: #fffdf6;
}

.lf-avoid .kicker { font-size: 10px; color: var(--warn); font-weight: 600; }
.lf-avoid ul { margin-top: 6px; padding-left: 15px; }
.lf-avoid li { font-size: 11px; line-height: 1.6; }

.lf-duo { gap: 9px; margin-top: 10px; }

.lf-mini {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.lf-mini .kicker { color: var(--muted); font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em; }
.lf-mini strong { margin-top: 3px; font-size: 14px; font-weight: 600; }
.lf-mini span { font-size: 10.5px; color: var(--muted); }

.lf-actions { gap: 7px; margin-top: 12px; }

.lf-btn {
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--mint-700);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: none;
}

.lf-btn.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.lf-btn.soft {
  background: var(--mint-50);
  border: 1px solid #d8eee8;
  color: var(--mint-800);
}

/* 时间轴 */
.lf-timeline { padding-top: 2px; }

.lf-slot {
  grid-template-columns: 44px 16px 1fr;
  gap: 8px;
  padding: 7px 0;
}

.lf-slot .t { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.lf-slot .dot i { width: 8px; height: 8px; border-width: 1.5px; }
.lf-slot .dot::before { width: 1px; background: var(--line-strong, #dfe7e4); }
.lf-slot .body {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.lf-slot .body strong { font-size: 13px; font-weight: 600; }
.lf-slot .body p { margin-top: 3px; font-size: 10.5px; }
.lf-slot.is-active .body { border-color: var(--line); background: var(--mint-50); }
.lf-slot .body .tag { font-size: 9px; padding: 1px 6px; border-radius: 5px; }

/* 提醒 */
.lf-feed { gap: 9px; }

.lf-note {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.lf-note .top { gap: 7px; }
.lf-note .prio {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lf-note .prio.P0 { background: var(--danger-bg); color: var(--danger); }
.lf-note .prio.P1 { background: #eef4ff; color: #2b5bb5; }
.lf-note .prio.P2 { background: var(--mint-50); color: var(--mint-800); }
.lf-note .prio.P3 { background: var(--paper); color: var(--muted); }
.lf-note time { font-size: 10px; }
.lf-note h4 { margin-top: 7px; font-size: 14px; font-weight: 600; }
.lf-note p { font-size: 11.5px; line-height: 1.65; }
.lf-note .why { font-size: 10px; }
.lf-note .row { gap: 7px; margin-top: 8px; }

.lf-suppressed { font-size: 11px; }
.lf-suppressed summary { color: var(--mint-800); }

.lf-empty {
  padding: 34px 24px;
  text-align: center;
}
.lf-empty h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.lf-empty p { max-width: 460px; margin: 8px auto 0; font-size: 12px; line-height: 1.7; }
.lf-empty .lf-actions { margin-top: 18px; }
.lf-empty .lf-btn { height: 38px; padding: 0 14px; }

/* 底部聊天栏 */
.lf-fab {
  left: 50%;
  right: auto;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  height: 50px;
  border-radius: 14px;
  background: var(--mint-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0;
  box-shadow: 0 10px 26px rgba(24, 59, 54, 0.18);
}

.lf-fab .chat-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.lf-fab .chat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

/* 聊天面板 */
.lf-sheet {
  width: min(620px, 100%);
  max-height: 84vh;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 50px rgba(24, 59, 54, 0.12);
}

.lf-sheet-head {
  padding: 15px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.lf-sheet-head h3 { font-size: 15px; font-weight: 600; }
.lf-sheet-head p { font-size: 10px; }
.lf-sheet-head .close { font-size: 11px; color: var(--mint-800); }

.lf-chat-log { padding: 16px 18px; gap: 9px; background: var(--paper); }
.lf-msg { padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.65; }
.lf-msg.bot { background: #fff; border-color: var(--line); }
.lf-msg.user { background: var(--mint-700); }

.lf-suggest { padding: 0 18px 10px; background: var(--paper); gap: 7px; }
.lf-suggest button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 10.5px;
}

.lf-chat-form {
  padding: 10px 18px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}

.lf-chat-form input {
  height: 42px;
  border: 1px solid var(--line-strong, #dfe7e4);
  border-radius: 11px;
  background: var(--paper);
  font-size: 12.5px;
}

.lf-chat-form button {
  padding: 0 16px;
  border-radius: 11px;
  background: var(--mint-700);
  font-size: 12px;
  font-weight: 600;
}

/* 其它视图 */
.lf-kv { font-size: 11.5px; }
.lf-code { border-radius: 10px; font-size: 10.5px; }
.lf-test strong { font-size: 12px; }
.lf-test p { font-size: 10.5px; }
.lf-score b { font-size: 26px; }

.lf-toast {
  bottom: 88px;
  background: var(--ink);
  font-size: 11.5px;
  border-radius: 9px;
}

.lf-provider .state { border-radius: 5px; font-size: 9px; }

/* 来福记得的 */
.lf-memory-lead {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mint-700);
  margin: 0 0 4px;
}
.lf-memory-form {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
.lf-memory-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 0 10px;
  font-size: 12px;
}
.lf-memory-form .lf-btn {
  flex: 0 0 auto;
  padding: 0 14px;
}
.lf-memory-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.lf-memory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.lf-memory-item:last-child { border-bottom: 0; }
.lf-memory-item strong {
  display: block;
  font-size: 12.5px;
  color: var(--ink);
}
.lf-memory-meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
}
.lf-memory-forget {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 10px;
}

@media (max-width: 420px) {
  .lf-main { padding: 14px; }
  .lf-header { padding: 12px 14px 8px; }
  .lf-now h2 { font-size: 23px; }
  .lf-slot { grid-template-columns: 40px 14px 1fr; }
  .lf-fab { width: calc(100% - 28px); }
}
