/* =================================================================
   THE HOME (portal-look-and-feel.md section 2) - UI.Portal/Pages/Home + Components/Home
   -----------------------------------------------------------------
   Every class here is home-* and owned by THIS file alone
   (Tests/ConversationBuilderCssOwnershipTests). TOKENS ONLY, the whole
   file (Tests/ShellTokensOnlyTests): every colour reads --theme-*,
   --wf-* or --conv-*, so a dark, grey-primary, sharp or pill tenant
   re-skins all of it. A --conv-* hue appears ONLY on something that is a
   moment or a family (the moment strip, the family cards, the composer's
   Ask glow). Down is never red. One orchestrated moment: the greeting's
   once-a-day typing (pure CSS delays; reduced motion = instant).
   The home is its own container ("home"), so it reflows by the width it
   is given, not the window's.
   ================================================================= */

.home {
    container: home / inline-size;
    position: relative;
    padding-bottom: var(--wf-space-7, 48px);
}

/* -- 1. The hello band: the studio greets you in the shape of a conversation -- */
.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
    gap: 28px;
    padding: 28px 28px 26px 32px;
    border: 1px solid var(--wf-line);
    border-radius: var(--wf-radius-xl);
    background: var(--wf-brand-wash), var(--wf-card);
    box-shadow: var(--wf-elev-1);
}
.home-hero-tools { position: absolute; top: 20px; right: 20px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.home-greet { display: flex; gap: 14px; min-width: 0; padding-top: 4px; }
.home-greet-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    border-radius: var(--wf-radius-tile);
    background: var(--conv-ask-soft);
    color: var(--conv-ask-ink);
    font-size: 19px;
}
.home-greet-body { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.home-hello {
    margin: 0 0 4px;
    padding-right: 4px;
    color: var(--theme-text-emphasis);
    font-size: var(--wf-text-display);
    font-weight: 650;
    letter-spacing: -0.022em;
    line-height: 1.12;
}
.home-bubbles { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.home-bubble {
    position: relative;
    align-self: flex-start;
    max-width: 600px;
    margin: 0;
    padding: 11px 16px;
    overflow: hidden;
    border: 1px solid var(--wf-line);
    border-radius: var(--wf-radius-lg) var(--wf-radius-lg) var(--wf-radius-lg) var(--wf-radius-xs);
    background: var(--wf-card);
    box-shadow: var(--wf-elev-1);
    color: var(--theme-text);
    font-size: 15px;
    line-height: 1.5;
}
.home-bubble b { color: var(--theme-text-emphasis); font-weight: 650; }
.home-bubble a {
    color: var(--theme-text-emphasis);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--wf-primary-ink) 45%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.home-bubble a:hover { text-decoration-color: var(--wf-primary-ink); }
.home-bubble-skel { width: 62%; height: 46px; border-radius: var(--wf-radius-lg); }
.home-bubble-skel.is-wide { width: 78%; }

/* The once-a-day typing moment: each bubble appears as typing dots for ~520ms, then its words, 120ms apart. */
.home-typing { display: none; gap: 4px; }
.home-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--theme-text-muted); animation: home-dot 900ms infinite ease-in-out; }
.home-typing i:nth-child(2) { animation-delay: 150ms; }
.home-typing i:nth-child(3) { animation-delay: 300ms; }
.home-hero.is-typing .home-bubble {
    --home-at: calc(250ms + var(--home-i, 0) * 640ms);
    animation-name: home-bubble-size, home-in;
    animation-duration: calc(var(--home-at) + 520ms), 260ms;
    animation-timing-function: steps(1, end), var(--wf-ease);
    animation-delay: 0ms, var(--home-at);
    animation-fill-mode: both, both;
}
.home-hero.is-typing .home-typing {
    position: absolute;
    top: 50%;
    left: 16px;
    display: flex;
    transform: translateY(-50%);
    animation: home-typing-life calc(var(--home-at) + 520ms) steps(1, end) both;
}
.home-hero.is-typing .home-bubble-text { animation: home-text-in 200ms ease calc(var(--home-at) + 520ms) both; }
@keyframes home-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes home-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes home-bubble-size { from { max-width: 64px; max-height: 46px; } to { max-width: 600px; max-height: 480px; } }
@keyframes home-typing-life { from { opacity: 1; } to { opacity: 0; } }
@keyframes home-text-in { from { opacity: 0; } to { opacity: 1; } }

.home-fresh { margin: 2px 0 0 2px; color: var(--theme-text-muted); font-size: 12px; }
.home-fresh .bi { margin-right: 5px; color: var(--theme-success); font-size: 8px; vertical-align: 2px; }
/* "Tell this week's story" (STORY-4, design 8.1 "Joins") - a quiet link under the freshness line into the Story. */
.home-story-link { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0 2px; font-size: 13px; font-weight: 600; color: var(--wf-primary-ink); text-decoration: none; }
.home-story-link:hover { text-decoration: underline; }
.home-hero-aside { align-self: start; min-width: 0; margin-top: 44px; }

/* -- The composer: bible 7.0 placed inline; the hero's ONE primary is its send -- */
.home-composer-wrap { margin-top: 16px; }
.home-composer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--theme-border);
    border-radius: var(--wf-radius-lg);
    background: var(--theme-background);
    box-shadow: var(--wf-elev-2);
    transition: border-color var(--wf-motion), box-shadow var(--wf-motion);
}
.home-composer:focus-within {
    border-color: var(--conv-ask);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--conv-ask) 18%, transparent), var(--wf-elev-2);
}
.home-composer textarea {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    max-height: 168px;
    padding: 12px 0;
    overflow-y: auto;
    border: 0;
    background: transparent;
    color: var(--theme-text);
    font: inherit;
    font-size: 15px;
    line-height: 1.45;
    field-sizing: content;
    resize: none;
    outline: none;
}
.home-composer textarea::placeholder { color: var(--theme-text-placeholder); }
.home-composer .conv-mic { margin-bottom: 6px; }
.home-composer .conv-mic.is-listening { background: var(--conv-ask-soft); color: var(--conv-ask-ink); }
.home-send {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    border: 0;
    border-radius: 50%;
    background: var(--conv-ask);
    box-shadow: var(--wf-elev-1);
    color: var(--theme-text-on-primary);
    font-size: 16px;
    cursor: pointer;
}
.home-send:hover:not(:disabled) { filter: brightness(1.08); }
.home-send:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 2px; }
.home-send:disabled { opacity: .6; cursor: wait; }
.home-try { margin: 8px 0 0 4px; color: var(--theme-text-muted); font-size: 12.5px; }
.home-try button { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--theme-text-secondary); font-size: 12.5px; text-align: left; cursor: pointer; }
.home-try button:hover { color: var(--wf-primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.home-starts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.home-blank {
    align-self: center;
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--theme-text-muted);
    font-size: 12.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.home-blank:hover { color: var(--wf-primary-ink); }
.home-composer-error { margin: 8px 0 0 4px; color: var(--wf-warning-ink); font-size: 12.5px; }

/* -- The field person's Next up -- */
.home-next {
    max-width: 640px;
    margin-top: 16px;
    padding: 20px;
    border: 1px solid var(--wf-line);
    border-radius: var(--wf-radius-lg);
    background: var(--wf-card);
    box-shadow: var(--wf-elev-2);
}
.home-next-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 2px 10px;
    border-radius: var(--wf-radius-pill);
    background: var(--wf-primary-soft);
    color: var(--wf-primary-ink);
    font-size: 12.5px;
    font-weight: 700;
}
.home-next-place { margin: 10px 0 2px; color: var(--theme-text-emphasis); font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.home-next-what { margin: 0; color: var(--theme-text-muted); font-size: 13px; }
.home-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; padding: 0; list-style: none; }
.home-part {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 2px 10px 2px 5px;
    border-radius: var(--wf-radius-pill);
    background: var(--wf-inset);
    color: var(--theme-text-secondary);
    font-size: 12.5px;
    font-weight: 500;
}
.home-part-n {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--wf-card);
    box-shadow: inset 0 0 0 1px var(--wf-line-strong);
    color: var(--theme-text-secondary);
    font-size: 10.5px;
    font-weight: 700;
}
.home-part.is-done { color: var(--theme-text-muted); }
.home-part.is-done .home-part-n { background: var(--wf-success-soft); box-shadow: none; color: var(--wf-success-ink); }
.home-part.is-now { background: var(--wf-primary-soft); color: var(--theme-text-emphasis); }
.home-part.is-now .home-part-n { box-shadow: inset 0 0 0 2px var(--wf-primary-ink); color: var(--wf-primary-ink); }
.home-next-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.home-next-acts .btn-lg { min-height: 44px; }
/* Next up while the day loads (never "you're clear" before we know) and when it did not load */
.home-next-skel-chip { width: 176px; height: 26px; border-radius: var(--wf-radius-pill); }
.home-next-skel-place { width: 56%; height: 22px; margin: 12px 0 8px; }
.home-next-skel-what { width: 40%; margin-bottom: 18px; }
.home-next-skel-act { width: 176px; height: 44px; }
.home-next-failed { max-width: 640px; margin-top: 16px; }

/* -- The right of the band: the rest of today / Let's get you started -- */
.home-aside-card { padding: 14px 16px 16px; }
.home-today { padding-bottom: 8px; }
.home-setup { display: flex; flex-direction: column; gap: 2px; }
.home-aside-title { margin: 0; color: var(--theme-text-emphasis); font-size: var(--wf-text-h3); font-weight: 650; }
.home-aside-sub { margin: 2px 0 0; color: var(--theme-text-muted); font-size: 12.5px; }
.home-today-rows { margin: 8px 0 0; padding: 0; list-style: none; }
.home-today-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 2px; }
.home-today-row + .home-today-row { border-top: 1px solid var(--wf-line); }
.home-today-row time { color: var(--theme-text-emphasis); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.home-today-row time .bi { color: var(--wf-primary-ink); }
.home-today-row a { color: inherit; text-decoration: none; }
.home-today-row a:hover b { color: var(--wf-primary-ink); }
.home-today-row b { display: block; color: var(--theme-text-emphasis); font-size: 13.5px; font-weight: 600; }
.home-today-row small { color: var(--theme-text-muted); font-size: 12.5px; }
.home-caughtup { display: flex; align-items: center; gap: 12px; padding: 16px 2px 8px; color: var(--theme-text-secondary); font-size: 13.5px; }
.home-setup-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.home-steps { margin: 0; padding: 0; list-style: none; }
.home-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--wf-line); }
.home-step-n {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--wf-line-strong);
    color: var(--theme-text-secondary);
    font-size: 11.5px;
    font-weight: 700;
}
.home-step.is-now .home-step-n { background: var(--theme-primary); box-shadow: none; color: var(--theme-text-on-primary); }
.home-step.is-done .home-step-n { background: var(--wf-success-soft); box-shadow: none; color: var(--wf-success-ink); }
.home-step-words b { display: block; color: var(--theme-text-emphasis); font-size: 13.5px; font-weight: 600; }
.home-step-words small { color: var(--theme-text-muted); font-size: 12px; }
.home-step.is-done .home-step-words b { color: var(--theme-text-secondary); }
.home-setup-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--wf-line); font-size: 12.5px; }
.home-setup-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--wf-primary-ink); }

/* -- Sections -- */
.home-sec { position: relative; margin-top: 40px; scroll-margin-top: 64px; }
.home-sec:not(:has(*)) { display: none; }
.home-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 14px; }
.home-sec-words { min-width: 0; }
.home-sec-title { margin: 0; color: var(--theme-text-emphasis); font-size: var(--wf-text-h2); font-weight: 650; letter-spacing: -0.012em; }
.home-sec-sub { margin: 2px 0 0; color: var(--theme-text-secondary); font-size: 13.5px; }
.home-sec-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.home-failed { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.home-failed-text { flex: 1; margin: 0; color: var(--theme-text-secondary); font-size: 13.5px; }
.home-failed.is-compact { padding: 10px 0 2px; }
.home-card-pad { padding: 18px 20px; }
.home-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.home-card-words { flex: 1; min-width: 0; }
.home-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--theme-text-emphasis); font-size: var(--wf-text-h3); font-weight: 650; }
.home-card-sub { margin: 2px 0 0; color: var(--theme-text-muted); font-size: 12.5px; }
.home-card-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.home-note-line { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: var(--theme-text-muted); font-size: 12.5px; line-height: 1.45; }
.home-note-line .bi { margin-top: 2px; color: var(--wf-primary-ink); }
.home-note-line.is-boxed { margin-top: 18px; padding: 14px 16px; border-radius: var(--wf-radius-md); background: var(--wf-inset); color: var(--theme-text-secondary); }

/* -- 2. The pulse: ONE divided card, never five boxes -- */
/* The card does NOT clip (Kirk 2026-10-11: the chart's hover label was cut off at the card's top) - the label floats out
   over the heading, and the cells whose hover fills one of the card's corners round that corner themselves (per layout:
   here, then 1180 and 640 below). Always the hero + four cells. */
.home-pulse { --home-pulse-r: calc(var(--wf-radius-md) - 1px); display: grid; grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); }
.home-pulse.card { overflow: visible; }
.home-pulse > .home-kpi.is-hero .home-kpi-main { border-radius: var(--home-pulse-r) 0 0 var(--home-pulse-r); }
.home-pulse > a.home-kpi:last-child { border-radius: 0 var(--home-pulse-r) var(--home-pulse-r) 0; }
.home-kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 18px 20px;
    border-left: 1px solid var(--wf-line);
    color: inherit;
    text-decoration: none;
    transition: background var(--wf-motion);
}
.home-kpi:first-child { border-left: 0; }
a.home-kpi:hover, .home-kpi-main:hover { background: var(--wf-card-hover); text-decoration: none; }
a.home-kpi:focus-visible, .home-kpi-main:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: -2px; }
.home-kpi.is-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 0 12px; padding: 0; }
.home-kpi-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 18px 4px 18px 20px; color: inherit; text-decoration: none; }
.home-kpi-chart { min-width: 90px; max-width: 520px; padding: 18px 20px 20px 0; justify-self: stretch; }
.home-kpi-label { display: flex; align-items: center; gap: 7px; color: var(--theme-text-secondary); font-size: 13px; font-weight: 600; }
.home-kpi-label .bi { color: var(--wf-primary-ink); }
.home-kpi-value {
    margin-top: 4px;
    color: var(--theme-text-emphasis);
    font-size: var(--wf-figure-md);
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.home-kpi.is-hero .home-kpi-value { font-size: var(--wf-figure); }
.home-kpi-sub { color: var(--theme-text-muted); font-size: 12.5px; }
.home-kpi-meter { margin-top: 8px; }

/* -- 3. Launch codes: the break-out panel + the small multiples -- */
.home-pick-wrap { position: relative; }
.home-launch { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 16px; }
.home-feature { min-width: 0; padding: 20px 20px 16px; }
.home-feature-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.home-feature-words { flex: 1; min-width: 0; }
.home-feature-toggle { flex: none; }
.home-feature-name { margin: 0; color: var(--theme-text-emphasis); font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.home-feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 4px; color: var(--theme-text-muted); font-size: 12.5px; }
.home-feature-meta .bi { margin-right: 4px; }
.home-feature-meta b { color: var(--theme-text-secondary); }
.home-live { display: inline-flex; align-items: center; gap: 6px; color: var(--wf-success-ink); font-size: 12px; font-weight: 600; }
.home-live::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--theme-success); animation: home-breathe 2.4s ease-in-out infinite; }
.home-live.is-dot { gap: 0; }
@keyframes home-breathe { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--theme-success) 50%, transparent); } 50% { box-shadow: 0 0 0 4px transparent; } }
.home-figures { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; margin-top: 16px; }
.home-big { color: var(--theme-text-emphasis); font-size: var(--wf-figure); font-weight: 650; letter-spacing: -0.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.home-big.is-muted { color: var(--theme-text-muted); }
.home-big-label { color: var(--theme-text-secondary); font-size: 13px; }
.home-feature-chart { margin-top: 26px; }
.home-feature-chart .wf-cols { gap: 3px; }
.home-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; color: var(--theme-text-secondary); font-size: 12.5px; list-style: none; }
.home-facts li { display: inline-flex; align-items: center; gap: 6px; }
.home-facts .bi { color: var(--wf-primary-ink); }
.home-funnel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--wf-line);
    color: var(--theme-text-muted);
    font-size: 12.5px;
}
.home-funnel b { color: var(--theme-text-emphasis); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.home-funnel .bi-arrow-right { opacity: .6; font-size: 11px; }
.home-funnel-pct { color: var(--theme-text-secondary); font-weight: 600; }
.home-funnel-note { color: var(--theme-text-secondary); font-style: italic; }
.home-feature-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.home-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 12.5px; }
.home-table th { padding: 6px 8px; border-bottom: 1px solid var(--wf-line); color: var(--theme-text-muted); font-weight: 600; text-align: left; }
.home-table td { padding: 6px 8px; border-bottom: 1px solid var(--wf-line); color: var(--theme-text); font-variant-numeric: tabular-nums; }
.home-table .is-num { text-align: right; }

.home-codes { display: flex; flex-direction: column; min-width: 0; padding: 8px; }
.home-codes-head { padding: 8px 10px; }
.home-codes-head h3 { margin: 0; color: var(--theme-text-emphasis); font-size: 13.5px; font-weight: 650; }
.home-code-rows { margin: 0; padding: 0; list-style: none; }
.home-code {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    padding: 8px 10px 8px 6px;
    border-radius: var(--wf-radius-md);
    transition: background var(--wf-motion);
}
.home-code:hover { background: var(--wf-card-hover); }
.home-code.is-current { background: var(--wf-primary-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wf-primary-ink) 28%, transparent); }
.home-code-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px 72px;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.home-code-main:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 4px; border-radius: var(--wf-radius-xs); }
.home-code-words { min-width: 0; }
.home-code-name { display: block; overflow: hidden; color: var(--theme-text-emphasis); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.home-code-sub { display: flex; align-items: center; gap: 6px; overflow: hidden; color: var(--theme-text-muted); font-size: 12px; white-space: nowrap; }
.home-code-sub .wf-status-pill { height: 18px; font-size: 10.5px; }
.home-code-spark .wf-cols { gap: 1px; }
.home-code-num { text-align: right; }
.home-code-num b { display: block; color: var(--theme-text-emphasis); font-weight: 650; font-variant-numeric: tabular-nums; }
.home-code-num .wf-delta { font-size: 11.5px; }
.home-code-uncounted { color: var(--theme-text-muted); font-size: 11px; line-height: 1.25; }
.home-star { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--wf-radius-xs); background: transparent; color: var(--theme-text-placeholder); cursor: pointer; }
.home-star:hover { background: var(--wf-card); color: var(--theme-text-secondary); }
.home-star[aria-pressed="true"] { color: var(--wf-primary-ink); }
.home-star:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 1px; }
.home-all-ic { display: grid; place-items: center; width: 28px; height: 28px; color: var(--wf-primary-ink); }
.home-codes-foot { margin-top: auto; padding: 8px 10px 4px; }

/* -- Choose codes (the popover) -- */
.home-pop-scrim { position: fixed; inset: 0; z-index: 40; padding: 0; border: 0; background: transparent; cursor: default; }
.home-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 41;
    width: min(340px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid var(--wf-line);
    border-radius: var(--wf-radius-lg);
    background: var(--wf-card);
    box-shadow: var(--wf-elev-3);
}
.home-pop-search { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 0 6px; padding: 0 10px; border: 1px solid var(--wf-line-strong); border-radius: var(--wf-radius-sm); background: var(--wf-inset); color: var(--theme-text-muted); }
.home-pop-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--theme-text); font: inherit; outline: none; }
.home-pop-list { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; }
.home-pop-empty { margin: 0; padding: 12px 8px; color: var(--theme-text-muted); font-size: 12.5px; }
.home-pop-item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; margin: 0; padding: 8px; border-radius: var(--wf-radius-sm); cursor: pointer; }
.home-pop-item:hover { background: var(--wf-card-hover); }
.home-pop-item input { width: 16px; height: 16px; accent-color: var(--theme-primary); }
.home-pop-words b { display: block; color: var(--theme-text-emphasis); font-size: 13px; font-weight: 600; }
.home-pop-words small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--theme-text-muted); font-size: 12px; }
.home-pop-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 4px 2px; border-top: 1px solid var(--wf-line); color: var(--theme-text-muted); font-size: 12px; }
.home-pop-foot .btn { margin-left: auto; }

/* -- 4. Your conversations: a shelf of phones, the way people see them -- */
.home-shelf {
    display: grid;
    grid-auto-columns: 232px;
    grid-auto-flow: column;
    gap: 20px;
    margin: -4px -4px 0;
    padding: 4px 4px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.home-convo { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-snap-align: start; }
.home-phone { position: relative; height: 316px; }
.home-phone-skel { height: 316px; border-radius: 30px; }
.home-phone-link { display: block; height: 100%; color: inherit; text-decoration: none; border-radius: 30px; }
.home-phone-link:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 3px; }
/* The phone IS the runner RCL's RunnerPhoneFrame (its .phone-frame rules live in runner-panel.css); the home sizes it
   to a shelf card and dresses its bezel in the theme (a picture of a device keeps the device's shape). */
.home-phone .phone-frame {
    width: 100%;
    height: 100%;
    padding: 0 7px;
    border-radius: 30px;
    background: color-mix(in srgb, var(--wf-card), var(--theme-text) 6%);
    box-shadow: 0 0 0 1px var(--wf-line-strong), var(--wf-elev-1);
    transition: box-shadow var(--wf-motion-panel), transform var(--wf-motion-panel);
}
.home-phone .phone-notch { height: 18px; background: transparent; }
.home-phone .phone-notch-pill { top: 8px; width: 54px; height: 6px; border-radius: 6px; background: var(--wf-inset); }
.home-phone .phone-screen { border-radius: 23px 23px 18px 18px; }
.home-phone .phone-home-bar { height: 16px; background: transparent; }
.home-phone .phone-home-bar::after { width: 70px; height: 4px; background: var(--wf-line-strong); }
.home-convo:hover .home-phone .phone-frame,
.home-phone-link:focus-visible .phone-frame { box-shadow: 0 0 0 1px var(--wf-line-strong), var(--wf-elev-2); transform: translateY(-2px); }
.home-phone-acts {
    position: absolute;
    right: 16px;
    bottom: 26px;
    left: 16px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--wf-motion), transform var(--wf-motion);
    pointer-events: none;
}
.home-phone-acts .btn { flex: 1; justify-content: center; background: var(--wf-card); box-shadow: var(--wf-elev-2); }
.home-convo:hover .home-phone-acts,
.home-phone:focus-within .home-phone-acts { opacity: 1; transform: none; pointer-events: auto; }
.home-convo-meta { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.home-convo-name { display: flex; align-items: center; gap: 8px; color: var(--theme-text-emphasis); font-size: 14px; font-weight: 650; }
.home-convo-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-convo-line { color: var(--theme-text-muted); font-size: 12.5px; }
.home-phone-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0 22px;
    border: 1.5px dashed var(--wf-line-strong);
    border-radius: 30px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--wf-motion), background var(--wf-motion);
}
.home-phone-new:hover { border-color: var(--conv-ask); background: color-mix(in srgb, var(--conv-ask-soft) 50%, transparent); }
.home-phone-new:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 3px; }
.home-phone-new b { color: var(--theme-text-emphasis); font-size: 14px; }
.home-phone-new small { color: var(--theme-text-muted); font-size: 12.5px; }

/* The moment strip: one 6px segment per spine moment, its family's hue (these ARE moments), and the counts with glyphs. */
.home-strip-wrap { display: flex; flex-direction: column; gap: 6px; }
.home-strip { display: flex; gap: 2px; height: 6px; }
.home-strip-seg { flex: 1; border-radius: 2px; background: var(--wf-line-strong); }
.home-strip-seg.is-ask { background: var(--conv-ask); }
.home-strip-seg.is-say { background: var(--conv-say); }
.home-strip-seg.is-act { background: var(--conv-act); }
.home-strip-seg.is-flow { background: var(--conv-flow); }
.home-famc { display: flex; flex-wrap: wrap; gap: 10px; color: var(--theme-text-secondary); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-famc-item { display: inline-flex; align-items: center; gap: 4px; }
.home-famc-item.is-ask { color: var(--conv-ask-ink); }
.home-famc-item.is-say { color: var(--conv-say-ink); }
.home-famc-item.is-act { color: var(--conv-act-ink); }
.home-famc-item.is-flow { color: var(--conv-flow-ink); }

.home-answering { overflow: hidden; }
.home-answering-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 110px minmax(120px, 1fr) auto; gap: 16px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--wf-line); }
.home-answering-row:first-child { border-top: 0; }
.home-answering-skel { grid-column: 1 / -1; height: 20px; }
.home-answering-name b { color: var(--theme-text-emphasis); font-weight: 600; }
.home-answering-num { color: var(--theme-text-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.home-answering-meter { display: grid; gap: 4px; }
.home-answering-meter small { color: var(--theme-text-muted); font-size: 12px; }

/* -- 5. Latest answers | Where people stop | Where people talk -- */
.home-insights { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.home-feed { position: relative; }
.home-feed-skel { height: 52px; margin-top: 8px; }
.home-feed-rows { margin: 0; padding: 0; list-style: none; }
.home-feed-rows > li.is-new { animation: home-new 1.6s var(--wf-ease) both; border-radius: var(--wf-radius-md); }
@keyframes home-new { from { opacity: 0; transform: translateY(-4px); background: var(--wf-primary-soft); } 30% { opacity: 1; transform: none; } to { background: transparent; } }
.home-feed-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0 -10px;
    padding: 9px 10px;
    border-radius: var(--wf-radius-md);
    color: inherit;
    text-decoration: none;
    transition: background var(--wf-motion);
}
.home-feed-row:hover { background: var(--wf-card-hover); text-decoration: none; }
.home-feed-row:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: -2px; }
.home-feed-av { position: relative; }
.home-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wf-primary-soft);
    color: var(--wf-primary-ink);
    font-size: 12.5px;
    font-weight: 700;
}
.home-feed-chan {
    position: absolute;
    right: -3px;
    bottom: -3px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border: 2px solid var(--wf-card);
    border-radius: 50%;
    background: var(--wf-inset);
    color: var(--theme-text-secondary);
    font-size: 9px;
}
.home-feed-main { min-width: 0; }
.home-feed-who { display: block; color: var(--theme-text); font-size: 13.5px; line-height: 1.35; }
.home-feed-who b { color: var(--theme-text-emphasis); font-weight: 650; }
.home-heads { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.home-head { max-width: 100%; overflow: hidden; padding: 1px 8px; border-radius: var(--wf-radius-pill); background: var(--wf-inset); color: var(--theme-text); font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.home-head em { color: var(--theme-text-muted); font-style: normal; }
.home-feed-side { display: flex; align-items: center; gap: 10px; color: var(--theme-text-muted); font-size: 12px; white-space: nowrap; }
.home-thumb { width: 40px; height: 40px; border-radius: var(--wf-radius-tile); background: var(--wf-inset); object-fit: cover; }
.home-newpill {
    position: absolute;
    top: 58px;
    left: 50%;
    z-index: 3;
    min-height: 26px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--wf-radius-pill);
    background: var(--theme-primary);
    box-shadow: var(--wf-elev-2);
    color: var(--theme-text-on-primary);
    font-size: 12px;
    font-weight: 600;
    transform: translateX(-50%);
    cursor: pointer;
}
.home-stops-card { min-width: 0; }
.home-stops-chart { margin-top: 22px; }
.home-stops-chart .wf-cols { gap: 4px; }
.home-stops-say { margin: 12px 0 0; color: var(--theme-text-secondary); font-size: 13px; }
.home-stops-say b { color: var(--theme-text-emphasis); }
.home-stops-foot { margin-top: 10px; }

/* -- 6. Out with people -- */
/* What RCS put in carts (HomeCarts) - the pulse's divided card, five tiles: the 7 days at size, the 30 under them. */
.home-carts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.home-carts .home-kpi-value { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-carts-month b { color: var(--theme-text-secondary); font-weight: 600; }
.home-carts-bis { display: flex; align-items: baseline; gap: 6px; margin: 8px 4px 0; }
.home-carts-bis .bi { color: var(--theme-text-secondary); }
/* What we learned (HomeWhatWeLearned - SIG-4): per goal its name, then "What we learned" and "What they did", each a strip of
   tiles in the pulse's divided look - the 7 days at size, the 30 under them; a dash in muted ink when a count was not read. */
.home-learned { display: flex; flex-direction: column; }
.home-learned-goal { padding: 14px 0 16px; }
.home-learned-goal + .home-learned-goal { border-top: 1px solid var(--wf-line); }
.home-learned-name { margin: 0 20px 6px; color: var(--theme-text-emphasis); font-size: var(--wf-text-h3); font-weight: 650; overflow-wrap: anywhere; }
.home-learned-family { margin-top: 8px; }
.home-learned-family-title { display: flex; align-items: center; gap: 7px; margin: 0 20px 6px; color: var(--theme-text-secondary); font-size: 12.5px; font-weight: 600; }
.home-learned-family-title .bi { color: var(--wf-primary-ink); }
.home-learned-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 20px; border: 1px solid var(--wf-line); border-radius: var(--wf-radius-tile); }
.home-learned-tiles .home-kpi { min-width: 0; }
.home-learned-tiles .home-kpi-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; }
.home-learned-tiles .home-kpi-value { font-variant-numeric: tabular-nums; }
.home-learned .home-kpi-value.is-muted { color: var(--theme-text-muted); }
.home-jobs { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.home-jobs-bar { min-width: 0; }
.home-jobs-legend { margin-top: 12px; }
.home-jobs-legend a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.home-jobs-legend a:hover { color: var(--wf-primary-ink); }
.home-jobs-out { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0; color: var(--theme-text-muted); font-size: 13.5px; }
.home-jobs-out b { color: var(--theme-text-emphasis); }

/* -- 7. Your shelf: pins + live widgets -- */
.home-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.home-pin,
.home-wide-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--wf-line);
    border-radius: var(--wf-radius-md);
    background: var(--wf-card);
    box-shadow: var(--wf-elev-1);
    color: inherit;
    text-decoration: none;
    transition: box-shadow var(--wf-motion), border-color var(--wf-motion);
}
.home-pin:hover,
.home-wide-row:hover { border-color: var(--wf-line-strong); box-shadow: var(--wf-elev-2); text-decoration: none; }
.home-pin:focus-visible,
.home-wide-row:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 2px; }
.home-pin.is-add { border-style: dashed; background: transparent; box-shadow: none; color: var(--theme-text-secondary); }
.home-pin-words { min-width: 0; }
.home-pin-words b { display: block; overflow: hidden; color: var(--theme-text-emphasis); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.home-pin-words small { color: var(--theme-text-muted); font-size: 12px; }
.home-pin.is-add .home-pin-words b { color: var(--theme-text-secondary); }
.home-wide-row { margin-top: 12px; padding: 14px 18px; }
.home-wide-go { margin-left: auto; color: var(--theme-text-muted); }
.home-widget { margin-top: 12px; padding: 18px 20px; }
.home-widget-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--wf-radius-pill);
    background: var(--wf-neutral-soft);
    color: var(--theme-text-secondary);
    font-size: 11.5px;
    font-weight: 600;
}

/* -- The field person's sections -- */
.home-starts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.home-start {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 16px;
    border: 1px solid var(--wf-line);
    border-radius: var(--wf-radius-md);
    background: var(--wf-card);
    box-shadow: var(--wf-elev-1);
    color: inherit;
    text-decoration: none;
    transition: box-shadow var(--wf-motion), transform var(--wf-motion);
}
.home-start:hover { box-shadow: var(--wf-elev-2); text-decoration: none; transform: translateY(-1px); }
.home-start:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 2px; }
.home-start-words b { display: block; color: var(--theme-text-emphasis); font-size: 14px; font-weight: 650; }
.home-start-words small { color: var(--theme-text-muted); font-size: 12.5px; }
.home-week { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-week-cell { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-left: 1px solid var(--wf-line); }
.home-week-cell:first-child { border-left: 0; }

/* -- A brand-new workspace: the four families -- */
.home-fams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-fam { position: relative; display: flex; flex-direction: row; gap: 12px; padding: 14px 14px 14px 18px; overflow: hidden; }
.home-fam::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--wf-line-strong); }
.home-fam.is-ask::before { background: var(--conv-ask); }
.home-fam.is-say::before { background: var(--conv-say); }
.home-fam.is-act::before { background: var(--conv-act); }
.home-fam.is-flow::before { background: var(--conv-flow); }
.home-fam-words b { display: block; color: var(--theme-text-emphasis); font-size: 14px; font-weight: 650; }
.home-fam-words span { display: block; margin-top: 2px; color: var(--theme-text-secondary); font-size: 12.5px; line-height: 1.45; }
.home-fam-words em { display: block; margin-top: 6px; color: var(--theme-text-muted); font-size: 12px; font-style: normal; }

/* -- Arrange: move and hide sections; saved on this device -- */
.home-arrange-btn[aria-pressed="true"] { border-color: var(--wf-primary-ink); background: var(--wf-primary-soft); }
.home.is-arranging .home-sec {
    margin-inline: -12px;
    padding: 18px 12px 12px;
    border: 1.5px dashed var(--wf-line-strong);
    border-radius: var(--wf-radius-lg);
}
.home-arrange-tools {
    position: absolute;
    top: -16px;
    right: 16px;
    z-index: 5;
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--wf-line);
    border-radius: var(--wf-radius-pill);
    background: var(--wf-card);
    box-shadow: var(--wf-elev-2);
}
.home-arrange-tools button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 28px;
    border: 0;
    border-radius: var(--wf-radius-pill);
    background: transparent;
    color: var(--theme-text-secondary);
    cursor: pointer;
}
.home-arrange-tools button:hover:not(:disabled) { background: var(--wf-primary-soft); color: var(--wf-primary-ink); }
.home-arrange-tools button:disabled { opacity: .35; cursor: default; }
.home-arrange-tools button:focus-visible { outline: 2px solid var(--wf-primary-ink); outline-offset: 1px; }
.home-arrange-bar {
    position: sticky;
    bottom: 16px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin: 24px auto 0;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--wf-line);
    border-radius: var(--wf-radius-pill);
    background: var(--wf-card);
    box-shadow: var(--wf-elev-3);
    color: var(--theme-text-secondary);
    font-size: 13px;
}
.home-arrange-text { flex: 1 1 auto; }

/* -- The toast: what happened, briefly -- */
.home-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border-radius: var(--wf-radius-pill);
    background: var(--theme-text-emphasis);
    box-shadow: var(--wf-elev-3);
    color: var(--theme-background);
    font-size: 13px;
    transform: translateX(-50%);
    animation: home-toast-in 220ms var(--wf-ease) both;
}
.home-toast .bi { color: color-mix(in srgb, var(--theme-success) 60%, var(--theme-background)); }
@keyframes home-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* -- Container responsiveness: the home's own width decides, not the window -- */
@container home (max-width: 1180px) {
    .home-insights { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .home-insights > :first-child { grid-column: 1 / -1; }
    .home-pulse { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-pulse .home-kpi.is-hero { grid-column: 1 / -1; border-bottom: 1px solid var(--wf-line); }
    .home-pulse .home-kpi:nth-child(2) { border-left: 0; }
    .home-pulse > .home-kpi.is-hero .home-kpi-main { border-radius: var(--home-pulse-r) 0 0 0; }
    .home-pulse > a.home-kpi:nth-child(2) { border-radius: 0 0 0 var(--home-pulse-r); }
    .home-pulse > a.home-kpi:last-child { border-radius: 0 0 var(--home-pulse-r) 0; }
    .home-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container home (max-width: 980px) {
    .home-hero { grid-template-columns: minmax(0, 1fr); }
    .home-hello { padding-right: 280px; }
    .home-hero-aside { margin-top: 0; }
    .home-launch { grid-template-columns: minmax(0, 1fr); }
    .home-jobs { grid-template-columns: minmax(0, 1fr); }
    .home-jobs-out { justify-content: flex-start; }
}
@container home (max-width: 640px) {
    .home-hero { gap: 18px; padding: 18px 16px; border-radius: var(--wf-radius-lg); }
    .home-hero-tools { position: static; order: -1; justify-content: space-between; }
    .home-hello { padding-right: 0; font-size: 1.75rem; }
    .home-greet-mark { display: none; }
    .home-bubble { font-size: 14px; }
    .home-composer { padding-left: 14px; }
    .home-composer textarea { min-height: 40px; padding: 9px 0; }
    .home-try button { display: block; margin: 4px 0 0; }
    .home-starts { flex-wrap: nowrap; margin-right: -16px; padding-right: 16px; overflow-x: auto; scrollbar-width: none; }
    .home-starts > * { flex: none; }
    .home-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-carts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-carts .home-kpi { padding: 14px 16px; border-top: 1px solid var(--wf-line); }
    .home-carts .home-kpi:nth-child(-n+2) { border-top: 0; }
    .home-carts .home-kpi:nth-child(odd) { border-left: 0; }
    .home-learned-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 16px; }
    .home-learned-tiles .home-kpi { padding: 14px 16px; border-top: 1px solid var(--wf-line); }
    .home-learned-tiles .home-kpi:nth-child(-n+2) { border-top: 0; }
    .home-learned-tiles .home-kpi:nth-child(odd) { border-left: 0; }
    .home-learned-name,
    .home-learned-family-title { margin-left: 16px; margin-right: 16px; }
    .home-pulse .home-kpi { padding: 14px 16px; border-top: 1px solid var(--wf-line); border-left: 0; }
    .home-pulse .home-kpi.is-hero { padding: 0; border-top: 0; }
    .home-pulse .home-kpi:nth-child(2),
    .home-pulse .home-kpi:nth-child(3) { border-top: 0; }
    .home-pulse .home-kpi:nth-child(odd):not(.is-hero) { border-left: 1px solid var(--wf-line); }
    .home-kpi-main { padding: 14px 16px 6px; }
    .home-pulse .home-kpi.is-hero { grid-template-columns: minmax(0, 1fr); grid-column: 1 / -1; }
    .home-pulse > .home-kpi.is-hero .home-kpi-main { border-radius: var(--home-pulse-r) var(--home-pulse-r) 0 0; }
    .home-pulse > a.home-kpi:nth-child(2) { border-radius: 0; }
    .home-pulse > a.home-kpi:nth-last-child(2) { border-radius: 0 0 0 var(--home-pulse-r); }
    .home-pulse > a.home-kpi:last-child { border-radius: 0 0 var(--home-pulse-r) 0; }
    .home-kpi-chart { max-width: none; padding: 0 16px 14px; }
    .home-feature { padding: 16px; }
    .home-feature-chart .wf-cols { gap: 2px; }
    .home-code-main { grid-template-columns: minmax(0, 1fr) 64px 64px; }
    .home-insights { grid-template-columns: minmax(0, 1fr); }
    .home-shelf { grid-auto-columns: 74%; margin-right: -16px; padding-right: 16px; }
    .home-week { grid-template-columns: minmax(0, 1fr); }
    .home-week-cell { border-top: 1px solid var(--wf-line); border-left: 0; }
    .home-week-cell:first-child { border-top: 0; }
    .home-fams { grid-template-columns: minmax(0, 1fr); }
    .home-answering-row { grid-template-columns: minmax(0, 1fr) auto; }
    .home-answering-num,
    .home-answering-meter { display: none; }
    .home-sec { margin-top: 32px; }
    .home-sec-tools { width: 100%; margin-left: 0; }
    .home-next { padding: 16px; }
    .home-next-acts .btn-lg { flex: 1; justify-content: center; }
    .home-arrange-bar { border-radius: var(--wf-radius-lg); }
}

/* Touch: 44px targets and 16px inputs (iOS zooms a smaller input and never zooms back). */
@media (pointer: coarse) {
    .home-composer textarea,
    .home-pop-search input { font-size: 16px; }
    .home-star,
    .home-all-ic { width: 44px; height: 44px; }
    .home-code { grid-template-columns: 44px minmax(0, 1fr); }
    .home .wf-seg > button { min-height: 40px; }
    .home .btn-sm,
    .home-arrange-tools button { min-height: 44px; }
    .home-arrange-tools button { width: 44px; }
    .home-phone-acts { opacity: 1; transform: none; pointer-events: auto; }
}

/* Reduced motion: everything appears at once. */
@media (prefers-reduced-motion: reduce) {
    .home-hero.is-typing .home-bubble,
    .home-hero.is-typing .home-bubble-text,
    .home-feed-rows > li.is-new,
    .home-toast,
    .home-live::before { animation: none; }
    .home-hero.is-typing .home-typing { display: none; }
    .home-convo:hover .home-phone .phone-frame,
    .home-start:hover { transform: none; }
}
