/* "When it helps" (uses.js): four ways to show requests asked from a phone and done on the computer.
   Loads after home-mcp.css, which has the small result pictures (.sv) and their motion (.mo). */

/* ---------- Shared parts ---------- */
.uses { margin-top: 36px; }
.u-3d { display: block; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(90, 60, 30, .18)); }
[data-theme="dark"] .u-3d { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.u-app { width: 18px; height: 18px; flex: none; }
[data-theme="dark"] .u-app.mono { filter: invert(1); }
.u-me { align-self: flex-end; max-width: 86%; margin: 0; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--bg-alt); font-size: 13.5px; line-height: 1.45; color: var(--text); }
.u-ai { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text); }
.u-call { display: flex; align-items: center; gap: 7px; min-width: 0; height: 28px; padding: 0 9px 0 6px; border-radius: 9px; border: 1px solid var(--line-2); list-style: none; font-size: 11.5px; color: var(--muted); }
.u-call img { width: 16px; height: 16px; flex: none; padding: 2px; box-sizing: border-box; border-radius: 4px; background: var(--logo-tile, #ece5dc); }
.u-call code { flex: none; font: 600 11.5px var(--code); color: var(--text-2); }
.u-call span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 11px var(--code); }
.u-call em { flex: none; margin-left: auto; font-style: normal; color: var(--green); }
.u-call em.bad { color: #d4553a; }
.u-cap { margin: 0; font: 11.5px var(--pixel); letter-spacing: .03em; color: var(--muted); }
.u-cap b { font-weight: 400; color: var(--accent); }
/* Steps appear one by one (uses.js adds .on). */
.u-seq { display: flex; flex-direction: column; gap: 8px; }
.u-seq > * { opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.u-seq > .on { opacity: 1; transform: none; }
/* The result pictures outside the old scene cards. */
.uses .sv { min-width: 0; }
.uses .sv-tab p { display: flex; justify-content: space-between; margin: 0; padding: 0; border: 0; font-size: 11.5px; color: var(--text-2); }
.uses .sv-tab p.t { margin-top: 3px; padding-top: 4px; border-top: 1px solid var(--line-2); font-weight: 600; color: var(--text); }
/* A plain phone: frame, status bar, screen. */
.u-phone { box-sizing: border-box; flex: none; width: 252px; height: 546px; padding: 7px; border-radius: 44px; background: #121214; box-shadow: 0 0 0 1.5px #3a3a3d, 0 0 0 3px #c9cbcf, 0 34px 50px -26px rgba(60, 40, 20, .5); }
[data-theme="dark"] .u-phone { box-shadow: 0 0 0 1.5px #3a3a3d, 0 0 0 3px #2b2c2f, 0 34px 50px -26px rgba(0, 0, 0, .7); }
.u-scr { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 37px; background: var(--card); }
.u-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; flex: none; padding: 4px 26px 0; }
.u-status b { font: 600 13px -apple-system, system-ui, sans-serif; color: var(--text); }
.u-status i { position: absolute; left: 50%; top: 9px; width: 70px; height: 21px; border-radius: 14px; background: #000; transform: translateX(-50%); }
.u-status .u-bat { display: flex; align-items: center; gap: 5px; color: var(--text); }
.u-bat svg { width: 15px; height: 10px; fill: currentColor; }
.u-bat u { position: relative; box-sizing: border-box; width: 23px; height: 11.5px; padding: 1.5px; border-radius: 3.5px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.u-bat u::after { content: ""; position: absolute; right: -3.5px; top: 3.5px; width: 1.5px; height: 3.5px; border-radius: 0 1px 1px 0; background: color-mix(in srgb, currentColor 40%, transparent); }
.u-bat s { display: block; width: 78%; height: 100%; border-radius: 1.5px; background: currentColor; }
.u-home { position: absolute; left: 50%; bottom: 7px; width: 96px; height: 4px; border-radius: 2px; background: var(--text); opacity: .85; transform: translateX(-50%); }
.u-head { display: flex; align-items: center; justify-content: center; gap: 7px; height: 36px; flex: none; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); }
.u-head b { font-weight: 600; }
.u-thread { flex: 1; display: flex; flex-direction: column; padding: 12px 12px; overflow: hidden; }

/* ---------- a: A day away from your desk ---------- */
.ua-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.ua-rail button { position: relative; display: grid; gap: 2px; width: 100%; padding: 10px 8px 14px; border: 0; border-radius: 14px; background: none; cursor: pointer; text-align: center; color: var(--muted); }
.ua-rail button:hover { background: var(--bg-alt); }
.ua-rail b { font: 18px var(--pixel); color: var(--text-2); }
.ua-rail small { font-size: 12px; line-height: 1.3; }
.ua-rail .ua-bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ua-rail .ua-bar::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--accent); }
.ua-rail .on { background: var(--card); box-shadow: 0 0 0 1px var(--line-2), 0 8px 20px -12px rgba(90, 60, 30, .35); }
.ua-rail .on b { color: var(--accent); }
.ua-rail .on .ua-bar::after { animation: ua-fill 6.4s linear forwards; }
@keyframes ua-fill { to { transform: scaleX(1); } }
.uses-a .ua-stage { display: grid; grid-template-columns: auto minmax(0, 300px); justify-content: center; align-items: center; gap: 56px; margin-top: 30px; }
.ua-side { display: grid; justify-items: start; gap: 12px; }
.ua-side .u-3d { width: 120px; height: 120px; }
.ua-out { width: 100%; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .4s ease; }
.ua-out.in { opacity: 1; transform: none; }
.ua-out .sv { min-height: 110px; font-size: 12.5px; }
@media (max-width: 760px) {
  .ua-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
  .ua-rail li { flex: 0 0 31%; scroll-snap-align: start; }
  .uses-a .ua-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
  .ua-side { justify-items: center; width: min(100%, 320px); }
}

/* ---------- b: Tap a request ---------- */
.ub-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 900px; margin: 0 auto; }
.ub-chips button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font: 500 14px var(--sans); color: var(--text-2); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.ub-chips button:hover { transform: translateY(-1px); border-color: var(--faint); }
.ub-chips .u-3d { width: 34px; height: 34px; filter: none; }
/* No accent outline here (owner review 2026-10-19): it looks too sharp. The open request has a light accent fill. */
.ub-chips .on { border-color: transparent; background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--text); }
/* The phone plays the request; the card beside it shows what changed on the computer. */
.ub-stage { display: grid; grid-template-columns: auto 92px minmax(0, 520px); justify-content: center; align-items: center; margin-top: 30px; }
.ub-col { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.ub-maccol { align-items: stretch; width: 520px; max-width: 100%; }
.ub-phone .u-input { margin-bottom: 18px; }
.ub-where { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.ub-where time { margin-right: 6px; font: 14px var(--pixel); color: var(--accent); }
.ub-where b { color: var(--text-2); }
.ub-wire small { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font: 10.5px var(--pixel); letter-spacing: .04em; color: var(--faint); white-space: nowrap; }
/* The MacBook (home-mcp.css .mb): the Hey Atu log, then what changed. */
.ub-mac .mb-win { top: 2.6em; }
.ub-mac .ub-state { margin-left: auto; font-size: .9em; color: #8e8e93; }
.ub-mac .m-log { flex: none; }
.ub-mac .m-log em.bad { color: #d14343; }
.ub-mac .ub-out { flex: 1; min-height: 0; padding: 0 .7em .7em; }
.ub-mac .ub-out .sv { min-height: 0; height: 100%; box-sizing: border-box; font-size: 1em; background: rgba(0, 0, 0, .04); color: inherit; }
.ub-mac .ub-out .sv-term { background: #1d1b19; }
.ub-mac .ub-out .sv-term { align-content: center; gap: .15em; padding: .5em .8em; }
.ub-mac .ub-out .sv-term code { font-size: .92em; line-height: 1.35; }
[data-theme="dark"] .ub-mac .ub-out .sv:not(.sv-term) { background: rgba(255, 255, 255, .06); }
.ub-phone .u-thread { justify-content: flex-start; }
.ub-phone .u-seq { gap: 7px; }
.ub-phone .u-ai { margin-top: 3px; }
.u-input { display: flex; align-items: center; gap: 8px; flex: none; margin: 0 10px 12px; padding: 5px 5px 5px 14px; border-radius: 22px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--faint); }
.u-input span { flex: 1; }
.u-input b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--text); opacity: .2; }
.u-input svg { width: 14px; height: 14px; fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.u-call.say span { font: 12px var(--sans); color: var(--text-2); }
.u-call.say { height: 30px; border-radius: 10px; }
.ub-wire { position: relative; height: 2px; margin: 0 8px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.ub-wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0; }
.ub-wire.go i { animation: ub-go 1.4s cubic-bezier(.45, .05, .3, 1) .5s 2 both; }
@keyframes ub-go { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.ub-side { display: grid; gap: 16px; padding: 22px; border-radius: 24px; }
.ub-meta { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 12.5px; color: var(--muted); }
.ub-meta time { font: 15px var(--pixel); color: var(--accent); }
.ub-pc { display: flex; align-items: center; gap: 12px; }
.ub-pc .ub-ic { width: 76px; height: 76px; }
.ub-pc .u-cap b { color: var(--text-2); }
.ub-out { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .4s ease; }
.ub-out.in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .ub-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
  .ub-chips button { flex: none; }
  .ub-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0; }
  .ub-wire { width: 2px; height: 34px; margin: 0; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .ub-wire i { display: none; }
  .ub-maccol { width: min(100%, 420px); }
  .ub-wire small { display: none; }
}

/* ---------- c: Phone and computer side by side ---------- */
.uc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 900px; margin: 0 auto; }
.uc-track::-webkit-scrollbar { display: none; }
.uc-slide { flex: 0 0 100%; display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr); align-items: center; padding: 14px 18px 20px; scroll-snap-align: center; box-sizing: border-box; }
.uc-phone { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 30px; background: var(--card); box-shadow: 0 0 0 6px #121214, 0 0 0 7.5px #c9cbcf, 0 26px 40px -24px rgba(60, 40, 20, .5); }
[data-theme="dark"] .uc-phone { box-shadow: 0 0 0 6px #121214, 0 0 0 7.5px #2b2c2f, 0 26px 40px -24px rgba(0, 0, 0, .7); }
.uc-tag { display: flex; align-items: center; gap: 7px; margin: 0; font: 11.5px var(--pixel); color: var(--muted); }
.uc-phone .u-ai { opacity: 0; transition: opacity .4s ease 1.6s; }
.uc-slide.on .uc-phone .u-ai { opacity: 1; }
.uc-wire { position: relative; height: 120px; }
.uc-line { position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.uc-pkt { position: absolute; top: calc(50% - 12px); left: 10px; padding: 3px 9px; border-radius: 99px; background: var(--text); color: var(--bg); opacity: 0; }
.uc-pkt code { font: 10.5px var(--code); }
.uc-slide.on .uc-pkt { animation: uc-go 1.1s cubic-bezier(.45, .05, .3, 1) calc(.2s + var(--d) * .45s) both; }
@keyframes uc-go { 0% { left: 10px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 60px); opacity: 0; } }
.uc-mac { display: grid; justify-items: center; gap: 12px; padding: 0 18px 20px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), 0 24px 40px -26px rgba(60, 40, 20, .45); overflow: hidden; }
.uc-tb { display: flex; align-items: center; gap: 8px; width: calc(100% + 36px); margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--line); font: 11.5px var(--pixel); color: var(--muted); }
.uc-lights { display: inline-flex; gap: 5px; }
.uc-lights i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; } .uc-lights i:nth-child(2) { background: #febc2e; } .uc-lights i:nth-child(3) { background: #28c840; }
.uc-mac .uc-ic { width: 84px; height: 84px; }
.uc-mac .sv { width: 100%; min-height: 90px; }
.uc-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; }
.uc-nav button { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); font-size: 20px; line-height: 1; color: var(--text-2); cursor: pointer; }
.uc-dots { display: flex; gap: 6px; }
.uc-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); cursor: pointer; transition: width .25s, background .25s; }
.uc-dots i.on { width: 20px; border-radius: 4px; background: var(--accent); }
@media (max-width: 760px) {
  .uc-slide { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 12px 12px 16px; }
  .uc-wire { height: 70px; }
  .uc-line { left: 50%; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .uc-pkt { left: calc(50% + 10px); }
  @keyframes uc-go { 0% { top: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { top: 46px; opacity: 0; } }
}

/* ---------- d: Your chat list ---------- */
.uses-d { display: grid; grid-template-columns: auto minmax(0, 300px); justify-content: center; align-items: center; gap: 56px; }
.ud-pages { position: relative; flex: 1; overflow: hidden; }
.ud-list, .ud-chat { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--card); transition: transform .45s cubic-bezier(.2, .8, .2, 1), filter .45s; }
.ud-chat { transform: translateX(100%); box-shadow: -8px 0 20px -12px rgba(0, 0, 0, .25); }
.in-chat .ud-list { transform: translateX(-30%); filter: brightness(.92); }
.in-chat .ud-chat { transform: none; }
.ud-list h3 { margin: 6px 16px 8px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.ud-list ul { margin: 0; padding: 0; list-style: none; }
.ud-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.ud-list button:hover, .ud-list button.on { background: var(--bg-alt); }
.ud-list .u-app { width: 28px; height: 28px; padding: 5px; box-sizing: border-box; border-radius: 50%; background: var(--bg-alt); }
.ud-list span { flex: 1; min-width: 0; }
.ud-list b { display: block; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-list small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-list time { align-self: flex-start; margin-top: 2px; font-size: 11px; color: var(--faint); }
.ud-bar { display: flex; align-items: center; height: 40px; margin: 0; padding: 0 10px; border-bottom: 1px solid var(--line); }
.ud-back { display: inline-flex; align-items: center; gap: 1px; padding: 0; border: 0; background: none; font: 14px -apple-system, system-ui, sans-serif; color: #0a84ff; cursor: pointer; }
.ud-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ud-bar b { flex: 1; margin-right: 50px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ud-side { display: grid; justify-items: start; gap: 12px; }
.ud-hint { margin: 0; font: 12px var(--pixel); color: var(--accent); }
.ud-hint::before { content: "← "; }
.opened .ud-hint { display: none; }
.ud-side .u-3d { width: 120px; height: 120px; }
.ud-out .sv { min-height: 110px; width: 260px; font-size: 12.5px; }
@media (max-width: 760px) {
  .uses-d { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; }
  .ud-side { justify-items: center; }
  .ud-hint::before { content: "↑ "; }
}
@media (max-width: 760px) { .uses .u-phone { width: 222px; height: 481px; } }
/* Plain-word steps may take two lines on a narrow phone. */
.u-call.say { height: auto; min-height: 30px; padding-top: 5px; padding-bottom: 5px; }
.u-call.say span { white-space: normal; line-height: 1.3; }
