/* V22 visual handoff. Loaded after desktop-v21.css; no placement transforms or
   persistence ownership live here. Keep the compact release-button geometry. */

/* Today: one reminder sheet and one horizontal timer, in the existing folio. */
#space > .today-folio,
#space .today-folio:has(.folio-tool[data-type="timer"][data-size="compact"]):has(.folio-tool[data-type="checklist"][data-size="compact"]) {
  width: 326px;
  min-height: 178px;
  padding: 12px 14px 12px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 28px 72px 52px;
  gap: 0;
  border: 1px solid #7a9195;
  border-radius: 4px 13px 13px 4px;
  background: linear-gradient(90deg,#385666 0 8px,#fff9e9 8px);
  color: #17282d;
  box-shadow: 1px 2px 0 #e2dfce, 2px 4px 0 #3d5965, 0 10px 17px -9px #17333f66;
}
#space > .today-folio::before,
#space > .today-folio::after { display: none; }
#space .today-folio-header {
  grid-column: 1;
  grid-row: 1;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
}
#space .today-folio-header > span {
  color: #17282d;
  font: italic 600 18px/1.3 Georgia, serif;
  letter-spacing: -.15px;
}
#space .today-folio-date {
  color: #52625e;
  font: 500 11px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
#space .today-folio > .overlay.folio-tool[data-type][data-size] {
  --folio-ink: #243d43;
  --folio-surface: #edf2ef;
}
#space .today-folio > .overlay.folio-tool[data-color="blue"] { --folio-ink: #275b78; --folio-surface: #e8f0f6; }
#space .today-folio > .overlay.folio-tool[data-color="sage"] { --folio-ink: #3c6047; --folio-surface: #edf1e8; }
#space .today-folio > .overlay.folio-tool[data-color="blush"] { --folio-ink: #7e4d5c; --folio-surface: #f5ecec; }
#space .today-folio > .folio-tool[data-type="checklist"] {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
}
#space .today-folio > .folio-tool[data-type="checklist"][data-size] .checklist-items {
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  padding: 0;
  gap: 0;
  border-radius: 3px;
}
#space .today-folio > .folio-tool[data-type="checklist"] .checklist-items label {
  min-height: 36px;
  height: 36px;
  gap: 4px;
  border: 0;
}
#space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"] {
  width: 28px;
  min-width: 28px;
  flex: 0 0 28px;
  height: 34px;
}
#space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"]::before {
  top: 9px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #889d96;
  border-radius: 4px;
  background: #fffef8;
  box-shadow: none;
}
#space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"]:checked::after {
  top: 12px;
  left: 5px;
}
#space .today-folio > .folio-tool[data-type="checklist"][data-size] .checklist-text {
  min-width: 0;
  min-height: 34px;
  height: 34px;
  padding: 0;
  color: #243d43;
  font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
#space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"]:checked + .checklist-text {
  color: #62716b;
  opacity: 1;
}
#space .today-folio > .folio-tool[data-type="timer"] { grid-column: 1; grid-row: 3; }
#space .today-folio > .folio-tool[data-type="timer"][data-size] .overlay-shell {
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px dashed #99aaa5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#space .today-folio > .folio-tool[data-type="timer"][data-size] .overlay-body {
  height: 51px;
  min-height: 51px;
  padding: 0;
}
#space .today-folio > .folio-tool[data-type="timer"] .overlay-header {
  inset: 0 auto auto 0;
  width: 48px;
  height: 51px;
  min-height: 51px;
  display: flex;
  align-items: center;
  padding: 0;
}
#space .today-folio > .folio-tool[data-type="timer"] .overlay-title {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #52625e;
  font: 500 12px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}
#space .today-folio > .folio-tool[data-type="timer"][data-size] .timer-value {
  inset: 14px auto auto 52px;
  width: 96px;
  margin: 0;
  color: #17282d;
  font: 500 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  text-align: left;
}
#space .today-folio > .folio-tool[data-type="timer"][data-size] .timer-actions {
  inset: 8px 0 auto auto;
  gap: 4px;
  width: auto;
  height: 36px;
}
#space .today-folio > .folio-tool[data-type="timer"] .timer-actions .round-control {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 9px;
  border: 1px solid #d2dcd6;
  border-radius: 7px;
  color: #243d43;
  background: #f0f4ee;
  box-shadow: none;
}
#space .today-folio > .folio-tool[data-type="timer"] .timer-actions .timer-toggle {
  background: #276a80 !important;
  border-color: #276a80 !important;
}
#space .today-folio > .folio-tool[data-type="timer"] .timer-actions .round-control img {
  width: 16px;
  height: 16px;
  filter: none;
}
/* Earlier instrument artwork forces black icons with !important. */
#space .today-folio > .folio-tool[data-type="timer"] .timer-actions .round-control.timer-toggle img { filter: brightness(0) invert(1) !important; }
#space .today-folio > .folio-tool[data-type="timer"] :is(.focus-gauge, .timer-dial, .timer-track, .timer-state) { display: none; }
#space .today-folio :is(button, input):focus-visible { outline: 2px solid #276a80; outline-offset: 2px; }

/* A bound planner: punched paper, a date tab, and a separate timer instrument. */
#space > .today-folio::before { display:block;content:'';position:absolute;left:2px;top:15px;bottom:12px;width:11px;border:0;border-radius:0;background:radial-gradient(ellipse,#b8bdac 0 2px,#233e4a 2.5px 4px,transparent 4.5px) 0 0 / 11px 26px;box-shadow:none;transform:none;z-index:1;pointer-events:none; }
#space .today-folio-date { background:#ead3a3;color:#534c39;border-radius:2px;padding:3px 6px;rotate:2deg; }
#space .today-folio > .folio-tool[data-type="checklist"][data-size] .checklist-items { background:repeating-linear-gradient(transparent 0 35px,#afbeb633 35px 36px);border-radius:0; }
#space .today-folio > .folio-tool[data-type="timer"][data-size] .overlay-shell { background:#294957;border:1px solid #203e49;border-radius:4px 4px 9px 4px;box-shadow:inset 0 1px #6d8995; }
#space .today-folio > .folio-tool[data-type="timer"] .overlay-header { left:9px;width:42px; }
#space .today-folio > .folio-tool[data-type="timer"] .overlay-title { color:#c5d5d8;font-size:10px!important; }
#space .today-folio > .folio-tool[data-type="timer"][data-size] .timer-value { left:56px;color:#fff4d7;font-size:25px; }
#space .today-folio > .folio-tool[data-type="timer"][data-size] .timer-actions { right:6px; }
#space .today-folio > .folio-tool[data-type="timer"] .timer-actions .timer-toggle { background:#e4c990!important;border-color:#e4c990!important; }
#space .today-folio > .folio-tool[data-type="timer"] .timer-actions .round-control.timer-toggle img { filter:none!important; }

/* A small printed calendar. Keep the object node's saved drag transform. */
.object-calendar { width: 66px; height: 80px; }
.object-calendar .calendar-page {
  width: 66px;
  height: 78px;
  rotate: -2deg;
  border: 1px solid #fffef8;
  border-radius: 5px;
  background: #fffef8;
  box-shadow: 0 2px #d1d7ca, 0 3px #fffdf3, 0 4px #aab7ae;
}
.object-calendar .calendar-page span {
  background: #9b493c;
  color: #fffef8;
  font: 600 10px/18px -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: .7px;
}
.object-calendar .calendar-page b {
  color: #17282d;
  font: 550 34px/39px -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.object-calendar .calendar-page small {
  color: #43575e;
  font: 500 10px/17px -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: .2px;
}
.object-calendar:hover .calendar-page { transform: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .object-calendar:hover .calendar-page { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  .object-calendar .calendar-page { transition: none; }
}

/* Low commercial bin, placed beside the landing dock. */
.object-bin { width: 100px; height: 65px; }
.object-bin .desktop-bin {
  width: 100px;
  height: 65px;
  opacity: 1;
  perspective: none;
  filter: drop-shadow(1px 3px 2px #17374635);
}
.object-bin .desktop-bin > :is(i, b, span),
.object-bin .desktop-bin::before,
.object-bin .desktop-bin::after { display: none; }
.bin-toggle { pointer-events:auto;display:block;width:100px;height:65px;padding:0;border:0;background:transparent;cursor:pointer; }
.bin-toggle svg { width:100%;height:100%;overflow:visible; }
.bin-lid { transform-box:view-box;transform-origin:20px 16px;transition:transform 240ms var(--shell-ease); }
.bin-toggle[aria-expanded="true"] .bin-lid { transform:translateY(-8px) rotate(-20deg); }
.bin-toggle:focus-visible { outline:2px solid #2f637c;outline-offset:3px;border-radius:9px; }
@media(prefers-reduced-motion:reduce){.bin-lid{transition:none;}}
.object-bin:hover .desktop-bin { transform: none; }

/* The real photograph keeps the existing album-art footprint and controls. */
.mixtape-album { background: #283831; }
.mixtape-album::before,
.mixtape-album::after,
.mixtape-album > :is(i, b) { display: none; }
.mixtape-album > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: inherit;
}

/* The following mark has a 20px silhouette in a 24px positioning box. */
.cursor-companion {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  color: #101719;
  filter: none;
  display: grid;
  place-items: center;
}
.cursor-companion[hidden] { display: none; }
.cursor-companion .companion-cradle { width: 20px; height: 20px; }
.cursor-companion .companion-cradle svg { overflow: visible; }
.cursor-companion .companion-cradle svg > path:first-of-type,
.cursor-companion .companion-cradle svg > circle { fill: #101719; stroke: #fff; stroke-width: .55; }
.cursor-companion .companion-cradle svg > path:nth-of-type(2) { display: none; }

/* One quiet launch line, lit by the desktop rather than boxed in a badge. */
.desktop-introduction .release-caption {
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 9px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #243d43;
  font: 500 12px/1.4 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  text-shadow: 0 0 2px #fff, 0 0 8px #fafff4, 0 0 16px #f8fff1e0;
}
.closing .release-caption { color: #43575e; font-size: 14px; line-height: 1.5; margin-top: 14px; text-shadow: 0 0 10px #fff; }

/* Restored chapters: readable copy over the continuous coastal scene. */
.scene-afterword .story-caption { color: #17282d; font-weight: 600; }
.scene-afterword .hero-description { color: #243d43; font-size: 17px; }
.scene-afterword .scene-scroll { color: #243d43; opacity: 1; }
.chapter-track { background: transparent; }
.chapter-track .feature::before { background: radial-gradient(ellipse, #edf4f6ed 0%, #edf4f680 55%, transparent 74%); mask-image:linear-gradient(transparent,#000 22%,#000 78%,transparent); }
.chapter-track .feature::after { display: none; }
.feature-copy .eyebrow,
.closing > div > .eyebrow { display: none; }
.feature .feature-copy h2,
#how-it-helps .overlay-chapter-copy h2,
.closing h2 {
  color: #17282d;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1.2px;
}
#how-it-helps .overlay-chapter-copy h2 em { color: inherit; font: inherit; letter-spacing: inherit; }
.feature .feature-copy > p:not(.eyebrow),
#how-it-helps .overlay-chapter-copy > p:not(.eyebrow) {
  color: #43575e;
  font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  letter-spacing: 0;
  opacity: 1;
}
.overlay-chapter-choices button { color: #243d43; background: #fff; border-color: #bccbd0; }
.overlay-chapter-choices button[aria-pressed="true"] { color: #17282d; background: #e3edf1; border-color: #819ca8; }
.overlay-chapter-replay { color: #43575e; opacity: 1; }
.closing { background: transparent; border-top:0; }
.closing .questions :is(summary, p) { color: #243d43; }

@media (min-width: 900px) and (max-width: 1150px) {
  #space > .today-folio,
  #space .today-folio:has(.folio-tool[data-type="timer"][data-size="compact"]):has(.folio-tool[data-type="checklist"][data-size="compact"]) { width: 292px; }
}
@media (max-width: 899px), (pointer: coarse) {
  #space > .today-folio,
  #space .today-folio:has(.folio-tool[data-type="timer"][data-size="compact"]):has(.folio-tool[data-type="checklist"][data-size="compact"]) { grid-template-rows: 24px 88px 48px; min-height: 182px; }
  #space .today-folio > .folio-tool[data-type="checklist"][data-size] .checklist-items { height: 88px; min-height: 88px; max-height: 88px; }
  #space .today-folio > .folio-tool[data-type="checklist"] .checklist-items label,
  #space .today-folio > .folio-tool[data-type="checklist"][data-size] .checklist-text { height: 44px; min-height: 44px; }
  #space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"] { width: 44px; min-width: 44px; flex-basis: 44px; height: 44px; }
  #space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"]::before { top: 14px; left: 3px; }
  #space .today-folio > .folio-tool[data-type="checklist"] input[type="checkbox"]:checked::after { top: 17px; left: 8px; }
  #space .today-folio > .folio-tool[data-type="timer"][data-size] .overlay-shell { height: 48px; }
  #space .today-folio > .folio-tool[data-type="timer"][data-size] .overlay-body { height: 47px; min-height: 47px; }
  #space .today-folio > .folio-tool[data-type="timer"] .overlay-header { height: 47px; min-height: 47px; }
  #space .today-folio > .folio-tool[data-type="timer"][data-size] .timer-value { top: 12px; }
  #space .today-folio > .folio-tool[data-type="timer"][data-size] .timer-actions { top: 2px; gap: 2px; height: 44px; }
  #space .today-folio > .folio-tool[data-type="timer"] .timer-actions .round-control { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 13px; }
}
@media (max-width: 899px) {
  #space > .today-folio,
  #space .today-folio:has(.folio-tool[data-type="timer"][data-size="compact"]):has(.folio-tool[data-type="checklist"][data-size="compact"]) {
    width: min(326px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    margin: 14px auto 70px;
  }
  #space .today-folio > .folio-tool[data-type="checklist"] .mobile-reorder { top: calc(100% + 73px); left: 50%; }
  .desktop-introduction .release-caption { font-size: 11px; margin-top: 6px; }
  .feature .feature-copy > p:not(.eyebrow),
  #how-it-helps .overlay-chapter-copy > p:not(.eyebrow) { font-size: 16px; }
}
@media (max-width: 359px) {
  #space > .today-folio { padding-inline: 10px; }
  #space .today-folio > .folio-tool[data-type="timer"][data-size] .timer-value { left: 49px; font-size: 22px; }
  .desktop-introduction h1 { font-size: 42px; }
  .desktop-introduction .desktop-tagline { margin: 4px 0; }
  .desktop-introduction .release-caption { font-size: 10px; margin-top: 4px; }
}
@media (prefers-contrast: more) {
  #space > .today-folio { border-color: #536a62; }
  #space .today-folio > .folio-tool[data-type="timer"][data-size] .overlay-shell { border-color: #889d96; }
  .desktop-introduction .release-caption { color: #17282d; text-shadow: 0 0 2px #fff, 0 0 5px #fff, 0 0 9px #fff; }
}
