/* sphere-armillary.css — Sphere redesign (armillary face).
 *
 * Three layers, in the films' warm language throughout:
 *  1. The warm portrait: a still of the new face, on screen from
 *     the first paint, crossfading to the live instrument when
 *     its first real frame lands — never a black wait.
 *  2. The app shell (Aaron, Nov 20, 2026 — no endless scrolling;
 *     corrective, Nov 20, 09:11 PST, from his real phone): the
 *     page is the viewport from the FIRST PAINT — the frame keys
 *     off the page's own static html class, not a class JS adds
 *     when it gets around to it, so there is never a scrollable
 *     unframed moment. One quiet telling line on top, the Sphere
 *     FILLING the middle (the stage chain is sized by the frame,
 *     never by the viewport's width), one dock of doors in ONE
 *     row at the bottom. Everything else lives in the one rooms
 *     sheet, which scrolls inside itself. The Legend box never
 *     stands on the surface at all — the markers carry their own
 *     names on the face.
 *  3. The on-sphere readout and the Spark's alert: the selected
 *     day's coordinate and telling on the instrument itself, with
 *     its two actions; the Spark's invitation at the Sphere's
 *     edge when a scheduled time comes.
 */

/* ── 1. The portrait ─────────────────────────────────────────── */

.sphere-instrument-shell {
  position: relative;
}

.sphere-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  transition: opacity 600ms ease;
}

.sphere-portrait.is-live {
  opacity: 0;
}

/* ── 2. The app shell ────────────────────────────────────────── */

/* The base lock: this page never scrolls, from the first paint.
 * (The Living Day shell, body.sphere-app, frames the page itself
 * and keeps its own lock from living-time-sphere-app.css.) */
html.living-time-sphere-page {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

html.living-time-sphere-page body {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

html.living-time-sphere-page body:not(.sphere-app) .site-header {
  display: none;
}

html.living-time-sphere-page body:not(.sphere-app) main.sphere-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* The telling line: one quiet line at the top, and under it the
 * sky line — real values only, written by the page layer; while
 * the sky has nothing true to say, the line simply isn't there. */
html.living-time-sphere-page .sphere-rebuild-caption {
  order: -1;
  flex: 0 0 auto;
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0.5rem 6.5rem 0.3rem 1rem;
  text-align: left;
}

html.living-time-sphere-page .sphere-rebuild-caption .sphere-ambient-line {
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* The adopted telemetry strip, restyled as a plain line of the
 * telling block: its stage costume (absolute bar, border,
 * backdrop) is fully stood down — in the caption it is just
 * words under the telling, at a readable size. */
.sphere-skyline {
  position: static;
  display: block;
  margin: 0.15rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.sphere-skyline[hidden] {
  display: none;
}

.sphere-skyline .sphere-live-environment-primary {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  color: #c9b18c;
}

.sphere-skyline .sphere-live-environment-secondary,
.sphere-skyline .sphere-live-environment-selected {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: #a68d64;
  border: none;
  margin: 0;
  padding: 0;
}

.sphere-skyline .sphere-live-environment-secondary:empty,
.sphere-skyline .sphere-live-environment-selected:empty {
  display: none;
}

.sphere-all-tools {
  position: absolute;
  top: 0.3rem;
  right: 0.75rem;
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(218, 164, 91, 0.38);
  background: rgba(23, 16, 10, 0.92);
  color: #f3e7d3;
  font-size: 0.92rem;
  cursor: pointer;
}

/* One readout on the surface: the old state strip stands down
 * in the frame — the on-sphere readout carries its line now. The
 * strip stays in the DOM as the truth source the readout (and
 * the shell's selectedLine) reads. */
html.living-time-sphere-page #sphere-state-strip {
  display: none;
}

/* One way to schedule on the surface: the dock and the day's
 * readout. The floating label card keeps its name and its close;
 * its own + Schedule button stands down in the frame. */
html.living-time-sphere-page .sphere-semantic-label-schedule {
  display: none !important;
}

/* The Legend box and the old guide bar never stand on the
 * surface: while either still sits in the stage's frame it is
 * hidden outright; the shell sweep moves both into the rooms
 * sheet, where these rules no longer reach them and they show
 * as rooms. The markers' meanings live on the face itself —
 * each marker carries its name at its place on the Sphere. */
html.living-time-sphere-page .sphere-wrapper > #sphere-legend,
html.living-time-sphere-page .sphere-canvas-wrap .sphere-guide-bar {
  display: none !important;
}

/* The stage fills what the line and the dock leave. The chain
 * is sized by the frame alone: wrapper (flex) → canvas wrap
 * (flex, positioned) → instrument shell (absolute fill) →
 * container (absolute fill). No width-keyed heights anywhere —
 * the old min(92vw, 520px) container rule is overridden here,
 * decisively, by the later and more specific sheet. */
html.living-time-sphere-page .sphere-wrapper {
  order: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* The base sheet's grid rule for this wrapper carries
   * align-items: start, which — left standing — shrinks the
   * canvas wrap to its in-flow content on the cross axis; with
   * every stage child now absolute or hidden, that content is
   * nothing and the stage collapsed to zero width in the first
   * corrective lab run. Stretch is the frame's law. */
  align-items: stretch;
  margin: 0;
  position: relative;
}

html.living-time-sphere-page .sphere-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

html.living-time-sphere-page .sphere-instrument-shell {
  position: absolute;
  inset: 0;
  height: auto;
}

html.living-time-sphere-page #sphere-container {
  /* !important, deliberately: the renderer sets the container's
   * position: relative INLINE when it mounts its floating label
   * (_ensureFloatingLabel) — a defensive default that silently
   * outranked this sheet in the first corrective lab run and
   * left the stage at the old width-keyed height. The frame
   * owns the stage's geometry; the container stays a positioned
   * ancestor either way, so the floating label is unaffected. */
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
}

/* The instrument's printed masthead stands down in the frame —
 * the face needs no title above it, and the stage keeps every
 * pixel for the instrument. */
html.living-time-sphere-page .sphere-instrument-topline {
  display: none;
}

/* The Interact toggle bar stands down in the frame: it existed
 * to keep touch drags scrolling the page instead of turning the
 * Sphere, and this page never scrolls — so the page layer turns
 * interaction ON when the instrument is ready (sphere-armillary
 * .js) and the Sphere is directly touchable, like a game board.
 * The bar stays in the DOM; the toggle's own events still work
 * if anything calls them. */
html.living-time-sphere-page .sphere-interact-bar {
  display: none;
}

/* The one dock, at the bottom: ONE row of seven doors, each
 * cell the same width, labels small enough to stand in their
 * cell. 54px of door, never three stacked rows. */
html.living-time-sphere-page body:not(.sphere-app) .sphere-rebuild-dock {
  order: 1;
  flex: 0 0 auto;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.45rem 0.45rem calc(0.45rem + env(safe-area-inset-bottom));
  background: rgba(12, 8, 5, 0.94);
  border-top: 1px solid rgba(218, 164, 91, 0.38);
}

/* The Living command trigger is a fixed pill that, left to
 * itself, lands on the dock's right-hand doors and covers
 * them (seen in the lab on the corrective pass). On this page
 * the page layer moves it INTO the dock as an eighth door —
 * same control, same job, standing in the one row with the
 * others instead of floating over them. */
html.living-time-sphere-page body:not(.sphere-app) .sphere-rebuild-dock.has-command-trigger {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

html.living-time-sphere-page .sphere-rebuild-dock .living-command-trigger {
  position: static;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0.3rem 0.12rem;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.18;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

html.living-time-sphere-page .sphere-rebuild-dock-btn {
  min-height: 54px;
  min-width: 0;
  padding: 0.3rem 0.12rem;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.18;
  white-space: normal;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The one rooms sheet: everything else lives here, and long
 * content scrolls inside it — never the page. */
html.living-time-sphere-page body:not(.sphere-app) .sphere-sidebar {
  position: fixed;
  inset: auto 0 0;
  box-sizing: border-box;
  z-index: 6000;
  width: auto;
  max-width: none;
  /* Desktop-width corrective (Aaron, Nov 20): the workspace
   * sheets cap .sphere-sidebar at min(78vh, 900px) from 1024px
   * up, and this rule never declared a height — so at desktop
   * width the fixed sheet stood only ~78% tall, and translating
   * it by 103% of that capped height left its top strip (sheet
   * bar + first room) painted over the dock zone. The dock read
   * as missing and the strip scrolled like the page itself. The
   * sheet is full-height at every width, so the closed sheet
   * clears the stage entirely, as it already did on the phone. */
  height: auto;
  max-height: min(84dvh, 60rem);
  margin: 0;
  padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(218, 164, 91, 0.38);
  border-radius: 1.1rem 1.1rem 0 0;
  background: #17100a;
  color: #f3e7d3;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(calc(103% + env(safe-area-inset-bottom, 0px)));
  transition: transform 380ms ease;
}

html.living-time-sphere-page.armillary-rooms-open body:not(.sphere-app) .sphere-sidebar {
  transform: none;
}

.sphere-rooms-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5999;
  background: rgba(5, 3, 2, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

/* Scoped to the page shell like every other rooms rule: in the
 * app view the same class can linger on <html>, and the app
 * shell's own sheets must not sit under this backdrop
 * (PR #232 review, Nov 21, 2026). */
html.living-time-sphere-page.armillary-rooms-open body:not(.sphere-app) .sphere-rooms-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms ease;
}

.sphere-sheet-handle {
  display: block;
  width: 2.8rem;
  height: 0.28rem;
  margin: 0.65rem auto 0.35rem;
  border-radius: 999px;
  background: rgba(243, 231, 211, 0.48);
  touch-action: none;
}

.sphere-sheet-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  background: rgba(23, 16, 10, 0.97);
  border-bottom: 1px solid rgba(218, 164, 91, 0.38);
}

.sphere-sheet-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.sphere-sheet-links {
  display: flex;
  gap: 1rem;
  margin-right: auto;
}

.sphere-sheet-links a {
  color: #c9b18c;
  font-size: 0.92rem;
}

.sphere-sheet-close {
  min-height: 44px;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(218, 164, 91, 0.55);
  background: rgba(218, 164, 91, 0.14);
  color: #f3e7d3;
  font-size: 0.95rem;
  cursor: pointer;
}

.sphere-sheet-room {
  margin: 1rem;
}

.sphere-more-tools {
  scroll-margin-top: 4.5rem;
}

.sphere-more-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.55rem;
}

.sphere-more-actions > button,
.sphere-more-actions .living-command-trigger {
  position: static;
  min-width: 0;
  min-height: 44px;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(218, 164, 91, 0.38);
  border-radius: 0.75rem;
  background: rgba(218, 164, 91, 0.1);
  color: #f3e7d3;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sphere-more-actions > button:focus-visible,
.sphere-rebuild-dock-btn:focus-visible,
.sphere-sheet-close:focus-visible,
.sphere-day-readout-actions button:focus-visible {
  outline: 2px solid #ffd98f;
  outline-offset: 2px;
}

.sphere-mode-toggle {
  grid-column: 1 / -1;
}

.sphere-day-details {
  scroll-margin-top: 4.5rem;
}

.sphere-day-details > .sphere-day-readout {
  position: relative;
  inset: auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.85rem;
  transform: none;
  text-align: left;
  box-shadow: none;
}

.sphere-day-details .sphere-day-readout-where,
.sphere-day-details .sphere-day-readout-telling,
.sphere-day-details .sphere-day-readout-kept,
.sphere-day-details .sphere-day-readout-sky,
.sphere-day-details .sphere-day-readout-farm,
.sphere-day-details .sphere-day-readout-story {
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  html.living-time-sphere-page body:not(.sphere-app) .sphere-sidebar {
    inset: 0 0 0 auto;
    width: min(34rem, 44vw);
    height: 100dvh;
    max-height: none;
    padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 0.75rem 1rem;
    border-top: 0;
    border-left: 1px solid rgba(218, 164, 91, 0.38);
    border-radius: 0;
    transform: translateX(103%);
  }

  html.living-time-sphere-page.armillary-rooms-open body:not(.sphere-app) .sphere-sidebar {
    transform: none;
  }
}

@media (max-width: 899px) and (orientation: landscape) {
  html.living-time-sphere-page body:not(.sphere-app) .sphere-sidebar {
    max-height: 88dvh;
  }

  html.living-time-sphere-page body:not(.sphere-app) .sphere-rebuild-dock {
    padding-top: 0.2rem;
    padding-bottom: max(0.2rem, env(safe-area-inset-bottom, 0px));
  }
}

/* Technical material: one door, closed by default. */
.sphere-technical-door {
  margin: 1rem;
  border: 1px solid rgba(218, 164, 91, 0.3);
  border-radius: 12px;
  padding: 0.25rem 1rem 0.75rem;
  background: rgba(12, 8, 5, 0.5);
}

.sphere-technical-door > summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #c9b18c;
}

/* ── 3. The on-sphere readout + the Spark's alert ────────────── */

.sphere-day-readout {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.55rem;
  z-index: 25;
  width: max-content;
  max-width: min(97vw, 34rem);
  padding: 0.4rem 0.55rem 0.45rem;
  border: 1px solid rgba(218, 164, 91, 0.55);
  border-radius: 16px;
  background: rgba(23, 16, 10, 0.93);
  color: #f3e7d3;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.sphere-day-readout-where {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.sphere-day-readout-telling {
  margin: 0.05rem 0 0;
  font-size: 0.86rem;
  color: #c9b18c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82vw;
}

/* What is kept on the shown day — plans, practices, stamped
 * games — in the record's own words. Absent when the day keeps
 * nothing: the face never invents content. */
.sphere-day-readout-kept {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: #7fe8d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82vw;
}

.sphere-day-readout-kept[hidden] {
  display: none;
}

/* The packed telling (Sphere design Phase 3): one line per
 * riding ring, each in its ring's own colour. Farm and story
 * lines name crops and chapters, so they wrap where the
 * kept line does not. */
.sphere-day-readout-sky,
.sphere-day-readout-farm,
.sphere-day-readout-story {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: 82vw;
}

.sphere-day-readout-sky[hidden],
.sphere-day-readout-farm[hidden],
.sphere-day-readout-story[hidden] {
  display: none;
}

.sphere-day-readout-sky {
  color: #a8c4de;
}

.sphere-day-readout-farm {
  color: #9ccf5f;
}

.sphere-day-readout-story {
  color: #cdb2f2;
  font-style: italic;
}

.sphere-day-readout-wheel {
  margin-top: 0.45rem;
}

.sphere-day-readout-wheel[hidden] {
  display: none;
}

.sphere-day-wheel-host svg {
  display: block;
  width: min(58vw, 232px);
  height: auto;
  margin: 0 auto;
}

.sphere-day-wheel-caption {
  margin: 0.3rem 0 0;
  color: rgba(243, 231, 211, 0.62);
  font-size: 0.74rem;
  line-height: 1.45;
  text-align: center;
}

.sphere-day-readout-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 0.35rem;
}

.sphere-day-readout-actions button {
  min-height: 42px;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(218, 164, 91, 0.55);
  background: rgba(218, 164, 91, 0.14);
  color: #f3e7d3;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
}

.sphere-day-readout-actions .sphere-day-readout-enter {
  background: rgba(218, 164, 91, 0.3);
  border-color: #daa45b;
  color: #fff4de;
  font-weight: 600;
}

.sphere-spark-alert {
  position: fixed;
  right: 0.75rem;
  bottom: 8.5rem;
  z-index: 6500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(88vw, 24rem);
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  border: 1px solid #daa45b;
  border-radius: 999px;
  background: rgba(23, 16, 10, 0.95);
  color: #f3e7d3;
  box-shadow: 0 0 18px rgba(218, 164, 91, 0.25);
}

.sphere-spark-alert-text {
  margin: 0;
  font-size: 0.95rem;
}

.sphere-spark-alert-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(218, 164, 91, 0.4);
  background: transparent;
  color: #f3e7d3;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ── 4. The games live on the face ───────────────────────────── */

/* The play bar: three small doors at the stage's top edge. The
 * games are played on the instrument itself; the bar only
 * starts them and carries their one status line. */
.sphere-play-bar {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 26;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 96vw;
  pointer-events: none;
}

.sphere-play-bar-doors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: auto;
}

.sphere-play-bar-doors[hidden] {
  display: none;
}

.sphere-play-bar-toggle {
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(218, 164, 91, 0.55);
  border-radius: 999px;
  background: rgba(23, 16, 10, 0.92);
  color: #f3e7d3;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.sphere-play-bar-btn {
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(218, 164, 91, 0.55);
  background: rgba(23, 16, 10, 0.9);
  color: #f3e7d3;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.sphere-play-bar-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

/* Each stage door says what its game is, in one small line under
 * its name — the games must make sense from the face itself
 * (Aaron, Nov 22, 2026), not only from the room below. */
.sphere-play-bar-hint {
  display: block;
  white-space: normal;
  max-width: 11.5rem;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: rgba(243, 231, 211, 0.78);
}

.sphere-play-bar-status {
  pointer-events: auto;
  max-width: 88vw;
  padding: 0.35rem 0.8rem;
  border-radius: 12px;
  background: rgba(23, 16, 10, 0.92);
  border: 1px solid rgba(218, 164, 91, 0.4);
  color: #f3e7d3;
  font-size: 0.86rem;
  line-height: 1.35;
  text-align: center;
}

.sphere-play-bar-status[hidden] {
  display: none;
}

.sphere-play-bar-pads {
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.sphere-play-bar-pads[hidden] {
  display: none;
}

.sphere-play-bar-pads .sphere-play-pad {
  width: 52px;
  height: 52px;
}

/* The Day World's doorway scene (cartoon exploration pass). */
.day-world-scene {
  margin: 0 0 1rem;
  padding: 0.5rem 0.5rem 0.6rem;
  border: 1px solid rgba(218, 164, 91, 0.45);
  border-radius: 16px;
  background: rgba(12, 8, 5, 0.55);
}

.day-world-scene img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
}

@media (prefers-reduced-motion: reduce) {
  .sphere-portrait {
    transition: none;
  }
  html.living-time-sphere-page .sphere-sidebar {
    transition: none;
  }
  .sphere-rooms-backdrop {
    transition: none;
  }
}

/* Days more visible (Aaron, Nov 20): the calendar-face day
 * numerals were .50rem on phones — 8px, unreadable at a glance.
 * The label manager's collision pass drops overlaps, so a larger
 * numeral costs density, not clutter: the key days (1/7/14/21/28
 * and the Moon turns) keep their places and read instantly. */
html.living-time-sphere-page .sphere-semantic-label[data-calendar-face="true"] .sphere-semantic-label-title {
  font-size: 0.8rem !important;
  min-width: 0.9rem;
}
@media (max-width: 720px) {
  html.living-time-sphere-page .sphere-semantic-label[data-calendar-face="true"] .sphere-semantic-label-title {
    font-size: 0.66rem !important;
    min-width: 0.78rem;
  }
}

/* Day numbers, second pass (Aaron, Nov 22, 2026): still too small
 * to read or tap on his phone, he said — so the numeral grows
 * again, its weight and contrast rise, and the pill behind it
 * becomes a real finger target. The collision pass still drops
 * overlaps, so this costs density, not clutter. And a scheduled
 * day now carries its mark UNDER its number: the day's own glyph
 * from the record (a check for a task, a flag for a reminder, a
 * sprout for planting — the planner summary's primary symbol),
 * one mark per day, holographic cyan on dark. The full list for
 * the day lives in Day Details; the big card appears only when
 * the day itself is selected. This deliberately re-admits the
 * one DOM glyph B7.48 retired in favour of the GPU symbol field:
 * that field floats its glyphs in the symbol lane, and Aaron
 * could not see that scheduling had marked the day at all. One
 * small glyph per scheduled day, on the number itself, is the
 * readable confirmation he asked for; the GPU field stands as
 * the scene's own decoration, as before. */
html.living-time-sphere-page .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] {
  min-width: 1.65rem !important;
  min-height: 1.65rem !important;
  background: rgba(3, 10, 16, 0.92) !important;
  border-color: rgba(140, 205, 220, 0.45) !important;
}
html.living-time-sphere-page .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] .sphere-semantic-label-title {
  font-size: 0.8rem !important;
  font-weight: 820 !important;
  color: #f2f9ff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 7px rgba(0, 0, 0, 0.65);
}
@media (max-width: 720px) {
  html.living-time-sphere-page .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] {
    min-width: 1.55rem !important;
    min-height: 1.55rem !important;
  }
  html.living-time-sphere-page .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"] .sphere-semantic-label-title {
    font-size: 0.74rem !important;
  }
}
html.living-time-sphere-page .sphere-semantic-label[data-semantic-kind="pattern-day-number"][data-calendar-face="true"][data-has-schedule="true"]::after {
  content: attr(data-plan-symbol) !important;
  display: grid !important;
  place-items: center;
  position: absolute;
  left: 50%;
  top: calc(100% - 0.22rem);
  transform: translateX(-50%);
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.1rem;
  border-radius: 999px;
  background: rgba(5, 22, 28, 0.92);
  border: 1px solid rgba(122, 243, 255, 0.6);
  color: #c8fbff;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-shadow: 0 0 6px rgba(122, 243, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 9px rgba(122, 243, 255, 0.4);
  pointer-events: none;
  z-index: 2;
}

/* The season line: the current season and the next turn, in the
 * caption beside the sky line — plain words, real dates only. */
.sphere-season-line {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #ffd98f;
}

.sphere-season-line[hidden] {
  display: none;
}

/* ── 5. The rings (Sphere design Phase 1) ────────────────────
 * The ring charters and their two toggles, in the rooms sheet
 * above the granular Layers list. Words only — the face itself
 * is the instrument's, untouched by this sheet. */

.sphere-rings-intro {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #c9b18c;
}

.sphere-rings-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sphere-ring-row {
  border: 1px solid rgba(218, 164, 91, 0.3);
  border-radius: 12px;
  padding: 0.55rem 0.75rem 0.6rem;
  background: rgba(12, 8, 5, 0.5);
}

.sphere-ring-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sphere-ring-head strong {
  font-size: 0.98rem;
  color: #f3e7d3;
}

.sphere-ring-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  font-size: 0.9rem;
  color: #f3e7d3;
  cursor: pointer;
}

.sphere-ring-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #daa45b;
}

.sphere-ring-status {
  font-size: 0.84rem;
  color: #a68d64;
}

.sphere-ring-charter {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #c9b18c;
}

.sphere-rings-field {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #a68d64;
}

/* Full-page mode is a presentation of this shell, not a second shell.
 * The same dock and rooms stay in place while the document regains flow. */
html.living-time-sphere-page.sphere-full-page,
html.living-time-sphere-page.sphere-full-page body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
}

html.living-time-sphere-page.sphere-full-page body:not(.sphere-app) .site-header {
  display: flex;
}

html.living-time-sphere-page.sphere-full-page body:not(.sphere-app) main.sphere-page {
  height: auto;
  min-height: 0;
  display: block;
  overflow: visible;
  margin: 0 auto;
  padding: 0;
}

html.living-time-sphere-page.sphere-full-page body:not(.sphere-app) .sphere-wrapper {
  display: flex;
  height: min(78svh, 62rem);
  min-height: 340px;
  flex: none;
  overflow: visible;
  margin: 0;
}

html.living-time-sphere-page.sphere-full-page .sphere-canvas-wrap {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

html.living-time-sphere-page.sphere-full-page .sphere-instrument-shell {
  position: relative;
  inset: auto;
  height: 100%;
}

html.living-time-sphere-page.sphere-full-page #sphere-container {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: min(92vw, 62rem) !important;
  min-height: 300px !important;
  max-height: 100% !important;
}

html.living-time-sphere-page.sphere-full-page body:not(.sphere-app) .sphere-rebuild-dock {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  max-width: 62rem;
  margin: 0.5rem auto;
  padding: 0.5rem max(0.75rem, env(safe-area-inset-right, 0px)) 0.5rem max(0.75rem, env(safe-area-inset-left, 0px));
  border: 0;
  background: transparent;
}

html.living-time-sphere-page.sphere-full-page body:not(.sphere-app) .sphere-sidebar {
  position: static;
  inset: auto;
  width: min(100% - 2rem, 68rem);
  height: auto;
  max-height: none;
  margin: 1rem auto;
  padding: 0 0 max(1rem, env(safe-area-inset-bottom, 0px));
  overflow: visible;
  transform: none;
  border: 1px solid rgba(218, 164, 91, 0.38);
  border-radius: 1rem;
}

html.living-time-sphere-page.sphere-full-page .sphere-rooms-backdrop {
  display: none;
}

html.living-time-sphere-page.sphere-full-page .sphere-sheet-bar {
  position: relative;
}

@media (max-width: 720px) {
  html.living-time-sphere-page.sphere-full-page body:not(.sphere-app) .sphere-wrapper {
    height: min(74svh, 48rem);
    min-height: 320px;
  }
}
