/* Restore the pre-redesign homepage using the project's preserved home.css.
   Scoped to .legacy-home; the new five-person conversation page is unchanged. */
.legacy-home{max-width:480px;margin:0 auto;padding:14px 21px 0;color:#25232d}
.legacy-home .home-date{display:grid;grid-template-columns:minmax(max-content,1fr) minmax(0,max-content);align-items:center;gap:1px 8px;margin-bottom:12px}
.legacy-home .home-dateline{display:flex;align-items:center;gap:7px;color:#554e55;font-size:12px;font-weight:500}
.legacy-home .home-dateline i{width:3px;height:3px;border-radius:50%;background:currentColor;flex-shrink:0}
.legacy-home .home-lunar{font-size:12px;font-weight:500;max-width:12em;justify-self:end;text-align:right;line-height:1.6;color:#645e63}
.legacy-home .home-date h1{margin-top:3px;font:600 34px/1.22 var(--sans);letter-spacing:-.045em}
.legacy-home .home-chart{display:grid;justify-items:center;gap:0;padding:2px 0}
.legacy-home .dial-button{width:clamp(180px,52vw,215px);margin:0;background:radial-gradient(ellipse at 34% 22%,#fffdf8,#f1ece3 70%,#e8e0d3);color:#806b56;box-shadow:inset 1px 1px 0 #fffdf9,inset -1px -1px 0 #c2b29b52}
.legacy-home .dial-art{stroke-width:1}
.legacy-home .dial-core{inset:20%;color:#625448}
.legacy-home .dial-core>small{font-size:10px;line-height:1.8}
.legacy-home .dial-core>strong{font:500 clamp(49px,14vw,60px)/1.15 var(--serif);margin:2px 0}
.legacy-home .dial-core>span{font-size:11px;line-height:1.8;letter-spacing:0;white-space:nowrap}
.legacy-home .dial-labels>span{color:#705d4b;background:radial-gradient(closest-side,#f3eee6 75%,transparent)}
.legacy-home .home-guide{display:flex;flex-direction:column;align-items:center;width:fit-content;max-width:100%;min-height:44px;gap:2px;margin:3px auto 0;padding:7px 4px;text-align:center;text-wrap:pretty;font-size:15px;font-weight:500;line-height:1.6;color:#453d42}
.legacy-home .guide-origin{font-size:12px;color:#695c60;font-weight:400}
.legacy-home .guide-line{display:flex;align-items:center;gap:6px}
.legacy-home .home-guide svg{width:15px;height:15px;color:#76576b}
.legacy-home .home-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}

.legacy-home .home-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-block: 12px 22px; }.legacy-home .home-week button {
  display: grid; justify-items: center; align-content: center; gap: 2px;
  min-height: 53px; padding: 4px 0; border-radius: 13px; background: #efedea;
  color: #686167; font-size: 11px; line-height: 1.35; font-variant-numeric: tabular-nums;
}.legacy-home .home-week b { color: #302d34; font: 600 17px/1.2 var(--sans); }.legacy-home .home-week button[aria-pressed="true"] { background: #34303d; color: #f8eef9; }.legacy-home .home-week button[aria-pressed="true"] b { color: white; }.legacy-home .home-week button[aria-current="date"]:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1px #92828e; }.legacy-home .home-section-title h2 { font-size: 19px; font-weight: 600; letter-spacing: -.035em; }.legacy-home .home-section-title > span { font-size: 11px; color: #696367; }.legacy-home .home-almanac { display: grid; grid-template-columns: 1.32fr 1fr; margin-top: 11px; }.legacy-home .home-almanac > div + div { padding-left: 18px; border-left: 1px solid var(--line); }.legacy-home .home-almanac small { color: #615b61; font-size: 12px; }.legacy-home .home-almanac strong { display: block; color: #332f39; font: 500 24px/1.4 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }.legacy-home .home-calendar .disclosure { margin: 3px 0 13px; }.legacy-home .home-calendar .disclosure > button { min-height: 44px; font-size: 12px; padding: 7px 0; }.legacy-home .home-tools { display: grid; gap: 8px; }.legacy-home .tool-copy { z-index: 1; }.legacy-home .tool-copy b, .legacy-home .tool-copy small { display: block; }.legacy-home .tool-copy b { font-size: 18px; font-weight: 600; line-height: 1.4; }.legacy-home .tool-copy small { font-size: 12px; margin-top: 2px; }.legacy-home .partner-shelf {
  --shelf: #e1e6ee;
  background: linear-gradient(125deg,#ffffff73,transparent 65%),var(--shelf); color: #2c3e57; box-shadow:inset 0 1px 0 #ffffffa6,inset 0 -1px 0 #34465512; border-radius: 15px; overflow: hidden; isolation: isolate;
}.legacy-home .partner-toggle {
  width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 8px 15px; text-align: start; color: inherit; background: transparent;
}.legacy-home .partner-toggle small { color: #4d5c71; }.legacy-home .partner-toggle > svg { width: 16px; height: 16px; transition: transform 200ms ease; }.legacy-home .partner-shelf[data-open="true"] .partner-toggle > svg { transform: rotate(180deg); }.legacy-home .partner-drawer { display: grid; grid-template-rows: 0fr; }.legacy-home .partner-shelf[data-open="false"] .partner-drawer { transition: grid-template-rows 220ms ease 150ms; }.legacy-home .partner-shelf[data-open="true"] .partner-drawer { grid-template-rows: 1fr; }.legacy-home .partner-rail {
  display: grid; grid-template-columns: repeat(var(--partners), minmax(0, 1fr)); align-items: start;
  min-height: 0; margin-inline: 8px; pointer-events: none;
}.legacy-home .partner-choice {
  display: flex; flex-direction: column; align-items: center; justify-content: start; gap: 5px;
  min-width: 0; min-height: 64px; width: 100%; padding: 0 0 10px; border-radius: 8px;
  background: transparent; color: inherit; font: inherit;
  /* From the center of each grid column to its overlapping slot at the right of the header. */
  transform: translate(calc(var(--to-edge) * 100% - 40px - var(--stack-steps) * 21px), -47px);
  transition: transform 250ms cubic-bezier(.22,.72,.25,1) var(--close-delay), opacity 150ms var(--close-delay);
}.legacy-home .partner-token { position: relative; display: block; flex: none; }.legacy-home .partner-choice .companion-mark, .legacy-home .partner-more {
  display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%;
  border: 1.5px solid var(--shelf); box-shadow: inset 0 0 0 1px #34465532;
}.legacy-home .partner-choice .companion-mark { background: var(--mark-paper, #c4d2e2); color: var(--mark-ink, #435770); }.legacy-home .partner-choice .companion-mark svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 2; }.legacy-home .partner-more {
  position: absolute; inset: 0; background: #49566a; color: white; font: 500 12px/1 var(--sans);
  transition: opacity 150ms;
}.legacy-home .partner-name { max-width: 100%; color: #303d52; font-size: 12px; line-height: 1.35; opacity: 0; transition: opacity 120ms; }.legacy-home .partner-shelf[data-open="false"] .stack-hidden { opacity: 0; }.legacy-home .partner-shelf[data-open="true"] .partner-choice { pointer-events: auto; transform: none; transition-delay: var(--open-delay); }.legacy-home .partner-shelf[data-open="true"] .partner-name { opacity: 1; transition-delay: var(--open-delay); }.legacy-home .partner-shelf[data-open="true"] .partner-more { opacity: 0; }.legacy-home .partner-toggle:focus-visible, .legacy-home .partner-choice:focus-visible { outline: 2px solid #52627b; outline-offset: -3px; }.legacy-home .partner-shelf[data-picker="rituals"] { --shelf: #f1d3bc; color: #512d22; }.legacy-home [data-picker="rituals"] .partner-toggle small, .legacy-home [data-picker="rituals"] .partner-name { color: #693d30; }.legacy-home [data-picker="rituals"] .partner-name { font-weight: 600; font-size: 14px; }.legacy-home [data-picker="rituals"] .partner-name small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; }.legacy-home .partner-token .ritual-seal {
  width: 33px; height: 33px; box-sizing: border-box; border-radius: 50%; gap: 0;
  border: 1.5px solid var(--shelf); box-shadow: inset 0 0 0 1px #6c443833; background: #f9e7d2;
}.legacy-home .partner-token .bazi-seal { gap: 1.5px; background: #f4e8e2; }.legacy-home .partner-token .bazi-seal i {
  inline-size: 4px; block-size: 14px; border-radius: 1px; font-size: 0;
}.legacy-home .coin-seal .coin { width: 14px; height: 14px; border: 1px solid #866138; box-shadow: none; flex: none; }.legacy-home .coin-seal .coin + .coin { margin-left: -6px; }.legacy-home .coin-seal .coin:first-child { transform: translateY(2px); }.legacy-home .coin-seal .coin:last-child { transform: translateY(-2px); }.legacy-home .coin-seal .coin::before { inset: 4px; background: #7a542e; border: 0; }.legacy-home .coin-seal .coin::after { inset: 1px; }.legacy-home .partner-token .cup-seal { background: #efbda3; }.legacy-home .cup-seal .cup { width: 13px; height: 20px; }.legacy-home .cup-seal .cup.flat { fill: #a54e37; stroke: #7a3b2c; }.legacy-home .cup-seal .cup.convex { fill: #bc7054; stroke: #874b35; transform: rotate(32deg); }.legacy-home .home-birth { justify-self: end; gap: 5px; min-height: 44px; padding: 3px 0 3px 8px; color: #67465d; font-size: 13px; font-weight: 500; }.legacy-home .home-birth svg { width: 16px; }

.legacy-home .home-calendar .details{margin:3px 0 13px}
.legacy-home .home-calendar .details>summary{min-height:44px;font-size:12px;padding:7px 0;color:#635e65}
.legacy-home .details summary:after{content:none}
.legacy-home .home-calendar .details-body{font-size:12px;line-height:1.8}
.legacy-home .companion-mark{overflow:hidden}
.legacy-home .home-birth{display:flex;align-items:center}
.legacy-home .partner-token .object{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:33px;height:33px;border-radius:50%;border:1.5px solid var(--shelf);background:#f9e7d2;gap:0;box-shadow:inset 0 0 0 1px #6c443833}
.legacy-home .partner-token .bazi-object{gap:2px}
.legacy-home .partner-token .bazi-object i{width:4px;height:14px;padding:0;font-size:0;box-shadow:none}
.legacy-home .partner-token .bazi-object i:nth-child(3){transform:translateY(-2px)}
.legacy-home .partner-token .coin-object i{width:13px;flex-shrink:0;box-shadow:none}
.legacy-home .partner-token .coin-object i+i{margin-left:-6px}
.legacy-home .partner-token .coin-object i:nth-child(2){transform:translateY(-2px)}
.legacy-home .partner-token .cup-object i{width:13px;height:20px;box-shadow:none}
.legacy-home .prototype-note{padding:14px 0 0;font-size:9px}
/* The baseline home reserves space for the dock rather than floating it over tools. */
body[data-route="today"] .device{grid-template-rows:65px minmax(0,1fr) auto}
body[data-route="today"] .dock{position:relative;left:auto;bottom:auto;transform:none;justify-self:center;margin:6px 0 max(9px,env(safe-area-inset-bottom));height:60px;padding:3px 7px}
body[data-route="today"] .dock a{min-height:48px}
body[data-route="today"] .dock-plate{top:3px;height:48px}
body[data-route="today"] .page{padding-bottom:18px}
@media(max-width:350px){.legacy-home{padding-inline:15px}.legacy-home .home-week{gap:3px}.legacy-home .home-almanac strong{font-size:21px}.legacy-home .home-lunar{font-size:10px}.legacy-home .home-dateline{font-size:11px}}
@media(prefers-reduced-motion:reduce){.legacy-home .partner-drawer,.legacy-home .partner-choice,.legacy-home .partner-name,.legacy-home .partner-more{transition:none!important}}

/* Daily almanac: two quiet text rows, separate from the personal day reading. */
.legacy-home .almanac-activities{margin:12px 0 0;display:grid;gap:7px}
.legacy-home .almanac-activity-row{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:10px;align-items:baseline}
.legacy-home .almanac-activity-row dt{color:var(--red-dark);font-size:14px;font-weight:600;line-height:1.7}
.legacy-home .almanac-activity-row[data-kind="ji"] dt{color:#625b58}
.legacy-home .almanac-activity-row dd{margin:0;min-width:0}
.legacy-home .almanac-activity-row ul{display:flex;flex-wrap:wrap;gap:2px 0;list-style:none;margin:0;padding:0;color:#494347;font-size:13px;line-height:1.8}
.legacy-home .almanac-activity-row li{max-width:100%;overflow-wrap:anywhere}
.legacy-home .almanac-activity-row li+li:before{content:'·';display:inline-block;padding:0 7px;color:#817775}
.legacy-home .almanac-empty{color:#696367}
.legacy-home .almanac-activities+.home-almanac{margin-top:14px}
.legacy-home .home-calendar .almanac-full{margin:5px 0 16px;gap:12px}
.legacy-home .home-calendar .almanac-full ul{font-size:13px;line-height:1.9}
