/* how ("The little things"): three tabs beside one stage on a wide screen,
   three stacked demos on a narrow one. Every class here is lt-*, so the
   older layers in base.css (.how-body, .steps, .pal, .reply…) don't reach it. */

#how {
  --lt-spring: cubic-bezier(.22, .82, .22, 1);
  --lt-ground: var(--group, #f6f6f7);
  --lt-model-edge: color-mix(in srgb, var(--marigold) 24%, transparent);
}
#how .lt { margin-top: 36px; }
#how .lt :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#how .lt :focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
#how .lt kbd {
  display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 6px;
  background: var(--raised); box-shadow: 0 0 0 .5px var(--line-2, var(--hair)), 0 1px 0 var(--hair);
  font: 500 11.5px/1 var(--sans); color: var(--sub);
}

/* ── Tabs (wide only) ── */
#how .lt-tabs { display: none; }
#how .lt-cap h3 { margin: 0; font: 600 18px/1.3 var(--sys, var(--sans)); letter-spacing: -.015em; color: var(--t1, var(--ink)); }
#how .lt-cap p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--t2, var(--sub)); max-width: 34em; }

@media (min-width: 900px) {
  #how .lt { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
  #how .lt-tabs { display: grid; gap: 4px; position: relative; isolation: isolate; padding-top: 6px; }
  #how .lt-mark {
    position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 0; border-radius: 18px;
    background: var(--lt-ground); pointer-events: none;
  }
  #how .lt-mark.ready { transition: transform .34s var(--lt-spring), height .34s var(--lt-spring); }
  #how .lt-tab {
    display: grid; gap: 5px; width: 100%; padding: 16px 18px 17px; border-radius: 18px; text-align: left;
    transition: background-color .2s, transform .2s var(--lt-spring);
  }
  #how .lt-tab:active { transform: scale(.985); }
  #how .lt-t { font: 550 16px/1.35 var(--sys, var(--sans)); letter-spacing: -.012em; color: var(--t1, var(--ink)); transition: color .2s; }
  #how .lt-d { font-size: 14px; line-height: 1.55; color: var(--t2, var(--sub)); transition: color .2s; }
  #how .lt-tab[aria-selected="false"] .lt-t { color: var(--t2, var(--sub)); }
  #how .lt-tab[aria-selected="false"] .lt-d { color: var(--t3, var(--faint)); }
  #how .lt-tab[aria-selected="false"]:hover { background: var(--hover, rgb(0 0 0 / .03)); }
  #how .lt-tab[aria-selected="false"]:hover .lt-t { color: var(--t1, var(--ink)); }
  #how .lt-cap { display: none; }
}

/* ── Stage ── */
#how .lt-stage { display: grid; gap: 56px; }
#how .lt-panel { position: relative; }
#how .lt-ground {
  position: relative; display: flex; justify-content: center; align-items: flex-start; padding: 14px; margin-top: 16px;
  border-radius: 24px; background: var(--lt-ground);
}
@media (min-width: 900px) {
  #how .lt-stage { display: block; position: relative; height: 488px; border-radius: 28px; background: var(--lt-ground); overflow: hidden; }
  #how .lt-panel {
    position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.99);
    transition: opacity .2s, transform .34s var(--lt-spring), visibility 0s .34s;
  }
  #how .lt-panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity .26s .05s, transform .34s var(--lt-spring) .05s, visibility 0s; }
  #how .lt-ground { height: 100%; margin: 0; padding: 28px 40px; background: none; border-radius: 0; align-items: stretch; }
  /* Every demo fills the stage: the palette at its own height, the
     conversation and the reply box down to the bottom edge. */
  #how .lt-pal { align-self: flex-start; }
  #how .lt-list { height: 300px; }
  #how .lt .lt-reader, #how .lt .lt-convo { height: 100%; }
  #how .lt .lt-convo { display: flex; flex-direction: column; }
  #how .lt .lt-replyslot { flex: 1; min-height: 0; }
  #how .lt .lt-reply { display: flex; flex-direction: column; }
  #how .lt .lt-write { flex: 1; }
  #how .lt .lt-write textarea { height: 100%; }
  #how .lt-toast { bottom: 44px; }
}

/* ── Toast: the app's frosted note, with Undo ── */
#how .lt-toast {
  position: absolute; z-index: 6; left: 50%; bottom: 30px; display: flex; align-items: center; gap: 8px;
  max-width: calc(100% - 32px); height: 40px; padding: 0 6px 0 14px; border-radius: 999px;
  background: var(--frost); box-shadow: var(--frost-shadow); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  font-size: 14px; color: var(--ink); white-space: nowrap;
  opacity: 0; transform: translate(-50%, 8px) scale(.98); pointer-events: none;
  transition: opacity .18s, transform .3s var(--lt-spring);
}
#how .lt-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#how .lt-toast span { overflow: hidden; text-overflow: ellipsis; }
#how .lt-toast span:last-of-type { padding-right: 8px; }
#how .lt-toast .ic { width: 15px; height: 15px; color: var(--sub); }
#how .lt-toast button { height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }
#how .lt-toast button:hover { background: var(--pill); }
#how .lt-toast button[hidden] { display: none; }
#how .lt-toast:has(button:not([hidden])) span { padding-right: 0; }

/* round icon buttons, with the app's tooltip on a mouse */
#how .lt-ib { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--sub); transition: background-color .12s, color .12s, transform .16s var(--lt-spring); }
#how .lt-ib .ic { width: 17px; height: 17px; }
#how .lt-ib:hover { background: var(--pill); color: var(--ink); transition-duration: 50ms; }
#how .lt-ib:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) {
  #how .lt-ib[data-tip]::after {
    content: attr(data-tip); position: absolute; z-index: 9; top: calc(100% + 6px); left: 50%; translate: -50% -2px;
    padding: 4px 8px; border-radius: 7px; background: var(--ink); color: var(--raised); font: 500 11.5px/1.2 var(--sans); white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .12s, translate .12s;
  }
  #how .lt-ib[data-tip]:hover::after { opacity: 1; translate: -50% 0; transition-delay: .45s; }
  #how .lt-foot .lt-ib[data-tip]::after { top: auto; bottom: calc(100% + 6px); translate: -50% 2px; }
  #how .lt-foot .lt-ib[data-tip]:hover::after { translate: -50% 0; }
}

/* ── 1. ⌘K ── */
#how .lt-pal { width: min(520px, 100%); background: var(--raised); border-radius: 20px; box-shadow: var(--lift); overflow: hidden; transition: box-shadow .2s; }
#how .lt-pal:has(input:focus-visible) { box-shadow: var(--lift), 0 0 0 3px color-mix(in srgb, var(--indigo) 28%, transparent); }
#how .lt-field { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px; border-bottom: .5px solid var(--hair); cursor: text; }
#how .lt-field .ic { width: 18px; height: 18px; color: var(--faint); }
#how .lt-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 17px/1.3 var(--sans); letter-spacing: -.01em; color: var(--ink); }
#how .lt-field input::placeholder { color: var(--faint); }
#how .lt-field input:focus-visible { outline: 0; }
#how .lt-ctx { display: flex; align-items: center; gap: 7px; margin: 0; padding: 12px 20px 2px; font-size: 12.5px; color: var(--sub); }
#how .lt-ctx[hidden] { display: none; }
#how .lt-ctx .ic { width: 13px; height: 13px; }
#how .lt-list { list-style: none; margin: 0; padding: 4px 6px 6px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#how .lt-list [role="option"] { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px; font-size: 15px; color: var(--ink); cursor: pointer; }
#how .lt-list [role="option"].hi { background: var(--pill); }
#how .lt-list .lt-ic { display: grid; color: var(--sub); }
#how .lt-list .lt-ic .ic { width: 17px; height: 17px; }
#how .lt-list .lt-ic.ai .ic { fill: var(--marigold); stroke: none; }
#how .lt-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#how .lt-hint { margin-left: 6px; color: var(--sub); }
#how .lt-list [role="option"].said { height: auto; min-height: 56px; padding-block: 8px; }
#how .lt-list .said .lt-name { white-space: normal; line-height: 1.35; }
#how .lt-list .said .lt-hint { display: block; margin: 1px 0 0; font-size: 13px; }
/* The palette hangs from the top, as the app's does, so it can shrink as you type. */
#how .lt-k { display: flex; gap: 4px; }
#how .lt-more { width: 14px; height: 14px; color: var(--faint); margin-right: -2px; rotate: -90deg; }
#how .lt-group { padding: 12px 12px 4px; font-size: 12.5px; color: var(--sub); }
#how .lt-empty { padding: 16px 12px; font-size: 14px; line-height: 1.5; color: var(--sub); }
#how .lt-empty kbd { vertical-align: 1px; }
#how .lt-keys { display: flex; justify-content: flex-end; gap: 16px; padding: 10px 14px; border-top: .5px solid var(--hair); font-size: 12.5px; color: var(--sub); }
#how .lt-keys span { display: flex; align-items: center; gap: 5px; }
#how .lt-keys kbd { min-width: 20px; height: 20px; font-size: 11px; }

/* ── 2. Summary ── */
#how .lt-reader { width: min(540px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--raised); border-radius: 22px; box-shadow: var(--lift); overflow: hidden; }
#how .lt-rhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 8px 22px; }
#how .lt-rhead h4 { margin: 0; min-width: 0; font: 600 17px/1.3 var(--sans); letter-spacing: -.015em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#how .lt-tools { display: flex; gap: 2px; } /* bare icons, as the app's reader has them: no capsule */
#how .lt-spark .ic { fill: var(--marigold); stroke: none; }
#how .lt-spark[aria-pressed="true"] { background: var(--cream); }
#how .lt-rbody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 22px 22px; scrollbar-width: thin; }

#how .lt-sum { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; margin: 0 0 18px; }
#how .lt-star { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 1px var(--lt-model-edge); }
#how .lt-star .ic { width: 15px; height: 15px; fill: var(--marigold); stroke: none; }
#how .lt-note { position: relative; padding: 11px 34px 12px 14px; border-radius: 6px 18px 18px 18px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--lt-model-edge); color: var(--brown); font-size: 14px; line-height: 1.5; }
#how .lt-note p { margin: 0; }
#how .lt-note ul { list-style: none; margin: 0; padding: 0; }
#how .lt-note li { position: relative; padding-left: 14px; }
#how .lt-note li + li { margin-top: 4px; }
#how .lt-note li::before { content: "•"; position: absolute; left: 0; color: var(--brown-2); }
#how .lt-note b { font-weight: 600; }
#how .lt-pills { display: flex; gap: 6px; margin-top: 10px; }
#how .lt-pills button { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--brown); background: rgb(255 255 255 / .78); box-shadow: 0 0 0 .5px rgb(0 0 0 / .06); transition: background-color .12s, opacity .12s; }
#how .lt-pills button:hover { background: #fff; }
#how .lt-pills button:active { opacity: .7; }
#how .lt-pills button[aria-pressed="true"] { background: var(--cream-2); box-shadow: inset 0 0 0 1px var(--lt-model-edge); }
#how .lt-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--brown-2); opacity: 0; transition: opacity .2s, background-color .12s; }
#how .lt-x .ic { width: 13px; height: 13px; stroke-width: 2; }
#how .lt-x:hover { background: var(--cream-2); }
#how .lt-sum:hover .lt-x, #how .lt-x:focus-visible { opacity: 1; transition-duration: 50ms; }
@media (hover: none) { #how .lt-x { opacity: .8; } }
#how .lt-where { grid-column: 2; margin-top: 5px; padding-left: 2px; font-size: 11.5px; color: var(--faint); }
#how .lt-lines { display: grid; gap: 8px; padding-top: 7px; }
#how .lt-lines i { display: block; height: 9px; border-radius: 9px; background: linear-gradient(90deg, var(--pill) 30%, var(--card) 50%, var(--pill) 70%) 0 0 / 300% 100%; animation: lt-shimmer 1.3s linear infinite; }
#how .lt-lines i:nth-child(1) { width: 92%; } #how .lt-lines i:nth-child(2) { width: 78%; } #how .lt-lines i:nth-child(3) { width: 50%; }
@keyframes lt-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
#how .lt-sum.enter { animation: lt-in .34s var(--lt-spring); }
@keyframes lt-in { from { opacity: 0; transform: translateY(4px); filter: blur(3px); } }

#how .lt-earlier { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; margin: 0 0 14px; border-radius: 999px; background: var(--card); font-size: 13px !important; color: var(--sub) !important; transition: background-color .12s; }
#how .lt-earlier:hover { background: var(--pill); }
#how .lt-faces { display: flex; }
#how .lt-faces .av { width: 22px; height: 22px; font-size: 8.5px; box-shadow: 0 0 0 1.5px var(--card); }
#how .lt-faces .av + .av { margin-left: -6px; }
#how .lt-older { display: grid; margin: -4px 0 12px; }
#how .lt-older[hidden] { display: none; }
#how .lt-row { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 42px; border-bottom: .5px solid var(--hair); font-size: 13.5px; }
#how .lt-row .av { width: 28px; height: 28px; font-size: 10px; }
#how .lt-row b { font-weight: 550; color: var(--ink); white-space: nowrap; }
#how .lt-snip, #how .lt-row time { color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#how .lt-row time { font-size: 12.5px; }
#how .lt-from { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; font-size: 15px; line-height: 1.35; }
#how .lt-from .av { width: 36px; height: 36px; font-size: 13px; }
#how .lt-from b { font-weight: 600; color: var(--ink); }
#how .lt-addr { color: var(--sub); font-size: 13px; }
#how .lt-from small { display: block; margin-top: 1px; font-size: 13px; color: var(--sub); }
#how .lt-from time { padding-top: 2px; font-size: 12.5px; color: var(--sub); white-space: nowrap; }
#how .lt-msg p { margin: 10px 0 0 48px; font-size: 15px; line-height: 1.55; color: var(--ink); }
#how .lt-msg p + p { margin-top: 8px; }

/* ── 3. Reply ── */
#how .lt-convo { width: min(540px, 100%); display: grid; gap: 14px; }
#how .lt-last { display: flex; gap: 12px; align-items: flex-start; padding: 0 8px; }
#how .lt-last .av { width: 30px; height: 30px; font-size: 11px; }
#how .lt-last p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sub); }
#how .lt-last b { display: block; font-weight: 600; color: var(--ink); }
#how .lt-replyslot { position: relative; display: grid; }
#how .lt-replyslot > * { grid-area: 1 / 1; }
#how .lt-reply { position: relative; z-index: 1; padding: 4px 16px 12px 20px; border-radius: 24px; background: var(--raised); box-shadow: var(--lift); transform-origin: 50% 60%; transition: opacity .24s, transform .4s var(--lt-spring), box-shadow .2s; }
#how .lt-reply:has(textarea:focus-visible) { box-shadow: var(--lift), 0 0 0 3px color-mix(in srgb, var(--indigo) 28%, transparent); }
#how .lt-to { display: flex; align-items: center; gap: 10px; height: 48px; border-bottom: .5px solid var(--hair); font-size: 14px; color: var(--sub); white-space: nowrap; }
#how .lt-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 3px; border-radius: 999px; background: var(--card); color: var(--ink); }
#how .lt-chip .av { width: 22px; height: 22px; font-size: 8.5px; }
#how .lt-acct { margin-left: auto; }
#how .lt-write { position: relative; }
#how .lt-write textarea { display: block; width: 100%; min-height: 112px; padding: 12px 0 8px; border: 0; outline: 0; background: none; resize: none; font: 400 15.5px/1.55 var(--sans); letter-spacing: -.005em; color: var(--ink); }
#how .lt-write textarea::placeholder { color: var(--faint); }
#how .lt-write textarea:focus-visible { outline: 0; }
#how .lt-snips { position: absolute; z-index: 4; left: -8px; top: 40px; width: min(330px, calc(100% + 8px)); padding: 5px; border-radius: 14px; background: var(--raised); box-shadow: 0 0 0 .5px var(--hair), 0 14px 32px -12px rgb(0 0 0 / .28); animation: lt-pop .16s var(--lt-spring); }
#how .lt-snips[hidden] { display: none; }
@keyframes lt-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
#how .lt-snips [role="option"] { display: grid; gap: 1px; padding: 7px 10px 8px; border-radius: 10px; cursor: pointer; }
#how .lt-snips [aria-selected="true"] { background: var(--pill); }
#how .lt-snips b { font-weight: 600; font-size: 14px; color: var(--ink); }
#how .lt-snips span { font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#how .lt-foot { display: flex; align-items: center; gap: 2px; }
#how .lt-sp { flex: 1; }
#how .lt .lt-send { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 16px; margin-right: 6px; border-radius: 999px; background: var(--indigo); color: var(--indigo-ink); font-size: 14.5px; font-weight: 500; transition: background-color .15s, color .15s, transform .16s var(--lt-spring); }
#how .lt .lt-send kbd { min-width: 0; height: auto; padding: 0; background: none; box-shadow: none; color: inherit; opacity: .7; font-size: 12px; }
#how .lt .lt-send:active:not(:disabled) { transform: scale(.95); }
#how .lt .lt-send:disabled { background: var(--pill); color: var(--faint); cursor: default; }

/* sent: the reply folds into an envelope and the seal goes on */
#how .lt-env { z-index: 2; display: grid; place-content: center; justify-items: center; gap: 16px; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .24s, visibility 0s .3s; }
#how .lt-env p { margin: 0; font-size: 13.5px; color: var(--sub); opacity: 0; translate: 0 4px; transition: opacity .25s, translate .3s var(--lt-spring); }
#how .lt-letter { position: relative; width: 136px; height: 92px; perspective: 520px; transform: translateY(10px) scale(.86); transition: transform .5s var(--lt-spring); filter: drop-shadow(0 10px 14px rgb(30 30 60 / .12)); }
#how .lt-letter i { position: absolute; inset: 0; border-radius: 9px; }
#how .lt-back { background: var(--pill); box-shadow: inset 0 0 0 .5px var(--hair); }
#how .lt-paper { inset: 6px 12px 14px !important; border-radius: 4px !important; z-index: 1; background: var(--raised) repeating-linear-gradient(transparent 0 12px, var(--hair) 12px 13.5px) 12px 12px / calc(100% - 24px) 40px no-repeat; transform: translateY(-34px); transition: transform .36s var(--lt-spring); }
#how .lt-front { z-index: 2; background: linear-gradient(160deg, var(--raised), var(--card)); box-shadow: inset 0 0 0 .5px var(--hair); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); }
#how .lt-flap { z-index: 3; background: linear-gradient(170deg, var(--raised), var(--pill)); clip-path: polygon(0 0, 100% 0, 54% 58%, 50% 61%, 46% 58%); transform-origin: top; transform: rotateX(180deg); transition: transform .32s var(--lt-spring) .3s; }
#how .lt-wax { position: absolute; z-index: 4; left: calc(50% - 19px); top: 34px; width: 38px; height: 38px; object-fit: contain; opacity: 0; transform: translateY(-8px) scale(1.25); transition: transform .34s cubic-bezier(.18, .85, .28, 1) .62s, opacity .14s .62s; }
#how .lt-replyslot.sent .lt-reply { opacity: 0; transform: scale(.9) translateY(14px); pointer-events: none; }
#how .lt-replyslot.sent .lt-env { opacity: 1; visibility: visible; transition-delay: .08s, 0s; }
#how .lt-replyslot.sent :is(.lt-letter, .lt-paper, .lt-flap) { transform: none; }
#how .lt-replyslot.sent .lt-wax { opacity: 1; transform: none; }
#how .lt-replyslot.done .lt-env p { opacity: 1; translate: none; }

/* ── Touch: no key hints ── */
@media (hover: none), (pointer: coarse) {
  #how .lt-k, #how .lt-keys, #how .lt .lt-send kbd { display: none; }
  #how .lt-list { max-height: 276px; }
  #how .lt-list [role="option"] { height: 44px; }
  #how .lt-ib { width: 40px; height: 40px; }
  #how .lt-tools .lt-ib { width: 36px; height: 36px; }
  #how .lt .lt-send { height: 40px; padding: 0 18px; }
  #how .lt-pills button { height: 34px; padding: 0 14px; }
  #how .lt-x { width: 32px; height: 32px; top: 2px; right: 2px; }
}

/* ── Narrow ── */
@media (max-width: 520px) {
  #how .lt-ground { padding: 10px; border-radius: 22px; margin-inline: -6px; }
  #how .lt-field { padding: 0 16px; height: 54px; }
  #how .lt-field input { font-size: 16px; }
  #how .lt-rhead { padding: 10px 8px 6px 16px; }
  #how .lt-rbody { padding: 8px 16px 18px; }
  #how .lt-msg p { margin-left: 0; }
  #how .lt-addr { display: none; }
  #how .lt-snip { display: none; }
  #how .lt-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  #how .lt-reply { padding: 2px 10px 10px 16px; }
  #how .lt-acct { display: none; }
  #how .lt-to { gap: 6px; overflow: hidden; }
  #how .lt-chip { font-size: 13.5px; padding-right: 9px; }
  #how .lt-foot .lt-ib:is([aria-label="Improve writing"], [aria-label="Suggest times"]) { display: none; }
  #how .lt-tools .lt-ib:is([aria-label="Trash"], [aria-label="More"]) { display: none; }
  #how .lt-sum { grid-template-columns: minmax(0, 1fr); }
  #how .lt-star { display: none; }
  #how .lt-where { grid-column: 1; }
}

/* ── Dark ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #how { --lt-ground: color-mix(in srgb, var(--card) 70%, var(--ground, #141413)); --lt-model-edge: color-mix(in srgb, var(--marigold) 18%, transparent); }
  :root:not([data-theme="light"]) #how .lt-pills button { background: rgb(255 255 255 / .10); box-shadow: none; }
  :root:not([data-theme="light"]) #how .lt-pills button:hover { background: rgb(255 255 255 / .16); }
  :root:not([data-theme="light"]) #how .lt-letter { filter: drop-shadow(0 10px 14px rgb(0 0 0 / .5)); }
}
:root[data-theme="dark"] #how { --lt-ground: color-mix(in srgb, var(--card) 70%, var(--ground, #141413)); --lt-model-edge: color-mix(in srgb, var(--marigold) 18%, transparent); }
:root[data-theme="dark"] #how .lt-pills button { background: rgb(255 255 255 / .10); box-shadow: none; }
:root[data-theme="dark"] #how .lt-pills button:hover { background: rgb(255 255 255 / .16); }
:root[data-theme="dark"] #how .lt-letter { filter: drop-shadow(0 10px 14px rgb(0 0 0 / .5)); }

/* ── Reduced motion: things change in place ── */
@media (prefers-reduced-motion: reduce) {
  #how .lt *, #how .lt *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  #how .lt-panel, #how .lt-toast { transform: none !important; }
  #how .lt-toast { transform: translate(-50%, 0) !important; }
}

/* Two earlier messages show as rows, as the app does now (it folds them only past four). */
#how .lt-earlier[hidden] { display: none; }

#how .lt-toast { visibility: hidden; transition: opacity .18s, transform .3s var(--lt-spring), visibility 0s .3s; }
#how .lt-toast.on { visibility: visible; transition: opacity .18s, transform .3s var(--lt-spring), visibility 0s; }

/* Phones: the reply demo keeps to its panel (its rows were sizing to their
   longest line and running off the right). */
#how .lt-convo { grid-template-columns: minmax(0, 1fr); min-width: 0; }
#how .lt-convo > *, #how .lt-last p, #how .lt-reply { min-width: 0; }
