 



.lfc {
  --c-canvas: #fafaf7;
  --c-surface: #fff;
  --c-subtle: #f3f2ee;
  --c-brand-soft: #eefad4;
  --c-ink: #1c1b1e;
  --c-ink-2: #555458;
  --c-ink-3: #6e6d72;
  --c-brand: #0f7342;
  --c-line: #e8e7e1;
  --c-line-2: #d6d4cc;
  --c-focus: #48a8ef;
  --c-good: #138a4f;
  --c-good-soft: #eefaf2;
  --c-bad: #c0261f;
  --c-bad-bar: #fda296;
  --c-tinted: #def6af;
  --c-on-tinted: #0a452a;
  --c-gray: #f3f2ee;
  --c-lime-bg: #def6af;
  --c-lime-ink: #3c5f15;
  --ease: cubic-bezier(.2, .8, .2, 1);

  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  container-type: inline-size;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--c-ink);
  text-align: left;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.lfc *, .lfc *::before, .lfc *::after { box-sizing: border-box; }
.lfc svg, .lfc img { display: block; width: 100%; height: 100%; }
.lfc-mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

 
.lfc-win {
  height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: var(--c-canvas);
  box-shadow: 0 0 0 1px var(--c-line), 0 8px 24px rgba(28, 27, 30, .08), 0 24px 64px rgba(28, 27, 30, .14);
}

 
.lfc-bar {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}
.lfc-dots { display: flex; gap: 6px; width: 42px; }
.lfc-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line-2); }
.lfc-bar::after { content: ""; width: 42px; }
.lfc-title { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; font-size: 14px; line-height: 18px; font-weight: 500; transition: opacity .35s; }
.lfc-title i { width: 16px; height: 16px; flex: none; }
.lfc-title.is-swap { opacity: 0; }

 
.lfc-stage { position: relative; flex: 1; min-height: 0; }
.lfc-feed {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 24px 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 40px);
  mask-image: linear-gradient(transparent, #000 40px);
  transition: opacity .5s;
}
.lfc-feed.is-out { opacity: 0; }

 
.lfc-msg { display: grid; grid-template-rows: 0fr; flex: none; transition: grid-template-rows .55s var(--ease); }
.lfc-msg > div { min-height: 0; overflow: hidden; }
.lfc-msg.is-in { grid-template-rows: 1fr; }
.lfc-msg__in { padding-top: 12px; opacity: 0; translate: 0 10px; filter: blur(3px); transition: opacity .5s .08s, translate .55s var(--ease) .08s, filter .5s .08s; }
.lfc-msg.is-in .lfc-msg__in { opacity: 1; translate: 0; filter: blur(0); }
.lfc-msg--t .lfc-msg__in { padding-top: 8px; }

 
.lfc-fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.lfc-fold > * { min-height: 0; overflow: hidden; }
.lfc-fold.is-off { grid-template-rows: 0fr; opacity: 0; }

 
.lfc-user { display: flex; justify-content: flex-end; }
.lfc-user p { margin: 0; max-width: 420px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--c-brand-soft); font-size: 15px; line-height: 22px; }

 
.lfc-tool { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 15px; line-height: 22px; }
.lfc-tool > i { width: 20px; height: 20px; flex: none; align-self: flex-start; margin-top: 1px; }
.lfc-tool .t { flex: 1; min-width: 0; color: var(--c-ink-3); }
.lfc-tool .t b { font-weight: 600; color: var(--c-ink); margin-right: 8px; }
.lfc-tool .t span { transition: opacity .25s; }
.lfc-tool .t span.is-swap { opacity: 0; }
.lfc-st { position: relative; width: 20px; height: 20px; flex: none; color: var(--c-ink-3); }
.lfc-st .spin { position: absolute; inset: 1px; animation: lfc-spin .8s linear infinite; transition: opacity .2s; }
.lfc-st .ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand); opacity: 0; scale: .6; transition: opacity .25s, scale .35s var(--ease); }
.lfc-st .ok svg { width: 12px; height: 12px; }
.lfc-tool.is-done .spin { opacity: 0; }
.lfc-tool.is-done .ok { opacity: 1; scale: 1; }
@keyframes lfc-spin { to { rotate: 360deg; } }

 
.lfc-card { padding: 16px 16px 6px; border-radius: 16px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.lfc-eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); }
.lfc-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 8px 0 12px; }
.lfc-big b { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lfc-big b.bad { color: var(--c-bad); }
.lfc-big b.good { color: var(--c-good); }
.lfc-big span { font-size: 15px; line-height: 22px; color: var(--c-ink-2); }
.lfc-row { padding: 10px 0; border-top: 1px solid var(--c-line); }
.lfc-row__line { display: flex; align-items: center; gap: 10px; }
.lfc-row__line > i { width: 20px; height: 20px; flex: none; color: var(--c-ink-2); }
.lfc-row__line span { flex: 1; min-width: 0; font-size: 15px; line-height: 22px; color: var(--c-ink-2); }
.lfc-row__line b { font-size: 14px; line-height: 20px; font-weight: 400; white-space: nowrap; }
.lfc-meter { height: 4px; margin: 8px 0 0 30px; border-radius: 2px; background: var(--c-subtle); overflow: hidden; }
.lfc-meter i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--c-bad-bar); transition: width 1s var(--ease); }
.lfc-meter.good i { background: var(--c-good); }

 
.lfc-changes { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.lfc-badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 13px; line-height: 16px; font-weight: 500; background: var(--c-lime-bg); color: var(--c-lime-ink); transition: background .3s, color .3s; }
.lfc-changes.is-ok .lfc-badge { background: var(--c-good-soft); color: var(--c-good); }
.lfc-changes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lfc-changes li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; line-height: 22px; }
.lfc-changes li b { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--c-ink-2); white-space: nowrap; }
.lfc-changes .lfc-fold.is-off { margin-top: -12px; }
.lfc-acts { display: flex; gap: 8px; }
.lfc-btn { height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-size: 14px; line-height: 18px; font-weight: 500; color: var(--c-ink); white-space: nowrap; transition: scale .15s, background .3s; }
.lfc-btn--go { background: var(--c-tinted); color: var(--c-on-tinted); }
.lfc-btn.is-press { scale: .95; }
.lfc-note { margin: 0; padding-top: 12px; text-align: center; font-size: 13px; line-height: 18px; color: var(--c-ink-3); }

 
.lfc-agent { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; font-size: 15px; line-height: 22px; }
.lfc-agent > i { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.lfc-agent p { margin: 0; }

 
.lfc-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; text-align: center; opacity: 0; translate: 0 8px; pointer-events: none; transition: opacity .45s, translate .55s var(--ease); }
.lfc-empty.is-show { opacity: 1; translate: 0; }
.lfc-empty h4 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; color: var(--c-ink); }
.lfc-empty p { margin: 0; font-size: 15px; line-height: 22px; color: var(--c-ink-3); }
.lfc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; max-width: 520px; }
.lfc-chip { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; transition: background .25s, scale .25s var(--ease); }
.lfc-chip > i { width: 18px; height: 18px; flex: none; color: var(--c-ink-2); }
.lfc-chip.is-pick { background: var(--c-subtle); scale: 1.03; }

 
.lfc-composer { flex: none; padding: 4px 16px 16px; }
.lfc-input { display: grid; gap: 12px; padding: 16px 12px 12px 16px; border-radius: 20px; background: var(--c-surface); box-shadow: 0 0 0 1px var(--c-line), 0 1px 2px rgba(28, 27, 30, .04), 0 4px 16px rgba(28, 27, 30, .05); transition: box-shadow .25s; }
.lfc-input.is-typing { box-shadow: 0 0 0 1px var(--c-focus), 0 1px 2px rgba(28, 27, 30, .04), 0 4px 16px rgba(28, 27, 30, .05); }
.lfc-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.lfc-text { flex: 1; min-width: 0; height: 24px; font-size: 16px; line-height: 24px; white-space: nowrap; overflow: hidden; color: var(--c-ink); }
.lfc-text:empty::before { content: attr(data-ph); color: var(--c-ink-3); }
.lfc-input.is-typing .lfc-text::before { content: none; }
.lfc-input.is-typing .lfc-text::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; margin-left: 1px; vertical-align: -3px; background: var(--c-focus); animation: lfc-caret 1s steps(1) infinite; }
@keyframes lfc-caret { 50% { opacity: 0; } }
.lfc-panel { display: flex; align-items: center; gap: 4px; min-width: 0; }
.lfc-panel .sp { flex: 1; }
.lfc-ib { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--c-ink); }
.lfc-ib svg { width: 18px; height: 18px; }
.lfc-pick { height: 32px; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 14px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.lfc-pick > i { width: 20px; height: 20px; flex: none; }
.lfc-pick > i.ic { width: 16px; height: 16px; color: var(--c-ink-2); }
.lfc-pick > em { width: 16px; height: 16px; flex: none; color: var(--c-ink-3); }
.lfc-send { width: 0; height: 36px; flex: none; margin-left: -4px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-gray); color: var(--c-ink); opacity: 0; scale: .6; overflow: hidden; transition: width .25s var(--ease), margin .25s var(--ease), opacity .2s, scale .25s var(--ease); }
.lfc-send svg { width: 18px; height: 18px; flex: none; }
.lfc-input.is-typing .lfc-send { width: 36px; margin-left: 0; opacity: 1; scale: 1; }
.lfc-input.is-typing .lfc-send.is-press { scale: .88; }
.lfc-m { display: none !important; }

 
@container (max-width: 420px) {
  .lfc-win { height: 580px; border-radius: 20px; }
  .lfc-bar { flex-basis: 44px; }
  .lfc-feed { padding: 6px 14px 8px; }
  .lfc-msg__in { padding-top: 10px; }
  .lfc-msg--t .lfc-msg__in { padding-top: 8px; }
  .lfc-user p { max-width: 268px; }
  .lfc-tool { font-size: 13px; line-height: 18px; }
  .lfc-tool > i { margin-top: -1px; }
  .lfc-big { padding: 8px 0 12px; }
  .lfc-big b { font-size: 22px; line-height: 28px; }
  .lfc-big span, .lfc-row__line span { font-size: 13px; line-height: 18px; }
  .lfc-note { padding-top: 10px; }
  .lfc-chips { flex-direction: column; align-items: center; max-width: 300px; }
}

 
@container (max-width: 560px) {
  .lfc-composer { padding: 4px 12px 12px; }
  .lfc-input { gap: 10px; padding: 12px; }
  .lfc-text:empty::before { content: attr(data-ph-s); }
  .lfc-d { display: none !important; }
  .lfc-m { display: flex !important; }
  .lfc-send.lfc-m { display: flex !important; }
}

@media (prefers-reduced-motion: reduce) {
  .lfc *, .lfc *::before, .lfc *::after { animation: none !important; transition: none !important; }
}
