/* The life's screens (life.js): the first screens, the home, messages, posts. Values are AUN's tokens (docs/66);
   what is laid over a picture uses plain white and black with an alpha, as the voice screen does.
   The reference is the prototype docs/design/2026-11-25_core_ux/aun_core_ux.html (decisions 2026-11-25 (36)). */

/* ---------- choices (docs/66 §5 「選択肢」: white, a grey frame with a thicker foot; the chosen one in the action colour) ---------- */
.lf-q { background: var(--c-surface); }
.lf-q .dock { background: var(--c-surface); }
.lf-q .content { gap: var(--sp-4); }
.lf-q .t-title, .lf-t0 .t-title { white-space: pre-line; }
.lf-opts { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-2); }
.lf-opts.dense { gap: var(--sp-2); }
.lf-opt { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 64px; padding: var(--sp-3) var(--sp-4); text-align: left; font: inherit; color: var(--c-text);
  background: var(--c-surface); border: 2px solid var(--c-line); border-bottom-width: 4px; border-radius: var(--r-s); cursor: pointer; }
.lf-opts.dense .lf-opt { min-height: 56px; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.lf-opt.on { border-color: var(--c-action); background: var(--c-result-soft); }
.lf-opt .tx { flex: 1; min-width: 0; }
.lf-opt .tx b { display: block; font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
.lf-opt .tx small { display: block; margin-top: 2px; font-size: var(--fs-body); line-height: var(--lh-tight); color: var(--c-sub); }
.lf-opt .lf-lead { flex: none; width: 36px; height: 36px; display: grid; place-items: center; color: var(--c-sub); }
/* a flag: a picture letter, set in a box of its own so that it sits level with the name beside it on every phone */
.lf-opt .lf-lead.flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 28px; line-height: 36px; text-align: center; display: block; overflow: hidden; }
/* how much they speak: the steps carry the accent (NT 2026-11-25 「色合いなさすぎて…アクセントは使っていきましょう」) */
.lf-opt .lf-lead.steps { border-radius: var(--r-s); background: var(--c-result-soft); }
.lf-chk { flex: none; width: 24px; height: 24px; border-radius: var(--r-full); background: var(--c-action); color: var(--c-on-action); display: grid; place-items: center; }
.lf-chk .ic { width: 14px; height: 14px; stroke-width: 3; }
.lf-bars { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.lf-bars i { width: 4px; border-radius: 2px; background: color-mix(in srgb, var(--c-action) 22%, transparent); }
.lf-bars i.f { background: var(--c-action); }
.lf-bars .b1 { height: 8px; } .lf-bars .b2 { height: 12px; } .lf-bars .b3 { height: 16px; } .lf-bars .b4 { height: 20px; }
.lf-prog { flex: 1; height: 8px; border-radius: var(--r-full); background: var(--c-surface-2); overflow: hidden; margin: 0 var(--sp-2) 0 var(--sp-1); }
.lf-prog i { display: block; height: 100%; background: var(--c-action); border-radius: var(--r-full); transition: width var(--dur) var(--ease); }
.lf-prog .p1 { width: 50%; } .lf-prog .p2 { width: 100%; }   /* (two questions: life.js QS) */

/* the first screen: plain, the two housemates' picture, the heading */
.lf-s0 .content { gap: var(--sp-5); }
.lf-art { width: 100%; max-width: 420px; align-self: center; aspect-ratio: 660 / 588; border-radius: var(--r-l); background: var(--c-surface-2) url(img/life/s0_art.jpg) center / cover; }
.lf-brand { font-size: var(--fs-sub); font-weight: var(--fw-bold); letter-spacing: .24em; color: var(--c-sub); margin-bottom: var(--sp-2); }
/* what the app is: two pages, a piece of the real screen and one line each */
.lf-in .content { gap: var(--sp-5); }
.lf-in .dock { align-items: center; gap: var(--sp-4); }
.lf-in .dock .btn { align-self: stretch; }
.lf-demo { position: relative; width: 100%; max-width: 420px; align-self: center; aspect-ratio: 4 / 5; max-height: 58dvh; border-radius: var(--r-l); overflow: hidden; background: var(--c-bg); }
.lf-demo.talk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.lf-demo.talk::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(10,14,22,.6)); }
.lf-demo.talk .say { position: absolute; z-index: 1; left: var(--sp-4); bottom: var(--sp-4); max-width: 62%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--c-surface); font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.4; }
.lf-demo.talk .mic { position: absolute; z-index: 1; right: var(--sp-4); bottom: var(--sp-4); width: 56px; height: 56px; border-radius: var(--r-full); background: var(--c-action); color: var(--c-on-action); display: grid; place-items: center; }
.lf-demo.talk .mic .ic { width: 26px; height: 26px; }
.lf-demo.chat { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-2); padding: var(--sp-4); }
.lf-demo.chat .pic { width: 54%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; flex: none; }
/* (the home in the morning: a housemate speaks to them, and the microphone to answer with. NT 2026-11-28) */
/* (the pub: its picture, someone who has just come in, what they say. The same picture and cut-out as the pub itself) */
.lf-demo.bar .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.lf-demo.bar .who { position: absolute; left: 8%; bottom: -34%; height: 118%; width: auto; max-width: none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.lf-demo.bar .say { position: absolute; z-index: 1; right: var(--sp-4); top: var(--sp-4); max-width: 60%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--c-surface); font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.35; box-shadow: var(--shadow-2); }
.lf-demo.chat .dpost { display: flex; align-items: flex-start; gap: var(--sp-3); margin-top: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow-1); }
.lf-demo.chat .dpost b { display: block; font-size: var(--fs-sub); }
.lf-demo.chat .dpost p { margin: 2px 0 0; font-size: var(--fs-body); line-height: 1.45; }
/* the departure: plain, the house's hall as a card, the heading; the line about where the words go is last, under the button */
.lf-t0 .content { gap: var(--sp-5); }
.lf-t0 .lf-art { aspect-ratio: 5 / 4; max-height: 44dvh; background-position: center 38%; }
.lf-t0.tokyo .lf-art { background-image: url(img/life/t0_tokyo.jpg); background-position: 92% 40%; }   /* (a street anyone knows for Tokyo: the old wooden house, the lantern, Skytree — kept in the frame. NT 2026-12-02 「日本ってわかる景色に」) */
/* The world closing in on Tokyo (NT 2026-12-02 「東京へフォーカスしていく演出は？」), over the house's picture (life.js mapRun): sea, land, the country in a soft tint, a pin. */
.lf-t0 .lf-art { position: relative; overflow: hidden; }
.lf-map { position: absolute; inset: 0; background: rgb(213,227,238); transition: opacity .8s ease; }
.lf-map.gone { opacity: 0; }
.lf-map svg { display: block; width: 100%; height: 100%; }
.lf-map .sea { fill: rgb(213,227,238); }
.lf-map .land { fill: rgb(245,242,235); stroke: rgb(178,190,202); stroke-width: .7; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.lf-map .land.jp { fill: rgb(247,218,210); stroke: rgb(214,166,154); }
.lf-pin, .lf-tag { position: absolute; left: 50%; top: 50%; opacity: 0; transition: opacity .25s, scale .35s cubic-bezier(.2, .9, .3, 1.5); }
.lf-pin { width: 16px; height: 16px; margin: -8px; border-radius: var(--r-full); background: var(--c-action); border: 3px solid var(--c-surface); box-shadow: 0 2px 6px rgba(10,14,22,.35); scale: .2; }
.lf-tag { translate: 16px -50%; padding: 5px 11px; border-radius: var(--r-full); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-sub); font-weight: var(--fw-bold); box-shadow: var(--shadow-2); scale: .8; transform-origin: 0 50%; }
.lf-map.at .lf-pin, .lf-map.at .lf-tag { opacity: 1; scale: 1; }
.lf-t0 .lf-brand { letter-spacing: .08em; }
.lf-legal { margin: var(--sp-1) 0 0; text-align: center; font-size: var(--fs-note); line-height: var(--lh-body); color: var(--c-sub); }
.lf-legal a { color: inherit; text-decoration: underline; }
@media (min-width: 720px) { .lf-q { max-width: 480px; margin: 0 auto; width: 100%; } }

/* ---------- the home: the living room, the people who are in, what can be done ---------- */
.lf-home { position: fixed; inset: 0; overflow: hidden; background: #000; container-type: size; }
.lf-home.wait { background: var(--c-text); }
.lf-scene { position: absolute; left: 50%; top: 50%; aspect-ratio: 370 / 780; width: max(112cqw, calc(112cqh * 370 / 780)); transform: translate(-50%, -48%); }   /* (a step closer: the people larger in the frame. NT 11/26 「もうちょっとサムが近い」) */   /* (the picture covers the screen at its own shape: the people stay where the sofa is) */
/* the room at the hour it is: the window on the back wall shows the time of day outside (NT 2026-11-25 「窓が欲しい。外の時間帯がわからない」) */
.lf-bg { position: absolute; inset: 0; background: center / cover; }
.lf-home.s0 .lf-bg { background-image: url(img/life/home_bg_0.jpg); }
.lf-home.s1 .lf-bg { background-image: url(img/life/home_bg_1.jpg); }
.lf-home.s2 .lf-bg { background-image: url(img/life/home_bg_2.jpg); }
.lf-home.s3 .lf-bg { background-image: url(img/life/home_bg_3.jpg); }
/* (the Tokyo life: its own room, and Kenta, who is very big, standing by the kitchen on the right) */
.lf-home.tk.s0 .lf-bg { background-image: url(img/life/tk_home_bg_0.jpg); }
.lf-home.tk.s1 .lf-bg { background-image: url(img/life/tk_home_bg_1.jpg); }
.lf-home.tk.s2 .lf-bg { background-image: url(img/life/tk_home_bg_2.jpg); }
.lf-home.tk.s3 .lf-bg { background-image: url(img/life/tk_home_bg_3.jpg); }
.lf-who.kenta { height: 43%; left: 70%; bottom: 25.5%; }
.lf-shadow.kenta { left: 70%; bottom: 24.4%; width: 32%; height: 3%; }
.lf-hit.kenta { left: 53%; bottom: 25.5%; width: 34%; height: 43%; }
.lf-say.kenta { right: 9%; bottom: calc(25.5% + 43% + 1.5%); } .lf-say.kenta::after { right: 22%; }
.lf-mur.kenta { right: 9%; bottom: calc(25.5% + 43% + 1%); } .lf-mur.kenta::after { right: 22%; }
/* (Mio, the housemate from 12/02: by the kitchen, in front of the fridge at the end of the sofa — a step back into the room, at the size a woman of 158 cm is there. NT 12/02 「サイズ感と比率がおかしい」「棒立ちで変」) */
.lf-who.mio { height: 31%; left: 73%; bottom: 34%; }
.lf-shadow.mio { left: 73%; bottom: 33.3%; width: 15%; height: 2%; }
.lf-hit.mio { left: 63.5%; bottom: 34%; width: 19%; height: 31%; }
.lf-say.mio { right: 9%; bottom: calc(34% + 31% + 1.5%); } .lf-say.mio::after { right: 22%; }
.lf-mur.mio { right: 9%; bottom: calc(34% + 31% + 1%); } .lf-mur.mio::after { right: 22%; }
.lf-who { position: absolute; transform: translateX(-50%); pointer-events: none; }
.lf-who.sam { height: 22%; left: 43%; bottom: 40.3%; }   /* (the middle of the sofa: clear of the table in front of its left end. NT 2026-11-25) */
.lf-who.ella { height: 50%; left: 74%; bottom: 23.5%; }   /* (drawn again with an ordinary figure, lit by the room; stands back a little, feet clear of 出かける. NT 11/26 「エラのスタイルがちょっと悪い」) */
.lf-shadow { position: absolute; z-index: 1; pointer-events: none; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(40,22,10,.45), rgba(40,22,10,0)); }
.lf-shadow.ella { left: 74%; bottom: 22.3%; width: 28%; height: 3%; }
.lf-hit { position: absolute; z-index: 2; border: 0; background: none; padding: 0; cursor: pointer; }
.lf-hit.sam { left: 30%; bottom: 40%; width: 26%; height: 23%; }
.lf-hit.ella { left: 58%; bottom: 23.5%; width: 32%; height: 50%; }
/* Said to you: a white bubble with a tail and the accent's ring, bold, gently moving. Muttered to themselves: a dark
   glass strip, small slanted letters after "…", still. The two are told apart at a glance (NT 2026-11-25 「違いはもう少し強めに」). */
.lf-say { position: absolute; z-index: 3; max-width: 60%; min-height: var(--hit); padding: 11px 15px; border: 0; border-radius: 20px; background: #fff; color: var(--c-text); font: inherit; font-size: var(--fs-body);
  font-weight: var(--fw-bold); line-height: 1.35; text-align: left; box-shadow: var(--shadow-2); cursor: pointer; }   /* (no red edge: the one red is the main button. NT 2026-11-30) */
.lf-say::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-bottom-right-radius: 3px; }
/* (on a short screen the picture is cut at the top: what is said stays clear of the clock) */
.lf-say.ella { right: 9%; bottom: calc(23.5% + 50% + 1.5%); } .lf-say.ella::after { right: 22%; }
.lf-say.sam { right: 46%; bottom: calc(40.3% + 22% + 2%); max-width: 45%; } .lf-say.sam::after { right: 26px; }   /* (it grows to the left, away from Ella's face) */   /* (the tail is over his head, wherever the bubble's edge falls) */
@media (prefers-reduced-motion: no-preference) { .lf-say.is-next { animation: lf-bob 2.4s ease-in-out infinite; } @keyframes lf-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } } }
.lf-mur { position: absolute; z-index: 3; max-width: 44%; min-height: var(--hit); padding: 8px 12px; border: 0; border-radius: 14px; background: rgba(17,19,24,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: rgba(255,255,255,.95); font: inherit; font-size: var(--fs-sub); line-height: 1.4; text-align: left; cursor: pointer; }
.lf-mur::after { content: ""; position: absolute; bottom: -7px; width: 14px; height: 14px; background: rgba(17,19,24,.62); clip-path: polygon(0 0, 100% 0, 50% 100%); }   /* (a small tail toward whoever mutters it: Codex 155 ②) */
.lf-mur.ella::after { right: 22%; } .lf-mur.sam::after { right: 26px; }
.lf-mur::before { content: "\2026\00a0"; font-style: normal; opacity: .75; }
.lf-scene:not(.spot) .lf-mur { padding: 6px 10px; border-radius: 12px; font-size: var(--fs-note); line-height: 1.35; }   /* (at home a mutter is lighter than words said to them: NT 2026-11-27 「サムの吹き出しがおかしい」, Codex 182 ④) */
.lf-scene:not(.spot) .lf-mur::after { width: 12px; height: 8px; bottom: -8px; }
.lf-mur.sam { right: 46%; bottom: calc(40.3% + 22% + 1%); max-width: 45%; }   /* (under him, clear of the window) */ .lf-mur.ella { right: 9%; bottom: calc(23.5% + 50% + 1%); }
/* (the clock at the top left: Ella stands on the right, and on a short screen her words reached up under it. NT 2026-11-27 「エマのセリフと、日曜・昼みたいなのが被ってみづらい」) */
.lf-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: flex; justify-content: flex-start; align-items: center; padding: calc(var(--safe-top) + var(--sp-2)) var(--sp-4) 0; }
.lf-chip { display: inline-flex; align-items: center; gap: 2px; min-height: var(--hit); padding: 0 14px; border: 0; border-radius: var(--r-full); background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--c-text); font: inherit; font-size: var(--fs-sub); font-weight: var(--fw-bold); cursor: pointer; }
.lf-chip.round { width: var(--hit); padding: 0; justify-content: center; }
.lf-chip .ic { width: 22px; height: 22px; } .lf-chip .ic.s { width: 16px; height: 16px; }
/* A message that has just come in: a phone's own notification (NT 2026-11-25 「もっと通知っぽく」「数秒で消えるように」). Frosted
   glass, the sender's picture with the app's mark on its corner, the name and "now", two lines of the message. It drops in,
   stays about five seconds (life.js BAN_MS) and slides back up. */
.lf-banner { position: absolute; left: 8px; right: 8px; top: calc(var(--safe-top) + 6px); z-index: 8; display: flex; align-items: center; gap: var(--sp-3); padding: 12px 14px 12px 12px; border: 0; border-radius: 24px;
  background: rgba(246,246,248,.82); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: 0 10px 30px rgba(10,14,22,.28), 0 1px 3px rgba(10,14,22,.12);
  color: var(--c-text); font: inherit; text-align: left; cursor: pointer; transition: translate .35s ease-in, opacity .3s ease-in; }
.lf-bpic { position: relative; flex: none; display: block; }
.lf-bpic .lf-av { display: block; width: 42px; height: 42px; }
.lf-bapp { position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; padding: 3px; border-radius: 6px; background: var(--c-surface); box-shadow: 0 1px 3px rgba(10,14,22,.25); object-fit: contain; }
.lf-btx { flex: 1; min-width: 0; font-size: var(--fs-sub); line-height: 1.35; }
.lf-bh { display: flex; align-items: baseline; gap: var(--sp-2); }
.lf-bh b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-bh small { flex: none; font-size: var(--fs-note); color: var(--c-sub); }
.lf-bm { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lf-banner { touch-action: none; -webkit-user-select: none; user-select: none; }   /* (pushed up, it goes: life.js banArm) */
.lf-banner.held { transition: none; animation: none !important; }
.lf-banner.out { translate: 0 -140%; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .lf-banner:not(.still) { animation: lf-drop .5s cubic-bezier(.2, .9, .25, 1.08); } @keyframes lf-drop { from { translate: 0 -140%; } } }
@media (prefers-reduced-motion: reduce) { .lf-banner { transition: opacity .2s; } .lf-banner.out { translate: none; } }
.lf-av { width: 40px; height: 40px; flex: none; border-radius: var(--r-full); object-fit: cover; object-position: 50% 18%; background: var(--c-surface-2); }
.lf-av.ini { display: grid; place-items: center; font-weight: var(--fw-bold); color: var(--c-sub); }
.lf-av.big { width: 72px; height: 72px; }
/* wider than a phone: the room keeps a phone's shape, in the middle (beside the side bar where there is one: style.css from 1024px) */
@media (min-width: 600px) { .lf-home { left: 50%; right: auto; width: 430px; margin-left: -215px; } }
@media (min-width: 1024px) { .lf-home { left: calc(232px + (100vw - 232px) / 2); top: 16px; bottom: 16px; border-radius: var(--r-l); } .lf-bottom { bottom: var(--sp-4); } }

/* which of the first three screens this is */
.lf-dots { display: flex; gap: 6px; } .lf-dots i { width: 7px; height: 7px; border-radius: var(--r-full); background: var(--c-line); } .lf-dots i.on { background: var(--c-action); }

/* the clock's dialog: where to go on to, and that there is no way back (decisions (35)) */
.lf-shade { position: fixed; inset: 0; z-index: 20; background: var(--c-scrim); }
.lf-dlg { position: fixed; left: var(--side); right: var(--side); top: 50%; z-index: 21; max-width: 340px; margin: 0 auto; transform: translateY(-50%); display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-5) var(--sp-3); border-radius: var(--r-l); background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-2); }
.lf-dlg .t-body { margin-top: var(--sp-2); }
.lf-dlg .actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-1); }
.lf-dlg .actions .cancel { color: var(--c-text); font-weight: var(--fw-regular); }
.lf-never { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--hit); font-size: var(--fs-sub); color: var(--c-sub); cursor: pointer; }   /* (次から出さない: NT 11/27) */
.lf-never input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-action); }

/* going out: a picture for each place (NT 2026-11-25 「イメージ画像が絶対欲しい」) */
.lf-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.lf-place { position: relative; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; background: var(--c-surface-2); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.lf-place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lf-place .t { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-6) var(--sp-3) var(--sp-3); background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.lf-place .t b { display: block; font-size: var(--fs-sub); line-height: var(--lh-tight); word-break: auto-phrase; text-wrap: balance; }
.lf-place .t small { display: block; font-size: var(--fs-note); opacity: .9; }
.lf-place:disabled { cursor: default; } .lf-place:disabled img { filter: grayscale(.7) brightness(.6); }

/* ---------- the talk (app.js's voice screen): what the life adds to its bar ---------- */
.bar-end:has(.lf-leave) { flex: 1; }
/* on a wide screen the talk keeps a phone's shape, so that the face is whole (NT 2026-11-25 「PCだけど、チャットで顔が隠れちゃう」) */
@media (min-width: 600px) {
  .screen.chat.life > .top, .screen.chat.life > .stage, .screen.chat.life > .inputbar, .screen.chat.life > .content { width: 100%; max-width: 430px; margin-left: auto; margin-right: auto; }
  .screen.chat.life > .lf-tipslot { width: 100%; max-width: 430px; margin-left: auto; margin-right: auto; box-sizing: border-box; }   /* (the note stays over the control it is about: Codex 273 ③) */
  .screen.chat.life > .stage { flex: 1 1 auto; min-height: min(720px, calc(100dvh - 200px)); border-radius: var(--r-m); }
}
.screen.chat.life .chatside { display: none; }   /* (no column of people and facts beside a talk of the life: NT 2026-11-25) */
/* the person's whole face stays in view (NT 2026-11-25): the lines keep to the lower part of the picture, on a lighter shade */
.screen.life .stage .sv { max-height: 40%; padding-top: 28px; background: linear-gradient(to bottom, transparent, rgba(10,14,22,.38) 40px, rgba(10,14,22,.55)); }
.screen.life .stage .sp { object-position: 50% 8%; }
.bar-end .grow { flex: 1; }
/* hints (NT 2026-11-25): the bulb is lit while they are open and glows while they are being made; the hints come in on
   white with the accent's line, and the one taken is filled */
.screen.life #panelBtn.on { color: var(--c-on-action); }
.screen.life #panelBtn.on::before { background: var(--c-action); box-shadow: 0 0 0 4px var(--c-result-soft), 0 4px 14px color-mix(in srgb, var(--c-action) 45%, transparent); }
.screen.life .hrow { gap: var(--sp-2); padding-top: 2px; padding-bottom: 2px; }
.screen.life .hchip { background: var(--c-surface); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-action) 38%, transparent), var(--shadow-1); font-weight: var(--fw-bold); }
.screen.life .hchip[aria-pressed="true"] { background: var(--c-action); color: var(--c-on-action); box-shadow: none; }
.screen.life .hchip.more { box-shadow: inset 0 0 0 1.5px var(--c-line); font-weight: var(--fw-regular); }
.screen.life .hwait.life { gap: var(--sp-2); padding: 0; }
.screen.life .hwait.life i { display: block; width: 104px; height: var(--hit); border-radius: var(--r-full); background: var(--c-result-soft); }
.screen.life .hwait.life i:nth-child(2) { width: 136px; } .screen.life .hwait.life i:nth-child(3) { width: 88px; }
.screen.life .vhint { background: var(--c-surface); box-shadow: inset 4px 0 0 var(--c-action), var(--shadow-1); padding-left: var(--sp-4); }
.screen.life .vhint .stext { font-weight: var(--fw-bold); }
@media (prefers-reduced-motion: no-preference) {
  .screen.life #panelBtn.wait::before { animation: lf-glow 1.1s ease-in-out infinite; }
  .screen.life .hwait.life i { animation: lf-shim 1.1s ease-in-out infinite; }
  .screen.life .hwait.life i:nth-child(2) { animation-delay: .15s; } .screen.life .hwait.life i:nth-child(3) { animation-delay: .3s; }
  .screen.life .hrow.fresh .hchip:not(.more) { animation: lf-rise var(--dur) var(--ease) both; }
  .screen.life .hrow.fresh .hchip:nth-child(2) { animation-delay: 50ms; } .screen.life .hrow.fresh .hchip:nth-child(3) { animation-delay: 100ms; } .screen.life .hrow.fresh .hchip:nth-child(4) { animation-delay: 150ms; }
  @keyframes lf-glow { 0%, 100% { box-shadow: 0 0 0 3px var(--c-result-soft), 0 0 0 0 color-mix(in srgb, var(--c-action) 50%, transparent); } 50% { box-shadow: 0 0 0 7px var(--c-result-soft), 0 0 18px 2px color-mix(in srgb, var(--c-action) 50%, transparent); } }
  @keyframes lf-shim { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
  @keyframes lf-rise { from { opacity: 0; translate: 0 6px; } }
}
/* 「こう言いたい」: first in the row of hints, in the accent; its box takes the bar's place while it is written in */
.screen.life .hchip.want { background: var(--c-result-soft); color: var(--c-result-ink); box-shadow: none; animation: none; }
.lf-want { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3) var(--sp-3); }
.lf-wantf { position: relative; flex: 1; min-width: 0; display: flex; }
.lf-wantx { position: absolute; right: 2px; top: 0; bottom: 0; width: var(--hit); border: 0; background: none; color: var(--c-sub); display: grid; place-items: center; cursor: pointer; }
.lf-want input { flex: 1; min-width: 0; min-height: var(--h-control); padding: 0 var(--hit) 0 var(--sp-4); border: 2px solid var(--c-action); border-radius: var(--r-full); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: var(--fs-body); }
.lf-want .btn { width: auto; flex: none; padding-left: var(--sp-4); padding-right: var(--sp-4); border-radius: var(--r-full); }
.lf-never { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--hit); margin-top: var(--sp-1); font-size: var(--fs-sub); color: var(--c-sub); cursor: pointer; }
.lf-never input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-action); }
.lf-act, .lf-heard { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2) var(--side) var(--sp-2); }
.lf-heardt { align-self: flex-end; max-width: 88%; padding: var(--sp-3) 14px; border: 2px dashed var(--c-control); border-radius: 18px 18px 6px 18px; background: var(--c-surface); }
.lf-heardt .label { display: block; font-size: var(--fs-note); font-weight: var(--fw-bold); color: var(--c-sub); margin-bottom: 2px; }
.lf-heardt p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.lf-contact { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); padding-bottom: var(--sp-2); }

/* ---------- messages ---------- */
.lf-one { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-rowdot { position: static; flex: none; }
.lf-dm { background: var(--c-bg); }
.lf-hdr { position: sticky; top: 0; z-index: 5; justify-content: center; gap: var(--sp-2); min-height: calc(var(--safe-top) + var(--hit)); padding: var(--safe-top) var(--hit) 0; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }   /* (the one talked with in the middle, as the tabs' titles: NT 11/27) */
.lf-hdr .back { position: absolute; left: calc(var(--side) - var(--sp-1)); top: var(--safe-top); }   /* (48 to press, inside the bar under the notch: Codex 190 ①) */
.lf-hdr .lf-av { width: 32px; height: 32px; }
/* the tabs' screens of the life: a thin bar (44) with the title in the middle, a line under it, staying at the top, as ordinary apps (NT 11/27 「上の部分がちょっとでかい」「中央に配置とかちょっといい感じに」, X). Here, not in ui/components.css: the test app keeps its own (docs/66 §2) */
.screen.tab > .bar { position: sticky; top: 0; z-index: 6; justify-content: center; min-height: calc(var(--safe-top) + 44px); padding: var(--safe-top) var(--side) 0; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.screen.tab > .bar .t-title { padding: 0; font-size: var(--fs-body); line-height: 1.3; text-align: center; }
.screen.tab > .content { padding-top: var(--sp-4); }
/* the posts and the messages are white from edge to edge under the bar, as X and the messaging apps have them (NT 11/27 「マージン距離感…ダサい」) */
.screen.tab.t-sns, .screen.tab.t-sns > .bar, .screen.tab.t-dm, .screen.tab.t-dm > .bar { background: var(--c-surface); }
.screen.tab.t-sns > .content, .screen.tab.t-dm > .content { padding-top: 0; padding-left: 0; padding-right: 0; }   /* (the rows reach the edges at every width; each row keeps its own side room: Codex 190 ②) */
.t-dm .flow > .list { margin: 0; border-radius: 0; box-shadow: none; background: none; }
.t-dm .flow > .list .row { min-height: 72px; padding: var(--sp-3) var(--side); gap: var(--sp-3); border-top: 0; position: relative; }
.t-dm .flow > .list .row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: calc(var(--side) + 52px + var(--sp-3)); border-top: 1px solid var(--c-line); }
.t-dm .flow > .list .row-pic.face { width: 52px; height: 52px; }
.t-dm .flow > .list .row-text { gap: 2px; }
.lf-chat { gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) 168px; }
.lf-msg { align-self: flex-start; max-width: 80%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--c-surface); box-shadow: var(--shadow-1); font-size: var(--fs-body); line-height: 1.45; overflow-wrap: anywhere; }
.lf-msg[data-tr] { cursor: pointer; }
/* (one's own message: the pale tint one's own words have in a talk — the action colour is for what is pressed. NT 2026-11-25) */
.lf-msg.mine { align-self: flex-end; background: var(--c-result-soft); color: var(--c-text); box-shadow: none; border-radius: 18px 18px 6px 18px; }
.lf-msg.mine.stk { padding: 0; background: none; box-shadow: none; font-size: 56px; line-height: 1; }
.lf-msg .tr, .lf-post .tr, .lf-cm .tr { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--c-line); font-size: var(--fs-sub); color: var(--c-sub); }
.lf-msg.wait { padding: 14px 18px; }
.lf-day { align-self: center; font-size: var(--fs-note); font-weight: var(--fw-bold); color: var(--c-sub); }
.lf-compose { position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 6; background: var(--c-surface); box-shadow: 0 -1px 0 var(--c-line); padding-bottom: var(--safe-bottom); }
.lf-inp, .lf-cbox { display: flex; align-items: flex-end; gap: var(--sp-2); }
.lf-inp { padding: var(--sp-1) var(--sp-4) var(--sp-3); }
.lf-inp textarea, .lf-cbox textarea { display: block; flex: 1; min-width: 0; height: var(--hit); min-height: var(--hit); max-height: 116px; padding: 13px var(--sp-4); border: 0; border-radius: 24px; background: var(--c-bg); color: var(--c-text); font: inherit; font-size: var(--fs-body); line-height: 1.4; resize: none; }
.lf-inp .btn, .lf-cbox .btn { flex: none; }
.lf-micb { flex: none; }
.lf-rec { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-3) var(--sp-3); }
.lf-rec .grow { flex: 1; min-width: 0; }
article .lf-rec { padding: 0 var(--sp-3) var(--sp-4); }
/* Arriving somewhere: under what is seen there, what there is to do (NT 2026-11-25 「コーヒーを頼もうとか案内しないと」). */
/* (NT 2026-11-27 「真っ暗」「もっと大きく上の方、中央の方に」: what to do is the title — large, a third of the way down, in the
    middle, on a plate of its own; the picture stays bright, and only the part under what is told is shaded) */
.vcard:has(> .lf-goal) { background: linear-gradient(to bottom, rgba(10,14,22,0) 52%, rgba(10,14,22,.72) 82%); }
.lf-hud.right { justify-content: flex-end; }
.vcard > .vcard-in { min-height: 0; }   /* (a long text, large letters: what is told scrolls, the title and the button stay. Codex 188 ③) */
.vcard > .lf-goal { flex: none; align-self: center; max-width: 100%; margin: clamp(var(--sp-3), 16cqh, 160px) 0 auto; padding: var(--sp-3) var(--sp-5); border-radius: var(--r-l); background: rgba(10,14,22,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: clamp(var(--fs-head), 8vw, var(--fs-title)); font-weight: var(--fw-bold); line-height: 1.3; text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
@media (min-width: 720px) { .lf-chat, .lf-inp { width: 100%; max-width: 600px; margin-left: auto; margin-right: auto; } }
@media (min-width: 1024px) { .lf-compose { left: 232px; } }

/* ---------- posts (NT 2026-11-27 「Xを参考に」: a flat list, the face on the left, a row of what one does under each) ---------- */
.lf-feed { display: flex; flex-direction: column; background: var(--c-surface); }
.lf-post { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--side) var(--sp-1); border-bottom: 1px solid var(--c-line); }
.lf-post > .lf-av { margin-top: 2px; }
.lf-post .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.lf-post .hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--sp-2); min-width: 0; }
.lf-post .hd b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lf-post .hd small { flex: none; font-size: var(--fs-sub); color: var(--c-sub); }
.lf-feed .lf-post .hd { flex-wrap: nowrap; } .lf-feed .lf-post .hd { gap: var(--sp-1); } .lf-feed .lf-post .hd small::before { content: "·"; margin-right: var(--sp-1); }   /* (name · time, on one line as X has it) */
.lf-post .tx { font-size: var(--fs-body); line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.lf-post .ph { display: block; width: 100%; max-height: 300px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; border-radius: 16px; border: 1px solid var(--c-line); }
.lf-post .lf-share { margin: 0; }
/* (the row: three equal columns over the width as X does — comments, like, listen at the right — so the like does not
    move with the count; the 48px to press reaches into the space around it, not adding to it) */
.lf-pas { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; margin: calc(-1 * var(--sp-2)) calc(-1 * var(--sp-3)) 0; }
.lf-pa { display: inline-flex; flex-direction: row; flex-wrap: nowrap; flex: none; white-space: nowrap; position: relative; align-items: center; justify-self: start; gap: var(--sp-1); min-width: var(--hit); min-height: calc(var(--hit) - var(--sp-2)); padding: 0 var(--sp-3); border: 0; background: none; color: var(--c-sub); font: inherit; font-size: var(--fs-sub); cursor: pointer; }
.lf-pa::after { content: ""; position: absolute; inset: calc(-1 * var(--sp-1)) 0; }   /* (40px seen, 48px to press: the rest reaches into the space above and below it, not into the next post. Codex 189 ⑦) */
.lf-pa .ic { flex: none; display: block; width: 20px; height: 20px; } .lf-pa span { display: inline; }
.lf-pa:last-child { grid-column: 3; justify-self: end; }
.lf-pa.like.on { color: var(--c-action); } .lf-pa.like.on .ic { fill: currentColor; }
@media (prefers-reduced-motion: no-preference) { .lf-pa.like.pop .ic { animation: lf-pop .32s cubic-bezier(.3, 1.6, .5, 1); } @keyframes lf-pop { 0% { scale: .6; } 100% { scale: 1; } } }
@media (hover: hover) { .lf-pa:hover { color: var(--c-text); } .lf-pa.like:hover { color: var(--c-action); } }
/* the comments of one post: from below over the whole screen; the post, the comments, and the box at the bottom */
/* a post's own page (X's way: not a sheet): the post, its comments, the box at the bottom */
.lf-p1 { background: var(--c-surface); }
.lf-chat.lf-p1log { gap: 0; padding: 0 0 168px; }
.lf-p1log .lf-post { cursor: auto; }
/* (the post at the top of its own page, as X shows one: face, name and time over the words, which then take the whole width) */
.lf-post.top { flex-direction: column; align-items: stretch; gap: var(--sp-3); padding-top: var(--sp-4); }
.lf-ptop { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.lf-ptop .hd { flex-direction: column; align-items: flex-start; gap: 0; }
.lf-post.top .tx { font-size: calc(var(--fs-body) * 1.12); line-height: 1.55; }
.lf-post.top .lf-pas { position: relative; margin-top: 0; padding-top: var(--sp-1); }
.lf-post.top .lf-pas::before { content: ""; position: absolute; top: 0; left: var(--sp-3); right: var(--sp-3); border-top: 1px solid var(--c-line); }   /* (the line as wide as the words, not the marks' room to press) */
.lf-feed .lf-post { cursor: pointer; transition: background-color .12s; } .lf-feed .lf-post:focus-visible { outline: 2px solid var(--c-action); outline-offset: -2px; }
.lf-feed .lf-post:active:not(:has(button:active)) { background: var(--c-bg); }   /* (pressed: the post answers the finger, but not when a mark in it is what is pressed) */
/* the box from below, opened by the comment mark: the post it answers, small, then the box */
.ui-sheet .body.lf-rbody { padding: 0 var(--side) var(--sp-4); gap: var(--sp-4); }
.lf-rq { display: flex; gap: var(--sp-3); align-items: flex-start; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-line); }
.lf-rq .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.lf-rq .main b { font-size: var(--fs-sub); }
.lf-rq .main p { margin: 0; font-size: var(--fs-sub); line-height: 1.5; color: var(--c-sub); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lf-reply { display: flex; flex-direction: column; gap: var(--sp-4); }
/* (X's way: a line from the face of the post answered down to one's own face, and the words written beside it — no grey box;
    the microphone and 送る under it, on the right) */
.lf-reply { gap: 0; }
.lf-reply .lf-rq { position: relative; border-bottom: 0; padding-bottom: var(--sp-4); }
.lf-reply .lf-rq::before { content: ""; position: absolute; left: 19px; top: 46px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--c-line); }
.lf-reply .lf-cbox { display: grid; grid-template-columns: 40px 1fr auto auto; column-gap: var(--sp-3); row-gap: var(--sp-3); align-items: center; }
.lf-reply .lf-cbox > .lf-av { align-self: start; }
.lf-reply .lf-cbox textarea { grid-column: 2 / -1; align-self: start; height: auto; min-height: 72px; padding: 9px 0 0; border-radius: 0; background: none; font-size: calc(var(--fs-body) * 1.06); }
.lf-reply .lf-cbox textarea:focus { outline: none; }
.lf-reply:has(> .lf-rec) .lf-rq::before { display: none; }   /* (recording: one's own face is away, so the line goes too. Codex 264 ③) */
.lf-reply .lf-cbox .lf-micb { grid-column: 3; } .lf-reply .lf-cbox .btn { grid-column: 4; }
/* (a comment lines up with the post: the same face size and the same column for the words; a reply is not set in) */
.lf-cm { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-4) var(--side); border-bottom: 1px solid var(--c-line); }
.lf-cm .lf-av { margin-top: 2px; }
.lf-cm .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-1); font-size: var(--fs-body); line-height: 1.5; overflow-wrap: anywhere; }
.lf-cm .main b { font-size: var(--fs-sub); }
.lf-cm [data-tr] { cursor: pointer; }
.lf-cm.wait { padding-left: calc(var(--side) + 40px + var(--sp-3)); }
/* the profile */
.lf-photo { align-self: center; width: 104px; height: 104px; border-radius: var(--r-full); background: var(--c-surface-2); color: var(--c-sub); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.lf-photo .ic { width: 32px; height: 32px; } .lf-photo img { width: 100%; height: 100%; object-fit: cover; }
.lf-field { display: block; padding: var(--sp-3) var(--sp-4); border: 2px solid var(--c-line); border-radius: var(--r-s); background: var(--c-surface); }
.lf-field .k { font-size: var(--fs-sub); color: var(--c-sub); }
.lf-field input { display: block; width: 100%; padding: var(--sp-1) 0; border: 0; background: none; color: var(--c-text); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-bold); }
.lf-seg { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.lf-seg button { flex: 1; min-height: var(--hit); border: 2px solid transparent; border-radius: var(--r-s); background: var(--c-bg); color: var(--c-text); font: inherit; font-weight: var(--fw-bold); cursor: pointer; }
.lf-seg button.on { border-color: var(--c-action); background: var(--c-result-soft); }
/* what they like: pieces to press, any number, in two columns (NT 2026-11-30) */
.lf-likes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin-top: var(--sp-2); }
.lf-likes button { min-height: 56px; padding: var(--sp-2) var(--sp-3); border: 2px solid var(--c-line); border-radius: var(--r-s); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-bold); overflow-wrap: anywhere; cursor: pointer; }
.lf-likes button.on { border-color: var(--c-action); background: var(--c-result-soft); }
/* a comment begun in their own language: the line to say, over the box, with its voice (decisions (157)) */
.lf-cwant { display: flex; align-items: center; gap: var(--sp-1); padding: var(--sp-2) var(--sp-2) 0 var(--sp-2); }
.lf-cwant .en { flex: 1; min-width: 0; margin: 0; font-size: calc(var(--fs-body) * 1.06); font-weight: var(--fw-bold); line-height: 1.4; overflow-wrap: anywhere; }
.lf-cwant .lf-pa { flex: none; padding: 0 var(--sp-2); }
.lf-cwant .spin { margin: var(--sp-2) var(--sp-3); }
@media (min-width: 720px) { .lf-cwant { width: 100%; max-width: 600px; margin: 0 auto; } }

/* the record tab: the way to the settings stands at the right end of its heading */
.screen.tab .bar .bar-end { margin-left: auto; }

/* ---------- the end of a talk (the result: docs/design/2026-11-25_core_ux/aun_talk_end.html v3) ----------
   One: the person's face, the learner's own natural line on it, "it got across" and what the person now knows.
   Then the cards (docs/108 v5, below): a fix seen, and said again in a new sentence. */
.lf-res { background: var(--c-bg); }
.lf-knows { margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow-1); }
.lf-rheard .k { font-size: var(--fs-note); font-weight: var(--fw-bold); color: var(--c-sub); }
.lf-res .dock { background: var(--c-bg); display: flex; flex-direction: column; gap: var(--sp-2); }   /* (not see-through: what scrolls under the buttons showed through them and ran into their words. NT 11/26 「背景透過されてて…めっちゃみづらい」「戻るとかも合体している」) */
.lf-res .dock::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; background: linear-gradient(to top, var(--c-bg), transparent); pointer-events: none; }   /* (where the page scrolls away under them) */
.lf-res .bar { display: flex; align-items: center; gap: var(--sp-2); }
.lf-steps { flex: 1; display: flex; gap: 6px; margin-right: var(--sp-3); }
.lf-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--c-surface-2); } .lf-steps i.on { background: var(--c-action); }
.lf-rheard { margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); border: 1.5px dashed var(--c-line); }
.lf-rheard p { margin: var(--sp-1) 0 0; display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-body); font-weight: var(--fw-bold); }
.lf-rheard.same { border-style: solid; border-color: var(--c-ok); background: var(--c-ok-bg); } .lf-rheard.same .ic { color: var(--c-ok); }
/* the cards after a talk and the notebook's practice (docs/108 v5; mock docs/design/2026-11-26_self_repair b·c·e) */
.lf-grow { flex: 1; }
.lf-dropb { flex: none; color: var(--c-sub); } .lf-dropb svg { width: 22px; height: 22px; }
.lf-skip { flex: none; border: 0; background: none; font: inherit; font-size: var(--fs-sub); color: var(--c-sub); padding: 8px 4px 8px 12px; min-height: var(--hit); }
.lf-rp { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.lf-rp .them { display: flex; align-items: flex-end; gap: var(--sp-2); }
.lf-rp .them .lf-av { width: 32px; height: 32px; flex: none; }
.lf-rp .b { max-width: 82%; padding: 11px 15px; border-radius: 20px; font-size: var(--fs-body); line-height: 1.4; overflow-wrap: anywhere; }
.lf-rp .them .b { background: var(--c-surface); border-bottom-left-radius: 6px; box-shadow: var(--shadow-1); }
.lf-rp .me { align-self: flex-end; background: var(--c-surface-2); border-bottom-right-radius: 6px; font-weight: var(--fw-bold); }
.lf-rp .me u { text-decoration: none; background: var(--c-result-soft); color: var(--c-action); border-radius: 5px; padding: 1px 4px; }
.lf-ans { margin-top: var(--sp-5); }
.lf-ans .now { margin: 0; display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-title); font-weight: var(--fw-bold); line-height: 1.3; color: var(--c-result-ink); overflow-wrap: anywhere; }
.lf-ans .now span { flex: 1; min-width: 0; } .lf-ans .now .round { flex: none; color: var(--c-text); margin-top: -4px; }
.lf-ans .why { margin: var(--sp-3) 0 0; font-size: var(--fs-body); line-height: 1.5; }
.lf-ask { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }
.lf-ask .q { margin: 0; font-size: var(--fs-head); font-weight: var(--fw-bold); line-height: 1.4; }
.lf-sayp > .content { display: flex; flex-direction: column; }
.lf-spoken { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-5) 0; min-height: 140px; }
.lf-spoken .said { width: 100%; box-sizing: border-box; padding: 16px 8px 16px 18px; border-radius: 20px; border-bottom-right-radius: 6px; background: var(--c-surface-2); display: flex; gap: var(--sp-2); align-items: center; }
.lf-spoken .said.ok { background: var(--c-ok-bg); } .lf-spoken .said > .ic { color: var(--c-ok); flex: none; }
.lf-spoken .said p { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-head); font-weight: var(--fw-bold); line-height: 1.35; overflow-wrap: anywhere; }
.lf-spoken .said .no { color: var(--c-sub); font-weight: var(--fw-regular); }
.lf-spoken .said .round { flex: none; color: var(--c-text); }
.lf-listen { display: flex; gap: 8px; } .lf-listen i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-action); opacity: .3; }
@media (prefers-reduced-motion: no-preference) { .lf-listen i { animation: lf-pulse 1.2s ease-in-out infinite; } .lf-listen i:nth-child(2) { animation-delay: .2s; } .lf-listen i:nth-child(3) { animation-delay: .4s; } @keyframes lf-pulse { 50% { opacity: 1; } } }
.lf-ask .model { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 12px 6px 12px 16px; border-radius: 20px; border-bottom-left-radius: 6px; background: var(--c-surface); box-shadow: var(--shadow-1); }
.lf-ask .model p { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.4; color: var(--c-result-ink); }
.lf-ask .model.hid p { filter: blur(6px); user-select: none; -webkit-user-select: none; }
.lf-veil { flex: 1; min-width: 0; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.lf-ask .model .round { flex: none; margin: -6px 0; color: var(--c-sub); }
.lf-rephead { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-2); }
.lf-rephead .lf-av { width: 52px; height: 52px; flex: none; } .lf-rephead .t-title { margin: 0; } .lf-rephead .t-sub { margin: 2px 0 0; }
.lf-rep .t-head { margin: var(--sp-2) 0 -16px; }   /* (a heading with what it heads: 8 between them, 24 between blocks. Codex 173 ⑧) */
.lf-repbest { display: flex; gap: var(--sp-2); align-items: flex-start; padding: 14px 16px; border-radius: var(--r-m); background: var(--c-ok-bg); }
.lf-repbest .ic { color: var(--c-ok); flex: none; margin-top: 3px; }
.lf-repbest + .lf-repbest { margin-top: var(--sp-2); }
.lf-asked { flex: none; margin-top: 2px; padding: 0 var(--sp-2); border-radius: var(--r-full); background: var(--c-surface); color: var(--c-ok); font-size: var(--fs-sub); font-weight: var(--fw-bold); line-height: 1.6; }   /* (they asked something themselves: NT 2026-11-27) */ .lf-repbest p { margin: 0; font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.45; overflow-wrap: anywhere; }
.lf-replist { display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--c-surface); box-shadow: var(--shadow-1); overflow: hidden; }
.lf-reprow { padding: 14px 16px; } .lf-reprow + .lf-reprow { border-top: 1px solid var(--c-line); }
.lf-reprow .was { margin: 0; font-size: var(--fs-sub); color: var(--c-sub); line-height: 1.5; overflow-wrap: anywhere; }
.lf-reprow .was u { text-decoration: none; background: var(--c-result-soft); color: var(--c-action); border-radius: 4px; padding: 0 3px; }
.lf-reprow .was small { display: block; font-size: var(--fs-note); }
.lf-reprow .now { margin: 4px 0 0; display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-body); font-weight: 400; line-height: 1.45; color: var(--c-result-ink); overflow-wrap: anywhere; }
.lf-reprow .now span { flex: 1; min-width: 0; } .lf-reprow .now .round { flex: none; margin: -8px -6px -8px 0; color: var(--c-sub); }
.lf-reprow .why { margin: 4px 0 0; font-size: var(--fs-body); line-height: 1.5; }   /* (why: something to learn, in the body's size. Codex 173 ⑩) */
.lf-reprow .redo { margin: var(--sp-2) 0 0; display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-sub); color: var(--c-sub); overflow-wrap: anywhere; }
.lf-reprow .redo .ic { flex: none; margin-top: 2px; } .lf-reprow .redo.ok { color: var(--c-ok); } .lf-reprow .redo span { color: var(--c-text); }
.lf-words .lf-wline { font-style: normal; }   /* (a slanted Japanese line is a squashed one) */
/* what to do in this talk (home and places): one slim line under the bar (NT 11/26 「何をすればいいか分かんなくなりそう」) */
.lf-goalbar { margin: 0 var(--side) var(--sp-2); width: fit-content; max-width: calc(100% - var(--side) * 2); box-sizing: border-box; padding: 6px 12px; border-radius: var(--r-full); background: rgba(255,255,255,.88); color: var(--c-text); font-size: var(--fs-sub); font-weight: var(--fw-bold); line-height: 1.4; box-shadow: var(--shadow-1); }
.lf-cleared { margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--r-full); background: var(--c-ok); color: var(--c-on-action); font-size: var(--fs-sub); font-weight: var(--fw-bold); }
/* the notebook's cards (まだ・済み) and phrases (NT 11/26) */
.lf-nbcards { display: flex; flex-direction: column; gap: var(--sp-3); }
.lf-nbcard { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-l); background: var(--c-surface); box-shadow: var(--shadow-1); text-align: left; font: inherit; color: var(--c-text); cursor: pointer; }
.lf-nbcard .meta { font-size: var(--fs-note); color: var(--c-sub); }
.lf-nbcard .was { font-size: var(--fs-sub); color: var(--c-sub); line-height: 1.5; overflow-wrap: anywhere; }
.lf-nbcard .was u { text-decoration: none; background: var(--c-result-soft); color: var(--c-action); border-radius: 4px; padding: 0 3px; }
.lf-nbcard .now { font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.45; color: var(--c-result-ink); overflow-wrap: anywhere; }
.lf-nbcard .ok { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-note); font-weight: var(--fw-bold); color: var(--c-ok); }
.lf-nbcard .proof { margin-top: 2px; padding: 8px 12px; border-radius: 12px; background: var(--c-ok-bg); font-size: var(--fs-sub); font-weight: var(--fw-bold); overflow-wrap: anywhere; }
.lf-nbcard.done .now { color: var(--c-text); }
.lf-uses { flex: none; margin-right: var(--sp-2); font-size: var(--fs-note); color: var(--c-sub); }
.lf-micoff { margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow-1); font-size: var(--fs-sub); line-height: 1.6; }
.lf-res .dock.lf-micdock { align-items: center; padding-bottom: calc(var(--safe-bottom) + 28px); }
.lf-mic { width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--c-action); color: var(--c-on-action); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(200,55,31,.32); cursor: pointer; }
.lf-mic .ic { width: 34px; height: 34px; } .lf-mic:disabled { opacity: .5; }
.lf-mic.on { background: var(--c-surface); color: var(--c-action); box-shadow: 0 0 0 4px var(--c-action) inset, 0 8px 20px rgba(200,55,31,.2); }
.lf-micdock .btn-text { align-self: stretch; }
@media (min-width: 600px) { .lf-res { max-width: 480px; margin: 0 auto; min-height: 100dvh; box-shadow: 0 0 0 1px var(--c-line); } }

/* The first screen's picture: a housemate at home, speaking to them (what they are about to meet), and the name as a small mark. */
.lf-art.home { position: relative; overflow: hidden; background: var(--c-surface-2) url(img/life/home_bg_2.jpg) 35% 62% / 150%; }
.lf-art.home.tokyo { background-image: url(img/life/tk_home_bg_2.jpg); }
.lf-art.home.tokyo .el { right: 6%; top: 16%; height: 150%; }   /* (Mio, narrower than Kenta was: wholly in, by the kitchen) */
.lf-art.home.tokyo .say { left: 5%; top: 9%; max-width: 50%; }
.lf-art.home .el { position: absolute; right: 2%; top: 12%; height: 190%; width: auto; max-width: none; }
.lf-art.home .say { position: absolute; left: 7%; top: 16%; max-width: 54%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--c-surface); color: var(--c-text); font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.35; box-shadow: 0 0 0 2px var(--c-action), var(--shadow-2); }
.lf-brand.mark { display: flex; align-items: center; justify-content: flex-start; gap: var(--sp-2); letter-spacing: .2em; width: auto; height: auto; color: var(--c-sub); }   /* (style.css has a .mark of its own, a 24px box for ticks: it squeezed this row and pushed the logo off the left edge. NT 11/26 「最初の画面でレイアウトズレ」) */
.lf-brand.mark img { width: 22px; height: 22px; }
/* The notebook's two sides in the life: its sentences, its talks. */
/* Asking to be told when someone writes: what will come, one sentence, two answers. */
.lf-notify { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-3); padding-bottom: var(--sp-2); text-align: center; }
.lf-notify .t-head { margin: var(--sp-2) 0; text-wrap: balance; }
.lf-banner.sample { position: static; cursor: default; text-align: left; background: var(--c-bg); box-shadow: 0 6px 18px rgba(10,14,22,.16), 0 0 0 1px var(--c-line); -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
/* The way to the Home Screen, as the phone itself words it: its two buttons, in order. */
.lf-hsteps { list-style: none; margin: 0 auto var(--sp-3); padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); text-align: left; font-size: var(--fs-body); font-weight: var(--fw-bold); }
.lf-hsteps li { display: flex; align-items: center; gap: var(--sp-3); }
.lf-hsteps svg.ic { box-sizing: content-box; padding: 8px; border-radius: var(--r-m); background: var(--c-surface-2); color: var(--c-action); }
.lf-nbempty { margin-top: 18dvh; }
/* Something read and passed on, in a post: a quiet card with its headline and what it says; under it, for those who want, one question. */
/* Something read and passed on (NT 2026-11-30 「SNSとしてシンプルに」): a plain card as a shared link looks — the headline and
   two lines on the list, all of it on the post's page; the question under it there, as a poll is on X */
.lf-share { display: flex; flex-direction: column; border: 1px solid var(--c-line); border-radius: 16px; overflow: hidden; }
.lf-share .art { padding: var(--sp-3) var(--sp-4); cursor: pointer; }
.lf-share .art b { display: block; font-size: var(--fs-body); line-height: 1.35; margin-bottom: 2px; }
.lf-share .art p { margin: 0; font-size: var(--fs-sub); line-height: 1.5; color: var(--c-sub); }
.lf-share:not(.all) .art b, .lf-share:not(.all) .art p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lf-share.all .art p { color: var(--c-text); line-height: 1.6; }
.lf-share .art .tr { display: block; margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--c-line); font-size: var(--fs-sub); color: var(--c-sub); }
.lf-quiz { display: flex; flex-direction: column; gap: var(--sp-2); }
.lf-quiz p { margin: var(--sp-1) 0 0; font-size: var(--fs-body); line-height: 1.4; }
.lf-quiz button { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: var(--hit); padding: var(--sp-2) var(--sp-4); border: 1px solid var(--c-line); border-radius: var(--r-full); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: var(--fs-body); text-align: left; cursor: pointer; }
.lf-quiz button:disabled { cursor: default; color: var(--c-sub); }
.lf-quiz button.right { border-color: var(--c-ok); background: var(--c-ok-bg); color: var(--c-text); font-weight: var(--fw-bold); } .lf-quiz button.right .ic { flex: none; color: var(--c-ok); }
.lf-quiz button.wrong { border-color: var(--c-sub); }
/* What they came to do, at the end of a talk at a place: done (a green check) or not yet (an empty ring, quiet). When it
   cannot be told, nothing is shown. Kept apart from how they spoke and from what the person knows (docs/107 §3). */
.lf-errand { margin-top: var(--sp-3); display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow-1); font-size: var(--fs-body); font-weight: var(--fw-bold); }
.lf-errand.done .ic { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: var(--r-full); background: var(--c-ok); color: var(--c-on-action); stroke-width: 3; }
.lf-errand.not_done { color: var(--c-sub); font-weight: var(--fw-regular, 400); }
.lf-errand.not_done i { flex: none; width: 18px; height: 18px; border-radius: var(--r-full); border: 2px solid var(--c-line); }
/* Going somewhere: alone, or ask someone who is at home to come along. */
.lf-with { display: flex; flex-direction: column; gap: var(--sp-2); padding-bottom: var(--sp-2); }
.lf-with .btn { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.lf-with .btn .lf-av { width: 28px; height: 28px; }

/* What comes next: one row at the bottom of the home and of a place (docs/110; NT 2026-11-26). Going out (or home) is a small button above its right end. */
.lf-next { position: absolute; left: var(--side); right: var(--side); bottom: calc(var(--tabbar) + var(--safe-bottom) + var(--sp-4)); z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  min-height: 52px; padding: 10px 18px; border: 0; border-radius: var(--r-full); background: #fff; color: var(--c-text); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.35; text-align: left; box-shadow: var(--shadow-2); cursor: pointer; }
.lf-next .ic { flex: 0 0 auto; }
.lf-next { justify-content: flex-start; padding-left: 8px; }
.lf-next .tx { flex: 1; min-width: 0; }
.lf-next .lead { flex: 0 0 auto; width: 36px; height: 36px; border-radius: var(--r-full); }
.lf-next .lf-av.lead { object-fit: cover; }
.lf-next .lf-av.ini.lead { display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-sub); font-weight: var(--fw-bold); }
.lf-next .ic-lead { display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-text); } .lf-next .ic-lead .ic { width: 20px; height: 20px; }
.lf-next:disabled { opacity: .6; }
/* A place one stays at (the pub): the picture covers the screen; the owner stands behind the counter (the counter is drawn again over him), a guest at the left, whoever came along at the right. */
.lf-scene.spot { aspect-ratio: 864 / 1536; width: max(100cqw, calc(100cqh * 864 / 1536)); transform: translate(-50%, -50%); }
.lf-pp { position: absolute; pointer-events: none; width: auto; max-width: none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.35)); }
.lf-pp.host { left: 39.2%; top: 35.3%; height: 29.7%; filter: none; }
.lf-counter { position: absolute; inset: 0; background: center / cover; clip-path: inset(61.9% 0 0 0); pointer-events: none; }
/* The cafe (a place of this kind since 2026-11-30): its own picture's shape; Jun stands right behind the counter one orders at, which runs along the bottom of the picture. */
.lf-home.at.cafe .lf-scene.spot { aspect-ratio: 971 / 1536; width: max(100cqw, calc(100cqh * 971 / 1536)); }
.lf-home.at.cafe .lf-pp.host { left: 45%; top: 45%; height: 42%; }
/* (the Tokyo izakaya, drawn again 12/02: the master stands behind the counter, his waist hidden by its top. NT 「日本っぽさしっかり」) */
.lf-home.at.bar.tk .lf-pp.host { top: 25.6%; height: 26.5%; }
.lf-home.at.bar.tk .lf-hit.at.host { top: 22cqh; height: 26cqh; }
.lf-home.at.bar.tk .lf-say.at.host, .lf-home.at.bar.tk .lf-mur.at.host { bottom: 77cqh; }
.lf-home.at.bar.tk .lf-counter { background-image: url(img/life/bg_izakaya_front.webp) !important; clip-path: none; }   /* (the counter and what stands on it, cut out of the picture: the bowl, the soy sauce and the chopsticks stay in front of him. A straight cut put him in front of them. NT 12/02 「テーブルの手前」; made by scripts/izakaya_front_layer.py) */
.lf-home.at.cafe .lf-counter { clip-path: inset(90% 0 0 0); }
.lf-home.at.cafe .lf-pp.left { left: 3cqw; }   /* (whoever one came to meet is the only one there: wholly in the picture, not cut by its edge) */
.lf-home.at.cafe .lf-say.at.host, .lf-home.at.cafe .lf-mur.at.host { left: auto; right: 4cqw; bottom: 57cqh; transform: none; } .lf-home.at.cafe .lf-say.at.host::after { left: auto; right: 34%; }
.lf-home.at { --pl: min(51.6cqh, 92cqw); --pr: min(50cqh, 88cqw); }   /* (how tall the two in front stand: by the screen's height, and no wider than half a narrow screen) */
.lf-pp.left { left: -7cqw; bottom: 7.5cqh; height: var(--pl); z-index: 2; }
.lf-pp.right { right: -6cqw; bottom: 7.5cqh; height: var(--pr); z-index: 2; }
.lf-hit.at { z-index: 3; }
.lf-hit.at.host { left: 50%; top: 33cqh; width: 34cqw; height: 30cqh; transform: translateX(-42%); z-index: 1; }
.lf-hit.at.left { left: 0; bottom: 7.5cqh; width: 44cqw; height: var(--pl); }
.lf-home.at.cafe .lf-hit.at.host { left: auto; right: 0; top: 44cqh; width: 52cqw; height: 42cqh; transform: none; }
.lf-hit.at.right { right: 0; left: auto; bottom: 7.5cqh; width: 40cqw; height: var(--pr); }
.lf-say.at { z-index: 4; max-width: 62cqw; }
.lf-say.at.left { left: 4cqw; right: auto; bottom: calc(7.5cqh + var(--pl) + 1.2cqh); } .lf-say.at.left::after { left: 22%; right: auto; }
.lf-say.at.host { left: 50%; right: auto; bottom: 66cqh; transform: translateX(-42%); } .lf-say.at.host::after { left: 46%; right: auto; }
.lf-say.at.right { right: 4cqw; left: auto; bottom: calc(7.5cqh + var(--pr) + 1.2cqh); } .lf-say.at.right::after { right: 30%; left: auto; }
.lf-mur.at { z-index: 4; max-width: 50cqw; }   /* (whoever is not speaking to them: their mutter, where their words would be) */
.lf-mur.at.left { left: 4cqw; right: auto; bottom: calc(7.5cqh + var(--pl) + 1.2cqh); } .lf-mur.at.left::after { left: 22%; right: auto; }
.lf-mur.at.host { left: 50%; right: auto; bottom: 66cqh; transform: translateX(-42%); } .lf-mur.at.host::after { left: 46%; right: auto; }
.lf-mur.at.right { right: 4cqw; left: auto; bottom: calc(7.5cqh + var(--pr) + 1.2cqh); } .lf-mur.at.right::after { right: 30%; left: auto; }
.lf-with .lf-opt .lf-av, .lf-with .lf-opt .lead { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-full); object-fit: cover; }
.lf-with .lf-opt .ic-lead { display: grid; place-items: center; background: var(--c-surface-2); } .lf-with .lf-opt .ic-lead .ic { width: 20px; height: 20px; }
.lf-msgpic { display: block; width: min(72%, 280px); aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; margin: 2px 0 4px; }
.lf-repheard { margin: var(--sp-2) 0 0; padding: var(--sp-3) var(--sp-4) var(--sp-3) calc(var(--sp-4) + 1.1em); border-radius: var(--r-lg, 16px); background: var(--c-surface, #fff); display: grid; gap: 4px; font-size: var(--fs-body); }
/* The bottom of the home and of a place (NT 2026-11-27 「出かけるの位置」「プライマリーボタンとして背景と被りすぎ」; Codex 176):
   a white band over the tabs, with what comes next — the one primary button — and beside it going out (or home) as a
   text button. The picture ends where the band begins: the people stand clear of it. */
.lf-home { --dock: 80px; --floor: calc(var(--tabbar) + var(--safe-bottom) + var(--dock)); }
.lf-bottom { position: absolute; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-bottom)); min-height: var(--dock); box-sizing: border-box; z-index: 4;
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--side); background: var(--c-surface); box-shadow: 0 -1px 0 rgba(0,0,0,.06); }
.lf-bottom .lf-next { position: static; flex: 1; min-width: 0; min-height: 56px; padding-top: var(--sp-2); padding-bottom: var(--sp-2); background: var(--c-action); color: var(--c-on-action); box-shadow: none; }
.lf-bottom .lf-next .lead { margin: 0; }   /* (style.css has a .lead of its own, for a line under a title: it lifted the face 8px. Codex 176 ③) */
.lf-bottom .lf-next .ic-lead { background: rgba(255,255,255,.22); color: var(--c-on-action); }
.lf-bottom .lf-next .lf-av.lead { box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.lf-side { flex: 0 0 auto; min-height: 52px; min-width: 48px; padding: 0 var(--sp-2); border: 0; background: none; color: var(--c-text); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-bold); cursor: pointer; }
.lf-side:active { opacity: .6; }
/* the room: its floor stands on the band, the feet 24 above it, at any height of screen */
.lf-home { --feet: 24px; }
.lf-scene:not(.spot) { top: auto; width: max(100cqw, calc(112cqh * 370 / 780)); bottom: calc(var(--floor) + var(--feet) - max(210.81cqw, 112cqh) * .235); transform: translateX(-50%); }
/* (a short phone: a slimmer band and the feet closer to it, so that what is said over their heads stays clear of the clock) */
@media (max-height: 700px) { .lf-home { --dock: 68px; --feet: 0px; } .lf-bottom { padding-top: var(--sp-2); padding-bottom: var(--sp-2); } .lf-bottom .lf-next { min-height: 52px; } }
/* the pub: the two in front are cut by the band as by the frame of a photo (their cut-outs end at the thigh) */
.lf-home.at { --pb: 7.5cqh; }   /* (where they stood before the band: lower than the owner's face) */
.lf-pp.left, .lf-pp.right, .lf-hit.at.left, .lf-hit.at.right { bottom: var(--pb); }
.lf-say.at.left, .lf-mur.at.left { bottom: calc(var(--pb) + var(--pl) + 1.2cqh); }
.lf-say.at.right, .lf-mur.at.right { bottom: calc(var(--pb) + var(--pr) + 1.2cqh); }
/* (pressing someone: they answer to it, and a keyboard's focus is seen. Codex 173 ⑤) */
.lf-hit:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 12px; }
.lf-who, .lf-pp { transition: opacity var(--dur-fast) var(--ease); }
.lf-home:has(.lf-hit.sam:active) .lf-who.sam, .lf-home:has(.lf-hit.ella:active) .lf-who.ella,
.lf-home:has(.lf-hit.at.host:active) .lf-pp.host, .lf-home:has(.lf-hit.at.left:active) .lf-pp.left, .lf-home:has(.lf-hit.at.right:active) .lf-pp.right { opacity: .85; }
@media (min-width: 1024px) { .lf-home { --floor: var(--dock); } .lf-bottom { bottom: 0; } }   /* (a wide screen has no tab bar under the room: Codex 174 ⑥) */
/* under the learner's line on the stage: a way of saying it that was fixed before, used here by themselves (NT 11/27) */
.vgot { display: inline-flex; align-items: center; gap: var(--sp-1); max-width: none; margin: var(--sp-1) 0 0; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-full); background: var(--c-ok-bg); color: var(--c-ok); font-size: var(--fs-sub); line-height: 1.35; }
.vgot .ic { flex: none; width: var(--sp-4); height: var(--sp-4); }
.vgot span { white-space: nowrap; }
/* what they wanted to say: its bones first (who does what), then all of it (NT 2026-11-27) */
.screen.life .vhint { flex-direction: column; align-items: stretch; gap: var(--sp-2); }
.vhint .vrow1 { display: flex; align-items: center; gap: var(--sp-2); } .vhint .vrow1 .stext { flex: 1; min-width: 0; }
/* the work after a talk (NT 2026-11-27): what to say, and a bar that runs out in a few seconds before the answer shows */
.lf-ask .lf-cue { margin: 0 0 var(--sp-1); font-size: var(--fs-sub); font-weight: var(--fw-bold); color: var(--c-action); }
.lf-quick { display: block; height: var(--sp-1); margin: var(--sp-3) 0; border-radius: var(--r-full); background: var(--c-line); overflow: hidden; }
.lf-quick i { display: block; height: 100%; background: var(--c-action); transform-origin: left; animation: lf-quick 3s linear forwards; }
.lf-quick.s5 i { animation-duration: 5s; }
@keyframes lf-quick { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .lf-quick { display: none; } }

/* the report's round (NT 2026-11-29, Codex 210): the line said well, what the person said back, how it was said before */
.lf-round { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-l); background: var(--c-ok-bg); }
.lf-round .said { margin: 0; display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-head); font-weight: var(--fw-bold); line-height: 1.4; overflow-wrap: anywhere; }
.lf-round .said .ic { flex: none; margin-top: 4px; color: var(--c-ok); }
.lf-round .said-back { display: flex; gap: var(--sp-2); align-items: flex-start; }
.lf-round .said-back .lf-av { width: 32px; height: 32px; flex: none; }
.lf-round .said-back p { margin: 0; padding: 10px 14px; border-radius: var(--r-m); background: var(--c-surface); font-size: var(--fs-body); line-height: 1.45; overflow-wrap: anywhere; }
.lf-round .said-back b { display: block; font-size: var(--fs-note); color: var(--c-sub); font-weight: var(--fw-bold); }
.lf-round .was { margin: 0; font-size: var(--fs-sub); color: var(--c-sub); line-height: 1.5; overflow-wrap: anywhere; }
.lf-round .was u { text-decoration: none; background: var(--c-result-soft); color: var(--c-action); border-radius: 4px; padding: 0 3px; }
/* the one line to say next: larger than the rest of the report */
.lf-say1 .lf-reprow { padding: var(--sp-4); }
.lf-say1 .lf-reprow .now { margin-top: var(--sp-2); font-size: var(--fs-head); font-weight: var(--fw-bold); }

/* the door's missions (NT 2026-11-29): one card, a row each; the mark fills in when it is done */
.lf-miss { list-style: none; margin: 0 var(--side) var(--sp-2); padding: var(--sp-2) var(--sp-3); width: fit-content; max-width: calc(100% - var(--side) * 2); box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; border-radius: var(--r-m); background: rgba(255,255,255,.92); box-shadow: var(--shadow-1); }
.lf-miss li { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sub); line-height: 1.4; color: var(--c-sub); }
.lf-miss li i { flex: none; width: 14px; height: 14px; margin: 1px; border-radius: var(--r-full); border: 1.5px solid var(--c-line); box-sizing: border-box; }
.lf-miss li .ic { flex: none; width: 16px; height: 16px; color: var(--c-ok); }
.lf-miss li.on { color: var(--c-text); font-weight: var(--fw-bold); }
.lf-miss li.new .ic { animation: lfMissPop .45s ease-out; }
@keyframes lfMissPop { 0% { transform: scale(.2); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .lf-miss li.new .ic { animation: none; } }
.lf-miss.res { margin: 0; width: auto; max-width: none; padding: var(--sp-3) var(--sp-4); background: var(--c-surface); }
/* the door's result, when they said who they are and where from: the thing they can now do, first (NT 2026-11-29) */
.lf-intro { display: flex; flex-direction: column; gap: var(--sp-1); }
.lf-intro .t-title { margin: 0; }
.lf-intro .t-sub { margin: 0; }

/* ---------- the talk, clean (NT 2026-11-29 「UIの清涼感、簡潔さ」, Codex 215): the person in one framed picture, the talk on white under it ---------- */
.screen.chat.life > .top { background: var(--c-surface); }
.screen.life .stage { background: var(--c-surface); }
.screen.life .stage .sp { inset: 4px var(--side) auto var(--side); width: calc(100% - var(--side) * 2); height: 46%; object-fit: cover; border-radius: var(--r-l); object-position: 50% 12%; }
.screen.life .stage .sv { top: calc(46% + 12px); max-height: none; padding: 0 var(--side) var(--sp-3); background: none; justify-content: flex-start; }
.screen.life .stage .sv > :first-child { margin-top: auto; }   /* (short talks sit at the bottom; long ones still scroll back to their start: Codex 216 ①) */
.screen.life .vrow.them .vb { background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.screen.life .vrow.you .vb { background: var(--c-bg); }
.screen.life .vname { color: var(--c-sub); text-shadow: none; }
.screen.life .vcap { color: var(--c-sub); text-shadow: none; }
/* the missions: a pill in the bar, its list under it when pressed */
.lf-pill { display: inline-flex; align-items: center; gap: var(--sp-2); height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-full); background: var(--c-bg); color: var(--c-text); font: inherit; font-size: var(--fs-sub); font-weight: var(--fw-bold); }
.lf-pill .dots { display: inline-flex; gap: 4px; }
.lf-pill .dots i { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--c-line); }
.lf-pill .dots i.on { background: var(--c-ok); }
.lf-pill .dots i.new { animation: lfMissPop .45s ease-out; }
@media (prefers-reduced-motion: reduce) { .lf-pill .dots i.new { animation: none; } }
.screen.life .lf-miss { position: absolute; z-index: 12; left: 50%; top: calc(100% - 4px); translate: -50% 0; margin: 0; box-shadow: var(--shadow-2, var(--shadow-1)); background: var(--c-surface); }   /* (laid over the picture: nothing moves when it opens) */
.screen.chat.life > .inputbar { background: var(--c-surface); }
.lf-res .dock { background: var(--c-surface); }

/* ---------- the result, clean (Codex 215): white, one title, each mission with what they said, the line to say next unboxed ---------- */
.screen.lf-res { background: var(--c-surface); }
.lf-mres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.lf-mres li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.lf-mres .ck { flex: none; width: 22px; height: 22px; border-radius: var(--r-full); background: var(--c-ok); color: var(--c-on-action); display: grid; place-items: center; }
.lf-mres .ck .ic { width: 14px; height: 14px; }
.lf-mres li > i { flex: none; width: 22px; height: 22px; border-radius: var(--r-full); border: 1.5px solid var(--c-line); box-sizing: border-box; }
.lf-mres .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lf-mres small { font-size: var(--fs-sub); color: var(--c-sub); }
.lf-mres b { font-size: var(--fs-body); font-weight: var(--fw-regular); overflow-wrap: anywhere; }
.lf-res .lf-say1 { background: none; box-shadow: none; border-radius: 0; }
.lf-res .lf-say1 .lf-reprow { padding: 0; }
.lf-res .list { box-shadow: inset 0 0 0 1px var(--c-line); }
.lf-res .lf-repbest { background: var(--c-ok-bg); }

/* the home's own buttons (NT 2026-11-29 「SNSとかメッセージはホーム内におきます。ボタンで」): top right, a mark when something waits */
.lf-hud .lf-grow { flex: 1; order: 1; }
.lf-pill.still { max-width: 66vw; height: auto; min-height: 32px; padding: 6px 14px; white-space: normal; line-height: 1.35; text-align: center; }   /* (what to do in a talk without missions: the same pill, words only, two lines when long: Codex 216 ⑥) */   /* (what to do in a talk without missions: the same pill, words only) */

/* what they can do (docs/113): a badge when a stage is reached, a row on the cards page with how far */
.lf-canbadge { margin: var(--sp-1) 0 0; display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-full); background: var(--c-ok-bg); color: var(--c-ok); font-size: var(--fs-sub); font-weight: var(--fw-bold); }
.lf-canbadge .ic { width: 14px; height: 14px; }
.lf-canbadge.in { margin: 0 0 0 auto; }
.lf-canrow { display: flex; flex-direction: column; gap: var(--sp-2); }
.lf-can { margin: 0; display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-body); }
.lf-can .ck { flex: none; width: 22px; height: 22px; border-radius: var(--r-full); background: var(--c-ok); color: var(--c-on-action); display: grid; place-items: center; }
.lf-can .ck .ic { width: 14px; height: 14px; }
.lf-canrow .t-head { margin: var(--sp-2) 0 0; }   /* (not the report's pull-up: the rows follow in the same block) */

/* ---------- the one-minute practice (decisions (128)): the place as one framed picture, the talk on white, the mic ---------- */
.screen.lf-pr { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--c-surface); padding-top: var(--safe-top); }
.screen.lf-pr .bar { flex: none; }
.lf-barpad { width: var(--hit); }
.lf-prpic { position: relative; flex: none; height: 34dvh; margin: 0 var(--side); border-radius: var(--r-l); overflow: hidden; }
.lf-prpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-prpic .lf-chip { position: absolute; left: var(--sp-3); top: var(--sp-3); font-size: var(--fs-sub); font-weight: var(--fw-bold); }
.lf-prlog { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: var(--sp-3) var(--side); }
.lf-prlog > :first-child { margin-top: auto; }
.lf-prlog .vrow.them .vb { background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.lf-prlog .vrow.you .vb { background: var(--c-bg); }
.lf-prlog .vname { color: var(--c-sub); }
.lf-prbar { flex: none; padding: var(--sp-2) var(--side) calc(var(--sp-3) + var(--safe-bottom)); }
.lf-prbar .dock { position: static; padding: 0; background: none; }
.lf-prbar .vbar { padding: 0 var(--sp-6); }
.lf-prinp { display: flex; gap: var(--sp-2); align-items: flex-end; }
.lf-prinp textarea { flex: 1; min-height: var(--hit); padding: 10px 14px; border: 0; border-radius: var(--r-l); background: var(--c-bg); font: inherit; resize: none; }
/* what they did today by their own words (NT 2026-11-29, the loop at home): one small mark beside the clock */
/* The home (NT 2026-11-29 「ちゃんと作って、ルールには従って」): the clock with the goal under it on one side, the 1分練習 on the
   other (an extra: text, no icon), the main button with its label only and one text button beside it. */
.lf-hud { align-items: flex-start; }
.lf-ckcol { order: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); min-width: 0; max-width: 72%; }
.lf-hud.right .lf-ckcol { order: 2; align-items: flex-end; }
.lf-bottom .lf-next { justify-content: center; padding-left: var(--sp-4); padding-right: var(--sp-4); }
.lf-bottom .lf-next .tx { flex: 1; min-width: 0; text-align: center; }
.lf-bottom:has(.lf-side) { flex-wrap: wrap; } .lf-bottom:has(.lf-side) .lf-next { flex: 1 1 55%; } .lf-bottom .lf-side { flex: 0 1 auto; }   /* (a long label or big text: the text button goes under the main one instead of squeezing it. Codex 224 ④) */
/* The card to use in this talk, under the bar: its pattern; green with ✓ once used (NT 2026-11-29) */
.lf-use { display: flex; justify-content: center; padding: 0 var(--side) var(--sp-2); }
.lf-usechip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; max-width: 100%; padding: 4px 14px; border-radius: var(--r-full); background: var(--c-surface-2); color: var(--c-text); font-size: var(--fs-sub); line-height: 1.3; }
.lf-usechip small { flex: none; color: var(--c-sub); font-size: var(--fs-note); font-weight: var(--fw-bold); }
.lf-usechip b { font-weight: var(--fw-bold); min-width: 0; overflow-wrap: anywhere; }
.lf-usechip.done { background: var(--c-ok-bg); } .lf-usechip.done small { color: var(--c-text); } .lf-usechip.done .ic { color: var(--c-ok); }   /* (the words stay dark on the green: 4.5:1, Codex 226 ④) */ .lf-usechip .ic { width: 16px; height: 16px; flex: none; }
/* A deck's cards (NT 2026-11-30, the cards screen's draft): ✕, how far (marks) and ↺ in the bar; one tall white card —
   the other person's line at its top, what they want to say large, its line blurred under it (pressed, it shows); the
   big microphone alone under it. Said: ✓ and the line with its sound; not yet: the line with what was fixed marked. */
.lf-sw { background: var(--c-bg); }
.lf-swbar { display: grid; grid-template-columns: var(--hit) 1fr auto auto; align-items: center; gap: var(--sp-3); }
.lf-swprog { min-width: 0; height: 6px; border-radius: 3px; background: var(--c-line); overflow: hidden; }   /* (one line that fills, and the count beside it: NT 2026-11-30 — before: a dash for each card) */
.lf-swprog i { display: block; height: 100%; border-radius: 3px; background: var(--c-action); transition: width var(--dur) var(--ease); }
.lf-swcnt { flex: none; color: var(--c-sub); font-size: var(--fs-sub); font-variant-numeric: tabular-nums; }
.lf-swmain { display: flex; flex-direction: column; align-items: center; padding: var(--sp-2) var(--side) calc(132px + var(--safe-bottom)); min-height: 60vh; }
.lf-swcard { position: relative; flex: 1; width: 100%; max-width: 420px; min-height: 56vh; box-sizing: border-box; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) var(--sp-5);
  border-radius: 24px; background: var(--c-surface); box-shadow: var(--shadow-1); touch-action: pan-y; user-select: none; -webkit-user-select: none; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.lf-swcard.drag { transition: none; }
.lf-swthem { display: flex; gap: var(--sp-2); align-items: flex-start; }
.lf-swthem .lf-av.ini { background: var(--c-surface-2); }
.lf-swthem .lf-av { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; }
.lf-swthem .who { display: block; color: var(--c-sub); font-size: var(--fs-note); margin-bottom: 2px; }
.lf-swthem p { margin: 0; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: var(--c-surface-2); color: var(--c-text); font-size: var(--fs-sub); line-height: 1.5; overflow-wrap: anywhere; }
.lf-swbody { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: var(--sp-3); }
.lf-swcard .ja { margin: 0; color: var(--c-text); font-size: var(--fs-title); font-weight: var(--fw-bold); line-height: 1.4; text-wrap: balance; word-break: auto-phrase; overflow-wrap: anywhere; }
.lf-swcard .en { margin: 0; color: var(--c-text); font-size: var(--fs-title); font-weight: var(--fw-bold); line-height: 1.3; text-wrap: balance; overflow-wrap: anywhere; }
.lf-swcard .ja.long, .lf-swcard .en.long { font-size: var(--fs-head); line-height: 1.5; }
.lf-swcard .en mark { background: linear-gradient(transparent 62%, var(--c-result-soft) 62%); color: inherit; }
.lf-swblur { align-self: flex-start; max-width: 100%; min-height: var(--hit); padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.lf-swblur span { display: block; color: var(--c-text); font-size: var(--fs-head); font-weight: var(--fw-bold); line-height: 1.4; filter: blur(8px); opacity: .55; overflow-wrap: anywhere; }
.lf-swblur:focus-visible { outline: 2px solid var(--c-action); outline-offset: 4px; border-radius: 8px; }
.lf-swline { display: flex; align-items: center; gap: var(--sp-3); }
.lf-swline .en { min-width: 0; }
.lf-swsay { flex: none; color: var(--c-action); }
.lf-swmean { margin: 0; color: var(--c-sub); font-size: var(--fs-sub); line-height: 1.5; }
.lf-swok { display: inline-flex; align-items: center; gap: 4px; color: var(--c-ok); font-size: var(--fs-sub); font-weight: var(--fw-bold); }
.lf-swok .ic { width: 18px; height: 18px; }
.lf-swheard { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--c-surface-2); font-size: var(--fs-sub); line-height: 1.5; }
.lf-swheard span:first-child { color: var(--c-sub); }
.lf-swwas { margin: 0; color: var(--c-sub); font-size: var(--fs-note); line-height: 1.5; }
.lf-swwas s { margin-left: 6px; }
.lf-swtag { position: absolute; top: var(--sp-5); padding: 4px 12px; border-radius: var(--r-full); font-size: var(--fs-sub); font-weight: var(--fw-bold); opacity: 0; transition: opacity var(--dur-fast) var(--ease); pointer-events: none; }
.lf-swtag.ok { right: var(--sp-5); background: var(--c-ok-bg); color: var(--c-text); }
.lf-swtag.no { left: var(--sp-5); background: var(--c-surface-2); color: var(--c-text); }
.lf-swcard[data-lean="r"] .lf-swtag.ok, .lf-swcard[data-lean="l"] .lf-swtag.no { opacity: 1; }
.lf-swcard.gone-r { transform: translateX(120%) rotate(12deg) !important; opacity: 0; }
.lf-swcard.gone-l { transform: translateX(-120%) rotate(-12deg) !important; opacity: 0; }
.lf-swdock.one { align-items: center; }
.lf-swmic { width: 76px; height: 76px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--c-action); color: var(--c-on-action); box-shadow: 0 4px 14px rgba(200, 55, 31, .3); cursor: pointer; }
.lf-swmic .ic { width: 30px; height: 30px; }
.lf-swmic.on { animation: lf-swpulse 1.2s var(--ease) infinite; }
.lf-swmic:disabled { opacity: .8; }
.lf-swmic .spin { border-color: rgba(255, 255, 255, .4); border-top-color: var(--c-on-action); }
@keyframes lf-swpulse { 50% { box-shadow: 0 0 0 12px rgba(200, 55, 31, .15); } }
.lf-swside { display: flex; justify-content: space-between; color: var(--c-sub); font-size: var(--fs-note); padding: 0 var(--sp-2); }
.lf-swside b { color: var(--c-text); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .lf-swcard, .lf-swtag { transition: none; } .lf-swmic.on { animation: none; } .lf-swcard.gone-r, .lf-swcard.gone-l { transform: none !important; } }
/* The cards tab (NT 2026-11-30): today's cards on top (its first face, 始める), then the decks in the flow of a talk. */
.lf-dkhero { display: flex; gap: var(--sp-4); align-items: center; margin: 0; padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-5); }
.lf-dkhero .lf-dkn { font-size: calc(36px * var(--ts)); font-weight: var(--fw-bold); line-height: 1; font-variant-numeric: tabular-nums; } .lf-dkhero > .ic { width: 28px; height: 28px; color: var(--c-ok); }
.lf-dkhero .t-head { margin: 0; }
.lf-dkhero .t-sub { margin: 2px 0 0; }
.lf-dkgo { flex: none; margin: 0; min-height: 44px; width: auto; padding: 0 var(--sp-5); }
.lf-dkstack { position: relative; width: 84px; height: 104px; flex: none; }
.lf-dkstack i { position: absolute; inset: 0; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line); }
.lf-dkstack i:nth-child(1) { transform: rotate(-8deg) translate(-4px, 2px); background: var(--c-result-soft); }
.lf-dkstack i:nth-child(2) { transform: rotate(5deg) translate(3px, 0); }
.lf-dkstack i:nth-child(3) { display: flex; align-items: center; justify-content: center; padding: 8px; font-style: normal; font-size: var(--fs-note); font-weight: var(--fw-bold); line-height: 1.35; text-align: center; overflow: hidden; box-shadow: var(--shadow-1); overflow-wrap: anywhere; }
.lf-dklab { margin: var(--sp-5) 0 var(--sp-2); color: var(--c-sub); font-size: var(--fs-sub); font-weight: var(--fw-bold); }
.lf-decks { display: flex; flex-direction: column; gap: var(--sp-3); }
button.card.lf-dk { display: flex; align-items: center; gap: var(--sp-3); margin: 0; padding: var(--sp-3); min-height: 76px; text-align: left; }
.lf-dkno { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-surface-2); color: var(--c-sub); font-size: var(--fs-note); font-weight: var(--fw-bold); }
.lf-dkpic { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: cover; }
.lf-dk .grow { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lf-dkname { font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: var(--lh-tight); }
.lf-dkown { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-full); background: var(--c-result-soft); color: var(--c-result-ink); font-size: var(--fs-note); font-weight: var(--fw-bold); vertical-align: 2px; white-space: nowrap; }
.lf-dkex { color: var(--c-sub); font-size: var(--fs-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-dk .grow > .lf-dkdots { display: flex; gap: 3px; margin-top: 4px; }
.lf-dkdots i { width: 16px; height: 5px; border-radius: 3px; background: var(--c-line); }
.lf-dkdots i.f { background: var(--c-ok); }
.lf-dmnone { color: var(--c-sub); }
/* The report, one shape for every talk (NT 2026-11-29, handoff §5.3): a stage reached in one line; the line that got
   across with what was said back; the one thing to say next time, with 言い直す in its block. */
.lf-upline { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--sp-4); font-size: var(--fs-body); }
.lf-upline .ic { width: 18px; height: 18px; color: var(--c-ok); flex: none; }
.lf-upline span { padding: 2px 10px; border-radius: var(--r-full); background: var(--c-ok-bg); font-size: var(--fs-sub); font-weight: var(--fw-bold); color: var(--c-text); }
.lf-say1 .lf-redo { align-self: flex-start; margin: var(--sp-3) 0 0; }
/* The look back, rebuilt (NT 2026-11-29 「見た目もめちゃくちゃだめ」; Duolingo's roleplay review and Speak's corrections taken
   apart: docs/design/2026-11-30_review/). The page's grey ground with white cards of one shape: a label, the line large,
   what belongs to it under it. One largest thing (their own line that got across), four sizes of type, one red button. */
.screen.lf-rz, .lf-rz .dock { background: var(--c-bg); }
.lf-rz .lf-rep { gap: var(--sp-3); padding-top: var(--sp-4); }
.lf-rzwho { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-1); font-size: var(--fs-sub); color: var(--c-sub); min-width: 0; }
.lf-rzwho .lf-av { width: 32px; height: 32px; flex: none; }
.lf-rzwho b { font-size: var(--fs-body); color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lf-rzwho span { flex: none; }
.lf-rz .lf-upline { margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-m); background: var(--c-ok-bg); font-weight: var(--fw-bold); }
.lf-rz .lf-upline span { margin-left: auto; padding: 0; background: none; font-weight: var(--fw-regular); color: var(--c-sub); }
.lf-rzcard { display: flex; flex-direction: column; gap: var(--sp-2); padding: calc(var(--sp-4) + var(--sp-1)); border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow-1); }
.lf-rzlab { display: flex; align-items: center; gap: var(--sp-1); margin: 0; font-size: var(--fs-sub); font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--c-sub); }
.lf-rzcard.ok .lf-rzlab { color: var(--c-text); } .lf-rzlab .ic { width: 16px; height: 16px; flex: none; color: var(--c-ok); }   /* (the words in ink, the tick green: green words on white are under 4.5:1. Codex 235 ⑦) */
.lf-rzline { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; font-size: var(--fs-head); font-weight: var(--fw-bold); line-height: 1.35; color: var(--c-text); overflow-wrap: anywhere; }
.lf-rzline.big { display: block; font-size: calc(24px * var(--ts)); }
.lf-rzline span { flex: 1; min-width: 0; } .lf-rzline .round { flex: none; margin: -8px -8px -8px 0; color: var(--c-sub); }
.lf-rzback { display: flex; gap: var(--sp-2); align-items: flex-start; margin-top: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--c-line); }
.lf-rzback .lf-av { width: 28px; height: 28px; flex: none; }
.lf-rzback p { margin: 0; min-width: 0; font-size: var(--fs-body); line-height: 1.5; overflow-wrap: anywhere; }
.lf-rzback b { display: block; font-size: var(--fs-sub); color: var(--c-sub); font-weight: var(--fw-bold); line-height: var(--lh-tight); margin-bottom: 2px; }
.lf-rzwas { margin: 0; font-size: var(--fs-body); color: var(--c-sub); line-height: 1.5; overflow-wrap: anywhere; }
.lf-rzwas u { text-decoration: none; background: var(--c-result-soft); color: var(--c-text); border-radius: 4px; padding: 0 3px; }
.lf-rzwhy { margin: 0; font-size: var(--fs-body); color: var(--c-text); line-height: 1.6; }   /* (why: something to learn, in the body's size and ink. docs/66 §3, Codex 236 ④) */
.lf-rzwas small { display: block; font-size: var(--fs-sub); }
.lf-rzredo { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: var(--fs-sub); color: var(--c-sub); overflow-wrap: anywhere; } .lf-rzredo .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; } .lf-rzredo.ok .ic { color: var(--c-ok); } .lf-rzredo span { color: var(--c-text); }
.lf-rzbtn { margin-top: var(--sp-2); background: var(--c-surface-2); color: var(--c-text); }   /* (said again here, in ink on a quiet ground: the red is the one button below) */
.lf-rzbtn .ic { width: 18px; height: 18px; }
.lf-rz .list { margin: 0; box-shadow: var(--shadow-1); }
.lf-rz .list > :first-child { border-top: 0; }
.lf-rz .bar { background: var(--c-bg); }
.lf-res .lf-upline { margin: 0; }
/* ---------- how things move (NT 2026-11-30 「振動とかアニメーションも最適化…ちゃんとした感じのアプリで」) ----------
   One way of coming in, in the kit's own time and curve (tokens.css: --dur, --dur-fast, --ease; docs/66 §4): a page's
   blocks rise a little, one after the other; what comes onto a page that is already up only fades in; a card that is
   pressed gives a little. One block follows the other by a quarter of the kit's short time. Nothing loops, nothing bounces. With 「動きを減らす」 none of it runs: the page is simply there. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes lf-in { from { opacity: 0; translate: 0 8px; } }
  @keyframes lf-fade { from { opacity: 0; } }
  @keyframes lf-pop { from { opacity: 0; scale: .5; } }
  @keyframes lf-card { from { opacity: 0; scale: .97; } }
  .lf-rz:not(.still) .lf-rep > *, .lf-decks > * { animation: lf-in var(--dur) var(--ease) both; }
  .lf-rz:not(.still) .lf-rep > :nth-child(2), .lf-decks > :nth-child(2) { animation-delay: calc(var(--dur-fast) * .25); }
  .lf-rz:not(.still) .lf-rep > :nth-child(3), .lf-decks > :nth-child(3) { animation-delay: calc(var(--dur-fast) * .5); }
  .lf-rz:not(.still) .lf-rep > :nth-child(n+4), .lf-decks > :nth-child(n+4) { animation-delay: calc(var(--dur-fast) * .75); }
  .lf-rz:not(.still) .lf-rzcard.ok .lf-rzlab .ic { animation: lf-pop var(--dur) var(--ease) var(--dur-fast) both; }   /* (the tick of a line said well: once, after its card is there) */
  .lf-rz .lf-new { animation: lf-fade var(--dur) var(--ease) both; }
  .lf-swcard.new { animation: lf-card var(--dur) var(--ease) both; }   /* (the next card comes up from under the one that left) */
  .lf-dk, .lf-rzcard { transition: transform var(--dur-fast) var(--ease); }
  .lf-dk:active { transform: scale(.985); }
}
.lf-say.way { max-width: 76%; }   /* (two lines' worth more in it: wider, so that it is no taller and its top stays on a short phone. Codex 272 ④) */
.lf-saytr { display: block; margin-top: var(--sp-1); font-size: var(--fs-sub); font-weight: var(--fw-regular, 400); color: var(--c-sub); line-height: 1.4; }   /* (what the first evening's line means, under it) */
@media (max-height: 740px) { .lf-say.way { max-width: calc(100cqw - 160px); padding: 9px 13px; font-size: var(--fs-sub); line-height: 1.3; } .lf-say.way .lf-saytr { font-size: var(--fs-note); } }   /* (a phone in its browser, about 660 high: smaller and beside the clock, not under it) */
@media (max-height: 620px) { .lf-say.way { max-width: 60%; } .lf-say.way .lf-saytr { display: none; } }   /* (a very short phone has no room over her head for two more lines: the line alone, as before) */
.lf-rzwait { display: flex; justify-content: center; margin: 0; padding: var(--sp-6) 0; }   /* (the look back is still being made: the mark stands where its cards will come, the page around it is up already) */
/* A first-time note over the control it is about (NT 2026-12-01 「ツールチップというか、案内あった方がいい」): dark, one or two lines, a point towards the control. Not pressed, not closed: it goes when the thing has been done. */
.lf-tip { position: relative; margin: 0; max-width: 100%; padding: 8px 12px; border-radius: 12px; background: var(--c-text); color: var(--c-surface); font-size: var(--fs-sub); font-weight: var(--fw-bold); line-height: 1.35; text-align: center; overflow-wrap: anywhere; pointer-events: none; }
.lf-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.lf-tipslot { display: flex; justify-content: center; padding: 0 var(--side) var(--sp-2); }
.lf-tipslot:empty { display: none; }
.lf-tipslot .lf-tip.own { margin-left: auto; } .lf-tipslot .lf-tip.own::after { left: auto; right: 36px; margin-left: 0; }   /* (over the choice of language, at the right of the bar) */
.lf-bottom > .lf-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: max-content; max-width: calc(100% - 2 * var(--side)); }   /* (over the main button, on the foot of the picture) */
@media (prefers-reduced-motion: no-preference) { .lf-tip { animation: lf-in var(--dur) var(--ease) both; } .lf-bottom > .lf-tip { animation: lf-fade var(--dur) var(--ease) .3s both; } .screen.chat.arrived .lf-tipslot { animation: lf-late var(--dur) var(--ease) 1.2s both; } }
/* The evening they arrive, with the pub still to come (life.must): no tabs under the room — the band stands on the bottom of the screen, as in front of the house */
.lf-home.must { --tabbar: 0px; }
.lf-home.must .lf-bottom { bottom: 0; min-height: calc(var(--dock) + var(--safe-bottom)); padding-bottom: calc(var(--sp-3) + var(--safe-bottom)); }
p.lf-say { margin: 0; cursor: default; }
/* In front of the house, before the first talk (NT 2026-11-30): the front door, closed, over a band with one button. No tabs yet: the band stands on the bottom of the screen. */
.lf-arrive { background: #1b120b; }
.lf-arrive { display: flex; flex-direction: column; }   /* (the picture takes what the words and the button leave: the band is as tall as what it holds, in any language) */
.lf-arrive .lf-bg { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; background-position: center bottom; background-repeat: no-repeat; }
.lf-arrive .lf-bottom { position: relative; inset: auto; flex: none; flex-direction: column; align-items: stretch; gap: var(--sp-2); min-height: 0; padding: var(--sp-5) var(--side) calc(var(--sp-4) + var(--safe-bottom)); }
.lf-arrive .lf-bottom .t-sub { margin: 0 0 var(--sp-3); }
.lf-arrive .lf-bottom .lf-next { flex: none; }
.lf-arrive .lf-next:disabled { opacity: 1; }   /* (pressed: it stays as it is, and rings go out from it — below) */
.lf-arrive .lf-next { position: relative; inset: auto; overflow: visible; }   /* (in its place in the band: the room's own button is set from the screen's edges. Codex 272 ②) */
.lf-arrive.rung .lf-bg { filter: brightness(1.22) saturate(1.06); }   /* (the bell was heard inside: the light at the door comes up, also for someone whose phone is silent) */
.lf-arrive.open .lf-bg { transform: scale(1.1); transition: transform .45s ease-in; }   /* (the door opens: a step up to it, and the talk comes in over it — app.js, from screen to screen. Before: the page faded to white) */
@container (min-aspect-ratio: 1/1) { .lf-arrive .lf-bg { background-size: contain; } }   /* (a frame wider than it is tall: the whole door, not a strip of it. The frame, not the window: a PC shows the phone's shape beside its menu) */
@media (prefers-reduced-motion: no-preference) {
  .lf-arrive .lf-bg, .lf-arrive .lf-bottom { animation: lf-fade var(--dur) var(--ease) both; }
  .lf-arrive { transition: opacity .26s var(--ease); } .lf-arrive .lf-bg { transition: filter 1.1s ease-out .2s; }
  .lf-arrive.rung .lf-next::before, .lf-arrive.rung .lf-next::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--c-action); pointer-events: none; animation: lf-ring 1s ease-out both; }
  .lf-arrive.rung .lf-next::after { animation-delay: .42s; }   /* (one ring a note: ding, dong) */
  @keyframes lf-ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.09, 1.55); } }
  /* (the door has opened: the one who opened it is seen first, then heard, and the microphone comes after) */
  .screen.chat.arrived .stage { animation: lf-fade var(--dur) var(--ease) both; }
  @keyframes lf-late { from { opacity: 0; visibility: hidden; } }   /* (not there at all while it waits: nothing unseen can be pressed or reached by the keys. Codex 267 ②) */
  .screen.chat.arrived .inputbar { animation: lf-late var(--dur) var(--ease) 1.2s both; }
  .screen.chat.life.arrived { background: var(--c-surface); }   /* (the band is white before the microphone is on it, not the grey of the page behind) */
}
/* What language the line is said in: a choice of two beside the microphone, one over the other, the one in use filled (NT 2026-11-30 「Aで作って」). */
.vlang { display: flex; flex-direction: column; width: max-content; max-width: 100%; padding: 3px; border-radius: 14px; background: var(--c-surface-2); }
.vlang button { min-height: 40px; min-width: 68px; max-width: 132px; padding: 0 var(--sp-3); border: 0; border-radius: 11px; background: transparent; color: var(--c-sub); font-size: var(--fs-body); font-weight: var(--fw-regular, 400); line-height: 1.15; overflow-wrap: anywhere; }
.vlang button.on { background: var(--c-surface); color: var(--c-text); font-weight: var(--fw-bold); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }   /* (the one in use: a white piece on the grey ground, its name in ink — the way a choice of two looks on a phone. Quieter than the microphone and easier to read than white on red: NT 2026-11-30 「見辛いし、もう少しだけ控えめ」) */
.vbar .vleft { display: flex; align-items: center; gap: var(--sp-2); }
.vbar.rec .vmic.on { position: relative; }
.vbar.rec .vtime { width: auto; font-variant-numeric: tabular-nums; color: var(--c-text); font-weight: var(--fw-bold); }
@media (prefers-reduced-motion: no-preference) {
  .vbar.rec .vmic.on::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--c-danger); opacity: 0; animation: vrec 1.4s ease-out infinite; }   /* (it is listening: a ring goes out from the button while they speak) */
  @keyframes vrec { from { opacity: .7; transform: scale(.92); } to { opacity: 0; transform: scale(1.28); } }
}
.lf-rzq { margin: 0; font-size: var(--fs-sub); line-height: 1.45; color: var(--c-sub); overflow-wrap: anywhere; } .lf-rzq b { margin-right: var(--sp-2); font-weight: var(--fw-bold); }
.screen.life .vbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; } .screen.life .vbar > :first-child { justify-self: start; } .screen.life .vbar > :last-child { justify-self: end; }   /* (the microphone stays in the middle whatever stands beside it) */
.lf-swheard mark.off { background: none; color: var(--c-danger); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }   /* (in what was heard: the words that are not in the card's line) */
/* The deck said from one's own language: the part asked for as empty places, the rest as …; afterwards the beginning underlined (ticked when said), the rest lighter. NT 2026-11-30, Codex 261 */
.lf-swslots { align-self: flex-start; max-width: 100%; min-height: var(--hit); padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.lf-swslots span { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; font-size: var(--fs-head); font-weight: var(--fw-bold); line-height: 1.4; color: var(--c-sub); }
.lf-swslots i { display: block; width: calc(var(--n) * .62em); height: 1.3em; border-bottom: 3px solid var(--c-text); }
.lf-swslots b { font-weight: var(--fw-bold); letter-spacing: .08em; }
.lf-swslots:focus-visible { outline: 2px solid var(--c-action); outline-offset: 4px; border-radius: 8px; }
.lf-swhd { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--c-sub); }   /* (not said: the part asked for is still plainly marked. Codex 262 ④) */
.lf-swhd.ok { text-decoration-color: var(--c-ok); } .lf-swhd .ic { width: 20px; height: 20px; margin-right: 6px; vertical-align: -3px; color: var(--c-ok); }
.lf-swtl { color: var(--c-sub); font-weight: var(--fw-regular, 400); }
/* The intro's page on saying it in one's own language: the question, what they said, the line to say, the choice of two with their own on, the microphone. */

/* (the readings over the kanji of what people say, where Japanese is learned: room above each line for them. NT 2026-12-01) */
html:not(.nofuri) .lf-say:has(ruby), html:not(.nofuri) .lf-mur:has(ruby) { line-height: 1.95; }
/* The look back as the talk itself (NT 2026-12-01; docs/design/2026-12-01_lookback/full_text.png): the overall word,
   a line, then every line — the other's on the left with a face and its sound, the learner's on the right: green with a
   tick when a speaker would say it just so, pale red with its card under it when there is a better way, plain else. */
.lf-res .lf-tlpage { background: var(--c-surface); }
.lf-res:has(.lf-tlpage) { background: var(--c-surface); }
.lf-tlpage { display: flex; flex-direction: column; gap: 18px; }
.lf-tlh { margin: 4px 0 0; text-align: center; font-size: var(--fs-head); font-weight: var(--fw-bold); line-height: 1.3; }   /* (one word, the size of a page's name: NT 2026-12-01 「タイトルは振り返りのみで、サイズも調整」) */
.lf-tlsum { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.lf-tlsum p { margin: 0; font-size: var(--fs-body); line-height: 1.6; }
.lf-tllab2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-note); font-weight: 800; letter-spacing: .04em; color: var(--c-result); }
.lf-tllab2.ok { color: var(--c-ok); font-size: var(--fs-body); }
.lf-tlhr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--c-line); }
.lf-tlog { display: flex; flex-direction: column; gap: 14px; }
.lf-tl { display: flex; align-items: flex-start; gap: 8px; }
.lf-tl.you { align-self: flex-end; justify-content: flex-end; max-width: 80%; }
.lf-tl.you.fx { width: 80%; }
.lf-tl .lf-av { width: 36px; height: 36px; flex: none; border-radius: 50%; object-fit: cover; }
.lf-tlnm { display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-sub); font-size: var(--fs-note); font-weight: 700; }
.lf-tlb { margin: 0; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--c-line); font-size: var(--fs-body); line-height: 1.5; overflow-wrap: anywhere; }
.lf-tl.them .lf-tlb { display: flex; gap: 6px; max-width: calc(100% - 44px); background: var(--c-surface); }
.lf-tlsay { flex: none; width: 28px; height: 28px; margin: -2px 0 -4px -6px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--c-ic-blue); cursor: pointer; }
.lf-tl.you .lf-tlb { background: var(--c-surface-2); border-color: transparent; }
.lf-tl.you.ok .lf-tlb { background: #E6F4EC; border-color: #BFE3CD; }
.lf-tlok { flex: none; align-self: center; display: grid; color: var(--c-ok); }
.lf-tlok .ic { width: 20px; height: 20px; stroke-width: 2.6; }
.lf-tlbox { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 16px; border: 1.5px solid #F2D5CF; overflow: hidden; }
.lf-tl.you.fx .lf-tlb { border: 0; border-radius: 0; background: #FAE7E3; }
.lf-tl.you.fx .lf-tlb u { text-decoration: line-through; text-decoration-thickness: 1.5px; color: #8A6F69; }
.lf-tlfb { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px 8px 14px; background: var(--c-surface); }
.lf-tllab { font-size: var(--fs-note); font-weight: 700; color: #A8431B; }
.lf-tlrow { display: flex; align-items: center; }
.lf-tlnew { flex: 1; min-width: 0; font-size: var(--fs-body); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.lf-tlrow .round { flex: none; width: 40px; height: 40px; color: var(--c-sub); }
.lf-tlrow .lf-tlmic { color: var(--c-result); }
.lf-tlrow .lf-tlmic:disabled { opacity: .4; }
.lf-tlrow .lf-tlwhy { width: 36px; color: var(--c-control); }
.lf-tlrow .lf-tlwhy.on .ic { transform: rotate(180deg); }
.lf-tlwhyt { margin: 2px 8px 4px 0; font-size: var(--fs-sub); line-height: 1.55; color: var(--c-sub); }
.lf-tlfb .lf-rzredo { margin: 4px 8px 2px 0; }
.lf-res:has(.lf-tlpage) .dock { background: var(--c-surface); }
.lf-tl.you, .lf-tl.you .lf-tlbox { text-align: left; }
/* (a line of theirs with a word under it: how a speaker says it, or that it could not be told; with a hint: said from a line the app gave) */
.lf-tlcol { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }
.lf-tlcap { margin: 0 4px 0 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 6px; font-size: var(--fs-sub); line-height: 1.45; color: var(--c-sub); text-align: right; }
.lf-tlcap b { font-weight: 700; color: var(--c-sub); }
.lf-tlcap span { color: var(--c-text); }
.lf-tlcap { display: block; text-align: left; padding: 0 4px; margin: 0; }
.lf-tlcap b { display: block; }
/* The first-time words (NT 2026-12-01): the pub's line over its picture, once; the cards' note over its tab, once;
   saying a line again, over its button on the look back, once. */
.lf-tabtip { position: fixed; z-index: 30; width: max-content; max-width: calc(100vw - 16px); margin: 0; }
.lf-tabtip::after { left: var(--ax, 50%); }
.lf-home.tabtip .lf-bottom { bottom: calc(var(--tabbar) + var(--safe-bottom) + var(--tipgap, 50px)); }   /* (the note over the cards tab has its own room, as tall as it is: it does not cover the main button. Codex 283 ⑦) */
.lf-redotip { align-self: flex-end; width: max-content; max-width: 100%; margin: 4px 0 2px; }
.lf-redotip::after { left: auto; right: 51px; }   /* (its point at the mic: the second of the three round buttons from the right) */
.lf-redotip.nowhy::after { right: 15px; }   /* (no reason to open: the mic is the last button. Codex 285 ③) */
/* The first-time words over the main button: the door's shape, narrower (NT 2026-12-01 「ボタンの上に案内形式同一で…エリア狭めて」) */
.lf-bottom:has(> .lf-guide) { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px var(--side) calc(12px + var(--safe-bottom)); background: var(--c-surface); border-radius: 20px 20px 0 0; box-shadow: 0 -4px 18px rgba(0, 0, 0, .12); }
.lf-guide { display: flex; flex-direction: column; gap: 4px; }
.lf-guide .t-head { margin: 0; font-size: calc(18px * var(--ts)); line-height: 1.35; }
.lf-guide .t-sub { margin: 0; }
@media (prefers-reduced-motion: no-preference) { .lf-bottom:has(> .lf-guide) { animation: lf-fade var(--dur) var(--ease) .2s both; } }
/* the end of a talk on the bar, in the shape of the first-time words: what was done, a line, the button (NT 2026-12-01) */
.lf-act.lf-endband { gap: 12px; padding-top: 16px; }
.lf-act.lf-endband .lf-guide { padding: 0 2px; }
.screen.chat.life > .lf-tipslot { position: sticky; z-index: 6; pointer-events: none; }   /* (over the bar, at the foot with it: tipDraw gives its height) */
/* The door, nearer, and the first-time words set properly (NT 2026-12-01, on the door: 「もう少しだけドアが近い感じで。下の文字はもっと
   ちゃんとして」): the picture brought in on the door; a heading that reads as one, its line at the size of the text and in ink,
   with room around them — the same on every band of first-time words (the house, the pub, the end of a talk). */
.lf-arrive .lf-bg { background-size: 138% auto; background-position: 50% 30%; }
@container (min-aspect-ratio: 1/1) { .lf-arrive .lf-bg { background-size: auto 140%; background-position: 50% 28%; } }
.lf-arrive .lf-bottom { gap: 8px; padding-top: 24px; }
.lf-arrive .lf-bottom .t-head, .lf-guide .t-head { font-size: calc(22px * var(--ts)); font-weight: 800; line-height: 1.35; letter-spacing: .01em; }
.lf-arrive .lf-bottom .t-sub, .lf-guide .t-sub { font-size: var(--fs-body); line-height: 1.6; color: #3f4450; }
.lf-arrive .lf-bottom .t-sub { margin: 0 0 16px; }
.lf-guide { gap: 6px; }
.lf-bottom:has(> .lf-guide) { gap: 16px; padding-top: 22px; }
/* The first-time card (app.js firstCard; NT 2026-12-01 「画像＋説明＋ボタンを縦に並べたもの」「Dialogで目立って確認を押せるように」):
   in the middle over the dimmed page — the picture, the heading, a line or two, one button the width of the card. */
.lf-fc { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); background: rgba(17, 19, 24, .5); }
.lf-fcbox { width: 100%; max-width: 360px; max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 14px 14px 18px; border-radius: 26px; background: var(--c-surface); box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }
.lf-fcimg { width: 100%; aspect-ratio: 16 / 10; flex: none; border-radius: 18px; background: var(--c-surface-2) center 35% / cover no-repeat; }
.lf-fctx { display: flex; flex-direction: column; gap: 8px; padding: 0 6px; }
.lf-fctx .t-head { margin: 0; font-size: calc(21px * var(--ts)); font-weight: 800; line-height: 1.4; text-wrap: balance; }
.lf-fctx .t-body { margin: 0; font-size: var(--fs-body); line-height: 1.6; color: #3f4450; }
.lf-fcbox .btn-primary { width: 100%; min-height: 52px; }
@media (prefers-reduced-motion: no-preference) { .lf-fc { animation: lf-fade var(--dur) var(--ease) both; } .lf-fcbox { animation: lf-in var(--dur) var(--ease) both; } }
.lf-home.fcup .lf-bottom { visibility: hidden; }   /* (the card's button is the way on: the page's own is not shown under it) */
.lf-act.lf-ended { min-height: 72px; }
/* The door's words, more to the fore without a wider band (NT 2026-12-01, on the door: 「もう少し文字が目立つようにする？エリア広げるじゃないけど」) */
.lf-arrive .lf-bottom .t-head { font-size: calc(26px * var(--ts)); font-weight: 800; line-height: 1.3; letter-spacing: 0; color: #111318; }
.lf-arrive .lf-bottom .t-sub { font-size: calc(17px * var(--ts)); font-weight: 500; line-height: 1.55; color: #2f333b; margin: 2px 0 14px; }
.lf-arrive .lf-bottom { gap: 6px; padding-top: 22px; }

/* Japanese lines in the pictures of the way in break into even lines, not one with a word or two left over */
.lf-art.home .say, .lf-demo .say, .lf-demo .me, .lf-demo .made > span, .lf-demo .mine > span:last-child { text-wrap: balance; }
/* The pages after the izakaya (life.js DEMO): a picture, the person's question at the top, what the learner says at the foot */
.lf-demo.pic .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lf-demo.pic .who { position: absolute; width: auto; max-width: none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.3)); }
.lf-demo.own .bg { object-position: 50% 40%; } .lf-demo.own .who { left: -6%; top: 16%; height: 190%; }
.lf-demo.again .bg { object-position: 50% 42%; } .lf-demo.again .who { left: -8%; top: 14%; height: 112%; }
.lf-demo.pic::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(transparent, rgba(10,14,22,.55)); }
.lf-demo.pic .say { position: absolute; z-index: 1; right: var(--sp-4); top: var(--sp-4); max-width: 58%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--c-surface); font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.4; box-shadow: var(--shadow-2); }
.lf-demo.pic .low { position: absolute; z-index: 1; left: 14%; right: var(--sp-4); bottom: var(--sp-4); display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); }
.lf-demo.pic .me { max-width: 100%; padding: 8px 14px; border-radius: 18px 18px 6px 18px; background: rgba(255,255,255,.82); color: var(--c-sub); font-size: var(--fs-sub); line-height: 1.4; }
.lf-demo.pic .made { display: flex; align-items: center; gap: var(--sp-2); padding: 12px 14px 12px var(--sp-4); border-radius: 14px; background: var(--c-surface); box-shadow: inset 4px 0 0 var(--c-action), var(--shadow-2); font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.4; }
.lf-demo.pic .made .ic { flex: none; width: 22px; height: 22px; color: var(--c-sub); }
.lf-demo.pic .was { padding: 8px 14px; border-radius: 18px 18px 6px 18px; background: rgba(255,255,255,.78); color: var(--c-sub); font-size: var(--fs-sub); line-height: 1.4; }
.lf-demo.pic .was s { text-decoration-color: var(--c-action); text-decoration-thickness: 2px; }
.lf-demo.pic .mine { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 14px 12px; border-radius: 18px 18px 6px 18px; background: var(--c-surface); box-shadow: inset 0 0 0 2px var(--c-ok), var(--shadow-2); font-size: var(--fs-body); font-weight: var(--fw-bold); line-height: 1.4; }
.lf-demo.pic .mine .tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 8px; border-radius: var(--r-full); background: var(--c-ok-bg); color: var(--c-ok); font-size: var(--fs-note); }
.lf-demo.pic .mine .tag .ic { width: 14px; height: 14px; }
/* The words: not white on white (NT 2026-12-01 「単語のカードは背景と同化している」). On the look back the row to them is grey
   against the white page; on their own page the page is grey and the words white cards. */
.lf-tlpage .list { box-shadow: none; background: var(--c-surface-2); }
.lf-tlpage .list .row { background: transparent; }
.screen.lf-res:has(.lf-words) { background: var(--c-bg); }
.screen.lf-res:has(.lf-words) .bar { background: var(--c-bg); }
.lf-res .list.lf-words { box-shadow: var(--shadow-1); }

/* ---------- a night goes by (life.js nightCross): dark, the day turns, the morning comes up behind it ---------- */
.lf-night { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; background: #0c1226; color: #eef1f8; opacity: 0; transition: opacity .5s ease; cursor: pointer; }
.lf-night::before { content: ""; position: absolute; left: 20%; top: 18%; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .7;
  box-shadow: 40vw 6vh 0 #fff, 58vw 22vh 0 rgba(255,255,255,.6), 12vw 30vh 0 rgba(255,255,255,.5), 66vw -4vh 0 #fff, 28vw 14vh 0 rgba(255,255,255,.4), 48vw 38vh 0 rgba(255,255,255,.5), -8vw 8vh 0 rgba(255,255,255,.6); transition: opacity .9s ease; }
.lf-night.on { opacity: 1; }
.lf-nsky { position: absolute; inset: 0; background: linear-gradient(#f2c48a, #f9dfb9 55%, #fff3df); opacity: 0; transition: opacity 1s ease; }
.lf-night.dawn .lf-nsky { opacity: 1; }
.lf-night.dawn::before { opacity: 0; }
.lf-night.dawn { color: #3a2a16; transition: opacity .5s ease, color 1s ease; }
.lf-night.off { opacity: 0; transition: opacity .7s ease, color 1s ease; }
.lf-ndate { position: relative; display: grid; justify-items: center; gap: var(--sp-2); padding: 0 var(--sp-4); text-align: center; }
.lf-ndate > .was, .lf-ndate > .now { grid-area: 1 / 1; font-size: calc(26px * var(--ts)); font-weight: 800; line-height: 1.3; transition: opacity .6s ease, translate .6s ease; }
.lf-ndate > .now { opacity: 0; translate: 0 16px; }
.lf-ntod { font-size: var(--fs-body); font-weight: var(--fw-bold); opacity: 0; transition: opacity .6s ease .35s; }
.lf-night.turn .was { opacity: 0; translate: 0 -16px; }
.lf-night.turn .now, .lf-night.turn .lf-ntod { opacity: 1; translate: 0 0; }
.lf-night.turn .now { transition-delay: .45s; } .lf-night.turn .lf-ntod { transition-delay: .8s; }   /* (the day that was is gone before the next comes: never the two at once) */
.lf-night.turn .was { transition-duration: .4s; }
.lf-night.calm, .lf-night.calm * , .lf-night.calm::before { transition-duration: .2s !important; transition-delay: 0s !important; translate: none !important; }
/* the home coming in: the room of the hour before fades into this one; the people come onto it */
.lf-sceneold { pointer-events: none; animation: lf-bgout .7s ease both; }
@keyframes lf-bgout { to { opacity: 0; } }
.lf-home :is(.lf-who, .lf-shadow, .lf-pp, .lf-say, .lf-mur, .lf-bottom, .lf-hud, .lf-banner) { transition: opacity .35s ease; }
.lf-home.pre :is(.lf-who, .lf-shadow, .lf-pp, .lf-say, .lf-mur, .lf-bottom, .lf-hud, .lf-banner) { opacity: 0; transition: none; }

/* one first-time card into the next: the two in the same place, the one that was fading out (app.js firstCard) */
.lf-fcbox { grid-area: 1 / 1; }
.lf-fcbox.gone { pointer-events: none; animation: lf-bgout .26s ease both; }
/* (what fades out keeps its people as they were: the coming-in of the new scene is not theirs) */
.lf-sceneold :is(.lf-who, .lf-shadow, .lf-pp, .lf-say, .lf-mur) { opacity: 1 !important; transition: none !important; }
.lf-overold { pointer-events: none; animation: lf-bgout .24s ease both; }
@media (prefers-reduced-motion: no-preference) { #lfOver.opening > .lf-shade { animation: lf-fade .2s ease both; } #lfOver.opening > .lf-dlg { animation: lf-card .22s ease both; } }
/* 「使い心地はいかがですか？」 (life.js rateAsk): NT Poker's dialog in AUN's colours — stars, the question, a line, one button and one word */
.lf-rate { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(10, 12, 18, .8); }
.lf-ratebox { width: 100%; max-width: 340px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 22px 18px 12px; border-radius: 16px; background: var(--c-surface); text-align: center; box-shadow: var(--shadow-2); }
.lf-stars { display: flex; justify-content: center; align-items: center; margin-bottom: 12px; }
.lf-stars .a { fill: var(--c-action); } .lf-stars .b { fill: var(--c-result-ink); }
.lf-ratebox .t-head { margin: 0; font-size: calc(21px * var(--ts)); font-weight: 800; line-height: 1.4; white-space: pre-line; text-wrap: balance; }
.lf-ratebox .t-body { margin: 0 0 12px; color: var(--c-sub); line-height: 1.6; }
.lf-ratebox .btn-primary { width: 100%; min-height: 52px; }
.lf-ratebox .btn-text { color: var(--c-sub); font-weight: var(--fw-regular); }
@media (prefers-reduced-motion: no-preference) { .lf-rate { animation: lf-fade var(--dur) var(--ease) both; } .lf-ratebox { animation: lf-card var(--dur) var(--ease) both; } }
/* what fell short (life.js tellUs): things to choose, a box for more, the button; then thanks */
.lf-fb { display: flex; flex-direction: column; gap: var(--sp-4); padding-bottom: var(--sp-4); }
.lf-fbtags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.lf-fbtag { min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--c-line); border-radius: var(--r-full); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: var(--fs-sub); font-weight: var(--fw-bold); cursor: pointer; }
.lf-fbtag.on { border-color: var(--c-action); background: var(--c-result-soft); color: var(--c-result-ink); }
.lf-fbmore { display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sub); font-weight: var(--fw-bold); color: var(--c-sub); }
.lf-fbmore textarea { width: 100%; min-height: 110px; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-m); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-regular); line-height: 1.5; resize: vertical; box-sizing: border-box; }
.lf-fbmore textarea:focus { outline: none; border-color: var(--c-action); }
.lf-fb > .btn-primary { width: 100%; min-height: 52px; }
.lf-fbdone { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); padding: var(--sp-5) 0 var(--sp-3); text-align: center; }
.lf-fbdone .t-head { margin: 0; line-height: 1.5; white-space: pre-line; }
.lf-fbdone .btn-primary { width: 100%; min-height: 52px; }
.lf-fbok { width: 56px; height: 56px; border-radius: var(--r-full); background: var(--c-ok-bg); color: var(--c-ok); display: grid; place-items: center; }
.lf-fbok .ic { width: 28px; height: 28px; }
