/* The home page's session window (home-film.js): Liya's sessions on the /try
   sample systems, recorded from real runs and replayed at their real pace,
   or run live on request. A dark product window on the console's grid. */
.lf {
  --lf-bg: #0e0e0d; --lf-side: #121211; --lf-line: #262624; --lf-line-2: #34342f;
  --lf-ink: #f1f1ec; --lf-ink-2: #c7c7bf; --lf-mute: #8d8d84; --lf-hi: #1c1c1a;
  max-width: 1240px; margin: 0 auto; background: var(--lf-bg); color: var(--lf-ink);
  border: 1px solid #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(17, 17, 17, 0.55);
  font: 14px/1.5 var(--sans); text-align: left; position: relative;
}
.lf .sp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lf-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--lf-line); background: #0a0a09;
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--lf-mute);
}
.lf-bar .dots i { background: #2c2c29; }
.lf-title { color: var(--lf-ink-2); }
.lf-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.lf-tag[data-live]::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 rgba(255, 91, 31, 0.6); animation: lf-ping 1.4s infinite;
}
.lf-tag[data-live] { color: var(--signal); }
.lf .ec-pause { background: transparent; color: var(--lf-ink-2); border-color: var(--lf-line-2); }
.lf .ec-pause:hover { color: var(--lf-ink); border-color: var(--lf-ink-2); }

.lf-body { display: grid; grid-template-columns: minmax(230px, 30%) minmax(0, 1fr); height: clamp(540px, 72vh, 720px); }

/* Sessions */
.lf-side { background: var(--lf-side); border-right: 1px solid var(--lf-line); display: flex; flex-direction: column; min-height: 0; }
.lf-search { display: flex; align-items: center; gap: 10px; margin: 14px 14px 6px; padding: 9px 12px; border-radius: 8px; background: var(--lf-hi); color: var(--lf-mute); }
.lf-search svg { width: 15px; height: 15px; flex: none; }
.lf-search input { all: unset; flex: 1; min-width: 0; color: var(--lf-ink); font: 14px var(--sans); }
.lf-search input::placeholder { color: var(--lf-mute); }
.lf-side-k { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 6px; font: 500 11px/1 var(--mono); letter-spacing: 0.14em; color: var(--lf-mute); }
.lf-groups { overflow-y: auto; padding: 0 8px 14px; scrollbar-width: thin; scrollbar-color: #2c2c29 transparent; }
.lf-group > b { display: flex; align-items: center; gap: 8px; padding: 12px 10px 6px; font: 600 13.5px/1.2 var(--sans); color: var(--lf-ink); }
.lf-group > b::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--lf-mute); border-bottom: 1.5px solid var(--lf-mute); transform: rotate(45deg) translateY(-2px); }
.lf-group ul { list-style: none; margin: 0; padding: 0; }
.lf-s {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent;
  color: var(--lf-ink-2); font: 13.5px/1.3 var(--sans); text-align: left; cursor: pointer;
}
.lf-s:hover { background: var(--lf-hi); color: var(--lf-ink); }
.lf-s[aria-current="true"] { background: var(--lf-hi); color: var(--lf-ink); }
.lf-s .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-s .w { font: 12px/1 var(--mono); color: var(--lf-mute); font-variant-numeric: tabular-nums; }
.lf-s .d { width: 7px; height: 7px; border-radius: 50%; }
.lf-s[data-state="run"] .d { background: var(--signal); animation: lf-ping 1.4s infinite; }
.lf-s[data-state="wait"] .d { background: #e3a008; }
.lf-s[data-state="done"] .d { background: #3a8f5c; }
.lf-s[data-state="run"] .w { color: var(--lf-ink); }
.lf-s .live { font: 600 9.5px/1 var(--mono); letter-spacing: 0.1em; color: var(--signal); margin-left: 6px; }
@keyframes lf-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 91, 31, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(255, 91, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 91, 31, 0); } }

/* The session */
.lf-main { display: flex; flex-direction: column; min-height: 0; }
.lf-scroll { flex: 1; overflow-y: auto; padding: 26px clamp(18px, 3vw, 40px) 18px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #2c2c29 transparent; }
.lf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 18px; }
.lf-head .lf-h { margin: 0; font: 600 22px/1.25 var(--sans); letter-spacing: -0.01em; color: var(--lf-ink); }
.lf-sys { font: 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lf-mute); }
.lf-ask { margin: 0 0 22px; padding: 16px 20px; border-radius: 10px; background: var(--lf-hi); color: var(--lf-ink); font-size: 17px; line-height: 1.45; }
.lf-ask .caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; margin-left: 2px; background: var(--signal); animation: lf-caret 900ms steps(2) infinite; }
@keyframes lf-caret { 50% { opacity: 0; } }
.lf-phase { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; font: 600 16.5px/1.35 var(--sans); color: var(--lf-ink); }
.lf-phase::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.lf-phase[data-state="run"]::before { animation: lf-ping 1.4s infinite; }
.lf-phase .clock { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--lf-mute); font-variant-numeric: tabular-nums; }
.lf-steps { list-style: none; margin: 0 0 18px; padding: 0 0 0 4px; }
.lf-step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 7px 0; animation: lf-in 320ms cubic-bezier(.16, 1, .3, 1) both; }
.lf-step svg { width: 18px; height: 18px; margin-top: 2px; }
.lf-step .call { font: 15px/1.45 var(--sans); color: var(--lf-ink); overflow-wrap: anywhere; }
.lf-step .call .ns { color: var(--lf-mute); }
.lf-step .call code { font: 13px var(--mono); color: var(--lf-ink-2); }
.lf-step .res { font: 12px/1.5 var(--mono); color: var(--lf-mute); white-space: nowrap; text-align: right; }
.lf-step .res b { color: #8fd3a4; font-weight: 500; }
.lf-step[data-state="run"] .res::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 1.5px solid var(--lf-mute); border-top-color: transparent; border-radius: 50%; vertical-align: -1px; animation: lf-spin 800ms linear infinite; }
.lf-step[data-state="held"] .res b { color: #f0b429; }
.lf-rows { grid-column: 2 / -1; margin: 4px 0 2px; padding: 0; list-style: none; border-left: 1px solid var(--lf-line-2); }
.lf-rows li { padding: 2px 0 2px 12px; font: 12.5px/1.5 var(--mono); color: var(--lf-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: lf-in 260ms both; }
.lf-rows li span { color: var(--lf-mute); margin-right: 10px; }
@keyframes lf-spin { to { transform: rotate(360deg); } }
@keyframes lf-in { from { opacity: 0; transform: translateY(6px); } }

.lf-card { position: relative; margin: 6px 0 20px; padding: 16px 18px; border: 1px solid #5a4410; border-radius: 10px; background: #17140b; animation: lf-in 360ms both; }
.lf-card-k { font: 600 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #f0b429; }
.lf-card .lf-card-t { margin: 10px 0 10px; font: 600 15px/1.4 var(--sans); color: var(--lf-ink); }
.lf-diff { margin: 0 0 14px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font: 13px/1.45 var(--mono); }
.lf-diff dt { color: var(--lf-mute); }
.lf-diff dd { margin: 0; color: var(--lf-ink-2); overflow-wrap: anywhere; }
.lf-diff del { color: #f08c7a; text-decoration-color: rgba(240, 140, 122, 0.5); }
.lf-diff ins { color: #8fd3a4; text-decoration: none; }
.lf-acts { display: flex; gap: 10px; }
.lf-acts[hidden], .lf-out[hidden] { display: none; }
.lf-acts .btn { height: 32px; }
.lf-approve { background: var(--lf-ink); color: #0e0e0d; border: 1px solid var(--lf-ink); }
.lf-approve.pressed { transform: scale(0.96); background: #fff; }
.lf-reject { background: transparent; color: var(--lf-ink-2); border: 1px solid var(--lf-line-2); }
.lf-out { margin: 12px 0 0; font: 13.5px/1.5 var(--sans); color: var(--lf-ink-2); }
.lf-out[data-ok] { color: #8fd3a4; }
.lf-chain { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.lf-chain li { font: 11px/1 var(--mono); padding: 6px 8px; border-radius: 5px; background: var(--lf-hi); color: var(--lf-mute); animation: lf-in 260ms both; }
.lf-chain li b { color: var(--lf-ink-2); font-weight: 500; }
.lf-chain li + li::before { content: "← "; color: #4a4a44; }

.lf-done { margin: 4px 0 6px; animation: lf-in 360ms both; }
.lf-done .lf-done-k { margin: 0 0 6px; font: 600 20px/1.2 var(--sans); color: var(--lf-ink); }
.lf-done p { margin: 0 0 6px; font-size: 16px; color: var(--lf-ink-2); }
.lf-done ul { margin: 6px 0 0; padding: 0; list-style: none; }
.lf-done li { position: relative; padding: 3px 0 3px 18px; font-size: 15.5px; color: var(--lf-ink-2); }
.lf-done li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--lf-mute); }
.lf-meta { margin: 14px 0 0; font: 11.5px/1.6 var(--mono); color: var(--lf-mute); }
.lf-meta a { color: var(--lf-ink-2); }

.lf-compose { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px clamp(14px, 2.5vw, 28px) 14px; border-top: 1px solid var(--lf-line); background: #0b0b0a; }
.lf-compose label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; height: 38px; border: 1px solid var(--lf-line-2); border-radius: 8px; background: var(--lf-hi); }
.lf-compose .wk { flex: none; font: 11px/1 var(--mono); color: var(--lf-mute); }
.lf-compose input { all: unset; flex: 1; min-width: 0; color: var(--lf-ink); font: 14px var(--sans); }
.lf-compose input:focus-visible { outline: none; }
.lf-compose label:focus-within { border-color: var(--lf-ink-2); }
.lf-run { flex: none; background: var(--signal); color: #111; border: 1px solid var(--signal); }
.lf-run:hover { background: #f04d12; }
.lf-run[disabled] { opacity: 0.6; cursor: progress; }

/* The cursor that approves a recorded change. */
.lf-cursor { position: absolute; z-index: 5; width: 20px; height: 20px; pointer-events: none; opacity: 0; transition: transform 760ms cubic-bezier(.4, 0, .2, 1), opacity 200ms; }
.lf-cursor svg { width: 20px; height: 20px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); }
.lf-cursor.on { opacity: 1; }
.lf-cursor.click::after { content: ""; position: absolute; left: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); animation: lf-click 420ms ease-out forwards; }
@keyframes lf-click { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* The channel tabs (home-film.js VIEWS): the same session as each place
   people talk to the agents shows it, drawn in our own neutral styling. */
.lf-body[hidden], .lf-alt[hidden], .lf-chan[hidden], .lf-ways li[hidden] { display: none; }
.lf-chan { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--lf-line); background: #0a0a09; overflow-x: auto; scrollbar-width: none; }
.lf-chan button { flex: none; padding: 10px 14px 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--lf-mute); font: 500 13px/1 var(--sans); cursor: pointer; }
.lf-chan button:hover { color: var(--lf-ink); }
.lf-chan button[aria-selected="true"] { color: var(--lf-ink); border-bottom-color: var(--signal); }
.lf-chan button:focus-visible { outline: 2px solid var(--lf-ink-2); outline-offset: -4px; }
.lf-ways { margin: 0; padding: 12px clamp(14px, 2.5vw, 28px); list-style: none; border-top: 1px solid var(--lf-line); background: #0b0b0a; font: 13.5px/1.55 var(--sans); color: var(--lf-ink-2); }
.lf-ways li + li { margin-top: 6px; }
.lf.lf-on .lf-ways li + li { margin-top: 0; }
.lf-ways b { margin-right: 6px; color: var(--lf-ink); font-weight: 600; }
.lf-ways a { color: var(--lf-ink); white-space: nowrap; }

.lf-alt { height: clamp(540px, 72vh, 720px); display: flex; min-height: 0; }
.ch { flex: 1; display: flex; min-width: 0; min-height: 0; }
.ch-av { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--signal); color: #111; font: 700 13px/1 var(--sans); }
.ch-steps { list-style: none; margin: 6px 0 0; padding: 0; }
.ch-step { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 0 8px; align-items: baseline; padding: 3px 0; font: 13px/1.45 var(--sans); animation: lf-in 260ms both; }
.ch-dot { width: 7px; height: 7px; border-radius: 50%; background: #9a9a92; transform: translateY(-1px); }
.ch-step[data-state="run"] .ch-dot { background: var(--signal); animation: lf-ping 1.4s infinite; }
.ch-step[data-state="done"] .ch-dot { background: #3a8f5c; }
.ch-step[data-state="held"] .ch-dot { background: #d79a06; }
.ch-what { overflow-wrap: anywhere; }
.ch-res { grid-column: 2; font: 12px/1.4 var(--mono); opacity: 0.75; }
.ch-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 4px; border: 1px solid #c9c9c2; background: #fff; color: #1f1f1c; font: 600 13px/1 var(--sans); cursor: pointer; }
.ch-btn.positive { background: #1f1f1c; border-color: #1f1f1c; color: #fff; }
.ch-btn.destructive { color: #b42318; }
.ch-btn[data-chosen] { border-color: #1f1f1c; box-shadow: inset 0 0 0 1px #1f1f1c; }
span.ch-btn { cursor: default; }
.ch-btn.pressed { transform: scale(0.96); }

/* Teams and Google Chat: a light chat pane, a card per reply. */
.ch-teams, .ch-gchat { background: #f4f4f1; color: #1f1f1c; }
.tm-rail { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; background: #e7e7e2; }
.tm-rail i { width: 22px; height: 22px; border-radius: 6px; background: #cfcfc8; }
.tm-rail i:nth-child(2) { background: #1f1f1c; }
.ch-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ch-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #e0e0da; background: #fff; font: 600 15px/1 var(--sans); }
.tm-tab { margin-left: 8px; padding: 6px 2px; border-bottom: 2px solid #1f1f1c; font: 500 13px/1 var(--sans); }
.ch-app { padding: 3px 6px; border-radius: 4px; background: #e7e7e2; font: 600 10.5px/1 var(--sans); color: #5f5f58; }
.ch-feed { flex: 1; overflow-y: auto; padding: 18px clamp(14px, 3vw, 32px); scroll-behavior: smooth; }
.ch-msg { max-width: 640px; margin: 0 0 14px; animation: lf-in 300ms both; }
.ch-msg.me { margin-left: auto; max-width: 480px; }
.ch-who { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font: 12px/1 var(--sans); color: #6b6b64; }
.ch-who b { color: #1f1f1c; font-weight: 600; }
.ch-who .ch-av { width: 22px; height: 22px; font-size: 11px; }
.ch-msg.me .ch-who { justify-content: flex-end; }
.ch-text { margin: 0; padding: 10px 14px; border-radius: 6px; background: #fff; font: 14.5px/1.5 var(--sans); white-space: pre-line; overflow-wrap: anywhere; }
.ch-msg.me .ch-text { background: #e3e3dd; }
.ch-text .caret { display: inline-block; width: 2px; height: 1em; vertical-align: -2px; background: var(--signal); }
.ch-sig { margin: 6px 0 0; font: 11.5px/1.4 var(--mono); color: #6b6b64; }
.ch-compose { margin: 0 clamp(14px, 3vw, 32px) 14px; padding: 11px 14px; border: 1px solid #d6d6cf; border-radius: 6px; background: #fff; color: #8d8d84; font: 14px/1 var(--sans); }
.ch-card { margin-top: 6px; padding: 14px 16px; background: #fff; overflow-wrap: anywhere; animation: lf-in 300ms both; }
.ch-t { margin: 0 0 8px; font: 14px/1.45 var(--sans); }
.ch-t.b { font-weight: 700; }
.ch-t.m { font-size: 16px; }
.ch-t[data-color="good"] { color: #217a45; }
.ch-t[data-color="bad"] { color: #b42318; }
/* Adaptive Card: a bordered card, fact sets in two columns, buttons in a row. */
.ch-ac-card { border: 1px solid #e0e0da; border-radius: 6px; }
.ac-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0 0 10px; font: 13px/1.45 var(--sans); }
.ac-facts dt { font-weight: 600; }
.ac-facts dd { margin: 0; color: #3d3d38; }
.v2-input { margin: 4px 0 12px; padding: 10px 12px; border: 1px solid #c4c7c5; border-radius: 6px; color: #8d8d84; font: 13px/1.3 var(--sans); }
.ac-input { margin: 4px 0 12px; padding: 9px 10px; border: 1px solid #d6d6cf; border-radius: 4px; color: #8d8d84; font: 13px/1.3 var(--sans); }
.ac-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-acts .ch-btn { flex: 1 1 0; justify-content: center; min-width: 96px; }
/* cardsV2: widgets in a section, a label over each value, pill buttons. */
.ch-gchat .ch-text { border-radius: 14px; }
.ch-v2-card { border: 1px solid #dedcd6; border-radius: 12px; }
.v2-dec { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; font: 14px/1.4 var(--sans); }
.v2-top { font-size: 12px; color: #6b6b64; }
.v2-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.v2-acts .ch-btn { border-radius: 18px; height: 34px; padding: 0 18px; border-color: #1f6f5c; color: #1f6f5c; }
.v2-acts .ch-btn.positive { background: #1f6f5c; color: #fff; }
.v2-acts .ch-btn.destructive { border-color: #c9c9c2; color: #b42318; }
.v2-acts .ch-btn[data-chosen] { background: #e3efe9; box-shadow: none; }

/* The terminal: liya try's own lines. */
.ch-term { flex-direction: column; background: #070707; }
.tt-head { padding: 8px 14px; border-bottom: 1px solid var(--lf-line); font: 12px/1 var(--mono); color: var(--lf-mute); text-align: center; }
.tt-out { flex: 1; margin: 0; overflow: auto; padding: 16px clamp(14px, 2.5vw, 26px); font: 13.5px/1.6 var(--mono); color: #d7d7d0; white-space: pre-wrap; overflow-wrap: anywhere; scroll-behavior: smooth; }
.tt-l { display: block; min-height: 1.6em; }
.tt-l.b { font-weight: 700; color: #fff; }
.tt-ps { color: #8fd3a4; }
.tt-dot { color: #8d8d84; }
.tt-l[data-state="done"] .tt-dot { color: #8fd3a4; }
.tt-l[data-state="held"] .tt-dot, .tt-l.y { color: #f0b429; }
.tt-res, .tt-l.dim { color: #8d8d84; }
.tt-out .r { color: #f08c7a; }
.tt-out .g { color: #8fd3a4; }
.tt-out .c { color: #7cc4ff; }
.tt-card { display: block; }
.tt-out .caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: #d7d7d0; }
.tt-keys { display: inline-flex; gap: 6px; vertical-align: 1px; }
.tt-key { min-width: 28px; padding: 1px 7px; border: 1px solid #4a4a44; border-radius: 4px; background: #161615; color: #fff; font: 600 12.5px/1.4 var(--mono); cursor: pointer; }
.tt-key:hover, .tt-key.pressed { border-color: #8fd3a4; color: #8fd3a4; }

/* The app on a phone. */
.ch-mob { justify-content: center; align-items: center; padding: 18px; background: radial-gradient(circle at 50% 30%, #1d1d1b, #0e0e0d 70%); }
.mb-phone { width: min(330px, 100%); height: 100%; max-height: 660px; display: flex; flex-direction: column; border: 9px solid #000; border-radius: 40px; background: #f7f7f4; color: #1f1f1c; overflow: hidden; box-shadow: 0 0 0 1px #3a3a35, 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.mb-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 22px 4px; font: 600 12px/1 var(--sans); }
.mb-isl { width: 84px; height: 22px; border-radius: 12px; background: #000; }
.mb-head { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid #e3e3dd; }
.mb-back { font: 300 26px/1 var(--sans); color: #6b6b64; }
.mb-who { display: flex; flex-direction: column; font: 600 14px/1.2 var(--sans); }
.mb-who span { font: 400 11.5px/1.2 var(--mono); color: #6b6b64; }
.mb-feed { flex: 1; overflow-y: auto; padding: 12px; scroll-behavior: smooth; }
.mb-me, .mb-bot { margin: 0 0 10px; padding: 9px 12px; border-radius: 16px; font: 14px/1.45 var(--sans); white-space: pre-line; overflow-wrap: anywhere; animation: lf-in 260ms both; }
.mb-me { margin-left: 18%; background: #1f1f1c; color: #fff; border-bottom-right-radius: 4px; }
.mb-me .caret { display: inline-block; width: 2px; height: 1em; vertical-align: -2px; background: var(--signal); }
.mb-bot { margin-right: 10%; background: #fff; border: 1px solid #e3e3dd; border-bottom-left-radius: 4px; }
.mb-work { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; background: #eeeeea; }
.mb-k { margin: 0; font: 600 12.5px/1.3 var(--sans); }
.mb-work .ch-step { font-size: 12.5px; }
.mb-card { margin: 0 0 10px; padding: 12px; border: 1px solid #e5c56b; border-radius: 12px; background: #fffaf0; animation: lf-in 300ms both; }
.mb-card .lf-card-k { color: #8a5d00; font-size: 10px; }
.mb-card-t { margin: 6px 0 8px; font: 600 14px/1.35 var(--sans); }
.mb-card .lf-diff { font-size: 12px; gap: 4px 10px; }
.mb-card .lf-diff dt { color: #6b6b64; }
.mb-card .lf-diff dd { color: #3d3d38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-card .lf-diff del { color: #b42318; }
.mb-card .lf-diff ins { color: #217a45; }
.mb-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mb-acts .ch-btn { justify-content: center; height: 36px; border-radius: 10px; }
.mb-card .lf-out { margin: 4px 0 0; font-size: 13px; color: #3d3d38; }
.mb-card .lf-out[data-ok] { color: #217a45; }
.mb-card .lf-chain li { background: #eeeeea; color: #6b6b64; }
.mb-card .lf-chain li b { color: #3d3d38; }
.mb-compose { margin: 0 12px 8px; padding: 9px 14px; border: 1px solid #dedcd6; border-radius: 18px; background: #fff; color: #8d8d84; font: 13.5px/1 var(--sans); }
.mb-nav { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 4px 14px; border-top: 1px solid #e3e3dd; background: #fff; font: 500 11px/1 var(--sans); color: #8d8d84; text-align: center; }
.mb-nav .on { color: #1f1f1c; font-weight: 700; }
.mb-nav span { white-space: nowrap; }
.mb-badge { display: inline-block; margin-left: 4px; padding: 2px 5px; border-radius: 8px; background: var(--signal); color: #111; font-size: 10px; }
.mb-badge[hidden] { display: none; }

html.motion-paused .lf *, html.motion-paused .lf *::before, html.motion-paused .lf *::after { animation-play-state: paused; }

@media (max-width: 860px) {
  .lf-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: clamp(620px, 88vh, 760px); }
  .lf-side { border-right: 0; border-bottom: 1px solid var(--lf-line); }
  .lf-search, .lf-side-k { display: none; }
  .lf-groups { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 10px; }
  .lf-group { display: contents; }
  .lf-group > b { display: none; }
  .lf-group ul { display: contents; }
  .lf-s { width: 232px; flex: none; grid-template-columns: 8px minmax(0, 1fr) auto; background: var(--lf-hi); }
  .lf-bar .lf-title, .lf-bar .dots, .lf-compose .wk { display: none; }
  .lf-tag { margin-left: 0; line-height: 1.5; }
  .lf-head .lf-h { font-size: 18px; }
  .lf-ask { font-size: 15px; }
  .lf-step { grid-template-columns: 20px minmax(0, 1fr); }
  .lf-step .res { grid-column: 2; text-align: left; }
  .lf-alt { height: clamp(620px, 88vh, 760px); }
  .lf-chan { padding: 0 4px; justify-content: space-between; }
  .lf-chan button { padding: 10px 6px 9px; font-size: 12.5px; }
  .tm-rail { display: none; }
  .ch-msg.me { max-width: 88%; }
  .ch-mob { padding: 12px 8px; }
}
@media (max-width: 480px) {
  .ac-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ac-facts dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .lf *, .lf *::before, .lf *::after { animation: none !important; transition: none !important; }
  .lf-scroll, .ch-feed, .tt-out, .mb-feed { scroll-behavior: auto; }
}
