/* ==========================================================================
   Phase 2: Today and memory (features/today)
   ========================================================================== */

/* The one card: actions, quiet states */
.now-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); width: 100%; }
.now-actions .now-cta { margin-top: 0; }
.now-extras { display: flex; flex-wrap: wrap; gap: var(--s1); }
.now-extras .btn { gap: 6px; padding: 0 var(--s2); }
.now-lead { font-size: var(--t-small); color: var(--muted); margin-bottom: var(--s1); }
.now-card.is-quiet { box-shadow: var(--shadow-1); }

/* Energy chips under the card */
.energy-chips { display: flex; align-items: center; gap: var(--s2); padding: 0 2px; margin-top: calc(var(--s1) * -1); }
.chip { font: inherit; font-size: var(--t-small); font-weight: 700; min-height: 34px; padding: 0 var(--s3); border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform 0.12s; }
.chip:active { transform: scale(0.95); }
.chip.is-on { background: color-mix(in srgb, var(--job-calm) 14%, var(--surface)); border-color: color-mix(in srgb, var(--job-calm) 60%, transparent); color: color-mix(in srgb, var(--job-calm) 80%, var(--text)); }

/* Today's wins line */
.wins-line { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r-md); background: color-mix(in srgb, var(--job-calm) 9%, var(--surface)); color: var(--text); text-decoration: none; font-size: var(--t-small); }
.wins-line:active { transform: scale(0.985); }
.wins-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--job-calm); color: #fff; flex: none; }
.wins-line .grow { flex-direction: row; }

/* Close the kitchen */
.close-intro { padding: 0 2px; }
.close-row { width: 100%; border: none; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; gap: var(--s3); }
.close-box { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; border: 2px solid var(--line); color: #fff; transition: background 0.2s; }
.close-row.is-on .close-box { background: var(--job-calm); border-color: var(--job-calm); }
.close-row.is-on .grow { color: var(--muted); text-decoration: line-through; }
.close-list { padding: 0; }
.close-round { text-decoration: none; color: inherit; }
.close-done { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); }
.close-done .now-icon { --tone: var(--job-new); }

/* Listening: the timer above the tab bar */
.listen-pill {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 11;
  width: calc(100% - 24px); max-width: 496px; display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s2) var(--s2) var(--s3);
  border-radius: var(--r-md); background: color-mix(in srgb, var(--job-sky) 14%, var(--surface)); box-shadow: var(--shadow-2);
}
/*
 * On a phone Shiro's button (shiro.css: 56px, 14px from the right) sits in the bottom-right corner at the same
 * height, right on top of Done - so the timer could not be stopped. The bar stops short of that corner instead,
 * and of the left one when she has moved Shiro there (features/shiro/bubble.js).
 */
@media (max-width: 719px) {
  .listen-pill { left: 12px; right: calc(14px + 56px + 10px); width: auto; max-width: none; transform: none; }
  :root[data-shiro-side='left'] .listen-pill { left: calc(14px + 56px + 10px); right: 12px; }
}
.listen-pill .grow { gap: 0; }
.listen-pill .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.listen-time { font-variant-numeric: tabular-nums; font-size: 17px; }
.listen-wave { display: flex; align-items: flex-end; gap: 2px; height: 18px; color: var(--job-sky); }
.listen-wave i { width: 3px; border-radius: 2px; background: currentColor; animation: listen-wave 1s ease-in-out infinite; }
.listen-wave i:nth-child(2) { animation-delay: 0.2s; }
.listen-wave i:nth-child(3) { animation-delay: 0.4s; }
@keyframes listen-wave { 0%, 100% { height: 5px; } 50% { height: 18px; } }
@media (prefers-reduced-motion: reduce) { .listen-wave i { animation: none; height: 12px; } }
body:has(.listen-pill) #app { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
.listen-url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.choice-col { display: flex; flex-direction: column; gap: var(--s2); }
.choice-wide > span { display: flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s3); }

/* What I did */
.log-today { display: flex; flex-direction: column; gap: var(--s3); }
.log-today .list { box-shadow: none; background: transparent; border: none; }
.log-head { display: flex; align-items: center; gap: var(--s3); }
.log-big { font-size: 44px; font-weight: 800; line-height: 1; color: var(--job-calm); font-variant-numeric: tabular-nums; }
.log-row { gap: var(--s3); }
.log-photo { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); object-fit: cover; }
.log-days { display: flex; flex-direction: column; gap: var(--s2); }
.log-day { padding: 0; overflow: hidden; }
.log-day summary { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); cursor: pointer; list-style: none; }
.log-day summary::-webkit-details-marker { display: none; }
.log-day summary .i { color: var(--muted); transition: transform 0.2s; }
.log-day[open] summary .i { transform: rotate(90deg); }
.log-day .list { box-shadow: none; border: none; border-top: 1px solid var(--line); border-radius: 0; }

/* Your day, small cleans */
.day-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.day-times > span { display: flex; flex-direction: column; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--surface-2); }
.day-times b { font-size: 20px; font-variant-numeric: tabular-nums; }
.day-parts { box-shadow: none; border: none; background: transparent; }
.day-parts .row { padding: 6px 0; min-height: 0; }
.day-part-time { width: 92px; flex: none; font-variant-numeric: tabular-nums; color: var(--muted); }
.slices-intro { padding: 0 2px; }
.slice-row { align-items: flex-start; gap: var(--s3); }
.slice-bar { margin: 4px 0; }
.slice-bar > span { background: var(--job-calm); }

html[data-world="estate"] .log-big,
html[data-world="estate"] .day-times b,
html[data-world="estate"] .listen-time { font-family: 'Cormorant Garamond', Georgia, serif; }
html[data-world="estate"] .chip { font-family: 'EB Garamond', Georgia, serif; font-size: 15px; }
html[data-world="estate"] .wins-line { border: 1px solid var(--line); background: var(--surface); }
html[data-world="estate"] .log-today { background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 5px var(--surface), inset 0 0 0 6px color-mix(in srgb, var(--amber) 55%, transparent); }

/* The living kitchen plant back on Today, drawn in detail */
.kitchen-hero .hero-plant { width: 112px; height: 112px; margin: -6px 0 -6px -4px; }
.kitchen-hero .plant.is-blooming, .sheet-plant .plant.is-blooming { animation: sway 5s ease-in-out infinite; transform-origin: 50% 94%; }
.kitchen-hero .plant.is-wilting { transform-origin: 50% 94%; }
html[data-world="estate"] .kitchen-hero { background: var(--surface); }
html[data-world="estate"] .kitchen-hero .hero-score { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 42px; }
html[data-world="estate"] .kitchen-hero .hero-status { font-family: 'EB Garamond', Georgia, serif; font-size: 18px; }


/* ---------- A cleaning session: a room, a clock, and "what did you get to?" ---------- */
/*
 * Her unit of work is a room for twenty minutes, not a task (Srija, 18 Sept 2026). So the clock is the
 * biggest thing on the screen and the list is deliberately quiet underneath it — it is there to glance at,
 * not to work through, and one tap takes it away entirely.
 */
.ses-lede { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 var(--s3); max-width: 52ch; }
.ses-group { margin-bottom: var(--s4); }
.ses-group .eyebrow { display: block; margin-bottom: var(--s2); }

.ses-rooms { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ses-room input { position: absolute; opacity: 0; pointer-events: none; }
.ses-room-name { display: block; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; cursor: pointer; }
.ses-room input:checked + .ses-room-name { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ses-room input:focus-visible + .ses-room-name { outline: 2px solid var(--primary); outline-offset: 2px; }

.ses-mins { display: flex; gap: var(--s2); }
.ses-min { flex: 1; }
.ses-min input { position: absolute; opacity: 0; pointer-events: none; }
.ses-min span { display: grid; place-items: center; gap: 1px; padding: 14px 0; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: 26px; font-weight: 700; cursor: pointer; }
.ses-min span i { font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ses-min input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ses-min input:checked + span i { color: inherit; opacity: .8; }
.ses-min input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.ses-clock { text-align: center; padding: var(--s4) 0 var(--s2); }
.ses-time { font-size: clamp(64px, 22vw, 108px); font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.ses-clock.is-up .ses-time { opacity: .45; }
/* Stopped by her. The digits go quiet rather than disappear, so the minute she stopped at is still readable. */
.ses-clock.is-held .ses-time { opacity: .5; }
.ses-where { margin: var(--s1) 0 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.ses-hold { margin-top: var(--s2); min-width: 10.5em; }
.ses-over { text-align: center; font-weight: 600; font-size: 15px; padding: var(--s2) var(--s3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); margin-bottom: var(--s3); }

.ses-doing { display: grid; gap: var(--s2); justify-items: center; margin: var(--s3) 0; }
.ses-doing .btn-big { max-width: 420px; }

.ses-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.ses-list li { display: flex; align-items: center; gap: var(--s2); background: var(--surface); padding: 11px var(--s3); font-size: 15px; }
.ses-list li.is-due { font-weight: 600; }
.ses-flag { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ses-noList { text-align: center; color: var(--muted); font-size: 14.5px; padding: var(--s4) 0; }

.ses-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.ses-chip { font-size: 14.5px; padding: 10px 15px; }
.ses-quit { display: block; margin: var(--s4) auto 0; color: var(--muted); }

/* The room, with the dust lifting off it as she ticks (Srija: "this is boring" / "checking off drives the motivation"). */
.ses-art { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); margin-bottom: var(--s3); line-height: 0; }
.ses-art .hm-plan { max-height: 30vh; }
.ses-dust { position: absolute; inset: 0; pointer-events: none; opacity: var(--dust, 1); transition: opacity 0.7s ease;
  background: radial-gradient(circle at 20% 30%, rgba(120,120,130,0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(120,120,130,0.45) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 80%, rgba(120,120,130,0.4) 0 1.5px, transparent 3px),
    rgba(126, 126, 136, 0.42);
  background-size: 34px 34px, 44px 44px, 28px 28px, auto; }
@media (prefers-reduced-motion: reduce) { .ses-dust { transition: none; } }

/* A line she can tick the moment she has done it, not twenty minutes later. */
.ses-do { display: flex; align-items: center; gap: var(--s2); width: 100%; background: var(--surface); border: none; padding: 12px var(--s3); font: inherit; font-size: 15px; text-align: left; color: var(--text); cursor: pointer; }
.ses-do .ses-box { flex: none; width: 19px; height: 19px; border-radius: 6px; border: 2px solid var(--line); }
.ses-do.is-done { color: var(--muted); }
.ses-do.is-done span { text-decoration: line-through; }
.ses-do.is-done .ses-box { background: var(--job-calm); border-color: var(--job-calm); }
.ses-do:active { background: var(--surface-2); }
.ses-do:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.ses-list li { padding: 0; }
.ses-more { display: block; margin: var(--s2) auto 0; }
