.application:has(.report-preparation) .utility-footer { display:none; }
#product:has(> .report-preparation) { width:100%; max-width:none; padding:0 0 52px; }
.report-preparation { width:100%; max-width:none; overflow-anchor:none; }
.stat-brand { border-bottom:1px solid var(--edge); }
.stat-brand > div { width:min(672px,calc(100% - 32px)); min-height:56px; display:flex; align-items:center; margin-inline:auto; }
.stat-top { border-bottom:1px solid var(--edge); background:var(--paper); }
.report-preparation .stat-top { position:sticky; top:0; z-index:5; }
.stat-top > div,.stat-body,.stat-writing { width:min(672px, calc(100% - 40px)); margin-inline:auto; }
.stat-top > div { display:flex; align-items:center; gap:16px; min-height:56px; }
.stat-top span { color:var(--muted); font-size:14px; white-space:nowrap; }
.stat-back { display:grid; place-items:center; width:28px; height:44px; padding:0; border:0; background:transparent; color:var(--muted); }
.stat-back svg { width:22px; height:22px; transform:rotate(180deg); }
.stat-top progress { flex:1; width:0; border:0; height:12px; appearance:none; border-radius:8px; background:var(--edge); color:var(--prune); }
.stat-top progress::-webkit-progress-bar { background:var(--edge); border-radius:inherit; }
.stat-top progress::-webkit-progress-value { border-radius:inherit; background:var(--prune); box-shadow:inset 0 2px 0 #ffffff40; }
.stat-top progress::-moz-progress-bar { background:var(--prune); border-radius:inherit; }
.stat-body { padding-top:52px; }
.stat-body > .stat-heading,.stat-overview > h2 { color:var(--ink); font:700 clamp(23px,4.3vw,26px)/1.15 var(--display); letter-spacing:-.032em; }
.stat-body > .stat-heading:focus { outline:0; }
.stat-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:24px; }
.stat-actions .primary,.follow-navigation .primary { min-height:48px; border:0; border-radius:8px; padding-inline:24px; background:var(--prune); color:var(--surface); box-shadow:0 4px 0 var(--pressed); }
.stat-actions .primary:disabled,.follow-navigation .primary:disabled { opacity:.55; box-shadow:none; }
.report-preparation .stat-screen { padding: 0; border: 0; border-radius: 0; background: none; }
.stat-body > .stat-heading { margin: 0 0 25px; scroll-margin-top: 84px; }
.stat-body > .stat-note { margin-block: -6px 18px; }
.stat-note, .stat-detail { color: var(--muted); font-size: .88rem; }
.stat-detail { margin-top: 9px; }
.stat-tile {
  min-width: 0;
  padding: 20px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
}
.stat-tile h3 { margin: 0 0 17px; font-size: 1.04rem; font-weight: 700; letter-spacing: -.015em; }
.stat-lilac { background:color-mix(in srgb,var(--lilac) 68%,#bea0d6); }
.stat-peach { background:color-mix(in srgb,var(--paper) 42%,#e8b38d); }
.stat-mint { background:color-mix(in srgb,var(--paper) 38%,#a6d4bd); }
.stat-rose { background:color-mix(in srgb,var(--lilac) 40%,#edadb9); }
.stat-gold { background:color-mix(in srgb,var(--paper) 42%,#eada8e); }
.stat-chat { background:color-mix(in srgb,var(--paper) 57%,var(--edge)); }
.stat-chat:has(.message-quote[data-platform="imessage"]) { background:color-mix(in srgb,var(--lilac) 46%,var(--surface)); }
.stat-chat .message-platform { display: none; }
.stat-chat .message-quote figcaption:not(:has([data-ref])) { display: none; }
.stat-chat .message-quote + .message-quote { margin-top: 9px; }
.stat-columns, .stat-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 124px), 1fr)); gap: 13px; }
.stat-person { color: var(--muted); font-size: .85rem; font-weight: 600; overflow-wrap: anywhere; }
.stat-number { margin-top: 2px; line-height: 1.35; }
.stat-number strong { font: 750 clamp(1.75rem, 5vw, 2.45rem)/1.08 var(--ui); font-variant-numeric: lining-nums tabular-nums; }
.stat-words { display: grid; gap: 5px; margin-top: 6px; padding: 0; list-style: none; }
.stat-words li { display: flex; justify-content: space-between; gap: 5px; overflow-wrap: anywhere; }
.stat-words small { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }

.stat-calendar {
  --day-empty:var(--pressed);
  --day-edge:#624a67;
  --day-low:#be92da;
  --day-mid:#d5a9e8;
  --day-high:#edd0ee;
  --day-peak:#fff4df;
  --day-gap:clamp(1px,.35vw,3px);
  --month-width:clamp(32px,8vw,46px);
  color:var(--surface);
  border-color:transparent;
  background:var(--day-empty);
}
.stat-calendar .stat-note,.stat-calendar .stat-detail,.stat-calendar abbr { color:var(--lilac); }
.stat-calendar h3 { color:var(--surface); }
.stat-year { display:block; }
.stat-year + .stat-year { margin-top:clamp(16px,4vw,28px); }
.stat-year-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:0 0 8px; }
.stat-year h4 { flex:none; margin:0; color:var(--lilac); font:650 .875rem/1.2 var(--ui); }
.stat-day-reading { font-size:.76rem; line-height:1.2; color:var(--surface); text-align:end; }
.stat-year-grid { padding:3px; margin:-3px; }
.stat-day-axis,.stat-month {
  display:grid; align-items:center;
  grid-template-columns:var(--month-width) repeat(31,minmax(0,1fr)); gap:var(--day-gap);
}
.stat-day-axis {
  margin-bottom:5px; color:var(--lilac); font:550 .63rem/1.2 var(--ui);
  font-variant-numeric:tabular-nums; text-align:center;
}
.stat-day-axis span { justify-self:center; }
.stat-day-axis span:last-child { justify-self:end; }
.stat-month { margin-bottom:var(--day-gap); }
.stat-month abbr { font:600 clamp(.61rem,1.75vw,.73rem)/1.1 var(--ui); text-decoration:none; }
.stat-calendar [data-level] { background:var(--day-empty); border:1px solid var(--day-edge); border-radius:2px; }
.stat-calendar [data-level="1"] { background:var(--day-low); border-color:transparent; }
.stat-calendar [data-level="2"] { background:var(--day-mid); border-color:transparent; }
.stat-calendar [data-level="3"] { background:var(--day-high); border-color:transparent; }
.stat-calendar [data-level="4"] { background:var(--day-peak); border-color:transparent; }
.stat-month button {
  appearance:none; display:block; width:100%; aspect-ratio:1; min-width:0; min-height:0;
  margin:0; padding:0; cursor:pointer;
}
.stat-month button:is([data-picked],:focus-visible) {
  outline:2px solid var(--surface); outline-offset:1px; position:relative; z-index:1;
}
@media(hover:hover) { .stat-month button:hover { outline:1px solid var(--surface); outline-offset:1px; } }
.stat-year-select { display:block; margin-bottom:14px; color:var(--surface); }
.stat-year-select select { margin-inline-start:6px; background:var(--surface); color:var(--ink); }
.stat-legend { display:flex; align-items:center; flex-wrap:wrap; gap:6px 16px; margin:0 0 16px; color:var(--lilac); font:500 .76rem/1.4 var(--ui); }
.stat-key,.stat-ramp { display:inline-flex; align-items:center; gap:6px; }
.stat-ramp { gap:2px; }
.stat-legend i { display:inline-block; width:10px; height:10px; }
@media(forced-colors:active) {
  .stat-calendar [data-level] { forced-color-adjust:none; background:Canvas; border-color:GrayText; }
  .stat-calendar [data-level]:not([data-level="0"]) { background:CanvasText; border-color:CanvasText; }
  .stat-month button:is([data-picked],:focus-visible) { outline-color:Highlight; }
}
.stat-accessible-days summary { padding-block: 7px; color: var(--prune); cursor: pointer; font-size: .875rem; }
.stat-accessible-days ul { max-height: 12rem; overflow: auto; margin: 0 0 12px; padding-inline-start: 24px; font-size: .83rem; }
.stat-year-gap { color: var(--lilac); font-size: .84rem; margin-block: 10px; }
.stat-message-detail { margin-top: 10px; color: var(--muted); }
.stat-message-detail summary { cursor: pointer; }
.stat-message-more { color: var(--prune); font-weight: 650; }
.stat-writing { color: var(--muted); font-size: .85rem; margin-top: 18px; }
.stat-writing:empty, .stat-writing[data-state="ready"] { position:absolute; width:1px; height:1px; margin:0; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.stat-writing[data-state="error"] { color: var(--error); }
.report-preparation[data-ready] .stat-top { position:static; border-bottom:0; }
.report-preparation :is(.stat-top > div,.stat-ready-intro,.stat-ready-secondary,.stat-body) {
  width:min(672px,calc(100% - 32px)); margin-inline:auto;
}
.report-preparation[data-ready] .stat-top > div { min-height:72px; }
.report-preparation[data-ready] .stat-top progress { height:8px; }
.report-preparation[data-ready] .stat-back {
  width:36px; height:36px; border:1px solid var(--edge); border-radius:50%;
}
.stat-ready-intro {
  display:grid; grid-template-columns:minmax(0,1.76fr) minmax(0,1fr); align-items:center;
  gap:clamp(4px,2vw,18px); padding-block:10px 20px;
}
.stat-ready-intro h2 { font:700 clamp(33px,9.85vw,63px)/1.04 var(--display); letter-spacing:-.047em; text-wrap:initial; }
.stat-ready-intro .stat-ready-mascot { justify-self:end; width:min(41vw,204px); max-width:none; height:clamp(180px,60vw,248px); object-fit:contain; }
.stat-ready-primary { position:sticky; inset-block-start:0; z-index:4; padding:7px 16px 9px; background:var(--paper); }
.stat-ready-primary .button { display:flex; width:min(100%,672px); margin-inline:auto; min-height:54px; }
.stat-ready-secondary { display:flex; justify-content:center; }
.stat-ready-secondary .text-button {
  min-height:46px; border:0; background:none; color:var(--prune); text-decoration:none; font-weight:700;
}
.stat-ready-secondary .text-button:hover { text-decoration:underline; }
.report-preparation .stat-body { padding-top:clamp(40px,7vw,54px); }
.report-preparation .stat-body > .stat-heading {
  margin-bottom:clamp(16px,3vw,24px); scroll-margin-top:0; font-size:clamp(25px,6.4vw,33px);
}
.report-preparation[data-ready] .stat-without-recap,.report-preparation .stat-actions:empty { display:none; }
.report-preparation[data-ready] .stat-rhythm > .stat-lilac { background:var(--lilac); }
.report-preparation[data-ready] .stat-rhythm > .stat-lilac .stat-columns > div + div {
  padding-inline-start:10px; border-inline-start:1px solid color-mix(in srgb,var(--prune) 24%,transparent);
}
.report-preparation[data-ready] .stat-rhythm > .stat-lilac .stat-person::before { display:none; }
.report-preparation[data-ready] .stat-rhythm > .stat-lilac .stat-number strong {
  font:700 clamp(25px,7.7vw,40px)/1.12 var(--display); letter-spacing:-.04em;
}
.stat-overview .stat-tile:first-of-type { margin-top: 13px; }
.report-reader-shell .stat-top { margin-bottom: 12px; }
.report-reader-shell .stat-body { width: 100%; padding-top: 15px; }

.stat-person { display:flex; gap:8px; align-items:baseline; }
.stat-person::before { content:""; width:10px; height:10px; flex:none; border-radius:50%; background:var(--prune); }
.stat-columns > :nth-child(even) .stat-person::before { background:#b98336; }
.stat-chat .message-quote { margin:8px 0; }
.stat-chat .message-text { font-size:15px; line-height:1.4; }
.stat-long-message { display:flex; flex-direction:column; }
.stat-long-message details { order:1; }
.stat-long-message details:not([open]) + .message-quote .message-text { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:5; overflow:hidden; }
.stat-gold .recap-hours span { background:#ad9651; }
.stat-gold .recap-hours [data-height="0"] span { background:#c8bb95; }
.stat-gold .recap-hours [data-height="8"] span { background:#695425; }
.stat-gold .recap-hours { margin-top:22px; }
body:has(.reading-scene) { background:var(--ink); color:var(--surface); }
body:has(.reading-scene) #product { min-height:100svh; padding:0; }
.wizard:has(.reading-scene) .wizard-progress { display:none; }
.wizard:has(.reading-scene) .wizard-body { width:100%; padding:0; }
.reading-scene { margin:0 auto; max-width:380px; padding:32px 20px; text-align:center; color:var(--surface); }
.reading-scene > h1 { margin:0; font:750 clamp(44px,8vw,58px)/1.08 var(--display); color:var(--surface); letter-spacing:-.04em; }
.reading-scene > .reading-caption { margin:4px 0 18px; color:var(--lilac); }
.reading-scene .operation-track { width:100%; height:12px; background:#544b56; }
.reading-scene .operation-track span { background:#d6b3de; }
.reading-stage { position:relative; height:min(77svh,650px); overflow:hidden; isolation:isolate; }
.reading-stage .reading-excerpts { margin:0; padding:22px 6px; display:grid; align-content:space-around; min-height:100%; opacity:.78; mask-image:linear-gradient(transparent,#000 15% 85%,transparent); }
.reading-stage .message-quote { max-width:100%; text-align:left; }
.reading-stage .reading-excerpts .message-text { background:none; border:0; color:inherit; width:auto; margin:0; padding:0; }
.reading-stage figcaption { display:none; }
.reading-stage .reading-lens { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:53px; height:53px; object-fit:contain; border-radius:50%; background:var(--surface); border:3px solid var(--lilac); box-shadow:0 0 16px #d6b3de; }
.editorial-follow { padding:clamp(16px,4vw,36px); border-radius:22px; background:color-mix(in srgb,var(--edge) 25%,var(--paper)); }
.follow-header { display:grid; gap:14px; }
.follow-header h2 { font:700 clamp(24px,4vw,31px)/1.15 var(--display); }
.follow-header .follow-illustration { display:block; width:100%; height:auto; max-height:none; aspect-ratio:2/1; object-fit:contain; border-radius:14px; background:var(--lilac); }
.follow-header .follow-banner { object-fit:cover; }
.follow-progress { margin:18px 0 26px; }
.follow-progress .icon-button { border:0; background:none; width:30px; min-height:36px; }
.follow-progress progress { height:10px; }
.follow-choices { gap:10px; }
.follow-choice { background:var(--surface); border:1px solid var(--edge); border-radius:13px; box-shadow:0 3px 0 color-mix(in srgb,var(--edge) 75%,transparent); }
.follow-choice:has(input:checked) { background:var(--surface); border-color:var(--prune); }
.follow-author { align-items:center; }
.follow-author input { width:14px; height:14px; }
.follow-author-avatar { width:42px; height:42px; object-fit:contain; background:var(--lilac); border-radius:50%; }
.follow-choice span { overflow-wrap:anywhere; }
.follow-steps .follow-label span,.follow-steps .follow-hint { font:400 14px/1.5 var(--ui); color:var(--muted); }
.follow-label textarea { border:1px solid var(--edge); border-radius:14px; min-height:158px; background:var(--surface); }
.follow-question-ideas { margin:15px 0; }
.follow-question-ideas summary { cursor:pointer; width:fit-content; padding:5px 0; font-weight:650; }
.follow-suggestions { display:grid; margin-top:10px; }
.follow-suggestions .button { justify-content:flex-start; }
.follow-suggestions [aria-pressed="true"] { background:var(--lilac); border-color:var(--prune); }
.follow-upload { position:relative; display:grid; min-height:clamp(190px,48vw,310px); align-content:center; justify-items:center; gap:7px; border-radius:16px; text-align:center; background:var(--surface); border:1px solid var(--edge); box-shadow:0 3px 0 var(--edge); cursor:pointer; }
.follow-upload svg { width:40px; height:40px; }
.follow-upload input { opacity:0; position:absolute; inset:0; width:100%; height:100%; cursor:pointer; }
.follow-upload:focus-within { outline:2px solid var(--prune); outline-offset:3px; }
.follow-summary { border:1px solid var(--edge); border-radius:14px; background:var(--surface); }
.follow-summary-topics { padding:0!important; list-style:none; }
.follow-summary-topics li { display:flex; align-items:baseline; gap:9px; }
.follow-summary-topics svg { width:16px; height:16px; flex:none; }
.follow-summary-meta { display:grid; gap:8px; }
.follow-summary-meta > div { display:flex; justify-content:space-between; gap:12px; border-top:1px solid var(--edge); padding-top:9px; }
.follow-summary-meta dt { flex:none; color:var(--muted); }
.follow-navigation { margin-top:24px; }
.follow-navigation .primary { width:100%; }
@media (max-width:550px) {
  .stat-body { padding-top:36px; }
  .stat-top > div { gap:10px; }
  .stat-tile { padding:16px; }
  .stat-calendar { --day-gap:1.75px; }
  .stat-columns,.stat-pair { gap:8px; }
  .follow-price { font-size:.87rem; }
}
.conversation-overview { width:min(672px,100%); margin-inline:auto; }
.conversation-overview > header { margin:24px 0 36px; }
.conversation-overview > header h1 { font:600 clamp(29px,5vw,40px)/1.12 var(--display); }
.recap-overview { gap:36px; }
.stat-overview.report-recap { padding:0; background:none; }
.stat-overview > h2 { margin-bottom:16px; }
.follow-dictate { display:grid; place-items:center; width:38px; height:38px; margin:-54px 10px 20px auto; position:relative; background:var(--paper); border:1px solid var(--edge); border-radius:50%; }
.follow-dictate[aria-pressed="true"] { background:var(--lilac); border-color:var(--prune); }
.follow-steps:has(.follow-dictate) textarea { padding-bottom:46px; }
.reading-stage::before { content:""; position:absolute; z-index:1; top:50%; inset-inline:0; height:2px; background:linear-gradient(90deg,transparent,var(--lilac),transparent); box-shadow:0 0 9px #c794d2; pointer-events:none; }
.reading-stage .reading-lens { z-index:2; }
@media (prefers-reduced-motion:no-preference) {
  .reading-stage .reading-excerpts { animation:lou-reading-feed 7s ease-in-out infinite alternate; }
  @keyframes lou-reading-feed { from{transform:translateY(2%)} to{transform:translateY(-7%)} }
}
.stat-message-detail:not([open]) .stat-collapse,.stat-message-detail[open] .stat-expand { display:none; }

/* Each graph keeps its final dimensions and its real values throughout the entrance. */
@media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  [data-motion="chart"] { --chart-ease:cubic-bezier(.2,.78,.26,1); }
  .stat-number.lou-entered,.reply-people .lou-entered .reply-count,
  .change-period.lou-entered .change-counts {
    animation:lou-number-settle 470ms var(--chart-ease) backwards;
  }
  .stat-year.lou-entered .stat-month {
    animation:lou-calendar-row 430ms ease-out var(--row-delay,0ms) backwards;
  }
  .stat-year.lou-entered .stat-year-grid { position:relative; overflow:clip; }
  .stat-year.lou-entered .stat-year-grid::after {
    content:""; position:absolute; inset-block:0; left:0; width:20%; opacity:0; pointer-events:none;
    background:linear-gradient(100deg,transparent,rgba(247,223,255,.13),transparent);
    animation:lou-calendar-glint 650ms ease-in-out;
  }
  .stat-month:nth-of-type(n+5) { --row-delay:45ms; }
  .stat-month:nth-of-type(n+8) { --row-delay:90ms; }
  .stat-month:nth-of-type(n+11) { --row-delay:135ms; }
  .recap-hours.lou-entered li:not([data-height="0"]) span {
    transform-origin:center bottom;
    animation:lou-hour-rise 500ms var(--chart-ease) var(--hour-delay,0ms) backwards;
  }
  .recap-hours li:nth-child(n+7) { --hour-delay:35ms; }
  .recap-hours li:nth-child(n+13) { --hour-delay:70ms; }
  .recap-hours li:nth-child(n+19) { --hour-delay:105ms; }
  .change-period.lou-entered progress,.restart-bars .lou-entered meter,.activity-list .lou-entered meter {
    transform-origin:left center;
    animation:lou-bar-unfold 540ms var(--chart-ease) backwards;
  }
  .stat-words.lou-entered li {
    animation:lou-word-enter 380ms var(--chart-ease) var(--word-delay,0ms) backwards;
  }
  .stat-words li:nth-child(2) { --word-delay:30ms; }
  .stat-words li:nth-child(3) { --word-delay:60ms; }
  .stat-words li:nth-child(n+4) { --word-delay:90ms; }
  @keyframes lou-number-settle { from { opacity:.48; transform:translateY(6px); } to { opacity:1; transform:none; } }
  @keyframes lou-calendar-row { from { opacity:.56; } to { opacity:1; } }
  @keyframes lou-calendar-glint {
    0% { transform:translateX(-100%); opacity:0; }
    22%,72% { opacity:1; }
    100% { transform:translateX(505%); opacity:0; }
  }
  @keyframes lou-hour-rise { from { transform:scaleY(.22); } to { transform:scaleY(1); } }
  @keyframes lou-bar-unfold { from { transform:scaleX(.32); } to { transform:scaleX(1); } }
  @keyframes lou-word-enter { from { opacity:.48; transform:translateX(-5px); } to { opacity:1; transform:none; } }
}
